Fix PR python/18984
This fixes PR python/18984. The bug is that gdbpy_solib_name uses GDB_PY_LL_ARG, whereas it should use GDB_PY_LLU_ARG to avoid overflow. Built and tested on x86-64 Fedora 23. 2016-06-02 Tom Tromey <tom@tromey.com> PR python/18984: * python/python.c (gdbpy_solib_name): Use GDB_PY_LLU_ARG. 2016-06-02 Tom Tromey <tom@tromey.com> PR python/18984: * gdb.python/py-shared.exp: Add solib_name test.
This commit is contained in:
parent
99914dfd71
commit
1b40ec0559
4 changed files with 16 additions and 2 deletions
|
@ -66,3 +66,7 @@ gdb_test "python print (gdb.solib_name(long(func1)))" "py-shared-sl.sl" "test fu
|
|||
gdb_test "p &main" "" "main address"
|
||||
gdb_py_test_silent_cmd "python main = gdb.history(0)" "Aquire main address" 1
|
||||
gdb_test "python print (gdb.solib_name(long(main)))" "None" "test main solib location"
|
||||
|
||||
if {[is_lp64_target]} {
|
||||
gdb_test "python print (len(\[gdb.solib_name(0xffffffffffffffff)\]))" "1"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue