make DEBUGBREAK flag for add_application work again

This commit is contained in:
Wolfgang Thaller 2017-09-23 04:00:30 +02:00
parent 008ffe1401
commit 278780642e
2 changed files with 7 additions and 2 deletions

View File

@ -43,7 +43,7 @@ function(add_application name)
add_executable(${name} ${files} ${rez_files}) add_executable(${name} ${files} ${rez_files})
if(${ARGS_DEBUGBREAK}) if(${ARGS_DEBUGBREAK})
list(APPEND ARGS_MAKEAPPL_ARGS -b) list(APPEND ARGS_MAKEAPPL_ARGS -DBREAK_ON_ENTRY)
endif() endif()
if(${ARGS_CONSOLE}) if(${ARGS_CONSOLE})
target_link_libraries(${name} RetroConsole) target_link_libraries(${name} RetroConsole)

View File

@ -4,7 +4,12 @@
resource 'CODE' (0) RETRO68_JUMP_TABLE; resource 'CODE' (0) RETRO68_JUMP_TABLE;
resource 'CODE' (1) { resource 'CODE' (1) {
dontBreakAtEntry, $$read(FLT_FILE_NAME); #ifdef BREAK_ON_ENTRY
breakAtEntry,
#else
dontBreakAtEntry,
#endif
$$read(FLT_FILE_NAME);
}; };
resource 'SIZE' (-1) { resource 'SIZE' (-1) {