On Wed, Nov 16, 2011 at 11:47 PM, Uros Bizjak wrote: > The gcc simulate-thread.exp testsuite exposed the problem in handling > of alpha atomic sequences. Single-stepping broke link in alpha's LL/SC > atomic sequences. > > Attached patch copies handling of atomic sequences from rs6000-tdep.c > and adapts the functionality for alpha. > > 2011-11-16  Uros Bizjak   > >        * alpha-tdep.c (beq_opcode): New. >        (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto. >        (alpha_deal_with_atomic_sequence): New function. >        (alpha_gdbarch_init): Handle single stepping of atomic sequences >        with alpha_deal_with_atomic_sequence. > > Patched gdb survives simulate-thread.exp testsuite on native > alphaev68-pc-linux-gnu. > > I don't have write access, so If OK, please someone commit this patch > to gdb CVS. [v2]: Since this patch is almost a copy of rs6000-tdep.c atomic sequence handling, also take into account proposed changes [1] to original rs6000 implementation. [1] http://sourceware.org/ml/gdb-patches/2011-11/msg00468.html Uros,