From: "danish iftikhar" <d_iftikhar@hotmail.com>
To: fnasser@cygnus.com
Cc: grante@visi.com, gdb@sourceware.cygnus.com
Subject: Re: Jeeni & ARM720T with GDB
Date: Wed, 22 Nov 2000 02:35:00 -0000 [thread overview]
Message-ID: <F2693AmsfGdMNFmWAFs00000388@hotmail.com> (raw)
>From: Fernando Nasser <fnasser@cygnus.com>
>To: danish iftikhar <d_iftikhar@hotmail.com>
>CC: grante@visi.com
>Subject: Re: Jeeni & ARM720T with GDB
>Date: Wed, 22 Nov 2000 07:30:20 +0000
>
>Danish,
>
>I believe we need mode information. The log seems normal to me.
>
>What is the value of the PC (P/x $pc) after the load?
>
>Can you do a "x/30i $pc" so we see the startup code?
>
>When you do "break main", what is printed?
>
>And, maybe before all that, what was the exact command you've used to
>compile?
>
>What is the output when you add "-v" to your gcc command?
>
>Fernando
>
***************************************************
Hi
i am enclosing all the information that u have asked for :
arm-elf-gcc -v
Reading specs from
/proj/danish/ECOS_EP7211/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.2/specs
gcc version 2.95.2 19991024 (release)
the command i am using to compile is :
CXX = arm-elf-gcc -mcpu=arm7tdmi -D__EDB7211
arm-elf-gdb -v
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf".
After load Pc shows the address : 0x8060
The start uo code is :
(gdb) x/30i $pc
0x8060 <warm_reset>: mrs r7, cpsr
0x8064 <warm_reset+4>: and r7, r7, #31 ; 0x1f
0x8068 <warm_reset+8>: cmp r7, #19 ; 0x13
0x806c <warm_reset+12>: beq 0x80a0 <start>
0x8070 <warm_reset+16>: mov r0, #0 ; 0x0
0x8074 <warm_reset+20>: str r0, [r0, #64]
0x8078 <warm_reset+24>: ldr r1, [pc, #4c0] ; 0x8540 <_eCos_id+20>
0x807c <warm_reset+28>: ldr r2, [r1, #4]
0x8080 <warm_reset+32>: str r2, [r0, #4]
0x8084 <warm_reset+36>: ldr r2, [r1, #36]
0x8088 <warm_reset+40>: str r2, [r0, #36]
0x808c <warm_reset+44>: ldr r2, [r1, #8]
0x8090 <warm_reset+48>: str r2, [r0, #8]
0x8094 <warm_reset+52>: ldr r2, [r1, #64]
0x8098 <warm_reset+56>: str r2, [r0, #40]
0x809c <warm_reset+60>: swi 0x00000000
0x80a0 <start>: ldr r0, [pc, #474] ; 0x851c <.init_flag>
0x80a4 <start+4>: ldr r1, [r0]
0x80a8 <start+8>: cmp r1, #0 ; 0x0
0x80ac <start+12>: bne 0x80a8 <start+8>
0x80b0 <start+16>: ldr r1, [pc, #c8] ; 0x8180 <init_done>
0x80b4 <start+20>: str r1, [r0]
0x80b8 <start+24>: mov r0, #0 ; 0x0
0x80bc <start+28>: ldr r1, [pc, #454] ; 0x8518
<.__exception_handlers>
0x80c0 <start+32>: cmp r7, #19 ; 0x13
0x80c4 <start+36>: beq 0x80d0 <start+48>
0x80c8 <start+40>: ldr r2, [r1, #40]
0x80cc <start+44>: str r2, [r0, #40]
0x80d0 <start+48>: ldr r2, [r1, #24]
0x80d4 <start+52>: str r2, [r0, #24]
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 <start+180>: cmp r1, r2
- 0x8158 <start+184>: beq 0x8168 <start+200>
- 0x815c <start+188>: str r0, [r1], #4
- 0x8160 <start+192>: cmp r1, r2
- 0x8164 <start+196>: bne 0x815c <start+188>
- 0x8168 <start+200>: bl 0x1f194 <hal_hardware_init>
- 0x816c <start+204>: bl 0x1ee10
<cyg_hal_invoke_constructors>
- 0x8170 <start+208>: bl 0x1f358 <cyg_start>
umm when i do a break main , the reply is :
gdb) break main
Breakpoint 1 at 0x8558: file App.c
Hoping to get an early reply from your side
thanks
danish.
_____________________________________________________________________________________
Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
next reply other threads:[~2000-11-22 2:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-22 2:35 danish iftikhar [this message]
2000-11-22 6:36 ` Grant Edwards
-- strict thread matches above, loose matches on Subject: below --
2000-11-22 23:15 danish iftikhar
2000-11-24 17:34 ` Grant Edwards
2000-11-20 22:23 danish iftikhar
2000-11-21 9:36 ` Fernando Nasser
2000-11-20 8:06 danish iftikhar
2000-11-20 8:48 ` Fernando Nasser
2000-11-20 9:01 ` Michael Leibowitz
2000-11-20 9:18 ` Fernando Nasser
2000-11-20 14:28 ` Grant Edwards
2000-11-20 14:27 ` Grant Edwards
2000-11-20 15:34 ` Michael Leibowitz
2000-11-20 15:43 ` Grant Edwards
2000-11-20 14:25 ` Grant Edwards
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F2693AmsfGdMNFmWAFs00000388@hotmail.com \
--to=d_iftikhar@hotmail.com \
--cc=fnasser@cygnus.com \
--cc=gdb@sourceware.cygnus.com \
--cc=grante@visi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).