Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)

show write Display whether executable files and core files are opened for writing as
well as reading.
Patching programs 87