* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
***************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-/* see Embedder-HOWTO.txt in Jim Tcl project hosted on BerliOS*/
+/* see Embedded-HOWTO.txt in Jim Tcl project hosted on BerliOS*/
#define JIM_EMBEDDED
/* @todo the inclusion of target.h here is a layering violation */
free((void *)words[i]);
free(words);
}
+
static const char **script_command_args_alloc(
unsigned argc, Jim_Obj * const *argv, unsigned *nwords)
{
}
return NULL;
}
+
struct command *command_find_in_context(struct command_context *cmd_ctx,
const char *name)
{
}
return name;
}
+
char *command_name(struct command *c, char delim)
{
return __command_name(c, delim, 0);
/* disable polling during capture. This avoids capturing output
* from polling.
*
- * This is necessary in order to avoid accidentially getting a non-empty
+ * This is necessary in order to avoid accidentally getting a non-empty
* string for tcl fn's.
*/
bool save_poll = jtag_poll_get_enabled();
n = n2;
}
}
+
static COMMAND_HELPER(command_help_show, struct command *c, unsigned n,
bool show_help, const char *match)
{
return CALL_COMMAND_HANDLER(command_help_show_list,
c->children, n, show_help, match);
}
+
COMMAND_HANDLER(handle_help_command)
{
bool full = strcmp(CMD_NAME, "help") == 0;
if (NULL != match) {
char *prev = match;
- match = alloc_printf("%s %s", match,
- CMD_ARGV[i]);
+ match = alloc_printf("%s %s", match, CMD_ARGV[i]);
free(prev);
if (NULL == match) {
- LOG_ERROR("unable to build "
- "search string");
+ LOG_ERROR("unable to build search string");
return -ENOMEM;
}
} else {
match = alloc_printf("%s", CMD_ARGV[i]);
if (NULL == match) {
- LOG_ERROR("unable to build "
- "search string");
+ LOG_ERROR("unable to build search string");
return -ENOMEM;
}
}
HostOs = "ecos";
#elif defined(__FreeBSD__)
HostOs = "freebsd";
+#elif defined(__NetBSD__)
+ HostOs = "netbsd";
#elif defined(__OpenBSD__)
HostOs = "openbsd";
#else