forked from qt-creator/qt-creator
Add CLang support to DisassemblerViewAgent
This commit is contained in:
@@ -416,6 +416,8 @@ quint64 DisassemblerViewAgent::addressFromDisassemblyLine(const QString &line)
|
|||||||
if (pos < 0)
|
if (pos < 0)
|
||||||
return 0;
|
return 0;
|
||||||
QString addressS = line.left(pos);
|
QString addressS = line.left(pos);
|
||||||
|
if (addressS.endsWith(':')) // clang
|
||||||
|
addressS.chop(1);
|
||||||
if (addressS.startsWith(QLatin1String("0x")))
|
if (addressS.startsWith(QLatin1String("0x")))
|
||||||
addressS.remove(0, 2);
|
addressS.remove(0, 2);
|
||||||
bool ok;
|
bool ok;
|
||||||
|
|||||||
Reference in New Issue
Block a user