diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 12:52:52 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 12:52:52 +0000 |
commit | 209bd28e8ba1a8d4f3f5e90ea954437050870837 (patch) | |
tree | c698a17c33330d90bf8c511a622064e2ac6ccc82 /gdb/amd64-tdep.c | |
parent | 270677457f363b213b10923759f4f96ed1aa868b (diff) | |
download | gdb-209bd28e8ba1a8d4f3f5e90ea954437050870837.zip gdb-209bd28e8ba1a8d4f3f5e90ea954437050870837.tar.gz gdb-209bd28e8ba1a8d4f3f5e90ea954437050870837.tar.bz2 |
* i386-tdep.h (struct gdbarch_tdep): Add i386_eflags_type and
i386_mxcsr_type members.
(i386_eflags_type): Make into function.
(i386_mxcsr_type): Likewise.
* i386-tdep.c (i386_eflags_type): Make into function.
(i386_mxcsr_type): Likewise.
(i386_register_type): Update uses.
(i386_init_types): Remove.
(_initialize_i386_tdep): Do not call it.
* amd64-tdep.c (amd64_register_type): Update uses.
* m68k-tdep.h (struct gdbarch_tdep): Add m68k_ps_type member.
* m68k-tdep.c (m68k_ps_type): Make into function.
(m68k_register_type): Update use.
(m68k_init_types): Remove.
(_initialize_m68k_tdep): Do not call it.
* sparc-tdep.h (struct gdbarch_tdep): Add sparc_psr_type,
sparc_fsr_type, sparc64_pstate_type, sparc64_fsr_type, and
sparc64_fprs_type members.
* sparc-tdep.c (sparc_psr_type): Make into function.
(sparc_fsr_type): Likewise.
(sparc32_register_type): Update uses.
(sparc_init_types): Remove.
(_initialize_sparc_tdep): Do not call it.
* sparc64-tdep.c (sparc64_pstate_type): Make into function.
(sparc64_fsr_type): Likewise.
(sparc64_fprs_type): Likewise.
(sparc64_register_type): Update uses.
(sparc64_init_types): Remove.
(_initialize_sparc64_tdep): Likewise.
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r-- | gdb/amd64-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 904915e..59434e2 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -98,7 +98,7 @@ amd64_register_type (struct gdbarch *gdbarch, int regnum) if (regnum == AMD64_RIP_REGNUM) return builtin_type (gdbarch)->builtin_func_ptr; if (regnum == AMD64_EFLAGS_REGNUM) - return i386_eflags_type; + return i386_eflags_type (gdbarch); if (regnum >= AMD64_CS_REGNUM && regnum <= AMD64_GS_REGNUM) return builtin_type (gdbarch)->builtin_int32; if (regnum >= AMD64_ST0_REGNUM && regnum <= AMD64_ST0_REGNUM + 7) @@ -108,7 +108,7 @@ amd64_register_type (struct gdbarch *gdbarch, int regnum) if (regnum >= AMD64_XMM0_REGNUM && regnum <= AMD64_XMM0_REGNUM + 15) return i386_sse_type (gdbarch); if (regnum == AMD64_MXCSR_REGNUM) - return i386_mxcsr_type; + return i386_mxcsr_type (gdbarch); internal_error (__FILE__, __LINE__, _("invalid regnum")); } |