From 20825945e91651cccb080ee94286a33cd82d3ee4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 18 Apr 2011 22:41:41 +0200 Subject: abrt-hook-ccpp: add saving of environ, disable saving of smaps. closes #91 Signed-off-by: Denys Vlasenko --- src/include/abrt_crash_data.h | 1 + src/include/abrtlib.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/include') diff --git a/src/include/abrt_crash_data.h b/src/include/abrt_crash_data.h index 52ae50ca..237a3d01 100644 --- a/src/include/abrt_crash_data.h +++ b/src/include/abrt_crash_data.h @@ -38,6 +38,7 @@ #define FILENAME_BACKTRACE "backtrace" #define FILENAME_MAPS "maps" #define FILENAME_SMAPS "smaps" +#define FILENAME_ENVIRON "environ" #define FILENAME_DUPHASH "global_uuid" /* name is compat, to be renamed to "duphash" */ // Name of the function where the application crashed. // Optional. diff --git a/src/include/abrtlib.h b/src/include/abrtlib.h index e14b742f..e0014593 100644 --- a/src/include/abrtlib.h +++ b/src/include/abrtlib.h @@ -224,6 +224,8 @@ char* hex2bin(char *dst, const char *str, int count); */ #define get_cmdline abrt_get_cmdline char* get_cmdline(pid_t pid); +#define get_environ abrt_get_environ +char* get_environ(pid_t pid); /* Returns 1 if abrtd daemon is running, 0 otherwise. */ #define daemon_is_ok abrt_daemon_is_ok -- cgit