From 6cc43e17c85cb3ef04f044de6899c0890de6e3f0 Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Wed, 31 Mar 2010 19:39:02 +1300 Subject: [PATCH] Change sym load/add/savemap -> import/import+/export. --- mspdebug.man | 8 ++++---- stab.c | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/mspdebug.man b/mspdebug.man index 889996d..9b3158a 100644 --- a/mspdebug.man +++ b/mspdebug.man @@ -195,18 +195,18 @@ Set or alter the value of a symbol. The value given may be an address expression. .IP "\fBsym del\fR \fIname\fR" 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. 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)). Symbols can be combined from many sources, as the syms command adds to the existing symbol table without discarding existing symbols. -.IP "\fBsym add\fR \fIfilename\fR" -This command is similar to \fBsym load\fR, except that the symbol table +.IP "\fBsym import+\fR \fIfilename\fR" +This command is similar to \fBsym import\fR, except that the symbol table is not cleared first. By using this command, symbols from multiple 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 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. diff --git a/stab.c b/stab.c index 62e69f1..a60c98c 100644 --- a/stab.c +++ b/stab.c @@ -410,12 +410,12 @@ static int cmd_sym(char **arg) return 0; } - if (!strcasecmp(subcmd, "load")) + if (!strcasecmp(subcmd, "import")) return cmd_sym_load_add(1, arg); - if (!strcasecmp(subcmd, "add")) + if (!strcasecmp(subcmd, "import+")) return cmd_sym_load_add(0, arg); - if (!strcasecmp(subcmd, "savemap")) + if (!strcasecmp(subcmd, "export")) return cmd_sym_savemap(arg); if (!strcasecmp(subcmd, "find")) { @@ -443,11 +443,11 @@ static struct command command_sym = { " Set or overwrite the value of a symbol.\n" "sym del \n" " Delete a symbol from the symbol table.\n" - "sym load \n" + "sym import \n" " Load symbols from the given file.\n" - "sym add \n" + "sym import+ \n" " Load additional symbols from the given file.\n" - "sym savemap \n" + "sym export \n" " Save the current symbols to a BSD-style symbol file.\n" "sym find \n" " Search for symbols by regular expression.\n"