diff options
author | Tom Tromey <tromey@adacore.com> | 2023-04-28 08:08:49 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-23 13:57:54 -0600 |
commit | b8c03634d6537ee7ad068ab840b6e78483aaca80 (patch) | |
tree | af65690289d5f6db975f3318064a830d3f95e8ca /gdb/breakpoint.c | |
parent | 562db568441ed0f7e258b843916c34572170cc6d (diff) | |
download | gdb-b8c03634d6537ee7ad068ab840b6e78483aaca80.zip gdb-b8c03634d6537ee7ad068ab840b6e78483aaca80.tar.gz gdb-b8c03634d6537ee7ad068ab840b6e78483aaca80.tar.bz2 |
Introduce and use parser flags
This patch adds a new parser_flags type and changes the parser APIs to
use it rather than a collection of 'int' and 'bool'. More flags will
be added in subsquent patches.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 552b789..36e53c0 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2519,7 +2519,8 @@ parse_cmd_to_aexpr (CORE_ADDR scope, char *cmd) const char *cmd1; cmd1 = cmdrest; - expression_up expr = parse_exp_1 (&cmd1, scope, block_for_pc (scope), 1); + expression_up expr = parse_exp_1 (&cmd1, scope, block_for_pc (scope), + PARSER_COMMA_TERMINATES); argvec.push_back (expr.release ()); cmdrest = cmd1; if (*cmdrest == ',') |