binutils-gdb/gdb/python
Andrew Burgess 2ecee23675 gdb: use -1 for breakpoint::task default value
Within the breakpoint struct we have two fields ::thread and ::task
which are used for thread or task specific breakpoints.  When a
breakpoint doesn't have a specific thread or task then these fields
have the values -1 and 0 respectively.

There's no particular reason (as far as I can tell) why these two
"default" values are different, and I find the difference a little
confusing.  Long term I'd like to potentially fold these two fields
into a single field, but that isn't what this commit does.

What this commit does is switch to using -1 as the "default" value for
both fields, this means that the default for breakpoint::task has
changed from 0 to -1.   I've updated all the code I can find that
relied on the value of 0, and I see no test regressions, especially in
gdb.ada/tasks.exp, which still fully passes.

There should be no user visible changes after this commit.

Approved-By: Pedro Alves <pedro@palves.net>
2023-02-12 05:46:44 +00:00
..
lib/gdb Ensure all DAP requests are keyword-only 2023-02-10 14:04:34 -07:00
py-all-events.def Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-arch.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-auto-load.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-block.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-bpevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-breakpoint.c gdb: use -1 for breakpoint::task default value 2023-02-12 05:46:44 +00:00
py-cmd.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-connection.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-continueevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-dap.c Simplify interp::exec / interp_exec - let exceptions propagate 2023-02-08 17:28:42 +00:00
py-disasm.c gdb: remove language.h include from frame.h 2023-01-20 14:48:56 -05:00
py-event-types.def Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-event.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-event.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-events.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-evtregistry.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-evts.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-exitedevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-finishbreakpoint.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-frame.c gdb: remove language.h include from frame.h 2023-01-20 14:48:56 -05:00
py-framefilter.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-function.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-gdb-readline.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-inferior.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-infevents.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-infthread.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-instruction.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-instruction.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-lazy-string.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-linetable.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-membuf.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-micmd.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-newobjfileevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-objfile.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-param.c GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
py-prettyprint.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-progspace.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record-btrace.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record-btrace.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record-full.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record-full.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-record.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-ref.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-registers.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-signalevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-stopevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-stopevent.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-symbol.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-symtab.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-threadevent.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-tui.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-type.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-unwind.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-utils.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-value.c GDB: Add a character string limiting option 2023-01-19 21:15:56 +00:00
py-varobj.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
py-xmethods.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
python-config.py gdb/python-config: replace deprecated distutils.sysconfig 2022-09-01 04:51:33 -04:00
python-internal.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
python.c GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
python.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00