aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)