I had bad grades in maths. I do programming myself. Not for a living but out of passion.
They’re not necessarily related one to another. Sure, there is maths involved, but it’s not integral. What is integral, is digital logic. That is the most fundamental aspect.
I honestly vastly prefer using IDA and Windows specific tools (x64dbg) over gdb. IDA can interface with gdb so it can act as a frontend which can be handy for visualization.