[PATCH] Disable thread specific breakpoints when thread dies

Daniel Jacobowitz drow@false.org
Thu Nov 17 04:22:00 GMT 2005


On Wed, Nov 16, 2005 at 02:52:17PM +0000, Andrew STUBBS wrote:
> +      /* There is no point inserting thread-specific breakpoints if the
> +	 thread no longer exists.  */
> +      if (b->owner->thread != -1
> +	  && !target_thread_alive(thread_id_to_pid(b->owner->thread)))
> +	continue;

You shouldn't need to use the target method here.  Does valid_thread_id
work?

Also, please remember the space before opening parentheses.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Gdb-patches mailing list