Re: Patch: Add arch_string to spu-low.c

Markus Deuling
2007-02-22T16:36:22Z

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

Hi,

> Ah, thanks for the explanation. I agree that "spu" would be the
> better choice then.

"spu" works. I attached a new correct patch. If ok, then please take this one for commit.

ChangeLog:

* spu-low.c (spu_arch_string): New.
(spu_target_ops): Add spu_arch_string.

Regards,
Markus

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

[-- Attachment #2: diff-spu-arch-string --]
[-- Type: text/plain, Size: 584 bytes --]

diff -urN src.orig/gdb/gdbserver/spu-low.c src/gdb/gdbserver/spu-low.c
--- src.orig/gdb/gdbserver/spu-low.c 2007-01-09 18:59:08.000000000 +0100
+++ src/gdb/gdbserver/spu-low.c 2007-02-22 16:49:11.000000000 +0100
@@ -556,6 +556,12 @@
syscall (SYS_tkill, current_tid, signo);
}

+static const char *
+spu_arch_string (void)
+{
+ return "spu";
+}
+
\f
static struct target_ops spu_target_ops = {
spu_create_inferior,
@@ -572,6 +578,13 @@
spu_look_up_symbols,
spu_send_signal,
NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ spu_arch_string,
};

void