90 _(
"The largest offset that will be "
91 "printed in <symbol+1234> form is %s.\n"),
103 "line number with <symbol> is %s.\n"),
151 #define ALL_DISPLAYS(B) \
152 for (B = display_chain; B; B = B->next)
154 #define ALL_DISPLAYS_SAFE(B,TMP) \
155 for (B = display_chain; \
156 B ? (TMP = B->next, 1): 0; \
182 const char *p = *string_ptr;
189 if (*p >=
'0' && *p <=
'9')
190 val.
count = atoi (p);
191 while (*p >=
'0' && *p <=
'9')
198 if (*p ==
'b' || *p ==
'h' || *p ==
'w' || *p ==
'g')
205 else if (*p >=
'a' && *p <=
'z')
211 while (*p ==
' ' || *p ==
'\t')
227 val.
format = oformat ==
'i' ?
'x' : oformat;
229 else if (val.
size ==
'?')
236 val.
size = osize ?
'a' : osize;
240 if (osize ==
'w' || osize ==
'g')
245 val.
size = osize ?
'g' : osize;
249 val.
size = osize ?
'b' : osize;
293 stream, options) *
len);
303 &branch_delay_insns));
323 options, size, stream);
388 if (options->
format !=
'f')
424 error (
_(
"Undefined output size \"%c\"."), size);
472 _(
"failed internal consistency check"));
477 char bits[8 * (
sizeof val_long) + 1];
478 char buf[8 * (
sizeof val_long) + 32];
483 width = 8 * (
sizeof val_long);
500 error (
_(
"Undefined output size \"%c\"."), size);
506 bits[width] = (val_long & 1) ?
'1' :
'0';
511 while (*cp && *cp ==
'0')
516 strncpy (buf, cp,
sizeof (
bits));
526 error (
_(
"Undefined output format \"%c\"."), options->
format);
538 next_gdbarch = gdbarch;
558 int do_demangle,
char *leadin)
561 char *filename = NULL;
571 &filename, &line, &unmapped))
588 if (print_symbol_filename && filename != NULL)
624 const char *name_temp =
"";
669 if (msymbol.
minsym != NULL
677 if (msymbol.
minsym != NULL)
702 if (symbol == NULL && msymbol.
minsym == NULL)
712 if (addr > name_location + max_symbolic_offset
713 && name_location + max_symbolic_offset > name_location)
716 *offset = addr - name_location;
718 *name = xstrdup (name_temp);
720 if (print_symbol_filename)
773 struct ui_file *stream,
int do_demangle)
797 struct type *val_type = NULL;
805 next_gdbarch = gdbarch;
827 _(
"failed internal consistency check"));
832 else if (size ==
'h')
834 else if (size ==
'w')
836 else if (size ==
'g')
841 struct type *char_type = NULL;
847 else if (size ==
'w')
850 val_type = char_type;
853 if (size !=
'\0' && size !=
'b')
854 warning (
_(
"Unable to display strings with "
855 "size '%c', using 'b' instead."), size);
866 if (format ==
's' || format ==
'i')
890 if (last_examine_value)
904 if (last_examine_value)
910 if (format ==
'i' && count == 1)
922 error (
_(
"Size letters are meaningless in \"%s\" command."), cmdname);
924 error (
_(
"Item count other than 1 is meaningless in \"%s\" command."),
927 error (
_(
"Format letter \"%c\" is meaningless in \"%s\" command."),
938 const char *exp = *expp;
940 if (exp && *exp ==
'/')
945 last_format = fmtp->
format;
1048 if (exp && *exp ==
'/')
1082 if (expr->
nelts >= 1)
1085 case UNOP_PREINCREMENT:
1086 case UNOP_POSTINCREMENT:
1087 case UNOP_PREDECREMENT:
1088 case UNOP_POSTDECREMENT:
1090 case BINOP_ASSIGN_MODIFY:
1095 (
_(
"Expression is not an assignment (and might have no effect)"));
1130 const char *obj_name, *mapped, *sec_name, *msym_name;
1143 loc_string =
xstrprintf (
"%s + %u", msym_name, offset);
1158 "%s overlay section %s of %s\n"),
1159 loc_string, mapped, sec_name, obj_name);
1162 "section %s of %s\n"),
1163 loc_string, sec_name, obj_name);
1167 loc_string, mapped, sec_name, obj_name);
1170 loc_string, sec_name, obj_name);
1176 loc_string, mapped, sec_name);
1179 loc_string, sec_name);
1183 loc_string, mapped, sec_name);
1186 loc_string, sec_name);
1208 error (
_(
"Argument required."));
1211 &is_a_field_of_this);
1214 if (is_a_field_of_this.
type != NULL)
1229 if (msymbol.
minsym != NULL)
1254 error (
_(
"No symbol \"%s\" in current context."), exp);
1374 if (msym.minsym == NULL)
1384 "in the thread-local storage for `%s'"),
1424 fmt.
format = last_format ? last_format :
'x';
1429 if (exp && *exp ==
'/')
1431 const char *tmp = exp + 1;
1439 if (exp != 0 && *exp != 0)
1467 do_examine (fmt, next_gdbarch, next_address);
1474 last_size = fmt.
size;
1475 last_format = fmt.
format;
1478 if (last_examine_value)
1486 last_examine_address));
1509 const char *
exp = arg;
1547 display_chain = newobj;
1571 while ((d = display_chain) != NULL)
1573 display_chain = d->
next;
1587 if (display_chain == display)
1588 display_chain = display->
next;
1591 if (d->
next == display)
1605 void (*
function) (
struct display *,
1619 const char *p = state.
string;
1623 warning (
_(
"bad display number at or near '%s'"), p);
1654 if (
query (
_(
"Delete all auto-display expressions? ")))
1672 int within_current_scope;
1704 warning (
_(
"Unable to display \"%s\": %s"),
1716 within_current_scope = 0;
1719 within_current_scope = 1;
1720 if (!within_current_scope)
1724 current_display_number = d->
number;
1823 for (d = display_chain; d; d = d->
next)
1835 for (d = display_chain; d; d = d->
next)
1847 if (current_display_number >= 0)
1851 _(
"Disabling display %d to "
1852 "avoid infinite recursion.\n"),
1853 current_display_number);
1855 current_display_number = -1;
1867 Num Enb Expression\n"));
1869 for (d = display_chain; d; d = d->
next)
1943 if (objfile == NULL)
1945 pspace = objfile->
pspace;
1952 for (d = display_chain; d != NULL; d = d->
next)
1979 struct ui_file *stream,
int indent)
2058 "wchar_t", NULL, 0);
2061 struct obstack output;
2062 struct cleanup *inner_cleanup;
2067 for (j = 0;; j += wcwidth)
2076 str = (
gdb_byte *) alloca (j + wcwidth);
2079 memset (&str[j], 0, wcwidth);
2081 obstack_init (&output);
2103 #if defined (PRINTF_HAS_DECFLOAT)
2119 struct value *dfp_value = NULL;
2123 struct type *dfp_type = NULL;
2128 p = format + strlen (format);
2131 while (*p !=
'f' && *p !=
'e' && *p !=
'E'
2132 && *p !=
'g' && *p !=
'G')
2145 else if (*p ==
'D' && *(p - 1) ==
'D')
2161 byte_order, dec, dfp_len, byte_order);
2193 #ifdef PRINTF_HAS_LONG_LONG
2199 fmt = alloca (strlen (format) + 5);
2206 int is_percent = (*p ==
'%');
2222 while (*p >=
'0' && *p <
'9')
2228 #ifdef PRINTF_HAS_LONG_LONG
2250 const char *s = arg;
2251 struct value **val_args;
2252 int allocated_args = 20;
2255 val_args =
xmalloc (allocated_args *
sizeof (
struct value *));
2259 error_no_arg (
_(
"format-control string and values to print"));
2265 error (
_(
"Bad format string, missing '\"'."));
2272 error (
_(
"Bad format string, non-terminated '\"'."));
2276 if (*s !=
',' && *s != 0)
2277 error (
_(
"Invalid argument syntax"));
2287 char *current_substring;
2290 for (fr = 0; fpieces[fr].
string != NULL; fr++)
2301 if (nargs == allocated_args)
2303 (allocated_args *= 2)
2304 *
sizeof (
struct value *));
2314 if (nargs != nargs_wanted)
2315 error (
_(
"Wrong number of arguments for specified format-string"));
2319 for (fr = 0; fpieces[fr].
string != NULL; fr++)
2321 current_substring = fpieces[fr].
string;
2335 "wchar_t", NULL, 0);
2336 struct type *valtype;
2337 struct obstack output;
2338 struct cleanup *inner_cleanup;
2344 error (
_(
"expected wchar_t argument for %%lc"));
2348 obstack_init (&output);
2359 obstack_base (&output));
2374 error (
_(
"Invalid floating value found in program."));
2380 #ifdef HAVE_LONG_DOUBLE
2391 error (
_(
"Invalid floating value found in program."));
2398 error (
_(
"long double not supported in printf"));
2401 #ifdef PRINTF_HAS_LONG_LONG
2409 error (
_(
"long long not supported in printf"));
2445 _(
"failed internal consistency check"));
2488 current_display_number = -1;
2493 _(
"Describe where symbol SYM is stored."));
2496 Describe what symbol is at location ADDR.\n\
2497 Only for symbols with fixed locations (global or static scope)."));
2500 Examine memory: x/FMT ADDRESS.\n\
2501 ADDRESS is an expression for the memory address to examine.\n\
2502 FMT is a repeat count followed by a format letter and a size letter.\n\
2503 Format letters are o(octal), x(hex), d(decimal), u(unsigned decimal),\n\
2504 t(binary), f(float), a(address), i(instruction), c(char), s(string)\n\
2505 and z(hex, zero padded on the left).\n\
2506 Size letters are b(byte), h(halfword), w(word), g(giant, 8 bytes).\n\
2507 The specified number of objects of the specified size are printed\n\
2508 according to the format.\n\n\
2509 Defaults for format and size letters are those previously used.\n\
2510 Default count is 1. Default address is following last thing printed\n\
2511 with this command or \"print\"."));
2515 _(
"Print line number and file of definition of variable."));
2519 Expressions to display when program stops, with code numbers."));
2522 Cancel some expressions to be displayed when program stops.\n\
2523 Arguments are the code numbers of the expressions to stop displaying.\n\
2524 No argument means cancel all automatic-display expressions.\n\
2525 \"delete display\" has the same effect as this command.\n\
2526 Do \"info display\" to see current list of code numbers."),
2530 Print value of expression EXP each time the program stops.\n\
2531 /FMT may be used before EXP as in the \"print\" command.\n\
2532 /FMT \"i\" or \"s\" or including a size-letter is allowed,\n\
2533 as in the \"x\" command, and then EXP is used to get the address to examine\n\
2534 and examining is done as in the \"x\" command.\n\n\
2535 With no argument, display all currently requested auto-display expressions.\n\
2536 Use \"undisplay\" to cancel display requests previously made."));
2539 Enable some expressions to be displayed when program stops.\n\
2540 Arguments are the code numbers of the expressions to resume displaying.\n\
2541 No argument means enable all automatic-display expressions.\n\
2542 Do \"info display\" to see current list of code numbers."), &
enablelist);
2545 Disable some expressions to be displayed when program stops.\n\
2546 Arguments are the code numbers of the expressions to stop displaying.\n\
2547 No argument means disable all automatic-display expressions.\n\
2548 Do \"info display\" to see current list of code numbers."), &
disablelist);
2551 Cancel some expressions to be displayed when program stops.\n\
2552 Arguments are the code numbers of the expressions to stop displaying.\n\
2553 No argument means cancel all automatic-display expressions.\n\
2554 Do \"info display\" to see current list of code numbers."), &
deletelist);
2557 printf \"printf format string\", arg1, arg2, arg3, ..., argn\n\
2558 This is useful for formatted output in user-defined commands."));
2561 Like \"print\" but don't put in value history and don't print newline.\n\
2562 This is useful in user-defined commands."));
2565 Evaluate expression EXP and assign result to variable VAR, using assignment\n\
2566 syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\
2567 example). VAR may be a debugger \"convenience\" variable (names starting\n\
2568 with $), a register (a few standard names starting with $), or an actual\n\
2569 variable in the program being debugged. EXP is any valid expression.\n\
2570 Use \"set variable\" for variables with names identical to set subcommands.\n\
2572 With a subcommand, this command modifies parts of the gdb environment.\n\
2573 You can see these environment settings with the \"show\" command."),
2577 Evaluate expression EXP and assign result to variable VAR, using assignment\n\
2578 syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\
2579 example). VAR may be a debugger \"convenience\" variable (names starting\n\
2580 with $), a register (a few standard names starting with $), or an actual\n\
2581 variable in the program being debugged. EXP is any valid expression.\n\
2582 Use \"set variable\" for variables with names identical to set subcommands.\n\
2583 \nWith a subcommand, this command modifies parts of the gdb environment.\n\
2584 You can see these environment settings with the \"show\" command."));
2588 Call a function in the program.\n\
2589 The argument is the function name and arguments, in the notation of the\n\
2590 current working language. The result is printed and saved in the value\n\
2591 history, if it is not void."));
2595 Evaluate expression EXP and assign result to variable VAR, using assignment\n\
2596 syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\
2597 example). VAR may be a debugger \"convenience\" variable (names starting\n\
2598 with $), a register (a few standard names starting with $), or an actual\n\
2599 variable in the program being debugged. EXP is any valid expression.\n\
2600 This may usually be abbreviated to simply \"set\"."),
2604 Print value of expression EXP.\n\
2605 Variables accessible are those of the lexical environment of the selected\n\
2606 stack frame, plus all those whose scope is global or an entire file.\n\
2608 $NUM gets previous value number NUM. $ and $$ are the last two values.\n\
2609 $$NUM refers to NUM'th value back from the last one.\n\
2610 Names starting with $ refer to registers (with the values they would have\n\
2611 if the program were to return to the stack frame now selected, restoring\n\
2612 all registers saved by frames farther in) or else to debugger\n\
2613 \"convenience\" variables (any such name not a known register).\n\
2614 Use assignment expressions to give values to convenience variables.\n\
2616 {TYPE}ADREXP refers to a datum of data type TYPE, located at address ADREXP.\n\
2617 @ is a binary operator for treating consecutive data objects\n\
2618 anywhere in memory as an array. FOO@NUM gives an array whose first\n\
2619 element is FOO, whose second element is stored in the space following\n\
2620 where FOO is stored, etc. FOO must be an expression whose value\n\
2621 resides in memory.\n\
2623 EXP may be preceded with /FMT, where FMT is a format letter\n\
2624 but no count or size letter (see \"x\" command)."));
2630 &max_symbolic_offset,
_(
"\
2631 Set the largest offset that will be printed in <symbol+1234> form."),
_(
"\
2632 Show the largest offset that will be printed in <symbol+1234> form."),
_(
"\
2633 Tell GDB to only display the symbolic form of an address if the\n\
2634 offset between the closest earlier symbol and the address is less than\n\
2635 the specified maximum offset. The default is \"unlimited\", which tells GDB\n\
2636 to always print the symbolic form of an address if any symbol precedes\n\
2637 it. Zero is equivalent to \"unlimited\"."),
2642 &print_symbol_filename,
_(
"\
2643 Set printing of source filename and line number with <symbol>."),
_(
"\
2644 Show printing of source filename and line number with <symbol>."), NULL,
2650 Convert \"printf format string\", arg1, arg2, arg3, ..., argn to\n\
2651 a command line, and call it."));
void error_no_arg(const char *why)
void val_print_scalar_formatted(struct type *type, const gdb_byte *valaddr, int embedded_offset, const struct value *val, const struct value_print_options *options, int size, struct ui_file *stream)
union exp_element elts[1]
ULONGEST extract_unsigned_integer(const gdb_byte *, int, enum bfd_endian)
struct cmd_list_element * add_prefix_cmd(const char *name, enum command_class theclass, cmd_cfunc_ftype *fun, const char *doc, struct cmd_list_element **prefixlist, const char *prefixname, int allow_unknown, struct cmd_list_element **list)
const char * symtab_to_filename_for_display(struct symtab *symtab)
struct type * builtin_declong
static void output_command(char *exp, int from_tty)
struct bound_minimal_symbol lookup_minimal_symbol_by_pc_section(CORE_ADDR pc, struct obj_section *section)
int decimal_from_string(gdb_byte *decbytes, int len, enum bfd_endian byte_order, const char *string)
void fprintf_symbol_filtered(struct ui_file *stream, const char *name, enum language lang, int arg_mode)
int exp_uses_objfile(struct expression *exp, struct objfile *objfile)
struct frame_info * get_selected_frame(const char *message)
struct observer * observer_attach_free_objfile(observer_free_objfile_ftype *f)
struct type * builtin_long_double
#define SYMBOL_PRINT_NAME(symbol)
void value_print(struct value *val, struct ui_file *stream, const struct value_print_options *options)
struct type * builtin_true_unsigned_char
#define MSYMBOL_LINKAGE_NAME(symbol)
static void printf_pointer(struct ui_file *stream, const char *format, struct value *value)
void _initialize_printcmd(void)
void disable_display(int num)
struct objfile * separate_debug_objfile_backlink
static struct cleanup * cleanup_chain
struct cmd_list_element * enablelist
int pointer_type(struct type *type)
static void set_command(char *exp, int from_tty)
int section_is_overlay(struct obj_section *section)
CORE_ADDR unpack_pointer(struct type *type, const gdb_byte *valaddr)
LONGEST value_as_long(struct value *val)
struct bfd_section * the_bfd_section
#define BMSYMBOL_VALUE_ADDRESS(symbol)
void warning(const char *fmt,...)
static void call_command(char *exp, int from_tty)
struct type ** const(pascal_builtin_types[])
int query(const char *ctlstr,...)
static int branch_delay_insns
struct program_space * pspace
void decimal_convert(const gdb_byte *from, int len_from, enum bfd_endian byte_order_from, gdb_byte *to, int len_to, enum bfd_endian byte_order_to)
int gdbarch_ptr_bit(struct gdbarch *gdbarch)
struct symbol * find_pc_sect_function(CORE_ADDR pc, struct obj_section *section)
char * ui_file_xstrdup(struct ui_file *file, long *length)
static void printf_wide_c_string(struct ui_file *stream, const char *format, struct value *value)
static void x_command(char *exp, int from_tty)
void get_formatted_print_options(struct value_print_options *opts, char format)
struct ui_file * gdb_stdout
const struct builtin_type * builtin_type(struct gdbarch *gdbarch)
void common_val_print(struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options, const struct language_defn *language)
void disable_current_display(void)
#define SYMBOL_CLASS(symbol)
void internal_error(const char *file, int line, const char *fmt,...)
#define obj_section_endaddr(s)
static void printf_c_string(struct ui_file *stream, const char *format, struct value *value)
int get_frame_pc_if_available(struct frame_info *frame, CORE_ADDR *pc)
struct cmd_list_element * deletelist
void print_floating(const gdb_byte *valaddr, struct type *type, struct ui_file *stream)
void annotate_value_history_value(void)
#define MAX_DECIMAL_STRING
struct value * coerce_ref(struct value *arg)
void value_free(struct value *val)
static CORE_ADDR last_examine_address
#define ALL_OBJSECTIONS(objfile, osect)
const struct block * block
void print_scalar_formatted(const void *valaddr, struct type *type, const struct value_print_options *options, int size, struct ui_file *stream)
struct value * read_var_value(struct symbol *var, struct frame_info *frame)
static int display_number
struct gdbarch * symbol_arch(const struct symbol *symbol)
const struct block * innermost_block
void decimal_to_string(const gdb_byte *decbytes, int len, enum bfd_endian byte_order, char *s)
struct program_space * pspace
enum language la_language
DOUBLEST unpack_double(struct type *type, const gdb_byte *valaddr, int *invp)
void clear_displays(void)
struct cmd_list_element * cmdlist
void print_decimal_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
void print_variable_and_value(const char *name, struct symbol *var, struct frame_info *frame, struct ui_file *stream, int indent)
struct internalvar * lookup_internalvar(const char *name)
const gdb_byte * value_contents_for_printing(struct value *value)
static void show_max_symbolic_offset(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void execute_command(char *, int)
#define bits(obj, st, fn)
const char * pc_prefix(CORE_ADDR addr)
void annotate_display_value(void)
struct objfile * symbol_objfile(const struct symbol *symbol)
struct type * builtin_int32
void printf_filtered(const char *format,...)
struct type * builtin_char16
const char * paddress(struct gdbarch *gdbarch, CORE_ADDR addr)
static CORE_ADDR next_address
#define SYMBOL_OBJ_SECTION(objfile, symbol)
struct obj_section * find_pc_overlay(CORE_ADDR pc)
#define obj_section_addr(s)
#define MSYMBOL_OBJ_SECTION(objfile, symbol)
static int print_symbol_filename
void null_cleanup(void *arg)
struct value * evaluate_expression(struct expression *exp)
#define MSYMBOL_PRINT_NAME(symbol)
static void show_print_symbol_filename(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
void annotate_value_end(void)
struct type * lookup_typename(const struct language_defn *language, struct gdbarch *gdbarch, const char *name, const struct block *block, int noerr)
struct cmd_list_element * setlist
void print_char_chars(struct ui_file *stream, struct type *type, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
struct type * builtin_decdouble
struct type * check_typedef(struct type *type)
#define SYMBOL_VALUE_ADDRESS(symbol)
const gdb_byte * value_contents(struct value *value)
#define CATCH(EXCEPTION, MASK)
void convert_between_encodings(const char *from, const char *to, const gdb_byte *bytes, unsigned int num_bytes, int width, struct obstack *output, enum transliterations translit)
int contained_in(const struct block *a, const struct block *b)
struct cleanup * make_cleanup_restore_integer(int *variable)
struct type * builtin_char32
void print_value(struct value *val, const struct format_data *fmtp)
static void do_one_display(struct display *)
static void address_info(char *exp, int from_tty)
static struct value * last_examine_value
struct value * value_from_decfloat(struct type *type, const gdb_byte *dec)
CORE_ADDR gdbarch_addr_bits_remove(struct gdbarch *gdbarch, CORE_ADDR addr)
int value_lazy(struct value *value)
void fprintf_filtered(struct ui_file *stream, const char *format,...)
const char * target_wide_charset(struct gdbarch *gdbarch)
const char * skip_spaces_const(const char *chp)
static struct gdbarch * next_gdbarch
void set_cmd_completer(struct cmd_list_element *cmd, completer_ftype *completer)
void add_setshow_uinteger_cmd(const char *name, enum command_class theclass, unsigned int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
struct bound_minimal_symbol lookup_minimal_symbol_and_objfile(const char *name)
void fprintf_unfiltered(struct ui_file *stream, const char *format,...)
static void map_display_numbers(char *args, void(*function)(struct display *, void *), void *data)
static void do_delete_display(struct display *d, void *data)
int gdb_print_insn(struct gdbarch *gdbarch, CORE_ADDR memaddr, struct ui_file *stream, int *branch_delay_insns)
struct cmd_list_element * add_com_alias(const char *name, const char *oldname, enum command_class theclass, int abbrev_flag)
void fputs_filtered(const char *linebuffer, struct ui_file *stream)
static void delete_display(struct display *display)
void puts_filtered(const char *string)
#define gdb_assert_not_reached(message)
struct type * builtin_int16
struct cmd_list_element * add_cmd(const char *name, enum command_class theclass, cmd_cfunc_ftype *fun, const char *doc, struct cmd_list_element **list)
void free_current_contents(void *ptr)
#define MSYMBOL_SIZE(msymbol)
void set_next_address(struct gdbarch *gdbarch, CORE_ADDR addr)
#define SYMBOL_REGISTER_OPS(symbol)
#define SYMBOL_COMPUTED_OPS(symbol)
enum bfd_endian gdbarch_byte_order(struct gdbarch *gdbarch)
void set_internalvar(struct internalvar *var, struct value *val)
struct cleanup * make_cleanup(make_cleanup_ftype *function, void *arg)
struct gdbarch * get_objfile_arch(const struct objfile *objfile)
static void do_examine(struct format_data fmt, struct gdbarch *gdbarch, CORE_ADDR addr)
void annotate_display_end(void)
static void enable_display_command(char *args, int from_tty)
struct gdbarch * get_type_arch(const struct type *type)
struct cmd_list_element * add_info(const char *name, cmd_cfunc_ftype *fun, const char *doc)
struct gdbarch * get_current_arch(void)
static int current_display_number
struct value * value_from_longest(struct type *type, LONGEST num)
struct type * builtin_decfloat
#define SYMBOL_LINKAGE_NAME(symbol)
const char * gdbarch_register_name(struct gdbarch *gdbarch, int regnr)
struct value * value_at_lazy(struct type *type, CORE_ADDR addr)
int gdbarch_addr_bit(struct gdbarch *gdbarch)
void annotate_display_expression_end(void)
struct cmd_list_element * setprintlist
struct format_data format
void print_binary_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
char * xstrprintf(const char *format,...)
void wrap_here(char *indent)
void printf_unfiltered(const char *format,...)
int section_is_mapped(struct obj_section *osect)
void read_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
const char * objfile_name(const struct objfile *objfile)
void print_octal_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
struct ui_file * mem_fileopen(void)
struct expression * parse_expression(const char *)
LONGEST unpack_long(struct type *type, const gdb_byte *valaddr)
#define SYMBOL_VALUE(symbol)
void annotate_display_expression(void)
struct value * parse_to_comma_and_eval(const char **expp)
struct cmd_list_element * disablelist
#define SYMBOL_OBJFILE_OWNED(symbol)
PTR xrealloc(PTR ptr, size_t size)
static void enable_disable_display_command(char *args, int from_tty, int enable)
static void undisplay_command(char *args, int from_tty)
#define MSYMBOL_TYPE(msymbol)
struct value * value_from_pointer(struct type *type, CORE_ADDR addr)
const struct language_defn * current_language
static unsigned int max_symbolic_offset
void print_longest(struct ui_file *stream, int format, int use_c_format, LONGEST val_long)
struct type * builtin_double
CORE_ADDR overlay_unmapped_address(CORE_ADDR pc, struct obj_section *section)
struct cleanup * make_cleanup_ui_file_delete(struct ui_file *arg)
static void printf_command(char *arg, int from_tty)
#define SYMBOL_BLOCK_VALUE(symbol)
static struct format_data decode_format(const char **string_ptr, int oformat, int osize)
CORE_ADDR parse_and_eval_address(const char *exp)
#define TYPE_CODE(thistype)
void print_command_parse_format(const char **expp, const char *cmdname, struct format_data *fmtp)
struct type * builtin_true_char
struct ui_file * gdb_stderr
struct type * builtin_data_ptr
struct minimal_symbol * minsym
void annotate_display_format(void)
static void ui_printf(const char *arg, struct ui_file *stream)
struct symbol * lookup_symbol(const char *name, const struct block *block, domain_enum domain, struct field_of_this_result *is_a_field_of_this)
void annotate_value_begin(struct type *type)
void get_user_print_options(struct value_print_options *opts)
struct bound_minimal_symbol lookup_bound_minimal_symbol(const char *name)
void annotate_value_history_end(void)
void clear_internalvar(struct internalvar *var)
int print_address_demangle(const struct value_print_options *opts, struct gdbarch *gdbarch, CORE_ADDR addr, struct ui_file *stream, int do_demangle)
void annotate_display_begin(void)
static void eval_command(char *arg, int from_tty)
static void free_display(struct display *d)
#define MSYMBOL_HAS_SIZE(msymbol)
struct cmd_list_element * showprintlist
void annotate_display_number_end(void)
static struct type * float_type_from_length(struct type *type)
int record_latest_value(struct value *val)
const struct block * get_selected_block(CORE_ADDR *addr_in_block)
enum overlay_debugging_state overlay_debugging
struct program_space * current_program_space
void annotate_value_history_begin(int histindex, struct type *type)
static int ignore(struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
struct symtab_and_line find_pc_sect_line(CORE_ADDR pc, struct obj_section *section, int notcurrent)
int value_embedded_offset(struct value *value)
void release_value(struct value *val)
static void validate_format(struct format_data fmt, const char *cmdname)
struct objfile * lookup_objfile_from_block(const struct block *block)
#define ALL_DISPLAYS_SAFE(B, TMP)
static void print_command_1(const char *exp, int voidprint)
#define obstack_grow_str0(OBSTACK, STRING)
struct type * value_type(const struct value *value)
struct type * builtin_int64
struct value * access_value_history(int num)
CORE_ADDR value_as_address(struct value *val)
static void display_info(char *ignore, int from_tty)
static void printf_decfloat(struct ui_file *stream, const char *format, struct value *value)
CORE_ADDR overlay_mapped_address(CORE_ADDR pc, struct obj_section *section)
const char * host_charset(void)
#define TYPE_LENGTH(thistype)
int build_address_symbolic(struct gdbarch *gdbarch, CORE_ADDR addr, int do_demangle, char **name, int *offset, char **filename, int *line, int *unmapped)
void output_command_const(const char *exp, int from_tty)
int val_print_string(struct type *elttype, const char *encoding, CORE_ADDR addr, int len, struct ui_file *stream, const struct value_print_options *options)
void gdb_flush(struct ui_file *file)
struct cleanup * make_cleanup_obstack_free(struct obstack *obstack)
struct type * builtin_int8
int get_number_or_range(struct get_number_or_range_state *state)
CORE_ADDR value_address(const struct value *value)
static void print_formatted(struct value *val, int size, const struct value_print_options *options, struct ui_file *stream)
#define MULTI_OBJFILE_P()
static void do_enable_disable_display(struct display *d, void *data)
CORE_ADDR pc_in_unmapped_range(CORE_ADDR pc, struct obj_section *section)
enum bfd_endian byte_order
int has_stack_frames(void)
void error(const char *fmt,...)
static void print_command(char *exp, int from_tty)
static void clear_dangling_display_expressions(struct objfile *objfile)
int print_address_symbolic(struct gdbarch *gdbarch, CORE_ADDR addr, struct ui_file *stream, int do_demangle, char *leadin)
static void disable_display_command(char *args, int from_tty)
struct cmd_list_element * add_com(const char *name, enum command_class theclass, cmd_cfunc_ftype *fun, const char *doc)
struct type * lookup_pointer_type(struct type *type)
static void sym_info(char *arg, int from_tty)
static void display_command(char *arg, int from_tty)
void print_address(struct gdbarch *gdbarch, CORE_ADDR addr, struct ui_file *stream)
void init_number_or_range(struct get_number_or_range_state *state, const char *string)
void do_cleanups(struct cleanup *old_chain)
void add_setshow_boolean_cmd(const char *name, enum command_class theclass, int *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
#define MSYMBOL_VALUE_ADDRESS(objfile, symbol)
#define SYMBOL_IS_ARGUMENT(symbol)
static struct display * display_chain
struct type * builtin_float
void print_hex_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order)
const ULONGEST const LONGEST len