QNX debugging by TRACE32 - Can't look at all symbols of procnto-instr.
"Pusik Park" <parksik-nG/[email protected]> Mon, 18 Feb 2008 17:13:13 +0900
| Newsgroups | gmane.os.qnx.openqnx.devel |
|---|---|
| Message-ID | <000501c87206$1ba07550$52e15ff0$@kr> |
?)7/ :N:P@87N 18<:5H MIME G|=D@G 8^=CAv@T4O4Y.
--===============1926903529==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0006_01C87251.8B881D50"
Content-Language: ko
?)7/ :N:P@87N 18<:5H MIME G|=D@G 8^=CAv@T4O4Y.
------=_NextPart_000_0006_01C87251.8B881D50
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
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
------=_NextPart_000_0006_01C87251.8B881D50
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-autospace:none;
word-break:break-hangul;
font-size:10.0pt;
font-family:"Malgun Gothic";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Malgun Gothic";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Malgun Gothic";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DKO link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><span lang=3DEN-US>Dear =
Everyone.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I</span>’<span =
lang=3DEN-US>m debugging my
BSP by TRACE32.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I built bsp-xxxxx.ifs and
procnto-instr.sym.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I loaded bsp-xxxxx.ifs by =
TRACE32</span>’<span
lang=3DEN-US>s Data.Load.Binary command at the SDRAM memory region =
(0x10800000),
which I set up as the System Build/Property/General/System/Image =
Address.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>At TRACE32, =
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I performed like the =
below<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:40.0pt'><span =
lang=3DEN-US>Data.LOAD.Binary
C:\QNX632\ide4-workspace\bsp-jaguar\Images\bsp-jaguar.ifs A:0x10800000 =
//verify<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:40.0pt'><span lang=3DEN-US>if
data.long(&DNLD_ADDR)!=3D0x00ff7eeb<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:40.0pt'><span =
lang=3DEN-US> (<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US>
print "Wrong QNX image =
magic!"<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>
=
stop<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US>
)<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:40.0pt'><span =
lang=3DEN-US>Register.Set PC
data.long(&DNLD_ADDR+0x0c) ; =
startuphdr.startup_vaddr<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:40.0pt'><span =
lang=3DEN-US>Data.Load.Elf
C:\QNX632\ide4-workspace\bsp-jaguar\Images\startup-jaguar2eval.sym =
/nocode<o:p></o:p></span></p>
<p class=3DMsoNormal style=3D'text-indent:40.0pt'><span =
lang=3DEN-US>Data.Load.Elf
C:\QNX632\ide4-workspace\bsp-jaguar\Images\procnto-instr.sym /nocode =
/noclear<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I go my QNX and stop at any =
point.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I could check the =
startup-xxxxx2eval</span>’<span
lang=3DEN-US>s symbols by TRACE32</span>’<span lang=3DEN-US>s =
symbol.browser.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I could look at Symbols, =
Variables,
Functions, and Modules by symbol.browser.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>However, I could NOT look at the
procnto-instr</span>’<span lang=3DEN-US>s all symbols. =
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I could see Global symbols and =
Global
variables(os_version_string and timestamp), but could NOT see any Global
Functions.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><b><span lang=3DEN-US>How can I obtain the procnto =
or
procnto-instr with whole Function symbols ?<o:p></o:p></span></b></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>My BSP went to =
</span>“<span lang=3DEN-US>__hardcrash</span>”<span
lang=3DEN-US>.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I looked at the below data at =
the window of
TRACE32</span>’<span lang=3DEN-US>s =
Var.Frame.<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
SR:0xFFFF:0xFC4046D8(asm)<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
scrn_display(asm)<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
kprintf(asm)<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
shutdown(asm)<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
kdebug_enter(asm)<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
arm_undef(asm)<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
__und_entry(asm)<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>---> =
exception<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
SR:0xFFFF:0xFC404174(asm)<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>This looks like the call =
stack.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>What</span>’<span =
lang=3DEN-US>s the problem
?<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Please give a =
comment.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Additionally, I also set up the =
parameters
below examples.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>General/<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Create Image?
=
Yes<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Remove File Time Stamps No<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Image Name
=
bsp-xxxxx<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
CPU Type
=
armlet<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Page Align Image =
No<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Image Mount Point =
N/A<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Default Target Location /proc/boot<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Compressed &nb=
sp;
No compression<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Boot
script &=
nbsp;
bsp-xxxxx.bsh<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US>Directories<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Default permissions =
777<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Default User
ID  =
; 0<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Default Group =
ID =
0<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>System<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Auto Link Shared Libs Yes<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Create startup sym file Yes<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Create proc sym file =
Yes<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Procnto =
procnto-instr<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Procnto Arguments =
-vvv<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Procnto
$PATH &n=
bsp;
:/proc/boot:/bin:/usr/bin<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Procnto $LD_LIBRARY_PATH
:/proc/boot:/lib:/usr/lib<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Use
APS &nbs=
p;
No<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Startup =
WORKSPACE/bsp-xxxxx_startup-xxxxx2eval/xxxxx2eval/arm/le/startup-xxxxx2ev=
al<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Startup Arguments =
-vvv<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Boot
File &nb=
sp;
binary<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
Image
Address =
0x10800000<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US> =
RAM
Address =
Default<o:p></o:p></span></p>
<p class=3DMsoNormal><span =
lang=3DEN-US>Combine  =
;
N/A<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
</div>
</body>
</html>
------=_NextPart_000_0006_01C87251.8B881D50--
--===============1926903529==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--===============1926903529==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
openqnx-developer mailing list
openqnx-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openqnx-developer
--===============1926903529==--