mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
gdb: fix describe_other_breakpoints for default task being -1
Commit: commit2ecee23675CommitDate: Sun Feb 12 05:46:44 2023 +0000 gdb: use -1 for breakpoint::task default value Failed to take account of an earlier commit: commitf1f517e810CommitDate: Sat Feb 11 17:36:24 2023 +0000 gdb: show task number in describe_other_breakpoints That both of these are my own commits is only more embarrassing. This small fix updates describe_other_breakpoints to take account of the default task number now being -1. This fixes regressions in gdb.base/break.exp, gdb.base/break-always.exp, and many other tests.
This commit is contained in:
@@ -7057,7 +7057,7 @@ describe_other_breakpoints (struct gdbarch *gdbarch,
|
||||
struct thread_info *thr = find_thread_global_id (b->thread);
|
||||
gdb_printf (" (thread %s)", print_thread_id (thr));
|
||||
}
|
||||
else if (b->task != 0)
|
||||
else if (b->task != -1)
|
||||
gdb_printf (" (task %d)", b->task);
|
||||
gdb_printf ("%s%s ",
|
||||
((b->enable_state == bp_disabled
|
||||
|
||||
Reference in New Issue
Block a user