diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-27 17:08:06 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-07-27 17:08:06 +0000 |
commit | 3c6e0cb359c01c16799d3aac21e0624c8a5477b4 (patch) | |
tree | 9701bb42b33ff4ba13c34555d5206c76ca92daa1 /gdb/dwarf2expr.c | |
parent | 523f3620b87ac8de01a68777bed56e2ede6f68b7 (diff) | |
download | gdb-3c6e0cb359c01c16799d3aac21e0624c8a5477b4.zip gdb-3c6e0cb359c01c16799d3aac21e0624c8a5477b4.tar.gz gdb-3c6e0cb359c01c16799d3aac21e0624c8a5477b4.tar.bz2 |
gdb/
* 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.
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r-- | gdb/dwarf2expr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index 3b2b252..83c7db7 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -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 |