Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Oxy

macrumors newbie
Original poster
Nov 5, 2009
2
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.