public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/15501] New: 'disable 3.1 3.2 3.3' doesn't work as expected.
@ 2013-05-20 16:44 palves at redhat dot com
2013-08-06 18:48 ` [Bug breakpoints/15501] 'disable 3.1 3.2 3.3' doesn't work as expected. (likewise "enable") palves at redhat dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: palves at redhat dot com @ 2013-05-20 16:44 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15501
Bug #: 15501
Summary: 'disable 3.1 3.2 3.3' doesn't work as expected.
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
AssignedTo: unassigned@sourceware.org
ReportedBy: palves@redhat.com
Classification: Unclassified
While "disable 1 2 3 4" works as expected, if one passes location numbers
instead of breakpoint numbers, then only the first location is updated. Vis:
(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb) b main
Breakpoint 2 at 0x4004cf: file main.c, line 5.
(gdb) b main
Note: breakpoint 2 also set at pc 0x4004cf.
Breakpoint 3 at 0x4004cf: file main.c, line 5.
(gdb) info breakpoints
Num Type Disp Enb Address What
2 breakpoint keep y 0x00000000004004cf in main at main.c:5
3 breakpoint keep y 0x00000000004004cf in main at main.c:5
(gdb) disable 2 3
(gdb) info breakpoints
Num Type Disp Enb Address What
2 breakpoint keep n 0x00000000004004cf in main at main.c:5
3 breakpoint keep n 0x00000000004004cf in main at main.c:5
(gdb) enable 2 3
(gdb) info breakpoints
Num Type Disp Enb Address What
2 breakpoint keep y 0x00000000004004cf in main at main.c:5
3 breakpoint keep y 0x00000000004004cf in main at main.c:5
(gdb) disable 2.1 3.1
(gdb) info breakpoints
Num Type Disp Enb Address What
2 breakpoint keep y <MULTIPLE>
2.1 n 0x00000000004004cf in main at main.c:5
3 breakpoint keep y 0x00000000004004cf in main at main.c:5
(gdb) enable 2.1 3.1
(gdb) info breakpoints
Num Type Disp Enb Address What
2 breakpoint keep y 0x00000000004004cf in main at main.c:5
3 breakpoint keep y 0x00000000004004cf in main at main.c:5
In fact, everything after the first location is ignored:
(gdb) disable 2.1 foofoobar
(gdb) info breakpoints
Num Type Disp Enb Address What
2 breakpoint keep y <MULTIPLE>
2.1 n 0x00000000004004cf in main at main.c:5
3 breakpoint keep y 0x00000000004004cf in main at main.c:5
(gdb)
That should warn, just like:
(gdb) disable 2 foofoobar
warning: bad breakpoint number at or near 'foofoobar'
--
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] 5+ messages in thread
* [Bug breakpoints/15501] 'disable 3.1 3.2 3.3' doesn't work as expected. (likewise "enable")
2013-05-20 16:44 [Bug breakpoints/15501] New: 'disable 3.1 3.2 3.3' doesn't work as expected palves at redhat dot com
@ 2013-08-06 18:48 ` palves at redhat dot com
2013-08-15 10:38 ` mwaqas at codesourcery dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: palves at redhat dot com @ 2013-08-06 18:48 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15501
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|'disable 3.1 3.2 3.3' |'disable 3.1 3.2 3.3'
|doesn't work as expected. |doesn't work as expected.
| |(likewise "enable")
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug breakpoints/15501] 'disable 3.1 3.2 3.3' doesn't work as expected. (likewise "enable")
2013-05-20 16:44 [Bug breakpoints/15501] New: 'disable 3.1 3.2 3.3' doesn't work as expected palves at redhat dot com
2013-08-06 18:48 ` [Bug breakpoints/15501] 'disable 3.1 3.2 3.3' doesn't work as expected. (likewise "enable") palves at redhat dot com
@ 2013-08-15 10:38 ` mwaqas at codesourcery dot com
2013-08-23 6:22 ` cvs-commit at gcc dot gnu.org
2013-08-23 6:25 ` mwaqas at codesourcery dot com
3 siblings, 0 replies; 5+ messages in thread
From: mwaqas at codesourcery dot com @ 2013-08-15 10:38 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15501
Muhammad Waqas <mwaqas at codesourcery dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mwaqas at codesourcery dot com
Assignee|unassigned at sourceware dot org |mwaqas at codesourcery dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug breakpoints/15501] 'disable 3.1 3.2 3.3' doesn't work as expected. (likewise "enable")
2013-05-20 16:44 [Bug breakpoints/15501] New: 'disable 3.1 3.2 3.3' doesn't work as expected palves at redhat dot com
2013-08-06 18:48 ` [Bug breakpoints/15501] 'disable 3.1 3.2 3.3' doesn't work as expected. (likewise "enable") palves at redhat dot com
2013-08-15 10:38 ` mwaqas at codesourcery dot com
@ 2013-08-23 6:22 ` cvs-commit at gcc dot gnu.org
2013-08-23 6:25 ` mwaqas at codesourcery dot com
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2013-08-23 6:22 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15501
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
CVSROOT: /cvs/src
Module name: src
Changes by: mwaqas@sourceware.org 2013-08-23 06:22:10
Modified files:
gdb : breakpoint.c ChangeLog
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.base: ena-dis-br.exp
Log message:
2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
PR gdb/15501
* breakpoint.c (enable_command, disable_command): Iterate over
all specified breakpoint locations.
2013-07-12 Muhammad Waqas <mwaqas@codesourccery.com>
PR gdb/15501
* gdb.base/ena-dis-br.exp: Add test to verify
enable/disable commands work correctly with
multiple arguments that include multiple locations.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.c.diff?cvsroot=src&r1=1.775&r2=1.776
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15921&r2=1.15922
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3781&r2=1.3782
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/ena-dis-br.exp.diff?cvsroot=src&r1=1.22&r2=1.23
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug breakpoints/15501] 'disable 3.1 3.2 3.3' doesn't work as expected. (likewise "enable")
2013-05-20 16:44 [Bug breakpoints/15501] New: 'disable 3.1 3.2 3.3' doesn't work as expected palves at redhat dot com
` (2 preceding siblings ...)
2013-08-23 6:22 ` cvs-commit at gcc dot gnu.org
@ 2013-08-23 6:25 ` mwaqas at codesourcery dot com
3 siblings, 0 replies; 5+ messages in thread
From: mwaqas at codesourcery dot com @ 2013-08-23 6:25 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15501
Muhammad Waqas <mwaqas at codesourcery dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Muhammad Waqas <mwaqas at codesourcery dot com> ---
fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-08-23 6:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-20 16:44 [Bug breakpoints/15501] New: 'disable 3.1 3.2 3.3' doesn't work as expected palves at redhat dot com
2013-08-06 18:48 ` [Bug breakpoints/15501] 'disable 3.1 3.2 3.3' doesn't work as expected. (likewise "enable") palves at redhat dot com
2013-08-15 10:38 ` mwaqas at codesourcery dot com
2013-08-23 6:22 ` cvs-commit at gcc dot gnu.org
2013-08-23 6:25 ` mwaqas at codesourcery 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).