-
- Downloads
Add support for the Rust language
This patch adds support for the Rust language. 2016-05-17 Tom Tromey <tom@tromey.com> Manish Goregaokar <manishsmail@gmail.com> * symtab.c (symbol_find_demangled_name): Handle Rust. * symfile.c (init_filename_language_table): Treat ".rs" as Rust. * std-operator.def (STRUCTOP_ANONYMOUS, OP_RUST_ARRAY): New constants. * rust-lang.h: New file. * rust-lang.c: New file. * rust-exp.y: New file. * dwarf2read.c (read_file_scope): Add Rust producer sniffing. (dwarf2_compute_name, read_func_scope, read_structure_type) (read_base_type, read_subrange_type, set_cu_language) (new_symbol_full, determine_prefix): Handle Rust. * defs.h (enum language) <language_rust>: New constant. * Makefile.in (SFILES): Add rust-exp.y, rust-lang.c. (COMMON_OBS): Add rust-exp.o, rust-lang.o. 2016-05-17 Tom Tromey <tom@tromey.com> * gdb.base/default.exp (set language): Add rust.
Showing
- gdb/ChangeLog 18 additions, 0 deletionsgdb/ChangeLog
- gdb/Makefile.in 2 additions, 0 deletionsgdb/Makefile.in
- gdb/defs.h 1 addition, 0 deletionsgdb/defs.h
- gdb/dwarf2read.c 17 additions, 6 deletionsgdb/dwarf2read.c
- gdb/rust-exp.y 2752 additions, 0 deletionsgdb/rust-exp.y
- gdb/rust-lang.c 2050 additions, 0 deletionsgdb/rust-lang.c
- gdb/rust-lang.h 50 additions, 0 deletionsgdb/rust-lang.h
- gdb/std-operator.def 7 additions, 0 deletionsgdb/std-operator.def
- gdb/symfile.c 1 addition, 0 deletionsgdb/symfile.c
- gdb/symtab.c 1 addition, 0 deletionsgdb/symtab.c
- gdb/testsuite/ChangeLog 4 additions, 0 deletionsgdb/testsuite/ChangeLog
- gdb/testsuite/gdb.base/default.exp 1 addition, 1 deletiongdb/testsuite/gdb.base/default.exp
Loading
Please register or sign in to comment