summaryrefslogtreecommitdiff
path: root/tools/lldb-mi/Platform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lldb-mi/Platform.cpp')
-rw-r--r--tools/lldb-mi/Platform.cpp61
1 files changed, 1 insertions, 60 deletions
diff --git a/tools/lldb-mi/Platform.cpp b/tools/lldb-mi/Platform.cpp
index 6ff998d2265f..7e2eabf51b42 100644
--- a/tools/lldb-mi/Platform.cpp
+++ b/tools/lldb-mi/Platform.cpp
@@ -23,65 +23,12 @@ BOOL WINAPI CtrlHandler(DWORD ctrlType)
{
if (_ctrlHandler != NULL)
{
- _ctrlHandler(0);
+ _ctrlHandler(SIGINT);
return TRUE;
}
return FALSE;
}
-int
-ioctl(int d, int request, ...)
-{
- switch (request)
- {
- // request the console windows size
- case (TIOCGWINSZ):
- {
- va_list vl;
- va_start(vl, request);
- // locate the window size structure on stack
- winsize *ws = va_arg(vl, winsize *);
- // get screen buffer information
- CONSOLE_SCREEN_BUFFER_INFO info;
- if (GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &info) == TRUE)
- // fill in the columns
- ws->ws_col = info.dwMaximumWindowSize.X;
- va_end(vl);
- return 0;
- }
- break;
- default:
- assert(!"Not implemented!");
- }
- return -1;
-}
-
-int
-kill(pid_t pid, int sig)
-{
- // is the app trying to kill itself
- if (pid == getpid())
- exit(sig);
- //
- assert(!"Not implemented!");
- return -1;
-}
-
-int
-tcsetattr(int fd, int optional_actions, const struct termios *termios_p)
-{
- assert(!"Not implemented!");
- return -1;
-}
-
-int
-tcgetattr(int fildes, struct termios *termios_p)
-{
- // assert( !"Not implemented!" );
- // error return value (0=success)
- return -1;
-}
-
sighandler_t
signal(int sig, sighandler_t sigFunc)
{
@@ -93,12 +40,6 @@ signal(int sig, sighandler_t sigFunc)
SetConsoleCtrlHandler(CtrlHandler, TRUE);
}
break;
- case (SIGPIPE):
- case (SIGWINCH):
- case (SIGTSTP):
- case (SIGCONT):
- // ignore these for now
- break;
default:
assert(!"Not implemented!");
}