This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA/RFC] tracepoint gdbrsp: add -1 introduce for QTFrame:@var{n}
- From: Hui Zhu <teawater at gmail dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Cc: Eli Zaretskii <eliz at gnu dot org>
- Date: Sun, 15 Aug 2010 15:16:34 +0800
- Subject: [RFA/RFC] tracepoint gdbrsp: add -1 introduce for QTFrame:@var{n}
Hi,
I found that there is not introduce for -1 in QTFrame:@var{n}.So I add one.
For example:
(gdb) tfind none
Sending packet: $QTFrame:ffffffff#fa...Packet received: OK
No longer looking at any trace frame
Sending packet: $g#67...Packet received:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c05e33c9ff7f000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000f02ad7a8537f000000020000330000002b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f03000000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000801f00003b00000000000000
Sending packet: $m7f53a8d72af0,1#2c...Packet received: 48
Sending packet: $m7f53a8d72af0,1#2c...Packet received: 48
Sending packet: $m7f53a8d72af0,9#34...Packet received: 4889e7e82806000049
#0 0x00007f53a8d72af0 in ?? () from /lib64/ld-linux-x86-64.so.2
BTW, I found that tracepoint gdbrsp use a lot of "int", I think it
will be not very friendly to cross compile debug. What do you think
about it?
Thanks,
Hui
2010-08-15 Hui Zhu <teawater@gmail.com>
* gdb.texinfo (Tracepoint Packets): add introduce for -1.
---
doc/gdb.texinfo | 12 ++++++++++++
1 file changed, 12 insertions(+)
--- a/doc/gdb.texinfo
+++ b/doc/gdb.texinfo
@@ -33133,6 +33133,18 @@ The selected trace frame records a hit o
@end table
+If @var{n} is -1, it mean that stop debugging trace snapshots,
+resume live debugging.
+
+Replies:
+@table @samp
+@item OK
+The packet was understood and carried out.
+@item E @var{NN}
+A badly formed request was detected, or an error was encountered while
+relocating the instruction.
+@end table
+
@item QTFrame:pc:@var{addr}
Like @samp{QTFrame:@var{n}}, but select the first tracepoint frame after the
currently selected frame whose PC is @var{addr};