Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [rfc/rfa] [4/4] SPU enhancements: GDB/MI extensions
@ 2007-06-20  0:28 Nick Roberts
  0 siblings, 0 replies; 14+ messages in thread
From: Nick Roberts @ 2007-06-20  0:28 UTC (permalink / raw)
  To: Ulrich Weigand; +Cc: gdb-patches, eliz


On Sat, 2 Jun 2007 21:34:01 +0200 (CEST) Ulrich Weigand writes:
>...
> 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.


I don't think the description of these command belongs to the node
GDB/MI Miscellaneous Commands, but a node of it's own within a new node
called something like "GDB/MI Architecture Specific Commands".

Also I agree with Daniel J's remarks about a MI command like -arch-info.  I
don't know if general purpose software like Emacs could run on the Cell
Broadband Engine, but without such a command, presumably the above ones are
enhancements of GDB for the Cell Broadband Engine IDE only.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [rfc/rfa] [4/4] SPU enhancements: GDB/MI extensions
@ 2007-06-02 19:34 Ulrich Weigand
  2007-06-02 20:38 ` Eli Zaretskii
  2007-06-04 20:00 ` Daniel Jacobowitz
  0 siblings, 2 replies; 14+ messages in thread
From: Ulrich Weigand @ 2007-06-02 19:34 UTC (permalink / raw)
  To: gdb-patches; +Cc: eliz

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-06-22 20:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-20  0:28 [rfc/rfa] [4/4] SPU enhancements: GDB/MI extensions Nick Roberts
  -- strict thread matches above, loose matches on Subject: below --
2007-06-02 19:34 Ulrich Weigand
2007-06-02 20:38 ` Eli Zaretskii
2007-06-03 13:29   ` Ulrich Weigand
2007-06-03 16:45     ` Eli Zaretskii
2007-06-04 20:00 ` Daniel Jacobowitz
2007-06-04 20:13   ` Ulrich Weigand
2007-06-04 20:22     ` Daniel Jacobowitz
2007-06-04 22:59       ` Ulrich Weigand
2007-06-05 11:12         ` Daniel Jacobowitz
2007-06-14 20:05           ` Ulrich Weigand
2007-06-21  2:23             ` Ricardo Marin Matinata
2007-06-21 22:22               ` Nick Roberts
2007-06-22 20:53               ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox