microsoft / microsoft/vscode-cpptools
[ARM] Need to run debugging session twice when debugging multithreaded application
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
Here is:
cpptools v0.13.0
VSCode 1.16.1
Windows 8
I use VS Code to develop application for the ARM Cortem-Mx MCUs. When starting debugger with multithreaded application (with OpenOCD threads support) I need to run debugger session twice - first time VS Code drops debugging session. Standalone gdb-OpenOCD session runs flawlessly.
That is not a big problem, cause debugger functions properly after the second start, but it looks like something is broken.
Here is the debug log of the VSCode for the first debugger start:
first.txt
And here is for the second one:
second.txt
Note: when application starts there is no OS running yet, so OpenOCD reports there is a fake thread (thread id 1). This thread terminates on OS start and new real threads created.
The problem may be related to #978 issue.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia confrontando i log di debug allegati first.txt e second.txt, quindi esamina il comportamento descritto per il thread fake di OpenOCD e la issue correlata #978. Riproduci il comportamento del primo e del secondo avvio con un'applicazione ARM multithread e verifica che un avvio del debugger rimanga connesso quando il thread iniziale viene sostituito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, typescript, vscode
- Ambito
- devtools, embedded-iot
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100