gdb: make use of skip_to_space and skip_spaces
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 19 Nov 2020 10:09:42 +0000 (10:09 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 19 Nov 2020 10:09:42 +0000 (10:09 +0000)
commitb3ff61f8155f296633f96206c926b545b97053b3
treea6760548fc436f2858e65e5d8af8aa1e583e46ee
parent6266b411ce94c94c7fe584a78cdb67246ea4d771
gdb: make use of skip_to_space and skip_spaces

Some late feedback on this commit:

  commit 037d7135de575c9e0c20e9158c105979bfee339c
  Date:   Mon Nov 16 11:36:56 2020 +0000

      gdb: improve command completion for 'print', 'x', and 'display'

Suggested making use of the skip_to_space and skip_spaces helper
functions.  There should be no user visible changes after this commit.

gdb/ChangeLog:

* printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
skip_spaces.
gdb/ChangeLog
gdb/printcmd.c