objdump: '-S' should trigger search for separate debuginfo.
Add with_source_code to the command line options that trigger might_need_separate_debug_info and dump_any_debugging. This helps 'objdump -S' download missing files via debuginfod without the need for specifying extra command line options like '-L'.
This commit is contained in:
parent
8fa9bc6a03
commit
e9a241e87b
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2022-09-12 Aaron Merey <amerey@redhat.com>
|
||||||
|
|
||||||
|
* objcopy.c (might_need_separate_debug_info): Add with_source_code to
|
||||||
|
the options that cause this function to return true.
|
||||||
|
(main.c): Add with_source_code to the options that enable
|
||||||
|
dump_any_debugging.
|
||||||
|
|
||||||
2022-09-09 Nick Clifton <nickc@redhat.com>
|
2022-09-09 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
PR 29532
|
PR 29532
|
||||||
|
|
|
@ -5407,7 +5407,7 @@ might_need_separate_debug_info (bool is_mainfile)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (process_links || dump_symtab || dump_debugging
|
if (process_links || dump_symtab || dump_debugging
|
||||||
|| dump_dwarf_section_info)
|
|| dump_dwarf_section_info || with_source_code)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -6114,7 +6114,8 @@ main (int argc, char **argv)
|
||||||
|
|
||||||
dump_any_debugging = (dump_debugging
|
dump_any_debugging = (dump_debugging
|
||||||
|| dump_dwarf_section_info
|
|| dump_dwarf_section_info
|
||||||
|| process_links);
|
|| process_links
|
||||||
|
|| with_source_code);
|
||||||
|
|
||||||
if (formats_info)
|
if (formats_info)
|
||||||
exit_status = display_info ();
|
exit_status = display_info ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue