Bug 11925 - objc-exp.y doesn't handle floats with suffixes, e.g. 1.1f
Summary: objc-exp.y doesn't handle floats with suffixes, e.g. 1.1f
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: objc (show other bugs)
Version: unknown
: P3 minor
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-18 20:13 UTC by dje
Modified: 2020-03-07 14:50 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dje 2010-08-18 20:13:46 UTC
bash$ ./gdb -nx
... 7.2.50.20100816-cvs ...
(gdb) set lang objective-c
(gdb) p 1.1f
Invalid number "1.1f".

The problem is in yylex.  It flags the number as invalid before calling 
parse_number.
Comment 1 Tom Tromey 2011-08-17 14:51:48 UTC
I think objc-exp.y should be merged with c-exp.y.
That would fix this problem plus a bunch of others -- anything else
that was fixed in c-exp.y in the past several years.
Comment 2 Giah de Barag 2016-09-13 21:39:53 UTC
This bug is now obsolete.

After objc-exp.y was merged with c-exp.y that left the objective-c language support broken, but now it has been fully restored by the following patch:

https://sourceware.org/ml/gdb-patches/2016-09/msg00100.html
Comment 3 Tom Tromey 2020-03-07 14:50:12 UTC
As noted, this was fixed a long time ago.