2011-01-05 Michael Snyder <msnyder@vmware.com>
* addrmap.c: Shorten lines of >= 80 columns. * arch-utils.c: Ditto. * arch-utils.h: Ditto. * ax-gdb.c: Ditto. * ax-general.c: Ditto. * bcache.c: Ditto. * blockframe.c: Ditto. * breakpoint.c: Ditto. * buildsym.c: Ditto. * c-lang.c: Ditto. * c-typeprint.c: Ditto. * charset.c: Ditto. * coffread.c: Ditto. * command.h: Ditto. * corelow.c: Ditto. * cp-abi.c: Ditto. * cp-namespace.c: Ditto. * cp-support.c: Ditto. * dbug-rom.c: Ditto. * dbxread.c: Ditto. * defs.h: Ditto. * dfp.c: Ditto. * dfp.h: Ditto. * dictionary.c: Ditto. * disasm.c: Ditto. * doublest.c: Ditto. * dwarf2-frame.c: Ditto. * dwarf2expr.c: Ditto. * dwarf2loc.c: Ditto. * dwarf2read.c: Ditto. * elfread.c: Ditto. * eval.c: Ditto. * event-loop.c: Ditto. * event-loop.h: Ditto. * exceptions.h: Ditto. * exec.c: Ditto. * expprint.c: Ditto. * expression.h: Ditto. * f-lang.c: Ditto. * f-valprint.c: Ditto. * findcmd.c: Ditto. * frame-base.c: Ditto. * frame-unwind.c: Ditto. * frame-unwind.h: Ditto. * frame.c: Ditto. * frame.h: Ditto. * gcore.c: Ditto. * gdb-stabs.h: Ditto. * gdb_assert.h: Ditto. * gdb_dirent.h: Ditto. * gdb_obstack.h: Ditto. * gdbcore.h: Ditto. * gdbtypes.c: Ditto. * gdbtypes.h: Ditto. * inf-ttrace.c: Ditto. * infcall.c: Ditto. * infcmd.c: Ditto. * inflow.c: Ditto. * infrun.c: Ditto. * inline-frame.h: Ditto. * language.c: Ditto. * language.h: Ditto. * libunwind-frame.c: Ditto. * libunwind-frame.h: Ditto. * linespec.c: Ditto. * linux-nat.c: Ditto. * linux-nat.h: Ditto. * linux-thread-db.c: Ditto. * machoread.c: Ditto. * macroexp.c: Ditto. * macrotab.c: Ditto. * main.c: Ditto. * maint.c: Ditto. * mdebugread.c: Ditto. * memattr.c: Ditto. * minsyms.c: Ditto. * monitor.c: Ditto. * monitor.h: Ditto. * objfiles.c: Ditto. * objfiles.h: Ditto. * osabi.c: Ditto. * p-typeprint.c: Ditto. * p-valprint.c: Ditto. * parse.c: Ditto. * printcmd.c: Ditto. * proc-events.c: Ditto. * procfs.c: Ditto. * progspace.c: Ditto. * progspace.h: Ditto. * psympriv.h: Ditto. * psymtab.c: Ditto. * record.c: Ditto. * regcache.c: Ditto. * regcache.h: Ditto. * remote-fileio.c: Ditto. * remote.c: Ditto. * ser-mingw.c: Ditto. * ser-tcp.c: Ditto. * ser-unix.c: Ditto. * serial.c: Ditto. * serial.h: Ditto. * solib-frv.c: Ditto. * solib-irix.c: Ditto. * solib-osf.c: Ditto. * solib-pa64.c: Ditto. * solib-som.c: Ditto. * solib-sunos.c: Ditto. * solib-svr4.c: Ditto. * solib-target.c: Ditto. * solib.c: Ditto. * somread.c: Ditto. * source.c: Ditto. * stabsread.c: Ditto. * stabsread.c: Ditto. * stack.c: Ditto. * stack.h: Ditto. * symfile-mem.c: Ditto. * symfile.c: Ditto. * symfile.h: Ditto. * symmisc.c: Ditto. * symtab.c: Ditto. * symtab.h: Ditto. * target-descriptions.c: Ditto. * target-memory.c: Ditto. * target.c: Ditto. * target.h: Ditto. * terminal.h: Ditto. * thread.c: Ditto. * top.c: Ditto. * tracepoint.c: Ditto. * tracepoint.h: Ditto. * ui-file.c: Ditto. * ui-file.h: Ditto. * ui-out.h: Ditto. * user-regs.c: Ditto. * user-regs.h: Ditto. * utils.c: Ditto. * valarith.c: Ditto. * valops.c: Ditto. * valprint.c: Ditto. * valprint.h: Ditto. * value.c: Ditto. * varobj.c: Ditto. * varobj.h: Ditto. * vec.h: Ditto. * xcoffread.c: Ditto. * xcoffsolib.c: Ditto. * xcoffsolib.h: Ditto. * xml-syscall.c: Ditto. * xml-tdesc.c: Ditto.
This commit is contained in:
parent
9689e3a3a7
commit
3e43a32aaa
151 changed files with 2974 additions and 1820 deletions
90
gdb/infcmd.c
90
gdb/infcmd.c
|
@ -106,7 +106,8 @@ static void signal_command (char *, int);
|
|||
static void jump_command (char *, int);
|
||||
|
||||
static void step_1 (int, int, char *);
|
||||
static void step_once (int skip_subroutines, int single_inst, int count, int thread);
|
||||
static void step_once (int skip_subroutines, int single_inst,
|
||||
int count, int thread);
|
||||
|
||||
static void next_command (char *, int);
|
||||
|
||||
|
@ -125,10 +126,11 @@ void _initialize_infcmd (void);
|
|||
#define ERROR_NO_INFERIOR \
|
||||
if (!target_has_execution) error (_("The program is not being run."));
|
||||
|
||||
/* Scratch area where string containing arguments to give to the program will be
|
||||
stored by 'set args'. As soon as anything is stored, notice_args_set will
|
||||
move it into per-inferior storage. Arguments are separated by spaces. Empty
|
||||
string (pointer to '\0') means no args. */
|
||||
/* Scratch area where string containing arguments to give to the
|
||||
program will be stored by 'set args'. As soon as anything is
|
||||
stored, notice_args_set will move it into per-inferior storage.
|
||||
Arguments are separated by spaces. Empty string (pointer to '\0')
|
||||
means no args. */
|
||||
|
||||
static char *inferior_args_scratch;
|
||||
|
||||
|
@ -337,7 +339,8 @@ construct_inferior_arguments (int argc, char **argv)
|
|||
if (cp == NULL)
|
||||
cp = strchr (argv[i], '\n');
|
||||
if (cp != NULL)
|
||||
error (_("can't handle command-line argument containing whitespace"));
|
||||
error (_("can't handle command-line "
|
||||
"argument containing whitespace"));
|
||||
length += strlen (argv[i]) + 1;
|
||||
}
|
||||
|
||||
|
@ -563,7 +566,8 @@ run_command_1 (char *args, int from_tty, int tbreak_at_main)
|
|||
/* We call get_inferior_args() because we might need to compute
|
||||
the value now. */
|
||||
target_create_inferior (exec_file, get_inferior_args (),
|
||||
environ_vector (current_inferior ()->environment), from_tty);
|
||||
environ_vector (current_inferior ()->environment),
|
||||
from_tty);
|
||||
|
||||
/* We're starting off a new process. When we get out of here, in
|
||||
non-stop mode, finish the state of all threads of that process,
|
||||
|
@ -645,8 +649,7 @@ ensure_valid_thread (void)
|
|||
{
|
||||
if (ptid_equal (inferior_ptid, null_ptid)
|
||||
|| is_exited (inferior_ptid))
|
||||
error (_("\
|
||||
Cannot execute this command without a live selected thread."));
|
||||
error (_("Cannot execute this command without a live selected thread."));
|
||||
}
|
||||
|
||||
/* If the user is looking at trace frames, any resumption of execution
|
||||
|
@ -657,8 +660,7 @@ void
|
|||
ensure_not_tfind_mode (void)
|
||||
{
|
||||
if (get_traceframe_number () >= 0)
|
||||
error (_("\
|
||||
Cannot execute this command while looking at trace frames."));
|
||||
error (_("Cannot execute this command while looking at trace frames."));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -730,8 +732,8 @@ continue_command (char *args, int from_tty)
|
|||
error (_("`-a' is meaningless in all-stop mode."));
|
||||
|
||||
if (args != NULL && all_threads)
|
||||
error (_("\
|
||||
Can't resume all threads and specify proceed count simultaneously."));
|
||||
error (_("Can't resume all threads and specify "
|
||||
"proceed count simultaneously."));
|
||||
|
||||
/* If we have an argument left, set proceed count of breakpoint we
|
||||
stopped at. */
|
||||
|
@ -1011,9 +1013,9 @@ step_once (int skip_subroutines, int single_inst, int count, int thread)
|
|||
error (_("Cannot find bounds of current function"));
|
||||
|
||||
target_terminal_ours ();
|
||||
printf_filtered (_("\
|
||||
Single stepping until exit from function %s,\n\
|
||||
which has no line number information.\n"), name);
|
||||
printf_filtered (_("Single stepping until exit from function %s,"
|
||||
"\nwhich has no line number information.\n"),
|
||||
name);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1115,7 +1117,8 @@ jump_command (char *arg, int from_tty)
|
|||
if (section_is_overlay (SYMBOL_OBJ_SECTION (sfn)) &&
|
||||
!section_is_mapped (SYMBOL_OBJ_SECTION (sfn)))
|
||||
{
|
||||
if (!query (_("WARNING!!! Destination is in unmapped overlay! Jump anyway? ")))
|
||||
if (!query (_("WARNING!!! Destination is in "
|
||||
"unmapped overlay! Jump anyway? ")))
|
||||
{
|
||||
error (_("Not confirmed."));
|
||||
/* NOTREACHED */
|
||||
|
@ -1749,8 +1752,8 @@ program_info (char *args, int from_tty)
|
|||
{
|
||||
if (stat < 0)
|
||||
{
|
||||
printf_filtered (_("\
|
||||
It stopped at a breakpoint that has since been deleted.\n"));
|
||||
printf_filtered (_("It stopped at a breakpoint "
|
||||
"that has since been deleted.\n"));
|
||||
}
|
||||
else
|
||||
printf_filtered (_("It stopped at breakpoint %d.\n"), num);
|
||||
|
@ -1766,8 +1769,8 @@ It stopped at a breakpoint that has since been deleted.\n"));
|
|||
|
||||
if (!from_tty)
|
||||
{
|
||||
printf_filtered (_("\
|
||||
Type \"info stack\" or \"info registers\" for more information.\n"));
|
||||
printf_filtered (_("Type \"info stack\" or \"info "
|
||||
"registers\" for more information.\n"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1857,8 +1860,8 @@ set_environment_command (char *arg, int from_tty)
|
|||
var = savestring (arg, p - arg);
|
||||
if (nullset)
|
||||
{
|
||||
printf_filtered (_("\
|
||||
Setting environment variable \"%s\" to null value.\n"),
|
||||
printf_filtered (_("Setting environment variable "
|
||||
"\"%s\" to null value.\n"),
|
||||
var);
|
||||
set_in_environ (current_inferior ()->environment, var, "");
|
||||
}
|
||||
|
@ -1892,7 +1895,8 @@ static void
|
|||
path_info (char *args, int from_tty)
|
||||
{
|
||||
puts_filtered ("Executable and object file path: ");
|
||||
puts_filtered (get_in_environ (current_inferior ()->environment, path_var_name));
|
||||
puts_filtered (get_in_environ (current_inferior ()->environment,
|
||||
path_var_name));
|
||||
puts_filtered ("\n");
|
||||
}
|
||||
|
||||
|
@ -2699,8 +2703,8 @@ print_float_info (struct ui_file *file,
|
|||
}
|
||||
}
|
||||
if (!printed_something)
|
||||
fprintf_filtered (file, "\
|
||||
No floating-point info available for this processor.\n");
|
||||
fprintf_filtered (file, "No floating-point info "
|
||||
"available for this processor.\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2716,8 +2720,8 @@ float_info (char *args, int from_tty)
|
|||
static void
|
||||
unset_command (char *args, int from_tty)
|
||||
{
|
||||
printf_filtered (_("\
|
||||
\"unset\" must be followed by the name of an unset subcommand.\n"));
|
||||
printf_filtered (_("\"unset\" must be followed by the "
|
||||
"name of an unset subcommand.\n"));
|
||||
help_list (unsetlist, "unset ", -1, gdb_stdout);
|
||||
}
|
||||
|
||||
|
@ -2776,7 +2780,8 @@ Add directory DIR(s) to beginning of search path for object files.\n\
|
|||
$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."));
|
||||
fully linked executable files and separately compiled object files as \
|
||||
needed."));
|
||||
set_cmd_completer (c, filename_completer);
|
||||
|
||||
c = add_cmd ("paths", no_class, path_info, _("\
|
||||
|
@ -2784,7 +2789,8 @@ Current search path for finding object files.\n\
|
|||
$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."),
|
||||
fully linked executable files and separately compiled object files as \
|
||||
needed."),
|
||||
&showlist);
|
||||
set_cmd_completer (c, noop_completer);
|
||||
|
||||
|
@ -2822,12 +2828,14 @@ An argument of \"0\" means continue program without giving it a signal."));
|
|||
|
||||
add_com ("stepi", class_run, stepi_command, _("\
|
||||
Step one instruction exactly.\n\
|
||||
Argument N means do this N times (or till program stops for another reason)."));
|
||||
Argument N means do this N times (or till program stops for another \
|
||||
reason)."));
|
||||
add_com_alias ("si", "stepi", class_alias, 0);
|
||||
|
||||
add_com ("nexti", class_run, nexti_command, _("\
|
||||
Step one instruction, but proceed through subroutine calls.\n\
|
||||
Argument N means do this N times (or till program stops for another reason)."));
|
||||
Argument N means do this N times (or till program stops for another \
|
||||
reason)."));
|
||||
add_com_alias ("ni", "nexti", class_alias, 0);
|
||||
|
||||
add_com ("finish", class_run, finish_command, _("\
|
||||
|
@ -2839,24 +2847,28 @@ Upon return, the value returned is printed and put in the value history."));
|
|||
Step program, proceeding through subroutine calls.\n\
|
||||
Like the \"step\" command as long as subroutine calls do not happen;\n\
|
||||
when they do, the call is treated as one instruction.\n\
|
||||
Argument N means do this N times (or till program stops for another reason)."));
|
||||
Argument N means do this N times (or till program stops for another \
|
||||
reason)."));
|
||||
add_com_alias ("n", "next", class_run, 1);
|
||||
if (xdb_commands)
|
||||
add_com_alias ("S", "next", class_run, 1);
|
||||
|
||||
add_com ("step", class_run, step_command, _("\
|
||||
Step program until it reaches a different source line.\n\
|
||||
Argument N means do this N times (or till program stops for another reason)."));
|
||||
Argument N means do this N times (or till program stops for another \
|
||||
reason)."));
|
||||
add_com_alias ("s", "step", class_run, 1);
|
||||
|
||||
c = add_com ("until", class_run, until_command, _("\
|
||||
Execute until the program reaches a source line greater than the current\n\
|
||||
or a specified location (same args as break command) within the current frame."));
|
||||
or a specified location (same args as break command) within the current \
|
||||
frame."));
|
||||
set_cmd_completer (c, location_completer);
|
||||
add_com_alias ("u", "until", class_run, 1);
|
||||
|
||||
c = add_com ("advance", class_run, advance_command, _("\
|
||||
Continue the program up to the given location (same form as args for break command).\n\
|
||||
Continue the program up to the given location (same form as args for break \
|
||||
command).\n\
|
||||
Execution will also stop upon exit from the current stack frame."));
|
||||
set_cmd_completer (c, location_completer);
|
||||
|
||||
|
@ -2897,8 +2909,10 @@ Specifying -a and an ignore count simultaneously is an error."));
|
|||
c = add_com ("run", class_run, run_command, _("\
|
||||
Start debugged program. You may specify arguments to give it.\n\
|
||||
Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n\
|
||||
Input and output redirection with \">\", \"<\", or \">>\" are also allowed.\n\n\
|
||||
With no arguments, uses arguments last specified (with \"run\" or \"set args\").\n\
|
||||
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."));
|
||||
set_cmd_completer (c, filename_completer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue