Re: Break point not hit while debugging linux kernel with kgdb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 06/09/2012 10:23 PM, Anil Nair wrote:

Hi,

I tried to debug the linux kernel with kgdb (over serial port).

The Maintainers would never recommend the use of a debugger, it
results in poorly fixed patches.

Yeah, KGDB was accepted into kernel exactly for more "poorly fixed patches" to appear. :-)

I have
configured the host and target machines and I am able to connect, step
in the kernel code. In gdb I gave "break usb_register_dev" and "break
usb_deregister_dev" and continued the execution (continue in gdb).
Once the desktop is up, I connected a USB device (first tried with USB
keyboard). Break point was not hit. I tried some more functions and
break points are never hit. What should I do for it? Am I missing
something?

You have to use gdbserver

   gdbserver is only good for debugging the applications.

WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux