Article View: gnu.gdb.bug
Article #2752`gdbserver' in cross compiled builds
From: Christoph Plattner
Date: Sat, 02 Feb 2002 00:25
Date: Sat, 02 Feb 2002 00:25
44 lines
2765 bytes
2765 bytes
Hello GDB group ! I often try to build up cross tool chains for different platforms: i386, PowerPC, Atmel AVR, HP PA-RISC, and SPARC soon. But I always have the problem with the standard GDB server (not a stub in special environments). First of all a question: Why is the gdbserver not built up auto- matically. If I build a native GDB, then I want to have a `gdbserver' for my native system, for example I have the same core system, but only small disk (CompactFlash, for example) and I want to use `gdbserver' there. If I build a cross build, for example a PPC cross setup from a intel machine, then I think it is also a clear way to build a `gdb' running on a i386 and handling PPC code, and a `gdbserver' running on the target (--host=$TARGET) and in the best also install it to $prefix/$TARGET as `glibc' and others do so. When I build up such a tool chain, I always have source and object trees seperated. How can I configure and build a `gdbserver' in such a tree setup. When I do the configuration in the source tree under ./gdb/gdbserver (which I do not like in the source tree ...), then the built cannot find generated header files. I cannot run the `configure' from the object tree, as there is no subdirectory under `./gdb' named `gdbserver'. Doing a copy from the src/gdb-5.1.1/gdb/gdbserver to the corresponding place into the object tree does not work also. How is this done correctly. I cannot find good information on this topic in the internet. PLEASE: Send it directly to me, as I am not registered on the GDB mailing list (perhaps I want to, if the problem stays longer ...) With friendly regards Christoph P. -- ------------------------------------------------------- private: christoph.plattner@gmx.at company: christoph.plattner@alcatel.at
Technical Details
Message-ID:
<3C5B3201.2F2FB670@gmx.at>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news-hub.siol.net!zur.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdbShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,af7f82d1212b7b45,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 2002-02-01 16:25:43 PST x-uunet-gateway: mr1.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Sat, 2 Feb 2002 00:25:41 GMT Sender: chris@uunet.uu.net Message-ID: <3C5B3201.2F2FB670@gmx.at> Date: Sat, 02 Feb 2002 01:25:37 +0100 From: christoph.plattner@gmx.at (Christoph Plattner) Organization: private X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.6 i686) X-Accept-Language: en MIME-Version: 1.0 Subject: `gdbserver' in cross compiled builds Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Approved: bug-gdb-request@mail.gnu.org Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news-hub.siol.net!zur.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb Lines: 45