Commit 9f2be485 authored by Carsten Emde's avatar Carsten Emde
Browse files

Added tooltips to newly added Graphviz elements

parent ab1c0c88
......@@ -221,7 +221,7 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
elf_to_placeholder[filename], elf_to_placeholder[fl]))
elif outputformat == 'gv':
if forcesymbols:
outputfileopen.write(" %s -> %s [label=\"links with\"];" % (elf_to_placeholder[filename], elf_to_placeholder[fl]))
outputfileopen.write(" %s -> %s [label=\"links with\" tooltip=\"%s -> %s\"];" % (elf_to_placeholder[filename], elf_to_placeholder[fl], filename, fl))
else:
outputfileopen.write(" %s -> %s;" % (elf_to_placeholder[filename], elf_to_placeholder[fl]))
elif outputformat == 'text':
......@@ -331,8 +331,8 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
outputfileopen.write("<edge source=\"%s\" target=\"%s\" label=\"exports\"/>" % (elf_to_placeholder[filename],
symbol_to_placeholder[(exp['name'], exp['type'])]))
elif outputformat == 'gv':
outputfileopen.write(" %s -> %s [label=\"exports\"];" % (elf_to_placeholder[filename],
symbol_to_placeholder[(exp['name'], exp['type'])]))
outputfileopen.write(" %s -> %s [label=\"exports\" tooltip=\"%s -> %s (%s)\"];" % (elf_to_placeholder[filename],
symbol_to_placeholder[(exp['name'], exp['type'])], filename, exp['name'], exp['type']))
elif outputformat == 'text':
outputfileopen.write("%s EXPORTS %s" % (filename, exp['name']))
exportedsymbols += 1
......@@ -373,8 +373,8 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
outputfileopen.write("<edge source=\"%s\" target=\"%s\" label=\"%s\"/>" % (elf_to_placeholder[filename],
symbol_to_placeholder[(imp['name'], imp['type'])], usage.lower()))
elif outputformat == 'gv':
outputfileopen.write(" %s -> %s [label=\"%s\"];" % (elf_to_placeholder[filename],
symbol_to_placeholder[(imp['name'], imp['type'])], usage.lower()))
outputfileopen.write(" %s -> %s [label=\"%s\" tooltip=\"%s -> %s (%s)\"];" % (elf_to_placeholder[filename],
symbol_to_placeholder[(imp['name'], imp['type'])], usage.lower(), filename, imp['name'], imp['type']))
elif outputformat == 'text':
outputfileopen.write("%s %s %s" % (filename, usage, imp['name']))
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment