Don't use PyLong_FromLong
authorTom Tromey <tromey@adacore.com>
Tue, 15 Sep 2020 17:08:56 +0000 (11:08 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 15 Sep 2020 17:08:56 +0000 (11:08 -0600)
commit062534d44f3eeb81903cc01ef0230cee5b3e4eb2
tree9ec64c54b962a8f2bb8e7a4fd2977aa74f76e4fd
parentd1cab9876d72d867b2de82688f5f5a2a4b655edb
Don't use PyLong_FromLong

This changes gdb to avoid PyLong_FromLong, preferring to
gdb_py_object_from_longest instead.

gdb/ChangeLog
2020-09-15  Tom Tromey  <tromey@adacore.com>

* python/python.c (gdbpy_parameter_value): Use
gdb_py_object_from_longest.
* python/py-type.c (convert_field, typy_range): Use
gdb_py_object_from_longest.
* python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
gdb_py_object_from_longest.
* python/py-lazy-string.c (stpy_get_length): Use
gdb_py_object_from_longest.
* python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
gdb_py_object_from_longest.
* python/py-infevents.c (create_memory_changed_event_object): Use
gdb_py_object_from_longest.
* python/py-inferior.c (infpy_get_num): Use
gdb_py_object_from_longest.
(infpy_get_pid): Likewise.
gdb/ChangeLog
gdb/python/py-inferior.c
gdb/python/py-infevents.c
gdb/python/py-infthread.c
gdb/python/py-lazy-string.c
gdb/python/py-tui.c
gdb/python/py-type.c
gdb/python/python.c
This page took 0.028291 seconds and 4 git commands to generate.