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>
+
+ * 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.
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);
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);
#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;
#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,