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


> 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


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