Sort includes for files gdb/[a-f]*.[chyl].
[deliverable/binutils-gdb.git] / gdb / breakpoint.h
index 63cb5370c16aa6bb5b2e7f382c0d139fcda472f5..3221719b889a77a9b09f69c646524e738f042b89 100644 (file)
@@ -1,5 +1,5 @@
 /* Data structures associated with breakpoints in GDB.
-   Copyright (C) 1992-2018 Free Software Foundation, Inc.
+   Copyright (C) 1992-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
 #if !defined (BREAKPOINT_H)
 #define BREAKPOINT_H 1
 
-#include "frame.h"
-#include "value.h"
-#include "vec.h"
+#include <vector>
+
+/* Local non-gdb includes.  */
 #include "ax.h"
+#include "cli/cli-script.h"
 #include "command.h"
-#include "break-common.h"
-#include "probe.h"
-#include "location.h"
-#include <vector>
 #include "common/array-view.h"
-#include "cli/cli-script.h"
+#include "common/break-common.h"
+#include "common/vec.h"
+#include "frame.h"
+#include "location.h"
+#include "probe.h"
+#include "value.h"
 
 struct block;
 struct gdbpy_breakpoint_object;
@@ -301,31 +303,19 @@ enum bp_loc_type
   bp_loc_other                 /* Miscellaneous...  */
 };
 
-/* This structure is a collection of function pointers that, if
-   available, will be called instead of performing the default action
-   for this bp_loc_type.  */
-
-struct bp_location_ops
-{
-  /* Destructor.  Releases everything from SELF (but not SELF
-     itself).  */
-  void (*dtor) (struct bp_location *self);
-};
-
 class bp_location
 {
 public:
   bp_location () = default;
 
-  bp_location (const bp_location_ops *ops, breakpoint *owner);
+  bp_location (breakpoint *owner);
+
+  virtual ~bp_location ();
 
   /* Chain pointer to the next breakpoint location for
      the same parent breakpoint.  */
   bp_location *next = NULL;
 
-  /* Methods associated with this location.  */
-  const bp_location_ops *ops = NULL;
-
   /* The reference count.  */
   int refc = 0;
 
@@ -1679,4 +1669,7 @@ extern void maybe_print_thread_hit_breakpoint (struct ui_out *uiout);
 /* Print the specified breakpoint.  */
 extern void print_breakpoint (breakpoint *bp);
 
+/* Command element for the 'commands' command.  */
+extern cmd_list_element *commands_cmd_element;
+
 #endif /* !defined (BREAKPOINT_H) */
This page took 0.026876 seconds and 4 git commands to generate.