aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-stack.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-09-11 09:54:18 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-09-11 09:54:18 +0000
commitbdaf8d4acdff1c1635e0f66e6f61b893af359b3c (patch)
tree3b7c08f7cc8f0e6658d41e64d38ec628460a381a /gdb/mi/mi-cmd-stack.c
parent14a65e3755284196ffd917578c2a3144f709c839 (diff)
downloadgdb-bdaf8d4acdff1c1635e0f66e6f61b893af359b3c.zip
gdb-bdaf8d4acdff1c1635e0f66e6f61b893af359b3c.tar.gz
gdb-bdaf8d4acdff1c1635e0f66e6f61b893af359b3c.tar.bz2
gdb/
Code cleanup. * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter values.
Diffstat (limited to 'gdb/mi/mi-cmd-stack.c')
-rw-r--r--gdb/mi/mi-cmd-stack.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index 3ccdeae..3654727 100644
--- a/gdb/mi/mi-cmd-stack.c
+++ b/gdb/mi/mi-cmd-stack.c
@@ -36,7 +36,8 @@
enum what_to_list { locals, arguments, all };
static void list_args_or_locals (enum what_to_list what,
- int values, struct frame_info *fi);
+ enum print_values values,
+ struct frame_info *fi);
/* Print a list of the stack frames. Args can be none, in which case
we want to print the whole backtrace, or a pair of numbers
@@ -241,7 +242,8 @@ mi_cmd_stack_list_variables (char *command, char **argv, int argc)
of the variables, if an argument of 1 is passed, print the values
as well. */
static void
-list_args_or_locals (enum what_to_list what, int values, struct frame_info *fi)
+list_args_or_locals (enum what_to_list what, enum print_values values,
+ struct frame_info *fi)
{
struct block *block;
struct symbol *sym;