Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Caren Kresse
callgraph
Commits
012b3ccd
Commit
012b3ccd
authored
May 14, 2021
by
Carsten Emde
Browse files
Multiple filenames of a given library are now correctly considered in the target list
parent
e0c9ab5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
generatecypher.py
View file @
012b3ccd
...
...
@@ -90,12 +90,12 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
if
limit
not
in
linked_libraries
:
continue
for
lib
in
linked_libraries
[
limit
]:
fullfilename
=
filename_to_full_path
[
lib
]
fullfilename
=
list
(
fullfilename
)[
0
]
if
fullfilename
in
symlink_to_target
:
fullfilename
=
symlink_to_target
[
fullfilename
]
if
fullfilename
not
in
limitsearch
:
limitsearch
.
append
(
fullfilename
)
fullfilename
s
=
filename_to_full_path
[
lib
]
for
fullfilename
in
fullfilename
s
:
if
fullfilename
in
symlink_to_target
:
fullfilename
=
symlink_to_target
[
fullfilename
]
if
fullfilename
not
in
limitsearch
:
limitsearch
.
append
(
fullfilename
)
print
(
"Info: Limiting search to %s"
%
(
limitsearch
))
if
(
len
(
limitsearch
)
==
1
):
print
(
"Info: No libraries found, halting program execution"
)
...
...
@@ -220,7 +220,7 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
linked_from
[
fl
]
=
set
()
linked_from
[
fl
].
add
(
filename
)
if
notarget
(
fl
,
limitsearch
):
print
(
"Warning: Found linked library '%s', but it
was skipped
"
%
(
fl
))
print
(
"Warning: Found linked library '%s', but it
is not a target
"
%
(
fl
))
if
outputformat
==
'gexf'
:
outputfileopen
.
write
(
"
\n
</edges>"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment