Questions tagged [kgdb]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

How to compile kernel without optimizing scheduler

I have developed an application demonstrating priority inversion in linux kernel and now I want to prove it by capturing certain context switches using kgdb. I have working setup to debug kernel on ...
0
votes
1answer
910 views

Build the Linux kernel without gcc optimization

I follow one of many tutorials found on Google results to build and debug the Linux kernel with gcc and kgdb/gdb. And I end up by discovering that is all waste of time. Since I can't compile the ...
3
votes
0answers
593 views

How to run kernel in debug mode and wait for KGDB with Virtualbox and Kali Linux?

I am trying to debug a Linux kernel using Virtualbox, but I cannot get it working. Here is what I've done. Compile Kernel with the following configuration CONFIG_HAVE_ARCH_KGDB=y CONFIG_KGDB=y ...
1
vote
0answers
1k views

Linux Kernel module Remote Debugging with GDB + KGDB, Remote 'g' packet reply is too long

I am trying to remotely debug Linux Kernel and I am having issues. My setup: Target machine with Ubnutu Linux with my custom kernel 4.3 which I built with debugging information and KGDB. ...
1
vote
0answers
2k views

"disagrees about version" message

I get a message "disagrees about version" on boot time, after compiling kernel and modules with KGDB. Why should this happen ? Is there any problem with KGDB ? This is the relevant log at boot: ...
1
vote
1answer
254 views

kgdb fail to start

I'm struglling for some time to make kgdb work in my sytsem, but meanwhile it does not. I'm using TI's SDK which based on 2.6.37 git. When trying to work with serial, I always get the following ...
2
votes
1answer
714 views

sysrq-trigger doesn't accept parameter 'g'

I'm trying to debug the kernel. But I couldn't trigger kgdb with echo g > /proc/sysrq-trigger, it just prints help message. I have enabled kernel debugging, kgdb over serial, frame pointer etc. ...