summaryrefslogtreecommitdiff
path: root/gdb/tui/tui-hooks.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2003-06-12 15:44:24 +0000
committerAndreas Schwab <schwab@suse.de>2003-06-12 15:44:24 +0000
commite1201ca40de1f7d4b52863918685c259304a4c1e (patch)
treeda3231a985e09719f9c2ddfdf61551e4fd38dedc /gdb/tui/tui-hooks.c
parent9579d3c0c4e28b22e008f445ea99bcbabfad3030 (diff)
downloadgdb-e1201ca40de1f7d4b52863918685c259304a4c1e.tar.gz
* 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".
Diffstat (limited to 'gdb/tui/tui-hooks.c')
-rw-r--r--gdb/tui/tui-hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index db6c3f666bf..569ab078cf1 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