This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: To debug C program on assembly level
- From: Andrew Haley <aph at redhat dot com>
- To: xparmenides <xparmenides at yahoo dot com>, gcc-help at gcc dot gnu dot org
- Date: Fri, 10 Jul 2015 18:08:53 +0100
- Subject: Re: To debug C program on assembly level
- Authentication-results: sourceware.org; auth=none
- References: <559FFAC9 dot 308 at yahoo dot com>
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.