Don't output null pathname in core_target::build_file_mappings warning
authorKevin Buettner <kevinb@redhat.com>
Thu, 6 Aug 2020 01:29:33 +0000 (18:29 -0700)
committerKevin Buettner <kevinb@redhat.com>
Thu, 6 Aug 2020 01:57:53 +0000 (18:57 -0700)
commitb5582ab72f025c54d4a6e8f459f78a8c92e6df29
treee58877697b0a5bb84d139373ba21d39eff8cfdd8
parentf5750f89e3c5447027f29881e5484e1fda83912b
Don't output null pathname in core_target::build_file_mappings warning

While looking into the regressions reported by Luis Machado, I noticed
that null pathnames were being output in the warnings.  E.g.

warning: Can't open file (null) during file-backed mapping note processing

I've changed the warning to output the pathname found in the note,
like this:

warning: Can't open file /var/lib/docker/aufs/diff/d07c...e21/lib/x86_64-linux-gnu/libc-2.27.so during file-backed mapping note processing

(I've shortened one of the path elements above.)

gdb/ChangeLog:

* corelow.c (core_target::build_file_mappings): Don't output
null pathname in warning.
gdb/ChangeLog
gdb/corelow.c