Commit Message
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(-)
Comments
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;
>
@@ -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;