Add ptrace extensions to query a register set.

Patch by Ashok Thirumurthi.