This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[Patch]: Fix output for SPU signals.
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>, Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: Dirk Herrendoerfer <d dot herrendoerfer at de dot ibm dot com>, Kazunori Asayama <asayama at sm dot sony dot co dot jp>
- Date: Thu, 27 Sep 2007 12:15:31 +0200
- Subject: [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);