From c2d10cf87544dad00930f5a370d8419b3431474f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 23 Aug 2015 10:25:25 -0600 Subject: [PATCH] boardctl(): Add support for the BOARDIOC_SYMTAB command --- configs/boardctl.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/configs/boardctl.c b/configs/boardctl.c index 9208d5e73a..0f3de6d4be 100644 --- a/configs/boardctl.c +++ b/configs/boardctl.c @@ -45,6 +45,7 @@ #include #include +#include #ifdef CONFIG_LIB_BOARDCTL @@ -129,6 +130,26 @@ int boardctl(unsigned int cmd, uintptr_t arg) break; #endif +#ifdef CONFIG_LIBC_SYMTAB + /* CMD: BOARDIOC_SYMTAB + * DESCRIPTION: Select a symbol table + * ARG: A pointer to an instance of struct symtab_desc_s + * (See include/nuttx/binfmt/canned_symtab.h). + * CONFIGURATION: CONFIG_LIBC_SYMTAB + * DEPENDENCIES: None + */ + + case BOARDIOC_SYMTAB: + { + FAR const struct symtab_desc_s *symdesc = + (FAR const struct symtab_desc_s *)arg; + + DEBUGASSERT(symdesc != NULL); + ret = canned_symtab_select(symdesc); + } + break; +#endif + #ifdef CONFIG_BOARDCTL_TSCTEST /* CMD: BOARDIOC_TSCTEST_SETUP * DESCRIPTION: Touchscreen controller test configuration