From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6905 invoked by alias); 2 Jun 2007 19:34:07 -0000 Received: (qmail 6897 invoked by uid 22791); 2 Jun 2007 19:34:06 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.29.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 02 Jun 2007 19:34:04 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.8/8.13.8) with ESMTP id l52JY1sx203620 for ; Sat, 2 Jun 2007 19:34:01 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l52JY1mO3395834 for ; Sat, 2 Jun 2007 21:34:01 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l52JY1k3005663 for ; Sat, 2 Jun 2007 21:34:01 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id l52JY1ZD005660; Sat, 2 Jun 2007 21:34:01 +0200 Message-Id: <200706021934.l52JY1ZD005660@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Sat, 2 Jun 2007 21:34:01 +0200 Subject: [rfc/rfa] [4/4] SPU enhancements: GDB/MI extensions To: gdb-patches@sourceware.org Date: Sat, 02 Jun 2007 19:34:00 -0000 From: "Ulrich Weigand" Cc: eliz@gnu.org X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00020.txt.bz2 Hello, this patch makes the new "info spu" commands available via the GDB/MI protocol. The Cell Broadband Engine IDE is already able to make use of these commands and display the SPU status information. It looks like these are the first platform-specific MI commands, so I'd appreciate opinions on this ... Eli, doc changes OK? Bye, Ulrich ChangeLog: * mi/mi-cmds.c (mi_cmds): Add -spu-info-event, -spu-info-signal, -spu-info-mailbox, -spu-info-dma, and -spu-info-proxydma commands. doc/ChangeLog: * gdb.texinfo (GDB/MI Miscellaneous Commands): Document -spu-info commands. diff -urNp gdb-orig/gdb/doc/gdb.texinfo gdb-head/gdb/doc/gdb.texinfo --- gdb-orig/gdb/doc/gdb.texinfo 2007-05-31 18:54:31.000000000 +0200 +++ gdb-head/gdb/doc/gdb.texinfo 2007-06-02 20:02:13.954945166 +0200 @@ -21155,6 +21155,86 @@ fullname="/home/nickrob/myprog.c",line=" (gdb) @end smallexample +@subheading The @code{-spu-info-event} Command +@findex -spu-info-event + +@subheading Synopsis + +@smallexample +-spu-info-event +@end smallexample + +Display SPU event facility status. This command is available only +when @value{GDBN} is debugging the Cell Broadband Engine SPU architecture. + +@subheading @value{GDBN} Command + +The corresponding @value{GDBN} command is @samp{info spu event}. + +@subheading The @code{-spu-info-signal} Command +@findex -spu-info-signal + +@subheading Synopsis + +@smallexample +-spu-info-signal +@end smallexample + +Display SPU signal notification facility status. This command is available +only when @value{GDBN} is debugging the Cell Broadband Engine SPU architecture. + +@subheading @value{GDBN} Command + +The corresponding @value{GDBN} command is @samp{info spu signal}. + +@subheading The @code{-spu-info-mailbox} Command +@findex -spu-info-mailbox + +@subheading Synopsis + +@smallexample +-spu-info-mailbox +@end smallexample + +Display SPU mailbox facility status. This command is available only when +@value{GDBN} is debugging the Cell Broadband Engine SPU architecture. + +@subheading @value{GDBN} Command + +The corresponding @value{GDBN} command is @samp{info spu mailbox}. + +@subheading The @code{-spu-info-dma} Command +@findex -spu-info-dma + +@subheading Synopsis + +@smallexample +-spu-info-dma +@end smallexample + +Display MFC DMA status. This command is available only when @value{GDBN} +is debugging the Cell Broadband Engine SPU architecture. + +@subheading @value{GDBN} Command + +The corresponding @value{GDBN} command is @samp{info spu dma}. + +@subheading The @code{-spu-info-proxydma} Command +@findex -spu-info-proxydma + +@subheading Synopsis + +@smallexample +-spu-info-proxydma +@end smallexample + +Display MFC Proxy-DMA status. This command is available only when +@value{GDBN} is debugging the Cell Broadband Engine SPU architecture. + +@subheading @value{GDBN} Command + +The corresponding @value{GDBN} command is @samp{info spu proxydma}. + @node Annotations @chapter @value{GDBN} Annotations diff -urNp gdb-orig/gdb/mi/mi-cmds.c gdb-head/gdb/mi/mi-cmds.c --- gdb-orig/gdb/mi/mi-cmds.c 2007-05-09 00:47:48.000000000 +0200 +++ gdb-head/gdb/mi/mi-cmds.c 2007-06-02 20:03:01.093198140 +0200 @@ -100,6 +100,11 @@ struct mi_cmd mi_cmds[] = { "signal-handle", { NULL, 0 }, NULL, NULL }, { "signal-list-handle-actions", { NULL, 0 }, NULL, NULL }, { "signal-list-signal-types", { NULL, 0 }, NULL, NULL }, + { "spu-info-event", { "info spu event", 0 }, NULL, NULL }, + { "spu-info-signal", { "info spu signal", 0 }, NULL, NULL }, + { "spu-info-mailbox", { "info spu mailbox", 0 }, NULL, NULL }, + { "spu-info-dma", { "info spu dma", 0 }, NULL, NULL }, + { "spu-info-proxydma", { "info spu proxydma", 0 }, NULL, NULL }, { "stack-info-depth", { NULL, 0 }, 0, mi_cmd_stack_info_depth}, { "stack-info-frame", { NULL, 0 }, 0, mi_cmd_stack_info_frame}, { "stack-list-arguments", { NULL, 0 }, 0, mi_cmd_stack_list_args}, -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com