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 | cd65c8f61a794bcdb966abae80f2151d3f28b3c4 (patch) | |
tree | 160c8e49b23ff7cac1cf267138c3cf68dce69a0e /gdb/stack.c | |
parent | 95ac2dcfbb412c950079cd182299a7d572ed9f90 (diff) | |
download | gdb-cd65c8f61a794bcdb966abae80f2151d3f28b3c4.zip gdb-cd65c8f61a794bcdb966abae80f2151d3f28b3c4.tar.gz gdb-cd65c8f61a794bcdb966abae80f2151d3f28b3c4.tar.bz2 |
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 8ae4471..f2f9cae 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 * |