From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23594 invoked by alias); 27 Nov 2015 14:37:22 -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 23565 invoked by uid 89); 27 Nov 2015 14:37:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f42.google.com Received: from mail-pa0-f42.google.com (HELO mail-pa0-f42.google.com) (209.85.220.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 27 Nov 2015 14:37:20 +0000 Received: by pabfh17 with SMTP id fh17so120254773pab.0 for ; Fri, 27 Nov 2015 06:37:18 -0800 (PST) X-Received: by 10.66.90.194 with SMTP id by2mr68477082pab.2.1448635038411; Fri, 27 Nov 2015 06:37:18 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id qz2sm29119120pab.14.2015.11.27.06.37.16 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 27 Nov 2015 06:37:17 -0800 (PST) From: Yao Qi To: Simon Marchi Cc: Pedro Alves , Subject: Re: [PATCH v2 2/3] Display names of remote threads References: <1448488138-2360-1-git-send-email-simon.marchi@ericsson.com> <1448488138-2360-3-git-send-email-simon.marchi@ericsson.com> <5656EDB8.8030803@redhat.com> <56572AA0.9070904@ericsson.com> Date: Fri, 27 Nov 2015 14:37:00 -0000 In-Reply-To: <56572AA0.9070904@ericsson.com> (Simon Marchi's message of "Thu, 26 Nov 2015 10:52:00 -0500") Message-ID: <86mvtzv78l.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00588.txt.bz2 Simon Marchi writes: > + attr =3D xml_find_attribute (attributes, "name"); > + item.name =3D attr !=3D NULL ? xstrdup (attr->value) : NULL; > + This breaks the C++ build, /home/yao/SourceCode/gnu/gdb/git/gdb/remote.c: In function =E2=80=98void st= art_thread(gdb_xml_parser*, const gdb_xml_element*, void*, VEC_gdb_xml_valu= e_s*)=E2=80=99: /home/yao/SourceCode/gnu/gdb/git/gdb/remote.c:2975:50: error: invalid conve= rsion from =E2=80=98void*=E2=80=99 to =E2=80=98const char*=E2=80=99 [-fperm= issive] item.name =3D attr !=3D NULL ? xstrdup (attr->value) : NULL; ^ In file included from /home/yao/SourceCode/gnu/gdb/git/gdb/common/common-de= fs.h:64:0, from /home/yao/SourceCode/gnu/gdb/git/gdb/defs.h:28, from /home/yao/SourceCode/gnu/gdb/git/gdb/remote.c:22: /home/yao/SourceCode/gnu/gdb/git/gdb/../include/libiberty.h:323:14: note: i= nitializing argument 1 of =E2=80=98char* xstrdup(const char*)=E2=80=99 extern char *xstrdup (const char *) ATTRIBUTE_MALLOC ATTRIBUTE_RETURNS_NON= NULL; and I think you've already received the mail from buildbot. http://gdb-build.sergiodj.net/builders/Fedora-x86_64-cxx-build-m64/builds/1= 413 --=20 Yao (=E9=BD=90=E5=B0=A7)