Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Steve DeLaney" <onramp123@yahoo.com>
To: "'Pedro Alves'" <pedro_alves@portugalmail.pt>, 	<gdb@sourceware.org>
Subject: build script for gdb 6.7.1 for mingw32ce
Date: Wed, 12 Dec 2007 21:41:00 -0000	[thread overview]
Message-ID: <01e501c83d07$5f9e3b90$6603a8c0@sdelaney2> (raw)
In-Reply-To: <475DBCBD.5080404@portugalmail.pt>


 Thanks to all the help from Pedro on this.  I'm including a build script
that 
patches gdb 6.7.1 and builds gdb and gdbserver.  not sure the best way to
post this so I'll just include it inline for now.



#!/bin/bash
# build-gdb-6.7.1-mingw32ce
# built with mingw32ce distro 0.51
#

src=gdb-6.7.1
patchfile=mingw32ce.patch

echo "UNTAR $src DISTRO"
tar xvzf $src.tar.gz

echo "PATCHING $src DISTRO for mingw32ce"
cd $src/bfd
# using bfd patch submitted by Pedro 2007-12-10
patch < ../../mingw32ce.patch
cd ../..

echo "BUILDING GDB"
mkdir build-gdb
cd build-gdb
../$src/configure --target=arm-wince-mingw32ce --prefix=/opt/mingw32ce
make 
make install
cd ..
echo "GDB BUILD COMPLETE"

echo "BUILDING GDBSERVER"
mkdir build-gdbserver
cd build-gdbserver
../$src/gdb/gdbserver/configure --host=arm-wince-mingw32ce 
make
arm-wince-mingw32ce-strip gdbserver.exe -o gdbserver-stripped.exe
echo "GDBSERVER BUILD COMPLETE"
echo "copy gdbserver-stripped.exe to the device and rename it gdbserver.exe"
cd ..









-----Original Message-----
From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf
Of Pedro Alves
Sent: Monday, December 10, 2007 2:25 PM
To: gdb@sourceware.org; onramp123@yahoo.com
Subject: RE: help building gdb 6.7.1 for windows CE ARM

Steve DeLaney wrote:
 > I am attempting a build of gdb 6.7.1 for windows CE ARM target using  >
mingw32ce  the objective is to have gdbserver on target providing a "target
> remote x" interface to the host development gdb.  in other words a
standard  > session configuration.
 >
 > can anyone help with the --target and --host configure options ?
 >

Build gdb with --target=arm-wince-mingw32ce Build gdbserver with
--host=arm-wince-mingw32ce

 > I think there is a bfd patch but not sure if it is located in the patches
> archive ?
 >

I had never submitted it upstream ...

... until now:
http://sourceware.org/ml/binutils/2007-12/msg00051.html

--
Pedro Alves


      reply	other threads:[~2007-12-12 21:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-10 22:24 help building gdb 6.7.1 for windows CE ARM Pedro Alves
2007-12-12 21:41 ` Steve DeLaney [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='01e501c83d07$5f9e3b90$6603a8c0@sdelaney2' \
    --to=onramp123@yahoo.com \
    --cc=gdb@sourceware.org \
    --cc=pedro_alves@portugalmail.pt \
    /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