Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated debugging metadata for ty_nil and ty_bot
ty_nil will now report as "()" in gdb ty_bot will now report as "!" in gdb Added test to confirm basic types debugging metadata. This fixes #9226
- Loading branch information
Showing
2 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT | ||
// file at the top-level directory of this distribution and at | ||
// http://rust-lang.org/COPYRIGHT. | ||
// | ||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
// compile-flags:-Z extra-debug-info | ||
// debugger:rbreak zzz | ||
// debugger:run | ||
// debugger:finish | ||
// debugger:whatis unit | ||
// check:type = () | ||
// debugger:whatis b | ||
// check:type = bool | ||
// debugger:whatis i | ||
// check:type = int | ||
// debugger:whatis c | ||
// check:type = char | ||
// debugger:whatis i8 | ||
// check:type = i8 | ||
// debugger:whatis i16 | ||
// check:type = i16 | ||
// debugger:whatis i32 | ||
// check:type = i32 | ||
// debugger:whatis i64 | ||
// check:type = i64 | ||
// debugger:whatis u | ||
// check:type = uint | ||
// debugger:whatis u8 | ||
// check:type = u8 | ||
// debugger:whatis u16 | ||
// check:type = u16 | ||
// debugger:whatis u32 | ||
// check:type = u32 | ||
// debugger:whatis u64 | ||
// check:type = u64 | ||
// debugger:whatis f32 | ||
// check:type = f32 | ||
// debugger:whatis f64 | ||
// check:type = f64 | ||
// debugger:info functions _yyy | ||
// check:[...] | ||
// check:! basic-types-metadata::_yyy()(); | ||
// debugger:detach | ||
// debugger:quit | ||
|
||
#[allow(unused_variable)]; | ||
|
||
fn main() { | ||
let unit: () = (); | ||
let b: bool = false; | ||
let i: int = -1; | ||
let c: char = 'a'; | ||
let i8: i8 = 68; | ||
let i16: i16 = -16; | ||
let i32: i32 = -32; | ||
let i64: i64 = -64; | ||
let u: uint = 1; | ||
let u8: u8 = 100; | ||
let u16: u16 = 16; | ||
let u32: u32 = 32; | ||
let u64: u64 = 64; | ||
let f32: f32 = 2.5; | ||
let f64: f64 = 3.5; | ||
_zzz(); | ||
} | ||
|
||
fn _zzz() {()} | ||
fn _yyy() -> ! {fail!()} |
ca2f302
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from jdm
at https://github.com/mletterle/rust/commit/ca2f3028e91a0ebc9787384596700bb40e2114f4
ca2f302
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging mletterle/rust/issue-9226 = ca2f302 into auto
ca2f302
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mletterle/rust/issue-9226 = ca2f302 merged ok, testing candidate = a248e34
ca2f302
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2300
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/146
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/146
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2304
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1410
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1409
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2318
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1410
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1410
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2319
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1410
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1410
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/1486
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2304
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1408
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1410
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/2082
ca2f302
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = a248e34