title: How to simulate an ARM processor run-time environment and load a Linux kernel module into it?
body: <p>I try to load my <code>vmlinux</code> into <code>gdb</code> and use an ARM core simulator. </p>
  
  <p>But I can't understand why do I get <code>Undefined target command: "sim".</code>:</p>
  
  <p>Here is the shell output:</p>
  
  <pre><code>$ arm-eabi-gdb vmlinux
  GNU gdb (GDB) 7.3.1-gg2
  Copyright (C) 2011 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
  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=x86_64-linux-gnu --target=arm-linux-android".
  For bug reporting instructions, please see:
  &lt;http://www.gnu.org/software/gdb/bugs/&gt;...
  Reading symbols from /repo/kernel/kernel/vmlinux...done.
  (gdb) target sim
  Undefined target command: "sim".  Try "help target".
  (gdb) help target
  Connect to a target machine or process.
  The first argument is the type or protocol of the target machine.
  Remaining arguments are interpreted by the target protocol.  For more
  information on the arguments for a particular protocol, type
  `help target ' followed by the protocol name.
  
  List of target subcommands:
  
  target core -- Use a core file as a target
  target exec -- Use an executable file as a target
  target extended-remote -- Use a remote computer via a serial line
  target record -- Log program while executing and replay execution from log
  target record-core -- Log program while executing and replay execution from log
  target remote -- Use a remote computer via a serial line
  target tfile -- Use a trace file as a target
  </code></pre>