Andes Workshop

It is currently Thu Apr 18, 2024 11:45 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 在AndeSight裡如何知道local variable的位址
PostPosted: Wed Aug 24, 2011 12:22 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
方法有2個
(1)gdb command view裡下command
p & i
其中i是local變數,&表示取address

Attachment:
pp1.gif
pp1.gif [ 12.34 KiB | Viewed 7003 times ]


(2)在Expression View裡,打入
& i

Attachment:
pp2.gif
pp2.gif [ 5.16 KiB | Viewed 7003 times ]


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group