Changes in contrib/arch/hadlbppp.py [c123609:af6cad4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/arch/hadlbppp.py
rc123609 raf6cad4 409 409 return result 410 410 411 def dump_frame( frame, outdir, var, archf):411 def dump_frame(directed_binds, frame, outdir, var, archf): 412 412 "Dump Behavior Protocol of a given frame" 413 413 … … 443 443 iface = get_iface(provides['iface']) 444 444 if (not iface is None): 445 binds = directed_binds['%s.%s' % (var, provides['iface'])] 446 if (not binds is None): 447 cnt = len(binds) 448 else: 449 cnt = 1 450 445 451 if ('protocol' in iface): 446 protocols.append(extend_bp(outname, iface['protocol'], iface['name'])) 452 proto = extend_bp(outname, iface['protocol'], iface['name']) 453 for _ in range(0, cnt): 454 protocols.append(proto) 455 447 456 for protocol in inherited_protocols(iface): 448 protocols.append(extend_bp(outname, protocol, iface['name'])) 457 proto = extend_bp(outname, protocol, iface['name']) 458 for _ in range(0, cnt): 459 protocols.append(proto) 449 460 else: 450 461 print "%s: Provided interface '%s' is undefined" % (frame['name'], provides['iface']) … … 639 650 break 640 651 652 directed_binds = direct_binds(flatten_binds(binds, delegates, subsumes)) 653 641 654 outname = os.path.join(outdir, "%s.archbp" % arch['name']) 642 655 if ((opt_bp) or (opt_ebp)): … … 648 661 649 662 for inst in insts: 650 dump_frame(inst['frame'], outdir, inst['var'], outf) 651 652 directed_binds = direct_binds(flatten_binds(binds, delegates, subsumes)) 663 dump_frame(directed_binds, inst['frame'], outdir, inst['var'], outf) 653 664 654 665 for dst, src in directed_binds.items(): … … 1727 1738 outf.write("\tlabel=\"%s\";\n" % arch['name']) 1728 1739 outf.write("\tcompound=true;\n") 1740 outf.write("\tsplines=\"polyline\";\n") 1729 1741 outf.write("\tedge [fontsize=8];\n") 1730 1742 outf.write("\t\n")
Note:
See TracChangeset
for help on using the changeset viewer.