This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
remote/2474: target extended-remote with --multi does not work on MIPS
- From: dgraham at nortel dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 9 Jul 2008 01:20:54 -0000
- Subject: remote/2474: target extended-remote with --multi does not work on MIPS
- Reply-to: dgraham at nortel dot com
>Number: 2474
>Category: remote
>Synopsis: target extended-remote with --multi does not work on MIPS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jul 09 01:28:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Doug Graham (not exactly sure what to put here)
>Release: 6.8
>Organization:
>Environment:
mipsel-linux-uclibc and mips64-octeon-linux-gnu targets
Linux x86 host
GDB 6.8
>Description:
When gdbserver is started with --multi on a MIPS target,
and a MIPS targetted GDB is connected to the server with
"target extended-remote <ip>:<port>", the extended-remote
command fails, and I think drops back to non-extended mode.
The reason appears to be that GDB is attempting to fetch
the MIPS registers, but there is not yet any live process
on the target to fetch the registers from. Here is the packet
exchange:
(gdb) target extended-remote 47.224.40.105:1234
Sending packet: $qSupported#37...Ack
Packet received:
PacketSize=7cf;QPassSignals+;qXfer:libraries:read+;qXfer:auxv:read+;qXfer:featu
res:read+
Sending packet: $qXfer:features:read:target.xml:0,7ca#46...Ack
Packet received: E01
Sending packet: $g#67...Ack
Packet received: E01
The first E01 error occurs in an exclusively x86 environment
too, but the the x86 debugger does not go on to send the
'g' (fetch registers) packet. It doesn't make sense to
fetch registers here, since there is no live inferior.
>How-To-Repeat:
On a mips target do:
$ gdbserver --multi :1234
On a host with a debugger targetted for MIPS, do
(gdb) target extended-remote <ip>:1234
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: