diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 17:09:28 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-07-02 17:09:28 +0000 |
commit | 36f15f554fcea7aedfdcdabcdd19e927b623d615 (patch) | |
tree | 5a463a24d70815849ae47b1b8547f6e1bc1f3633 /gdb/frame-unwind.c | |
parent | 848f574829bcbcc1ce46870e898fbb1118ff7130 (diff) | |
download | gdb-36f15f554fcea7aedfdcdabcdd19e927b623d615.zip gdb-36f15f554fcea7aedfdcdabcdd19e927b623d615.tar.gz gdb-36f15f554fcea7aedfdcdabcdd19e927b623d615.tar.bz2 |
* frame.h (frame_unwind_arch): New.
(frame_unwind_caller_arch): Likewise.
* frame-unwind.h (frame_prev_arch_ftype): New type.
(struct frame_unwind): New member prev_arch.
* frame.c (struct frame_info): New member prev_arch.
(frame_unwind_arch): New function.
(frame_unwind_caller_arch): Likewise..
(get_frame_arch): Reimplement in terms of frame_unwind_arch.
* sentinel-frame.c (sentinel_frame_prev_arch): New function.
(sentinel_frame_unwinder): Install it.
* frame.c (frame_pc_unwind): Use frame_unwind_arch instead
of get_frame_arch.
(frame_unwind_register_value): Likewise.
(frame_unwind_register_signed): Likewise.
(frame_unwind_register_unsigned): Likewise.
* frame-unwind.c (frame_unwind_got_optimized): Likewise.
(frame_unwind_got_register): Likewise.
(frame_unwind_got_constant): Likewise.
(frame_unwind_got_bytes): Likewise.
(frame_unwind_got_address): Likewise.
* frame.h (enum frame_type): New value ARCH_FRAME.
* frame.c (fprint_frame_type): Handle ARCH_FRAME.
* stack.c (print_frame_info): Likewise.
Diffstat (limited to 'gdb/frame-unwind.c')
-rw-r--r-- | gdb/frame-unwind.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/frame-unwind.c b/gdb/frame-unwind.c index d3e102a..cdfd045 100644 --- a/gdb/frame-unwind.c +++ b/gdb/frame-unwind.c @@ -129,7 +129,7 @@ default_frame_sniffer (const struct frame_unwind *self, struct value * frame_unwind_got_optimized (struct frame_info *frame, int regnum) { - struct gdbarch *gdbarch = get_frame_arch (frame); + struct gdbarch *gdbarch = frame_unwind_arch (frame); struct value *reg_val; reg_val = value_zero (register_type (gdbarch, regnum), not_lval); @@ -152,7 +152,7 @@ frame_unwind_got_register (struct frame_info *frame, int regnum, int new_regnum) struct value * frame_unwind_got_memory (struct frame_info *frame, int regnum, CORE_ADDR addr) { - struct gdbarch *gdbarch = get_frame_arch (frame); + struct gdbarch *gdbarch = frame_unwind_arch (frame); return value_at_lazy (register_type (gdbarch, regnum), addr); } @@ -164,7 +164,7 @@ struct value * frame_unwind_got_constant (struct frame_info *frame, int regnum, ULONGEST val) { - struct gdbarch *gdbarch = get_frame_arch (frame); + struct gdbarch *gdbarch = frame_unwind_arch (frame); struct value *reg_val; reg_val = value_zero (register_type (gdbarch, regnum), not_lval); @@ -176,7 +176,7 @@ frame_unwind_got_constant (struct frame_info *frame, int regnum, struct value * frame_unwind_got_bytes (struct frame_info *frame, int regnum, gdb_byte *buf) { - struct gdbarch *gdbarch = get_frame_arch (frame); + struct gdbarch *gdbarch = frame_unwind_arch (frame); struct value *reg_val; reg_val = value_zero (register_type (gdbarch, regnum), not_lval); @@ -192,7 +192,7 @@ struct value * frame_unwind_got_address (struct frame_info *frame, int regnum, CORE_ADDR addr) { - struct gdbarch *gdbarch = get_frame_arch (frame); + struct gdbarch *gdbarch = frame_unwind_arch (frame); struct value *reg_val; reg_val = value_zero (register_type (gdbarch, regnum), not_lval); |