This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 5/7] gdb: 'list' command, tweak handling of +/- arguments.


On 11/25/2015 12:34 AM, Andrew Burgess wrote:

> gdb/ChangeLog:
> 
> 	* cli/cli-cmds.c (list_command): Check that the argument string is
> 	a single character, either '+' or '-'.
> 
> gdb/testsuite/ChangeLog:
> 
> 	* gdb.base/list.exp (test_list_invalid_args): New function,
> 	defined, and called.

> +    clean_restart ${binfile}
> +    gdb_test "list -INVALID" \
> +	"invalid explicit location argument, \"-INVALID\"" \
> +	"First use of \"list -INVALID\""
> +    gdb_test "list -INVALID" \
> +	"invalid explicit location argument, \"-INVALID\"" \
> +	"Second use of \"list -INVALID\""

Nit: please use lowercase in test messages like mostly
everywhere else (including this file).

OK with that fixed.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]