This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Multi-thread and gdb stub


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]