aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1995-08-31 01:21:57 +0000
committerKung Hsu <kung@cygnus>1995-08-31 01:21:57 +0000
commit9b73a4677d2e54ac6e6eda6e7bdb0a1215ad039d (patch)
tree10ec098d921230ce2061a2454d4add90c39b962d /gdb
parent90c45f319fd4031a2d996f33a8de1a7a26687f51 (diff)
downloadgdb-9b73a4677d2e54ac6e6eda6e7bdb0a1215ad039d.zip
gdb-9b73a4677d2e54ac6e6eda6e7bdb0a1215ad039d.tar.gz
gdb-9b73a4677d2e54ac6e6eda6e7bdb0a1215ad039d.tar.bz2
* rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
conform to GNU coding standards.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/remote-nindy.c97
2 files changed, 56 insertions, 48 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7ea7c0d..0bba9c0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+Wed Aug 30 18:10:57 1995 Kung Hsu <kung@mexican.cygnus.com>
+
+ * rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
+ conform to GNU coding standards.
+
+ * solib.c (match_main): Modify to follow GNU coding conventions.
+
Mon Aug 28 17:07:26 1995 Kung Hsu <kung@lisa.cygnus.com>
* remote.c (remote_wait): Revert 19 July my change which should be
diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c
index 3cdaf0c..11540b2 100644
--- a/gdb/remote-nindy.c
+++ b/gdb/remote-nindy.c
@@ -245,14 +245,14 @@ non_dle( buf, n )
char *buf; /* Character buffer; NOT '\0'-terminated */
int n; /* Number of characters in buffer */
{
- int i;
+ int i;
- for ( i = 0; i < n; i++ ){
- if ( buf[i] == DLE ){
- break;
- }
- }
- return i;
+ for ( i = 0; i < n; i++ ){
+ if ( buf[i] == DLE ){
+ break;
+ }
+ }
+ return i;
}
/* Tell the remote machine to resume. */
@@ -265,13 +265,14 @@ nindy_resume (pid, step, siggnal)
if (siggnal != TARGET_SIGNAL_0 && siggnal != stop_signal)
warning ("Can't send signals to remote NINDY targets.");
- dcache_flush(nindy_dcache);
- if ( regs_changed ){
- nindy_store_registers (-1);
- regs_changed = 0;
- }
- have_regs = 0;
- ninGo( step );
+ dcache_flush(nindy_dcache);
+ if ( regs_changed )
+ {
+ nindy_store_registers (-1);
+ regs_changed = 0;
+ }
+ have_regs = 0;
+ ninGo( step );
}
/* FIXME, we can probably use the normal terminal_inferior stuff here.
@@ -358,45 +359,45 @@ nindy_wait( pid, status )
while (1)
{
- /* Input on remote */
+ /* Input on remote */
+ c = SERIAL_READCHAR (nindy_serial, -1);
+ if (c == SERIAL_ERROR)
+ {
+ error ("Cannot read from serial line");
+ }
+ else if (c == 0x1b) /* ESC */
+ {
c = SERIAL_READCHAR (nindy_serial, -1);
- if (c == SERIAL_ERROR)
- {
- error ("Cannot read from serial line");
- }
- else if (c == 0x1b) /* ESC */
- {
- c = SERIAL_READCHAR (nindy_serial, -1);
- c &= ~0x40;
- }
- else if (c != 0x10) /* DLE */
- /* Write out any characters preceding DLE */
+ c &= ~0x40;
+ }
+ else if (c != 0x10) /* DLE */
+ /* Write out any characters preceding DLE */
+ {
+ buf[0] = (char)c;
+ write (1, buf, 1);
+ }
+ else
+ {
+ stop_exit = ninStopWhy(&stop_code,
+ &ip_value, &fp_value, &sp_value);
+ if (!stop_exit && (stop_code == STOP_SRQ))
{
- buf[0] = (char)c;
- write (1, buf, 1);
+ immediate_quit++;
+ ninSrq();
+ immediate_quit--;
}
else
{
- stop_exit = ninStopWhy(&stop_code,
- &ip_value, &fp_value, &sp_value);
- if (!stop_exit && (stop_code == STOP_SRQ))
- {
- immediate_quit++;
- ninSrq();
- immediate_quit--;
- }
- else
- {
- /* Get out of loop */
- supply_register (IP_REGNUM,
- (char *)&ip_value);
- supply_register (FP_REGNUM,
- (char *)&fp_value);
- supply_register (SP_REGNUM,
- (char *)&sp_value);
- break;
- }
+ /* Get out of loop */
+ supply_register (IP_REGNUM,
+ (char *)&ip_value);
+ supply_register (FP_REGNUM,
+ (char *)&fp_value);
+ supply_register (SP_REGNUM,
+ (char *)&sp_value);
+ break;
}
+ }
}
SERIAL_SET_TTY_STATE (tty_args.serial, tty_args.state);
@@ -770,7 +771,7 @@ nindy_before_main_loop ()
RETURN_MASK_ALL);
}
}
- }
+ }
}
/* Define the target subroutine names */