[PATCH, testsuite]: Do not run simulate-thread on alpha*-*-linux*

Uros Bizjak ubizjak@gmail.com
Wed Nov 16 22:49:00 GMT 2011


On Sun, Nov 13, 2011 at 10:41 PM, Richard Henderson <rth@redhat.com> wrote:
> 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.

Indeed, the attached is WIP gdb patch that survives all
simulate-thread.exp tests. It is almost a copy of rs6000-tdep.c (*)

(*) Please note the error in how relative address of the branch is
calculated in rs6000-tdep.c, ppc_deal_with_atomic_sequence function.
Target address immediate should be relative to "loc", not "pc"
variable.

Richard, can you please help with the calculation of branch target
address for alpha... I'm sure that the helper function should be
available somewhere...

Uros.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-7.3.50.20111114.diff
Type: text/x-patch
Size: 4160 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20111116/3d2c689c/attachment.bin>


More information about the Gcc mailing list