Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot execute this command without a live selected thread. #69

Open
misson20000 opened this issue Apr 7, 2019 · 1 comment
Open

Cannot execute this command without a live selected thread. #69

misson20000 opened this issue Apr 7, 2019 · 1 comment
Labels
gdb twib relating to twib or twibd

Comments

@misson20000
Copy link
Owner

need to run info threads in gdb before doing anything interesting

@misson20000 misson20000 added twib relating to twib or twibd gdb labels Apr 7, 2019
comex added a commit to comex/twili that referenced this issue Aug 28, 2021
- When sending a thread ID, also set that as the current thread; GDB
  expects the stub to do so and will get out of sync otherwise (see
  remote_target::get_current_thread).

- When the event is a signal but has no thread ID, such as when
  attaching, pick an arbitrary thread ID to send.  Otherwise, GDB will
  just assume we're on thread 0, which it then learns doesn't exist,
  leading to "Cannot execute this command without a live selected
  thread." errors.

Fixes misson20000#69.
@QGB
Copy link

QGB commented May 9, 2022

(gdb) c
Cannot execute this command without a live selected thread.
(gdb) load
Loading section .dram0.data, size 0x3898 lma 0x3fc8da00
Loading section .iram0.text, size 0xd9d8 lma 0x40380000
Loading section .rtc.data, size 0x10 lma 0x50000000
Loading section .flash.appdesc, size 0x100 lma 0x3c0a0020
Loading section .flash.rodata, size 0x25ae0 lma 0x3c0a0120
Loading section .eh_frame, size 0xe40 lma 0x3c0c5c00
Loading section .flash.text, size 0x9b580 lma 0x42000020
Start address 0x4038199c, load size 864800
Transfer rate: 29 KB/sec, 14910 bytes/write.
(gdb) info threads
No threads.
(gdb)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gdb twib relating to twib or twibd
Projects
None yet
Development

No branches or pull requests

2 participants