gdb/stack.h - gdb

Data types defined

Macros defined

Source code

  1. /* Stack manipulation commands, for GDB the GNU Debugger.

  2.    Copyright (C) 2003-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. #ifndef STACK_H
  15. #define STACK_H

  16. void select_frame_command (char *level_exp, int from_tty);

  17. void find_frame_funname (struct frame_info *frame, char **funname,
  18.                          enum language *funlang, struct symbol **funcp);

  19. typedef void (*iterate_over_block_arg_local_vars_cb) (const char *print_name,
  20.                                                       struct symbol *sym,
  21.                                                       void *cb_data);

  22. void iterate_over_block_arg_vars (const struct block *block,
  23.                                   iterate_over_block_arg_local_vars_cb cb,
  24.                                   void *cb_data);

  25. void iterate_over_block_local_vars (const struct block *block,
  26.                                     iterate_over_block_arg_local_vars_cb cb,
  27.                                     void *cb_data);

  28. /* Get or set the last displayed symtab and line, which is, e.g. where we set a
  29. * breakpoint when `break' is supplied with no arguments.  */
  30. void clear_last_displayed_sal (void);
  31. int last_displayed_sal_is_valid (void);
  32. struct program_space* get_last_displayed_pspace (void);
  33. CORE_ADDR get_last_displayed_addr (void);
  34. struct symtab* get_last_displayed_symtab (void);
  35. int get_last_displayed_line (void);
  36. void get_last_displayed_sal (struct symtab_and_line *sal);

  37. #endif /* #ifndef STACK_H */