aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_usleep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-02-17 11:23:20 -0700
committerTom Tromey <tromey@adacore.com>2019-09-26 08:43:15 -0600
commit27a900b8657d8e20a24026bb3485a5f6c9729615 (patch)
tree5b768fdcac3552b21f084bbdbe9b5d7f38dd471a /gdb/gdb_usleep.c
parent5d63b30afa2d1e24a3d1e6fe97507473e0545a02 (diff)
downloadbinutils-27a900b8657d8e20a24026bb3485a5f6c9729615.zip
binutils-27a900b8657d8e20a24026bb3485a5f6c9729615.tar.gz
binutils-27a900b8657d8e20a24026bb3485a5f6c9729615.tar.bz2
Remove gdb_usleep.c
I noticed that gdb_usleep is unused, so this patch removes it. gdb/ChangeLog 2019-09-26 Tom Tromey <tom@tromey.com> * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c. (HFILES_NO_SRCDIR): Remove gdb_usleep.h. * gdb_usleep.h: Remove. * gdb_usleep.c: Remove. * utils.c: Don't include gdb_usleep.h.
Diffstat (limited to 'gdb/gdb_usleep.c')
-rw-r--r--gdb/gdb_usleep.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/gdb/gdb_usleep.c b/gdb/gdb_usleep.c
deleted file mode 100644
index 9a92ced..0000000
--- a/gdb/gdb_usleep.c
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Copyright (C) 2009-2019 Free Software Foundation, Inc.
-
- This file is part of GDB.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
-
-#include "defs.h"
-#include "gdb_usleep.h"
-#include "gdb_select.h"
-#include "gdbsupport/gdb_sys_time.h"
-
-int
-gdb_usleep (int usec)
-{
- struct timeval delay;
- int retval;
-
- delay.tv_sec = usec / 1000000;
- delay.tv_usec = usec % 1000000;
- retval = gdb_select (0, 0, 0, 0, &delay);
-
- if (retval < 0)
- retval = -1;
- else
- retval = 0;
-
- return retval;
-}