2002-01-31 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 1 Feb 2002 02:05:13 +0000 (02:05 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 1 Feb 2002 02:05:13 +0000 (02:05 +0000)
* breakpoint.c (break_at_finish_command): Export.
(break_at_finish_at_depth_command): Export.
(tbreak_at_finish_command): Export.
(_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
* hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
"tbreak" commands, which are HPPA specific.

gdb/ChangeLog
gdb/breakpoint.c
gdb/hppa-tdep.c

index f29b0e82dda682c94d6364e26fee13ea3432bc5c..92de3bca0217da4fce2c0989de2c8d6776ca8b7a 100644 (file)
@@ -1,5 +1,12 @@
 2002-01-31  Michael Snyder  <msnyder@redhat.com>
 
+       * breakpoint.c (break_at_finish_command): Export.
+       (break_at_finish_at_depth_command): Export.
+       (tbreak_at_finish_command): Export.
+       (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
+       * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
+       "tbreak" commands, which are HPPA specific.
+
        * printcmd.c (disassemble_command): Remove an ancient
        artifact of an old merge.
 
index c55d0ea511c2c04bf467756445c4fde1550d2cf2..8ad7848bceb0f4a1dfffc46f6725c98f34cc8f50 100644 (file)
@@ -4961,13 +4961,13 @@ break_command (char *arg, int from_tty)
   break_command_1 (arg, 0, from_tty);
 }
 
-static void
+void
 break_at_finish_command (char *arg, int from_tty)
 {
   break_at_finish_command_1 (arg, 0, from_tty);
 }
 
-static void
+void
 break_at_finish_at_depth_command (char *arg, int from_tty)
 {
   break_at_finish_at_depth_command_1 (arg, 0, from_tty);
@@ -4979,7 +4979,7 @@ tbreak_command (char *arg, int from_tty)
   break_command_1 (arg, BP_TEMPFLAG, from_tty);
 }
 
-static void
+void
 tbreak_at_finish_command (char *arg, int from_tty)
 {
   break_at_finish_command_1 (arg, BP_TEMPFLAG, from_tty);
@@ -7357,11 +7357,6 @@ so it will be deleted when hit.  Equivalent to \"break\" followed\n\
 by using \"enable delete\" on the breakpoint number.");
   c->completer = location_completer;
 
-  c = add_com ("txbreak", class_breakpoint, tbreak_at_finish_command,
-              "Set temporary breakpoint at procedure exit.  Either there should\n\
-be no argument or the argument must be a depth.\n");
-  c->completer = location_completer;
-
   c = add_com ("hbreak", class_breakpoint, hbreak_command,
               "Set a hardware assisted  breakpoint. Args like \"break\" command.\n\
 Like \"break\" except the breakpoint requires hardware support,\n\
@@ -7493,30 +7488,10 @@ Do \"help breakpoints\" for info on other commands dealing with breakpoints.", N
   add_com_alias ("bre", "break", class_run, 1);
   add_com_alias ("brea", "break", class_run, 1);
 
-  add_com ("xbreak", class_breakpoint, break_at_finish_command,
-          concat ("Set breakpoint at procedure exit. \n\
-Argument may be function name, or \"*\" and an address.\n\
-If function is specified, break at end of code for that function.\n\
-If an address is specified, break at the end of the function that contains \n\
-that exact address.\n",
-                  "With no arg, uses current execution address of selected stack frame.\n\
-This is useful for breaking on return to a stack frame.\n\
-\n\
-Multiple breakpoints at one place are permitted, and useful if conditional.\n\
-\n\
-Do \"help breakpoints\" for info on other commands dealing with breakpoints.", NULL));
-  add_com_alias ("xb", "xbreak", class_breakpoint, 1);
-  add_com_alias ("xbr", "xbreak", class_breakpoint, 1);
-  add_com_alias ("xbre", "xbreak", class_breakpoint, 1);
-  add_com_alias ("xbrea", "xbreak", class_breakpoint, 1);
-
-  if (xdb_commands)
+ if (xdb_commands)
     {
       add_com_alias ("ba", "break", class_breakpoint, 1);
       add_com_alias ("bu", "ubreak", class_breakpoint, 1);
-      add_com ("bx", class_breakpoint, break_at_finish_at_depth_command,
-              "Set breakpoint at procedure exit.  Either there should\n\
-be no argument or the argument must be a depth.\n");
     }
 
   if (dbx_commands)
index 973f778f9fe8f2820d56b06d7941f8ee607a4a4f..0fcf6bfae86641f64b95c8a2595373e1401f117c 100644 (file)
@@ -4675,11 +4675,43 @@ hppa_skip_permanent_breakpoint (void)
 void
 _initialize_hppa_tdep (void)
 {
+  struct cmd_list_element *c;
+  void break_at_finish_command (char *arg, int from_tty);
+  void tbreak_at_finish_command (char *arg, int from_tty);
+  void break_at_finish_at_depth_command (char *arg, int from_tty);
+
   tm_print_insn = print_insn_hppa;
 
   add_cmd ("unwind", class_maintenance, unwind_command,
           "Print unwind table entry at given address.",
           &maintenanceprintlist);
+
+  add_com ("xbreak", class_breakpoint, break_at_finish_command,
+          concat ("Set breakpoint at procedure exit. \n\
+Argument may be function name, or \"*\" and an address.\n\
+If function is specified, break at end of code for that function.\n\
+If an address is specified, break at the end of the function that contains \n\
+that exact address.\n",
+                  "With no arg, uses current execution address of selected stack frame.\n\
+This is useful for breaking on return to a stack frame.\n\
+\n\
+Multiple breakpoints at one place are permitted, and useful if conditional.\n\
+\n\
+Do \"help breakpoints\" for info on other commands dealing with breakpoints.", NULL));
+  add_com_alias ("xb", "xbreak", class_breakpoint, 1);
+  add_com_alias ("xbr", "xbreak", class_breakpoint, 1);
+  add_com_alias ("xbre", "xbreak", class_breakpoint, 1);
+  add_com_alias ("xbrea", "xbreak", class_breakpoint, 1);
+
+  c = add_com ("txbreak", class_breakpoint, tbreak_at_finish_command,
+              "Set temporary breakpoint at procedure exit.  Either there should\n\
+be no argument or the argument must be a depth.\n");
+  c->completer = location_completer;
+
+  if (xdb_commands)
+    add_com ("bx", class_breakpoint, break_at_finish_at_depth_command,
+            "Set breakpoint at procedure exit.  Either there should\n\
+be no argument or the argument must be a depth.\n");
 }
 
 /* Copy the function value from VALBUF into the proper location
This page took 0.053333 seconds and 4 git commands to generate.