aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-10-01 17:21:06 +0000
committerTom Tromey <tromey@redhat.com>2008-10-01 17:21:06 +0000
commit8b41ec65018fe0a58338c0940a32f6486b621ecf (patch)
tree610c85585705d2ca445ed310c36bd65f1ebfd913
parent712f90be028d481f1d2151824f2b4e3f75263c00 (diff)
downloadgdb-8b41ec65018fe0a58338c0940a32f6486b621ecf.zip
gdb-8b41ec65018fe0a58338c0940a32f6486b621ecf.tar.gz
gdb-8b41ec65018fe0a58338c0940a32f6486b621ecf.tar.bz2
* symfile.c (syms_from_objfile): Update.
(reread_symbols): Update. * objfiles.h (OBJF_SYMS): Remove. (OBJF_REORDERED): Renumber. (OBJF_SHARED): Likewise. (OBJF_READNOW): Likewise. (OBJF_USERLOADED): Likewise.
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/objfiles.h17
-rw-r--r--gdb/symfile.c6
3 files changed, 14 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e0d4ebc..f17fa59 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,15 @@
2008-10-01 Tom Tromey <tromey@redhat.com>
+ * symfile.c (syms_from_objfile): Update.
+ (reread_symbols): Update.
+ * objfiles.h (OBJF_SYMS): Remove.
+ (OBJF_REORDERED): Renumber.
+ (OBJF_SHARED): Likewise.
+ (OBJF_READNOW): Likewise.
+ (OBJF_USERLOADED): Likewise.
+
+2008-10-01 Tom Tromey <tromey@redhat.com>
+
* symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
(find_pc_sect_symtab): Likewise.
* symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index bd686fa..c8b5af3 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -383,22 +383,13 @@ struct objfile
/* Defines for the objfile flag word. */
-/* When using mapped/remapped predigested gdb symbol information, we need
- a flag that indicates that we have previously done an initial symbol
- table read from this particular objfile. We can't just look for the
- absence of any of the three symbol tables (msymbols, psymtab, symtab)
- because if the file has no symbols for example, none of these will
- exist. */
-
-#define OBJF_SYMS (1 << 1) /* Have tried to read symbols */
-
/* When an object file has its functions reordered (currently Irix-5.2
shared libraries exhibit this behaviour), we will need an expensive
algorithm to locate a partial symtab or symtab via an address.
To avoid this penalty for normal object files, we use this flag,
whose setting is determined upon symbol table read in. */
-#define OBJF_REORDERED (1 << 2) /* Functions are reordered */
+#define OBJF_REORDERED (1 << 0) /* Functions are reordered */
/* Distinguish between an objfile for a shared library and a "vanilla"
objfile. (If not set, the objfile may still actually be a solib.
@@ -408,11 +399,11 @@ struct objfile
implementation of the solib interface is responsible for setting
this flag when noticing solibs used by an inferior.) */
-#define OBJF_SHARED (1 << 3) /* From a shared library */
+#define OBJF_SHARED (1 << 1) /* From a shared library */
/* User requested that this objfile be read in it's entirety. */
-#define OBJF_READNOW (1 << 4) /* Immediate full read */
+#define OBJF_READNOW (1 << 2) /* Immediate full read */
/* This objfile was created because the user explicitly caused it
(e.g., used the add-symbol-file command). This bit offers a way
@@ -421,7 +412,7 @@ struct objfile
ones that the user explicitly loaded via the add-symbol-file
command. */
-#define OBJF_USERLOADED (1 << 5) /* User loaded */
+#define OBJF_USERLOADED (1 << 3) /* User loaded */
/* The object file that the main symbol table was loaded from (e.g. the
argument to the "symbol-file" or "file" command). */
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 5964b84..92fa9da 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -896,11 +896,6 @@ syms_from_objfile (struct objfile *objfile,
(*objfile->sf->sym_read) (objfile, mainline);
- /* Mark the objfile has having had initial symbol read attempted. Note
- that this does not mean we found any symbols... */
-
- objfile->flags |= OBJF_SYMS;
-
/* Discard cleanups as symbol reading was successful. */
discard_cleanups (old_chain);
@@ -2440,7 +2435,6 @@ reread_symbols (void)
printf_unfiltered (_("(no debugging symbols found)\n"));
wrap_here ("");
}
- objfile->flags |= OBJF_SYMS;
/* We're done reading the symbol file; finish off complaints. */
clear_complaints (&symfile_complaints, 0, 1);