Subversion Repositories HelenOS-historic

Rev

Rev 608 | Rev 625 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 608 Rev 609
Line 56... Line 56...
56
    .description = "List of supported commands.",
56
    .description = "List of supported commands.",
57
    .func = cmd_help,
57
    .func = cmd_help,
58
    .argc = 0
58
    .argc = 0
59
};
59
};
60
 
60
 
-
 
61
static cmd_info_t exit_info = {
-
 
62
    .name = "exit",
-
 
63
    .description ="Exit kconsole",
-
 
64
    .argc = 0
-
 
65
};
-
 
66
 
61
/** Data and methods for 'description' command. */
67
/** Data and methods for 'description' command. */
62
static int cmd_desc(cmd_arg_t *argv);
68
static int cmd_desc(cmd_arg_t *argv);
63
static void desc_help(void);
69
static void desc_help(void);
64
static char desc_buf[MAX_CMDLINE+1];
70
static char desc_buf[MAX_CMDLINE+1];
65
static cmd_arg_t desc_argv = {
71
static cmd_arg_t desc_argv = {
Line 254... Line 260...
254
        panic("could not register command %s\n", help_info.name);
260
        panic("could not register command %s\n", help_info.name);
255
 
261
 
256
    cmd_initialize(&desc_info);
262
    cmd_initialize(&desc_info);
257
    if (!cmd_register(&desc_info))
263
    if (!cmd_register(&desc_info))
258
        panic("could not register command %s\n", desc_info.name);
264
        panic("could not register command %s\n", desc_info.name);
-
 
265
 
-
 
266
    cmd_initialize(&exit_info);
-
 
267
    if (!cmd_register(&exit_info))
-
 
268
        panic("could not register command %s\n", exit_info.name);
259
   
269
   
260
    cmd_initialize(&symaddr_info);
270
    cmd_initialize(&symaddr_info);
261
    if (!cmd_register(&symaddr_info))
271
    if (!cmd_register(&symaddr_info))
262
        panic("could not register command %s\n", symaddr_info.name);
272
        panic("could not register command %s\n", symaddr_info.name);
263
 
273