To debug C program on assembly level

Andrew Haley aph@redhat.com
Fri Jul 10 17:08:00 GMT 2015


On 07/10/2015 06:03 PM, xparmenides wrote:
> 1. To debug at assembly level, the steps to compile is so complicated 
> that is somewhat impractical. Is there any way make the process easily?

Yes.  Compile your program C in the normal way, then:

b main
r
disp/i $pc
si
si
si

...

etc.

Andrew.



More information about the Gcc-help mailing list