2004-10-30 Andrew Cagney <cagney@gnu.org>

* alpha-tdep.c (alpha_setup_arbitrary_frame): Delete.
	* config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Delete.
	(alpha_setup_arbitrary_frame): Delete.
	* mips-tdep.c (setup_arbitrary_frame): Delete.
	* config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Delete.
	(setup_arbitrary_frame): Delete.
	* stack.c (parse_frame_specification_1): When specified, call
	create_new_frame with two parameters.  Delete #ifdef
	SETUP_ARBITRARY_FRAME.
This commit is contained in:
Andrew Cagney 2004-10-30 21:16:10 +00:00
parent 95ac2dcfbb
commit cd65c8f61a
6 changed files with 14 additions and 85 deletions

View file

@ -828,15 +828,12 @@ parse_frame_specification_1 (const char *frame_exp, const char *message,
/* We couldn't identify the frame as an existing frame, but
perhaps we can create one with a single argument. */
#ifdef SETUP_ARBITRARY_FRAME
return SETUP_ARBITRARY_FRAME (numargs, addrs);
#else
/* Usual case. Do it here rather than have everyone supply a
SETUP_ARBITRARY_FRAME that does this. */
if (numargs == 1)
return create_new_frame (addrs[0], 0);
error ("Too many args in frame specification");
#endif
else if (numargs == 2)
return create_new_frame (addrs[0], addrs[1]);
else
error ("Too many args in frame specification");
}
struct frame_info *