aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-01-10 08:17:28 -0700
committerTom Tromey <tromey@adacore.com>2023-01-10 14:09:32 -0700
commit7987c4636abedbf4cd5658ac594e3b936eb43d91 (patch)
tree435c64e4ca4734bc2a3cdf9aa75c7003a9afc133 /gdb/breakpoint.h
parent8ec0b0b5df0ebe28c32900afc7ae8ff22b21f381 (diff)
downloadgdb-7987c4636abedbf4cd5658ac594e3b936eb43d91.zip
gdb-7987c4636abedbf4cd5658ac594e3b936eb43d91.tar.gz
gdb-7987c4636abedbf4cd5658ac594e3b936eb43d91.tar.bz2
Convert say_where to method on code_breakpoint
'say_where' is only useful (and only called for) code breakpoints, so convert it to be a protected method on code_breakpoint.
Diffstat (limited to 'gdb/breakpoint.h')
-rw-r--r--gdb/breakpoint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 7289a09..399bd03 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -898,6 +898,10 @@ protected:
(location_spec *locspec,
struct program_space *search_pspace,
int *found);
+
+ /* Helper for breakpoint and tracepoint breakpoint->mention
+ callbacks. */
+ void say_where () const;
};
/* An instance of this type is used to represent a watchpoint,