aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
commitf56ce88372c4b5848638bab8b10b71042725a100 (patch)
tree4a37c5286bb0acdc27fbc09df1345662ea7bee87 /gdb
parent20c681d15f0ca83a5fc4b6811585865799b79706 (diff)
downloadgdb-f56ce88372c4b5848638bab8b10b71042725a100.zip
gdb-f56ce88372c4b5848638bab8b10b71042725a100.tar.gz
gdb-f56ce88372c4b5848638bab8b10b71042725a100.tar.bz2
* symfile.h (struct sym_fns): Add "objfile" argument to
sym_read_linetable. All uses updated.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/buildsym.c5
-rw-r--r--gdb/symfile.h2
-rw-r--r--gdb/xcoffread.c2
4 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5fde022..9830d8b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2013-09-25 Doug Evans <dje@google.com>
+ * symfile.h (struct sym_fns): Add "objfile" argument to
+ sym_read_linetable. All uses updated.
+
* symtab.c (domain_name, search_domain_name): New functions.
* symtab.h (domain_name, search_domain_name): Declare.
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 1237e5e..cee0cc5 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
diff --git a/gdb/symfile.h b/gdb/symfile.h
index b089411..11cb371 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -407,7 +407,7 @@ struct sym_fns
the line table cannot be read while processing the debugging
information. */
- void (*sym_read_linetable) (void);
+ void (*sym_read_linetable) (struct objfile *);
/* Relocate the contents of a debug section SECTP. The
contents are stored in BUF if it is non-NULL, or returned in a
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 75ac0f5..17c45b9 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -817,7 +817,7 @@ return_after_cleanup:
}
static void
-aix_process_linenos (void)
+aix_process_linenos (struct objfile *objfile)
{
/* There is no linenos to read if there are only dwarf info. */
if (this_symtab_psymtab == NULL)