Add command to print active breakpoints

This commit is contained in:
Derek Parker
2015-03-06 08:01:41 -06:00
parent 464a6b96fe
commit 0b3cf1cd15
5 changed files with 42 additions and 4 deletions

View File

@ -274,7 +274,7 @@ func (dbp *DebuggedProcess) Continue() error {
// Check for hardware breakpoint
for _, bp := range dbp.HWBreakPoints {
if bp != nil && bp.Addr == pc {
if !bp.temp {
if !bp.Temp {
return dbp.Halt()
}
return nil
@ -282,7 +282,7 @@ func (dbp *DebuggedProcess) Continue() error {
}
// Check to see if we have hit a software breakpoint.
if bp, ok := dbp.BreakPoints[pc-1]; ok {
if !bp.temp {
if !bp.Temp {
return dbp.Halt()
}
return nil