mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
gdb_realpath.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2010-12-07 Doug Evans <dje@google.com>
|
2010-12-07 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* dwarf2read.c (dw2_lookup_symtab): Remove duplicate call to
|
||||||
|
gdb_realpath.
|
||||||
|
|
||||||
PR python/12227
|
PR python/12227
|
||||||
* NEWS: Mention -data-directory.
|
* NEWS: Mention -data-directory.
|
||||||
* main.c (captured_main): Recognize -data-directory.
|
* main.c (captured_main): Recognize -data-directory.
|
||||||
|
@ -2199,16 +2199,11 @@ dw2_lookup_symtab (struct objfile *objfile, const char *name,
|
|||||||
const char *this_full_name = dw2_require_full_path (objfile,
|
const char *this_full_name = dw2_require_full_path (objfile,
|
||||||
per_cu, j);
|
per_cu, j);
|
||||||
|
|
||||||
if (this_full_name != NULL)
|
if (this_full_name != NULL
|
||||||
|
&& FILENAME_CMP (real_path, this_full_name) == 0)
|
||||||
{
|
{
|
||||||
char *rp = gdb_realpath (this_full_name);
|
*result = dw2_instantiate_symtab (objfile, per_cu);
|
||||||
if (rp != NULL && FILENAME_CMP (real_path, rp) == 0)
|
return 1;
|
||||||
{
|
|
||||||
xfree (rp);
|
|
||||||
*result = dw2_instantiate_symtab (objfile, per_cu);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
xfree (rp);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user