diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-01-04 14:55:09 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-01-04 14:55:09 +0000 |
commit | 0fcd72ba3772517ba91b2e84f39db6be8e194630 (patch) | |
tree | 222060e045d150a2fd69420772621d9409e6ff13 /gdb/ChangeLog | |
parent | 5e0a92a9869b4e15cdce8d6e7d60f1404fda609c (diff) | |
download | gdb-0fcd72ba3772517ba91b2e84f39db6be8e194630.zip gdb-0fcd72ba3772517ba91b2e84f39db6be8e194630.tar.gz gdb-0fcd72ba3772517ba91b2e84f39db6be8e194630.tar.bz2 |
Use skip_spaces and skip_to_space in ada-lang.c
This is just a minor cleanup that reduces a bit the code in ada-lang.c
by using skip_spaces or skip_to_space, instead of doing the skipping
ourselves.
gdb/ChangeLog:
* ada-lang.c: #include "cli/cli-utils.h".
(get_selections): Use skip_spaces.
(ada_get_next_arg): Use skip_spaces and skip_to_space.
(catch_ada_exception_command_split): Use skip_spaces.
(ada_decode_assert_location): Likewise.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dfd010a..7cb2dc7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2012-01-04 Joel Brobecker <brobecker@adacore.com> + * ada-lang.c: #include "cli/cli-utils.h". + (get_selections): Use skip_spaces. + (ada_get_next_arg): Use skip_spaces and skip_to_space. + (catch_ada_exception_command_split): Use skip_spaces. + (ada_decode_assert_location): Likewise. + +2012-01-04 Joel Brobecker <brobecker@adacore.com> + * linespec.c (decode_line_internal): Check for C++ or Java compound constructs only if the current language is C, C++ or Java. |