diff options
author | Michael Snyder <msnyder@specifix.com> | 2001-02-20 00:10:18 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2001-02-20 00:10:18 +0000 |
commit | 4e471a4babaf961f5bdfda96afd6116768eb714e (patch) | |
tree | 1a15248b99c78c7afc286af02a85ba1afe1941cd /gdb/parse.c | |
parent | 7e26b0dc456e69de91d4e6ac838ba0a487f410b7 (diff) | |
download | gdb-4e471a4babaf961f5bdfda96afd6116768eb714e.tar.gz |
2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
accomodate 64-bit addresses.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index fae00963435..7b7845bf42c 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -403,13 +403,15 @@ static struct type *msym_data_symbol_type; static struct type *msym_unknown_symbol_type; void -write_exp_msymbol (struct minimal_symbol *msymbol, - struct type *text_symbol_type, struct type *data_symbol_type) +write_exp_msymbol (struct minimal_symbol *msymbol, + struct type *text_symbol_type, + struct type *data_symbol_type) { CORE_ADDR addr; write_exp_elt_opcode (OP_LONG); - write_exp_elt_type (lookup_pointer_type (builtin_type_void)); + /* Let's make the type big enough to hold a 64-bit address. */ + write_exp_elt_type (builtin_type_CORE_ADDR); addr = SYMBOL_VALUE_ADDRESS (msymbol); if (overlay_debugging) |