tasn pushed a commit to branch efl-1.16. http://git.enlightenment.org/core/efl.git/commit/?id=1a39c10ccbbe9be8e92165268e06329c2ccd2649
commit 1a39c10ccbbe9be8e92165268e06329c2ccd2649 Author: Tom Hacohen <t...@stosb.com> Date: Thu Dec 8 11:03:25 2016 +0000 Eo gdb: Add workaround for gdb oddities. These workarounds are required to make sure the plugin works across gdb and python versions. --- data/eo/eo_gdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/eo/eo_gdb.py b/data/eo/eo_gdb.py index f56be99..c330dc3 100644 --- a/data/eo/eo_gdb.py +++ b/data/eo/eo_gdb.py @@ -55,7 +55,7 @@ class Eo_resolve(gdb.Function): gdb.Function.__init__(self, 'eo_resolve') def invoke(self, arg): - obj_id = int(arg.cast(zero_uintptr_t.type)) + obj_id = int(str(arg.cast(zero_uintptr_t.type)), 0) mid_table_id = (obj_id >> SHIFT_MID_TABLE_ID) & MASK_MID_TABLE_ID table_id = (obj_id >> SHIFT_TABLE_ID) & MASK_TABLE_ID @@ -112,7 +112,7 @@ class Eo_data_get(gdb.Function): return null_void_ptr # Check if not mixin - if int(kls['desc']['type']) != 3: + if int(kls['desc']['type'].cast(zero_uintptr_t.type)) != 3: return gdb.parse_and_eval('(void *) (((char *) {}) + {})' .format(ptr, kls['data_offset'])) else: --