binutils-gdb/gdb/python
Tom Tromey 47f0e2ff7f Don't use PyInt_FromLong
Avoid the use of PyInt_FromLong, preferring gdb_py_object_from_longest
instead.  I found found another spot that was incorrectly handling
errors (see gdbpy_create_ptid_object) while writing this patch; it is
fixed here.

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

	* python/python-internal.h (PyInt_FromLong): Remove define.
	* python/py-value.c (convert_value_from_python): Use
	gdb_py_object_from_longest.
	* python/py-type.c (typy_get_code): Use
	gdb_py_object_from_longest.
	* python/py-symtab.c (salpy_get_line): Use
	gdb_py_object_from_longest.
	* python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
	gdb_py_object_from_longest.
	* python/py-record.c (recpy_gap_reason_code): Use
	gdb_py_object_from_longest.
	* python/py-record-btrace.c (recpy_bt_insn_size)
	(recpy_bt_func_level, btpy_list_count): Use
	gdb_py_object_from_longest.
	* python/py-infthread.c (gdbpy_create_ptid_object): Use
	gdb_py_object_from_longest.  Fix error handling.
	* python/py-framefilter.c (bootstrap_python_frame_filters): Use
	gdb_py_object_from_longest.
	* python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
	gdb_py_object_from_longest.
	* python/py-breakpoint.c (bppy_get_type, bppy_get_number)
	(bppy_get_thread, bppy_get_task, bppy_get_hit_count)
	(bppy_get_ignore_count): Use gdb_py_object_from_longest.
2020-09-15 11:08:57 -06:00
..
lib/gdb
py-all-events.def
py-arch.c Don't use gdb_py_long_from_ulongest 2020-09-15 11:08:56 -06:00
py-auto-load.c
py-block.c
py-bpevent.c
py-breakpoint.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-cmd.c
py-continueevent.c
py-event-types.def
py-event.c
py-event.h
py-events.h
py-evtregistry.c
py-evts.c
py-exitedevent.c Don't use PyLong_FromLongLong 2020-09-15 11:08:57 -06:00
py-finishbreakpoint.c
py-frame.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-framefilter.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-function.c
py-gdb-readline.c
py-inferior.c Don't use PyLong_FromLong 2020-09-15 11:08:56 -06:00
py-infevents.c Don't use PyLong_FromLongLong 2020-09-15 11:08:57 -06:00
py-infthread.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-instruction.c
py-instruction.h
py-lazy-string.c Don't use PyLong_FromLong 2020-09-15 11:08:56 -06:00
py-linetable.c
py-newobjfileevent.c
py-objfile.c
py-param.c
py-prettyprint.c
py-progspace.c
py-record-btrace.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-record.h
py-ref.h
py-registers.c
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-symtab.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-threadevent.c
py-tui.c Don't use PyLong_FromLong 2020-09-15 11:08:56 -06:00
py-type.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-unwind.c
py-utils.c
py-value.c Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
py-varobj.c
py-xmethods.c
python-config.py
python-internal.h Don't use PyInt_FromLong 2020-09-15 11:08:57 -06:00
python.c Don't use PyLong_FromUnsignedLong 2020-09-15 11:08:57 -06:00
python.h