[Lldb-commits] [lldb] r240927 - [linux] Use cmake to detect support process_vm_readv (bug #23918)

Pavel Labath labath at google.com
Tue Jun 30 02:45:41 PDT 2015


On 29 June 2015 at 20:17, Vince Harron <vince at nethacker.com> wrote:
> Don't we already get behavior like this when we invoke a missing syscall?
>

[I presume you are referring to the "errno = ENOSYS" part]

Yes, in case we invoke a missing syscall, errno is set to ENOSYS.
However, the problem is that if we don't have __NR_process_vm_readv
defined, we don't know which syscall to invoke (the exact syscall
number differs between architectures). It seemed easier to just
simulate the missing syscall, instead of trying to guess the correct
syscall number. Note that this path is only used on ancient versions
of linux - all present versions of android have this number defined.



More information about the lldb-commits mailing list