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: [PATCH 2/6] PR breakpoints/7143 - Watchpoint does not trigger when first set


On 02/25/2014 08:32 PM, Pedro Alves wrote:
> +      if (ecs->event_thread->stepping_over_breakpoint
> +	  && !use_displaced_stepping (get_regcache_arch (regcache)))
>  	{
> -	  struct regcache *thread_regcache = get_thread_regcache (ecs->ptid);
> +	  /* Can't step over more than one breakpoint simultaneously
> +	     without displaced stepping.  */
> +	  gdb_assert (step_over_aspace == NULL);

While working on further changes on top of this series, I noticed
something wrong.  Then I decided to reorder the patches a little,
and add another watchpoint-related test, which then managed to
trigger this assertion, because we

 - stepped a thread
 - got to the thread_hop code without clearing step_over_aspace.

v2 will clear step_over_aspace earlier to avoid that.  It's still
a good idea to do that even though the series ends up eliminating
the thread hop code.

-- 
Pedro Alves


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