aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2019-07-10 21:49:32 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2019-07-10 21:49:32 -0400
commit00db9531969db8b6ab984da996d0411fad938589 (patch)
treeac820f7c702db640479041c599395c19c1bcb54a /gdb/value.h
parentf2478a7e8b145a55c343bc7a62c53b021062229e (diff)
downloadgdb-00db9531969db8b6ab984da996d0411fad938589.zip
gdb-00db9531969db8b6ab984da996d0411fad938589.tar.gz
gdb-00db9531969db8b6ab984da996d0411fad938589.tar.bz2
Make value_must_coerce_to_target return a bool
... and move comment to header file. gdb/ChangeLog: * valops.c (value_must_coerce_to_target): Change return type to bool. * value.h (value_must_coerce_to_target): Likewise.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/value.h b/gdb/value.h
index f96b095..9f55408 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -793,7 +793,10 @@ extern struct value *value_ptradd (struct value *arg1, LONGEST arg2);
extern LONGEST value_ptrdiff (struct value *arg1, struct value *arg2);
-extern int value_must_coerce_to_target (struct value *arg1);
+/* Return true if VAL does not live in target memory, but should in order
+ to operate on it. Otherwise return false. */
+
+extern bool value_must_coerce_to_target (struct value *arg1);
extern struct value *value_coerce_to_target (struct value *arg1);