Commit Graph

458 Commits

Author SHA1 Message Date
Miodrag Milanovic
402ad8ef85 small debugger cleanup (nw) 2016-06-17 13:39:42 +02:00
Miodrag Milanovic
3969f6e749 Fixed debugger regression (nw) 2016-06-17 12:04:28 +02:00
therealmogminer@gmail.com
56bd36c5ef Major refactoring of debugger core [Ryan Holtz]
* 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
2016-06-08 08:10:55 +10:00
angelosa
62b82f2937 TODO note, nw 2016-06-05 16:11:28 +02:00
angelosa
ea46245a9a Added commit command to debugger. [Angelo Salese] 2016-06-05 16:11:27 +02:00
angelosa
6aa1d4d66c Update help file, the whole help string parser is so 90s, nw 2016-06-04 19:43:26 +02:00
angelosa
a9a5cceb72 Added comlist comment to debugger [Angelo Salese]
Added notes wrt dangarj protection, nw
2016-06-04 19:43:25 +02:00
Vas Crabb
bbb2e917b5 MT6225 MT6226 MT6227 debugger may crash when validating expression with non-existent memory space name 2016-05-30 14:17:01 +10:00
Miodrag Milanovic
89c5e1f681 Various cleanups suggested by static analyzer (nw) 2016-04-24 12:58:31 +02:00
Miodrag Milanovic
1c726824f2 Split UI and frontend part from core [Miodrag Milanovic] 2016-04-23 11:26:47 +02:00
AJR
084d3654ca Iterate over devices C++11 style
Replace the old device_iterator and its specialized versions with functionally equivalent classes that use standard operators to yield references to devices/interfaces rather than pointers. With range-based for loops, they no longer have to be stored in named variables, though they can also be reused concurrently since the iteration state is now maintained by a subclass.

Add a few more typical getters to device_t::subdevice_list.
2016-04-18 18:53:28 -04:00
R. Belmont
3ed3b7e7fc Merge pull request #776 from jmallach/typos
Fix typos throughout the codebase
2016-04-12 08:48:35 -04:00
couriersud
7b3d46dea7 Add includes for dependency documentation. (nw) 2016-04-09 12:17:51 +02:00
Jordi Mallach
3d5c53d11e Typo fix: threshhold → threshold 2016-04-01 02:28:16 +02:00
AJR
b0e033146a Avoid auto return types; silence some unused variable warnings (nw) 2016-03-31 13:50:31 -04:00
AJR
a7e393b36b Iterate over core classes C++11 style
C++11 range-based for loops can now iterate over simple_list, tagged_list, core_options, device_t::subdevice_list, device_t::interface_list, render_primitive_list and all subclasses of the above, and much code has been refactored to use them. Most core classes that have these lists as members now have methods that return the lists themselves, replacing most of the methods that returned the object at an owned list's head. (A few have been retained due to their use in drivers or OSD.)

device_t now manages subdevice and interface lists through subclasses, but has given up the work of adding and removing subdevices to machine_config.

memory_manager has its tagged lists exposed, though the old rooted tag lookup methods have been removed (they were privatized already).
2016-03-31 09:43:53 -04:00
Miodrag Milanovic
913ab1e140 Cleanups and version bump 2016-03-30 08:35:21 +02:00
Vas Crabb
100fa28671 * Remove confusing method from vectorstreams that hide base_ios method (fixes disassembly view)
* Allow std::string to pass through core_file unmolested (reduces temporary allocations)
* Make zip/7z instances of same class with uniform interface
* zippath browsing is broken at the moment

This is another step towards transparent archive support.  It's now
possible to access zip and 7z archives with the same code.  Nothing is
taking advantage of it yet.  There's now some very similar code in
fileio.cpp and clifront.cpp that could be folded at some point.
2016-03-18 19:32:10 +11:00
Lord-Nightmare
acb27808d4 temporary fix for debugger disassembly view on windows (nw) 2016-03-18 03:43:06 -04:00
Vas Crabb
f0e580e40a Clear error status on persistent streams 2016-03-17 13:30:09 +11:00
Vas Crabb
42fbb9c396 Make osd_file a polymorphic class that's held with smart pointers
Make avi_file a class that's held with smart pointers, encapsulate various AVI I/O structures
Make zip_file and _7z_file classes rather than having free functions everywhere
Hide zip/7z class implementation behind an interface, no longer need to call close() to send back to the cache
Don't dump as much crap in global namespace
Add solaris PTY implementation
Improve variable expansion for SDL OSD - supports ~/$FOO/${BAR} syntax
Rearrange stuff so the same things are in file module for all OSDs
Move file stuff into its own module

7z/zip open and destruct are still not thread-safe due to lack of interlocks around cache access
Directory functions still need to be moved to file module
SDL OSD may not initialise WinSock on Windows
2016-03-14 18:55:00 +11:00
Vas Crabb
ed88fd30a1 More stream enhancement 2016-03-03 03:53:43 +11:00
Vas Crabb
d50614c8bd Use stream with contiguous backing store for the disasmview's buffer 2016-03-03 03:53:43 +11:00
Vas Crabb
66d0ef8ed4 Fix some oversights in previous changes, sorry guys'n'gals 2016-03-03 01:25:48 +11:00
Happy
8aa07c72e7 Change field format to show leading zeros for debugger 'dasm' command as well 2016-03-01 13:46:33 -07:00
Happy
5257bf21cd Change field format to show leading zeros for debugger 'dump' command 2016-03-01 13:16:38 -07:00
Vas Crabb
599570bf7f Fix stupid reversed subtraction 2016-03-01 22:33:19 +11:00
Vas Crabb
fee5fb55f9 Get rid of most uses of core_i64_hex_format, all remaining uses are in memory.cpp 2016-03-01 21:40:14 +11:00
Vas Crabb
9224c862b2 Move more things to type-safe printf 2016-03-01 18:57:06 +11:00
Vas Crabb
aec01e7407 Replace strformat, strprintf and strcatprintf with type-safe steam_format and string_format
Update MAME to use new function
Instantiate ODR-used static constant members
Make some of the UI code more localisable
Remove use of retired functions in tools
2016-02-28 13:36:19 +11:00
Miodrag Milanovic
3abcaee63f Cleanups and version bump 2016-02-24 07:46:57 +01:00
Miodrag Milanovic
ccae0382bb Added plugins and boot.lua as startup script [Miodrag Milanovic] 2016-02-14 10:58:18 +01:00
AJR
7750a10135 Make octal flag part of address_space/address_space_config, not (illogically) device_execute_interface (nw) 2016-02-04 17:10:53 -05:00
Miodrag Milanovic
42622cfe8e replace osd_lock with std::mutex [Miodrag Milanovic] 2016-01-30 20:43:50 +01:00
AJR
83e6738a0a Add macros for alignment checking (nw) 2016-01-30 13:25:32 -05:00
dankan1890
361d32d37f Small code cleanup:
- corealloc.h: added macro definition for global_alloc (nothrow) memory allocation.
- textbuf.cpp / wavwrite.cpp: removed pointless cast.
- debugcmd.cpp / luaengine.cpp / render.cpp: avoid strlen calls in a loop.
- diimage.cpp: simplified "device_image_interface::set_image_filename" function.
- miscmenu.cpp / selgame.h / video.cpp(h): replaced int with bool where applicable.
- ui.cpp: removed unused code.
2016-01-29 00:43:18 +01:00
Miodrag Milanovic
1991ad3e66 Fixed bug debugging drivers with es5510 core, possibly some others that do not have AS_PROGRAM at all (nw) 2016-01-25 15:00:35 +01:00
Miodrag Milanovic
4e8e3066f8 reverting:
SHA-1: 1f90ceab07

* tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-20 21:42:13 +01:00
Miodrag Milanovic
7c9cd3feea Revert "rest of device parameters to std::string (nw)"
This reverts commit caba131d84.
2016-01-20 21:35:11 +01:00
Miodrag Milanovic
abb7f223b3 Revert "Fix for hang, emu_options::add_slot_options was changed, other things are just cleanup (nw)"
This reverts commit 841a55985e.
2016-01-20 21:32:11 +01:00
Miodrag Milanovic
684132719f Revert "Memory region to use std::string (nw)"
This reverts commit 14d0bff4d0.
2016-01-20 21:31:21 +01:00
Miodrag Milanovic
14d0bff4d0 Memory region to use std::string (nw) 2016-01-20 16:04:07 +01:00
Miodrag Milanovic
841a55985e Fix for hang, emu_options::add_slot_options was changed, other things are just cleanup (nw) 2016-01-18 14:39:13 +01:00
Miodrag Milanovic
caba131d84 rest of device parameters to std::string (nw) 2016-01-16 20:05:32 +01:00
Miodrag Milanovic
1f90ceab07 tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-16 14:54:42 +01:00
Miodrag Milanovic
807265ed21 put debug_view back in machine due to issues with QT (nw) 2016-01-12 12:00:56 +01:00
Miodrag Milanovic
f9a9eafba0 created debugger_manager, now this one owns debug_view_manager (nw) 2016-01-12 09:50:59 +01:00
Miodrag Milanović
36195292e3 Merge pull request #561 from ajrhacker/strings
Return std::string objects by value rather than pass by reference [ajrhacker]
2016-01-11 09:18:43 +01:00
AJR
115db95642 Return std::string objects by value rather than pass by reference
- strprintf is unaltered, but strformat now takes one fewer argument
- state_string_export still fills a buffer, but has been made const
- get_default_card_software now takes no arguments but returns a string
2016-01-10 16:36:18 -05:00
Miodrag Milanovic
30c10f6f79 modernized ui_input_manager (nw) 2016-01-10 20:32:30 +01:00