Kaspersky IoT Secure Gateway 1000 SDK

Connecting a debugger when a program is running in QEMU or on a Kaspersky IoT Secure Gateway 1000 device

July 30, 2024

ID 270323

To connect a debugger to the kernel GDB server when a program is running in QEMU or on a Kaspersky IoT Secure Gateway 1000 device:

  1. Build the program as described in the section titled Building and running the first program.
  2. Run the Kaspersky IoT Secure Gateway 1000 image in QEMU as described in the Building and running the first program section, or turn on the Kaspersky IoT Secure Gateway 1000 device.
  3. Wait for Kaspersky IoT Secure Gateway 1000 to finish loading and install the program by running the kosctl app install command.
  4. Run the program by using the kosctl app start command.
  5. Get the process ID of the running program by executing the kosctl gdb list command.
  6. Connect the debugger by running the kosctl gdb attach command.

    After connecting the debugger to the kernel GDB server, you can follow the instructions from the Starting program debugging section.

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.