Skip to content

Commit c928e12

Browse files
committed
Add QNX NTO platform support
1 parent fd0aed5 commit c928e12

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/backtrace/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ cfg_if::cfg_if! {
176176
unix,
177177
not(target_os = "emscripten"),
178178
not(all(target_os = "ios", target_arch = "arm")),
179-
not(all(target_os = "nto", target_env = "nto70")),
180179
),
181180
all(
182181
target_env = "sgx",

src/symbolize/gimli.rs

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ cfg_if::cfg_if! {
226226
target_os = "hurd",
227227
target_os = "openbsd",
228228
target_os = "netbsd",
229+
target_os = "nto",
229230
all(target_os = "android", feature = "dl_iterate_phdr"),
230231
),
231232
not(target_env = "uclibc"),

src/symbolize/gimli/libs_dl_iterate_phdr.rs

+4
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ fn infer_current_exe(base_addr: usize) -> OsString {
3737

3838
// `info` should be a valid pointers.
3939
// `vec` should be a valid pointer to a `std::Vec`.
40+
// On `QNX-NTO` platform, info is a const pointer
4041
unsafe extern "C" fn callback(
42+
#[cfg(not(target_os = "nto"))]
4143
info: *mut libc::dl_phdr_info,
44+
#[cfg(target_os = "nto")]
45+
info: *const libc::dl_phdr_info,
4246
_size: libc::size_t,
4347
vec: *mut libc::c_void,
4448
) -> libc::c_int {

0 commit comments

Comments
 (0)