diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-04-03 14:39:55 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-04-03 14:39:55 +0000 |
commit | a72c8f6a2934a77223ba77f972f418ec40240d1d (patch) | |
tree | 96bb7e0935269309786f35c1449f69edc5f782ee /gdb/valprint.c | |
parent | 23916fffce6bac40347fc5a061c9e073e462f943 (diff) | |
download | gdb-a72c8f6a2934a77223ba77f972f418ec40240d1d.zip gdb-a72c8f6a2934a77223ba77f972f418ec40240d1d.tar.gz gdb-a72c8f6a2934a77223ba77f972f418ec40240d1d.tar.bz2 |
gdb/
* cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
for TYPE_VPTR_FIELDNO.
* valprint.c (valprint_check_validity): Make it global, move the
function comment ...
* value.h (valprint_check_validity): ... to this new declaration.
gdb/testsuite/
* gdb.trace/unavailable.exp
(collect globals: print object on: print derived_partial)
(collect globals: print object on: print derived_whole)
(collect globals: print object off: print derived_partial)
(collect globals: print object off: print derived_whole): Update
expected output.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 0037cb9..738fef4 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -248,17 +248,9 @@ scalar_type_p (struct type *type) } } -/* Helper function to check the validity of some bits of a value. +/* See its definition in value.h. */ - If TYPE represents some aggregate type (e.g., a structure), return 1. - - Otherwise, any of the bytes starting at OFFSET and extending for - TYPE_LENGTH(TYPE) bytes are invalid, print a message to STREAM and - return 0. The checking is done using FUNCS. - - Otherwise, return 1. */ - -static int +int valprint_check_validity (struct ui_file *stream, struct type *type, int embedded_offset, |