* PR28540, segmentation fault on NULL byte_get
@ 2021-11-04 3:45 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2021-11-04 3:45 UTC (permalink / raw)
To: binutils
It doesn't make much sense to go looking for separate debug info files
on tekhex files..
PR 28540
* objdump.c (dump_bfd): Don't attempt load_separate_debug_files
when byte_get is NULL.
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 356e3ecd853..1bfb5c71e7a 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -4862,7 +4862,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));
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-04 3:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 3:45 PR28540, segmentation fault on NULL byte_get Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).