Give the debugger add-ons a chance when reading input characters. They already

got a debugger_getchar hook, it just wasn't used yet. Not that there would be
any debugger add-on implementing that hook currently...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25809 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2008-06-05 21:16:34 +00:00
parent 22b2f0e6b5
commit a9fbc5482c

View File

@ -402,6 +402,19 @@ read_line(char *buffer, int32 maxLength,
readChar = arch_debug_serial_getchar;
while (!done) {
bool hasChar = false;
for (int32 i = 0; i < kMaxDebuggerModules; i++) {
if (sDebuggerModules[i] && sDebuggerModules[i]->debugger_getchar) {
int getChar = sDebuggerModules[i]->debugger_getchar();
if (getChar >= 0) {
hasChar = true;
c = (char)getChar;
break;
}
}
}
if (!hasChar)
c = readChar();
switch (c) {