This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: To debug C program on assembly level


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]