Programmatic Back Trace
Programmatic Back Trace
- Subject: Programmatic Back Trace
- From: Geoffrey Schmit <email@hidden>
- Date: Wed, 3 Sep 2003 09:23:20 -0500
I need a function that performs a back trace in a kernel extension. I
found the MoreBacktrace example
<
http://developer.apple.com/samplecode/Sample_Code/Overview/MoreIsBetter
/MoreBacktrace.c.htm> and began to modify this code to work in a kernel
extension.
I'm currently stuck trying to find a function that is accessible by a
kernel extension and that is equivalent to vm_read_overwrite in that it
will return an error if the specified address is inaccessible rather
than throwing a SIGSEGV signal.
So, a couple of questions:
Is there an example that captures a back trace in a kernel extension?
If so, where is it?
If not, what is a function similar to vm_read_overwrite that is
accessible by a kernel extension?
If there isn't, how can I test if an address is valid before trying to
read it?
If I can't, any suggestions on other ways to achieve my goal? For
example, can I catch the SIGSEGV signal, set an error condition, and
continue execution?
Thanks!
geoff
--
Geoffrey Schmit
Senior Software Engineer
National Instruments
email@hidden
www.ni.com
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.