public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf
@ 2013-03-21 17:24 marc.khouzam at ericsson dot com
2013-04-19 5:30 ` [Bug breakpoints/15293] " teawater at gmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: marc.khouzam at ericsson dot com @ 2013-03-21 17:24 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15293
Bug #: 15293
Summary: Ignore-count does not work properly with dprintf
Product: gdb
Version: 7.5
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
AssignedTo: unassigned@sourceware.org
ReportedBy: marc.khouzam@ericsson.com
Classification: Unclassified
Ignore-count and dprintf does not work. The same wrong behavior as with
conditions can be seen as shown in Bug 15179
> gdb.7.5 loopfirst
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/lmckhou/loopfirst...done.
(gdb) l
1 #include <unistd.h>
2 #include <stdio.h>
3
4 int main() {
5 int max = 90;
6 for (int i=0;i<max;i++) {
7 printf("i is %d\n",i);
8 sleep(1);
9 }
10 return 0;
(gdb) dprintf 8,"hello\n"
Dprintf 1 at 0x400570: file loopfirst.cc, line 8.
(gdb) ignore 1 3
Will ignore next 3 crossings of breakpoint 1.
(gdb) info b
Num Type Disp Enb Address What
1 dprintf keep y 0x0000000000400570 in main() at loopfirst.cc:8
ignore next 3 hits
printf "hello\n"
continue
(gdb) r
Starting program: /home/lmckhou/loopfirst
i is 0
(gdb)) info b
Num Type Disp Enb Address What
1 dprintf keep y 0x0000000000400570 in main() at loopfirst.cc:8
breakpoint already hit 1 time
ignore next 2 hits
printf "hello\n"
continue
(gdb)
Why did program interrupt?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug breakpoints/15293] Ignore-count does not work properly with dprintf 2013-03-21 17:24 [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf marc.khouzam at ericsson dot com @ 2013-04-19 5:30 ` teawater at gmail dot com 2013-04-19 5:30 ` teawater at gmail dot com ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: teawater at gmail dot com @ 2013-04-19 5:30 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15293 teawater <teawater at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug breakpoints/15293] Ignore-count does not work properly with dprintf 2013-03-21 17:24 [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf marc.khouzam at ericsson dot com 2013-04-19 5:30 ` [Bug breakpoints/15293] " teawater at gmail dot com @ 2013-04-19 5:30 ` teawater at gmail dot com 2013-04-19 5:31 ` teawater at gmail dot com ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: teawater at gmail dot com @ 2013-04-19 5:30 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15293 teawater <teawater at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |teawater at gmail dot com -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug breakpoints/15293] Ignore-count does not work properly with dprintf 2013-03-21 17:24 [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf marc.khouzam at ericsson dot com 2013-04-19 5:30 ` [Bug breakpoints/15293] " teawater at gmail dot com 2013-04-19 5:30 ` teawater at gmail dot com @ 2013-04-19 5:31 ` teawater at gmail dot com 2013-04-19 9:44 ` teawater at gmail dot com ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: teawater at gmail dot com @ 2013-04-19 5:31 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15293 teawater <teawater at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at sourceware |teawater at gmail dot com |dot org | -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug breakpoints/15293] Ignore-count does not work properly with dprintf 2013-03-21 17:24 [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf marc.khouzam at ericsson dot com ` (2 preceding siblings ...) 2013-04-19 5:31 ` teawater at gmail dot com @ 2013-04-19 9:44 ` teawater at gmail dot com 2013-04-23 3:20 ` cvs-commit at gcc dot gnu.org ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: teawater at gmail dot com @ 2013-04-19 9:44 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15293 --- Comment #1 from teawater <teawater at gmail dot com> 2013-04-19 09:44:18 UTC --- http://sourceware.org/ml/gdb-patches/2013-04/msg00565.html -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug breakpoints/15293] Ignore-count does not work properly with dprintf 2013-03-21 17:24 [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf marc.khouzam at ericsson dot com ` (3 preceding siblings ...) 2013-04-19 9:44 ` teawater at gmail dot com @ 2013-04-23 3:20 ` cvs-commit at gcc dot gnu.org 2013-04-23 3:22 ` teawater at gmail dot com ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2013-04-23 3:20 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15293 --- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2013-04-23 03:20:22 UTC --- CVSROOT: /cvs/src Module name: src Changes by: teawater@sourceware.org 2013-04-23 03:20:21 Modified files: gdb : ChangeLog breakpoint.c gdb/testsuite : ChangeLog gdb/testsuite/gdb.base: dprintf.exp Log message: 2013-04-23 Hui Zhu <hui@codesourcery.com> PR gdb/15293 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf. 2013-04-23 Hui Zhu <hui@codesourcery.com> PR gdb/15293 * gdb.base/dprintf.exp: Add ignore command. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15467&r2=1.15468 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.c.diff?cvsroot=src&r1=1.757&r2=1.758 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3635&r2=1.3636 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/dprintf.exp.diff?cvsroot=src&r1=1.9&r2=1.10 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug breakpoints/15293] Ignore-count does not work properly with dprintf 2013-03-21 17:24 [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf marc.khouzam at ericsson dot com ` (4 preceding siblings ...) 2013-04-23 3:20 ` cvs-commit at gcc dot gnu.org @ 2013-04-23 3:22 ` teawater at gmail dot com 2013-04-25 1:26 ` cvs-commit at gcc dot gnu.org 2014-01-10 15:51 ` marc.khouzam at ericsson dot com 7 siblings, 0 replies; 9+ messages in thread From: teawater at gmail dot com @ 2013-04-23 3:22 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15293 teawater <teawater at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Version|7.5 |HEAD Resolution| |FIXED --- Comment #3 from teawater <teawater at gmail dot com> 2013-04-23 03:22:40 UTC --- http://sourceware.org/ml/gdb-cvs/2013-04/msg00222.html -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug breakpoints/15293] Ignore-count does not work properly with dprintf 2013-03-21 17:24 [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf marc.khouzam at ericsson dot com ` (5 preceding siblings ...) 2013-04-23 3:22 ` teawater at gmail dot com @ 2013-04-25 1:26 ` cvs-commit at gcc dot gnu.org 2014-01-10 15:51 ` marc.khouzam at ericsson dot com 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2013-04-25 1:26 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=15293 --- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2013-04-25 01:26:38 UTC --- CVSROOT: /cvs/src Module name: src Branch: gdb_7_6-branch Changes by: teawater@sourceware.org 2013-04-25 01:26:36 Modified files: gdb : breakpoint.c ChangeLog gdb/testsuite/gdb.base: dprintf.exp gdb/testsuite : ChangeLog Log message: 2013-04-25 Hui Zhu <hui@codesourcery.com> PR gdb/15293 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf. 2013-04-25 Hui Zhu <hui@codesourcery.com> PR gdb/15293 * gdb.base/dprintf.exp: Add ignore command. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.c.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.745.2.3&r2=1.745.2.4 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.15260.2.42&r2=1.15260.2.43 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/dprintf.exp.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.8&r2=1.8.2.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_6-branch&r1=1.3580.2.16&r2=1.3580.2.17 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug breakpoints/15293] Ignore-count does not work properly with dprintf 2013-03-21 17:24 [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf marc.khouzam at ericsson dot com ` (6 preceding siblings ...) 2013-04-25 1:26 ` cvs-commit at gcc dot gnu.org @ 2014-01-10 15:51 ` marc.khouzam at ericsson dot com 7 siblings, 0 replies; 9+ messages in thread From: marc.khouzam at ericsson dot com @ 2014-01-10 15:51 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=15293 Marc Khouzam <marc.khouzam at ericsson dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Target Milestone|--- |7.6 --- Comment #5 from Marc Khouzam <marc.khouzam at ericsson dot com> --- Looks good. Thanks! -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-01-10 15:51 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-03-21 17:24 [Bug breakpoints/15293] New: Ignore-count does not work properly with dprintf marc.khouzam at ericsson dot com 2013-04-19 5:30 ` [Bug breakpoints/15293] " teawater at gmail dot com 2013-04-19 5:30 ` teawater at gmail dot com 2013-04-19 5:31 ` teawater at gmail dot com 2013-04-19 9:44 ` teawater at gmail dot com 2013-04-23 3:20 ` cvs-commit at gcc dot gnu.org 2013-04-23 3:22 ` teawater at gmail dot com 2013-04-25 1:26 ` cvs-commit at gcc dot gnu.org 2014-01-10 15:51 ` marc.khouzam at ericsson dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).