title: print stack trace in arm-linux
body: <p>I followed this post to print stack trace <a href="https://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes">How to generate a stacktrace when my gcc C++ app crashes</a> .  It works well in x86 linux. Can anyone teach me how to make it work on arm-linux?</p>
  
  <p>I am using arm-linux-gcc 4.4.3.</p>
  
  <pre><code>[root@FriendlyARM /]# ./test1
  Error: signal 11:
  [0x0]
  </code></pre>
  
  <p>in x86</p>
  
  <pre><code>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]
  </code></pre>
  
  <p>This is how I compile for arm-linux</p>
  
  <pre><code> arm-linux-g++ -g -rdynamic ./testCatchSeg.cpp -o testCatchSeg
  </code></pre>