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 | 6b4a335bf7b7996e904e895b3fdc35443c40cfca (patch) | |
tree | 6f22d2f7099db83a424a6fa06bcc854998f90372 /gdb/value.h | |
parent | 3638a098a21ce706ef2b17185f3b165e4f9a5c54 (diff) | |
download | gdb-6b4a335bf7b7996e904e895b3fdc35443c40cfca.zip gdb-6b4a335bf7b7996e904e895b3fdc35443c40cfca.tar.gz gdb-6b4a335bf7b7996e904e895b3fdc35443c40cfca.tar.bz2 |
Fix value_literal_complex comment
Christian pointed out that the value_literal_complex was still a bit
weird; this patch rewrites it and moves it to value.h.
gdb/ChangeLog
2020-04-01 Tom Tromey <tom@tromey.com>
* value.h (value_literal_complex): Add comment.
* valops.c (value_literal_complex): Refer to value.h.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h index 85fe6c2..247be13 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -1138,6 +1138,10 @@ extern struct value *varying_to_slice (struct value *); extern struct value *value_slice (struct value *, int, int); +/* Create a complex number. The type is the complex type; the values + are cast to the underlying scalar type before the complex number is + created. */ + extern struct value *value_literal_complex (struct value *, struct value *, struct type *); |