This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix mingw build of GDBserver
- From: Stan Shebs <stanshebs at earthlink dot net>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Thu, 24 Nov 2011 21:02:15 -0800
- Subject: [PATCH] Fix mingw build of GDBserver
As asmwarrior noted, my last patch to GDBserver used the %llx printf
directive, which is not portable, and it should be using plongest. I
just committed the fix below.
Stan
2011-11-24 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
Index: tracepoint.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/tracepoint.c,v
retrieving revision 1.34
diff -u -p -r1.34 tracepoint.c
--- tracepoint.c 20 Nov 2011 23:59:48 -0000 1.34
+++ tracepoint.c 25 Nov 2011 04:37:56 -0000
@@ -3448,7 +3448,7 @@ cmd_qtstatus (char *packet)
"tfree:%x;tsize:%s;"
"circular:%d;"
"disconn:%d;"
- "starttime:%llx;stoptime:%llx;"
+ "starttime:%s;stoptime:%s;"
"username:%s:;notes:%s:",
tracing ? 1 : 0,
stop_reason_rsp, tracing_stop_tpnum,
@@ -3456,7 +3456,7 @@ cmd_qtstatus (char *packet)
free_space (), phex_nz (trace_buffer_hi - trace_buffer_lo, 0),
circular_trace_buffer,
disconnected_tracing,
- tracing_start_time, tracing_stop_time,
+ plongest (tracing_start_time), plongest (tracing_stop_time),
buf1, buf2);
}