aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2010-04-22 04:14:15 +0000
committerStan Shebs <shebs@codesourcery.com>2010-04-22 04:14:15 +0000
commit105c2d85f7e0b7ac38ebb1e6f48f09f191274300 (patch)
treef27217b471629ae561afcde31f4868f9dd9a4f01 /gdb/tracepoint.c
parent5a9351aeae277684e6086f527e4a69d037dbc002 (diff)
downloadgdb-105c2d85f7e0b7ac38ebb1e6f48f09f191274300.zip
gdb-105c2d85f7e0b7ac38ebb1e6f48f09f191274300.tar.gz
gdb-105c2d85f7e0b7ac38ebb1e6f48f09f191274300.tar.bz2
2010-04-21 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com> * tracepoint.c (trace_save): Open in binary mode.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index e50a1e0..90691d0 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));