This makes things pretty unusable.
The issue is cause by this change:
09c92da#diff-f73960b7024bf1aed12c42b6d3c29f67b52a1dfee2fb99cc07d937d6d340bb3dL50
The pattern $ matches every string so this code is triggered every time the input buffer is changed. I have fixed the issue by reverting this change to the actual regex for the (gdb) prompt.
I am happy to submit a PR but I don't understand why it was changed to $ in the first place. Is there something I am missing?