🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1148

Remote debugging on 64-bit windows machine

#1148
From: Benjamin Dolnik
Date: Mon, 26 Mar 2007 13:22
192 lines
8463 bytes
This is a multi-part message in MIME format.

------_=_NextPart_001_01C76FA9.D9439F96
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I'm trying to use remote debugging to debug 64-bit application. It seems
not working. I even tried to do it on the same machine - the same
result.=20
Looks like 64-bit register value is not handled properly.
Here are the details:


GDB client console:

(gdb) target remote :1234
Remote debugging using :1234
Remote register badly formatted:
T0506:0000000000000000;07:501ab4ffff7f0000;10:90baaaaaaa2a0000;
here: 0000000;07:501ab4ffff7f0000;10:90baaaaaaa2a0000;


GDB server console:

gdbserver host:1234 ./myexample --console
Process ./myexample created; pid =3D 19429
Listening on port 1234
Remote debugging from host 127.0.0.1
readchar: Got EOF
Remote side has terminated connection.  GDBserver will reopen the
connection.


Linux information:

Linux 2.6.13-15-smp #1 SMP Tue Sep 13 14:56:15 UTC 2005 x86_64 x86_64
x86_64 GNU/Linux


GDB information:

GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "x86_64-unknown-linux-gnu".

Thanks
Benjamin

B D O L N I K   AT  G E T C O L L C DOT C O M=20


This e-mail and its attachments are intended only for the individual or =
entity to whom it is addressed and may contain information that is =
confidential, privileged, inside information, or subject to other =
restrictions on use or disclosure. Any unauthorized use, dissemination =
or copying of this transmission or the information in it is prohibited =
and may be unlawful. If you have received this transmission in error, =
please notify the sender immediately by return e-mail, and permanently =
delete or destroy this e-mail, any attachments, and all copies (digital =
or paper). Unless expressly stated in this e-mail, nothing in this =
message should be construed as a digital or electronic signature.

------_=_NextPart_001_01C76FA9.D9439F96
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7651.59">
<TITLE>Remote debugging on 64-bit windows machine</TITLE>
</HEAD>
<BODY><!--ppd1000033-->
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm trying to use remote debugging to =
debug 64-bit application. It seems not working. I even tried to do it on =
the same machine - the same result. </FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Looks like 64-bit register value is not =
handled properly.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Here are the details:</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">GDB client console:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">(gdb) target remote :1234</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Remote debugging using :1234</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Remote register badly formatted: =
T0506:0000000000000000;07:501ab4ffff7f0000;10:90baaaaaaa2a0000;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">here: =
0000000;07:501ab4ffff7f0000;10:90baaaaaaa2a0000;</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">GDB server console:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">gdbserver host:1234 ./myexample =
--console</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Process ./myexample created; pid =3D =
19429</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Listening on port 1234</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Remote debugging from host =
127.0.0.1</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">readchar: Got EOF</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Remote side has terminated =
connection.&nbsp; GDBserver will reopen the connection.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">Linux information:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Linux 2.6.13-15-smp #1 SMP Tue Sep 13 =
14:56:15 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux</FONT>
</P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">GDB information:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">GNU gdb 6.6</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Copyright (C) 2006 Free Software =
Foundation, Inc.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">GDB is free software, covered by the =
GNU General Public License, and you are</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">welcome to change it and/or distribute =
copies of it under certain conditions.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Type &quot;show copying&quot; to see =
the conditions.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">There is absolutely no warranty for =
GDB.&nbsp; Type &quot;show warranty&quot; for details.</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">This GDB was configured as =
&quot;x86_64-unknown-linux-gnu&quot;.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Benjamin</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">B D O L N I K&nbsp;&nbsp; AT&nbsp; G E =
T C O L L C DOT C O M </FONT>
</P>

<BR><BR><P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt; =
mso-layout-grid-align: none"><SPAN style=3D"mso-bidi-font-size: =
8.0pt"><FONT size=3D3>This e-mail and its attachments are intended only =
for the individual or entity to whom it is addressed and may contain =
information that is confidential, privileged, inside information, or =
subject to other restrictions on use or disclosure.<SPAN =
style=3D"mso-spacerun: yes">&nbsp; </SPAN>Any unauthorized use, =
dissemination or copying of this transmission or the information in it =
is prohibited and may be unlawful.<SPAN style=3D"mso-spacerun: =
yes">&nbsp; </SPAN>If you have received this transmission in error, =
please notify the sender immediately by return e-mail, and permanently =
delete or destroy this e-mail, any attachments, and all copies (digital =
or paper).<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>Unless =
expressly stated in this e-mail, nothing in this message should be =
construed as a digital or electronic signature.</FONT></SPAN></P></BODY>
</HTML>
------_=_NextPart_001_01C76FA9.D9439F96--
Technical Details
Message-ID: <mailman.1453.1174916841.7795.bug-gdb@gnu.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.stanford.edu!headwall.stanford.edu!shelby.stanford.edu!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5053,915126d4dcd59d3b,start
X-Google-Attributes: gidf5053,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.stanford.edu!headwall.stanford.edu!shelby.stanford.edu!not-for-mail
From: "Benjamin Dolnik" <bdolnik@Getcollc.com>
Newsgroups: gnu.gdb.bug
Subject: Remote debugging on 64-bit windows machine
Date: Mon, 26 Mar 2007 08:22:48 -0500
Lines: 194
Approved: bug-gdb@gnu.org
Message-ID: <mailman.1453.1174916841.7795.bug-gdb@gnu.org>
NNTP-Posting-Host: lists.gnu.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----_=_NextPart_001_01C76FA9.D9439F96"
Content-Transfer-Encoding: 7bit
X-Trace: news.Stanford.EDU 1174916703 9394 199.232.76.165 (26 Mar 2007 13:45:03 GMT)
X-Complaints-To: news@news.stanford.edu
To: <bug-gdb@gnu.org>
Envelope-to: bug-gdb@gnu.org
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2826
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
Thread-Topic: Remote debugging on 64-bit windows machine
thread-index: Acdvqdk+dOSwIfK8QXKoS0oBlYc+qw==
X-OriginalArrivalTime: 26 Mar 2007 13:22:49.0156 (UTC)
 FILETIME=[D970E840:01C76FA9]
X-detected-kernel: Windows 2000 SP4, XP SP1+
X-Greylist: delayed 1321 seconds by postgrey-1.27 at monty-python;
 Mon, 26 Mar 2007 09:44:52 EDT
X-BeenThere: bug-gdb@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/bug-gdb>
List-Post: <mailto:bug-gdb@gnu.org>
List-Help: <mailto:bug-gdb-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>,
 <mailto:bug-gdb-request@gnu.org?subject=subscribe>