Author Topic: How to debug program in firebird-emu with GDB?  (Read 3329 times)

0 Members and 1 Guest are viewing this topic.

Offline AdelCraft

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
How to debug program in firebird-emu with GDB?
« on: April 01, 2020, 08:05:46 pm »
Hi,

I'm note very familiar with GDB. I'm not able to debug my ndless application with GDB. I managed to connect to firebird-emu on port 3333 runnng this command:
Code: [Select]
arm-none-eabi-gdb -ex "target remote localhost:3333" myprogram.elfI have built the program with the -g flag to tell nspire-gcc to generate debug symbols. Now how do I debug? I tried typing the GDB command "run", but it says that the remote target doesn't supports "run". I tried setting a breakpoint, typing "continue" and running the program from the calculator's file explorer, but it didn't breaked.

Could someone who has succeeded show me an example of a debugging session?
Thanks.