Pro level GDB use

A place to discuss everything Dragon related that doesn't fall into the other categories.
Post Reply
sixxie
Posts: 1494
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Pro level GDB use

Post by sixxie »

Rocco Corsi just announced this on the CoCo Discord:

https://github.com/rcorsi/CoCo-xroar-variable-profiler

It uses GDB connected to XRoar to profile BASIC variable use (to let you know which ones are worth DIMming at the head of your program). The breakpoint addresses are CoCo-specific, but could doubtless be easily translated to Dragon BASIC.

But the reason I'm linking it is it demonstrates some quite fancy GDB-fu. The breakpoints are given sets of commands to run using a language built into GDB that I didn't even know it had :) It even has some optional calling out to Python scripting. Could be a useful little primer on such things and enable some next-level debugging.
Post Reply