This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] Remove deprecated_selected_frame


On Sat, Mar 03, 2007 at 07:13:14PM -0800, Brian Dessent wrote:
> It looks like there are about a dozen more references in
> gdbtk/generic/gdbtk-{cmds,hooks,register,stack}.c.  Most of them seem to
> be the "if (deprecated_selected_frame != NULL)" sort of thing -- is this
> safe to just replace with "if (get_selected_frame (NULL))" ?

I don't know.  It depends if they're supposed to work when the program
isn't running or not.  You may want to use
deprecated_safe_get_selected_frame if they are, and get_selected_frame
anywhere that assumes the program is running.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]