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
David S. Miller
aff37fc18f
* dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
...
argument.
(dwarf2_frame_default_init_reg): Likewise.
(dwarf2_frame_set_init_reg): Update init_reg arg.
(dwarf2_frame_init_reg): Take "next_frame" and pass it to
ops->init_reg().
(dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
* dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
* cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
* s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
* sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
* sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
* sparc-tdep.c (sparc32_struct_return_from_sym): New function.
(sparc32_frame_cache): Call it.
(sparc32_dwarf2_struct_return_p): New function.
(sparc_dwarf2_frame_init_reg): Use it to determine if the function
returns a structure and thus we have to indicate the return PC and
NPC are 4 bytes later than usual.
2006-04-05 20:01:19 +00:00
David S. Miller
80f9e3aafe
* sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
...
window out of the correct stack frame.
* sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
2006-04-05 19:19:12 +00:00
David S. Miller
f5a9b87dbe
* sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
...
(sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
* Makefile.in (sparc-tdep.o): Update dependencies.
2006-04-05 18:35:39 +00:00
David S. Miller
0a59b3af50
* Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
...
new includes.
2006-04-04 22:14:52 +00:00
David S. Miller
75e192e668
* config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
...
* config/linux64.h (NATDEPFILES): Likewise
* sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
fill_fpregset): New.
* sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
fill_fpregset): New.
2006-04-04 21:53:45 +00:00
Andreas Schwab
dbcd679b17
* Makefile.in (elf_common_h): Define.
2006-04-04 17:06:36 +00:00
Andrew Stubbs
357d3800d1
2006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
...
* sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
(sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
2006-04-03 14:31:14 +00:00
Andrew Stubbs
d3c139e926
2006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
...
* value.h (struct internalvar): Add field 'endian'.
* value.c (lookup_internalvar): Initialise endian.
(value_of_internalvar): Flip the endian of built-in types if required.
(set_internalvar): Set the endian.
(show_convenience): Access the value through value_of_internalvar().
2006-03-31 10:36:18 +00:00
Daniel Jacobowitz
bb858e6a2c
2006-03-30 Vladimir Prus <ghost@cs.msu.su>
...
* remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
instead of hardcoded integer literals.
2006-03-30 16:56:30 +00:00
Daniel Jacobowitz
61d9b92fc1
gdb/
...
* cli/cli-script.c (insert_args): Handle NULL user_args.
gdb/testsuite/
* gdb.base/commands.exp (stray_arg0_test): New test.
2006-03-30 16:51:20 +00:00
Daniel Jacobowitz
f7060f859d
* arm-tdep.c (thumb_scan_prologue): Don't try to analyze
...
the function at zero if we have no symbols.
2006-03-30 16:48:47 +00:00
Daniel Jacobowitz
295bf0ffc7
* i386-stub.c (getpacket): Fix array overflow.
...
* m32r-stub.c (getpacket): Likewise.
* m68k-stub.c (getpacket): Likewise.
* sh-stub.c (getpacket): Likewise.
* sparc-stub.c (getpacket): Likewise.
2006-03-30 16:44:12 +00:00
Daniel Jacobowitz
7abfe01489
* frame.h (set_current_sal_from_frame): New prototype.
...
* stack.c (set_current_sal_from_frame): Make global.
* infrun.c (normal_stop): Call set_current_sal_from_frame.
2006-03-30 16:37:13 +00:00
Daniel Jacobowitz
0ec9a092fd
* linux-thread-db.c: Include "linux-nat.h".
...
(check_for_thread_db): New function, split out from
thread_db_new_objfile. Remove dead check for active
thread_db on inapplicable targets.
(thread_db_new_objfile): Call check_for_thread_db.
* Makefile.in (linux-thread-db.o): Update.
* linux-nat.c (child_post_attach): Call check_for_thread_db.
(linux_child_post_startup_inferior): Likewise.
(lin_lwp_attach_lwp): Call target_post_attach instead of
child_post_attach.
* linux-nat.h (check_for_thread_db): New prototype.
2006-03-30 16:34:23 +00:00
Daniel Jacobowitz
6d820c5c12
* remote.c (struct remote_state): Add BUF and BUF_SIZE.
...
(init_remote_state): Initialize the new fields.
(get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
(set_thread, remote_thread_alive, remote_unpack_thread_info_response)
(remote_get_threadinfo, parse_threadlist_response)
(remote_get_threadlist, remote_current_thread, remote_threads_info)
(remote_threads_extra_info, extended_remote_restart, get_offsets)
(remote_check_symbols, remote_open_1, remote_detach)
(remove_vcont_probe, remote_vcont_resume, remote_resume)
(remote_wait, remote_async_wait, fetch_register_using_p)
(remote_fetch_registers, store_register_using_P)
(remote_store_registers, check_binary_download, remote_write_bytes)
(remote_read_bytes, remote_insert_breakpoint)
(remote_remove_breakpoint, remote_insert_watchpoint)
(remote_remove_watchpoint, remote_insert_hw_breakpoint)
(remote_remove_hw_breakpoint, compare_sections_command)
(remote_xfer_partial, remote_rcmd, packet_command)
(remote_get_thread_local_address): Use the global incoming buffer
instead of alloca or xmalloc. Limit outgoing packets to
rs->remote_packet_size and incoming packets to rs->buf_size.
Update calls to getpkt and remote_send.
(remote_send): Take arguments by reference.
(putpkt_binary): Eliminate junkbuf. Use skip_frame.
(skip_frame): New function.
(read_frame): Take arguments by reference. Expand the packet
buffer instead of issuing an error.
(getpkt, getpkt_sane): Take arguments by reference.
* remote.h (getpkt): Update prototype and doc.
* tracepoint.c (remote_get_noisy_reply): Take arguments by
reference.
(target_buf): Change from array to pointer.
(target_buf_size): New variable.
(remote_set_transparent_ranges): Update call to getpkt.
(trace_start_command, trace_stop_command, trace_status_command):
Update calls to remote_get_noisy_reply.
(finish_tfind_command): Take arguments by reference.
(trace_find_command, trace_find_pc_command)
(trace_find_tracepoint_command, trace_find_line_command):
(trace_find_range_command, trace_find_outside_command): Update
calls to finish_tfind_command.
(_initialize_tracepoint): Initialize target_buf_size and target_buf.
2006-03-30 16:25:06 +00:00
Randolph Chung
3d8dcac680
2005-03-30 Randolph Chung <tausq@debian.org>
...
* hppa-linux-tdep.c: Include regset.h.
(GR_REGNUM, TR_REGNUM, greg_map): New.
(hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
(hppa_linux_regset, hppa_linux_fpregset): New.
(hppa_linux_regset_from_core_section): New.
(hppa_linux_init_abi): Set regset_from_core_section.
(_initialize_hppa_linux_tdep): Register osabi handler for
64-bit Linux.
* Makefile.in (hppa-linux-tdep.o): Update dependencies.
* config/pa/linux.mh: Stop using core-regset.o
2006-03-30 14:27:45 +00:00
Randolph Chung
29d375acb5
2006-03-30 Randolph Chung <tausq@debian.org>
...
* hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
(hppa_frame_cache): Use new function to find unwind entry.
(hppa_frame_this_id): Likewise.
(hppa_frame_unwind_sniffer): Likewise.
2006-03-30 14:15:00 +00:00
Daniel Jacobowitz
f4267320e5
2006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
...
* NEWS: Mention the removal of NLM.
2006-03-29 Steve Ellcey <sje@cup.hp.com>
* Makefile.in (nlm): Remove target.
* configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
* configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
* configure: Regenerate.
* doc/gdb.texinfo: Remove gdbserve.nlm documentation.
* nlm: Remove directory.
2006-03-29 22:58:55 +00:00
Daniel Jacobowitz
698ba9341e
* Makefile.in (utils.o): Update.
...
* top.c (in_user_command): New.
(command_line_input): Use input_from_terminal_p.
(input_from_terminal_p): Don't check caution. Handle
stdin == NULL for Insight.
* top.h (in_user_command, caution): New declarations.
* utils.c: Include "top.h".
(query, defaulted_query): Check caution here. Move the call
to input_from_terminal_p higher.
* cli/cli-script.c (do_restore_user_call_depth): Only decrement
the depth. Update in_user_command if necessary.
(execute_user_command): Don't clobber old_chain. Set
in_user_command. Let do_restore_user_call_depth handle
user_call_depth.
(read_command_lines): Check whether to prompt before calling
Insight hooks.
* tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
input_from_terminal_p check.
2006-03-29 22:53:33 +00:00
Ulrich Weigand
2f00de94cb
* s390-nat.c (s390_insert_watchpoint): Add missing argument.
...
(s390_remove_watchpoint): Likewise.
2006-03-29 18:27:00 +00:00
Jim Blandy
7d30c22d4c
src/gdb/ChangeLog:
...
2006-03-28 Jim Blandy <jimb@codesourcery.com>
* prologue-value.c, prologue-value.h: New files.
* Makefile.in (prologue_value_h): New variable.
(HFILES_NO_SRCDIR): List prologue-value.h.
(SFILES): List prologue-value.c.
(COMMON_OBS): List prologue-value.o.
(prologue-value.o): New rule.
src/gdb/doc/ChangeLog:
2006-03-28 Jim Blandy <jimb@codesourcery.com>
* gdbint.texinfo (Prologue Analysis): New section.
2006-03-28 19:19:16 +00:00
Michael Snyder
05c6a9a10e
2006-03-27 Michael Snyder <msnyder@redhat.com>
...
* xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
xstormy16_pointer_to_address, xstormy16_address_to_pointer,
xstormy16_frame_prev_register): Change void* to gdb_byte*.
(xstormy16_push_dummy_call): Add block-local char* val,
to avoid type conflict with outer scope variable.
2006-03-28 18:58:30 +00:00
Andrew Stubbs
4e6cbc38c3
2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
...
* sh-tdep.c (sh_gdbarch_init): Add missing architectures.
2006-03-27 13:15:01 +00:00
Nick Roberts
75483fbe58
*** empty log message ***
2006-03-27 00:14:34 +00:00
Randolph Chung
97ce3a051a
2006-03-26 Randolph Chung <tausq@debian.org>
...
* config/pa/hppa64.mt: Use HPUX version of the tm file.
2006-03-26 08:18:17 +00:00
Nick Roberts
be85b69fc6
*** empty log message ***
2006-03-25 10:46:02 +00:00
Randolph Chung
7fc4b1a180
2006-03-24 Randolph Chung <tausq@debian.org>
...
* solib-som.c (link_map_start): Don't error out if there is
not yet a link map.
2006-03-24 23:49:56 +00:00
Daniel Jacobowitz
f973ed9c9f
* linux-nat.c (linux_ops_saved): New.
...
(super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
(child_mourn_inferior, child_wait, linux_nat_create_inferior)
(linux_nat_fetch_registers, linux_nat_store_registers)
(linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
(init_lwp_list): Don't set threaded.
(add_lwp): Don't modify threaded.
(delete_lwp): Don't mention non-threaded mode.
(linux_nat_switch_fork): New.
(linux_nat_attach): Update inferior_ptid.
(linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
threaded flag.
(linux_nat_kill): Handle pending forks and saved forks.
(linux_nat_mourn_inferior): Handle saved forks.
(linux_nat_pid_to_str): Don't use the LWP form when there is
only one thread.
(linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
(linux_nat_add_target): New.
(_initialize_linux_nat): Don't initialize the linux native target
here.
* linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
prototypes.
* linux-fork.c: Include "linux-nat.h".
(add_fork): Update initial PID.
(fork_load_infrun_state): Call linux_nat_switch_fork.
* Makefile.in (linux-fork.o): Update.
* alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
linux_nat_add_target instead of add_target.
* amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
* arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
* hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
* ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
* i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
* m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
* m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
* mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
* ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
* s390-nat.c (_initialize_s390_nat): Likewise.
* sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
* sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
2006-03-24 23:08:16 +00:00
Daniel Jacobowitz
791b663bea
* linux-fork.c: Include "gdb_assert.h".
...
(fork_load_infrun_state): Set inferior_ptid and stop_pc here.
Update the register cache and selected frame also.
(linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
to single fork mode if necessary.
(linux_fork_context): Remove bits handled by fork_load_infrun_state.
* Makefile.in (linux_fork_h): New.
(linux-fork.o, linux-nat.o): Update.
2006-03-24 22:44:05 +00:00
Andreas Schwab
d311d956ed
* config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
2006-03-23 14:05:29 +00:00
Jim Blandy
a849c9ab4f
2006-03-18 Jim Blandy <jimb@codesourcery.com>
...
* symtab.h (enum address_class): Doc fix.
2006-03-18 18:40:04 +00:00