From: Yao Qi <yao@codesourcery.com>
To: Marc Khouzam <marc.khouzam@ericsson.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH 1/4] Fix dprintf bugs
Date: Thu, 07 Mar 2013 06:47:00 -0000 [thread overview]
Message-ID: <513837B9.2070101@codesourcery.com> (raw)
In-Reply-To: <E59706EF8DB1D147B15BECA3322E4BDC0CC2F5@eusaamb103.ericsson.se>
Marc, thanks for playing with dprintf and giving a lot useful comments
and suggestions.
On 03/03/2013 10:21 AM, Marc Khouzam wrote:
> I'm still hesitant about the -break-modified event in that case
> though. I believe the event is triggered because the hit count
> has changed. For a normal bp, it makes sense to have this event
> in this case, since execution has stopped and only a single
> event will be seen (not exactly true for non-stop, but still
> makes sense, I think). However, for dprintf which is meant to
> let the inferior continue to run, there could be quite many
> hit events very quickly. Since we already have some feeback
> that the dprintf has hit through the actual printf string, I'm
> leaning towards not having that event for dprintf hits.
Right, the "hit count" is not very meaningful to dprintf. I am fine not
to update hit count for dprintf.
> Furthermore, this event is not being sent when using dprintf-style
> "agent" anyway.
>
> I also saw that conditions are now properly respected for dprintf-style
> "gdb" and "call". That is great. Conditions are still not respected for
> style "agent" but that is a separate issue I believe (PR 15180).
>
Right, PR 15180 is a separate problem. It is not dprintf specific, in
fact. It is about target side commands execution respected for the
target side conditions.
> I did notice that although commands cannot be set for dprintf from
> the CLI they are not blocked for MI:
>
> (gdb) interpreter-exec mi "-break-commands 1 hello"
> ^done
> (gdb) info b
> Num Type Disp Enb Address What
> 1 dprintf keep y 0x0000000000400570 in main() at loopfirst.cc:8
> hello
>
I'll handle this in the new version.
--
Yao (é½å°§)
next prev parent reply other threads:[~2013-03-07 6:47 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-18 13:09 [RFC] PR 15075 dprintf interferes with "next" Yao Qi
2013-02-18 21:36 ` Joel Brobecker
2013-02-21 16:36 ` Tom Tromey
2013-04-24 1:24 ` Hui Zhu
2013-04-24 6:06 ` Keith Seitz
2013-04-24 13:30 ` Hui Zhu
2013-04-24 14:03 ` Yao Qi
2013-04-24 14:09 ` Hui Zhu
2013-05-16 7:29 ` Hui Zhu
2013-05-17 21:01 ` Pedro Alves
2013-05-22 10:22 ` Hui Zhu
2013-05-22 12:46 ` Pedro Alves
2013-05-28 0:02 ` Hui Zhu
2013-05-28 3:36 ` Yao Qi
2013-05-29 10:08 ` Hui Zhu
2013-06-03 4:07 ` Hui Zhu
2013-06-03 17:48 ` Pedro Alves
2013-06-07 3:16 ` Hui Zhu
2013-06-17 7:36 ` Hui Zhu
2013-06-18 18:16 ` Pedro Alves
2013-06-24 8:36 ` Hui Zhu
2013-06-24 22:06 ` Pedro Alves
2013-06-25 9:14 ` Hui Zhu
2013-06-25 11:47 ` Pedro Alves
2013-06-25 13:02 ` Hui Zhu
2013-06-25 14:06 ` Pedro Alves
2013-06-26 2:54 ` Hui Zhu
2013-05-22 14:04 ` Tom Tromey
2013-02-22 17:39 ` DPrintf feedback (was: [RFC] PR 15075 dprintf interferes with "next") Marc Khouzam
2013-02-22 19:32 ` DPrintf feedback Tom Tromey
2013-02-22 20:37 ` Marc Khouzam
2013-02-26 21:12 ` Marc Khouzam
2013-02-28 15:32 ` [PATCH 1/4] Fix dprintf bugs Yao Qi
2013-02-28 13:17 ` [PATCH 3/4] Test dprintf breakpoint works correctly with other breakpoints Yao Qi
2013-02-28 13:17 ` [PATCH 2/4] Test case of conditional dprintf Yao Qi
2013-02-28 14:48 ` [PATCH 4/4] Test case on setting dprintf commands Yao Qi
2013-02-28 16:30 ` [PATCH 1/4] Fix dprintf bugs Eli Zaretskii
2013-03-07 7:45 ` Yao Qi
2013-03-03 2:21 ` Marc Khouzam
2013-03-07 6:47 ` Yao Qi [this message]
2013-03-07 14:06 ` Marc Khouzam
2013-03-07 14:36 ` Yao Qi
2013-03-07 14:49 ` Marc Khouzam
2013-03-07 14:59 ` Yao Qi
2013-03-08 15:49 ` Marc Khouzam
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=513837B9.2070101@codesourcery.com \
--to=yao@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=marc.khouzam@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