Vicki Pfau
3e47da2e18
SDL: Fix minor leak if debugger isn't used
2023-11-24 22:28:05 -08:00
Vicki Pfau
319bdbd106
Feature: Move command-line debugger argument handling
2023-11-24 22:28:05 -08:00
Vicki Pfau
b7284542bc
Debugger: Move CLIDebugerEditLine implementation into debugger/
2023-11-24 22:28:05 -08:00
Vicki Pfau
ce4024a29e
GBA Savedata: Fix crash when resizing flash save games for RTC data
2023-11-24 22:28:05 -08:00
Vicki Pfau
050c5da263
Tools: Move updater and docgen source into tools/
2023-11-24 22:28:05 -08:00
Vicki Pfau
978e7c94b2
Tools: Add SDF-generation tool and 4x font SDF
2023-11-24 22:28:05 -08:00
nia
d75d26bcc9
Scripting: Check for ENOTRECOVERABLE
...
It's part of "robust mutexes" and may not necessarily be available
(e.g. on NetBSD 9)
2023-11-20 02:49:43 -08:00
Vicki Pfau
6853080b98
FFmpeg: Fix deprecation warnings
2023-11-06 22:16:14 -08:00
Vicki Pfau
437ad30547
GBA Audio: Only read MP2k context addresses if valid
2023-10-29 17:07:15 -07:00
Vicki Pfau
9c9f31d0d1
Qt: Fix non-debugger build ( fixes #3049 )
2023-10-25 15:22:09 -07:00
Vicki Pfau
6ecc182d7c
Qt: Attach debugger when attaching scripting controller ( fixes #3046 )
2023-10-15 19:42:50 -07:00
leo60228
ce374b15a3
Debugger: Advertise QStartNoAckMode support
2023-10-07 23:56:23 -07:00
leo60228
6e2c3885ee
Debugger: Fix off-by-one breaking StartNoAckMode
2023-10-07 23:56:23 -07:00
David Spickett
ef7edba159
Debugger: Fix interrupt after continue from GDB stub
...
GDB and LLDB will send a ctrl-c character (\x03) to the stub
to interrupt it after a continue where it doesn't stop on its own.
E.g.
```
void foo() {
foo2(); // Continue from here.
while (1) {} // Loops here until ctrl-c in the debugger.
}
```
mGBA had code to handle the ctrl-c but because in _continue
we set the paused status after calling mDebuggerModuleSetNeedsCallback,
the callback was never set so nothing was looking for new messages
while we were running. We should instead set the paused state then call
mDebuggerModuleSetNeedsCallback.
mDebuggerModuleSetNeedsCallback calls mDebuggerUpdatePaused, and all
other calls to mDebuggerUpdatePaused update the paused state before
that call so this matches existing usage of that too.
With this fix, after the continue _gdbStubPoll is called periodically
and will pick up the ctrl-c as it comes in (_gdbStubWait is used when
we are stopped in the debugger).
This fixes ctrl-c to interrupt when using lldb and gdb.
2023-10-07 23:56:11 -07:00
Vicki Pfau
46f59df10a
Core: Add missing defines to flags.h
2023-09-27 20:21:28 -07:00
Vicki Pfau
d34ec95879
Wii: Fix build
2023-09-27 20:21:03 -07:00
Vicki Pfau
0f0dccdcf2
Scripting: Unpack breakpoint name struct
2023-09-27 17:53:30 -07:00
Vicki Pfau
476dcc11df
Scripting: Attach canvas object in docgen
2023-09-27 16:51:48 -07:00
Vicki Pfau
1dd00d5bb0
Scripting: Fix typo in docs
2023-09-27 16:47:43 -07:00
Vicki Pfau
4215332eb4
Revert "Qt: Ensure action set is clean before (re)building"
...
This reverts commit 3ee12b1a55
.
2023-09-24 21:04:59 -07:00
David Spickett
7de02c9949
Debugger: Correct PC value when read with 'p' instead of 'g' packet
...
The 'g' packet is handled by _readGPRs which has a special case for
the PC due to the way the CPU reports the PC value.
This was added by added by a967f9aac4
.
The 'p' packet is handled by _readRegister which did not have this
special case for PC. This lead to GDB reporting the correct PC value
but LLDB not, as the latter used 'p' instead.
This meant you saw things like this:
0x80002a4 <+16>: str r0, [sp, #0x4]
0x80002a8 <+20>: bl 0x80001f0 <----------expected to be here.
-> 0x80002ac <+24>: b 0x80002b0
Where you expected to be about to bl to another function,
but it looked like you had already done it.
And more obviously, when you first attached to the GDB stub,
the PC was reported as 4 not 0.
2023-09-22 23:07:43 -07:00
Vicki Pfau
beda1d5b87
Scripting: Enhance error reporting
2023-09-16 01:30:40 -07:00
Vicki Pfau
efb30080e8
Scripting: Code cleanup
2023-09-16 01:20:55 -07:00
Vicki Pfau
0c675b12e4
Scripting: Simplify console implementation
2023-09-16 01:20:34 -07:00
Vicki Pfau
805773aa8f
Scripting: Fix console error log level
2023-09-16 00:42:52 -07:00
Vicki Pfau
c03b15944b
Qt: Add shadow ROM exporting
2023-09-15 23:36:03 -07:00
Vicki Pfau
8610147ad7
Qt: Expand romFilters functionality
2023-09-15 23:36:03 -07:00
Vicki Pfau
131b983894
Debugger: Move platform-specific flag lookup to mDebuggerPlatform
2023-09-15 23:36:03 -07:00
Vicki Pfau
d55a13c9ba
Debugger: Initial memory access logger support
2023-09-15 23:36:03 -07:00
Vicki Pfau
9c673f527d
ARM, SM83: Check for events both before and after single stepping
2023-09-15 23:36:03 -07:00
Vicki Pfau
5d32e432b3
GBA Core: Add missing blocks
2023-09-15 23:36:03 -07:00
Vicki Pfau
c6316edf2a
GB, GBA: Move CLI debugger headers
2023-09-15 22:08:12 -07:00
Vicki Pfau
7015a104be
Debugger: Clean up layering violation
2023-09-15 22:08:12 -07:00
Vicki Pfau
b2dd7611ea
GBA Core: Export reduced GBA ROM region size if the ROM is less than 32 MiB
2023-09-15 22:06:33 -07:00
Vicki Pfau
022e009a75
GB Core: Fix exported size information
2023-09-15 22:06:33 -07:00
Vicki Pfau
b46278b3ed
GBA: Make sure unloading a ROM frees the AGBPrint buffer
2023-09-15 22:06:33 -07:00
Vicki Pfau
4b9072de03
Qt: Move controller-based subview auto-closing
2023-09-14 22:34:46 -07:00
Vicki Pfau
f051b88f81
Qt: SaveConverter doesn't use the controller
2023-09-14 22:34:46 -07:00
Vicki Pfau
4de9d5f16c
Core: Fix potential UAF when loading a ROM in a VDir
2023-09-14 22:34:46 -07:00
Vicki Pfau
8520ad8f1f
GBA I/O: Prefix GBA registers with GBA_REG_
2023-09-07 00:12:19 -07:00
Vicki Pfau
4c03970ffe
GBA I/O: More legibility improvements
2023-09-07 00:12:19 -07:00
Vicki Pfau
bcb0073a4a
GBA I/O: Improve legibility of long constants
2023-09-07 00:12:19 -07:00
Vicki Pfau
6ed7341b5a
Debugger: Fix trace
2023-09-06 18:59:07 -07:00
Vicki Pfau
20931a89d9
GBA Core: Fix Flash 1M memory block descriptor
2023-09-02 00:43:43 -07:00
Vicki Pfau
f2186f6a5c
Vita: Fix camera setting not appearing ( fixes #3012 )
2023-08-28 13:29:03 -07:00
Vicki Pfau
85c9872cd6
GB I/O: Fix STAT writing IRQ trigger conditions ( fixes #2501 )
2023-08-25 23:02:18 -07:00
Vicki Pfau
0acc8c2af2
GBA Audio: Fix sample position issues when rate changes ( fixes #3006 )
2023-08-23 14:35:16 -07:00
Vicki Pfau
16fe12cc97
Qt: Remove shared_ptr copies in for loops
2023-08-18 22:14:40 -07:00
Vicki Pfau
5c2a55884b
Qt: Fix remaining non-Multimedia Qt 6 build issues
2023-08-18 21:45:08 -07:00
Vicki Pfau
613ce0286a
Qt: Force surface type to OpenGL in DisplayGL
2023-08-18 21:44:46 -07:00
Vicki Pfau
17dbdcf57c
Qt: Change Action* semantics to std::shared_ptr<Action>
2023-08-18 21:30:33 -07:00
Vicki Pfau
3ee12b1a55
Qt: Ensure action set is clean before (re)building
2023-08-18 21:28:43 -07:00
Vicki Pfau
6e65b70c32
Qt: Fix input-related Qt 6 build errors
2023-08-18 20:17:19 -07:00
Vicki Pfau
f5a6906ef8
Qt: Fix display-related Qt6 build errors
2023-08-18 20:12:18 -07:00
Vicki Pfau
f637b5b1e8
Util: Fix warning when libpng is disabled
2023-08-10 12:43:39 -07:00
Vicki Pfau
bbdcb8b83b
Scripting: Fix rounding warning
2023-08-10 12:17:44 -07:00
Vicki Pfau
56d21feb10
OpenGL: Fix warnings
2023-08-10 12:17:44 -07:00
Vicki Pfau
19e44d59d0
Util: Fix warnings
2023-08-10 12:06:29 -07:00
Vicki Pfau
f96ba8c1aa
ARM: Fix warning
2023-08-10 11:58:05 -07:00
Vicki Pfau
6a317779c8
Qt: Fix mute settings not being loaded on setting screen ( fixes #2990 )
2023-08-08 19:34:10 -07:00
Vicki Pfau
0cd50cae8c
Qt: Fix crash entering commands into detached debugger ( fixes #2987 )
2023-08-06 22:38:45 -07:00
Vicki Pfau
1bb8d52e16
Qt: Fix gdb at startup ( fixes #2986 )
2023-08-05 17:58:12 -07:00
shenef
fdfa73a7f5
Qt: Mark video encoding options as untranslatable
2023-08-05 16:33:22 -07:00
Vicki Pfau
fc1bfb9c73
Qt: Remove maligned double-click-to-fullscreen shortcut ( closes #2632 )
2023-08-05 12:47:14 -07:00
Vicki Pfau
b0977cef94
Qt: Re-enable sync for multiplayer windows that aren't connected ( fixes #2974 )
2023-08-04 23:19:29 -07:00
Vicki Pfau
189fce016f
Scripting: Fix typo
2023-08-04 21:35:50 -07:00
Vicki Pfau
3574f1cc6b
Scripting: Export mPainter class
2023-08-03 19:32:27 -07:00
Vicki Pfau
3d0c982d6e
Scripting: Add handling of wrapper type specification in function signatures
2023-08-03 19:32:04 -07:00
Vicki Pfau
09b7eea127
Script: Add mScriptContextInvoke for context-specific invocation and thread handling
2023-08-02 23:41:40 -07:00
Vicki Pfau
5534d23690
Updater: Fix existing directory update logic
2023-07-31 18:23:08 -07:00
Vicki Pfau
ec52154112
Qt: Fix uninitialized members
2023-07-29 18:33:06 -07:00
Vicki Pfau
8b4818c3d8
OpenGL: Fix uninitialized context dimensions
2023-07-29 18:32:55 -07:00
Vicki Pfau
0457b1bcb7
Util: Shape drawing fixes, better tests
2023-07-29 14:13:55 -07:00
Vicki Pfau
fe229348eb
Qt: Update translations
2023-07-28 13:00:34 -07:00
Felipe
abd7ccbb1f
Qt: Update translation (Portuguese (Brazil))
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt_BR/
2023-07-28 12:56:26 -07:00
Davi Lopes
9a8ab700f7
Qt: Update translation (Portuguese (Brazil))
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt_BR/
2023-07-28 12:55:32 -07:00
Felipe
5b38c0f398
Qt: Update translation (Portuguese (Brazil))
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt_BR/
2023-07-28 12:55:32 -07:00
shinyoyo
fd6a4161ac
Qt: Update translation (Chinese (Simplified))
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/zh_Hans/
2023-07-28 12:53:25 -07:00
Luna Lyday
6c55c26082
Qt: Update translation (Polish)
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pl/
2023-07-28 12:53:25 -07:00
raid273
92d7c1a1d1
Qt: Update translation (Japanese)
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/ja/
2023-07-28 12:53:25 -07:00
ssantos
8c0b9f6d06
Qt: Added translation (Portuguese)
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/pt/
2023-07-28 12:53:25 -07:00
Lothar Serra Mari
b5c1330528
Qt: Update translation (German)
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/de/
2023-07-28 12:49:39 -07:00
Guih48
5fb0ae88a7
Qt: Update translation (Hungarian)
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/hu/
2023-07-28 12:48:46 -07:00
gallegonovato
1ee7b70194
Qt: Update translation (Spanish)
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/es/
2023-07-28 12:48:33 -07:00
Hoseok Seo
652b078aab
Qt: Update translation (Korean)
...
Translation: mGBA/Qt
Translate-URL: https://hosted.weblate.org/projects/mgba/mgba-qt/ko/
2023-07-28 12:48:06 -07:00
Vicki Pfau
57ba653bc7
Util: Add mPainterDrawCircle
2023-07-27 20:26:25 -07:00
Vicki Pfau
ba49175697
Util: Add mPainterDrawLine
2023-07-24 21:01:01 -07:00
Vicki Pfau
4ca8ffe3f4
Updater: Fix MSVC build
2023-07-24 19:21:43 -07:00
Vicki Pfau
9742722213
GUI: Add missing include
2023-07-23 22:48:30 -07:00
Vicki Pfau
02ba4f2499
GBA GPIO: Fix tilt scale and orientation ( fixes #2703 )
2023-07-23 22:47:47 -07:00
Vicki Pfau
5f35899ba3
Util: Start mPainter bringup with rectangle drawing
2023-07-23 21:43:15 -07:00
Vicki Pfau
369eab8da3
Util: Fix alpha blending calculation
2023-07-23 21:12:59 -07:00
Vicki Pfau
c8cfaefcc8
Updater: Fix overwriting files with directories
2023-07-18 01:42:30 -07:00
Vicki Pfau
1e68020d1c
Qt: Handle multiple save game files for disparate games separately ( fixes #2887 )
2023-07-17 21:34:37 -07:00
Vicki Pfau
4b38883b6a
Qt: Plumb through some path info into the CoreController
2023-07-16 22:28:23 -07:00
Vicki Pfau
c0507b8a71
Qt: Fix leak if loading a save file fails
2023-07-16 22:02:18 -07:00
Vicki Pfau
52ef584424
Updater: Fix overwriting directories with files
2023-07-16 20:41:48 -07:00
Vicki Pfau
436d6c5a08
Qt: Clean up multiplayer attaching/detaching
2023-07-16 18:40:38 -07:00
Vicki Pfau
90b75e4c11
Qt: Const correctness
2023-07-16 15:27:39 -07:00
Vicki Pfau
51d5f4bfd1
Qt: Distribute shaders as zipped archives on supported builds
2023-07-16 01:45:04 -07:00
Vicki Pfau
c49050fe65
Qt: Let the getOpenFileName function class take an optional starting path
2023-07-16 01:44:07 -07:00
Vicki Pfau
4e55bc703c
FFmpeg: Fix isampleRate initialization
2023-07-10 18:18:15 -07:00
Vicki Pfau
0e2ede06bc
GBA: Fix hasOverride initialization
2023-07-10 18:17:46 -07:00
Vicki Pfau
00e62f231a
ARM: Fake bpkt instruction should take no cycles ( fixes #2551 )
2023-07-05 22:10:33 -07:00
Vicki Pfau
44e074a15e
GBA BIOS: Add DACS compatibility to HLE BIOS ( closes #2972 )
2023-07-04 23:23:17 -07:00
Vicki Pfau
3f0d06e307
GBA: Unhandled bkpt should be treated as an undefined exception
2023-07-04 04:22:21 -07:00
Vicki Pfau
fd84ceddda
GBA SIO: Fix normal mode SI/SO semantics ( fixes #2925 )
2023-07-03 23:14:57 -07:00
Vicki Pfau
747158d5a6
Qt: Add exporting of SAV + RTC GB saves from Save Converter to strip RTC data
2023-07-03 16:08:52 -07:00
Vicki Pfau
bd15285ea1
GB Audio: More accurate LFSR implementation for noise channel
2023-06-29 21:56:05 -07:00
Vicki Pfau
0ee3f3f16c
GB Audio: Force update channels 1/2 if updating from a register write
2023-06-29 03:07:10 -07:00
Vicki Pfau
2a974a74e7
GB Audio: Update channels 1/2 irregularly if silent
2023-06-29 03:05:13 -07:00
Vicki Pfau
c5a7b1a9b7
GB Audio: Fix channel 1 restarting if sweep applies after stop ( fixes #2965 )
2023-06-29 01:28:14 -07:00
Vicki Pfau
491879da95
ARM: Remove obsolete force-alignment in `bx pc` ( fixes #2964 )
2023-06-26 16:14:25 -07:00
Vicki Pfau
200e846b81
Core: Begin modernizing game override API ( fixes #2963 )
2023-06-26 04:43:26 -07:00
Vicki Pfau
4d94ab7a38
GB: Prevent incompatible BIOSes from being used on differing models
2023-06-26 04:41:07 -07:00
Vicki Pfau
4859e9b4c6
GB: Add missing CGB0 BIOS to model detection
2023-06-26 03:54:54 -07:00
Vicki Pfau
125db5bbe7
GBA Audio: Fix initial channel 3 wave RAM ( fixes #2947 )
2023-06-26 00:21:12 -07:00
Vicki Pfau
870c2f8bab
Qt: Fix potential scripting context conflict ( fixes #2948 )
2023-06-20 04:34:27 -07:00
Vicki Pfau
1af9831fc9
Scripting: Add light sensor callback support
2023-06-20 03:41:52 -07:00
Vicki Pfau
1c41e1e051
GBA Audio: Fix sample timing drifting when changing sample interval
2023-06-19 22:32:27 -07:00
Vicki Pfau
c358f22403
Scripting: Update docs style
2023-06-18 22:13:32 -07:00
Vicki Pfau
600b11b284
Scripting: Fix generated docs validity
2023-06-18 22:07:24 -07:00
Vicki Pfau
7be14fa7cc
Scripting: Add rotation callback support
2023-06-18 22:06:54 -07:00
Vicki Pfau
a82c390fe9
Scripting: Detach adapter peripherals when detaching adapter
2023-06-18 21:48:35 -07:00
Vicki Pfau
82f7e52fc6
Qt: Add exporting of SAV + RTC GBA saves from Save Converter to strip RTC data
2023-06-18 15:16:15 -07:00
Vicki Pfau
58da738647
Qt: Reduce minimum size of GB palette color pickers
2023-06-13 16:07:28 -07:00
Vicki Pfau
20ab4d27b1
Scripting: Expose rumble callback
2023-06-04 22:25:54 -07:00
Vicki Pfau
17a549baf2
Scripting: Fix build against Lua 5.2
2023-06-04 20:20:09 -07:00
Vicki Pfau
e7bbc60e79
All: Fix several warnings
2023-06-01 00:12:32 -07:00
Vicki Pfau
294470d940
Core: Add getPeripheral function
2023-06-01 00:05:41 -07:00
Vicki Pfau
6561223536
Scripting: Add debugger integration
2023-05-29 00:53:53 -07:00
Vicki Pfau
c1421afccb
Debugger: Support calling into multiple debuggers per watchpoint
2023-05-29 00:53:53 -07:00
Vicki Pfau
cbc8e4f11a
Debugger: Fix writing to specific segment in command-line debugger
2023-05-29 00:53:53 -07:00
Vicki Pfau
a161dfeb31
Debugger: Fill in segment in debugger entry
2023-05-29 00:53:53 -07:00
Vicki Pfau
b94cd7f1dc
Core: Remove duplicated include
2023-05-29 00:53:53 -07:00
Vicki Pfau
46c44120c9
3DS: Fix build
2023-05-29 00:53:53 -07:00
Vicki Pfau
b80797a578
CMake: Add -Werror=incompatible-pointer-types
2023-05-29 00:23:38 -07:00
Vicki Pfau
4b7223c3ff
Core: Only attempt to open symbol file if basedir exists
2023-05-29 00:23:38 -07:00
Vicki Pfau
a7d63cde54
Core: Reattaching the same debugger is a no-op
2023-05-29 00:23:38 -07:00
May
196f507d3b
[UI bug] mGBA doesn't update savestate screenshots until you move the cursor over other savestates ( #2929 )
2023-05-23 15:16:46 -07:00
Vicki Pfau
bb6613888a
Util: Add THREAD_EXIT macro
2023-05-09 22:21:55 -07:00
Vicki Pfau
7d6a8a86a8
ARM Debugger: Fix unitialized stack variable
2023-05-09 22:13:09 -07:00
Vicki Pfau
213a534f4b
GBA: Remove disused variable
2023-05-09 21:44:58 -07:00
Vicki Pfau
257122796c
Debugger: Add debugger polling to avoid blocking
2023-05-09 21:43:19 -07:00
Vicki Pfau
a00f2939ad
Debugger: Allow attaching multiple debugger modules independently
2023-05-09 21:43:19 -07:00
Vicki Pfau
8efb3fb5df
Debugger: Make created debug items, e.g. breakpoints, owned by modules
2023-05-09 21:17:46 -07:00
Vicki Pfau
b21a6158f4
Debugger: Break out debugger functionality into modules
2023-05-09 21:17:46 -07:00
Vicki Pfau
b1f991bf94
GB I/O: Read back proper SVBK value after writing 0 ( fixes #2921 )
2023-05-09 14:51:06 -07:00
Vicki Pfau
36e62c085d
GB SIO: Disabling SIO should cancel pending transfers ( fixes #2537 )
2023-05-08 04:42:52 -07:00
Vicki Pfau
abf0848421
mGUI: Make "bios" name check case-insensitive
2023-05-08 00:41:58 -07:00