1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>

* 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.
This commit is contained in:
Fernando Nasser 1999-01-19 20:45:31 +00:00
parent d5abf0a4e6
commit ba4d67c2bf
30 changed files with 107 additions and 46 deletions

View 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 */

View 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 */

View 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 */

View 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";

View 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 */

View 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 */

View 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";

View 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";

View 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 =

View 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.";

View 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";

View 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";

View 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 ;

View 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";

View 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";

View 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\

View 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";

View 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";

View 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";

View 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";

View 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";

View 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";

View 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";

View 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 */

View 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 */

View 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)

View 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";

View 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 |

View File

@ -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";

View 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";