From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Edwards To: danish iftikhar Cc: fnasser@cygnus.com, gdb@sourceware.cygnus.com Subject: Re: Jeeni & ARM720T with GDB Date: Wed, 22 Nov 2000 06:36:00 -0000 Message-id: <20001122083920.C15146@visi.com> References: X-SW-Source: 2000-11/msg00228.html On Wed, Nov 22, 2000 at 10:35:04AM -0000, danish iftikhar wrote: > After load Pc shows the address : 0x8060 > > The start uo code is : > (gdb) x/30i $pc > 0x8060 : mrs r7, cpsr > 0x8064 : and r7, r7, #31 ; 0x1f > 0x8068 : cmp r7, #19 ; 0x13 > 0x806c : beq 0x80a0 That looks right. > i am not able to do step or cont but using stepi i went through this > startup function . It seems to loop around between 0x815c & 0x8164 and is > not going ahead of that . > the code at this address is as follows : > > 0x8154 : cmp r1, r2 > - 0x8158 : beq 0x8168 > - 0x815c : str r0, [r1], #4 > - 0x8160 : cmp r1, r2 > - 0x8164 : bne 0x815c > - 0x8168 : bl 0x1f194 > - 0x816c : bl 0x1ee10 > > - 0x8170 : bl 0x1f358 It looks to me like the debugger and emulator are working fine. The loop you're looking at is zeroing out the bss section. R2 should contain the address of the end of bss, and R1 should start at the beginning of bss and increment through the whole section. This loop will probably execute tens of thousands of times, so you can get pretty bored doing a stepi... Do the addresses in R1 and R2 correspond to your bss section? Can you set a breakpoint immediately following the loop and do a cont? -- Grant Edwards grante@visi.com