* corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
authorStu Grossman <grossman@cygnus>
Thu, 3 Nov 1994 22:40:14 +0000 (22:40 +0000)
committerStu Grossman <grossman@cygnus>
Thu, 3 Nov 1994 22:40:14 +0000 (22:40 +0000)
remote-adapt.c, remote-e7000.c, remote-eb.c, remote-es.c,
remote-hms.c, remote-mips.c, remote-mm.c, remote-mon.c,
remote-nindy.c, remote-os9k.c, remote-pa.c, remote-sim.c,
remote-st.c, remote-udi.c, remote-vx.c, remote-z8k.c, remote.c,
w89k-rom.c, target.c, target.h:  Add support for target_stop().
* gdbtk.c (gdb_stop):  Switch to target_stop().
* ChangeLog:  Fix comment to make shebs happy...

17 files changed:
gdb/ChangeLog
gdb/corelow.c
gdb/m3-nat.c
gdb/op50-rom.c
gdb/procfs.c
gdb/remote-adapt.c
gdb/remote-eb.c
gdb/remote-es.c
gdb/remote-hms.c
gdb/remote-mips.c
gdb/remote-mm.c
gdb/remote-mon.c
gdb/remote-nindy.c
gdb/remote-os9k.c
gdb/remote-pa.c
gdb/remote-sim.c
gdb/remote-st.c

index 539c53a6ff50ca4ddb7ba2c1350e745e7ee7d480..041d9b1a228d8b4b4f9ec66c46c7bea5f6e99373 100644 (file)
@@ -1,3 +1,13 @@
+Thu Nov  3 14:25:24 1994  Stu Grossman  (grossman@cygnus.com)
+
+       * corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
+       remote-adapt.c, remote-e7000.c, remote-eb.c, remote-es.c,
+       remote-hms.c, remote-mips.c, remote-mm.c, remote-mon.c,
+       remote-nindy.c, remote-os9k.c, remote-pa.c, remote-sim.c,
+       remote-st.c, remote-udi.c, remote-vx.c, remote-z8k.c, remote.c,
+       w89k-rom.c, target.c, target.h:  Add support for target_stop().
+       * gdbtk.c (gdb_stop):  Switch to target_stop().
+
 Thu Nov  3 01:23:45 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
 
        * osfsolib.c (solib_map_sections, first_link_map_member,
@@ -26,8 +36,7 @@ Tue Nov  1 16:41:12 1994  Stu Grossman  (grossman@cygnus.com)
        * gdbtk.c:  Get rid of lots of unnecessary #includes.
        * (gdbtk_init):  Use ConnectionNumber macro instead of referencing
        Display structure directly.
-       * gdbtk.tcl:  Change exit button to quit button (makes shebs
-       happy).
+       * gdbtk.tcl:  Change exit button to quit button.
 
 Tue Nov  1 13:00:46 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
 
index 235b043ced268248550c6688d45abb239a96a21e..90196b93ae4c8670613ea9356185fceffe059c83 100644 (file)
@@ -327,23 +327,45 @@ ignore (addr, contents)
 }
 
 struct target_ops core_ops = {
-       "core", "Local core dump file",
-       "Use a core file as a target.  Specify the filename of the core file.",
-       core_open, core_close,
-       find_default_attach, core_detach, 0, 0, /* resume, wait */
-       get_core_registers, 
-       0, 0, /* store_regs, prepare_to_store */
-       xfer_memory, core_files_info,
-       ignore, ignore, /* core_insert_breakpoint, core_remove_breakpoint, */
-       0, 0, 0, 0, 0, /* terminal stuff */
-       0, 0, 0, /* kill, load, lookup sym */
-       find_default_create_inferior, 0, /* mourn_inferior */
-       0, /* can_run */
-       0, /* notice_signals */
-       core_stratum, 0, /* next */
-       0, 1, 1, 1, 0,  /* all mem, mem, stack, regs, exec */
-       0, 0,                   /* section pointers */
-       OPS_MAGIC,              /* Always the last thing */
+  "core",                      /* to_shortname */
+  "Local core dump file",      /* to_longname */
+  "Use a core file as a target.  Specify the filename of the core file.", /* to_doc */
+  core_open,                   /* to_open */
+  core_close,                  /* to_close */
+  find_default_attach,         /* to_attach */
+  core_detach,                 /* to_detach */
+  0,                           /* to_resume */
+  0,                           /* to_wait */
+  get_core_registers,          /* to_fetch_registers */
+  0,                           /* to_store_registers */
+  0,                           /* to_prepare_to_store */
+  xfer_memory,                 /* to_xfer_memory */
+  core_files_info,             /* to_files_info */
+  ignore,                      /* to_insert_breakpoint */
+  ignore,                      /* to_remove_breakpoint */
+  0,                           /* to_terminal_init */
+  0,                           /* to_terminal_inferior */
+  0,                           /* to_terminal_ours_for_output */
+  0,                           /* to_terminal_ours */
+  0,                           /* to_terminal_info */
+  0,                           /* to_kill */
+  0,                           /* to_load */
+  0,                           /* to_lookup_symbol */
+  find_default_create_inferior,        /* to_create_inferior */
+  0,                           /* to_mourn_inferior */
+  0,                           /* to_can_run */
+  0,                           /* to_notice_signals */
+  0,                           /* to_stop */
+  core_stratum,                        /* to_stratum */
+  0,                           /* to_next */
+  0,                           /* to_has_all_memory */
+  1,                           /* to_has_memory */
+  1,                           /* to_has_stack */
+  1,                           /* to_has_registers */
+  0,                           /* to_has_execution */
+  0,                           /* to_sections */
+  0,                           /* to_sections_end */
+  OPS_MAGIC,                   /* to_magic */
 };
 
 void
index 179c981efa2cafdbb10044846c2831b4915ef9c3..64cc059fff7ad61118869c5f777014e1f693baa7 100644 (file)
@@ -4521,6 +4521,12 @@ char     *p;
 }
 #endif  DUMP_SYSCALL
 
+static void
+m3_stop ()
+{
+  error ("to_stop target function not implemented");
+}
+
 struct target_ops m3_ops = {
   "mach",                      /* to_shortname */
   "Mach child process",        /* to_longname */
@@ -4551,6 +4557,7 @@ struct target_ops m3_ops = {
   m3_mourn_inferior,   /* to_mourn_inferior */
   m3_can_run,          /* to_can_run */
   0,                           /* to_notice_signals */
+  m3_stop,                     /* to_stop */
   process_stratum,             /* to_stratum */
   0,                           /* to_next */
   1,                           /* to_has_all_memory */
index dd02089830d54a46ff32b3f5236ee8810f540304..b7e2df1672013816a00a8999a23c7fbb93d75da0 100644 (file)
@@ -73,6 +73,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
   monitor_mourn_inferior,
   0,                           /* can_run */
   0,                           /* notice_signals */
+  0,                           /* to_stop */
   process_stratum,
   0,                           /* next */
   1,
index e6e3f9c6b13d24ebc92f1a696b76e49b15802c65..0f75191bb71e1a493dc54de583e01949a6512cfd 100644 (file)
@@ -3656,6 +3656,20 @@ procfs_stopped_by_watchpoint(pid)
 }
 #endif
 
+/* Send a SIGINT to the process group.  This acts just like the user typed a
+   ^C on the controlling terminal.
+
+   XXX - This may not be correct for all systems.  Some may want to use
+   killpg() instead of kill (-pgrp). */
+
+void
+child_stop ()
+{
+  extern pid_t inferior_process_group;
+
+  kill (-inferior_process_group, SIGINT);
+}
+
 \f
 struct target_ops procfs_ops = {
   "procfs",                    /* to_shortname */
@@ -3686,6 +3700,7 @@ struct target_ops procfs_ops = {
   procfs_mourn_inferior,       /* to_mourn_inferior */
   procfs_can_run,              /* to_can_run */
   procfs_notice_signals,       /* to_notice_signals */
+  child_stop,                  /* to_stop */
   process_stratum,             /* to_stratum */
   0,                           /* to_next */
   1,                           /* to_has_all_memory */
index 1221315354cc411fe29a35f34b9939fa5d3e7099..62562c7d2b4de25dd026eb3dbc8167c46865fa7e 100644 (file)
@@ -1343,6 +1343,7 @@ struct target_ops adapt_ops = {
        adapt_mourn,            /* mourn_inferior FIXME */
        0, /* can_run */
        0, /* notice_signals */
+       0,                      /* to_stop */
        process_stratum, 0, /* next */
        1, 1, 1, 1, 1,  /* all mem, mem, stack, regs, exec */
        0,0,            /* Section pointers */
index 5cf0c7535c4e9c237ae863d3a56f909872a80155..0d9b37745edcab39c7b9b3e091c17548c05ac764 100644 (file)
@@ -995,6 +995,7 @@ executable as it exists on the remote computer.  For example,\n\
        eb_mourn_inferior,
        0,      /* can_run */
        0, /* notice_signals */
+       0,                      /* to_stop */
        process_stratum, 0, /* next */
        1, 1, 1, 1, 1,  /* all mem, mem, stack, regs, exec */
        0, 0,                   /* Section pointers */
index 8d7ac35ebed476452d27c2e38861ed8883068121..162e853eae859e7dc08e680d40fd930f87aebbb0 100644 (file)
@@ -2074,7 +2074,8 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
   es1800_create_inferior,      /* to_create_inferior */
   NULL,                                /* to_mourn_inferior */
   0,                           /* to_can_run */
-  0,                           /* notice_signals */
+  0,                           /* to_notice_signals */
+  ignore,                      /* to_stop */
   core_stratum,                        /* to_stratum */
   0,                           /* to_next */
   0,                           /* to_has_all_memory */
@@ -2122,6 +2123,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
   es1800_mourn_inferior,       /* to_mourn_inferior */
   0,                           /* to_can_run */
   0,                           /* notice_signals */
+  0,                           /* to_stop */
   process_stratum,             /* to_stratum */
   0,                           /* to_next */
   1,                           /* to_has_all_memory */
index 3b90553b5d6aee784b99a5d3caa76ea3e4aeeb15..bc114c4ef396421693060348564072efbe99ce27 100644 (file)
@@ -1521,6 +1521,7 @@ by a serial line.",
   hms_mourn,                   /* mourn_inferior FIXME */
   0,                           /* can_run */
   0,                           /* notice_signals */
+  0,                           /* to_stop */
   process_stratum, 0,          /* next */
   1, 1, 1, 1, 1,               /* all mem, mem, stack, regs, exec */
   0, 0,                                /* Section pointers */
index 0a31d779dd6aef9969699e7e52b5f9884421208c..0123dbd3d716836d7013b4c6fc4a8102da78465f 100644 (file)
@@ -1525,6 +1525,7 @@ HOST:PORT to access a board over a network",  /* to_doc */
   mips_mourn_inferior,         /* to_mourn_inferior */
   NULL,                                /* to_can_run */
   NULL,                                /* to_notice_signals */
+  0,                           /* to_stop */
   process_stratum,             /* to_stratum */
   NULL,                                /* to_next */
   1,                           /* to_has_all_memory */
index 423ba64353c8234dd18d85b30f280c807f4f2146..9b798a8366aa474376f00c090c58ea166b538353 100644 (file)
@@ -1605,6 +1605,7 @@ struct target_ops mm_ops = {
         mm_mourn,            /* mourn_inferior FIXME */
        0,                      /* can_run */
        0, /* notice_signals */
+       0,                      /* to_stop */
         process_stratum, 0, /* next */
         1, 1, 1, 1, 1,  /* all mem, mem, stack, regs, exec */
        0,0,            /* sections, sections_end */
index a120ab829743965303fcb46c58f1273b637e2635..b7dabcabdad36c36e1ac852fb82ce78eb6a48933 100644 (file)
@@ -1032,6 +1032,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
   monitor_mourn_inferior,
   0,                           /* can_run */
   0,                           /* notice_signals */
+  0,                           /* to_stop */
   process_stratum,
   0,                           /* next */
   1,
@@ -1074,6 +1075,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
   monitor_mourn_inferior,
   0,                           /* can_run */
   0,                           /* notice_signals */
+  0,                           /* to_stop */
   process_stratum,
   0,                           /* next */
   1,
@@ -1116,6 +1118,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
   monitor_mourn_inferior,
   0,                           /* can_run */
   0,                           /* notice_signals */
+  0,                           /* to_stop */
   process_stratum,
   0,                           /* next */
   1,
index a85caf07725a95280f54555192792da19003e387..0c2c98cc4efa354dc29109db10592c0d2ea1bcc0 100644 (file)
@@ -747,6 +747,7 @@ specified when you started GDB.",
        nindy_mourn_inferior,
        0,              /* can_run */
        0, /* notice_signals */
+       0,                      /* to_stop */
        process_stratum, 0, /* next */
        1, 1, 1, 1, 1,  /* all mem, mem, stack, regs, exec */
        0, 0,                   /* Section pointers */
index a3f67745aa5b70ede48f71e6c82d9fac3d143c60..f1aaaf88fb050c5e37002c2aeb4b8d79d4fd0018 100644 (file)
@@ -1158,6 +1158,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).",
   rombug_mourn_inferior,
   0,                           /* can_run */
   0,                           /* notice_signals */
+  0,                           /* to_stop */
   process_stratum,
   0,                           /* next */
   1,
index 91988f8913bc08a3b78f9be743a5e08deb9d5d5f..6d5f0796e8084aba85ad080623fbb7c6e4d9d7d8 100644 (file)
@@ -1520,6 +1520,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya) or telnet port.",
   remote_mourn,                        /* to_mourn_inferior */
   0,                           /* to_can_run */
   0,                           /* to_notice_signals */
+  0,                           /* to_stop */
   process_stratum,             /* to_stratum */
   NULL,                                /* to_next */
   1,                           /* to_has_all_memory */
index 8b3c4d3b7456488701ff7023fb02c2308bcfc463..48de0812fbd33a9f6e62b95d8fe83d55116d035b 100644 (file)
@@ -419,6 +419,7 @@ struct target_ops gdbsim_ops =
   gdbsim_mourn_inferior,       /* mourn_inferior */
   0,                           /* can_run */
   0,                           /* notice_signals */
+  0,                           /* to_stop */
   process_stratum, 0,          /* next */
   1, 1, 1, 1, 1,               /* all mem, mem, stack, regs, exec */
   0, 0,                                /* Section pointers */
index 402a4ab1e59da06cedf933dac724e7a30c36cf5f..8bec2f5dc0a38f35531beaae27176af2256d403f 100644 (file)
@@ -809,6 +809,7 @@ the speed to connect at in bits per second.",
   st2000_mourn_inferior,
   0,                           /* can_run */
   0,                           /* notice_signals */
+  0,                           /* to_stop */
   process_stratum,
   0,                           /* next */
   1,
This page took 0.034117 seconds and 4 git commands to generate.