Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr-sdk
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
zipr-sdk
Commits
b71af63f
Commit
b71af63f
authored
8 years ago
by
whh8b
Browse files
Options
Downloads
Patches
Plain Diff
Debug support for plugins to plop instructions.
parent
35decce9
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/dollop.h
+10
-3
10 additions, 3 deletions
include/dollop.h
include/dollop_man.h
+2
-0
2 additions, 0 deletions
include/dollop_man.h
include/zipr.h
+1
-0
1 addition, 0 deletions
include/zipr.h
with
13 additions
and
3 deletions
include/dollop.h
+
10
−
3
View file @
b71af63f
...
...
@@ -36,6 +36,8 @@
namespace
Zipr_SDK
{
class
DollopManager_t
;
class
Placeable_t
{
public:
Placeable_t
()
:
m_is_placed
(
false
),
m_placed_address
(
0
)
{}
...
...
@@ -86,16 +88,20 @@ class DollopEntry_t : public Placeable_t {
class
Dollop_t
:
public
Placeable_t
,
public
std
::
list
<
DollopEntry_t
*>
{
public:
static
Dollop_t
*
CreateNewDollop
(
libIRDB
::
Instruction_t
*
start
);
static
Dollop_t
*
CreateNewDollop
(
libIRDB
::
Instruction_t
*
start
,
DollopManager_t
*
mgr
=
NULL
);
Dollop_t
(
libIRDB
::
Instruction_t
*
start
);
Dollop_t
(
libIRDB
::
Instruction_t
*
start
,
DollopManager_t
*
);
Dollop_t
()
:
m_size
(
0
),
m_fallthrough_dollop
(
NULL
),
m_fallback_dollop
(
NULL
),
m_fallthrough_patched
(
false
),
m_coalesced
(
false
),
m_was_truncated
(
false
)
{}
m_was_truncated
(
false
),
m_dollop_mgr
(
NULL
)
{}
void
SetDollopManager
(
DollopManager_t
*
mgr
)
{
m_dollop_mgr
=
mgr
;
}
size_t
GetSize
()
const
{
return
m_size
;
...
...
@@ -141,6 +147,7 @@ class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> {
bool
m_fallthrough_patched
;
bool
m_coalesced
;
bool
m_was_truncated
;
DollopManager_t
*
m_dollop_mgr
;
};
}
#endif
This diff is collapsed.
Click to expand it.
include/dollop_man.h
+
2
−
0
View file @
b71af63f
...
...
@@ -50,6 +50,8 @@ class DollopManager_t {
public:
DollopManager_t
()
{};
virtual
int
DetermineWorstCaseInsnSize
(
libIRDB
::
Instruction_t
*
insn
)
=
0
;
/*
* Add a dollop and all its fallthrough dollops
* to the dollop manager.
...
...
This diff is collapsed.
Click to expand it.
include/zipr.h
+
1
−
0
View file @
b71af63f
...
...
@@ -49,6 +49,7 @@ class Zipr_t
* These are public functions that the SDK user way want to use.
*/
virtual
int
DetermineWorstCaseInsnSize
(
libIRDB
::
Instruction_t
*
,
bool
account_for_jump
=
true
)
=
0
;
virtual
int
PluginDetermineWorstCaseInsnSize
(
libIRDB
::
Instruction_t
*
,
bool
account_for_jump
=
true
)
=
0
;
virtual
Zipr_SDK
::
RangeAddress_t
PlopDollopEntry
(
DollopEntry_t
*
,
...
...
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