I am trying to debug a small .asm file that I wrote in Ubuntu. However, I ran into a problem when my character table did not load and was looking for some help.
I compile my program as follows.
nasm -f elf -g -F dwarf bs.asm gcc -m32 -g bs.o -o bs
which creates the bs executable on startup
gdb bs
I get a message that does not indicate debugging symbols, and when I try to set a breakpoint on
b main
he says that the function is not defined, even if it is in the file, and I can run it using. / bs
I read a couple of posts that suggested adding a -F dwarf when building, but that didnβt help, if anyone has an understanding, I would really appreciate your input.
source share