diff options
author | Pedro Alves <palves@redhat.com> | 2011-01-25 15:18:36 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-01-25 15:18:36 +0000 |
commit | de4127a3b22abd0e9e69f61f6e52b5f891050ffd (patch) | |
tree | e9c7badb2302c3e663e392770e7f01d355cb5d03 /gdb/value.h | |
parent | ee99023e123b99f55fdf9a99e54e03fea21d3882 (diff) | |
download | gdb-de4127a3b22abd0e9e69f61f6e52b5f891050ffd.zip gdb-de4127a3b22abd0e9e69f61f6e52b5f891050ffd.tar.gz gdb-de4127a3b22abd0e9e69f61f6e52b5f891050ffd.tar.bz2 |
* cp-valprint.c (cp_print_value): Treat the 'skip' local as
boolean. Make sure to always pass a value that matches the
contents buffer to callees. Preserve `address' for following
iterations.
* value.c (value_contents_for_printing_const): New.
(value_address): Constify value argument.
* value.h (value_contents_for_printing_const): Declare.
(value_address): Constify value argument.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/value.h b/gdb/value.h index 16f4646..aa8ff3c 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -273,6 +273,12 @@ extern const gdb_byte *value_contents_all (struct value *); plan to check the validity manually. */ extern const gdb_byte *value_contents_for_printing (struct value *value); +/* Like value_contents_for_printing, but accepts a constant value + pointer. Unlike value_contents_for_printing however, the pointed + value must _not_ be lazy. */ +extern const gdb_byte * + value_contents_for_printing_const (const struct value *value); + extern int value_fetch_lazy (struct value *val); extern int value_contents_equal (struct value *val1, struct value *val2); @@ -308,7 +314,7 @@ extern enum lval_type *deprecated_value_lval_hack (struct value *); lval == lval_register, return the byte offset into the registers structure. Otherwise, return 0. The returned address includes the offset, if any. */ -extern CORE_ADDR value_address (struct value *); +extern CORE_ADDR value_address (const struct value *); /* Like value_address, except the result does not include value's offset. */ |