I'm working on pset4 and trying to do the following:
Allow us to suggest that you also run copy within GDB while answering these questions as follows:
- Click Debug atop CS50 IDE, which should open a new terminal window (toward the bottom of CS50 IDE) for GDB.
- To the right of Command: within that terminal, you should see pset4/bmp/copy.c in a text box. To run copy within GDB with command-line arguments, change the contents of that text box to be, e.g., copy.c smiley.bmp copy.bmp.
- Set a breakpoint within main (as by clicking to the left of the line number for main).
- Then click Run (or Stop and then Run) within GDB’s terminal window and step through the program via GDB’s righthand panel, keeping an eye on bf and bi in particular.
For some reason, the debugger keeps on exiting automatically without having done anything.
This is a screenshot of what I'm seeing.
I'd really appreciate if you could help me out, thank you!