• R/O
  • HTTP
  • SSH
  • HTTPS

qt-creator-jp: コミット

Qt Creator 日本語化プロジェクトのgitリポジトリです。
git://labs.trolltech.com/creator をcloneして
ひとまず1.0.0-jpブランチを作成して作業していきます。


コミットメタ情報

リビジョン35218bbe20bafe22334a9b11ea01417cd078b887 (tree)
日時2009-04-21 23:13:13
作者con <qtc-committer@noki...>
コミッターcon

ログメッセージ

Add missing type information into gdb calls.

The missing type information lead to non-relocatable debugging helpers
on the Mac.

Reviewed-by: Oswald Buddenhagen

変更サマリ

差分

--- a/src/plugins/debugger/gdbengine.cpp
+++ b/src/plugins/debugger/gdbengine.cpp
@@ -3145,7 +3145,7 @@ void GdbEngine::runDebuggingHelper(const WatchData &data0, bool dumpChildren)
31453145 sendWatchParameters(params);
31463146
31473147 QString cmd ="call "
3148- + QString("qDumpObjectData440(")
3148+ + QString("(void*)qDumpObjectData440(")
31493149 + QString::number(protocol)
31503150 + ',' + "%1+1" // placeholder for token
31513151 + ',' + addr
@@ -3441,7 +3441,7 @@ void GdbEngine::sendWatchParameters(const QByteArray &params0)
34413441 QByteArray params = params0;
34423442 params.append('\0');
34433443 char buf[50];
3444- sprintf(buf, "set {char[%d]} qDumpInBuffer = {", params.size());
3444+ sprintf(buf, "set {char[%d]} &qDumpInBuffer = {", params.size());
34453445 QByteArray encoded;
34463446 encoded.append(buf);
34473447 for (int i = 0; i != params.size(); ++i) {
@@ -4179,14 +4179,14 @@ void GdbEngine::tryLoadDebuggingHelpers()
41794179 sendCommand("sharedlibrary " + dotEscape(lib));
41804180 #endif
41814181 // retreive list of dumpable classes
4182- sendCommand("call qDumpObjectData440(1,%1+1,0,0,0,0,0,0)");
4182+ sendCommand("call (void*)qDumpObjectData440(1,%1+1,0,0,0,0,0,0)");
41834183 sendCommand("p (char*)&qDumpOutBuffer", GdbQueryDebuggingHelper);
41844184 }
41854185
41864186 void GdbEngine::recheckDebuggingHelperAvailability()
41874187 {
41884188 // retreive list of dumpable classes
4189- sendCommand("call qDumpObjectData440(1,%1+1,0,0,0,0,0,0)");
4189+ sendCommand("call (void*)qDumpObjectData440(1,%1+1,0,0,0,0,0,0)");
41904190 sendCommand("p (char*)&qDumpOutBuffer", GdbQueryDebuggingHelper);
41914191 }
41924192
旧リポジトリブラウザで表示