Code: |
AS + 703 |
Symbolic: |
bccProcessGetTrace |
This command will query for current trace steps for 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 |
U8 |
NSTEP |
No. of steps |
1 |
U32 |
STEP0 |
Step 0 |
... |
... |
... |
... |
|
U32 |
STEPn |
Step N |
NOTE: if trace is not active, it will even respond bccAck but providing NSTEP=0 (like no trace data).
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 |
|