mirror of
https://github.com/bminor/binutils-gdb.git
synced 2026-02-05 12:01:29 +00:00
PR28540, segmentation fault on NULL byte_get
PR 28540
* objdump.c (dump_bfd): Don't attempt load_separate_debug_files
when byte_get is NULL.
(cherry picked from commit f2f105f518)
This commit is contained in:
@@ -4869,7 +4869,7 @@ dump_bfd (bfd *abfd, bool is_mainfile)
|
||||
|
||||
The test on is_mainfile is there because the chain of separate debug
|
||||
info files is a global variable shared by all invocations of dump_bfd. */
|
||||
if (is_mainfile)
|
||||
if (byte_get != NULL && is_mainfile)
|
||||
{
|
||||
load_separate_debug_files (abfd, bfd_get_filename (abfd));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user