diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/partial-stab.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e793492..da22361 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2000-08-10 Andrew Cagney <cagney@ops1.cygnus.com> + * partial-stab.h (DBX_READ): Eliminate redundant check for null + ``pst''. Also fixes GCC warning. + +2000-08-10 Andrew Cagney <cagney@ops1.cygnus.com> + * rs6000-nat.c (set_host_arch): Check value returned by gdbarch_update_p. * gdbarch.sh (gdbarch_update_p): Rename gdbarch_update. diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index c07d957..6691b75 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -401,7 +401,7 @@ switch (CUR_SYMBOL_TYPE) function relative stabs, or the address of the function's end for old style stabs. */ valu = CUR_SYMBOL_VALUE + last_function_start; - if (pst && pst->texthigh == 0 || valu > pst->texthigh) + if (pst->texthigh == 0 || valu > pst->texthigh) pst->texthigh = valu; break; } |