This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


2011-11-24 Stan Shebs <>

* 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)
-       "starttime:%llx;stoptime:%llx;"
+       "starttime:%s;stoptime:%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),
-       tracing_start_time, tracing_stop_time,
+       plongest (tracing_start_time), plongest (tracing_stop_time),
        buf1, buf2);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]