Sorry for the nondescript title, couldn't think of anything better.
When I run my program through GDB to find a Segmentation Fault, I get thousands of lines of this garbage:
(gdb) step
_IO_new_file_xsputn (f=0x76fa0b40 <_IO_2_1_stdout_>, data=0x7efff284, n=7) at fileops.c
1279 fileops.c: No such file or directory.
(gdb) step
1273 in fileops.c
(gdb) step
1279 in fileops.c
(gdb) step
1286 in fileops.c
(gdb) step
1288 in fileops.c
(gdb) step
1289 in fileops.c
(gdb) step
1292 in fileops.c
(gdb) step
1294 in fileops.c
(gdb) step
1292 in fileops.c
...and on and on and on. It makes debugging very difficult and tedious because:
- I must type
step
(or press Enter) repeatedly. - I can hardly ever even see the output of my program, as it's hidden in pointless information.
- If I'm pressing Enter repeatedly, I often miss the Seg Fault I'm looking for.
How can I tell gdb to quit printing the lines like this?
1273 in fileops.c
Is there some config file or command-line option I can use?