aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-10-21 05:22:34 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-10-21 05:22:34 +0000
commit9c38eb65ac759526a693246efbc70d6f4b590a9d (patch)
tree950fb092b3ab294f373a1ba9f8b71b00fd927363 /gdb
parent8f6960c90e6df0f0bc5e2ac1c52d82545557de2f (diff)
downloadgdb-9c38eb65ac759526a693246efbc70d6f4b590a9d.zip
gdb-9c38eb65ac759526a693246efbc70d6f4b590a9d.tar.gz
gdb-9c38eb65ac759526a693246efbc70d6f4b590a9d.tar.bz2
* target.h: Put remote_debug declaration back here. Add baud_rate.
* remote.c, remote-udi.c, remote-utils.h: Let target.h take care of declaring these. Those random externs all over are error prone. * Move "set remotebaud" from remote-utils.c to main.c to it applies to remote.c as well. * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read): Sort symtabs for this objfile only, not for all objfiles. * symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/coffread.c11
-rw-r--r--gdb/remote-udi.c1
-rw-r--r--gdb/remote-utils.h2
-rw-r--r--gdb/remote.c4
5 files changed, 13 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 786bfff..2f333df 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
Wed Oct 20 11:35:43 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * target.h: Put remote_debug declaration back here. Add baud_rate.
+ * remote.c, remote-udi.c, remote-utils.h: Let target.h take care of
+ declaring these. Those random externs all over are error prone.
+ * Move "set remotebaud" from remote-utils.c to main.c to it applies
+ to remote.c as well.
+
* xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
Sort symtabs for this objfile only, not for all objfiles.
* symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 415ee18..ffe00d5 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -662,10 +662,13 @@ coff_symfile_read (objfile, section_offsets, mainline)
/* Sort symbols alphabetically within each block. */
- for (s = objfile -> symtabs; s != NULL; s = s -> next)
- {
- sort_symtab_syms (s);
- }
+ {
+ struct symtab *s;
+ for (s = objfile -> symtabs; s != NULL; s = s -> next)
+ {
+ sort_symtab_syms (s);
+ }
+ }
/* Install any minimal symbols that have been collected as the current
minimal symbols for this objfile. */
diff --git a/gdb/remote-udi.c b/gdb/remote-udi.c
index 3044458..8feee27 100644
--- a/gdb/remote-udi.c
+++ b/gdb/remote-udi.c
@@ -50,7 +50,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* access the register store directly, without going through
the normal handler functions. This avoids an extra data copy. */
-extern int remote_debug;
extern int stop_soon_quietly; /* for wait_for_inferior */
extern struct value *call_function_by_hand();
static void udi_resume PARAMS ((int pid, int step, int sig));
diff --git a/gdb/remote-utils.h b/gdb/remote-utils.h
index 59f4d3b..477f8bf 100644
--- a/gdb/remote-utils.h
+++ b/gdb/remote-utils.h
@@ -39,8 +39,6 @@ struct _sr_settings {
};
extern struct _sr_settings sr_settings;
-extern int remote_debug;
-extern int baud_rate;
/* get and set debug value. */
#define sr_get_debug() (remote_debug)
diff --git a/gdb/remote.c b/gdb/remote.c
index 266d5f3..9bc32da 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -213,10 +213,6 @@ interrupt_query PARAMS ((void));
extern struct target_ops remote_ops; /* Forward decl */
-extern int baud_rate;
-
-extern int remote_debug;
-
/* This was 5 seconds, which is a long time to sit and wait.
Unless this is going though some terminal server or multiplexer or
other form of hairy serial connection, I would think 2 seconds would