Commit 7a0e15b1 authored by Tobias Hunger's avatar Tobias Hunger

Fix spelling in dissassemble method

Krazy was complaining about this.

Reviewed-by: Friedemann Kleint
parent cf3a418c
......@@ -192,17 +192,17 @@ void DisassemblerOutputParser::parse(const QStringList &l)
}
}
bool dissassemble(CdbCore::CoreEngine *engine,
ULONG64 offset,
unsigned long beforeLines,
unsigned long afterLines,
QTextStream &str,
QString *errorMessage)
bool disassemble(CdbCore::CoreEngine *engine,
ULONG64 offset,
unsigned long beforeLines,
unsigned long afterLines,
QTextStream &str,
QString *errorMessage)
{
if (debugCDB)
qDebug() << Q_FUNC_INFO << offset;
QString lines;
if (!engine->dissassemble(offset, beforeLines, afterLines, &lines, errorMessage))
if (!engine->disassemble(offset, beforeLines, afterLines, &lines, errorMessage))
return false;
DisassemblerOutputParser parser(str);
parser.parse(lines.split(QLatin1Char('\n')));
......
......@@ -54,12 +54,12 @@ Registers getRegisters(CIDebugControl *ctl,
QString *errorMessage,
int base = 10 /* 16 for hex, etc */);
bool dissassemble(CdbCore::CoreEngine *engine,
ULONG64 offset,
unsigned long beforeLines,
unsigned long afterLines,
QTextStream &str,
QString *errorMessage);
bool disassemble(CdbCore::CoreEngine *engine,
ULONG64 offset,
unsigned long beforeLines,
unsigned long afterLines,
QTextStream &str,
QString *errorMessage);
} // namespace Internal
} // namespace Debugger
......
......@@ -1241,7 +1241,7 @@ void CdbEngine::fetchDisassembler(DisassemblerViewAgent *agent)
}
QString disassembly;
QApplication::setOverrideCursor(Qt::WaitCursor);
const bool ok = dissassemble(m_d, address, ContextLines, ContextLines, QTextStream(&disassembly), &errorMessage);
const bool ok = disassemble(m_d, address, ContextLines, ContextLines, QTextStream(&disassembly), &errorMessage);
QApplication::restoreOverrideCursor();
if (ok) {
agent->setContents(disassembly);
......
......@@ -844,11 +844,11 @@ bool CoreEngine::writeToDebuggee(const QByteArray &buffer, quint64 address, QStr
return true;
}
bool CoreEngine::dissassemble(ULONG64 offset,
unsigned long beforeLines,
unsigned long afterLines,
QString *target,
QString *errorMessage)
bool CoreEngine::disassemble(ULONG64 offset,
unsigned long beforeLines,
unsigned long afterLines,
QString *target,
QString *errorMessage)
{
const ULONG flags = DEBUG_DISASM_MATCHING_SYMBOLS|DEBUG_DISASM_SOURCE_LINE_NUMBER|DEBUG_DISASM_SOURCE_FILE_NAME;
// Catch the output by temporarily setting another handler.
......
......@@ -147,8 +147,8 @@ public:
bool createDebuggeeAscIIString(const QString &s, ULONG64 *address, QString *errorMessage);
bool writeToDebuggee(const QByteArray &buffer, quint64 address, QString *errorMessage);
// Write to debuggee memory in chunks
bool dissassemble(ULONG64 offset, unsigned long beforeLines, unsigned long afterLines,
QString *target, QString *errorMessage);
bool disassemble(ULONG64 offset, unsigned long beforeLines, unsigned long afterLines,
QString *target, QString *errorMessage);
quint64 getSourceLineAddress(const QString &file, int line, QString *errorMessage) const;
......
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