]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dwarf2expr.c (execute_stack_op): Don't treat the frame base as
authorDaniel Jacobowitz <drow@false.org>
Thu, 9 Oct 2003 14:16:21 +0000 (14:16 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 9 Oct 2003 14:16:21 +0000 (14:16 +0000)
a memory pointer.

gdb/ChangeLog
gdb/dwarf2expr.c

index dc900b34543778fb740fcefd7a2811389fc540b8..1d3d60b1aada1b02ebd4792bbccf2431c0d94b1f 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
+
+       * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
+       a memory pointer.
+
 2003-10-04  GDB Administrator  <gdbadmin@sourceware.org>
 
        * version.in:  Bump toversion 6.0.0.90.
index 3d1523b601009508f8b0d1a3e6d956b0eeb5b469..cf00929e2251f00ce6d4ba723ec5a644c4e9d709 100644 (file)
@@ -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;