help lldb breakpoints not hit

I have a 2 machine setup with the target machine configred as follows

nvram boot-args set to debug=0x814e kdp_match_name=firewire fwkdp=0x8000

csrutil disabled

The debug versions of the kexts are transferred to the target machine, loaded and kextcache rebuilt

sudo kextcache -system-prelinked-kernel


On the host machine

fwkdp is running

From fwkpfv, the debug versions of the kexts are loaded as the added print statements are shown in the logs


In another terminal window

lldb /Library/Developer/KDKs/<KDK Version>/System/Library/Kernels/kernel

kdp-remote localhost, drop the target machine into the debugger and connection is made.

target modules add <kext_contents>

target modules load --file <name> __TEXT <known_address_the_kext_uses>

br set --name <method_name_to_break>

br list shows that the breakpoint is resolved

c


The kext loads, executes and the breakpoint is not hit. Any ideas?


Thanks

David

Answered by bktay in 97098022

Figured it out. It was a simple error.

lldb <KDK_PATH>/kernel instead of kernel.development

Accepted Answer

Figured it out. It was a simple error.

lldb <KDK_PATH>/kernel instead of kernel.development

help lldb breakpoints not hit
 
 
Q