I was just wondering if it were possible to debug system libraries built into the Android source you compile from the AOSP source code (like for community ROMs and such). Kernel debugging on the device would be awesome.
It is somewhat unclear to us what exactly do you want to debug. Could you give us a concrete example?
If you want to debug system libraries (built with debug symbols, probably by yourself!) you should debug them through an app or a native executable. That should not require kernel debugging.