From MAILER-DAEMON Tue Feb 28 18:33:01 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S2WXV-0007Nf-Ie
	for mharc-gdb@gnu.org; Tue, 28 Feb 2012 18:33:01 -0500
Received: from eggs.gnu.org ([208.118.235.92]:59900)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gsmsteve@gmail.com>) id 1S2WXS-0007My-01
	for gdb@gnu.org; Tue, 28 Feb 2012 18:32:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gsmsteve@gmail.com>) id 1S2WXP-0006Pp-J1
	for gdb@gnu.org; Tue, 28 Feb 2012 18:32:57 -0500
Received: from mail-bk0-f41.google.com ([209.85.214.41]:43722)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gsmsteve@gmail.com>) id 1S2WXP-0006OJ-5N
	for gdb@gnu.org; Tue, 28 Feb 2012 18:32:55 -0500
Received: by bkty12 with SMTP id y12so6545318bkt.0
	for <gdb@gnu.org>; Tue, 28 Feb 2012 15:32:52 -0800 (PST)
Received-SPF: pass (google.com: domain of gsmsteve@gmail.com designates
	10.204.148.90 as permitted sender) client-ip=10.204.148.90; 
Authentication-Results: mr.google.com;
	spf=pass (google.com: domain of gsmsteve@gmail.com
	designates 10.204.148.90 as permitted sender)
	smtp.mail=gsmsteve@gmail.com;
	dkim=pass header.i=gsmsteve@gmail.com
Received: from mr.google.com ([10.204.148.90])
	by 10.204.148.90 with SMTP id o26mr10306859bkv.121.1330471972474
	(num_hops = 1); Tue, 28 Feb 2012 15:32:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=Ml/Mi7PZkqcVAops9gllHJ8sUyGz49dwvjetJvNptyo=;
	b=Elgj0IeMl4ss0DGt1RbF9N30QC7e54FB3JYkrPbfRkgwa0I1DhgT5OLvVYL+6fH9wn
	A2WpN+nP/rKxH/a1QUmSRifqgWBzZ+B/+Uwp9SSOYvFlMJSPNs5F1H+vLD4KZRMDN1lH
	NJ+Hg88rgxtw9E3dr7w7s15vZfODpUDohenoo=
Received: by 10.204.148.90 with SMTP id o26mr8320880bkv.121.1330471972316;
	Tue, 28 Feb 2012 15:32:52 -0800 (PST)
MIME-Version: 1.0
Received: by 10.205.120.2 with HTTP; Tue, 28 Feb 2012 15:32:32 -0800 (PST)
In-Reply-To: <20EFFB6A8635B343980C2241DF794F9E2581A228FB@GUREXMB01.ASIAN.AD.ARICENT.COM>
References: <AczWfa/nrWDfLz+XRCOHUqnNv3mHlA==>
	<20EFFB6A8635B343980C2241DF794F9E2581A228FB@GUREXMB01.ASIAN.AD.ARICENT.COM>
From: Simon <gsmsteve@gmail.com>
Date: Tue, 28 Feb 2012 18:32:32 -0500
Message-ID: <CAFA52KQr_T85V8tcqeY+0uYtsGHw78+p+=Ug1_Bb0K2Q1JGsAQ@mail.gmail.com>
Subject: Re: please help me.......
To: Venkateswara Rao Yenuganti <venkateswara.yenuganti@aricent.com>
Content-Type: multipart/alternative; boundary=0015175cabb24b26c504ba0ea558
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
Cc: "gdb@gnu.org" <gdb@gnu.org>
X-BeenThere: gdb@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Discussion list for gdb, the GNU source debugger." <gdb.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gdb>,
	<mailto:gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gdb>
List-Post: <mailto:gdb@gnu.org>
List-Help: <mailto:gdb-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gdb>,
	<mailto:gdb-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 28 Feb 2012 23:32:59 -0000

--0015175cabb24b26c504ba0ea558
Content-Type: text/plain; charset=ISO-8859-1

Your CC was not properly setup.
You need to use the compiler on you host pc, for example, if you are
compiling gdb under x86 for powerpc, your cc should be your local gcc.
HTH.
Regards,
Simon


On Thu, Jan 19, 2012 at 2:40 AM, Venkateswara Rao Yenuganti <
venkateswara.yenuganti@aricent.com> wrote:

>  Hi,****
>
> I am trying to do cross compile gdb6.6.I downloaded the tar file and I
> untared it.after that I have given the following commands.****
>
> ** **
>
> ./configure --target=powerpc-linux CC=powerpc-linux-gnu-gcc export
> CC=powerpc-linux-gnu-gcc make****
>
> ** **
>
> After make I am getting the following errors****
>
> ** **
>
> make[1]: Entering directory `/home/venkat/gdbtools/gdb-6.6'****
>
> Configuring in ./libiberty****
>
> configure: loading cache ./config.cache****
>
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for makeinfo... /home/venkat/gdbtools/gdb-6.6/missing makeinfo
> --split-size=5000000****
>
> configure: WARNING:****
>
> *** Makeinfo is missing. Info documentation will not be built.****
>
> checking for perl... perl****
>
> checking build system type... Invalid configuration
> `CC=powerpc-linux-gnu-gcc': machine `CC=powerpc-linux-gnu' not recognized*
> ***
>
> configure: error: /bin/sh .././libiberty/../config.sub
> CC=powerpc-linux-gnu-gcc failed****
>
> make[1]: *** [configure-libiberty] Error 1****
>
> make[1]: Leaving directory `/home/venkat/gdbtools/gdb-6.6'****
>
> make: *** [all] Error 2****
>
> ** **
>
> ** **
>
> ** **
>
> my os is : Linux localhost.localdomain 2.6.35.6-45.fc14.i686 #1 SMP Mon
> Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux****
>
> ** **
>
> my cross compiler is : gcc version 4.5.1 (Sourcery G++ Lite 2010.09-55)***
> *
>
> ** **
>
> Thanks in advance****
>
> Venkateswararao ****
>
> ** **
>
>
>
>
>
> ===============================================================================
> Please refer to http://www.aricent.com/legal/email_disclaimer.html
> for important disclosures regarding this electronic communication.
>
> ===============================================================================
>

--0015175cabb24b26c504ba0ea558
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Your CC was not properly setup.=A0<div>You need to use the compiler on you =
host pc, for example, if you are compiling gdb under x86 for powerpc, your =
cc should be your local gcc.=A0</div><div>HTH.=A0<br clear=3D"all">Regards,=
 <br>

Simon<br>
<br><br><div class=3D"gmail_quote">On Thu, Jan 19, 2012 at 2:40 AM, Venkate=
swara Rao Yenuganti <span dir=3D"ltr">&lt;<a href=3D"mailto:venkateswara.ye=
nuganti@aricent.com">venkateswara.yenuganti@aricent.com</a>&gt;</span> wrot=
e:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">





<div lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">H=
i,<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">I=
 am trying to do cross compile gdb6.6.I downloaded the tar file and I untar=
ed it.after that I have given the following
 commands.<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;"><=
u></u>=A0<u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">.=
/configure --target=3Dpowerpc-linux CC=3Dpowerpc-linux-gnu-gcc export CC=3D=
powerpc-linux-gnu-gcc make<u></u><u></u></span></font></p>


<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;"><=
u></u>=A0<u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">A=
fter make I am getting the following errors<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;"><=
u></u>=A0<u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">m=
ake[1]: Entering directory `/home/venkat/gdbtools/gdb-6.6&#39;<u></u><u></u=
></span></font></p>


<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">C=
onfiguring in ./libiberty<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">c=
onfigure: loading cache ./config.cache<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">c=
hecking whether to enable maintainer-specific portions of Makefiles... no c=
hecking for makeinfo... /home/venkat/gdbtools/gdb-6.6/missing
 makeinfo --split-size=3D5000000<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">c=
onfigure: WARNING:<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">*=
** Makeinfo is missing. Info documentation will not be built.<u></u><u></u>=
</span></font></p>


<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">c=
hecking for perl... perl<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">c=
hecking build system type... Invalid configuration `CC=3Dpowerpc-linux-gnu-=
gcc&#39;: machine `CC=3Dpowerpc-linux-gnu&#39; not recognized<u></u><u></u>=
</span></font></p>


<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">c=
onfigure: error: /bin/sh .././libiberty/../config.sub CC=3Dpowerpc-linux-gn=
u-gcc failed<u></u><u></u></span></font></p>


<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">m=
ake[1]: *** [configure-libiberty] Error 1<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">m=
ake[1]: Leaving directory `/home/venkat/gdbtools/gdb-6.6&#39;<u></u><u></u>=
</span></font></p>


<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">m=
ake: *** [all] Error 2<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;"><=
u></u>=A0<u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;"><=
u></u>=A0<u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;"><=
u></u>=A0<u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">m=
y os is : Linux localhost.localdomain 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct =
18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux<u></u><u></u></span></font></=
p>


<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;"><=
u></u>=A0<u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">m=
y cross compiler is : gcc version 4.5.1 (Sourcery G++ Lite 2010.09-55)<u></=
u><u></u></span></font></p>


<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;"><=
u></u>=A0<u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">T=
hanks in advance<u></u><u></u></span></font></p>
<p class=3D"MsoNormal" style=3D"text-autospace:none"><font face=3D"Courier =
New"><span style=3D"font-size:10.0pt;font-family:&quot;Courier New&quot;">V=
enkateswararao
<u></u><u></u></span></font></p>
<p class=3D"MsoNormal"><font face=3D"Arial"><span style=3D"font-size:10.0pt=
;font-family:Arial"><u></u>=A0<u></u></span></font></p>
</div>
<br>
<font face=3D"Arial" color=3D"Gray"><br>
<br>
<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D<br>
Please refer to <a href=3D"http://www.aricent.com/legal/email_disclaimer.ht=
ml" target=3D"_blank">http://www.aricent.com/legal/email_disclaimer.html</a=
><br>
for important disclosures regarding this electronic communication.<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D<br>
</font>
</div>

</blockquote></div><br></div>

--0015175cabb24b26c504ba0ea558--


From MAILER-DAEMON Tue Feb 28 18:34:03 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S2WYV-0008Dh-CP
	for mharc-gdb@gnu.org; Tue, 28 Feb 2012 18:34:03 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35401)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gsmsteve@gmail.com>) id 1S2WYS-0008DU-Ci
	for gdb@gnu.org; Tue, 28 Feb 2012 18:34:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gsmsteve@gmail.com>) id 1S2WYP-0006nL-SU
	for gdb@gnu.org; Tue, 28 Feb 2012 18:33:59 -0500
Received: from mail-bk0-f41.google.com ([209.85.214.41]:41316)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gsmsteve@gmail.com>) id 1S2WYP-0006mh-IF
	for gdb@gnu.org; Tue, 28 Feb 2012 18:33:57 -0500
Received: by bkty12 with SMTP id y12so6545794bkt.0
	for <gdb@gnu.org>; Tue, 28 Feb 2012 15:33:55 -0800 (PST)
Received-SPF: pass (google.com: domain of gsmsteve@gmail.com designates
	10.204.148.90 as permitted sender) client-ip=10.204.148.90; 
Authentication-Results: mr.google.com;
	spf=pass (google.com: domain of gsmsteve@gmail.com
	designates 10.204.148.90 as permitted sender)
	smtp.mail=gsmsteve@gmail.com;
	dkim=pass header.i=gsmsteve@gmail.com
Received: from mr.google.com ([10.204.148.90])
	by 10.204.148.90 with SMTP id o26mr10308183bkv.121.1330472035452
	(num_hops = 1); Tue, 28 Feb 2012 15:33:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=HiYk8dHqUJPUaZFV3JhONBxHpF5kkCS2+muXsUXksoM=;
	b=aR+QjBLwhbQmnd3+I2fr9OeKG3vgvTTUaOmXqf86VSKiQIFlsLmO6HvQo9H8ZsQcyn
	juvYWD5+TfxE65akFMWETd8vIKJ+VS2jNB6SNYtS/F1MaVlA36mg51eSl9aAjGJbUDNC
	dP60J+XN7CCHtFuRZSQzaDWzUAZTSC9VLkXpI=
Received: by 10.204.148.90 with SMTP id o26mr8321970bkv.121.1330472035244;
	Tue, 28 Feb 2012 15:33:55 -0800 (PST)
MIME-Version: 1.0
Received: by 10.205.120.2 with HTTP; Tue, 28 Feb 2012 15:33:35 -0800 (PST)
In-Reply-To: <201112151653.12470.manningc2@actrix.gen.nz>
References: <32975343.post@talk.nabble.com> <32976679.post@talk.nabble.com>
	<201112151653.12470.manningc2@actrix.gen.nz>
From: Simon <gsmsteve@gmail.com>
Date: Tue, 28 Feb 2012 18:33:35 -0500
Message-ID: <CAFA52KT82zCRvJE-40uHbdHXxF6xmm3U72motER-Hw4NfP9i7w@mail.gmail.com>
Subject: Re: Sorry, a dumb one: how do I BUILD the thing (i.e. gdb) on Win?
To: Charles Manning <manningc2@actrix.gen.nz>
Content-Type: multipart/alternative; boundary=0015175cabb20b5c2804ba0ea9bd
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 209.85.214.41
Cc: manu0507 <E.Falkenauer@optimaldesign.com>, gdb@gnu.org
X-BeenThere: gdb@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Discussion list for gdb, the GNU source debugger." <gdb.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gdb>,
	<mailto:gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gdb>
List-Post: <mailto:gdb@gnu.org>
List-Help: <mailto:gdb-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gdb>,
	<mailto:gdb-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 28 Feb 2012 23:34:02 -0000

--0015175cabb20b5c2804ba0ea9bd
Content-Type: text/plain; charset=ISO-8859-1

I think there is pre-build version of gdb for windows. Your definitely will
need more effort if you want to build your own.

Regards,
Simon


On Wed, Dec 14, 2011 at 10:53 PM, Charles Manning
<manningc2@actrix.gen.nz>wrote:

>
> > I actually managed to find an already built gdb.exe. It's
> > This GDB was configured as "x86_64-w64-mingw32".
> > which not only means that it can indeed load Win-64 images, but also that
> > it IS possible to build gdb with MinGW64. ;-)
> >
> > I found it at http://www.equation.com/servlet/equation.cmd?fa=gdb . I
> have
> > to confess that downloading a plain .exe and running it on my machine was
> > pretty scary - if anybody could confirm that downloads from equation.com
> > are virus-free, it would be greatly appreciated.
>
> Luck to find something pre-built.
>
> I would think that using Cygwin would make life a little easier.
>
>
> >
> > Another downside is that it's 7.2, while the latest official gdb release
> > seems to be 7.3.1 - another reason to try and build it myself.
> > But anyway, it seems to be running ok... and I found my bug! :-)
> >
>
> I would not get too distressed about that. 7.2 is likely mature enough for
> most  things you'd want to do under x86.
>
> -- Charles
>
>
>
>

--0015175cabb20b5c2804ba0ea9bd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I think there is pre-build version of gdb for windows. Your definitely will=
 need more effort if you want to build your own.=A0<div><br clear=3D"all">R=
egards, <br>Simon<br>
<br><br><div class=3D"gmail_quote">On Wed, Dec 14, 2011 at 10:53 PM, Charle=
s Manning <span dir=3D"ltr">&lt;<a href=3D"mailto:manningc2@actrix.gen.nz">=
manningc2@actrix.gen.nz</a>&gt;</span> wrote:<br><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex">

<div class=3D"im"><br>
&gt; I actually managed to find an already built gdb.exe. It&#39;s<br>
&gt; This GDB was configured as &quot;x86_64-w64-mingw32&quot;.<br>
&gt; which not only means that it can indeed load Win-64 images, but also t=
hat<br>
&gt; it IS possible to build gdb with MinGW64. ;-)<br>
&gt;<br>
&gt; I found it at <a href=3D"http://www.equation.com/servlet/equation.cmd?=
fa=3Dgdb" target=3D"_blank">http://www.equation.com/servlet/equation.cmd?fa=
=3Dgdb</a> . I have<br>
&gt; to confess that downloading a plain .exe and running it on my machine =
was<br>
&gt; pretty scary - if anybody could confirm that downloads from <a href=3D=
"http://equation.com" target=3D"_blank">equation.com</a><br>
&gt; are virus-free, it would be greatly appreciated.<br>
<br>
</div>Luck to find something pre-built.<br>
<br>
I would think that using Cygwin would make life a little easier.<br>
<div class=3D"im"><br>
<br>
&gt;<br>
&gt; Another downside is that it&#39;s 7.2, while the latest official gdb r=
elease<br>
&gt; seems to be 7.3.1 - another reason to try and build it myself.<br>
&gt; But anyway, it seems to be running ok... and I found my bug! :-)<br>
&gt;<br>
<br>
</div>I would not get too distressed about that. 7.2 is likely mature enoug=
h for<br>
most =A0things you&#39;d want to do under x86.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-- Charles<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>

--0015175cabb20b5c2804ba0ea9bd--


From MAILER-DAEMON Wed Feb 29 11:42:54 2012
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1S2mcA-0007FB-6o
	for mharc-gdb@gnu.org; Wed, 29 Feb 2012 11:42:54 -0500
Received: from eggs.gnu.org ([208.118.235.92]:39409)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <adam@irvine.com>) id 1S2mc6-00079I-Nh
	for gdb@gnu.org; Wed, 29 Feb 2012 11:42:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <adam@irvine.com>) id 1S2mbh-0005FW-RK
	for gdb@gnu.org; Wed, 29 Feb 2012 11:42:50 -0500
Received: from larry-rp.irvine.com ([66.126.103.122]:61966
	helo=mailhub.irvine.com) by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <adam@irvine.com>) id 1S2mbh-0005Et-IY
	for gdb@gnu.org; Wed, 29 Feb 2012 11:42:25 -0500
Received: from irvine.com (shrike.irvine.com [192.160.8.7])
	by mailhub.irvine.com (Postfix) with ESMTP id B7720A8C87E;
	Wed, 29 Feb 2012 08:42:21 -0800 (PST)
To: gdb@gnu.org
Subject: How does gdb simulate I/O?
Date: Wed, 29 Feb 2012 08:42:20 -0800
From: Adam Beneschan <adam@irvine.com>
Message-Id: <20120229164221.B7720A8C87E@mailhub.irvine.com>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Received-From: 66.126.103.122
X-BeenThere: gdb@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Discussion list for gdb, the GNU source debugger." <gdb.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/gdb>,
	<mailto:gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/gdb>
List-Post: <mailto:gdb@gnu.org>
List-Help: <mailto:gdb-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/gdb>,
	<mailto:gdb-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 29 Feb 2012 16:42:52 -0000


Hi, everyone,

This is my first time posting to this list...

When gdb is simulating a program on a cross-target, how does it
determine when to do I/O on standard input/output?

Let me be more specific.  I'm assuming that when a program is being
simulated, GDB recognizes, or is capable of recognizing, a certain
instruction sequence as an attempt to write a character (or string) to
standard output.  This could be a particular instruction, like some
sort of "trap" or "breakpoint" instruction with certain parameters, or
it could be a call to a routine with a specific name (e.g. if there's
a _write() routine in the program, GDB could recognize a call to that
routine).  When GDB tries to simulate such an instruction or a call to
the routine, it instead determines what the program is trying to
write, and dumps it to standard output itself, instead of executing
the instruction or the routine.  Similarly for standard input.

What does GDB recognize as a standard I/O call?  How would I find out
where this is documented; or is there a way to get GDB to tell me?

Is this configurable?  I.e. how would I tell GDB what instruction, or
what routine, to look for?

I'm interested in answers both for the general simulation case, and
specifically for simulating ARM.  I skimmed through the manual but
couldn't find anything that seemed related.

My motivation here is that I'm trying to make sure a runtime library
is built correctly so that programs using it can be simulated with GDB
and do standard input/output.

Thanks for any help you can provide.







