X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fm68k-tdep.c;h=274ba61ea587e8952fb284d0617b18119ed0616d;hb=ac7936dfd0c85e5de2dfec45ca0dbf72baeffa51;hp=619a40b9a9fc5a83fa3c1c5f4b7aacb58b697840;hpb=d8e07dda92366be0f6fc2e7128620d3dd53494e3;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index 619a40b9a9..274ba61ea5 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c @@ -32,6 +32,7 @@ #include "osabi.h" #include "dis-asm.h" #include "target-descriptions.h" +#include "floatformat.h" #include "m68k-tdep.h" @@ -72,7 +73,7 @@ m68k_ps_type (struct gdbarch *gdbarch) { struct type *type; - type = arch_flags_type (gdbarch, "builtin_type_m68k_ps", 4); + type = arch_flags_type (gdbarch, "builtin_type_m68k_ps", 32); append_flags_type_flag (type, 0, "C"); append_flags_type_flag (type, 1, "V"); append_flags_type_flag (type, 2, "Z"); @@ -303,7 +304,7 @@ m68k_svr4_extract_return_value (struct type *type, struct regcache *regcache, gdb_byte *valbuf) { gdb_byte buf[M68K_MAX_REGISTER_SIZE]; - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); if (tdep->float_return && TYPE_CODE (type) == TYPE_CODE_FLT) @@ -343,7 +344,7 @@ static void m68k_svr4_store_return_value (struct type *type, struct regcache *regcache, const gdb_byte *valbuf) { - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); if (tdep->float_return && TYPE_CODE (type) == TYPE_CODE_FLT) @@ -1279,8 +1280,6 @@ m68k_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file) return; } -extern initialize_file_ftype _initialize_m68k_tdep; /* -Wmissing-prototypes */ - void _initialize_m68k_tdep (void) {