Replace readdir_r with readdir
[platform/upstream/ltrace.git] / proc.h
diff --git a/proc.h b/proc.h
index 659c786..a611456 100644 (file)
--- a/proc.h
+++ b/proc.h
@@ -20,8 +20,8 @@
  * 02110-1301 USA
  */
 
-#ifndef _PROC_H_
-#define _PROC_H_
+#ifndef PROC_H
+#define PROC_H
 
 #include "config.h"
 
@@ -121,6 +121,12 @@ struct process {
 #if defined(HAVE_LIBDW)
        /* Unwind info for leader, NULL for non-leader procs. */
        Dwfl *dwfl;
+
+       /* Whether we still need to attach the DWARF library to this process. We
+        * try only once, and never again, regardless of whether we succeeded or
+        * not. 0 = shouldn't attach */
+       int should_attach_dwfl;
+
 #endif /* defined(HAVE_LIBDW) */
 
 #if defined(HAVE_LIBUNWIND)
@@ -271,4 +277,4 @@ int proc_read_16(struct process *proc, arch_addr_t addr, uint16_t *lp);
 int proc_read_32(struct process *proc, arch_addr_t addr, uint32_t *lp);
 int proc_read_64(struct process *proc, arch_addr_t addr, uint64_t *lp);
 
-#endif /* _PROC_H_ */
+#endif /* PROC_H */