aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-06-11 19:11:32 +0000
committerMark Kettenis <kettenis@gnu.org>2005-06-11 19:11:32 +0000
commitab533587520cfb60d6ef7e66f49d54ae0d3fb6e6 (patch)
tree3a148deab9ef6931a4932322a2fb1869cf7c600a
parent2db495bea807e3cf2bfe2e62f303011fef4b3ab6 (diff)
downloadgdb-ab533587520cfb60d6ef7e66f49d54ae0d3fb6e6.zip
gdb-ab533587520cfb60d6ef7e66f49d54ae0d3fb6e6.tar.gz
gdb-ab533587520cfb60d6ef7e66f49d54ae0d3fb6e6.tar.bz2
* i386-tdep.c (i386_register_type): Return
builtin_type_void_func_ptr for %eip and builtin_type_void_data_ptr for %ebp and %esp.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/i386-tdep.c8
2 files changed, 11 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6c8c9fc..704f9cd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-11 Mark Kettenis <kettenis@gnu.org>
+
+ * i386-tdep.c (i386_register_type): Return
+ builtin_type_void_func_ptr for %eip and builtin_type_void_data_ptr
+ for %ebp and %esp.
+
2005-06-10 Ben Elliston <bje@au.ibm.com>
* valprint.c (print_floating): Fix comment typo.
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 622dc4c..830d1b4 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -1560,9 +1560,11 @@ i386_build_sse_type (void)
static struct type *
i386_register_type (struct gdbarch *gdbarch, int regnum)
{
- if (regnum == I386_EIP_REGNUM
- || regnum == I386_EBP_REGNUM || regnum == I386_ESP_REGNUM)
- return lookup_pointer_type (builtin_type_void);
+ if (regnum == I386_EIP_REGNUM)
+ return builtin_type_void_func_ptr;
+
+ if (regnum == I386_EBP_REGNUM || regnum == I386_ESP_REGNUM)
+ return builtin_type_void_data_ptr;
if (i386_fp_regnum_p (regnum))
return builtin_type_i387_ext;