X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Ftestsuite%2Fgdb.python%2Fpy-xmethods.py;h=47fb00beec5b1cb108b23c3d01d3b844dcf63b8c;hb=a0eaec95753c0f093f5cb80080ef423030d35edd;hp=6fecf2b9e1395f5aed0577e9b83c3b4804fbcb1d;hpb=31b638d39a426599109be120a9e547126397d40f;p=platform%2Fupstream%2Fgdb.git diff --git a/gdb/testsuite/gdb.python/py-xmethods.py b/gdb/testsuite/gdb.python/py-xmethods.py index 6fecf2b..47fb00b 100644 --- a/gdb/testsuite/gdb.python/py-xmethods.py +++ b/gdb/testsuite/gdb.python/py-xmethods.py @@ -25,22 +25,22 @@ from gdb.xmethod import SimpleXMethodMatcher def A_plus_A(obj, opr): - print ('From Python :') + print('From Python :') return obj['a'] + opr['a'] def plus_plus_A(obj): - print ('From Python :') + print('From Python :') return obj['a'] + 1 def A_geta(obj): - print ('From Python :') + print('From Python :') return obj['a'] def A_getarrayind(obj, index): - print 'From Python :' + print('From Python :') return obj['array'][index] @@ -61,7 +61,7 @@ class E_method_char_worker(XMethodWorker): return gdb.lookup_type('char') def __call__(self, obj, arg): - print 'From Python ' + print('From Python ') return None @@ -73,7 +73,7 @@ class E_method_int_worker(XMethodWorker): return gdb.lookup_type('int') def __call__(self, obj, arg): - print 'From Python ' + print('From Python ') return None @@ -86,7 +86,7 @@ class E_method_matcher(XMethodMatcher): class_tag = class_type.unqualified().tag if not re.match('^dop::E$', class_tag): return None - if not re.match('^method$', method_name): + if not re.match('^method$', method_name): return None workers = [] if self.methods[0].enabled: @@ -109,7 +109,7 @@ class G_size_diff_worker(XMethodWorker): pass def __call__(self, obj): - print ('From Python G<>::size_diff()') + print('From Python G<>::size_diff()') return (self._method_template_type.sizeof - self._class_template_type.sizeof) @@ -123,7 +123,7 @@ class G_size_mul_worker(XMethodWorker): pass def __call__(self, obj): - print ('From Python G<>::size_mul()') + print('From Python G<>::size_mul()') return self._class_template_type.sizeof * self._method_template_val @@ -136,7 +136,7 @@ class G_mul_worker(XMethodWorker): return self._method_template_type def __call__(self, obj, arg): - print ('From Python G<>::mul()') + print('From Python G<>::mul()') return obj['t'] * arg