From: Hui Zhu <teawater@gmail.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Cc: Eli Zaretskii <eliz@gnu.org>
Subject: [RFA/RFC] tracepoint gdbrsp: add -1 introduce for QTFrame:@var{n}
Date: Sun, 15 Aug 2010 07:17:00 -0000 [thread overview]
Message-ID: <AANLkTikWCw3=_Dqve-aWj7R6tcqMenUapkf2bdR8i_op@mail.gmail.com> (raw)
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};
next reply other threads:[~2010-08-15 7:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-15 7:17 Hui Zhu [this message]
2010-08-15 17:20 ` Michael Snyder
2010-08-15 18:07 ` Eli Zaretskii
2010-08-15 18:14 ` Pedro Alves
2010-08-15 18:47 ` Pedro Alves
2010-08-15 19:05 ` Michael Snyder
2010-08-15 23:10 ` Pedro Alves
2010-08-19 7:44 ` Hui Zhu
2010-08-19 7:49 ` Hui Zhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTikWCw3=_Dqve-aWj7R6tcqMenUapkf2bdR8i_op@mail.gmail.com' \
--to=teawater@gmail.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox