This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 08/13] constify stack.c


Looks good...

Thanks,
Pedro Alves

On 07/22/2014 07:55 PM, Tom Tromey wrote:
> This constifies a couple of functions in stack.c.
> 
> 2014-07-22  Tom Tromey  <tromey@redhat.com>
> 
> 	* stack.c (up_silently_base, down_silently_base): Make argument
> 	const.
> ---
>  gdb/ChangeLog | 5 +++++
>  gdb/stack.c   | 4 ++--
>  2 files changed, 7 insertions(+), 2 deletions(-)
> 
> diff --git a/gdb/stack.c b/gdb/stack.c
> index 0d6d8e7..6fb4e7b 100644
> --- a/gdb/stack.c
> +++ b/gdb/stack.c
> @@ -2304,7 +2304,7 @@ current_frame_command (char *level_exp, int from_tty)
>     previously selected frame, and print it briefly.  */
>  
>  static void
> -up_silently_base (char *count_exp)
> +up_silently_base (const char *count_exp)
>  {
>    struct frame_info *frame;
>    int count = 1;
> @@ -2335,7 +2335,7 @@ up_command (char *count_exp, int from_tty)
>     selected frame, and print it briefly.  */
>  
>  static void
> -down_silently_base (char *count_exp)
> +down_silently_base (const char *count_exp)
>  {
>    struct frame_info *frame;
>    int count = -1;
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]