[commit] Eliminate two X deprecated_selected_frame

Andrew Cagney ac131313@redhat.com
Wed Mar 12 22:38:00 GMT 2003


Hello,

The attached makes two changes:

- Removes two references to the global deprecated_selected_frame.
One is replaced with get_selected_frame() and the other with the 
parameter `frame'.  Only 144 to go ...

- Fixes the ordering of the checks in get_current_frame() so that 
target_has_registers is checked before target_has_stack.  Otherwize, you 
end up with the very confusing message:

	(gdb) print $pc
	No stack

(it also avoids a testsuite regression :-)

committed,
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030312/90a6fce0/attachment.ksh>


More information about the Gdb-patches mailing list