Daniel Jacobowitz
c4c50d3740
2006-05-11 Alfred M. Szmidt <ams@gnu.org>
...
* gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
2006-05-11 19:37:52 +00:00
Fred Fish
576c202544
Reviewed and approved by Jim Blandy <jimb@codesourcery.com>
...
2006-05-11 Fred Fish <fnf@specifix.com>
* symtab.c (skip_prologue_using_sal): Handle single line functions
like "foo(){}", which may optimize down to a single return inst.
2006-05-11 09:29:52 +00:00
Steve Ellcey
ba906c0813
* hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Remove
...
message.
2006-05-10 20:30:02 +00:00
Andreas Schwab
4bf8967cb2
* dwarf2-frame.c (struct dwarf2_fde): Add eh_frame_p.
...
(execute_cfa_program): Add parameter eh_frame_p. Call
dwarf2_frame_eh_frame_regnum when true.
(dwarf2_frame_cache): Pass eh_frame_p from fde to
execute_cfa_program.
(decode_frame_entry_1): Call dwarf2_frame_eh_frame_regnum when
processing .eh_frame. Copy eh_frame_p to the new fde.
(struct dwarf2_frame_ops): Add eh_frame_regnum.
(dwarf2_frame_set_eh_frame_regnum): Define.
(dwarf2_frame_eh_frame_regnum): Define.
* dwarf2-frame.h (dwarf2_frame_set_eh_frame_regnum): Declare.
(dwarf2_frame_eh_frame_regnum): Declare.
2006-05-09 21:14:17 +00:00
David S. Miller
55e969c159
* linux-nat.c (linux_nat_do_thread_registers): Check for
...
NULL collect_regset method.
2006-05-06 23:55:36 +00:00
Ulrich Weigand
92f38ec2e1
* s390-tdep.c (s390_collect_regset): New function.
...
(s390_gregset, s390x_gregset, s390_fpregset): Add it.
2006-05-06 01:12:11 +00:00
Nick Roberts
6fed56b401
*** empty log message ***
2006-05-06 00:13:08 +00:00
Ulrich Weigand
6fc191037f
* linux-nat.c (exit_lwp): Fix NULL pointer access.
...
(linux_nat_handle_extended): New parameter STOPPING.
(wait_lwp): Call it with STOPPING equals 1.
(linux_nat_wait): Call it with STOPPING equals 0.
2006-05-05 23:48:28 +00:00
Ulrich Weigand
d539ed7ecd
* linux-nat.c (linux_nat_wait): Do not short-cut reporting
...
of 'uninteresting' signals when single-stepping.
2006-05-05 23:46:58 +00:00
Daniel Jacobowitz
49101e1c1a
* MAINTAINERS: Move NEWS to the documentation entry.
2006-05-05 23:20:04 +00:00
David S. Miller
bcc98f888e
* linux-thread-db.c (thread_db_store_registers): Use
...
regcache_raw_collect.
2006-05-05 22:42:43 +00:00
David S. Miller
4f844a660e
* linux-nat.c (linux_nat_do_thread_registers): Use the
...
regset_from_core_section infrastructure if the target
supports it.
* Makefile.in: Update dependencies.
2006-05-05 22:39:12 +00:00
Paul Gilliam
411cb3f932
2006-05-05: Paul Gilliam <pgilliam@us.ibm.com>
...
* ppc-linux-nat.c: Clean up types for ptrace.
Replace (CORE_ADDR) with (uintptr_t) to avoid the size difference
between a CORE_ADDR and a void* on ppc64 systems compiled for 32-bits.
2006-05-05 20:45:03 +00:00
Daniel Jacobowitz
597320e75b
* remote.c (remote_disconnect): Add TARGET argument.
...
* target.c (debug_to_disconnect): Delete.
(update_current_target): Do not inherit to_disconnect.
(target_disconnect): Search for a target to implement to_disconnect.
(setup_target_debug): Do not reference to_disconnect.
* target.h (struct target_ops): Add target argument to
to_disconnect.
2006-05-05 20:08:45 +00:00
Fred Fish
401835eb9c
Approved by Daniel Jacobowitz <drow@false.org>
...
2006-05-06 Fred Fish <fnf@specifix.com>
* mips-tdep.c (mips_o64_push_dummy_call): Left shift big endian
structs or unions independent of ABI register size.
2006-05-05 18:04:04 +00:00
Fred Fish
7a076fd259
2006-05-06 Fred Fish <fnf@specifix.com>
...
* mips-tdep.c (mips_o64_return_value): Replace stub that always
returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2006-05-05 17:50:33 +00:00
Daniel Jacobowitz
eec017952a
* mi/mi-main.c (captured_mi_execute_command): Check the return
...
value of -interpreter-exec.
2006-05-05 15:50:20 +00:00
Jim Blandy
14b3d9c967
gdb/ChangeLog:
...
2006-05-03 Vladimir Prus <ghost@cs.msu.su>
* varobj.c (c_value_of_variable): Ignore top-level references.
(Committed by Jim Blandy.)
2006-05-03 22:59:38 +00:00
Mark Kettenis
1893a4c08f
* breakpoint.c (insert_single_step_breakpoint): Make a failure to
...
insert a single-step breakpoint an error instead of a warning.
* breakpoint.c (remove_single_step_breakpoints): Bail out early if
no breakpoints are inserted.
2006-05-01 16:38:08 +00:00
Nathan J. Williams
21f79b33e5
2006-05-01 Nathan J. Williams <nathanw@wasabisystems.com>
...
* ppcnbsd-tdep.c (ppcnbsd_return_value): Change type of last two
arguments from void * to gdb_byte *.
2006-05-01 15:10:26 +00:00
Michael Snyder
b8db102de3
2006-04-26 Michael Snyder <msnyder@redhat.com>
...
* linux-fork.c (_initialize_linux_fork): Rename "delete-fork"
command to "delete fork" (no hyphen), compatible with other
"delete" commands.
(info_forks_command): Accept a fork ID argument, for info
on a single fork. Report if no matching forks.
2006-04-26 Michael Snyder <msnyder@redhat.com>
* gdb.base/multi-forks.exp: Modify patterns for "run to exit",
which may have to consume output from other forks.
Add tests to make sure that "delete fork" succeeded.
2006-04-27 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo (delete-fork): Command renamed to "delete fork".
2006-04-27 23:03:42 +00:00
Michael Snyder
cfde0993eb
2006-04-20 Michael Snyder <msnyder@redhat.com>
...
* remote.c: Fix spelling error in comment.
2006-04-26 18:45:32 +00:00
Mark Kettenis
bc0c849e87
From Masaki MURANAKA <monaka@monami-software.com>:
...
* mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
type of last argument to `gdb_byte *'
2006-04-25 18:58:09 +00:00
Jim Blandy
5f1fb6dcb3
2006-04-11 Jim Blandy <jimb@codesourcery.com>
...
Add support for 'target remote |' on MinGW.
* ser-mingw.c (struct pipe_state): New structure.
(make_pipe_state, free_pipe_state, cleanup_pipe_state)
(pipe_windows_open, pipe_windows_close, pipe_windows_read)
(pipe_windows_write, pipe_wait_handle): New functions.
(_initialize_ser_windows): Register a "pipe" interface based on
them.
2006-04-25 18:02:13 +00:00
Michael Snyder
e61e6fd132
Remove spurious entry
2006-04-25 00:18:25 +00:00
Michael Snyder
0271fba4a3
forgotten changelog entry
2006-04-24 22:39:03 +00:00
Daniel Jacobowitz
c3e2b812d0
* ser-mingw.c: Include <conio.h>.
...
(struct ser_console_state, struct net_windows_state): Add exit_select,
have_stopped, thread.
(pipe_select_thread, console_select_thread)
(net_windows_select_thread): Don't create a local state copy or
close stop_select. Exit on exit_select instead of stop_select. Set
have_stopped.
(console_select_thread): Don't report control keypresses as pending
input.
(pipe_select_thread): Allow stop_select to interrupt sleeping.
(set_console_wait_handle): Create exit_select and have_stopped.
Save the thread handle. Check _kbhit before starting a thread.
(ser_console_done_wait_handle): New.
(ser_console_close): Close new handles. Wait for the thread to
exit.
(new_windows_select_thread): Assert that an event occurred.
(net_windows_wait_handle): Check for pending input before starting
a thread.
(net_windows_done_wait_handle): New.
(net_windows_open): Create exit_select and have_stopped.
Save the thread handle.
(net_windows_close): Close new handles. Wait for the thread to
exit.
(_intiialize_ser_windows): Register done_wait_handle methods.
* serial.c [USE_WIN32API] (serial_done_wait_handle): New.
* serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
[USE_WIN32API] (serial_done_wait_handle): New prototype.
* mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
2006-04-24 21:00:13 +00:00
Andreas Schwab
b8eb021a30
* rs6000-tdep.c: Include "reggroups.h" only once.
...
* Makefile.in (rs6000-tdep.o): Update dependencies.
2006-04-23 14:15:01 +00:00
Frederic Riss
4f1520fbca
2006-04-21 Frederic Riss <frederic.riss@st.com>
...
* dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
compilation directory as last argument.
Always pass comp_dir as second argument to start_subfile and prepend
dirname to the filename when necessary.
Remove now superfluous search for pre-existing subfile.
(dwarf_decode_lines): Pass the compilation directory to
dwarf2_start_subfile.
2006-04-21 20:26:07 +00:00
Daniel Jacobowitz
cba5fab953
* m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
...
Correct type of VALUEP. Reported by Jean-Rene Peulve
<jr.peulve@wanadoo.fr>.
2006-04-20 17:29:47 +00:00
Kazuhiro Inaoka
cbba9205ad
2006-04-19 Masaki Muranaka <monaka@monami-software.com>
...
* m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
netdb.h, netinet/in.h.
(m32r_upload_command); Add calls WSAStartup().
* remote-m32r-sdi.c: On MinGW, include winsock.h instead of
netinet/in.h.
2006-04-19 06:36:37 +00:00
Daniel Jacobowitz
8181d85fdc
gdb/
...
* breakpoint.c (deprecated_read_memory_nobpt): Update to use
shadow_len.
(insert_bp_location, reattach_breakpoints, remove_breakpoint)
(delete_breakpoint): Update calls to changed methods.
(deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
(single_step_breakpoints, insert_single_step_breakpoint)
(remove_single_step_breakpoints): New.
* breakpoint.h (struct bp_target_info): New.
(struct bp_location): Replace shadow_contents with
target_info and overlay_target_info.
(deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
(insert_single_step_breakpoint, remove_single_step_breakpoints): New
prototypes.
* gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
(memory_insert_breakpoint, memory_remove_breakpoint): Update second
argument.
* mem-break.c (default_memory_insert_breakpoint): Update. Set
placed_address, placed_size, and shadow_len.
(default_memory_remove_breakpoint): Update. Don't use
BREAKPOINT_FROM_PC.
(memory_insert_breakpoint, memory_remove_breakpoint): Update.
* target.c (update_current_target): Update prototypes for changed
functions.
(debug_to_insert_breakpoint, debug_to_remove_breakpoint)
(debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
Update.
* target.h: Forward declare struct bp_target_info.
(struct target_ops): Use a bp_target_info argument for
to_insert_breakpoint, to_remove_breakpoint,
to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
(target_insert_breakpoint, target_remove_breakpoint)
(target_insert_hw_breakpoint, target_remove_hw_breakpoint)
(memory_insert_breakpoint, memory_remove_breakpoint)
(default_memory_insert_breakpoint, default_memory_remove_breakpoint):
Update.
* config/i386/nm-i386.h: Forward declare struct bp_target_info.
(i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
(target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
* gdbarch.c, gdbarch.h: Regenerated.
* alpha-tdep.c (alpha_software_single_step): Use
insert_single_step_breakpoint and remove_single_step_breakpoints.
Remove unused statics.
* arm-tdep.c (arm_software_single_step): Likewise. Add a note.
* cris-tdep.c (cris_software_single_step): Likewise.
* mips-tdep.c (mips_software_single_step): Likewise.
* rs6000-tdep.c (rs6000_software_single_step): Likewise.
* sparc-tdep.c (sparc_software_single_step): Likewise.
* wince.c (struct thread_info_struct): Remove step_prev.
(undoSStep): Use remove_single_step_breakpoints.
(wince_software_single_step): Use insert_single_step_breakpoint.
* corelow.c (ignore): Remove unneeded prototype. Update arguments.
* exec.c (ignore): Likewise.
* sol-thread.c (ignore): Likewise.
* procfs.c (dbx_link_shadow_contents): Delete.
(dbx_link_bpt): New.
(procfs_mourn_inferior): Remove it if necessary.
(remove_dbx_link_breakpoint): Use it.
(insert_dbx_link_bpt_in_file): Set it.
(procfs_init_inferior): Don't update dbx_link_bpt_addr.
* rs6000-nat.c (exec_one_dummy_insn): Use
deprecated_insert_raw_breakpoint and
deprecated_remove_raw_breakpoint.
* solib-irix.c (shadow_contents, breakpoint_addr): Delete.
(base_breakpoint): New.
(disable_break): Use it.
(enable_break): Set it.
* i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
Update.
* ia64-tdep.c (ia64_memory_insert_breakpoint)
(ia64_memory_remove_breakpoint): Likewise.
* m32r-tdep.c (m32r_memory_insert_breakpoint)
(m32r_memory_remove_breakpoint): Likewise.
* monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
Likewise. Remove unnecessary prototypes. Use placed_address
and placed_size. Removed useless read from memory.
* nto-procfs.c (procfs_insert_breakpoint)
(procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
(procfs_remove_hw_breakpoint): Update.
* ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
* ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
* ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
* ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
* remote-e7000.c (e7000_insert_breakpoint)
(e7000_remove_breakpoint): Likewise.
* remote-m32r-sdi.c (m32r_insert_breakpoint)
(m32r_remove_breakpoint): Likewise.
* remote-mips.c (mips_insert_breakpoint)
(mips_remove_breakpoint): Likewise.
* remote-rdp.c (remote_rdp_insert_breakpoint)
(remote_rdp_remove_breakpoint): Likewise.
(rdp_step): Use deprecated_insert_raw_breakpoint and
deprecated_remove_raw_breakpoint.
* remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
Update.
* remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
Delete.
(init_gdbsim_ops): Use memory_insert_breakpoint and
memory_remove_breakpoint.
* remote-st.c (st2000_insert_breakpoint)
(st2000_remove_breakpoint): Update. Remove unused
BREAKPOINT_FROM_PC.
* remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
Update. Use placed_address and placed_size.
(remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
gdb/doc/
* gdbint.texinfo (x86 Watchpoints, Target Conditionals): Update insert
and remove breakpoint prototypes.
(Watchpoints): Move description of target_insert_hw_breakpoint and
target_remove_hw_breakpoint ...
(Breakpoints): ... to here. Document target_insert_breakpoint and
target_remove_breakpoint.
2006-04-18 19:20:08 +00:00
Daniel Jacobowitz
01d3a6ce13
* remote.c (extended_remote_restart): Pass the correct length
...
to getpkt.
2006-04-12 14:27:40 +00:00
Jim Blandy
2821caf119
src/gdb/ChangeLog:
...
2006-04-11 Jim Blandy <jimb@codesourcery.com>
* serial.c (serial_open): Check for special cases at the front of
the "device" name before scanning for the ':' that would indicate
an IP-based connection.
2006-04-11 20:33:12 +00:00
Christopher Faylor
02c5aecd1e
* win32-nat.c (open_symbol_file_object): New function.
...
(in_dynsym_resolve_code): Ditto.
(init_win32_ops): Fill in fields which ought not to be NULL.
2006-04-10 21:43:45 +00:00
Christopher Faylor
cb832706eb
* win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything with saved
...
context if __COPY_CONTEXT_SIZE is not defined.
(handle_output_debug_string): Ditto.
2006-04-10 16:13:01 +00:00
Daniel Jacobowitz
03926e1f63
* arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
2006-04-10 14:39:24 +00:00
David S. Miller
b2a0b9b2f6
* sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
...
frame sniffer.
* sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
that the latter can override.
* Makefile.in (sparc64-linux-tdep.o): Update dependencies.
2006-04-09 08:22:43 +00:00
Ulrich Weigand
ee1b3323e6
* s390-tdep.c (struct s390_prologue_data): New field 'stack'.
...
(s390_store): Call pv_area_store to track stack slots.
(s390_load): Call pv_area_fetch to track stack slots.
(s390_check_for_saved): New function.
(s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
2006-04-09 01:21:15 +00:00
Ulrich Weigand
3fc46200b1
* Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
...
* s390-tdep.c: Include "prologue-value.h".
(struct prologue_value): Remove.
(pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
pv_constant_last, pv_add, pv_add_constant, pv_subtract,
pv_logical_and, pv_is_identical, pv_is_register): Remove.
(compute_x_addr): Remove, replace by ...
(s390_addr): ... this new function.
(struct s390_prologue_data): Use pv_t instead of prologue_value.
(s390_store, s390_load): Likewise.
(s390_prologue_frame_unwind_cache): Likewise.
(s390_analyze_prologue): Likewise. Also, simplify and combine
several conditional statements.
2006-04-09 00:26:08 +00:00
Jim Blandy
d750b93998
2006-04-08 Jim Blandy <jimb@codesourcery.com>
...
* Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
last patch.)
2006-04-08 23:40:03 +00:00
David S. Miller
07c5f590ae
* sparc64-linux-tdep.c (sparc64_linux_core_gregset,
...
sparc64_linux_supply_core_gregset,
sparc64_linux_collect_core_gregset,
sparc64_linux_supply_core_fpregset,
sparc64_linux_collect_core_fpregset): New.
(sparc64_linux_init_abi): Register them with generic sparc
core regset infrastructure.
* sparc32-linux-tdep.c (sparc32_linux_core_gregset,
sparc32_linux_supply_core_gregset,
sparc32_linux_collect_core_gregset,
sparc32_linux_supply_core_fpregset,
sparc32_linux_collect_core_fpregset): New.
(sparc32_linux_init_abi): Register them with generic sparc
core regset infrastructure.
* Makefile.in: Update dependencies.
2006-04-08 21:15:26 +00:00
David S. Miller
0b4294d3c0
* sparc-linux-tdep.c (sparc32_linux_step_trap): New.
...
(sparc32_linux_init_abi): Hook it into tdep->step_trap.
* sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
(sparc64_linux_init_abi): Hook it into tdep->step_trap.
* Makefile.in: Update dependencies.
2006-04-08 21:01:36 +00:00
David S. Miller
9c0dd46b95
* linux-nat.c (linux_nat_thread_alive): Handle targets that
...
do not implement PTRACE_PEEKUSER.
2006-04-07 21:42:33 +00:00
Daniel Jacobowitz
670aa98f98
* remote.c (remote_wait): Convert warning to error before
...
parsing corrupt packets.
2006-04-07 16:15:58 +00:00
Andrew Stubbs
e28493f226
2006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
...
gdb/
* cli/cli-script.c (struct user_args): Add command field.
(arg_cleanup): Free command string.
(setup_user_args): Copy the command line before relying on it.
gdb/testsuite/
* gdb.base/commands.exp (recursive_source_test): New test.
2006-04-07 13:31:15 +00:00
Joel Brobecker
7f198e01c2
* breakpoint.c (_initialize_breakpoint): Add "del" as an alias
...
of the "delete" command.
2006-04-06 18:33:05 +00:00
Randolph Chung
c9f7217ee8
2006-04-06 Randolph Chung <tausq@debian.org>
...
* MAINTAINERS (Patch champions): Add myself.
2006-04-06 15:12:47 +00:00
Andreas Schwab
d993720d58
* Makefile.in: Update dependencies.
2006-04-05 21:51:11 +00:00
David S. Miller
faea95b19b
* sparc-linux-tdep.c (sparc32_linux_init_abi): Append
...
dwarf2 frame sniffer.
* Makefile.in (sparc-linux-tdep.o): Update dependencies.
2006-04-05 20:27:08 +00:00