OLD | NEW |
1 /* Declarations for value printing routines for GDB, the GNU debugger. | 1 /* Declarations for value printing routines for GDB, the GNU debugger. |
2 | 2 |
3 Copyright (C) 1986, 1988-1989, 1991-1994, 2000, 2005, 2007-2012 Free | 3 Copyright (C) 1986, 1988-1989, 1991-1994, 2000, 2005, 2007-2012 Free |
4 Software Foundation, Inc. | 4 Software Foundation, Inc. |
5 | 5 |
6 This file is part of GDB. | 6 This file is part of GDB. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 /* If nonzero, print static fields for Pascal. FIXME: C++ and Java | 84 /* If nonzero, print static fields for Pascal. FIXME: C++ and Java |
85 share one flag, why not Pascal too? */ | 85 share one flag, why not Pascal too? */ |
86 int pascal_static_field_print; | 86 int pascal_static_field_print; |
87 | 87 |
88 /* Controls Python pretty-printing. */ | 88 /* Controls Python pretty-printing. */ |
89 int raw; | 89 int raw; |
90 | 90 |
91 /* If nonzero, print the value in "summary" form. */ | 91 /* If nonzero, print the value in "summary" form. */ |
92 int summary; | 92 int summary; |
| 93 |
| 94 /* If nonzero, when printing a pointer, print the symbol to which it |
| 95 points, if any. */ |
| 96 int symbol_print; |
93 }; | 97 }; |
94 | 98 |
95 /* The global print options set by the user. In general this should | 99 /* The global print options set by the user. In general this should |
96 not be directly accessed, except by set/show commands. Ordinary | 100 not be directly accessed, except by set/show commands. Ordinary |
97 code should call get_user_print_options instead. */ | 101 code should call get_user_print_options instead. */ |
98 extern struct value_print_options user_print_options; | 102 extern struct value_print_options user_print_options; |
99 | 103 |
100 /* Initialize *OPTS to be a copy of the user print options. */ | 104 /* Initialize *OPTS to be a copy of the user print options. */ |
101 extern void get_user_print_options (struct value_print_options *opts); | 105 extern void get_user_print_options (struct value_print_options *opts); |
102 | 106 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 145 |
142 extern void print_decimal_chars (struct ui_file *, const gdb_byte *, | 146 extern void print_decimal_chars (struct ui_file *, const gdb_byte *, |
143 unsigned int, enum bfd_endian); | 147 unsigned int, enum bfd_endian); |
144 | 148 |
145 extern void print_hex_chars (struct ui_file *, const gdb_byte *, | 149 extern void print_hex_chars (struct ui_file *, const gdb_byte *, |
146 unsigned int, enum bfd_endian); | 150 unsigned int, enum bfd_endian); |
147 | 151 |
148 extern void print_char_chars (struct ui_file *, struct type *, | 152 extern void print_char_chars (struct ui_file *, struct type *, |
149 const gdb_byte *, unsigned int, enum bfd_endian); | 153 const gdb_byte *, unsigned int, enum bfd_endian); |
150 | 154 |
| 155 extern void print_function_pointer_address (const struct value_print_options *op
tions, |
| 156 struct gdbarch *gdbarch, |
| 157 CORE_ADDR address, |
| 158 struct ui_file *stream); |
| 159 |
151 int read_string (CORE_ADDR addr, int len, int width, unsigned int fetchlimit, | 160 int read_string (CORE_ADDR addr, int len, int width, unsigned int fetchlimit, |
152 enum bfd_endian byte_order, gdb_byte **buffer, | 161 enum bfd_endian byte_order, gdb_byte **buffer, |
153 int *bytes_read); | 162 int *bytes_read); |
154 | 163 |
155 extern void val_print_optimized_out (struct ui_file *stream); | 164 extern void val_print_optimized_out (struct ui_file *stream); |
156 | 165 |
157 extern void val_print_unavailable (struct ui_file *stream); | 166 extern void val_print_unavailable (struct ui_file *stream); |
158 | 167 |
159 extern void val_print_invalid_address (struct ui_file *stream); | 168 extern void val_print_invalid_address (struct ui_file *stream); |
160 | 169 |
| 170 /* An instance of this is passed to generic_val_print and describes |
| 171 some language-specific ways to print things. */ |
| 172 |
| 173 struct generic_val_print_decorations |
| 174 { |
| 175 /* Printing complex numbers: what to print before, between the |
| 176 elements, and after. */ |
| 177 |
| 178 const char *complex_prefix; |
| 179 const char *complex_infix; |
| 180 const char *complex_suffix; |
| 181 |
| 182 /* Boolean true and false. */ |
| 183 |
| 184 const char *true_name; |
| 185 const char *false_name; |
| 186 |
| 187 /* What to print when we see TYPE_CODE_VOID. */ |
| 188 |
| 189 const char *void_name; |
| 190 }; |
| 191 |
| 192 |
| 193 extern void generic_val_print (struct type *type, const gdb_byte *valaddr, |
| 194 int embedded_offset, CORE_ADDR address, |
| 195 struct ui_file *stream, int recurse, |
| 196 const struct value *original_value, |
| 197 const struct value_print_options *options, |
| 198 const struct generic_val_print_decorations *); |
| 199 |
161 extern void generic_emit_char (int c, struct type *type, struct ui_file *stream, | 200 extern void generic_emit_char (int c, struct type *type, struct ui_file *stream, |
162 int quoter, const char *encoding); | 201 int quoter, const char *encoding); |
163 | 202 |
164 extern void generic_printstr (struct ui_file *stream, struct type *type, | 203 extern void generic_printstr (struct ui_file *stream, struct type *type, |
165 const gdb_byte *string, unsigned int length, | 204 const gdb_byte *string, unsigned int length, |
166 const char *encoding, int force_ellipses, | 205 const char *encoding, int force_ellipses, |
167 int quote_char, int c_style_terminator, | 206 int quote_char, int c_style_terminator, |
168 const struct value_print_options *options); | 207 const struct value_print_options *options); |
169 | 208 |
170 #endif | 209 #endif |
OLD | NEW |