diff options
author | Tom Tromey <tromey@redhat.com> | 2014-07-21 17:06:20 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-07-24 11:30:03 -0600 |
commit | d3d3328bca04f0a5d0c9216c53f737d94f5f947b (patch) | |
tree | fe2f0c963e1ae7b50820c43553f06d63c921d07f /gdb | |
parent | 414842dc7ae1d398fca1bda9a20a89d51b7c2f09 (diff) | |
download | gdb-d3d3328bca04f0a5d0c9216c53f737d94f5f947b.zip gdb-d3d3328bca04f0a5d0c9216c53f737d94f5f947b.tar.gz gdb-d3d3328bca04f0a5d0c9216c53f737d94f5f947b.tar.bz2 |
constify stack.c
This constifies a couple of functions in stack.c.
2014-07-24 Tom Tromey <tromey@redhat.com>
* stack.c (up_silently_base, down_silently_base): Make argument
const.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/stack.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 608bfb8..3cd0df6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2014-07-24 Tom Tromey <tromey@redhat.com> + * stack.c (up_silently_base, down_silently_base): Make argument + const. + +2014-07-24 Tom Tromey <tromey@redhat.com> + * solib.c (solib_add): Make "pattern" const. * solib.h (solib_add): Update. diff --git a/gdb/stack.c b/gdb/stack.c index 4db5df5..3ca4db0 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -2306,7 +2306,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; @@ -2337,7 +2337,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; |