Rename some frame unwind function parameters
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 21 Jul 2018 02:19:04 +0000 (22:19 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 21 Jul 2018 02:19:51 +0000 (22:19 -0400)
commit0ee6c332f36222a73abee41bc5168bacf78c9189
treef76664d065d80f4beae447cc0cbda25508f176ec
parentbef891d212194e71264a6276094efffddb06c586
Rename some frame unwind function parameters

I am currently working with these functions, and though this renaming
could help to reason about the code.  Some functions take a frame and
will return the value associated to that frame, others will return the
value associated to the previous frame.  Those usually conveniently
contain "unwind" in their name, but naming the variable next_frame
instead of frame helps remembering which frame we are dealing with.

I also included a little typo fix at the top of frame.h.

gdb/ChangeLog:

* frame.c (frame_register_unwind): Change parameter name.
(frame_unwind_register): Likewise.
(frame_unwind_register_value): Likewise.
(frame_unwind_register_signed): Likewise.
(frame_unwind_register_unsigned): Likewise.
* frame.h (frame_register_unwind): Likewise.
(frame_unwind_register): Likewise.
(frame_unwind_register_value): Likewise.
(frame_unwind_register_signed): Likewise.
(frame_unwind_register_unsigned): Likewise.
(frame_unwind_arch): Likewise.
gdb/ChangeLog
gdb/frame.c
gdb/frame.h