Add target_ops argument to to_program_signals
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:33:56 +0000 (21:33 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:45:52 +0000 (07:45 -0700)
2014-02-19  Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_program_signals>: Add argument.
* target.c (target_program_signals): Add argument.
* remote.c (remote_program_signals): Add 'self' argument.

gdb/ChangeLog
gdb/remote.c
gdb/target.c
gdb/target.h

index 12442cdce00aec96e588b14c6cd495eb1596c37f..de650836d5c10536398e0474c4de6b517777fb97 100644 (file)
@@ -1,3 +1,9 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_program_signals>: Add argument.
+       * target.c (target_program_signals): Add argument.
+       * remote.c (remote_program_signals): Add 'self' argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_pass_signals>: Add argument.
index 7b295ab94630a1c4d9797de1229ee891cb86afc0..829c2b4deed83cf4575074d3c17aeb32e3f24da8 100644 (file)
@@ -1746,7 +1746,8 @@ remote_pass_signals (struct target_ops *self,
    signals it should pass through to the inferior when detaching.  */
 
 static void
-remote_program_signals (int numsigs, unsigned char *signals)
+remote_program_signals (struct target_ops *self,
+                       int numsigs, unsigned char *signals)
 {
   if (remote_protocol_packets[PACKET_QProgramSignals].support != PACKET_DISABLE)
     {
index 38bb16a994d01f8d810842c17efcf9ba58f11210..b51653252363059ad2fdca20430cf353f26aa208 100644 (file)
@@ -2851,7 +2851,7 @@ target_program_signals (int numsigs, unsigned char *program_signals)
              fprintf_unfiltered (gdb_stdlog, " })\n");
            }
 
-         (*t->to_program_signals) (numsigs, program_signals);
+         (*t->to_program_signals) (t, numsigs, program_signals);
          return;
        }
     }
index e32309372952fb07cb94d3042a69344a5f083166..3ae290b04c678b7149c76096911e7087ff3558ab 100644 (file)
@@ -517,7 +517,7 @@ struct target_ops
 
     /* Documentation of this routine is provided with the
        corresponding target_* function.  */
-    void (*to_program_signals) (int, unsigned char *);
+    void (*to_program_signals) (struct target_ops *, int, unsigned char *);
 
     int (*to_thread_alive) (struct target_ops *, ptid_t ptid);
     void (*to_find_new_threads) (struct target_ops *);