Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Will not enter debug mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Will not enter debug mode



On Thursday, February 7, 2002, at 03:12 PM, Sean Morrell wrote:

As indicated in the HowTo "Debugging a Device Driver With GDB", I am
trying to get my driver to enter debug mode with
PE_enter_debugger("debug"). However this statement appears to have no
effect. I have place this statement prior to the point the driver is
crashing, but the driver continues to crash the system. Can anyone help
me get this driver into debug mode?

Have you 'enabled' debugging? You can't enter the debugger, either deliberately with the call, or with CMD-POWER, unless you enable debugging. The easiest way to do this is:

nvram boot-args="XXX debug=6"

where XXX represents whatever the current value of boot-args is. You can determine this with

nvram boot-args

To write boot-args, you need to be root. To read, you don't.

The '6' is two bits: 0x4 (enable NMI and PE_enter_debugger()), and 0x2 (enable output to the console, and for Mac OS X, the output will show through the GUI).

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.

References: 
 >Will not enter debug mode (From: "Sean Morrell" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.