Andes Workshop

It is currently Mon Dec 10, 2018 9:18 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Gdb next and finish (memory map)
PostPosted: Tue Aug 13, 2013 11:53 am 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
Gdb command next and finish use "SW breakpoint" to implement it.

If you would like to use HW breakpoints to implement next and finish, you could use memory map in AndeSight to force it to set HW breakpoints.
Attachment:
map.png
map.png [ 25.93 KiB | Viewed 2004 times ]


---------------------
This is from gdb manual
http://sourceware.org/gdb/onlinedocs/gd ... reaks.html

For some targets, gdb can automatically decide if hardware or software breakpoints should be used, depending on whether the breakpoint address is read-only or read-write. This applies to breakpoints set with the break command as well as to internal breakpoints set by commands like next and finish. For breakpoints set with hbreak, gdb will always use hardware breakpoints.

You can control this automatic behaviour with the following commands::


set breakpoint auto-hw on
This is the default behavior. When gdb sets a breakpoint, it will try to use the target memory map to decide if software or hardware breakpoint must be used.
set breakpoint auto-hw off
This indicates gdb should not automatically select breakpoint type. If the target provides a memory map, gdb will warn when trying to set software breakpoint at a read-only address.


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