This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ob] More warnings; Call for assistance


On Tue, Jan 17, 2006 at 10:17:31AM -0500, Daniel Jacobowitz wrote:
> @@ -161,7 +161,7 @@ find_complaint (struct complaints *compl
>     before we stop whining about it?  Default is no whining at all,
>     since so many systems have ill-constructed symbol files.  */
>  
> -static unsigned int stop_whining = 0;
> +static int stop_whining = 0;
>  
>  /* Print a complaint, and link the complaint block into a chain for
>     later handling.  */

Oops!  I did check that this was correct within the logic of the file,
but it still causes three test failures.  gdb.cp/maint.exp does
"set complaints -1" and expects to get all complaints.

This is a var_zinteger, which is supposed to be signed - thus my
change.  What maint.exp is doing is undocumented, and seems passingly
illogical to me; does anyone object to my changing it to "set
complaints 1000"?

The manual says:

`set complaints LIMIT'
     Permits GDB to output LIMIT complaints about each type of unusual
     symbols before becoming silent about the problem.  Set LIMIT to
     zero to suppress all complaints; set it to a large number to
     prevent complaints from being suppressed.


-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]