X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fstack.h;h=94d1f36728b8a12e963ed6eaeb25793db75429ed;hb=10a93b604f84ef19c9a15656c3aaeefac82b4e58;hp=56b1d91b5e58cf9038d490c3c65099872ec9ad54;hpb=f8f6f20b6e37e6d219940fcad58b1f66124d11c1;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/stack.h b/gdb/stack.h index 56b1d91..94d1f36 100644 --- a/gdb/stack.h +++ b/gdb/stack.h @@ -1,6 +1,6 @@ /* Stack manipulation commands, for GDB the GNU Debugger. - Copyright (C) 2003, 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2003-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -22,9 +22,29 @@ void select_frame_command (char *level_exp, int from_tty); -/* Attempt to obtain the FUNNAME and FUNLANG of the function corresponding - to FRAME. */ void find_frame_funname (struct frame_info *frame, char **funname, - enum language *funlang); + enum language *funlang, struct symbol **funcp); + +typedef void (*iterate_over_block_arg_local_vars_cb) (const char *print_name, + struct symbol *sym, + void *cb_data); + +void iterate_over_block_arg_vars (const struct block *block, + iterate_over_block_arg_local_vars_cb cb, + void *cb_data); + +void iterate_over_block_local_vars (const struct block *block, + iterate_over_block_arg_local_vars_cb cb, + void *cb_data); + +/* Get or set the last displayed symtab and line, which is, e.g. where we set a + * breakpoint when `break' is supplied with no arguments. */ +void clear_last_displayed_sal (void); +int last_displayed_sal_is_valid (void); +struct program_space* get_last_displayed_pspace (void); +CORE_ADDR get_last_displayed_addr (void); +struct symtab* get_last_displayed_symtab (void); +int get_last_displayed_line (void); +void get_last_displayed_sal (struct symtab_and_line *sal); #endif /* #ifndef STACK_H */