From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2696 invoked by alias); 1 Feb 2002 15:37:49 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2613 invoked from network); 1 Feb 2002 15:37:44 -0000 Received: from unknown (HELO relay.pair.com) (209.68.1.20) by sources.redhat.com with SMTP; 1 Feb 2002 15:37:44 -0000 Received: (qmail 53424 invoked from network); 1 Feb 2002 15:37:42 -0000 Received: from we-24-126-75-99.we.mediaone.net (HELO kegel.com) (24.126.75.99) by relay1.pair.com with SMTP; 1 Feb 2002 15:37:42 -0000 X-pair-Authenticated: 24.126.75.99 Message-ID: <3C5AB7A7.66A7B6D5@kegel.com> Date: Fri, 01 Feb 2002 07:37:00 -0000 From: Dan Kegel X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.7-10 i686) X-Accept-Language: en MIME-Version: 1.0 To: stefania magistrali CC: gdb@sources.redhat.com Subject: Re: Gdbserver with powerpc References: <3C5AD0B5.1B6479A5@selta.it> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-02/txt/msg00013.txt.bz2 stefania magistrali wrote: > 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? Yes; you have to configure and build gdb as if you wanted it to run native on the ppc; only then can you configure and build gdbserver. > 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? Heh. gdbserver is broken at the moment. I posted recently with almost identical questions. There is talk of fixing it, but I don't know if anyone's working on it. Similarly, there's talk of making it handle multithreaded programs, but I don't know if anyone's working on that, either. - Dan