Hello all:
I need some suggestions for debugging inline assembler.
I use GCC and GDB.
GDB seems not to debug machine-level code writing in C language,
so I need to use gcc with parameter "-S" to output *.s files,
then use "as -a -gstabs -o an_output_object.o a_source_file.s" to compile and create object files
and put these object files instead of the old files that gcc compiled in Code::Blocks,
finally I use gcc to link.
After I do these steps above manually,
I just can use GDB to debug the asm codes step by step.
Are there some beautiful and automatic methods to handle with Code::Blocks?
I tried to add some commends in Tools menu item,
but the macros is not enough to solve this problem well.
Besides, I wonder if Code::Blocks will support to compile asm files in the future?
I have glanced at two old threads:
http://forums.codeblocks.org/index.php/topic,971.0.htmlhttp://forums.codeblocks.org/index.php/topic,4783.0.htmlAnd edit the File Types & Categories to add *.s file type as sources.
But when I compile the file or buld it, Code::Blocks shows "Nothing to be done.". :shock: