diff options
author | Matt Fischer <matt.fischer@garmin.com> | 2013-04-15 09:53:29 -0500 |
---|---|---|
committer | Matt Fischer <matt.fischer@garmin.com> | 2013-05-13 10:50:17 -0500 |
commit | eac65dc9b8cc18fa4c65c0485878a11c470357b6 (patch) | |
tree | 9e9df0cd13876251b7240c2209fceb73631258d8 /src/arm | |
parent | ac6c0a6535975f1dc2da6e4e2766614baac2a14a (diff) | |
download | libunwind-eac65dc9b8cc18fa4c65c0485878a11c470357b6.tar.gz |
Add basic support for the QNX operating system
This change adds some special cases to allow libunwind to compile
for QNX.
* QNX's copy of <elf.h> and <link.h> reside in sys/ instead. To deal
with this, an AC_CHECK_HEADERS() was added to check for the files
in both locations.
* Similarly, QNX does not have <endian.h>. In cases where the file is
not found, logic was added to refer to QNX-specific macros to determine
endianness.
* The QCC compiler, which is a wrapper around GCC, cannot handle some
standard GCC options. Therefore, logic was added to check for QCC,
and when it is found, to suppress the use of -lgcc, and to express the
option -nostartfiles as -Wc,-nostartfiles instead, which is correctly
passed on to the underlying GCC.
* Finally, the support file os-qnx.c was added, patterned after the existing
os-*.c files. Only local image lookup is currently supported (see the
comments for more information), but this is sufficient for QNX, since
ptrace is not supported there anyway, and that is the only case where the
function is required to do remote image lookup.
Change-Id: Ie7934f94a7317bdde59335f2acd4c3a97c0384c1
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/Gis_signal_frame.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arm/Gis_signal_frame.c b/src/arm/Gis_signal_frame.c index e2e8cd67..e8efe7f4 100644 --- a/src/arm/Gis_signal_frame.c +++ b/src/arm/Gis_signal_frame.c @@ -77,6 +77,9 @@ unw_is_signal_frame (unw_cursor_t *cursor) return 2; return 0; +#elif defined(__QNX__) + /* Not supported yet */ + return 0; #else printf ("%s: implement me\n", __FUNCTION__); return -UNW_ENOINFO; |