From: Andrew Cagney Date: Fri, 11 Aug 2000 01:47:47 +0000 (+0000) Subject: Eliminate redundant pst test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5f231f75bfd3c9195d98fc2788c10fc98f4a499;p=binutils-gdb.git Eliminate redundant pst test. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e793492bcbf..da223618507 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 c07d9575e2d..6691b75a0c5 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; }