Dance vdsp with uCLinux (5): Add dwarf debugging information

Source: Internet
Author: User

Happy shrimp

Http://blog.csdn.net/lights_joy/

Lights@hb165.com

 

This article applies

ADSP-BF561

Visual DSP ++ 5.0 (Update 6)

Bfin-uclinux-2009r1.6

 

Reprinted, but keep the author information

 

 

Next try to generate detailed dwarf debugging information in the uClinux kernel, open the linux-2.6.x/makefile, find this line:

Kbuild_cflags: =-wall-wundef-wstrict-prototypes-wno-trigraphs/

-Fno-strict-aliasing-fno-Common/

-Werror-implicit-function-Declaration

Add the following two options:

Kbuild_cflags: =-wall-wundef-wstrict-prototypes-wno-trigraphs/

-Fno-strict-aliasing-fno-Common/

-Werror-implicit-function-declaration-gdwarf-2-G3

In the vdsp loaded uClinux, interrupted to read the vmlinux, note, is the linux-2.6.x/directory of vmlinux, rather than the images directory of vmlinux:

Don't want to prompt there was an error reading the dwarf ....

After checking the objdump, a lot of debugging information has been added. It seems that although both vdsp and GCC support dwarf, there are still differences in implementation, So we should let it go first, try other things.

 

 

 

 

1 References

Dancing vdsp with uCLinux (4): loading uClinux)

Dancing vdsp with uCLinux (3): boot kernel)

Dancing vdsp with uCLinux (2): Impact of vdsp)

Dancing vdsp with uCLinux (1): Opening)

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.