diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2015-05-09 16:48:36 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2015-05-30 20:06:08 +0200 |
| commit | d136714e04fa244fb45a8459cb717dc682208697 (patch) | |
| tree | 53b52f7fcb678fcb4ef77b82ece9408c2e5fa9c1 /src/test/debuginfo | |
| parent | 474c6e0ae47578b3e608c893e18bc83798b565aa (diff) | |
| download | rust-d136714e04fa244fb45a8459cb717dc682208697.tar.gz rust-d136714e04fa244fb45a8459cb717dc682208697.zip | |
debuginfo: Create common debugger pretty printer module.
GDB and LLDB pretty printers have some common functionality and also access some common information, such as the layout of standard library types. So far, this information has been duplicated in the two pretty printing python modules. This commit introduces a common module used by both debuggers.
Diffstat (limited to 'src/test/debuginfo')
| -rw-r--r-- | src/test/debuginfo/option-like-enum.rs | 2 | ||||
| -rw-r--r-- | src/test/debuginfo/pretty-std.rs (renamed from src/test/debuginfo/gdb-pretty-std.rs) | 28 |
2 files changed, 28 insertions, 2 deletions
diff --git a/src/test/debuginfo/option-like-enum.rs b/src/test/debuginfo/option-like-enum.rs index 65a83088d80..fba21d9a553 100644 --- a/src/test/debuginfo/option-like-enum.rs +++ b/src/test/debuginfo/option-like-enum.rs @@ -67,7 +67,7 @@ // lldb-check:[...]$5 = Void // lldb-command:print some_str -// lldb-check:[...]$6 = Some(&str { data_ptr: [...], length: 3 }) +// lldb-check:[...]$6 = Some("abc") // lldb-command:print none_str // lldb-check:[...]$7 = None diff --git a/src/test/debuginfo/gdb-pretty-std.rs b/src/test/debuginfo/pretty-std.rs index c42f7f19839..576621737e6 100644 --- a/src/test/debuginfo/gdb-pretty-std.rs +++ b/src/test/debuginfo/pretty-std.rs @@ -10,10 +10,12 @@ // ignore-windows failing on win32 bot // ignore-freebsd: gdb package too new -// ignore-lldb // ignore-android: FIXME(#10381) // compile-flags:-g // min-gdb-version 7.7 +// min-lldb-version: 310 + +// === GDB TESTS =================================================================================== // gdb-command: run @@ -35,6 +37,30 @@ // gdb-command: print none // gdb-check:$6 = None + +// === LLDB TESTS ================================================================================== + +// lldb-command: run + +// lldb-command: print slice +// lldb-check:[...]$0 = &[0, 1, 2, 3] + +// lldb-command: print vec +// lldb-check:[...]$1 = vec![4, 5, 6, 7] + +// lldb-command: print str_slice +// lldb-check:[...]$2 = "IAMA string slice!" + +// lldb-command: print string +// lldb-check:[...]$3 = "IAMA string!" + +// lldb-command: print some +// lldb-check:[...]$4 = Some(8) + +// lldb-command: print none +// lldb-check:[...]$5 = None + + #![allow(unused_variables)] fn main() { |
