From: Andrew Cagney Date: Fri, 11 Aug 2000 01:47:47 +0000 (+0000) Subject: Eliminate redundant pst test. X-Git-Tag: newlib-1_9_0~1189 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5f231f75bfd3c9195d98fc2788c10fc98f4a499;p=external%2Fbinutils.git Eliminate redundant pst test. --- 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 + * 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 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; }