Using KVM to debug Kernel.

2011-01-11 Thread Prudhvi Krishna Surapaneni
Hi List,

I am trying to use KVM to debug Linux kernel with GDB. However, when i
set a break-point at start_kernel,
it doesn't break at the function. It continues without any break-point.

The kvm cmd line i used:

kvm -s -S -had /dev/zero -kernel
/home/prudhvi/kbuilds/linux-2.6.37/arch/x86/boot/bzImage

How should i go about getting this to work?.

Thanks,

Prudhvi Krishna Surapaneni.
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Using KVM to debug Kernel.

2011-01-11 Thread Prudhvi Krishna Surapaneni
Hi!,

Just a note. I tested this on the latest snapshot from the git repo.
It still looks like
the problem exists.

kvm -version
0.13.50

Is this a problem or am i doing it plain wrong?. Is this not a way to
debug a kernel?

Thanks,
Prudhvi Krishna Surapaneni.
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html