site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=i/H8miIDusuu5pDPDh1d9nsWfk4Dk0gWUc8aXEkknIM=; b=HIA5NE3+n3uktss0lyuogdfYqI4jpaL0D9KA/eyd2HA1JHtlJL3nVPgjlADakqzuzg xAWuQkBcSj9DXS/ftO5yGycMDcKGJN1ZSXeHqZThNk7bEkvZOJURIZS4AJISMa5o28+w h+74GWEHwultNO+hEaTdLpX8F45EIQCcgPPB4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=fpm+xInQ//bjH42+suB99WgJHQeUic8qKE/6SCIXzdyHAGL6IL5r7dJ/Y8wH/95Wbm 9XnQrYnrt+Ju3l6mr+IwyzHAJsB9uTZXZmPRbLtK6J24FHsHDmycF4XJ3NnuriPU5Hyq Xchl48wKYvygneBSdOL2Y61Jgi42kkNsB/D+8= Hi, I am working on my own own KEXT that implements virtual file system API. And I have a deadlock that I would like to understand and fix it. I googled about kext debugging and basically the only document about it is "Debugging a Kernel Extension with GDB" http://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KEXT... I went through the steps and on this step (gdb) kdp-reattach targetmachine gdb fails with following message: kdp_reply_wait: error from kdp_receive: receive timeout exceeded kdp_transaction (remote_connect): transaction timed out kdp_transaction (remote_connect): re-sending transaction I guess this is because my kext (that runs on a target machine) is not really in the debug mode. My kext was loaded fine, and the article assumes that the kext has a kernel panic (that stops kernel for the debugging). So my question is: How to debug a kernel extension when it does not produce a kernel panic. What I want is to setup breakpoints in some functions and see variables/parameters. Are there any additional advises about debugging deadlocks? Another question that is related to the article: how to debug KEXT on a single machine? Is it possible to debug deadlocks locally? _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com