summaryrefslogtreecommitdiff
path: root/gdb/frame.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-03-30 16:37:13 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-03-30 16:37:13 +0000
commit0374cc263e22d297c9edb1f0ae5d1831d6b0f448 (patch)
treef6f00a3cddf1ef41444a66521f495d5b6baaced8 /gdb/frame.h
parentc2925413e58f8b3ce7504f2dd097be2ac9646a93 (diff)
downloadgdb-0374cc263e22d297c9edb1f0ae5d1831d6b0f448.tar.gz
* 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 a73a4f1dec3..800cbfbcf18 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