本文整理汇总了C++中running_machine::debug_view方法的典型用法代码示例。如果您正苦于以下问题:C++ running_machine::debug_view方法的具体用法?C++ running_machine::debug_view怎么用?C++ running_machine::debug_view使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类running_machine
的用法示例。
在下文中一共展示了running_machine::debug_view方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: debug_console_execute_command
CMDERR debug_console_execute_command(running_machine &machine, const char *command, int echo)
{
CMDERR result;
/* echo if requested */
if (echo)
debug_console_printf(machine, ">%s\n", command);
/* parse and execute */
result = internal_parse_command(machine, command, TRUE);
/* display errors */
if (result != CMDERR_NONE)
{
if (!echo)
debug_console_printf(machine, ">%s\n", command);
debug_console_printf(machine, " %*s^\n", CMDERR_ERROR_OFFSET(result), "");
debug_console_printf(machine, "%s\n", debug_cmderr_to_string(result));
}
/* update all views */
if (echo)
{
machine.debug_view().update_all();
debugger_refresh_display(machine);
}
return result;
}
示例2: next
DView(render_target *target, running_machine &machine, debug_view_type type, int flags)
: next(NULL),
type(0),
state(0),
ofs_x(0),
ofs_y(0)
{
this->target = target;
//dv->container = render_target_get_component_container(target, name, &pos);
this->container = target->debug_alloc();
this->view = machine.debug_view().alloc_view(type, dview_update, this);
this->type = type;
this->m_machine = &machine;
this->state = flags | VIEW_STATE_NEEDS_UPDATE;
// initial size
this->bounds.set(0, 300, 0, 300);
/* specials */
switch (type)
{
case DVT_DISASSEMBLY:
/* set up disasm view */
downcast<debug_view_disasm *>(this->view)->set_expression("curpc");
//debug_view_ property_UINT32(dv->view, DVP_DASM_TRACK_LIVE, 1);
break;
default:
break;
}
}
示例3: next
debug_area(running_machine &machine, debug_view_type type)
: next(nullptr),
type(0),
ofs_x(0),
ofs_y(0),
is_collapsed(false),
exec_cmd(false),
scroll_end(false),
scroll_follow(false)
{
this->view = machine.debug_view().alloc_view(type, nullptr, this);
this->type = type;
this->m_machine = &machine;
this->width = 300;
this->height = 300;
this->console_prev.clear();
/* specials */
switch (type)
{
case DVT_DISASSEMBLY:
/* set up disasm view */
downcast<debug_view_disasm *>(this->view)->set_expression("curpc");
break;
default:
break;
}
}
示例4: debug_errorlog_write_line
void debug_errorlog_write_line(running_machine &machine, const char *line)
{
if (errorlog_textbuf)
text_buffer_print(errorlog_textbuf, line);
/* force an update of any log views */
machine.debug_view().update_all(DVT_LOG);
}
示例5: debug_console_vprintf
void CLIB_DECL debug_console_vprintf(running_machine &machine, const char *format, va_list args)
{
astring buffer;
buffer.vprintf(format, args);
text_buffer_print(console_textbuf, buffer);
/* force an update of any console views */
machine.debug_view().update_all(DVT_CONSOLE);
}
示例6: debug_console_printf_wrap
void CLIB_DECL debug_console_printf_wrap(running_machine &machine, int wrapcol, const char *format, ...)
{
astring buffer;
va_list arg;
va_start(arg, format);
buffer.vprintf(format, arg);
va_end(arg);
text_buffer_print_wrap(console_textbuf, buffer, wrapcol);
/* force an update of any console views */
machine.debug_view().update_all(DVT_CONSOLE);
}