|
|
|
@ -1865,14 +1865,14 @@ _initialize_infcmd (void) |
|
|
|
|
|
|
|
c = add_com ("tty", class_run, tty_command, |
|
|
|
"Set terminal for future runs of program being debugged."); |
|
|
|
c->completer = filename_completer; |
|
|
|
set_cmd_completer (c, filename_completer); |
|
|
|
|
|
|
|
c = add_set_cmd ("args", class_run, var_string_noescape, |
|
|
|
(char *) &inferior_args, |
|
|
|
"Set argument list to give program being debugged when it is started.\n\
|
|
|
|
Follow this command with any number of args, to be passed to the program.", |
|
|
|
&setlist); |
|
|
|
c->completer = filename_completer; |
|
|
|
set_cmd_completer (c, filename_completer); |
|
|
|
set_cmd_sfunc (c, notice_args_set); |
|
|
|
c = add_show_from_set (c, &showlist); |
|
|
|
set_cmd_sfunc (c, notice_args_read); |
|
|
|
@ -1883,7 +1883,7 @@ Follow this command with any number of args, to be passed to the program.", |
|
|
|
With an argument VAR, prints the value of environment variable VAR to\n\ |
|
|
|
give the program being debugged. With no arguments, prints the entire\n\ |
|
|
|
environment to be given to the program.", &showlist); |
|
|
|
c->completer = noop_completer; |
|
|
|
set_cmd_completer (c, noop_completer); |
|
|
|
|
|
|
|
add_prefix_cmd ("unset", no_class, unset_command, |
|
|
|
"Complement to certain \"set\" commands", |
|
|
|
@ -1893,7 +1893,7 @@ environment to be given to the program.", &showlist); |
|
|
|
"Cancel environment variable VAR for the program.\n\
|
|
|
|
This does not affect the program until the next \"run\" command.", |
|
|
|
&unsetlist); |
|
|
|
c->completer = noop_completer; |
|
|
|
set_cmd_completer (c, noop_completer); |
|
|
|
|
|
|
|
c = add_cmd ("environment", class_run, set_environment_command, |
|
|
|
"Set environment variable value to give the program.\n\
|
|
|
|
@ -1901,7 +1901,7 @@ Arguments are VAR VALUE where VAR is variable name and VALUE is value.\n\ |
|
|
|
VALUES of environment variables are uninterpreted strings.\n\ |
|
|
|
This does not affect the program until the next \"run\" command.", |
|
|
|
&setlist); |
|
|
|
c->completer = noop_completer; |
|
|
|
set_cmd_completer (c, noop_completer); |
|
|
|
|
|
|
|
c = add_com ("path", class_files, path_command, |
|
|
|
"Add directory DIR(s) to beginning of search path for object files.\n\
|
|
|
|
@ -1909,7 +1909,7 @@ $cwd in the path means the current working directory.\n\ |
|
|
|
This path is equivalent to the $PATH shell variable. It is a list of\n\ |
|
|
|
directories, separated by colons. These directories are searched to find\n\ |
|
|
|
fully linked executable files and separately compiled object files as needed."); |
|
|
|
c->completer = filename_completer; |
|
|
|
set_cmd_completer (c, filename_completer); |
|
|
|
|
|
|
|
c = add_cmd ("paths", no_class, path_info, |
|
|
|
"Current search path for finding object files.\n\
|
|
|
|
@ -1918,7 +1918,7 @@ This path is equivalent to the $PATH shell variable. It is a list of\n\ |
|
|
|
directories, separated by colons. These directories are searched to find\n\ |
|
|
|
fully linked executable files and separately compiled object files as needed.", |
|
|
|
&showlist); |
|
|
|
c->completer = noop_completer; |
|
|
|
set_cmd_completer (c, noop_completer); |
|
|
|
|
|
|
|
add_com ("attach", class_run, attach_command, |
|
|
|
"Attach to a process or file outside of GDB.\n\
|
|
|
|
@ -1974,14 +1974,14 @@ Argument N means do this N times (or till program stops for another reason)."); |
|
|
|
"Execute until the program reaches a source line greater than the current\n\
|
|
|
|
or a specified line or address or function (same args as break command).\n\ |
|
|
|
Execution will also stop upon exit from the current stack frame."); |
|
|
|
c->completer = location_completer; |
|
|
|
set_cmd_completer (c, location_completer); |
|
|
|
add_com_alias ("u", "until", class_run, 1); |
|
|
|
|
|
|
|
c = add_com ("jump", class_run, jump_command, |
|
|
|
"Continue program being debugged at specified line or address.\n\
|
|
|
|
Give as argument either LINENUM or *ADDR, where ADDR is an expression\n\ |
|
|
|
for an address to start at."); |
|
|
|
c->completer = location_completer; |
|
|
|
set_cmd_completer (c, location_completer); |
|
|
|
|
|
|
|
if (xdb_commands) |
|
|
|
{ |
|
|
|
@ -1992,7 +1992,7 @@ address.\n\ |
|
|
|
Give as argument either LINENUM or *ADDR, where ADDR is an \n\ |
|
|
|
expression for an address to start at.\n\ |
|
|
|
This command is a combination of tbreak and jump."); |
|
|
|
c->completer = location_completer; |
|
|
|
set_cmd_completer (c, location_completer); |
|
|
|
} |
|
|
|
|
|
|
|
if (xdb_commands) |
|
|
|
@ -2013,7 +2013,7 @@ Input and output redirection with \">\", \"<\", or \">>\" are also allowed.\n\n\ |
|
|
|
With no arguments, uses arguments last specified (with \"run\" or \"set args\").\n\
|
|
|
|
To cancel previous arguments and run with no arguments,\n\ |
|
|
|
use \"set args\" without arguments."); |
|
|
|
c->completer = filename_completer; |
|
|
|
set_cmd_completer (c, filename_completer); |
|
|
|
add_com_alias ("r", "run", class_run, 1); |
|
|
|
if (xdb_commands) |
|
|
|
add_com ("R", class_run, run_no_args_command, |
|
|
|
|