]> git.proxmox.com Git - mirror_ovs.git/commit
utilities: Update gdb script so it works with all python versions
authorEelco Chaudron <echaudro@redhat.com>
Mon, 7 Jan 2019 14:29:59 +0000 (14:29 +0000)
committerBen Pfaff <blp@ovn.org>
Thu, 10 Jan 2019 18:59:33 +0000 (10:59 -0800)
commite33b3fec1c88bf922cf2df5a4e7b3a4af80d4bb1
tree93d8ded00eadc74d75ee73900294c438dca9d32c
parent0b4caa2eba22a516a312e7b404107eaebe618ee1
utilities: Update gdb script so it works with all python versions

Newer versions of Python require a different iterator function. This
change will make the iterator classes work with all Python versions.

Adds a fix for python3 as it does not support the long() type.
The fix guaranties the script still works on Python 2.7.

The uKey walker is rather slow on python3, so added a spinner to
indicate we are still busy processing entries.

Fix functions using the iterkeys() function on dictionaries.

Tested-by: solomon <liwei.solomon@gmail.com>
Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
utilities/gdb/ovs_gdb.py