aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-09-23 14:30:44 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-09-23 16:34:17 +0100
commit43a1fffa62060ce640749dcc9fc17058069ccba6 (patch)
treed1b77524f6e8f3533350f7a68fb1f3ec959d92f4 /gdb
parent4c73fafbbdf6e4b200e32d2d76e5b88e37e500c4 (diff)
downloadbinutils-43a1fffa62060ce640749dcc9fc17058069ccba6.zip
binutils-43a1fffa62060ce640749dcc9fc17058069ccba6.tar.gz
binutils-43a1fffa62060ce640749dcc9fc17058069ccba6.tar.bz2
gdb: update comment in code_breakpoint::re_set_default
Spotted a comment in code_breakpoint::re_set_default that was added in commit: commit 6cce025114ccd0f53cc552fde12b6329596c6c65 Date: Fri Mar 3 19:03:15 2023 +0000 gdb: only insert thread-specific breakpoints in the relevant inferior that was incorrect. The comment was not updated to take inferior specific breakpoints into account. This commit just updates the comment, there's no user visible changes after this commit.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/breakpoint.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 7fd50ba..d161e24 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -13136,9 +13136,10 @@ code_breakpoint::re_set_default (struct program_space *filter_pspace)
{
std::vector<symtab_and_line> expanded, expanded_end;
- /* If this breakpoint is thread-specific then find the program space in
- which the specific thread exists. Otherwise, for breakpoints that are
- not thread-specific THREAD_PSPACE will be nullptr. */
+ /* If this breakpoint is thread- or inferior-specific, then find the
+ program space in which this breakpoint exists. Otherwise, for
+ breakpoints that are not thread- or inferior-specific, BP_PSPACE will
+ be nullptr. */
program_space *bp_pspace
= find_program_space_for_breakpoint (this->thread, this->inferior);