mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
gdb/
* source.c (symtab_to_fullname): Do not prepend DIRNAME for non-existing files if FILENAME is already absolute.
This commit is contained in:
@ -3,6 +3,9 @@
|
|||||||
* source.c (symtab_to_fullname): Apply rewrite_source_path also for
|
* source.c (symtab_to_fullname): Apply rewrite_source_path also for
|
||||||
non-existing files.
|
non-existing files.
|
||||||
|
|
||||||
|
* source.c (symtab_to_fullname): Do not prepend DIRNAME for
|
||||||
|
non-existing files if FILENAME is already absolute.
|
||||||
|
|
||||||
2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
|
* macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
|
||||||
|
@ -1102,7 +1102,7 @@ symtab_to_fullname (struct symtab *s)
|
|||||||
/* rewrite_source_path would be applied by find_and_open_source, we
|
/* rewrite_source_path would be applied by find_and_open_source, we
|
||||||
should report the pathname where GDB tried to find the file. */
|
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);
|
fullname = xstrdup (s->filename);
|
||||||
else
|
else
|
||||||
fullname = concat (s->dirname, SLASH_STRING, s->filename, NULL);
|
fullname = concat (s->dirname, SLASH_STRING, s->filename, NULL);
|
||||||
|
Reference in New Issue
Block a user