Re: Remote Debug
Re: Remote Debug
- Subject: Re: Remote Debug
- From: "Justin C. Walker" <email@hidden>
- Date: Fri, 26 Jul 2002 15:03:42 -0700
On Thursday, July 25, 2002, at 03:11 PM, David Blanton wrote:
Is it possible to debug a user land app and trace its transition to
kernel land ? Two machine remote debug?
Of course, it's possible; it's just not for the faint-of-heart. Doing
this requires some understanding of the transition to kernel mode, and
some faith in the implementation. It can't be done simply. Here's a
way:
Machine A:
- run gdb and set up to debug Machine B
Machine B:
- hit the debug switch and wait for remote debugger
Machine A:
- connect to Machine B
- plant appropriate breakpoints in the kernel
- continue
Machine B:
- run gdb and start your user-mode application
[depending on how you do the previous step, you
may spend a lot of time typing 'c' on A]
This setup will let you get control in the kernel as the user-mode
program makes system calls.
Is this what you had in mind (in spirit, if not in fact)?
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
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.
References: | |
| >Remote Debug (From: David Blanton <email@hidden>) |