This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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: Performance measurement


On Wednesday 05 June 2002 15.06, Gary Thomas wrote:
> On Wed, 2002-06-05 at 07:04, Christer Kaivo-oja wrote:
> > Well, all the other tests run just fine... Where can I find info on how
> > to decode the sigtrap?
>
> What's the platform?
>
> Can you send the exact output from GDB (I'm assuming that you run it
> from GDB)?

I'm running a SA1110 board (Trizeps by Keith & Koep) and have based my 
platform port on the assabet. I have loaded the gdb stub to 0x10000.

When I try to download the tm_basic file using insight, I get the following 
on the console:

Loading section .rom_vectors, size 0x40 lma 0x20000
Loading section .text, size 0xc7b8 lma 0x20040
Loading section .rodata, size 0xe6c lma 0x2c7f8
Loading section .data, size 0xae4 lma 0x2d664
Start address 0x20040, load size 57672
Transfer rate: 27139 bits/sec, 303 bytes/write.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0001162c in ?? ()


0x1162c is the stub breakpoint.. From objdump:

00011628 <breakpoint>:
   11628:       e7ffdefe        undefined
   1162c:       e1a0f00e        mov     pc, lr


lr contains 0x108fc which in turn is within the stub cyg_start function:

000108ec <cyg_start>:
   108ec:       e1a0c00d        mov     ip, sp
   108f0:       e92dd800        stmdb   sp!, {fp, ip, lr, pc}
   108f4:       e24cb004        sub     fp, ip, #4      ; 0x4
   108f8:       eb00034a        bl      11628 <breakpoint>
   108fc:       eafffffd        b       108f8 <cyg_start+0xc>


Also, a breakpoint at the tm_basic cygstart doesn't change anything.. That 
particular piece of code isn't run at all...

  -- Christer

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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