aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-09-20 18:31:02 +0000
committerDaniel Jacobowitz <drow@false.org>2004-09-20 18:31:02 +0000
commitd9c8471e30cf301970d0b0877ac32f36ca27a0ad (patch)
tree85cb73b6bdd3821fe37cb614b6e527a920e53055 /gdb/symtab.c
parentd73f140ac2cd081eb1bd6a0c33d215632e9bcce7 (diff)
downloadfsf-binutils-gdb-d9c8471e30cf301970d0b0877ac32f36ca27a0ad.zip
fsf-binutils-gdb-d9c8471e30cf301970d0b0877ac32f36ca27a0ad.tar.gz
fsf-binutils-gdb-d9c8471e30cf301970d0b0877ac32f36ca27a0ad.tar.bz2
* symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
(lookup_partial_symtab): Use symtab_to_fullname.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index dd5ce54..a6c009a 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -272,8 +272,7 @@ lookup_partial_symtab (const char *name)
this symtab and use its absolute path. */
if (full_path != NULL)
{
- if (pst->fullname == NULL)
- source_full_path_of (pst->filename, &pst->fullname);
+ psymtab_to_fullname (pst);
if (pst->fullname != NULL
&& FILENAME_CMP (full_path, pst->fullname) == 0)
{
@@ -284,8 +283,7 @@ lookup_partial_symtab (const char *name)
if (real_path != NULL)
{
char *rp = NULL;
- if (pst->fullname == NULL)
- source_full_path_of (pst->filename, &pst->fullname);
+ psymtab_to_fullname (pst);
if (pst->fullname != NULL)
{
rp = gdb_realpath (pst->fullname);