diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e793492bcb..da22361850 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-08-10 Andrew Cagney + + * partial-stab.h (DBX_READ): Eliminate redundant check for null + ``pst''. Also fixes GCC warning. + 2000-08-10 Andrew Cagney * rs6000-nat.c (set_host_arch): Check value returned by diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index c07d9575e2..6691b75a0c 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; }