aboutsummaryrefslogtreecommitdiff
path: root/gdb/energize.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-09-28 21:31:29 +0000
committerStu Grossman <grossman@cygnus>1992-09-28 21:31:29 +0000
commitf63f41df3a3dcde5d33c8ddabd59c44b1f13255d (patch)
tree845ffb40a5891f6be89b94fccd223486365e0f5c /gdb/energize.c
parentb9ffe80ec69ee7a6bb92142e7e8bd5f869622bbe (diff)
downloadgdb-f63f41df3a3dcde5d33c8ddabd59c44b1f13255d.zip
gdb-f63f41df3a3dcde5d33c8ddabd59c44b1f13255d.tar.gz
gdb-f63f41df3a3dcde5d33c8ddabd59c44b1f13255d.tar.bz2
energize.c (energize_wait): Use new interfaces to native/target routines.
Diffstat (limited to 'gdb/energize.c')
-rw-r--r--gdb/energize.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/gdb/energize.c b/gdb/energize.c
index 9180eeb..b9bce2f 100644
--- a/gdb/energize.c
+++ b/gdb/energize.c
@@ -24,6 +24,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
+#include "target.h"
#include <sys/types.h>
#include <sys/time.h>
#include <sys/param.h>
@@ -1619,11 +1620,7 @@ energize_wait(status)
static sigset_t nullsigmask = {0};
if (!energize)
-#ifdef USE_PROC_FS
- return proc_wait (status);
-#else
- return wait(status);
-#endif
+ return target_wait(status);
#ifdef NCR486
action.sa_handler = iosig;
@@ -1634,11 +1631,7 @@ energize_wait(status)
signal(SIGIO, iosig);
#endif
-#ifdef USE_PROC_FS
- pid = proc_wait (status);
-#else
- pid = wait(status);
-#endif
+ pid = target_wait(status);
signal(SIGIO, SIG_IGN);
return pid;