diff --git a/include/interfaces/irdb/STARSInterface.h b/include/interfaces/irdb/STARSInterface.h index 466a93eb216dca494d1f3d1cfa4d6b8e7afd94d6..09a125406de0474ee2e7e3370bf5e4c00575eb67 100644 --- a/include/interfaces/irdb/STARSInterface.h +++ b/include/interfaces/irdb/STARSInterface.h @@ -14,7 +14,7 @@ #include <assert.h> #include <stdarg.h> #include <stdio.h> -#include <pqxx/pqxx> +// #include <pqxx/pqxx> class STARS_IRDB_Function_t; @@ -37,10 +37,10 @@ class STARS_IRDB_Interface_t: public STARS_Interface_t public: // Constructors - STARS_IRDB_Interface_t(IRDB_SDK::FileIR_t* p_firp, IRDB_SDK::pqxxDB_t &p_pqxx_interface) : + STARS_IRDB_Interface_t(IRDB_SDK::FileIR_t* p_firp /*, IRDB_SDK::pqxxDB_t &p_pqxx_interface */) : CGCBinary(false), firp(p_firp), - pqxx_interface(p_pqxx_interface), +// pqxx_interface(p_pqxx_interface), instruction_predsp(IRDB_SDK::InstructionPredecessors_t::factory(firp)), instruction_preds(*instruction_predsp), IBT_provsp(IRDB_SDK::IBTProvenance_t::factory(firp)), @@ -243,12 +243,14 @@ private: void InitSegments() { + /* int elfoid=firp->getFile()->getELFOID(); pqxx::largeobject lo(elfoid); lo.to_file(pqxx_interface.getTransaction(),"readeh_tmp_file.exe"); // elfiop.reset(new ELFIO::elfio); + */ elfiop=new ELFIO::elfio; - elfiop->load("readeh_tmp_file.exe"); + elfiop->load("a.ncexe"); //ELFIO::dump::header(std::cout,*elfiop); //ELFIO::dump::section_headers(std::cout,*elfiop); @@ -324,7 +326,7 @@ private: ELFIO::elfio* elfiop; IRDB_SDK::FileIR_t *firp; - IRDB_SDK::pqxxDB_t &pqxx_interface; +// IRDB_SDK::pqxxDB_t &pqxx_interface; std::unique_ptr<IRDB_SDK::InstructionPredecessors_t> instruction_predsp; IRDB_SDK::InstructionPredecessors_t& instruction_preds; diff --git a/include/stars.h b/include/stars.h index 8afad36b738497128b0d2d599c06fb66e6e74462..57dbb664c8300bf0efb53274ef50d76106189980 100644 --- a/include/stars.h +++ b/include/stars.h @@ -50,8 +50,8 @@ namespace STARS class IRDB_Interface_t { public: - IRDB_Interface_t(IRDB_SDK::pqxxDB_t &p_pqxx_interface) - : pqxx_interface(p_pqxx_interface) + IRDB_Interface_t(/* IRDB_SDK::pqxxDB_t &p_pqxx_interface */) +// : pqxx_interface(p_pqxx_interface) { }; @@ -64,7 +64,7 @@ namespace STARS const MEDS_Annotation::MEDS_AnnotationParser & getAnnotations() const { return parser; } private: - IRDB_SDK::pqxxDB_t &pqxx_interface; +// IRDB_SDK::pqxxDB_t &pqxx_interface; MEDS_Annotation::MEDS_AnnotationParser parser; STARS::Option_t STARSOptions; }; diff --git a/src/drivers/library/stars_irdb.cpp b/src/drivers/library/stars_irdb.cpp index 7e0205adb0d8ddec6c202cecbb10598897608bbe..79ba5676f0bfcd9caceee1a7108d0f1bb74f8f7d 100644 --- a/src/drivers/library/stars_irdb.cpp +++ b/src/drivers/library/stars_irdb.cpp @@ -157,7 +157,7 @@ int STARS::IRDB_Interface_t::do_STARS(FileIR_t* firp) { STARS_InstructionID_t::Init(); STARS_IRDB_Program_t* gsp=NULL; - global_stars_interface = new STARS_IRDB_Interface_t(firp, pqxx_interface); + global_stars_interface = new STARS_IRDB_Interface_t(firp); global_STARS_program = gsp = new STARS_IRDB_Program_t(firp); // this is initing the global_stars_program (GSP)