Resolves: RHEL-69474 debugedit 5.1 regression with read-only exe/lib files and gdb-add-index error reporting