* symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
authorDaniel Jacobowitz <drow@false.org>
Mon, 20 Sep 2004 18:31:02 +0000 (18:31 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 20 Sep 2004 18:31:02 +0000 (18:31 +0000)
(lookup_partial_symtab): Use symtab_to_fullname.

gdb/ChangeLog
gdb/symtab.c

index 4d20c3afa5ff3311edf63f3a3ccbd8c505f41eb3..5ff739ac7c63420802127007ada54ac3c4f8e5ca 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-20  Daniel Jacobowitz  <dan@debian.org>
+
+       * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname.
+       (lookup_partial_symtab): Use symtab_to_fullname.
+
 2004-09-19  Jim Blandy  <jimb@redhat.com>
 
        * minsyms.c (lookup_minimal_symbol): Doc fix.
index dd5ce54b49040c26bfdf6105f457ba3ab364fcb6..a6c009a4ac02afa6912e0a5ede708590ac092992 100644 (file)
@@ -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);