summaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2007-09-21 18:01:26 +0000
committerJoel Brobecker <brobecker@gnat.com>2007-09-21 18:01:26 +0000
commit0ab29ebbbb04dae19956b3fa4fbd7f62ee0df34c (patch)
tree496ce9325fa5fca5b81574fa1b29eb8db4e12a4c /gdb/buildsym.c
parent54e379160a866d89bb31f8bc9a0a9f449a0ef23b (diff)
downloadgdb-0ab29ebbbb04dae19956b3fa4fbd7f62ee0df34c.tar.gz
* symfile.h (struct sym_fns): Add new field sym_read_linetable.
* coffread.c, dbxread.c, elfread.c, mipsread.c somread.c: Adjust the struct sym_fns object accordingly by setting the new field to NULL. * xcoffread.c (aix_process_linenos): Make static. (xcoff_sym_fns): Set new field to aix_process_linenos. * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK by call to new the new sym_fns sym_read_linetable function. * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete. * config/rs6000/tm-rs6000.h: Delete.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 547e7ca646b..d3af35e1d51 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -933,10 +933,9 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section)
&objfile->objfile_obstack);
}
-#ifndef PROCESS_LINENUMBER_HOOK
-#define PROCESS_LINENUMBER_HOOK()
-#endif
- PROCESS_LINENUMBER_HOOK (); /* Needed for xcoff. */
+ /* Read the line table if it has to be read separately. */
+ if (objfile->sf->sym_read_linetable != NULL)
+ objfile->sf->sym_read_linetable ();
/* Now create the symtab objects proper, one for each subfile. */
/* (The main file is the last one on the chain.) */