Change-Id: Ia220cc73a1b1e60f165aedd58cdfe9360c8de63b
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
ADD_SUBDIRECTORY(src/crash-manager)
-
-IF("${SYS_ASSERT}" STREQUAL "ON")
- ADD_SUBDIRECTORY(src/sys-assert)
-ENDIF("${SYS_ASSERT}" STREQUAL "ON")
-
ADD_SUBDIRECTORY(src/crash-stack)
ADD_SUBDIRECTORY(src/dump_systemstate)
#define CRASH_PATH "@CRASH_PATH@"
#define CRASH_ROOT_PATH "@CRASH_ROOT_PATH@"
#define CRASH_TEMP "@CRASH_TEMP@"
-#define SYS_ASSERT "@SYS_ASSERT@"
#define CRASH_STACK_BIN_PATH "@CRASH_STACK_BIN_PATH@"
#define CRASH_POPUP_BIN_PATH "@CRASH_POPUP_BIN_PATH@"
#define CRASH_NOTIFY_BIN_PATH "@CRASH_NOTIFY_BIN_PATH@"
/* Paths and variables */
struct crash_info {
+ bool livedump;
+ bool kill;
+ bool print_result_path;
pid_t pid_info;
pid_t tid_info;
int uid_info;
int gid_info;
int sig_info;
+ int prstatus_fd;
char *cmd_line;
char *cmd_path;
- time_t time_info;
char *temp_dir;
char *name;
char *result_path;
char *info_path;
char *core_path;
char *log_path;
+ char *output_path;
char appid[APPID_MAX];
char pkgid[PKGNAME_MAX];
- char *output_path;
- bool livedump;
- bool kill;
- bool print_result_path;
-#ifdef SYS_ASSERT
- char *sysassert_cs_path;
- bool have_sysassert_report;
-#endif
- int prstatus_fd;
+ time_t time_info;
};
bool crash_manager_direct(struct crash_info *cinfo);