forked from qt-creator/qt-creator
cdbext: adjust GDMI item names according to the ...
change 525c33f999
Change-Id: I778ef6893de24748d1d515e43937368cbe033683
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -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) << '"';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user