Re: Debugging functions for kernel modules

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

 



Hi all..


> Hi Arshad,
>
> Printing values for the structures from the debugger is good for
> userspace programs, because we all know that running kernel through
> gdb is not an easy job for a newbie. Also virtualization softwares
> like UML still don't work 100% with gdb so I thought printing values
> would be a simple and useful idea.

Perhaps you can consider following recipe (basically still using gdb):
1. prepare Qemu and linux disk image
2. Compile Linux kernel with DEBUG_INFO and CONFIG_FRAME_POINTER
3.  Configure Qemu to execute this kernel. Make Qemu to initialize
gdbserver, and connect gdb client to Qemu. Then inside gdb, dump the
structure, print variables or anything you want.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux