Skip to content

Commit

Permalink
Crossplatformify singal info.
Browse files Browse the repository at this point in the history
  • Loading branch information
kstenerud committed Jan 5, 2017
1 parent 6ab499e commit 1809109
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Android/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ add_library( # Sets the name of the library.
${CMAKE_SOURCE_DIR}/../../Source/KSCrash/Recording/Tools/KSFileUtils.c
${CMAKE_SOURCE_DIR}/../../Source/KSCrash/Recording/Tools/KSJSONCodec.c
${CMAKE_SOURCE_DIR}/../../Source/KSCrash/Recording/Tools/KSLogger.c
# ${CMAKE_SOURCE_DIR}/../../Source/KSCrash/Recording/Tools/KSReturnCodes.c
# ${CMAKE_SOURCE_DIR}/../../Source/KSCrash/Recording/Tools/KSSignalInfo.c
${CMAKE_SOURCE_DIR}/../../Source/KSCrash/Recording/Tools/KSSignalInfo.c
${CMAKE_SOURCE_DIR}/../../Source/KSCrash/Recording/Tools/KSStackCursor.c
${CMAKE_SOURCE_DIR}/../../Source/KSCrash/Recording/Tools/KSStackCursor_Backtrace.c
${CMAKE_SOURCE_DIR}/../../Source/KSCrash/Recording/Tools/KSStackCursor_MachineContext.c
Expand Down
8 changes: 8 additions & 0 deletions Source/KSCrash/Recording/Tools/KSSignalInfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ typedef struct

static const KSSignalCodeInfo g_sigIllCodes[] =
{
#ifdef ILL_NOOP
ENUM_NAME_MAPPING(ILL_NOOP),
#endif
ENUM_NAME_MAPPING(ILL_ILLOPC),
ENUM_NAME_MAPPING(ILL_ILLTRP),
ENUM_NAME_MAPPING(ILL_PRVOPC),
Expand All @@ -69,7 +71,9 @@ static const KSSignalCodeInfo g_sigTrapCodes[] =

static const KSSignalCodeInfo g_sigFPECodes[] =
{
#ifdef FPE_NOOP
ENUM_NAME_MAPPING(FPE_NOOP),
#endif
ENUM_NAME_MAPPING(FPE_FLTDIV),
ENUM_NAME_MAPPING(FPE_FLTOVF),
ENUM_NAME_MAPPING(FPE_FLTUND),
Expand All @@ -82,15 +86,19 @@ static const KSSignalCodeInfo g_sigFPECodes[] =

static const KSSignalCodeInfo g_sigBusCodes[] =
{
#ifdef BUS_NOOP
ENUM_NAME_MAPPING(BUS_NOOP),
#endif
ENUM_NAME_MAPPING(BUS_ADRALN),
ENUM_NAME_MAPPING(BUS_ADRERR),
ENUM_NAME_MAPPING(BUS_OBJERR),
};

static const KSSignalCodeInfo g_sigSegVCodes[] =
{
#ifdef SEGV_NOOP
ENUM_NAME_MAPPING(SEGV_NOOP),
#endif
ENUM_NAME_MAPPING(SEGV_MAPERR),
ENUM_NAME_MAPPING(SEGV_ACCERR),
};
Expand Down

0 comments on commit 1809109

Please sign in to comment.