diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-07-28 02:03:52 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-07-28 02:03:52 +0000 |
commit | 000177f0ad8107eeacc1fceaec5ca72ad9725099 (patch) | |
tree | a625b9916a752fc91fdc84b6fc441887f4ca22d8 /gdb/d10v-tdep.c | |
parent | 208e245742f938d99c8df246d273e5ce7cff8a2e (diff) | |
download | gdb-000177f0ad8107eeacc1fceaec5ca72ad9725099.zip gdb-000177f0ad8107eeacc1fceaec5ca72ad9725099.tar.gz gdb-000177f0ad8107eeacc1fceaec5ca72ad9725099.tar.bz2 |
2004-07-27 Andrew Cagney <cagney@gnu.org>
* gdbtypes.h (struct builtin_type): Declare.
(builtin_type): Declare.
* d10v-tdep.c (d10v_register_type): Use builtin_type.
* gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
(gdbtypes_post_init): New function.
(builtin_type): New function.
Diffstat (limited to 'gdb/d10v-tdep.c')
-rw-r--r-- | gdb/d10v-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/d10v-tdep.c b/gdb/d10v-tdep.c index 8bb2aa5..7029c40 100644 --- a/gdb/d10v-tdep.c +++ b/gdb/d10v-tdep.c @@ -282,14 +282,14 @@ static struct type * d10v_register_type (struct gdbarch *gdbarch, int reg_nr) { if (reg_nr == D10V_PC_REGNUM) - return builtin_type_void_func_ptr; + return builtin_type (gdbarch)->builtin_func_ptr; if (reg_nr == D10V_SP_REGNUM || reg_nr == D10V_FP_REGNUM) - return builtin_type_void_data_ptr; + return builtin_type (gdbarch)->builtin_data_ptr; else if (reg_nr >= a0_regnum (gdbarch) && reg_nr < (a0_regnum (gdbarch) + NR_A_REGS)) - return builtin_type_int64; + return builtin_type (gdbarch)->builtin_int64; else - return builtin_type_int16; + return builtin_type (gdbarch)->builtin_int16; } static int |