@@ -1450,50 +1450,49 @@ main (int argc, const char **argv, char **envp)
14501450 */
14511451 db_level |= DB_BASIC | DB_CALL | DB_SHELL | DB_UPDATE_GOAL
14521452 | DB_MAKEFILES ;
1453- } else {
1454- /* debugging sets some things */
1455- if (debugger_opts ) {
1456- const char * * p ;
1457- b_show_version = true;
1458- for (p = debugger_opts -> list ; * p != 0 ; ++ p )
1459- {
1460- if (0 == strcmp (* p , "preread" )) {
1461- b_debugger_preread = true;
1462- db_level |= DB_READ_MAKEFILES ;
1463- }
1453+ }
1454+ /* debugging sets some things */
1455+ if (debugger_opts ) {
1456+ const char * * p ;
1457+ b_show_version = true;
1458+ for (p = debugger_opts -> list ; * p != 0 ; ++ p )
1459+ {
1460+ if (0 == strcmp (* p , "preread" )) {
1461+ b_debugger_preread = true;
1462+ db_level |= DB_READ_MAKEFILES ;
1463+ }
14641464
1465- if (0 == strcmp (* p , "goal" )) {
1466- b_debugger_goal = true;
1467- db_level |= DB_UPDATE_GOAL ;
1468- }
1465+ if (0 == strcmp (* p , "goal" )) {
1466+ b_debugger_goal = true;
1467+ db_level |= DB_UPDATE_GOAL ;
1468+ }
14691469
1470- if ( 0 == strcmp (* p , "full" ) || b_debugger_preread || b_debugger_goal
1471- || 0 == strcmp (* p , "preaction" ) ) {
1472- job_slots = 1 ;
1473- i_debugger_stepping = 1 ;
1474- i_debugger_nexting = 0 ;
1475- debugger_enabled = 1 ;
1476- /* For now we'll do basic debugging. Later, "stepping'
1477- will stop here while next won't - either way no printing.
1478- */
1479- db_level |= DB_BASIC | DB_CALL | DB_UPDATE_GOAL
1480- | b_debugger_goal ? 0 : DB_SHELL
1481- | DB_MAKEFILES ;
1482- }
1483- if ( 0 == strcmp (* p , "full" ) || b_debugger_goal
1484- || 0 == strcmp (* p , "error" ) ) {
1485- debugger_on_error |= (DEBUGGER_ON_ERROR |DEBUGGER_ON_FATAL );
1486- } else if ( 0 == strcmp (* p , "fatal" ) ) {
1487- debugger_on_error |= DEBUGGER_ON_FATAL ;
1488- }
1470+ if ( 0 == strcmp (* p , "full" ) || b_debugger_preread || b_debugger_goal
1471+ || 0 == strcmp (* p , "preaction" ) ) {
1472+ job_slots = 1 ;
1473+ i_debugger_stepping = 1 ;
1474+ i_debugger_nexting = 0 ;
1475+ debugger_enabled = 1 ;
1476+ /* For now we'll do basic debugging. Later, "stepping'
1477+ will stop here while next won't - either way no printing.
1478+ */
1479+ db_level |= DB_BASIC | DB_CALL | DB_UPDATE_GOAL
1480+ | b_debugger_goal ? 0 : DB_SHELL
1481+ | DB_MAKEFILES ;
1482+ }
1483+ if ( 0 == strcmp (* p , "full" ) || b_debugger_goal
1484+ || 0 == strcmp (* p , "error" ) ) {
1485+ debugger_on_error |= (DEBUGGER_ON_ERROR |DEBUGGER_ON_FATAL );
1486+ } else if ( 0 == strcmp (* p , "fatal" ) ) {
1487+ debugger_on_error |= DEBUGGER_ON_FATAL ;
14891488 }
1489+ }
14901490#ifndef HAVE_LIBREADLINE
1491- O (error , NILF ,
1492- "warning: you specified a debugger option, but you don't have readline support" );
1493- O (error , NILF ,
1494- "debugger support compiled in. Debugger options will be ignored." );
1491+ O (error , NILF ,
1492+ "warning: you specified a debugger option, but you don't have readline support" );
1493+ O (error , NILF ,
1494+ "debugger support compiled in. Debugger options will be ignored." );
14951495#endif
1496- }
14971496 }
14981497
14991498 /* Set always_make_flag if -B was given and we've not restarted already. */
0 commit comments