[gnu.gdb.bug] gdb 3.1 with C++ patches dumps core.

bryan@UUNET.UU.NET (Bryan Boreham) (06/13/89)

I think I found a bug in gdb and/or g++, but I'm not sure which.

When working through ET++, gdb core-dumped on me. It was trying to
read in a symbol entry like

        ":/0747=*748=xsFileDialog::Application$fileDialog;\\"

and in read_type in dbxread.c, line 3580 or so, it looks for a comma.
Since there is no comma, index() returns 0, and gdb core-dumps.

I'm not sure whether or not g++ 1.35.1- is at fault, but gdb should be
modified to check for this. I can't really include the example, as the
core dump is 13 meg, and the executable that caused it is 17 meg. Mail
me if you need more information.

Keep up the good work!

Bryan Boreham           {Atlantic Ocean}  ... !mcvax!ukc!root44!kewill!bryan
Software Engineer
Kewill Systems PLC      Work: (+44) 932 248 328
Walton-On-Thames
Surrey KT12 2QS
England                 (Maybe someone could suggest a better e-mail address?)