summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-15 01:44:34 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-15 01:44:34 +0000
commitb8c29e51f1cdba50058454be7567fb02de46fecb (patch)
tree413ac311d5f3f16e3184c14163e21e50a59c4d49
parentc56bfa667b23009b8ca1cec8a3d3c19526d44d9b (diff)
downloadgdb-b8c29e51f1cdba50058454be7567fb02de46fecb.tar.gz
Fix IRIX cc warnings. Fix ui_out functions that didn't return a value.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/mdebugread.c2
-rw-r--r--gdb/proc-events.c2
-rw-r--r--gdb/ui-out.c4
4 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 22d99b73490..58685240273 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+Mon May 15 11:23:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * proc-events.c (init_syscall_table): Delete stray ``;''.
+ * ui-out.c (ui_out_set_flags, ui_out_clear_flags): Return old
+ value.
+ * mdebugread.c (START_PSYMTAB): Add paren to avoid x=x=x.
+
Fri May 12 20:38:55 2000 Andrew Cagney <cagney@b1.cygnus.com>
* TODO: Mention weak symbol problem. Mention UnixWare thread
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 085cd094be8..433764faf59 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -2767,7 +2767,7 @@ parse_partial_symbols (objfile)
#define CUR_SYMBOL_TYPE type_code
#define CUR_SYMBOL_VALUE sh.value
#define START_PSYMTAB(ofile,fname,low,symoff,global_syms,static_syms)\
- pst = save_pst
+ (pst = save_pst)
#define END_PSYMTAB(pst,ilist,ninc,c_off,c_text,dep_list,n_deps,textlow_not_set) (void)0
#define HANDLE_RBRAC(val) \
if ((val) > save_pst->texthigh) save_pst->texthigh = (val);
diff --git a/gdb/proc-events.c b/gdb/proc-events.c
index 2a430d8a6e6..8af9671a2cc 100644
--- a/gdb/proc-events.c
+++ b/gdb/proc-events.c
@@ -1389,7 +1389,7 @@ init_syscall_table (void)
#if defined (SYS_yield)
syscall_table[SYS_yield] = "yield";
#endif
-};
+}
/*
* Prettyprint a single syscall by number.
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index 80dee5305f4..f94cd6025b2 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -490,7 +490,7 @@ ui_out_set_flags (uiout, mask)
struct ui_out *uiout;
int mask;
{
- int oldflags;
+ int oldflags = uiout->flags;
uiout->flags |= mask;
@@ -503,7 +503,7 @@ ui_out_clear_flags (uiout, mask)
struct ui_out *uiout;
int mask;
{
- int oldflags;
+ int oldflags = uiout->flags;
uiout->flags &= ~mask;