Using Gdb With The Gdb Server; The Gdb Monitor Command - SIGNUM Systems GDB Server User Manual

Gdb server for arm, xscale and cortex
Table of Contents

Advertisement

S I G N U M
S Y S T E M S
8 3 0
To start a new debugging session, from the debug history list, select the debug configuration
5.
you created—in our example, "Debug with JTAGjet"—or open the Debug Configuration
dialog box by selecting Debug Configuration from the Debug As option in the project pop-
up menu. Press the Debug button.

Using GDB with the GDB Server

The GDB Monitor Command

SigGdbServer provides the following commands for sending special requests to the GDB server.
JTAGjet GDB Server commands:
flash before-load - before loading a new program
flash after-load
set verify-memory 0|1 – verify when writing memory
status - display the processor status
do <macro-file>
Any macro language command (see SigGdbServer User Manual for a list of
available commands).
The above commands are available in the GDB debugger as monitor commands. For instance:
(gdb) monitor flash before-load
The
flash before-load
(page
).
Flash
6
The
set verify-memory
write operations involving 4 or less bytes may be attempts to access memory-mapped I/O
registers, they are not verified.
The
command allows you to execute the macro commands listed in
monitor
set of commands found in Table 2 can be stored in a file and executed with the use of the
command. The examples below illustrate the command usage.
<macro-file>
(gdb) monitor do C:\Signum\SigGdbServer\boards\iMX31.ini
(gdb) monitor reset /halt
(gdb) monitor d32 0x10000000
Some
commands may change the state of the processor. To let GDB notice such a
monitor
change, delay the
monitor
option. For instance:
(gdb) monitor –d reset
(gdb) cont
Some processors may stop on reset, usually at the reset vector. The
the processor status as halted. If the processor does not stop after reset, press CTRL-C key
combination to halt it.
Delayed monitor commands are combined and executed at once by the next
command:
(gdb) monitor –d reset
(gdb) monitor –d pause 100
10
- after loading a new program
- execute a macro file
and
flash after-load
command controls memory verification by the server after writing. As
command until the next
commands are described in section
command, using the
continue
cont
Loading to
(page
). A
Table 2
5
do
, or
,
–delay
–d
command will report
continue

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GDB Server and is the answer not in the manual?

Table of Contents