This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bug in gdb



Found a bug in gdb.  This seems to be the correct fix.  (I give the
code unconditionally to the FSF for what ever they wish to do with
it..., yadda, yadda, yadda).  It does not seem to warrant much
fanfare. 

Changelog entry:
  Fixed a bug where the typevec_size was not being reset to zero after
  the typevec itself had been reset.

--- gdb-4.18.borked/libiberty/cplus-dem.c	Thu Apr  1 20:37:06 1999
+++ gdb-4.18/libiberty/cplus-dem.c	Sat Apr 17 22:50:39 1999
@@ -880,6 +880,8 @@
     {
       free ((char *) work -> typevec);
       work -> typevec = NULL;
+      /* DKH --- The size was not being reset to 0... */
+      work -> typevec_size = 0;
     }
   if (work->tmpl_argvec)
     {

-Dale

-- 
With the mochas, he was strong.
-- E. Hemingway

Beer is proof that God loves us and wants us to be happy.
-- Benjamin Franklin

   Dale K. Hawkins          ||   Your work, no matter how brilliant,
   dhawkins@dimensional.com ||   becomes valuable to others only in
   To Hack, is to Live!     ||   so far as you communicate it to them.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]