It is currently 18 Apr 2024, 13:41
   
Text Size

Graphical User Interfaces for gdb

Discuss Upcoming Releases, Coding New Cards, Etc.
PLEASE DO NOT REPORT BUGS HERE!

Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins

Graphical User Interfaces for gdb

Postby FastEddie » 31 Jul 2020, 14:45

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).
Attachments
Graphical User Interfaces for gdb.pdf
(431.91 KiB) Downloaded 201 times
.emacs.zip
(1.04 KiB) Downloaded 190 times
---
Argivian Archaeologist in the Library of Leng studying the Spells of the Ancients
User avatar
FastEddie
 
Posts: 246
Joined: 24 Dec 2019, 10:59
Has thanked: 15 times
Been thanked: 19 times

Re: Graphical User Interfaces for gdb

Postby FastEddie » 02 Aug 2020, 09:33

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.
---
Argivian Archaeologist in the Library of Leng studying the Spells of the Ancients
User avatar
FastEddie
 
Posts: 246
Joined: 24 Dec 2019, 10:59
Has thanked: 15 times
Been thanked: 19 times


Return to Development

Who is online

Users browsing this forum: No registered users and 21 guests


Who is online

In total there are 21 users online :: 0 registered, 0 hidden and 21 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 21 guests

Login Form