From: Pedro Alves <palves@redhat.com>
To: Pedro Alves <palves@redhat.com>,
Simon Marchi <simon.marchi@ericsson.com>,
gdb-patches@sourceware.org
Subject: Re: [PATCH v2 2/2] Only leave dprintf inserted if it is marked as persistent (PR breakpoints/17012)
Date: Wed, 16 Jul 2014 02:02:00 -0000 [thread overview]
Message-ID: <53C59737.7030703@redhat.com> (raw)
In-Reply-To: <53C5642E.4010103@redhat.com>
On 07/15/2014 06:26 PM, Pedro Alves wrote:
> But ... most importantly. How do we end up with 'persist' set
> on a call-style dprintf, given:
>
> static void
> build_target_command_list (struct bp_location *bl)
> {
> ...
> /* For now, limit to agent-style dprintf breakpoints. */
> if (dprintf_style != dprintf_style_agent)
> return;
>
> I'm confused, as you say the test fails now, but nowhere in the
> test are you setting the style to agent. I think I'm missing
> something. :-)
>
Yeah, I was missing dinner... :-)
Of course, the point is that indeed, for dprintf style != agent,
'persist' is not set, and those are the locations we want to remove.
Silly me.
BTW, I think it'd be good to make the test exercise all
dprintf styles, as all types are affected, and also
"set disconnected-dprintf off/on", to make "agent" style
affected. With disconnected on, the agent style dprintf
will be persistent when testing against gdbserver
(extended-remote), but we should likewise be able to
detach and reattach back.
Something along the lines of:
foreach always_inserted { "off" "on" } {
foreach style { "gdb" "call" "agent" } {
foreach disconnected { "on" "off" } {
test $always_inserted $style $disconnected
}
}
}
--
Pedro Alves
next prev parent reply other threads:[~2014-07-15 21:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-07 19:17 [PATCH v2 1/2] Add dprintf and detach test " Simon Marchi
2014-07-07 19:17 ` [PATCH v2 2/2] Only leave dprintf inserted if it is marked as persistent " Simon Marchi
2014-07-15 16:08 ` Joel Brobecker
2014-07-15 19:27 ` Pedro Alves
2014-07-16 2:02 ` Pedro Alves [this message]
2014-07-15 17:19 ` [PATCH v2 1/2] Add dprintf and detach test " 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=53C59737.7030703@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.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