BRIDGE: added GuiUpdateBreakpointsView()
DBG: call GuiUpdateBreakpointsView()
This commit is contained in:
parent
7211f1d137
commit
47607da8e4
|
@ -389,6 +389,7 @@ BRIDGE_IMPEXP void GuiUpdateAllViews()
|
|||
{
|
||||
GuiUpdateRegisterView();
|
||||
GuiUpdateDisassemblyView();
|
||||
GuiUpdateBreakpointsView();
|
||||
}
|
||||
|
||||
BRIDGE_IMPEXP void GuiUpdateRegisterView()
|
||||
|
@ -401,6 +402,11 @@ BRIDGE_IMPEXP void GuiUpdateDisassemblyView()
|
|||
_gui_sendmessage(GUI_UPDATE_DISASSEMBLY_VIEW, 0, 0);
|
||||
}
|
||||
|
||||
BRIDGE_IMPEXP void GuiUpdateBreakpointsView()
|
||||
{
|
||||
_gui_sendmessage(GUI_UPDATE_BREAKPOINTS_VIEW, 0, 0);
|
||||
}
|
||||
|
||||
//Main
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
|
|
|
@ -214,6 +214,7 @@ BRIDGE_IMPEXP void GuiLogClear();
|
|||
BRIDGE_IMPEXP void GuiUpdateAllViews();
|
||||
BRIDGE_IMPEXP void GuiUpdateRegisterView();
|
||||
BRIDGE_IMPEXP void GuiUpdateDisassemblyView();
|
||||
BRIDGE_IMPEXP void GuiUpdateBreakpointsView();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@ void dbinit()
|
|||
dprintf("SQL Error: %s\n", sqllasterror());
|
||||
dbsave();
|
||||
bpenumall(0); //update breakpoint list
|
||||
GuiUpdateBreakpointsView();
|
||||
}
|
||||
|
||||
bool dbload()
|
||||
|
|
|
@ -50,6 +50,7 @@ bool bpnew(uint addr, bool enabled, bool singleshoot, short oldbytes, BP_TYPE ty
|
|||
}
|
||||
bpenumall(0); //update breakpoint list
|
||||
dbsave();
|
||||
GuiUpdateBreakpointsView();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -153,6 +154,7 @@ bool bpdel(uint addr, BP_TYPE type)
|
|||
}
|
||||
bpenumall(0); //update breakpoint list
|
||||
dbsave();
|
||||
GuiUpdateBreakpointsView();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -174,6 +176,7 @@ bool bpenable(uint addr, BP_TYPE type, bool enable)
|
|||
}
|
||||
bpenumall(0); //update breakpoint list
|
||||
dbsave();
|
||||
GuiUpdateBreakpointsView();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -196,6 +199,7 @@ bool bpsetname(uint addr, BP_TYPE type, const char* name)
|
|||
}
|
||||
bpenumall(0); //update breakpoint list
|
||||
dbsave();
|
||||
GuiUpdateBreakpointsView();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -354,9 +354,7 @@ static void cbCreateProcess(CREATE_PROCESS_DEBUG_INFO* CreateProcessInfo)
|
|||
char modname[256]="";
|
||||
if(modnamefromaddr((uint)base, modname, true))
|
||||
bpenumall(cbSetModuleBreakpoints, modname);
|
||||
|
||||
//Set entry breakpoint
|
||||
if(!bFileIsDll)
|
||||
if(!bFileIsDll) //Set entry breakpoint
|
||||
{
|
||||
char command[256]="";
|
||||
sprintf(command, "bp "fhex",\"entry breakpoint\",ss", CreateProcessInfo->lpStartAddress);
|
||||
|
@ -364,6 +362,7 @@ static void cbCreateProcess(CREATE_PROCESS_DEBUG_INFO* CreateProcessInfo)
|
|||
pDebuggedBase=(uint)CreateProcessInfo->lpBaseOfImage;
|
||||
//SetBPX((ULONG_PTR)CreateProcessInfo->lpStartAddress, UE_SINGLESHOOT, (void*)cbEntryBreakpoint);
|
||||
}
|
||||
GuiUpdateBreakpointsView();
|
||||
|
||||
//call plugin callback
|
||||
PLUG_CB_CREATEPROCESS callbackInfo;
|
||||
|
@ -438,8 +437,7 @@ static void cbLoadDll(LOAD_DLL_DEBUG_INFO* LoadDll)
|
|||
char modname[256]="";
|
||||
if(modnamefromaddr((uint)base, modname, true))
|
||||
bpenumall(cbSetModuleBreakpoints, modname);
|
||||
|
||||
if(bFileIsDll and !stricmp(DLLDebugFileName, szFileName))
|
||||
if(bFileIsDll and !stricmp(DLLDebugFileName, szFileName)) //Set entry breakpoint
|
||||
{
|
||||
pDebuggedBase=(uint)base;
|
||||
char command[256]="";
|
||||
|
@ -447,6 +445,7 @@ static void cbLoadDll(LOAD_DLL_DEBUG_INFO* LoadDll)
|
|||
cmddirectexec(dbggetcommandlist(), command);
|
||||
//SetBPX(pDebuggedBase+pDebuggedEntry, UE_SINGLESHOOT, (void*)cbEntryBreakpoint);
|
||||
}
|
||||
GuiUpdateBreakpointsView();
|
||||
|
||||
//TODO: plugin callback
|
||||
PLUG_CB_LOADDLL callbackInfo;
|
||||
|
|
Loading…
Reference in New Issue