aboutsummaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-11-15 02:18:46 +0000
committerMichael Snyder <msnyder@vmware.com>2001-11-15 02:18:46 +0000
commit86884b3733ff6a828afe732e7b43ce23c5d0ea6b (patch)
tree177bdd22ba377c7aa69d6fa602bb76f55df9000f /gdb/d10v-tdep.c
parent4749e309f25b02a736f4111af71034801c10f6e9 (diff)
downloadgdb-86884b3733ff6a828afe732e7b43ce23c5d0ea6b.zip
gdb-86884b3733ff6a828afe732e7b43ce23c5d0ea6b.tar.gz
gdb-86884b3733ff6a828afe732e7b43ce23c5d0ea6b.tar.bz2
2001-11-14 Michael Snyder <msnyder@redhat.com>
* d10v-tdep.c (d10v_pointer_to_address): Use new type flag TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast into the instruction address space. * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r--gdb/d10v-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c
index e9c9269..fb4c635 100644
--- a/gdb/d10v-tdep.c
+++ b/gdb/d10v-tdep.c
@@ -413,7 +413,8 @@ d10v_pointer_to_address (struct type *type, void *buf)
/* Is it a code address? */
if (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_FUNC
- || TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_METHOD)
+ || TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_METHOD ||
+ (TYPE_FLAGS (TYPE_TARGET_TYPE (type)) & TYPE_FLAG_CODE_SPACE) != 0)
return d10v_make_iaddr (addr);
else
return d10v_make_daddr (addr);