aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh64-tdep.c
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/sh64-tdep.c
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/sh64-tdep.c')
-rw-r--r--gdb/sh64-tdep.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c
index ca87b8e..51b6768 100644
--- a/gdb/sh64-tdep.c
+++ b/gdb/sh64-tdep.c
@@ -197,17 +197,13 @@ sh_sh64_register_name (int reg_nr)
/* Macros and functions for setting and testing a bit in a minimal
symbol that marks it as 32-bit function. The MSB of the minimal
- symbol's "info" field is used for this purpose. This field is
- already being used to store the symbol size, so the assumption is
- that the symbol size cannot exceed 2^31.
+ symbol's "info" field is used for this purpose.
ELF_MAKE_MSYMBOL_SPECIAL
tests whether an ELF symbol is "special", i.e. refers
to a 32-bit function, and sets a "special" bit in a
minimal symbol to mark it as a 32-bit function
- MSYMBOL_IS_SPECIAL tests the "special" bit in a minimal symbol
- MSYMBOL_SIZE returns the size of the minimal symbol, i.e.
- the "info" field with the "special" bit masked out */
+ MSYMBOL_IS_SPECIAL tests the "special" bit in a minimal symbol */
#define MSYMBOL_IS_SPECIAL(msym) \
(((long) MSYMBOL_INFO (msym) & 0x80000000) != 0)