This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Deprecate xbreak and friends.
- From: Michael Snyder <msnyder at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 1 Feb 2002 14:39:28 -0800
- Subject: [PATCH] Deprecate xbreak and friends.
2002-02-01 Michael Snyder <msnyder@redhat.com>
* hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.20
diff -c -3 -p -r1.20 hppa-tdep.c
*** hppa-tdep.c 2002/02/01 02:05:13 1.20
--- hppa-tdep.c 2002/02/01 22:44:12
*************** _initialize_hppa_tdep (void)
*** 4686,4693 ****
"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\
--- 4686,4694 ----
"Print unwind table entry at given address.",
&maintenanceprintlist);
! deprecate_cmd (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\
*************** This is useful for breaking on return to
*** 4697,4717 ****
\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
--- 4698,4720 ----
\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)), NULL);
! deprecate_cmd (add_com_alias ("xb", "xbreak", class_breakpoint, 1), NULL);
! deprecate_cmd (add_com_alias ("xbr", "xbreak", class_breakpoint, 1), NULL);
! deprecate_cmd (add_com_alias ("xbre", "xbreak", class_breakpoint, 1), NULL);
! deprecate_cmd (add_com_alias ("xbrea", "xbreak", class_breakpoint, 1), NULL);
! deprecate_cmd (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"), NULL);
c->completer = location_completer;
!
if (xdb_commands)
! deprecate_cmd (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"), NULL);
}
/* Copy the function value from VALBUF into the proper location