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:
parent
22b2f0e6b5
commit
a9fbc5482c
@ -402,7 +402,20 @@ read_line(char *buffer, int32 maxLength,
|
||||
readChar = arch_debug_serial_getchar;
|
||||
|
||||
while (!done) {
|
||||
c = readChar();
|
||||
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) {
|
||||
case '\n':
|
||||
|
Loading…
Reference in New Issue
Block a user