summaryrefslogtreecommitdiffstats
path: root/src/osd/modules/debugger/debugimgui.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* floppy: remove the intermediate allocator Olivier Galibert2022-03-301-2/+2
|
* device_image_interface: Interface overhaul AJR2022-01-061-3/+4
| | | | | | | | | | | | | - Remove the iodevice_t classification, which was not used that much and was incomplete anyway. Image device implementations must now provide their own instance names and brief instance names. Several new parent classes have been created to make it easier to use the old standard names. - Change must_be_loaded from a pure virtual function to be overridden in implementations to a getter for a base class property that can be set on the host side (as was formerly made possible for NES, MD and "generic" cartridge slots) but defaults to false for all types. This restrictive property has been unset for a small number of cases. - Create parent classes for paper tape and magnetic tape devices. At present these are dummy classes that do little to nothing, but may help unify implementations in the future. - Change several member functions to take std::string_view parameters rather than const std::string & or const char *. - Make update_names take into account brief names, as discussed in PR #2555. - Remove the obsolete uses_file_extension function (which used thread-unsafe strtok). * portfolio_ccm_slot: Change image type from "cartridge" to "memcard" * i7220, datapack: Add custom instance names that weren't there before * pc11: Add note
* debugimgui: Fix menus losing focus, add octal display and octal/decimal ↵ Barry Rodewald2021-11-191-12/+46
| | | | address select.
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-221-4/+4
| | | | | | | | | 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.
* srcclean for upcoming release Vas Crabb2021-08-221-2/+2
|
* dvmemory: Substitute strongly typed enum for magic numbers specifying data ↵ AJR2021-08-161-15/+15
| | | | format
* Update debugimgui to compile with latest imgui MooglyGuy2021-08-101-2/+7
|
* debugimgui: fix mount and create image dialogs. Barry Rodewald2021-07-251-5/+13
|
* floppy: Change the formats from an intrusive list to a vector Olivier Galibert2021-05-271-2/+1
|
* Tidy up loose ends: Vas Crabb2021-01-061-4/+3
| | | | | | | | * Fixed a couple of fixed-size buffers in Windows OSD code. * Marked MAME as aware of long paths in Windows manifest. * Made a cleaner, thread-safe API for getting volume names. * Added compile-time option to disable recompiler W^X mode. * NuBus image device current directory doesn't need to be pinned.
* Fairly significant overhaul of Lua engine and some cleanup. Vas Crabb2020-11-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Miscellaneous cleanup: Vas Crabb2020-10-101-1/+1
| | | | | * osd/windows: Use steady clock for timing double-clicks. * emu/uiinput.cpp: Made the event type a scoped enum.
* Got rid of global_alloc/global_free. Vas Crabb2020-10-031-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The global_alloc/global_free functions have outlived their usefulness. They don't allow consistently overriding the default memory allocation behaviour because they aren't used consistently, and we don't have standard library allocator wrappers for them that we'd need to use them consistently with all the standard library containers we're using. If you need to change the default allocator behaviour, you can override the new/delete operators, and there are ways to get more fine-grained control that way. We're already doing that to pre-fill memory in debug builds. Code was already starting to depend on global_alloc/global_free wrapping new/delete. For example some parts of the code (including the UI and Windows debugger) was putting the result of global_alloc in a std::unique_ptr wrappers without custom deleters, and the SPU sound device was assuming it could use global_free to release memory allocated with operator new. There was also code misunderstanding the behaviour of global_alloc, for example the GROM port cartridge code was checking for nullptr when a failure will actually throw std::bad_alloc. As well as substituting new/delete, I've made several things use smart pointers to reduce the chance of leaks, and fixed a couple of leaks, too.
* Debugger expression and memory access overhaul AJR2020-05-251-18/+18
| | | | | | | | | | | | | - Memory references in expressions no longer default to the console's visible CPU if no device name was specified, except when entered through the console itself. Expressions in view windows now use the context of the currently selected device instead. - The pcatmem debug command and similar qt mouseover function now produce an error message if the initial address translation fails. Related internal changes (nw) - The debugger_cpu class no longer interprets memory accesses. The existing routines have been moved into symbol_table (which used to invoke them as callbacks), and reimplemented in most other places. Thecode duplication is a bit messy, but could be potentially improved in the future with new utility classes. - The cheat engine no longer needs to hook into the debugger_cpu class or instantiate a dummy instance of it. - The inclusion of debug/express.h within emu.h has been undone. Some debugging structures now need unique_ptr to wrap the resulting incomplete classes; hopefully the performance impact of this is negligible. Another direct consequence is that the breakpoint, watchpoint and registerpoint classes are no longer inside device_debug and have their own source file. - The breakpoint list is now a std::multimap, using the addresses as keys to hopefully expedite lookup. - The visible CPU pointer has been removed from the debugger_cpu class, being now considered a property of the console instead. - Many minor bits of code have been simplified.
* Revert "fixed some modernize-use-equals-default clang-tidy warnings (… (#6360) Oliver Stöneberg2020-04-081-1/+1
| | | | | | | * Revert "fixed some modernize-use-equals-default clang-tidy warnings (nw)" This reverts commit 54486ab9 * fixed merge error
* fixed some modernize-use-auto clang-tidy warnings (nw) (#6238) Oliver Stöneberg2020-01-301-12/+12
|
* fixed some modernize-use-equals-default clang-tidy warnings (nw) (#6237) Oliver Stöneberg2020-01-301-1/+1
|
* fixed some clang-tidy warnings (nw) (#6236) Oliver Stöneberg2020-01-301-1/+1
| | | | | | | | | | | | | | | | * fixed some modernize-redundant-void-arg clang-tidy warnings (nw) * fixed some modernize-use-bool-literals clang-tidy warnings (nw) * fixed some modernize-use-emplace clang-tidy warnings (nw) * fixed some performance-move-const-arg clang-tidy warnings (nw) * fixed some readability-redundant-control-flow clang-tidy warnings (nw) * fixed some readability-redundant-string-cstr clang-tidy warnings (nw) * fixed some performance-unnecessary-value-param clang-tidy warnings (nw)
* fixed some clang-tidy warnings (nw) (#6197) Oliver Stöneberg2020-01-221-4/+4
| | | | | | | | | | | | | | * fixed some bugprone-throw-keyword-missing clang-tidy warnings (nw) * fixed some modernize-use-nullptr clang-tidy warnings (nw) * fixed some readability-delete-null-pointer clang-tidy warnings (nw) * fixed some performance-faster-string-find clang-tidy warnings (nw) * fixed some performance-for-range-copy clang-tidy warnings (nw) * fixed some readability-redundant-string-cstr clang-tidy warnings (nw)
* misc cleanup: Vas Crabb2019-11-181-25/+13
| | | | | | | * Got rid of some more simple_list in core debugger code * Fixed a buffer overrun in wavwrite (buffer half requried size) * Slightly reduced dependencies and overhead in wavwrite * Made new disassembly windows in Qt debugger default to current CPU
* 3rdparty: Updated bgfx, bimg, and bx to latest upstream. [Ryan Holtz] mooglyguy2018-12-051-3/+3
|
* fix building with clang 6.0.1 (nw) smf-2018-07-071-2/+0
|
* Convert zippath directory to a C++ interface Vas Crabb2018-01-101-11/+11
|
* Updated GENie, BGFX, BX, added BIMG since it is separated now, updated all ↵ Miodrag Milanovic2017-12-011-10/+7
| | | | shader binaries and MAME part of code to support new interfaces [Miodrag Milanovic]
* Don't process every character individually when searching - this reduces Vas Crabb2017-08-101-1/+1
| | | | | | lag if you keep typing while a big list is searched. (nw) patch up German translation
* general cleanup: Vas Crabb2017-05-231-1/+1
| | | | | | | | | | | * move rarely-used output and pty interfaces out of emu.h * consolidate and de-duplicate forward declarations, also remove some obsolete ones * clean up more #include guard macros * scope down a few more things (nw) Everyone, please keep forward declarations for src/emu in src/emu/emufwd.h - this will make it far easier to keep them in sync with declarations than having them scattered through all the other files.
* fix compile with Xcode 8.2 (nw) arbee2016-12-151-1/+1
|
* debugimgui: sort directory entries in mount dialog, as zippath_readdir() ↵ mahlemiut2016-12-161-0/+5
| | | | does not guarantee entries are in any particular order.
* debugimgui: lighten combo box list so that it's easier to read (nw) mahlemiut2016-12-041-2/+2
|
* simplified memory allocation for osd_module (nw) Miodrag Milanovic2016-11-111-0/+1
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-8/+8
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* srcclean and translation regeneration Vas Crabb2016-08-291-9/+9
|
* debugimgui: added very crude create image dialog mahlemiut2016-08-251-54/+201
|
* debugimgui: added images menu, with crude file select dialog [Barry Rodewald] mahlemiut2016-08-161-2/+202
|
* Fix order of evaluation making imgui debugger not fail on starting without ↵ Miodrag Milanovic2016-07-231-1/+1
| | | | driver selected (nw)
* Cleanup and version bumpmame0175 Miodrag Milanovic2016-06-291-5/+5
|
* debugimgui: allow debugger console and log window scrollbars to stay at ↵ mahlemiut2016-06-251-1/+16
| | | | their maximum value if already there
* debugimgui: don't add command to history if it's the same as the previous one mahlemiut2016-06-231-1/+8
|
* debugimgui: when using history, set the cursor position to the end of the text mahlemiut2016-06-201-2/+2
|
* debugimgui: added history functionality to debugger console, fixed issue ↵ mahlemiut2016-06-191-4/+39
| | | | with main views being re-allocated when no extra windows have been created.
* debugimgui: if console window is active, then give console input widget ↵ mahlemiut2016-06-141-0/+2
| | | | focus. Note that this means that the disassmbly view in the console cannot get focus at all (but separate disasm windows still can).
* debugimgui: use IM_COL32 macro mahlemiut2016-06-131-3/+3
|
* debugimgui: draw a light rectangle around a view if it has focus, gives a ↵ mahlemiut2016-06-111-0/+10
| | | | visual cue as which view accepts input.
* Major refactoring of debugger core [Ryan Holtz] therealmogminer@gmail.com2016-06-081-22/+22
| | | | | | | | * Eliminate globals/file statics * Remove lots of stuff from global scope * Use std::function for custom command registration * Eliminate some trampolines * Build fixes from Vas Crabb and balr0g
* debugimgui: send character inputs to the debugger view with focus, allows ↵ mahlemiut2016-06-061-0/+12
| | | | editing in memory views.
* debugimgui: make new window shortcut keypresses not repeat mahlemiut2016-06-061-5/+5
|
* debugimgui: made debugger keys also use ImGui keypress functions mahlemiut2016-06-061-41/+41
|
* debugimgui: adjust key repeat rate a bit mahlemiut2016-06-051-0/+5
|
* debugimgui: fix exception when un-collapsing a single window. mahlemiut2016-06-051-11/+16
|
* debugimgui: use ImGui functions to handle view inputs, allows key repeating ↵ mahlemiut2016-06-051-12/+12
| | | | to work in the debugger views.