summaryrefslogtreecommitdiff
path: root/src/plugins/debugger
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/disassembleragent.cpp20
-rw-r--r--src/plugins/debugger/disassembleragent.h1
2 files changed, 1 insertions, 20 deletions
diff --git a/src/plugins/debugger/disassembleragent.cpp b/src/plugins/debugger/disassembleragent.cpp
index b0bbd4771f..54fb20cdd9 100644
--- a/src/plugins/debugger/disassembleragent.cpp
+++ b/src/plugins/debugger/disassembleragent.cpp
@@ -107,8 +107,6 @@ public:
QList<ITextMark *> breakpointMarks;
QList<CacheEntry> cache;
QString mimeType;
- bool tryMixedInitialized;
- bool tryMixed;
bool resetLocationScheduled;
};
@@ -116,8 +114,6 @@ DisassemblerAgentPrivate::DisassemblerAgentPrivate()
: document(0),
locationMark(0),
mimeType(_("text/x-qtcreator-generic-asm")),
- tryMixedInitialized(false),
- tryMixed(true),
resetLocationScheduled(false)
{
locationMark.setIcon(debuggerCore()->locationMarkIcon());
@@ -201,20 +197,6 @@ const Location &DisassemblerAgent::location() const
return d->location;
}
-bool DisassemblerAgent::isMixed() const
-{
- if (!d->tryMixedInitialized) {
- if (d->engine->startParameters().toolChainAbi.os() == ProjectExplorer::Abi::MacOS)
- d->tryMixed = false;
- d->tryMixedInitialized = true;
- }
-
- return d->tryMixed
- && d->location.lineNumber() > 0
- && !d->location.functionName().isEmpty()
- && d->location.functionName() != _("??");
-}
-
void DisassemblerAgent::reload()
{
d->cache.clear();
@@ -228,7 +210,7 @@ void DisassemblerAgent::setLocation(const Location &loc)
if (index != -1) {
// Refresh when not displaying a function and there is not sufficient
// context left past the address.
- if (!isMixed() && d->cache.at(index).first.endAddress - loc.address() < 24) {
+ if (d->cache.at(index).first.endAddress - loc.address() < 24) {
index = -1;
d->cache.removeAt(index);
}
diff --git a/src/plugins/debugger/disassembleragent.h b/src/plugins/debugger/disassembleragent.h
index 414de5941f..1a2f8e600c 100644
--- a/src/plugins/debugger/disassembleragent.h
+++ b/src/plugins/debugger/disassembleragent.h
@@ -65,7 +65,6 @@ public:
quint64 address() const;
bool contentsCoversAddress(const QString &contents) const;
void cleanup();
- bool isMixed() const;
// Force reload, e.g. after changing the output flavour.
void reload();