aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-02 19:12:37 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-02 19:12:37 +0000
commita3178c64fd40f4b33ce28a8765009b2b736e459f (patch)
tree8bc54c8cf808d9eea19240dc72db0bfcaefbc8b7 /gdb/language.h
parentff3a5c1866b8d27473ecdf7ab88671e0775b68dc (diff)
downloadgdb-a3178c64fd40f4b33ce28a8765009b2b736e459f.zip
gdb-a3178c64fd40f4b33ce28a8765009b2b736e459f.tar.gz
gdb-a3178c64fd40f4b33ce28a8765009b2b736e459f.tar.bz2
* language.h: Add comment about current_language.
Diffstat (limited to 'gdb/language.h')
-rw-r--r--gdb/language.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/language.h b/gdb/language.h
index ac32290..8bb76a0 100644
--- a/gdb/language.h
+++ b/gdb/language.h
@@ -185,7 +185,19 @@ struct language_defn
/* Pointer to the language_defn for our current language. This pointer
always points to *some* valid struct; it can be used without checking
- it for validity. */
+ it for validity.
+
+ The current language affects expression parsing and evaluation
+ (FIXME: it might be cleaner to make the evaluation-related stuff
+ separate exp_opcodes for each different set of semantics. We
+ should at least think this through more clearly with respect to
+ what happens if the language is changed between parsing and
+ evaluation) and printing of things like types and arrays. It does
+ *not* affect symbol-reading-- each source file in a symbol-file has
+ its own language and we should keep track of that regardless of the
+ language when symbols are read. If we want some manual setting for
+ the language of symbol files (e.g. detecting when ".c" files are
+ C++), it should be a seprate setting from the current_language. */
extern const struct language_defn *current_language;