Don't create _Complex type name if there is no target type name
authorHannes Domani <ssbssa@yahoo.de>
Tue, 6 Oct 2020 15:08:42 +0000 (17:08 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Thu, 22 Oct 2020 17:33:40 +0000 (19:33 +0200)
commit6b9d0dfda4787a072d8e61b6407d5ce42a936a1a
treec2d8b4a426a3ab6e7423efa7d4a977263d55abd6
parent4b4bb603fda8dca010c4fc18ae84f9df37b0bb8c
Don't create _Complex type name if there is no target type name

This causes gdb to crash in strlen.

Happens if init_complex_type is called for a type created by
dbx_init_float_type in stabsread.c.

gdb/ChangeLog:

2020-10-22  Hannes Domani  <ssbssa@yahoo.de>

* gdbtypes.c (init_complex_type): Check target type name.
gdb/ChangeLog
gdb/gdbtypes.c