fad1eaaa42
Current autocomplete filters-out some command reported by "info commands". One of the filter rule concerns the command's private data. Every command registered by OpenOCD has its 'struct command' as private data. By ignoring commands without private data, we loose several TCL commands registered by jimtcl, e.g. 'foreach', 'llength'. By assuming that every command with non-NULL private data has 'struct command' as private data, we risk at best to access inconsistent data, at worst to trigger a segmentation fault. Export the already available functions: - to check if a command has been registered by OpenOCD and - to get the private data. While there, rename jimcmd_is_ocd_command() as jimcmd_is_oocd_command(). Don't filter-out jimtcl commands with no private data. Check the private data only on OpenOCD commands. Change-Id: Ib5bf8d2bc5c12440c0cfae438f637c38724a79b7 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6282 Tested-by: jenkins Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com> |
||
---|---|---|
.. | ||
gdb_server.c | ||
gdb_server.h | ||
ipdbg.c | ||
ipdbg.h | ||
Makefile.am | ||
rtt_server.c | ||
rtt_server.h | ||
server_stubs.c | ||
server.c | ||
server.h | ||
startup.tcl | ||
tcl_server.c | ||
tcl_server.h | ||
telnet_server.c | ||
telnet_server.h |