PT_STEP parameter to ptrace() on RS/6000
Marc J. Stephenson/140000;1C-22
marc at stingray.austin.ibm.com
Fri Apr 12 04:15:31 AEST 1991
PT_STEP is not supported in the AIX 3.1 kernel. dbx and adb do not use
PT_STEP to perform single-stepping; it is done via inserting trap instructions
in the debuggee process (then replacing the original instruction). FYI, dbx
use a tgte r2,r2 (trap if register 2 is greater than or equal to register 2,
a normally nonsensical instruction) for its traps.
The hardware does not support single-stepping, so it was decided to leave the
software trapping code at the application level rather than in ptrace(), where
all the same software trapping would have to take place.
--
Marc Stephenson IBM PSPA (Personal System Programming - Austin,TX)
DISCLAIMER: The content of this posting is independent of official IBM position.
marc at stingray.austin.ibm.com VNET: MARC at AUSVMQ IBM T/L: 793-3796
More information about the Comp.unix.aix
mailing list