Change sym load/add/savemap -> import/import+/export.
This commit is contained in:
parent
ceb78ff053
commit
6cc43e17c8
|
@ -195,18 +195,18 @@ Set or alter the value of a symbol. The value given may be an address
|
||||||
expression.
|
expression.
|
||||||
.IP "\fBsym del\fR \fIname\fR"
|
.IP "\fBsym del\fR \fIname\fR"
|
||||||
Delete the given symbol from the symbol table.
|
Delete the given symbol from the symbol table.
|
||||||
.IP "\fBsym load\fR \fIfilename\fR"
|
.IP "\fBsym import\fR \fIfilename\fR"
|
||||||
Load symbols from the specified file and add them to the symbol table.
|
Load symbols from the specified file and add them to the symbol table.
|
||||||
The file format will be auto-detected and may be either ELF32 or a
|
The file format will be auto-detected and may be either ELF32 or a
|
||||||
BSD-style symbol listing (like the output from \fBnm\fR(1)).
|
BSD-style symbol listing (like the output from \fBnm\fR(1)).
|
||||||
|
|
||||||
Symbols can be combined from many sources, as the syms command adds
|
Symbols can be combined from many sources, as the syms command adds
|
||||||
to the existing symbol table without discarding existing symbols.
|
to the existing symbol table without discarding existing symbols.
|
||||||
.IP "\fBsym add\fR \fIfilename\fR"
|
.IP "\fBsym import+\fR \fIfilename\fR"
|
||||||
This command is similar to \fBsym load\fR, except that the symbol table
|
This command is similar to \fBsym import\fR, except that the symbol table
|
||||||
is not cleared first. By using this command, symbols from multiple
|
is not cleared first. By using this command, symbols from multiple
|
||||||
sources can be combined.
|
sources can be combined.
|
||||||
.IP "\fBsym savemap\fR \fIfilename\fR"
|
.IP "\fBsym export\fR \fIfilename\fR"
|
||||||
Save all symbols currently defined to the given file. The symbols are
|
Save all symbols currently defined to the given file. The symbols are
|
||||||
saved as a BSD-style symbol table. Note that symbol types are not stored
|
saved as a BSD-style symbol table. Note that symbol types are not stored
|
||||||
by MSPDebug, and all symbols are saved as type \fBt\fR.
|
by MSPDebug, and all symbols are saved as type \fBt\fR.
|
||||||
|
|
12
stab.c
12
stab.c
|
@ -410,12 +410,12 @@ static int cmd_sym(char **arg)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcasecmp(subcmd, "load"))
|
if (!strcasecmp(subcmd, "import"))
|
||||||
return cmd_sym_load_add(1, arg);
|
return cmd_sym_load_add(1, arg);
|
||||||
if (!strcasecmp(subcmd, "add"))
|
if (!strcasecmp(subcmd, "import+"))
|
||||||
return cmd_sym_load_add(0, arg);
|
return cmd_sym_load_add(0, arg);
|
||||||
|
|
||||||
if (!strcasecmp(subcmd, "savemap"))
|
if (!strcasecmp(subcmd, "export"))
|
||||||
return cmd_sym_savemap(arg);
|
return cmd_sym_savemap(arg);
|
||||||
|
|
||||||
if (!strcasecmp(subcmd, "find")) {
|
if (!strcasecmp(subcmd, "find")) {
|
||||||
|
@ -443,11 +443,11 @@ static struct command command_sym = {
|
||||||
" Set or overwrite the value of a symbol.\n"
|
" Set or overwrite the value of a symbol.\n"
|
||||||
"sym del <name>\n"
|
"sym del <name>\n"
|
||||||
" Delete a symbol from the symbol table.\n"
|
" Delete a symbol from the symbol table.\n"
|
||||||
"sym load <filename>\n"
|
"sym import <filename>\n"
|
||||||
" Load symbols from the given file.\n"
|
" Load symbols from the given file.\n"
|
||||||
"sym add <filename>\n"
|
"sym import+ <filename>\n"
|
||||||
" Load additional symbols from the given file.\n"
|
" Load additional symbols from the given file.\n"
|
||||||
"sym savemap <filename>\n"
|
"sym export <filename>\n"
|
||||||
" Save the current symbols to a BSD-style symbol file.\n"
|
" Save the current symbols to a BSD-style symbol file.\n"
|
||||||
"sym find <regex>\n"
|
"sym find <regex>\n"
|
||||||
" Search for symbols by regular expression.\n"
|
" Search for symbols by regular expression.\n"
|
||||||
|
|
Loading…
Reference in New Issue