diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-09-19 22:00:34 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-09-19 22:00:34 +0000 |
commit | 01fe12f6fb039ef2841440b214d9fb905767a14d (patch) | |
tree | 83a34a2d9b307131479172fadde0619670a08c25 /gdb/maint.c | |
parent | bc56b3fb3a77b7d1992c44cd97a080b847c43c73 (diff) | |
download | gdb-01fe12f6fb039ef2841440b214d9fb905767a14d.zip gdb-01fe12f6fb039ef2841440b214d9fb905767a14d.tar.gz gdb-01fe12f6fb039ef2841440b214d9fb905767a14d.tar.bz2 |
* 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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/maint.c b/gdb/maint.c index 2f431fd..5f3338e 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 |