From 87ecdad796fe8102d13b33b317f696c416e765b5 Mon Sep 17 00:00:00 2001 From: sfx Date: Tue, 27 Feb 2024 04:16:20 -0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=94=A8=E6=88=B7=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=8C=87=E5=AE=9A=E7=A1=AC=E6=96=AD=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli/cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/cmd/root.go b/cli/cmd/root.go index 136c156..dcda3d9 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -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 {