mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
gdbsupport: Drop now unused function 'stringify_argv'
The function did not properly escape special characters and all uses have been replaced in previous commits, so drop the now unused function. gdbsupport/ChangeLog: * common-utils.cc, common-utils.h (stringify_argv): Drop now unused function stringify_argv Change-Id: Id5f861f44eae1f0fbde3476a5eac23a842ed04fc
This commit is contained in:

committed by
Simon Marchi

parent
bea571ebd7
commit
7dbfcd6f79
@ -1,3 +1,8 @@
|
|||||||
|
2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
|
||||||
|
|
||||||
|
* common-utils.cc, common-utils.h (stringify_argv): Drop
|
||||||
|
now unused function stringify_argv
|
||||||
|
|
||||||
2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
|
2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
|
||||||
|
|
||||||
* common-inferior.cc, common-inferior.h (construct_inferior_arguments):
|
* common-inferior.cc, common-inferior.h (construct_inferior_arguments):
|
||||||
|
@ -375,29 +375,6 @@ free_vector_argv (std::vector<char *> &v)
|
|||||||
|
|
||||||
/* See gdbsupport/common-utils.h. */
|
/* See gdbsupport/common-utils.h. */
|
||||||
|
|
||||||
std::string
|
|
||||||
stringify_argv (const std::vector<char *> &args)
|
|
||||||
{
|
|
||||||
std::string ret;
|
|
||||||
|
|
||||||
if (!args.empty () && args[0] != NULL)
|
|
||||||
{
|
|
||||||
for (auto s : args)
|
|
||||||
if (s != NULL)
|
|
||||||
{
|
|
||||||
ret += s;
|
|
||||||
ret += ' ';
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Erase the last whitespace. */
|
|
||||||
ret.erase (ret.end () - 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* See gdbsupport/common-utils.h. */
|
|
||||||
|
|
||||||
ULONGEST
|
ULONGEST
|
||||||
align_up (ULONGEST v, int n)
|
align_up (ULONGEST v, int n)
|
||||||
{
|
{
|
||||||
|
@ -154,10 +154,6 @@ extern const char *skip_to_space (const char *inp);
|
|||||||
freeing all the elements. */
|
freeing all the elements. */
|
||||||
extern void free_vector_argv (std::vector<char *> &v);
|
extern void free_vector_argv (std::vector<char *> &v);
|
||||||
|
|
||||||
/* Given a vector of arguments ARGV, return a string equivalent to
|
|
||||||
joining all the arguments with a whitespace separating them. */
|
|
||||||
extern std::string stringify_argv (const std::vector<char *> &argv);
|
|
||||||
|
|
||||||
/* Return true if VALUE is in [LOW, HIGH]. */
|
/* Return true if VALUE is in [LOW, HIGH]. */
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
Reference in New Issue
Block a user