Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #477 from sifive/gdb-threads-enter
Browse files Browse the repository at this point in the history
sync threads to _enter before gdb resumes
  • Loading branch information
bsousi5 authored Apr 29, 2020
2 parents 0b3ca2a + 744aee5 commit c57e97f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/upload
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ else

$openocd -f $cfg &

$gdb $elf --batch -ex "set remotetimeout 240" -ex "target extended-remote localhost:${GDB_PORT}" -ex "monitor reset halt" -ex "monitor flash protect 0 64 last off" -ex "load" -ex "monitor resume" -ex "monitor shutdown" -ex "quit"
$gdb $elf --batch -ex "set remotetimeout 240" -ex "target extended-remote localhost:${GDB_PORT}" -ex "monitor reset halt" -ex "monitor flash protect 0 64 last off" -ex "thread apply all set \$pc=_enter" -ex "load" -ex "monitor resume" -ex "monitor shutdown" -ex "quit"

kill %1

Expand Down

0 comments on commit c57e97f

Please sign in to comment.