Bug 421231 js.c needs to call JSDB_TermDebugger r=brendan NPOTB

This commit is contained in:
timeless@mozdev.org 2008-03-09 03:05:29 -07:00
parent 8c3435c2d7
commit 1daf469d2c

View File

@ -3808,6 +3808,9 @@ main(int argc, char **argv, char **envp)
#ifdef JSDEBUGGER_JAVA_UI
JNIEnv *java_env;
#endif
#ifdef JSDEBUGGER_C_UI
JSBool jsdbc;
#endif /* JSDEBUGGER_C_UI */
CheckHelpMessages();
setlocale(LC_ALL, "");
@ -3888,7 +3891,7 @@ main(int argc, char **argv, char **envp)
*/
#endif /* JSDEBUGGER_JAVA_UI */
#ifdef JSDEBUGGER_C_UI
JSDB_InitDebugger(rt, _jsdc, 0);
jsdbc = JSDB_InitDebugger(rt, _jsdc, 0);
#endif /* JSDEBUGGER_C_UI */
#endif /* JSDEBUGGER */
@ -3926,8 +3929,13 @@ main(int argc, char **argv, char **envp)
result = ProcessArgs(cx, glob, argv, argc);
#ifdef JSDEBUGGER
if (_jsdc)
if (_jsdc) {
#ifdef JSDEBUGGER_C_UI
if (jsdbc)
JSDB_TermDebugger(_jsdc);
#endif /* JSDEBUGGER_C_UI */
JSD_DebuggerOff(_jsdc);
}
#endif /* JSDEBUGGER */
#ifdef JS_THREADSAFE