diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-01-22 23:50:35 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-01-22 23:50:35 +0000 |
commit | d28f9cdffd64eccc907a788a61c75968eeb0e954 (patch) | |
tree | 26505ccef16583054609ba765abc9d5dbfe0b4af /gdb/Makefile.in | |
parent | e7ba9c658425d264adc54dfcf0b654cfc3df8f14 (diff) | |
download | gdb-d28f9cdffd64eccc907a788a61c75968eeb0e954.zip gdb-d28f9cdffd64eccc907a788a61c75968eeb0e954.tar.gz gdb-d28f9cdffd64eccc907a788a61c75968eeb0e954.tar.bz2 |
Original patch by Tom Tromey <tromey@cygnus.com> and
Jason Molenda <jmolenda@apple.com>.
* Makefile.in (PROFILE_CFLAGS): Substitute from configure.
(INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
* NEWS: Mention profiling.
* configure.in (--enable-gdbtk): Fix typo.
(--enable-profiling): New. Set PROFILE_CFLAGS.
* maint.c (maintenance_set_profile_cmd): Remove NOTYET.
Fill in function.
(profiling_state): New variable.
(mcleanup_wrapper): New function.
(_initialize_maint): Remove NOTYET, fix call to
add_setshow_boolean_cmd for "maint set profile".
* configure: Regenerated.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 34edb60..2dda377 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -322,7 +322,8 @@ GDB_CFLAGS = -I. -I$(srcdir) -I$(srcdir)/config -DLOCALEDIR="\"$(prefix)/share/l # M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS # from the config directory. GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS) -#PROFILE_CFLAGS = -pg + +PROFILE_CFLAGS = @PROFILE_CFLAGS@ # CFLAGS is specifically reserved for setting from the command line # when running make. I.E. "make CFLAGS=-Wmissing-prototypes". @@ -349,7 +350,8 @@ LDFLAGS = @LDFLAGS@ # Profiling options need to go here to work. # I think it's perfectly reasonable for a user to set -pg in CFLAGS # and have it work; that's why CFLAGS is here. -INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_LDFLAGS) +# PROFILE_CFLAGS is _not_ included, however, because we use monstartup. +INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_LDFLAGS) # If your system is missing alloca(), or, more likely, it's there but # it doesn't work, then refer to libiberty. |