mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
Fencepost error in reporting regs we can't find in core file.
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user