diff options
Diffstat (limited to 'src/emu/debug')
| -rw-r--r-- | src/emu/debug/debugcpu.c | 84 | ||||
| -rw-r--r-- | src/emu/debug/debugcpu.h | 28 | ||||
| -rw-r--r-- | src/emu/debug/debugvw.c | 34 | ||||
| -rw-r--r-- | src/emu/debug/debugvw.h | 22 | ||||
| -rw-r--r-- | src/emu/debug/dvdisasm.c | 26 | ||||
| -rw-r--r-- | src/emu/debug/dvdisasm.h | 8 | ||||
| -rw-r--r-- | src/emu/debug/dvmemory.c | 28 | ||||
| -rw-r--r-- | src/emu/debug/dvmemory.h | 2 | ||||
| -rw-r--r-- | src/emu/debug/dvstate.c | 12 | ||||
| -rw-r--r-- | src/emu/debug/dvstate.h | 8 |
10 files changed, 126 insertions, 126 deletions
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index b04a8b2fc72..065e0d8f4b5 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -1529,7 +1529,7 @@ static UINT64 get_cpunum(void *globalref, void *ref) { running_machine *machine = (running_machine *)globalref; device_t *target = machine->debugcpu_data->visiblecpu; - + device_execute_interface *exec; int index = 0; for (bool gotone = machine->m_devicelist.first(exec); gotone; gotone = exec->next(exec)) @@ -1579,7 +1579,7 @@ device_debug::device_debug(device_t &device, symbol_table *globalsyms) { memset(m_pc_history, 0, sizeof(m_pc_history)); memset(m_wplist, 0, sizeof(m_wplist)); - + // find out which interfaces we have to work with device.interface(m_exec); device.interface(m_memory); @@ -1592,7 +1592,7 @@ device_debug::device_debug(device_t &device, symbol_table *globalsyms) // add a global symbol for the current instruction pointer if (m_exec != NULL) symtable_add_register(m_symtable, "cycles", NULL, get_cycles, NULL); - + // add entries to enable/disable unmap reporting for each space if (m_memory != NULL) { @@ -1615,7 +1615,7 @@ device_debug::device_debug(device_t &device, symbol_table *globalsyms) { m_flags = DEBUG_FLAG_OBSERVING | DEBUG_FLAG_HISTORY; m_opwidth = min_opcode_bytes(); - + // if no curpc, add one if (m_state != NULL && symtable_find(m_symtable, "curpc") == NULL) symtable_add_register(m_symtable, "curpc", NULL, get_current_pc, 0); @@ -1632,7 +1632,7 @@ device_debug::~device_debug() // free the symbol table if (m_symtable != NULL) symtable_free(m_symtable); - + // free breakpoints and watchpoints breakpoint_clear_all(); watchpoint_clear_all(); @@ -1640,7 +1640,7 @@ device_debug::~device_debug() //------------------------------------------------- -// start_hook - the scheduler calls this hook +// start_hook - the scheduler calls this hook // before beginning execution for the given device //------------------------------------------------- @@ -1699,7 +1699,7 @@ void device_debug::start_hook(attotime endtime) //------------------------------------------------- -// stop_hook - the scheduler calls this hook when +// stop_hook - the scheduler calls this hook when // ending execution for the given device //------------------------------------------------- @@ -1722,7 +1722,7 @@ void device_debug::stop_hook() //------------------------------------------------- -// interrupt_hook - called when an interrupt is +// interrupt_hook - called when an interrupt is // acknowledged //------------------------------------------------- @@ -1741,7 +1741,7 @@ void device_debug::interrupt_hook(int irqline) //------------------------------------------------- -// exception_hook - called when an exception is +// exception_hook - called when an exception is // generated //------------------------------------------------- @@ -1760,7 +1760,7 @@ void device_debug::exception_hook(int exception) //------------------------------------------------- -// instruction_hook - called by the CPU cores +// instruction_hook - called by the CPU cores // before executing each instruction //------------------------------------------------- @@ -1889,8 +1889,8 @@ void device_debug::instruction_hook(offs_t curpc) //------------------------------------------------- -// memory_read_hook - the memory system calls -// this hook when watchpoints are enabled and a +// memory_read_hook - the memory system calls +// this hook when watchpoints are enabled and a // memory read happens //------------------------------------------------- @@ -1906,8 +1906,8 @@ void device_debug::memory_read_hook(const address_space &space, offs_t address, //------------------------------------------------- -// memory_write_hook - the memory system calls -// this hook when watchpoints are enabled and a +// memory_write_hook - the memory system calls +// this hook when watchpoints are enabled and a // memory write happens //------------------------------------------------- @@ -1918,7 +1918,7 @@ void device_debug::memory_write_hook(const address_space &space, offs_t address, //------------------------------------------------- -// set_instruction_hook - set a hook to be +// set_instruction_hook - set a hook to be // called on each instruction for a given device //------------------------------------------------- @@ -1934,7 +1934,7 @@ void device_debug::set_instruction_hook(debug_instruction_hook_func hook) //------------------------------------------------- -// disassemble - disassemble a line at a given +// disassemble - disassemble a line at a given // PC on a given device //------------------------------------------------- @@ -1988,14 +1988,14 @@ void device_debug::ignore(bool ignore) //------------------------------------------------- -// single_step - single step the device past the +// single_step - single step the device past the // requested number of instructions //------------------------------------------------- void device_debug::single_step(int numsteps) { debugcpu_private *global = m_device.machine->debugcpu_data; - + assert(m_exec != NULL); m_stepsleft = numsteps; @@ -2006,7 +2006,7 @@ void device_debug::single_step(int numsteps) //------------------------------------------------- -// single_step_over - single step the device over +// single_step_over - single step the device over // the requested number of instructions //------------------------------------------------- @@ -2024,7 +2024,7 @@ void device_debug::single_step_over(int numsteps) //------------------------------------------------- -// single_step_out - single step the device +// single_step_out - single step the device // out of the current function //------------------------------------------------- @@ -2042,7 +2042,7 @@ void device_debug::single_step_out() //------------------------------------------------- -// go - execute the device until it hits the given +// go - execute the device until it hits the given // address //------------------------------------------------- @@ -2075,7 +2075,7 @@ void device_debug::go_vblank() //------------------------------------------------- -// go_interrupt - execute until the specified +// go_interrupt - execute until the specified // interrupt fires on the device //------------------------------------------------- @@ -2092,7 +2092,7 @@ void device_debug::go_interrupt(int irqline) //------------------------------------------------- -// go_exception - execute until the specified +// go_exception - execute until the specified // exception fires on the visible CPU //------------------------------------------------- @@ -2109,7 +2109,7 @@ void device_debug::go_exception(int exception) //------------------------------------------------- -// go_milliseconds - execute until the specified +// go_milliseconds - execute until the specified // delay elapses //------------------------------------------------- @@ -2126,7 +2126,7 @@ void device_debug::go_milliseconds(UINT64 milliseconds) //------------------------------------------------- -// go_next_device - execute until we hit the next +// go_next_device - execute until we hit the next // device //------------------------------------------------- @@ -2142,7 +2142,7 @@ void device_debug::go_next_device() //------------------------------------------------- -// halt_on_next_instruction - halt in the +// halt_on_next_instruction - halt in the // debugger on the next instruction //------------------------------------------------- @@ -2175,7 +2175,7 @@ void device_debug::halt_on_next_instruction(const char *fmt, ...) //------------------------------------------------- -// breakpoint_set - set a new breakpoint, +// breakpoint_set - set a new breakpoint, // returning its index //------------------------------------------------- @@ -2187,7 +2187,7 @@ int device_debug::breakpoint_set(offs_t address, parsed_expression *condition, c // hook it into our list bp->m_next = m_bplist; m_bplist = bp; - + // update the flags and return the index breakpoint_update_flags(); return bp->m_index; @@ -2264,7 +2264,7 @@ void device_debug::breakpoint_enable_all(bool enable) //------------------------------------------------- -// watchpoint_set - set a new watchpoint, +// watchpoint_set - set a new watchpoint, // returning its index //------------------------------------------------- @@ -2278,7 +2278,7 @@ int device_debug::watchpoint_set(const address_space &space, int type, offs_t ad // hook it into our list wp->m_next = m_wplist[space.spacenum]; m_wplist[space.spacenum] = wp; - + // update the flags and return the index watchpoint_update_flags(wp->m_space); return wp->m_index; @@ -2360,7 +2360,7 @@ void device_debug::watchpoint_enable_all(bool enable) //------------------------------------------------- -// hotspot_track - enable/disable tracking of +// hotspot_track - enable/disable tracking of // hotspots //------------------------------------------------- @@ -2673,7 +2673,7 @@ void device_debug::watchpoint_check(const address_space &space, int type, offs_t //------------------------------------------------- -// hotspot_check - check for hotspots on a +// hotspot_check - check for hotspots on a // memory read access //------------------------------------------------- @@ -2836,7 +2836,7 @@ device_debug::breakpoint::breakpoint(int index, offs_t address, parsed_expressio m_action((action != NULL) ? action : "") { } - + //------------------------------------------------- // ~breakpoint - destructor @@ -2854,7 +2854,7 @@ device_debug::breakpoint::~breakpoint() //------------------------------------------------- bool device_debug::breakpoint::hit(offs_t pc) -{ +{ // don't hit if disabled if (!m_enabled) return false; @@ -2862,12 +2862,12 @@ bool device_debug::breakpoint::hit(offs_t pc) // must match our address if (m_address != pc) return false; - + // must satisfy the condition UINT64 result; if (m_condition != NULL && expression_execute(m_condition, &result) == EXPRERR_NONE && result == 0) return false; - + return true; } @@ -2893,7 +2893,7 @@ device_debug::watchpoint::watchpoint(int index, const address_space &space, int m_action((action != NULL) ? action : "") { } - + //------------------------------------------------- // ~watchpoint - destructor @@ -2915,7 +2915,7 @@ bool device_debug::watchpoint::hit(int type, offs_t address, int size) // don't hit if disabled if (!m_enabled) return false; - + // must match the type if ((m_type & type) == 0) return false; @@ -2923,12 +2923,12 @@ bool device_debug::watchpoint::hit(int type, offs_t address, int size) // must match our address if (address + size <= m_address || address >= m_address + m_length) return false; - + // must satisfy the condition UINT64 result; if (m_condition != NULL && expression_execute(m_condition, &result) == EXPRERR_NONE && result == 0) return false; - + return true; } @@ -2967,7 +2967,7 @@ device_debug::tracer::~tracer() //------------------------------------------------- -// update - log to the tracefile the data for a +// update - log to the tracefile the data for a // given instruction //------------------------------------------------- @@ -3047,7 +3047,7 @@ void device_debug::tracer::vprintf(const char *format, va_list va) //------------------------------------------------- -// flush - flush any pending changes to the trace +// flush - flush any pending changes to the trace // file //------------------------------------------------- diff --git a/src/emu/debug/debugcpu.h b/src/emu/debug/debugcpu.h index b412711bb6e..c25333fa79f 100644 --- a/src/emu/debug/debugcpu.h +++ b/src/emu/debug/debugcpu.h @@ -74,12 +74,12 @@ public: class breakpoint { friend class device_debug; - + public: // construction/destruction breakpoint(int index, offs_t address, parsed_expression *condition = NULL, const char *action = NULL); ~breakpoint(); - + // getters breakpoint *next() const { return m_next; } int index() const { return m_index; } @@ -87,7 +87,7 @@ public: offs_t address() const { return m_address; } const char *condition() const { return (m_condition != NULL) ? expression_original_string(m_condition) : NULL; } const char *action() const { return m_action; } - + private: // internals bool hit(offs_t pc); @@ -109,7 +109,7 @@ public: // construction/destruction watchpoint(int index, const address_space &space, int type, offs_t address, offs_t length, parsed_expression *condition = NULL, const char *action = NULL); ~watchpoint(); - + // getters watchpoint *next() const { return m_next; } const address_space &space() const { return m_space; } @@ -120,7 +120,7 @@ public: offs_t length() const { return m_length; } const char *condition() const { return (m_condition != NULL) ? expression_original_string(m_condition) : NULL; } const char *action() const { return m_action; } - + private: // internals bool hit(int type, offs_t address, int size); @@ -140,7 +140,7 @@ public: // construction/destruction device_debug(device_t &device, symbol_table *globalsyms); ~device_debug(); - + // getters symbol_table *symtable() const { return m_symtable; } @@ -150,7 +150,7 @@ public: int min_opcode_bytes() const { return (m_disasm != NULL) ? m_disasm->max_opcode_bytes() : 1; } int max_opcode_bytes() const { return (m_disasm != NULL) ? m_disasm->max_opcode_bytes() : 1; } - // hooks used by the rest of the system + // hooks used by the rest of the system void start_hook(attotime endtime); void stop_hook(); void interrupt_hook(int irqline); @@ -163,7 +163,7 @@ public: void set_instruction_hook(debug_instruction_hook_func hook); void set_dasm_override(dasm_override_func dasm_override) { m_dasm_override = dasm_override; } - // disassembly + // disassembly offs_t disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram); // debugger focus @@ -174,7 +174,7 @@ public: void single_step(int numsteps = 1); void single_step_over(int numsteps = 1); void single_step_out(); - + // execution void go(offs_t targetpc = ~0); void go_vblank(); @@ -204,7 +204,7 @@ public: bool hotspot_tracking_enabled() const { return (m_hotspots != NULL); } void hotspot_track(int numspots, int threshhold); - // history + // history offs_t history_pc(int index) const; // tracing @@ -236,7 +236,7 @@ private: static void set_logunmap(void *globalref, void *ref, UINT64 value); static UINT64 get_cpu_reg(void *globalref, void *ref); static void set_state(void *globalref, void *ref, UINT64 value); - + // basic device information device_t & m_device; // device we are attached to device_execute_interface *m_exec; // execute interface, if present @@ -278,11 +278,11 @@ private: public: tracer(device_debug &debug, FILE &file, bool trace_over, const char *action); ~tracer(); - + void update(offs_t pc); void vprintf(const char *format, va_list va); void flush(); - + private: static const int TRACE_LOOPS = 64; @@ -330,7 +330,7 @@ private: static const UINT32 DEBUG_FLAG_STEPPING_ANY = DEBUG_FLAG_STEPPING | DEBUG_FLAG_STEPPING_OVER | DEBUG_FLAG_STEPPING_OUT; static const UINT32 DEBUG_FLAG_TRACING_ANY = DEBUG_FLAG_TRACING | DEBUG_FLAG_TRACING_OVER; - static const UINT32 DEBUG_FLAG_TRANSIENT = DEBUG_FLAG_STEPPING_ANY | DEBUG_FLAG_STOP_PC | DEBUG_FLAG_STOP_CONTEXT | + static const UINT32 DEBUG_FLAG_TRANSIENT = DEBUG_FLAG_STEPPING_ANY | DEBUG_FLAG_STOP_PC | DEBUG_FLAG_STOP_CONTEXT | DEBUG_FLAG_STOP_INTERRUPT | DEBUG_FLAG_STOP_EXCEPTION | DEBUG_FLAG_STOP_VBLANK | DEBUG_FLAG_STOP_TIME; public: // until comments get folded in diff --git a/src/emu/debug/debugvw.c b/src/emu/debug/debugvw.c index 99d624c6ee7..e445ddcd055 100644 --- a/src/emu/debug/debugvw.c +++ b/src/emu/debug/debugvw.c @@ -150,7 +150,7 @@ void debug_view_source_list::reset() m_head = source->m_next; auto_free(&m_machine, source); } - + // reset the tail pointer and index m_tail = NULL; m_count = 0; @@ -158,7 +158,7 @@ void debug_view_source_list::reset() //------------------------------------------------- -// append - add a view_source to the end of the +// append - add a view_source to the end of the // list //------------------------------------------------- @@ -237,7 +237,7 @@ debug_view::~debug_view() //------------------------------------------------- -// end_update - bracket a sequence of changes so +// end_update - bracket a sequence of changes so // that only one update occurs //------------------------------------------------- @@ -272,7 +272,7 @@ void debug_view::end_update() //------------------------------------------------- -// flush_osd_updates - notify the OSD of any +// flush_osd_updates - notify the OSD of any // pending updates //------------------------------------------------- @@ -285,7 +285,7 @@ void debug_view::flush_osd_updates() //------------------------------------------------- -// set_visible_size - set the visible size in +// set_visible_size - set the visible size in // rows and columns //-------------------------------------------------*/ @@ -303,8 +303,8 @@ void debug_view::set_visible_size(debug_view_xy size) //------------------------------------------------- -// set_visible_position - set the top left -// position of the visible area in rows and +// set_visible_position - set the top left +// position of the visible area in rows and // columns //------------------------------------------------- @@ -322,7 +322,7 @@ void debug_view::set_visible_position(debug_view_xy pos) //------------------------------------------------- -// set_cursor_position - set the current cursor +// set_cursor_position - set the current cursor // position as a row and column //------------------------------------------------- @@ -340,7 +340,7 @@ void debug_view::set_cursor_position(debug_view_xy pos) //------------------------------------------------- -// set_cursor_visible - set the visible state of +// set_cursor_visible - set the visible state of // the cursor //------------------------------------------------- @@ -415,7 +415,7 @@ void debug_view::view_notify(debug_view_notification type) //------------------------------------------------- -// view_char - handle a character typed within +// view_char - handle a character typed within // the current view //------------------------------------------------- @@ -480,11 +480,11 @@ debug_view *debug_view_manager::alloc_view(debug_view_type type, debug_view_osd_ return append(auto_alloc(&m_machine, debug_view_log(m_machine, osdupdate, osdprivate))); case DVT_TIMERS: -// return append(auto_alloc(&m_machine, debug_view_timers(m_machine, osdupdate, osdprivate))); +// return append(auto_alloc(&m_machine, debug_view_timers(m_machine, osdupdate, osdprivate))); case DVT_ALLOCS: -// return append(auto_alloc(&m_machine, debug_view_allocs(m_machine, osdupdate, osdprivate))); - +// return append(auto_alloc(&m_machine, debug_view_allocs(m_machine, osdupdate, osdprivate))); + default: fatalerror("Attempt to create invalid debug view type %d\n", type); } @@ -523,13 +523,13 @@ void debug_view_manager::update_all(debug_view_type type) //------------------------------------------------- -// flush_osd_updates - flush all pending OSD +// flush_osd_updates - flush all pending OSD // updates //------------------------------------------------- void debug_view_manager::flush_osd_updates() { - for (debug_view *view = m_viewlist; view != NULL; view = view->m_next) + for (debug_view *view = m_viewlist; view != NULL; view = view->m_next) view->flush_osd_updates(); } @@ -591,7 +591,7 @@ void debug_view_expression::set_string(const char *string) //------------------------------------------------- -// set_context - set the context for the +// set_context - set the context for the // expression //------------------------------------------------- @@ -603,7 +603,7 @@ void debug_view_expression::set_context(symbol_table *context) //------------------------------------------------- -// recompute - recompute the value of an +// recompute - recompute the value of an // expression //------------------------------------------------- diff --git a/src/emu/debug/debugvw.h b/src/emu/debug/debugvw.h index 7d53bba57b4..9f9e143bc0a 100644 --- a/src/emu/debug/debugvw.h +++ b/src/emu/debug/debugvw.h @@ -133,19 +133,19 @@ public: class debug_view_source { DISABLE_COPYING(debug_view_source); - + friend class debug_view_source_list; public: // construction/destruction debug_view_source(const char *name, device_t *device = NULL); virtual ~debug_view_source(); - + // getters const char *name() const { return m_name; } debug_view_source *next() const { return m_next; } device_t *device() const { return m_device; } - + private: // internal state debug_view_source * m_next; // link to next item @@ -163,19 +163,19 @@ public: // construction/destruction debug_view_source_list(running_machine &machine); ~debug_view_source_list(); - + // getters const debug_view_source *head() const { return m_head; } int count() const { return m_count; } int index(const debug_view_source &source) const; const debug_view_source *by_index(int index) const; - + // operations void reset(); void append(debug_view_source &view_source); const debug_view_source *match_device(device_t *device) const; int match_device_index(device_t *device) const { return index(*match_device(device)); } - + private: // internal state running_machine & m_machine; // reference to our machine @@ -189,7 +189,7 @@ private: class debug_view { friend class debug_view_manager; - + protected: // construction/destruction debug_view(running_machine &machine, debug_view_type type, debug_view_osd_update_func osdupdate, void *osdprivate); @@ -242,7 +242,7 @@ protected: running_machine & m_machine; // machine associated with this view debug_view_type m_type; // type of view const debug_view_source *m_source; // currently selected data source - debug_view_source_list m_source_list; // list of available data sources + debug_view_source_list m_source_list; // list of available data sources // OSD data debug_view_osd_update_func m_osdupdate; // callback for the update @@ -274,7 +274,7 @@ public: debug_view_manager(running_machine &machine); ~debug_view_manager(); - // view allocation + // view allocation debug_view *alloc_view(debug_view_type type, debug_view_osd_update_func osdupdate, void *osdprivate); void free_view(debug_view &view); @@ -299,7 +299,7 @@ public: // construction/destruction debug_view_expression(running_machine &machine); ~debug_view_expression(); - + // getters bool dirty() const { return m_dirty; } UINT64 last_value() const { return m_result; } @@ -307,7 +307,7 @@ public: const char *string() const { return m_string; } symbol_table *context() const { return m_context; } - // setters + // setters void mark_dirty() { m_dirty = true; } void set_string(const char *string); void set_context(symbol_table *context); diff --git a/src/emu/debug/dvdisasm.c b/src/emu/debug/dvdisasm.c index 6840b2724c7..762f7f81b16 100644 --- a/src/emu/debug/dvdisasm.c +++ b/src/emu/debug/dvdisasm.c @@ -123,7 +123,7 @@ debug_view_disasm::~debug_view_disasm() //------------------------------------------------- -// enumerate_sources - enumerate all possible +// enumerate_sources - enumerate all possible // sources for a disassembly view //------------------------------------------------- @@ -155,14 +155,14 @@ void debug_view_disasm::view_notify(debug_view_notification type) { if (type == VIEW_NOTIFY_CURSOR_CHANGED) adjust_visible_y_for_cursor(); - + else if (type == VIEW_NOTIFY_SOURCE_CHANGED) m_expression.set_context(downcast<const debug_view_disasm_source *>(m_source)->device().debug()->symtable()); } //------------------------------------------------- -// view_char - handle a character typed within +// view_char - handle a character typed within // the current view //------------------------------------------------- @@ -233,7 +233,7 @@ void debug_view_disasm::view_char(int chval) //------------------------------------------------- -// find_pc_backwards - back up the specified +// find_pc_backwards - back up the specified // number of instructions from the given PC //------------------------------------------------- @@ -312,7 +312,7 @@ offs_t debug_view_disasm::find_pc_backwards(offs_t targetpc, int numinstrs) //------------------------------------------------- -// generate_bytes - generate the opcode byte +// generate_bytes - generate the opcode byte // values //------------------------------------------------- @@ -338,7 +338,7 @@ void debug_view_disasm::generate_bytes(offs_t pcbyte, int numbytes, int minbytes //------------------------------------------------- -// recompute - recompute selected info for the +// recompute - recompute selected info for the // disassembly view //------------------------------------------------- @@ -460,7 +460,7 @@ bool debug_view_disasm::recompute(offs_t pc, int startline, int lines) //------------------------------------------------- -// view_update - update the contents of the +// view_update - update the contents of the // disassembly view //------------------------------------------------- @@ -620,7 +620,7 @@ recompute: //------------------------------------------------- -// selected_address - return the PC of the +// selected_address - return the PC of the // currently selected address in the view //------------------------------------------------- @@ -632,7 +632,7 @@ offs_t debug_view_disasm::selected_address() //------------------------------------------------- -// set_sexpression - set the expression string +// set_sexpression - set the expression string // describing the home address //------------------------------------------------- @@ -646,7 +646,7 @@ void debug_view_disasm::set_expression(const char *expression) //------------------------------------------------- -// set_right_column - set the contents of the +// set_right_column - set the contents of the // right column //------------------------------------------------- @@ -660,7 +660,7 @@ void debug_view_disasm::set_right_column(disasm_right_column contents) //------------------------------------------------- -// set_backward_steps - set the number of +// set_backward_steps - set the number of // instructions displayed before the home address //------------------------------------------------- @@ -674,7 +674,7 @@ void debug_view_disasm::set_backward_steps(UINT32 steps) //------------------------------------------------- -// set_disasm_width - set the width in characters +// set_disasm_width - set the width in characters // of the main disassembly section //------------------------------------------------- @@ -688,7 +688,7 @@ void debug_view_disasm::set_disasm_width(UINT32 width) //------------------------------------------------- -// set_selected_address - set the PC of the +// set_selected_address - set the PC of the // currently selected address in the view //------------------------------------------------- diff --git a/src/emu/debug/dvdisasm.h b/src/emu/debug/dvdisasm.h index b34c0758e4b..aed35f3724b 100644 --- a/src/emu/debug/dvdisasm.h +++ b/src/emu/debug/dvdisasm.h @@ -66,7 +66,7 @@ enum disasm_right_column class debug_view_disasm_source : public debug_view_source { friend class debug_view_disasm; - + // construction/destruction debug_view_disasm_source(const char *name, device_t &device); @@ -92,7 +92,7 @@ class debug_view_disasm : public debug_view // construction/destruction debug_view_disasm(running_machine &machine, debug_view_osd_update_func osdupdate, void *osdprivate); virtual ~debug_view_disasm(); - + public: // getters const char *expression() const { return m_expression.string(); } @@ -100,7 +100,7 @@ public: UINT32 backward_steps() const { return m_backwards_steps; } UINT32 disasm_width() const { return m_dasm_width; } offs_t selected_address(); - + // setters void set_expression(const char *expression); void set_right_column(disasm_right_column contents); @@ -135,7 +135,7 @@ private: debug_view_xy m_allocated; // allocated rows/columns offs_t * m_byteaddress; // addresses of the instructions char * m_dasm; // disassembled instructions - + // constants static const int DEFAULT_DASM_LINES = 1000; static const int DEFAULT_DASM_WIDTH = 50; diff --git a/src/emu/debug/dvmemory.c b/src/emu/debug/dvmemory.c index 497ae247a46..652c98bbb6f 100644 --- a/src/emu/debug/dvmemory.c +++ b/src/emu/debug/dvmemory.c @@ -141,7 +141,7 @@ debug_view_memory::debug_view_memory(running_machine &machine, debug_view_osd_up //------------------------------------------------- -// enumerate_sources - enumerate all possible +// enumerate_sources - enumerate all possible // sources for a memory view //------------------------------------------------- @@ -195,7 +195,7 @@ void debug_view_memory::enumerate_sources() //------------------------------------------------- -// view_notify - handle notification of updates +// view_notify - handle notification of updates // to cursor changes //------------------------------------------------- @@ -308,7 +308,7 @@ void debug_view_memory::view_update() //------------------------------------------------- -// view_char - handle a character typed within +// view_char - handle a character typed within // the current view //------------------------------------------------- @@ -426,7 +426,7 @@ void debug_view_memory::view_char(int chval) //------------------------------------------------- -// recompute - recompute the internal data and +// recompute - recompute the internal data and // structure of the memory view //------------------------------------------------- @@ -502,7 +502,7 @@ void debug_view_memory::recompute() //------------------------------------------------- -// needs_recompute - determine if anything has +// needs_recompute - determine if anything has // changed that requires a recomputation //------------------------------------------------- @@ -535,7 +535,7 @@ bool debug_view_memory::needs_recompute() //------------------------------------------------- -// get_cursor_pos - return the cursor position as +// get_cursor_pos - return the cursor position as // an address and a shift value //------------------------------------------------- @@ -569,7 +569,7 @@ debug_view_memory::cursor_pos debug_view_memory::get_cursor_pos() //------------------------------------------------- -// set_cursor_pos - set the cursor position as a +// set_cursor_pos - set the cursor position as a // function of an address and a shift value //------------------------------------------------- @@ -717,7 +717,7 @@ void debug_view_memory::write(UINT8 size, offs_t offs, UINT64 data) //------------------------------------------------- -// set_expression - set the expression string +// set_expression - set the expression string // describing the home address //------------------------------------------------- @@ -731,7 +731,7 @@ void debug_view_memory::set_expression(const char *expression) //------------------------------------------------- -// set_bytes_per_chunk - specify the number of +// set_bytes_per_chunk - specify the number of // bytes displayed per chunk //------------------------------------------------- @@ -756,7 +756,7 @@ void debug_view_memory::set_bytes_per_chunk(UINT8 chunkbytes) //------------------------------------------------- -// set_chunks_per_row - specify the number of +// set_chunks_per_row - specify the number of // chunks displayed across a row //------------------------------------------------- @@ -773,7 +773,7 @@ void debug_view_memory::set_chunks_per_row(UINT32 rowchunks) //------------------------------------------------- -// set_reverse - specify true if the memory view +// set_reverse - specify true if the memory view // is displayed reverse //------------------------------------------------- @@ -787,7 +787,7 @@ void debug_view_memory::set_reverse(bool reverse) //------------------------------------------------- -// set_ascii - specify TRUE if the memory view +// set_ascii - specify TRUE if the memory view // should display an ASCII representation //------------------------------------------------- @@ -801,8 +801,8 @@ void debug_view_memory::set_ascii(bool ascii) //------------------------------------------------- -// set_physical - specify true if the memory view -// should display physical addresses versus +// set_physical - specify true if the memory view +// should display physical addresses versus // logical addresses //------------------------------------------------- diff --git a/src/emu/debug/dvmemory.h b/src/emu/debug/dvmemory.h index ee1bfa7080d..3775885ff7e 100644 --- a/src/emu/debug/dvmemory.h +++ b/src/emu/debug/dvmemory.h @@ -51,7 +51,7 @@ class debug_view_memory_source : public debug_view_source { friend class debug_view_memory; - + debug_view_memory_source(const char *name, const address_space &space); debug_view_memory_source(const char *name, const region_info ®ion); debug_view_memory_source(const char *name, void *base, int element_size, int num_elements); diff --git a/src/emu/debug/dvstate.c b/src/emu/debug/dvstate.c index b161351837f..571ea4b1200 100644 --- a/src/emu/debug/dvstate.c +++ b/src/emu/debug/dvstate.c @@ -93,7 +93,7 @@ debug_view_state::~debug_view_state() //------------------------------------------------- -// enumerate_sources - enumerate all possible +// enumerate_sources - enumerate all possible // sources for a registers view //------------------------------------------------- @@ -133,7 +133,7 @@ void debug_view_state::reset() //------------------------------------------------- -// recompute - recompute all info for the +// recompute - recompute all info for the // registers view //------------------------------------------------- @@ -187,7 +187,7 @@ void debug_view_state::recompute() maxtaglen = MAX(maxtaglen, item->m_symbol.len()); maxvallen = MAX(maxvallen, item->m_vallen); } - + // set the current divider and total cols m_divider = 1 + maxtaglen + 1; m_total.x = 1 + maxtaglen + 2 + maxvallen + 1; @@ -213,7 +213,7 @@ void debug_view_state::view_notify(debug_view_notification type) //------------------------------------------------- -// view_update - update the contents of the +// view_update - update the contents of the // register view //------------------------------------------------- @@ -228,7 +228,7 @@ void debug_view_state::view_update() UINT64 total_cycles = 0; if (source.m_execintf != NULL) total_cycles = source.m_execintf->total_cycles(); - + // find the first entry state_item *curitem = m_state_list; for (int index = 0; curitem != NULL && index < m_topleft.y; index++) @@ -335,7 +335,7 @@ void debug_view_state::view_update() dest++; col++; } - + // advance to the next item curitem = curitem->m_next; } diff --git a/src/emu/debug/dvstate.h b/src/emu/debug/dvstate.h index b30c973728c..406ce2c35c6 100644 --- a/src/emu/debug/dvstate.h +++ b/src/emu/debug/dvstate.h @@ -51,7 +51,7 @@ class debug_view_state_source : public debug_view_source { friend class debug_view_state; - + // construction/destruction debug_view_state_source(const char *name, device_t &device); @@ -76,7 +76,7 @@ class debug_view_state : public debug_view // construction/destruction debug_view_state(running_machine &machine, debug_view_osd_update_func osdupdate, void *osdprivate); virtual ~debug_view_state(); - + protected: // view overrides virtual void view_update(); @@ -86,7 +86,7 @@ private: struct state_item { state_item(int index, const char *name, UINT8 valuechars); - + state_item * m_next; // next item UINT64 m_lastval; // last value UINT64 m_currval; // current value @@ -104,7 +104,7 @@ private: int m_divider; // dividing column UINT64 m_last_update; // execution counter at last update state_item * m_state_list; // state data - + // constants static const int REG_DIVIDER = -10; static const int REG_CYCLES = -11; |
