* stabsread.c (reg_value_complaint): The maximum register number

is one less than the number of registers.
This commit is contained in:
Jim Blandy 2004-03-02 20:31:56 +00:00
parent e9ff708b9b
commit 49b0b19512
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-03-02 Jim Blandy <jimb@redhat.com>
* stabsread.c (reg_value_complaint): The maximum register number
is one less than the number of registers.
2004-03-02 Andrew Cagney <cagney@redhat.com>
* i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,

View File

@ -178,11 +178,11 @@ invalid_cpp_abbrev_complaint (const char *arg1)
}
static void
reg_value_complaint (int arg1, int arg2, const char *arg3)
reg_value_complaint (int regnum, int num_regs, const char *sym)
{
complaint (&symfile_complaints,
"register number %d too large (max %d) in symbol %s", arg1, arg2,
arg3);
"register number %d too large (max %d) in symbol %s",
regnum, num_regs - 1, sym);
}
static void