x86 ptrace support question

From: Maciej Zenczykowski
Date: Wed Nov 12 2003 - 05:58:48 EST


Hi,

I'm ptraceing a child process and I'd like to take a peek at memory
pointed to by a seg:offs far pointer. Assuming seg is normal userspace DS
then the ptrace(PEEKDATA,..) works fine. If not then I must most likely
perform conversion to linear address by hand. However for this I need to
get at the code16/32, address16/32, base, limit, etc info of the segment
descriptor for this (given) segment. Obviously this data can be read from
the GDT/LDT. Unfortunately I can't figure out how to get at this without
having to patch the traced program code with support routines for exactly
this purpose and then undoing this and continuing.

Thanks,
MaZe.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/