This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] "single step" atomic instruction sequences as a whole on PPC
> Hi Luis,
>
> please check the attached two testcases and run them at least 100x etc.
>
> Unfortunately the threaded one fails for me in some 7% of cases IMO due to
> a race at the `infrun.c' line:
> remove_status = remove_breakpoints ();
>
> The whole idea of running all the threads of the program to step over the
> atomic sequence is problematic as the other threads may hit the inserted
> breakpoint. While this cases is handled it contains a race.
>
> One way would be to use some temporary:
> if (scheduler_mode == schedlock_off)
> scheduler_mode = schedlock_step;
>
> But I believe one could use the PPC simulation code instead of the whole
> breakpoint/resume way?
>
>
> Regards,
> Jan
You had a fix for reducing the failures from 99% to 93%, right? Is this
available on HEAD?
Regards,
Luis