diff options
author | Yao Qi <yao@codesourcery.com> | 2014-02-22 14:42:12 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-03-06 15:03:30 +0800 |
commit | 0c13193f334ea744a251f768179468b5a17915b6 (patch) | |
tree | 290492a472e6dbe7c54c365a3113e29bd207ce80 /gdb/breakpoint.h | |
parent | 2217da06d8dbaf59c17bd363935bd926e5fdc8ab (diff) | |
download | gdb-0c13193f334ea744a251f768179468b5a17915b6.zip gdb-0c13193f334ea744a251f768179468b5a17915b6.tar.gz gdb-0c13193f334ea744a251f768179468b5a17915b6.tar.bz2 |
Handle parse number error in goto_bookmark_command
In GDB mainline, the error message for goto-bookmark
isn't perfect.
(gdb) goto-bookmark 1.1
goto-bookmark: no bookmark found for ''.
This patch tweaks the error message by checking the return value of
get_number. With patch applied, it becomes:
(gdb) goto-bookmark 1.1
goto-bookmark: invalid bookmark number '1.1'.
gdb:
2014-03-06 Yao Qi <yao@codesourcery.com>
* reverse.c (goto_bookmark_command): Add local 'p'. Emit error
early if get_number returns zero. Use 'p' instead of 'args'.
Diffstat (limited to 'gdb/breakpoint.h')
0 files changed, 0 insertions, 0 deletions