Re:Swift as a C Language REPL
by ufo on Thursday January 02, 2020 @09:41AM
(#21935661)
What would I have to do to use gdb as a C repl? I'm not very familiar with gdb other than using the backtrace to debug segmentation faults.
[ Parent
| on HN ]
Compile your executable with debug info, and then make use of gdb expressions.
https://sourceware.org/gdb/current/onlinedocs/gdb/Expression...
It is not fully featured REPL, don't expect to use it to create stuff on the fly, it is more to query and call existing code.
For a proper REPL, check one of the listed interpreters.