GDB (xrefs)
|
#include "defs.h"
#include "target.h"
#include "frame.h"
#include "value.h"
#include "mi-cmds.h"
#include "ui-out.h"
#include "symtab.h"
#include "block.h"
#include "stack.h"
#include "dictionary.h"
#include "language.h"
#include "valprint.h"
#include "utils.h"
#include "mi-getopt.h"
#include "extension.h"
#include <ctype.h>
#include "mi-parse.h"
Go to the source code of this file.
Enumerations | |
enum | what_to_list { locals, arguments, all } |
Functions | |
static void | list_args_or_locals (enum what_to_list what, enum print_values values, struct frame_info *fi, int skip_unavailable) |
void | mi_cmd_enable_frame_filters (char *command, char **argv, int argc) |
static enum ext_lang_bt_status | mi_apply_ext_lang_frame_filter (struct frame_info *frame, int flags, enum print_values print_values, struct ui_out *out, int frame_low, int frame_high) |
void | mi_cmd_stack_list_frames (char *command, char **argv, int argc) |
void | mi_cmd_stack_info_depth (char *command, char **argv, int argc) |
void | mi_cmd_stack_list_locals (char *command, char **argv, int argc) |
void | mi_cmd_stack_list_args (char *command, char **argv, int argc) |
void | mi_cmd_stack_list_variables (char *command, char **argv, int argc) |
static void | list_arg_or_local (const struct frame_arg *arg, enum what_to_list what, enum print_values values, int skip_unavailable) |
void | mi_cmd_stack_select_frame (char *command, char **argv, int argc) |
void | mi_cmd_stack_info_frame (char *command, char **argv, int argc) |
Variables | |
static int | frame_filters = 0 |
enum what_to_list |
Enumerator | |
---|---|
locals | |
arguments | |
all |
Definition at line 38 of file mi-cmd-stack.c.
|
static |
Definition at line 489 of file mi-cmd-stack.c.
References _, all, CATCH, check_typedef(), common_val_print(), current_uiout, value_print_options::deref_ref, do_cleanups(), END_CATCH, frame_arg::entry_kind, frame_arg::error, fprintf_filtered(), fputs_filtered(), gdb_assert, get_no_prettyformat_print_options(), language_def(), make_cleanup_ui_file_delete(), make_cleanup_ui_out_tuple_begin_end(), mem_fileopen(), PRINT_ALL_VALUES, print_entry_values_no, print_entry_values_only, PRINT_NO_VALUES, PRINT_SIMPLE_VALUES, RETURN_MASK_ERROR, frame_arg::sym, SYMBOL_IS_ARGUMENT, SYMBOL_LANGUAGE, SYMBOL_PRINT_NAME, TRY, symbol::type, TYPE_LENGTH, type_print(), ui_out_field_int(), ui_out_field_stream(), frame_arg::val, val_print_scalar_type_p(), value_bytes_available(), value_embedded_offset(), value_entirely_unavailable(), and value_type().
Referenced by list_args_or_locals().
|
static |
Definition at line 577 of file mi-cmd-stack.c.
References all, ALL_BLOCK_SYMBOLS, arguments, BLOCK_FUNCTION, BLOCK_SUPERBLOCK, check_typedef(), current_uiout, do_cleanups(), frame_arg::entry_kind, frame_arg::error, gdb_assert, get_frame_block(), internal_error(), list_arg_or_local(), LOC_ARG, LOC_BLOCK, LOC_COMPUTED, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, LOC_UNDEF, LOC_UNRESOLVED, locals, lookup_symbol(), make_cleanup_ui_out_list_begin_end(), PRINT_ALL_VALUES, print_entry_values_no, print_entry_values_only, PRINT_SIMPLE_VALUES, read_frame_arg(), read_frame_local(), frame_arg::sym, SYMBOL_CLASS, SYMBOL_IS_ARGUMENT, SYMBOL_LINKAGE_NAME, type, symbol::type, TYPE_CODE, TYPE_CODE_ARRAY, TYPE_CODE_STRUCT, TYPE_CODE_UNION, VAR_DOMAIN, and xfree().
Referenced by mi_cmd_stack_list_args(), mi_cmd_stack_list_locals(), and mi_cmd_stack_list_variables().
|
static |
Definition at line 59 of file mi-cmd-stack.c.
References apply_ext_lang_frame_filter().
Referenced by mi_cmd_stack_list_args(), mi_cmd_stack_list_locals(), and mi_cmd_stack_list_variables().
void mi_cmd_enable_frame_filters | ( | char * | command, |
char ** | argv, | ||
int | argc | ||
) |
Definition at line 49 of file mi-cmd-stack.c.
References _, error(), and frame_filters.
void mi_cmd_stack_info_depth | ( | char * | command, |
char ** | argv, | ||
int | argc | ||
) |
Definition at line 184 of file mi-cmd-stack.c.
References _, current_uiout, error(), get_current_frame(), get_prev_frame(), QUIT, and ui_out_field_int().
void mi_cmd_stack_info_frame | ( | char * | command, |
char ** | argv, | ||
int | argc | ||
) |
Definition at line 707 of file mi-cmd-stack.c.
References _, error(), get_selected_frame(), LOC_AND_ADDRESS, and print_frame_info().
void mi_cmd_stack_list_args | ( | char * | command, |
char ** | argv, | ||
int | argc | ||
) |
Definition at line 289 of file mi-cmd-stack.c.
References _, arguments, current_uiout, do_cleanups(), error(), EXT_LANG_BT_ERROR, EXT_LANG_BT_NO_FILTERS, flags, frame_filters, get_current_frame(), get_prev_frame(), list_args_or_locals(), make_cleanup_ui_out_list_begin_end(), make_cleanup_ui_out_tuple_begin_end(), mi_apply_ext_lang_frame_filter(), mi_getopt_allow_unknown(), mi_parse_print_values(), PRINT_ARGS, PRINT_LEVEL, QUIT, and ui_out_field_int().
void mi_cmd_stack_list_frames | ( | char * | command, |
char ** | argv, | ||
int | argc | ||
) |
Definition at line 79 of file mi-cmd-stack.c.
References _, apply_ext_lang_frame_filter(), current_uiout, do_cleanups(), error(), EXT_LANG_BT_ERROR, EXT_LANG_BT_NO_FILTERS, flags, frame_filters, get_current_frame(), get_prev_frame(), LOC_AND_ADDRESS, make_cleanup_ui_out_list_begin_end(), mi_getopt(), NO_VALUES, PRINT_FRAME_INFO, print_frame_info(), PRINT_LEVEL, and QUIT.
void mi_cmd_stack_list_locals | ( | char * | command, |
char ** | argv, | ||
int | argc | ||
) |
Definition at line 213 of file mi-cmd-stack.c.
References _, current_uiout, error(), EXT_LANG_BT_ERROR, EXT_LANG_BT_NO_FILTERS, flags, frame_filters, get_selected_frame(), list_args_or_locals(), locals, mi_apply_ext_lang_frame_filter(), mi_getopt(), mi_parse_print_values(), PRINT_LEVEL, PRINT_LOCALS, and print_value().
void mi_cmd_stack_list_variables | ( | char * | command, |
char ** | argv, | ||
int | argc | ||
) |
Definition at line 410 of file mi-cmd-stack.c.
References _, all, current_uiout, error(), EXT_LANG_BT_ERROR, EXT_LANG_BT_NO_FILTERS, flags, frame_filters, get_selected_frame(), list_args_or_locals(), mi_apply_ext_lang_frame_filter(), mi_getopt(), mi_parse_print_values(), PRINT_ARGS, PRINT_LEVEL, PRINT_LOCALS, and print_value().
void mi_cmd_stack_select_frame | ( | char * | command, |
char ** | argv, | ||
int | argc | ||
) |
Definition at line 698 of file mi-cmd-stack.c.
References _, error(), and select_frame_command().
|
static |
Definition at line 46 of file mi-cmd-stack.c.
Referenced by mi_cmd_enable_frame_filters(), mi_cmd_stack_list_args(), mi_cmd_stack_list_frames(), mi_cmd_stack_list_locals(), and mi_cmd_stack_list_variables().