Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Dan Kegel <dank@kegel.com>
Cc: stefania magistrali <s.magistrali@selta.it>, gdb@sources.redhat.com
Subject: Re: Gdbserver with powerpc
Date: Fri, 01 Feb 2002 07:50:00 -0000	[thread overview]
Message-ID: <20020201104944.A15644@nevyn.them.org> (raw)
In-Reply-To: <3C5AB7A7.66A7B6D5@kegel.com>

On Fri, Feb 01, 2002 at 07:43:35AM -0800, Dan Kegel wrote:
> 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

Both.

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


      reply	other threads:[~2002-02-01 15:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-01  7:30 stefania magistrali
2002-02-01  7:35 ` Daniel Jacobowitz
2002-02-01  7:37 ` William A. Gatliff
2002-02-01  7:57   ` Daniel Jacobowitz
2002-02-01  7:59     ` William A. Gatliff
2002-02-01  8:15     ` stefania magistrali
2002-02-01  8:42   ` Andrew Cagney
2002-02-01  8:49     ` William A. Gatliff
2002-02-01  9:10       ` Andrew Cagney
2002-02-01  7:37 ` Dan Kegel
2002-02-01  7:50   ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020201104944.A15644@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=dank@kegel.com \
    --cc=gdb@sources.redhat.com \
    --cc=s.magistrali@selta.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox