diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-04-18 22:41:41 +0200 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-04-18 22:41:41 +0200 |
| commit | 20825945e91651cccb080ee94286a33cd82d3ee4 (patch) | |
| tree | 2f4a1cf6f49e98cb48701999e694c462871eeb37 /src/include | |
| parent | f5ba5aab2ad2cbf3b7f3b27e2a9aec3e086dc0f3 (diff) | |
| download | abrt-20825945e91651cccb080ee94286a33cd82d3ee4.tar.gz abrt-20825945e91651cccb080ee94286a33cd82d3ee4.tar.xz abrt-20825945e91651cccb080ee94286a33cd82d3ee4.zip | |
abrt-hook-ccpp: add saving of environ, disable saving of smaps. closes #91
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/abrt_crash_data.h | 1 | ||||
| -rw-r--r-- | src/include/abrtlib.h | 2 |
2 files changed, 3 insertions, 0 deletions
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 |
