How we use GDB on LKMs today
Posted Jun 25, 2004 18:37 UTC (Fri) by corbet
In reply to: How we use GDB on LKMs today
Parent article: Debugging kernel modules
"People debug loadable kernel modules with GDB all the time by using the -m option on 'insmod' to get that section location information."
Yes, people do that when developing for 2.4 kernels, where insmod has a clue of where the sections live. In 2.6, the section layout is done inside the kernel itself, so insmod could not tell you where the sections ended up even if it did still support the -m option, which it doesn't...
to post comments)