all repos — mgba @ 4e4a266d5307f1686f61ab251beb00bca69fb110

mGBA Game Boy Advance Emulator

Qt: Make -g flag work in Qt build
Jeffrey Pfau jeffrey@endrift.com
Sat, 09 Jul 2016 14:58:12 -0700
commit

4e4a266d5307f1686f61ab251beb00bca69fb110

parent

f64629448fc395f248e7d5485ee6a9958eaacfdd

3 files changed, 16 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -56,6 +56,7 @@ - Debugger: CLI debugger now exits when end-of-stream is reached

- VFS: VFile.sync now updates modified time - GBA: Add overrides for DBZ: Legacy of Goku II and Ueki no Housoku - Util: Fix intermittent build failure on OS X + - Qt: Make -g flag work in Qt build 0.4.0: (2016-02-02) Features:
M doc/mgba-qt.6doc/mgba-qt.6

@@ -11,7 +11,7 @@ .Nm mgba-qt

.Nd Game Boy Advance emulator .Sh SYNOPSIS .Nm mgba-qt -.Op Fl 123456f +.Op Fl 123456fg .Op Fl b Ar biosfile .Op Fl l Ar loglevel .Op Fl p Ar patchfile

@@ -42,6 +42,11 @@ will use the BIOS specified in the configuration file,

or a high\(hylevel emulated BIOS if none is specified. .It Fl f Start the emulator full\(hyscreen. +.It Fl g +Start a +.Xr gdb 1 +session. +By default the session starts on port 2345. .It Fl l Ar loglevel Log messages during emulation. .Ar loglevel
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -182,6 +182,15 @@

if (args->fname) { m_controller->loadGame(args->fname); } + +#ifdef USE_GDB_STUB + if (args->debuggerType == DEBUGGER_GDB) { + if (!m_gdbController) { + m_gdbController = new GDBController(m_controller, this); + m_gdbController->listen(); + } + } +#endif } void Window::resizeFrame(const QSize& size) {