This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-ffunction-sections and gdb


Hi,

I have some code built with -ffunction-sections and running on a mip64
embedded platform. My code can be booted and ran. But when I'm using
list command in gdb with my image, gdb complains "no source file for
address".  I'm using gdb 5.0 and it configured as
"--host=sparc-sun-solaris2.6 --target=mips". My gcc is "gcc version
2.9-gnupro-99r1".

Gcc manual said that if you use -ffunction-sections, gdb may not work.

My question is:

Is there a fix or workaround for this problem?

Thanks

Yi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]