We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 023b445 + e5e8cf8 commit 9f18e16Copy full SHA for 9f18e16
src/symbolize/libbacktrace.rs
@@ -400,8 +400,22 @@ unsafe fn init_state() -> *mut bt::backtrace_state {
400
Ok(&buf[..(len + 1) as usize])
401
}
402
403
-
404
+ } else if #[cfg(target_os = "vxworks")] {
+ unsafe fn load_filename() -> *const libc::c_char {
405
+ use libc;
406
+ use core::mem;
407
+
408
+ const N: usize = libc::VX_RTP_NAME_LENGTH + 1;
409
+ static mut BUF: [libc::c_char; N] = [0; N];
410
411
+ let mut rtp_desc : libc::RTP_DESC = mem::zeroed();
412
+ if (libc::rtpInfoGet(0, &mut rtp_desc as *mut libc::RTP_DESC) == 0) {
413
+ BUF.copy_from_slice(&rtp_desc.pathName);
414
+ BUF.as_ptr()
415
+ } else {
416
+ ptr::null()
417
+ }
418
419
} else {
420
unsafe fn load_filename() -> *const libc::c_char {
421
ptr::null()
0 commit comments