summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--inc/debug_dump.h2
-rw-r--r--src/daemon/MiddleWare.cpp4
3 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8b78e2df..cd21bab6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,6 +15,8 @@ AC_PROG_CXX
AC_SYS_LARGEFILE
CXXFLAGS="$CXXFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
-D_FILE_OFFSET_BITS=64 -fno-strict-aliasing "
+CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
+ -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing "
AC_CHECK_PROGS(YACC, 'bison -y', [no])
[if test "$YACC" = "no"]
diff --git a/inc/debug_dump.h b/inc/debug_dump.h
index 869cd7d0..1222a1cb 100644
--- a/inc/debug_dump.h
+++ b/inc/debug_dump.h
@@ -56,6 +56,8 @@ class CDebugDump
bool InitGetNextFile();
/* Pointers may be NULL */
bool GetNextFile(std::string *short_name, std::string *full_name);
+
+ const char *Directory() const { return m_sDebugDumpDir.c_str(); }
};
/**
diff --git a/src/daemon/MiddleWare.cpp b/src/daemon/MiddleWare.cpp
index a0c6b477..0f7815dd 100644
--- a/src/daemon/MiddleWare.cpp
+++ b/src/daemon/MiddleWare.cpp
@@ -133,12 +133,14 @@ static char* is_text_file(const char *name, ssize_t *sz)
static void load_crash_data_from_debug_dump(CDebugDump& dd, map_crash_data_t& data)
{
+ VERB3 log("load_crash_data_from_debug_dump: directory %s", dd.Directory());
std::string short_name;
std::string full_name;
dd.InitGetNextFile();
while (dd.GetNextFile(&short_name, &full_name))
{
+ VERB3 log("load_crash_data_from_debug_dump: file '%s', '%s'", short_name.c_str(), full_name.c_str());
ssize_t sz = 4*1024;
char *text = NULL;
bool editable = is_editable_file(short_name.c_str());
@@ -1089,7 +1091,7 @@ mw_result_t SaveDebugDump(const char *pDebugDumpDir,
}
mw_result_t FillCrashInfo(const char *crash_id,
- map_crash_data_t& pCrashData)
+ map_crash_data_t& pCrashData)
{
CDatabase* database = g_pPluginManager->GetDatabase(g_settings_sDatabase.c_str());
database->Connect();