-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathloadOptions.dbg
More file actions
114 lines (94 loc) · 4.08 KB
/
loadOptions.dbg
File metadata and controls
114 lines (94 loc) · 4.08 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
.echo +++++++ loading ${$arg0}
.echo set common option
.echo
.echo enable dml, please .load sos.dll with full path [.prefer_dml 1]
.prefer_dml 1
.echo
.echo set masm as default mode. $scmp operator is available only in masm mode [ .expr /s masm ]
.expr /s masm
.echo
.echo set Disassembly Display Options
.echo displayed along with the standard disassembly information[.asm verbose]
.asm verbose ;
.echo use macro asm instruction , instead of display of raw bytes[.asm no_code_bytes]
.asm- no_code_bytes ;
.echo add source file line number before Disassembly instruction[.asm source_line]
.asm source_line ;
$$ .echo
$$ .echo enable debuggers unwind stack solely based on frame pointer[.stkwalk_force_frame_pointer 1]
$$ .echo when thread stacks are wrong, consider to switch this option and .reload modules.
$$ .echo see document for this option affect.
$$ .stkwalk_force_frame_pointer 1
.echo
.echo Symbol Option Settings(current symopt)
.symopt
.echo search symbol with case insensitive mode[.symopt+ SYMOPT_CASE_INSENSITIVE]
.symopt+ 0x1
.echo display undecorated symbol, instead of decorated C++ name. [.symopt+ SYMOPT_UNDNAME]
.symopt+ 0x2
.echo enable Deferred Symbol Loading to improve debugger startup performance[.symopt+ SYMOPT_DEFERRED_LOADS]
.symopt+ 0x4
.echo only search symbol in loaded modules to improve debugger performance (prevent from search mis-input wrong symbo)l[.symopt+ SYMOPT_NO_UNQUALIFIED_LOADS]
.symopt+ 0x100
.echo disable image search on disk for release debug [SYMOPT_NO_IMAGE_SEARCH]
.symopt- 0x20000
.echo allow authentication requests dialog boxes , else refuse all requests will cause failure to load symbol[SYMOPT_NO_PROMPTS]
.symopt- 0x80000
.echo to make change takes effect , run command [.reload].
$$ .reload
.echo
.echo set processor mode (auto mode)
.effmach .
.if(${/d:dbgLive}) { $$>a<${myWinScriptPath}\windbg\script\loadSetting\loadOptions_dbgLive.dbg; };
.if(${/d:dbgDmp}) { $$>a<${myWinScriptPath}\windbg\script\loadSetting\loadOptions_dmp.dbg; };
.echo
.echo enable inline function debuging [.inline 1]
.inline 1
.echo
.echo allow net symbol paths[.netsyms 1]
.netsyms 1
.echo
.echo .pcmd show nothing [x].
$$.pcmd -s "dv /a /V /i";
$$.pcmd -s "dv /t /i /A";
.pcmd -c;
.echo
.echo enable soure line support, it is global switch for source code related command. [.lines -e -t]
.lines -e -t
.echo
.echo set auto prompt info when step live debug. note : .prompt_allow priority is lower than l+s
.echo show source file path and line number(+src),function name (symbol,+sym) , current assemble code (+dis) , disable register info (-reg) [.prompt_allow +src +sym +dis -reg]
.prompt_allow +src +sym +dis -reg
.echo
.echo set source display info [l+lst].
.echo List source line number at prompt , same with .prompt_allow +src
l+l
.echo start source code mode , instead of assemble mode.
l+t
.echo [disable] don't display other message except source file and line number when live-debug
.echo [caution] l+o will affect many other display options, it is hard to restore to expected output.
l-o
.echo don't display source code in the command output window. you can see the source code in source code window directly.
l-s
.echo
.echo only displays the basic integer registers for r command [rm 2]
rm 2
.echo
.echo prompt displays 5 source lines before and 10 after[lsp 5 10].
lsp 5 10
.echo
.echo set call stack length to 40 [.kframes 40]
.kframes 40;
.echo
.echo enable virtual memory read failures (.show_read_failures /v)
.show_read_failures /v
.echo
.echo enable windbg flash if target break when windbg is minimized[.flash_on_break on]
.echo [warning] .flash_on_break can't be set in script file.
.printf /D "Click <link cmd=\".flash_on_break on\">.flash_on_break on</link> to enable this feature.\r\n"
.echo
.echo show injected calls from stepping in source mode [.hideinjectedcode off]
.echo [warning] .hideinjectedcode can't be set in script file.
.printf /D "Click <link cmd=\".hideinjectedcode off\">.hideinjectedcode off</link> to enable this feature.\r\n"
.echo
.echo ------- exiting ${$arg0}