binutils-gdb/gdb/python
Tom Tromey 5e20b4cd17 Use tuples for default arguments in DAP
My co-worker Kévin taught me that using a mutable object as a default
argument in Python is somewhat dangerous, because the object is
created a single time (when the function is defined), and so if it is
mutated in the body of the function, the changes will stick around.

This patch changes the cases like this in DAP to use () rather than []
as the default.  This patch is merely preventative, as no bugs like
this are in the code.
2023-06-12 12:09:28 -06:00
..
lib/gdb Use tuples for default arguments in DAP 2023-06-12 12:09:28 -06:00
py-all-events.def
py-arch.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-auto-load.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-block.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-bpevent.c
py-breakpoint.c gdb: remove breakpoint_pointer_iterator 2023-05-25 09:52:22 -04:00
py-cmd.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-connection.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-continueevent.c
py-dap.c
py-disasm.c [gdb] Fix more typos 2023-06-05 12:53:15 +02:00
py-event-types.def
py-event.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-event.h
py-events.h
py-evtregistry.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c gdb: remove breakpoint_pointer_iterator 2023-05-25 09:52:22 -04:00
py-frame.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-framefilter.c Don't treat references to compound values as "simple". 2023-05-04 08:58:18 -06:00
py-function.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-gdb-readline.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-inferior.c Add attributes and methods to gdb.Inferior 2023-05-24 06:16:10 -06:00
py-infevents.c
py-infthread.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-instruction.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-instruction.h
py-lazy-string.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-linetable.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-membuf.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-mi.c Implement gdb.execute_mi 2023-05-23 10:09:28 -06:00
py-micmd.c Change mi_parse_argv to a method 2023-05-23 10:09:27 -06:00
py-newobjfileevent.c
py-objfile.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-param.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-prettyprint.c
py-progspace.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-record-btrace.c python, btrace: Fix some small formatting issues. 2023-05-31 09:27:17 +02:00
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c python, btrace: Fix some small formatting issues. 2023-05-31 09:27:17 +02:00
py-record.h
py-ref.h
py-registers.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-symtab.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-threadevent.c
py-tui.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-type.c Add dynamic_prop::is_constant 2023-05-12 12:30:28 -06:00
py-unwind.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
py-utils.c
py-value.c gdb: building inferior strings from within GDB 2023-06-05 13:25:08 +01:00
py-varobj.c
py-xmethods.c gdb/python: add mechanism to manage Python initialization functions 2023-05-05 18:24:42 +01:00
python-config.py
python-internal.h Implement gdb.execute_mi 2023-05-23 10:09:28 -06:00
python.c [gdb] Fix typos 2023-06-03 22:43:57 +02:00
python.h