Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / valprint.h
index 57bc0339fcb7ce7e3bf3f27edae57a104f64015f..e1dae2cc8fcc9b75b6bde3a8ee1f184414fb3755 100644 (file)
@@ -1,6 +1,6 @@
 /* Declarations for value printing routines for GDB, the GNU debugger.
 
-   Copyright (C) 1986-2020 Free Software Foundation, Inc.
+   Copyright (C) 1986-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -65,6 +65,9 @@ struct value_print_options
      e.g. when the user passes a format to "print".  */
   int format;
 
+  /* Print memory tag violations for pointers.  */
+  bool memory_tag_violations;
+
   /* Stop printing at null character?  */
   bool stop_print_at_null;
 
@@ -125,7 +128,7 @@ extern void get_formatted_print_options (struct value_print_options *opts,
                                         char format);
 
 extern void maybe_print_array_index (struct type *index_type, LONGEST index,
-                                     struct ui_file *stream,
+                                    struct ui_file *stream,
                                     const struct value_print_options *);
 
 
@@ -157,9 +160,6 @@ extern void print_decimal_chars (struct ui_file *, const gdb_byte *,
 extern void print_hex_chars (struct ui_file *, const gdb_byte *,
                             unsigned int, enum bfd_endian, bool);
 
-extern void print_char_chars (struct ui_file *, struct type *,
-                             const gdb_byte *, unsigned int, enum bfd_endian);
-
 extern void print_function_pointer_address (const struct value_print_options *options,
                                            struct gdbarch *gdbarch,
                                            CORE_ADDR address,
@@ -171,6 +171,20 @@ extern int read_string (CORE_ADDR addr, int len, int width,
                        gdb::unique_xmalloc_ptr<gdb_byte> *buffer,
                        int *bytes_read);
 
+/* Helper function to check the validity of some bits of a value.
+
+   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.  */
+
+extern int valprint_check_validity (struct ui_file *stream, struct type *type,
+                                   LONGEST embedded_offset,
+                                   const struct value *val);
+
 extern void val_print_optimized_out (const struct value *val,
                                     struct ui_file *stream);
 
@@ -241,6 +255,7 @@ struct format_data
     int count;
     char format;
     char size;
+    bool print_tags;
 
     /* True if the value should be printed raw -- that is, bypassing
        python-based formatters.  */
This page took 0.027703 seconds and 4 git commands to generate.