Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Matt Rice <ratmice@gmail.com>
To: n179911 <n179911@gmail.com>
Cc: Michael Snyder <msnyder@vmware.com>,
	"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: How to configure gdb to support '--arch=i386' on Mac OS X
Date: Wed, 07 Oct 2009 20:38:00 -0000	[thread overview]
Message-ID: <8ba6bed40910071338y2d9059dfjbb002c1717478eea@mail.gmail.com> (raw)
In-Reply-To: <3b9893450910071326h41d343dfja7797b4e51744e2e@mail.gmail.com>

On Wed, Oct 7, 2009 at 1:26 PM, n179911 <n179911@gmail.com> wrote:
> I tried Joel Brobecker suggested in adding that option in gdb/main.c.
>
> But my program still won't come up in my debugger.
>
> [Session started at 2009-10-07 13:27:16 -0700.]
> GNU gdb (GDB) 7.0
> Copyright (C) 2009 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 "i386-apple-darwin9.7.0".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> Loading program into debugger…
> No symbol table is loaded.  Use the "file" command.
> No symbol table is loaded.  Use the "file" command.
> No symbol table is loaded.  Use the "file" command.
> No symbol table is loaded.  Use the "file" command.
> Program loaded.
> tty /dev/ttys008
> (gdb) run
> =thread-group-created,id="81191"
> =thread-created,id="1",group-id="81191"
>

I'm guessing that a stub implementation of -arch may not be enough,
you may end up needing to backport the actual arch implementation, you
may also try stripping the unneeded architectures from the binary
you're trying to debug with the lipo command... (though I'm not sure
if that would actually work...)


  reply	other threads:[~2009-10-07 20:38 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 [this message]
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

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=8ba6bed40910071338y2d9059dfjbb002c1717478eea@mail.gmail.com \
    --to=ratmice@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=msnyder@vmware.com \
    --cc=n179911@gmail.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