aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2expr.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-10-09 14:11:58 +0000
committerDaniel Jacobowitz <drow@false.org>2003-10-09 14:11:58 +0000
commitbbab2f465b71112fd04020016f112807cca68fbc (patch)
tree978ccd45d4cbc5f4b4bc3eccac34927d1de10f09 /gdb/dwarf2expr.c
parent2f857bd0cccb09a878d0aa762c965dd0bd942806 (diff)
downloadgdb-bbab2f465b71112fd04020016f112807cca68fbc.zip
gdb-bbab2f465b71112fd04020016f112807cca68fbc.tar.gz
gdb-bbab2f465b71112fd04020016f112807cca68fbc.tar.bz2
* dwarf2expr.c (execute_stack_op): Don't treat the frame base as
a memory pointer.
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r--gdb/dwarf2expr.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 3d1523b..cf00929 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -441,18 +441,6 @@ execute_stack_op (struct dwarf_expr_context *ctx, unsigned char *op_ptr,
result = dwarf_expr_fetch (ctx, 0);
if (ctx->in_reg)
result = (ctx->read_reg) (ctx->baton, result);
- else
- {
- char *buf = alloca (TARGET_ADDR_BIT / TARGET_CHAR_BIT);
- int bytes_read;
-
- (ctx->read_mem) (ctx->baton, buf, result,
- TARGET_ADDR_BIT / TARGET_CHAR_BIT);
- result = dwarf2_read_address (buf,
- buf + (TARGET_ADDR_BIT
- / TARGET_CHAR_BIT),
- &bytes_read);
- }
result = result + offset;
ctx->stack_len = before_stack_len;
ctx->in_reg = 0;