lkml.org 
[lkml]   [2003]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectx86 ptrace support question
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.027 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site