diff options
author | Manish Goregaokar <manish@mozilla.com> | 2016-06-27 21:16:59 +0530 |
---|---|---|
committer | Manish Goregaokar <manish@mozilla.com> | 2016-06-27 22:19:42 +0530 |
commit | 921d8f549f9e35d3f83c7b1a381146a7dc1246f4 (patch) | |
tree | 362a359483a10ddf87a0d47243c4e761e8f15fac /opcodes/m32r-ibld.c | |
parent | 45a54ee57764e34fe2fe8b7655fabef38936a696 (diff) | |
download | gdb-921d8f549f9e35d3f83c7b1a381146a7dc1246f4.zip gdb-921d8f549f9e35d3f83c7b1a381146a7dc1246f4.tar.gz gdb-921d8f549f9e35d3f83c7b1a381146a7dc1246f4.tar.bz2 |
Print void types correctly in Rust
Rust prefers to not specify the return type of a function when it is unit
(`()`). The type is also referred to as "void" in debuginfo but not in actual
usage, so we should never be printing "void" when the language is Rust.
2016-06-27 Manish Goregaokar <manish@mozilla.com>
gdb/ChangeLog:
* rust-lang.c (rust_print_type): Print unit types as "()"
* rust-lang.c (rust_print_type): Omit return type for functions
returning unit
gdb/testsuite/ChangeLog:
* gdb.rust/simple.rs: Add test for returning unit in a function
* gdb.rust/simple.exp: Add expectation for functions returning unit
Diffstat (limited to 'opcodes/m32r-ibld.c')
0 files changed, 0 insertions, 0 deletions