ide: Pdb dll modules info

git-svn-id: svn://ultimatepp.org/upp/trunk@14308 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-04-14 07:46:58 +00:00
parent d99c9d313f
commit a8e420e8cb
2 changed files with 11 additions and 0 deletions

View file

@ -90,6 +90,7 @@ void Pdb::DebugBar(Bar& bar)
bar.Add(b, "Copy backtrace", THISBACK(CopyStack));
bar.Add(b, "Copy backtrace of all threads", THISBACK(CopyStackAll));
bar.Add(b, "Copy dissassembly", THISBACK(CopyDisas));
bar.Add(b, "Copy modules", THISBACK(CopyModules));
}
void Pdb::Tab()
@ -396,6 +397,15 @@ void Pdb::CopyDisas()
disas.WriteClipboard();
}
void Pdb::CopyModules()
{
String s;
for(const ModuleInfo& f : module)
s << f.path << ", base 0x" << FormatIntHex((void *)f.base)
<< ", size: 0x" << FormatIntHex(f.size) << "\n";
WriteClipboardText(s);
}
void Pdb::Stop()
{
if(!terminated) {

View file

@ -510,6 +510,7 @@ struct Pdb : Debugger, ParentCtrl {
void CopyStack();
void CopyStackAll();
void CopyDisas();
void CopyModules();
void MemoryGoto(const String& exp);