aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
AgeCommit message (Collapse)AuthorFilesLines
2004-10-30* procfs.c (procfs_fetch_registers, procfs_store_registers): LikeMark Kettenis1-2/+0
Remove optimization for DEPRECATED_FP_REGNUM.
2004-10-30* procfs.c (proc_get_gregs, proc_get_fpregs, proc_set_gregs)Mark Kettenis1-135/+117
(proc_set_fpregs, procfs_fetch_registers, procfs_store_registers): Cleanup coding style.
2004-10-082004-10-08 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-5/+5
* 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-10-05* procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUFMark Kettenis1-1/+1
when writing to memory.
2004-08-27 * procfs.c (dbx_link_bpt_addr): New static global variable.Joel Brobecker1-25/+237
(dbx_link_shadow_contents): New static global variable. (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events. (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint if we just hit it. (procfs_init_inferior): Enable syssgi() syscall trace if appropriate. Reset dbx_link_bpt_addr as the address of __dbx_link() may change from run to run. (procfs_create_inferior): Remove syssgi syscall-exit notifications after the inferior has been forked. (remove_dbx_link_breakpoint): New function. (dbx_link_addr): New function. (insert_dbx_link_bpt_in_file): New function. (insert_dbx_link_bpt_in_region): New function. (insert_dbx_link_breakpoint): New function. (proc_trace_syscalls_1): New function, extracted from proc_trace_syscalls. (proc_trace_syscalls): Replace extract code by call to proc_trace_syscalls_1. * solib-irix.c (disable_break): Remove stop_pc assertion, as it is no longer valid.
2004-08-11* procfs.c (procfs_detach): Cleanup. Print process ID, not LWPMark Kettenis1-10/+15
ID. Use comma in output. Use gdb_flush on gdb_stdout instead of fflush on stdout.
2004-08-10* procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.Mark Kettenis1-1/+1
2004-08-08* procfs.c (procfs_pid_to_str): Remove redundant and unusedMark Kettenis1-16/+6
variables. Incapitalized "process".
2004-05-252004-05-25 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+3
* 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-02-152004-02-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-5/+2
* procfs.c (procfs_init_inferior): Assume that START_INFERIOR_TRAPS_EXPECTED is defined. * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h. * config/ns32k/tm-nbsd.h: Delete file, START_INFERIOR_TRAPS_EXPECTED already defined as 2.
2004-02-012004-01-28 Roland McGrath <roland@redhat.com>Roland McGrath1-0/+51
* procfs.c (procfs_xfer_partial): New function. (init_procfs_ops): Use that for procfs_ops.to_xfer_partial. * Makefile.in (procfs.o): Add $(auxv_h) dep. * procfs.c (procfs_make_note_section): If we can read TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it. * linux-proc.c (linux_make_note_section): Likewise.
2004-01-292004-01-29 Roland McGrath <roland@redhat.com>Roland McGrath1-263/+264
* procfs.c: Include gdb_string.h for str* decls, otherwise warnings. * Makefile.in (procfs.o): Add dep.
2004-01-172004-01-17 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-10/+8
* gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete. * gdbarch.h, gdbarch.c: Re-generate. * procfs.c (procfs_fetch_registers): Delete reference to DEPRECATED_NPC_REGNUM. (procfs_store_registers): Ditto. * regcache.c (generic_target_write_pc): Simplify. * lynx-nat.c: Delete #ifdef SPARC code. Not used. Index: doc/ChangeLog 2004-01-17 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Delete documentation on DEPRECATED_NPC_REGNUM.
2003-11-222003-11-22 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+1
* procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment. * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro. * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro. * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
2003-09-212003-09-20 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+0
* breakpoint.c: Eliminate ARGSUSED. * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto. * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto. * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto. * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto. * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto. * remote.c, sol-thread.c, source.c, stabsread.c: Ditto. * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto. * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto. * wince.c, remote-vx.c: Ditto.
2003-09-172003-09-17 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+2
* gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM. * gdbarch.h, gdbarch.c: Regenerate. * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update. * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update. * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update. * sparcnbsd-tdep.c: Update.
2003-04-292003-04-28 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+2
* gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP. (DEPRECATED_FP_REGNUM): Replace FP_REGNUM. * gdbarch.h, gdbarch.c: Re-generate. * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM, DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID. * inferior.h (deprecated_read_fp): Rename read_fp. (generic_target_read_fp): Delete declaration. * regcache.c (generic_target_read_fp): Delete function. (deprecated_read_fp): Replace read_fp, use DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM. * d10v-tdep.c (d10v_read_fp): Delete function. (d10v_gdbarch_init): Do not set deprecated_read_fp. * sparc-tdep.c (sparc_gdbarch_init): Do not set deprecated_target_read_fp to generic_target_read_fp. * sh-tdep.c (sh_gdbarch_init): Ditto. * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. * frv-tdep.c (frv_gdbarch_init): Ditto. * xstormy16-tdep.c (xstormy16_gdbarch_init): Set deprecated_fp_regnum. * x86-64-tdep.c (x86_64_init_abi): Ditto. * vax-tdep.c (vax_gdbarch_init): Ditto. * v850-tdep.c (v850_gdbarch_init): Ditto. * sparc-tdep.c (sparc_gdbarch_init): Ditto. * sh-tdep.c (sh_gdbarch_init): Ditto. * s390-tdep.c (s390_gdbarch_init): Ditto. * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto. * m68k-tdep.c (m68k_gdbarch_init): Ditto. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. * ia64-tdep.c (ia64_gdbarch_init): Ditto. * i386-tdep.c (i386_gdbarch_init): Ditto. * hppa-tdep.c (hppa_gdbarch_init): Ditto. * h8300-tdep.c (h8300_gdbarch_init): Ditto. * frv-tdep.c (frv_gdbarch_init): Ditto. * cris-tdep.c (cris_gdbarch_init): Ditto. * avr-tdep.c (avr_gdbarch_init): Ditto. * arm-tdep.c (arm_gdbarch_init): Ditto. * alpha-tdep.c (alpha_gdbarch_init): Ditto. * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp. * v850-tdep.c (v850_gdbarch_init): Ditto. * sparc-tdep.c (sparc_gdbarch_init): Ditto. * sh-tdep.c (sh_gdbarch_init): Ditto. * s390-tdep.c (s390_gdbarch_init): Ditto. * rs6000-tdep.c (rs6000_gdbarch_init): Ditto. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. * mips-tdep.c (mips_gdbarch_init): Ditto. * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto. * ia64-tdep.c (ia64_gdbarch_init): Ditto. * hppa-tdep.c (hppa_gdbarch_init): Ditto. * frv-tdep.c (frv_gdbarch_init): Ditto. * avr-tdep.c (avr_gdbarch_init): Ditto. * arm-tdep.c (arm_gdbarch_init): Ditto. * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with DEPRECATED_FP_REGNUM. (vax_push_dummy_frame, vax_pop_frame): Ditto. * std-regs.c (value_of_builtin_frame_fp_reg): Ditto. * sparc-tdep.c (sparc_init_extra_frame_info): Ditto. (sparc_push_dummy_frame, sparc64_read_fp): Ditto. (sparc32_register_virtual_type): Ditto. * sh-tdep.c (sh64_frame_chain): Ditto. (sh64_get_saved_register, sh64_pop_frame): Ditto. (sh_nofp_frame_init_saved_regs): Ditto. (sh64_nofp_frame_init_saved_regs): Ditto. (sh_fp_frame_init_saved_regs): Ditto. * remote-mips.c (mips_wait, mips_fetch_registers): Ditto. * remote-e7000.c (fetch_regs_from_dump): Ditto. * procfs.c (procfs_fetch_registers): Ditto. (procfs_store_registers): Ditto. * ns32knbsd-nat.c (fetch_inferior_registers): Ditto. (store_inferior_registers, fetch_core_registers): Ditto. (fetch_kcore_registers, clear_regs): Ditto. * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto. (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto. * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto. * nlm/i386.c (do_status): Ditto. * mipsv4-nat.c (supply_gregset): Ditto. * mips-tdep.c: Ditto for comments. * mips-nat.c (fetch_inferior_registers): Ditto. (store_inferior_registers, fetch_core_registers): Ditto. * m68k-tdep.c (m68k_push_dummy_frame): Ditto. (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto. * i386-tdep.c (i386_frame_init_saved_regs): Ditto. (i386_do_pop_frame, i386_register_type): Ditto. * hppa-tdep.c (hppa_frame_chain): Ditto. (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto. (hppa_pop_frame, hppa_read_fp): Ditto. (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto. * cris-tdep.c (cris_examine, cris_pop_frame): Ditto. * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto. * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto. * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto. * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto. * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto. * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto. * blockframe.c: Ditto for comments. * arch-utils.h: Ditto for comments. * arch-utils.c (legacy_virtual_frame_pointer): Ditto. * alphanbsd-tdep.c (fetch_core_registers): Ditto. * alphabsd-nat.c (fetch_inferior_registers): Ditto. * alpha-tdep.h: Ditto for comments. * alpha-tdep.c (alpha_cannot_fetch_register): Ditto. (alpha_cannot_store_register): Ditto. (alpha_push_dummy_frame): Ditto. * alpha-nat.c (supply_gregset): Ditto. * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update. * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update. * config/sparc/tm-sparc.h: Update comment. * hppa-tdep.c (hppa_init_extra_frame_info): Use deprecated_read_fp instead of TARGET_READ_FP. (hppa_init_extra_frame_info, hppa_frame_chain): Ditto. (hppa_push_dummy_frame, hppa_read_fp): Ditto. * sparc-tdep.c (sparc_init_extra_frame_info): Use deprecated_read_fp instead of read_fp. * s390-tdep.c (s390_push_arguments): Ditto. * ia64-tdep.c (ia64_gdbarch_init): Ditto. * frame.h: Ditto in comments. * frame.c (legacy_get_prev_frame): Ditto. * dummy-frame.c (dummy_frame_this_id): Ditto. * arm-tdep.c (arm_init_extra_frame_info): Ditto. 2003-04-28 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Replace read_fp, TARGET_READ_FP and FP_REGNUM, with deprecated_read_fp, DEPRECATED_TARGET_READ_FP and DEPRECATED_REGNUM.
2003-02-072003-02-06 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-2/+5
* Makefile.in (symm-nat.o): Update dependencies. (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto. (lynx-nat.o, ia64-linux-nat.): Ditto. * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include "gdb_wait.h" instead of <wait.h> or <sys/wait.h>. * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2003-02-072003-02-06 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-2/+1
* Makefile.in (inflow_h): Define. (procfs.o, inflow.o, procfs.o): Update dependencies. * inftarg.c (child_stop): Delete extern declaration of inferior_process_group. Include "inflow.h". * procfs.c (procfs_stop): Ditto. Include "inflow.h". * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ... * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file. (our_process_group, inferior_process_group): Extern declarations.
2003-02-072003-02-06 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-0/+1
* procfs.c: Include "gdb_assert.h".
2003-02-012003-02-01 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-6/+23
* defs.h (host_pointer_to_address): Delete declaration. (address_to_host_pointer): Delete declaration. * utils.c (host_pointer_to_address): Delete function. (address_to_host_pointer): Delete function. * procfs.c (procfs_address_to_host_pointer): New function. * procfs.c (proc_set_watchpoint): Use. (procfs_can_use_hw_breakpoint): Update comments. * somsolib.c (hpux_address_to_host_pointer_hack): New function. (som_solib_add): Use. * hppa-tdep.c (hppa_pointer_to_address_hack): New function. * hppa-tdep.c (unwind_command): Use.
2002-09-112002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>Michael Snyder1-0/+3
* procfs.c (do_detach): Clear current signal, not just fault. Corrects problem with breakpoint trap signal leaking to detached process on Tru64.
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-08-13 * procfs.c (procfs_can_use_hw_breakpoint): New function.Kevin Buettner1-0/+34
(init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs target vector. * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete. Add comment regarding this now-deleted target method.
2002-07-11Fix some K&R isms.Andrew Cagney1-2/+1
2002-02-142002-02-13 Michael Snyder <msnyder@redhat.com>Michael Snyder1-3/+7
* gcore.c (gcore_command): Use gcore_default_target instead of NULL. (default_gcore_mach): Just return 0, work around a problem in bfd. (default_gcore_target): OK to return NULL if exec_bfd is null. (make_mem_sec): Use a cast, avoid a warning. * procfs.c (find_memory_regions_callback): Use a cast instead of calling host_pointer_to_address (which complains if sizeof (host pointer) != sizeof (target pointer)). (procfs_make_note_section): Avoid overflow in psargs string.
2002-02-132002-02-13 Michael Snyder <msnyder@redhat.com>Michael Snyder1-12/+38
* procfs.c (procfs_make_note_section): Make the default implementation return an error. 2002-02-13 Rodney Brown <rbrown64@csc.com.au> * procfs.c (procfs_make_note_section): Provide a default definition (for alpha-dec-osf4.0f). Fix typos. 2002-02-11 Michael Snyder <msnyder@redhat.com> * procfs.c: Include elf-bfd.h (for elfcore_write functions). (gcore section): Ifdef for Solaris and Unixware only. (procfs_do_thread_registers): Unixware needs one lwpstatus per thread (not one prstatus or pstatus). (procfs_make_note_section): Iterate only over kernel threads (lwps), not over all gdb threads. For unixware, call elfcore_write_pstatus once before iterating over threads.
2002-01-092002-01-03 Michael Snyder <msnyder@redhat.com>Michael Snyder1-40/+215
Implement a "generate-core-file" command in gdb, save target state. * gcore.c: New file. Implement new command 'generate-core-file'. Save a corefile image of the current state of the inferior. * linux-proc.c: Add linux-specific code for saving corefiles. * target.h (struct target_ops): Add new target vectors for saving corefiles; to_find_memory_regions and to_make_corefile_notes. (target_find_memory_regions): New macro. (target_make_corefile_notes): New macro. * target.c (update_current_target): Inherit new target methods. (dummy_find_memory_regions): New place-holder method. (dummy_make_corefile_notes): New place-holder method. (init_dummy_target): Initialize new dummy target vectors. * exec.c (exec_set_find_memory_regions): New function. Allow the exec_ops vector for memory regions to be taken over. (exec_make_note_section): New function, target vector method. * defs.h (exec_set_find_memory_regions): Export prototype. * procfs.c (proc_find_memory_regions): New function, corefile method. (procfs_make_note_section): New function, corefile method. (init_procfs_ops): Set new target vector pointers. (find_memory_regions_callback): New function. (procfs_do_thread_registers): New function. (procfs_corefile_thread_callback): New function. * sol-thread.c (sol_find_memory_regions): New function. (sol_make_note_section): New function. (init_sol_thread_ops): Initialize new target vectors. * inftarg.c (inftarg_set_find_memory_regions): New function. Allow to_find_memory_regions vector to be taken over. (inftarg_set_make_corefile_notes): New function. Allow to_make_corefile_notes vector to be taken over. * thread-db.c (thread_db_new_objfile): Don't activate thread-db interface layer if not target_has_execution (may be a corefile). * config/i386/linux.mh: Add gcore.o to NATDEPFILES. * config/sparc/sun4sol2.mh: Ditto. * config/alpha/alpha-linux.mh: Ditto. * config/arm/linux.mh: Ditto. * config/i386/x86-64linux.mh: Ditto. * config/ia64/linux.mh: Ditto. * config/m68k/linux.mh: Ditto. * config/mips/linux.mh: Ditto. * config/powerpc/linux.mh: Ditto. * config/sparc/linux.mh: Ditto.
2002-01-032001-12-28 Michael Snyder <msnyder@redhat.com>Michael Snyder1-170/+192
Abstract the functionality of iterating over mapped memory regions into a general purpose iterator function. * procfs.c (iterate_over_mappings): New function, general purpose iterator for memory sections. (proc_iterate_over_mappings): Reimplement using iterate_over_mappings. (solib_mappings_callback): New function, callback for above. (info_proc_mappings): Reimpliment using iterate_over_mappings. (info_mappings_callback): New function, callback for above. * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
2001-12-282001-12-21 Michael Snyder <msnyder@redhat.com>Michael Snyder1-11/+142
* procfs.c (info_proc_cmd): Add the 'mappings' sub-command that was dropped a few years ago, when procfs.c was rewritten. (info_proc_mappings): New function, implement 'info proc mappings'. (mappingflags): New function. (_initialize_procfs): Document new option to 'info proc' command.
2001-07-07Allocate/free space associated with saved_entryset and saved_exitset.Kevin Buettner1-0/+5
2001-07-062001-07-06 Michael Snyder <msnyder@redhat.com>Michael Snyder1-4/+1
* procfs.c (procfs_resume): Silence noisy warning.
2001-05-15Redefine ptid_t to be a struct rather than an int.Kevin Buettner1-12/+0
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-109/+113
2001-04-17Add code to retry certain open()s.Kevin Buettner1-9/+44
2001-04-132001-04-13 Fernando Nasser <fnasser@redhat.com>Fernando Nasser1-0/+2
From Adam Mirowski <Adam.Mirowski@Sun.COM> Fixed Insight on Solaris. It was not possible to debug a process because of EINTR "errors". * procfs.c: (procfs_wait): if proc_wait_for_stop() fails with EINTR, retry the call.
2001-03-27Add AIX5 procfs support.Kevin Buettner1-287/+708
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-2/+4
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+1
2001-01-162001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-2/+6
* procfs.c (procfs_stopped_by_watchpoint): Don't die if process goes away -- just return false.
2000-12-15Replace free() with xfree().Kevin Buettner1-2/+2
2000-09-30Protoization.Kevin Buettner1-12/+16
2000-07-30Protoization.Kevin Buettner1-264/+105
2000-06-12Eliminate use of PARAMS.Kevin Buettner1-4/+3
2000-06-04Add host_pointer_to_address() and address_to_host_pointer(). AddAndrew Cagney1-2/+3
signed_pointer_to_address() etc. Rename generic_pointer_to_address() to unsigned_pointer_to_address() etc.
2000-06-04Eliminate PARAMS from function pointer declarations.Kevin Buettner1-2/+2
2000-05-28PARAMS removal.Kevin Buettner1-84/+80
2000-05-262000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-31/+3
* gregset.h: New file. Typedefs for gdb_gregset_t and gdb_fpregset_t, prototypes for supply_gregset and friends. * procfs.c: Include gregset.h. Delete local prototypes for supply_gregset etc., and local typedef gdb_gregset_t etc. * sol-thread.c: Include gregset.h, delete local prototypes, add appropriate casts to gdb_gregset_t. * uw-thread.c, lin-thread.c, core-sol2.c, core-regset.c, sparc-tdep.c, ptx4-nat.c, ppc-linux-nat.c, mipsv4-nat.c, m88k-nat.c, m68klinux-nat.c, m68k-tdep.c, irix5-nat.c, irix4-nat.c, ia64-linux-nat.c, i386v4-nat.c, cxux-nat.c, arm-linux-nat.c, alpha-nat.c: Include gregset.h. * config/nm-linux.h: Define GDB_GREGSET_T, GDB_FPREGET_T. * config/sparc/tm-sun4sol2.h: Ditto.
2000-05-25Replace <sys/dir.h> (and <dirent.h>) with "gdb_dirent.h".Andrew Cagney1-2/+2