OSDN Git Service

debugger: Add support for threadnames in core file debugging.
authorChristoph Mathys <eraserix@gmail.com>
Tue, 13 Sep 2011 11:14:25 +0000 (13:14 +0200)
committerhjk <qthjk@ovi.com>
Tue, 13 Sep 2011 11:18:00 +0000 (13:18 +0200)
The gdb engine now calls thread-info instead of thread-list-ids
when debugging core files and fall back to thread-list-ids if
thread-info does not work. This is now the same behaviour as if
qtcreator is attached to a running process.

Change-Id: I09b8e60fab329d9b65c501e18cd3fd9ceb22f506
Merge-request: 2192
Reviewed-by: hjk <qtc-committer@nokia.com>
Reviewed-on: http://codereview.qt-project.org/4763
Reviewed-by: hjk <qthjk@ovi.com>
src/plugins/debugger/gdb/pythongdbengine.cpp

index e4e9a61..2fd2475 100644 (file)
@@ -208,7 +208,7 @@ void GdbEngine::updateAllPython()
     if (m_gdbAdapter->isCodaAdapter())
         m_gdbAdapter->codaReloadThreads();
     else
-        postCommand("-thread-list-ids", CB(handleThreadListIds), 0);
+        postCommand("-thread-info", CB(handleThreadInfo), 0);
     reloadRegisters();
     updateLocals();
 }