On Thu, Nov 17, 2011 at 2:22 PM, Iain Sandoe
<develo...@sandoe-acoustics.co.uk> wrote:
>
> On 17 Nov 2011, at 10:49, Alan Modra wrote:
>
>> On Thu, Nov 17, 2011 at 10:54:23AM +0100, Uros Bizjak wrote:
>>>
>>> The solution for this problem is to search for "simulate_thread_done"
>>> in gdb log.
>>
>> Thanks!  I like this for another reason too:  I've seen these tests
>> fail due to gdb never reporting simulate_thread_main on any
>> instruction in that function.
>
> ... works for me on powerpc-darwin9 ...
>
> with a local experimental 7.3.1 port to powerpc-darwin9, some more tests
> pass, but not all ...
> ... what base version/patch is needed to get all the tests to pass for you?

It looks to me that you will also need following rs6000 gdb patch,
otherwise relative addresses of a conditional branch will be
calculated against opening lwarx/ldarx instruction:

--- rs6000-tdep.c       2011-03-18 19:52:31.000000000 +0100
+++ rs6000-tdep.c.ub    2011-11-17 14:58:46.000000000 +0100
@@ -1126,7 +1126,7 @@ ppc_deal_with_atomic_sequence (struct fr
          if (absolute)
            breaks[1] = immediate;
          else
-           breaks[1] = pc + immediate;
+           breaks[1] = loc + immediate;

          bc_insn_count++;
          last_breakpoint++;

Uros.

Reply via email to