Re: a2jmidid build failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 05, 2009 at 07:25:14PM +0100, Adrian Knoth wrote:

> +#if defined(__powerpc__)
> +                ucontext->uc_mcontext.uc_regs
> +#else
> +                ucontext->uc_mcontext.gregs[i]

Sorry, I missed the iterator. Though it compiles, you won't get the
desired output. That's what happens when you do quick&dirty patches ;)

Find attached a new patch.

-- 
mail: adi@xxxxxxx  	http://adi.thur.de	PGP/GPG: key via keyserver

Gibt es VMS eigentlich mittlerweile für Armbanduhren? (Julien Oster in dasr)
--- sigsegv.c.old	2009-02-05 19:27:18.000000000 +0100
+++ sigsegv.c	2009-02-05 19:27:10.000000000 +0100
@@ -92,7 +92,13 @@
     a2j_error("info.si_code  = %d (%s)", info->si_code, si_codes[info->si_code]);
     a2j_error("info.si_addr  = %p", info->si_addr);
     for(i = 0; i < NGREG; i++)
-        a2j_error("reg[%02d]       = 0x" REGFORMAT, i, ucontext->uc_mcontext.gregs[i]);
+        a2j_error("reg[%02d]       = 0x" REGFORMAT, i, 
+#if defined(__powerpc__)
+                ucontext->uc_mcontext.uc_regs[i]
+#else
+                ucontext->uc_mcontext.gregs[i]
+#endif
+                 );
 
 #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64)
 # if defined(SIGSEGV_STACK_IA64)
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux