public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug exp/11926] "p 0x1.1" crashes gdb
[not found] <bug-11926-4717@http.sourceware.org/bugzilla/>
@ 2012-02-06 15:28 ` tromey at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: tromey at redhat dot com @ 2012-02-06 15:28 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=11926
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |tromey at redhat dot com
Resolution| |FIXED
Target Milestone|7.1 |7.2
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2010-08-19 13:33:29 UTC ---
Subject: Bug 11926
CVSROOT: /cvs/src
Module name: src
Changes by: devans@sourceware.org 2010-08-19 13:33:15
Modified files:
gdb : ChangeLog c-exp.y jv-exp.y objc-exp.y p-exp.y
parse.c parser-defs.h
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.base: printcmds.exp
gdb/testsuite/gdb.java: jv-print.exp
Added files:
gdb/testsuite/gdb.objc: print.exp
gdb/testsuite/gdb.pascal: print.exp
gdb/testsuite/lib: objc.exp
Log message:
PR exp/11926
* parser-defs.h (parse_float, parse_c_float): Declare.
* parse.c (parse_float, parse_c_float): New function.
* c-exp.y (parse_number): Call parse_c_float.
* objc-exp.y (parse_number): Ditto.
* p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
* jv-exp.y (parse_number): Call parse_float, fix suffix handling.
testsuite/
* gdb.base/printcmds.exp (test_float_accepted): New function.
Move existing float tests there. Add tests for floats with suffixes.
(test_float_rejected): New function.
* gdb.java/jv-print.exp (test_float_accepted): New function.
(test_float_rejected): New function.
* gdb.objc/print.exp: New file.
* gdb.pascal/print.exp: New file.
* lib/objc.exp: New file.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12099&r2=1.12100
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/c-exp.y.diff?cvsroot=src&r1=1.76&r2=1.77
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/jv-exp.y.diff?cvsroot=src&r1=1.39&r2=1.40
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/objc-exp.y.diff?cvsroot=src&r1=1.38&r2=1.39
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/p-exp.y.diff?cvsroot=src&r1=1.50&r2=1.51
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/parse.c.diff?cvsroot=src&r1=1.103&r2=1.104
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/parser-defs.h.diff?cvsroot=src&r1=1.36&r2=1.37
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2420&r2=1.2421
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/printcmds.exp.diff?cvsroot=src&r1=1.36&r2=1.37
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.java/jv-print.exp.diff?cvsroot=src&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.objc/print.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.pascal/print.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/objc.exp.diff?cvsroot=src&r1=NONE&r2=1.1
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2010-08-19 15:50:38 UTC ---
Subject: Bug 11926
CVSROOT: /cvs/src
Module name: src
Branch: gdb_7_2-branch
Changes by: devans@sourceware.org 2010-08-19 15:50:03
Modified files:
gdb : ChangeLog c-exp.y
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.base: printcmds.exp
Log message:
PR exp/11926
* c-exp.y (parse_number): Handle 0 return from sscanf.
testsuite/
* gdb.base/printcmds.exp (test_integer_literals_rejected): Add
test of "p 0x1.1".
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_2-branch&r1=1.11973.2.32&r2=1.11973.2.33
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/c-exp.y.diff?cvsroot=src&only_with_tag=gdb_7_2-branch&r1=1.76&r2=1.76.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_2-branch&r1=1.2376.2.9&r2=1.2376.2.10
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/printcmds.exp.diff?cvsroot=src&only_with_tag=gdb_7_2-branch&r1=1.34.2.1&r2=1.34.2.2
--- Comment #4 from Tom Tromey <tromey at redhat dot com> 2012-02-06 15:25:23 UTC ---
Fix was committed a while ago.
--
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] 2+ messages in thread
* [Bug exp/11926] "p 0x1.1" crashes gdb
2010-08-18 20:27 [Bug exp/11926] New: " dje at google dot com
@ 2010-08-18 20:37 ` dje at google dot com
0 siblings, 0 replies; 2+ messages in thread
From: dje at google dot com @ 2010-08-18 20:37 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From dje at google dot com 2010-08-18 20:37 -------
Related problems:
(gdb) set lang java
(gdb) p 1.1f
Invalid number "1.1f"
(gdb) set lang pascal
(gdb) p 1.1f
Invalid number "1.1f".
These are also due to invalid suffix handling in the language's respective
parse_number routines.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11926
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-06 15:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-11926-4717@http.sourceware.org/bugzilla/>
2012-02-06 15:28 ` [Bug exp/11926] "p 0x1.1" crashes gdb tromey at redhat dot com
2010-08-18 20:27 [Bug exp/11926] New: " dje at google dot com
2010-08-18 20:37 ` [Bug exp/11926] " dje at google 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).