aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-30 07:49:11 -0600
committerTom Tromey <tom@tromey.com>2022-05-06 12:03:34 -0600
commit04d0163c3ff280a2ec7d4e06594da750ef8f96d5 (patch)
tree51e6f870b108c69276fa5e4823f248b7925f9921 /gdb/breakpoint.h
parentdd9cd55e990bcc9f8448cac38d242d53974b3604 (diff)
downloadgdb-04d0163c3ff280a2ec7d4e06594da750ef8f96d5.zip
gdb-04d0163c3ff280a2ec7d4e06594da750ef8f96d5.tar.gz
gdb-04d0163c3ff280a2ec7d4e06594da750ef8f96d5.tar.bz2
Change print_recreate_thread to a method
This changes print_recreate_thread to be a method on breakpoint. This function is only used as a helper by print_recreate methods, so I thought this transformation made sense.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 1322bc1..7d4e874 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -586,15 +586,6 @@ struct breakpoint_ops
int, int, int, unsigned);
};
-/* Helper for breakpoint_ops->print_recreate implementations. Prints
- the "thread" or "task" condition of B, and then a newline.
-
- Necessary because most breakpoint implementations accept
- thread/task conditions at the end of the spec line, like "break foo
- thread 1", which needs outputting before any breakpoint-type
- specific extra command necessary for B's recreation. */
-extern void print_recreate_thread (struct breakpoint *b, struct ui_file *fp);
-
enum watchpoint_triggered
{
/* This watchpoint definitely did not trigger. */
@@ -742,7 +733,6 @@ struct breakpoint
/* Nothing to do. */
}
-
/* Return a range of this breakpoint's locations. */
bp_location_range locations ();
@@ -846,6 +836,17 @@ struct breakpoint
/* Same as py_bp_object, but for Scheme. */
gdbscm_breakpoint_object *scm_bp_object = NULL;
+
+protected:
+
+ /* Helper for breakpoint_ops->print_recreate implementations. Prints
+ the "thread" or "task" condition of B, and then a newline.
+
+ Necessary because most breakpoint implementations accept
+ thread/task conditions at the end of the spec line, like "break foo
+ thread 1", which needs outputting before any breakpoint-type
+ specific extra command necessary for B's recreation. */
+ void print_recreate_thread (struct ui_file *fp) const;
};
/* The structure to be inherit by all kinds of breakpoints (real