80d
Patching programs
If you’d like to be able to patch the binary, you can specify that explicitly
with the
set write off
If you specify ‘set write on’, GDB opens executable and core files for both reading and writing; if you
specify ‘set write off’ (the default), GDB opens them read-only. If you have already loaded a file,
you must load it again (using the exec-file or core-file commands) after changing set write, for your new setting to take effect.
Display whether executable files and core files are opened for writing as well
as reading.