aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-04-02 19:44:25 +0000
committerAndrew Cagney <cagney@redhat.com>2004-04-02 19:44:25 +0000
commit304396fba9a40662a849f6a116351f3b508bcd68 (patch)
treee1e5608a9481a811d6ea51c5c2937b718cff7aca /gdb/frame.h
parentc5edf76a75a0f388a49b16f3e04bc1730e3fb709 (diff)
downloadgdb-304396fba9a40662a849f6a116351f3b508bcd68.zip
gdb-304396fba9a40662a849f6a116351f3b508bcd68.tar.gz
gdb-304396fba9a40662a849f6a116351f3b508bcd68.tar.bz2
2004-04-02 Andrew Cagney <cagney@redhat.com>
* 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.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index 3e38c61..32b3efa 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -40,8 +40,8 @@
strongly hinting at its unsafeness)
safe_....(): Safer version of various functions, doesn't throw an
- error (leave this for later?). Returns non-zero if the fetch
- succeeds. Return a freshly allocated error message?
+ error (leave this for later?). Returns non-zero / non-NULL if the
+ request succeeds, zero / NULL otherwize.
Suffixes:
@@ -461,6 +461,11 @@ extern LONGEST get_frame_memory_signed (struct frame_info *this_frame,
extern ULONGEST get_frame_memory_unsigned (struct frame_info *this_frame,
CORE_ADDR memaddr, int len);
+/* Same as above, but return non-zero when the entire memory read
+ succeeds, zero otherwize. */
+extern int safe_frame_unwind_memory (struct frame_info *this_frame,
+ CORE_ADDR addr, void *buf, int len);
+
/* Return this frame's architecture. */
extern struct gdbarch *get_frame_arch (struct frame_info *this_frame);