debuginfo: Make limited-debuginfo test case more robust against GDB output variations.

Very minor modification of just one test case. Fixes #12787.