This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to configure gdb to support '--arch=i386' on Mac OS X


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...)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]