gdb/
* source.c (symtab_to_fullname): Do not prepend DIRNAME for non-existing files if FILENAME is already absolute.
This commit is contained in:
parent
f0a4b570b4
commit
57b3c00c27
2 changed files with 4 additions and 1 deletions
|
@ -1102,7 +1102,7 @@ symtab_to_fullname (struct symtab *s)
|
|||
/* rewrite_source_path would be applied by find_and_open_source, we
|
||||
should report the pathname where GDB tried to find the file. */
|
||||
|
||||
if (s->dirname == NULL)
|
||||
if (s->dirname == NULL || IS_ABSOLUTE_PATH (s->filename))
|
||||
fullname = xstrdup (s->filename);
|
||||
else
|
||||
fullname = concat (s->dirname, SLASH_STRING, s->filename, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue