diff options
author | Eike Ziller <[email protected]> | 2020-09-18 13:05:37 +0200 |
---|---|---|
committer | Eike Ziller <[email protected]> | 2020-09-18 14:41:20 +0000 |
commit | 2a70bc1d0983b9c26c3db513e37410bcabc73d90 (patch) | |
tree | db428e7b7be3a2e7b50afd7750b9ae72dc5c0e1b /src/plugins/debugger/disassemblerlines.cpp | |
parent | 3a602e8338f8fe0cc38092aa65cdfcc4d5c78758 (diff) |
Debugger: Fix build with Qt6
QStringRef gone.
ViewOptions changed.
MetaType register stream operators automatically.
Task-number: QTCREATORBUG-24098
Change-Id: Ibf98561af951aa5fc4ec483d18dafeaad02e07c3
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/disassemblerlines.cpp')
-rw-r--r-- | src/plugins/debugger/disassemblerlines.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/disassemblerlines.cpp b/src/plugins/debugger/disassemblerlines.cpp index 60665fa5e45..cd565518374 100644 --- a/src/plugins/debugger/disassemblerlines.cpp +++ b/src/plugins/debugger/disassemblerlines.cpp @@ -46,7 +46,7 @@ void DisassemblerLine::fromString(const QString &unparsed) // Mac gdb has an overflow reporting 64bit addresses causing the instruction // to follow the last digit "0x000000013fff4810mov 1,1". Truncate here. - if (pos > 19 && unparsed.midRef(3, 16).toULongLong()) + if (pos > 19 && unparsed.mid(3, 16).toULongLong()) pos = 19; QString addr = unparsed.left(pos); @@ -190,7 +190,7 @@ void DisassemblerLines::appendUnparsed(const QString &unparsed) } dl.address = address.left(pos1 - 1).toULongLong(nullptr, 0); dl.function = m_lastFunction; - dl.offset = address.midRef(pos2).toUInt(); + dl.offset = address.mid(pos2).toUInt(); } else { // Plain data like "0x0000cd64:\tadd\tlr, pc, lr\n" dl.address = address.toULongLong(nullptr, 0); |