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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330
|
.\" Copyright (c) 1991 Free Software Foundation
.\" See section COPYING for conditions for redistribution
.\" $Id: gdb.1,v 1.1 1994/01/28 12:39:43 pk Exp $
.TH gdb 1 "4nov1991" "GNU Tools" "GNU Tools"
.SH ̾
gdb \- The GNU Debugger
.SH
.na
.TP
.B gdb
.RB "[\|" \-help "\|]"
.RB "[\|" \-nx "\|]"
.RB "[\|" \-q "\|]"
.RB "[\|" \-batch "\|]"
.RB "[\|" \-cd=\c
.I dir\c
\|]
.RB "[\|" \-f "\|]"
.RB "[\|" "\-b\ "\c
.IR bps "\|]"
.RB "[\|" "\-tty="\c
.IR dev "\|]"
.RB "[\|" "\-s "\c
.I symfile\c
\&\|]
.RB "[\|" "\-e "\c
.I prog\c
\&\|]
.RB "[\|" "\-se "\c
.I prog\c
\&\|]
.RB "[\|" "\-c "\c
.I core\c
\&\|]
.RB "[\|" "\-x "\c
.I cmds\c
\&\|]
.RB "[\|" "\-d "\c
.I dir\c
\&\|]
.RB "[\|" \c
.I prog\c
.RB "[\|" \c
.IR core \||\| procID\c
\&\|]\&\|]
.ad b
.SH
GDB Τ褦ʥǥХåŪϡץब¹⤷ϥå夷ˤ
ץ ``'' DzԤƤ뤫뤳ȤǤ褦ˤ
ȤǤ
GDB ϡ¹˥ХĤ뤳Ȥ뤿ˡ
4 λŻ (äơݡȤ) ԤȤޤ
.TP
\ \ \ \(bu
ץưܺ٤˻ꤷƥץ¹Ԥ롣
.TP
\ \ \ \(bu
ܺ٤ʾǥץߤ롣
.TP
\ \ \ \(bu
ץबߤޤäˡäĴ٤롣
.TP
\ \ \ \(bu
ץξ֤ѹҤȤĤΥХαƶ̤ʬĴ٤롣
.PP
GDB C, C++, Modula-2 ʤɤǽ줿ץΥǥХåԤޤ
Fortran ϡGNU Fortran 褿Ȥ˥ݡȤޤ
GDB ϥ륳ޥ\c
.B gdb\c
\&ǵưޤäȤȡGDB ޥ\c
.B quit\c
\&¹Ԥƽλޤǡü饳ޥɤɤ³ޤ
.B gdb\c
\&ȤΥ饤إפ\c
.B help\c
\&ޥɤޤ
.B gdb\c
\& ϰ䥪ץ̵ǵưǤޤ
Ƥưˤ 1 Ĥ2 ĤΰȤޤ¹ԥץ
ȤƤȤϰʲΤ褦ˤʤޤ:
.sp
.br
gdb\ program
.br
.sp
¹ԥץ core եξꤹ뤳Ȥޤ:
.sp
.br
gdb\ program\ core
.br
.sp
⤷¹ΥץΥǥХåԤˤϡ
2 ˥ץ ID ꤹСǥХåԤޤ:
.sp
.br
gdb\ program\ 1234
.br
.sp
GDB ץ\c
.B 1234\c
\& ֤³ޤ(`\|\c
.B 1234\c
\&\|'Ȥ̾Υե뤬¸ߤʤ¤ꡣ
GDB ϤΥե뤬 core եǤ뤫ɤǽ˥åޤ)
ˤѤ GDB ޥɤʲ˵ޤ:
.TP
.B break \fR[\|\fIfile\fB:\fR\|]\fIfunction
\&
ץ졼ݥȤ \c
.I function\c
\& (\c
.I file\c
\&)ꤷޤ
.TP
.B run \fR[\|\fIarglist\fR\|]
ץμ¹ԤϤޤ(⤷ꤵ줿\c
.I arglist\c
\&⤤ä)
.TP
.B bt
Хåȥ졼ǤץΥåɽޤ
.TP
.BI print " expr"\c
\&
ͤɽޤ
.TP
.B c
ץμ¹ԤƳޤ(֥졼ݥȤ)
.TP
.B next
ΥץԤ¹Ԥޤ ()
ιƤδؿ 1 ƥåפȤߤʤޤ
.TP
.B step
ΥץԤ¹Ԥޤ ()
ιδؿؤϡƥå¹Ԥˤޤ
.TP
.B help \fR[\|\fIname\fR\|]
GDB command \c
.I name\c
\&ˤĤƤξɽ뤫ޤϡ
GDB ȤǤΰŪʾɽޤ
.TP
.B quit
GDB λޤ
.PP
GDB ξܺ٤ˤĤƤ\c
.I
Using GDB: A Guide to the GNU Source-Level Debugger\c
\&, by Richard M. Stallman and Roland H. Pesch. ȤƲ
ƱƥȤϡ
.B info\c
\& ץ
.B gdb\c
\& ȥǡ饤ޤ
.SH ץ
ץΤʤϡ¹ԥե core ե (⤷ϥץ ID)
ɽޤĤޤꡢץե饰̵ 1 `\|\c
.B \-se\c
\&\|' ץΰȤߤʤ졢 2 Ʊͤ˥ץʤ
ե̾Ǥä `\|\c
.B \-c\c
\&\|' ץΰȤߤʤޤ
¿ΥץĹɽˡûɽˡξޤ
ǤξƤޤ
ĹɽˡϡΥץƤǤʤĹޤڤͤ줿ΤǤ
Ȳᤵޤ(ߤˤꡢ`\|\c
.B \-\c
\&\|'
`\|\c
.B +\c
\&\|' ѤǤޤ)
ƤΥץȥޥɥ饤Ͻ֤˽ޤ
ν֤
`\|\c
.B \-x\c
\&\|' ץѤ줿Ѥޤ
.TP
.B \-help
.TP
.B \-h
ûĤǡƤΥץɽޤ
.TP
.BI "\-symbols=" "file"\c
.TP
.BI "\-s " "file"\c
\&
ܥơ֥ե \c
.I file\c
\&ɤߤޤ
.TP
.BI "\-exec=" "file"\c
.TP
.BI "\-e " "file"\c
\&
ե \c
.I file\c
\& ¹ԲǽեȤѤޤ
.TP
.BI "\-se=" "file"\c
\&
ե \c
.I file\c
\& 饷ܥơ֥ɤߡ¹ԲǽեȤѤޤ
.TP
.BI "\-core=" "file"\c
.TP
.BI "\-c " "file"\c
\&
ե \c
.I file\c
\& ĴѤ core dump ȤѤޤ
.TP
.BI "\-command=" "file"\c
.TP
.BI "\-x " "file"\c
\&
ե \c
.I file\c
\& GDB Υޥɤɤ߹ߤޤ
.TP
.BI "\-directory=" "directory"\c
.TP
.BI "\-d " "directory"\c
\&
եõ뤿Υѥ \c
.I directory\c
\& ɲäޤ
.PP
.TP
.B \-nx
.TP
.B \-n
ե \c
.B .gdbinit\c
\&\|' 饳ޥɤɤ߹ߤޤ
̾ϡ
ƤΥޥɥץȰ줿ǡ
ΥեΥޥɤ¹Ԥޤ
.TP
.B \-quiet
.TP
.B \-q
``Quiet''ǤưΥå copyright åɽޤ
ΥåϥХå⡼ɤǤޤ
.TP
.B \-batch
Хå⡼ɤưޤ`\|\c
.B \-x\c
\&\|' (ӡ¹Ԥʤ `\|\c
.B .gdbinit\c
\&\|') ǻꤷեƤΥޥɤ
ͤȤ \c
.B 0\c
\& ֤ޤ
ޥɥե GDB ޥɤμ¹˥顼ä
0 Ǥʤ֤ͤޤ
Хå⡼ɤ GDB ե륿ȤƼ¹ԤͭǤ
.TP
.BI "\-cd=" "directory"\c
\&
GDB Υǥ쥯ȥȥǥ쥯ȥ \c
.I directory\c
\& ˤƼ¹Ԥޤ
.TP
.BI "\-b " "bps"\c
\&
⡼ȥǥХåѤ GDB Ѥ륷ꥢ륤եž®٤
åȤޤ
.TP
.BI "\-tty=" "device"\c
\&
ץɸϤ \c
.I device\c
\& Ѥޤ
.PP
.SH "Ϣ"
.B info\c
.RB "`\|" gdb "\|'"
ȥ
\&;
.I
Using GDB: A Guide to the GNU Source-Level Debugger\c
, Richard M. Stallman and Roland H. Pesch, July 1991.
.SH COPYING
Copyright (c) 1991 Free Software Foundation, Inc.
.PP
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
are preserved on all copies.
.PP
Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
.PP
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be included in
translations approved by the Free Software Foundation instead of in
the original English.
|