2005-10-17 Jim Blandy <jimb@redhat.com>
* dwarf2expr.c (dwarf_expr_fetch): Use correct comparison to detect stack underflow.
This commit is contained in:
parent
ea44d563c7
commit
ef0fdf07a4
@ -1,3 +1,8 @@
|
||||
2005-10-17 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* dwarf2expr.c (dwarf_expr_fetch): Use correct comparison to
|
||||
detect stack underflow.
|
||||
|
||||
2005-10-14 Paul Gilliam <pgilliam@us.ibm.com>
|
||||
|
||||
* rs6000-tdep.c (rs6000_register_reggroup_p): Add vscr to test for
|
||||
|
@ -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)];
|
||||
|
Loading…
Reference in New Issue
Block a user