Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
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 Toolchain
Commits
8c01f353
Commit
8c01f353
authored
7 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Print function info
Former-commit-id: e7712f3b757ad37a39b1d885181af0bddc9b7c22
parent
4c91e053
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
libIRDB/test/read_variantir.cpp
+12
-1
12 additions, 1 deletion
libIRDB/test/read_variantir.cpp
with
12 additions
and
1 deletion
libIRDB/test/read_variantir.cpp
+
12
−
1
View file @
8c01f353
...
...
@@ -22,6 +22,7 @@
#include
<libIRDB-core.hpp>
#include
<iostream>
#include
<algorithm>
#include
<stdlib.h>
using
namespace
libIRDB
;
...
...
@@ -57,12 +58,22 @@ main(int argc, char* argv[])
File_t
*
this_file
=*
it
;
assert
(
this_file
);
cout
<<
"Analyzing file "
<<
this_file
->
GetURL
()
<<
endl
;
cout
<<
"
...
Analyzing file "
<<
this_file
->
GetURL
()
<<
endl
;
// read the db
FileIR_t
*
firp
=
new
FileIR_t
(
*
pidp
,
this_file
);
assert
(
firp
);
std
::
for_each
(
firp
->
GetFunctions
().
begin
(),
firp
->
GetFunctions
().
end
(),
[](
const
Function_t
*
fn
)
{
if
(
!
fn
)
return
;
cout
<<
"Function: "
<<
fn
->
GetName
();
cout
<<
" NumArgs: "
<<
fn
->
GetNumArguments
();
cout
<<
" FP: "
<<
fn
->
GetUseFramePointer
();
cout
<<
" StackFrameSize: "
<<
fn
->
GetStackFrameSize
();
cout
<<
" OutArgsRegionSize: "
<<
fn
->
GetOutArgsRegionSize
();
cout
<<
endl
;
});
for
(
set
<
Instruction_t
*>::
const_iterator
it
=
firp
->
GetInstructions
().
begin
();
it
!=
firp
->
GetInstructions
().
end
();
...
...
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