]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Make the attach code build again on non-Linux hosts.
authorKurt Roeckx <kurt@roeckx.be>
Tue, 24 Jun 2014 20:08:36 +0000 (22:08 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 25 Jun 2014 07:11:08 +0000 (09:11 +0200)
Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
libdwfl/ChangeLog
libdwfl/linux-pid-attach.c

index e11b7d1d64c4a626dbab92ddd1e772d654555950..4a1b9d5c4591ea04c7eb78dbdc50f4dd38dbd918 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-24  Kurt Roeckx  <kurt@roeckx.be>
+
+       * linux-pid-attach.c: Make it build on non linux hosts.
+
 2014-06-17  Mark Wielaard  <mjw@redhat.com>
 
        * frame_unwind.c (handle_cfi): Use ebl_func_addr_mask.
index d60955e60e2e1f82153e95a4f610c3c122dd87ff..ae7170286f328b558c83f1cceb4e8ca2c8beb4ff 100644 (file)
@@ -396,6 +396,16 @@ pid_getthread (Dwfl *dwfl __attribute__ ((unused)),
   return false;
 }
 
+bool
+internal_function
+__libdwfl_ptrace_attach (pid_t tid __attribute__ ((unused)),
+                        bool *tid_was_stoppedp __attribute__ ((unused)))
+{
+  errno = ENOSYS;
+  __libdwfl_seterrno (DWFL_E_ERRNO);
+  return false;
+}
+
 static bool
 pid_memory_read (Dwfl *dwfl __attribute__ ((unused)),
                  Dwarf_Addr addr __attribute__ ((unused)),
@@ -422,6 +432,13 @@ pid_detach (Dwfl *dwfl __attribute__ ((unused)),
 {
 }
 
+void
+internal_function
+__libdwfl_ptrace_detach (pid_t tid __attribute__ ((unused)),
+                        bool tid_was_stopped __attribute__ ((unused)))
+{
+}
+
 static void
 pid_thread_detach (Dwfl_Thread *thread __attribute__ ((unused)),
                  void *thread_arg __attribute__ ((unused)))