From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9630 invoked by alias); 2 Aug 2011 20:31:21 -0000 Received: (qmail 9612 invoked by uid 22791); 2 Aug 2011 20:31:20 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp3.ugent.be (HELO smtp3.UGent.be) (157.193.49.127) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Aug 2011 20:31:04 +0000 Received: from localhost (mcheck3.ugent.be [157.193.71.89]) by smtp3.UGent.be (Postfix) with ESMTP id CD166149461; Tue, 2 Aug 2011 22:31:02 +0200 (CEST) Received: from smtp3.UGent.be ([157.193.49.127]) by localhost (mcheck3.ugent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id KPBxiyN+OZSL; Tue, 2 Aug 2011 22:31:02 +0200 (CEST) Received: from [192.168.1.2] (unknown [91.182.236.151]) (Authenticated sender: jmaebe) by smtp3.UGent.be (Postfix) with ESMTPSA id 5E668149460; Tue, 2 Aug 2011 22:31:02 +0200 (CEST) Subject: Re: Break at address on darwin Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=iso-8859-1 From: Jonas Maebe In-Reply-To: Date: Tue, 02 Aug 2011 20:31:00 -0000 Cc: gdb@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <5456BE39-F808-4255-B327-334CBC46B068@elis.ugent.be> References: To: "Ben L. Titzer" X-j-chkmail-Enveloppe: 4E385E85.00A from unknown/151.236-182-91.adsl-dyn.isp.belgacom.be/91.182.236.151/[192.168.1.2]/ X-j-chkmail-Score: MSGID : 4E385E85.00A on smtp3.UGent.be : j-chkmail score : X : R=. U=. O=## B=0.000 -> S=0.166 X-j-chkmail-Status: Ham X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00005.txt.bz2 On 02 Aug 2011, at 21:19, Ben L. Titzer wrote: > On Tue, Aug 2, 2011 at 12:00 PM, Jeffrey Walton wrot= e: >> Are you certain you are setting a breakpoint on an address (eg, b >> 0x40000000)? Or is it a symbolic name (b main)? Just to make sure: to put a breakpoint on an address, it's "b *0x40000000" = (i.e., with an extra "*"; but you'd notice if you used the wrong syntax, si= nce gdb would complain that it can't find a symbol with that name). > It's an address. I =E6now for sure it's being executed because it's the > first instruction in the binary. Actually, I've noticed on many platforms that breakpoints on the very first= instruction don't work. Did you also try other instructions? Jonas