1. 16 Jun, 2009 5 commits
  2. 04 Jun, 2009 1 commit
    • Nathan Froyd's avatar
      fix gdbstub support for multiple threads in usermode, v3 · 1e9fa730
      Nathan Froyd authored
      When debugging multi-threaded programs, QEMU's gdb stub would report the
      correct number of threads (the qfThreadInfo and qsThreadInfo packets).
      However, the stub was unable to actually switch between threads (the T
      packet), since it would report every thread except the first as being
      dead.  Furthermore, the stub relied upon cpu_index as a reliable means
      of assigning IDs to the threads.  This was a bad idea; if you have this
      sequence of events:
      
      initial thread created
      new thread #1
      new thread #2
      thread #1 exits
      new thread #3
      
      thread #3 will have the same cpu_index as thread #1, which would confuse
      GDB.  (This problem is partly due to the remote protocol not having a
      good way to send thread creation/destruction events.)
      
      We fix this by using the host thread ID for the identifier passed to GDB
      when debugging a multi-threaded userspace program.  The thread ID might
      wrap, but the same sort of problems with wrapping thread IDs would come
      up with debugging programs natively, so this doesn't represent a
      problem.
      Signed-off-by: default avatarNathan Froyd <froydnj@codesourcery.com>
      1e9fa730
  3. 26 May, 2009 2 commits
  4. 19 May, 2009 2 commits
  5. 15 May, 2009 2 commits
  6. 13 May, 2009 1 commit
  7. 04 May, 2009 1 commit
  8. 20 Apr, 2009 3 commits
  9. 19 Apr, 2009 1 commit
  10. 18 Apr, 2009 1 commit
  11. 17 Apr, 2009 1 commit
  12. 16 Apr, 2009 2 commits
  13. 15 Apr, 2009 7 commits
  14. 09 Apr, 2009 1 commit
  15. 08 Apr, 2009 2 commits
  16. 07 Apr, 2009 1 commit
  17. 05 Apr, 2009 1 commit
  18. 07 Mar, 2009 2 commits
  19. 28 Feb, 2009 1 commit
  20. 09 Feb, 2009 1 commit
  21. 03 Feb, 2009 2 commits