aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 03f40ce..450856a 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -585,11 +585,11 @@ symbol_file_command (args, from_tty)
name = *argv;
while (*++argv != NULL)
{
- if (strcmp (*argv, "dumpable"))
+ if (!strcmp (*argv, "dumpable"))
{
dumpable = 1;
}
- else if (strcmp (*argv, "readnow"))
+ else if (!strcmp (*argv, "readnow"))
{
readnow = 1;
}