diff options
author | Tom Tromey <tom@tromey.com> | 2020-04-01 14:09:52 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-04-01 14:09:53 -0600 |
commit | fa649bb7d3c8fd97c1d8f01a3023094468f66ca4 (patch) | |
tree | 3c98b9f09421c287261c998a4fe9938f464d0e8e /gdb/location.h | |
parent | 981c08ce72f5b8729381ddebf2f3fe5f1e000638 (diff) | |
download | gdb-fa649bb7d3c8fd97c1d8f01a3023094468f66ca4.zip gdb-fa649bb7d3c8fd97c1d8f01a3023094468f66ca4.tar.gz gdb-fa649bb7d3c8fd97c1d8f01a3023094468f66ca4.tar.bz2 |
Change the C parser to allow complex constants
This changes the C parser to allow complex constants. Now something
like "print 23i" will work.
There are no tests in this patch; they come later.
gdb/ChangeLog
2020-04-01 Tom Tromey <tom@tromey.com>
* c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
(exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
(parse_number): Handle complex numbers.
Diffstat (limited to 'gdb/location.h')
0 files changed, 0 insertions, 0 deletions