This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix bug 15293 Ignore-count does not work properly with dprintf
- From: Hui Zhu <teawater at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Sun, 21 Apr 2013 10:02:21 +0800
- Subject: Re: [PATCH] Fix bug 15293 Ignore-count does not work properly with dprintf
- References: <CANFwon3vZ_AyasT=aLvbxS3zBA-AES5Ed3sXkAEvC-Xw+6Yj2w at mail dot gmail dot com> <87bo9awjgf dot fsf at fleche dot redhat dot com>
On Sat, Apr 20, 2013 at 12:53 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:
>
> Hui> This patch fix http://sourceware.org/bugzilla/show_bug.cgi?id=15293
> Hui> Also I update dprintf.exp for this bug.
> Hui> Please help me review it.
>
> After this patch, "ignore" doesn't cause the program to stop -- this
> part seems correct.
>
> But it seems to me that "ignore" should make the "dprintf" not print
> anything at all. Otherwise, what is being ignored?
If dprintf is not ignore, it will stop, print and continue.
If ignore, it will not stop. So it will not print anything.
>
> Hui> +gdb_test "ignore \$bpnum 1" ".*Will ignore next crossing of breakpoint.*"
>
> I was surprised to find that this didn't interfere with the "info break"
> test later on.
Because after breakpoint pass this ignore, it will not show in "info break"
>
> Tom