aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-08-07 08:52:24 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-08-07 08:52:24 +0000
commit5b3316750e7b13ea464dc5d53626a6e7e08ced55 (patch)
treec0a115c99cfeb2b0dfabbad3d040852a367b0ddc /gdb/cli
parenta4aa0fb7d08aca921a8a977cc61a116883201dcc (diff)
downloadgdb-5b3316750e7b13ea464dc5d53626a6e7e08ced55.zip
gdb-5b3316750e7b13ea464dc5d53626a6e7e08ced55.tar.gz
gdb-5b3316750e7b13ea464dc5d53626a6e7e08ced55.tar.bz2
* 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c
index 36c1d2d..7aa6092 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;