summaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2007-09-19 22:00:34 +0000
committerJoel Brobecker <brobecker@gnat.com>2007-09-19 22:00:34 +0000
commit876bc05c1f54d5c8c3e50f43efccca80dd164ecc (patch)
tree9a8e99d482d2bad27533888dce080c6c562b4ed0 /gdb/maint.c
parent9d503d0810dd775ca6dac11367174a24a578c68d (diff)
downloadgdb-876bc05c1f54d5c8c3e50f43efccca80dd164ecc.tar.gz
* configure.ac: Add check for "etext".
* configure, config.in: Regenerate. * maint.c (TEXTEND): Only define if either _etext or etext are available. Disable the profiling functionality if TEXTEND is not defined.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index 2f431fd405e..5f3338ef165 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -638,16 +638,16 @@ show_maintenance_profile_p (struct ui_file *file, int from_tty,
fprintf_filtered (file, _("Internal profiling is %s.\n"), value);
}
-#if defined (HAVE_MONSTARTUP) && defined (HAVE__MCLEANUP)
-
#ifdef HAVE__ETEXT
extern char _etext;
#define TEXTEND &_etext
-#else
+#elif defined (HAVE_ETEXT)
extern char etext;
#define TEXTEND &etext
#endif
+#if defined (HAVE_MONSTARTUP) && defined (HAVE__MCLEANUP) && defined (TEXTEND)
+
static int profiling_state;
static void