aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2003-11-11 20:04:52 +0000
committerMichael Chastain <mec@google.com>2003-11-11 20:04:52 +0000
commitf594e5e9c9b41dbe1223b25be5ddeacc5cd72e2e (patch)
tree728d69ebc663806ac63a66f257dc4085c4e27a4c /gdb/symtab.h
parentd9407aaa549c6270b7d99443835d287bce6b50a7 (diff)
downloadgdb-f594e5e9c9b41dbe1223b25be5ddeacc5cd72e2e.zip
gdb-f594e5e9c9b41dbe1223b25be5ddeacc5cd72e2e.tar.gz
gdb-f594e5e9c9b41dbe1223b25be5ddeacc5cd72e2e.tar.bz2
2003-11-07 Michael Chastain <mec@shout.net>
* symtab.h (struct minimal_symbol): Add size. * dbxread.c: Use it. * elfread.c: (record_minimal_symbol_and_info): Do not use info. Rename to record_minimal_symbol. (elf_symtab_read): Set MSYMBOL_SIZE explicitly. * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE. (install_minimal_symbols): Ditto. * objfiles.c (terminate_minimal_symbol_table): Ditto. * arm-tdep.c: Delete unused MSYMBOL_SIZE. * m68hc11-tdep.c: Ditto. * mips-tdep.c: Ditto. * sh64-tdep.c: Ditto.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 4a6127f..ce1c9fa 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -325,6 +325,12 @@ struct minimal_symbol
char *info;
+ /* Size of this symbol. end_psymtab in dbxread.c uses this
+ information to calculate the end of the partial symtab based on the
+ address of the last symbol plus the size of the last symbol. */
+
+ unsigned long size;
+
#ifdef SOFUN_ADDRESS_MAYBE_MISSING
/* Which source file is this symbol in? Only relevant for mst_file_*. */
char *filename;
@@ -346,6 +352,7 @@ struct minimal_symbol
};
#define MSYMBOL_INFO(msymbol) (msymbol)->info
+#define MSYMBOL_SIZE(msymbol) (msymbol)->size
#define MSYMBOL_TYPE(msymbol) (msymbol)->type