Calculator Community > Calculator C

How to debug program in firebird-emu with GDB?

(1/1)

AdelCraft:
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: ---arm-none-eabi-gdb -ex "target remote localhost:3333" myprogram.elf
--- End code ---
I 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.

Navigation

[0] Message Index

Go to full version