objdump -g on gcc COFF/PE files
authorAlan Modra <amodra@gmail.com>
Wed, 5 Apr 2023 23:54:01 +0000 (09:24 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 6 Apr 2023 00:21:38 +0000 (09:51 +0930)
commitff93c7b1a208996747759c4533d1d7d6acb41bce
treee7f20d1b586a6d50eb51d467848d4d48107f88f0
parent6ff1cef1b40ccaa45bbbd765d81d750c2dc4f0ac
objdump -g on gcc COFF/PE files

objdump -g can't be used much.  Trying to dump PE files invariably
seems to run into "debug_name_type: no current file" or similar
errors, because parse_coff expects a C_FILE symbol to be the first
symbol.  Dumping -gstabs output works since the N_SO stab is present.
Pre-setting the file name won't hurt stabs dumping.

* rddbg.c (read_debugging_info): Call debug_set_filename.
binutils/rddbg.c