Helge Kreutzmann <[EMAIL PROTECTED]> schrieb am 12.04.05 09:24:31:
> 
> Hello,
> On Mon, Apr 11, 2005 at 09:45:43PM -0700, Steve Langasek wrote:
> > Usually not; usually such bugs are reproducible on sparc and ia64 as well,
> > and IIRC both of those architectures are easier to debug because the trap
> > is exposed to userspace (i.e., SIGBUS), making it much simpler to get a
> > backtrace.
> 
> You can achieve this on alpha as well, several years ago people posted
> wrappers for doing this. 

Just add this code to main:

#if defined(__alpha__) && defined(__linux__)
    // Deliver SIGBUS on unaligned traps instead of fixing them up.
    #include <unistd.h>
    #include <asm/sysinfo.h>
    #include <asm/unistd.h>
    syscall(__NR_osf_setsysinfo, SSI_NVPAIRS,
            (unsigned int[]) { SSIN_UACPROC, UAC_SIGBUS | UAC_NOPRINT },
            1, 0, 0, 0);
#endif



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to