This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Performance measurement
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Christer Kaivo-oja <christer dot kaivo at kvaser dot se>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 5 Jun 2002 15:07:00 +0200
- Subject: Re: [ECOS] Performance measurement
- References: <200206050926.g559Qd126562@rubicon.hasler.ascom.ch> <200206051036.g55Aalb04921@ascomax.hasler.ascom.ch> <20020605114550.GQ4215@biferten.ma.tech.ascom.ch> <200206051302.g55D2V119126@rubicon.hasler.ascom.ch>
> Well, all the other tests run just fine... Where can I find info on how to
> decode the sigtrap?
I forget the format. Maybe gdb can do that already? Does it give an
address? If so, use the disassemble command.
(gdb) disassemble 0x107a580
Dump of assembler code for function printf:
0x107a578 <printf>: push %ebp
0x107a579 <printf+1>: mov %esp,%ebp
0x107a57b <printf+3>: sub $0x8,%esp
0x107a57e <printf+6>: lea 0xc(%ebp),%eax
0x107a581 <printf+9>: push %eax
0x107a582 <printf+10>: pushl 0x8(%ebp)
0x107a585 <printf+13>: push $0x7fffffff
0x107a58a <printf+18>: pushl 0x1159ac0
0x107a590 <printf+24>: call 0x107a5a0 <vfnprintf>
0x107a595 <printf+29>: leave
0x107a596 <printf+30>: ret
End of assembler dump.
Here you can see that its figured out that the address 0x107a580 is in
the middle of printf...
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss