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"
#include "gdbsupport/gdb_optional.h"
#include "gdbsupport/gdb-safe-ctype.h"
#include "inferior.h"
#include "observable.h"
Go to the source code of this file.
Enumerations | |
enum | what_to_list { locals , arguments , all } |
Functions | |
static void | list_args_or_locals (const frame_print_options &fp_opts, enum what_to_list what, enum print_values values, frame_info_ptr fi, int skip_unavailable) |
void | mi_cmd_enable_frame_filters (const char *command, const char *const *argv, int argc) |
static enum ext_lang_bt_status | mi_apply_ext_lang_frame_filter (frame_info_ptr frame, frame_filter_flags flags, enum print_values print_values, struct ui_out *out, int frame_low, int frame_high) |
void | mi_cmd_stack_list_frames (const char *command, const char *const *argv, int argc) |
void | mi_cmd_stack_info_depth (const char *command, const char *const *argv, int argc) |
void | mi_cmd_stack_list_locals (const char *command, const char *const *argv, int argc) |
void | mi_cmd_stack_list_args (const char *command, const char *const *argv, int argc) |
void | mi_cmd_stack_list_variables (const char *command, const char *const *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) |
static frame_info_ptr | parse_frame_specification (const char *frame_exp) |
void | mi_cmd_stack_select_frame (const char *command, const char *const *argv, int argc) |
void | mi_cmd_stack_info_frame (const char *command, const char *const *argv, int argc) |
Variables | |
static int | frame_filters = 0 |
enum what_to_list |
Enumerator | |
---|---|
locals | |
arguments | |
all |
Definition at line 42 of file mi-cmd-stack.c.
|
static |
Definition at line 493 of file mi-cmd-stack.c.
References all, value::bytes_available(), check_typedef(), common_val_print(), current_uiout, value::embedded_offset(), value::entirely_unavailable(), frame_arg::entry_kind, frame_arg::error, ui_out::field_signed(), ui_out::field_stream(), get_no_prettyformat_print_options(), symbol::is_argument(), general_symbol_info::language(), language_def(), type::length(), PRINT_ALL_VALUES, print_entry_values_no, print_entry_values_only, general_symbol_info::print_name(), PRINT_NO_VALUES, PRINT_SIMPLE_VALUES, ui_file::printf(), ui_file::puts(), frame_arg::sym, symbol::type(), value::type(), type_print(), frame_arg::val, and val_print_scalar_type_p().
Referenced by list_args_or_locals().
|
static |
Definition at line 571 of file mi-cmd-stack.c.
References all, arguments, current_uiout, frame_arg::entry_kind, block::function(), get_frame_block(), symbol::is_argument(), 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_search_name(), mi_simple_type_p(), PRINT_ALL_VALUES, print_entry_values_no, print_entry_values_only, PRINT_SIMPLE_VALUES, read_frame_arg(), read_frame_local(), general_symbol_info::search_name(), block::superblock(), frame_arg::sym, symbol::type(), and VAR_DOMAIN.
Referenced by mi_cmd_stack_list_args(), mi_cmd_stack_list_locals(), and mi_cmd_stack_list_variables().
|
static |
Definition at line 65 of file mi-cmd-stack.c.
References apply_ext_lang_frame_filter(), and flags.
Referenced by mi_cmd_stack_list_args(), mi_cmd_stack_list_locals(), and mi_cmd_stack_list_variables().
void mi_cmd_enable_frame_filters | ( | const char * | command, |
const char *const * | argv, | ||
int | argc ) |
Definition at line 54 of file mi-cmd-stack.c.
References frame_filters.
void mi_cmd_stack_info_depth | ( | const char * | command, |
const char *const * | argv, | ||
int | argc ) |
Definition at line 190 of file mi-cmd-stack.c.
References current_uiout, get_current_frame(), get_prev_frame(), and QUIT.
void mi_cmd_stack_info_frame | ( | const char * | command, |
const char *const * | argv, | ||
int | argc ) |
Definition at line 763 of file mi-cmd-stack.c.
References get_selected_frame(), LOC_AND_ADDRESS, print_frame_info(), and user_frame_print_options.
void mi_cmd_stack_list_args | ( | const char * | command, |
const char *const * | argv, | ||
int | argc ) |
Definition at line 297 of file mi-cmd-stack.c.
References arguments, current_uiout, EXT_LANG_BT_ERROR, EXT_LANG_BT_NO_FILTERS, ui_out::field_signed(), flags, frame_filters, get_current_frame(), get_prev_frame(), list_args_or_locals(), mi_apply_ext_lang_frame_filter(), mi_getopt_allow_unknown(), mi_parse_print_values(), PRINT_ARGS, PRINT_LEVEL, QUIT, and user_frame_print_options.
void mi_cmd_stack_list_frames | ( | const char * | command, |
const char *const * | argv, | ||
int | argc ) |
Definition at line 86 of file mi-cmd-stack.c.
References apply_ext_lang_frame_filter(), current_uiout, EXT_LANG_BT_ERROR, EXT_LANG_BT_NO_FILTERS, flags, frame_filters, get_current_frame(), get_prev_frame(), LOC_AND_ADDRESS, mi_getopt(), NO_VALUES, PRINT_FRAME_INFO, print_frame_info(), PRINT_LEVEL, QUIT, and user_frame_print_options.
void mi_cmd_stack_list_locals | ( | const char * | command, |
const char *const * | argv, | ||
int | argc ) |
Definition at line 220 of file mi-cmd-stack.c.
References current_uiout, 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, print_value(), and user_frame_print_options.
void mi_cmd_stack_list_variables | ( | const char * | command, |
const char *const * | argv, | ||
int | argc ) |
Definition at line 413 of file mi-cmd-stack.c.
References all, current_uiout, 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, print_value(), and user_frame_print_options.
void mi_cmd_stack_select_frame | ( | const char * | command, |
const char *const * | argv, | ||
int | argc ) |
Definition at line 754 of file mi-cmd-stack.c.
References parse_frame_specification(), and select_frame().
|
static |
Definition at line 694 of file mi-cmd-stack.c.
References create_new_frame(), find_relative_frame(), frame_id_build_wild(), get_current_frame(), get_frame_id(), get_prev_frame(), parse_and_eval(), value_as_address(), and value_as_long().
Referenced by mi_cmd_stack_select_frame().
|
static |
Definition at line 51 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().