mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-20 06:15:09 +08:00
gdb/
Code cleanup. * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter values.
This commit is contained in:
@ -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>
|
2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
Code cleanup.
|
Code cleanup.
|
||||||
|
@ -36,7 +36,8 @@
|
|||||||
enum what_to_list { locals, arguments, all };
|
enum what_to_list { locals, arguments, all };
|
||||||
|
|
||||||
static void list_args_or_locals (enum what_to_list what,
|
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
|
/* 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
|
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
|
of the variables, if an argument of 1 is passed, print the values
|
||||||
as well. */
|
as well. */
|
||||||
static void
|
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 block *block;
|
||||||
struct symbol *sym;
|
struct symbol *sym;
|
||||||
|
Reference in New Issue
Block a user