mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
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.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||
|
||||
* printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
|
||||
skip_spaces.
|
||||
|
||||
2020-11-18 Keith Seitz <keiths@redhat.com>
|
||||
|
||||
* linux-tdep.c (dump_note_entry_p): Return true instead of
|
||||
|
@ -1261,8 +1261,7 @@ skip_over_slash_fmt (completion_tracker &tracker, const char **args)
|
||||
if (ISALNUM (text[1]) || ISSPACE (text[1]))
|
||||
{
|
||||
/* Skip over the actual format specification. */
|
||||
while (*text != '\0' && !ISSPACE (*text))
|
||||
++text;
|
||||
text = skip_to_space (text);
|
||||
|
||||
if (*text == '\0')
|
||||
{
|
||||
@ -1272,8 +1271,7 @@ skip_over_slash_fmt (completion_tracker &tracker, const char **args)
|
||||
else
|
||||
{
|
||||
in_fmt = false;
|
||||
while (ISSPACE (*text))
|
||||
++text;
|
||||
text = skip_spaces (text);
|
||||
}
|
||||
}
|
||||
else if (text[1] == '\0')
|
||||
|
Reference in New Issue
Block a user