libdwfl/
2007-07-16  Roland McGrath  <roland@redhat.com>

	* dwfl_module.c (dwfl_report_module): Increment DWFL->nmodules when
	reviving an existing module.

tests/
2007-07-16  Roland McGrath  <roland@redhat.com>

	* dwfl-bug-report.c: New file.
	* Makefile.am (noinst_PROGRAMS, TESTS): Add it.
	(dwfl_bug_report_LDADD): New variable.

diff --git a/libdw/libdw.h b/libdw/libdw.h
index 968e73a..5385312 100644
--- a/libdw/libdw.h
+++ b/libdw/libdw.h
@@ -61,6 +61,12 @@
 # define __nonnull_attribute__(args...)
 #endif
 
+#ifdef __GNUC_STDC_INLINE__
+# define __extern_inline extern __inline __attribute__ ((__gnu_inline__))
+#else
+# define __extern_inline extern __inline
+#endif
+
 
 /* Mode for the session.  */
 typedef enum
@@ -624,14 +630,14 @@
 /* Inline optimizations.  */
 #ifdef __OPTIMIZE__
 /* Return attribute code of given attribute.  */
-extern inline unsigned int
+__extern_inline unsigned int
 dwarf_whatattr (Dwarf_Attribute *attr)
 {
   return attr == NULL ? 0 : attr->code;
 }
 
 /* Return attribute code of given attribute.  */
-extern inline unsigned int
+__extern_inline unsigned int
 dwarf_whatform (Dwarf_Attribute *attr)
 {
   return attr == NULL ? 0 : attr->form;