summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug
Commit message (Collapse)AuthorAgeFilesLines
* frontend: Exposed memory pass-through handlers (address space taps) to Lua. Vas Crabb2022-02-101-40/+44
|
* Render-related cleanup AJR2021-12-301-0/+1
| | | | | | | - Undo inclusion of screen.h within render.h and update many source files that were stealth-including the former - Move texture_format enum to rendertypes.h - rendlay.h: Make a few methods static - ui/info.cpp: Use C++11-style iteration for render targets
* fixed size prefix in find command [smf] smf-2021-12-281-1/+1
|
* fixes for variables set but not used smf-2021-11-071-6/+6
|
* Debug memory view improvements AJR2021-10-272-37/+112
| | | | | | | | - Add options for 1-byte, 2-byte, 4-byte and 8-byte octal data display, which are selected automatically for memory spaces configured as octal. Octal data has also been made editable. - Add options for displaying addresses in decimal or octal as alternatives to the typical hexadecimal format. This also affects the address expression box. - Prevent the cursor from moving left from the first address or right from the maximum address. Note that the new options have only been hooked up for the Qt debugger. The Windows and OS X debuggers should also be updated to include them.
* srcclean in preparation for branching 0.237 release Vas Crabb2021-10-241-1/+1
|
* debugger: Memory accesses in expressions don't support taking the first ↵ Vas Crabb2021-10-201-3/+3
| | | | exposed space (yet).
* express.cpp: Fix regression in interpreting db@, ib@, ob@ and similar memory ↵ AJR2021-10-191-0/+4
| | | | access operators
* Tie up a few loose ends: Vas Crabb2021-10-202-50/+79
| | | | | | | | | | | debugger: Octal cheats for octal address spaces. frontend: Pass events for automatically generated menu items to the plugin - they will have index zero. frontend: Don't try calling the data plugin from the main menu if the system isn't starting yet - doing so will prevent the data plugin from loading at all.
* -debugger: Finished updating commands and documentation. Vas Crabb2021-10-193-206/+255
| | | | | | | | | | | | | | | | | * Updated cheat commands to work with arbitrary devices and address spaces. You can still only search RAM areas in a single address space at a time, but any address space of any device can be used now. * Made the cheatinit/cheatrange commands not affect current state if the arguments are invalid. Also fixed some bugs in the cheat commands. * Updated documentation for cheat commands, and added a simple worked example. Also added single-sentence descriptions of what (break|watch|register)points are to the top of the relevant pages. -frontend improvements: * Added a bit more info to the about box, moved the VCS revision to the heading. * Don't show "not" codes in prompts - they're not helpful.
* Still more user experience improvements: Vas Crabb2021-10-1811-220/+583
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changed the default mapping for UI select to not trigger on Alt+Enter fullscreen toggle. (Fullscreen toggle still doesn't work in menus - actually fixing that is complicated.) frontend: Made the about box wrap text properly, made the title and backtrack menu item always visible, and added a footer with the VCS revision. frontend: Don't highlight the favourites and info toolbar buttons if there's no selection (can happen if filters produce no results). Also made the info viewer appear even if no info is available - it's less confusing to see an empty menu than wonder why clicking the button does nothing. debugger: Added a register points view to the GUI debuggers, to go with the breakpoints and watchpoints views. debugger: Extended [brw]p(clear|(en|dis)able) commands to accept multiple arguments to perform the same action on multiple (break|watch|register)points at once. Also made rplist accept a CPU for showing a single CPU's register points ([bw]plist already support this). docs: Updated registerpoints debugger commands page, and updated other pages for latest extensions to syntax.
* More user experience improvements: Vas Crabb2021-10-152-30/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | frontend: Made it possible to cancel a media audit while it's in progress. Also made the media audit multi-threaded so it's faster. frontend: Made the DIP switches in the DIP switch preview clickable. frontend: Made the system and software selection menus leave focus on the same system when clearing the search rather than jumping to the first item. Also fixed a couple of bugs in the logic for keeping the selected item visible. frontend: Fixed a few places that weren't showing localised system names. frontend: Made UI Cancel clear a search in the file manager the same way it does on the system and sofware selection menus. frontend: Made it possible for plugin menus to handle UI Cancel more naturally, backing up to the previous plugin menu rather than dropping straight back to the list of plugins. Updated the autofire, cheat and cheatfind plugins, and fixed a few other issues in the cheatfind plugin. debugger: Made the mount and unmount commands accept instance names as well as brief instance names. Also updated another page of debugger documentation.
* More user experience improvements: Vas Crabb2021-10-144-315/+399
| | | | | | | | | | | | | | | | | | | | | | | | | frontend: Allow clicking the adjuster arrows on menu items. This allows things like video options and DIP switches to be configured using a mouse only. Also fixed a bug preventing paging menus with a mouse if the first item scrolled off the bottom is not selectable. debugger: Allow wplist and bplist to accept a CPU argument to list breakpoints/watchpoints for a single CPU only. debugger: Fixed some corner cases in address space syntax in memory accesses, and allowed memory region accesses to use tags relative to the visible CPU. emu/softlist.cpp: Ignore notes elements when loading software lists. It's effectively a comment that isn't a comment syntactically, it's being used for things that are not useful to display in the internal UI, and it slows down startup. docs: Updated three more pages of debugger documentation. Also updated more of the built-in debugger help. minimaws: Fixed up schema for software list notes, made sofware list notes display initially collapsed.
* Various improvements to the user experience: Vas Crabb2021-10-136-298/+314
| | | | | | | | | | | | | | | | | | Extended the memory access prefixes in debugger expressions to support address space names. Made the debugger history command aware of how much history it has collected, and added a help topic for it to the built-in debugger help. Started updating the documentation for the web site, and corrected some of the more misleading built-in debugger help. Made some corrections to Chinese localisation after discussion with YuiFAN. Darkened the UI red colour a little. cpu/m6502/st2205u.h: Marked sound imperfect.
* Fix pcatmem command (probably regressed in ↵ AJR2021-10-051-1/+1
| | | | 360d3a5950f0649270822e2db1ea25028eabd18b)
* Fix multiple issues with debug memory tracking AJR2021-10-042-5/+20
| | | | | | - Track write accesses rather than read accesses - Actually install the taps when the trackmem command is executed - Correct cell addresses for address-shifted spaces in Qt and Windows memory viewers
* debugger: Extended target address syntax to include device/address space. ↵ Vas Crabb2021-10-018-1228/+1635
| | | | | | | | | | | | | | | | | | | (#8630) Added a validity check to ensure address space names are tag-like and unique, since they're now used as identifiers in debugger commands. Extended the syntax for target addresses to allow them to be qualified with a colon followed by an optional device tag and/or address space name. If only the device needs to be specified, a debugger CPU number may also be used. This makes commands like bpset and wpset more flexible, as they can operate on CPUs other than the currently visible CPU. Commands like find, fill, dump and load are more flexible as they can access any space of any device. Removed now-redundant CPU parameters from many commands, and renamed pcatmemp to pcatmem for consistency with other commands. Extended region syntax for saver/loadr to support tags relative to the visible CPU (e.g. you can use "." for the region with the same name as the visible CPU, or "^sibling" syntax). Added an optional root device parameter to memdump. Changed interpretation of Boolean values to support numeric expressions as well as true/false strings and literal 1/0. Added checks that the specified device is CPU-like to various commands that require a CPU (e.g. focus). Previously these commands would crash or trigger an assertion failure if a tag for a non-CPU devices was specified. Fixed the cpunum symbol so it uses the same rules for determining what is or isn't a CPU as parameter parsing. Made device_t sanitise subtags better. Previously you could cause an assertion failure or crash MAME by giving it unexpected relative tags via Lua or the debugger. Added help topic alias support, and reworked the data structures to improve the performance of looking up debugger commands and help topics. Removed the "ref" parameter from debugger command functions (std::bind can hold extra argument values for you if you need them). Also added an error message if duplicate debugger commands are registered. Updated help for commands that changed syntax, and also updated summaries for some commands that had changed in the past without corresponding help updates.
* dvmemory: remove outdated/unused FD1094_HACK hap2021-09-291-9/+0
|
* Make debugger 'out' command step over return delay slots on SH architectures AJR2021-09-221-1/+9
|
* Move endianness type into lib/util header AJR2021-08-311-1/+1
|
* points.cpp: Minor correction to aef90f0db9ae60be5d03e86b4418c57f10f6b06b AJR2021-08-271-1/+1
|
* Octalize watchpoint hit message for memory spaces defined as octal AJR2021-08-271-9/+19
|
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-222-7/+7
| | | | | | | | | Added more modern generic I/O interfaces with implementation backed by stdio, osd_file and core_file, replacing io_generic. Also replaced core_file's build-in zlib compression with a filter. unzip.cpp, un7z.cpp: Added option to supply abstract I/O interface rather than filename. Converted osd_file, core_file, archive_file, chd_file and device_image_interface to use std::error_condition rather than their own error enums. Allow mounting TI-99 RPK from inside archives.
* Revert "Allow the bpset/wpset/rpset & map commands to act on any cpu, by ↵ Vas Crabb2021-08-221-27/+22
| | | | | | | | | prefixing the index or name with a # and passing as the first parameter. [smf]" This reverts commit f4213dc209ebf2247f3c7e46f32d9bd2711bb374. The issue that the syntax used for this clashes with syntax for decimal numbers was never resolved.
* Fix exception in debug memory viewer selecting a floating point format when ↵ AJR2021-08-161-0/+2
| | | | the number of chunks per row is too small
* debugger/win/memorywininfo.cpp: Fix build AJR2021-08-161-1/+1
|
* dvmemory: Substitute strongly typed enum for magic numbers specifying data ↵ AJR2021-08-162-54/+79
| | | | format
* Debugger-related feature removals and cleanup AJR2021-08-158-191/+22
| | | | | | | | - Remove the hotspot read tracker. This was never robustly implemented, but changes to the memory system made it much less useful, and the "speedup opportunities" which it aimed to determine are not very important from a current emulation standpoint. - Remove the CURSP/GENSP state symbol and the generic sp() getter. Stacking semantics vary too much between CPU architectures for this to be of much use. (A "SP" symbol has been added to a few CPU cores whose stack pointers were otherwise not being registered.) - Remove the cached pointer to device_state_interface and the state() fast accessor from device_t. Most users of device_state_interface either already had a pointer to the specific CPU device type or needed to check first for the presence of the interface. - Change the PC memory write tracker to use pcbase(), which works even when the instruction callback is masked out, instead of peeking at the PC history index. - Remove some obsolete watchpoint-related definitions from machine.h.
* Allow the bpset/wpset/rpset & map commands to act on any cpu, by prefixing ↵ smf-2021-07-281-22/+27
| | | | the index or name with a # and passing as the first parameter. [smf]
* Fix minor positioning glitches in disassembly view related to changing sources AJR2021-05-091-3/+5
|
* Add %o format support to debugger printf command AJR2021-04-061-0/+26
|
* Add 'wpsize' variable to access the data size from a watchpoint (#7837) Scott Percival2021-03-033-3/+6
|
* debug: add cls command to clear console buffer hap2021-02-164-1/+13
|
* Eliminate ARRAY_LENGTH template in favor of C++17's std::size AJR2021-02-145-8/+8
| | | | | | | | | | * osdcomm.h: Move definition of EQUIVALENT_ARRAY to coretmpl.h * sharc.cpp, gt64xxx.cpp, ym2413.cpp, gb_lcd.cpp, snes_ppu.cpp: Use STRUCT_MEMBER for save state registration * gio/newport.cpp, megadrive/svp.cpp, nes_ctrl/bcbattle.cpp, arm7.cpp, tms9995.cpp, pckeybrd.cpp, sa1110.cpp, sa1111.cpp, jangou_blitter.cpp, vic4567.cpp: Use std::fill(_n) instead of memset * emucore.h: Remove obsolete typedef
* Stop converting debugger console commands to all lowercase before parsing ↵ AJR2021-02-133-56/+56
| | | | | | | them. Case insensitivity has been preserved for command names, CPU and region tags and certain symbolic parameters (as well as expressions, which were treated as case-insensitive in other contexts), but filenames and character constants are no longer automatically lowercased. * debugcmd.cpp, debugcon.cpp: Remove some superfluous c_str() calls * debugcmd.cpp: Remove local member referencing debugger_cpu, which is accessed only rarely since the console now tracks the visible CPU
* Update state views when memory is modified through the debugger (since ↵ AJR2021-02-091-0/+1
| | | | registers can be memory-mapped)
* Bug fixes and usablility enhancements: Vas Crabb2021-01-291-0/+2
| | | | | | * Declare intent when requesting virtual memory (for NetBSD, 7712) * Improve scrolling behaviour in Qt debugger (MT07795) * Added prompts to input mapping menu to make it less intimidating
* debug/express.cpp: Fix parsing for preincrement & predecrement operators; ↵ AJR2021-01-242-90/+72
| | | | make debugging function print_tokens usable again
* Much more core std::string_view modernization AJR2021-01-205-7/+10
| | | | | | | | | | | | | | | - Remove corestr.h from emu.h; update a few source files to not use it at all - Change strtrimspace, strtrimrightspace and core_filename_extract_* to be pure functions taking a std::string_view by value and returning the same type - Change strmakeupper and strmakelower to be pure functions taking a std::string_view and constructing a std::string - Remove the string-modifying version of zippath_parent - Change tag-based lookup functions in device_t to take std::string_view instead of const std::string & or const char * - Remove the subdevice tag cache from device_t (since device finders are now recommended) and replace it with a map covering directly owned subdevices only - Move the working directory setup method out of device_image_interface (only the UI seems to actually use the full version of this) - Change output_manager to use std::string_view for output name arguments - Change core_options to accept std::string_view for most name and value arguments (return values are still C strings for now) - Change miscellaneous other functions to accept std::string_view arguments - Remove a few string accessor macros from romload.h - Remove many unnecessary c_str() calls from logging/error messages
* natkeyboard: Remove from ioport_manager AJR2020-12-261-2/+2
|
* debughlp.cpp: document loadr and saver debugger commands Ivan Vangelista2020-12-151-1/+34
|
* Prevent certain register values from being formatted with invalid characters ↵ AJR2020-12-141-0/+3
| | | | added in debugger state views (e.g. upd7810)
* debugcon.cpp, textbuf.cpp: More uses for std::string_view AJR2020-12-114-71/+67
|
* debug/textbuf.cpp: Another obvious use for std::string_view AJR2020-12-083-11/+6
|
* frontend: Lua engine improvements. Vas Crabb2020-11-302-2/+3
| | | | | | | | | | | | | | Added methods for enabling and disabling breakpoints and watchpoints, and made debugger views update when breakpoints/watchpoints are manipulated from Lua. Made breakpoints and watchpoints objects rather than tables. (It’s not possible to enable/disable a breakpoint or watchpoint from the object itself, you have to go through its owners' debug interface.) Exposed more device_t members for dealing with child/sibling tags and devices. Also provided a way to get regions/shares/banks from a device using relative tags rather than going through the memory manager with absolute tags.
* Fairly significant overhaul of Lua engine and some cleanup. Vas Crabb2020-11-258-51/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The things that were previously called device iterators are not iterators in the C++ sense of the word. This is confusing for newcomers. These have been renamed to be device enumerators. Several Lua methods and properties that previously returned tables now return lightweight wrappers for the underlying objects. This means creating them is a lot faster, but you can't modify them, and the performance characteristics of different operations varies. The render manager's target list uses 1-based indexing to be more like idiomatic Lua. It's now possible to create a device enumerator on any device, and then get subdevices (or sibling devices) using a relative tag. Much more render/layout functionality has been exposed to Lua. Layout scripts now have access to the layout file and can directly set the state of an item with no bindings, or register callbacks to obtain state. Some things that were previously methods are now read-only properties. Layout files are no longer required to supply a "name". This was problematic because the same layout file could be loaded for multiple instances of the same device, and each instance of the layout file should use the correct inputs (and in the future outputs) for the device instance it's associated with. This should also fix video output with MSVC builds by avoiding delegates that return things that don't fit in a register.
* Implement views, which are essentially bankdevs integrated into the Olivier Galibert2020-11-221-3/+8
| | | | memory map system. [O. Galibert]
* Add strdump debugger command for dumping memory as ASCII strings AJR2020-11-183-0/+203
|
* Fix most implicit fallthrough warnings from clang Vas Crabb2020-11-171-1/+1
|
* Remove some deprecated instantiations of static constexpr members (MSVC ↵ Vas Crabb2020-11-152-10/+0
| | | | complains about them now)