From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1315 invoked by alias); 29 Jul 2009 19:18:31 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 1305 invoked by uid 22791); 29 Jul 2009 19:18:31 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Date: Wed, 29 Jul 2009 19:18:00 -0000 From: Jan Kratochvil To: Tom Tromey Cc: archer@sourceware.org Subject: [archer-tromey-call-frame-cfa] [patch] Fix compilation [resent] Message-ID: <20090729191819.GA18201@host0.dyn.jankratochvil.net> References: <20090729191741.GA18146@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: <20090729191741.GA18146@host0.dyn.jankratochvil.net> User-Agent: Mutt/1.5.19 (2009-01-05) X-SW-Source: 2009-q3/txt/msg00062.txt.bz2 [this time with the patch] Hi Tom, dwarf2-frame.c: In function ‘dwarf2_frame_cfa’: dwarf2-frame.c:1257: error: passing argument 2 of ‘frame_base_is’ discards qualifiers from pointer target type frame.h:702: note: expected ‘struct frame_base *’ but argument is of type ‘const struct frame_base *’ Fedora 11 gcc-4.4.0-4.x86_64 more curious it did not happen to you. OK to check-in? Thanks, Jan commit e1849a4a9801313f99fa3faee8a88267651d6217 Author: Jan Kratochvil Date: Wed Jul 29 21:13:07 2009 +0200 gdb/ * frame.c (frame_base_is): Make the BASE parameter const. * frame.c (frame_base_is): Likewise. diff --git a/gdb/frame.c b/gdb/frame.c index c009288..afa6e2a 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1847,7 +1847,7 @@ get_frame_args_address (struct frame_info *fi) otherwise. */ int -frame_base_is (struct frame_info *fi, struct frame_base *base) +frame_base_is (struct frame_info *fi, const struct frame_base *base) { if (fi->base == NULL) fi->base = frame_base_find_by_frame (fi); diff --git a/gdb/frame.h b/gdb/frame.h index 2c23400..09bf628 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -699,6 +699,6 @@ extern struct frame_info *create_new_frame (CORE_ADDR base, CORE_ADDR pc); /* Return true if the frame base for frame FI is BASE; false otherwise. */ -extern int frame_base_is (struct frame_info *fi, struct frame_base *base); +extern int frame_base_is (struct frame_info *fi, const struct frame_base *base); #endif /* !defined (FRAME_H) */