From 304396fba9a40662a849f6a116351f3b508bcd68 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 2 Apr 2004 19:44:25 +0000 Subject: 2004-04-02 Andrew Cagney * frame.c (safe_frame_unwind_memory): New function. * frame.h (safe_frame_unwind_memory): Declare. Update description of /safe_/ methods. * tramp-frame.c (tramp_frame_start): Re-order parmeters, add "next_frame". Use safe_frame_unwind_memory. (tramp_frame_sniffer): Update call to tramp_frame_start. --- gdb/frame.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/frame.c') diff --git a/gdb/frame.c b/gdb/frame.c index d725e87..bc04397 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -2270,6 +2270,14 @@ get_frame_memory_unsigned (struct frame_info *this_frame, CORE_ADDR addr, return read_memory_unsigned_integer (addr, len); } +int +safe_frame_unwind_memory (struct frame_info *this_frame, + CORE_ADDR addr, void *buf, int len) +{ + /* NOTE: read_memory_nobpt returns zero on success! */ + return !read_memory_nobpt (addr, buf, len); +} + /* Architecture method. */ struct gdbarch * -- cgit v1.1