mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:32:56 +08:00
energize.c (energize_wait): Use new interfaces to native/target routines.
This commit is contained in:
@ -24,6 +24,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "symfile.h"
|
#include "symfile.h"
|
||||||
#include "objfiles.h"
|
#include "objfiles.h"
|
||||||
|
#include "target.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -1619,11 +1620,7 @@ energize_wait(status)
|
|||||||
static sigset_t nullsigmask = {0};
|
static sigset_t nullsigmask = {0};
|
||||||
|
|
||||||
if (!energize)
|
if (!energize)
|
||||||
#ifdef USE_PROC_FS
|
return target_wait(status);
|
||||||
return proc_wait (status);
|
|
||||||
#else
|
|
||||||
return wait(status);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef NCR486
|
#ifdef NCR486
|
||||||
action.sa_handler = iosig;
|
action.sa_handler = iosig;
|
||||||
@ -1634,11 +1631,7 @@ energize_wait(status)
|
|||||||
signal(SIGIO, iosig);
|
signal(SIGIO, iosig);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_PROC_FS
|
pid = target_wait(status);
|
||||||
pid = proc_wait (status);
|
|
||||||
#else
|
|
||||||
pid = wait(status);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
signal(SIGIO, SIG_IGN);
|
signal(SIGIO, SIG_IGN);
|
||||||
return pid;
|
return pid;
|
||||||
|
Reference in New Issue
Block a user