2005-02-15 Andrew Cagney <cagney@gnu.org>
Mark up add_com, add_info and add_prefix_cmd. * breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update. * exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update. * go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update. * kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update. * maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update. * ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update. * remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update. * remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update. * remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update. * sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update. * symfile.c, symtab.c, target.c, thread.c, top.c: Update. * tracepoint.c, typeprint.c, utils.c, valprint.c: Update. * win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update. * cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update. * tui/tui-stack.c, tui/tui-win.c: Update.
This commit is contained in:
parent
724f452bdd
commit
1bedd21517
65 changed files with 593 additions and 564 deletions
|
@ -1,3 +1,22 @@
|
||||||
|
2005-02-15 Andrew Cagney <cagney@gnu.org>
|
||||||
|
|
||||||
|
Mark up add_com, add_info and add_prefix_cmd.
|
||||||
|
* breakpoint.c, cp-support.c, dcache.c, dwarf2read.c: Update.
|
||||||
|
* exec.c, f-valprint.c, frame.c, gcore.c, gnu-nat.c: Update.
|
||||||
|
* go32-nat.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update.
|
||||||
|
* kod.c, language.c, linux-nat.c, m32r-rom.c, macrocmd.c: Update.
|
||||||
|
* maint.c, memattr.c, mips-tdep.c, nto-procfs.c, objc-lang.c: Update.
|
||||||
|
* ocd.c, pa64solib.c, printcmd.c, procfs.c, regcache.c: Update.
|
||||||
|
* remote-e7000.c, remote-m32r-sdi.c, remote-mips.c: Update.
|
||||||
|
* remote-sds.c, remote-sim.c, remote-st.c, remote-utils.c: Update.
|
||||||
|
* remote.c, rs6000-tdep.c, ser-go32.c, serial.c: Update.
|
||||||
|
* sh-tdep.c, solib.c, somsolib.c, source.c, stack.c: Update.
|
||||||
|
* symfile.c, symtab.c, target.c, thread.c, top.c: Update.
|
||||||
|
* tracepoint.c, typeprint.c, utils.c, valprint.c: Update.
|
||||||
|
* win32-nat.c, xcoffsolib.c, cli/cli-cmds.c, cli/cli-dump.c: Update.
|
||||||
|
* cli/cli-logging.c, tui/tui-layout.c, tui/tui-regs.c: Update.
|
||||||
|
* tui/tui-stack.c, tui/tui-win.c: Update.
|
||||||
|
|
||||||
2005-02-14 Andrew Cagney <cagney@gnu.org>
|
2005-02-14 Andrew Cagney <cagney@gnu.org>
|
||||||
|
|
||||||
* config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
|
* config/h8300/h8300.mt (DEPRECATED_TM_FILE): Delete.
|
||||||
|
|
176
gdb/breakpoint.c
176
gdb/breakpoint.c
|
@ -7622,67 +7622,67 @@ _initialize_breakpoint (void)
|
||||||
before a breakpoint is set. */
|
before a breakpoint is set. */
|
||||||
breakpoint_count = 0;
|
breakpoint_count = 0;
|
||||||
|
|
||||||
add_com ("ignore", class_breakpoint, ignore_command,
|
add_com ("ignore", class_breakpoint, ignore_command, _("\
|
||||||
"Set ignore-count of breakpoint number N to COUNT.\n\
|
Set ignore-count of breakpoint number N to COUNT.\n\
|
||||||
Usage is `ignore N COUNT'.");
|
Usage is `ignore N COUNT'."));
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com_alias ("bc", "ignore", class_breakpoint, 1);
|
add_com_alias ("bc", "ignore", class_breakpoint, 1);
|
||||||
|
|
||||||
add_com ("commands", class_breakpoint, commands_command,
|
add_com ("commands", class_breakpoint, commands_command, _("\
|
||||||
"Set commands to be executed when a breakpoint is hit.\n\
|
Set commands to be executed when a breakpoint is hit.\n\
|
||||||
Give breakpoint number as argument after \"commands\".\n\
|
Give breakpoint number as argument after \"commands\".\n\
|
||||||
With no argument, the targeted breakpoint is the last one set.\n\
|
With no argument, the targeted breakpoint is the last one set.\n\
|
||||||
The commands themselves follow starting on the next line.\n\
|
The commands themselves follow starting on the next line.\n\
|
||||||
Type a line containing \"end\" to indicate the end of them.\n\
|
Type a line containing \"end\" to indicate the end of them.\n\
|
||||||
Give \"silent\" as the first line to make the breakpoint silent;\n\
|
Give \"silent\" as the first line to make the breakpoint silent;\n\
|
||||||
then no output is printed when it is hit, except what the commands print.");
|
then no output is printed when it is hit, except what the commands print."));
|
||||||
|
|
||||||
add_com ("condition", class_breakpoint, condition_command,
|
add_com ("condition", class_breakpoint, condition_command, _("\
|
||||||
"Specify breakpoint number N to break only if COND is true.\n\
|
Specify breakpoint number N to break only if COND is true.\n\
|
||||||
Usage is `condition N COND', where N is an integer and COND is an\n\
|
Usage is `condition N COND', where N is an integer and COND is an\n\
|
||||||
expression to be evaluated whenever breakpoint N is reached.");
|
expression to be evaluated whenever breakpoint N is reached."));
|
||||||
|
|
||||||
c = add_com ("tbreak", class_breakpoint, tbreak_command,
|
c = add_com ("tbreak", class_breakpoint, tbreak_command, _("\
|
||||||
"Set a temporary breakpoint. Args like \"break\" command.\n\
|
Set a temporary breakpoint. Args like \"break\" command.\n\
|
||||||
Like \"break\" except the breakpoint is only temporary,\n\
|
Like \"break\" except the breakpoint is only temporary,\n\
|
||||||
so it will be deleted when hit. Equivalent to \"break\" followed\n\
|
so it will be deleted when hit. Equivalent to \"break\" followed\n\
|
||||||
by using \"enable delete\" on the breakpoint number.");
|
by using \"enable delete\" on the breakpoint number."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
c = add_com ("hbreak", class_breakpoint, hbreak_command,
|
c = add_com ("hbreak", class_breakpoint, hbreak_command, _("\
|
||||||
"Set a hardware assisted breakpoint. Args like \"break\" command.\n\
|
Set a hardware assisted breakpoint. Args like \"break\" command.\n\
|
||||||
Like \"break\" except the breakpoint requires hardware support,\n\
|
Like \"break\" except the breakpoint requires hardware support,\n\
|
||||||
some target hardware may not have this support.");
|
some target hardware may not have this support."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
c = add_com ("thbreak", class_breakpoint, thbreak_command,
|
c = add_com ("thbreak", class_breakpoint, thbreak_command, _("\
|
||||||
"Set a temporary hardware assisted breakpoint. Args like \"break\" command.\n\
|
Set a temporary hardware assisted breakpoint. Args like \"break\" command.\n\
|
||||||
Like \"hbreak\" except the breakpoint is only temporary,\n\
|
Like \"hbreak\" except the breakpoint is only temporary,\n\
|
||||||
so it will be deleted when hit.");
|
so it will be deleted when hit."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
add_prefix_cmd ("enable", class_breakpoint, enable_command,
|
add_prefix_cmd ("enable", class_breakpoint, enable_command, _("\
|
||||||
"Enable some breakpoints.\n\
|
Enable some breakpoints.\n\
|
||||||
Give breakpoint numbers (separated by spaces) as arguments.\n\
|
Give breakpoint numbers (separated by spaces) as arguments.\n\
|
||||||
With no subcommand, breakpoints are enabled until you command otherwise.\n\
|
With no subcommand, breakpoints are enabled until you command otherwise.\n\
|
||||||
This is used to cancel the effect of the \"disable\" command.\n\
|
This is used to cancel the effect of the \"disable\" command.\n\
|
||||||
With a subcommand you can enable temporarily.",
|
With a subcommand you can enable temporarily."),
|
||||||
&enablelist, "enable ", 1, &cmdlist);
|
&enablelist, "enable ", 1, &cmdlist);
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com ("ab", class_breakpoint, enable_command,
|
add_com ("ab", class_breakpoint, enable_command, _("\
|
||||||
"Enable some breakpoints.\n\
|
Enable some breakpoints.\n\
|
||||||
Give breakpoint numbers (separated by spaces) as arguments.\n\
|
Give breakpoint numbers (separated by spaces) as arguments.\n\
|
||||||
With no subcommand, breakpoints are enabled until you command otherwise.\n\
|
With no subcommand, breakpoints are enabled until you command otherwise.\n\
|
||||||
This is used to cancel the effect of the \"disable\" command.\n\
|
This is used to cancel the effect of the \"disable\" command.\n\
|
||||||
With a subcommand you can enable temporarily.");
|
With a subcommand you can enable temporarily."));
|
||||||
|
|
||||||
add_com_alias ("en", "enable", class_breakpoint, 1);
|
add_com_alias ("en", "enable", class_breakpoint, 1);
|
||||||
|
|
||||||
add_abbrev_prefix_cmd ("breakpoints", class_breakpoint, enable_command,
|
add_abbrev_prefix_cmd ("breakpoints", class_breakpoint, enable_command, _("\
|
||||||
"Enable some breakpoints.\n\
|
Enable some breakpoints.\n\
|
||||||
Give breakpoint numbers (separated by spaces) as arguments.\n\
|
Give breakpoint numbers (separated by spaces) as arguments.\n\
|
||||||
This is used to cancel the effect of the \"disable\" command.\n\
|
This is used to cancel the effect of the \"disable\" command.\n\
|
||||||
May be abbreviated to simply \"enable\".\n",
|
May be abbreviated to simply \"enable\".\n"),
|
||||||
&enablebreaklist, "enable breakpoints ", 1, &enablelist);
|
&enablebreaklist, "enable breakpoints ", 1, &enablelist);
|
||||||
|
|
||||||
add_cmd ("once", no_class, enable_once_command, _("\
|
add_cmd ("once", no_class, enable_once_command, _("\
|
||||||
|
@ -7705,20 +7705,20 @@ Enable breakpoints for one hit. Give breakpoint numbers.\n\
|
||||||
If a breakpoint is hit while enabled in this fashion, it becomes disabled."),
|
If a breakpoint is hit while enabled in this fashion, it becomes disabled."),
|
||||||
&enablelist);
|
&enablelist);
|
||||||
|
|
||||||
add_prefix_cmd ("disable", class_breakpoint, disable_command,
|
add_prefix_cmd ("disable", class_breakpoint, disable_command, _("\
|
||||||
"Disable some breakpoints.\n\
|
Disable some breakpoints.\n\
|
||||||
Arguments are breakpoint numbers with spaces in between.\n\
|
Arguments are breakpoint numbers with spaces in between.\n\
|
||||||
To disable all breakpoints, give no argument.\n\
|
To disable all breakpoints, give no argument.\n\
|
||||||
A disabled breakpoint is not forgotten, but has no effect until reenabled.",
|
A disabled breakpoint is not forgotten, but has no effect until reenabled."),
|
||||||
&disablelist, "disable ", 1, &cmdlist);
|
&disablelist, "disable ", 1, &cmdlist);
|
||||||
add_com_alias ("dis", "disable", class_breakpoint, 1);
|
add_com_alias ("dis", "disable", class_breakpoint, 1);
|
||||||
add_com_alias ("disa", "disable", class_breakpoint, 1);
|
add_com_alias ("disa", "disable", class_breakpoint, 1);
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com ("sb", class_breakpoint, disable_command,
|
add_com ("sb", class_breakpoint, disable_command, _("\
|
||||||
"Disable some breakpoints.\n\
|
Disable some breakpoints.\n\
|
||||||
Arguments are breakpoint numbers with spaces in between.\n\
|
Arguments are breakpoint numbers with spaces in between.\n\
|
||||||
To disable all breakpoints, give no argument.\n\
|
To disable all breakpoints, give no argument.\n\
|
||||||
A disabled breakpoint is not forgotten, but has no effect until reenabled.");
|
A disabled breakpoint is not forgotten, but has no effect until reenabled."));
|
||||||
|
|
||||||
add_cmd ("breakpoints", class_alias, disable_command, _("\
|
add_cmd ("breakpoints", class_alias, disable_command, _("\
|
||||||
Disable some breakpoints.\n\
|
Disable some breakpoints.\n\
|
||||||
|
@ -7728,20 +7728,20 @@ A disabled breakpoint is not forgotten, but has no effect until reenabled.\n\
|
||||||
This command may be abbreviated \"disable\"."),
|
This command may be abbreviated \"disable\"."),
|
||||||
&disablelist);
|
&disablelist);
|
||||||
|
|
||||||
add_prefix_cmd ("delete", class_breakpoint, delete_command,
|
add_prefix_cmd ("delete", class_breakpoint, delete_command, _("\
|
||||||
"Delete some breakpoints or auto-display expressions.\n\
|
Delete some breakpoints or auto-display expressions.\n\
|
||||||
Arguments are breakpoint numbers with spaces in between.\n\
|
Arguments are breakpoint numbers with spaces in between.\n\
|
||||||
To delete all breakpoints, give no argument.\n\
|
To delete all breakpoints, give no argument.\n\
|
||||||
\n\
|
\n\
|
||||||
Also a prefix command for deletion of other GDB objects.\n\
|
Also a prefix command for deletion of other GDB objects.\n\
|
||||||
The \"unset\" command is also an alias for \"delete\".",
|
The \"unset\" command is also an alias for \"delete\"."),
|
||||||
&deletelist, "delete ", 1, &cmdlist);
|
&deletelist, "delete ", 1, &cmdlist);
|
||||||
add_com_alias ("d", "delete", class_breakpoint, 1);
|
add_com_alias ("d", "delete", class_breakpoint, 1);
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com ("db", class_breakpoint, delete_command,
|
add_com ("db", class_breakpoint, delete_command, _("\
|
||||||
"Delete some breakpoints.\n\
|
Delete some breakpoints.\n\
|
||||||
Arguments are breakpoint numbers with spaces in between.\n\
|
Arguments are breakpoint numbers with spaces in between.\n\
|
||||||
To delete all breakpoints, give no argument.\n");
|
To delete all breakpoints, give no argument.\n"));
|
||||||
|
|
||||||
add_cmd ("breakpoints", class_alias, delete_command, _("\
|
add_cmd ("breakpoints", class_alias, delete_command, _("\
|
||||||
Delete some breakpoints or auto-display expressions.\n\
|
Delete some breakpoints or auto-display expressions.\n\
|
||||||
|
@ -7750,29 +7750,30 @@ To delete all breakpoints, give no argument.\n\
|
||||||
This command may be abbreviated \"delete\"."),
|
This command may be abbreviated \"delete\"."),
|
||||||
&deletelist);
|
&deletelist);
|
||||||
|
|
||||||
add_com ("clear", class_breakpoint, clear_command,
|
add_com ("clear", class_breakpoint, clear_command, _("\
|
||||||
concat ("Clear breakpoint at specified line or function.\n\
|
Clear breakpoint at specified line or function.\n\
|
||||||
Argument may be line number, function name, or \"*\" and an address.\n\
|
Argument may be line number, function name, or \"*\" and an address.\n\
|
||||||
If line number is specified, all breakpoints in that line are cleared.\n\
|
If line number is specified, all breakpoints in that line are cleared.\n\
|
||||||
If function is specified, breakpoints at beginning of function are cleared.\n\
|
If function is specified, breakpoints at beginning of function are cleared.\n\
|
||||||
If an address is specified, breakpoints at that address are cleared.\n\n",
|
If an address is specified, breakpoints at that address are cleared.\n\
|
||||||
"With no argument, clears all breakpoints in the line that the selected frame\n\
|
\n\
|
||||||
|
With no argument, clears all breakpoints in the line that the selected frame\n\
|
||||||
is executing in.\n\
|
is executing in.\n\
|
||||||
\n\
|
\n\
|
||||||
See also the \"delete\" command which clears breakpoints by number.", NULL));
|
See also the \"delete\" command which clears breakpoints by number."));
|
||||||
|
|
||||||
c = add_com ("break", class_breakpoint, break_command,
|
c = add_com ("break", class_breakpoint, break_command, _("\
|
||||||
concat ("Set breakpoint at specified line or function.\n\
|
Set breakpoint at specified line or function.\n\
|
||||||
Argument may be line number, function name, or \"*\" and an address.\n\
|
Argument may be line number, function name, or \"*\" and an address.\n\
|
||||||
If line number is specified, break at start of code for that line.\n\
|
If line number is specified, break at start of code for that line.\n\
|
||||||
If function is specified, break at start of code for that function.\n\
|
If function is specified, break at start of code for that function.\n\
|
||||||
If an address is specified, break at that exact address.\n",
|
If an address is specified, break at that exact address.\n\
|
||||||
"With no arg, uses current execution address of selected stack frame.\n\
|
With no arg, uses current execution address of selected stack frame.\n\
|
||||||
This is useful for breaking on return to a stack frame.\n\
|
This is useful for breaking on return to a stack frame.\n\
|
||||||
\n\
|
\n\
|
||||||
Multiple breakpoints at one place are permitted, and useful if conditional.\n\
|
Multiple breakpoints at one place are permitted, and useful if conditional.\n\
|
||||||
\n\
|
\n\
|
||||||
Do \"help breakpoints\" for info on other commands dealing with breakpoints.", NULL));
|
Do \"help breakpoints\" for info on other commands dealing with breakpoints."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
add_com_alias ("b", "break", class_run, 1);
|
add_com_alias ("b", "break", class_run, 1);
|
||||||
|
@ -7788,56 +7789,59 @@ Do \"help breakpoints\" for info on other commands dealing with breakpoints.", N
|
||||||
|
|
||||||
if (dbx_commands)
|
if (dbx_commands)
|
||||||
{
|
{
|
||||||
add_abbrev_prefix_cmd ("stop", class_breakpoint, stop_command,
|
add_abbrev_prefix_cmd ("stop", class_breakpoint, stop_command, _("\
|
||||||
"Break in function/address or break at a line in the current file.",
|
Break in function/address or break at a line in the current file."),
|
||||||
&stoplist, "stop ", 1, &cmdlist);
|
&stoplist, "stop ", 1, &cmdlist);
|
||||||
add_cmd ("in", class_breakpoint, stopin_command,
|
add_cmd ("in", class_breakpoint, stopin_command,
|
||||||
_("Break in function or address."), &stoplist);
|
_("Break in function or address."), &stoplist);
|
||||||
add_cmd ("at", class_breakpoint, stopat_command,
|
add_cmd ("at", class_breakpoint, stopat_command,
|
||||||
_("Break at a line in the current file."), &stoplist);
|
_("Break at a line in the current file."), &stoplist);
|
||||||
add_com ("status", class_info, breakpoints_info,
|
add_com ("status", class_info, breakpoints_info, _("\
|
||||||
concat ("Status of user-settable breakpoints, or breakpoint number NUMBER.\n\
|
Status of user-settable breakpoints, or breakpoint number NUMBER.\n\
|
||||||
The \"Type\" column indicates one of:\n\
|
The \"Type\" column indicates one of:\n\
|
||||||
\tbreakpoint - normal breakpoint\n\
|
\tbreakpoint - normal breakpoint\n\
|
||||||
\twatchpoint - watchpoint\n\
|
\twatchpoint - watchpoint\n\
|
||||||
The \"Disp\" column contains one of \"keep\", \"del\", or \"dis\" to indicate\n\
|
The \"Disp\" column contains one of \"keep\", \"del\", or \"dis\" to indicate\n\
|
||||||
the disposition of the breakpoint after it gets hit. \"dis\" means that the\n\
|
the disposition of the breakpoint after it gets hit. \"dis\" means that the\n\
|
||||||
breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\n\
|
breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\n\
|
||||||
address and file/line number respectively.\n\n",
|
address and file/line number respectively.\n\
|
||||||
"Convenience variable \"$_\" and default examine address for \"x\"\n\
|
\n\
|
||||||
|
Convenience variable \"$_\" and default examine address for \"x\"\n\
|
||||||
are set to the address of the last breakpoint listed.\n\n\
|
are set to the address of the last breakpoint listed.\n\n\
|
||||||
Convenience variable \"$bpnum\" contains the number of the last\n\
|
Convenience variable \"$bpnum\" contains the number of the last\n\
|
||||||
breakpoint set.", NULL));
|
breakpoint set."));
|
||||||
}
|
}
|
||||||
|
|
||||||
add_info ("breakpoints", breakpoints_info,
|
add_info ("breakpoints", breakpoints_info, _("\
|
||||||
concat ("Status of user-settable breakpoints, or breakpoint number NUMBER.\n\
|
Status of user-settable breakpoints, or breakpoint number NUMBER.\n\
|
||||||
The \"Type\" column indicates one of:\n\
|
The \"Type\" column indicates one of:\n\
|
||||||
\tbreakpoint - normal breakpoint\n\
|
\tbreakpoint - normal breakpoint\n\
|
||||||
\twatchpoint - watchpoint\n\
|
\twatchpoint - watchpoint\n\
|
||||||
The \"Disp\" column contains one of \"keep\", \"del\", or \"dis\" to indicate\n\
|
The \"Disp\" column contains one of \"keep\", \"del\", or \"dis\" to indicate\n\
|
||||||
the disposition of the breakpoint after it gets hit. \"dis\" means that the\n\
|
the disposition of the breakpoint after it gets hit. \"dis\" means that the\n\
|
||||||
breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\n\
|
breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\n\
|
||||||
address and file/line number respectively.\n\n",
|
address and file/line number respectively.\n\
|
||||||
"Convenience variable \"$_\" and default examine address for \"x\"\n\
|
\n\
|
||||||
|
Convenience variable \"$_\" and default examine address for \"x\"\n\
|
||||||
are set to the address of the last breakpoint listed.\n\n\
|
are set to the address of the last breakpoint listed.\n\n\
|
||||||
Convenience variable \"$bpnum\" contains the number of the last\n\
|
Convenience variable \"$bpnum\" contains the number of the last\n\
|
||||||
breakpoint set.", NULL));
|
breakpoint set."));
|
||||||
|
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com ("lb", class_breakpoint, breakpoints_info,
|
add_com ("lb", class_breakpoint, breakpoints_info, _("\
|
||||||
concat ("Status of user-settable breakpoints, or breakpoint number NUMBER.\n\
|
Status of user-settable breakpoints, or breakpoint number NUMBER.\n\
|
||||||
The \"Type\" column indicates one of:\n\
|
The \"Type\" column indicates one of:\n\
|
||||||
\tbreakpoint - normal breakpoint\n\
|
\tbreakpoint - normal breakpoint\n\
|
||||||
\twatchpoint - watchpoint\n\
|
\twatchpoint - watchpoint\n\
|
||||||
The \"Disp\" column contains one of \"keep\", \"del\", or \"dis\" to indicate\n\
|
The \"Disp\" column contains one of \"keep\", \"del\", or \"dis\" to indicate\n\
|
||||||
the disposition of the breakpoint after it gets hit. \"dis\" means that the\n\
|
the disposition of the breakpoint after it gets hit. \"dis\" means that the\n\
|
||||||
breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\n\
|
breakpoint will be disabled. The \"Address\" and \"What\" columns indicate the\n\
|
||||||
address and file/line number respectively.\n\n",
|
address and file/line number respectively.\n\
|
||||||
"Convenience variable \"$_\" and default examine address for \"x\"\n\
|
\n\
|
||||||
|
Convenience variable \"$_\" and default examine address for \"x\"\n\
|
||||||
are set to the address of the last breakpoint listed.\n\n\
|
are set to the address of the last breakpoint listed.\n\n\
|
||||||
Convenience variable \"$bpnum\" contains the number of the last\n\
|
Convenience variable \"$bpnum\" contains the number of the last\n\
|
||||||
breakpoint set.", NULL));
|
breakpoint set."));
|
||||||
|
|
||||||
add_cmd ("breakpoints", class_maintenance, maintenance_info_breakpoints, _("\
|
add_cmd ("breakpoints", class_maintenance, maintenance_info_breakpoints, _("\
|
||||||
Status of all breakpoints, or breakpoint number NUMBER.\n\
|
Status of all breakpoints, or breakpoint number NUMBER.\n\
|
||||||
|
@ -7860,8 +7864,8 @@ Convenience variable \"$bpnum\" contains the number of the last\n\
|
||||||
breakpoint set."),
|
breakpoint set."),
|
||||||
&maintenanceinfolist);
|
&maintenanceinfolist);
|
||||||
|
|
||||||
add_com ("catch", class_breakpoint, catch_command,
|
add_com ("catch", class_breakpoint, catch_command, _("\
|
||||||
"Set catchpoints to catch events.\n\
|
Set catchpoints to catch events.\n\
|
||||||
Raised signals may be caught:\n\
|
Raised signals may be caught:\n\
|
||||||
\tcatch signal - all signals\n\
|
\tcatch signal - all signals\n\
|
||||||
\tcatch signal <signame> - a particular signal\n\
|
\tcatch signal <signame> - a particular signal\n\
|
||||||
|
@ -7893,35 +7897,35 @@ C++ exceptions may be caught:\n\
|
||||||
\n\
|
\n\
|
||||||
Do \"help set follow-fork-mode\" for info on debugging your program\n\
|
Do \"help set follow-fork-mode\" for info on debugging your program\n\
|
||||||
after a fork or vfork is caught.\n\n\
|
after a fork or vfork is caught.\n\n\
|
||||||
Do \"help breakpoints\" for info on other commands dealing with breakpoints.");
|
Do \"help breakpoints\" for info on other commands dealing with breakpoints."));
|
||||||
|
|
||||||
add_com ("tcatch", class_breakpoint, tcatch_command,
|
add_com ("tcatch", class_breakpoint, tcatch_command, _("\
|
||||||
"Set temporary catchpoints to catch events.\n\
|
Set temporary catchpoints to catch events.\n\
|
||||||
Args like \"catch\" command.\n\
|
Args like \"catch\" command.\n\
|
||||||
Like \"catch\" except the catchpoint is only temporary,\n\
|
Like \"catch\" except the catchpoint is only temporary,\n\
|
||||||
so it will be deleted when hit. Equivalent to \"catch\" followed\n\
|
so it will be deleted when hit. Equivalent to \"catch\" followed\n\
|
||||||
by using \"enable delete\" on the catchpoint number.");
|
by using \"enable delete\" on the catchpoint number."));
|
||||||
|
|
||||||
c = add_com ("watch", class_breakpoint, watch_command,
|
c = add_com ("watch", class_breakpoint, watch_command, _("\
|
||||||
"Set a watchpoint for an expression.\n\
|
Set a watchpoint for an expression.\n\
|
||||||
A watchpoint stops execution of your program whenever the value of\n\
|
A watchpoint stops execution of your program whenever the value of\n\
|
||||||
an expression changes.");
|
an expression changes."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
c = add_com ("rwatch", class_breakpoint, rwatch_command,
|
c = add_com ("rwatch", class_breakpoint, rwatch_command, _("\
|
||||||
"Set a read watchpoint for an expression.\n\
|
Set a read watchpoint for an expression.\n\
|
||||||
A watchpoint stops execution of your program whenever the value of\n\
|
A watchpoint stops execution of your program whenever the value of\n\
|
||||||
an expression is read.");
|
an expression is read."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
c = add_com ("awatch", class_breakpoint, awatch_command,
|
c = add_com ("awatch", class_breakpoint, awatch_command, _("\
|
||||||
"Set a watchpoint for an expression.\n\
|
Set a watchpoint for an expression.\n\
|
||||||
A watchpoint stops execution of your program whenever the value of\n\
|
A watchpoint stops execution of your program whenever the value of\n\
|
||||||
an expression is either read or written.");
|
an expression is either read or written."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
add_info ("watchpoints", breakpoints_info,
|
add_info ("watchpoints", breakpoints_info,
|
||||||
"Synonym for ``info breakpoints''.");
|
_("Synonym for ``info breakpoints''."));
|
||||||
|
|
||||||
|
|
||||||
c = add_set_cmd ("can-use-hw-watchpoints", class_support, var_zinteger,
|
c = add_set_cmd ("can-use-hw-watchpoints", class_support, var_zinteger,
|
||||||
|
@ -7936,16 +7940,16 @@ hardware.)",
|
||||||
|
|
||||||
can_use_hw_watchpoints = 1;
|
can_use_hw_watchpoints = 1;
|
||||||
|
|
||||||
add_prefix_cmd ("breakpoint", class_maintenance, set_breakpoint_cmd, "\
|
add_prefix_cmd ("breakpoint", class_maintenance, set_breakpoint_cmd, _("\
|
||||||
Breakpoint specific settings\n\
|
Breakpoint specific settings\n\
|
||||||
Configure various breakpoint-specific variables such as\n\
|
Configure various breakpoint-specific variables such as\n\
|
||||||
pending breakpoint behavior",
|
pending breakpoint behavior"),
|
||||||
&breakpoint_set_cmdlist, "set breakpoint ",
|
&breakpoint_set_cmdlist, "set breakpoint ",
|
||||||
0/*allow-unknown*/, &setlist);
|
0/*allow-unknown*/, &setlist);
|
||||||
add_prefix_cmd ("breakpoint", class_maintenance, show_breakpoint_cmd, "\
|
add_prefix_cmd ("breakpoint", class_maintenance, show_breakpoint_cmd, _("\
|
||||||
Breakpoint specific settings\n\
|
Breakpoint specific settings\n\
|
||||||
Configure various breakpoint-specific variables such as\n\
|
Configure various breakpoint-specific variables such as\n\
|
||||||
pending breakpoint behavior",
|
pending breakpoint behavior"),
|
||||||
&breakpoint_show_cmdlist, "show breakpoint ",
|
&breakpoint_show_cmdlist, "show breakpoint ",
|
||||||
0/*allow-unknown*/, &showlist);
|
0/*allow-unknown*/, &showlist);
|
||||||
|
|
||||||
|
|
|
@ -1081,32 +1081,32 @@ The commands below can be used to select other frames by number or address."),
|
||||||
|
|
||||||
/* Define general commands. */
|
/* Define general commands. */
|
||||||
|
|
||||||
add_com ("pwd", class_files, pwd_command,
|
add_com ("pwd", class_files, pwd_command, _("\
|
||||||
"Print working directory. This is used for your program as well.");
|
Print working directory. This is used for your program as well."));
|
||||||
c = add_cmd ("cd", class_files, cd_command, _("\
|
c = add_cmd ("cd", class_files, cd_command, _("\
|
||||||
Set working directory to DIR for debugger and program being debugged.\n\
|
Set working directory to DIR for debugger and program being debugged.\n\
|
||||||
The change does not take effect for the program being debugged\n\
|
The change does not take effect for the program being debugged\n\
|
||||||
until the next time it is started."), &cmdlist);
|
until the next time it is started."), &cmdlist);
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
add_com ("echo", class_support, echo_command,
|
add_com ("echo", class_support, echo_command, _("\
|
||||||
"Print a constant string. Give string as argument.\n\
|
Print a constant string. Give string as argument.\n\
|
||||||
C escape sequences may be used in the argument.\n\
|
C escape sequences may be used in the argument.\n\
|
||||||
No newline is added at the end of the argument;\n\
|
No newline is added at the end of the argument;\n\
|
||||||
use \"\\n\" if you want a newline to be printed.\n\
|
use \"\\n\" if you want a newline to be printed.\n\
|
||||||
Since leading and trailing whitespace are ignored in command arguments,\n\
|
Since leading and trailing whitespace are ignored in command arguments,\n\
|
||||||
if you want to print some you must use \"\\\" before leading whitespace\n\
|
if you want to print some you must use \"\\\" before leading whitespace\n\
|
||||||
to be printed or after trailing whitespace.");
|
to be printed or after trailing whitespace."));
|
||||||
add_com ("document", class_support, document_command,
|
add_com ("document", class_support, document_command, _("\
|
||||||
"Document a user-defined command.\n\
|
Document a user-defined command.\n\
|
||||||
Give command name as argument. Give documentation on following lines.\n\
|
Give command name as argument. Give documentation on following lines.\n\
|
||||||
End with a line of just \"end\".");
|
End with a line of just \"end\"."));
|
||||||
add_com ("define", class_support, define_command,
|
add_com ("define", class_support, define_command, _("\
|
||||||
"Define a new command name. Command name is argument.\n\
|
Define a new command name. Command name is argument.\n\
|
||||||
Definition appears on following lines, one command per line.\n\
|
Definition appears on following lines, one command per line.\n\
|
||||||
End with a line of just \"end\".\n\
|
End with a line of just \"end\".\n\
|
||||||
Use the \"document\" command to give documentation for the new command.\n\
|
Use the \"document\" command to give documentation for the new command.\n\
|
||||||
Commands defined in this way may have up to ten arguments.");
|
Commands defined in this way may have up to ten arguments."));
|
||||||
|
|
||||||
c = add_cmd ("source", class_support, source_command, _("\
|
c = add_cmd ("source", class_support, source_command, _("\
|
||||||
Read commands from a file named FILE.\n\
|
Read commands from a file named FILE.\n\
|
||||||
|
@ -1114,8 +1114,9 @@ Note that the file \"" GDBINIT_FILENAME "\" is read automatically in this way\n\
|
||||||
when gdb is started."), &cmdlist);
|
when gdb is started."), &cmdlist);
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
add_com ("quit", class_support, quit_command, "Exit gdb.");
|
add_com ("quit", class_support, quit_command, _("Exit gdb."));
|
||||||
c = add_com ("help", class_support, help_command, "Print list of commands.");
|
c = add_com ("help", class_support, help_command,
|
||||||
|
_("Print list of commands."));
|
||||||
set_cmd_completer (c, command_completer);
|
set_cmd_completer (c, command_completer);
|
||||||
add_com_alias ("q", "quit", class_support, 1);
|
add_com_alias ("q", "quit", class_support, 1);
|
||||||
add_com_alias ("h", "help", class_support, 1);
|
add_com_alias ("h", "help", class_support, 1);
|
||||||
|
@ -1128,10 +1129,10 @@ when gdb is started."), &cmdlist);
|
||||||
set_verbose (NULL, 0, c);
|
set_verbose (NULL, 0, c);
|
||||||
|
|
||||||
add_prefix_cmd ("history", class_support, set_history,
|
add_prefix_cmd ("history", class_support, set_history,
|
||||||
"Generic command for setting command history parameters.",
|
_("Generic command for setting command history parameters."),
|
||||||
&sethistlist, "set history ", 0, &setlist);
|
&sethistlist, "set history ", 0, &setlist);
|
||||||
add_prefix_cmd ("history", class_support, show_history,
|
add_prefix_cmd ("history", class_support, show_history,
|
||||||
"Generic command for showing command history parameters.",
|
_("Generic command for showing command history parameters."),
|
||||||
&showhistlist, "show history ", 0, &showlist);
|
&showhistlist, "show history ", 0, &showlist);
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
|
@ -1140,19 +1141,19 @@ when gdb is started."), &cmdlist);
|
||||||
Without an argument, history expansion is enabled.", &sethistlist),
|
Without an argument, history expansion is enabled.", &sethistlist),
|
||||||
&showhistlist);
|
&showhistlist);
|
||||||
|
|
||||||
add_prefix_cmd ("info", class_info, info_command,
|
add_prefix_cmd ("info", class_info, info_command, _("\
|
||||||
"Generic command for showing things about the program being debugged.",
|
Generic command for showing things about the program being debugged."),
|
||||||
&infolist, "info ", 0, &cmdlist);
|
&infolist, "info ", 0, &cmdlist);
|
||||||
add_com_alias ("i", "info", class_info, 1);
|
add_com_alias ("i", "info", class_info, 1);
|
||||||
|
|
||||||
add_com ("complete", class_obscure, complete_command,
|
add_com ("complete", class_obscure, complete_command,
|
||||||
"List the completions for the rest of the line as a command.");
|
_("List the completions for the rest of the line as a command."));
|
||||||
|
|
||||||
add_prefix_cmd ("show", class_info, show_command,
|
add_prefix_cmd ("show", class_info, show_command,
|
||||||
"Generic command for showing things about the debugger.",
|
_("Generic command for showing things about the debugger."),
|
||||||
&showlist, "show ", 0, &cmdlist);
|
&showlist, "show ", 0, &cmdlist);
|
||||||
/* Another way to get at the same thing. */
|
/* Another way to get at the same thing. */
|
||||||
add_info ("set", show_command, "Show all GDB settings.");
|
add_info ("set", show_command, _("Show all GDB settings."));
|
||||||
|
|
||||||
add_cmd ("commands", no_class, show_commands, _("\
|
add_cmd ("commands", no_class, show_commands, _("\
|
||||||
Show the history of commands you typed.\n\
|
Show the history of commands you typed.\n\
|
||||||
|
@ -1163,18 +1164,18 @@ the previous command number shown."),
|
||||||
add_cmd ("version", no_class, show_version,
|
add_cmd ("version", no_class, show_version,
|
||||||
_("Show what version of GDB this is."), &showlist);
|
_("Show what version of GDB this is."), &showlist);
|
||||||
|
|
||||||
add_com ("while", class_support, while_command,
|
add_com ("while", class_support, while_command, _("\
|
||||||
"Execute nested commands WHILE the conditional expression is non zero.\n\
|
Execute nested commands WHILE the conditional expression is non zero.\n\
|
||||||
The conditional expression must follow the word `while' and must in turn be\n\
|
The conditional expression must follow the word `while' and must in turn be\n\
|
||||||
followed by a new line. The nested commands must be entered one per line,\n\
|
followed by a new line. The nested commands must be entered one per line,\n\
|
||||||
and should be terminated by the word `end'.");
|
and should be terminated by the word `end'."));
|
||||||
|
|
||||||
add_com ("if", class_support, if_command,
|
add_com ("if", class_support, if_command, _("\
|
||||||
"Execute nested commands once IF the conditional expression is non zero.\n\
|
Execute nested commands once IF the conditional expression is non zero.\n\
|
||||||
The conditional expression must follow the word `if' and must in turn be\n\
|
The conditional expression must follow the word `if' and must in turn be\n\
|
||||||
followed by a new line. The nested commands must be entered one per line,\n\
|
followed by a new line. The nested commands must be entered one per line,\n\
|
||||||
and should be terminated by the word 'else' or `end'. If an else clause\n\
|
and should be terminated by the word 'else' or `end'. If an else clause\n\
|
||||||
is used, the same rules apply to its nested commands as to the first ones.");
|
is used, the same rules apply to its nested commands as to the first ones."));
|
||||||
|
|
||||||
/* If target is open when baud changes, it doesn't take effect until the
|
/* If target is open when baud changes, it doesn't take effect until the
|
||||||
next open (I think, not sure). */
|
next open (I think, not sure). */
|
||||||
|
@ -1202,45 +1203,43 @@ from the target.", &setlist),
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_prefix_cmd ("debug", no_class, set_debug,
|
add_prefix_cmd ("debug", no_class, set_debug,
|
||||||
"Generic command for setting gdb debugging flags",
|
_("Generic command for setting gdb debugging flags"),
|
||||||
&setdebuglist, "set debug ", 0, &setlist);
|
&setdebuglist, "set debug ", 0, &setlist);
|
||||||
|
|
||||||
add_prefix_cmd ("debug", no_class, show_debug,
|
add_prefix_cmd ("debug", no_class, show_debug,
|
||||||
"Generic command for showing gdb debugging flags",
|
_("Generic command for showing gdb debugging flags"),
|
||||||
&showdebuglist, "show debug ", 0, &showlist);
|
&showdebuglist, "show debug ", 0, &showlist);
|
||||||
|
|
||||||
c = add_com ("shell", class_support, shell_escape,
|
c = add_com ("shell", class_support, shell_escape, _("\
|
||||||
"Execute the rest of the line as a shell command.\n\
|
Execute the rest of the line as a shell command.\n\
|
||||||
With no arguments, run an inferior shell.");
|
With no arguments, run an inferior shell."));
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
c = add_com ("edit", class_files, edit_command,
|
c = add_com ("edit", class_files, edit_command, _("\
|
||||||
concat ("Edit specified file or function.\n\
|
Edit specified file or function.\n\
|
||||||
With no argument, edits file containing most recent line listed.\n\
|
With no argument, edits file containing most recent line listed.\n\
|
||||||
", "\
|
|
||||||
Editing targets can be specified in these ways:\n\
|
Editing targets can be specified in these ways:\n\
|
||||||
FILE:LINENUM, to edit at that line in that file,\n\
|
FILE:LINENUM, to edit at that line in that file,\n\
|
||||||
FUNCTION, to edit at the beginning of that function,\n\
|
FUNCTION, to edit at the beginning of that function,\n\
|
||||||
FILE:FUNCTION, to distinguish among like-named static functions.\n\
|
FILE:FUNCTION, to distinguish among like-named static functions.\n\
|
||||||
*ADDRESS, to edit at the line containing that address.\n\
|
*ADDRESS, to edit at the line containing that address.\n\
|
||||||
Uses EDITOR environment variable contents as editor (or ex as default).",NULL));
|
Uses EDITOR environment variable contents as editor (or ex as default)."));
|
||||||
|
|
||||||
c->completer = location_completer;
|
c->completer = location_completer;
|
||||||
|
|
||||||
add_com ("list", class_files, list_command,
|
add_com ("list", class_files, list_command, _("\
|
||||||
concat ("List specified function or line.\n\
|
List specified function or line.\n\
|
||||||
With no argument, lists ten more lines after or around previous listing.\n\
|
With no argument, lists ten more lines after or around previous listing.\n\
|
||||||
\"list -\" lists the ten lines before a previous ten-line listing.\n\
|
\"list -\" lists the ten lines before a previous ten-line listing.\n\
|
||||||
One argument specifies a line, and ten lines are listed around that line.\n\
|
One argument specifies a line, and ten lines are listed around that line.\n\
|
||||||
Two arguments with comma between specify starting and ending lines to list.\n\
|
Two arguments with comma between specify starting and ending lines to list.\n\
|
||||||
", "\
|
|
||||||
Lines can be specified in these ways:\n\
|
Lines can be specified in these ways:\n\
|
||||||
LINENUM, to list around that line in current file,\n\
|
LINENUM, to list around that line in current file,\n\
|
||||||
FILE:LINENUM, to list around that line in that file,\n\
|
FILE:LINENUM, to list around that line in that file,\n\
|
||||||
FUNCTION, to list around beginning of that function,\n\
|
FUNCTION, to list around beginning of that function,\n\
|
||||||
FILE:FUNCTION, to distinguish among like-named static functions.\n\
|
FILE:FUNCTION, to distinguish among like-named static functions.\n\
|
||||||
*ADDRESS, to list around the line containing that address.\n\
|
*ADDRESS, to list around the line containing that address.\n\
|
||||||
With two args if one is empty it stands for ten lines away from the other arg.", NULL));
|
With two args if one is empty it stands for ten lines away from the other arg."));
|
||||||
|
|
||||||
if (!xdb_commands)
|
if (!xdb_commands)
|
||||||
add_com_alias ("l", "list", class_files, 1);
|
add_com_alias ("l", "list", class_files, 1);
|
||||||
|
@ -1250,11 +1249,11 @@ With two args if one is empty it stands for ten lines away from the other arg.",
|
||||||
if (dbx_commands)
|
if (dbx_commands)
|
||||||
add_com_alias ("file", "list", class_files, 1);
|
add_com_alias ("file", "list", class_files, 1);
|
||||||
|
|
||||||
c = add_com ("disassemble", class_vars, disassemble_command,
|
c = add_com ("disassemble", class_vars, disassemble_command, _("\
|
||||||
"Disassemble a specified section of memory.\n\
|
Disassemble a specified section of memory.\n\
|
||||||
Default is the function surrounding the pc of the selected frame.\n\
|
Default is the function surrounding the pc of the selected frame.\n\
|
||||||
With a single argument, the function surrounding that address is dumped.\n\
|
With a single argument, the function surrounding that address is dumped.\n\
|
||||||
Two arguments are taken as a range of memory to dump.");
|
Two arguments are taken as a range of memory to dump."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com_alias ("va", "disassemble", class_xdb, 0);
|
add_com_alias ("va", "disassemble", class_xdb, 0);
|
||||||
|
@ -1268,14 +1267,15 @@ Two arguments are taken as a range of memory to dump.");
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com_alias ("!", "shell", class_support, 0);
|
add_com_alias ("!", "shell", class_support, 0);
|
||||||
|
|
||||||
c = add_com ("make", class_support, make_command,
|
c = add_com ("make", class_support, make_command, _("\
|
||||||
"Run the ``make'' program using the rest of the line as arguments.");
|
Run the ``make'' program using the rest of the line as arguments."));
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
add_cmd ("user", no_class, show_user, _("\
|
add_cmd ("user", no_class, show_user, _("\
|
||||||
Show definitions of user defined commands.\n\
|
Show definitions of user defined commands.\n\
|
||||||
Argument is the name of the user defined command.\n\
|
Argument is the name of the user defined command.\n\
|
||||||
With no argument, show definitions of all user defined commands."), &showlist);
|
With no argument, show definitions of all user defined commands."), &showlist);
|
||||||
add_com ("apropos", class_support, apropos_command, "Search for commands matching a REGEXP");
|
add_com ("apropos", class_support, apropos_command,
|
||||||
|
_("Search for commands matching a REGEXP"));
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
(add_set_cmd ("max-user-call-depth", no_class, var_integer,
|
(add_set_cmd ("max-user-call-depth", no_class, var_integer,
|
||||||
|
|
|
@ -675,13 +675,13 @@ void
|
||||||
_initialize_cli_dump (void)
|
_initialize_cli_dump (void)
|
||||||
{
|
{
|
||||||
struct cmd_list_element *c;
|
struct cmd_list_element *c;
|
||||||
add_prefix_cmd ("dump", class_vars, dump_command, "\
|
add_prefix_cmd ("dump", class_vars, dump_command, _("\
|
||||||
Dump target code/data to a local file.",
|
Dump target code/data to a local file."),
|
||||||
&dump_cmdlist, "dump ",
|
&dump_cmdlist, "dump ",
|
||||||
0/*allow-unknown*/,
|
0/*allow-unknown*/,
|
||||||
&cmdlist);
|
&cmdlist);
|
||||||
add_prefix_cmd ("append", class_vars, append_command, "\
|
add_prefix_cmd ("append", class_vars, append_command, _("\
|
||||||
Append target code/data to a local file.",
|
Append target code/data to a local file."),
|
||||||
&append_cmdlist, "append ",
|
&append_cmdlist, "append ",
|
||||||
0/*allow-unknown*/,
|
0/*allow-unknown*/,
|
||||||
&cmdlist);
|
&cmdlist);
|
||||||
|
@ -696,32 +696,32 @@ Write the value of an expression to a raw binary file.\n\
|
||||||
Arguments are FILE EXPRESSION. Writes the value of EXPRESSION to\n\
|
Arguments are FILE EXPRESSION. Writes the value of EXPRESSION to\n\
|
||||||
the specified FILE in raw target ordered bytes.");
|
the specified FILE in raw target ordered bytes.");
|
||||||
|
|
||||||
add_prefix_cmd ("srec", all_commands, srec_dump_command, "\
|
add_prefix_cmd ("srec", all_commands, srec_dump_command, _("\
|
||||||
Write target code/data to an srec file.",
|
Write target code/data to an srec file."),
|
||||||
&srec_cmdlist, "dump srec ",
|
&srec_cmdlist, "dump srec ",
|
||||||
0 /*allow-unknown*/,
|
0 /*allow-unknown*/,
|
||||||
&dump_cmdlist);
|
&dump_cmdlist);
|
||||||
|
|
||||||
add_prefix_cmd ("ihex", all_commands, ihex_dump_command, "\
|
add_prefix_cmd ("ihex", all_commands, ihex_dump_command, _("\
|
||||||
Write target code/data to an intel hex file.",
|
Write target code/data to an intel hex file."),
|
||||||
&ihex_cmdlist, "dump ihex ",
|
&ihex_cmdlist, "dump ihex ",
|
||||||
0 /*allow-unknown*/,
|
0 /*allow-unknown*/,
|
||||||
&dump_cmdlist);
|
&dump_cmdlist);
|
||||||
|
|
||||||
add_prefix_cmd ("tekhex", all_commands, tekhex_dump_command, "\
|
add_prefix_cmd ("tekhex", all_commands, tekhex_dump_command, _("\
|
||||||
Write target code/data to a tekhex file.",
|
Write target code/data to a tekhex file."),
|
||||||
&tekhex_cmdlist, "dump tekhex ",
|
&tekhex_cmdlist, "dump tekhex ",
|
||||||
0 /*allow-unknown*/,
|
0 /*allow-unknown*/,
|
||||||
&dump_cmdlist);
|
&dump_cmdlist);
|
||||||
|
|
||||||
add_prefix_cmd ("binary", all_commands, binary_dump_command, "\
|
add_prefix_cmd ("binary", all_commands, binary_dump_command, _("\
|
||||||
Write target code/data to a raw binary file.",
|
Write target code/data to a raw binary file."),
|
||||||
&binary_dump_cmdlist, "dump binary ",
|
&binary_dump_cmdlist, "dump binary ",
|
||||||
0 /*allow-unknown*/,
|
0 /*allow-unknown*/,
|
||||||
&dump_cmdlist);
|
&dump_cmdlist);
|
||||||
|
|
||||||
add_prefix_cmd ("binary", all_commands, binary_append_command, "\
|
add_prefix_cmd ("binary", all_commands, binary_append_command, _("\
|
||||||
Append target code/data to a raw binary file.",
|
Append target code/data to a raw binary file."),
|
||||||
&binary_append_cmdlist, "append binary ",
|
&binary_append_cmdlist, "append binary ",
|
||||||
0 /*allow-unknown*/,
|
0 /*allow-unknown*/,
|
||||||
&append_cmdlist);
|
&append_cmdlist);
|
||||||
|
@ -786,12 +786,12 @@ Arguments are FILE EXPRESSION. Writes the value of EXPRESSION\n\
|
||||||
to the specified FILE in raw target ordered bytes."),
|
to the specified FILE in raw target ordered bytes."),
|
||||||
&binary_append_cmdlist);
|
&binary_append_cmdlist);
|
||||||
|
|
||||||
c = add_com ("restore", class_vars, restore_command,
|
c = add_com ("restore", class_vars, restore_command, _("\
|
||||||
"Restore the contents of FILE to target memory.\n\
|
Restore the contents of FILE to target memory.\n\
|
||||||
Arguments are FILE OFFSET START END where all except FILE are optional.\n\
|
Arguments are FILE OFFSET START END where all except FILE are optional.\n\
|
||||||
OFFSET will be added to the base address of the file (default zero).\n\
|
OFFSET will be added to the base address of the file (default zero).\n\
|
||||||
If START and END are given, only the file contents within that range\n\
|
If START and END are given, only the file contents within that range\n\
|
||||||
(file relative) will be restored to target memory.");
|
(file relative) will be restored to target memory."));
|
||||||
c->completer = filename_completer;
|
c->completer = filename_completer;
|
||||||
/* FIXME: completers for other commands. */
|
/* FIXME: completers for other commands. */
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,10 +170,10 @@ _initialize_cli_logging (void)
|
||||||
|
|
||||||
|
|
||||||
add_prefix_cmd ("logging", class_support, set_logging_command,
|
add_prefix_cmd ("logging", class_support, set_logging_command,
|
||||||
"Set logging options", &set_logging_cmdlist,
|
_("Set logging options"), &set_logging_cmdlist,
|
||||||
"set logging ", 0, &setlist);
|
"set logging ", 0, &setlist);
|
||||||
add_prefix_cmd ("logging", class_support, show_logging_command,
|
add_prefix_cmd ("logging", class_support, show_logging_command,
|
||||||
"Show logging options", &show_logging_cmdlist,
|
_("Show logging options"), &show_logging_cmdlist,
|
||||||
"show logging ", 0, &showlist);
|
"show logging ", 0, &showlist);
|
||||||
add_setshow_boolean_cmd ("overwrite", class_support, &logging_overwrite, _("\
|
add_setshow_boolean_cmd ("overwrite", class_support, &logging_overwrite, _("\
|
||||||
Set whether logging overwrites or appends to the log file."), _("\
|
Set whether logging overwrites or appends to the log file."), _("\
|
||||||
|
|
|
@ -746,7 +746,7 @@ void
|
||||||
_initialize_cp_support (void)
|
_initialize_cp_support (void)
|
||||||
{
|
{
|
||||||
add_prefix_cmd ("cplus", class_maintenance, maint_cplus_command,
|
add_prefix_cmd ("cplus", class_maintenance, maint_cplus_command,
|
||||||
"C++ maintenance commands.", &maint_cplus_cmd_list,
|
_("C++ maintenance commands."), &maint_cplus_cmd_list,
|
||||||
"maintenance cplus ", 0, &maintenancelist);
|
"maintenance cplus ", 0, &maintenancelist);
|
||||||
add_alias_cmd ("cp", "cplus", class_maintenance, 1, &maintenancelist);
|
add_alias_cmd ("cp", "cplus", class_maintenance, 1, &maintenancelist);
|
||||||
|
|
||||||
|
|
|
@ -599,6 +599,6 @@ volatile registers are in use. By default, this option is off.",
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_info ("dcache", dcache_info,
|
add_info ("dcache", dcache_info,
|
||||||
"Print information on the dcache performance.");
|
_("Print information on the dcache performance."));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9630,15 +9630,15 @@ _initialize_dwarf2_read (void)
|
||||||
{
|
{
|
||||||
dwarf2_objfile_data_key = register_objfile_data ();
|
dwarf2_objfile_data_key = register_objfile_data ();
|
||||||
|
|
||||||
add_prefix_cmd ("dwarf2", class_maintenance, set_dwarf2_cmd,
|
add_prefix_cmd ("dwarf2", class_maintenance, set_dwarf2_cmd, _("\
|
||||||
"Set DWARF 2 specific variables.\n"
|
Set DWARF 2 specific variables.\n\
|
||||||
"Configure DWARF 2 variables such as the cache size",
|
Configure DWARF 2 variables such as the cache size"),
|
||||||
&set_dwarf2_cmdlist, "maintenance set dwarf2 ",
|
&set_dwarf2_cmdlist, "maintenance set dwarf2 ",
|
||||||
0/*allow-unknown*/, &maintenance_set_cmdlist);
|
0/*allow-unknown*/, &maintenance_set_cmdlist);
|
||||||
|
|
||||||
add_prefix_cmd ("dwarf2", class_maintenance, show_dwarf2_cmd,
|
add_prefix_cmd ("dwarf2", class_maintenance, show_dwarf2_cmd, _("\
|
||||||
"Show DWARF 2 specific variables\n"
|
Show DWARF 2 specific variables\n\
|
||||||
"Show DWARF 2 variables such as the cache size",
|
Show DWARF 2 variables such as the cache size"),
|
||||||
&show_dwarf2_cmdlist, "maintenance show dwarf2 ",
|
&show_dwarf2_cmdlist, "maintenance show dwarf2 ",
|
||||||
0/*allow-unknown*/, &maintenance_show_cmdlist);
|
0/*allow-unknown*/, &maintenance_show_cmdlist);
|
||||||
|
|
||||||
|
|
|
@ -735,12 +735,12 @@ is searched for a command of that name.\n\
|
||||||
No arg means have no executable file."), &cmdlist);
|
No arg means have no executable file."), &cmdlist);
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
add_com ("section", class_files, set_section_command,
|
add_com ("section", class_files, set_section_command, _("\
|
||||||
"Change the base address of section SECTION of the exec file to ADDR.\n\
|
Change the base address of section SECTION of the exec file to ADDR.\n\
|
||||||
This can be used if the exec file does not contain section addresses,\n\
|
This can be used if the exec file does not contain section addresses,\n\
|
||||||
(such as in the a.out format), or when the addresses specified in the\n\
|
(such as in the a.out format), or when the addresses specified in the\n\
|
||||||
file itself are wrong. Each section must be changed separately. The\n\
|
file itself are wrong. Each section must be changed separately. The\n\
|
||||||
``info files'' command lists all the sections and their addresses.");
|
``info files'' command lists all the sections and their addresses."));
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
(add_set_cmd ("write", class_support, var_boolean, (char *) &write_files,
|
(add_set_cmd ("write", class_support, var_boolean, (char *) &write_files,
|
||||||
|
|
|
@ -771,8 +771,8 @@ void
|
||||||
_initialize_f_valprint (void)
|
_initialize_f_valprint (void)
|
||||||
{
|
{
|
||||||
add_info ("common", info_common_command,
|
add_info ("common", info_common_command,
|
||||||
"Print out the values contained in a Fortran COMMON block.");
|
_("Print out the values contained in a Fortran COMMON block."));
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com ("lc", class_info, info_common_command,
|
add_com ("lc", class_info, info_common_command,
|
||||||
"Print out the values contained in a Fortran COMMON block.");
|
_("Print out the values contained in a Fortran COMMON block."));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1538,14 +1538,14 @@ _initialize_frame (void)
|
||||||
|
|
||||||
observer_attach_target_changed (frame_observer_target_changed);
|
observer_attach_target_changed (frame_observer_target_changed);
|
||||||
|
|
||||||
add_prefix_cmd ("backtrace", class_maintenance, set_backtrace_cmd, "\
|
add_prefix_cmd ("backtrace", class_maintenance, set_backtrace_cmd, _("\
|
||||||
Set backtrace specific variables.\n\
|
Set backtrace specific variables.\n\
|
||||||
Configure backtrace variables such as the backtrace limit",
|
Configure backtrace variables such as the backtrace limit"),
|
||||||
&set_backtrace_cmdlist, "set backtrace ",
|
&set_backtrace_cmdlist, "set backtrace ",
|
||||||
0/*allow-unknown*/, &setlist);
|
0/*allow-unknown*/, &setlist);
|
||||||
add_prefix_cmd ("backtrace", class_maintenance, show_backtrace_cmd, "\
|
add_prefix_cmd ("backtrace", class_maintenance, show_backtrace_cmd, _("\
|
||||||
Show backtrace specific variables\n\
|
Show backtrace specific variables\n\
|
||||||
Show backtrace variables such as the backtrace limit",
|
Show backtrace variables such as the backtrace limit"),
|
||||||
&show_backtrace_cmdlist, "show backtrace ",
|
&show_backtrace_cmdlist, "show backtrace ",
|
||||||
0/*allow-unknown*/, &showlist);
|
0/*allow-unknown*/, &showlist);
|
||||||
|
|
||||||
|
|
|
@ -491,10 +491,9 @@ gcore_memory_sections (bfd *obfd)
|
||||||
void
|
void
|
||||||
_initialize_gcore (void)
|
_initialize_gcore (void)
|
||||||
{
|
{
|
||||||
add_com ("generate-core-file", class_files, gcore_command,
|
add_com ("generate-core-file", class_files, gcore_command, _("\
|
||||||
"\
|
|
||||||
Save a core file with the current state of the debugged process.\n\
|
Save a core file with the current state of the debugged process.\n\
|
||||||
Argument is optional filename. Default filename is 'core.<process_id>'.");
|
Argument is optional filename. Default filename is 'core.<process_id>'."));
|
||||||
|
|
||||||
add_com_alias ("gcore", "generate-core-file", class_files, 1);
|
add_com_alias ("gcore", "generate-core-file", class_files, 1);
|
||||||
exec_set_find_memory_regions (objfile_find_memory_regions);
|
exec_set_find_memory_regions (objfile_find_memory_regions);
|
||||||
|
|
|
@ -3133,10 +3133,10 @@ Show whether exceptions in the inferior process will be trapped."),
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_prefix_cmd ("task", no_class, set_task_cmd,
|
add_prefix_cmd ("task", no_class, set_task_cmd,
|
||||||
"Command prefix for setting task attributes.",
|
_("Command prefix for setting task attributes."),
|
||||||
&set_task_cmd_list, "set task ", 0, &setlist);
|
&set_task_cmd_list, "set task ", 0, &setlist);
|
||||||
add_prefix_cmd ("task", no_class, show_task_cmd,
|
add_prefix_cmd ("task", no_class, show_task_cmd,
|
||||||
"Command prefix for showing task attributes.",
|
_("Command prefix for showing task attributes."),
|
||||||
&show_task_cmd_list, "show task ", 0, &showlist);
|
&show_task_cmd_list, "show task ", 0, &showlist);
|
||||||
|
|
||||||
add_cmd ("pause", class_run, set_task_pause_cmd, _("\
|
add_cmd ("pause", class_run, set_task_pause_cmd, _("\
|
||||||
|
@ -3300,17 +3300,17 @@ static void
|
||||||
add_thread_commands (void)
|
add_thread_commands (void)
|
||||||
{
|
{
|
||||||
add_prefix_cmd ("thread", no_class, set_thread_cmd,
|
add_prefix_cmd ("thread", no_class, set_thread_cmd,
|
||||||
"Command prefix for setting thread properties.",
|
_("Command prefix for setting thread properties."),
|
||||||
&set_thread_cmd_list, "set thread ", 0, &setlist);
|
&set_thread_cmd_list, "set thread ", 0, &setlist);
|
||||||
add_prefix_cmd ("default", no_class, show_thread_cmd,
|
add_prefix_cmd ("default", no_class, show_thread_cmd,
|
||||||
"Command prefix for setting default thread properties.",
|
_("Command prefix for setting default thread properties."),
|
||||||
&set_thread_default_cmd_list, "set thread default ", 0,
|
&set_thread_default_cmd_list, "set thread default ", 0,
|
||||||
&set_thread_cmd_list);
|
&set_thread_cmd_list);
|
||||||
add_prefix_cmd ("thread", no_class, set_thread_default_cmd,
|
add_prefix_cmd ("thread", no_class, set_thread_default_cmd,
|
||||||
"Command prefix for showing thread properties.",
|
_("Command prefix for showing thread properties."),
|
||||||
&show_thread_cmd_list, "show thread ", 0, &showlist);
|
&show_thread_cmd_list, "show thread ", 0, &showlist);
|
||||||
add_prefix_cmd ("default", no_class, show_thread_default_cmd,
|
add_prefix_cmd ("default", no_class, show_thread_default_cmd,
|
||||||
"Command prefix for showing default thread properties.",
|
_("Command prefix for showing default thread properties."),
|
||||||
&show_thread_default_cmd_list, "show thread default ", 0,
|
&show_thread_default_cmd_list, "show thread default ", 0,
|
||||||
&show_thread_cmd_list);
|
&show_thread_cmd_list);
|
||||||
|
|
||||||
|
|
|
@ -1906,8 +1906,8 @@ _initialize_go32_nat (void)
|
||||||
init_go32_ops ();
|
init_go32_ops ();
|
||||||
add_target (&go32_ops);
|
add_target (&go32_ops);
|
||||||
|
|
||||||
add_prefix_cmd ("dos", class_info, go32_info_dos_command,
|
add_prefix_cmd ("dos", class_info, go32_info_dos_command, _("\
|
||||||
"Print information specific to DJGPP (aka MS-DOS) debugging.",
|
Print information specific to DJGPP (aka MS-DOS) debugging."),
|
||||||
&info_dos_cmdlist, "info dos ", 0, &infolist);
|
&info_dos_cmdlist, "info dos ", 0, &infolist);
|
||||||
|
|
||||||
add_cmd ("sysinfo", class_info, go32_sysinfo, _("\
|
add_cmd ("sysinfo", class_info, go32_sysinfo, _("\
|
||||||
|
|
133
gdb/infcmd.c
133
gdb/infcmd.c
|
@ -1977,7 +1977,7 @@ _initialize_infcmd (void)
|
||||||
struct cmd_list_element *c;
|
struct cmd_list_element *c;
|
||||||
|
|
||||||
c = add_com ("tty", class_run, tty_command,
|
c = add_com ("tty", class_run, tty_command,
|
||||||
"Set terminal for future runs of program being debugged.");
|
_("Set terminal for future runs of program being debugged."));
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
c = add_set_cmd ("args", class_run, var_string_noescape,
|
c = add_set_cmd ("args", class_run, var_string_noescape,
|
||||||
|
@ -1998,7 +1998,7 @@ environment to be given to the program."), &showlist);
|
||||||
set_cmd_completer (c, noop_completer);
|
set_cmd_completer (c, noop_completer);
|
||||||
|
|
||||||
add_prefix_cmd ("unset", no_class, unset_command,
|
add_prefix_cmd ("unset", no_class, unset_command,
|
||||||
"Complement to certain \"set\" commands.",
|
_("Complement to certain \"set\" commands."),
|
||||||
&unsetlist, "unset ", 0, &cmdlist);
|
&unsetlist, "unset ", 0, &cmdlist);
|
||||||
|
|
||||||
c = add_cmd ("environment", class_run, unset_environment_command, _("\
|
c = add_cmd ("environment", class_run, unset_environment_command, _("\
|
||||||
|
@ -2015,12 +2015,12 @@ This does not affect the program until the next \"run\" command."),
|
||||||
&setlist);
|
&setlist);
|
||||||
set_cmd_completer (c, noop_completer);
|
set_cmd_completer (c, noop_completer);
|
||||||
|
|
||||||
c = add_com ("path", class_files, path_command,
|
c = add_com ("path", class_files, path_command, _("\
|
||||||
"Add directory DIR(s) to beginning of search path for object files.\n\
|
Add directory DIR(s) to beginning of search path for object files.\n\
|
||||||
$cwd in the path means the current working directory.\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\
|
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\
|
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);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
c = add_cmd ("paths", no_class, path_info, _("\
|
c = add_cmd ("paths", no_class, path_info, _("\
|
||||||
|
@ -2032,8 +2032,8 @@ fully linked executable files and separately compiled object files as needed."),
|
||||||
&showlist);
|
&showlist);
|
||||||
set_cmd_completer (c, noop_completer);
|
set_cmd_completer (c, noop_completer);
|
||||||
|
|
||||||
add_com ("attach", class_run, attach_command,
|
add_com ("attach", class_run, attach_command, _("\
|
||||||
"Attach to a process or file outside of GDB.\n\
|
Attach to a process or file outside of GDB.\n\
|
||||||
This command attaches to another target, of the same type as your last\n\
|
This command attaches to another target, of the same type as your last\n\
|
||||||
\"target\" command (\"info files\" will show your target stack).\n\
|
\"target\" command (\"info files\" will show your target stack).\n\
|
||||||
The command may take as argument a process id or a device file.\n\
|
The command may take as argument a process id or a device file.\n\
|
||||||
|
@ -2043,134 +2043,133 @@ When using \"attach\" with a process id, the debugger finds the\n\
|
||||||
program running in the process, looking first in the current working\n\
|
program running in the process, looking first in the current working\n\
|
||||||
directory, or (if not found there) using the source file search path\n\
|
directory, or (if not found there) using the source file search path\n\
|
||||||
(see the \"directory\" command). You can also use the \"file\" command\n\
|
(see the \"directory\" command). You can also use the \"file\" command\n\
|
||||||
to specify the program, and to load its symbol table.");
|
to specify the program, and to load its symbol table."));
|
||||||
|
|
||||||
add_com ("detach", class_run, detach_command,
|
add_com ("detach", class_run, detach_command, _("\
|
||||||
"Detach a process or file previously attached.\n\
|
Detach a process or file previously attached.\n\
|
||||||
If a process, it is no longer traced, and it continues its execution. If\n\
|
If a process, it is no longer traced, and it continues its execution. If\n\
|
||||||
you were debugging a file, the file is closed and gdb no longer accesses it.");
|
you were debugging a file, the file is closed and gdb no longer accesses it."));
|
||||||
|
|
||||||
add_com ("disconnect", class_run, disconnect_command,
|
add_com ("disconnect", class_run, disconnect_command, _("\
|
||||||
"Disconnect from a target.\n\
|
Disconnect from a target.\n\
|
||||||
The target will wait for another debugger to connect. Not available for\n\
|
The target will wait for another debugger to connect. Not available for\n\
|
||||||
all targets.");
|
all targets."));
|
||||||
|
|
||||||
add_com ("signal", class_run, signal_command,
|
add_com ("signal", class_run, signal_command, _("\
|
||||||
"Continue program giving it signal specified by the argument.\n\
|
Continue program giving it signal specified by the argument.\n\
|
||||||
An argument of \"0\" means continue program without giving it a signal.");
|
An argument of \"0\" means continue program without giving it a signal."));
|
||||||
|
|
||||||
add_com ("stepi", class_run, stepi_command,
|
add_com ("stepi", class_run, stepi_command, _("\
|
||||||
"Step one instruction exactly.\n\
|
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_alias ("si", "stepi", class_alias, 0);
|
||||||
|
|
||||||
add_com ("nexti", class_run, nexti_command,
|
add_com ("nexti", class_run, nexti_command, _("\
|
||||||
"Step one instruction, but proceed through subroutine calls.\n\
|
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_alias ("ni", "nexti", class_alias, 0);
|
||||||
|
|
||||||
add_com ("finish", class_run, finish_command,
|
add_com ("finish", class_run, finish_command, _("\
|
||||||
"Execute until selected stack frame returns.\n\
|
Execute until selected stack frame returns.\n\
|
||||||
Upon return, the value returned is printed and put in the value history.");
|
Upon return, the value returned is printed and put in the value history."));
|
||||||
|
|
||||||
add_com ("next", class_run, next_command,
|
add_com ("next", class_run, next_command, _("\
|
||||||
"Step program, proceeding through subroutine calls.\n\
|
Step program, proceeding through subroutine calls.\n\
|
||||||
Like the \"step\" command as long as subroutine calls do not happen;\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\
|
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);
|
add_com_alias ("n", "next", class_run, 1);
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com_alias ("S", "next", class_run, 1);
|
add_com_alias ("S", "next", class_run, 1);
|
||||||
|
|
||||||
add_com ("step", class_run, step_command,
|
add_com ("step", class_run, step_command, _("\
|
||||||
"Step program until it reaches a different source line.\n\
|
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);
|
add_com_alias ("s", "step", class_run, 1);
|
||||||
|
|
||||||
c = add_com ("until", class_run, until_command,
|
c = add_com ("until", class_run, until_command, _("\
|
||||||
"Execute until the program reaches a source line greater than the current\n\
|
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);
|
set_cmd_completer (c, location_completer);
|
||||||
add_com_alias ("u", "until", class_run, 1);
|
add_com_alias ("u", "until", class_run, 1);
|
||||||
|
|
||||||
c = add_com ("advance", class_run, advance_command,
|
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.");
|
Execution will also stop upon exit from the current stack frame."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
c = add_com ("jump", class_run, jump_command,
|
c = add_com ("jump", class_run, jump_command, _("\
|
||||||
"Continue program being debugged at specified line or address.\n\
|
Continue program being debugged at specified line or address.\n\
|
||||||
Give as argument either LINENUM or *ADDR, where ADDR is an expression\n\
|
Give as argument either LINENUM or *ADDR, where ADDR is an expression\n\
|
||||||
for an address to start at.");
|
for an address to start at."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
{
|
{
|
||||||
c = add_com ("go", class_run, go_command,
|
c = add_com ("go", class_run, go_command, _("\
|
||||||
"Usage: go <location>\n\
|
Usage: go <location>\n\
|
||||||
Continue program being debugged, stopping at specified line or \n\
|
Continue program being debugged, stopping at specified line or \n\
|
||||||
address.\n\
|
address.\n\
|
||||||
Give as argument either LINENUM or *ADDR, where ADDR is an \n\
|
Give as argument either LINENUM or *ADDR, where ADDR is an \n\
|
||||||
expression for an address to start at.\n\
|
expression for an address to start at.\n\
|
||||||
This command is a combination of tbreak and jump.");
|
This command is a combination of tbreak and jump."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com_alias ("g", "go", class_run, 1);
|
add_com_alias ("g", "go", class_run, 1);
|
||||||
|
|
||||||
add_com ("continue", class_run, continue_command,
|
add_com ("continue", class_run, continue_command, _("\
|
||||||
"Continue program being debugged, after signal or breakpoint.\n\
|
Continue program being debugged, after signal or breakpoint.\n\
|
||||||
If proceeding from breakpoint, a number N may be used as an argument,\n\
|
If proceeding from breakpoint, a number N may be used as an argument,\n\
|
||||||
which means to set the ignore count of that breakpoint to N - 1 (so that\n\
|
which means to set the ignore count of that breakpoint to N - 1 (so that\n\
|
||||||
the breakpoint won't break until the Nth time it is reached).");
|
the breakpoint won't break until the Nth time it is reached)."));
|
||||||
add_com_alias ("c", "cont", class_run, 1);
|
add_com_alias ("c", "cont", class_run, 1);
|
||||||
add_com_alias ("fg", "cont", class_run, 1);
|
add_com_alias ("fg", "cont", class_run, 1);
|
||||||
|
|
||||||
c = add_com ("run", class_run, run_command,
|
c = add_com ("run", class_run, run_command, _("\
|
||||||
"Start debugged program. You may specify arguments to give it.\n\
|
Start debugged program. You may specify arguments to give it.\n\
|
||||||
Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n\
|
Args may include \"*\", or \"[...]\"; they are expanded using \"sh\".\n\
|
||||||
Input and output redirection with \">\", \"<\", or \">>\" are also allowed.\n\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\
|
With no arguments, uses arguments last specified (with \"run\" or \"set args\").\n\
|
||||||
To cancel previous arguments and run with no arguments,\n\
|
To cancel previous arguments and run with no arguments,\n\
|
||||||
use \"set args\" without arguments.");
|
use \"set args\" without arguments."));
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
add_com_alias ("r", "run", class_run, 1);
|
add_com_alias ("r", "run", class_run, 1);
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com ("R", class_run, run_no_args_command,
|
add_com ("R", class_run, run_no_args_command,
|
||||||
"Start debugged program with no arguments.");
|
_("Start debugged program with no arguments."));
|
||||||
|
|
||||||
c = add_com ("start", class_run, start_command,
|
c = add_com ("start", class_run, start_command, _("\
|
||||||
"\
|
|
||||||
Run the debugged program until the beginning of the main procedure.\n\
|
Run the debugged program until the beginning of the main procedure.\n\
|
||||||
You may specify arguments to give to your program, just as with the\n\
|
You may specify arguments to give to your program, just as with the\n\
|
||||||
\"run\" command.");
|
\"run\" command."));
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
add_com ("interrupt", class_run, interrupt_target_command,
|
add_com ("interrupt", class_run, interrupt_target_command,
|
||||||
"Interrupt the execution of the debugged program.");
|
_("Interrupt the execution of the debugged program."));
|
||||||
|
|
||||||
add_info ("registers", nofp_registers_info,
|
add_info ("registers", nofp_registers_info, _("\
|
||||||
"List of integer registers and their contents, for selected stack frame.\n\
|
List of integer registers and their contents, for selected stack frame.\n\
|
||||||
Register name as argument means describe only that register.");
|
Register name as argument means describe only that register."));
|
||||||
add_info_alias ("r", "registers", 1);
|
add_info_alias ("r", "registers", 1);
|
||||||
|
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com ("lr", class_info, nofp_registers_info,
|
add_com ("lr", class_info, nofp_registers_info, _("\
|
||||||
"List of integer registers and their contents, for selected stack frame.\n\
|
List of integer registers and their contents, for selected stack frame.\n\
|
||||||
Register name as argument means describe only that register.");
|
Register name as argument means describe only that register."));
|
||||||
add_info ("all-registers", all_registers_info,
|
add_info ("all-registers", all_registers_info, _("\
|
||||||
"List of all registers and their contents, for selected stack frame.\n\
|
List of all registers and their contents, for selected stack frame.\n\
|
||||||
Register name as argument means describe only that register.");
|
Register name as argument means describe only that register."));
|
||||||
|
|
||||||
add_info ("program", program_info,
|
add_info ("program", program_info,
|
||||||
"Execution status of the program.");
|
_("Execution status of the program."));
|
||||||
|
|
||||||
add_info ("float", float_info,
|
add_info ("float", float_info,
|
||||||
"Print the status of the floating point unit\n");
|
_("Print the status of the floating point unit\n"));
|
||||||
|
|
||||||
add_info ("vector", vector_info,
|
add_info ("vector", vector_info,
|
||||||
"Print the status of the vector unit\n");
|
_("Print the status of the vector unit\n"));
|
||||||
|
|
||||||
inferior_environ = make_environ ();
|
inferior_environ = make_environ ();
|
||||||
init_environ (inferior_environ);
|
init_environ (inferior_environ);
|
||||||
|
|
|
@ -734,10 +734,10 @@ void
|
||||||
_initialize_inflow (void)
|
_initialize_inflow (void)
|
||||||
{
|
{
|
||||||
add_info ("terminal", term_info,
|
add_info ("terminal", term_info,
|
||||||
"Print inferior's saved terminal status.");
|
_("Print inferior's saved terminal status."));
|
||||||
|
|
||||||
add_com ("kill", class_run, kill_command,
|
add_com ("kill", class_run, kill_command,
|
||||||
"Kill execution of program being debugged.");
|
_("Kill execution of program being debugged."));
|
||||||
|
|
||||||
inferior_ptid = null_ptid;
|
inferior_ptid = null_ptid;
|
||||||
|
|
||||||
|
|
|
@ -509,6 +509,6 @@ _initialize_infptrace (void)
|
||||||
{
|
{
|
||||||
#if !defined (CHILD_XFER_MEMORY)
|
#if !defined (CHILD_XFER_MEMORY)
|
||||||
add_info ("udot", udot_info,
|
add_info ("udot", udot_info,
|
||||||
"Print contents of kernel ``struct user'' for current child.");
|
_("Print contents of kernel ``struct user'' for current child."));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
30
gdb/infrun.c
30
gdb/infrun.c
|
@ -3790,45 +3790,47 @@ _initialize_infrun (void)
|
||||||
DEPRECATED_REGISTER_GDBARCH_SWAP (stop_registers);
|
DEPRECATED_REGISTER_GDBARCH_SWAP (stop_registers);
|
||||||
deprecated_register_gdbarch_swap (NULL, 0, build_infrun);
|
deprecated_register_gdbarch_swap (NULL, 0, build_infrun);
|
||||||
|
|
||||||
add_info ("signals", signals_info,
|
add_info ("signals", signals_info, _("\
|
||||||
"What debugger does when program gets various signals.\n\
|
What debugger does when program gets various signals.\n\
|
||||||
Specify a signal as argument to print info on that signal only.");
|
Specify a signal as argument to print info on that signal only."));
|
||||||
add_info_alias ("handle", "signals", 0);
|
add_info_alias ("handle", "signals", 0);
|
||||||
|
|
||||||
add_com ("handle", class_run, handle_command,
|
add_com ("handle", class_run, handle_command, _("\
|
||||||
concat ("Specify how to handle a signal.\n\
|
Specify how to handle a signal.\n\
|
||||||
Args are signals and actions to apply to those signals.\n\
|
Args are signals and actions to apply to those signals.\n\
|
||||||
Symbolic signals (e.g. SIGSEGV) are recommended but numeric signals\n\
|
Symbolic signals (e.g. SIGSEGV) are recommended but numeric signals\n\
|
||||||
from 1-15 are allowed for compatibility with old versions of GDB.\n\
|
from 1-15 are allowed for compatibility with old versions of GDB.\n\
|
||||||
Numeric ranges may be specified with the form LOW-HIGH (e.g. 1-5).\n\
|
Numeric ranges may be specified with the form LOW-HIGH (e.g. 1-5).\n\
|
||||||
The special arg \"all\" is recognized to mean all signals except those\n\
|
The special arg \"all\" is recognized to mean all signals except those\n\
|
||||||
used by the debugger, typically SIGTRAP and SIGINT.\n", "Recognized actions include \"stop\", \"nostop\", \"print\", \"noprint\",\n\
|
used by the debugger, typically SIGTRAP and SIGINT.\n\
|
||||||
|
Recognized actions include \"stop\", \"nostop\", \"print\", \"noprint\",\n\
|
||||||
\"pass\", \"nopass\", \"ignore\", or \"noignore\".\n\
|
\"pass\", \"nopass\", \"ignore\", or \"noignore\".\n\
|
||||||
Stop means reenter debugger if this signal happens (implies print).\n\
|
Stop means reenter debugger if this signal happens (implies print).\n\
|
||||||
Print means print a message if this signal happens.\n\
|
Print means print a message if this signal happens.\n\
|
||||||
Pass means let program see this signal; otherwise program doesn't know.\n\
|
Pass means let program see this signal; otherwise program doesn't know.\n\
|
||||||
Ignore is a synonym for nopass and noignore is a synonym for pass.\n\
|
Ignore is a synonym for nopass and noignore is a synonym for pass.\n\
|
||||||
Pass and Stop may be combined.", NULL));
|
Pass and Stop may be combined."));
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
{
|
{
|
||||||
add_com ("lz", class_info, signals_info,
|
add_com ("lz", class_info, signals_info, _("\
|
||||||
"What debugger does when program gets various signals.\n\
|
What debugger does when program gets various signals.\n\
|
||||||
Specify a signal as argument to print info on that signal only.");
|
Specify a signal as argument to print info on that signal only."));
|
||||||
add_com ("z", class_run, xdb_handle_command,
|
add_com ("z", class_run, xdb_handle_command, _("\
|
||||||
concat ("Specify how to handle a signal.\n\
|
Specify how to handle a signal.\n\
|
||||||
Args are signals and actions to apply to those signals.\n\
|
Args are signals and actions to apply to those signals.\n\
|
||||||
Symbolic signals (e.g. SIGSEGV) are recommended but numeric signals\n\
|
Symbolic signals (e.g. SIGSEGV) are recommended but numeric signals\n\
|
||||||
from 1-15 are allowed for compatibility with old versions of GDB.\n\
|
from 1-15 are allowed for compatibility with old versions of GDB.\n\
|
||||||
Numeric ranges may be specified with the form LOW-HIGH (e.g. 1-5).\n\
|
Numeric ranges may be specified with the form LOW-HIGH (e.g. 1-5).\n\
|
||||||
The special arg \"all\" is recognized to mean all signals except those\n\
|
The special arg \"all\" is recognized to mean all signals except those\n\
|
||||||
used by the debugger, typically SIGTRAP and SIGINT.\n", "Recognized actions include \"s\" (toggles between stop and nostop), \n\
|
used by the debugger, typically SIGTRAP and SIGINT.\n\
|
||||||
|
Recognized actions include \"s\" (toggles between stop and nostop), \n\
|
||||||
\"r\" (toggles between print and noprint), \"i\" (toggles between pass and \
|
\"r\" (toggles between print and noprint), \"i\" (toggles between pass and \
|
||||||
nopass), \"Q\" (noprint)\n\
|
nopass), \"Q\" (noprint)\n\
|
||||||
Stop means reenter debugger if this signal happens (implies print).\n\
|
Stop means reenter debugger if this signal happens (implies print).\n\
|
||||||
Print means print a message if this signal happens.\n\
|
Print means print a message if this signal happens.\n\
|
||||||
Pass means let program see this signal; otherwise program doesn't know.\n\
|
Pass means let program see this signal; otherwise program doesn't know.\n\
|
||||||
Ignore is a synonym for nopass and noignore is a synonym for pass.\n\
|
Ignore is a synonym for nopass and noignore is a synonym for pass.\n\
|
||||||
Pass and Stop may be combined.", NULL));
|
Pass and Stop may be combined."));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dbx_commands)
|
if (!dbx_commands)
|
||||||
|
|
|
@ -179,7 +179,7 @@ kod_set_os (char *arg, int from_tty, struct cmd_list_element *command)
|
||||||
|
|
||||||
/* Add kod related info commands to gdb. */
|
/* Add kod related info commands to gdb. */
|
||||||
add_info (operating_system, info_kod_command,
|
add_info (operating_system, info_kod_command,
|
||||||
"Displays information about Kernel Objects.");
|
_("Displays information about Kernel Objects."));
|
||||||
|
|
||||||
p = strrchr (kodlib, '-');
|
p = strrchr (kodlib, '-');
|
||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
|
|
|
@ -1353,13 +1353,13 @@ _initialize_language (void)
|
||||||
set_cmd_cfunc (show, show_language_command);
|
set_cmd_cfunc (show, show_language_command);
|
||||||
|
|
||||||
add_prefix_cmd ("check", no_class, set_check,
|
add_prefix_cmd ("check", no_class, set_check,
|
||||||
"Set the status of the type/range checker.",
|
_("Set the status of the type/range checker."),
|
||||||
&setchecklist, "set check ", 0, &setlist);
|
&setchecklist, "set check ", 0, &setlist);
|
||||||
add_alias_cmd ("c", "check", no_class, 1, &setlist);
|
add_alias_cmd ("c", "check", no_class, 1, &setlist);
|
||||||
add_alias_cmd ("ch", "check", no_class, 1, &setlist);
|
add_alias_cmd ("ch", "check", no_class, 1, &setlist);
|
||||||
|
|
||||||
add_prefix_cmd ("check", no_class, show_check,
|
add_prefix_cmd ("check", no_class, show_check,
|
||||||
"Show the status of the type/range checker.",
|
_("Show the status of the type/range checker."),
|
||||||
&showchecklist, "show check ", 0, &showlist);
|
&showchecklist, "show check ", 0, &showlist);
|
||||||
add_alias_cmd ("c", "check", no_class, 1, &showlist);
|
add_alias_cmd ("c", "check", no_class, 1, &showlist);
|
||||||
add_alias_cmd ("ch", "check", no_class, 1, &showlist);
|
add_alias_cmd ("ch", "check", no_class, 1, &showlist);
|
||||||
|
|
|
@ -3057,14 +3057,14 @@ _initialize_linux_nat (void)
|
||||||
deprecated_child_ops.to_find_memory_regions = linux_nat_find_memory_regions;
|
deprecated_child_ops.to_find_memory_regions = linux_nat_find_memory_regions;
|
||||||
deprecated_child_ops.to_make_corefile_notes = linux_nat_make_corefile_notes;
|
deprecated_child_ops.to_make_corefile_notes = linux_nat_make_corefile_notes;
|
||||||
|
|
||||||
add_info ("proc", linux_nat_info_proc_cmd,
|
add_info ("proc", linux_nat_info_proc_cmd, _("\
|
||||||
"Show /proc process information about any running process.\n\
|
Show /proc process information about any running process.\n\
|
||||||
Specify any process id, or use the program being debugged by default.\n\
|
Specify any process id, or use the program being debugged by default.\n\
|
||||||
Specify any of the following keywords for detailed info:\n\
|
Specify any of the following keywords for detailed info:\n\
|
||||||
mappings -- list of mapped memory regions.\n\
|
mappings -- list of mapped memory regions.\n\
|
||||||
stat -- list a bunch of random process info.\n\
|
stat -- list a bunch of random process info.\n\
|
||||||
status -- list a different bunch of random process info.\n\
|
status -- list a different bunch of random process info.\n\
|
||||||
all -- list all available /proc info.");
|
all -- list all available /proc info."));
|
||||||
|
|
||||||
init_linux_nat_ops ();
|
init_linux_nat_ops ();
|
||||||
add_target (&linux_nat_ops);
|
add_target (&linux_nat_ops);
|
||||||
|
|
|
@ -580,8 +580,8 @@ Determine the IP address for download server (GDB's host computer)."),
|
||||||
NULL, /* FIXME: i18n: IP address for download server (GDB's host computer) is %s. */
|
NULL, /* FIXME: i18n: IP address for download server (GDB's host computer) is %s. */
|
||||||
NULL, NULL, &setlist, &showlist);
|
NULL, NULL, &setlist, &showlist);
|
||||||
|
|
||||||
add_com ("upload", class_obscure, m32r_upload_command,
|
add_com ("upload", class_obscure, m32r_upload_command, _("\
|
||||||
"Upload the srec file via the monitor's Ethernet upload capability.");
|
Upload the srec file via the monitor's Ethernet upload capability."));
|
||||||
|
|
||||||
add_com ("tload", class_obscure, m32r_load, "test upload command.");
|
add_com ("tload", class_obscure, m32r_load, _("test upload command."));
|
||||||
}
|
}
|
||||||
|
|
|
@ -231,10 +231,9 @@ _initialize_macrocmd (void)
|
||||||
|
|
||||||
/* We introduce a new command prefix, `macro', under which we'll put
|
/* We introduce a new command prefix, `macro', under which we'll put
|
||||||
the various commands for working with preprocessor macros. */
|
the various commands for working with preprocessor macros. */
|
||||||
add_prefix_cmd
|
add_prefix_cmd ("macro", class_info, macro_command,
|
||||||
("macro", class_info, macro_command,
|
_("Prefix for commands dealing with C preprocessor macros."),
|
||||||
"Prefix for commands dealing with C preprocessor macros.",
|
¯olist, "macro ", 0, &cmdlist);
|
||||||
¯olist, "macro ", 0, &cmdlist);
|
|
||||||
|
|
||||||
add_cmd ("expand", no_class, macro_expand_command, _("\
|
add_cmd ("expand", no_class, macro_expand_command, _("\
|
||||||
Fully expand any C/C++ preprocessor macro invocations in EXPRESSION.\n\
|
Fully expand any C/C++ preprocessor macro invocations in EXPRESSION.\n\
|
||||||
|
|
20
gdb/maint.c
20
gdb/maint.c
|
@ -695,18 +695,18 @@ _initialize_maint_cmds (void)
|
||||||
{
|
{
|
||||||
struct cmd_list_element *tmpcmd;
|
struct cmd_list_element *tmpcmd;
|
||||||
|
|
||||||
add_prefix_cmd ("maintenance", class_maintenance, maintenance_command,
|
add_prefix_cmd ("maintenance", class_maintenance, maintenance_command, _("\
|
||||||
"Commands for use by GDB maintainers.\n\
|
Commands for use by GDB maintainers.\n\
|
||||||
Includes commands to dump specific internal GDB structures in\n\
|
Includes commands to dump specific internal GDB structures in\n\
|
||||||
a human readable form, to cause GDB to deliberately dump core,\n\
|
a human readable form, to cause GDB to deliberately dump core,\n\
|
||||||
to test internal functions such as the C++/ObjC demangler, etc.",
|
to test internal functions such as the C++/ObjC demangler, etc."),
|
||||||
&maintenancelist, "maintenance ", 0,
|
&maintenancelist, "maintenance ", 0,
|
||||||
&cmdlist);
|
&cmdlist);
|
||||||
|
|
||||||
add_com_alias ("mt", "maintenance", class_maintenance, 1);
|
add_com_alias ("mt", "maintenance", class_maintenance, 1);
|
||||||
|
|
||||||
add_prefix_cmd ("info", class_maintenance, maintenance_info_command,
|
add_prefix_cmd ("info", class_maintenance, maintenance_info_command, _("\
|
||||||
"Commands for showing internal info about the program being debugged.",
|
Commands for showing internal info about the program being debugged."),
|
||||||
&maintenanceinfolist, "maintenance info ", 0,
|
&maintenanceinfolist, "maintenance info ", 0,
|
||||||
&maintenancelist);
|
&maintenancelist);
|
||||||
add_alias_cmd ("i", "info", class_maintenance, 1, &maintenancelist);
|
add_alias_cmd ("i", "info", class_maintenance, 1, &maintenancelist);
|
||||||
|
@ -724,20 +724,20 @@ lists all sections from all object files, including shared libraries."),
|
||||||
&maintenanceinfolist);
|
&maintenanceinfolist);
|
||||||
|
|
||||||
add_prefix_cmd ("print", class_maintenance, maintenance_print_command,
|
add_prefix_cmd ("print", class_maintenance, maintenance_print_command,
|
||||||
"Maintenance command for printing GDB internal state.",
|
_("Maintenance command for printing GDB internal state."),
|
||||||
&maintenanceprintlist, "maintenance print ", 0,
|
&maintenanceprintlist, "maintenance print ", 0,
|
||||||
&maintenancelist);
|
&maintenancelist);
|
||||||
|
|
||||||
add_prefix_cmd ("set", class_maintenance, maintenance_set_cmd, "\
|
add_prefix_cmd ("set", class_maintenance, maintenance_set_cmd, _("\
|
||||||
Set GDB internal variables used by the GDB maintainer.\n\
|
Set GDB internal variables used by the GDB maintainer.\n\
|
||||||
Configure variables internal to GDB that aid in GDB's maintenance",
|
Configure variables internal to GDB that aid in GDB's maintenance"),
|
||||||
&maintenance_set_cmdlist, "maintenance set ",
|
&maintenance_set_cmdlist, "maintenance set ",
|
||||||
0/*allow-unknown*/,
|
0/*allow-unknown*/,
|
||||||
&maintenancelist);
|
&maintenancelist);
|
||||||
|
|
||||||
add_prefix_cmd ("show", class_maintenance, maintenance_show_cmd, "\
|
add_prefix_cmd ("show", class_maintenance, maintenance_show_cmd, _("\
|
||||||
Show GDB internal variables used by the GDB maintainer.\n\
|
Show GDB internal variables used by the GDB maintainer.\n\
|
||||||
Configure variables internal to GDB that aid in GDB's maintenance",
|
Configure variables internal to GDB that aid in GDB's maintenance"),
|
||||||
&maintenance_show_cmdlist, "maintenance show ",
|
&maintenance_show_cmdlist, "maintenance show ",
|
||||||
0/*allow-unknown*/,
|
0/*allow-unknown*/,
|
||||||
&maintenancelist);
|
&maintenancelist);
|
||||||
|
|
|
@ -519,12 +519,12 @@ extern initialize_file_ftype _initialize_mem; /* -Wmissing-prototype */
|
||||||
void
|
void
|
||||||
_initialize_mem (void)
|
_initialize_mem (void)
|
||||||
{
|
{
|
||||||
add_com ("mem", class_vars, mem_command,
|
add_com ("mem", class_vars, mem_command, _("\
|
||||||
"Define attributes for memory region.\n\
|
Define attributes for memory region.\n\
|
||||||
Usage: mem <lo addr> <hi addr> [<mode> <width> <cache>], \n\
|
Usage: mem <lo addr> <hi addr> [<mode> <width> <cache>], \n\
|
||||||
where <mode> may be rw (read/write), ro (read-only) or wo (write-only), \n\
|
where <mode> may be rw (read/write), ro (read-only) or wo (write-only), \n\
|
||||||
<width> may be 8, 16, 32, or 64, and \n\
|
<width> may be 8, 16, 32, or 64, and \n\
|
||||||
<cache> may be cache or nocache");
|
<cache> may be cache or nocache"));
|
||||||
|
|
||||||
add_cmd ("mem", class_vars, mem_enable_command, _("\
|
add_cmd ("mem", class_vars, mem_enable_command, _("\
|
||||||
Enable memory region.\n\
|
Enable memory region.\n\
|
||||||
|
@ -545,5 +545,5 @@ Usage: delete mem <code number>\n\
|
||||||
Do \"info mem\" to see current list of code numbers."), &deletelist);
|
Do \"info mem\" to see current list of code numbers."), &deletelist);
|
||||||
|
|
||||||
add_info ("mem", mem_info_command,
|
add_info ("mem", mem_info_command,
|
||||||
"Memory region attributes");
|
_("Memory region attributes"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -5170,11 +5170,11 @@ _initialize_mips_tdep (void)
|
||||||
|
|
||||||
/* Add root prefix command for all "set mips"/"show mips" commands */
|
/* Add root prefix command for all "set mips"/"show mips" commands */
|
||||||
add_prefix_cmd ("mips", no_class, set_mips_command,
|
add_prefix_cmd ("mips", no_class, set_mips_command,
|
||||||
"Various MIPS specific commands.",
|
_("Various MIPS specific commands."),
|
||||||
&setmipscmdlist, "set mips ", 0, &setlist);
|
&setmipscmdlist, "set mips ", 0, &setlist);
|
||||||
|
|
||||||
add_prefix_cmd ("mips", no_class, show_mips_command,
|
add_prefix_cmd ("mips", no_class, show_mips_command,
|
||||||
"Various MIPS specific commands.",
|
_("Various MIPS specific commands."),
|
||||||
&showmipscmdlist, "show mips ", 0, &showlist);
|
&showmipscmdlist, "show mips ", 0, &showlist);
|
||||||
|
|
||||||
/* Allow the user to override the saved register size. */
|
/* Allow the user to override the saved register size. */
|
||||||
|
@ -5220,7 +5220,7 @@ This option can be set to one of:\n\
|
||||||
heuristic_proc_start. */
|
heuristic_proc_start. */
|
||||||
|
|
||||||
add_prefix_cmd ("mipsfpu", class_support, set_mipsfpu_command,
|
add_prefix_cmd ("mipsfpu", class_support, set_mipsfpu_command,
|
||||||
"Set use of MIPS floating-point coprocessor.",
|
_("Set use of MIPS floating-point coprocessor."),
|
||||||
&mipsfpulist, "set mipsfpu ", 0, &setlist);
|
&mipsfpulist, "set mipsfpu ", 0, &setlist);
|
||||||
add_cmd ("single", class_support, set_mipsfpu_single_command,
|
add_cmd ("single", class_support, set_mipsfpu_single_command,
|
||||||
_("Select single-precision MIPS floating-point coprocessor."),
|
_("Select single-precision MIPS floating-point coprocessor."),
|
||||||
|
|
|
@ -1343,8 +1343,8 @@ _initialize_procfs (void)
|
||||||
nto_cpuinfo_flags = SYSPAGE_ENTRY (cpuinfo)->flags;
|
nto_cpuinfo_flags = SYSPAGE_ENTRY (cpuinfo)->flags;
|
||||||
nto_cpuinfo_valid = 1;
|
nto_cpuinfo_valid = 1;
|
||||||
|
|
||||||
add_info ("pidlist", procfs_pidlist, "pidlist");
|
add_info ("pidlist", procfs_pidlist, _("pidlist"));
|
||||||
add_info ("meminfo", procfs_meminfo, "memory information");
|
add_info ("meminfo", procfs_meminfo, _("memory information"));
|
||||||
|
|
||||||
nto_is_nto_target = procfs_is_nto_target;
|
nto_is_nto_target = procfs_is_nto_target;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1720,11 +1720,11 @@ _initialize_objc_language (void)
|
||||||
{
|
{
|
||||||
add_language (&objc_language_defn);
|
add_language (&objc_language_defn);
|
||||||
add_info ("selectors", selectors_info, /* INFO SELECTORS command. */
|
add_info ("selectors", selectors_info, /* INFO SELECTORS command. */
|
||||||
"All Objective-C selectors, or those matching REGEXP.");
|
_("All Objective-C selectors, or those matching REGEXP."));
|
||||||
add_info ("classes", classes_info, /* INFO CLASSES command. */
|
add_info ("classes", classes_info, /* INFO CLASSES command. */
|
||||||
"All Objective-C classes, or those matching REGEXP.");
|
_("All Objective-C classes, or those matching REGEXP."));
|
||||||
add_com ("print-object", class_vars, print_object_command,
|
add_com ("print-object", class_vars, print_object_command,
|
||||||
"Ask an Objective-C object to print itself.");
|
_("Ask an Objective-C object to print itself."));
|
||||||
add_com_alias ("po", "print-object", class_vars, 1);
|
add_com_alias ("po", "print-object", class_vars, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1162,8 +1162,9 @@ _initialize_remote_ocd (void)
|
||||||
"Set timeout value for remote read.\n", &setlist),
|
"Set timeout value for remote read.\n", &setlist),
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_prefix_cmd ("ocd", class_obscure, bdm_command, "", &ocd_cmd_list, "ocd ",
|
/* FIXME: i18n: What documentation? */
|
||||||
0, &cmdlist);
|
add_prefix_cmd ("ocd", class_obscure, bdm_command, (""), &ocd_cmd_list,
|
||||||
|
"ocd ", 0, &cmdlist);
|
||||||
|
|
||||||
/* FIXME: i18n: what documentation? */
|
/* FIXME: i18n: what documentation? */
|
||||||
add_cmd ("reset", class_obscure, bdm_reset_command, (""), &ocd_cmd_list);
|
add_cmd ("reset", class_obscure, bdm_reset_command, (""), &ocd_cmd_list);
|
||||||
|
|
|
@ -885,9 +885,9 @@ void
|
||||||
_initialize_pa64_solib (void)
|
_initialize_pa64_solib (void)
|
||||||
{
|
{
|
||||||
add_com ("sharedlibrary", class_files, pa64_solib_sharedlibrary_command,
|
add_com ("sharedlibrary", class_files, pa64_solib_sharedlibrary_command,
|
||||||
"Load shared object library symbols for files matching REGEXP.");
|
_("Load shared object library symbols for files matching REGEXP."));
|
||||||
add_info ("sharedlibrary", pa64_sharedlibrary_info_command,
|
add_info ("sharedlibrary", pa64_sharedlibrary_info_command,
|
||||||
"Status of loaded shared object libraries.");
|
_("Status of loaded shared object libraries."));
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
(add_set_cmd ("auto-solib-add", class_support, var_boolean,
|
(add_set_cmd ("auto-solib-add", class_support, var_boolean,
|
||||||
|
|
|
@ -1989,32 +1989,32 @@ _initialize_printcmd (void)
|
||||||
current_display_number = -1;
|
current_display_number = -1;
|
||||||
|
|
||||||
add_info ("address", address_info,
|
add_info ("address", address_info,
|
||||||
"Describe where symbol SYM is stored.");
|
_("Describe where symbol SYM is stored."));
|
||||||
|
|
||||||
add_info ("symbol", sym_info,
|
add_info ("symbol", sym_info, _("\
|
||||||
"Describe what symbol is at location ADDR.\n\
|
Describe what symbol is at location ADDR.\n\
|
||||||
Only for symbols with fixed locations (global or static scope).");
|
Only for symbols with fixed locations (global or static scope)."));
|
||||||
|
|
||||||
add_com ("x", class_vars, x_command,
|
add_com ("x", class_vars, x_command, _("\
|
||||||
concat ("Examine memory: x/FMT ADDRESS.\n\
|
Examine memory: x/FMT ADDRESS.\n\
|
||||||
ADDRESS is an expression for the memory address to examine.\n\
|
ADDRESS is an expression for the memory address to examine.\n\
|
||||||
FMT is a repeat count followed by a format letter and a size letter.\n\
|
FMT is a repeat count followed by a format letter and a size letter.\n\
|
||||||
Format letters are o(octal), x(hex), d(decimal), u(unsigned decimal),\n\
|
Format letters are o(octal), x(hex), d(decimal), u(unsigned decimal),\n\
|
||||||
t(binary), f(float), a(address), i(instruction), c(char) and s(string).\n",
|
t(binary), f(float), a(address), i(instruction), c(char) and s(string).\n\
|
||||||
"Size letters are b(byte), h(halfword), w(word), g(giant, 8 bytes).\n\
|
Size letters are b(byte), h(halfword), w(word), g(giant, 8 bytes).\n\
|
||||||
The specified number of objects of the specified size are printed\n\
|
The specified number of objects of the specified size are printed\n\
|
||||||
according to the format.\n\n\
|
according to the format.\n\n\
|
||||||
Defaults for format and size letters are those previously used.\n\
|
Defaults for format and size letters are those previously used.\n\
|
||||||
Default count is 1. Default address is following last thing printed\n\
|
Default count is 1. Default address is following last thing printed\n\
|
||||||
with this command or \"print\".", NULL));
|
with this command or \"print\"."));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
add_com ("whereis", class_vars, whereis_command,
|
add_com ("whereis", class_vars, whereis_command,
|
||||||
"Print line number and file of definition of variable.");
|
_("Print line number and file of definition of variable."));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
add_info ("display", display_info,
|
add_info ("display", display_info, _("\
|
||||||
"Expressions to display when program stops, with code numbers.");
|
Expressions to display when program stops, with code numbers."));
|
||||||
|
|
||||||
add_cmd ("undisplay", class_vars, undisplay_command, _("\
|
add_cmd ("undisplay", class_vars, undisplay_command, _("\
|
||||||
Cancel some expressions to be displayed when program stops.\n\
|
Cancel some expressions to be displayed when program stops.\n\
|
||||||
|
@ -2024,15 +2024,14 @@ No argument means cancel all automatic-display expressions.\n\
|
||||||
Do \"info display\" to see current list of code numbers."),
|
Do \"info display\" to see current list of code numbers."),
|
||||||
&cmdlist);
|
&cmdlist);
|
||||||
|
|
||||||
add_com ("display", class_vars, display_command,
|
add_com ("display", class_vars, display_command, _("\
|
||||||
"Print value of expression EXP each time the program stops.\n\
|
Print value of expression EXP each time the program stops.\n\
|
||||||
/FMT may be used before EXP as in the \"print\" command.\n\
|
/FMT may be used before EXP as in the \"print\" command.\n\
|
||||||
/FMT \"i\" or \"s\" or including a size-letter is allowed,\n\
|
/FMT \"i\" or \"s\" or including a size-letter is allowed,\n\
|
||||||
as in the \"x\" command, and then EXP is used to get the address to examine\n\
|
as in the \"x\" command, and then EXP is used to get the address to examine\n\
|
||||||
and examining is done as in the \"x\" command.\n\n\
|
and examining is done as in the \"x\" command.\n\n\
|
||||||
With no argument, display all currently requested auto-display expressions.\n\
|
With no argument, display all currently requested auto-display expressions.\n\
|
||||||
Use \"undisplay\" to cancel display requests previously made."
|
Use \"undisplay\" to cancel display requests previously made."));
|
||||||
);
|
|
||||||
|
|
||||||
add_cmd ("display", class_vars, enable_display, _("\
|
add_cmd ("display", class_vars, enable_display, _("\
|
||||||
Enable some expressions to be displayed when program stops.\n\
|
Enable some expressions to be displayed when program stops.\n\
|
||||||
|
@ -2052,41 +2051,42 @@ Arguments are the code numbers of the expressions to stop displaying.\n\
|
||||||
No argument means cancel all automatic-display expressions.\n\
|
No argument means cancel all automatic-display expressions.\n\
|
||||||
Do \"info display\" to see current list of code numbers."), &deletelist);
|
Do \"info display\" to see current list of code numbers."), &deletelist);
|
||||||
|
|
||||||
add_com ("printf", class_vars, printf_command,
|
add_com ("printf", class_vars, printf_command, _("\
|
||||||
"printf \"printf format string\", arg1, arg2, arg3, ..., argn\n\
|
printf \"printf format string\", arg1, arg2, arg3, ..., argn\n\
|
||||||
This is useful for formatted output in user-defined commands.");
|
This is useful for formatted output in user-defined commands."));
|
||||||
|
|
||||||
add_com ("output", class_vars, output_command,
|
add_com ("output", class_vars, output_command, _("\
|
||||||
"Like \"print\" but don't put in value history and don't print newline.\n\
|
Like \"print\" but don't put in value history and don't print newline.\n\
|
||||||
This is useful in user-defined commands.");
|
This is useful in user-defined commands."));
|
||||||
|
|
||||||
add_prefix_cmd ("set", class_vars, set_command,
|
add_prefix_cmd ("set", class_vars, set_command, _("\
|
||||||
concat ("Evaluate expression EXP and assign result to variable VAR, using assignment\n\
|
Evaluate expression EXP and assign result to variable VAR, using assignment\n\
|
||||||
syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\
|
syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\
|
||||||
example). VAR may be a debugger \"convenience\" variable (names starting\n\
|
example). VAR may be a debugger \"convenience\" variable (names starting\n\
|
||||||
with $), a register (a few standard names starting with $), or an actual\n\
|
with $), a register (a few standard names starting with $), or an actual\n\
|
||||||
variable in the program being debugged. EXP is any valid expression.\n",
|
variable in the program being debugged. EXP is any valid expression.\n\
|
||||||
"Use \"set variable\" for variables with names identical to set subcommands.\n\
|
Use \"set variable\" for variables with names identical to set subcommands.\n\
|
||||||
\nWith a subcommand, this command modifies parts of the gdb environment.\n\
|
\n\
|
||||||
You can see these environment settings with the \"show\" command.", NULL),
|
With a subcommand, this command modifies parts of the gdb environment.\n\
|
||||||
|
You can see these environment settings with the \"show\" command."),
|
||||||
&setlist, "set ", 1, &cmdlist);
|
&setlist, "set ", 1, &cmdlist);
|
||||||
if (dbx_commands)
|
if (dbx_commands)
|
||||||
add_com ("assign", class_vars, set_command, concat ("Evaluate expression \
|
add_com ("assign", class_vars, set_command, _("\
|
||||||
EXP and assign result to variable VAR, using assignment\n\
|
Evaluate expression EXP and assign result to variable VAR, using assignment\n\
|
||||||
syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\
|
syntax appropriate for the current language (VAR = EXP or VAR := EXP for\n\
|
||||||
example). VAR may be a debugger \"convenience\" variable (names starting\n\
|
example). VAR may be a debugger \"convenience\" variable (names starting\n\
|
||||||
with $), a register (a few standard names starting with $), or an actual\n\
|
with $), a register (a few standard names starting with $), or an actual\n\
|
||||||
variable in the program being debugged. EXP is any valid expression.\n",
|
variable in the program being debugged. EXP is any valid expression.\n\
|
||||||
"Use \"set variable\" for variables with names identical to set subcommands.\n\
|
Use \"set variable\" for variables with names identical to set subcommands.\n\
|
||||||
\nWith a subcommand, this command modifies parts of the gdb environment.\n\
|
\nWith a subcommand, this command modifies parts of the gdb environment.\n\
|
||||||
You can see these environment settings with the \"show\" command.", NULL));
|
You can see these environment settings with the \"show\" command."));
|
||||||
|
|
||||||
/* "call" is the same as "set", but handy for dbx users to call fns. */
|
/* "call" is the same as "set", but handy for dbx users to call fns. */
|
||||||
c = add_com ("call", class_vars, call_command,
|
c = add_com ("call", class_vars, call_command, _("\
|
||||||
"Call a function in the program.\n\
|
Call a function in the program.\n\
|
||||||
The argument is the function name and arguments, in the notation of the\n\
|
The argument is the function name and arguments, in the notation of the\n\
|
||||||
current working language. The result is printed and saved in the value\n\
|
current working language. The result is printed and saved in the value\n\
|
||||||
history, if it is not void.");
|
history, if it is not void."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
add_cmd ("variable", class_vars, set_command, _("\
|
add_cmd ("variable", class_vars, set_command, _("\
|
||||||
|
@ -2098,34 +2098,34 @@ variable in the program being debugged. EXP is any valid expression.\n\
|
||||||
This may usually be abbreviated to simply \"set\"."),
|
This may usually be abbreviated to simply \"set\"."),
|
||||||
&setlist);
|
&setlist);
|
||||||
|
|
||||||
c = add_com ("print", class_vars, print_command,
|
c = add_com ("print", class_vars, print_command, _("\
|
||||||
concat ("Print value of expression EXP.\n\
|
Print value of expression EXP.\n\
|
||||||
Variables accessible are those of the lexical environment of the selected\n\
|
Variables accessible are those of the lexical environment of the selected\n\
|
||||||
stack frame, plus all those whose scope is global or an entire file.\n\
|
stack frame, plus all those whose scope is global or an entire file.\n\
|
||||||
\n\
|
\n\
|
||||||
$NUM gets previous value number NUM. $ and $$ are the last two values.\n\
|
$NUM gets previous value number NUM. $ and $$ are the last two values.\n\
|
||||||
$$NUM refers to NUM'th value back from the last one.\n\
|
$$NUM refers to NUM'th value back from the last one.\n\
|
||||||
Names starting with $ refer to registers (with the values they would have\n",
|
Names starting with $ refer to registers (with the values they would have\n\
|
||||||
"if the program were to return to the stack frame now selected, restoring\n\
|
if the program were to return to the stack frame now selected, restoring\n\
|
||||||
all registers saved by frames farther in) or else to debugger\n\
|
all registers saved by frames farther in) or else to debugger\n\
|
||||||
\"convenience\" variables (any such name not a known register).\n\
|
\"convenience\" variables (any such name not a known register).\n\
|
||||||
Use assignment expressions to give values to convenience variables.\n",
|
Use assignment expressions to give values to convenience variables.\n\
|
||||||
"\n\
|
\n\
|
||||||
{TYPE}ADREXP refers to a datum of data type TYPE, located at address ADREXP.\n\
|
{TYPE}ADREXP refers to a datum of data type TYPE, located at address ADREXP.\n\
|
||||||
@ is a binary operator for treating consecutive data objects\n\
|
@ is a binary operator for treating consecutive data objects\n\
|
||||||
anywhere in memory as an array. FOO@NUM gives an array whose first\n\
|
anywhere in memory as an array. FOO@NUM gives an array whose first\n\
|
||||||
element is FOO, whose second element is stored in the space following\n\
|
element is FOO, whose second element is stored in the space following\n\
|
||||||
where FOO is stored, etc. FOO must be an expression whose value\n\
|
where FOO is stored, etc. FOO must be an expression whose value\n\
|
||||||
resides in memory.\n",
|
resides in memory.\n\
|
||||||
"\n\
|
\n\
|
||||||
EXP may be preceded with /FMT, where FMT is a format letter\n\
|
EXP may be preceded with /FMT, where FMT is a format letter\n\
|
||||||
but no count or size letter (see \"x\" command).", NULL));
|
but no count or size letter (see \"x\" command)."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
add_com_alias ("p", "print", class_vars, 1);
|
add_com_alias ("p", "print", class_vars, 1);
|
||||||
|
|
||||||
c = add_com ("inspect", class_vars, inspect_command,
|
c = add_com ("inspect", class_vars, inspect_command, _("\
|
||||||
"Same as \"print\" command, except that if you are running in the epoch\n\
|
Same as \"print\" command, except that if you are running in the epoch\n\
|
||||||
environment, the value is printed in its own window.");
|
environment, the value is printed in its own window."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
|
|
14
gdb/procfs.c
14
gdb/procfs.c
|
@ -5968,18 +5968,18 @@ _initialize_procfs (void)
|
||||||
{
|
{
|
||||||
init_procfs_ops ();
|
init_procfs_ops ();
|
||||||
add_target (&procfs_ops);
|
add_target (&procfs_ops);
|
||||||
add_info ("proc", info_proc_cmd,
|
add_info ("proc", info_proc_cmd, _("\
|
||||||
"Show /proc process information about any running process.\n\
|
Show /proc process information about any running process.\n\
|
||||||
Specify process id, or use the program being debugged by default.\n\
|
Specify process id, or use the program being debugged by default.\n\
|
||||||
Specify keyword 'mappings' for detailed info on memory mappings.");
|
Specify keyword 'mappings' for detailed info on memory mappings."));
|
||||||
add_com ("proc-trace-entry", no_class, proc_trace_sysentry_cmd,
|
add_com ("proc-trace-entry", no_class, proc_trace_sysentry_cmd,
|
||||||
"Give a trace of entries into the syscall.");
|
_("Give a trace of entries into the syscall."));
|
||||||
add_com ("proc-trace-exit", no_class, proc_trace_sysexit_cmd,
|
add_com ("proc-trace-exit", no_class, proc_trace_sysexit_cmd,
|
||||||
"Give a trace of exits from the syscall.");
|
_("Give a trace of exits from the syscall."));
|
||||||
add_com ("proc-untrace-entry", no_class, proc_untrace_sysentry_cmd,
|
add_com ("proc-untrace-entry", no_class, proc_untrace_sysentry_cmd,
|
||||||
"Cancel a trace of entries into the syscall.");
|
_("Cancel a trace of entries into the syscall."));
|
||||||
add_com ("proc-untrace-exit", no_class, proc_untrace_sysexit_cmd,
|
add_com ("proc-untrace-exit", no_class, proc_untrace_sysexit_cmd,
|
||||||
"Cancel a trace of exits from the syscall.");
|
_("Cancel a trace of exits from the syscall."));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* =================== END, GDB "MODULE" =================== */
|
/* =================== END, GDB "MODULE" =================== */
|
||||||
|
|
|
@ -1415,7 +1415,7 @@ _initialize_regcache (void)
|
||||||
observer_attach_target_changed (regcache_observer_target_changed);
|
observer_attach_target_changed (regcache_observer_target_changed);
|
||||||
|
|
||||||
add_com ("flushregs", class_maintenance, reg_flush_command,
|
add_com ("flushregs", class_maintenance, reg_flush_command,
|
||||||
"Force gdb to flush its register cache (maintainer command)");
|
_("Force gdb to flush its register cache (maintainer command)"));
|
||||||
|
|
||||||
/* Initialize the thread/process associated with the current set of
|
/* Initialize the thread/process associated with the current set of
|
||||||
registers. For now, -1 is special, and means `no current process'. */
|
registers. For now, -1 is special, and means `no current process'. */
|
||||||
|
|
|
@ -2178,16 +2178,16 @@ _initialize_remote_e7000 (void)
|
||||||
add_target (&e7000_ops);
|
add_target (&e7000_ops);
|
||||||
|
|
||||||
add_com ("e7000", class_obscure, e7000_command,
|
add_com ("e7000", class_obscure, e7000_command,
|
||||||
"Send a command to the e7000 monitor.");
|
_("Send a command to the e7000 monitor."));
|
||||||
|
|
||||||
add_com ("ftplogin", class_obscure, e7000_login_command,
|
add_com ("ftplogin", class_obscure, e7000_login_command,
|
||||||
"Login to machine and change to directory.");
|
_("Login to machine and change to directory."));
|
||||||
|
|
||||||
add_com ("ftpload", class_obscure, e7000_ftp_command,
|
add_com ("ftpload", class_obscure, e7000_ftp_command,
|
||||||
"Fetch and load a file from previously described place.");
|
_("Fetch and load a file from previously described place."));
|
||||||
|
|
||||||
add_com ("drain", class_obscure, e7000_drain_command,
|
add_com ("drain", class_obscure, e7000_drain_command,
|
||||||
"Drain pending e7000 text buffers.");
|
_("Drain pending e7000 text buffers."));
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
(add_set_cmd ("usehardbreakpoints", no_class,
|
(add_set_cmd ("usehardbreakpoints", no_class,
|
||||||
|
|
|
@ -1619,21 +1619,21 @@ _initialize_remote_m32r (void)
|
||||||
add_target (&m32r_ops);
|
add_target (&m32r_ops);
|
||||||
|
|
||||||
add_com ("sdireset", class_obscure, sdireset_command,
|
add_com ("sdireset", class_obscure, sdireset_command,
|
||||||
"Reset SDI connection.");
|
_("Reset SDI connection."));
|
||||||
|
|
||||||
add_com ("sdistatus", class_obscure, sdistatus_command,
|
add_com ("sdistatus", class_obscure, sdistatus_command,
|
||||||
"Show status of SDI connection.");
|
_("Show status of SDI connection."));
|
||||||
|
|
||||||
add_com ("debug_chaos", class_obscure, debug_chaos_command,
|
add_com ("debug_chaos", class_obscure, debug_chaos_command,
|
||||||
"Debug M32R/Chaos.");
|
_("Debug M32R/Chaos."));
|
||||||
|
|
||||||
add_com ("use_debug_dma", class_obscure, use_debug_dma_command,
|
add_com ("use_debug_dma", class_obscure, use_debug_dma_command,
|
||||||
"Use debug DMA mem access.");
|
_("Use debug DMA mem access."));
|
||||||
add_com ("use_mon_code", class_obscure, use_mon_code_command,
|
add_com ("use_mon_code", class_obscure, use_mon_code_command,
|
||||||
"Use mon code mem access.");
|
_("Use mon code mem access."));
|
||||||
|
|
||||||
add_com ("use_ib_break", class_obscure, use_ib_breakpoints_command,
|
add_com ("use_ib_break", class_obscure, use_ib_breakpoints_command,
|
||||||
"Set breakpoints by IB break.");
|
_("Set breakpoints by IB break."));
|
||||||
add_com ("use_dbt_break", class_obscure, use_dbt_breakpoints_command,
|
add_com ("use_dbt_break", class_obscure, use_dbt_breakpoints_command,
|
||||||
"Set breakpoints by dbt.");
|
_("Set breakpoints by dbt."));
|
||||||
}
|
}
|
||||||
|
|
|
@ -3413,7 +3413,7 @@ ignored.)",
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_com ("pmon <command>", class_obscure, pmon_command,
|
add_com ("pmon <command>", class_obscure, pmon_command,
|
||||||
"Send a packet to PMON (must be in debug mode).");
|
_("Send a packet to PMON (must be in debug mode)."));
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
(add_set_cmd ("mask-address", no_class,
|
(add_set_cmd ("mask-address", no_class,
|
||||||
|
|
|
@ -1123,5 +1123,5 @@ _initialize_remote_sds (void)
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_com ("sds", class_obscure, sds_command,
|
add_com ("sds", class_obscure, sds_command,
|
||||||
"Send a command to the SDS monitor.");
|
_("Send a command to the SDS monitor."));
|
||||||
}
|
}
|
||||||
|
|
|
@ -892,5 +892,5 @@ _initialize_remote_sim (void)
|
||||||
add_target (&gdbsim_ops);
|
add_target (&gdbsim_ops);
|
||||||
|
|
||||||
add_com ("sim <command>", class_obscure, simulator_command,
|
add_com ("sim <command>", class_obscure, simulator_command,
|
||||||
"Send a command to the simulator.");
|
_("Send a command to the simulator."));
|
||||||
}
|
}
|
||||||
|
|
|
@ -797,8 +797,8 @@ _initialize_remote_st2000 (void)
|
||||||
init_st2000_ops ();
|
init_st2000_ops ();
|
||||||
add_target (&st2000_ops);
|
add_target (&st2000_ops);
|
||||||
add_com ("st2000 <command>", class_obscure, st2000_command,
|
add_com ("st2000 <command>", class_obscure, st2000_command,
|
||||||
"Send a command to the STDBUG monitor.");
|
_("Send a command to the STDBUG monitor."));
|
||||||
add_com ("connect", class_obscure, connect_command,
|
add_com ("connect", class_obscure, connect_command, _("\
|
||||||
"Connect the terminal directly up to the STDBUG command monitor.\n\
|
Connect the terminal directly up to the STDBUG command monitor.\n\
|
||||||
Use <CR>~. or <CR>~^D to break out.");
|
Use <CR>~. or <CR>~^D to break out."));
|
||||||
}
|
}
|
||||||
|
|
|
@ -605,6 +605,6 @@ targets.", &setlist),
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_com ("remote <command>", class_obscure, sr_com,
|
add_com ("remote <command>", class_obscure, sr_com,
|
||||||
"Send a command to the remote monitor.");
|
_("Send a command to the remote monitor."));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
20
gdb/remote.c
20
gdb/remote.c
|
@ -5267,16 +5267,16 @@ threadlist_update_test_cmd (char *cmd, int tty)
|
||||||
static void
|
static void
|
||||||
init_remote_threadtests (void)
|
init_remote_threadtests (void)
|
||||||
{
|
{
|
||||||
add_com ("tlist", class_obscure, threadlist_test_cmd,
|
add_com ("tlist", class_obscure, threadlist_test_cmd, _("\
|
||||||
"Fetch and print the remote list of thread identifiers, one pkt only");
|
Fetch and print the remote list of thread identifiers, one pkt only"));
|
||||||
add_com ("tinfo", class_obscure, threadinfo_test_cmd,
|
add_com ("tinfo", class_obscure, threadinfo_test_cmd,
|
||||||
"Fetch and display info about one thread");
|
_("Fetch and display info about one thread"));
|
||||||
add_com ("tset", class_obscure, threadset_test_cmd,
|
add_com ("tset", class_obscure, threadset_test_cmd,
|
||||||
"Test setting to a different thread");
|
_("Test setting to a different thread"));
|
||||||
add_com ("tupd", class_obscure, threadlist_update_test_cmd,
|
add_com ("tupd", class_obscure, threadlist_update_test_cmd,
|
||||||
"Iterate through updating all remote thread info");
|
_("Iterate through updating all remote thread info"));
|
||||||
add_com ("talive", class_obscure, threadalive_test,
|
add_com ("talive", class_obscure, threadalive_test,
|
||||||
" Remote thread alive test ");
|
_(" Remote thread alive test "));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* 0 */
|
#endif /* 0 */
|
||||||
|
@ -5570,16 +5570,16 @@ _initialize_remote (void)
|
||||||
|
|
||||||
/* set/show remote ... */
|
/* set/show remote ... */
|
||||||
|
|
||||||
add_prefix_cmd ("remote", class_maintenance, set_remote_cmd, "\
|
add_prefix_cmd ("remote", class_maintenance, set_remote_cmd, _("\
|
||||||
Remote protocol specific variables\n\
|
Remote protocol specific variables\n\
|
||||||
Configure various remote-protocol specific variables such as\n\
|
Configure various remote-protocol specific variables such as\n\
|
||||||
the packets being used",
|
the packets being used"),
|
||||||
&remote_set_cmdlist, "set remote ",
|
&remote_set_cmdlist, "set remote ",
|
||||||
0 /* allow-unknown */, &setlist);
|
0 /* allow-unknown */, &setlist);
|
||||||
add_prefix_cmd ("remote", class_maintenance, show_remote_cmd, "\
|
add_prefix_cmd ("remote", class_maintenance, show_remote_cmd, _("\
|
||||||
Remote protocol specific variables\n\
|
Remote protocol specific variables\n\
|
||||||
Configure various remote-protocol specific variables such as\n\
|
Configure various remote-protocol specific variables such as\n\
|
||||||
the packets being used",
|
the packets being used"),
|
||||||
&remote_show_cmdlist, "show remote ",
|
&remote_show_cmdlist, "show remote ",
|
||||||
0 /* allow-unknown */, &showlist);
|
0 /* allow-unknown */, &showlist);
|
||||||
|
|
||||||
|
|
|
@ -3419,6 +3419,6 @@ _initialize_rs6000_tdep (void)
|
||||||
|
|
||||||
/* Add root prefix command for "info powerpc" commands */
|
/* Add root prefix command for "info powerpc" commands */
|
||||||
add_prefix_cmd ("powerpc", class_info, rs6000_info_powerpc_command,
|
add_prefix_cmd ("powerpc", class_info, rs6000_info_powerpc_command,
|
||||||
"Various POWERPC info specific commands.",
|
_("Various POWERPC info specific commands."),
|
||||||
&info_powerpc_cmdlist, "info powerpc ", 0, &infolist);
|
&info_powerpc_cmdlist, "info powerpc ", 0, &infolist);
|
||||||
}
|
}
|
||||||
|
|
|
@ -960,5 +960,5 @@ _initialize_ser_dos (void)
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_info ("serial", dos_info,
|
add_info ("serial", dos_info,
|
||||||
"Print DOS serial port status.");
|
_("Print DOS serial port status."));
|
||||||
}
|
}
|
||||||
|
|
14
gdb/serial.c
14
gdb/serial.c
|
@ -669,19 +669,19 @@ void
|
||||||
_initialize_serial (void)
|
_initialize_serial (void)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
add_com ("connect", class_obscure, connect_command,
|
add_com ("connect", class_obscure, connect_command, _("\
|
||||||
"Connect the terminal directly up to the command monitor.\n\
|
Connect the terminal directly up to the command monitor.\n\
|
||||||
Use <CR>~. or <CR>~^D to break out.");
|
Use <CR>~. or <CR>~^D to break out."));
|
||||||
#endif /* 0 */
|
#endif /* 0 */
|
||||||
|
|
||||||
add_prefix_cmd ("serial", class_maintenance, serial_set_cmd, "\
|
add_prefix_cmd ("serial", class_maintenance, serial_set_cmd, _("\
|
||||||
Set default serial/parallel port configuration.",
|
Set default serial/parallel port configuration."),
|
||||||
&serial_set_cmdlist, "set serial ",
|
&serial_set_cmdlist, "set serial ",
|
||||||
0/*allow-unknown*/,
|
0/*allow-unknown*/,
|
||||||
&setlist);
|
&setlist);
|
||||||
|
|
||||||
add_prefix_cmd ("serial", class_maintenance, serial_show_cmd, "\
|
add_prefix_cmd ("serial", class_maintenance, serial_show_cmd, _("\
|
||||||
Show default serial/parallel port configuration.",
|
Show default serial/parallel port configuration."),
|
||||||
&serial_show_cmdlist, "show serial ",
|
&serial_show_cmdlist, "show serial ",
|
||||||
0/*allow-unknown*/,
|
0/*allow-unknown*/,
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
|
@ -2735,5 +2735,5 @@ _initialize_sh_tdep (void)
|
||||||
|
|
||||||
gdbarch_register (bfd_arch_sh, sh_gdbarch_init, NULL);
|
gdbarch_register (bfd_arch_sh, sh_gdbarch_init, NULL);
|
||||||
|
|
||||||
add_com ("regs", class_vars, sh_show_regs_command, "Print all registers");
|
add_com ("regs", class_vars, sh_show_regs_command, _("Print all registers"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -893,11 +893,11 @@ _initialize_solib (void)
|
||||||
struct cmd_list_element *c;
|
struct cmd_list_element *c;
|
||||||
|
|
||||||
add_com ("sharedlibrary", class_files, sharedlibrary_command,
|
add_com ("sharedlibrary", class_files, sharedlibrary_command,
|
||||||
"Load shared object library symbols for files matching REGEXP.");
|
_("Load shared object library symbols for files matching REGEXP."));
|
||||||
add_info ("sharedlibrary", info_sharedlibrary_command,
|
add_info ("sharedlibrary", info_sharedlibrary_command,
|
||||||
"Status of loaded shared object libraries.");
|
_("Status of loaded shared object libraries."));
|
||||||
add_com ("nosharedlibrary", class_files, no_shared_libraries,
|
add_com ("nosharedlibrary", class_files, no_shared_libraries,
|
||||||
"Unload all shared object library symbols.");
|
_("Unload all shared object library symbols."));
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
(add_set_cmd ("auto-solib-add", class_support, var_boolean,
|
(add_set_cmd ("auto-solib-add", class_support, var_boolean,
|
||||||
|
|
|
@ -1553,9 +1553,9 @@ void
|
||||||
_initialize_som_solib (void)
|
_initialize_som_solib (void)
|
||||||
{
|
{
|
||||||
add_com ("sharedlibrary", class_files, som_solib_sharedlibrary_command,
|
add_com ("sharedlibrary", class_files, som_solib_sharedlibrary_command,
|
||||||
"Load shared object library symbols for files matching REGEXP.");
|
_("Load shared object library symbols for files matching REGEXP."));
|
||||||
add_info ("sharedlibrary", som_sharedlibrary_info_command,
|
add_info ("sharedlibrary", som_sharedlibrary_info_command,
|
||||||
"Status of loaded shared object libraries.");
|
_("Status of loaded shared object libraries."));
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
(add_set_cmd ("auto-solib-add", class_support, var_boolean,
|
(add_set_cmd ("auto-solib-add", class_support, var_boolean,
|
||||||
|
|
21
gdb/source.c
21
gdb/source.c
|
@ -1604,29 +1604,28 @@ $cdir in the path means the compilation directory of the source file."),
|
||||||
}
|
}
|
||||||
|
|
||||||
add_info ("source", source_info,
|
add_info ("source", source_info,
|
||||||
"Information about the current source file.");
|
_("Information about the current source file."));
|
||||||
|
|
||||||
add_info ("line", line_info,
|
add_info ("line", line_info, _("\
|
||||||
concat ("Core addresses of the code for a source line.\n\
|
Core addresses of the code for a source line.\n\
|
||||||
Line can be specified as\n\
|
Line can be specified as\n\
|
||||||
LINENUM, to list around that line in current file,\n\
|
LINENUM, to list around that line in current file,\n\
|
||||||
FILE:LINENUM, to list around that line in that file,\n\
|
FILE:LINENUM, to list around that line in that file,\n\
|
||||||
FUNCTION, to list around beginning of that function,\n\
|
FUNCTION, to list around beginning of that function,\n\
|
||||||
FILE:FUNCTION, to distinguish among like-named static functions.\n\
|
FILE:FUNCTION, to distinguish among like-named static functions.\n\
|
||||||
", "\
|
|
||||||
Default is to describe the last source line that was listed.\n\n\
|
Default is to describe the last source line that was listed.\n\n\
|
||||||
This sets the default address for \"x\" to the line's first instruction\n\
|
This sets the default address for \"x\" to the line's first instruction\n\
|
||||||
so that \"x/i\" suffices to start examining the machine code.\n\
|
so that \"x/i\" suffices to start examining the machine code.\n\
|
||||||
The address is also stored as the value of \"$_\".", NULL));
|
The address is also stored as the value of \"$_\"."));
|
||||||
|
|
||||||
add_com ("forward-search", class_files, forward_search_command,
|
add_com ("forward-search", class_files, forward_search_command, _("\
|
||||||
"Search for regular expression (see regex(3)) from last line listed.\n\
|
Search for regular expression (see regex(3)) from last line listed.\n\
|
||||||
The matching line number is also stored as the value of \"$_\".");
|
The matching line number is also stored as the value of \"$_\"."));
|
||||||
add_com_alias ("search", "forward-search", class_files, 0);
|
add_com_alias ("search", "forward-search", class_files, 0);
|
||||||
|
|
||||||
add_com ("reverse-search", class_files, reverse_search_command,
|
add_com ("reverse-search", class_files, reverse_search_command, _("\
|
||||||
"Search backward for regular expression (see regex(3)) from last line listed.\n\
|
Search backward for regular expression (see regex(3)) from last line listed.\n\
|
||||||
The matching line number is also stored as the value of \"$_\".");
|
The matching line number is also stored as the value of \"$_\"."));
|
||||||
|
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
{
|
{
|
||||||
|
|
77
gdb/stack.c
77
gdb/stack.c
|
@ -2018,91 +2018,92 @@ _initialize_stack (void)
|
||||||
backtrace_limit = 30;
|
backtrace_limit = 30;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
add_com ("return", class_stack, return_command,
|
add_com ("return", class_stack, return_command, _("\
|
||||||
"Make selected stack frame return to its caller.\n\
|
Make selected stack frame return to its caller.\n\
|
||||||
Control remains in the debugger, but when you continue\n\
|
Control remains in the debugger, but when you continue\n\
|
||||||
execution will resume in the frame above the one now selected.\n\
|
execution will resume in the frame above the one now selected.\n\
|
||||||
If an argument is given, it is an expression for the value to return.");
|
If an argument is given, it is an expression for the value to return."));
|
||||||
|
|
||||||
add_com ("up", class_stack, up_command,
|
add_com ("up", class_stack, up_command, _("\
|
||||||
"Select and print stack frame that called this one.\n\
|
Select and print stack frame that called this one.\n\
|
||||||
An argument says how many frames up to go.");
|
An argument says how many frames up to go."));
|
||||||
add_com ("up-silently", class_support, up_silently_command,
|
add_com ("up-silently", class_support, up_silently_command, _("\
|
||||||
"Same as the `up' command, but does not print anything.\n\
|
Same as the `up' command, but does not print anything.\n\
|
||||||
This is useful in command scripts.");
|
This is useful in command scripts."));
|
||||||
|
|
||||||
add_com ("down", class_stack, down_command,
|
add_com ("down", class_stack, down_command, _("\
|
||||||
"Select and print stack frame called by this one.\n\
|
Select and print stack frame called by this one.\n\
|
||||||
An argument says how many frames down to go.");
|
An argument says how many frames down to go."));
|
||||||
add_com_alias ("do", "down", class_stack, 1);
|
add_com_alias ("do", "down", class_stack, 1);
|
||||||
add_com_alias ("dow", "down", class_stack, 1);
|
add_com_alias ("dow", "down", class_stack, 1);
|
||||||
add_com ("down-silently", class_support, down_silently_command,
|
add_com ("down-silently", class_support, down_silently_command, _("\
|
||||||
"Same as the `down' command, but does not print anything.\n\
|
Same as the `down' command, but does not print anything.\n\
|
||||||
This is useful in command scripts.");
|
This is useful in command scripts."));
|
||||||
|
|
||||||
add_com ("frame", class_stack, frame_command,
|
add_com ("frame", class_stack, frame_command, _("\
|
||||||
"Select and print a stack frame.\n\
|
Select and print a stack frame.\n\
|
||||||
With no argument, print the selected stack frame. (See also \"info frame\").\n\
|
With no argument, print the selected stack frame. (See also \"info frame\").\n\
|
||||||
An argument specifies the frame to select.\n\
|
An argument specifies the frame to select.\n\
|
||||||
It can be a stack frame number or the address of the frame.\n\
|
It can be a stack frame number or the address of the frame.\n\
|
||||||
With argument, nothing is printed if input is coming from\n\
|
With argument, nothing is printed if input is coming from\n\
|
||||||
a command file or a user-defined command.");
|
a command file or a user-defined command."));
|
||||||
|
|
||||||
add_com_alias ("f", "frame", class_stack, 1);
|
add_com_alias ("f", "frame", class_stack, 1);
|
||||||
|
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
{
|
{
|
||||||
add_com ("L", class_stack, current_frame_command,
|
add_com ("L", class_stack, current_frame_command,
|
||||||
"Print the current stack frame.\n");
|
_("Print the current stack frame.\n"));
|
||||||
add_com_alias ("V", "frame", class_stack, 1);
|
add_com_alias ("V", "frame", class_stack, 1);
|
||||||
}
|
}
|
||||||
add_com ("select-frame", class_stack, select_frame_command,
|
add_com ("select-frame", class_stack, select_frame_command, _("\
|
||||||
"Select a stack frame without printing anything.\n\
|
Select a stack frame without printing anything.\n\
|
||||||
An argument specifies the frame to select.\n\
|
An argument specifies the frame to select.\n\
|
||||||
It can be a stack frame number or the address of the frame.\n");
|
It can be a stack frame number or the address of the frame.\n"));
|
||||||
|
|
||||||
add_com ("backtrace", class_stack, backtrace_command,
|
add_com ("backtrace", class_stack, backtrace_command, _("\
|
||||||
"Print backtrace of all stack frames, or innermost COUNT frames.\n\
|
Print backtrace of all stack frames, or innermost COUNT frames.\n\
|
||||||
With a negative argument, print outermost -COUNT frames.\n\
|
With a negative argument, print outermost -COUNT frames.\n\
|
||||||
Use of the 'full' qualifier also prints the values of the local variables.\n");
|
Use of the 'full' qualifier also prints the values of the local variables.\n"));
|
||||||
add_com_alias ("bt", "backtrace", class_stack, 0);
|
add_com_alias ("bt", "backtrace", class_stack, 0);
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
{
|
{
|
||||||
add_com_alias ("t", "backtrace", class_stack, 0);
|
add_com_alias ("t", "backtrace", class_stack, 0);
|
||||||
add_com ("T", class_stack, backtrace_full_command,
|
add_com ("T", class_stack, backtrace_full_command, _("\
|
||||||
"Print backtrace of all stack frames, or innermost COUNT frames \n\
|
Print backtrace of all stack frames, or innermost COUNT frames \n\
|
||||||
and the values of the local variables.\n\
|
and the values of the local variables.\n\
|
||||||
With a negative argument, print outermost -COUNT frames.\n\
|
With a negative argument, print outermost -COUNT frames.\n\
|
||||||
Usage: T <count>\n");
|
Usage: T <count>\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
add_com_alias ("where", "backtrace", class_alias, 0);
|
add_com_alias ("where", "backtrace", class_alias, 0);
|
||||||
add_info ("stack", backtrace_command,
|
add_info ("stack", backtrace_command,
|
||||||
"Backtrace of the stack, or innermost COUNT frames.");
|
_("Backtrace of the stack, or innermost COUNT frames."));
|
||||||
add_info_alias ("s", "stack", 1);
|
add_info_alias ("s", "stack", 1);
|
||||||
add_info ("frame", frame_info,
|
add_info ("frame", frame_info,
|
||||||
"All about selected stack frame, or frame at ADDR.");
|
_("All about selected stack frame, or frame at ADDR."));
|
||||||
add_info_alias ("f", "frame", 1);
|
add_info_alias ("f", "frame", 1);
|
||||||
add_info ("locals", locals_info,
|
add_info ("locals", locals_info,
|
||||||
"Local variables of current stack frame.");
|
_("Local variables of current stack frame."));
|
||||||
add_info ("args", args_info,
|
add_info ("args", args_info,
|
||||||
"Argument variables of current stack frame.");
|
_("Argument variables of current stack frame."));
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com ("l", class_info, args_plus_locals_info,
|
add_com ("l", class_info, args_plus_locals_info,
|
||||||
"Argument and local variables of current stack frame.");
|
_("Argument and local variables of current stack frame."));
|
||||||
|
|
||||||
if (dbx_commands)
|
if (dbx_commands)
|
||||||
add_com ("func", class_stack, func_command,
|
add_com ("func", class_stack, func_command, _("\
|
||||||
"Select the stack frame that contains <func>.\nUsage: func <name>\n");
|
Select the stack frame that contains <func>.\n\
|
||||||
|
Usage: func <name>\n"));
|
||||||
|
|
||||||
add_info ("catch", catch_info,
|
add_info ("catch", catch_info,
|
||||||
"Exceptions that can be caught in the current stack frame.");
|
_("Exceptions that can be caught in the current stack frame."));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
add_cmd ("backtrace-limit", class_stack, set_backtrace_limit_command, _(\
|
add_cmd ("backtrace-limit", class_stack, set_backtrace_limit_command, _(\
|
||||||
"Specify maximum number of frames for \"backtrace\" to print by default."),
|
"Specify maximum number of frames for \"backtrace\" to print by default."),
|
||||||
&setlist);
|
&setlist);
|
||||||
add_info ("backtrace-limit", backtrace_limit_info,
|
add_info ("backtrace-limit", backtrace_limit_info, _("\
|
||||||
"The maximum number of frames for \"backtrace\" to print by default.");
|
The maximum number of frames for \"backtrace\" to print by default."));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -3570,7 +3570,7 @@ for access from GDB."), &cmdlist);
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_prefix_cmd ("overlay", class_support, overlay_command,
|
add_prefix_cmd ("overlay", class_support, overlay_command,
|
||||||
"Commands for debugging overlays.", &overlaylist,
|
_("Commands for debugging overlays."), &overlaylist,
|
||||||
"overlay ", 0, &cmdlist);
|
"overlay ", 0, &cmdlist);
|
||||||
|
|
||||||
add_com_alias ("ovly", "overlay", class_alias, 1);
|
add_com_alias ("ovly", "overlay", class_alias, 1);
|
||||||
|
@ -3604,7 +3604,7 @@ Usage: set extension-language .foo bar",
|
||||||
set_cmd_cfunc (c, set_ext_lang_command);
|
set_cmd_cfunc (c, set_ext_lang_command);
|
||||||
|
|
||||||
add_info ("extensions", info_ext_lang_command,
|
add_info ("extensions", info_ext_lang_command,
|
||||||
"All filename extensions associated with a source language.");
|
_("All filename extensions associated with a source language."));
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
(add_set_cmd ("download-write-size", class_obscure,
|
(add_set_cmd ("download-write-size", class_obscure,
|
||||||
|
|
23
gdb/symtab.c
23
gdb/symtab.c
|
@ -4105,14 +4105,14 @@ main_name (void)
|
||||||
void
|
void
|
||||||
_initialize_symtab (void)
|
_initialize_symtab (void)
|
||||||
{
|
{
|
||||||
add_info ("variables", variables_info,
|
add_info ("variables", variables_info, _("\
|
||||||
"All global and static variable names, or those matching REGEXP.");
|
All global and static variable names, or those matching REGEXP."));
|
||||||
if (dbx_commands)
|
if (dbx_commands)
|
||||||
add_com ("whereis", class_info, variables_info,
|
add_com ("whereis", class_info, variables_info, _("\
|
||||||
"All global and static variable names, or those matching REGEXP.");
|
All global and static variable names, or those matching REGEXP."));
|
||||||
|
|
||||||
add_info ("functions", functions_info,
|
add_info ("functions", functions_info,
|
||||||
"All function names, or those matching REGEXP.");
|
_("All function names, or those matching REGEXP."));
|
||||||
|
|
||||||
|
|
||||||
/* FIXME: This command has at least the following problems:
|
/* FIXME: This command has at least the following problems:
|
||||||
|
@ -4124,19 +4124,20 @@ _initialize_symtab (void)
|
||||||
I also think "ptype" or "whatis" is more likely to be useful (but if
|
I also think "ptype" or "whatis" is more likely to be useful (but if
|
||||||
there is much disagreement "info types" can be fixed). */
|
there is much disagreement "info types" can be fixed). */
|
||||||
add_info ("types", types_info,
|
add_info ("types", types_info,
|
||||||
"All type names, or those matching REGEXP.");
|
_("All type names, or those matching REGEXP."));
|
||||||
|
|
||||||
add_info ("sources", sources_info,
|
add_info ("sources", sources_info,
|
||||||
"Source files in the program.");
|
_("Source files in the program."));
|
||||||
|
|
||||||
add_com ("rbreak", class_breakpoint, rbreak_command,
|
add_com ("rbreak", class_breakpoint, rbreak_command,
|
||||||
"Set a breakpoint for all functions matching REGEXP.");
|
_("Set a breakpoint for all functions matching REGEXP."));
|
||||||
|
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
{
|
{
|
||||||
add_com ("lf", class_info, sources_info, "Source files in the program");
|
add_com ("lf", class_info, sources_info,
|
||||||
add_com ("lg", class_info, variables_info,
|
_("Source files in the program"));
|
||||||
"All global and static variable names, or those matching REGEXP.");
|
add_com ("lg", class_info, variables_info, _("\
|
||||||
|
All global and static variable names, or those matching REGEXP."));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize the one built-in type that isn't language dependent... */
|
/* Initialize the one built-in type that isn't language dependent... */
|
||||||
|
|
|
@ -242,12 +242,12 @@ add_target (struct target_ops *t)
|
||||||
target_structs[target_struct_size++] = t;
|
target_structs[target_struct_size++] = t;
|
||||||
|
|
||||||
if (targetlist == NULL)
|
if (targetlist == NULL)
|
||||||
add_prefix_cmd ("target", class_run, target_command,
|
add_prefix_cmd ("target", class_run, target_command, _("\
|
||||||
"Connect to a target machine or process.\n\
|
Connect to a target machine or process.\n\
|
||||||
The first argument is the type or protocol of the target machine.\n\
|
The first argument is the type or protocol of the target machine.\n\
|
||||||
Remaining arguments are interpreted by the target protocol. For more\n\
|
Remaining arguments are interpreted by the target protocol. For more\n\
|
||||||
information on the arguments for a particular protocol, type\n\
|
information on the arguments for a particular protocol, type\n\
|
||||||
`help target ' followed by the protocol name.",
|
`help target ' followed by the protocol name."),
|
||||||
&targetlist, "target ", 0, &cmdlist);
|
&targetlist, "target ", 0, &cmdlist);
|
||||||
add_cmd (t->to_shortname, no_class, t->to_open, t->to_doc, &targetlist);
|
add_cmd (t->to_shortname, no_class, t->to_open, t->to_doc, &targetlist);
|
||||||
}
|
}
|
||||||
|
@ -2573,7 +2573,7 @@ result in significant performance improvement for remote targets."),
|
||||||
&setlist, &showlist);
|
&setlist, &showlist);
|
||||||
|
|
||||||
add_com ("monitor", class_obscure, do_monitor_command,
|
add_com ("monitor", class_obscure, do_monitor_command,
|
||||||
"Send a command to the remote monitor (remote targets only).");
|
_("Send a command to the remote monitor (remote targets only)."));
|
||||||
|
|
||||||
target_dcache = dcache_init ();
|
target_dcache = dcache_init ();
|
||||||
}
|
}
|
||||||
|
|
11
gdb/thread.c
11
gdb/thread.c
|
@ -682,14 +682,15 @@ _initialize_thread (void)
|
||||||
static struct cmd_list_element *thread_apply_list = NULL;
|
static struct cmd_list_element *thread_apply_list = NULL;
|
||||||
|
|
||||||
add_info ("threads", info_threads_command,
|
add_info ("threads", info_threads_command,
|
||||||
"IDs of currently known threads.");
|
_("IDs of currently known threads."));
|
||||||
|
|
||||||
add_prefix_cmd ("thread", class_run, thread_command,
|
add_prefix_cmd ("thread", class_run, thread_command, _("\
|
||||||
"Use this command to switch between threads.\n\
|
Use this command to switch between threads.\n\
|
||||||
The new thread ID must be currently known.", &thread_cmd_list, "thread ", 1, &cmdlist);
|
The new thread ID must be currently known."),
|
||||||
|
&thread_cmd_list, "thread ", 1, &cmdlist);
|
||||||
|
|
||||||
add_prefix_cmd ("apply", class_run, thread_apply_command,
|
add_prefix_cmd ("apply", class_run, thread_apply_command,
|
||||||
"Apply a command to a list of threads.",
|
_("Apply a command to a list of threads."),
|
||||||
&thread_apply_list, "apply ", 1, &thread_cmd_list);
|
&thread_apply_list, "apply ", 1, &thread_cmd_list);
|
||||||
|
|
||||||
add_cmd ("all", class_run, thread_apply_all_command,
|
add_cmd ("all", class_run, thread_apply_all_command,
|
||||||
|
|
|
@ -1380,9 +1380,10 @@ init_main (void)
|
||||||
deprecated_add_show_from_set (c, &showlist);
|
deprecated_add_show_from_set (c, &showlist);
|
||||||
set_cmd_sfunc (c, set_async_prompt);
|
set_cmd_sfunc (c, set_async_prompt);
|
||||||
|
|
||||||
add_com ("dont-repeat", class_support, dont_repeat_command, "Don't repeat this command.\n\
|
add_com ("dont-repeat", class_support, dont_repeat_command, _("\
|
||||||
|
Don't repeat this command.\n\
|
||||||
Primarily used inside of user-defined commands that should not be repeated when\n\
|
Primarily used inside of user-defined commands that should not be repeated when\n\
|
||||||
hitting return.");
|
hitting return."));
|
||||||
|
|
||||||
c = add_set_cmd ("editing", class_support, var_boolean, (char *) &async_command_editing_p,
|
c = add_set_cmd ("editing", class_support, var_boolean, (char *) &async_command_editing_p,
|
||||||
"Set editing of command lines as they are typed.\n\
|
"Set editing of command lines as they are typed.\n\
|
||||||
|
|
|
@ -2710,30 +2710,30 @@ _initialize_tracepoint (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
add_info ("scope", scope_info,
|
add_info ("scope", scope_info,
|
||||||
"List the variables local to a scope");
|
_("List the variables local to a scope"));
|
||||||
|
|
||||||
add_cmd ("tracepoints", class_trace, NULL,
|
add_cmd ("tracepoints", class_trace, NULL,
|
||||||
_("Tracing of program execution without stopping the program."),
|
_("Tracing of program execution without stopping the program."),
|
||||||
&cmdlist);
|
&cmdlist);
|
||||||
|
|
||||||
add_info ("tracepoints", tracepoints_info,
|
add_info ("tracepoints", tracepoints_info, _("\
|
||||||
"Status of tracepoints, or tracepoint number NUMBER.\n\
|
Status of tracepoints, or tracepoint number NUMBER.\n\
|
||||||
Convenience variable \"$tpnum\" contains the number of the\n\
|
Convenience variable \"$tpnum\" contains the number of the\n\
|
||||||
last tracepoint set.");
|
last tracepoint set."));
|
||||||
|
|
||||||
add_info_alias ("tp", "tracepoints", 1);
|
add_info_alias ("tp", "tracepoints", 1);
|
||||||
|
|
||||||
c = add_com ("save-tracepoints", class_trace, tracepoint_save_command,
|
c = add_com ("save-tracepoints", class_trace, tracepoint_save_command, _("\
|
||||||
"Save current tracepoint definitions as a script.\n\
|
Save current tracepoint definitions as a script.\n\
|
||||||
Use the 'source' command in another debug session to restore them.");
|
Use the 'source' command in another debug session to restore them."));
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
add_com ("tdump", class_trace, trace_dump_command,
|
add_com ("tdump", class_trace, trace_dump_command,
|
||||||
"Print everything collected at the current tracepoint.");
|
_("Print everything collected at the current tracepoint."));
|
||||||
|
|
||||||
add_prefix_cmd ("tfind", class_trace, trace_find_command,
|
add_prefix_cmd ("tfind", class_trace, trace_find_command, _("\
|
||||||
"Select a trace frame;\n\
|
Select a trace frame;\n\
|
||||||
No argument means forward by one frame; '-' means backward by one frame.",
|
No argument means forward by one frame; '-' means backward by one frame."),
|
||||||
&tfindlist, "tfind ", 1, &cmdlist);
|
&tfindlist, "tfind ", 1, &cmdlist);
|
||||||
|
|
||||||
add_cmd ("outside", class_trace, trace_find_outside_command, _("\
|
add_cmd ("outside", class_trace, trace_find_outside_command, _("\
|
||||||
|
@ -2777,53 +2777,53 @@ De-select any trace frame and resume 'live' debugging."),
|
||||||
&tfindlist);
|
&tfindlist);
|
||||||
|
|
||||||
add_com ("tstatus", class_trace, trace_status_command,
|
add_com ("tstatus", class_trace, trace_status_command,
|
||||||
"Display the status of the current trace data collection.");
|
_("Display the status of the current trace data collection."));
|
||||||
|
|
||||||
add_com ("tstop", class_trace, trace_stop_command,
|
add_com ("tstop", class_trace, trace_stop_command,
|
||||||
"Stop trace data collection.");
|
_("Stop trace data collection."));
|
||||||
|
|
||||||
add_com ("tstart", class_trace, trace_start_command,
|
add_com ("tstart", class_trace, trace_start_command,
|
||||||
"Start trace data collection.");
|
_("Start trace data collection."));
|
||||||
|
|
||||||
add_com ("passcount", class_trace, trace_pass_command,
|
add_com ("passcount", class_trace, trace_pass_command, _("\
|
||||||
"Set the passcount for a tracepoint.\n\
|
Set the passcount for a tracepoint.\n\
|
||||||
The trace will end when the tracepoint has been passed 'count' times.\n\
|
The trace will end when the tracepoint has been passed 'count' times.\n\
|
||||||
Usage: passcount COUNT TPNUM, where TPNUM may also be \"all\";\n\
|
Usage: passcount COUNT TPNUM, where TPNUM may also be \"all\";\n\
|
||||||
if TPNUM is omitted, passcount refers to the last tracepoint defined.");
|
if TPNUM is omitted, passcount refers to the last tracepoint defined."));
|
||||||
|
|
||||||
add_com ("end", class_trace, end_actions_pseudocommand,
|
add_com ("end", class_trace, end_actions_pseudocommand, _("\
|
||||||
"Ends a list of commands or actions.\n\
|
Ends a list of commands or actions.\n\
|
||||||
Several GDB commands allow you to enter a list of commands or actions.\n\
|
Several GDB commands allow you to enter a list of commands or actions.\n\
|
||||||
Entering \"end\" on a line by itself is the normal way to terminate\n\
|
Entering \"end\" on a line by itself is the normal way to terminate\n\
|
||||||
such a list.\n\n\
|
such a list.\n\n\
|
||||||
Note: the \"end\" command cannot be used at the gdb prompt.");
|
Note: the \"end\" command cannot be used at the gdb prompt."));
|
||||||
|
|
||||||
add_com ("while-stepping", class_trace, while_stepping_pseudocommand,
|
add_com ("while-stepping", class_trace, while_stepping_pseudocommand, _("\
|
||||||
"Specify single-stepping behavior at a tracepoint.\n\
|
Specify single-stepping behavior at a tracepoint.\n\
|
||||||
Argument is number of instructions to trace in single-step mode\n\
|
Argument is number of instructions to trace in single-step mode\n\
|
||||||
following the tracepoint. This command is normally followed by\n\
|
following the tracepoint. This command is normally followed by\n\
|
||||||
one or more \"collect\" commands, to specify what to collect\n\
|
one or more \"collect\" commands, to specify what to collect\n\
|
||||||
while single-stepping.\n\n\
|
while single-stepping.\n\n\
|
||||||
Note: this command can only be used in a tracepoint \"actions\" list.");
|
Note: this command can only be used in a tracepoint \"actions\" list."));
|
||||||
|
|
||||||
add_com_alias ("ws", "while-stepping", class_alias, 0);
|
add_com_alias ("ws", "while-stepping", class_alias, 0);
|
||||||
add_com_alias ("stepping", "while-stepping", class_alias, 0);
|
add_com_alias ("stepping", "while-stepping", class_alias, 0);
|
||||||
|
|
||||||
add_com ("collect", class_trace, collect_pseudocommand,
|
add_com ("collect", class_trace, collect_pseudocommand, _("\
|
||||||
"Specify one or more data items to be collected at a tracepoint.\n\
|
Specify one or more data items to be collected at a tracepoint.\n\
|
||||||
Accepts a comma-separated list of (one or more) expressions. GDB will\n\
|
Accepts a comma-separated list of (one or more) expressions. GDB will\n\
|
||||||
collect all data (variables, registers) referenced by that expression.\n\
|
collect all data (variables, registers) referenced by that expression.\n\
|
||||||
Also accepts the following special arguments:\n\
|
Also accepts the following special arguments:\n\
|
||||||
$regs -- all registers.\n\
|
$regs -- all registers.\n\
|
||||||
$args -- all function arguments.\n\
|
$args -- all function arguments.\n\
|
||||||
$locals -- all variables local to the block/function scope.\n\
|
$locals -- all variables local to the block/function scope.\n\
|
||||||
Note: this command can only be used in a tracepoint \"actions\" list.");
|
Note: this command can only be used in a tracepoint \"actions\" list."));
|
||||||
|
|
||||||
add_com ("actions", class_trace, trace_actions_command,
|
add_com ("actions", class_trace, trace_actions_command, _("\
|
||||||
"Specify the actions to be taken at a tracepoint.\n\
|
Specify the actions to be taken at a tracepoint.\n\
|
||||||
Tracepoint actions may include collecting of specified data, \n\
|
Tracepoint actions may include collecting of specified data, \n\
|
||||||
single-stepping, or enabling/disabling other tracepoints, \n\
|
single-stepping, or enabling/disabling other tracepoints, \n\
|
||||||
depending on target's capabilities.");
|
depending on target's capabilities."));
|
||||||
|
|
||||||
add_cmd ("tracepoints", class_trace, delete_trace_command, _("\
|
add_cmd ("tracepoints", class_trace, delete_trace_command, _("\
|
||||||
Delete specified tracepoints.\n\
|
Delete specified tracepoints.\n\
|
||||||
|
@ -2843,12 +2843,12 @@ Arguments are tracepoint numbers, separated by spaces.\n\
|
||||||
No argument means enable all tracepoints."),
|
No argument means enable all tracepoints."),
|
||||||
&enablelist);
|
&enablelist);
|
||||||
|
|
||||||
c = add_com ("trace", class_trace, trace_command,
|
c = add_com ("trace", class_trace, trace_command, _("\
|
||||||
"Set a tracepoint at a specified line or function or address.\n\
|
Set a tracepoint at a specified line or function or address.\n\
|
||||||
Argument may be a line number, function name, or '*' plus an address.\n\
|
Argument may be a line number, function name, or '*' plus an address.\n\
|
||||||
For a line number or function, trace at the start of its code.\n\
|
For a line number or function, trace at the start of its code.\n\
|
||||||
If an address is specified, trace at that exact address.\n\n\
|
If an address is specified, trace at that exact address.\n\n\
|
||||||
Do \"help tracepoints\" for info on other tracepoint commands.");
|
Do \"help tracepoints\" for info on other tracepoint commands."));
|
||||||
set_cmd_completer (c, location_completer);
|
set_cmd_completer (c, location_completer);
|
||||||
|
|
||||||
add_com_alias ("tp", "trace", class_alias, 0);
|
add_com_alias ("tp", "trace", class_alias, 0);
|
||||||
|
|
|
@ -372,8 +372,8 @@ tui_default_win_viewport_height (enum tui_win_type type,
|
||||||
void
|
void
|
||||||
_initialize_tui_layout (void)
|
_initialize_tui_layout (void)
|
||||||
{
|
{
|
||||||
add_com ("layout", class_tui, tui_layout_command,
|
add_com ("layout", class_tui, tui_layout_command, _("\
|
||||||
"Change the layout of windows.\n\
|
Change the layout of windows.\n\
|
||||||
Usage: layout prev | next | <layout_name> \n\
|
Usage: layout prev | next | <layout_name> \n\
|
||||||
Layout names are:\n\
|
Layout names are:\n\
|
||||||
src : Displays source and command windows.\n\
|
src : Displays source and command windows.\n\
|
||||||
|
@ -384,14 +384,14 @@ Layout names are:\n\
|
||||||
register window is displayed. If the\n\
|
register window is displayed. If the\n\
|
||||||
source/assembly/command (split) is displayed, \n\
|
source/assembly/command (split) is displayed, \n\
|
||||||
the register window is displayed with \n\
|
the register window is displayed with \n\
|
||||||
the window that has current logical focus.\n");
|
the window that has current logical focus.\n"));
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
{
|
{
|
||||||
add_com ("td", class_tui, tui_toggle_layout_command,
|
add_com ("td", class_tui, tui_toggle_layout_command, _("\
|
||||||
"Toggle between Source/Command and Disassembly/Command layouts.\n");
|
Toggle between Source/Command and Disassembly/Command layouts.\n"));
|
||||||
add_com ("ts", class_tui, tui_toggle_split_layout_command,
|
add_com ("ts", class_tui, tui_toggle_split_layout_command, _("\
|
||||||
"Toggle between Source/Command or Disassembly/Command and \n\
|
Toggle between Source/Command or Disassembly/Command and \n\
|
||||||
Source/Disassembly/Command layouts.\n");
|
Source/Disassembly/Command layouts.\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -595,7 +595,7 @@ _initialize_tui_regs (void)
|
||||||
tuicmd = tui_get_cmd_list ();
|
tuicmd = tui_get_cmd_list ();
|
||||||
|
|
||||||
add_prefix_cmd ("reg", class_tui, tui_reg_command,
|
add_prefix_cmd ("reg", class_tui, tui_reg_command,
|
||||||
"TUI commands to control the register window.",
|
_("TUI commands to control the register window."),
|
||||||
&tuireglist, "tui reg ", 0,
|
&tuireglist, "tui reg ", 0,
|
||||||
tuicmd);
|
tuicmd);
|
||||||
|
|
||||||
|
@ -615,15 +615,15 @@ _initialize_tui_regs (void)
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
{
|
{
|
||||||
add_com ("fr", class_tui, tui_reg_float_command,
|
add_com ("fr", class_tui, tui_reg_float_command,
|
||||||
"Display only floating point registers\n");
|
_("Display only floating point registers\n"));
|
||||||
add_com ("gr", class_tui, tui_reg_general_command,
|
add_com ("gr", class_tui, tui_reg_general_command,
|
||||||
"Display only general registers\n");
|
_("Display only general registers\n"));
|
||||||
add_com ("sr", class_tui, tui_reg_system_command,
|
add_com ("sr", class_tui, tui_reg_system_command,
|
||||||
"Display only special registers\n");
|
_("Display only special registers\n"));
|
||||||
add_com ("+r", class_tui, tui_scroll_regs_forward_command,
|
add_com ("+r", class_tui, tui_scroll_regs_forward_command,
|
||||||
"Scroll the registers window forward\n");
|
_("Scroll the registers window forward\n"));
|
||||||
add_com ("-r", class_tui, tui_scroll_regs_backward_command,
|
add_com ("-r", class_tui, tui_scroll_regs_backward_command,
|
||||||
"Scroll the register window backward\n");
|
_("Scroll the register window backward\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -411,9 +411,8 @@ tui_show_frame_info (struct frame_info *fi)
|
||||||
void
|
void
|
||||||
_initialize_tui_stack (void)
|
_initialize_tui_stack (void)
|
||||||
{
|
{
|
||||||
add_com ("update", class_tui, tui_update_command,
|
add_com ("update", class_tui, tui_update_command, _("\
|
||||||
"Update the source window and locator to display the current "
|
Update the source window and locator to display the current execution point.\n"));
|
||||||
"execution point.\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Command to update the display with the current execution point. */
|
/* Command to update the display with the current execution point. */
|
||||||
|
|
|
@ -305,7 +305,7 @@ tui_get_cmd_list (void)
|
||||||
{
|
{
|
||||||
if (tuilist == 0)
|
if (tuilist == 0)
|
||||||
add_prefix_cmd ("tui", class_tui, tui_command,
|
add_prefix_cmd ("tui", class_tui, tui_command,
|
||||||
"Text User Interface commands.",
|
_("Text User Interface commands."),
|
||||||
&tuilist, "tui ", 0, &cmdlist);
|
&tuilist, "tui ", 0, &cmdlist);
|
||||||
return &tuilist;
|
return &tuilist;
|
||||||
}
|
}
|
||||||
|
@ -321,53 +321,57 @@ _initialize_tui_win (void)
|
||||||
/* Define the classes of commands.
|
/* Define the classes of commands.
|
||||||
They will appear in the help list in the reverse of this order. */
|
They will appear in the help list in the reverse of this order. */
|
||||||
add_prefix_cmd ("tui", class_tui, set_tui_cmd,
|
add_prefix_cmd ("tui", class_tui, set_tui_cmd,
|
||||||
"TUI configuration variables",
|
_("TUI configuration variables"),
|
||||||
&tui_setlist, "set tui ",
|
&tui_setlist, "set tui ",
|
||||||
0/*allow-unknown*/, &setlist);
|
0/*allow-unknown*/, &setlist);
|
||||||
add_prefix_cmd ("tui", class_tui, show_tui_cmd,
|
add_prefix_cmd ("tui", class_tui, show_tui_cmd,
|
||||||
"TUI configuration variables",
|
_("TUI configuration variables"),
|
||||||
&tui_showlist, "show tui ",
|
&tui_showlist, "show tui ",
|
||||||
0/*allow-unknown*/, &showlist);
|
0/*allow-unknown*/, &showlist);
|
||||||
|
|
||||||
add_com ("refresh", class_tui, tui_refresh_all_command,
|
add_com ("refresh", class_tui, tui_refresh_all_command,
|
||||||
"Refresh the terminal display.\n");
|
_("Refresh the terminal display.\n"));
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com_alias ("U", "refresh", class_tui, 0);
|
add_com_alias ("U", "refresh", class_tui, 0);
|
||||||
add_com ("tabset", class_tui, tui_set_tab_width_command,
|
add_com ("tabset", class_tui, tui_set_tab_width_command, _("\
|
||||||
"Set the width (in characters) of tab stops.\n\
|
Set the width (in characters) of tab stops.\n\
|
||||||
Usage: tabset <n>\n");
|
Usage: tabset <n>\n"));
|
||||||
add_com ("winheight", class_tui, tui_set_win_height_command,
|
add_com ("winheight", class_tui, tui_set_win_height_command, _("\
|
||||||
"Set the height of a specified window.\n\
|
Set the height of a specified window.\n\
|
||||||
Usage: winheight <win_name> [+ | -] <#lines>\n\
|
Usage: winheight <win_name> [+ | -] <#lines>\n\
|
||||||
Window names are:\n\
|
Window names are:\n\
|
||||||
src : the source window\n\
|
src : the source window\n\
|
||||||
cmd : the command window\n\
|
cmd : the command window\n\
|
||||||
asm : the disassembly window\n\
|
asm : the disassembly window\n\
|
||||||
regs : the register display\n");
|
regs : the register display\n"));
|
||||||
add_com_alias ("wh", "winheight", class_tui, 0);
|
add_com_alias ("wh", "winheight", class_tui, 0);
|
||||||
add_info ("win", tui_all_windows_info,
|
add_info ("win", tui_all_windows_info,
|
||||||
"List of all displayed windows.\n");
|
_("List of all displayed windows.\n"));
|
||||||
add_com ("focus", class_tui, tui_set_focus_command,
|
add_com ("focus", class_tui, tui_set_focus_command, _("\
|
||||||
"Set focus to named window or next/prev window.\n\
|
Set focus to named window or next/prev window.\n\
|
||||||
Usage: focus {<win> | next | prev}\n\
|
Usage: focus {<win> | next | prev}\n\
|
||||||
Valid Window names are:\n\
|
Valid Window names are:\n\
|
||||||
src : the source window\n\
|
src : the source window\n\
|
||||||
asm : the disassembly window\n\
|
asm : the disassembly window\n\
|
||||||
regs : the register display\n\
|
regs : the register display\n\
|
||||||
cmd : the command window\n");
|
cmd : the command window\n"));
|
||||||
add_com_alias ("fs", "focus", class_tui, 0);
|
add_com_alias ("fs", "focus", class_tui, 0);
|
||||||
add_com ("+", class_tui, tui_scroll_forward_command,
|
add_com ("+", class_tui, tui_scroll_forward_command, _("\
|
||||||
"Scroll window forward.\nUsage: + [win] [n]\n");
|
Scroll window forward.\n\
|
||||||
add_com ("-", class_tui, tui_scroll_backward_command,
|
Usage: + [win] [n]\n"));
|
||||||
"Scroll window backward.\nUsage: - [win] [n]\n");
|
add_com ("-", class_tui, tui_scroll_backward_command, _("\
|
||||||
add_com ("<", class_tui, tui_scroll_left_command,
|
Scroll window backward.\n\
|
||||||
"Scroll window forward.\nUsage: < [win] [n]\n");
|
Usage: - [win] [n]\n"));
|
||||||
add_com (">", class_tui, tui_scroll_right_command,
|
add_com ("<", class_tui, tui_scroll_left_command, _("\
|
||||||
"Scroll window backward.\nUsage: > [win] [n]\n");
|
Scroll window forward.\n\
|
||||||
|
Usage: < [win] [n]\n"));
|
||||||
|
add_com (">", class_tui, tui_scroll_right_command, _("\
|
||||||
|
Scroll window backward.\n\
|
||||||
|
Usage: > [win] [n]\n"));
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
add_com ("w", class_xdb, tui_xdb_set_win_height_command,
|
add_com ("w", class_xdb, tui_xdb_set_win_height_command, _("\
|
||||||
"XDB compatibility command for setting the height of a command window.\n\
|
XDB compatibility command for setting the height of a command window.\n\
|
||||||
Usage: w <#lines>\n");
|
Usage: w <#lines>\n"));
|
||||||
|
|
||||||
/* Define the tui control variables. */
|
/* Define the tui control variables. */
|
||||||
c = add_set_enum_cmd
|
c = add_set_enum_cmd
|
||||||
|
|
|
@ -356,13 +356,13 @@ void
|
||||||
_initialize_typeprint (void)
|
_initialize_typeprint (void)
|
||||||
{
|
{
|
||||||
|
|
||||||
add_com ("ptype", class_vars, ptype_command,
|
add_com ("ptype", class_vars, ptype_command, _("\
|
||||||
"Print definition of type TYPE.\n\
|
Print definition of type TYPE.\n\
|
||||||
Argument may be a type name defined by typedef, or \"struct STRUCT-TAG\"\n\
|
Argument may be a type name defined by typedef, or \"struct STRUCT-TAG\"\n\
|
||||||
or \"class CLASS-NAME\" or \"union UNION-TAG\" or \"enum ENUM-TAG\".\n\
|
or \"class CLASS-NAME\" or \"union UNION-TAG\" or \"enum ENUM-TAG\".\n\
|
||||||
The selected stack frame's lexical context is used to look up the name.");
|
The selected stack frame's lexical context is used to look up the name."));
|
||||||
|
|
||||||
add_com ("whatis", class_vars, whatis_command,
|
add_com ("whatis", class_vars, whatis_command,
|
||||||
"Print data type of expression EXP.");
|
_("Print data type of expression EXP."));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2473,9 +2473,9 @@ initialize_utils (void)
|
||||||
if (xdb_commands)
|
if (xdb_commands)
|
||||||
{
|
{
|
||||||
add_com ("am", class_support, pagination_on_command,
|
add_com ("am", class_support, pagination_on_command,
|
||||||
"Enable pagination");
|
_("Enable pagination"));
|
||||||
add_com ("sm", class_support, pagination_off_command,
|
add_com ("sm", class_support, pagination_off_command,
|
||||||
"Disable pagination");
|
_("Disable pagination"));
|
||||||
}
|
}
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
|
|
|
@ -1193,14 +1193,14 @@ _initialize_valprint (void)
|
||||||
struct cmd_list_element *c;
|
struct cmd_list_element *c;
|
||||||
|
|
||||||
add_prefix_cmd ("print", no_class, set_print,
|
add_prefix_cmd ("print", no_class, set_print,
|
||||||
"Generic command for setting how things print.",
|
_("Generic command for setting how things print."),
|
||||||
&setprintlist, "set print ", 0, &setlist);
|
&setprintlist, "set print ", 0, &setlist);
|
||||||
add_alias_cmd ("p", "print", no_class, 1, &setlist);
|
add_alias_cmd ("p", "print", no_class, 1, &setlist);
|
||||||
/* prefer set print to set prompt */
|
/* prefer set print to set prompt */
|
||||||
add_alias_cmd ("pr", "print", no_class, 1, &setlist);
|
add_alias_cmd ("pr", "print", no_class, 1, &setlist);
|
||||||
|
|
||||||
add_prefix_cmd ("print", no_class, show_print,
|
add_prefix_cmd ("print", no_class, show_print,
|
||||||
"Generic command for showing print settings.",
|
_("Generic command for showing print settings."),
|
||||||
&showprintlist, "show print ", 0, &showlist);
|
&showprintlist, "show print ", 0, &showlist);
|
||||||
add_alias_cmd ("p", "print", no_class, 1, &showlist);
|
add_alias_cmd ("p", "print", no_class, 1, &showlist);
|
||||||
add_alias_cmd ("pr", "print", no_class, 1, &showlist);
|
add_alias_cmd ("pr", "print", no_class, 1, &showlist);
|
||||||
|
|
|
@ -2118,7 +2118,7 @@ _initialize_win32_nat (void)
|
||||||
init_child_ops ();
|
init_child_ops ();
|
||||||
|
|
||||||
c = add_com ("dll-symbols", class_files, dll_symbol_command,
|
c = add_com ("dll-symbols", class_files, dll_symbol_command,
|
||||||
"Load dll library symbols from FILE.");
|
_("Load dll library symbols from FILE."));
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
add_com_alias ("sharedlibrary", "dll-symbols", class_alias, 1);
|
add_com_alias ("sharedlibrary", "dll-symbols", class_alias, 1);
|
||||||
|
@ -2172,11 +2172,11 @@ _initialize_win32_nat (void)
|
||||||
&setlist),
|
&setlist),
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_info ("dll", info_dll_command, "Status of loaded DLLs.");
|
add_info ("dll", info_dll_command, _("Status of loaded DLLs."));
|
||||||
add_info_alias ("sharedlibrary", "dll", 1);
|
add_info_alias ("sharedlibrary", "dll", 1);
|
||||||
|
|
||||||
add_prefix_cmd ("w32", class_info, info_w32_command,
|
add_prefix_cmd ("w32", class_info, info_w32_command,
|
||||||
"Print information specific to Win32 debugging.",
|
_("Print information specific to Win32 debugging."),
|
||||||
&info_w32_cmdlist, "info w32 ", 0, &infolist);
|
&info_w32_cmdlist, "info w32 ", 0, &infolist);
|
||||||
|
|
||||||
add_cmd ("selector", class_info, display_selectors,
|
add_cmd ("selector", class_info, display_selectors,
|
||||||
|
|
|
@ -2118,7 +2118,7 @@ _initialize_win32_nat (void)
|
||||||
init_child_ops ();
|
init_child_ops ();
|
||||||
|
|
||||||
c = add_com ("dll-symbols", class_files, dll_symbol_command,
|
c = add_com ("dll-symbols", class_files, dll_symbol_command,
|
||||||
"Load dll library symbols from FILE.");
|
_("Load dll library symbols from FILE."));
|
||||||
set_cmd_completer (c, filename_completer);
|
set_cmd_completer (c, filename_completer);
|
||||||
|
|
||||||
add_com_alias ("sharedlibrary", "dll-symbols", class_alias, 1);
|
add_com_alias ("sharedlibrary", "dll-symbols", class_alias, 1);
|
||||||
|
@ -2172,11 +2172,11 @@ _initialize_win32_nat (void)
|
||||||
&setlist),
|
&setlist),
|
||||||
&showlist);
|
&showlist);
|
||||||
|
|
||||||
add_info ("dll", info_dll_command, "Status of loaded DLLs.");
|
add_info ("dll", info_dll_command, _("Status of loaded DLLs."));
|
||||||
add_info_alias ("sharedlibrary", "dll", 1);
|
add_info_alias ("sharedlibrary", "dll", 1);
|
||||||
|
|
||||||
add_prefix_cmd ("w32", class_info, info_w32_command,
|
add_prefix_cmd ("w32", class_info, info_w32_command,
|
||||||
"Print information specific to Win32 debugging.",
|
_("Print information specific to Win32 debugging."),
|
||||||
&info_w32_cmdlist, "info w32 ", 0, &infolist);
|
&info_w32_cmdlist, "info w32 ", 0, &infolist);
|
||||||
|
|
||||||
add_cmd ("selector", class_info, display_selectors,
|
add_cmd ("selector", class_info, display_selectors,
|
||||||
|
|
|
@ -179,9 +179,9 @@ void
|
||||||
_initialize_xcoffsolib (void)
|
_initialize_xcoffsolib (void)
|
||||||
{
|
{
|
||||||
add_com ("sharedlibrary", class_files, sharedlibrary_command,
|
add_com ("sharedlibrary", class_files, sharedlibrary_command,
|
||||||
"Load shared object library symbols for files matching REGEXP.");
|
_("Load shared object library symbols for files matching REGEXP."));
|
||||||
add_info ("sharedlibrary", solib_info,
|
add_info ("sharedlibrary", solib_info,
|
||||||
"Status of loaded shared object libraries");
|
_("Status of loaded shared object libraries"));
|
||||||
|
|
||||||
deprecated_add_show_from_set
|
deprecated_add_show_from_set
|
||||||
(add_set_cmd ("auto-solib-add", class_support, var_boolean,
|
(add_set_cmd ("auto-solib-add", class_support, var_boolean,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue