diff options
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 13c8949ac79..8a252bf05e7 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -9335,8 +9335,7 @@ parse_breakpoint_sals (char **address, { /* If no arg given, or if first arg is 'if ', use the default breakpoint. */ - if ((*address) == NULL - || (startswith ((*address), "if") && isspace ((*address)[2]))) + if ((*address) == NULL || linespec_lexer_lex_keyword (*address)) { /* The last displayed codepoint, if it's valid, is our default breakpoint address. */ |