2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Fix debug builds of the debugger. Fixes #245. Fixes #246.

This commit is contained in:
Steven Watanabe
2017-12-05 18:26:09 -07:00
parent 0c3089d3c0
commit 192dedd2ee
2 changed files with 3 additions and 4 deletions

View File

@@ -1102,7 +1102,7 @@ static void debug_start_child( int argc, const char * * argv )
PROCESS_INFORMATION pi = { NULL, NULL, 0, 0 };
STARTUPINFO si = { sizeof( STARTUPINFO ), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0 };
assert( DEBUG_STATE == DEBUG_NO_CHILD );
assert( debug_state == DEBUG_NO_CHILD );
if ( ! CreatePipe( &pipe1[ 0 ], &pipe1[ 1 ], &sa, 0 ) )
{
printf("internal error\n");
@@ -1189,7 +1189,7 @@ static void debug_start_child( int argc, const char * * argv )
int read_fd;
int pid;
int i;
assert( DEBUG_STATE == DEBUG_NO_CHILD );
assert( debug_state == DEBUG_NO_CHILD );
pipe(pipe1);
pipe(pipe2);
pid = fork();

View File

@@ -269,6 +269,7 @@ int main( int argc, char * * argv, char * * arg_environ )
#endif
cwd_init();
constants_init();
#ifdef JAM_DEBUGGER
@@ -449,8 +450,6 @@ int main( int argc, char * * argv, char * * arg_environ )
/* ++globs.noexec; */
}
constants_init();
{
PROFILE_ENTER( MAIN );