[OT] What are the header files needed to write a debugger?
[OT] What are the header files needed to write a debugger?
- Subject: [OT] What are the header files needed to write a debugger?
- From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Tue, 8 Nov 2005 08:40:53 -0500
- Thread-topic: [OT] What are the header files needed to write a debugger?
This is to satisfy my own curiosity more than anything else, and I don't
think this is quite the right list to write to, but I figure that there
are lot of smart people here, and someone might be able to point me in
the right direction.
Recently, I've gotten interested in figuring out the mechanics of how
debuggers are written, and realized that although I can figure out some
good ideas for data structures, reading the mach-o, STABS, etc. file
formats, I have no idea on how to pause another process and read through
its registers/address space. I found out about the ptrace() system
call, and it is perfect, except that the man pages have changed between
10.3 and 10.4, which makes me think that it is slated to go away at some
point. I also grepped thru the /usr/include directory for 'debug' (as
well as /System/Library, and /Library), and found the following
promising as well:
kdebug.h
mach_debug.h
malloc.h - has various zone info, but I don't know if the debugger can
use this, maybe thru libgmalloc?
proc.h? - don't know if user space has access to this
stab.h
sysctl()
SO_DEBUG option in socket.h
syscall.h
thread_status.h
dyld_debug.h is listed as deprecated as of 10.4
My question is, am I missing something that is specifically designed for
debugging purposes? Something where, if I were writing a debugger from
scratch for OS X, I should know about it?
Thanks,
Cem Karan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden