Commit 3f181280 authored by David Schulz's avatar David Schulz

cdbext: adjust GDMI item names according to the ...

change 525c33f9

Change-Id: I778ef6893de24748d1d515e43937368cbe033683
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent e696b6af
......@@ -49,17 +49,17 @@ std::wstring StackFrame::fileName() const
void StackFrame::formatGDBMI(std::ostream &str, unsigned level) const
{
str << "frame={level=\"" << level << "\",addr=\"0x"
str << "frame={level=\"" << level << "\",address=\"0x"
<< std::hex << address << std::dec << '"';
if (!function.empty()) {
// Split into module/function
const std::wstring::size_type exclPos = function.find('!');
if (exclPos == std::wstring::npos) {
str << ",func=\"" << gdbmiWStringFormat(function) << '"';
str << ",function=\"" << gdbmiWStringFormat(function) << '"';
} else {
const std::wstring module = function.substr(0, exclPos);
const std::wstring fn = function.substr(exclPos + 1, function.size() - exclPos - 1);
str << ",func=\"" << gdbmiWStringFormat(fn)
str << ",function=\"" << gdbmiWStringFormat(fn)
<< "\",from=\"" << gdbmiWStringFormat(module) << '"';
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment