source: trunk/minix/man/man1/mdb.1@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 2.3 KB
Line 
1.TH MDB 1
2.SH NAME
3mdb \- MINIX 3 debugger
4.SH SYNOPSIS
5.B mdb
6.RB [ \-fc ]
7.I file
8.br
9.B mdb
10.BR [-L|-l]log\-file
11.I exec-file
12.RI [ core\-file ]
13.RI [ @command\-file ]
14.SH DESCRIPTION
15.de SP
16.if t .sp 0.4
17.if n .sp
18..
19.B mdb
20is the MINIX 3 debugger.
21.SH OPTIONS
22Its command line options are:
23.TP
24.B \-f
25Just examine the specified file.
26.TP
27.B \-c
28Examine 'core' file. No exec-file will be supplied.
29.TP
30.B \-Llog\-file
31Log to file only
32.TP
33.B \-llog\-file
34Log to file.
35.SP
36.IR exec\-file
37Unless the -c option has been specified, the exec-file is required.
38.SP
39.IR core\-file
40The core-file is optional.
41.SP
42If the core-file is supplied,
43.B mdb
44assumes that the user wishes to examine the core file.
45Otherwise
46.B mdb
47assumes that the user will run the exec-file and trace it.
48.SP
49.IR @command\-file
50.B mdb
51executes command from command-file.
52.SH OVERVIEW
53.br
54.B mdb
55commands are of the form:
56.I [ expression ]
57.I command
58.SP
59.I expression
60can be of the form:
61.IP
62.I address
63which defaults to text segment
64.IP
65address
66.I overriden
67by
68.I T:
69for Text segment
70or
71.I D:
72for Data segment
73or
74.I S:
75for Stack segment
76.IP
77.I symbol
78where
79.B mdb
80does a lookup for the symbol first as a
81.I text
82symbol and then as a
83.I data
84symbol.
85.SP
86.TP
87.I command
88.SP
89The help command is ?.
90.SP
91For detailed help on a command type:
92.I command ?.
93.SP
94A semi-colon can be used to separate commands on a line.
95.SP
96.SH MDB COMMANDS
97.SP
98! Shell escape
99.SP
100# Set Variable or register
101.SP
102Tt Current call / Backtrace all
103.SP
104/nsf Display for n size s with format f
105.SP
106Xx [n] Disasm / & display reg for n instructions
107.SP
108Rr a Run / with arguments a
109.SP
110Cc [n] Continue with current signal / no signal n times
111.SP
112Ii [n] Single step with / no signal for n instructions
113.SP
114Mm t n Trace until / Stop when modified t type for n instructions
115.SP
116k Kill
117.SP
118Bb Display / Set Break-pt
119.SP
120Dd Delete all / one break-points
121.SP
122P Toggle Pagging
123.SP
124Ll name Log to file name / and to standard output
125.SP
126Vv Toggle debug flag / Version info
127.SP
128V Version info
129.SP
130e [t] List symbols for type t
131.SP
132y Print segment mappings
133.SP
134s [n] Dump stack for n words
135.SP
136z [a] Trace syscalls with address a
137.SP
138? Help - short help
139.SP
140@ file Execute commands from file
141.SP
142Qq Quit / and kill traced process
143.SP
144.SH "SEE ALSO"
145.SP
146trace(2).
147.SH DIAGNOSTICS
148
149.SH NOTES
150
151.SH BUGS
152
153.SH AUTHOR
154Philip Murton and others
Note: See TracBrowser for help on using the repository browser.