[PATCH] Don't give spurious warnings when using thread specific breakpoints

Andreas Schwab schwab@suse.de
Wed Oct 18 20:21:00 GMT 2006


Eli Zaretskii <eliz@gnu.org> writes:

> No, you don't need to do that.  Instead, you should rewrite the code
> like this:
>
>    ALL_BREAKPOINTS (b)
>      if (b->loc->address == pc)	/* address match / overlay match */
> 	if (!b->pending && (!overlay_debugging || b->loc->section == section))
> 	  {
> 	    others--;
> 	    if (others == 1 &&
> 	       (b->enable_state == bp_disabled || 
> 	        b->enable_state == bp_shlib_disabled || 
> 	        b->enable_state == bp_call_disabled))
> 	       printf_filtered (_("Note: breakpoint %d (disabled) also set at pc "),

That won't work either.  Some languages (notably German) need to put the
verb at the end of the sentence in such a case.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb-patches mailing list