I used kgdb serial interconnect two virtual machines , the system kernel is 3.2 , has been the target machine can debug the kernel , and then if I want to debug a module's init function insmod how to do , as well as make which option to add modules debugging information ? More search online version kernel version is not the same tried and nothing effects which can greatly pointers pointing to the point of detailed steps
------ Solution ----------- ---------------------------------
serial driver you need to add two methods , you can achieve atomic and the output means reads a character .
then configure it to use kgdb serial communication on it.
------ For reference only -------------------------------------- -
in struct uart_ops achieve poll_put_char and poll_get_char these two methods
------ For reference only -------------------- -------------------
has been resolved , make heel CONFIG_DEBUG_INFO = 1 or CC = gcc-g can compile a module with debug information
commissioning me directly in the init init add int3 breakpoint instruction forcibly interrupted when loading the OK
没有评论:
发表评论