public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* Re: [PATCH] Make the attach code build again on non-Linux hosts.
@ 2014-06-25  7:19 Mark Wielaard
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2014-06-25  7:19 UTC (permalink / raw)
  To: elfutils-devel

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

On Tue, 2014-06-24 at 22:08 +0200, Kurt Roeckx wrote:
> +2014-06-24  Kurt Roeckx  <kurt@roeckx.be>
> +
> +	* linux-pid-attach.c: Make it build on non linux hosts.

Thanks, applied. Apologies for breaking that setup.

Cheers,

Mark


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Make the attach code build again on non-Linux hosts.
@ 2014-06-24 20:08 Kurt Roeckx
  0 siblings, 0 replies; 2+ messages in thread
From: Kurt Roeckx @ 2014-06-24 20:08 UTC (permalink / raw)
  To: elfutils-devel

[-- Attachment #1: Type: text/plain, Size: 1557 bytes --]

Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
---
 libdwfl/ChangeLog          |  4 ++++
 libdwfl/linux-pid-attach.c | 17 +++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index e11b7d1..4a1b9d5 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -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.
diff --git a/libdwfl/linux-pid-attach.c b/libdwfl/linux-pid-attach.c
index d60955e..ae71702 100644
--- a/libdwfl/linux-pid-attach.c
+++ b/libdwfl/linux-pid-attach.c
@@ -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)))
-- 
2.0.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-25  7:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-25  7:19 [PATCH] Make the attach code build again on non-Linux hosts Mark Wielaard
  -- strict thread matches above, loose matches on Subject: below --
2014-06-24 20:08 Kurt Roeckx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).