This is the mail archive of the gcc@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]

Debugging with gdb


Hi,
I have a bit of C code and i want to set a breakpoint in gdb just before
an area that generates some rtl. I want to be able to step thru some
backend code in gcc/config/avr/avr.c.

I got an output listing from my program:

  16:main.c        ****     uint16_t reg=16000000/(16*baud) - 1;
  76               	.LM3:
  77               	 ; (insn 11 10 13 main.c:16 (set (reg:HI 24 r24 [orig:43 baud ] [43])
  78               	 ;         (mem/f:HI (plus:HI (reg/f:HI 28 r28)
  79               	 ;                 (const_int 1 [0x1])) [0 baud+0 S2 A16])) 12 {*movhi} (nil)
  80               	 ;     (nil))
  81 0010 8981      		ldd r24,Y+1	 ;  11	*movhi/2	[length = 2]
  82 0012 9A81      		ldd r25,Y+2

Where do i set gdb in the gcc code so that i can step thru the generation
of rtl output in a high-level kind of way?


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