From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29656 invoked by alias); 6 Oct 2014 20:50:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 29646 invoked by uid 89); 6 Oct 2014 20:50:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: dancol.org Received: from dancol.org (HELO dancol.org) (96.126.100.184) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 06 Oct 2014 20:50:47 +0000 Received: from [2620:10d:c083:1003:863a:4bff:fec8:e538] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1XbFF0-0006KS-9a for gdb-patches@sourceware.org; Mon, 06 Oct 2014 13:50:46 -0700 Message-ID: <543300A0.50705@dancol.org> Date: Mon, 06 Oct 2014 20:50:00 -0000 From: Daniel Colascione User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Fix infinite loop in update_enumeration_type_from_children Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uXMWGIjwVScIm2uwBQTGIncbji0g43prR" X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00101.txt.bz2 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --uXMWGIjwVScIm2uwBQTGIncbji0g43prR Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 737 diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 9d0ee13..d324b6d 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -13247,12 +13247,16 @@ update_enumeration_type_from_children (struct die_info *die, const gdb_byte *bytes; struct dwarf2_locexpr_baton *baton; const char *name; - if (child_die->tag !=3D DW_TAG_enumerator) + if (child_die->tag !=3D DW_TAG_enumerator) { + child_die =3D sibling_die (child_die); continue; + } attr =3D dwarf2_attr (child_die, DW_AT_const_value, cu); - if (attr =3D=3D NULL) + if (attr =3D=3D NULL) { + child_die =3D sibling_die (child_die); continue; + } name =3D dwarf2_name (child_die, cu); if (name =3D=3D NULL) --uXMWGIjwVScIm2uwBQTGIncbji0g43prR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJUMwCgAAoJEN4WImmbpWBlSzcP/jvjadHZ0zrAu7SbcnIhP7+e CXboKTg8TCJGy0BSvVG/d8cqzOLXjdl9U+pKtkKpSG4l1xyNzRSUekHpiAcUanGR ESy+hEbALYQ19mlitqaFsIyL5ZlHqNKTSvAvP8vv1YMZ1Q/SWR4pTFnnXuN9+ak0 eFqolVNPItDT6E/ra+p8qYw13yurOhCTIYX4zciE4VEmvCEJuq04xnEAPd6gl8HQ 6gCWO/0fopuWUKKaYTofuLVdkI/qtgKz6dZJWXUOqOt5x+NpyydOMFCxYZFlvq+w kamzZKtLa+sdrcBtssfy7WUeuF83F3l9PSKI415onO7Wf7YDa8kl6C3VcHMWB0so HFYuFvkEMQg+bVpmtAwkmMOwqqvbIaP1JKhmMO/MhBH9DilnD0I1Bcye87Hg7DKz /QIXcRVutWadv49Ner5rHOCBTSdIThh4H6klbwyxG80XMEMdf20c8hVPPvrmITeI 84tD12KLl1I+6oe1Kk4osKzbZWbUtaW9aX8UpX97y6G+WmzPkznexFaCnoSSHJDy fWjJqO6RYy5crE6hkpLxnMaPc/0w+C9D5xoBqMUwUL66fWSFH7cfqqaWeXE/RzFK acr0jZBovNzyCm4UBviK4kmE5htwN7vizytjAmndLXKA2baOcCZeS3PQfiira6Sk wxvjRmeweRYBHvXEK+Oi =ixij -----END PGP SIGNATURE----- --uXMWGIjwVScIm2uwBQTGIncbji0g43prR--