From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23407 invoked by alias); 4 Aug 2011 07:19:59 -0000 Received: (qmail 23398 invoked by uid 22791); 4 Aug 2011 07:19:58 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Aug 2011 07:19:36 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id B6F44CB029F; Thu, 4 Aug 2011 09:19:34 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tXq6TyukuQZb; Thu, 4 Aug 2011 09:19:24 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id D9F96CB026C; Thu, 4 Aug 2011 09:19:23 +0200 (CEST) Subject: Re: Break at address on darwin Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: Date: Thu, 04 Aug 2011 07:19:00 -0000 Cc: Pedro Alves , gdb@sourceware.org, Jonas Maebe Content-Transfer-Encoding: quoted-printable Message-Id: References: <3A370EF2-7FE5-4266-99A9-E58537D4A4B2@elis.ugent.be> <201108031505.53265.pedro@codesourcery.com> To: Ben L. Titzer 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/msg00016.txt.bz2 On Aug 3, 2011, at 11:00 PM, Ben L. Titzer wrote: > On Wed, Aug 3, 2011 at 7:05 AM, Pedro Alves wrot= e: >> On Wednesday 03 August 2011 14:45:11, Ben L. Titzer wrote: >>=20 >>> Yes, 0x1000 is where the program loads its first text page, which is >>> mapped to file offset 0. 0x01114 happens to be the entrypoint >>> instruction. 0x01148 is the address of the first function it calls, >>> which you can see from the assembly listing. >>=20 >> Okay. I know close to nothing about Darwin. Apple >> have their own heavilly modified version of gdb, forked from >> the FSF tree eons ago, so as Tristan said, you need to contact >> them. Or try current FSF gdb. >>=20 >=20 > Fair enough. I downloaded and built gdb 7.3 for darwin. It segfaults > trying to load symbols from this binary (there are none). >=20 > % gdb /tmp/add01 > GNU gdb (GDB) 7.3 > Copyright (C) 2011 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-apple-darwin10.8.0". > For bug reporting instructions, please see: > ... > Reading symbols from /private/tmp/add01...Segmentation fault Try the development version (from cvs). I think it works. Tristan.