This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]