aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-06 15:35:49 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-06 15:35:49 +0000
commitbbcf301ac831ae84e6b9bfc8697d239c245da86b (patch)
tree2206735e3bcc2725fbf3f921f5767bffe4eb657a /gdb/stack.c
parent95f1da47fa5763fde40b97db1c75404654b0ebc9 (diff)
downloadgdb-bbcf301ac831ae84e6b9bfc8697d239c245da86b.zip
gdb-bbcf301ac831ae84e6b9bfc8697d239c245da86b.tar.gz
gdb-bbcf301ac831ae84e6b9bfc8697d239c245da86b.tar.bz2
2007-06-06 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip. * stack.c (print_frame_args): Likewise. * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args. * stack.c (print_args_stub, frame_info): Likewise. * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p. * stack.c (print_args_stub, frame_info): Likewise. * gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 9d1e8b8..dcc475c 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -339,7 +339,7 @@ print_frame_args (struct symbol *func, struct frame_info *frame,
long start;
if (highest_offset == -1)
- start = FRAME_ARGS_SKIP;
+ start = gdbarch_frame_args_skip (current_gdbarch);
else
start = highest_offset;
@@ -358,9 +358,9 @@ print_args_stub (void *args)
struct print_args_args *p = args;
int numargs;
- if (FRAME_NUM_ARGS_P ())
+ if (gdbarch_frame_num_args_p (current_gdbarch))
{
- numargs = FRAME_NUM_ARGS (p->frame);
+ numargs = gdbarch_frame_num_args (current_gdbarch, p->frame);
gdb_assert (numargs >= 0);
}
else
@@ -971,14 +971,14 @@ frame_info (char *addr_exp, int from_tty)
deprecated_print_address_numeric (arg_list, 1, gdb_stdout);
printf_filtered (",");
- if (!FRAME_NUM_ARGS_P ())
+ if (!gdbarch_frame_num_args_p (current_gdbarch))
{
numargs = -1;
puts_filtered (" args: ");
}
else
{
- numargs = FRAME_NUM_ARGS (fi);
+ numargs = gdbarch_frame_num_args (current_gdbarch, fi);
gdb_assert (numargs >= 0);
if (numargs == 0)
puts_filtered (" no args.");