forked from qt-creator/qt-creator
Debugger: Allow for custom Disassembler highlighters.
Remove hardcoded highlighter, give DisassemblerViewAgent a mimetype property. Default to a generic Qt Creator Assembler mimetype. Acked-by: hjk Rubber-stamped-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -73,7 +73,7 @@ struct DisassemblerViewAgentPrivate;
|
||||
class DisassemblerViewAgent : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QString mimeType READ mimeType WRITE setMimeType)
|
||||
public:
|
||||
// Called from Gui
|
||||
explicit DisassemblerViewAgent(DebuggerEngine *engine);
|
||||
@@ -83,6 +83,11 @@ public:
|
||||
const StackFrame &frame() const;
|
||||
void resetLocation();
|
||||
Q_SLOT void setContents(const QString &contents);
|
||||
|
||||
// Mimetype: "text/a-asm" or some specialized architecture
|
||||
QString mimeType() const;
|
||||
Q_SLOT void setMimeType(const QString &mt);
|
||||
|
||||
QString address() const;
|
||||
bool contentsCoversAddress(const QString &contents) const;
|
||||
void cleanup();
|
||||
|
||||
Reference in New Issue
Block a user