Eliminate redundant pst test.
authorAndrew Cagney <cagney@redhat.com>
Fri, 11 Aug 2000 01:47:47 +0000 (01:47 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 11 Aug 2000 01:47:47 +0000 (01:47 +0000)
gdb/ChangeLog
gdb/partial-stab.h

index e793492..da22361 100644 (file)
@@ -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.
index c07d957..6691b75 100644 (file)
@@ -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;
       }