From: Stan Shebs Date: Thu, 22 Apr 2010 04:14:15 +0000 (+0000) Subject: 2010-04-21 Stan Shebs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=105c2d85f7e0b7ac38ebb1e6f48f09f191274300;p=binutils-gdb.git 2010-04-21 Stan Shebs Nathan Sidwell * tracepoint.c (trace_save): Open in binary mode. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4fe34f5f317..ff4272cab76 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-04-21 Stan Shebs + Nathan Sidwell + + * tracepoint.c (trace_save): Open in binary mode. + 2010-04-22 Pierre Muller * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index e50a1e0f990..90691d02a2c 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -2616,7 +2616,7 @@ trace_save (const char *filename, int target_does_save) pathname = tilde_expand (filename); cleanup = make_cleanup (xfree, pathname); - fp = fopen (pathname, "w"); + fp = fopen (pathname, "wb"); if (!fp) error (_("Unable to open file '%s' for saving trace data (%s)"), filename, safe_strerror (errno));