Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: dhawkins@dhawkins.dsl.frii.com
To: gdb-patches@cygnus.com
Subject: bug in gdb
Date: Sat, 17 Apr 1999 16:05:00 -0000	[thread overview]
Message-ID: <87n206kfz7.fsf@dhawkins.dsl.frii.com> (raw)

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.



             reply	other threads:[~1999-04-17 16:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-17 16:05 dhawkins [this message]
1999-04-19  9:44 ` Jim Blandy
1999-04-19  8:52   ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87n206kfz7.fsf@dhawkins.dsl.frii.com \
    --to=dhawkins@dhawkins.dsl.frii.com \
    --cc=gdb-patches@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox