aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-proc.c
AgeCommit message (Collapse)AuthorFilesLines
2004-09-282004-09-28 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-737/+0
* linux-proc.c: Delete file. * Makefile.in: Update. * config/sparc/linux64.mh (NATDEPFILES): * config/sparc/linux.mh (NATDEPFILES): Update. * config/s390/s390.mh (NATDEPFILES): Update. * config/powerpc/ppc64-linux.mh (NATDEPFILES): Update. * config/powerpc/linux.mh (NATDEPFILES): Update. * config/pa/linux.mh (NATDEPFILES): Update. * config/mips/linux.mh (NATDEPFILES): Update. * config/m68k/linux.mh (NATDEPFILES): Update. * config/ia64/linux.mh (NATDEPFILES): Update. * config/i386/linux64.mh (NATDEPFILES): Update. * config/i386/linux.mh (NATDEPFILES): Update. * config/arm/linux.mh (NATDEPFILES): Update. * config/alpha/alpha-linux.mh (NATDEPFILES): Update. * linux-nat.c: Update copyright. Include <sys/param.h>, <sys/procfs.h>, "elf-bfd.h", "gregset.h", <ctype.h>, "gdbthread.h", "gdb_stat.h", <fcntl.h>. (O_LARGEFILE): Possibly define. (_initialize_linux_nat, linux_proc_pending_signals) (add_line_to_sigset, linux_proc_xfer_memory) (linux_nat_info_proc_cmd, linux_nat_make_corefile_notes) (linux_nat_do_registers, linux_nat_corefile_thread_callback) (struct linux_corefile_thread_data) (linux_nat_do_thread_registers, linux_nat_find_memory_regions) (child_pid_to_exec_file): Insert code previously in linux-proc.c.
2004-02-012004-01-28 Roland McGrath <roland@redhat.com>Roland McGrath1-8/+18
* 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.
2003-10-012003-09-24 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-2/+22
* linux-proc.c (linux_do_registers): New function. (linux_make_note_section): Use linux_do_registers in case of single threaded inferior programs.
2003-09-07 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.Daniel Jacobowitz1-0/+83
(stop_wait_callback): Handle !lp->signalled also. (lin_lwp_has_pending, flush_callback): New functions. (lin_lwp_wait): Call flush_callback. * linux-proc.c (linux_proc_add_line_to_sigset): New function. (linux_proc_pending_signals): New function. * linux-nat.h (linux_proc_pending_signals): Add prototype.
2003-08-272003-08-27 David Carlton <carlton@kealia.com>David Carlton1-13/+30
From Randolph Chung <tausq@debian.org>: * linux-proc.c (linux_info_proc_cmd): rework the code so that it compiles with -Wformat-nonliteral -Werror.
2003-08-24* linux-proc.c (linux_proc_xfer_memory): Remove comment aboutMark Kettenis1-5/+1
CFLAGS games to reflect reality.
2003-08-042003-08-04 David Carlton <carlton@kealia.com>David Carlton1-1/+1
* charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args to internal_error call. * source.c (forward_search_command): Add "%s" format argument. (reverse_search_command): Ditto. * top.c (quit_confirm): Ditto. * cli/cli-setshow.c (do_setshow_command): Ditto. * cp-valprint.c (cp_print_class_method): Replace {f,}printf_{un,}filtered by {f,}puts_{un,}filtered. (cp_print_class_member): Ditto. * event-top.c (command_line_handler): Ditto. * linux-proc.c (linux_info_proc_cmd): Ditto. * p-typeprint.c (pascal_type_print_base): Ditto. * p-valprint.c (pascal_object_print_class_method): Ditto. (pascal_object_print_class_member): Ditto. * printcmd.c (print_scalar_formatted,printf_command): Ditto. * remote.c (remote_cisco_section_offsets): Ditto. * top.c (command_line_input): Ditto. * utils.c (vwarning,error_stream,quit): Ditto. * valprint.c (print_floating,print_binary_chars) (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto. 2003-08-04 David Carlton <carlton@kealia.com> * mi-main.c (mi_error_last_message): Add "%s" second argument to xasprintf call. 2003-08-04 David Carlton <carlton@kealia.com> * generic/gdbtk.c (gdbtk_source_start_file): Add "%s" first argument to error call. (tk_command): Ditto. (view_command): Ditto.
2003-06-192003-06-19 Michael Snyder <msnyder@redhat.com>Michael Snyder1-4/+6
* linux-nat.h: New file. * linux-nat.c: Include linux-nat.h. * lin-lwp.c: Include linux-nat.h. Move struct lwp_info def to linux-nat.h. * linux-proc.c: Include linux-nat.h. (linux_make_note_section): Iterate over lwps instead of threads. (linux_do_thread_registers): Use lwp instead of merged pid. * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h. * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o): Add dependency on linux_nat_h.
2003-03-282003-03-28 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston1-112/+93
* thread.c: Reindented. * lin-lwp.c: Ditto. * linux-proc.c: Ditto.
2003-02-072003-02-06 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-1/+1
* linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>. * cp-valprint.c (cp_print_value_fields): Eliminate STREQN. * jv-typeprint.c (java_type_print_base): Ditto. * typeprint.c (typedef_print): Eliminate STREQ. * cli/cli-script.c (define_command, define_command): Ditto. * main.c (captured_main): Ditto. * values.c (lookup_internalvar): Ditto. * utils.c (safe_strerror, parse_escape): Eliminate assignment within `if' conditional. * linespec.c (decode_line_2): Ditto. * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto. (bfd_openw_with_cleanup): Ditto. Index: mi/ChangeLog 2003-02-06 Andrew Cagney <ac131313@redhat.com> * mi-cmd-env.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2002-11-26 * acconfig.h (HAVE_PREAD64): Add.Daniel Jacobowitz1-0/+49
* configure.in: Check for pread64. * config.in: Regenerated. * configure: Regenerated. * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory. * linux-proc.c (linux_proc_xfer_memory): New function. * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2002-08-23* linux-proc.c (struct linux_corefile_thread_data): Add num_notesMark Kettenis1-5/+9
member. (linux_corefile_thread_callback): Increase args->num_notes. (linux_make_note_section): Initialize thread_args.num_notes, and use it to determine whether notes for any threads were created.
2002-08-01* linux-proc.c: Include "gdb_string.h".Andrew Cagney1-0/+1
* Makefile.in (linux-proc.o): Update dependency list.
2002-04-242002-04-24 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-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-252002-03-25 Jeff Law (law@redhat.com)Michael Snyder1-1/+8
* linux-proc.c (read_mapping): Scan up to end of line for filename.
2002-02-24s/Linux/.../Andrew Cagney1-1/+2
Fix PR gdb/378.
2002-02-132002-02-13 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-0/+1
* linux-proc.c: Add include of regcache.h. * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2002-01-152002-01-10 Michael Snyder <msnyder@redhat.com>Michael Snyder1-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-142002-01-14 Michael Snyder <msnyder@redhat.com>Michael Snyder1-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-092002-01-08 Michael Snyder <msnyder@redhat.com>Michael Snyder1-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-092002-01-03 Michael Snyder <msnyder@redhat.com>Michael Snyder1-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-082002-01-07 Michael Snyder <msnyder@redhat.com>Michael Snyder1-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.