Debugger: Fix setting of breakpoint by function name with GDB

Change-Id: Ib6194f9acc575ee089f11da6d1f3689eb7dee9af
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-01-13 15:05:13 +01:00
parent 421d428e34
commit f2c34e51e9

View File

@@ -2073,7 +2073,7 @@ QString GdbEngine::breakpointLocation(const BreakpointParameters &data)
if (data.type == BreakpointAtMain)
return mainFunction();
if (data.type == BreakpointByFunction)
return '"' + data.functionName + '"';
return "--function \"" + data.functionName + '"';
if (data.type == BreakpointByAddress)
return addressSpec(data.address);