From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17143 invoked by alias); 4 Dec 2007 23:16:58 -0000 Received: (qmail 17133 invoked by uid 22791); 4 Dec 2007 23:16:57 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate7.de.ibm.com (HELO mtagate7.de.ibm.com) (195.212.29.156) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 04 Dec 2007 23:16:50 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.13.8/8.13.8) with ESMTP id lB4NGlje265350 for ; Tue, 4 Dec 2007 23:16:47 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id lB4NGlLn3022912 for ; Wed, 5 Dec 2007 00:16:47 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id lB4NGk8h014649 for ; Wed, 5 Dec 2007 00:16:47 +0100 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id lB4NGkjV014646; Wed, 5 Dec 2007 00:16:46 +0100 Message-Id: <200712042316.lB4NGkjV014646@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Wed, 5 Dec 2007 00:16:46 +0100 Subject: Re: [PATCH] PPC atomic single stepping testcase To: luisgpm@linux.vnet.ibm.com Date: Tue, 04 Dec 2007 23:16:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <1196793096.15766.8.camel@gargoyle> from "Luis Machado" at Dec 04, 2007 04:31:36 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-12/txt/msg00064.txt.bz2 Luis Machado wrote: > +gdb_test "x/g &puts" "$hex :\[\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? Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com