aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-descriptions.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-02-13 15:48:06 +0000
committerDaniel Jacobowitz <drow@false.org>2007-02-13 15:48:06 +0000
commitd9cc5895fd5107150e2dbdab3ea1bb58c190ef24 (patch)
tree6522ffc29897ed8e4746dbeba2b4e8ce0eac266b /gdb/target-descriptions.c
parent512b7dfbfd34ee453533b133fdf04fe3a461ec87 (diff)
downloadgdb-d9cc5895fd5107150e2dbdab3ea1bb58c190ef24.zip
gdb-d9cc5895fd5107150e2dbdab3ea1bb58c190ef24.tar.gz
gdb-d9cc5895fd5107150e2dbdab3ea1bb58c190ef24.tar.bz2
* target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
handling from here... (tdesc_register_type): ...to here. * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr. * features/arm-core.xml: Use code_ptr and data_ptr.
Diffstat (limited to 'gdb/target-descriptions.c')
-rw-r--r--gdb/target-descriptions.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c
index 1f8cf7e..e89acec 100644
--- a/gdb/target-descriptions.c
+++ b/gdb/target-descriptions.c
@@ -382,12 +382,6 @@ tdesc_named_type (const struct tdesc_feature *feature, const char *id)
if (strcmp (id, "uint64") == 0)
return builtin_type_uint64;
- if (strcmp (id, "code_ptr") == 0)
- return builtin_type_void_func_ptr;
-
- if (strcmp (id, "data_ptr") == 0)
- return builtin_type_void_data_ptr;
-
if (strcmp (id, "arm_fpa_ext") == 0)
return builtin_type_arm_ext;
@@ -555,6 +549,10 @@ tdesc_register_type (struct gdbarch *gdbarch, int regno)
/* A bit desperate by this point... */
return builtin_type_void_data_ptr;
}
+ else if (strcmp (reg->type, "code_ptr") == 0)
+ return builtin_type_void_func_ptr;
+ else if (strcmp (reg->type, "data_ptr") == 0)
+ return builtin_type_void_data_ptr;
else
internal_error (__FILE__, __LINE__,
"Register \"%s\" has an unknown type \"%s\"",