* dwarf2expr.c (ctx_no_read_reg): New function.
	* dwarf2expr.h (ctx_no_read_reg): New declaration.
	* dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
	(decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
	(decode_locdesc): Replace by a caller of dwarf_expr_eval.

gdb/testsuite/
	* gdb.dwarf2/dw2-simple-locdesc.S: New file.
	* gdb.dwarf2/dw2-simple-locdesc.exp: New file.
	* gdb.dwarf2/dw2-stack-boundary.exp (check partial symtab errors):
	Change the expected string.
This commit is contained in:
Jan Kratochvil 2011-07-27 17:08:06 +00:00
parent 523f3620b8
commit 3c6e0cb359
8 changed files with 334 additions and 233 deletions

View file

@ -1280,6 +1280,14 @@ abort_expression:
gdb_assert (ctx->recursion_depth >= 0);
}
/* Stub dwarf_expr_context_funcs.read_reg implementation. */
CORE_ADDR
ctx_no_read_reg (void *baton, int regnum)
{
error (_("Registers access is invalid in this context"));
}
/* Stub dwarf_expr_context_funcs.get_frame_base implementation. */
void