summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/debugint.cpp
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2015-11-09 12:23:29 +0100
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2015-11-09 12:23:29 +0100
commit7b5119e1667c1a0844c268169e74c69c5a40f5c3 (patch)
tree3f26277c0f7df0ab4533187f4bcdb560c8e663bd /src/osd/modules/debugger/debugint.cpp
parent33f410f0d90668258c34e8ce4fd92b84d1cbd177 (diff)
nw, more PVS-Studio fixes
Diffstat (limited to 'src/osd/modules/debugger/debugint.cpp')
-rw-r--r--src/osd/modules/debugger/debugint.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/osd/modules/debugger/debugint.cpp b/src/osd/modules/debugger/debugint.cpp
index 54ffea19ee9..e8ac5891766 100644
--- a/src/osd/modules/debugger/debugint.cpp
+++ b/src/osd/modules/debugger/debugint.cpp
@@ -1437,22 +1437,21 @@ void debug_internal::wait_for_debugger(device_t &device, bool firststop)
{
if (firststop && list == NULL)
{
- DView *dv;
- render_target *target;
-
- target = &device.machine().render().ui_target();
+ render_target *target = &device.machine().render().ui_target();
//set_view_by_name(target, "Debug");
- dv = dview_alloc(target, device.machine(), DVT_DISASSEMBLY, VIEW_STATE_FOLLOW_CPU);
- dv->editor.active = TRUE;
- dv->editor.container = &device.machine().render().ui_container();
- dv = dview_alloc(target, device.machine(), DVT_STATE, VIEW_STATE_FOLLOW_CPU);
- dv = dview_alloc(target, device.machine(), DVT_CONSOLE, VIEW_STATE_FOLLOW_CPU);
- dview_set_title(dv, "Console");
- dv->editor.active = TRUE;
- dv->editor.container = &device.machine().render().ui_container();
- set_focus_view(dv);
+ DView *disassembly = dview_alloc(target, device.machine(), DVT_DISASSEMBLY, VIEW_STATE_FOLLOW_CPU);
+ disassembly->editor.active = TRUE;
+ disassembly->editor.container = &device.machine().render().ui_container();
+
+ dview_alloc(target, device.machine(), DVT_STATE, VIEW_STATE_FOLLOW_CPU);
+
+ DView *console = dview_alloc(target, device.machine(), DVT_CONSOLE, VIEW_STATE_FOLLOW_CPU);
+ dview_set_title(console, "Console");
+ console->editor.active = TRUE;
+ console->editor.container = &device.machine().render().ui_container();
+ set_focus_view(console);
}
followers_set_cpu(&device);