This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Gdbserver with powerpc


On Fri, Feb 01, 2002 at 04:30:29PM -0100, stefania magistrali wrote:
> Hi all!
> I am developing a powerpc (860) board. I need to compile gdb for my host
> 
> (Intel with Linux) and gdbserver for target. I configured the system
> like
> this:
> 
> for gdb: ./configure --target=powerpc-linux
> and for gdbserver: ./configure powerpc-linux (then I set CC=cross
> compiler
> for powerpc)
> 
> I have problems with gdbserver, I can't compile it. There are 2
> problems:
> 1) when I compile it, the utils.c file loads the server.h file and this
> loads the ../defs.h file (gdb/defs.h) where it is included the config.h
> file
> (gdb/config.h). But that file is created when I configured gdb (with the
> 
> host=Intel and target=powerpc) and so, p.e. it is defined
> HAVE_SYS_REG_H,
> when I haven't the file sys/reg.h for powerpc. Have I to configure it in
> a
> different way?

GDB must be configured for the TARGET, not for a cross-debugger, in
order to build gdbserver.  $CC must be a cross-compiler.

> 2) In low-linux.c there is a source code for Intel and m68k, I have to
> add
> code for powerpc? If so, do you know if someone has already done it?
> Thanks,
> Stefania

I believe it's been posted to the list a few times.  It may be again in
a few days.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]