Andes Workshop

It is currently Thu Mar 28, 2024 5:32 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: reset and hold的gdb command
PostPosted: Wed Jan 11, 2012 4:47 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
reset and hold的gdb command:
其中flushregs是將registers重抓一次,
不然會印出gdb cache的內容。

$ nds32le-elf-gdb.exe
GNU gdb (2011-07-29) 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-mingw32 --target=nds32le-elf".
source E:\Andestech\AndeSight200MCU\toolchains\nds32le-elf-newlib-v2\bin\.Andesg
dbinit
(gdb) target remote:1234
Remote debugging using :1234
0x000083b8 in ?? ()
core0(gdb) monitor reset hold
OK
core0(gdb) p/x $pc
$1 = 0x83b8
core0(gdb) flushregs
Register cache flushed.
core0(gdb) p/x $pc
$2 = 0x0
core0(gdb) p/x $pc
$3 = 0x0
core0(gdb)


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 7 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