diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index b82e340aec2dae7d904b614ca50a0fe87ccf729a..8acf7e5ba6702c7c61a09750b2830a3522a52d06 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -835,8 +835,7 @@ void GdbEngine::commandTimeout()
             killIt = true;
         QByteArray msg = QByteArray::number(key);
         msg += ": " + cmd.command + " => ";
-        QTC_ASSERT(cmd.callbackName, /**/);
-        msg += cmd.callbackName;
+        msg += cmd.callbackName ? cmd.callbackName : "<unnamed callback>";
         showMessage(_(msg));
     }
     if (killIt) {