This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch]: Fix output for SPU signals.


Hi,

there is a minor bug in the "info spu signal" command. The interpretation of the signal1 and signal2 type flag
is bogus.

Tested with SPU and combined debugger (ppu-gdb). Ok to commit?

ChangeLog:

* spu-tdep.c (info_spu_signal_command): Fix output for SPU signal


-- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com

diff -urpN src/gdb/spu-tdep.c dev/gdb/spu-tdep.c
--- src/gdb/spu-tdep.c	2007-08-28 11:58:29.000000000 +0200
+++ dev/gdb/spu-tdep.c	2007-09-27 10:55:35.000000000 +0200
@@ -1605,9 +1605,9 @@ info_spu_signal_command (char *args, int
 	printf_filtered (_("Signal 1 not pending "));
 
       if (signal1_type)
-	printf_filtered (_("(Type Overwrite)\n"));
-      else
 	printf_filtered (_("(Type Or)\n"));
+      else
+	printf_filtered (_("(Type Overwrite)\n"));
 
       if (signal2_pending)
 	printf_filtered (_("Signal 2 control word 0x%s "), phex (signal2, 4));
@@ -1615,9 +1615,9 @@ info_spu_signal_command (char *args, int
 	printf_filtered (_("Signal 2 not pending "));
 
       if (signal2_type)
-	printf_filtered (_("(Type Overwrite)\n"));
-      else
 	printf_filtered (_("(Type Or)\n"));
+      else
+	printf_filtered (_("(Type Overwrite)\n"));
     }
 
   do_cleanups (chain);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]