Skip to content
Snippets Groups Projects
Commit 8487a0ba authored by jdh8d's avatar jdh8d
Browse files

Updated call to get_root_filename to default to a.ncexe.log and report error...

Updated call to get_root_filename to default to a.ncexe.log and report error msg for RHEL with ida 6.8

Former-commit-id: 694b2b72bfe0f3698dd1b751bffdcf87b15df34d
parent e3005c37
Branches
Tags
No related merge requests found
......@@ -30,6 +30,7 @@
using namespace std;
#define SMP_DEBUG 1
#define GET_ROOT_FILE_NAME_KLUDGE 1
// Limit on bytes of code for full analysis
#define STARS_CODESIZE_FULL_ANALYSIS_LIMIT 8000000
......@@ -103,9 +104,16 @@ void STARS_IDA_Program_t::DetermineRootFileName(void) {
for (size_t Index = 0; Index < (STARS_MAXSTR - 1); ++Index) {
TempRootName[Index] = 'S';
}
#if GET_ROOT_FILE_NAME_KLUDGE == 1
::qstrncpy(TempRootName, "a.ncexe", sizeof(TempRootName));
STARS_ssize_t FileLen = ::get_root_filename(TempRootName, sizeof(TempRootName) - 1);
if( FileLen < 0 )
SMP_msg("get_root_filename failure dectected, defaulting to a.ncexe. Output may not be where expected.");
#else
TempRootName[STARS_MAXSTR - 1] = '\0';
STARS_ssize_t FileLen = ::get_root_filename(TempRootName, sizeof(TempRootName) - 1);
assert(0 < FileLen);
#endif
string TempRootString(TempRootName);
this->SetRootFileName(TempRootString);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment