public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Stanislav Meduna <stano@meduna.org>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Debugging arm-eabi - no stack frame?
Date: Thu, 28 May 2009 08:36:00 -0000	[thread overview]
Message-ID: <4A1E4CEC.8000407@meduna.org> (raw)

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

             reply	other threads:[~2009-05-28  8:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-28  8:36 Stanislav Meduna [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A1E4CEC.8000407@meduna.org \
    --to=stano@meduna.org \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).