8sa1-binutils-gdb/gdb/python
Tom Tromey d1cab9876d Don't use gdb_py_long_from_ulongest
Remove the gdb_py_long_from_ulongest defines and change the Python
layer to prefer gdb_py_object_from_ulongest.  While writing this I
noticed that the error handling in archpy_disassemble was incorrect --
it could call PyDict_SetItemString with a NULL value.  This patch also
fixes this bug.

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

	* python/python-internal.h (gdb_py_long_from_ulongest): Remove
	defines.
	* python/py-value.c (valpy_long): Use
	gdb_py_object_from_ulongest.
	* python/py-symtab.c (salpy_get_pc): Use
	gdb_py_object_from_ulongest.
	(salpy_get_last): Likewise.
	* python/py-record-btrace.c (recpy_bt_insn_pc): Use
	gdb_py_object_from_ulongest.
	* python/py-lazy-string.c (stpy_get_address): Use
	gdb_py_object_from_ulongest.
	* python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
	* python/py-arch.c (archpy_disassemble): Use
	gdb_py_object_from_ulongest and gdb_py_object_from_longest.  Fix
	error handling.
2020-09-15 11:08:56 -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
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
py-finishbreakpoint.c
py-frame.c Don't use gdb_py_long_from_ulongest 2020-09-15 11:08:56 -06:00
py-framefilter.c
py-function.c
py-gdb-readline.c
py-inferior.c Convert CORE_ADDR to Python using gdb_py_object_from_ulongest 2020-08-17 08:50:35 -06:00
py-infevents.c Convert CORE_ADDR to Python using gdb_py_object_from_ulongest 2020-08-17 08:50:35 -06:00
py-infthread.c
py-instruction.c
py-instruction.h
py-lazy-string.c Don't use gdb_py_long_from_ulongest 2020-09-15 11:08:56 -06:00
py-linetable.c Convert CORE_ADDR to Python using gdb_py_object_from_ulongest 2020-08-17 08:50:35 -06:00
py-newobjfileevent.c
py-objfile.c
py-param.c
py-prettyprint.c
py-progspace.c
py-record-btrace.c Don't use gdb_py_long_from_ulongest 2020-09-15 11:08:56 -06:00
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c Don't use PyInt_FromSsize_t 2020-09-15 11:08:56 -06:00
py-record.h
py-ref.h
py-registers.c gdb/python: make more use of RegisterDescriptors 2020-07-28 10:27:54 +01:00
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c
py-symtab.c Don't use gdb_py_long_from_ulongest 2020-09-15 11:08:56 -06:00
py-threadevent.c
py-tui.c
py-type.c Don't use gdb_py_long_from_longest 2020-09-15 11:08:56 -06:00
py-unwind.c gdb/python: make more use of RegisterDescriptors 2020-07-28 10:27:54 +01:00
py-utils.c
py-value.c Don't use gdb_py_long_from_ulongest 2020-09-15 11:08:56 -06:00
py-varobj.c
py-xmethods.c
python-config.py
python-internal.h Don't use gdb_py_long_from_ulongest 2020-09-15 11:08:56 -06:00
python.c gdb/python: Add gdb.Architecture.registers method 2020-07-06 15:06:06 +01:00
python.h