📄 ice-gdb.1
字号:
.TH ice-gdb 1 "August 22, 2003".LO 1.SH NAMEice-gdb \- JTAG ICE frontend for avr-gdb.brice-insight \- JTAG ICE frontend for avr-insight.SH SYNOPSIS.B ice-gdb/ice-insight.RB [ --debugger.IR debugger ].RB [ --capture ].RB [ --ignore-intr ].RB [ --external ].RI [ gdb_arguments ].SH DESCRIPTION.B ice-gdb(respectively.BR ice-insight )starts.B avr-gdb(respectively.BR avr-insight )and.B avariceto do on-chip debugging on Atmel AVR processors using their JTAG-basedon-chip debug facilities, via the Atmel JTAG ICE pod.The executable for the program being debugged is downloaded to theprocessor unless the.B --captureoption is specified. A number of extra commands are available within gdbwhen started, see their description in NEW GDB COMMANDS below. Restrictionson debugging with the JTAG ICE pod are discussed in more detail in DEBUGGINGWITH JTAG ICE below.The arguments passed to.B avariceinclude the value of the.B AVARICE_ARGSenvironment variable. This is typically used to specify the serial port towhich the JTAG ICE pod is connected by setting.B AVARICE_ARGSto "-j <serial port name>"..SH OPTIONS.TP.B --debugger debugger_commandSpecify a different debugger than avr-gdb (or avr-insight). This otherdebugger should behave similarly to gdb..TP.B --captureDon't download the executable being debugged to the mote, just interrupt thecurrent program and assume that it matches the executable passed to.BR ice-gdb .This is similar to "attaching" to a running program within gdb..TP.B --ignore-intrPass the.B --ignore-introption to.BR avarice .The single-step commands in gdb (s, n) will then "step over" interrupthandlers (i.e., if an interrupt occurs, execution will resume for theduration of the interrupt)..TP.B --externalDo not start.BR avarice .Instead,.B avr-gdbwill attempt to connect to an already running.B avariceon port localhost:6423..SH NEW GDB COMMANDS.TP.B ice-restartRestart avarice..TP.B ice-load filenameDownload executable filename to the Atmel processor and start debugging it(this replaces the gdb.B loadcommand)..TP .B target-iceConnect to a copy of.B avaricerunning on port localhost:6423..SH DEBUGGING WITH JTAG ICEThe JTAG ICE debugging environment has a few restrictions and changes:.IP \(bu 4No "soft" breakpoints, and only three hardware breakpoints. The breakcommand sets hardware breakpoints. The easiest way to deal with thisrestriction is to enable and disable breakpoints as needed..IP \(buTwo 1-byte hardware watchpoints (but each hardware watchpoint takes awayone hardware breakpoint). If you set a watchpoint on a variable which takesmore than one byte, execution will be abysmally slow. Instead it is betterto do the following:.RS 6watch *(char *)&myvariable.RE.IPwhich watches the least significant byte of.BR myvariable ..IP \(buThe Atmel AVR processors have a Harvard architecture (separate code anddata buses). To distinguish data address 0 from code address 0,.B avr-gdbadds 0x800000 to all data addresses. Bear this in mind when examiningprinted pointers, or when passing absolute addresses to gdb commands..SH ENVIRONMENT.TP.B AVARICE_ARGSExtra arguments to pass to.B avariceat startup..SH SEE ALSOgdb(1), insight(1)..SH BUGSOn Windows, the.B ice-gdband.B ice-insightcommands only work in the.B cygwinenvironment. They do not work with the.B mingwenvironment.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -