diff options
author | Tom Tromey <tom@tromey.com> | 2020-02-25 18:14:19 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-01-18 10:14:42 -0700 |
commit | 7904e9613e0a2fc38e9abc06a916dea6a009c7b4 (patch) | |
tree | 55c245504a0bb4dfce0eea29fc1e796789d0b0e5 /gdb/utils.c | |
parent | 5947982f1dadfa72a6913f25cc4f56e137c7217e (diff) | |
download | binutils-7904e9613e0a2fc38e9abc06a916dea6a009c7b4.zip binutils-7904e9613e0a2fc38e9abc06a916dea6a009c7b4.tar.gz binutils-7904e9613e0a2fc38e9abc06a916dea6a009c7b4.tar.bz2 |
Move gdb_argv to gdbsupport
This moves the gdb_argv class to a new header in gdbsupport.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 3ee2b54..da60c1e 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -76,6 +76,7 @@ #include "cli-out.h" #include "gdbsupport/gdb-safe-ctype.h" #include "bt-utils.h" +#include "gdbsupport/buildargv.h" void (*deprecated_error_begin_hook) (void); @@ -2890,17 +2891,6 @@ ldirname (const char *filename) return dirname; } -/* See utils.h. */ - -void -gdb_argv::reset (const char *s) -{ - char **argv = buildargv (s); - - freeargv (m_argv); - m_argv = argv; -} - /* Return ARGS parsed as a valid pid, or throw an error. */ int |