diff options
Diffstat (limited to 'gdb/dwarf2expr.c')
-rw-r--r-- | gdb/dwarf2expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c index e75dcee..1296633 100644 --- a/gdb/dwarf2expr.c +++ b/gdb/dwarf2expr.c @@ -98,7 +98,7 @@ dwarf_expr_pop (struct dwarf_expr_context *ctx) CORE_ADDR dwarf_expr_fetch (struct dwarf_expr_context *ctx, int n) { - if (ctx->stack_len < n) + if (ctx->stack_len <= n) error (_("Asked for position %d of stack, stack only has %d elements on it."), n, ctx->stack_len); return ctx->stack[ctx->stack_len - (1 + n)]; |