On 11/12/2011 07:38 AM, Uros Bizjak wrote:
> On Fri, Nov 11, 2011 at 8:58 PM, Dominique Dhumieres <domi...@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~

Reply via email to