GDB (API)
|
00001 /* Stack manipulation commands, for GDB the GNU Debugger. 00002 00003 Copyright (C) 2003-2013 Free Software Foundation, Inc. 00004 00005 This file is part of GDB. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00019 00020 #ifndef STACK_H 00021 #define STACK_H 00022 00023 void select_frame_command (char *level_exp, int from_tty); 00024 00025 void find_frame_funname (struct frame_info *frame, char **funname, 00026 enum language *funlang, struct symbol **funcp); 00027 00028 typedef void (*iterate_over_block_arg_local_vars_cb) (const char *print_name, 00029 struct symbol *sym, 00030 void *cb_data); 00031 00032 void iterate_over_block_arg_vars (struct block *block, 00033 iterate_over_block_arg_local_vars_cb cb, 00034 void *cb_data); 00035 00036 void iterate_over_block_local_vars (struct block *block, 00037 iterate_over_block_arg_local_vars_cb cb, 00038 void *cb_data); 00039 00040 /* Get or set the last displayed symtab and line, which is, e.g. where we set a 00041 * breakpoint when `break' is supplied with no arguments. */ 00042 void clear_last_displayed_sal (void); 00043 int last_displayed_sal_is_valid (void); 00044 struct program_space* get_last_displayed_pspace (void); 00045 CORE_ADDR get_last_displayed_addr (void); 00046 struct symtab* get_last_displayed_symtab (void); 00047 int get_last_displayed_line (void); 00048 void get_last_displayed_sal (struct symtab_and_line *sal); 00049 00050 #endif /* #ifndef STACK_H */