This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb acconfig.h objfiles.h objfiles.c utils ...
- From: jimb at sources dot redhat dot com
- To: gdb-cvs at sources dot redhat dot com
- Date: 26 Nov 2002 04:50:36 -0000
- Subject: src/gdb acconfig.h objfiles.h objfiles.c utils ...
CVSROOT: /cvs/src
Module name: src
Branch: jimb-separate-debug-021125-branch
Changes by: jimb@sourceware.org 2002-11-25 20:50:36
Modified files:
gdb : acconfig.h objfiles.h objfiles.c utils.c defs.h
configure.in acinclude.m4 configure aclocal.m4
config.in ChangeLog
gdb/doc : gdb.texinfo
Log message:
Add support for executables whose debug info has been separated
out into a separate file, leaving only a link behind.
* objfiles.h (struct objfile): New fields: separate_debug_objfile
and separate_debug_objfile_backlink.
(put_objfile_before): New declaration.
* symfile.c (symbol_file_add_with_addrs_or_offsets): If this
objfile has its debug info in a separate file, read that,
too. Save the addrs argument, so we can use it again to read the
separated debug info; syms_from_objfile modifies the table we pass
it.
(reread_symbols): After re-reading an objfile, call
reread_separate_symbols to refresh its separate debug info
objfile, if it has one.
(reread_separate_symbols, find_separate_debug_file,
get_debug_link_info, separate_debug_file_exists): New functions.
(debug_file_directory): New global var.
(_initialize_symfile): Initialize debug_file_directory, and
provide the new `set debug-file-directory' command to let the user
change it.
* objfiles.c (free_objfile): If this objfile has its debug info in
a separate objfile, free that one too. If this is itself a
separate debug info objfile, clear our parent's backlink.
(put_objfile_before): New function.
* utils.c (calc_crc32): New function.
* defs.h (calc_crc32): New declaration.
* configure.in: Handle --with-separate-debug-dir config option.
* acinclude.m4 (AC_DEFINE_DIR): New macro.
* acconfig.h (DEBUGDIR): New macro.
* configure, aclocal.m4, config.in: Regenerated.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/acconfig.h.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.18&r2=1.18.18.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/objfiles.h.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.15&r2=1.15.12.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/objfiles.c.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.22&r2=1.22.12.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/utils.c.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.85&r2=1.85.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/defs.h.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.102&r2=1.102.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/configure.in.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.93&r2=1.93.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/acinclude.m4.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.4&r2=1.4.6.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/configure.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.93&r2=1.93.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/aclocal.m4.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.9&r2=1.9.6.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/config.in.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.41&r2=1.41.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.3502.2.2&r2=1.3502.2.3
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&only_with_tag=jimb-separate-debug-021125-branch&r1=1.131&r2=1.131.2.1