Hide blend mode button when debug with lldb-mi
fix: Can't auto jump to the current line in the cpu info dialog when debug with lldb-mi
This commit is contained in:
parent
9a8751c7c8
commit
95fff8bea7
|
@ -641,6 +641,11 @@ void Debugger::setUseDebugServer(bool newUseDebugServer)
|
|||
mUseDebugServer = newUseDebugServer;
|
||||
}
|
||||
|
||||
bool Debugger::supportDisassemlyBlendMode()
|
||||
{
|
||||
return mDebuggerType == DebuggerType::GDB;
|
||||
}
|
||||
|
||||
bool Debugger::debugInfosUsingUTF8() const
|
||||
{
|
||||
return mDebugInfosUsingUTF8;
|
||||
|
|
|
@ -396,7 +396,7 @@ public:
|
|||
|
||||
bool useDebugServer() const;
|
||||
void setUseDebugServer(bool newUseDebugServer);
|
||||
|
||||
bool supportDisassemlyBlendMode();
|
||||
signals:
|
||||
void evalValueReady(const QString& s);
|
||||
void memoryExamineReady(const QStringList& s);
|
||||
|
|
|
@ -567,7 +567,7 @@ void GDBMIDebuggerClient::handleDisassembly(const QList<GDBMIResultParser::Parse
|
|||
QString offset = obj["offset"].value();
|
||||
qulonglong addrVal = addr.toULongLong(&ok, 16);
|
||||
if (addrVal == mCurrentAddress) {
|
||||
line = "==> "+addr+ " " + inst;
|
||||
line = "=> "+addr+ " " + inst;
|
||||
} else {
|
||||
line = " "+addr+ " " + inst;
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ void CPUDialog::setDisassembly(const QString& file, const QString& funcName,cons
|
|||
int activeLine = -1;
|
||||
for (int i=0;i<lines.size();i++) {
|
||||
QString line = lines[i];
|
||||
if (line.startsWith("=>")) {
|
||||
if (line.startsWith("=>") || line.startsWith("->")) {
|
||||
activeLine = i;
|
||||
}
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ void CPUDialog::sendSyntaxCommand()
|
|||
|
||||
void CPUDialog::updateSyntaxer()
|
||||
{
|
||||
if (pSettings->debugger().blendMode()) {
|
||||
if (pSettings->debugger().blendMode() && pMainWindow->debugger()->supportDisassemlyBlendMode()) {
|
||||
if (pSettings->debugger().useIntelStyle())
|
||||
ui->txtCode->setSyntaxer(syntaxerManager.getSyntaxer(QSynedit::ProgrammingLanguage::MixedAssembly));
|
||||
else
|
||||
|
@ -240,6 +240,7 @@ void CPUDialog::showEvent(QShowEvent *event)
|
|||
sizes[1] = std::max(0,totalSize - sizes[0]);
|
||||
ui->splitter->setSizes(sizes);
|
||||
}
|
||||
ui->chkBlendMode->setVisible(pMainWindow->debugger()->supportDisassemlyBlendMode());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -143,19 +143,6 @@
|
|||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rdATT">
|
||||
<property name="text">
|
||||
|
@ -183,6 +170,19 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -238,9 +238,7 @@
|
|||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="../icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
<buttongroups>
|
||||
<buttongroup name="buttonGroup"/>
|
||||
|
|
Loading…
Reference in New Issue