From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23438 invoked by alias); 28 May 2009 08:36:22 -0000 Received: (qmail 23430 invoked by uid 22791); 28 May 2009 08:36:21 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from www.meduna.org (HELO meduna.org) (92.240.244.38) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 May 2009 08:36:14 +0000 Received: from [78.141.95.31] (helo=[192.168.130.27]) by meduna.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1M9b5s-0005M2-EL for ecos-discuss@ecos.sourceware.org; Thu, 28 May 2009 10:36:10 +0200 Message-ID: <4A1E4CEC.8000407@meduna.org> Date: Thu, 28 May 2009 08:36:00 -0000 From: Stanislav Meduna User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Authenticated-User: stano@meduna.org X-Authenticator: dovecot_plain X-Spam-Score: -8.0 X-Spam-Score-Int: -79 X-Exim-Version: 4.69 (build at 30-Sep-2008 18:26:44) X-Date: 2009-05-28 10:36:10 X-Connected-IP: 78.141.95.31:2207 X-Message-Linecount: 61 X-Body-Linecount: 51 X-Message-Size: 2167 X-Body-Size: 1814 X-Received-Count: 1 X-Recipient-Count: 1 X-Local-Recipient-Count: 1 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Debugging arm-eabi - no stack frame? X-SW-Source: 2009-05/txt/msg00126.txt.bz2 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 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: . 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