AMD 4.4.5 user manual 154

Models: 4.4.5

1 269
Download 269 pages 44.58 Kb
Page 166
Image 166

 

AMD Confidential

User Manual

 

November 21st, 2008

 

 

 

Debugger Command

 

Definition

p

 

Similar to the t command, single steps the

 

 

simulation one instruction, unless the current

 

 

instruction is a call, software interrupt, or

 

 

repeated string instruction, in which case this

 

 

command sets a temporary execution

 

 

breakpoint at the instruction sequentially

 

 

following the current instruction, and starts

 

 

simulation.

r [regname[= <value>]]

 

Displays, and optionally alters, the contents of

 

 

various CPU registers. For a list of register

 

 

names that are supported, type R?. Normally,

 

 

the display is in the current CPU mode. To

 

 

force 16-bit, 32-bit, or 64-bit register display,

 

 

type R16, R32, or R64 respectively.

R16

 

Display 16-bit registers (until the next

 

 

instruction).

R32

 

Display 32-bit registers (until the next

 

 

instruction).

R64

 

Display 64-bit registers (until the next

 

 

instruction).

s <Bus> <Device> <Function>

 

Displays the PCI configuration registers

 

 

associated with the given Bus, Device, and

 

 

Function number.

t [count]

 

Executes [count] instructions. The default value

 

 

for [count] is 1.

u [address range]

 

Disassembles instructions starting, at the given

 

 

address and continuing for [length] instructions.

 

 

Instructions are disassembled using the current

 

 

CPU execution mode.

v

 

Displays the version number information for the

 

 

attached processor device.

q<a1> [noncase] <StartAddress>[,[lp]] <[[L]Length] [EndAddress]> <Pattern>

Search physical (default) or linear Memory for pattern and display all or only first occurrence(s).

Table 10-7: Debugger Commands and Definitions

In general, address and count values can be specified as constants (hex for addresses, ports, and values; decimal for counts and lengths), or as register names. For addresses, the CS:, DS:, ES:, FS:, GS:, and SS: prefixes are also allowed.

Address values may be suffixed by „,L‟ to specify a linear address (the default) or „,P‟ to specify a physical address. Addresses may also be specified by their symbol name. Precede the symbol name with a # character to distinguish it from a hex constant.

154

Chapter 10: CPU Debugger

Page 166
Image 166
AMD 4.4.5 user manual 154