Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMPStaticAnalyzer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
SMPStaticAnalyzer
Commits
6951453a
Commit
6951453a
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
update to build libirdb-deep
parent
ad61db4c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/interfaces/irdb/STARSInterface.h
+7
-5
7 additions, 5 deletions
include/interfaces/irdb/STARSInterface.h
include/stars.h
+3
-3
3 additions, 3 deletions
include/stars.h
src/drivers/library/stars_irdb.cpp
+1
-1
1 addition, 1 deletion
src/drivers/library/stars_irdb.cpp
with
11 additions
and
9 deletions
include/interfaces/irdb/STARSInterface.h
+
7
−
5
View file @
6951453a
...
...
@@ -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.nc
exe"
);
//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
;
...
...
This diff is collapsed.
Click to expand it.
include/stars.h
+
3
−
3
View file @
6951453a
...
...
@@ -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
;
};
...
...
This diff is collapsed.
Click to expand it.
src/drivers/library/stars_irdb.cpp
+
1
−
1
View file @
6951453a
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment