Record objfile->original_name as an absolute path
gdb/ 2013-12-02 Doug Evans <dje@google.com> Jan Kratochvil <jan.kratochvil@redhat.com> * objfiles.c (allocate_objfile): Save original_name as an absolute path. * objfiles.h (struct objfile): Expand comment on original_name. * source.c (openp): Call gdb_abspath. * utils.c (gdb_abspath): New function. * utils.h (gdb_abspath): Declare. gdb/testsuite/ 2013-12-02 Doug Evans <dje@google.com> * gdb.dwarf/dwp-symlink.c: Fake out gdb to not load debug info at start. * gdb.dwarf/dwp-symlink.exp: Test trying to load dwp when the binary has been specified with a relative path and we have chdir'd before accessing the debug info.
This commit is contained in:
parent
aee4bf8505
commit
04affae3ef
9 changed files with 94 additions and 26 deletions
|
@ -130,6 +130,8 @@ extern char *gdb_realpath (const char *);
|
|||
|
||||
extern char *gdb_realpath_keepfile (const char *);
|
||||
|
||||
extern char *gdb_abspath (const char *);
|
||||
|
||||
extern int gdb_filename_fnmatch (const char *pattern, const char *string,
|
||||
int flags);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue