I'm trying to debug the binary which is not executable.
As sample I'm using /bin/true
with 644 permission:
install -m 644 /bin/true .
and I'm trying to run it as:
$ lldb true
(lldb) target create "true"
Current executable set to 'true' (x86_64).
(lldb) process launch
But I've got the following error:
error: error: ::posix_spawnp ( pid => 29052, path = '/Foo/Bar/true', file_actions = 0x7fff5d015e98, attr = 0x7fff5d015ed8, argv = 0x7fd6396507f0, envp = 0x7fd6396512d0 ) err = Permission denied (0x0000000d)
Is it something possible using lldb without giving the executable flag to the binary?