]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use skip_spaces in more places
authorTom Tromey <tromey@adacore.com>
Fri, 12 Dec 2025 18:45:42 +0000 (11:45 -0700)
committerTom Tromey <tromey@adacore.com>
Mon, 15 Dec 2025 14:25:56 +0000 (07:25 -0700)
commit60a614d2a56dff3c70bde93a93121ea52338b678
tree6c257dc54ddd935e1309d691b04f4f3521fea786
parentd0514e7441a688e8a51f051c58fde179ffae64cf
Use skip_spaces in more places

I looked through gdb for instance of:

      while (*p == ' ' || *p == '\t')
p++;

... and replaced these with a call to skip_spaces.

In some cases this might slightly change the semantics, as now other
whitespace (like \r or \f) will be considered.  However I don't think
this matters.

Regression tested on x86-64 Fedora 41.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
15 files changed:
gdb/c-exp.y
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-script.c
gdb/completer.c
gdb/d-exp.y
gdb/event-top.c
gdb/go-exp.y
gdb/infcmd.c
gdb/objc-lang.c
gdb/p-exp.y
gdb/rust-parse.c
gdb/symtab.c
gdb/top.c
gdb/utils.c