This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] Make get_frame_langauge take a frame argument
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: gdb-patches at sourceware dot org
- Cc: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Tue, 4 Aug 2015 16:40:40 +0100
- Subject: [PATCH 0/2] Make get_frame_langauge take a frame argument
- Authentication-results: sourceware.org; auth=none
This two patch series was a result of looking into getting rid of
deprecated_safe_get_selected_frame. I don't remove the function in
this patch set, in fact I only remove one use, inside
get_frame_langauge, however, I think the change is a good one and can
be pushed regardless of any other work in this area.
The first patch makes get_frame_langauge take a frame parameter,
rather than just operating on the currently selected frame.
The second patch moves get_frame_langauge into frame.c, which I think
is a better place for it. If folk disagree then I'm happy to leave
the function where it is.
Tested on x86-64 Linux only with no regressions.
OK to apply?
Thanks,
Andrew
--
Andrew Burgess (2):
gdb: get_frame_language now takes a frame parameter.
gdb: Move get_frame_language from stack.c to frame.c.
gdb/ChangeLog | 21 +++++++++++++++++++++
gdb/frame.c | 42 ++++++++++++++++++++++++++++++++++++++++++
gdb/frame.h | 6 ++++++
gdb/language.c | 34 ++++++++++++++++++++++++++--------
gdb/language.h | 2 --
gdb/stack.c | 45 ---------------------------------------------
gdb/top.c | 8 +++++---
7 files changed, 100 insertions(+), 58 deletions(-)
--
2.4.0