gdb intermittently failing to connect #8

Closed
opened 2019-12-26 19:33:01 +08:00 by sb10q · 2 comments
$ gdb zc706-experiments 
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from zc706-experiments...
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Remote replied unexpectedly to 'vMustReplyEmpty': PacketSize=3fff;qXfer:memory-map:read-;qXfer:features:read+;qXfer:threads:read+;QStartNoAckMode+
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
0xffffff28 in ?? ()

Using openocd and gdb from nixpkgs 20.03pre206438.a06925d8c60 and zc706 9199bb7a16.

```text $ gdb zc706-experiments GNU gdb (GDB) 8.3.1 Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "aarch64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from zc706-experiments... (gdb) target remote localhost:3333 Remote debugging using localhost:3333 Ignoring packet error, continuing... warning: unrecognized item "timeout" in "qSupported" response Remote replied unexpectedly to 'vMustReplyEmpty': PacketSize=3fff;qXfer:memory-map:read-;qXfer:features:read+;qXfer:threads:read+;QStartNoAckMode+ (gdb) target remote localhost:3333 Remote debugging using localhost:3333 0xffffff28 in ?? () ``` Using openocd and gdb from nixpkgs 20.03pre206438.a06925d8c60 and zc706 9199bb7a1656ad6b7ca4a293918d00fc109ddb52.

This happens when openocd hasn't had enough time to initialize. A single retry usually works for me.

sleep 5 or query the openocd telnet interface for its state.

This happens when openocd hasn't had enough time to initialize. A single retry usually works for me. `sleep 5` or query the openocd telnet interface for its state.
Poster
Owner
...or don't use GDB https://git.m-labs.hk/M-Labs/artiq-zynq/src/branch/master/remote_run.sh
sb10q closed this issue 2020-04-17 14:08:54 +08:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/zynq-rs#8
There is no content yet.