Andes Workshop

It is currently Fri Mar 29, 2024 6:26 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 715 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 9 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