]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/stack.c
gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 9 Oct 2011 19:30:25 +0000 (19:30 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 9 Oct 2011 19:30:25 +0000 (19:30 +0000)
commit93d86cefdf1902d003f0d54f27777b8ea4f75b13
tree1ecbc64a37b1187f691243e03176a92e98bf574b
parent2d6c5dc2c7f35f46bdbcee6ea442a97ae880db4b
gdb/
Code reshuffle.
* frame.h (struct frame_arg): New definition.
(read_frame_arg): New declaration.
* mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
(list_args_or_locals): ... the code here.  New variable arg, call
read_frame_arg and list_arg_or_local with it.  Unify the
PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases.  Call xfree for
arg.error.
* stack.c (print_frame_arg): New functiom from the code of
print_frame_args.
(read_frame_arg): New function.
(print_frame_args): Remove variable val.  New variable arg, call
read_frame_arg and print_frame_arg with it.  Call xfree for arg.error.
gdb/ChangeLog
gdb/frame.h
gdb/mi/mi-cmd-stack.c
gdb/stack.c