PDA

View Full Version : [Assembly, GCC and GDB] make gdb's "list" command working




Oxy
Nov 5, 2009, 12:13 PM
Hello to everybody!

I write small assembly programs and I've a problem debugging them.

If I write a C program and I compile it with the -g option, gcc makes also a .dSYM bundle. When I debug the executable file with gdb I can use the list command to see some lines of the code I wrote.

But if I write an assembly program and I compile it with the -g option, gcc does not make any extra file apart the executable. So when I debug it I can't use the list command because I get the following error:
No symbol table is loaded. Use the "file" command.

What should I do to make the list command working with assembly-written programs?

Thank you in advance for any answer.