-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinit.dbg
More file actions
32 lines (25 loc) · 701 Bytes
/
init.dbg
File metadata and controls
32 lines (25 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.echo +++++++ loading ${$arg0}
.echo initialize windbg environment
.echo
.echo set cache path : C:\symbols
!homedir C:\symbols
.echo set masm as default mode. because some operator(e.g. $scmp) is available only in masm mode [ .expr /s masm ]
.expr /s masm ;
as /e temp temp;
.echo
.echo set windbg debug mode
aS /e ${/v:targetMode} PROCESSOR_ARCHITECTURE;
.block {
.echo targetMode=${targetMode}
}
.echo
.echo init target mode
.if($scmp("${/f:$CurrentDumpFile}","")==0) {
.printf /D /op "windbg live debug mode.";
aS ${/v:dbgLive} 1;
} .else {
.printf /D /op "windbg dump file analysis mode.";
aS ${/v:dbgDmp} 1;
};
.echo
.echo ------- exiting ${$arg0}