PR exp/11926
authorDoug Evans <dje@google.com>
Thu, 19 Aug 2010 13:33:15 +0000 (13:33 +0000)
committerDoug Evans <dje@google.com>
Thu, 19 Aug 2010 13:33:15 +0000 (13:33 +0000)
commitd30f5e1f70ffa9fab08ccdacdba1bd6365d2511d
treea578156b090268842ed34a2a077d2eb6b6519cd2
parent2837d59e6b7e523fee86a5a5a050ecb5554ccd1b
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.
13 files changed:
gdb/ChangeLog
gdb/c-exp.y
gdb/jv-exp.y
gdb/objc-exp.y
gdb/p-exp.y
gdb/parse.c
gdb/parser-defs.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/printcmds.exp
gdb/testsuite/gdb.java/jv-print.exp
gdb/testsuite/gdb.objc/print.exp [new file with mode: 0644]
gdb/testsuite/gdb.pascal/print.exp [new file with mode: 0644]
gdb/testsuite/lib/objc.exp [new file with mode: 0644]