This needs more information to reproduce this behaviour. Can you please share a small test case and also mention which version of gdb you're using and how the binary image was built?
This needs more information to reproduce this behaviour. Can you please share a small test case and also mention which version of gdb you're using and how the binary image was built?