For the sake of project organization I split my project into multiple files using %include "alloc.s"
, but now I have the problem that I can not view the lines of assembly with GDB I am using the command nasm -f elf64 -o main.o main.s -g && ld main.o -o main && gdb main
to compile the assembly. How can I get NASM and GDB to properly display the lines of assembly that it is running?
I am using NASM version 2.15.05 and GDB version 10.2.