From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10693 invoked by alias); 3 Aug 2011 21:00:46 -0000 Received: (qmail 10683 invoked by uid 22791); 3 Aug 2011 21:00:45 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 03 Aug 2011 21:00:32 +0000 Received: by wyg36 with SMTP id 36so1033011wyg.0 for ; Wed, 03 Aug 2011 14:00:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.133.194 with SMTP id q44mr4579wei.56.1312405230742; Wed, 03 Aug 2011 14:00:30 -0700 (PDT) Received: by 10.216.36.131 with HTTP; Wed, 3 Aug 2011 14:00:30 -0700 (PDT) In-Reply-To: <201108031505.53265.pedro@codesourcery.com> References: <3A370EF2-7FE5-4266-99A9-E58537D4A4B2@elis.ugent.be> <201108031505.53265.pedro@codesourcery.com> Date: Wed, 03 Aug 2011 21:00:00 -0000 Message-ID: Subject: Re: Break at address on darwin From: "Ben L. Titzer" To: Pedro Alves Cc: gdb@sourceware.org, Jonas Maebe Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00015.txt.bz2 On Wed, Aug 3, 2011 at 7:05 AM, Pedro Alves wrote: > On Wednesday 03 August 2011 14:45:11, Ben L. Titzer wrote: > >> 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. > > Okay. =A0I know close to nothing about Darwin. =A0Apple > have their own heavilly modified version of gdb, forked from > the FSF tree eons ago, so as Tristan said, you need to contact > them. =A0Or try current FSF gdb. > Fair enough. I downloaded and built gdb 7.3 for darwin. It segfaults trying to load symbols from this binary (there are none). % 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 > -- > Pedro Alves >