This is an automated email from Gerrit.

"zapb <d...@zapb.de>" just uploaded a new patch set to Gerrit, which you can 
find at https://review.openocd.org/c/openocd/+/8022

-- gerrit

commit fde5bcec504f4c9648711aae411546eb660b1a4b
Author: Marc Schink <d...@zapb.de>
Date:   Mon Nov 20 11:33:00 2023 +0100

    target/target: Fix 'wp' command usage
    
    While at it, fix the 'wp' command documentation.
    
    Change-Id: I70f3110e8ce286051f8f810260f1857b2285e634
    Signed-off-by: Marc Schink <d...@zapb.de>

diff --git a/doc/openocd.texi b/doc/openocd.texi
index 5d73fd1744..4b62f00c0a 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -9374,7 +9374,7 @@ Remove the breakpoint at @var{address} or all breakpoints.
 Remove data watchpoint on @var{address} or all watchpoints.
 @end deffn
 
-@deffn {Command} {wp} [address len [(@option{r}|@option{w}|@option{a}) [value 
[mask]]]]
+@deffn {Command} {wp} [address length [(@option{r}|@option{w}|@option{a}) 
[value [mask]]]]
 With no parameters, lists all active watchpoints.
 Else sets a data watchpoint on data from @var{address} for @var{length} bytes.
 The watch point is an "access" watchpoint unless
diff --git a/src/target/target.c b/src/target/target.c
index 9f43e2f911..b323f4b846 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -7096,7 +7096,7 @@ static const struct command_registration 
target_exec_command_handlers[] = {
                .handler = handle_wp_command,
                .mode = COMMAND_EXEC,
                .help = "list (no params) or create watchpoints",
-               .usage = "[address length [('r'|'w'|'a') value [mask]]]",
+               .usage = "[address length [('r'|'w'|'a') [value [mask]]]]",
        },
        {
                .name = "rwp",

-- 

Reply via email to