diff options
author | abidh <abidh> | 2013-05-30 12:54:17 +0000 |
---|---|---|
committer | abidh <abidh> | 2013-05-30 12:54:17 +0000 |
commit | ee6093e8c41b580edb74f55987184fc8cc1a1cab (patch) | |
tree | 09ff99e4c300b6ad8867700d89b6283fdd271f5c /gdb/inferior.c | |
parent | da4b06c8aab71118e3cac9272b853f60c61e1e1a (diff) | |
download | gdb-ee6093e8c41b580edb74f55987184fc8cc1a1cab.tar.gz |
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 ed6b6260b33..b9e9a8d9dbc 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 |