This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] PPC atomic single stepping testcase
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 05 Dec 2007 17:19:17 -0200
- Subject: Re: [PATCH] PPC atomic single stepping testcase
- References: <200712042316.lB4NGkjV014646@d12av02.megacenter.de.ibm.com>
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
> Luis Machado wrote:
>
> > +gdb_test "x/g &puts" "$hex <puts>:\[\t\]+$hex" \
> > + "Get the address of the puts function"
> > +
> > +gdb_breakpoint "*(\$__ + 88)" "Breakpoint $decimal at $hex" \
> > + "Set the breakpoint at the start of the sequence"
>
> This appears to make quite a lot of assumptions about
> glibc implementation details. I'd except just about
> any glibc update to break this test ...
>
> As this is a PowerPC-specific case anyway, can you not
> use a test that explicitly has the atomic sequence in
> the code provided with the test case?
>
Yes, you're probably right. I'll provide something more
glibc-independent.
Regards,
Luis