ts-7000
[Top] [All Lists]

Re: [ts-7000] gdbserver and remote debugging

To:
Subject: Re: [ts-7000] gdbserver and remote debugging
From: "David L. Martin" <>
Date: Tue, 10 Jul 2007 10:02:03 -0400
On Mon, 2007-07-09 at 20:35 -0700, Rich Wilson wrote:
> 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.

Thanks Rich, that worked.  I was confused by the --target option on
configure, I thought the compiler needed knowledge of the ARM to do the
compile.

gdb + gdbserver does appear to be a little unstable, but I might not
have things right yet.  I will keep working on it.

Thanks.

-- 
David L. Martin


                       )/_
             _.--..---"-,--c_
        \L..'           ._O__)_
,-.     _.+  _  \..--( /          
   `\.-''__.-' \ (     \_
     `'''       `\__   /\
                 ')
 
     



 
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/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU