On 7/9/07, David L. Martin <> wrote:
>
>
> On Mon, 2007-07-09 at 22:04 +0200, Petr Ledvina wrote:
> > I used gdb remote debbugging on mcu target (h8s2600). Correct gdb
> > could be build as part of crosscompiler, you only need to pass --with
> > option to build script (I was building crosscompiler from
> > toolchain-source debian package, did not get into any problems for h8s
> > target).
> > You also need gdb stub, maybe some is build as part of
> > crosscompilation process...
>
> My problem is that the compiler needs both x86 and arm support to do
> this, or am I up the wrong tree?
> --
> David L. Martin
>
>
Martin,
I'm running gdb on a windows box, and gdbserver on a ts7250. I built the two
executables myself, so I'll give you some hints here. I got most of this just
be downloading gdb and reading the included information. It should be very
similar to build on a Linux box.
First, for gdbserver, you need a normal cross compiler. Here's an excerpt
from config.log
=============
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --host=arm-unknown-linux --target=arm-unknown-linux
===============
I think that's all that's necessary, as long as you have your cross-compiler
arm-unknown-linux-gcc in your path. Do the normal ./configure...,
make, su, make install.
Now, to build gdb itself, the compiler only has to be native, and
doesn't have to know anything about arm. It's gdb itself
that has to know about arm. Here's my .configure line for gdb:
$ /cygdrive/c/downloads/gnu/gdb-6.6/gdb/configure
--cache-file=./config.cache --build=i686-pc-cygwin
--host=i686-pc-cygwin --target=arm-unknown-linux
--program-transform-name=s,^,arm-unknown-linux-,; --srcdir=.././gdb
I don't think I typed all that stuff. The important part is probably --target=,
and it figures out the other stuff itself.
Good luck!
Rich
--
Rich Wilson
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|