2010-04-21 Stan Shebs <stan@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com> * tracepoint.c (trace_save): Open in binary mode.
This commit is contained in:
parent
5a9351aeae
commit
105c2d85f7
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-04-21 Stan Shebs <stan@codesourcery.com>
|
||||||
|
Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
|
* tracepoint.c (trace_save): Open in binary mode.
|
||||||
|
|
||||||
2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
|
2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
* gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
|
* gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
|
||||||
|
|
|
@ -2616,7 +2616,7 @@ trace_save (const char *filename, int target_does_save)
|
||||||
pathname = tilde_expand (filename);
|
pathname = tilde_expand (filename);
|
||||||
cleanup = make_cleanup (xfree, pathname);
|
cleanup = make_cleanup (xfree, pathname);
|
||||||
|
|
||||||
fp = fopen (pathname, "w");
|
fp = fopen (pathname, "wb");
|
||||||
if (!fp)
|
if (!fp)
|
||||||
error (_("Unable to open file '%s' for saving trace data (%s)"),
|
error (_("Unable to open file '%s' for saving trace data (%s)"),
|
||||||
filename, safe_strerror (errno));
|
filename, safe_strerror (errno));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue