This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb darwin target on Linux host?
On Wednesday 20 October 2010 15:20:49, Tristan Gingold wrote:
>
> On Oct 20, 2010, at 3:52 PM, Peter Steiner wrote:
>
> > Hi
> >
> > I try to compile a darwin-target gdb running on a Linux host:
> >
> > ./configure --prefix=/usr/local/gdb --target=x86_64-darwin
> >
> > this works up to the end of configure & make however does NOT generate a
> > gdb binary! After make install the bin directory is empty and NO gdb
> > binary has been linked at all.
> >
> > if I do:
> >
> > ./configure --prefix=/usr/local/gdb --target=i386-darwin
> >
> > this creates a gdb binary however it cannot read 64bit binaries from
> > darwin. Any idea what is wrong?
>
> Could you post the log messages ? I suppose that if no binary is built, then an error has occurred.
>
> Not sure why you try to build such a tool, as it would be basically useless to debug.
>
>
Apparently, the top-level configure is finicky about darwin versions:
i[[3456789]]86-*-darwin*)
noconfigdirs="$noconfigdirs ld gprof"
noconfigdirs="$noconfigdirs sim target-rda"
;;
x86_64-*-darwin[[912]]*)
noconfigdirs="$noconfigdirs ld gas gprof"
noconfigdirs="$noconfigdirs sim target-rda"
;;
*-*-darwin*)
noconfigdirs="$noconfigdirs ld gas gdb gprof"
^^^
noconfigdirs="$noconfigdirs sim target-rda"
noconfigdirs="$noconfigdirs ${libgcj}"
;;
Something like "--target=x86_64-darwin10" instead works, and
I suppose "--target=i386-darwin --enable-64-bit-bfd" would
solve the OPs second attempt.
--
Pedro Alves