Debugging a linux kernel module using serial port

1.4k Views Asked by At

I'm trying to setup simple kernel debugging, I have a 3.2.6 kernel on VM (ESXi), which I declared a serial port (I manage to connect to the serial )

Debugger:

Debugger Screenie

Debuggee:

Debugee Screenie

I followed this tutorial on how to setup gdb, and I seem to be getting replies (the serial port seems to be fine) when I start debugging, however gdb is getting junk and doesn't manage to debug anything,

I encountered a thread on lkml from 2k10 which stated a similar problem on 2.6.35 kernel, however a patch has been committed (I guess went into mainstream) and I'm trying to debug 3.2.6

This is what I'm getting from gdb : GDB Output

and here's a the output from the vm: VM Output

Can anyone hint me on how to solve it ?

(If any mod could edit my message and transform all images to real images and links to real links that would be awesome too, the system didn't allow that and I have to edit my post 4-5 times before posting :/ )

0

There are 0 best solutions below