A custom wrapper for gdb (still command-line)
Available features:
- Functional macros (like aliases in GDB, but with Lua syntax)
- Paste your hecking C preprocessor directly in prompt and use these macros and defines in evaluating expressions. Or store them all in file .gdbauto_cmacros. Autocompletion included. Comments in files also supported.
- Recording command history and executing it on the next launch
- Read code for more
The main issue is removal of GDB's native autocompletion and extra (gdb) prompts mixed with (gal) prompts (from this script).
But it works somehow.
The reason is because the output of GDB isn't captured in main script but directly forwarded to a terminal.
iocapture.lua
aims to solve this, but for now it's just a draft. Needs some time to restore highlight and other features.
sudo luarocks install readline
sudo cp gdbauto /usr/local/bin
The same as in original GDB.
gdbauto --args yourprog arg1 arg2 arg3...