GNU Binutils with patches for OS216
Revisão | 7353f2470c2eda19c31c9fa44c315c7c69dea7c4 (tree) |
---|---|
Hora | 2016-11-09 01:10:57 |
Autor | Tom Tromey <tom@trom...> |
Commiter | Tom Tromey |
Fix py-value.exp failure on Python 3
I happened to notice that one test in py-value.exp did not work
properly with Python 3. This patch fixes the problem.
2016-11-08 Tom Tromey <tom@tromey.com>
* gdb.python/py-value.exp (test_value_creation): Make "long" test
depend on Python 2.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2016-11-08 Tom Tromey <tom@tromey.com> |
2 | 2 | |
3 | + * gdb.python/py-value.exp (test_value_creation): Make "long" test | |
4 | + depend on Python 2. | |
5 | + | |
6 | +2016-11-08 Tom Tromey <tom@tromey.com> | |
7 | + | |
3 | 8 | * gdb.python/py-framefilter.py (ElidingFrameDecorator.address): |
4 | 9 | New method. |
5 | 10 |
@@ -56,7 +56,11 @@ proc test_value_creation {} { | ||
56 | 56 | } |
57 | 57 | |
58 | 58 | gdb_py_test_silent_cmd "python l = gdb.Value(0xffffffff12345678)" "create large unsigned 64-bit value" 1 |
59 | - gdb_test "python print long(l)" "18446744069720004216" "large unsigned 64-bit int conversion to python" | |
59 | + if { $gdb_py_is_py3k == 0 } { | |
60 | + gdb_test "python print long(l)" "18446744069720004216" "large unsigned 64-bit int conversion to python" | |
61 | + } else { | |
62 | + gdb_test "python print (int(l))" "18446744069720004216" "large unsigned 64-bit int conversion to python" | |
63 | + } | |
60 | 64 | |
61 | 65 | gdb_py_test_silent_cmd "python f = gdb.Value (1.25)" "create double value" 1 |
62 | 66 | gdb_py_test_silent_cmd "python a = gdb.Value ('string test')" "create 8-bit string value" 1 |