Vale tanto para emulador como para un raspberry fisico
Compilar
as intro2.s -o intro2.o -g gcc intro2.o -o intro2 -o objfile Name the object-file output from as objfile.
as: Parámetro -g –gen-debug: Generate debugging information for each assembler source line using whichever debug format is preferred by the target. This currently means either STABS, ECOFF or DWARF2.
Ejecutar debugger con la info de debugin grabada por as
gdb nombreejecutable