|
From: Grzegorz H. <grz...@gm...> - 2008-10-01 07:43:13
|
Hello !
Show me how you invoke gdb. It should be something like that:
sh4-linux-gdb --core=CORE HELLOWORLD
where CORE is your core file and HELLOWORLD is you app. Also make sure
you HELLOWORLD app is build in debug mode.
Cheers
Greg.
2008/10/1 <rdt...@gm...>:
> Hi all,
>
> First of all sorry to send an email to linuxsh-dev list directly, I
> doing it because my attempt to use lin...@m1... fail (its site is
> down).
>
> My problem:
> I trying to analyse a core-dump of "Hello-world" like app that is
> running on SH4-STLinux, but it fails.
>
> gdb gives me :
>
> (gdb) bt full
> #0 0x297382d4 in raise () from
> /opt/7109/STM/STLinux-2.2/devkit/sh4/bin/../target/lib/libc.so.6
> No symbol table info available.
> #1 0x29739dd6 in abort () from
> /opt/7109/STM/STLinux-2.2/devkit/sh4/bin/../target/lib/libc.so.6
> No symbol table info available.
> Cannot access memory at address 0x7b916ff8
>
>
> My program code:
>
> #include <stdlib.h>
>
> extern void m1();
>
> static int count = 0;
>
> void m3(){
> if (count++ > 2)
> abort();
> m1();
> }
>
> void m2(){
> m3();
> }
>
> void m1 (){
> m2();
> }
>
> int
> main (int argc, char* argv[]) {
> m1();
> return 0;
> }
>
> I compiled it with /opt/STM/STLinux-2.2/devkit/sh4/bin/sh4-linux-g++
> -g -o mysand sandbox.cpp
>
> I've tried -fstack-protector-all option without success too.
>
> Before running it on STLinux I'm running: ulimited -c unlimited.
>
>
> Do you have any idea why the stack of my core-dump is broken ?
>
>
> Thanks in advance,
> Rafael Torres
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> linuxsh-dev mailing list
> lin...@li...
> https://lists.sourceforge.net/lists/listinfo/linuxsh-dev
>
|