diff options
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/value.h b/gdb/value.h index 0c7c785..b9d2809 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -1156,9 +1156,12 @@ extern struct value *address_of_variable (struct symbol *var, extern value *value_of_register (int regnum, const frame_info_ptr &next_frame); -/* Same as the above, but the value is not fetched. */ +/* Same as the above, but the value is not fetched. If TYPE is + non-nullptr, use it as the value type. Otherwise, 'register_type' + will be used to obtain the type. */ -extern value *value_of_register_lazy (const frame_info_ptr &next_frame, int regnum); +extern value *value_of_register_lazy (const frame_info_ptr &next_frame, + int regnum, struct type *type = nullptr); /* Return the symbol's reading requirement. */ @@ -1586,7 +1589,7 @@ extern struct value *make_cv_value (int, int, struct value *); extern struct value *varying_to_slice (struct value *); -extern struct value *value_slice (struct value *, int, int); +extern struct value *value_slice (struct value *, LONGEST, LONGEST); /* Create a complex number. The type is the complex type; the values are cast to the underlying scalar type before the complex number is |