From: Jim Blandy Date: Tue, 2 Mar 2004 20:31:56 +0000 (+0000) Subject: * stabsread.c (reg_value_complaint): The maximum register number X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49b0b19512c15deff65890a62cdd7aca52afee27;p=binutils-gdb.git * stabsread.c (reg_value_complaint): The maximum register number is one less than the number of registers. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 320d988b02d..caee6958ecf 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 5cee516bcb3..07c6fe0b8a2 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