Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

How to generate vmlinux with debug symbols.

Hi All,

I want to use the debugger.

Therefore, I'm want to generate a vmlinux with debug symbols.

Have the following settings in Menuconfig.

Linux Kernel v2.6.30 Configration
  Kernel hacking  ---> 
kernel debugging
                       
Compile the kernel with debug info

I think that the following changes.

But, vmlinux with debug symbols is not generated.

top\linux-2.6\Makefile
ifdef CONFIG_DEBUG_INFO
KBUILD_CFLAGS    += -g
KBUILD_AFLAGS    += -gdwarf-2
endif

Vmlinux with debug symbols will be generated What should I do?

thanks a lot,

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi All,

    Worked by "make mrproper" and "make clean".

    The following is a reference.

    Linux Kernel v2.6.30 Configration
      Kernel hacking  ---> 
    kernel debugging
                           
    Compile the kernel with debug info
                           
    uClinux Distribution v4.0 Configration
      Debug Build   ---> 
    build debugable libraries
                         
    build debugable applications
    
    Thanks to all.