Re: [lldb-dev] Dealing with executable libraries

2015-10-05 Thread Greg Clayton via lldb-dev
It would be ok to relax the test for eTypeExecutable to also allow eTypeSharedLibrary if, on many systems, it is possible to run a binary of type shared library as an executable. If it changes from system to system, then we could ask the platform (PlatformLinux if your case?) to verify if a bina

[lldb-dev] Dealing with executable libraries

2015-10-05 Thread Stefan Kratochwil via lldb-dev
Hi, I am wondering how to deal with binaries that are both executable and dynamic objects, such as many executables under /usr/sbin. When I try to attach to a process (e.g. apache2) using the method lldb::SBTarget::AttachToProcessWithID() (C++ flavor of the LLDB ScriptingBridge), the method Objec