This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Fix TUI to update its windows when moving in files without debug info
- From: Stephane Carrez <stcarrez at nerim dot fr>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 25 Aug 2002 22:44:15 +0200
- Subject: [PATCH]: Fix TUI to update its windows when moving in files without debug info
Hi!
The current frame position was not updated in the TUI if there is no symtab
found for the current pc. Since the tuiShowFrameInfo() now handle this case
we can call it in all cases when the frame level changes.
Typical situation is when we move 'up' until crt0 or in some file without symtabs.
The TUI now correctly shows disassembly of crt0 and these files. If the source
window is displayed, it shows a 'no source file' message.
Committed on mainline.
Stephane
2002-08-25 Stephane Carrez <stcarrez@nerim.fr>
* tui-hooks.c (tui_selected_frame_level_changed_hook): Always update
the frame position.
Index: tui-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-hooks.c,v
retrieving revision 1.3
diff -u -p -r1.3 tui-hooks.c
--- tui-hooks.c 1 Mar 2002 06:19:27 -0000 1.3
+++ tui-hooks.c 25 Aug 2002 18:33:30 -0000
@@ -309,10 +309,10 @@ tui_selected_frame_level_changed_hook (i
would be 0 here, and select_source_symtab would abort the
command by calling the 'error' function */
if (s)
- {
- select_source_symtab (s);
- tuiShowFrameInfo (fi);
- }
+ select_source_symtab (s);
+
+ /* Display the frame position (even if there is no symbols). */
+ tuiShowFrameInfo (fi);
/* Refresh the register window if it's visible. */
if (tui_is_window_visible (DATA_WIN))