aboutsummaryrefslogtreecommitdiff
path: root/gdb/macroscope.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/macroscope.c')
-rw-r--r--gdb/macroscope.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/macroscope.c b/gdb/macroscope.c
index b482068..c6da698 100644
--- a/gdb/macroscope.c
+++ b/gdb/macroscope.c
@@ -87,8 +87,8 @@ default_macro_scope (void)
struct macro_scope *ms;
/* If there's a selected frame, use its PC. */
- if (selected_frame)
- sal = find_pc_line (selected_frame->pc, 0);
+ if (deprecated_selected_frame)
+ sal = find_pc_line (deprecated_selected_frame->pc, 0);
/* If the target has any registers at all, then use its PC. Why we
would have registers but no stack, I'm not sure. */