Multi-thread and gdb stub

Michael Qiu fallwind@gmail.com
Mon Sep 8 14:19:00 GMT 2008


Hi,
Here are 2 questions about the gdb stub and multi-thread:
1. How to remote debug the user spaces software excuting in
multi-thread context?  For instance, the stub is linking with the os
(uc/os ii) and application code, and the stub utilize the os to save
and load context when an break exception happens.
Where should I put the first "breakpoint" subroutine? Before the OS
start(it means before the multi-thread is started)?
2. How to debug the os code?  Just make sure gdb will not call any os
relative code, the gdb will not break itself, right? Is there any
other should pay attention to?


Best regards
Michael Qiu



More information about the Gdb mailing list