Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12590 Discussions

How to generate vmlinux with debug symbols.

Altera_Forum
Honored Contributor II
1,885 Views

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,
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
823 Views

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.
0 Kudos
Reply