From f70a7d6187474279095499b00effcbe1ec8ce3d8 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 12 Jun 2003 15:44:24 +0000 Subject: * Makefile.in (tuiDisassem.o): Update dependencies. tui: * tuiSource.c (tuiVerticalSourceScroll): Use get_frame_pc. * tuiSourceWin.c (tuiHorizontalSourceScroll): Likewise. * tuiStack.c (tui_get_function_from_frame): Likewise. (tuiShowFrameInfo): Likewise. * tuiWin.c (_makeVisibleWithNewHeight): Likewise. * tui-hooks.c (tui_selected_frame_level_changed_hook): Likewise. * tuiDisassem.c (tuiVerticalDisassemScroll): Likewise. Include "disasm.h". --- gdb/tui/tui-hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/tui/tui-hooks.c') diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c index db6c3f6..569ab07 100644 --- a/gdb/tui/tui-hooks.c +++ b/gdb/tui/tui-hooks.c @@ -250,7 +250,7 @@ tui_selected_frame_level_changed_hook (int level) { struct symtab *s; - s = find_pc_symtab (fi->pc); + s = find_pc_symtab (get_frame_pc (fi)); /* elz: this if here fixes the problem with the pc not being displayed in the tui asm layout, with no debug symbols. The value of s would be 0 here, and select_source_symtab would abort the -- cgit v1.1