From 4f2aea11c7b01ee007960f6546b58846df591535 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 18 Jan 2006 21:24:19 +0000 Subject: Based on a previous patch form Michal Ludvig: * gdbtypes.c (append_flags_type_flag, init_flags_type): New functions. (is_integral_type, rank_one_type, recursive_dump_type): Add support for TYPE_CODE_FLAGS. * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS. (append_flags_type_field, init_flags_type): New prototypes. * ada-valprint.c (ada_val_print_1): Add support for TYPE_CODE_FLAGS. * c-valprint.c (c_val_print): Likewise. * f-valprint.c (f_val_print): Likewise. * p-valprint.c (pascal_val_print): Likewise. * valprint.c (val_print_type_code_flags): New function. * valprint.h (val_print_type_code_flags): New prototype. * value.c (unpack_long, value_from_longest): Add support for TYPE_CODE_FLAGS. --- gdb/valprint.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/valprint.h') diff --git a/gdb/valprint.h b/gdb/valprint.h index 5092fc5ef60..fa8c7c77046 100644 --- a/gdb/valprint.h +++ b/gdb/valprint.h @@ -66,6 +66,10 @@ extern void val_print_array_elements (struct type *, const gdb_byte *, extern void val_print_type_code_int (struct type *, const gdb_byte *, struct ui_file *); +extern void val_print_type_code_flags (struct type *type, + const gdb_byte *valaddr, + struct ui_file *stream); + extern void print_binary_chars (struct ui_file *, const gdb_byte *, unsigned int); -- cgit v1.2.1