From: Corinna Vinschen Date: Wed, 7 Aug 2002 08:52:24 +0000 (+0000) Subject: * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to X-Git-Tag: drow-cplus-branchpoint~903 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b3316750e7b13ea464dc5d53626a6e7e08ced55;p=platform%2Fupstream%2Fbinutils.git * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to write dump file binary. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 63873a0..dd9dbcc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-08-06 Corinna Vinschen + + * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to + write dump file binary. + 2002-08-05 Michael Snyder * mips-tdep.c (mips_find_saved_regs): Adjust stack according 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;