From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3866 invoked by alias); 12 Sep 2002 23:51:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3846 invoked from network); 12 Sep 2002 23:51:30 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sources.redhat.com with SMTP; 12 Sep 2002 23:51:30 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 09389D2CC1; Thu, 12 Sep 2002 16:51:28 -0700 (PDT) Date: Thu, 12 Sep 2002 16:51:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: [RFA] Add one "const" keyword Message-ID: <20020912235127.GM1105@gnat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5gxpn/Q6ypwruk0T" Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2002-09/txt/msg00221.txt.bz2 --5gxpn/Q6ypwruk0T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 464 This is a preliminary cleanup before I (re)submit a new architecture field (see http://sources.redhat.com/ml/gdb-patches/2002-09/msg00215.html) 2002-09-12 Joel Brobecker * value.h (find_function_in_inferior): Add const keyword to one of the parameters. Allows us to invoke this function with a const char *. * valops.c (find_function_in_inferior): Likewise. Tested on Linux. Ok to apply? Thanks, -- Joel --5gxpn/Q6ypwruk0T Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="const.diff" Content-length: 1607 Index: value.h =================================================================== RCS file: /cvs/src/src/gdb/value.h,v retrieving revision 1.33 diff -c -3 -p -r1.33 value.h *** value.h 1 Aug 2002 17:18:33 -0000 1.33 --- value.h 12 Sep 2002 23:46:46 -0000 *************** extern struct value *value_literal_compl *** 558,564 **** extern void find_rt_vbase_offset (struct type *, struct type *, char *, int, int *, int *); ! extern struct value *find_function_in_inferior (char *); extern struct value *value_allocate_space_in_inferior (int); --- 558,564 ---- extern void find_rt_vbase_offset (struct type *, struct type *, char *, int, int *, int *); ! extern struct value *find_function_in_inferior (const char *); extern struct value *value_allocate_space_in_inferior (int); Index: valops.c =================================================================== RCS file: /cvs/src/src/gdb/valops.c,v retrieving revision 1.69 diff -c -3 -p -r1.69 valops.c *** valops.c 21 Aug 2002 17:24:31 -0000 1.69 --- valops.c 12 Sep 2002 23:46:48 -0000 *************** int unwind_on_signal_p = 0; *** 95,101 **** /* Find the address of function name NAME in the inferior. */ struct value * ! find_function_in_inferior (char *name) { register struct symbol *sym; sym = lookup_symbol (name, 0, VAR_NAMESPACE, 0, NULL); --- 95,101 ---- /* Find the address of function name NAME in the inferior. */ struct value * ! find_function_in_inferior (const char *name) { register struct symbol *sym; sym = lookup_symbol (name, 0, VAR_NAMESPACE, 0, NULL); --5gxpn/Q6ypwruk0T--