* Introduced debugger command flag B_KDEBUG_DONT_PARSE_ARGUMENTS.
For commands with this flag set, the parser won't parse the arguments provided (it will only check for matching parentheses and brackets), but will pass the unparsed argument list string to the command instead. * Set the new flag for the "expr" command, so one doesn't have to quote the expression to evaluate anymore (or put it in parentheses). * Fixed tokenizing of quoted and unquoted strings in expression mode. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23697 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -943,7 +943,8 @@ debug_init_post_vm(kernel_args *args)
|
||||
add_debugger_command_etc("expr", &cmd_expr,
|
||||
"Evaluates the given expression and prints the result",
|
||||
"<expression>\n"
|
||||
"Evaluates the given expression and prints the result.\n", 0);
|
||||
"Evaluates the given expression and prints the result.\n",
|
||||
B_KDEBUG_DONT_PARSE_ARGUMENTS);
|
||||
|
||||
debug_variables_init();
|
||||
frame_buffer_console_init(args);
|
||||
|
||||
Reference in New Issue
Block a user