From aac4e19c243d1ceb63de94c87b936d90dca6441e Mon Sep 17 00:00:00 2001 From: Adrien Barreau Date: Tue, 19 Apr 2022 20:35:54 +0200 Subject: [PATCH] Documentation: Fix example block in cli README (#2974) --- Documentation/cli/README.md | 1 + pkg/terminal/command.go | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/cli/README.md b/Documentation/cli/README.md index bb87dc22..62649c13 100644 --- a/Documentation/cli/README.md +++ b/Documentation/cli/README.md @@ -201,6 +201,7 @@ With the -clear option a condtion on the breakpoint can removed. The '% n' form means we should stop at the breakpoint when the hitcount is a multiple of n. Examples: + cond 2 i == 10 breakpoint 2 will stop when variable i equals 10 cond name runtime.curg.goid == 5 breakpoint 'name' will stop only on goroutine 5 cond -clear 2 the condition on breakpoint 2 will be removed diff --git a/pkg/terminal/command.go b/pkg/terminal/command.go index a5aeff20..42611981 100644 --- a/pkg/terminal/command.go +++ b/pkg/terminal/command.go @@ -472,6 +472,7 @@ With the -clear option a condtion on the breakpoint can removed. The '% n' form means we should stop at the breakpoint when the hitcount is a multiple of n. Examples: + cond 2 i == 10 breakpoint 2 will stop when variable i equals 10 cond name runtime.curg.goid == 5 breakpoint 'name' will stop only on goroutine 5 cond -clear 2 the condition on breakpoint 2 will be removed