From: Stu Grossman Date: Mon, 28 Sep 1992 21:31:29 +0000 (+0000) Subject: energize.c (energize_wait): Use new interfaces to native/target routines. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f63f41df3a3dcde5d33c8ddabd59c44b1f13255d;p=binutils-gdb.git energize.c (energize_wait): Use new interfaces to native/target routines. --- diff --git a/gdb/energize.c b/gdb/energize.c index 9180eeb4bc3..b9bce2fb1fa 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 #include #include @@ -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;