Skip to content

Commit cd8ad69

Browse files
committed
Always include pretty printers for lldb
1 parent dbf52ba commit cd8ad69

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/tools/compiletest/src/runtest/debuginfo.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -401,15 +401,13 @@ impl TestCx<'_> {
401401
// Switch LLDB into "Rust mode".
402402
let rust_pp_module_abs_path = self.config.src_root.join("src/etc");
403403

404-
if self.props.debug_pretty_printers {
405-
script_str.push_str(&format!(
406-
"command script import {}/lldb_lookup.py\n",
407-
rust_pp_module_abs_path
408-
));
409-
File::open(rust_pp_module_abs_path.join("lldb_commands"))
410-
.and_then(|mut file| file.read_to_string(&mut script_str))
411-
.expect("Failed to read lldb_commands");
412-
}
404+
script_str.push_str(&format!(
405+
"command script import {}/lldb_lookup.py\n",
406+
rust_pp_module_abs_path
407+
));
408+
File::open(rust_pp_module_abs_path.join("lldb_commands"))
409+
.and_then(|mut file| file.read_to_string(&mut script_str))
410+
.expect("Failed to read lldb_commands");
413411

414412
// Set breakpoints on every line that contains the string "#break"
415413
let source_file_name = self.testpaths.file.file_name().unwrap();

0 commit comments

Comments
 (0)