public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug exp/25299] complex numbers not fully supported in expressions
[not found] <bug-25299-4717@http.sourceware.org/bugzilla/>
@ 2020-04-01 20:13 ` cvs-commit at gcc dot gnu.org
2020-04-01 20:55 ` tromey at sourceware dot org
1 sibling, 0 replies; 2+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-04-01 20:13 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25299
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c34e87146628a14cf662dca46aac893d06502f52
commit c34e87146628a14cf662dca46aac893d06502f52
Author: Tom Tromey <tom@tromey.com>
Date: Wed Apr 1 14:09:52 2020 -0600
Implement complex arithmetic
This adds support for complex arithmetic to gdb. Now something like
"print 23 + 7i" will work.
Addition, subtraction, multiplication, division, and equality testing
are supported binary operations.
Unary +, negation, and complement are supported. Following GCC, the ~
operator computes the complex conjugate.
gdb/ChangeLog
2020-04-01 Tom Tromey <tom@tromey.com>
PR exp/25299:
* valarith.c (promotion_type, complex_binop): New functions.
(scalar_binop): Handle complex numbers. Use promotion_type.
(value_pos, value_neg, value_complement): Handle complex numbers.
gdb/testsuite/ChangeLog
2020-04-01 Tom Tromey <tom@tromey.com>
* gdb.base/complex-parts.exp: Add arithmetic tests.
--
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/25299] complex numbers not fully supported in expressions
[not found] <bug-25299-4717@http.sourceware.org/bugzilla/>
2020-04-01 20:13 ` [Bug exp/25299] complex numbers not fully supported in expressions cvs-commit at gcc dot gnu.org
@ 2020-04-01 20:55 ` tromey at sourceware dot org
1 sibling, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2020-04-01 20:55 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=25299
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |10.1
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-01 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-25299-4717@http.sourceware.org/bugzilla/>
2020-04-01 20:13 ` [Bug exp/25299] complex numbers not fully supported in expressions cvs-commit at gcc dot gnu.org
2020-04-01 20:55 ` tromey at sourceware dot org
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).