This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Multi-thread and gdb stub
- From: "Michael Qiu" <fallwind at gmail dot com>
- To: gdb at sourceware dot org
- Date: Mon, 8 Sep 2008 22:18:40 +0800
- Subject: 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