aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1996-08-13 04:27:08 +0000
committerFred Fish <fnf@specifix.com>1996-08-13 04:27:08 +0000
commitc1d58bcded631ca0b325d3a10156d8727a029337 (patch)
treec460ad5019408e2130b9b77a71d30cea3d7f2eec
parentc6cffcf8b46fd0b6282a5eac7843dd4720f54257 (diff)
downloadgdb-c1d58bcded631ca0b325d3a10156d8727a029337.zip
gdb-c1d58bcded631ca0b325d3a10156d8727a029337.tar.gz
gdb-c1d58bcded631ca0b325d3a10156d8727a029337.tar.bz2
* remote-pa.c (boot_board): Add dummy params to make type compatible
for passing to add_com. * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized. * buildsym.c (compare_line_numbers): Change function to match prototype and also what qsort expects.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/buildsym.c4
-rw-r--r--gdb/remote-pa.c8
-rw-r--r--gdb/scm-exp.c2
4 files changed, 16 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1cff938..0daaa74 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+Mon Aug 12 21:23:44 1996 Fred Fish <fnf@cygnus.com>
+
+ * remote-pa.c (boot_board): Add dummy params to make type compatible
+ for passing to add_com.
+ * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
+ * buildsym.c (compare_line_numbers): Change function to match
+ prototype and also what qsort expects.
+
Mon Aug 12 19:19:00 1996 Mark Alexander <marka@cygnus.com>
* remote.c: Make remote_write_size public.
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 5a5847a..e0b30f0 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -664,8 +664,8 @@ record_line (subfile, line, pc)
static int
compare_line_numbers (ln1p, ln2p)
- const PTR ln1p;
- const PTR ln2p;
+ const void *ln1p;
+ const void *ln2p;
{
struct linetable_entry *ln1 = (struct linetable_entry *) ln1p;
struct linetable_entry *ln2 = (struct linetable_entry *) ln2p;
diff --git a/gdb/remote-pa.c b/gdb/remote-pa.c
index bbc8313..3fc422f 100644
--- a/gdb/remote-pa.c
+++ b/gdb/remote-pa.c
@@ -175,7 +175,7 @@ static int
read_frame PARAMS ((char *));
static void
-boot_board PARAMS ((void));
+boot_board PARAMS ((char *, int));
static int
remote_write_bytes PARAMS ((CORE_ADDR memaddr, char *myaddr, int len));
@@ -374,8 +374,10 @@ get_offsets ()
#define INBUFSIZE 10
-void
-boot_board()
+static void
+boot_board (dummy1, dummy2)
+ char *dummy1;
+ int dummy2;
{
char c;
char buf[INBUFSIZE];
diff --git a/gdb/scm-exp.c b/gdb/scm-exp.c
index 70e7191..6399563 100644
--- a/gdb/scm-exp.c
+++ b/gdb/scm-exp.c
@@ -230,7 +230,7 @@ scm_lreadr (skipping)
{
int c, j;
struct stoken str;
- LONGEST svalue;
+ LONGEST svalue = 0;
tryagain:
c = *lexptr++;
switch (c)