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: MIPS Linux signals


On 05/21/2012 02:34 PM, Pedro Alves wrote:
On 05/20/2012 03:02 AM, Michael Eager wrote:

+static int
+mips_target_signal_to_host (struct gdbarch *gdbarch, enum target_signal signo)
+{
+  printf ("MJE: mips_target_signal_to_host (<gdbarch>, signo=%d)\n", signo);
+
+  switch (signo) {
+    case TARGET_SIGNAL_0: 	return 0;
+    case TARGET_SIGNAL_HUP:   	return MIPS_SIGHUP;


BTW, I wouldn't bother with gdbarch_target_signal_to_host. Nothing ever calls it.

I hadn't noticed that. I thought that it was called to translate the signal number when sent to the target. Instead, target_signal_to_host() is called.

--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


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