From d9c8471e30cf301970d0b0877ac32f36ca27a0ad Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 20 Sep 2004 18:31:02 +0000 Subject: [PATCH] * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname. (lookup_partial_symtab): Use symtab_to_fullname. --- gdb/ChangeLog | 5 +++++ gdb/symtab.c | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4d20c3afa5f..5ff739ac7c6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-09-20 Daniel Jacobowitz + + * symtab.c (lookup_partial_symtab): Use psymtab_to_fullname. + (lookup_partial_symtab): Use symtab_to_fullname. + 2004-09-19 Jim Blandy * minsyms.c (lookup_minimal_symbol): Doc fix. diff --git a/gdb/symtab.c b/gdb/symtab.c index dd5ce54b490..a6c009a4ac0 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); -- 2.30.2