[RFA v2 10/17] C++ify mi_parse

Tom Tromey tom@tromey.com
Wed Apr 12 19:25:00 GMT 2017


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> FYI, I just now tried the hack below against master, and
Pedro> that caught a few other cases that shouldn't have been
Pedro> using memset for initialization.
[...]
Pedro> I wonder how bad would it be to put this hack in master.  Guess
Pedro> we could always add it behind an #if 0 at least, to make it easy
Pedro> to enable for quick checking?

I think it would be helpful if the compiler could warn about missing
member initializations in a constructor.  That would make something like
the mi_parse change more robust, which I think is the reason for the
memsets in the first place.

Tom



More information about the Gdb-patches mailing list