Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Christoph Plattner <christoph.plattner@gmx.at>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb@sources.redhat.com
Subject: Re: `gdbserver' in cross compiled builds
Date: Sun, 24 Feb 2002 03:26:00 -0000	[thread overview]
Message-ID: <3C78CDDC.DCEC0237@gmx.at> (raw)
In-Reply-To: <3C7808F9.3080106@cygnus.com>

Yes, that's clear for me. It is the same for glibc.
With this point I have NO problems.

The problem is simple in the tree setup !

In my built (objects) tree, there is NO "gdbserver" subdirectory
created by configuring, in the gdb source tree, the configuration
cannot be done, because all generated files (configs, header files,
etc) are written to the build tree (OBJECT tree).

So my problems are not in the config parameters, but simple, where
(on which path) is called what ?
And if I do some hacks manually, PPC support (for example) cannot be
built. Why does the gdbserver directory work so bad ?

I hope I could give you the point of my problem (reread last email
also).

With friendly regards
Christoph Plattner

Olt EMAIL:
------------------
Hello,

thanks for you answer, but my questions aimed to another point.

Why is the gdbserver not built automatically also in cross builds ?
Why is gdbserver not configured in cross builds ?

How to do the correct way to build and configure concerning the
source tree and the build tree. For example

$HOME/src/gdb    ... is the current gdb source
$HOME/build/gdb  ... is the current build tree for gdb

cd $HOME/build/gdb
../../src/gdb/configure .............

where the parameters for configure sets up a cross build, for example
target is a powerpc architecture, host is i386-linux.

GDB can be build for that without problem.
But how to configure "gdbserver" now ?
There is no directory under the build tree.
To change to the source tree to do the setup is also wrong, as generated
header files, etc, cannot be found there.
What is the professional way here (not a hack or a workaround).

I hope you can help here.

With friendly regards
Christoph Plattner




Andrew Cagney wrote:
> 
> > Hello,
> >
> > thanks for you answer, but my questions aimed to another point.
> >
> > Why is the gdbserver not built automatically also in cross builds ?
> 
> Are you configuring with:
> 
> ..../configure --target=powerpc-linux-gnu
> 
> or
> 
> ..../configure --host=powerpc-linux-gnu --target=powerpc-linux-gnu
> --build=i386-linux-gnu
> 
> the former configures to build a cross debugger.  The latter configures
> to build a debugger (and gdbserver) that will run on the target system.
>   The latter assumes that you have a powerpc-linux-gnu-gcc installed
> somewhere while the former doesn't.
> 
> Andrew

-- 
-------------------------------------------------------
private:	christoph.plattner@gmx.at
company:	christoph.plattner@alcatel.at


  reply	other threads:[~2002-02-24 11:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3C5B3201.2F2FB670@gmx.at>
2002-02-23  9:31 ` Andrew Cagney
     [not found]   ` <3C780221.CF27FBDA@gmx.at>
2002-02-23 13:26     ` Andrew Cagney
2002-02-24  3:26       ` Christoph Plattner [this message]
2002-02-24  8:37         ` Daniel Jacobowitz
2002-02-24 10:21           ` Dan Kegel
2002-02-24 10:25             ` Daniel Jacobowitz

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=3C78CDDC.DCEC0237@gmx.at \
    --to=christoph.plattner@gmx.at \
    --cc=ac131313@cygnus.com \
    --cc=gdb@sources.redhat.com \
    /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