lldb commands not working
lldb commands not working
- Subject: lldb commands not working
- From: Pratima Kudale <email@hidden>
- Date: Mon, 27 Oct 2014 16:29:40 -0700
- Acceptlanguage: en-US
- Thread-topic: lldb commands not working
I am trying to debug a panic dump on OS X 10.10 (14A389) with 10.10 - 14A389 KDK. Below is command used to start debugger:
lldb -arch x86_64 -c ~/core/core-xnu-2782.1.97-10.4.224.125-7482ef64 /Library/Developer/KDKs/KDK_10.10_14A389.kdk/System/Library/Kernels/kernel
Paniclog / or any other command which used to come with kgmacros is failing with below exception:
(lldb) paniclog
************ LLDB found an exception ************
There has been an uncaught exception. A possible cause could be that remote connection has been disconnected.
However, it is recommended that you report the exception to lldb/kernel debugging team about it.
************ Please run 'xnudebug debug enable' to start collecting logs. ************
Traceback (most recent call last):
File "/Library/Developer/KDKs/KDK_10.10_14A389.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/lldbmacros/xnu.py", line 107, in _internal_command_function
obj(cmd_args=stream.target_cmd_args)
File "/Library/Developer/KDKs/KDK_10.10_14A389.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/lldbmacros/xnu.py", line 543, in ShowPanicLog
panic_buf_start = unsigned(panic_buf)
File "/Library/Developer/KDKs/KDK_10.10_14A389.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/lldbmacros/core/cvalue.py", line 359, in unsigned
return val._GetValueAsUnsigned()
File "/Library/Developer/KDKs/KDK_10.10_14A389.kdk/System/Library/Kernels/kernel.dSYM/Contents/Resources/Python/lldbmacros/core/cvalue.py", line 309, in _GetValueAsUnsigned
raise ValueError("Failed to read unsigned data. "+ str(self._sbval19k84obscure747) +"(type =" + str(self._sbval19k84obscure747_type) + ") Error description: " + serr.GetCString())
ValueError: Failed to read unsigned data. (char *) debug_buf_addr = <kernel[0xffffff8000a28ef8] can't be resolved, kernel in not currently loaded>
(type =char *) Error description: could not resolve value
Could you please check if I am using correct lldb command? Am I missing something here?
Thanks for help,
Pratima
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden