I tried to print the location of the file pointer in GDB:
Unfortunately this was so information intensive it was useless. I stumbled across ftell and hard coded it into my program:
and it was much more ergonomic. ftell was incredibly useful for shedding light on the resize problem. Is there a way to get a pointer byte location from GDB in relation to the beginning of the file as seen in ftell?