From: Pedro Alves <palves@redhat.com>
To: "Metzger, Markus T" <markus.t.metzger@intel.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] btrace: diagnose "record btrace pt" without libipt
Date: Fri, 20 Nov 2015 13:12:00 -0000 [thread overview]
Message-ID: <564F1C3D.1040709@redhat.com> (raw)
In-Reply-To: <A78C989F6D9628469189715575E55B23332283DF@IRSMSX104.ger.corp.intel.com>
On 11/20/2015 12:11 PM, Metzger, Markus T wrote:
> The record target is popped off the target stack on disconnect. This disables
> branch tracing. The below log is for BTS but the logic is the same for PT.
> Sending packet: $Qbtrace:off#37...Packet received: OK
>
> After reconnecting, you need to enable btrace again.
I see. But then it sounds like we'll have the problem if the connection
drops unexpectedly -- gdb won't be able to tell the server to
disable Qbtrace. I guess the easiest way to emulate is kill gdb:
#1 - enable btrace pt
#2 - connection is terminated unexpectedly / kill gdb
#3 - reconnect to gdbserver
a) Does the new gdb get out of sync and confused?
b) What if btrace pt was enabled on the inferior, and the gdb that
reconnects in #3 above is compiled _without_ libipt?
Will "info record" still crash? What I'm thinking is that
a similar format check may be necessary around this code path,
not only at PT enable time.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2015-11-20 13:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 9:17 Markus Metzger
2015-11-20 11:31 ` Pedro Alves
2015-11-20 11:35 ` Pedro Alves
2015-11-20 12:11 ` Metzger, Markus T
2015-11-20 13:12 ` Pedro Alves [this message]
2015-11-20 13:59 ` Metzger, Markus T
2015-11-25 16:38 ` Pedro Alves
2015-11-26 7:12 ` Metzger, Markus T
2015-11-26 9:43 ` Pedro Alves
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=564F1C3D.1040709@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=markus.t.metzger@intel.com \
/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