KasperskyOS Community Edition 1.3

Debugging programs using the QEMU GDB server

The GDB server of QEMU has the following distinguishing characteristics:

  • Does not recognize processes and threads managed by KasperskyOS.

    All processes managed by KasperskyOS are viewed as one process by the GDB server of QEMU. This process includes one or more threads depending on how many threads can be executed at the same time on the hardware platform emulated by QEMU. Therefore, the processes and threads handled by the GDB server of QEMU are not considered to be processes and threads managed by KasperskyOS.

  • Does not guarantee debug capabilities for QEMU emulation of hardware platforms employing symmetric multiprocessing (SMP).

    The GDB server of QEMU can be used during QEMU emulation of hardware platforms employing SMP. However, GDB commands for step-by-step execution of a program may fail (for example, next and step).

In this section

Preparations for debugging

Initial steps of debugging

Special considerations for debugging emulated hardware platforms with SMP