xref: /dflybsd-src/contrib/gdb-7/gdb/stack.h (revision de8e141f24382815c10a4012d209bbbf7abf1112)
15796c8dcSSimon Schubert /* Stack manipulation commands, for GDB the GNU Debugger.
25796c8dcSSimon Schubert 
3*ef5ccd6cSJohn Marino    Copyright (C) 2003-2013 Free Software Foundation, Inc.
45796c8dcSSimon Schubert 
55796c8dcSSimon Schubert    This file is part of GDB.
65796c8dcSSimon Schubert 
75796c8dcSSimon Schubert    This program is free software; you can redistribute it and/or modify
85796c8dcSSimon Schubert    it under the terms of the GNU General Public License as published by
95796c8dcSSimon Schubert    the Free Software Foundation; either version 3 of the License, or
105796c8dcSSimon Schubert    (at your option) any later version.
115796c8dcSSimon Schubert 
125796c8dcSSimon Schubert    This program is distributed in the hope that it will be useful,
135796c8dcSSimon Schubert    but WITHOUT ANY WARRANTY; without even the implied warranty of
145796c8dcSSimon Schubert    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
155796c8dcSSimon Schubert    GNU General Public License for more details.
165796c8dcSSimon Schubert 
175796c8dcSSimon Schubert    You should have received a copy of the GNU General Public License
185796c8dcSSimon Schubert    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
195796c8dcSSimon Schubert 
205796c8dcSSimon Schubert #ifndef STACK_H
215796c8dcSSimon Schubert #define STACK_H
225796c8dcSSimon Schubert 
235796c8dcSSimon Schubert void select_frame_command (char *level_exp, int from_tty);
245796c8dcSSimon Schubert 
25*ef5ccd6cSJohn Marino void find_frame_funname (struct frame_info *frame, const char **funname,
26c50c785cSJohn Marino 			 enum language *funlang, struct symbol **funcp);
275796c8dcSSimon Schubert 
28c50c785cSJohn Marino typedef void (*iterate_over_block_arg_local_vars_cb) (const char *print_name,
29cf7f2e2dSJohn Marino 						      struct symbol *sym,
30cf7f2e2dSJohn Marino 						      void *cb_data);
31cf7f2e2dSJohn Marino 
32cf7f2e2dSJohn Marino void iterate_over_block_arg_vars (struct block *block,
33cf7f2e2dSJohn Marino 				  iterate_over_block_arg_local_vars_cb cb,
34cf7f2e2dSJohn Marino 				  void *cb_data);
35cf7f2e2dSJohn Marino 
36cf7f2e2dSJohn Marino void iterate_over_block_local_vars (struct block *block,
37cf7f2e2dSJohn Marino 				    iterate_over_block_arg_local_vars_cb cb,
38cf7f2e2dSJohn Marino 				    void *cb_data);
39cf7f2e2dSJohn Marino 
40a45ae5f8SJohn Marino /* Get or set the last displayed symtab and line, which is, e.g. where we set a
41a45ae5f8SJohn Marino  * breakpoint when `break' is supplied with no arguments.  */
42a45ae5f8SJohn Marino void clear_last_displayed_sal (void);
43a45ae5f8SJohn Marino int last_displayed_sal_is_valid (void);
44a45ae5f8SJohn Marino struct program_space* get_last_displayed_pspace (void);
45a45ae5f8SJohn Marino CORE_ADDR get_last_displayed_addr (void);
46a45ae5f8SJohn Marino struct symtab* get_last_displayed_symtab (void);
47a45ae5f8SJohn Marino int get_last_displayed_line (void);
48a45ae5f8SJohn Marino void get_last_displayed_sal (struct symtab_and_line *sal);
49a45ae5f8SJohn Marino 
505796c8dcSSimon Schubert #endif /* #ifndef STACK_H */
51