#include "bfd.h"
#include "symfile.h"
#include "objfiles.h"
+#include "target.h"
#include <sys/types.h>
#include <sys/time.h>
#include <sys/param.h>
}
#ifdef KERNEL_RECORD
-FILE *kerout;
+GDB_FILE *kerout;
static int
kernel_record(fd, ptr, num)
while (*text == ' ' || *text == '\t') text++;
- if (strcmp(text, "]*[") == 0) /* XXX - What does this mean??? */
+ if (STREQ(text, "]*[")) /* XXX - What does this mean??? */
break;
if (*text != '\000')
else
(*cmdblk->function.cfunc)(arg, from_tty);
- if (strcmp(cmdblk->name, "up") == 0
- || strcmp(cmdblk->name, "down") == 0
- || strcmp(cmdblk->name, "frame") == 0)
+ if (STREQ(cmdblk->name, "up")
+ || STREQ(cmdblk->name, "down")
+ || STREQ(cmdblk->name, "frame"))
send_location(get_frame_info(selected_frame)->pc,
selected_frame_level);
print_prompt();
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;
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;