[commit] Fix HP/UX 10.20 -Werrors

Andrew Cagney ac131313@redhat.com
Sat Mar 29 23:32:00 GMT 2003


Hello,

This patch fixes -Werror warnings being reported when building GDB, 
using GCC, on HP/UX 10.20.  Some edited highlights:

+  /* NOTE: cagney/2003-03-29: If !(index < symcount), dn_bufp is left
+     undefined and that means that the test below is using a garbage
+     pointer from the stack.  */
+  gdb_assert (dn_bufp != NULL);

+      /* NOTE: cagney/2003-03-29: Oh, no not again.  TYPE1 is
+         potentially left undefined here.  Assert it isn't and hope
+         the assert never fails ...  */
+      gdb_assert (type1 != NULL);

+  /* NOTE: cagney/2003-03-28: If you're looking at this code and
+     thinking that the variable stepped_after_stopped_by_watchpoint
+     isn't used, then you're wrong!  The macro STOPPED_BY_WATCHPOINT,
+     defined in the file "config/pa/nm-hppah.h", accesses the variable
+     indirectly.  Mutter something rude about the HP merge.  */

It builds on HP/UX, tested on d10v, ppc and i386.

committed,
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030329/48e21f9e/attachment.ksh>


More information about the Gdb-patches mailing list