Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Why not? To see a task switch, try stepping through __schedule, specifically right as it "returns" to the new task. Otherwise, try setting breakpoints on various system calls to see what happens when a process calls them. Commented Oct 9, 2014 at 6:44
  • Thanks Jonathon, but can I break when the program is still running in userspace ? Actually I am more interested in observe the registers when the process is running in user space. Commented Oct 9, 2014 at 9:47
  • @JeffLi did you managed to debug a user space program in qemu? I'm trying to do the same but can not figure out how Commented Aug 9, 2015 at 14:39