diff options
author | Yao Qi <yao@codesourcery.com> | 2013-01-18 03:09:42 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-01-18 03:09:42 +0000 |
commit | 257e7a09728bb1b846ff4e1a7587832b050d38b9 (patch) | |
tree | 886e5eec127bab63b4e9fc6550104eafe05ed523 /gdb/dbxread.c | |
parent | 0de5618e23e33ac89cbc903652f4b99c7be8b5b9 (diff) | |
download | gdb-257e7a09728bb1b846ff4e1a7587832b050d38b9.zip gdb-257e7a09728bb1b846ff4e1a7587832b050d38b9.tar.gz gdb-257e7a09728bb1b846ff4e1a7587832b050d38b9.tar.bz2 |
gdb/
* dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
(dbx_read_symtab): New declaration.
(dbx_psymtab_to_symtab): Delete.
(dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
Rename parameter PST to SELF. Exchanged two parameters.
(start_psymtab): Caller update.
* dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
(dwarf2_read_symtab): New declaration.
(dwarf2_psymtab_to_symtab): Delete.
(dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
Rename parameter PST to SELF. Exchanged two parameters.
(create_partial_symtab): Caller update.
* mdebugread.c (mdebug_psymtab_to_symtab): Delete.
(mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
Rename parameter PST to SELF. Exchanged two parameters.
(parse_partial_symbols, new_psymtab): Caller update.
* psympriv.h (struct partial_symtab) <read_symtab>: Exchange
two parameters.
* psymtab.c (psymtab_to_symtab): Caller update.
* xcoffread.c (xcoff_psymtab_to_symtab): Delete.
(xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
Rename parameter PST to SELF. Exchanged two parameters.
(xcoff_start_psymtab): Caller update.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 16496d1..cfd8df6 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -261,7 +261,8 @@ extern void _initialize_dbxread (void); static void read_ofile_symtab (struct objfile *, struct partial_symtab *); -static void dbx_psymtab_to_symtab (struct objfile *, struct partial_symtab *); +static void dbx_read_symtab (struct partial_symtab *self, + struct objfile *objfile); static void dbx_psymtab_to_symtab_1 (struct objfile *, struct partial_symtab *); @@ -2209,7 +2210,7 @@ start_psymtab (struct objfile *objfile, char *filename, CORE_ADDR textlow, result->read_symtab_private = obstack_alloc (&objfile->objfile_obstack, sizeof (struct symloc)); LDSYMOFF (result) = ldsymoff; - result->read_symtab = dbx_psymtab_to_symtab; + result->read_symtab = dbx_read_symtab; SYMBOL_SIZE (result) = symbol_size; SYMBOL_OFFSET (result) = symbol_table_offset; STRING_OFFSET (result) = string_table_offset; @@ -2452,29 +2453,29 @@ dbx_psymtab_to_symtab_1 (struct objfile *objfile, struct partial_symtab *pst) } /* Read in all of the symbols for a given psymtab for real. - Be verbose about it if the user wants that. PST is not NULL. */ + Be verbose about it if the user wants that. SELF is not NULL. */ static void -dbx_psymtab_to_symtab (struct objfile *objfile, struct partial_symtab *pst) +dbx_read_symtab (struct partial_symtab *self, struct objfile *objfile) { bfd *sym_bfd; struct cleanup *back_to = NULL; - if (pst->readin) + if (self->readin) { fprintf_unfiltered (gdb_stderr, "Psymtab for %s already read in. " "Shouldn't happen.\n", - pst->filename); + self->filename); return; } - if (LDSYMLEN (pst) || pst->number_of_dependencies) + if (LDSYMLEN (self) || self->number_of_dependencies) { /* Print the message now, before reading the string table, to avoid disconcerting pauses. */ if (info_verbose) { - printf_filtered ("Reading in symbols for %s...", pst->filename); + printf_filtered ("Reading in symbols for %s...", self->filename); gdb_flush (gdb_stdout); } @@ -2494,7 +2495,7 @@ dbx_psymtab_to_symtab (struct objfile *objfile, struct partial_symtab *pst) (void *) &stabs_data); } - dbx_psymtab_to_symtab_1 (objfile, pst); + dbx_psymtab_to_symtab_1 (objfile, self); if (back_to) do_cleanups (back_to); |