binutils-gdb/gdb/python
Simon Marchi 25558938d0 gdb: change thread_info::name to unique_xmalloc_ptr, add helper function
This started out as changing thread_info::name to a unique_xmalloc_ptr.
That showed that almost all users of that field had the same logic to
get a thread's name: use thread_info::name if non-nullptr, else ask the
target.  Factor out this logic in a new thread_name free function.  Make
the field private (rename to m_name) and add some accessors.

Change-Id: Iebdd95f4cd21fbefc505249bd1d05befc466a2fc
2021-09-24 17:25:55 -04:00
..
lib/gdb gdb: fix python/lib/gdb/__init__.py formatting 2021-06-22 15:07:50 -04:00
py-all-events.def
py-arch.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-auto-load.c gdb: remove unnecessary lookup_cmd when deprecating commands 2021-05-27 14:00:07 -04:00
py-block.c gdb/python: remove all uses of Py_TPFLAGS_HAVE_ITER 2021-09-09 09:50:38 +01:00
py-bpevent.c
py-breakpoint.c gdb/python: allow for catchpoint type breakpoints in python 2021-06-25 18:22:07 +01:00
py-cmd.c gdb: remove cmd_list_element::function::sfunc 2021-07-23 15:38:54 -04:00
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 gdb: remove iterate_over_breakpoints function 2021-05-27 14:58:37 -04:00
py-frame.c gdb/python: add PendingFrame.level and Frame.level methods 2021-06-21 16:20:08 +01:00
py-framefilter.c Remove uses of fprintf_symbol_filtered 2021-08-02 10:48:29 -06:00
py-function.c
py-gdb-readline.c
py-inferior.c gdb/python: remove all uses of Py_TPFLAGS_HAVE_ITER 2021-09-09 09:50:38 +01:00
py-infevents.c
py-infthread.c gdb: change thread_info::name to unique_xmalloc_ptr, add helper function 2021-09-24 17:25:55 -04:00
py-instruction.c
py-instruction.h
py-lazy-string.c
py-linetable.c gdb/python: remove all uses of Py_TPFLAGS_HAVE_ITER 2021-09-09 09:50:38 +01:00
py-newobjfileevent.c
py-objfile.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-param.c gdb: add context getter/setter to cmd_list_element 2021-06-25 21:35:40 -04:00
py-prettyprint.c gdb: fix some indentation issues 2021-05-27 15:01:28 -04:00
py-progspace.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-record-btrace.c
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c
py-record.h
py-ref.h
py-registers.c gdb/python: remove all uses of Py_TPFLAGS_HAVE_ITER 2021-09-09 09:50:38 +01:00
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c Restore gdb.SYMBOL_LABEL_DOMAIN constant 2021-06-03 14:56:55 +02:00
py-symtab.c gdb: delay python initialisation until gdbpy_finish_initialization 2021-04-28 09:56:20 +01:00
py-threadevent.c
py-tui.c Forward mouse click to python TUI window 2021-06-04 16:18:10 +02:00
py-type.c Change pointer_type to a method of struct type 2021-09-23 15:11:00 -06:00
py-unwind.c gdb: add names to unwinders, add debug messages when looking for unwinder 2021-06-29 12:05:03 -04:00
py-utils.c
py-value.c Change pointer_type to a method of struct type 2021-09-23 15:11:00 -06:00
py-varobj.c
py-xmethods.c
python-config.py gdb: re-format Python files using black 21.4b0 2021-05-07 10:56:20 -04:00
python-internal.h gdb/python: remove all uses of Py_TPFLAGS_HAVE_ITER 2021-09-09 09:50:38 +01:00
python.c Fix no-Python build 2021-09-13 07:49:36 -06:00
python.h