Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
third_party/mahcinarium/gdb: mm gdb support (#635)
* third_party/mahcinarium/gdb: mm gdb support There are many situations in odyssey that must be debugged. But now it is really hard to do it because of machinarium coroutines engine. This patch series will add gdb support for machinarium's coroutines in golang's goroutines style. For the first step command 'info mmcoros' was added, and now it can be used to display the list of running coroutines for each thread (mm_machine). See gdb/README.md for more. Signed-off-by: Roman Khapov <[email protected]> * machinarium-gdb.py: move out function to iterate coros All coroutines list of the current thread will be used in the next command, to find specified coroutine. This commit move out function to create coroutines list out of MMCoroutines command. Signed-off-by: Roman Khapov <[email protected]> * machinarium-gdb.py: add mmcoro command This command can be used to perform some gdb command on the context of the coroutine. It will be extremely helpful with debugging various problems in odyssey logic. Example: (gdb) mmcoro 3 0 info stack (gdb) mmcoro 3 0 frame apply 3 info locals Signed-off-by: Roman Khapov <[email protected]>
- Loading branch information