[PATCH 08/13] constify stack.c
Tom Tromey
tromey@redhat.com
Tue Jul 22 18:55:00 GMT 2014
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;
--
1.9.3
More information about the Gdb-patches
mailing list