diff mbox

[3/3] Have tdep_get_elf_image available in case of UNW_REMOTE_ONLY

Message ID 1318520526-2874-4-git-send-email-ken.werner@linaro.org
State Accepted
Commit 7f41e701e34353baa975f5b471a9343aee2e488e
Headers show

Commit Message

Ken Werner Oct. 13, 2011, 3:42 p.m. UTC
Because it gets used by libunwind-ptrace.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
---
 src/os-freebsd.c |    4 ----
 src/os-hpux.c    |    4 ----
 src/os-linux.c   |    4 ----
 3 files changed, 0 insertions(+), 12 deletions(-)
diff mbox

Patch

diff --git a/src/os-freebsd.c b/src/os-freebsd.c
index a315188..64fc933 100644
--- a/src/os-freebsd.c
+++ b/src/os-freebsd.c
@@ -22,8 +22,6 @@  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
-#ifndef UNW_REMOTE_ONLY
-
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/mman.h>
@@ -97,5 +95,3 @@  tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
   free_mem(buf, len1);
   return (ret);
 }
-
-#endif /* UNW_REMOTE_ONLY */
diff --git a/src/os-hpux.c b/src/os-hpux.c
index 1ba017f..11b1177 100644
--- a/src/os-hpux.c
+++ b/src/os-hpux.c
@@ -23,8 +23,6 @@  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
-#ifndef UNW_REMOTE_ONLY
-
 #include <dlfcn.h>
 #include <string.h>
 #include <unistd.h>
@@ -67,5 +65,3 @@  tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
 
   return elf_map_image (ei, path);
 }
-
-#endif /* UNW_REMOTE_ONLY */
diff --git a/src/os-linux.c b/src/os-linux.c
index 791b27e..bcc4036 100644
--- a/src/os-linux.c
+++ b/src/os-linux.c
@@ -23,8 +23,6 @@  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
-#ifndef UNW_REMOTE_ONLY
-
 #include <limits.h>
 #include <stdio.h>
 
@@ -63,5 +61,3 @@  tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
   maps_close (&mi);
   return rc;
 }
-
-#endif /* UNW_REMOTE_ONLY */