Debugger: Fix pending path handling

Change-Id: Ie4ef081ca6708144c8a739b0d9cf63b07ad1d913
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Artem Sokolovskii
2024-10-01 16:35:49 +02:00
parent e326dcd787
commit b701b1d547

View File

@@ -272,6 +272,7 @@ void BreakpointParameters::updateFromGdbOutput(const GdbMi &bkpt, const Utils::F
QTC_ASSERT(bkpt.isValid(), return);
QString originalLocation;
QString reportedLocation;
QString file;
QString fullName;
@@ -308,7 +309,7 @@ void BreakpointParameters::updateFromGdbOutput(const GdbMi &bkpt, const Utils::F
// Any content here would be interesting only if we did accept
// spontaneously appearing breakpoints (user using gdb commands).
if (file.isEmpty())
file = child.data();
reportedLocation = child.data();
pending = true;
} else if (child.hasName("at")) {
// Happens with gdb 6.4 symbianelf.
@@ -371,6 +372,9 @@ void BreakpointParameters::updateFromGdbOutput(const GdbMi &bkpt, const Utils::F
if (!name.isEmpty())
fileName = fileRoot.withNewPath(name);
if (fileName.isEmpty())
updateLocation(reportedLocation);
if (fileName.isEmpty())
updateLocation(originalLocation);
}