From: Tristan Gingold <gingold@adacore.com>
To: Ben L. Titzer <ben.titzer@gmail.com>
Cc: Pedro Alves <pedro@codesourcery.com>,
gdb@sourceware.org, Jonas Maebe <jonas.maebe@elis.ugent.be>
Subject: Re: Break at address on darwin
Date: Thu, 04 Aug 2011 07:19:00 -0000 [thread overview]
Message-ID: <AC51CBA6-4C6D-46B3-B938-26BBE4980437@adacore.com> (raw)
In-Reply-To: <CAL9pw=_aBxuv62sr9QGaR3sNh_zh2msow5us5kT93kdqDdnvCg@mail.gmail.com>
On Aug 3, 2011, at 11:00 PM, Ben L. Titzer wrote:
> On Wed, Aug 3, 2011 at 7:05 AM, Pedro Alves <pedro@codesourcery.com> 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. 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.
>>
>
> 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 <http://gnu.org/licenses/gpl.html>
> 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:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /private/tmp/add01...Segmentation fault
Try the development version (from cvs). I think it works.
Tristan.
prev parent reply other threads:[~2011-08-04 7:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-02 16:47 Ben L. Titzer
2011-08-02 19:00 ` Jeffrey Walton
2011-08-02 19:19 ` Ben L. Titzer
2011-08-02 20:31 ` Jonas Maebe
2011-08-02 21:51 ` Ben L. Titzer
2011-08-03 8:09 ` Tristan Gingold
2011-08-03 9:00 ` Pedro Alves
2011-08-03 9:05 ` Jonas Maebe
2011-08-03 13:45 ` Ben L. Titzer
2011-08-03 14:06 ` Pedro Alves
2011-08-03 21:00 ` Ben L. Titzer
2011-08-04 7:19 ` Tristan Gingold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AC51CBA6-4C6D-46B3-B938-26BBE4980437@adacore.com \
--to=gingold@adacore.com \
--cc=ben.titzer@gmail.com \
--cc=gdb@sourceware.org \
--cc=jonas.maebe@elis.ugent.be \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox