Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Another option is to use <a href="http://en.wikipedia.org/wiki/In-circuit_emulator" rel="nofollow noreferrer">ICE</a>/JTAG controler, and GDB. This 'hardware' solution is especially used with embedded systems, </p> <p>but for instance Qemu offers similar features: </p> <ul> <li><p>start qemu with a gdb 'remote' stub which listens on 'localhost:1234' : <code>qemu -s ...</code>, </p></li> <li><p>then with GDB you open the kernel file <code>vmlinux</code> compiled with debug informations (you can take a look a <a href="https://lkml.org/lkml/2010/11/28/211" rel="nofollow noreferrer">this</a> mailing list thread where they discuss the unoptimization of the kernel).</p></li> <li><p>connect GDB and Qemu: <code>target remote localhost:1234</code></p></li> <li><p>see you're <em>live</em> kernel:</p> <pre><code>(gdb) where #0 cpu_v7_do_idle () at arch/arm/mm/proc-v7.S:77 #1 0xc0029728 in arch_idle () atarm/mach-realview/include/mach/system.h:36 #2 default_idle () at arm/kernel/process.c:166 #3 0xc00298a8 in cpu_idle () at arch/arm/kernel/process.c:199 #4 0xc00089c0 in start_kernel () at init/main.c:713 </code></pre></li> </ul> <p>unfortunately, user-space debugging is not possible so far with GDB (no task list information, no MMU reprogramming to see different process contexts, ...), but if you stay in kernel-space, that's quite conveniant.</p> <ul> <li><code>info threads</code> will give you the list and states of the different <em>CPUs</em></li> </ul> <p><strong>EDIT:</strong></p> <p>You can get more details about the procedure in this PDF: </p> <blockquote> <p><a href="http://files.meetup.com/1590495/debugging-with-qemu.pdf" rel="nofollow noreferrer">Debugging Linux systems using GDB and QEMU</a>.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload