debug_view_disasm::debug_view_disasm(running_machine &machine, debug_view_osd_update_func osdupdate, void *osdprivate) : debug_view(machine, DVT_DISASSEMBLY, osdupdate, osdprivate), m_right_column(DASM_RIGHTCOL_RAW), m_backwards_steps(3), m_dasm_width(DEFAULT_DASM_WIDTH), m_last_direct_raw(NULL), m_last_direct_decrypted(NULL), m_last_change_count(0), m_last_pcbyte(0), m_divider1(0), m_divider2(0), m_divider3(0), m_expression(machine) { // fail if no available sources enumerate_sources(); if (m_source_list.count() == 0) throw std::bad_alloc(); // count the number of comments int total_comments = 0; for (const debug_view_source *source = m_source_list.first(); source != NULL; source = source->next()) { const debug_view_disasm_source &dasmsource = downcast<const debug_view_disasm_source &>(*source); total_comments += dasmsource.m_device.debug()->comment_count(); } // configure the view m_total.y = DEFAULT_DASM_LINES; m_supports_cursor = true; }
debug_view_memory::debug_view_memory(running_machine &machine, debug_view_osd_update_func osdupdate, void *osdprivate) : debug_view(machine, DVT_MEMORY, osdupdate, osdprivate), m_expression(machine), m_chunks_per_row(16), m_bytes_per_chunk(1), m_data_format(1), m_reverse_view(false), m_ascii_view(true), m_no_translation(false), m_edit_enabled(true), m_maxaddr(0), m_bytes_per_row(16), m_byte_offset(0) { // hack: define some sane init values // that don't hurt the initial computation of top_left // in set_cursor_pos() m_section[0].m_pos = 0; m_section[0].m_width = 1 + 8 + 1; m_section[1].m_pos = m_section[0].m_pos + m_section[0].m_width; // fail if no available sources enumerate_sources(); if (m_source_list.count() == 0) throw std::bad_alloc(); // configure the view m_supports_cursor = true; }
debug_view_breakpoints::debug_view_breakpoints(running_machine &machine, debug_view_osd_update_func osdupdate, void *osdprivate) : debug_view(machine, DVT_BREAK_POINTS, osdupdate, osdprivate), m_sortType(cIndexAscending) { // fail if no available sources enumerate_sources(); if (m_source_list.count() == 0) throw std::bad_alloc(); }
debug_view_state::debug_view_state(running_machine &machine, debug_view_osd_update_func osdupdate, void *osdprivate) : debug_view(machine, DVT_STATE, osdupdate, osdprivate) , m_divider(0) , m_last_update(0) { // fail if no available sources enumerate_sources(); if (m_source_list.count() == 0) throw std::bad_alloc(); }
debug_view_breakpoints::debug_view_breakpoints(running_machine &machine, debug_view_osd_update_func osdupdate, void *osdprivate) : debug_view(machine, DVT_BREAK_POINTS, osdupdate, osdprivate) { // fail if no available sources enumerate_sources(); if (m_source_list.count() == 0) throw std::bad_alloc(); // configure the view m_total.y = 50; // TODO m_supports_cursor = true; }
debug_view_watchpoints::debug_view_watchpoints(running_machine &machine, debug_view_osd_update_func osdupdate, void *osdprivate) : debug_view(machine, DVT_WATCH_POINTS, osdupdate, osdprivate), m_sortType(SORT_INDEX_ASCENDING) { // fail if no available sources enumerate_sources(); if (m_source_list.count() == 0) throw std::bad_alloc(); // configure the view m_total.y = 10; m_supports_cursor = false; }
debug_view_memory::debug_view_memory(running_machine &machine, debug_view_osd_update_func osdupdate, void *osdprivate) : debug_view(machine, DVT_MEMORY, osdupdate, osdprivate), m_expression(machine), m_chunks_per_row(16), m_bytes_per_chunk(1), m_reverse_view(false), m_ascii_view(true), m_no_translation(false), m_maxaddr(0), m_bytes_per_row(16), m_byte_offset(0) { // fail if no available sources enumerate_sources(); if (m_source_list.count() == 0) throw std::bad_alloc(); // configure the view m_supports_cursor = true; }