1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
authorFernando Nasser <fnasser@redhat.com>
Tue, 19 Jan 1999 20:45:31 +0000 (20:45 +0000)
committerFernando Nasser <fnasser@redhat.com>
Tue, 19 Jan 1999 20:45:31 +0000 (20:45 +0000)
* sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
v850ice.c win32-nat.c: cosmetic changes to conform to coding
standards.

30 files changed:
gdb/abug-rom.c
gdb/cpu32bug-rom.c
gdb/dbug-rom.c
gdb/mac-nat.c
gdb/mon960-rom.c
gdb/op50-rom.c
gdb/ppc-bdm.c
gdb/remote-adapt.c
gdb/remote-array.c
gdb/remote-bug.c
gdb/remote-eb.c
gdb/remote-es.c
gdb/remote-est.c
gdb/remote-hms.c
gdb/remote-mm.c
gdb/remote-nindy.c
gdb/remote-nrom.c
gdb/remote-os9k.c
gdb/remote-rdp.c
gdb/remote-sds.c
gdb/remote-sim.c
gdb/remote-st.c
gdb/remote-udi.c
gdb/rom68k-rom.c
gdb/sh3-rom.c
gdb/sol-thread.c
gdb/sparcl-tdep.c
gdb/sparclet-rom.c
gdb/v850ice.c
gdb/win32-nat.c

index cfbc834..97ff0f8 100644 (file)
@@ -96,7 +96,8 @@ static char *abug_inits[] = {"\r", NULL};
 
 static struct monitor_ops abug_cmds ;
 
-static void init_abug_cmds(void)
+static void 
+init_abug_cmds(void)
 {
   abug_cmds.flags =   MO_CLR_BREAK_USES_ADDR;
   abug_cmds.init =   abug_inits;                       /* Init strings */
index 29a1fc2..758c8ca 100644 (file)
@@ -93,7 +93,9 @@ static struct target_ops cpu32bug_ops;
 static char *cpu32bug_inits[] = {"\r", NULL};
 
 static struct monitor_ops cpu32bug_cmds ;
-static void init_cpu32bug_cmds(void)
+
+static void 
+init_cpu32bug_cmds(void)
 {
   cpu32bug_cmds.flags =   MO_CLR_BREAK_USES_ADDR;
   cpu32bug_cmds.init =   cpu32bug_inits;               /* Init strings */
index 93c1f88..fa9c974 100644 (file)
@@ -91,7 +91,8 @@ static struct monitor_ops dbug_cmds ;
 static char *dbug_inits[] = {"\r", NULL};
 
 
-static void init_dbug_cmds(void)
+static void 
+init_dbug_cmds(void)
 {
   dbug_cmds.flags =   MO_CLR_BREAK_USES_ADDR | MO_GETMEM_NEEDS_RANGE | MO_FILL_USES_ADDR;
   dbug_cmds.init =   dbug_inits;                       /* Init strings */
index 15e3f69..3518fe5 100644 (file)
@@ -333,7 +333,9 @@ info_proc (args, from_tty)
 }
 
 struct target_ops child_ops ;
-static void init_child_ops(void)
+
+static void 
+init_child_ops(void)
 {
   child_ops.to_shortname =   "mac";            
   child_ops.to_longname =   "MacOS application";
index f5adbc7..37510b8 100644 (file)
@@ -149,7 +149,9 @@ static char *mon960_inits[] = { "\r", NULL};
 #endif
 
 static struct monitor_ops mon960_cmds ;
-static void init_mon960_cmds(void)
+
+static void 
+init_mon960_cmds(void)
 {
   mon960_cmds.flags =   MO_CLR_BREAK_USES_ADDR
     | MO_NO_ECHO_ON_OPEN   | MO_SEND_BREAK_ON_STOP   | MO_GETMEM_READ_SINGLE ;    /* flags */
index b12e1df..3262091 100644 (file)
@@ -56,7 +56,9 @@ static struct target_ops op50n_ops;
 static char *op50n_inits[] = {".\r", NULL};
 
 static struct monitor_ops op50n_cmds ;
-static void init_op50n_cmds(void)
+
+static void 
+init_op50n_cmds(void)
 {
   op50n_cmds.flags =   MO_CLR_BREAK_USES_ADDR /*| MO_GETMEM_READ_SINGLE*/; /* flags */
   op50n_cmds.init =   op50n_inits;                     /* Init strings */
index f2f28f5..e6b6adf 100644 (file)
@@ -308,7 +308,8 @@ bdm_ppc_store_registers (regno)
 
 struct target_ops bdm_ppc_ops ;
 
-static void init_bdm_ppc_ops(void)
+static void 
+init_bdm_ppc_ops(void)
 {
   bdm_ppc_ops.to_shortname =   "ocd";          
   bdm_ppc_ops.to_longname =   "Remote target with On-Chip Debugging";
index 6da344b..b22f180 100644 (file)
@@ -1364,7 +1364,9 @@ adapt_com (args, fromtty)
 /* Define the target subroutine names */
 
 struct target_ops adapt_ops ;
-static void init_adapt_ops(void)
+
+static void 
+init_adapt_ops(void)
 {
   adapt_ops.to_shortname =     "adapt";
   adapt_ops.to_longname =      "Remote AMD `Adapt' target";
index 413827a..624871c 100644 (file)
@@ -123,7 +123,9 @@ extern char *tmp_mips_processor_type;
 extern int mips_set_processor_type();
 
 static struct target_ops array_ops ;
-static void init_array_ops(void)
+
+static void 
+init_array_ops(void)
 {
   array_ops.to_shortname =   "array";  
   array_ops.to_longname =              
index 7a7244f..2efd710 100644 (file)
@@ -963,7 +963,8 @@ bug_clear_breakpoints ()
 
 struct target_ops bug_ops ;
 
-static void init_bug_ops(void)
+static void 
+init_bug_ops(void)
 {
   bug_ops.to_shortname =   "bug"; "Remote BUG monitor",
                                    bug_ops.to_longname =   "Use the mvme187 board running the BUG monitor connected by a serial line.";
index 09c3911..d3a3c41 100644 (file)
@@ -975,7 +975,9 @@ eb_mourn_inferior ()
 /* Define the target subroutine names */
 
 struct target_ops eb_ops ;
-static void init_eb_ops(void)
+
+static void 
+init_eb_ops(void)
 {
   eb_ops.to_shortname =        "amd-eb";
   eb_ops.to_longname =         "Remote serial AMD EBMON target";
index 7a63e41..d26e85b 100644 (file)
@@ -2043,7 +2043,9 @@ es1800_child_detach (args, from_tty)
 /* Define the target subroutine names  */
 
 struct target_ops es1800_ops ;
-static void init_es1800_ops(void)
+
+static void 
+init_es1800_ops(void)
 {
   es1800_ops.to_shortname =   "es1800";                
   es1800_ops.to_longname =   "Remote serial target in ES1800-emulator protocol";
@@ -2114,7 +2116,9 @@ Specify the serial device it is connected to (e.g. /dev/ttya)." ;
 /* Define the target subroutine names  */
 
 struct target_ops es1800_child_ops ;
-static void init_es1800_child_ops(void)
+
+static void 
+init_es1800_child_ops(void)
 {
   es1800_child_ops.to_shortname =   "es1800_process";  
   es1800_child_ops.to_longname =   "Remote serial target in ES1800-emulator protocol";
index 00d23b0..27fd8aa 100644 (file)
@@ -96,7 +96,9 @@ static char *est_inits[] = {"he\r", /* Resets the prompt, and clears repeated cm
                              NULL};
 
 static struct monitor_ops est_cmds ;
-static void init_est_cmds(void)
+
+static void 
+init_est_cmds(void)
 {
   est_cmds.flags =   MO_CLR_BREAK_USES_ADDR | MO_FILL_USES_ADDR | MO_NEED_REGDUMP_AFTER_CONT |
     MO_SREC_ACK | MO_SREC_ACK_PLUS ;
index 94e36f9..3ca8455 100644 (file)
@@ -83,7 +83,9 @@ static char *hms_inits[] =
  NULL};
 
 static struct monitor_ops hms_cmds ;
-static void init_hms_cmds(void)
+
+static void 
+init_hms_cmds(void)
 {
   hms_cmds.flags =   MO_CLR_BREAK_USES_ADDR | MO_FILL_USES_ADDR | MO_GETMEM_NEEDS_RANGE;
   hms_cmds.init =   hms_inits;         /* Init strings */
@@ -1320,7 +1322,9 @@ hms_open (name, from_tty)
 /* Define the target subroutine names */
 
 struct target_ops hms_ops ;
-static void init_hms_ops(void)
+
+static void 
+init_hms_ops(void)
 {
   hms_ops.to_shortname =   "hms";
   hms_ops.to_longname =   "Remote HMS monitor";
index 0e5828c..19455b4 100644 (file)
@@ -1589,7 +1589,8 @@ CORE_ADDR *addr;
  */
 struct target_ops mm_ops ;
 
-static void init_mm_ops(void)
+static void 
+init_mm_ops(void)
 {
   mm_ops.to_shortname =   "minimon";
   mm_ops.to_longname =   "Remote AMD/Minimon target";
index 7853ae2..58e89b8 100644 (file)
@@ -767,7 +767,9 @@ nindy_before_main_loop ()
 /* Define the target subroutine names */
 
 struct target_ops nindy_ops ;
-static void init_nindy_ops(void)
+
+static void 
+init_nindy_ops(void)
 {
   nindy_ops.to_shortname =   "nindy"; "Remote serial target in i960 NINDY-specific protocol",
                                        nindy_ops.to_longname =   "Use a remote i960 system running NINDY connected by a serial line.\n\
index 1410d36..4999a68 100644 (file)
@@ -269,7 +269,9 @@ nrom_mourn()
 /* Define the target vector. */
 
 struct target_ops nrom_ops ;
-static void init_nrom_ops(void)
+
+static void 
+init_nrom_ops(void)
 {
   nrom_ops.to_shortname =   "nrom";    
   nrom_ops.to_longname =   "Remote XDI `NetROM' target";
index ca2f747..2abfa83 100644 (file)
@@ -1146,7 +1146,8 @@ struct monitor_ops rombug_cmds = {
 
 struct target_ops rombug_ops ;
 
-static void init_rombug_ops(void)
+static void 
+init_rombug_ops(void)
 {
   rombug_ops.to_shortname =   "rombug";
   rombug_ops.to_longname =   "Microware's ROMBUG debug monitor";
index 879a394..1d596a4 100644 (file)
@@ -1436,7 +1436,8 @@ remote_rdp_attach(args, from_tty)
 
 struct target_ops remote_rdp_ops ;
 
-static void init_remote_rdp_ops(void)
+static void 
+init_remote_rdp_ops(void)
 {
   remote_rdp_ops.to_shortname =   "rdp";
   remote_rdp_ops.to_longname =   "Remote Target using the RDProtocol";
index c8fe721..33e2bb5 100644 (file)
@@ -1124,7 +1124,8 @@ sds_remove_breakpoint (addr, contents_cache)
 
 static struct target_ops sds_ops ;
 
-static void init_sds_ops(void)
+static void 
+init_sds_ops(void)
 {
   sds_ops.to_shortname =   "sds";
   sds_ops.to_longname =   "Remote serial target with SDS protocol";
index 132b1b3..e10fced 100644 (file)
@@ -919,7 +919,9 @@ simulator_command (args, from_tty)
 /* Define the target subroutine names */
 
 struct target_ops gdbsim_ops ;
-static void init_gdbsim_ops(void)
+
+static void 
+init_gdbsim_ops(void)
 {
   gdbsim_ops.to_shortname =   "sim";           
   gdbsim_ops.to_longname =   "simulator";              
index 7255146..1efdbfa 100644 (file)
@@ -795,7 +795,8 @@ connect_command (args, fromtty)
 
 struct target_ops st2000_ops ;
 
-static void init_st2000_ops(void)
+static void 
+init_st2000_ops(void)
 {
   st2000_ops.to_shortname =   "st2000";
   st2000_ops.to_longname =   "Remote serial Tandem ST2000 target";
index 6fd277e..6397bca 100644 (file)
@@ -1623,7 +1623,8 @@ service_HIF(msg)
 
 struct target_ops udi_ops;
 
-static void init_udi_ops(void)
+static void 
+init_udi_ops(void)
 {
   udi_ops.to_shortname =         "udi";
   udi_ops.to_longname =        "Remote UDI connected TIP";
index 6347e39..831d299 100644 (file)
@@ -94,7 +94,9 @@ static struct target_ops rom68k_ops;
 static char *rom68k_inits[] = {".\r\r", NULL}; /* Exits pm/pr & download cmds */
 
 static struct monitor_ops rom68k_cmds ;
-static void init_rom68k_cmds(void)
+
+static void 
+init_rom68k_cmds(void)
 {
   rom68k_cmds.flags =   0;
   rom68k_cmds.init =   rom68k_inits; /* monitor init string */
index 77eb093..ab4aa69 100644 (file)
@@ -184,7 +184,9 @@ static struct target_ops sh3_ops, sh3e_ops;
 static char *sh3_inits[] = {"\003", NULL}; /* Exits sub-command mode & download cmds */
 
 static struct monitor_ops sh3_cmds ;
-static void init_sh3_cmds(void)
+
+static void 
+init_sh3_cmds(void)
 {
   sh3_cmds.flags =   MO_CLR_BREAK_USES_ADDR | MO_GETMEM_READ_SINGLE ;  /* flags */
   sh3_cmds.init =   sh3_inits;         /* monitor init string */
index e0568c2..3fe6268 100644 (file)
@@ -64,6 +64,9 @@ extern struct target_ops sol_core_ops; /* Forward declaration */
 /* place to store core_ops before we overwrite it */
 static struct target_ops orig_core_ops;
 
+struct target_ops sol_thread_ops;
+struct target_ops sol_core_ops;
+
 extern int procfs_suppress_run;
 extern struct target_ops procfs_ops; /* target vector for procfs.c */
 extern struct target_ops core_ops; /* target vector for corelow.c */
@@ -113,6 +116,9 @@ static int lwp_to_thread PARAMS ((int lwp));
 static int sol_thread_alive PARAMS ((int pid));
 static void sol_core_close PARAMS ((int quitting));
 
+static void init_sol_thread_ops PARAMS ((void));
+static void init_sol_core_ops PARAMS ((void));
+
 #define THREAD_FLAG 0x80000000
 #define is_thread(ARG) (((ARG) & THREAD_FLAG) != 0)
 #define is_lwp(ARG) (((ARG) & THREAD_FLAG) == 0)
@@ -1506,21 +1512,9 @@ ignore (addr, contents)
 }
 
 
-struct target_ops sol_thread_ops;
-struct target_ops sol_core_ops;
-
-/* we suppress the call to add_target of core_ops in corelow because
-   if there are two targets in the stratum core_stratum, find_core_target
-   won't know which one to return.  see corelow.c for an additonal
-   comment on coreops_suppress_target. */
-int coreops_suppress_target = 1;
-
-void
-_initialize_sol_thread ()
+static void
+init_sol_thread_ops ()
 {
-  void *dlhandle;
-
-  /* Initialize sol_thread_ops */
   sol_thread_ops.to_shortname = "solaris-threads";
   sol_thread_ops.to_longname = "Solaris threads and pthread.";
   sol_thread_ops.to_doc = "Solaris threads and pthread support.";
@@ -1561,8 +1555,12 @@ _initialize_sol_thread ()
   sol_thread_ops.to_sections = 0;
   sol_thread_ops.to_sections_end = 0;
   sol_thread_ops.to_magic = OPS_MAGIC;
+}
+
 
-  /* Initialize sol_core_ops */
+static void
+init_sol_core_ops ()
+{
   sol_core_ops.to_shortname  = "solaris-core";
   sol_core_ops.to_longname  = "Solaris core threads and pthread.";
   sol_core_ops.to_doc  = "Solaris threads and pthread support for core files.";
@@ -1598,7 +1596,21 @@ _initialize_sol_thread ()
   sol_core_ops.to_sections  = 0;
   sol_core_ops.to_sections_end  = 0;
   sol_core_ops.to_magic  = OPS_MAGIC;
+}
+
+/* we suppress the call to add_target of core_ops in corelow because
+   if there are two targets in the stratum core_stratum, find_core_target
+   won't know which one to return.  see corelow.c for an additonal
+   comment on coreops_suppress_target. */
+int coreops_suppress_target = 1;
+
+void
+_initialize_sol_thread ()
+{
+  void *dlhandle;
 
+  init_sol_thread_ops ();
+  init_sol_core_ops ();
 
   dlhandle = dlopen ("libthread_db.so.1", RTLD_NOW);
   if (!dlhandle)
index 46cee7f..7e8082f 100644 (file)
@@ -893,7 +893,8 @@ sparclite_download (filename, from_tty)
 
 static struct target_ops sparclite_ops ;
 
-static void init_sparclite_ops(void)
+static void 
+init_sparclite_ops(void)
 {
   sparclite_ops.to_shortname =   "sparclite";          
   sparclite_ops.to_longname =   "SPARClite remote target";
index 24484cd..992cca1 100644 (file)
@@ -195,7 +195,9 @@ sparclet_load (desc, file, hashmark)
 static char *sparclet_inits[] = {"\n\r\r\n", NULL};
 
 static struct monitor_ops sparclet_cmds ;
-static void init_sparclet_cmds(void)
+
+static void 
+init_sparclet_cmds(void)
 {
   sparclet_cmds.flags =   MO_CLR_BREAK_USES_ADDR |
     MO_HEX_PREFIX          |
index 0135e58..36784c0 100755 (executable)
@@ -914,7 +914,8 @@ view_source (addr)
 
 /* Define the target subroutine names */
 
-static void init_850ice_ops(void)
+static void 
+init_850ice_ops(void)
 {
   v850ice_ops.to_shortname   =   "ice";                
   v850ice_ops.to_longname    =   "NEC V850 ICE interface";
index 47dbc55..87e96bd 100644 (file)
@@ -1003,7 +1003,8 @@ child_close ()
 
 struct target_ops child_ops ;
 
-static void init_child_ops(void)
+static void 
+init_child_ops(void)
 {
   child_ops.to_shortname =   "child";
   child_ops.to_longname =   "Win32 child process";