diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp
index 2a88a318acf269ca1a8457150923f32feabd7ffd..c2c18dec377a78eee63a68d55dab30f4889cd0e0 100644
--- a/src/plugins/debugger/gdbengine.cpp
+++ b/src/plugins/debugger/gdbengine.cpp
@@ -4237,7 +4237,7 @@ QString GdbEngine::dumperLibraryName() const
 #if defined(Q_OS_WIN)
     return q->m_buildDir + "/qtc-gdbmacros/debug/gdbmacros.dll";
 #elif defined(Q_OS_MAC)
-    retirn q->m_buildDir + "/qtc-gdbmacros/libgdbmacros.dylib";
+    return q->m_buildDir + "/qtc-gdbmacros/libgdbmacros.dylib";
 #else // generic UNIX
     return q->m_buildDir + "/qtc-gdbmacros/libgdbmacros.so";
 #endif