]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
authorStephane Carrez <stcarrez@nerim.fr>
Sun, 25 Aug 2002 19:19:50 +0000 (19:19 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sun, 25 Aug 2002 19:19:50 +0000 (19:19 +0000)
and use tuiGetBeginAsmAddress.
* tuiSourceWin.h (tui_display_main): Declare.
* tui.h (tuiDisplayMainFunction): Remove.
* tui-hooks.c (tui_new_objfile_hook): Update.

gdb/tui/ChangeLog
gdb/tui/tui-hooks.c
gdb/tui/tui.h
gdb/tui/tuiSourceWin.c
gdb/tui/tuiSourceWin.h

index f991ac5be1177b657195876616c87ff9966c0213..dc04b1f37a31034c154bba3b9590dfc61dbfb31a 100644 (file)
@@ -1,3 +1,11 @@
+2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
+
+       * tuiSourceWin.c (tui_display_main): Rename from tuiDisplayMainFunction
+       and use tuiGetBeginAsmAddress.
+       * tuiSourceWin.h (tui_display_main): Declare.
+       * tui.h (tuiDisplayMainFunction): Remove.
+       * tui-hooks.c (tui_new_objfile_hook): Update.
+
 2002-08-25  Stephane Carrez  <stcarrez@nerim.fr>
 
        * tuiSource.h (m_tuiShowSourceAsIs): Remove macro.
index 48eeeda924013cae1d33ccf031511af0846e2fe3..d6051942a23f4566b19911a89dca1aa828587588 100644 (file)
@@ -71,9 +71,7 @@ static void
 tui_new_objfile_hook (struct objfile* objfile)
 {
   if (tui_active)
-    {
-      tuiDisplayMainFunction ();
-    }
+    tui_display_main ();
   
   if (tui_target_new_objfile_chain)
     tui_target_new_objfile_chain (objfile);
index b2ed4aa07ee56f5a2e1536a2b16ae47b3befc2fe..9cc538d1568d950010c1a41232b523e695933727 100644 (file)
@@ -125,7 +125,6 @@ extern void tui_vStartNewLines (va_list);
 extern TuiStatus tui_set_layout (const char *);
 
 /* tuiSourceWin.c */
-extern void tuiDisplayMainFunction (void);
 extern void tuiUpdateAllExecInfos (void);
 extern void tui_vAllSetHasBreakAt (va_list);
 extern void tui_vUpdateSourceWindowsWithAddr (va_list);
index 73090c7c3c1112c627b2ecd41ce3b831f4a41e7e..95b6cdf615d1d78655a776f5c561dd732f72cc89 100644 (file)
 #include "tuiDisassem.h"
 
 
-/*****************************************
-** EXTERNAL FUNCTION DECLS                **
-******************************************/
-
-/*****************************************
-** EXTERNAL DATA DECLS                    **
-******************************************/
-extern int current_source_line;
-extern struct symtab *current_source_symtab;
-
-/*
-   ** tuiDisplayMainFunction().
-   **        Function to display the "main" routine"
- */
+/* Function to display the "main" routine.  */
 void
-tuiDisplayMainFunction (void)
+tui_display_main (void)
 {
   if ((sourceWindows ())->count > 0)
     {
       CORE_ADDR addr;
 
-      addr = parse_and_eval_address ("main");
-      if (addr == (CORE_ADDR) 0)
-       addr = parse_and_eval_address ("MAIN");
+      addr = tuiGetBeginAsmAddress ();
       if (addr != (CORE_ADDR) 0)
        {
          struct symtab_and_line sal;
index b8c20c85a7dc693c59e435f69a5884ad4b26d9dd..803cb900f966f3980c6a3f80f8cf9db583d87cb4 100644 (file)
@@ -22,7 +22,8 @@
 #ifndef _TUI_SOURCEWIN_H
 #define _TUI_SOURCEWIN_H
 
-extern void tuiDisplayMainFunction (void);
+/* Function to display the "main" routine.  */
+extern void tui_display_main (void);
 extern void tuiUpdateSourceWindow (TuiWinInfoPtr, struct symtab *, TuiLineOrAddress,
                                   int);
 extern void tuiUpdateSourceWindowAsIs (TuiWinInfoPtr, struct symtab *, TuiLineOrAddress,