| View previous topic :: View next topic |
| Author |
Message |
JiniCho
Joined: 14 Sep 2005 Posts: 18
|
Posted: Wed Sep 14, 2005 11:23 am Post subject: How to use psp-addr2line ? |
|
|
Hi, I'm doing something on my PSP and I have a problem.(sorry for my poor english)
when my program dead it shows a bus error with some addresses and values of register.
I heard i can use psp-addr2line to find out which line(or function) of my program is cause the error.
so I tested with sdk's exception sample. I did it like below.
psp-addr2line -fe exception.elf 0x889004b4
and i got this.
??
??:0
I tried this also
psp-addr2line -b elf32-littlemips -fe exception.elf 0x889004b4
and the result was same.
Please someone tell me what I did wrong.
Thanks. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Wed Sep 14, 2005 3:42 pm Post subject: |
|
|
| Two possible things, one make sure you build your executable with the -g flag to get debug information and also the exception address is in kernel memory space (because of using kernel mode) but the elf is really built in user memory space so addr2line cannot find the address. Basically remove the top 8 from the address so 0x889004b4 becomes 0x089004b4 |
|
| Back to top |
|
 |
JiniCho
Joined: 14 Sep 2005 Posts: 18
|
Posted: Wed Sep 14, 2005 4:59 pm Post subject: |
|
|
| It worked!!! thank you for your help TyRaNiD |
|
| Back to top |
|
 |
|