aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-08-13 13:38:01 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-08-13 13:38:01 +0000
commit8fbde58b702f0e1273c8292d1359e474fd96126b (patch)
tree27a3401318d910feb514c7d8b666dbd10937c543 /gdb
parent2d924fd9ebc6a97f9ef93208597e563c88f5e9e8 (diff)
downloadgdb-8fbde58b702f0e1273c8292d1359e474fd96126b.zip
gdb-8fbde58b702f0e1273c8292d1359e474fd96126b.tar.gz
gdb-8fbde58b702f0e1273c8292d1359e474fd96126b.tar.bz2
* spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
query valid) bit. Ignore bits outside the condition field. (info_spu_proxydma_command): Ignore bits outside the field.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/spu-tdep.c18
2 files changed, 15 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c5896a3..eed32da 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
+ query valid) bit. Ignore bits outside the condition field.
+ (info_spu_proxydma_command): Ignore bits outside the field.
+
2008-08-12 Michael Snyder <msnyder@vmware.com>
* MAINTAINERS: Update my email address.
diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c
index 64c7051..92cbd30 100644
--- a/gdb/spu-tdep.c
+++ b/gdb/spu-tdep.c
@@ -1925,15 +1925,15 @@ info_spu_dma_command (char *args, int from_tty)
}
else
{
- const char *query_msg;
+ const char *query_msg = _("no query pending");
- switch (dma_info_type)
- {
- case 0: query_msg = _("no query pending"); break;
- case 1: query_msg = _("'any' query pending"); break;
- case 2: query_msg = _("'all' query pending"); break;
- default: query_msg = _("undefined query type"); break;
- }
+ if (dma_info_type & 4)
+ switch (dma_info_type & 3)
+ {
+ case 1: query_msg = _("'any' query pending"); break;
+ case 2: query_msg = _("'all' query pending"); break;
+ default: query_msg = _("undefined query type"); break;
+ }
printf_filtered (_("Tag-Group Status 0x%s\n"),
phex (dma_info_status, 4));
@@ -1990,7 +1990,7 @@ info_spu_proxydma_command (char *args, int from_tty)
{
const char *query_msg;
- switch (dma_info_type)
+ switch (dma_info_type & 3)
{
case 0: query_msg = _("no query pending"); break;
case 1: query_msg = _("'any' query pending"); break;