summaryrefslogtreecommitdiff
path: root/gdb/xtensa-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-09-11 14:20:50 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-09-11 14:20:50 +0000
commit17cc51d1b6cf33c1481cc7a559f6617d8ad4262b (patch)
tree0d4587e2e2e9b013cce509520023a14cd649cb88 /gdb/xtensa-tdep.c
parent440292c1219d5263849c02af3b9aac57e7c829dc (diff)
downloadgdb-17cc51d1b6cf33c1481cc7a559f6617d8ad4262b.tar.gz
* gdbtypes.h (builtin_type_void): Remove macro, add declaration.
(builtin_type_f_void): Remove macro. * gdbtypes.c (builtin_type_void): New global variable. (_initialize_gdbtypes): Initialize it. * gnu-v3-abi.c (build_gdb_vtable_type): Do not call lookup_pointer_type or lookup_function_type on builtin_type_void. * printcmd.c (set_next_address): Likewise. * objc-lang.c (value_nsstring): Likewise. * mt-tdep.c (mt_copro_register_type): Likewise. * xtensa-tdep.c (xtensa_register_type): Likewise. * symfile.c (syms_from_objfile): Remove special handling of builtin_type_void and builtin_type_char.
Diffstat (limited to 'gdb/xtensa-tdep.c')
-rw-r--r--gdb/xtensa-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index 1355d96bc65..7f8ecc2cef2 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -233,7 +233,7 @@ xtensa_register_type (struct gdbarch *gdbarch, int regnum)
if (regnum == gdbarch_pc_regnum (gdbarch)
|| regnum == gdbarch_tdep (gdbarch)->a0_base + 1)
- return lookup_pointer_type (builtin_type_void);
+ return builtin_type (gdbarch)->builtin_data_ptr;
/* Return the stored type for all other registers. */
else if (regnum >= 0 && regnum < gdbarch_num_regs (gdbarch)