mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 17:53:31 +08:00
Add more command to msh for module.
This commit is contained in:
parent
09bb7393b2
commit
444b928d22
@ -516,8 +516,8 @@ int list_module(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
FINSH_FUNCTION_EXPORT(list_module, list module in system)
|
||||
FINSH_FUNCTION_EXPORT(list_module, list module in system);
|
||||
MSH_CMD_EXPORT(list_module, list module in system);
|
||||
|
||||
int list_mod_detail(const char *name)
|
||||
{
|
||||
@ -605,6 +605,8 @@ int list_mod_detail(const char *name)
|
||||
if (!rt_list_isempty(tlist)) _list_timer(tlist);
|
||||
}
|
||||
|
||||
if (module->nsym > 0)
|
||||
{
|
||||
rt_kprintf("symbol address \n");
|
||||
rt_kprintf("-------- ----------\n");
|
||||
|
||||
@ -615,10 +617,12 @@ int list_mod_detail(const char *name)
|
||||
module->symtab[i].name, module->symtab[i].addr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
FINSH_FUNCTION_EXPORT(list_mod_detail, list module objects in system)
|
||||
MSH_CMD_EXPORT(list_mod_detail, list module objects in system)
|
||||
#endif
|
||||
|
||||
long list(void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user