aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-03-07 14:53:37 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-03-07 14:53:37 +0000
commit7584bb30cf380cff9cc3914b1b523c5a1a5b4302 (patch)
tree6a6bf77b40345eadf32c168a602575d5ab347fcd /gdb/value.h
parent2c5ebf12393443eec1d666f613cbc70a6b72f49a (diff)
downloadgdb-7584bb30cf380cff9cc3914b1b523c5a1a5b4302.zip
gdb-7584bb30cf380cff9cc3914b1b523c5a1a5b4302.tar.gz
gdb-7584bb30cf380cff9cc3914b1b523c5a1a5b4302.tar.bz2
gdb: Move value_from_host_double into value.c and make more use of it
The function value_from_host_double can be moved from f-lang.c into value.c as a generally useful function, and then used more widely. Tested on X86-64/GNU Linux with no regressions. gdb/ChangeLog: * f-lang.c (value_from_host_double): Moved to... * value.c (value_from_host_double): ...here. * value.h (value_from_host_double): Declare. * guile/scm-math.c (vlscm_convert_typed_number): Use value_from_host_double. (vlscm_convert_number): Likewise. * guile/scm-value.c (gdbscm_value_to_real): Likewise. * python/py-value.c (convert_value_from_python): Likewise.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 1ca91e0..d3905cc 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -669,6 +669,7 @@ extern void pack_long (gdb_byte *buf, struct type *type, LONGEST num);
extern struct value *value_from_longest (struct type *type, LONGEST num);
extern struct value *value_from_ulongest (struct type *type, ULONGEST num);
extern struct value *value_from_pointer (struct type *type, CORE_ADDR addr);
+extern struct value *value_from_host_double (struct type *type, double d);
extern struct value *value_from_history_ref (const char *, const char **);
extern struct value *value_from_component (struct value *, struct type *,
LONGEST);