Re: Kernel with debugging info

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

 



On Mon, 2002-05-13 at 19:27, Christine Ames wrote:
> --- Frank Schaefer <frank.schafer@setuza.cz> wrote:
> > Hi there,
> > 
> > Does anybody know, how to build a kernel with debug info? There
> > isn't a
> > appropriate option in ``make *config''.
> > Will it be sufficient to add the -g switch to the CFLAGS in the
> > main
> > Makefile?
> > 
> 
> Hmmm...debug info...  Are you talking about using kdbg or some other
> debugger?

Yes, I try to setup kgdb / kdb.

> In that case, you need to patch the kernel to make debugging options
> available.  After patching, you rebuild your kernel.  The patch makes
> available new options under "Kernel Hacking" when using xconfig.
> 
> For the patch, FAQ, etc. see http://kgdb.sourceforge.net/

I know that, and I have the patches for kdb and kgdb. But if I configure
the kernel I still don't see any -g during the kernel build. Maybe I've
overseen them. I'll build onesmore this evening sending the output of
make into a log.

Thanks for your reply
Frank


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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