VxWorks API Reference : OS Libraries
dbgArchLib - architecture-dependent debugger library
a0( ) - return the contents of register a0 (also a1 - a7) (MC680x0)
d0( ) - return the contents of register d0 (also d1 - d7) (MC680x0)
sr( ) - return the contents of the status register (MC680x0, SH)
dbgBpTypeBind( ) - bind a breakpoint handler to a breakpoint type (MIPS R3000, R4000, R4650)
edi( ) - return the contents of register edi (also esi - eax) (x86)
eflags( ) - return the contents of the status register (x86)
r0( ) - return the contents of register r0 (also r1 - r14) (ARM)
cpsr( ) - return the contents of the current processor status register (ARM)
psrShow( ) - display the meaning of a specified PSR value, symbolically (ARM)
r0( ) - return the contents of general register r0 (also r1-r15) (SH)
sr( ) - return the contents of control register sr (also gbr, vbr) (SH)
mach( ) - return the contents of system register mach (also macl, pr) (SH)
o0( ) - return the contents of register o0 (also o1-o7) (SimSolaris)
l0( ) - return the contents of register l0 (also l1-l7) (SimSolaris)
i0( ) - return the contents of register i0 (also i1-i7) (SimSolaris)
npc( ) - return the contents of the next program counter (SimSolaris)
psr( ) - return the contents of the processor status register (SimSolaris)
wim( ) - return the contents of the window invalid mask register (SimSolaris)
y( ) - return the contents of the y register (SimSolaris)
edi( ) - return the contents of register edi (also esi - eax) (x86/SimNT)
eflags( ) - return the contents of the status register (x86/SimNT)
This module provides architecture-specific support functions for dbgLib. It also includes user-callable functions for accessing the contents of registers in a task's TCB (task control block). These routines include:
MC680x0: a0( ) - a7( ) - address registers (a0 - a7) d0( ) - d7( ) - data registers (d0 - d7) sr( ) - status register (sr) MIPS: dbgBpTypeBind( ) - bind a breakpoint handler to a breakpoint type x86/SimNT: edi( ) - eax( ) - named register values eflags( ) - status register value SH: r0( ) - r15( ) - general registers (r0 - r15) sr( ) - status register (sr) gbr( ) - global base register (gbr) vbr( ) - vector base register (vbr) mach( ) - multiply and accumulate register high (mach) macl( ) - multiply and accumulate register low (macl) pr( ) - procedure register (pr) ARM: r0( ) - r14( ) - general-purpose registers (r0 - r14) cpsr( ) - current processor status reg (cpsr) psrShow( ) - psr value, symbolically SimSolaris: g0( ) - g7( ) - global registers (g0 - g7) o0( ) - o7( ) - out registers (o0 - o7, note lower-case "o") l0( ) - l7( ) - local registers (l0 - l7, note lower-case "l") i0( ) - i7( ) - in registers (i0 - i7) npc( ) - next program counter (npc) psr( ) - processor status register (psr) wim( ) - window invalid mask (wim) y( ) - y register
The routine pc( ), for accessing the program counter, is found in usrLib.
dbgLib, VxWorks Programmer's Guide: Target Shell
a0( ) - return the contents of register a0 (also a1 - a7) (MC680x0)
int a0 ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of register a0 from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
Similar routines are provided for all address registers (a0 - a7): a0( ) - a7( ).
The stack pointer is accessed via a7( ).
The contents of register a0 (or the requested register).
dbgArchLib, VxWorks Programmer's Guide: Target Shell
d0( ) - return the contents of register d0 (also d1 - d7) (MC680x0)
int d0 ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of register d0 from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
Similar routines are provided for all data registers (d0 - d7): d0( ) - d7( ).
The contents of register d0 (or the requested register).
dbgArchLib, VxWorks Programmer's Guide: Target Shell
sr( ) - return the contents of the status register (MC680x0, SH)
int sr ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of the status register from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
The contents of the status register.
dbgArchLib, VxWorks Programmer's Guide: Target Shell
dbgBpTypeBind( ) - bind a breakpoint handler to a breakpoint type (MIPS R3000, R4000, R4650)
STATUS dbgBpTypeBind ( int bpType, /* breakpoint type */ FUNCPTR routine /* function to bind */ )
Dynamically bind a breakpoint handler to breakpoints of type 0 - 7. By default only breakpoints of type zero are handled with the vxWorks breakpoint handler (see dbgLib). Other types may be used for Ada stack overflow or other such functions. The installed handler must take the same parameters as excExcHandle( ) (see excLib).
OK, or ERROR if bpType is out of bounds.
edi( ) - return the contents of register edi (also esi - eax) (x86)
int edi ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of register edi from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
Similar routines are provided for all general registers (edi - eax): edi( ) - eax( ).
The stack pointer is accessed via eax( ).
The contents of register edi (or the requested register).
dbgArchLib, VxWorks Programmer's Guide: Debugging
eflags( ) - return the contents of the status register (x86)
int eflags ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of the status register from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
The contents of the status register.
dbgArchLib, VxWorks Programmer's Guide: Debugging
r0( ) - return the contents of register r0 (also r1 - r14) (ARM)
int r0 ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of register r0 from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
Similar routines are provided for registers (r1 - r14): r1( ) - r14( ).
The contents of register r0 (or the requested register).
dbgArchLib, VxWorks Programmer's Guide: Debugging
cpsr( ) - return the contents of the current processor status register (ARM)
int cpsr ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of the status register from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
The contents of the current processor status register.
dbgArchLib, VxWorks Programmer's Guide: Debugging
psrShow( ) - display the meaning of a specified PSR value, symbolically (ARM)
STATUS psrShow ( UINT32 psrval /* psr value to show */ )
This routine displays the meaning of all fields in a specified PSR value, symbolically.
OK, always.
r0( ) - return the contents of general register r0 (also r1-r15) (SH)
int r0 ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of register r0 from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
Similar routines are provided for all general registers (r1 - r15): r1( ) - r15( ).
The contents of register r0 (or the requested register).
dbgArchLib, VxWorks Programmer's Guide: Debugging
sr( ) - return the contents of control register sr (also gbr, vbr) (SH)
int sr ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of register sr from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
Similar routines are provided for all control registers (gbr, vbr): gbr( ), vbr( ).
The contents of register sr (or the requested control register).
dbgArchLib, VxWorks Programmer's Guide: Debugging
mach( ) - return the contents of system register mach (also macl, pr) (SH)
int mach ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of register mach from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
Similar routines are provided for other system registers (macl, pr): macl( ), pr( ). Note that pc( ) is provided by usrLib.c.
The contents of register mach (or the requested system register).
dbgArchLib, VxWorks Programmer's Guide: Debugging
o0( ) - return the contents of register o0 (also o1-o7) (SimSolaris)
int o0 ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of out register o0 from the TCB of a specified task. If taskId is omitted or 0, the current default task is assumed.
Similar routines are provided for all out registers (o0 - o7): o0( ) - o7( ).
The stack pointer is accessed via o6.
The contents of register o0 (or the requested register).
dbgArchLib, VxWorks Programmer's Guide: Debugging
l0( ) - return the contents of register l0 (also l1-l7) (SimSolaris)
int l0 ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of local register l0 from the TCB of a specified task. If taskId is omitted or 0, the current default task is assumed.
Similar routines are provided for all local registers (l0 - l7): l0( ) - l7( ).
The contents of register l0 (or the requested register).
dbgArchLib, VxWorks Programmer's Guide: Debugging
i0( ) - return the contents of register i0 (also i1-i7) (SimSolaris)
int i0 ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of in register i0 from the TCB of a specified task. If taskId is omitted or 0, the current default task is assumed.
Similar routines are provided for all in registers (i0 - i7): i0( ) - i7( ).
The frame pointer is accessed via i6.
The contents of register i0 (or the requested register).
dbgArchLib, VxWorks Programmer's Guide: Debugging
npc( ) - return the contents of the next program counter (SimSolaris)
int npc ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of the next program counter from the TCB of a specified task. If taskId is omitted or 0, the current default task is assumed.
The contents of the next program counter.
dbgArchLib, ti( )
psr( ) - return the contents of the processor status register (SimSolaris)
int psr ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of the processor status register from the TCB of a specified task. If taskId is omitted or 0, the default task is assumed.
The contents of the processor status register.
dbgArchLib, VxWorks Programmer's Guide: Debugging
wim( ) - return the contents of the window invalid mask register (SimSolaris)
int wim ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of the window invalid mask register from the TCB of a specified task. If taskId is omitted or 0, the default task is assumed.
The contents of the window invalid mask register.
dbgArchLib, VxWorks Programmer's Guide: Debugging
y( ) - return the contents of the y register (SimSolaris)
int y ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of the y register from the TCB of a specified task. If taskId is omitted or 0, the default task is assumed.
The contents of the y register.
dbgArchLib, VxWorks Programmer's Guide: Debugging
edi( ) - return the contents of register edi (also esi - eax) (x86/SimNT)
int edi ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of register edi from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
Similar routines are provided for all address registers (edi - eax): edi( ) - eax( ).
The stack pointer is accessed via eax( ).
The contents of register edi (or the requested register).
dbgArchLib, VxWorks Programmer's Guide: Debugging
eflags( ) - return the contents of the status register (x86/SimNT)
int eflags ( int taskId /* task ID, 0 means default task */ )
This command extracts the contents of the status register from the TCB of a specified task. If taskId is omitted or zero, the last task referenced is assumed.
The contents of the status register.
dbgArchLib, VxWorks Programmer's Guide: Debugging