- the 'help' command now takes an optional argument to display help only on a certain command (thanks to Andrew Dyer for this enhancement)
- OpenOCD now includes the ability to diassemble instructions on its own (only ARM for now, Thumb might follow). The command is "armv4_5 disassemble <address> <count> ['thumb']" (thumb is currently unsupported). I've compared the produced disassembly against GDB/GNU Objdump output, and it seems to be correct, but there may still be some bugs left. git-svn-id: svn://svn.berlios.de/openocd/trunk@68 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -443,6 +443,15 @@ int command_print_help(command_context_t* context, char* name, char** args, int
|
||||
|
||||
for (c = context->commands; c; c = c->next)
|
||||
{
|
||||
if (argc == 1)
|
||||
{
|
||||
if (strncasecmp(c->name, args[0], c->unique_len))
|
||||
continue;
|
||||
|
||||
if (strncasecmp(c->name, args[0], strlen(args[0])))
|
||||
continue;
|
||||
}
|
||||
|
||||
command_print_help_line(context, c, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user