diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-08-07 08:52:24 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-08-07 08:52:24 +0000 |
commit | a31b2c2483af9e94da06bb4591593c183e552c57 (patch) | |
tree | cfb7733003db027811cdd2cdba80b45cb8fb7852 /gdb/cli | |
parent | 4bebdfa9b611b8c98568f89b15ce1820c504d234 (diff) | |
download | gdb-a31b2c2483af9e94da06bb4591593c183e552c57.tar.gz |
* cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
write dump file binary.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 36c1d2db2be..7aa60925d65 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -442,7 +442,7 @@ add_dump_command (char *name, void (*func) (char *args, char *mode), c->completer = filename_completer; d = XMALLOC (struct dump_context); d->func = func; - d->mode = "w"; + d->mode = "wb"; set_cmd_context (c, d); c->func = call_dump_func; @@ -450,7 +450,7 @@ add_dump_command (char *name, void (*func) (char *args, char *mode), c->completer = filename_completer; d = XMALLOC (struct dump_context); d->func = func; - d->mode = "a"; + d->mode = "ab"; set_cmd_context (c, d); c->func = call_dump_func; |