Hello, Hello, this another long overdue step towards getting the frame cache under better control. It introduces the accesor method: get_selected_frame() and then deprecates the old global `selected_frame'. Breaking down the uses of `selected_frame': *-tdep.c: These are eliminated byupdating the code to current interfaces. Targets like the i386 and rs6000, for instance, don't refer to selected_frame. varobj.c, breakpoints.c, ada-lang.c: These are all pulling the switch selected frame hack (the thing that needs to go). Eliminating these will take a bit of time. Stopping these cases breading is the principle motivation behind clearly marking selected_frame as deprecated. stack.c: This, since it implements things like up/down and info frame, has legetimate references to selected_frame. They can be changed to get_selected_frame(). I'll look to committing this one in a few days, Andrew