Fencepost error in reporting regs we can't find in core file.

This commit is contained in:
John Gilmore
1991-12-05 12:20:18 +00:00
parent 2a5ec41d88
commit 299ee4e6c7
2 changed files with 4 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
supply_register (regno, core_reg_sect + addr);
}
}
if (bad_reg > 0)
if (bad_reg >= 0)
{
error ("Register %s not found in core file.", reg_names[bad_reg]);
}