2011-06-22 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Wed, 22 Jun 2011 17:16:00 +0000 (17:16 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 22 Jun 2011 17:16:00 +0000 (17:16 +0000)
* breakpoint.c (create_catchpoint_without_mention)
(create_catchpoint): Delete.

gdb/ChangeLog
gdb/breakpoint.c

index 041a8bbc632a6ea5587970df31198b3b2bff3f9f..20d60f64d71d8276ba476da19173abae17f297b1 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-22  Pedro Alves  <pedro@codesourcery.com>
+
+       * breakpoint.c (create_catchpoint_without_mention)
+       (create_catchpoint): Delete.
+
 2011-06-22  Pedro Alves  <pedro@codesourcery.com>
 
        * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
index 5fc45621fb1327710463c9855fa5e0dc9a9dd31d..e42034ebfd8680c394d69bd900cbfa1c39a451ce 100644 (file)
@@ -6873,48 +6873,6 @@ init_catchpoint (struct breakpoint *b,
   b->ops = ops;
 }
 
-/* Create a new breakpoint of the bp_catchpoint kind and return it,
-   but does NOT mention it nor update the global location list.
-   This is useful if you need to fill more fields in the
-   struct breakpoint before calling mention.
-
-   If TEMPFLAG is non-zero, then make the breakpoint temporary.
-   If COND_STRING is not NULL, then store it in the breakpoint.
-   OPS, if not NULL, is the breakpoint_ops structure associated
-   to the catchpoint.  */
-
-static struct breakpoint *
-create_catchpoint_without_mention (struct gdbarch *gdbarch, int tempflag,
-                                  char *cond_string,
-                                  struct breakpoint_ops *ops)
-{
-  struct breakpoint *b = XNEW (struct breakpoint);
-
-  init_catchpoint (b, gdbarch, tempflag, cond_string, ops);
-  return b;
-}
-
-/* Create a new breakpoint of the bp_catchpoint kind and return it.
-   If TEMPFLAG is non-zero, then make the breakpoint temporary.
-   If COND_STRING is not NULL, then store it in the breakpoint.
-   OPS, if not NULL, is the breakpoint_ops structure associated
-   to the catchpoint.  */
-
-static struct breakpoint *
-create_catchpoint (struct gdbarch *gdbarch, int tempflag,
-                  char *cond_string, struct breakpoint_ops *ops)
-{
-  struct breakpoint *b =
-    create_catchpoint_without_mention (gdbarch, tempflag, cond_string, ops);
-
-  mention (b);
-  observer_notify_breakpoint_created (b);
-  update_global_location_list (1);
-
-  return b;
-}
-
 static void
 create_fork_vfork_event_catchpoint (struct gdbarch *gdbarch,
                                    int tempflag, char *cond_string,