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.
This commit is contained in:
parent
f5750f89e3
commit
b5582ab72f
2 changed files with 6 additions and 1 deletions
|
@ -218,7 +218,7 @@ core_target::build_file_mappings ()
|
|||
{
|
||||
warning (_("Can't open file %s during file-backed mapping "
|
||||
"note processing"),
|
||||
expanded_fname.get ());
|
||||
filename);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue