From patchwork Tue Oct 27 15:08:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Alves X-Patchwork-Id: 9401 Received: (qmail 87894 invoked by alias); 27 Oct 2015 15:08:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 87631 invoked by uid 89); 27 Oct 2015 15:08:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 27 Oct 2015 15:08:23 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 2F13691EA3; Tue, 27 Oct 2015 15:08:22 +0000 (UTC) Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9RF8KVg030125; Tue, 27 Oct 2015 11:08:21 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [ob/pushed] psymtab.c: Add casts Date: Tue, 27 Oct 2015 15:08:20 +0000 Message-Id: <1445958500-16097-1-git-send-email-palves@redhat.com> ... as needed for C++. gdb/ChangeLog: 2015-10-27 Pedro Alves * psymtab.c (dump_psymtab_addrmap_1): Add casts. --- gdb/ChangeLog | 4 ++++ gdb/psymtab.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d7554a1..6c81a9f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-10-27 Pedro Alves + + * psymtab.c (dump_psymtab_addrmap_1): Add casts. + 2015-10-27 Simon Marchi * ctf.c (SET_ENUM_FIELD): New macro. diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 6f7fec6..fa1181b 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1904,9 +1904,10 @@ struct dump_psymtab_addrmap_data static int dump_psymtab_addrmap_1 (void *datap, CORE_ADDR start_addr, void *obj) { - struct dump_psymtab_addrmap_data *data = datap; + struct dump_psymtab_addrmap_data *data + = (struct dump_psymtab_addrmap_data *) datap; struct gdbarch *gdbarch = get_objfile_arch (data->objfile); - struct partial_symtab *addrmap_psymtab = obj; + struct partial_symtab *addrmap_psymtab = (struct partial_symtab *) obj; const char *psymtab_address_or_end = NULL; QUIT;