diff options
author | Hafiz Abid Qadeer <abidh@codesourcery.com> | 2013-05-30 12:54:17 +0000 |
---|---|---|
committer | Hafiz Abid Qadeer <abidh@codesourcery.com> | 2013-05-30 12:54:17 +0000 |
commit | 4790207643a7583c8f86a5fffc760a03a6c513b2 (patch) | |
tree | a16c113922f7c90a3cbdb5cbd60a5378ee4da128 /gdb/inferior.c | |
parent | 23da373ae118adcb2d5cc1328c285e4df6b984bb (diff) | |
download | gdb-4790207643a7583c8f86a5fffc760a03a6c513b2.zip gdb-4790207643a7583c8f86a5fffc760a03a6c513b2.tar.gz gdb-4790207643a7583c8f86a5fffc760a03a6c513b2.tar.bz2 |
2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
* inferior.c (top level): Include tilde.h.
(add_inferior_command): Call tilde_expand on the value of 'exec'
argument.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r-- | gdb/inferior.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c index ed6b626..b9e9a8d 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -35,6 +35,7 @@ #include "continuations.h" #include "arch-utils.h" #include "target-descriptions.h" +#include "readline/tilde.h" void _initialize_inferiors (void); @@ -850,7 +851,8 @@ add_inferior_command (char *args, int from_tty) ++argv; if (!*argv) error (_("No argument to -exec")); - exec = *argv; + exec = tilde_expand (*argv); + make_cleanup (xfree, exec); } } else |