This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
remove waitabit() from i386-stub.c
- To: gdb-patches@sourceware.cygnus.com
- Subject: remove waitabit() from i386-stub.c
- From: jtc@redback.com (J.T. Conklin)
- Date: 17 Aug 1999 23:10:18 -0700
- Reply-To: jtc@redback.com
This change was once included as part of a change to add 'P' protocol
support to the i386-stub.c. It must have been overlooked at the time.
This removes the function waitabit() from the i386-stub. It's only
purpose is to needlessly delay the return of the breakpoint()
function.
--jtc
1999-08-17 J.T. Conklin <jtc@redback.com>
* i386-stub.c (waitabit): Removed.
(breakpoint): Update.
Index: i386-stub.c
===================================================================
RCS file: /home/jtc/CVSROOT/gdb/gdb/i386-stub.c,v
retrieving revision 1.3
diff -c -r1.3 i386-stub.c
*** i386-stub.c 1999/08/18 06:02:34 1.3
--- i386-stub.c 1999/08/18 06:03:11
***************
*** 116,123 ****
int remote_debug;
/* debug > 0 prints ill-formed commands in valid packets & checksum errors */
- void waitabit();
-
static const char hexchars[]="0123456789abcdef";
/* Number of registers. */
--- 116,121 ----
***************
*** 916,934 ****
void breakpoint()
{
if (initialized)
- #if 0
- handle_exception(3);
- #else
BREAKPOINT();
- #endif
- waitabit();
- }
-
- int waitlimit = 1000000;
-
- void
- waitabit()
- {
- int i;
- for (i = 0; i < waitlimit; i++) ;
}
--- 914,918 ----
--
J.T. Conklin
RedBack Networks