This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Patch: Add arch_string to spu-low.c
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: Daniel Jacobowitz <drow at false dot org>, GDB Patches <gdb-patches at sourceware dot org>
- Date: Thu, 22 Feb 2007 17:35:33 +0100
- Subject: Re: Patch: Add arch_string to spu-low.c
- References: <200702221534.l1MFY8Rh001300@d12av02.megacenter.de.ibm.com>
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
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";
+}
+
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