diff --git a/src/plugins/debugger/gdbmi.cpp b/src/plugins/debugger/gdbmi.cpp
index abd84a4665c52fde5033632497fb26417935b737..e7d0434d8fd8381244b3ec3ca5caef240ae63761 100644
--- a/src/plugins/debugger/gdbmi.cpp
+++ b/src/plugins/debugger/gdbmi.cpp
@@ -269,7 +269,7 @@ void GdbMi::fromString(const QByteArray &ba)
     parseResultOrValue(from, to);
 }
 
-GdbMi GdbMi::findChild(const QByteArray &name) const
+GdbMi GdbMi::findChild(const char *name) const
 {
     for (int i = 0; i < m_children.size(); ++i)
         if (m_children.at(i).m_name == name)
diff --git a/src/plugins/debugger/gdbmi.h b/src/plugins/debugger/gdbmi.h
index b47ad74b2082106afec8a6cd69511054bf32c87a..311bef2a7ce3559dd24511341c0287da2d07d0c5 100644
--- a/src/plugins/debugger/gdbmi.h
+++ b/src/plugins/debugger/gdbmi.h
@@ -121,7 +121,7 @@ public:
 
     const GdbMi &childAt(int index) const { return m_children[index]; } 
     GdbMi &childAt(int index) { return m_children[index]; }
-    GdbMi findChild(const QByteArray &name) const;
+    GdbMi findChild(const char *name) const;
 
     QByteArray toString(bool multiline = false, int indent = 0) const;
     void fromString(const QByteArray &str);