I am trying to figure out a way to run an executable with GDB repeatedly and preferably halt on errors.
I could not find a way to do this in the manual!
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I tried (in Bash):
Unfortunately, this turned out to be rather tricky to kill off, but it did automate running, and when the program crashed (I tested with an old program that causes a SIGABRT), gdb asks “The program is running. Exit anyway? (y or n)”, so just hit n.