diff --git a/Documentation/cli/README.md b/Documentation/cli/README.md index 5b95c2df..7cf266dd 100644 --- a/Documentation/cli/README.md +++ b/Documentation/cli/README.md @@ -113,11 +113,11 @@ Sets a breakpoint. Locspec is a location specifier in the form of: * *
Specifies the location of memory address address. address can be specified as a decimal, hexadecimal or octal number - * : Specifies the line line in filename. filename can be the partial path to a file or even just the base name as long as the expression remains unambiguous. - * Specifies the line line in the current file + * : Specifies the line in filename. filename can be the partial path to a file or even just the base name as long as the expression remains unambiguous. + * Specifies the line in the current file * + Specifies the line offset lines after the current one * - Specifies the line offset lines before the current one - * [:] Specifies the line line inside function. + * [:] Specifies the line inside function. The full syntax for function is .(*). however the only required element is the function name, everything else can be omitted as long as the expression remains unambiguous. For setting a breakpoint on an init function (ex: main.init), the : syntax should be used to break in the correct init function at the correct location. diff --git a/pkg/terminal/command.go b/pkg/terminal/command.go index ffabb51e..2b4040bf 100644 --- a/pkg/terminal/command.go +++ b/pkg/terminal/command.go @@ -127,11 +127,11 @@ Type "help" followed by the name of a command for more information about it.`}, Locspec is a location specifier in the form of: * *
Specifies the location of memory address address. address can be specified as a decimal, hexadecimal or octal number - * : Specifies the line line in filename. filename can be the partial path to a file or even just the base name as long as the expression remains unambiguous. - * Specifies the line line in the current file + * : Specifies the line in filename. filename can be the partial path to a file or even just the base name as long as the expression remains unambiguous. + * Specifies the line in the current file * + Specifies the line offset lines after the current one * - Specifies the line offset lines before the current one - * [:] Specifies the line line inside function. + * [:] Specifies the line inside function. The full syntax for function is .(*). however the only required element is the function name, everything else can be omitted as long as the expression remains unambiguous. For setting a breakpoint on an init function (ex: main.init), the : syntax should be used to break in the correct init function at the correct location.