]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* symfile.h (struct sym_fns): Add "objfile" argument to
authorDoug Evans <dje@google.com>
Wed, 25 Sep 2013 22:24:05 +0000 (22:24 +0000)
committerDoug Evans <dje@google.com>
Wed, 25 Sep 2013 22:24:05 +0000 (22:24 +0000)
sym_read_linetable.  All uses updated.

gdb/ChangeLog
gdb/buildsym.c
gdb/symfile.h
gdb/xcoffread.c

index 5fde0221c7d16b287b690acc1c33ec7378e0af66..9830d8b6f60b4046cf30455063c9cedb4621c129 100644 (file)
@@ -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.
 
index 1237e5edfb6de4b22e759cf0008ec222ea19a82f..cee0cc54c880a96eebf07198322c720e8c628da5 100644 (file)
@@ -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
index b08941123dc4fcf9297da2470a4d2710b533b82f..11cb3719b94da0d271efb5774dfade12045b1d5a 100644 (file)
@@ -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
index 75ac0f59ff377a9270ed1e7af8ecb9023e353c70..17c45b96bae4aa102d5541315eaae649966898db 100644 (file)
@@ -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)