Hi Scott:
When I build cross gdb for ARM Linux, two executables are generated.  One is
arm-linux-gdb and another one is arm-linux-run.  I believe the arm-linux-run
is the arm-linux simulator.  The command "target sim" will bring up the
arm-linux-run simulator to run the code for debugging when the arm-linux-gdb
is running.  It is supposed that I can use arm-linux-run to run a binary
code with ARM elf little endian (big endian) format.  When I built cross
gdb, I used the native(i686) compiler because the gdb is running on an i686
machine. The binary code is generated by a cross compiler.  I will try to
check out CVS snapshot to build a new cross gdb and debug the ARM binary
code in a i686 machine.    
Would you please let me know how you build your cross gdb and use it. Also
the method the check out the CVS code for gdb.
Thanks a lot for your information.
David


-----Original Message-----
From: Scott Bambrough [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 07, 2000 2:52 PM
To: Meng, David
Cc: [EMAIL PROTECTED]
Subject: Re: Cross gdb


"Meng, David" wrote:
 
>   ./configure --target=arm-linux  --host=i686-pc-linux-gnu

I take it you are trying to build a cross GDB for ARM Linux.  The compiler
is
set up to generate little endian ARM code for ARM Linux.

> Do you know how to tell the gdb to generate the little(big) ARM simulator 
> in building a cross gdb.

I think the answer in this case is you can't.  There is no simulator for ARM
Linux in the GDB sources AFAIK.  I've never heard of anyone doing this.

I'm sure a cross GDB for ARM Linux will have to use a gdbserver running on
the
target machine, and debug over the serial or ethernet ports.  I've never
done
this, so I don't know if it works.  I made some changes to GDB this week for
this.  Phil, did you have any luck?

> Also would you please tell me if the CVS snapshot contains ARM update code
> in the gdb?

GDB 4.18 doesn't have support for ARM Linux.  The latest GDB snapshots do
contain support for ARM Linux, as does the CVS tree.  You need a snapshot
dated
later than April 5, 2000 to do what you want to do, or check out the source
from
CVS.  I checked in a fix to allow a cross debugger for ARM Linux to build on
Wednesday.  I'm going to check in some Makefile dependency changes today for
the
same problem, so I recommend checking out a tree from CVS.

Scott


-- 
Scott Bambrough - Software Engineer
REBEL.COM    http://www.rebel.com
NetWinder    http://www.netwinder.org


unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++        Please use [EMAIL PROTECTED] for           ++
++                        kernel-related discussions.                      ++

Reply via email to