aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-28 21:42:32 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-28 21:42:32 +0000
commit93d56215df715181dba7f5275de9863f28a6c941 (patch)
treebfea01c982a361dfe8ad972cb291de3d8085a7c2 /gdb/mips-tdep.c
parent381bab78db8ce8d9a17929364bdc7901ac17e4f0 (diff)
downloadgdb-93d56215df715181dba7f5275de9863f28a6c941.zip
gdb-93d56215df715181dba7f5275de9863f28a6c941.tar.gz
gdb-93d56215df715181dba7f5275de9863f28a6c941.tar.bz2
Gag -Wuninitialized warnings.
Add -Wuninitialized to default warning list.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 72f4f9b..b29a33a 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -3292,6 +3292,8 @@ show_mipsfpu_command (char *args, int from_tty)
case MIPS_FPU_NONE:
fpu = "absent (none)";
break;
+ default:
+ internal_error (__FILE__, __LINE__, "bad switch");
}
if (mips_fpu_type_auto)
printf_unfiltered ("The MIPS floating-point coprocessor is set automatically (currently %s)\n",
@@ -4157,9 +4159,10 @@ mips_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
ef_mips_arch = 3;
break;
case E_MIPS_ARCH_4:
- ef_mips_arch = 0;
+ ef_mips_arch = 4;
break;
default:
+ ef_mips_arch = 0;
break;
}
/* determine the size of a pointer */