mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
Re-enable the dislay of debug sections in separate debuginfo files without the need for -P.
PR 27533 * readelf.c (process_section_contents): Only dump debug information for separate files unless process_links is enabled. (process_object): Always call process_section_contents for separate info files.
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
2021-03-16 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 27533
|
||||
* readelf.c (process_section_contents): Only dump debug
|
||||
information for separate files unless process_links is enabled.
|
||||
(process_object): Always call process_section_contents for
|
||||
separate info files.
|
||||
|
||||
2021-03-15 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR 27487
|
||||
|
@ -15509,6 +15509,9 @@ process_section_contents (Filedata * filedata)
|
||||
{
|
||||
dump_type dump = filedata->dump.dump_sects[i];
|
||||
|
||||
if (filedata->is_separate && ! process_links)
|
||||
dump &= DEBUG_DUMP;
|
||||
|
||||
#ifdef SUPPORT_DISASSEMBLY
|
||||
if (dump & DISASS_DUMP)
|
||||
{
|
||||
@ -21222,10 +21225,10 @@ process_object (Filedata * filedata)
|
||||
res = FALSE;
|
||||
else if (! process_section_headers (d->handle))
|
||||
res = FALSE;
|
||||
else if (! process_section_contents (d->handle))
|
||||
res = FALSE;
|
||||
else if (process_links)
|
||||
{
|
||||
if (! process_section_contents (d->handle))
|
||||
res = FALSE;
|
||||
if (! process_section_groups (d->handle))
|
||||
res = FALSE;
|
||||
if (! process_program_headers (d->handle))
|
||||
|
Reference in New Issue
Block a user