作者 主題: 請問關於gdb下無法debug multi-thread的問題  (閱讀 4513 次)

0 會員 與 1 訪客 正在閱讀本文。

asrada

  • 可愛的小學生
  • *
  • 文章數: 2
    • 檢視個人資料
請問各位高手~

最近在試gdb時 小弟我發現 用info threads沒有回應(我程式中有兩個threads)

翻了一下說明文件 看到:

Warning:
These facilities are not yet available on every gdb configuration
where the operating system supports threads.
If your gdb does not support threads,
these commands have no effect.
For example, a system without thread
support shows no output from ‘info threads’,
and always rejects the thread command, like this:

(gdb) info threads
(gdb) thread 1
Thread ID 1 not known. Use the "info threads" command to
see the IDs of currently known threads.

所以看起來似乎是我的gdb沒有將支援multi-threads 功能打開?
可是我又找不到gdb的configure file...
請問有人有遇過和我一樣的狀況嗎?
謝謝^^