+2008-03-31 Martin Hunt <hunt@redhat.com>
+
+ * runtime.h (STP_USE_DWARF_UNWINDER): Define.
+
2008-03-30 Martin Hunt <hunt@redhat.com>
* runtime.h (STP_USE_FRAME_POINTER): Define when frame pointers
#endif
#endif
+/* dwarf unwinder only tested so far on i386 and x86_64 */
+#if !defined(STP_USE_FRAME_BUFFER) && (defined(__i386__) || defined(__x86_64__))
+#define STP_USE_DWARF_UNWINDER
+#endif
+
#include "alloc.c"
#include "print.c"
#include "string.c"
2008-03-31 Martin Hunt <hunt@redhat.com>
+ * symbols.c (_stp_init_modules): Use STP_USE_DWARF_UNWINDER.
+
* transport.c (_stp_get_root_dir): Remove misleading error message.
2008-03-30 Martin Hunt <hunt@redhat.com>
/* unlocks the list */
modules_op->stop(NULL, NULL);
-#ifdef STP_USE_FRAME_POINTER
- /* done with modules, now go */
- _stp_ctl_send(STP_TRANSPORT, NULL, 0);
-#else
+#ifdef STP_USE_DWARF_UNWINDER
/* now that we have all the modules, ask for their unwind info */
{
unsigned long flags;
left -= 2;
_stp_ctl_send(STP_UNWIND, buf, sizeof(buf) - left);
}
-#endif
+#else
+ /* done with modules, now go */
+ _stp_ctl_send(STP_TRANSPORT, NULL, 0);
+#endif /* STP_USE_DWARF_UNWINDER */
+
return 0;
}