mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +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>
|
2021-03-15 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR 27487
|
PR 27487
|
||||||
|
@ -15509,6 +15509,9 @@ process_section_contents (Filedata * filedata)
|
|||||||
{
|
{
|
||||||
dump_type dump = filedata->dump.dump_sects[i];
|
dump_type dump = filedata->dump.dump_sects[i];
|
||||||
|
|
||||||
|
if (filedata->is_separate && ! process_links)
|
||||||
|
dump &= DEBUG_DUMP;
|
||||||
|
|
||||||
#ifdef SUPPORT_DISASSEMBLY
|
#ifdef SUPPORT_DISASSEMBLY
|
||||||
if (dump & DISASS_DUMP)
|
if (dump & DISASS_DUMP)
|
||||||
{
|
{
|
||||||
@ -21222,10 +21225,10 @@ process_object (Filedata * filedata)
|
|||||||
res = FALSE;
|
res = FALSE;
|
||||||
else if (! process_section_headers (d->handle))
|
else if (! process_section_headers (d->handle))
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
|
else if (! process_section_contents (d->handle))
|
||||||
|
res = FALSE;
|
||||||
else if (process_links)
|
else if (process_links)
|
||||||
{
|
{
|
||||||
if (! process_section_contents (d->handle))
|
|
||||||
res = FALSE;
|
|
||||||
if (! process_section_groups (d->handle))
|
if (! process_section_groups (d->handle))
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
if (! process_program_headers (d->handle))
|
if (! process_program_headers (d->handle))
|
||||||
|
Reference in New Issue
Block a user