forked from qt-creator/qt-creator
		
	Debugger: Fix memory display
- Watchwindow: Do not open Address dialog if menu is canceled (act = 0 matching the unitialized unknown memory action) - Actually pass the address of the dialog to the agent - Make the "Open Memory editor..." action always visible to be able to look at const char *x pointing at y - Improve the address dialog with checking and dialog button box - Explicitly pass the quint64 around - Translate & purge
This commit is contained in:
		@@ -75,7 +75,7 @@ MemoryViewAgent::MemoryViewAgent(DebuggerManager *manager, const QString &addr)
 | 
			
		||||
    : QObject(manager), m_engine(manager->currentEngine())
 | 
			
		||||
{
 | 
			
		||||
    bool ok = true;
 | 
			
		||||
    init(addr.toUInt(&ok, 0));
 | 
			
		||||
    init(addr.toULongLong(&ok, 0));
 | 
			
		||||
    //qDebug() <<  " ADDRESS: " << addr <<  addr.toUInt(&ok, 0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -87,7 +87,7 @@ MemoryViewAgent::~MemoryViewAgent()
 | 
			
		||||
void MemoryViewAgent::init(quint64 addr) 
 | 
			
		||||
{
 | 
			
		||||
    Core::EditorManager *editorManager = Core::EditorManager::instance();
 | 
			
		||||
    QString titlePattern = "Memory $";
 | 
			
		||||
    QString titlePattern = tr("Memory $");
 | 
			
		||||
    m_editor = editorManager->openEditorWithContents(
 | 
			
		||||
        Core::Constants::K_DEFAULT_BINARY_EDITOR,
 | 
			
		||||
        &titlePattern);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user