public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Debugging arm-eabi - no stack frame?
@ 2009-05-28  8:36 Stanislav Meduna
  2009-05-28  9:04 ` Nick Garnett
  0 siblings, 1 reply; 5+ messages in thread
From: Stanislav Meduna @ 2009-05-28  8:36 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I am trying to debug an ARM9 code compiled using arm-eabi-*
compilers installed with ecos 3.0 release. The code is
running in a skyeye emulator and is using its gdbserver.
As I don't have the real hardware, I am not able to test
how the internal eCos gdb support works - anyway,
I'd like to be able to debug the eCos kernel itself.

I am unable to do any backtraces (the emulator barfs
at trying to access adresses 0xfffffffc - f).

If I understand this correctly, the gdb expects r11 as
the frame pointer. However, this register is null -
no wonder this does not work.

Specifying -mapcs-frame and/or -fno-omit-frame-pointer
does not help.

Is this a known problem?

$ arm-eabi-gcc -v
Using built-in specs.
Target: arm-eabi
Configured with: /gnutools/src/toolchains/gcc/gcc-4.3.2/configure -v
--target=arm-eabi --prefix=/gnutools/builds/toolchains/arm-eabi/tools
--with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c,c++
--disable-__cxa_atexit --enable-threads
--with-bugurl=http://bugs.ecos.sourceware.org/
--with-pkgversion='eCosCentric GNU tools 4.3.2-sw'
--with-cpu=arm7tdmi
Thread model: single
gcc version 4.3.2 (eCosCentric GNU tools 4.3.2-sw)

$ arm-eabi-gdb -v
GNU gdb (eCosCentric GNU tools 4.3.2-sw) 6.8.50.20080706
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-cygwin --target=arm-eabi".
For bug reporting instructions, please see:
<http://bugs.ecos.sourceware.org/>.


eCos v3.0 Template: Samsung ARM9/SMDK2410 development board

Thanks
-- 
                                       Stano

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-29  7:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-28  8:36 [ECOS] Debugging arm-eabi - no stack frame? Stanislav Meduna
2009-05-28  9:04 ` Nick Garnett
2009-05-28  9:30   ` Stanislav Meduna
2009-05-28 10:44     ` Nick Garnett
2009-05-29  7:43       ` Stanislav Meduna

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).