avee137
avee137

Reputation: 541

Running a program via GDB until the program segfaults/crashes

I need to debug a program which segfaults at uneven intervals. The program has a while(true) loop.

While debugging via GDB, it stops and asks for the Enter key to be pressed to continue. However, I want the program to run until it crashes. How do I do that in GDB?

Upvotes: 1

Views: 1056

Answers (1)

Alan Curry
Alan Curry

Reputation: 14711

Use set height 0 or set pagination off. Reference

Upvotes: 1

Related Questions