From patchwork Fri Oct 21 20:16:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 16729 Received: (qmail 51440 invoked by alias); 21 Oct 2016 20:16:59 -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 51424 invoked by uid 89); 21 Oct 2016 20:16:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=H*RU:sk:gproxy1, HX-HELO:sk:gproxy1, Hx-spam-relays-external:sk:gproxy1, Hx-spam-relays-external:69.89.20.226 X-HELO: gproxy10-pub.mail.unifiedlayer.com Received: from gproxy10-pub.mail.unifiedlayer.com (HELO gproxy10-pub.mail.unifiedlayer.com) (69.89.20.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with SMTP; Fri, 21 Oct 2016 20:16:49 +0000 Received: (qmail 16385 invoked by uid 0); 21 Oct 2016 20:16:47 -0000 Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy10.mail.unifiedlayer.com with SMTP; 21 Oct 2016 20:16:47 -0000 Received: from box522.bluehost.com ([74.220.219.122]) by CMOut01 with id yLGi1t00z2f2jeq01LGlo9; Fri, 21 Oct 2016 14:16:45 -0600 X-Authority-Analysis: v=2.1 cv=beT4Do/B c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=CH0kA5CcgfcA:10 a=zstS-IiYAAAA:8 a=VnNF1IyMAAAA:8 a=VXN-jqrqfLBjD5ip4ZoA:9 a=4G6NA9xxw8l3yy4pmD5M:22 a=skCgnbhlp52w9zbo2JeP:22 Received: from 174-16-143-211.hlrn.qwest.net ([174.16.143.211]:37504 helo=bapiya.Home) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_1) (envelope-from ) id 1bxgF9-0002R4-Kq; Fri, 21 Oct 2016 14:16:43 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [FYI] Fix build failure in xcoffread.c Date: Fri, 21 Oct 2016 14:16:39 -0600 Message-Id: <1477080999-27407-1-git-send-email-tom@tromey.com> X-BWhitelist: no X-Exim-ID: 1bxgF9-0002R4-Kq X-Source-Sender: 174-16-143-211.hlrn.qwest.net (bapiya.Home) [174.16.143.211]:37504 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== This changes read_xcoff_symtab to be const-correct. This fixes a build failure. I'm checking this in as obvious. 2016-10-21 Tom Tromey * xcoffread.c (read_xcoff_symtab): Make "filestring" const. --- gdb/ChangeLog | 4 ++++ gdb/xcoffread.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 104e3cb..1f94dc6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-10-21 Tom Tromey + + * xcoffread.c (read_xcoff_symtab): Make "filestring" const. + 2016-10-21 Sangamesh Mallayya Ulrich Weigand diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 02c1e5a..9ceefa0 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -1026,7 +1026,7 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst) union internal_auxent fcn_aux_saved = main_aux; struct context_stack *newobj; - char *filestring = pst->filename; /* Name of the current file. */ + const char *filestring = pst->filename; /* Name of the current file. */ const char *last_csect_name; /* Last seen csect's name. */