News for hackers. Stuff that matters.
Re:Don Libes' Expect: A Surprisingly Underappreciated Unix A... by geofft on Saturday November 23, 2019 @05:48PM (#21617145)
gdb has a batch processing mode and its own scripting language with conditionals, loops, etc., so you could do this entirely with gdb scripting, probably. I've had good luck using gdb scripting for various things, notably conditional-ish breakpoints that printed some debugging info only under certain complicated conditions. (I do concede that if you know expect and not gdb scripting, except is quite likely easier, and it's possible expect is still easier if you know both, depending on the problem.)
Re:Don Libes' Expect: A Surprisingly Underappreciated Unix A... by sigjuice on Sunday November 24, 2019 @12:49AM (#21618658)
gdb can also be scripted using Python. https://sourceware.org/gdb/onlinedocs/gdb/Python.html

Edit: and Guile