This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, testsuite]: Do not run simulate-thread on alpha*-*-linux*
On 11/12/2011 07:38 AM, Uros Bizjak wrote:
> On Fri, Nov 11, 2011 at 8:58 PM, Dominique Dhumieres <dominiq@lps.ens.fr> wrote:
>
>> For the record, Jakub's comment on IRC:
>>
>>> with older gdb you simply had to find the stwcx
>>> or whatever SC insn is, put a breakpoint after
>>> it and continue instead of single stepping
>
> I'm not familiar enough with gdb scripting to implement this, but if
> someone fix _.gdb script, I can test the correct fix...
It's not in the gdb script, it's in gdb proper.
If you care to have a peek, look at
/* Handles single stepping of atomic sequences. */
set_gdbarch_software_single_step (gdbarch, ppc_deal_with_atomic_sequence);
in gdb/rs6000-tdep.c. It ought to be fairly easy to write
something similar for alpha-tdep.c.
r~