diff options
Diffstat (limited to 'gdb/rust-parse.c')
-rw-r--r-- | gdb/rust-parse.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/rust-parse.c b/gdb/rust-parse.c index 490adb3..b428b97 100644 --- a/gdb/rust-parse.c +++ b/gdb/rust-parse.c @@ -1,6 +1,6 @@ /* Rust expression parsing for GDB, the GNU debugger. - Copyright (C) 2016-2024 Free Software Foundation, Inc. + Copyright (C) 2016-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -1773,7 +1773,7 @@ rust_parser::parse_tuple_type () std::string type_name = type_to_string (types[i]); if (i > 0) - obstack_1grow (&obstack, ','); + obstack_grow_str (&obstack, ", "); obstack_grow_str (&obstack, type_name.c_str ()); } @@ -2421,9 +2421,7 @@ rust_lex_tests (void) -void _initialize_rust_exp (); -void -_initialize_rust_exp () +INIT_GDB_FILE (rust_exp) { int code = regcomp (&number_regex, number_regex_text, REG_EXTENDED); /* If the regular expression was incorrect, it was a programming |