Skip to content
Snippets Groups Projects
Commit 6951453a authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

update to build libirdb-deep

parent ad61db4c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
};
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment