]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ada-lang.c
Use skip_spaces and skip_to_space in ada-lang.c
authorJoel Brobecker <brobecker@gnat.com>
Wed, 4 Jan 2012 14:55:09 +0000 (14:55 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 4 Jan 2012 14:55:09 +0000 (14:55 +0000)
commit0fcd72ba3772517ba91b2e84f39db6be8e194630
tree222060e045d150a2fd69420772621d9409e6ff13
parent5e0a92a9869b4e15cdce8d6e7d60f1404fda609c
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.
gdb/ChangeLog
gdb/ada-lang.c