summaryrefslogtreecommitdiff
path: root/gdb/procfs.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>Michael Snyder2002-09-111-0/+3
| | | | | | * procfs.c (do_detach): Clear current signal, not just fault. Corrects problem with breakpoint trap signal leaking to detached process on Tru64.
* Fix PR gdb/393:Stephane Carrez2002-08-261-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.
* * procfs.c (procfs_can_use_hw_breakpoint): New function.Kevin Buettner2002-08-131-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.
* Fix some K&R isms.Andrew Cagney2002-07-111-2/+1
|
* 2002-02-13 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-02-141-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-13 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-02-131-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-03 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-01-091-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.
* 2001-12-28 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-01-031-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-21 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-12-281-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.
* Allocate/free space associated with saved_entryset and saved_exitset.Kevin Buettner2001-07-071-0/+5
|
* 2001-07-06 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-07-061-4/+1
| | | | * procfs.c (procfs_resume): Silence noisy warning.
* Redefine ptid_t to be a struct rather than an int.Kevin Buettner2001-05-151-12/+0
|
* Phase 1 of the ptid_t changes.Kevin Buettner2001-05-041-109/+113
|
* Add code to retry certain open()s.Kevin Buettner2001-04-171-9/+44
|
* 2001-04-13 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2001-04-131-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.
* Add AIX5 procfs support.Kevin Buettner2001-03-271-287/+708
|
* malloc() -> xmalloc.Andrew Cagney2001-03-201-5/+2
| | | | Move malloc() decl to utils.c
* Add ``attrib'' parameter to *xfer_memory() functions.Andrew Cagney2001-03-151-2/+4
|
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+1
|
* 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2001-01-161-2/+6
| | | | | * procfs.c (procfs_stopped_by_watchpoint): Don't die if process goes away -- just return false.
* Replace free() with xfree().Kevin Buettner2000-12-151-2/+2
|
* Protoization.Kevin Buettner2000-09-301-12/+16
|
* Protoization.Kevin Buettner2000-07-301-264/+105
|
* Eliminate use of PARAMS.Kevin Buettner2000-06-121-4/+3
|
* Add host_pointer_to_address() and address_to_host_pointer(). AddAndrew Cagney2000-06-041-2/+3
| | | | | signed_pointer_to_address() etc. Rename generic_pointer_to_address() to unsigned_pointer_to_address() etc.
* Eliminate PARAMS from function pointer declarations.Kevin Buettner2000-06-041-2/+2
|
* PARAMS removal.Kevin Buettner2000-05-281-84/+80
|
* 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-05-261-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.
* Replace <sys/dir.h> (and <dirent.h>) with "gdb_dirent.h".Andrew Cagney2000-05-251-2/+2
|
* Purge procfs.c of make_cleanup_func.Andrew Cagney2000-05-221-5/+18
|
* 2000-05-08 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-05-101-34/+35
| | | | | | | | | | | | | | | | * gdbarch.sh: Add FP0_REGNUM to list of multi-arched register numbers. * gdbarch.c, gdbarch.h: Regenerate. * core-regset.c: Change FP0_REGNUM to a runtime test. * procfs.c: Ditto. * sun3-nat.c: Ditto. * sparc-tdep.c: Ditto. * i386mach-nat.c: Remove unnecessary ifdef for FP0_REGNUM. * ptx4-nat.c: Ditto. * sol-thread.c (sol_thread_create_inferior): only add the thread to the thread list if it is not already in there. (prototypes for thread_db func ptrs): pretty up formatting.
* * procfs.c (PROCFS_TRACE): Delete definition.Andrew Cagney2000-05-071-1/+0
| | | | * proc-utils.h (PROCFS_NOTE, PROC_PRETTYFPRINT_STATUS): Always define.
* 2000-05-05 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-05-051-35/+10
| | | | | | | | | | | | | * procfs.c: Cleanup of procfs tracing. Move defines and prototypes to proc-utils.h * proc-utils.h: Define tracing macros. Declare trace functions. * proc-api.c: Make procfs tracing a runtime option. (prepare_to_trace): New function, abstracted out of several places. Open a trace file if one is required. (ioctl_with_trace, write_with_trace, open_with_trace, close_with_trace, wait_with_trace, lseek_with_trace): Report errno if an error occurs in a system call. (write_with_trace): Make 2nd arg void *, to agree with write.
* 2000-05-05 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-05-051-15/+15
| | | | | | | | | | * procfs.c (many functions): change int cmd; to long cmd; Solaris /proc API calls this parameter a long, and requires it for 64-bit hosts (where sizeof(long) != sizeof(int)). UnixWare calls it an int, but on existing UnixWare hosts, int and long are the same size. So long it must be. If a future UnixWare version has problems with this, we'll have to use autoconf. * proc-api.c (write_with_trace): use long instead of int.
* Multi-arch NPC_REGNUM NNPC_REGNUM.Andrew Cagney2000-05-021-6/+2
|
* 2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder2000-04-271-28/+17
| | | | | | | | * procfs.c (comments): Eliminate "???" in comments, which GCC wants to interpret as a trigraph. (fill_gregset, supply_gregset, fill_fpregset, supply_fpregset): declare. (procfs_wait): Sysargs is a long, change printf format to match. (test-mapping, mapping_test, test_mapping_cmd) Remove (test only).
* From 2000-03-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:Andrew Cagney2000-04-071-0/+2
| | | | | * procfs.c (init_procfs_ops): Set procfs_ops.to_has_memory and procfs_ops.to_has_all_memory to 1.
* 2000-03-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>Michael Snyder2000-03-281-2/+2
| | | | | * procfs.c (proc_set_watchpoint): Declare addr parameter as CORE_ADDR, to match call from procfs_set_watchpoint.
* From Peter Schauer: Fix Solaris/x86 threads by copying linux code.Andrew Cagney2000-02-291-17/+0
|
* From Rodney Brown: Define MERGEPID when needed.Andrew Cagney2000-02-161-0/+2
|
* import gdb-2000-01-24 snapshotJason Molenda2000-01-251-19/+34
|
* import gdb-2000-01-10 snapshotJason Molenda2000-01-111-47/+65
|
* import gdb-2000-01-05 snapshotJason Molenda2000-01-061-5048/+4343
|
* import gdb-1999-12-21 snapshotJason Molenda1999-12-221-0/+3
|
* import gdb-1999-11-08 snapshotJason Molenda1999-11-091-14/+36
|
* import gdb-1999-10-04 snapshotJason Molenda1999-10-051-1/+1
|
* import gdb-1999-09-28 snapshotJason Molenda1999-09-281-8/+16
|
* import gdb-1999-08-30 snapshotJason Molenda1999-08-311-1/+0
|
* import gdb-1999-07-07 post reformatJason Molenda1999-07-071-1227/+1356
|
* import gdb-19990504 snapshotStan Shebs1999-05-051-2/+2
|