Skip to content

Commit

Permalink
提示用户显示指定硬断类型
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeFlowerX committed Feb 27, 2024
1 parent e75e972 commit 87ecdad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func persistentPreRunEFunc(command *cobra.Command, args []string) error {
return errors.New(fmt.Sprintf("parse BrkType for %s failed, choose:r,w,x,rw", infos[1]))
}
} else {
mconfig.BrkType = util.HW_BREAKPOINT_X
return errors.New("BrkType not set, choose:r,w,x,rw")
}
addr, err := strconv.ParseUint(strings.TrimPrefix(infos[0], "0x"), 16, 64)
if err != nil {
Expand Down

0 comments on commit 87ecdad

Please sign in to comment.