diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-10-30 21:16:10 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-10-30 21:16:10 +0000 |
commit | cf0a9217ae9e7bb1facabf7c7ffb71bcd3864fbf (patch) | |
tree | b14e29bb1355b9c315822be63f5c6946fa6db4a0 /gdb/stack.c | |
parent | 0ea6c349f6e6433416530d3c4c83acf4a6c9d9d7 (diff) | |
download | gdb-cf0a9217ae9e7bb1facabf7c7ffb71bcd3864fbf.tar.gz |
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.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 8ae44717def..f2f9cae4783 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -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 * |