Skip to content

Commit 5c36819

Browse files
gh-trflba-eb
authored andcommitted
Add support for QNX/Neutrino
1 parent 8ad84ca commit 5c36819

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/symbolize/gimli.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ cfg_if::cfg_if! {
4141
target_os = "openbsd",
4242
target_os = "solaris",
4343
target_os = "illumos",
44+
target_os = "nto",
4445
))] {
4546
#[path = "gimli/mmap_unix.rs"]
4647
mod mmap;
@@ -179,6 +180,7 @@ cfg_if::cfg_if! {
179180
target_os = "freebsd",
180181
target_os = "openbsd",
181182
all(target_os = "android", feature = "dl_iterate_phdr"),
183+
target_os = "nto",
182184
),
183185
not(target_env = "uclibc"),
184186
))] {

src/symbolize/gimli/libs_dl_iterate_phdr.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ fn infer_current_exe(base_addr: usize) -> OsString {
3434
// `info` should be a valid pointers.
3535
// `vec` should be a valid pointer to a `std::Vec`.
3636
unsafe extern "C" fn callback(
37+
#[cfg(not(target_os = "nto"))]
3738
info: *mut libc::dl_phdr_info,
39+
#[cfg(target_os = "nto")]
40+
info: *const libc::dl_phdr_info,
3841
_size: libc::size_t,
3942
vec: *mut libc::c_void,
4043
) -> libc::c_int {

0 commit comments

Comments
 (0)