summaryrefslogtreecommitdiffstats
path: root/contrib/gdb/gdb
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-11-27 21:26:08 +0000
committerjdp <jdp@FreeBSD.org>1997-11-27 21:26:08 +0000
commit769d92643fd83e4e0683b78b5c005e132108f14d (patch)
tree8dabbcde34c73f7ed87ad6949bb273f130023449 /contrib/gdb/gdb
parent702819e8e5eae39be34beee919ef5139e8958f7d (diff)
downloadFreeBSD-src-769d92643fd83e4e0683b78b5c005e132108f14d.zip
FreeBSD-src-769d92643fd83e4e0683b78b5c005e132108f14d.tar.gz
The previous revision (objfiles.c:1.2) fixed backtracing in the
absence of full debugging symbols for the kernel, but broke it for application programs. This commit disables that change except when kernel debugging mode is in effect. This needs to go into -2.2 as well, after a suitable burn-in period.
Diffstat (limited to 'contrib/gdb/gdb')
-rw-r--r--contrib/gdb/gdb/objfiles.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/gdb/gdb/objfiles.c b/contrib/gdb/gdb/objfiles.c
index e70ddbe..1d2260f 100644
--- a/contrib/gdb/gdb/objfiles.c
+++ b/contrib/gdb/gdb/objfiles.c
@@ -87,7 +87,8 @@ add_to_objfile_sections (abfd, asect, objfile_p_char)
/* XXX perhaps this should be in bfd_section_vma (), but it wouldn't
even compile there, since a bfd pointer isn't actually passed in
all invocations of bfd_section_vma (). */
- section.addr += bfd_get_start_address (abfd);
+ if (kernel_debugging)
+ section.addr += bfd_get_start_address (abfd);
#endif
section.endaddr = section.addr + bfd_section_size (abfd, asect);
obstack_grow (&objfile->psymbol_obstack, (char *) &section, sizeof(section));
OpenPOWER on IntegriCloud