mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@7611 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
675c8b6ad2
commit
5738dfde9d
2 changed files with 5 additions and 14 deletions
|
|
@ -302,18 +302,6 @@ Pdb::Pdb()
|
|||
Load(callback(this, &Pdb::SerializeSession), ss);
|
||||
}
|
||||
|
||||
void Pdb::CleanupOnExit()
|
||||
{
|
||||
if(hProcess != INVALID_HANDLE_VALUE) {
|
||||
while(threads.GetCount())
|
||||
RemoveThread(threads.GetKey(0));
|
||||
UnloadModuleSymbols();
|
||||
SymCleanup(hProcess);
|
||||
CloseHandle(hProcess);
|
||||
hProcess = INVALID_HANDLE_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
void Pdb::CopyStack()
|
||||
{
|
||||
String s;
|
||||
|
|
@ -340,7 +328,11 @@ Pdb::~Pdb()
|
|||
if(hProcess != INVALID_HANDLE_VALUE) {
|
||||
DebugActiveProcessStop(processid);
|
||||
TerminateProcess(hProcess, 0);
|
||||
CleanupOnExit();
|
||||
while(threads.GetCount())
|
||||
RemoveThread(threads.GetKey(0)); // To CloseHandle
|
||||
UnloadModuleSymbols();
|
||||
SymCleanup(hProcess);
|
||||
CloseHandle(hProcess);
|
||||
}
|
||||
StoreToGlobal(*this, CONFIGNAME);
|
||||
IdeRemoveBottom(*this);
|
||||
|
|
|
|||
|
|
@ -254,7 +254,6 @@ struct Pdb : Debugger, ParentCtrl {
|
|||
void LoadModuleInfo();
|
||||
int FindModuleIndex(adr_t base);
|
||||
void UnloadModuleSymbols();
|
||||
void CleanupOnExit();
|
||||
void AddThread(dword dwThreadId, HANDLE hThread);
|
||||
void RemoveThread(dword dwThreadId);
|
||||
void Lock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue