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.
This commit is contained in:
John Polstra 1997-11-27 21:26:08 +00:00
parent 231db54530
commit 5f6c54ce0a

View File

@ -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));