aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-12-28 09:05:40 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-12-28 09:05:40 +0000
commitd180bcbd34b9ed5f0062636786ff31c803c2f735 (patch)
treeb7ef78d577f7a158a46b4b483e7d85927b0279cd /gdb
parent6457f4cfc2db663128ff012e4562d52195c6540d (diff)
downloadgdb-d180bcbd34b9ed5f0062636786ff31c803c2f735.zip
gdb-d180bcbd34b9ed5f0062636786ff31c803c2f735.tar.gz
gdb-d180bcbd34b9ed5f0062636786ff31c803c2f735.tar.bz2
gdb/
* symtab.c (find_line_symtab): Call symtab_to_fullname instead of accessing FULLNAME directly.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/symtab.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d5d208b..0f6f796 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-28 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symtab.c (find_line_symtab): Call symtab_to_fullname instead of
+ accessing FULLNAME directly.
+
2012-12-25 Sergio Durigan Junior <sergiodj@redhat.com>
* frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Fix typo.
diff --git a/gdb/symtab.c b/gdb/symtab.c
index a39e5bf..85880c1 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2554,7 +2554,8 @@ find_line_symtab (struct symtab *symtab, int line,
if (FILENAME_CMP (symtab->filename, s->filename) != 0)
continue;
- if (FILENAME_CMP (symtab->fullname, symtab_to_fullname (s)) != 0)
+ if (FILENAME_CMP (symtab_to_fullname (symtab),
+ symtab_to_fullname (s)) != 0)
continue;
l = LINETABLE (s);
ind = find_line_common (l, line, &exact, 0);