MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / DebugInitialize

Function DebugInitialize

source/Debugger/Debug.cpp:9302–9478  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

9300
9301//===========================================================================
9302void DebugInitialize ()
9303{
9304 AssemblerOff(); // update prompt
9305
9306#if _DEBUG
9307 uint32_t nError = 0;
9308#endif
9309
9310#if _DEBUG
9311 nError = GetLastError();
9312#endif
9313
9314 // Must select a bitmap into the temp DC !
9315// HDC hTmpDC = CreateCompatibleDC( FrameGetDC() );
9316
9317#if _DEBUG
9318 nError = GetLastError();
9319#endif
9320
9321 GetConsoleFontDC(); // Load font
9322
9323 memset( g_aConsoleDisplay, 0, sizeof( g_aConsoleDisplay ) ); // CONSOLE_WIDTH * CONSOLE_HEIGHT );
9324 ConsoleInputReset();
9325
9326 for ( int iWindow = 0; iWindow < NUM_WINDOWS; iWindow++ )
9327 {
9328 WindowSplit_t *pWindow = & g_aWindowConfig[ iWindow ];
9329
9330 pWindow->bSplit = false;
9331 pWindow->eTop = (Window_e) iWindow;
9332 pWindow->eBot = (Window_e) iWindow;
9333 }
9334
9335 g_iWindowThis = WINDOW_CODE;
9336 g_iWindowLast = WINDOW_CODE;
9337
9338 WindowUpdateDisasmSize();
9339
9340 ConfigColorsReset();
9341
9342 WindowUpdateConsoleDisplayedSize();
9343
9344 // CLEAR THE BREAKPOINT AND WATCH TABLES
9345 g_nBreakMemoryAddr = 0;
9346 g_breakpointHitID = -1;
9347 for (int i = 0; i < MAX_BREAKPOINTS; i++)
9348 g_aBreakpoints[i].Clear();
9349 g_nBreakpoints = 0;
9350 memset( g_aWatches , 0, MAX_WATCHES * sizeof(Watches_t) );
9351 g_nWatches = 0;
9352 memset( g_aZeroPagePointers, 0, MAX_ZEROPAGE_POINTERS * sizeof(ZeroPagePointers_t));
9353 g_nZeroPagePointers = 0;
9354
9355 CmdDebugStartup(0);
9356 g_bSymbolsDisplayMissingFile = true;
9357
9358#if OLD_FONT
9359 // CREATE A FONT FOR THE DEBUGGING SCREEN

Callers 1

RepeatInitializationFunction · 0.85

Calls 15

AssemblerOffFunction · 0.85
GetConsoleFontDCFunction · 0.85
ConsoleInputResetFunction · 0.85
WindowUpdateDisasmSizeFunction · 0.85
ConfigColorsResetFunction · 0.85
CmdDebugStartupFunction · 0.85
_Arg_1Function · 0.85
FontsInitializeFunction · 0.85
ConsoleBufferPushFormatFunction · 0.85
_Bookmark_ResetFunction · 0.85

Tested by

no test coverage detected