GuiUpdateMemoryView stuff
This commit is contained in:
parent
34203afb1c
commit
1d4637add9
|
@ -883,6 +883,11 @@ BRIDGE_IMPEXP void GuiUpdateDumpView()
|
|||
_gui_sendmessage(GUI_UPDATE_DUMP_VIEW, 0, 0);
|
||||
}
|
||||
|
||||
BRIDGE_IMPEXP void GuiUpdateMemoryView()
|
||||
{
|
||||
_gui_sendmessage(GUI_UPDATE_MEMORY_VIEW, 0, 0);
|
||||
}
|
||||
|
||||
BRIDGE_IMPEXP void GuiUpdateThreadView()
|
||||
{
|
||||
_gui_sendmessage(GUI_UPDATE_THREAD_VIEW, 0, 0);
|
||||
|
|
|
@ -634,7 +634,9 @@ typedef enum
|
|||
GUI_REPAINT_TABLE_VIEW, // param1=unused, param2=unused
|
||||
GUI_UPDATE_PATCHES, // param1=unused, param2=unused
|
||||
GUI_UPDATE_CALLSTACK, // param1=unused, param2=unused
|
||||
GUI_SYMBOL_REFRESH_CURRENT // param1=unused, param2=unused
|
||||
GUI_SYMBOL_REFRESH_CURRENT, // param1=unused, param2=unused
|
||||
GUI_UPDATE_MEMORY_VIEW // param1=unused, param2=unused
|
||||
|
||||
} GUIMSG;
|
||||
|
||||
//GUI structures
|
||||
|
@ -690,6 +692,7 @@ BRIDGE_IMPEXP void GuiReferenceSetSearchStartCol(int col);
|
|||
BRIDGE_IMPEXP void GuiStackDumpAt(duint addr, duint csp);
|
||||
BRIDGE_IMPEXP void GuiUpdateDumpView();
|
||||
BRIDGE_IMPEXP void GuiUpdateThreadView();
|
||||
BRIDGE_IMPEXP void GuiUpdateMemoryView();
|
||||
BRIDGE_IMPEXP void GuiAddRecentFile(const char* file);
|
||||
BRIDGE_IMPEXP void GuiSetLastException(unsigned int exception);
|
||||
BRIDGE_IMPEXP bool GuiGetDisassembly(duint addr, char* text);
|
||||
|
@ -708,6 +711,7 @@ BRIDGE_IMPEXP void GuiUpdateSideBar();
|
|||
BRIDGE_IMPEXP void GuiRepaintTableView();
|
||||
BRIDGE_IMPEXP void GuiUpdatePatches();
|
||||
BRIDGE_IMPEXP void GuiUpdateCallStack();
|
||||
BRIDGE_IMPEXP void GuiUpdateMemoryView();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<Optimization>Disabled</Optimization>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
|
|
|
@ -1684,6 +1684,8 @@ bool dbgsetpagerights(uint* addr, char* rights_string)
|
|||
if(VirtualProtectEx(fdProcessInfo->hProcess, (void*)*addr, PAGE_SIZE, protect, & old_protect) == 0)
|
||||
return false;
|
||||
|
||||
GuiUpdateMemoryView();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -2034,6 +2036,7 @@ bool dbgsetcmdline(char* cmd_line, cmdline_error_t* cmd_line_error)
|
|||
else
|
||||
{
|
||||
memupdatemap(fdProcessInfo->hProcess);
|
||||
GuiUpdateMemoryView();
|
||||
if(! memwrite(fdProcessInfo->hProcess, (void*) mem, new_command_line.Buffer, new_command_line.Length, & size))
|
||||
{
|
||||
cmd_line_error->addr = mem;
|
||||
|
|
|
@ -705,6 +705,7 @@ CMDRESULT cbDebugAlloc(int argc, char* argv[])
|
|||
varset("$lastalloc", mem, true);
|
||||
dbggetprivateusage(fdProcessInfo->hProcess, true);
|
||||
memupdatemap(fdProcessInfo->hProcess);
|
||||
GuiUpdateMemoryView();
|
||||
varset("$res", mem, false);
|
||||
return STATUS_CONTINUE;
|
||||
}
|
||||
|
|
|
@ -133,6 +133,7 @@
|
|||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<Optimization>Disabled</Optimization>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
|
|
|
@ -218,6 +218,11 @@ void Bridge::emitUpdateThreads()
|
|||
emit updateThreads();
|
||||
}
|
||||
|
||||
void Bridge::emitUpdateMemory()
|
||||
{
|
||||
emit updateMemory();
|
||||
}
|
||||
|
||||
void Bridge::emitAddRecentFile(QString file)
|
||||
{
|
||||
emit addRecentFile(file);
|
||||
|
@ -618,6 +623,12 @@ __declspec(dllexport) void* _gui_sendmessage(GUIMSG type, void* param1, void* pa
|
|||
}
|
||||
break;
|
||||
|
||||
case GUI_UPDATE_MEMORY_VIEW:
|
||||
{
|
||||
Bridge::getBridge()->emitUpdateMemory();
|
||||
}
|
||||
break;
|
||||
|
||||
case GUI_ADD_RECENT_FILE:
|
||||
{
|
||||
Bridge::getBridge()->emitAddRecentFile(QString(reinterpret_cast<const char*>(param1)));
|
||||
|
@ -756,6 +767,7 @@ __declspec(dllexport) void* _gui_sendmessage(GUIMSG type, void* param1, void* pa
|
|||
|
||||
default:
|
||||
{
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@ public:
|
|||
void emitStackDumpAt(uint_t va, uint_t csp);
|
||||
void emitUpdateDump();
|
||||
void emitUpdateThreads();
|
||||
void emitUpdateMemory();
|
||||
void emitAddRecentFile(QString file);
|
||||
void emitSetLastException(unsigned int exceptionCode);
|
||||
int emitMenuAddMenu(int hMenu, QString title);
|
||||
|
@ -115,6 +116,7 @@ signals:
|
|||
void stackDumpAt(uint_t va, uint_t csp);
|
||||
void updateDump();
|
||||
void updateThreads();
|
||||
void updateMemory();
|
||||
void addRecentFile(QString file);
|
||||
void setLastException(unsigned int exceptionCode);
|
||||
void menuAddMenu(int hMenu, QString title);
|
||||
|
|
|
@ -17,6 +17,7 @@ MemoryMapView::MemoryMapView(StdTable* parent) : StdTable(parent)
|
|||
addColumnAt(8 + charwidth * 5, "APROT", false, "Allocation Protection"); //allocation protection
|
||||
addColumnAt(100, "", false);
|
||||
|
||||
connect(Bridge::getBridge(), SIGNAL(updateMemory()), this, SLOT(refreshMap()));
|
||||
connect(Bridge::getBridge(), SIGNAL(dbgStateChanged(DBGSTATE)), this, SLOT(stateChangedSlot(DBGSTATE)));
|
||||
connect(this, SIGNAL(contextMenuSignal(QPoint)), this, SLOT(contextMenuSlot(QPoint)));
|
||||
|
||||
|
|
Loading…
Reference in New Issue