aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
AgeCommit message (Collapse)AuthorFilesLines
2004-10-082004-10-08 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+1
* target.h (struct target_ops): Rename to_xfer_memory to deprecated_xfer_memory. * target.c: Update. (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory. * wince.c: Update. * win32-nat.c: Update. * v850ice.c: Update. * uw-thread.c: Update. * thread-db.c: Update. * sol-thread.c: Update. * remote.c: Update. * remote-vx.c: Update. * remote-st.c: Update. * remote-sim.c: Update. * remote-sds.c: Update. * remote-rdp.c: Update. * remote-rdi.c: Update. * remote-mips.c: Update. * remote-m32r-sdi.c: Update. * remote-e7000.c: Update. * procfs.c: Update. * ppc-bdm.c: Update. * nto-procfs.c: Update. * monitor.c: Update. * linux-nat.c: Update. * inftarg.c: Update. * hpux-thread.c: Update. * go32-nat.c: Update. * gnu-nat.c: Update. * exec.c: Update. * corelow.c: Update. * bsd-kvm.c: Update. * aix-thread.c: Update.
2004-06-082004-06-08 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-4/+0
* infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers. (attach, detach): When neither PT_ATTACH / PT_DETACH nor PTRACE_ATTACH / PTRACE_DETACH available call error. (PT_ATTACH, PT_DETACH): Move definition to attach / detach. * infttrace.c (update_thread_state_after_attach, attach, detach): Remove #ifdef wrappers. * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers. * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers. * config/nm-bsd.h (ATTACH_DETACH): Delete. * config/nm-sysv4.h (ATTACH_DETACH): Delete. * config/nm-nbsd.h (ATTACH_DETACH): Delete. * config/nm-linux.h (ATTACH_DETACH): Delete. * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete. * config/pa/nm-hppah.h (ATTACH_DETACH): Delete. * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete. * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete. * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete. Index: doc/ChangeLog 2004-06-08 Andrew Cagney <cagney@gnu.org> * gdbint.texinfo (Native Debugging): Delete documentation on ATTACH_DETACH.
2004-05-252004-05-25 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+2
* target.h (struct target_ops): Add from_tty to to_create_inferior. (target_create_inferior, find_default_create_inferior): Update. * infcmd.c (run_command): Update. * wince.c (child_create_inferior): Update. * win32-nat.c (child_create_inferior): Update. * uw-thread.c (uw_thread_create_inferior): Update. * thread-db.c (thread_db_create_inferior): Update. * target.c (debug_to_create_inferior) (find_default_create_inferior): Update. (maybe_kill_then_create_inferior): Update. * sol-thread.c (sol_thread_create_inferior): Update. * remote.c (extended_remote_async_create_inferior) (extended_remote_create_inferior): Update. * remote-vx.c (vx_create_inferior): Update. * remote-st.c (st2000_create_inferior): Update. * remote-sim.c (gdbsim_create_inferior): Update. * remote-sds.c (sds_create_inferior): Update. * remote-rdp.c (remote_rdp_create_inferior): Update. * remote-rdi.c (arm_rdi_create_inferior): Update. * remote-m32r-sdi.c (m32r_create_inferior): Update. * remote-e7000.c (e7000_create_inferior): Update. * procfs.c (procfs_create_inferior): Update. * ocd.c (ocd_create_inferior): Update. * ocd.h (ocd_create_inferior): Update. * nto-procfs.c (procfs_create_inferior): Update. * monitor.c (monitor_create_inferior): Update. * lin-lwp.c (lin_lwp_create_inferior): Update. * inftarg.c (child_create_inferior): Update. * hpux-thread.c (hpux_thread_create_inferior): Update. * gnu-nat.c (gnu_create_inferior): Update.
2004-04-042004-04-04 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+1
* gnu-nat.c (gnu_wait): Use memcpy instead of bcopy. * remote-vxmips.c (vx_read_register, vx_write_register): Ditto. * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
2003-09-302003-09-30 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+1
* remote-vxsparc.c (vx_read_register): Replace bzero with memset. * remote-vxmips.c (vx_read_register): Ditto. * remote-vx68.c (vx_read_register): Ditto. * gnu-nat.c (inf_validate_procs): Ditto.
2003-09-092003-09-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-11/+11
* gnu-nat.c: Remove "inline" function attribute. * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
2003-06-14 * Makefile.in (exc_request_U_h): DefineDaniel Jacobowitz1-0/+1
(exc_request_S_h): Likewise. (msg_reply_S_h): Likewise. (msg_U_h): Likewise. (notify_S_h): Likewise. (process_reply_S_h): Likewise. (gnu-nat.o): Depend on gdb_obstack_h * gnu-nat.c: Include "gdb_obstack.h".
2002-11-12 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.Daniel Jacobowitz1-32/+0
* monitor.c (init_base_monitor_ops): Likewise. * ppc-bdm.c (init_bdm_ppc_ops): Likewise. * remote-array.c (init_array_ops): Likewise. * remote-e7000.c (init_e7000_ops): Likewise. * remote-es.c (init_es1800_ops): Likewise. (init_es1800_child_ops): Likewise. * remote-rdp.c (init_remote_rdp_ops): Likewise. * remote-sim.c (init_gdbsim_ops): Likewise. * remote-st.c (init_st2000_ops): Likewise. * sol-thread.c (init_sol_core_ops): Likewise. (init_sol_thread_ops): Likewise. * v850ice.c (init_850ice_ops): Likewise. * win32-nat.c (init_child_ops): Likewise. * wince.c (init_child_ops): Likewise.
2002-09-29Zap __FUNCTION__.Andrew Cagney1-8/+8
2002-08-26 Fix PR gdb/393:Stephane Carrez1-0/+1
* inflow.c (terminal_save_ours): New function to save terminal settings. * inferior.h (terminal_save_ours): Declare. * target.c (debug_to_terminal_save_ours): New function. (cleanup_target): Defaults to_terminal_save_ours. (update_current_target): Inherit to_terminal_save_ours. (setup_target_debug): Set to_terminal_save_ours. * target.h (target_terminal_save_ours): New to save terminal settings. (target_ops): New member to_terminal_save_ours. * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours. * hpux-thread.c (init_hpux_thread_ops): Likewise. * inftarg.c (init_child_ops): Likewise. * m3-nat.c (init_m3_ops): Likewise. * procfs.c (init_procfs_ops): Likewise. * wince.c (init_child_ops): Likewise. * win32-nat.c (init_child_ops): Likewise. * sol-thread.c (init_sol_thread_ops): Likewise.
2002-04-302002-04-30 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+3
* gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2002-04-302002-04-30 Michael Snyder <msnyder@redhat.com>Michael Snyder1-0/+7
* gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2002-04-242002-04-24 Roland McGrath <roland@frob.com>Michael Snyder1-1/+73
* config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here. * i386gnu-nat.c [HAVE_SYS_PROCFS_H] (supply_gregset, supply_fpregset): New functions. * gnu-nat.c (gnu_find_memory_regions): New function. (init_gnu_ops): Set `to_find_memory_regions' hook to that. (gnu_xfer_memory): Add a cast.
2002-03-27s/strerror/safe_strerror/Andrew Cagney1-23/+23
2002-01-06<string.h> -> "gdb_string.h"Andrew Cagney1-1/+1
2001-11-10s/value_ptr/struct value */Andrew Cagney1-3/+3
2001-05-24* gnu-nat.c: Include <ctype.h>.Mark Kettenis1-3/+4
(gnu_pid_to_exec_file): Add PID parameter. (set_sig_thread_cmd): Use PIDGET on return value from thread_id_to_pid. (proc_string): Use MERGEPID to construct argument to pid_to_thread_id.
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-25/+26
2001-04-14* target.h (target_ops): Removed to_core_file_to_sym_file vectorJ.T. Conklin1-1/+0
function. * corelow.c (core_ops): Updated for above change. * gnu-nat.c (core_ops): Likewise. * inftarg.c (child_ops): Likewise. * monitor.c (monitor_ops): Likewise. * ppc-bdm.c (bdm_ppc_ops): Likewise. * remote-adapt.c (adapt_ops): Likewise. * remote-bug.c (bug_ops): Likewise. * remote-e7000.c (e7000_ops): Likewise. * remote-eb.c (eb_ops): Likewise. * remote-es.c (es1800_ops, es1800_child_ops): Likewise. * remote-mm.c (mm_ops): Likewise. * remote-nindy.c (nindy_ops): Likewise. * remote-nrom.c (nrom_ops): Likewise. * remote-os9k.c (rombug_ops): Likewise. * remote-rdp.c (remote_rdp_ops): Likewise. * remote-sim.c (gdbsim_ops): Likewise. * remote-st.c (st2000_ops): Likewise. * v850ice.c (v850ice_ops): Likewise. * target.c (cleanup_target): Likewise (update_current_target): Likewise. (setup_target_debug): Likewise (debug_to_core_file_to_sym_file): Removed. * corefile.c (core_file_command) [HPUXHPPA]: Removed code that sets symbol file from information obtained from the core file. * corelow.c (core_file_to_sym_file): Removed.
2001-03-20malloc() -> xmalloc.Andrew Cagney1-5/+2
Move malloc() decl to utils.c
2001-03-15Add ``attrib'' parameter to *xfer_memory() functions.Andrew Cagney1-0/+1
2001-03-13* gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.Andrew Cagney1-7/+7
(proc_update_sc): Use gdb_assert instead of assert. (proc_abort): Ditto. (inf_set_step_thread): Ditto. (gnu_wait): Ditto. (S_exception_raise_request): Ditto. (gnu_terminal_init_inferior): Ditto.
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2000-12-15Replace free() with xfree().Kevin Buettner1-1/+1
2000-10-30* gdbarch.sh, hp-psymtab-read.c, hpread.c, m3-nat.c, mcore-tdep.c,J.T. Conklin1-2/+2
mips-tdep.c, monitor.c, regcache.c, remote-es.c, ser-unix.c, somread.c, tracepoint.c: Fix spelling errors in comments. * gdbarch.c: Regenerate. * gnu-nat.c (S_exception_raise_request): Fix typos and spelling errors in strings. * m3-nat.c (intercept_exec_calls, mach_thread_parse_id): Likewise. * mcore-tdep.c (mcore_analyze_prologue): Likewise. * mips-tdep.c (mips16_next_pc, _initialize_mips_tdep): Likewise. * remote-e7000.c (e7000_start_remote): Likewise. * remote-rdp.c (handle_swi): Likewise. * remote-vx.c (vx_load_command): Likewise. * sh-tdep.c (sh_do_pseudo_register): Likewise. * sol-thread.c (td_err_string): Likewise. * symtab.c (decode_line_2): Likewise. -------------------------------------------------------------------
2000-08-31Protoization.Kevin Buettner1-7/+4
2000-07-30Protoization.Kevin Buettner1-37/+19
2000-03-122000-03-11 Mark Kettenis <kettenis@gnu.org>Mark Kettenis1-5/+5
* gnu-nat.c: Fix the formatting where indent misinterpreted `&' as a binary operator. (gnu_attach): Change error message for missing argument to be identical to the corresponding message in `inftarg.c'. This makes the testsuite happy.
2000-02-262000-02-26 Mark Kettenis <kettenis@gnu.org>Mark Kettenis1-216/+301
* gnu-nat.c: Include "gdbthread.h". Include <hurd.h>. Reorder headers a bit. Overall cleanup and minor reformatting. (MIG_SERVER_DIED): Remove define. (proc_update_sc): Add braces to silence compiler warning. (proc_steal_exc_port): Initialize err to zero. (make_proc): Add braces to silence compiler warning. (inf_validate_task_sc): Add cast to silence compiler warning. (inf_set_traced): Reorganize a bit to silence compiler warning. (inf_validate_procs): Use mach_msg_type_number_t for all thread numbers and add braces to silence compiler warning. (gnu_wait): Add prototypes for server functions and add braces to silence compiler warnings. (S_exception_raise_request): Pass subcode to inf_debug call. (gnu_write_inferior): Remove unused variable `protection_changed'. (gnu_xfer_memory): Remove unused variable `result'. (set_sig_thread_cmd): Remove unused varible `tid'. (set_signals_cmd): Remve unused variable `trace'. (add_task_commands): Provide complete prototype. Reformat help strings a bit to make sure the first line is a full sentence. Call info_port_rights_cmd instead of info_send_rights_cmd for the "info port-rights" command. (add_thread_commands): Provide complete prototype. Make static. Reformat help strings a bit to make sure the first line is a full sentence. (_initialize_gnu_nat): Provide complete prototype.
2000-02-112000-02-09 Mark Kettenis <kettenis@gnu.org>Jim Kingdon1-19/+44
* gnu-nat.c (proc_string): Make global. (do_mach_notify_dead_name): Suppress dead name notifications if we know that the task is dead. 1999-12-13 Mark Kettenis <kettenis@gnu.org> * gnu-nat.c (inf_validate_task_sc): Get task info via proc server instead of directly from the kernel. Add some hackery to make sure that the info isn't influenced by suspension of the task in the proc server itself.
2000-02-09Replace ../include/wait.h with gdb_wait.h.Andrew Cagney1-1/+1
2000-02-01import gdb-2000-01-31 snapshotJason Molenda1-4/+1
1999-12-22import gdb-1999-12-21 snapshotJason Molenda1-29/+30
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-1/+1
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-350/+362
1999-07-07import gdb-1999-07-07 pre reformatJason Molenda1-4/+2
1999-06-07import gdb-1999-06-07 snapshotJason Molenda1-17/+73
1999-05-05import gdb-19990504 snapshotStan Shebs1-0/+4
1999-04-26import gdb-19990422 snapshotStan Shebs1-9/+8
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+3201
1999-04-16Initial creation of sourceware repositoryStan Shebs1-3201/+0
1998-12-31all remaining *.c *.h files from hp merge.David Taylor1-1/+1
1998-12-28hp merge changes -- too numerous to mention here; see ChangeLog andDavid Taylor1-1/+31
ChangeLog-gdbtk for details.
1998-05-21Thu May 21 13:14:25 1998 John Metzler <jmetzler@cygnus.com>John Metzler1-46/+47
* gnu-nat.c (init_gnu_ops): Initialization of target ops by assignment. (_initialize_gnu_nat): Call new init * mac-nat.c (init_child_ops): Ditto (_initialize_mac_nat): Ditto * monitor.c (init_base_monitor_ops): Ditto (_initialize_remote_monitors) : Ditto * ppc-bdm.c (init_bdm_ppc_ops): Ditto (_initialize_bdm_ppc): Ditto * remote-adapt.c ( init_adapt_ops): Ditto (_initialize_remote_adapt): Ditto * remote-array.c (init_array_ops) : Ditto (_initialize_array): Ditto * remote-bug (init_bug_ops) : Ditto (_initialize_remote_bug): Ditto * remote-e7000.c (init_e7000_ops): Ditto (_initialize_remote_e7000) : Ditto * remote-eb.c (init_eb_ops) : Ditto (_initialize_remote_eb) : Ditto *remote-es.c (init_es1800_ops) : Ditto (init_es1800_child_ops) : Ditto (_initialize_es1800) ; Ditto *remote-hms.c (init_hms_ops): Ditto (_initialize_remote_hms) : Ditto * remote-mm.c (init_mm_ops): Ditto (_initialize_remote_mm) : Ditto * remote-nindy.c (init_nindy_ops): Ditto (_initialize_nindy): Ditto * remote_nrom.c (init_nrom_ops) : Ditto (_initialize_remote_nrom) : Ditto *remote-os9k (init_rombug_ops) : Ditto (_initialize_remote_os9k) : Ditto *remote-rdi.c (init_rdi_ops) : Ditto (_initialize_remote_rdi) : Ditto * remote-rdp.c (init_remote_rdp_ops) : Ditto (_initialize_remote_rdp) : Ditto * remote-sds.c (init_sds_ops) : Ditto (_initialize_remote_sds) : Ditto * remote-sim.c (init_gdbsim_ops) : Ditto (_initialize_remote_sim) : Ditto * remote-st.c (init_st2000_ops): Ditto (_initialize_remote_st2000): Ditto *remote-udi.c (init_udi_ops) : Ditto (_initialize_remote_udi) : Ditto * remote-vx.c (init_vx_ops) : Ditto (init_vx_run_ops) : Ditto (_initialize_vx) : Ditto * remote.c (init_remote_ops): Ditto (init_extended_remote_ops): Ditto (_initialize_remote): Ditto * sparcl-tdep.c (init_sparclite_ops): Ditto (_initialize_sparcl_tdep): Ditto * v850ice.c (init_850ice_ops): Ditto (_initialize_v850ice): Ditto *win32-nat.c: (init_child_ops): Ditto (_initialize_inftarg): Ditto
1997-05-01Thu May 1 11:44:46 1997 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-108/+106
* Finalize merge from Hurd folk. Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu> * thread.c (thread_apply_command, thread_apply_all_command, thread_command): Make sure TP is alive. (thread_alive): New function. Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu> * infrun.c (sig_print_info): Deal better with long signal names. Wed Nov 22 15:23:35 1995 Miles Bader <miles@gnu.ai.mit.edu> * thread.c (thread_id_to_pid): New function. Fri Dec 1 13:25:25 1995 Miles Bader <miles@gnu.ai.mit.edu> * gnu-nat.c: (set_thread_cmd_list, show_thread_cmd_list, set_thread_default_cmd_list, show_thread_default_cmd_list): New variables. (set_thread_cmd, show_thread_cmd, set_thread_default_cmd, show_thread_default_cmd): New functions. Fri Apr 18 15:20:16 1997 Miles Bader <miles@gnu.ai.mit.edu> * gnu-nat.c (inf_startup): remove TASK parameter. (inf_set_task): replace with new function (inf_set_pid). * gdbthread.h: Add extern decl for thread_cmd_list.
1997-04-29Mon Apr 28 21:25:32 1997 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-85/+156
* Makefile.in: Add rule for gnu-nat.o and i386gnu-nat.o (Gnu Hurd) * config/i386/i386gnu.mh: remove rules for [i386]gnu-nat.o, now in Makefile.in (as for other targets); add NATDEPFILE corelow.o to satisfy symbol dependancy in solib.c (core_ops). * target.[ch] conditionalize Mach-specific signals so that they won't show up in non-Mach gdb's! * thread.c: add function thread_id_to_pid; change name of static function "thread_switch" to "switch_to_thread", to avoid conflict with Mach global symbol; move thread_cmd_list to global scope so targets can add their own thread commands. * infrun.c: sig_print_info: allow for long signal names. * gnu-nat.[ch]: tidying up comments. * gnu-nat.c: move several functions to static scope, just for tidy; remove calls to prune_threads and renumber_threads; gnu_wait must not return -1 when inferior exits; attach_to_child will modify inferior_pid in a way that allows fork_inferior to remain unchanged; remove extra arg from startup_inferior; move mach-specific thread commands here from thread.c.
1996-07-17Changes from the FSF for Hurd thread support.Stu Grossman1-96/+383
1996-04-08 From: Miles Bader <miles@gnu.ai.mit.edu>Fred Fish1-0/+2814
* gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c, msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk, config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h, m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.