Page 1 of 1

Graphical User Interfaces for gdb

PostPosted: 31 Jul 2020, 14:45
by FastEddie
Attached is a paper describing how to use Emacs as grapical user interface for gdb, the GNU debugger. There are not many alternatives as Emacs was the only tool where I could hook up the dll and th exe separately, all others only allowed for an executable.

Summary (no quick start this time)
This document explains how to use Emacs as a graphical front end for gdb to debug the ManalinkEh.dll. More on gdb and how to use it is discussed in a separate paper.

As gdb comes without a graphical user interface (so-called GUI; there is a built-in one but it doesn’t work under Windows) this paper shows a few alternatives and the one that works given out not-so-standard setting consisting of ManalinkEh.dll (“the dll”) and Magic.exe (“the exe”).

I assume you have gdb (as part of MinGW64) installed and that you can call it from the command prompt (PATH environment variable is set accordingly).

Re: Graphical User Interfaces for gdb

PostPosted: 02 Aug 2020, 09:33
by FastEddie
Minor updates:

    - Added Annex 2 with some code to cycle through frames with C-<left arrow> and C-<right arrow> as I got tired reaching for the mouse.
    - Debugging and pressing F12 to enter debug mode in Manalink produces an Interrupt signal that the debugger catches. If you want to put cards in play or your hand or ... do so before you start debugging and save the game, then start debugging.