diff options
author | Fred Fish <fnf@specifix.com> | 1992-07-14 02:13:12 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-07-14 02:13:12 +0000 |
commit | 2dbde378c431470dcb97749fc56b470b5a779f74 (patch) | |
tree | 04219a54f212588ebb2ff7b258d0e1b69a2081c7 /gdb/Makefile.in | |
parent | d48da190b5fffeaf05afd4ae769a44fd6c46a1fc (diff) | |
download | gdb-2dbde378c431470dcb97749fc56b470b5a779f74.zip gdb-2dbde378c431470dcb97749fc56b470b5a779f74.tar.gz gdb-2dbde378c431470dcb97749fc56b470b5a779f74.tar.bz2 |
* Makefile.in (DEMANGLING_STYLE): New define to set default
demangling style for C++. Defaults to "auto".
* Makefile.in (DEMANGLE_OPTS): Use DEMANGLING_STYLE.
* Makefile.in (SFILES_MAINDIR): Add demangle.c
* Makefile.in (OBS): Add demangle.o
* cplus-dem.c (GNU_DEMANGLING, ARM_DEMANGLING, LUCID_DEMANGLING):
Remove compile time decisions about demangling style and replace
with runtime decisions using current_demangling_style.
* cplus-dem.c (main): Expand code included during building of
standalone demangler to recognize demangling style options.
* dbxread.c (demangle.h): Include.
* dbxread.c (read_ofile_symtab, process_one_symbol): Set GNU C++
demangling style if processing g++ code and current demangling style
is auto (Note: this feature currently disabled.)
* demangle.c: New file, generic demangling control.
* demangle.h (demangling_styles): New enumeration to select one
of several demangling styles. Also define string names for each
style.
* demangle.h (set_demangling_style): Add prototype.
* dwarfread.c (demangle.h): Include.
* dwarfread.c (GPLUS_PRODUCER, LCC_PRODUCER, CFRONT_PRODUCER):
New producer string prefixes to recognize.
* dwarfread.c (handle_producer): Consolidate actions for specific
producers. Set demangling style based on producer string if
current style is auto. (Note: this feature currently disabled.)
* config/ncr3000.mt (DEMANGLE_OPTS): Remove.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 54d9074..35ddfbe 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -168,15 +168,20 @@ DIST=gdb LINT=/usr/5bin/lint LINTFLAGS= -I${BFD_DIR} +# Select the default C++ demangling style to use. The default is "auto", +# which allows gdb to attempt to pick an appropriate demangling style for +# the executable it has loaded. It can be set to a specific style ("gnu", +# "lucid", "cfront", etc) in which case gdb will never attempt to do auto +# selection of the style unless you do an explicit "set demangle auto". +# To select one of these as the default, set DEMANGLING_STYLE in the +# appropriate target dependent makefile fragment. +DEMANGLING_STYLE = "auto" + # Select demangler to use. -DEMANGLER=cplus-dem +DEMANGLER = cplus-dem -# Select options to use when compiling ${DEMANGLER}.c. The default is no -# options, which is correct for most targets, and also defaults to g++ style -# demangling. For other demangling styles, such as the Annotated C++ -# Reference Manual (section 7.2.1c) style, set this define in the target- -# dependent makefile fragment. -DEMANGLE_OPTS= +# Select options to use when compiling ${DEMANGLER}.c. +DEMANGLE_OPTS = -DDEMANGLING_STYLE=${DEMANGLING_STYLE} # Host and target-dependent makefile fragments come in here. #### @@ -186,7 +191,7 @@ DEMANGLE_OPTS= # Files which are included via a config/* Makefile fragment # should *not* be specified here; they're in "ALLDEPFILES". SFILES_MAINDIR = \ - blockframe.c breakpoint.c command.c core.c \ + blockframe.c breakpoint.c command.c core.c demangle.c \ environ.c eval.c expprint.c findvar.c infcmd.c inflow.c infrun.c \ main.c printcmd.c gdbtypes.c \ remote.c source.c stack.c symmisc.c symtab.c symfile.c \ @@ -280,7 +285,7 @@ OBS = main.o blockframe.o breakpoint.o findvar.o stack.o source.o \ command.o utils.o expprint.o environ.o version.o gdbtypes.o \ copying.o $(DEPFILES) ${DEMANGLER}.o mem-break.o target.o \ inftarg.o ieee-float.o putenv.o parse.o language.o $(YYOBJ) \ - buildsym.o objfiles.o minsyms.o maint.o \ + buildsym.o objfiles.o minsyms.o maint.o demangle.o \ dbxread.o coffread.o elfread.o dwarfread.o xcoffread.o mipsread.o RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES) |