Is there a way to grep on the output of print command in gdb? In my case, I am debugging a core dump using gdb and the object I am debugging contains hell lots of elements. I am
You can use pipe command
pipe
>>> pipe maintenance info sections | grep .text [15] 0x5555555551c0->0x5555555554d5 at 0x000011c0: .text ... >>> pipe maintenance info sections | grep .text | wc 1 10 100