Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr_unpin_plugin
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
zipr_unpin_plugin
Commits
9986d32f
Commit
9986d32f
authored
8 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
fixed some output formatting.
parent
928b4852
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unpin.cpp
+8
-6
8 additions, 6 deletions
unpin.cpp
with
8 additions
and
6 deletions
unpin.cpp
+
8
−
6
View file @
9986d32f
...
...
@@ -200,12 +200,12 @@ void Unpin_t::DoUnpinForScoops()
if
(
insn
->
GetIndirectBranchTargetAddress
())
{
cout
<<
"Unpin::Found data_to_insn_ptr relocation for pinned insn:"
<<
dec
<<
insn
->
GetBaseID
()
<<
"
at "
<<
hex
<<
insn
->
GetIndirectBranchTargetAddress
()
->
GetVirtualOffset
()
<<
endl
;
cout
<<
"Unpin::Found data_to_insn_ptr relocation for pinned insn:"
<<
hex
<<
insn
->
GetBaseID
()
<<
"
:"
<<
insn
->
getDisassembly
()
<<
" at "
<<
hex
<<
insn
->
GetIndirectBranchTargetAddress
()
->
GetVirtualOffset
()
<<
endl
;
}
else
{
cout
<<
"Unpin::Warn: unpin found non-IBTA to unpin for insn:"
<<
dec
<<
insn
->
GetBaseID
()
<<
". probably it's unpinned twice. continuing anyhow."
<<
endl
;
cout
<<
"Unpin::Warn: unpin found non-IBTA to unpin for insn:"
<<
hex
<<
insn
->
GetBaseID
()
<<
". probably it's unpinned twice. continuing anyhow."
<<
endl
;
}
int
found
=
should_cfi_pin
(
insn
);
...
...
@@ -315,8 +315,8 @@ void Unpin_t::DoUpdateForInstructions()
*
(
int
*
)
&
newpush
[
1
]
=
(
int
)
wrt_insn_location
;
cout
<<
"Unpin::Updating push32/push64-exe insn:"
<<
dec
<<
from_insn
->
GetBaseID
()
<<
"@"
<<
hex
<<
from_insn_location
<<
" to point at "
<<
dec
<<
wrt_insn
->
GetBaseID
()
<<
"@"
<<
hex
<<
wrt_insn_location
<<
endl
;
<<
dec
<<
from_insn
->
GetBaseID
()
<<
"
:"
<<
from_insn
->
getDisassembly
()
<<
"
@"
<<
hex
<<
from_insn_location
<<
" to point at "
<<
dec
<<
wrt_insn
->
GetBaseID
()
<<
"
:"
<<
wrt_insn
->
getDisassembly
()
<<
"
@"
<<
hex
<<
wrt_insn_location
<<
endl
;
for
(
unsigned
int
i
=
0
;
i
<
from_insn
->
GetDataBits
().
size
();
i
++
)
{
...
...
@@ -491,7 +491,9 @@ void Unpin_t::DoUpdateForScoops()
Zipr_SDK
::
InstructionLocationMap_t
&
locMap
=*
(
zo
->
GetLocationMap
());
libIRDB
::
virtual_offset_t
newLoc
=
locMap
[
insn
];
cout
<<
"Unpin::Unpinned data_to_insn_ptr reloc with offset="
<<
hex
<<
reloc
->
GetOffset
()
<<
". Insn moved to "
<<
hex
<<
newLoc
<<
endl
;
cout
<<
"Unpin::Unpinned data_to_insn_ptr insn ("
<<
hex
<<
insn
->
GetBaseID
()
<<
":"
<<
insn
->
getDisassembly
()
<<
") with offset="
<<
hex
<<
reloc
->
GetOffset
()
<<
". Insn moved to "
<<
hex
<<
newLoc
<<
endl
;
int
found
=
should_cfi_pin
(
insn
);
...
...
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