diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 320d988b02..caee6958ec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-03-02 Jim Blandy + + * stabsread.c (reg_value_complaint): The maximum register number + is one less than the number of registers. + 2004-03-02 Andrew Cagney * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM, diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 5cee516bcb..07c6fe0b8a 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -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