mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 03:42:59 +08:00
Improve error for HW breakpoint
This commit is contained in:
@ -23,7 +23,7 @@ import "fmt"
|
||||
// DR0-DR3. Debug register 7 is the control register.
|
||||
func setHardwareBreakpoint(reg, tid int, addr uint64) error {
|
||||
if reg < 0 || reg > 3 {
|
||||
return fmt.Errorf("invalid register value")
|
||||
return fmt.Errorf("invalid debug register value")
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user