summaryrefslogtreecommitdiff
path: root/tools/lldb-mi/Platform.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2015-07-03 16:57:06 +0000
committerEd Maste <emaste@FreeBSD.org>2015-07-03 16:57:06 +0000
commit5e95aa85bb660d45e9905ef1d7180b2678280660 (patch)
tree3c2e41c3be19b7fc7666ed45a5f91ec3b6e35f2a /tools/lldb-mi/Platform.cpp
parent12bd4897ff0678fa663e09d78ebc22dd255ceb86 (diff)
Notes
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!");
}