Remove unused function make_breakpoint_permanent.
authorLuis Machado <lgustavo@codesourcery.com>
Wed, 17 Jun 2015 14:08:55 +0000 (11:08 -0300)
committerLuis Machado <lgustavo@codesourcery.com>
Wed, 17 Jun 2015 19:09:24 +0000 (16:09 -0300)
make_breakpoint_permanent is no longer used anywhere and can be
safely removed.

gdb/ChangeLog:

2015-06-17  Luis Machado  <lgustavo@codesourcery.com>

* breakpoint.c (make_breakpoint_permanent): Remove unused
function.
* breakpoint.h (make_breakpoint_permanent): Remove declaration.

gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h

index e1d9349ec8f94ecc156eaf7710240ac0f6427395..0e53882cc6b877292dcc4753cd23991388961936 100644 (file)
@@ -1,3 +1,9 @@
+2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
+
+       * breakpoint.c (make_breakpoint_permanent): Remove unused
+       function.
+       * breakpoint.h (make_breakpoint_permanent): Remove declaration.
+
 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
 
        PR gdb/16999
index 0a960f89359ae7aed5a79642d8d395ddfbb14b0e..7f9e161b5716352f4215e8a798d728188e4c8458 100644 (file)
@@ -7431,26 +7431,6 @@ set_raw_breakpoint (struct gdbarch *gdbarch,
   return b;
 }
 
-
-/* Note that the breakpoint object B describes a permanent breakpoint
-   instruction, hard-wired into the inferior's code.  */
-void
-make_breakpoint_permanent (struct breakpoint *b)
-{
-  struct bp_location *bl;
-
-  /* By definition, permanent breakpoints are already present in the
-     code.  Mark all locations as inserted.  For now,
-     make_breakpoint_permanent is called in just one place, so it's
-     hard to say if it's reasonable to have permanent breakpoint with
-     multiple locations or not, but it's easy to implement.  */
-  for (bl = b->loc; bl; bl = bl->next)
-    {
-      bl->permanent = 1;
-      bl->inserted = 1;
-    }
-}
-
 /* Call this routine when stepping and nexting to enable a breakpoint
    if we do a longjmp() or 'throw' in TP.  FRAME is the frame which
    initiated the operation.  */
index 562a6b6a249ddba666595bbdd6a107a527485703..94d93852d3599558c5e3c86c2dcc7c5fff2ca1a2 100644 (file)
@@ -1442,8 +1442,6 @@ extern void breakpoint_set_task (struct breakpoint *b, int task);
 /* Clear the "inserted" flag in all breakpoints.  */
 extern void mark_breakpoints_out (void);
 
-extern void make_breakpoint_permanent (struct breakpoint *);
-
 extern struct breakpoint *create_jit_event_breakpoint (struct gdbarch *,
                                                        CORE_ADDR);
 
This page took 0.032202 seconds and 4 git commands to generate.