Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3266412 in mainline


Ignore:
Timestamp:
2016-03-08T15:32:15Z (5 years ago)
Author:
Aurelio Colosimo <aurelio@…>
Branches:
master
Children:
dc0e41c
Parents:
e8d48d2
Message:

kconsole tab completion: implement args completion for 'describe' and 'symaddr'

Location:
kernel/generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/console/kconsole.h

    re8d48d2 r3266412  
    105105
    106106extern bool cmd_register(cmd_info_t *cmd);
     107extern const char *cmdtab_enum(const char *name, const char **h, void **ctx);
    107108
    108109#endif
  • kernel/generic/src/console/cmd.c

    re8d48d2 r3266412  
    247247        .func = cmd_desc,
    248248        .argc = 1,
    249         .argv = &desc_argv
     249        .argv = &desc_argv,
     250        .hints_enum = cmdtab_enum
    250251};
    251252
     
    263264        .func = cmd_symaddr,
    264265        .argc = 1,
    265         .argv = &symaddr_argv
     266        .argv = &symaddr_argv,
     267        .hints_enum = symtab_hints_enum,
    266268};
    267269
  • kernel/generic/src/console/kconsole.c

    re8d48d2 r3266412  
    165165
    166166/** Try to find a command beginning with prefix */
    167 NO_TRACE static const char *cmdtab_enum(const char *name,
    168     const char **h, void **ctx)
     167const char *cmdtab_enum(const char *name, const char **h, void **ctx)
    169168{
    170169        link_t **startpos = (link_t**)ctx;
Note: See TracChangeset for help on using the changeset viewer.