Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5ce09bc

Browse files
committed
Disable gdb pretty printer global section on wasm targets
The wasm targets don't support gdb anyway so there's no need for this section there.
1 parent fdc0011 commit 5ce09bc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/librustc_target/spec/wasm32_base.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ pub fn options() -> TargetOptions {
140140
has_elf_tls: true,
141141
tls_model: "local-exec".to_string(),
142142

143+
// gdb scripts don't work on wasm blobs
144+
emit_debug_gdb_scripts: false,
145+
143146
.. Default::default()
144147
}
145148
}

src/test/codegen/gdb_debug_script_load.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// ignore-tidy-linelength
22
// ignore-windows
33
// ignore-macos
4+
// ignore-wasm
5+
// ignore-emscripten
46

57
// compile-flags: -g -C no-prepopulate-passes
68

0 commit comments

Comments
 (0)