92 _(
"The largest offset that will be " 93 "printed in <symbol+1234> form is %s.\n"),
105 "line number with <symbol> is %s.\n"),
153 #define ALL_DISPLAYS(B) \ 154 for (B = display_chain; B; B = B->next) 156 #define ALL_DISPLAYS_SAFE(B,TMP) \ 157 for (B = display_chain; \ 158 B ? (TMP = B->next, 1): 0; \ 180 const char *p = *string_ptr;
192 if (*p >=
'0' && *p <=
'9')
193 val.
count *= atoi (p);
194 while (*p >=
'0' && *p <=
'9')
201 if (*p ==
'b' || *p ==
'h' || *p ==
'w' || *p ==
'g')
208 else if (*p >=
'a' && *p <=
'z')
214 while (*p ==
' ' || *p ==
'\t')
230 val.
format = oformat ==
'i' ?
'x' : oformat;
232 else if (val.
size ==
'?')
239 val.
size = osize ?
'a' : osize;
243 if (osize ==
'w' || osize ==
'g')
248 val.
size = osize ?
'g' : osize;
252 val.
size = osize ?
'b' : osize;
296 stream, options) * len);
325 options,
size, stream);
371 if (options->
format !=
'c' 397 error (
_(
"Undefined output size \"%c\"."),
size);
399 if (newlen < len &&
byte_order == BFD_ENDIAN_BIG)
400 valaddr += len - newlen;
409 && (options->
format ==
'o' 414 || options->
format ==
'u'))
420 valaddr = converted_float_bytes.data ();
426 char format = options->
format;
523 int do_demangle,
const char *leadin)
526 char *filename = NULL;
536 &filename, &line, &unmapped))
589 const char *name_temp =
"";
634 if (msymbol.
minsym != NULL
642 if (msymbol.
minsym != NULL)
681 *
offset = addr - name_location;
683 *
name = xstrdup (name_temp);
738 struct ui_file *stream,
int do_demangle)
764 int inst_count,
int *inst_read)
769 std::vector<CORE_ADDR> pcs;
773 loop_start = loop_end = addr;
799 loop_end = loop_start;
804 for (p = loop_start; p < loop_end;)
810 inst_count -= pcs.size ();
811 *inst_read += pcs.size ();
813 while (inst_count > 0);
837 p = pcs.size () > 0 ? pcs[-inst_count] : loop_start;
843 *inst_read += inst_count;
871 for (nread = 0; nread < len; ++nread)
893 while (i < len && x[i] == 0)
906 CORE_ADDR addr,
int count,
int char_size,
908 int *strings_counted)
910 const int chunk_size = 0x20;
913 int chars_to_read = chunk_size;
914 int chars_counted = 0;
915 int count_original = count;
918 gdb_assert (char_size == 1 || char_size == 2 || char_size == 4);
920 while (count > 0 && read_error == 0)
924 addr -= chars_to_read * char_size;
926 chars_to_read * char_size);
927 chars_read /= char_size;
928 read_error = (chars_read == chars_to_read) ? 0 : 1;
930 for (i = 0; i < chars_read && count > 0 ; ++i, ++chars_counted)
932 int offset = (chars_to_read - i - 1) * char_size;
941 string_start_addr = addr +
offset + char_size;
948 *strings_counted = count_original - count;
954 string_start_addr -= chars_counted * char_size;
957 return string_start_addr;
969 struct type *val_type = NULL;
973 int need_to_update_next_address = 0;
1001 _(
"failed internal consistency check"));
1006 else if (
size ==
'h')
1008 else if (
size ==
'w')
1010 else if (
size ==
'g')
1015 struct type *char_type = NULL;
1021 else if (
size ==
'w')
1024 val_type = char_type;
1028 warning (
_(
"Unable to display strings with " 1029 "size '%c', using 'b' instead."),
size);
1040 if (format ==
's' || format ==
'i')
1057 else if (format ==
's')
1071 addr_rewound = (format ==
's' 1074 need_to_update_next_address = 1;
1116 if (format ==
'i' && count == 1)
1123 if (need_to_update_next_address)
1131 error (
_(
"Size letters are meaningless in \"%s\" command."), cmdname);
1133 error (
_(
"Item count other than 1 is meaningless in \"%s\" command."),
1136 error (
_(
"Format letter \"%c\" is meaningless in \"%s\" command."),
1147 const char *exp = *expp;
1149 if (exp && *exp ==
'/')
1250 if (exp && *exp ==
'/')
1279 if (expr->nelts >= 1)
1280 switch (expr->elts[0].opcode)
1282 case UNOP_PREINCREMENT:
1283 case UNOP_POSTINCREMENT:
1284 case UNOP_PREDECREMENT:
1285 case UNOP_POSTDECREMENT:
1287 case BINOP_ASSIGN_MODIFY:
1292 (
_(
"Expression is not an assignment (and might have no effect)"));
1326 const char *obj_name, *mapped, *sec_name, *msym_name;
1327 const char *loc_string;
1342 loc_string = string_holder.c_str ();
1345 loc_string = msym_name;
1354 "%s overlay section %s of %s\n"),
1355 loc_string, mapped, sec_name, obj_name);
1358 "section %s of %s\n"),
1359 loc_string, sec_name, obj_name);
1363 loc_string, mapped, sec_name, obj_name);
1366 loc_string, sec_name, obj_name);
1372 loc_string, mapped, sec_name);
1375 loc_string, sec_name);
1379 loc_string, mapped, sec_name);
1382 loc_string, sec_name);
1402 error (
_(
"Argument required."));
1405 &is_a_field_of_this).
symbol;
1408 if (is_a_field_of_this.
type != NULL)
1423 if (msymbol.
minsym != NULL)
1448 error (
_(
"No symbol \"%s\" in current context."), exp);
1568 if (msym.minsym == NULL)
1579 "in the thread-local storage for `%s'"),
1624 if (exp && *exp ==
'/')
1626 const char *tmp = exp + 1;
1634 if (exp != 0 && *exp != 0)
1701 const char *
exp = arg;
1732 newobj->
exp = std::move (expr);
1738 newobj->
next = NULL;
1748 last->
next = newobj;
1806 void (*
function) (
struct display *,
1819 const char *p = parser.
cur_tok ();
1823 warning (
_(
"bad display number at or near '%s'"), p);
1854 if (
query (
_(
"Delete all auto-display expressions? ")))
1871 int within_current_scope;
1902 warning (
_(
"Unable to display \"%s\": %s"),
1914 within_current_scope = 0;
1917 within_current_scope = 1;
1918 if (!within_current_scope)
2048 _(
"Disabling display %d to " 2049 "avoid infinite recursion.\n"),
2064 Num Enb Expression\n"));
2175 struct ui_file *stream,
int indent)
2258 "wchar_t", NULL, 0);
2265 for (j = 0;; j += wcwidth)
2274 str = (
gdb_byte *) alloca (j + wcwidth);
2277 memset (&str[j], 0, wcwidth);
2303 struct type *fmt_type;
2374 #ifdef PRINTF_HAS_LONG_LONG 2380 fmt = (
char *) alloca (strlen (format) + 5);
2387 int is_percent = (*p ==
'%');
2403 while (*p >=
'0' && *p <
'9')
2409 #ifdef PRINTF_HAS_LONG_LONG 2430 const char *s = arg;
2431 std::vector<struct value *> val_args;
2434 error_no_arg (
_(
"format-control string and values to print"));
2440 error (
_(
"Bad format string, missing '\"'."));
2445 error (
_(
"Bad format string, non-terminated '\"'."));
2449 if (*s !=
',' && *s != 0)
2450 error (
_(
"Invalid argument syntax"));
2459 const char *current_substring;
2462 for (
auto &&piece : fpieces)
2481 if (val_args.size () != nargs_wanted)
2482 error (
_(
"Wrong number of arguments for specified format-string"));
2486 for (
auto &&piece : fpieces)
2488 current_substring = piece.string;
2489 switch (piece.argclass)
2502 "wchar_t", NULL, 0);
2503 struct type *valtype;
2509 error (
_(
"expected wchar_t argument for %%lc"));
2523 obstack_base (&output));
2527 #ifdef PRINTF_HAS_LONG_LONG 2535 error (
_(
"long long not supported in printf"));
2576 _(
"failed internal consistency check"));
2618 _(
"Describe where symbol SYM is stored."));
2621 Describe what symbol is at location ADDR.\n\ 2622 Only for symbols with fixed locations (global or static scope)."));
2625 Examine memory: x/FMT ADDRESS.\n\ 2626 ADDRESS is an expression for the memory address to examine.\n\ 2627 FMT is a repeat count followed by a format letter and a size letter.\n\ 2628 Format letters are o(octal), x(hex), d(decimal), u(unsigned decimal),\n\ 2629 t(binary), f(float), a(address), i(instruction), c(char), s(string)\n\ 2630 and z(hex, zero padded on the left).\n\ 2631 Size letters are b(byte), h(halfword), w(word), g(giant, 8 bytes).\n\ 2632 The specified number of objects of the specified size are printed\n\ 2633 according to the format. If a negative number is specified, memory is\n\ 2634 examined backward from the address.\n\n\ 2635 Defaults for format and size letters are those previously used.\n\ 2636 Default count is 1. Default address is following last thing printed\n\ 2637 with this command or \"print\"."));
2641 _(
"Print line number and file of definition of variable."));
2645 Expressions to display when program stops, with code numbers."));
2648 Cancel some expressions to be displayed when program stops.\n\ 2649 Arguments are the code numbers of the expressions to stop displaying.\n\ 2650 No argument means cancel all automatic-display expressions.\n\ 2651 \"delete display\" has the same effect as this command.\n\ 2652 Do \"info display\" to see current list of code numbers."),
2656 Print value of expression EXP each time the program stops.\n\ 2657 /FMT may be used before EXP as in the \"print\" command.\n\ 2658 /FMT \"i\" or \"s\" or including a size-letter is allowed,\n\ 2659 as in the \"x\" command, and then EXP is used to get the address to examine\n\ 2660 and examining is done as in the \"x\" command.\n\n\ 2661 With no argument, display all currently requested auto-display expressions.\n\ 2662 Use \"undisplay\" to cancel display requests previously made."));
2665 Enable some expressions to be displayed when program stops.\n\ 2666 Arguments are the code numbers of the expressions to resume displaying.\n\ 2667 No argument means enable all automatic-display expressions.\n\ 2668 Do \"info display\" to see current list of code numbers."), &
enablelist);
2671 Disable some expressions to be displayed when program stops.\n\ 2672 Arguments are the code numbers of the expressions to stop displaying.\n\ 2673 No argument means disable all automatic-display expressions.\n\ 2674 Do \"info display\" to see current list of code numbers."), &
disablelist);
2677 Cancel some expressions to be displayed when program stops.\n\ 2678 Arguments are the code numbers of the expressions to stop displaying.\n\ 2679 No argument means cancel all automatic-display expressions.\n\ 2680 Do \"info display\" to see current list of code numbers."), &
deletelist);
2683 printf \"printf format string\", arg1, arg2, arg3, ..., argn\n\ 2684 This is useful for formatted output in user-defined commands."));
2687 Like \"print\" but don't put in value history and don't print newline.\n\ 2688 This is useful in user-defined commands."));
2691 Evaluate expression EXP and assign result to variable VAR, using assignment\n\ 2692 syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\ 2693 example). VAR may be a debugger \"convenience\" variable (names starting\n\ 2694 with $), a register (a few standard names starting with $), or an actual\n\ 2695 variable in the program being debugged. EXP is any valid expression.\n\ 2696 Use \"set variable\" for variables with names identical to set subcommands.\n\ 2698 With a subcommand, this command modifies parts of the gdb environment.\n\ 2699 You can see these environment settings with the \"show\" command."),
2703 Evaluate expression EXP and assign result to variable VAR, using assignment\n\ 2704 syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\ 2705 example). VAR may be a debugger \"convenience\" variable (names starting\n\ 2706 with $), a register (a few standard names starting with $), or an actual\n\ 2707 variable in the program being debugged. EXP is any valid expression.\n\ 2708 Use \"set variable\" for variables with names identical to set subcommands.\n\ 2709 \nWith a subcommand, this command modifies parts of the gdb environment.\n\ 2710 You can see these environment settings with the \"show\" command."));
2714 Call a function in the program.\n\ 2715 The argument is the function name and arguments, in the notation of the\n\ 2716 current working language. The result is printed and saved in the value\n\ 2717 history, if it is not void."));
2721 Evaluate expression EXP and assign result to variable VAR, using assignment\n\ 2722 syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\ 2723 example). VAR may be a debugger \"convenience\" variable (names starting\n\ 2724 with $), a register (a few standard names starting with $), or an actual\n\ 2725 variable in the program being debugged. EXP is any valid expression.\n\ 2726 This may usually be abbreviated to simply \"set\"."),
2730 Print value of expression EXP.\n\ 2731 Variables accessible are those of the lexical environment of the selected\n\ 2732 stack frame, plus all those whose scope is global or an entire file.\n\ 2734 $NUM gets previous value number NUM. $ and $$ are the last two values.\n\ 2735 $$NUM refers to NUM'th value back from the last one.\n\ 2736 Names starting with $ refer to registers (with the values they would have\n\ 2737 if the program were to return to the stack frame now selected, restoring\n\ 2738 all registers saved by frames farther in) or else to debugger\n\ 2739 \"convenience\" variables (any such name not a known register).\n\ 2740 Use assignment expressions to give values to convenience variables.\n\ 2742 {TYPE}ADREXP refers to a datum of data type TYPE, located at address ADREXP.\n\ 2743 @ is a binary operator for treating consecutive data objects\n\ 2744 anywhere in memory as an array. FOO@NUM gives an array whose first\n\ 2745 element is FOO, whose second element is stored in the space following\n\ 2746 where FOO is stored, etc. FOO must be an expression whose value\n\ 2747 resides in memory.\n\ 2749 EXP may be preceded with /FMT, where FMT is a format letter\n\ 2750 but no count or size letter (see \"x\" command)."));
2757 Set the largest offset that will be printed in <symbol+1234> form."),
_(
"\ 2758 Show the largest offset that will be printed in <symbol+1234> form."),
_(
"\ 2759 Tell GDB to only display the symbolic form of an address if the\n\ 2760 offset between the closest earlier symbol and the address is less than\n\ 2761 the specified maximum offset. The default is \"unlimited\", which tells GDB\n\ 2762 to always print the symbolic form of an address if any symbol precedes\n\ 2763 it. Zero is equivalent to \"unlimited\"."),
2769 Set printing of source filename and line number with <symbol>."),
_(
"\ 2770 Show printing of source filename and line number with <symbol>."), NULL,
2776 Convert \"printf format string\", arg1, arg2, arg3, ..., argn to\n\ 2777 a command line, and call it."));
void error_no_arg(const char *why)
const char * symtab_to_filename_for_display(struct symtab *symtab)
struct type * builtin_declong
struct bound_minimal_symbol lookup_minimal_symbol_by_pc_section(CORE_ADDR pc, struct obj_section *section)
void fprintf_symbol_filtered(struct ui_file *stream, const char *name, enum language lang, int arg_mode)
std::string target_float_to_string(const gdb_byte *addr, const struct type *type, const char *format)
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)
gdb::unique_xmalloc_ptr< expression > expression_up
struct objfile * separate_debug_objfile_backlink
static int integer_is_zero(const gdb_byte *x, int len)
static struct cleanup * cleanup_chain
static void output_command(const char *exp, int from_tty)
struct cmd_list_element * enablelist
int pointer_type(struct type *type)
struct value * value_from_contents(struct type *type, const gdb_byte *contents)
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,...)
LONGEST value_embedded_offset(const struct value *value)
int query(const char *ctlstr,...)
static int branch_delay_insns
struct program_space * pspace
int gdbarch_ptr_bit(struct gdbarch *gdbarch)
struct symbol * find_pc_sect_function(CORE_ADDR pc, struct obj_section *section)
static void printf_wide_c_string(struct ui_file *stream, const char *format, struct value *value)
int gdb_insn_length(struct gdbarch *gdbarch, CORE_ADDR addr)
static void printf_command(const char *arg, int from_tty)
void get_formatted_print_options(struct value_print_options *opts, char format)
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)
struct cmd_list_element * add_info(const char *name, cmd_const_cfunc_ftype *fun, const char *doc)
void disable_current_display(void)
void print_decimal_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, bool is_signed, enum bfd_endian byte_order)
#define SYMBOL_CLASS(symbol)
void * memset(T *s, int c, size_t n)=delete
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)
int value_lazy(const struct value *value)
void annotate_value_history_value(void)
struct value * coerce_ref(struct value *arg)
void value_free(struct value *val)
static CORE_ADDR last_examine_address
struct cmd_list_element * add_cmd(const char *name, enum command_class theclass, const char *doc, struct cmd_list_element **list)
#define ALL_OBJSECTIONS(objfile, osect)
const struct block * block
static void x_command(const char *exp, int from_tty)
static int display_number
struct gdbarch * symbol_arch(const struct symbol *symbol)
static void display_command(const char *arg, int from_tty)
const struct block * innermost_block
struct program_space * pspace
enum language la_language
void clear_displays(void)
struct obj_section * section
struct cmd_list_element * cmdlist
static void enable_disable_display_command(const char *args, int from_tty, int enable)
struct block_symbol lookup_symbol(const char *name, const struct block *block, domain_enum domain, struct field_of_this_result *is_a_field_of_this)
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)
char * skip_spaces(char *chp)
static void show_max_symbolic_offset(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static void info_address_command(const char *exp, int from_tty)
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 TYPE_IS_REFERENCE(t)
void execute_command(const char *, int)
struct cmd_list_element * add_prefix_cmd(const char *name, enum command_class theclass, cmd_const_cfunc_ftype *fun, const char *doc, struct cmd_list_element **prefixlist, const char *prefixname, int allow_unknown, struct cmd_list_element **list)
scoped_restore_tmpl< T > make_scoped_restore(T *var)
#define MSYMBOL_OBJ_SECTION(objfile, symbol)
static int print_symbol_filename
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)
const char * cur_tok() const
#define MSYMBOL_VALUE_RAW_ADDRESS(symbol)
void val_print_scalar_formatted(struct type *type, LONGEST embedded_offset, struct value *val, const struct value_print_options *options, int size, struct ui_file *stream)
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 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_const_sfunc_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
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)
static void enable_display_command(const char *args, int from_tty)
struct type * builtin_char32
void print_value(struct value *val, const struct format_data *fmtp)
static void do_one_display(struct display *)
static struct value * last_examine_value
CORE_ADDR gdbarch_addr_bits_remove(struct gdbarch *gdbarch, CORE_ADDR addr)
objfile(bfd *, const char *, objfile_flags)
void fprintf_filtered(struct ui_file *stream, const char *format,...)
const char * target_wide_charset(struct gdbarch *gdbarch)
struct value * read_var_value(struct symbol *var, const struct block *var_block, struct frame_info *frame)
static struct gdbarch * next_gdbarch
void set_cmd_completer(struct cmd_list_element *cmd, completer_ftype *completer)
static ULONGEST extract_unsigned_integer(const gdb_byte *addr, int len, enum bfd_endian byte_order)
struct bound_minimal_symbol lookup_minimal_symbol_and_objfile(const char *name)
void print_hex_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order, bool zero_pad)
void fprintf_unfiltered(struct ui_file *stream, const char *format,...)
void set_repeat_arguments(const char *args)
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)
static void eval_command(const char *arg, int from_tty)
#define gdb_assert_not_reached(message)
struct type * builtin_int16
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 print_binary_chars(struct ui_file *stream, const gdb_byte *valaddr, unsigned len, enum bfd_endian byte_order, bool zero_pad)
void annotate_display_end(void)
int print_address_symbolic(struct gdbarch *gdbarch, CORE_ADDR addr, struct ui_file *stream, int do_demangle, const char *leadin)
static CORE_ADDR find_string_backward(struct gdbarch *gdbarch, CORE_ADDR addr, int count, int char_size, const struct value_print_options *options, int *strings_counted)
struct gdbarch * get_type_arch(const struct type *type)
struct gdbarch * get_current_arch(void)
static void printf_floating(struct ui_file *stream, const char *format, struct value *value, enum argclass argclass)
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)
struct value * value_cast(struct type *type, struct value *arg2)
int gdbarch_addr_bit(struct gdbarch *gdbarch)
static void print_command(const char *exp, int from_tty)
void annotate_display_expression_end(void)
struct cmd_list_element * setprintlist
struct format_data format
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)
LONGEST unpack_long(struct type *type, const gdb_byte *valaddr)
#define SYMBOL_VALUE(symbol)
void annotate_display_expression(void)
static void call_command(const char *exp, int from_tty)
void wrap_here(const char *indent)
struct value * parse_to_comma_and_eval(const char **expp)
struct cmd_list_element * disablelist
#define SYMBOL_OBJFILE_OWNED(symbol)
std::string insert_user_defined_cmd_args(const char *line)
#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
struct type * builtin_double
CORE_ADDR overlay_unmapped_address(CORE_ADDR pc, struct obj_section *section)
#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
const char * c_str() const
int target_read_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
void expression_completer(struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word)
struct type * builtin_data_ptr
struct minimal_symbol * minsym
void annotate_display_format(void)
#define obj_section_addr(s)
static void ui_printf(const char *arg, struct ui_file *stream)
void annotate_value_begin(struct type *type)
void get_user_print_options(struct value_print_options *opts)
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_const_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_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 free_display(struct display *d)
static void disable_display_command(const char *args, int from_tty)
#define MSYMBOL_HAS_SIZE(msymbol)
std::string string_printf(const char *fmt,...)
struct cmd_list_element * showprintlist
static void map_display_numbers(const char *args, void(*function)(struct display *, void *), void *data)
void annotate_display_number_end(void)
static struct type * float_type_from_length(struct type *type)
gdb::def_vector< gdb_byte > byte_vector
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)
expression_up parse_expression(const char *)
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
static CORE_ADDR find_instruction_backward(struct gdbarch *gdbarch, CORE_ADDR addr, int inst_count, int *inst_read)
struct value * access_value_history(int num)
CORE_ADDR value_as_address(struct value *val)
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)
static void info_display_command(const char *ignore, int from_tty)
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)
static void undisplay_command(const char *args, int from_tty)
void gdb_flush(struct ui_file *file)
static void info_symbol_command(const char *arg, int from_tty)
struct cmd_list_element * add_com(const char *name, enum command_class theclass, cmd_const_cfunc_ftype *fun, const char *doc)
struct type * builtin_int8
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)
static int read_memory_backward(struct gdbarch *gdbarch, CORE_ADDR memaddr, gdb_byte *myaddr, int len)
#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)
static void store_signed_integer(gdb_byte *addr, int len, enum bfd_endian byte_order, LONGEST val)
void error(const char *fmt,...)
static void clear_dangling_display_expressions(struct objfile *objfile)
struct type * lookup_pointer_type(struct type *type)
void print_address(struct gdbarch *gdbarch, CORE_ADDR addr, struct ui_file *stream)
void do_cleanups(struct cleanup *old_chain)
#define MSYMBOL_VALUE_ADDRESS(objfile, symbol)
#define SYMBOL_IS_ARGUMENT(symbol)
static struct display * display_chain
void print_scalar_formatted(const gdb_byte *valaddr, struct type *type, const struct value_print_options *options, int size, struct ui_file *stream)
struct type * builtin_float
static void set_command(const char *exp, int from_tty)