This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Can't build m68k-linux gdb-5.2.1
>> While I'm at it, how do I configure(and build) a gdbserver to run on
>> m68k-linux that's built on an x86-linux machine?
>
>Just create a new object directory, and run $path/gdbserver/configure
>--host=m68k-linux. I think m68k support works, but it's not tested.
Ah. I found that:
$ export PATH=<path-to-m68k-linux-gcc>:$PATH
$ mkdir obj-gdbserver
$ cd obj-gdbserver
$ CC=m68k-linux-gcc ~/gdb-5.2.1/gdb/gdbserver/configure --host=m68k-linux
$ make
builds a gdbserver that is at least:
$ file gdbserver
gdbserver: ELF 32-bit MSB executable, Motorola 68000, version 1, dynamically linked (uses shared libs), not stripped
--
Peter Barada Peter.Barada@motorola.com
Wizard 781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)