Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jack Howarth <howarth@bromo.med.uc.edu>
To: n179911 <n179911@gmail.com>, y@bromo.med.uc.edu
Cc: gdb@sourceware.org
Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X
Date: Wed, 07 Oct 2009 20:45:00 -0000	[thread overview]
Message-ID: <20091007204525.GA20427@bromo.med.uc.edu> (raw)
In-Reply-To: <3b9893450910071109p19138faam7653bd1e030c57a4@mail.gmail.com>

On Wed, Oct 07, 2009 at 11:09:39AM -0700, n179911 wrote:
> Hi,
> 
> I have compiled gdb 7.0 on Mac OS X. And I have configured XCode to
> use this new version of gdb 7.0.
> 
> But when I start debug my XCode project it said gdb can't recognize
> the option '--arch=i386'. Here is the log of my error:
> 
> [Session started at 2009-10-07 11:00:43 -0700.]
> /Users/n179911/bin/gdb/bin/gdb: unrecognized option `--arch=i386'
> Use `/Users/n179911/bin/gdb/bin/gdb --help' for a complete list of options.
> 
> The Debugger has exited with status 1.The Debugger has exited with status
> 
> Can you please tell me how to build gdb to support '--arch-i386' option?
> 
> Thank you.

   You don't indicate if you are running Snow Leopard are not. The gdb 7.0
release uses the latest config.guess which detects the architecture as
that of the default code generation for the system compiler (which is
x86_64 on EMT64 capable hardware). If you want to build the 32-bit gdb
under those conditions, you should explicitly pass the triplet
i386-apple-darwin10 or i686-apple-darwin10 to configure for --host/--build/--target.
I would note that currently for the x86_64-apple-darwin10 build, the
resulting gdb doesn't load i386 binaires (unlike the situation under Linux).
I haven't tested the i686-apple-darwin9 build to see if it can load x86_64
binaries yet.
                 Jack


      parent reply	other threads:[~2009-10-07 20:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-07 18:09 n179911
2009-10-07 18:32 ` Joel Brobecker
2009-10-07 18:35 ` Michael Snyder
2009-10-07 20:10   ` n179911
2009-10-07 20:20     ` Daniel Jacobowitz
2009-10-07 20:21       ` n179911
2009-10-07 21:16         ` Stan Shebs
2009-10-07 20:26     ` n179911
2009-10-07 20:38       ` Matt Rice
2009-10-07 21:07       ` Michael Snyder
2009-10-07 21:22         ` Stan Shebs
2009-10-07 23:18           ` Jack Howarth
2009-10-08  7:53             ` Tristan Gingold
2009-10-08 12:48             ` Tristan Gingold
2009-10-08  7:54           ` Tristan Gingold
2009-10-07 21:04     ` Michael Snyder
2009-10-07 21:15       ` Jack Howarth
2009-10-07 20:45 ` Jack Howarth [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=20091007204525.GA20427@bromo.med.uc.edu \
    --to=howarth@bromo.med.uc.edu \
    --cc=gdb@sourceware.org \
    --cc=n179911@gmail.com \
    --cc=y@bromo.med.uc.edu \
    /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