aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r--gdb/gdbtk.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c
index 21b2be3..291476d 100644
--- a/gdb/gdbtk.c
+++ b/gdb/gdbtk.c
@@ -243,13 +243,7 @@ gdb_loc (clientData, interp, argc, argv)
if (argc == 1)
{
- struct frame_info *frame;
- struct symbol *func;
-
- frame = get_frame_info (selected_frame);
-
- pc = frame ? frame->pc : stop_pc;
-
+ pc = selected_frame ? selected_frame->pc : stop_pc;
sal = find_pc_line (pc, 0);
}
else if (argc == 2)