traza de la pila de impresión en arm-linux
Seguí este post para imprimir el seguimiento de la pilaCómo generar un seguimiento de pila cuando mi aplicación gcc C ++ se bloquea . Funciona bien en linux x86. ¿Puede alguien enseñarme cómo hacer que funcione en arm-linux?
Estoy usando arm-linux-gcc 4.4.3.
[root@FriendlyARM /]# ./test1
Error: signal 11:
[0x0]
en x86
mickey@mickeyvm:~/Desktop/workspace/test/testCatchSeg/src$ ./test1
Error: signal 11:
./test1(_Z7handleri+0x19)[0x804876d]
[0xedd400]
./test1(_Z3bazv+0x10)[0x80487c2]
./test1(_Z3barv+0xb)[0x80487e1]
./test1(_Z3foov+0xb)[0x80487ee]
./test1(main+0x22)[0x8048812]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x84de37]
./test1[0x80486c1]
Así es como compilo para arm-linux.
arm-linux-g++ -g -rdynamic ./testCatchSeg.cpp -o testCatchSeg