aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-02-20 00:10:18 +0000
committerMichael Snyder <msnyder@vmware.com>2001-02-20 00:10:18 +0000
commita858089e450ff6ad19e0991da0b09b1192e869ad (patch)
treead048cc698aed05e043ad5a8a2b4e807292cefe3
parent23cc649f21aade7117512a23acff5f4dca5256b3 (diff)
downloadgdb-a858089e450ff6ad19e0991da0b09b1192e869ad.zip
gdb-a858089e450ff6ad19e0991da0b09b1192e869ad.tar.gz
gdb-a858089e450ff6ad19e0991da0b09b1192e869ad.tar.bz2
2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* parse.c (write_exp_msymbol): Make the type CORE_ADDR, to accomodate 64-bit addresses.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/parse.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4af7a46..1ce5b14 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
+
+ * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
+ accomodate 64-bit addresses.
+
2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
diff --git a/gdb/parse.c b/gdb/parse.c
index fae0096..7b7845b 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)