summaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-09-25 22:24:05 +0000
committerDoug Evans <dje@google.com>2013-09-25 22:24:05 +0000
commit7e414f30983310e8dfd126e9ab2a3529ffd4075a (patch)
tree791032305341c0cb347ff6452fe2a48e2a67a143 /gdb/buildsym.c
parentf49e1ecc3da86850fa2923c08a3b04afb15e5ee5 (diff)
downloadgdb-7e414f30983310e8dfd126e9ab2a3529ffd4075a.tar.gz
* symfile.h (struct sym_fns): Add "objfile" argument to
sym_read_linetable. All uses updated.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 1237e5edfb6..cee0cc54c88 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1144,9 +1144,10 @@ end_symtab_from_static_block (struct block *static_block,
blockvector = make_blockvector (objfile);
}
- /* Read the line table if it has to be read separately. */
+ /* Read the line table if it has to be read separately.
+ This is only used by xcoffread.c. */
if (objfile->sf->sym_read_linetable != NULL)
- objfile->sf->sym_read_linetable ();
+ objfile->sf->sym_read_linetable (objfile);
/* Handle the case where the debug info specifies a different path
for the main source file. It can cause us to lose track of its