Re: Reading a debugged process's LDT

Alan Cox (alan@cymru.net)
Fri, 31 May 1996 09:28:20 +0100 (BST)


> I wish to be able to read a debugged process's LDT, to allow GDB to
> handle breakpoints in 16-bit mode better. I can imagine an approach
> in which the "inferior" is made to call modify_ldt, but that can require
> many K of space in the inferior. Is there a way (or could one be
> patched in without TOO much trouble) to spy on an inferior's LDT?

You hack some extra commands into ptrace to read the LDT table. The main
ptrace code will look after all the other bits for you.

Alan