Skip to content

Commit 4f14111

Browse files
committed
Set solib-search-path to ensure android remote debugger works correctly.
1 parent 489f604 commit 4f14111

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compiletest/runtest.rs

+3
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
391391
script_str.push_str("set charset UTF-8\n");
392392
script_str.push_str(&format!("file {}\n", exe_file.as_str().unwrap()));
393393
script_str.push_str("target remote :5039\n");
394+
script_str.push_str(&format!("set solib-search-path \
395+
./{}/stage2/lib/rustlib/{}/lib/\n",
396+
config.host, config.target));
394397
for line in breakpoint_lines.iter() {
395398
script_str.push_str(&format!("break {:?}:{}\n",
396399
testfile.filename_display(),

0 commit comments

Comments
 (0)