I'm currently playing around with GDB and want to debug a native processor in Android, specifically /system/bin/lmkd.
But I'm having trouble on how to stop GDB once that processor is invoked.
This is what I've tried so far:
Android-side:
./gdbserver tcp:5039 /system/bin/lmkd
Client-side:
gdb
target remote localhost:5039
From here, I typed in info shared
, so I could get the base address of the native processor, set the breakpoint, continue, invoke the processor, then it would stop.
But info shared
only shows address for shared object files.
Any recommendation on how to set breakpoint on the processor that I don't know the address to?