gdb/ChangeLog:
* stack.c (get_selected_block): Add new argument `addr_in_block', used to return the exact code address we used to select the block, not just the block. * blockframe.c (get_frame_block, get_current_block): Same. * frame.h (get_frame_block, get_current_block, get_selected_block): Update declarations. * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c, linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed. gdb/mi/ChangeLog: * mi-cmd-stack.c (list_args_or_locals): Pass new arg to get_frame_block. (See entry in gdb/ChangeLog.)
This commit is contained in:
parent
84d2ac95e4
commit
ae767bfb78
13 changed files with 68 additions and 25 deletions
|
@ -1134,7 +1134,7 @@ parse_exp_1 (char **stringptr, struct block *block, int comma)
|
|||
old_chain = make_cleanup (free_funcalls, 0 /*ignore*/);
|
||||
funcall_chain = 0;
|
||||
|
||||
expression_context_block = block ? block : get_selected_block ();
|
||||
expression_context_block = block ? block : get_selected_block (0);
|
||||
|
||||
namecopy = (char *) alloca (strlen (lexptr) + 1);
|
||||
expout_size = 10;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue