summaryrefslogtreecommitdiff
path: root/gdb/linux-proc.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-04-24 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-04-241-0/+11
| | | | | | | | * config/i386/tm-linux.h: Define FILL_FPXREGSET. * gregset.h: If FILL_FPXREGSET is defined, provide gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset. * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET is defined, call fill_fpxregset.
* 2002-03-25 Jeff Law (law@redhat.com)Michael Snyder2002-03-251-1/+8
| | | | * linux-proc.c (read_mapping): Scan up to end of line for filename.
* s/Linux/.../Andrew Cagney2002-02-241-1/+2
| | | | Fix PR gdb/378.
* 2002-02-13 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-02-131-0/+1
| | | | | * linux-proc.c: Add include of regcache.h. * Makefile.in (linux-proc.o): Add dependency on regcache.h.
* 2002-01-10 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-01-151-38/+324
| | | | | | | | * linux-proc.c: Add "info proc" command, a la procfs.c. (read_mapping): New function, abstract and re-use code. (linux_find_memory_regions): Use new func read_mapping. (linux_info_proc_cmd): New function, implement "info proc". (_initialize_linux_proc): Add new command "info proc".
* 2002-01-14 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-01-141-11/+0
| | | | | | | * linux-proc.c (linux_do_thread_registers): Ignore fpxregs until we can resolve portability issues. * gregset.h: Remove references to fpxregs. * gcore.c (gcore_command): Initialize note_sec to NULL.
* 2002-01-08 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-01-091-4/+12
| | | | | * linux-proc.c (child_pid_to_exec_file): Use readlink to get the real name of the executable, rather than the /proc name.
* 2002-01-03 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-01-091-2/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-07 Michael Snyder <msnyder@redhat.com>Michael Snyder2002-01-081-0/+32
* linux-proc.c: New file. Implement child_pid_to_exec_file, so that attaching to a pid will automatically read the process's symbol file and shlibs. * Makefile.in: Add rule for linux-proc.o. * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE. * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES. * config/arm/linux.mh: Ditto. * config/i386/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.