Andes Workshop

It is currently Tue Jul 23, 2019 3:41 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: gdb define macro
PostPosted: Tue Jul 01, 2014 12:58 am 
Offline

Joined: Thu Apr 03, 2014 10:09 am
Posts: 42
Creation the new gdb macro (readmemory) at test.gdb .
The $arg0 is the variable for keyin.

define readmemory
set $loop = 100
while $loop > 100
set $loop -= 1
end
x/1wx $arg0
end

At the gdb command ,
source test.gdb
readmemory 0x0($arg0)


Attachments:
test.zip [190 Bytes]
Downloaded 214 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 1 guest


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