mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
* source.c (find_and_open_source): Always rewrite absolute filenames.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2008-02-08 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* source.c (find_and_open_source): Always rewrite absolute filenames.
|
||||||
|
|
||||||
2008-02-07 Doug Evans <dje@google.com>
|
2008-02-07 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
* breakpoint.c: #include "hashtab.h".
|
* breakpoint.c: #include "hashtab.h".
|
||||||
|
@ -999,10 +999,11 @@ find_and_open_source (struct objfile *objfile,
|
|||||||
strcat (path + len, source_path + len + cdir_len); /* After $cdir */
|
strcat (path + len, source_path + len + cdir_len); /* After $cdir */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (IS_ABSOLUTE_PATH (filename))
|
||||||
{
|
{
|
||||||
/* If dirname is NULL, chances are the path is embedded in
|
/* If filename is absolute path, try the source path
|
||||||
the filename. Try the source path substitution on it. */
|
substitution on it. */
|
||||||
char *rewritten_filename = rewrite_source_path (filename);
|
char *rewritten_filename = rewrite_source_path (filename);
|
||||||
|
|
||||||
if (rewritten_filename != NULL)
|
if (rewritten_filename != NULL)
|
||||||
|
Reference in New Issue
Block a user