🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #2445

Help with Remote debbugging of PowerPC

#2445
From: Murray
Date: Fri, 22 Mar 2002 06:59
49 lines
3041 bytes
Can anyone help with a problem I'm having getting GDB talking to a
remote target. I'm trying to get GDB working with an application
running on a proprietary board with a Motorola MPC755. The comms is
through shared memory, so I have written a TCP/IP socket to shared
memory comms program, and use the 'target remote <host>:<port>'
command in GDB to start things off.

I have taken the ppc-stub file and modified it to work with our
application, and I start to get GDB talking the to remote program, but
when it asks for the registers ($g#67) and we send back the contents,
GDB reports -

Couldn't establish connection to remote target
procfs: couldn't find pid 42000 in procinfo list.

I am running GDB under Solaris 2.8. Do I need to build gdb for the
power-pc target or does it automatically determine the target type ?

Is there any more documentation on remote debugging other than the GDB
manual at gnu.org ?

I'm pretty sure the comms are ok because I'm dumping the data
following through the socket and I see the following:

from socket data[9]='+$Hc-1#09'
from card data[7]='+$OK#9a'
from socket data[7]='+$qC#b4'
from card data[5]='+$#00'
from socket data[13]='+$qOffsets#4b'
from card data[5]='+$#00'
from socket data[6]='+$?#3f'
from card data[8]='+$S05#b8'
from socket data[8]='+$Hg0#df'
from card data[7]='+$OK#9a'
from socket data[6]='+$g#67'
from card data[1]='+'
from card data[260]='$fff0cbdcffffffa8fff0f0b8fff1a0d8fff1a51000009070000000000000000700000007ffffff58fffffe58ffffffa800010000fff1a49000000000000000000000000000000000000000000000000000000000fff141b0fff141b0fff10000fff10000ffffff98ffffffa8ffffffb0fff10000fff1448cfff14488ffffffe0#04'
from socket data[1]='+'
other end closed
the client has disconnected

The regsiter contents is this example are shorter than the full list
in ppc-stub.c, as I thought there might have been too much data.

Any help or pointers would be great.

Thanks,

Murray.
Technical Details
Message-ID: <a55db1c1.0203212259.7772e007@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!zur.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,dd8919d63c60f863,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-03-21 23:00:40 PST
x-uunet-gateway: sjc3sosrv11.alter.net from bug-gdb to gnu.gdb.bug; Fri, 22 Mar 2002 07:00:38 GMT
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!zur.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!not-for-mail
From: atkinson_murray@hotmail.com (Murray)
Subject: Help with Remote debbugging of PowerPC
Date: 21 Mar 2002 22:59:56 -0800
Organization: http://groups.google.com/
Message-ID: <a55db1c1.0203212259.7772e007@posting.google.com>
NNTP-Posting-Host: 202.44.175.141
Content-Type: text/plain; charset=GB2312
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1016780396 3382 127.0.0.1 (22 Mar 2002 06:59:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 22 Mar 2002 06:59:56 GMT
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Sender: bug-gdb-request@mail.gnu.org
Lines: 49