aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
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 40ce11e..aa188e9 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -326,6 +326,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;
@@ -347,6 +353,7 @@ struct minimal_symbol
};
#define MSYMBOL_INFO(msymbol) (msymbol)->info
+#define MSYMBOL_SIZE(msymbol) (msymbol)->size
#define MSYMBOL_TYPE(msymbol) (msymbol)->type