OpenQNX :: The QNX Community Portal

Aug 21, 2008 - 06:26 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 42 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Pusik Park
Post subject: QNX debugging by TRACE32 - Can't look at all symbols of proc  PostPosted: Feb 18, 2008 - 08:13 AM
Guest





Dear Everyone.



I'm debugging my BSP by TRACE32.



I built bsp-xxxxx.ifs and procnto-instr.sym.

I loaded bsp-xxxxx.ifs by TRACE32's Data.Load.Binary command at the SDRAM
memory region (0x10800000), which I set up as the System
Build/Property/General/System/Image Address.



At TRACE32,

I performed like the below

Data.LOAD.Binary C:\QNX632\ide4-workspace\bsp-jaguar\Images\bsp-jaguar.ifs
A:0x10800000 //verify

if data.long(&DNLD_ADDR)!=0x00ff7eeb

(

print "Wrong QNX image magic!"

stop

)

Register.Set PC data.long(&DNLD_ADDR+0x0c) ; startuphdr.startup_vaddr

Data.Load.Elf
C:\QNX632\ide4-workspace\bsp-jaguar\Images\startup-jaguar2eval.sym /nocode

Data.Load.Elf C:\QNX632\ide4-workspace\bsp-jaguar\Images\procnto-instr.sym
/nocode /noclear



I go my QNX and stop at any point.



I could check the startup-xxxxx2eval's symbols by TRACE32's symbol.browser.

I could look at Symbols, Variables, Functions, and Modules by
symbol.browser.

However, I could NOT look at the procnto-instr's all symbols.

I could see Global symbols and Global variables(os_version_string and
timestamp), but could NOT see any Global Functions.



How can I obtain the procnto or procnto-instr with whole Function symbols ?



My BSP went to "__hardcrash".

I looked at the below data at the window of TRACE32's Var.Frame.

SR:0xFFFF:0xFC4046D8(asm)

scrn_display(asm)

kprintf(asm)

shutdown(asm)

kdebug_enter(asm)

arm_undef(asm)

__und_entry(asm)

---> exception

SR:0xFFFF:0xFC404174(asm)

This looks like the call stack.



What's the problem ?

Please give a comment.





Additionally, I also set up the parameters below examples.

General/

Create Image? Yes

Remove File Time Stamps No

Image Name bsp-xxxxx

CPU Type armlet

Page Align Image No

Image Mount Point N/A

Default Target Location /proc/boot

Compressed No compression

Boot script bsp-xxxxx.bsh

Directories

Default permissions 777

Default User ID 0

Default Group ID 0

System

Auto Link Shared Libs Yes

Create startup sym file Yes

Create proc sym file Yes

Procnto procnto-instr

Procnto Arguments -vvv

Procnto $PATH :/proc/boot:/bin:/usr/bin

Procnto $LD_LIBRARY_PATH :/proc/boot:/lib:/usr/lib

Use APS No

Startup
WORKSPACE/bsp-xxxxx_startup-xxxxx2eval/xxxxx2eval/arm/le/startup-xxxxx2eval

Startup Arguments -vvv

Boot File binary

Image Address 0x10800000

RAM Address Default

Combine N/A
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.