aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-03-30 16:37:13 +0000
committerDaniel Jacobowitz <drow@false.org>2006-03-30 16:37:13 +0000
commit7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288 (patch)
tree8041c183051b014ad47063adfb9dd827142afa7f /gdb/frame.h
parent0ec9a092fd18d6b1c38ae330194bf90534a9b681 (diff)
downloadgdb-7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288.zip
gdb-7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288.tar.gz
gdb-7abfe01489d2422ae0ae519e0e9aa1ec0cc3c288.tar.bz2
* frame.h (set_current_sal_from_frame): New prototype.
* stack.c (set_current_sal_from_frame): Make global. * infrun.c (normal_stop): Call set_current_sal_from_frame.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r--gdb/frame.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h
index a73a4f1..800cbfb 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -300,6 +300,12 @@ extern CORE_ADDR get_frame_func (struct frame_info *fi);
extern void find_frame_sal (struct frame_info *frame,
struct symtab_and_line *sal);
+/* Set the current source and line to the location given by frame
+ FRAME, if possible. When CENTER is true, adjust so the relevant
+ line is in the center of the next 'list'. */
+
+void set_current_sal_from_frame (struct frame_info *, int);
+
/* Return the frame base (what ever that is) (DEPRECATED).
Old code was trying to use this single method for two conflicting