[PATCH] PPC atomic single stepping testcase

Ulrich Weigand uweigand@de.ibm.com
Tue Dec 4 23:16:00 GMT 2007

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?


  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE

More information about the Gdb-patches mailing list