This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Remove deprecated_selected_frame
- From: Daniel Jacobowitz <drow at false dot org>
- To: insight at sourceware dot org
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 5 Mar 2007 07:45:46 -0500
- Subject: Re: [rfc] Remove deprecated_selected_frame
- References: <20070222212909.GA17260@caradoc.them.org> <45EA394A.1C292B19@dessent.net>
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