title: Remote Debugging with GDB: Program dies after SIGILL, Illegal instruction
body: <p>I am trying to debug code on an ARMv6-compatible processor rev 4.</p>
  
  <p>I compiled the GDBserver with the <code>--host=arm-openwrt-linux-gnueabi</code> flag.
  The gdb itself is compiled with  </p>
  
  <pre><code>   --host=x86_64-unknon-linux-gnu --target=arm-openwrt-linux-gnueabi --with-expat
  </code></pre>
  
  <p>If I now connect to the gdbserver in, my program is running in, I get the following error message:</p>
  
  <pre><code>(gdb) target remote 192.168.x.x:2345
  Remote debugging using 192.168.x.x:2345
  Cannot access memory at address 0x0
  0xb6fdaec0 in ?? ()
  (gdb) set sysroot /home/xxxxxx/Dokumente/lgn-sdk-v0.2/staging_dir/toolchain-arm_v6k_gcc-4.6-linaro_eglibc-2.15_eabi/
  Reading symbols from /home/xxxxxx/Dokumente/lgn-sdk-v0.2/staging_dir/toolchain-arm_v6k_gcc-4.6-linaro_eglibc-2.15_eabi/lib/ld-linux.so.3...done.
  Loaded symbols for /home/xxxxxxx/Dokumente/lgn-sdk-v0.2/staging_dir/toolchain-arm_v6k_gcc-4.6-linaro_eglibc-2.15_eabi/lib/ld-linux.so.3
  (gdb) n
  Single stepping until exit from function _start,
  which has no line number information.
  
  Program received signal SIGILL, Illegal instruction.
  0xb6fe8d20 in _dl_debug_initialize () from /home/xxxxx/Dokumente/lgn-sdk-v0.2/staging_dir/toolchain-arm_v6k_gcc-4.6-linaro_eglibc-2.15_eabi/lib/ld-linux.so.3
  (gdb)  
  Single stepping until exit from function _dl_debug_initialize,
  which has no line number information.
  
  Program terminated with signal SIGILL, Illegal instruction.
  </code></pre>