Code: |
AS + 704 |
Symbolic: |
bccProcessStatus |
This command will query for current runtime information of a remote user process with the following parameters:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U32 |
DSID |
Debug session ID (0=Use read-only session, if available) |
4 |
U32 |
FLAGS |
Operating flags |
8 |
U16 |
PID |
Process ID |
On success, a bccAck is received with following data:
Offset |
Type |
Label |
Description |
---|---|---|---|
0 |
U16 |
STATE |
Current process state: 0x0000 Undefined 0x0001 Scheduled (#1) 0x0002 Running 0x0003 Stopped 0x0004 Stopping (trying to) |
2 |
U32 |
FLAGS |
Process flags: 0x00000001 Trace enabled 0x00000002 Breakpoints defined 0x00000004 Variables forced 0x00000008 Runtime errors |
6 |
U32 |
STEP |
Current step |
(#1) Scheduled means loaded in memory but not running.
On failure, a bccNack is received. Specific errors:
NACK code |
Description |
Extra data |
---|---|---|
nackNotFound |
Process not found |
|
nackIllegalArgs |
Illegal arguments |
U16 What illegal? 1 = Flags
|
nackIllegalDebug |
Illegal debug session |
|