Andes Workshop

It is currently Sun Nov 17, 2019 3:08 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: gdb script應用
PostPosted: Fri Mar 25, 2011 7:26 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
這裡有一個gdb的範例,它執行一個程式的執行。
Code:
target remote :9901
file startup-lm.elf
load
continue
quit


執行時,板子電源打開,LCD顯示為67,接上ICE。

啟動ICEman
ICEman.exe –port 9901

然後,另外一個cygwin視窗執行這個.txt檔
nds32le-elf-gdb.exe –x run_startup_lm.txt

可以看到Console裏執行程式的內容。
任何gdb的command,都可以寫成這種類似batch file的格式執行。




Attachment:
pp1.gif
pp1.gif [ 9.09 KiB | Viewed 5067 times ]



Attachment:
pp2.gif
pp2.gif [ 20.04 KiB | Viewed 5067 times ]


Attachment:
pp3.gif
pp3.gif [ 10.86 KiB | Viewed 5067 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