* -ffunction-sections and gdb
@ 2005-07-27 18:05 Yi Sun
2005-07-27 18:10 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Yi Sun @ 2005-07-27 18:05 UTC (permalink / raw)
To: 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: -ffunction-sections and gdb
2005-07-27 18:05 -ffunction-sections and gdb Yi Sun
@ 2005-07-27 18:10 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-07-27 18:10 UTC (permalink / raw)
To: Yi Sun; +Cc: gdb
On Wed, Jul 27, 2005 at 11:05:22AM -0700, Yi Sun wrote:
> 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?
Sorry, but that version of GDB is so old that we can't help you with
it. You may want to try a more recent version of GDB.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: -ffunction-sections and gdb
2005-07-27 22:29 Yi Sun
@ 2005-07-28 4:11 ` Ramana Radhakrishnan
0 siblings, 0 replies; 4+ messages in thread
From: Ramana Radhakrishnan @ 2005-07-28 4:11 UTC (permalink / raw)
To: Yi Sun; +Cc: Daniel Jacobowitz, gdb
On Wed, 2005-07-27 at 15:29 -0700, Yi Sun wrote:
> Hi Daniel,
> I've tried it on the latest gdb (6.3), however it is still not working.
> ~> ~/gdb-6.3/gdb/gdb *.elf
2 things you could try out:
1. Does this exist with more recent versions of gcc.
2. Post a testcase with a FSF version of gcc somewhere here,a pruned
testcase would help anyone who wanted to take a look at this.
cheers
Ramana
>
> GNU gdb 6.3
>
> Copyright 2004 Free Software Foundation, Inc.
>
> GDB is free software, covered by the GNU General Public License, and you
> are
>
> welcome to change it and/or distribute copies of it under certain
> conditions.
>
> Type "show copying" to see the conditions.
>
> There is absolutely no warranty for GDB. Type "show warranty" for
> details.
>
> This GDB was configured as "--host=sparc-sun-solaris2.9
> --target=mips"...
>
> (gdb) list *syn_cookie_ager
>
> No source file for address 0x18e33d8.
>
> (gdb)
>
> Do you have any suggestions? As long as -ffunction-sections is removed
> from my cflags everthing will be ok.
> Yi
>
>
>
>
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@false.org]
> Sent: Wednesday, July 27, 2005 11:11 AM
> To: Yi Sun
> Cc: gdb@sources.redhat.com
> Subject: Re: -ffunction-sections and gdb
>
>
> On Wed, Jul 27, 2005 at 11:05:22AM -0700, Yi Sun wrote:
> > 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?
>
> Sorry, but that version of GDB is so old that we can't help you with it.
> You may want to try a more recent version of GDB.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: -ffunction-sections and gdb
@ 2005-07-27 22:29 Yi Sun
2005-07-28 4:11 ` Ramana Radhakrishnan
0 siblings, 1 reply; 4+ messages in thread
From: Yi Sun @ 2005-07-27 22:29 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
Hi Daniel,
I've tried it on the latest gdb (6.3), however it is still not working.
~> ~/gdb-6.3/gdb/gdb *.elf
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "--host=sparc-sun-solaris2.9
--target=mips"...
(gdb) list *syn_cookie_ager
No source file for address 0x18e33d8.
(gdb)
Do you have any suggestions? As long as -ffunction-sections is removed
from my cflags everthing will be ok.
Yi
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org]
Sent: Wednesday, July 27, 2005 11:11 AM
To: Yi Sun
Cc: gdb@sources.redhat.com
Subject: Re: -ffunction-sections and gdb
On Wed, Jul 27, 2005 at 11:05:22AM -0700, Yi Sun wrote:
> 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?
Sorry, but that version of GDB is so old that we can't help you with it.
You may want to try a more recent version of GDB.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-07-28 4:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-27 18:05 -ffunction-sections and gdb Yi Sun
2005-07-27 18:10 ` Daniel Jacobowitz
2005-07-27 22:29 Yi Sun
2005-07-28 4:11 ` Ramana Radhakrishnan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).