public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/15678] New: Typing "enable count" crashes gdb
@ 2013-06-25 22:09 simon.marchi at ericsson dot com
2013-08-05 16:20 ` [Bug gdb/15678] " jan.kratochvil at redhat dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: simon.marchi at ericsson dot com @ 2013-06-25 22:09 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15678
Bug ID: 15678
Summary: Typing "enable count" crashes gdb
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: simon.marchi at ericsson dot com
Step 1: Launch gdb
Step 2: Type "enable count"
Observed behaviour: gdb crashes
Expected behaviour: gdb tells me subtly that I should go back to school and
learn to read better.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/15678] Typing "enable count" crashes gdb
2013-06-25 22:09 [Bug gdb/15678] New: Typing "enable count" crashes gdb simon.marchi at ericsson dot com
@ 2013-08-05 16:20 ` jan.kratochvil at redhat dot com
2013-08-06 14:16 ` jan.kratochvil at redhat dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-08-05 16:20 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15678
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.kratochvil at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/15678] Typing "enable count" crashes gdb
2013-06-25 22:09 [Bug gdb/15678] New: Typing "enable count" crashes gdb simon.marchi at ericsson dot com
2013-08-05 16:20 ` [Bug gdb/15678] " jan.kratochvil at redhat dot com
@ 2013-08-06 14:16 ` jan.kratochvil at redhat dot com
2013-08-06 18:43 ` palves at redhat dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-08-06 14:16 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15678
--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
[PATCH] "enable count" user input error handling (PR gdb/15678)
http://sourceware.org/ml/gdb-patches/2013-06/msg00788.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/15678] Typing "enable count" crashes gdb
2013-06-25 22:09 [Bug gdb/15678] New: Typing "enable count" crashes gdb simon.marchi at ericsson dot com
2013-08-05 16:20 ` [Bug gdb/15678] " jan.kratochvil at redhat dot com
2013-08-06 14:16 ` jan.kratochvil at redhat dot com
@ 2013-08-06 18:43 ` palves at redhat dot com
2015-02-06 15:33 ` cvs-commit at gcc dot gnu.org
2015-02-06 18:07 ` simon.marchi at ericsson dot com
4 siblings, 0 replies; 6+ messages in thread
From: palves at redhat dot com @ 2013-08-06 18:43 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15678
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |palves at redhat dot com
Assignee|unassigned at sourceware dot org |simon.marchi at ericsson dot com
--- Comment #2 from Pedro Alves <palves at redhat dot com> ---
Patch here:
http://sourceware.org/ml/gdb-patches/2013-06/msg00788.html
Waiting for copyright assignment to come through.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/15678] Typing "enable count" crashes gdb
2013-06-25 22:09 [Bug gdb/15678] New: Typing "enable count" crashes gdb simon.marchi at ericsson dot com
` (2 preceding siblings ...)
2013-08-06 18:43 ` palves at redhat dot com
@ 2015-02-06 15:33 ` cvs-commit at gcc dot gnu.org
2015-02-06 18:07 ` simon.marchi at ericsson dot com
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-02-06 15:33 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=15678
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Simon Marchi <simark@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b9d6130764916fac3d9bcfde2d672053a0ef3316
commit b9d6130764916fac3d9bcfde2d672053a0ef3316
Author: Simon Marchi <simon.marchi@ericsson.com>
Date: Mon Feb 2 14:57:31 2015 -0500
"enable count" user input error handling (PR gdb/15678)
Typing "enable count" by itself crashes GDB. Also, if you omit the
breakpoint number/range, the error message is not very clear:
(gdb) enable count 2
warning: bad breakpoint number at or near ''
(gdb) enable count
Segmentation fault (core dumped)
With this patch, the error messages are slightly more helpful:
(gdb) enable count 2
Argument required (one or more breakpoint numbers).
(gdb) enable count
Argument required (hit count).
gdb/ChangeLog:
PR gdb/15678
* breakpoint.c (map_breakpoint_numbers): Check for empty args
string.
(enable_count_command): Check args for NULL value.
gdb/testsuite/ChangeLog:
PR gdb/15678
* gdb.base/ena-dis-br.exp: Test "enable count" for bad user input.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/15678] Typing "enable count" crashes gdb
2013-06-25 22:09 [Bug gdb/15678] New: Typing "enable count" crashes gdb simon.marchi at ericsson dot com
` (3 preceding siblings ...)
2015-02-06 15:33 ` cvs-commit at gcc dot gnu.org
@ 2015-02-06 18:07 ` simon.marchi at ericsson dot com
4 siblings, 0 replies; 6+ messages in thread
From: simon.marchi at ericsson dot com @ 2015-02-06 18:07 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=15678
Simon Marchi <simon.marchi at ericsson dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Simon Marchi <simon.marchi at ericsson dot com> ---
Fixed by patch above.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-02-06 15:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-25 22:09 [Bug gdb/15678] New: Typing "enable count" crashes gdb simon.marchi at ericsson dot com
2013-08-05 16:20 ` [Bug gdb/15678] " jan.kratochvil at redhat dot com
2013-08-06 14:16 ` jan.kratochvil at redhat dot com
2013-08-06 18:43 ` palves at redhat dot com
2015-02-06 15:33 ` cvs-commit at gcc dot gnu.org
2015-02-06 18:07 ` simon.marchi 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).