mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 12:03:41 +08:00
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.
This commit is contained in:
parent
23da373ae1
commit
4790207643
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
2013-05-30 Pedro Alves <pedro@codesourcery.com>
|
||||
Yao Qi <yao@codesourcery.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user