This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Code cleanup: Use enum
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 11 Sep 2011 11:54:50 +0200
- Subject: [obv] Code cleanup: Use enum
http://sourceware.org/ml/gdb-cvs/2011-09/msg00061.html
--- src/gdb/ChangeLog 2011/09/09 19:41:13 1.13319
+++ src/gdb/ChangeLog 2011/09/11 09:54:16 1.13320
@@ -1,3 +1,9 @@
+2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup.
+ * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
+ values.
+
2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
--- src/gdb/mi/mi-cmd-stack.c 2011/08/28 20:43:43 1.57
+++ src/gdb/mi/mi-cmd-stack.c 2011/09/11 09:54:18 1.58
@@ -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 @@
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;