Commit Graph

5980 Commits

Author SHA1 Message Date
harry 410810ac18 Fix for win port editing core debug symbol table entries. 2023-02-06 20:49:09 -05:00
harry 47530d614c Added code to check for duplicate debug symbol names when editing the name of an existing symbol. 2023-02-05 20:44:36 -05:00
harry 130d1dcd45 Changed symbolic debug table error printf statements to use FCEU_printf so that messages are logged in message viewer for user to read. 2023-02-05 08:20:28 -05:00
harry e4749425ba Added code to remap symbolic debug name in lookup table if editted via gui. 2023-02-05 03:57:23 -05:00
harry 98008bcd4d Fixed memory leak in Qt GUI when adding a new symbolic debug fails. Added error messaging to inform user why it failed. 2023-02-04 21:00:29 -05:00
harry fb75b34b1d Added smarts to Qt debugger context menu to show add/edit for symbols and bookmarks on whether they already exist or not. 2023-02-04 20:14:47 -05:00
harry b3386027bd Fixed ASAN error in debug symbol delete. 2023-02-04 15:40:52 -05:00
harry 575b019659 Changed core symbol table to have private data that can be accessed via methods. The goal is to control access to this data to prevent table lookups getting messed up when symbols are editted via the gui. 2023-02-04 15:15:31 -05:00
harry fa7da51ccd Patch new core debug symbol table into win port. 2023-02-04 07:25:39 -05:00
thor2016 5bdbdd61b1
Merge pull request #608 from tsone/lua_improve_getsymboloffset
Renamed Lua debugger.getsymboladdress() -> getsymboloffset()
2023-02-03 20:46:11 -05:00
tsone ef1f7ec39a Renamed Lua debugger.getsymboladdress -> getsymboloffset and added the function documentation. 2023-02-01 16:00:28 +01:00
harry 2d81c9c7b2 Added frame advance delay config parameter to Qt GUI and set delay default to 40 frames to match win port timing. Also, reset frameAdvance_Delay_count to zero before setting frameAdvanceRequested flag to avoid possible race condition where emulation thread can miss seeing zero count and not temporarily pause when it should. 2023-02-01 01:06:48 -05:00
harry b602de6ce0 Removed old common config code from Qt build. The Qt port only uses the newer C++ style common config system. 2023-01-31 23:02:21 -05:00
harry d32ab0ad51 Added a mutex to the debug symbol table access functions to ensure that access to symbol maps is thread safe. Since a map change will invalidate any iterators operating on the map, it is important to ensure that access to the map is locked when a thread is iterating or operating on the map. 2023-01-31 22:14:49 -05:00
harry 5cec622e58 Disabled integer loss of data conversion compiler warnings (4267,4244) for win64 builds. All warnings are converting between 32 and 64 bit types and is doubtful to an issue. 2023-01-31 01:56:04 -05:00
harry 4a54f43246 Updated state.cpp so that .luasav file paths use std::string so that they aren't limited in size. 2023-01-31 00:27:01 -05:00
harry 5ed3463c01 Cleaned up -Wunused-result compiler warnings in lua-engine.cpp 2023-01-31 00:03:16 -05:00
harry be9ad4ccf2 Fix small memory leak that occurred when loading a ROM with auto-resume enabled and now resume save file currently exists. Created fceuScopedPtr class type to help prevent memory leaks on temporary memory allocations in functions with early outs. 2023-01-30 23:10:03 -05:00
harry d4c2a7e2d9 Fix for Qt ram watch window save file symbol type parameter sometimes being undefined. 2023-01-30 22:13:28 -05:00
harry 6a2e384469 Fix for Qt Ram Watch window save files to allow for max path. 2023-01-30 21:41:03 -05:00
zeromus 8ea0a3e7e3 fix msvc building 2023-01-30 18:04:34 -05:00
tsone d5a3cecea0 Moved debug symbol table (.nl file) related code to own file and added symbol name -> address lookup. Example uses in Lua and Debugger breakpoint. 2023-01-30 17:00:10 -06:00
harry d061ba2bfa Fixes for -Wformat compiler warnings when using custom printf style functions. 2023-01-30 09:24:49 -05:00
harry 3266a20970 Changed printf attribute check to look for gcc and clang compilers specifically. 2023-01-29 20:46:16 -05:00
harry f815c849c2 Added FCEU printf format specifier macros to enable compiler checking of format strings for custom printf style functions. 2023-01-29 19:38:30 -05:00
harry 0a19794cec Fixed a few warnings for -Wunused-result with fread usage. 2023-01-29 12:32:47 -05:00
harry 4944faf618 Cleaned up -Wunused-result warnings for usage of fgets. fgets from stdin should really never fail so just added nullptr return handling to silence warning. 2023-01-29 11:42:32 -05:00
harry 421c7b35e7 Resolved strncpy -Wstringop-truncation warning in Qt NES header editor. 2023-01-29 11:28:58 -05:00
harry 727e403917 A couple more int compare sign warning fixes. 2023-01-28 22:51:33 -05:00
harry 5a98a7fc0d Re-enable int comparison sign mismatch compiler warnings. 2023-01-28 20:28:51 -05:00
harry 7c3c3caf93 More int comparison sign mismatch compiler warning fixes. 2023-01-28 20:24:17 -05:00
harry 213f4e2579 More fixes for int compare sign mismatch warnings in Qt TAS Editor. 2023-01-28 16:24:04 -05:00
harry 7910da7805 More int comparison sign mismatch compiler warning fixes. 2023-01-28 16:03:05 -05:00
harry 7a40075f3e Build fix for ssize_t not being available in windows. 2023-01-28 15:05:58 -05:00
harry c075cdca4f More int comparison sign mismatch compiler warning fixes. 2023-01-28 14:05:21 -05:00
harry 4434974350 Cleaned up int comparison sign mismatches in Qt TasEditor markers. 2023-01-28 13:49:09 -05:00
harry d530bab2e7 Resolved gcc -Wsign-compare compiler warnings in state.cpp. 2023-01-28 09:11:42 -05:00
harry 5b9385b2c8 Resolved int comparison compiler warning. 2023-01-28 09:09:58 -05:00
harry a45aa73a4a Fix for int conversion compiler warning. 2023-01-28 08:04:05 -05:00
harry 5582df13d7 A few signed/unsigned int comparison mismatch compiler warning fixes. 2023-01-28 07:54:31 -05:00
harry c2dc8cd25b A few more int conversion compiler warning fixes. 2023-01-28 07:49:24 -05:00
harry 2d158a8298 Updated a few types to size_t to match std. 2023-01-27 21:01:51 -05:00
harry a81632b7e1 Changed compiler attribute checking to play nice with older compilers. 2023-01-27 20:38:47 -05:00
harry d4d4001d32 Added a guard to not double define __WIN_DRIVER__ macro. 2023-01-27 08:14:58 -05:00
harry 85dfcef243 One more compiler warning fix for size_t to long conversion. 2023-01-27 08:06:28 -05:00
harry a9562cd655 Cleaned up a few compiler warnings caused by last commit. 2023-01-26 08:03:18 -05:00
harry 5e9e80eddc Change EMUFILE fseek,ftell, and other related functions to use types that follow the C standard (long int for position offsets and size_t for sizes). This allows for larger max file sizes on unix platforms and cleaner code that better maps to the C standard. 2023-01-25 21:46:30 -05:00
harry b338d4a037 Fix for UBSAN error: left shift of negative value 2023-01-25 20:36:32 -05:00
harry 01821d89b5 Fix for Qt GUI Avi codec save settings to support max file path. 2023-01-23 22:26:56 -05:00
harry 41878d95ef Added Qt empty scan code to Qt Key map for Mac OS platform. QKeyEvent::nativeScanCode() does not return valid codes on Mac OS, so this backup conversion method will not work on that platform. 2023-01-23 21:40:59 -05:00