OSDN Git Service

gdb/
authorjkratoch <jkratoch>
Sun, 9 Oct 2011 19:30:24 +0000 (19:30 +0000)
committerjkratoch <jkratoch>
Sun, 9 Oct 2011 19:30:24 +0000 (19:30 +0000)
commit7323aaa1ec034998b2adcbb650469188a4a023d3
tree4eb255e3773a22fd4fd7ad3915a300d91dd062da
parent6ffb601cd75ece93e4cdd31029ba0f8395980e15
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