Remove unused breakpoint fields.
authorVladimir Prus <vladimir@codesourcery.com>
Tue, 20 Nov 2007 17:37:35 +0000 (17:37 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Tue, 20 Nov 2007 17:37:35 +0000 (17:37 +0000)
* breakpoint.h (struct breakpoint): Remove
from_tty and flag fields.
* breakpoint.c (break_command_1): Don't set
from_tty and flag field set of breakpoint.
(create_ada_exception_breakpoint): Don't set
the from_tty field.

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

index 341f6665abf87b2eab5d2a02e05f6f597c410c52..54218d7b732c6a61cb486c943264bcca1a06f8cc 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-20  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Remove unused breakpoint fields.
+       * breakpoint.h (struct breakpoint): Remove
+       from_tty and flag fields.
+       * breakpoint.c (break_command_1): Don't set
+       from_tty and flag field set of breakpoint.
+       (create_ada_exception_breakpoint): Don't set
+       the from_tty field.
+
 2007-11-20  David Ung  <davidu@mips.com>
             Maciej W. Rozycki  <macro@mips.com>
 
index 2f4bd8b878b985e0a859b4b55f7fb4c8a392dd3a..81614aa9efcbfe609af790c4df9f6d43eb4b96b7 100644 (file)
@@ -5589,8 +5589,6 @@ break_command_1 (char *arg, int flag, int from_tty)
       b->cond_string = cond_string;
       b->ignore_count = ignore_count;
       b->disposition = tempflag ? disp_del : disp_donttouch;
-      b->from_tty = from_tty;
-      b->flag = flag;
       b->condition_not_parsed = 1;
       mention (b);
     }
@@ -6696,7 +6694,6 @@ create_ada_exception_breakpoint (struct symtab_and_line sal,
   b->exp_string = exp_string;
   b->thread = -1;
   b->ops = ops;
-  b->from_tty = from_tty;
 
   mention (b);
 }
index f13d41b4353a074c9c1843358e0fdf915b7101ee..e4aa72a7a35a8bf92f27caa42c94a87b71fdd7da 100644 (file)
@@ -445,14 +445,6 @@ struct breakpoint
     /* Methods associated with this breakpoint.  */
     struct breakpoint_ops *ops;
 
-    /* Was breakpoint issued from a tty?  Saved for the use of pending breakpoints.  */
-    int from_tty;
-
-    /* Flag value for pending breakpoint.
-       first bit  : 0 non-temporary, 1 temporary.
-       second bit : 0 normal breakpoint, 1 hardware breakpoint. */
-    int flag;
-
     /* Is breakpoint's condition not yet parsed because we found
        no location initially so had no context to parse
        the condition in.  */