summaryrefslogtreecommitdiff
path: root/gdb/f-lang.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2007-09-23 16:25:06 +0000
committerDaniel Jacobowitz <dan@debian.org>2007-09-23 16:25:06 +0000
commit1eb27a8e4fa6e0e8068a2ebe1f746c3b13cc38ff (patch)
tree51005d3ee946889ba64adafb38a38345ac6df4b5 /gdb/f-lang.c
parent10b92b9f96cdab025b0fbeaf1457f94a29c96fc5 (diff)
downloadgdb-1eb27a8e4fa6e0e8068a2ebe1f746c3b13cc38ff.tar.gz
* infcall.c (call_function_by_hand): Handle language-specific
pass and return by reference. * cp-abi.c (cp_pass_by_reference): New. * cp-abi.h (cp_pass_by_reference): Declare. (struct cp_abi_ops): Add pass_by_reference. * gnu-v3-abi.c (gnuv3_pass_by_reference): New. (init_gnuv3_ops): Set pass_by_reference. * language.c (language_pass_by_reference): New. (default_pass_by_reference): New. (unknown_language_defn, auto_language_defn, local_language_defn): Add default_pass_by_reference. * langauge.h (struct language_defn): Add la_pass_by_reference. (language_pass_by_reference, default_pass_by_reference): Declare. * ada-lang.c (ada_language_defn): Add default_pass_by_reference. * c-lang.c (c_language_defn, asm_language_defn) (minimal_language_defn): Likewise. (cplus_language_defn): Add cp_pass_by_reference. * f-lang.c (f_language_defn): Add default_pass_by_reference. * jv-lang.c (java_language_defn): Likewise. * m2-lang.c (m2_language_defn): Likewise. * objc-lang.c (objc_language_defn): Likewise. * p-lang.c (pascal_language_defn): Likewise. * scm-lang.c (scm_language_defn): Likewise * gdb.cp/pass-by-ref.cc, gdb.cp/pass-by-ref.exp: New files.
Diffstat (limited to 'gdb/f-lang.c')
-rw-r--r--gdb/f-lang.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/f-lang.c b/gdb/f-lang.c
index b0189a2b2f3..0006ff86af9 100644
--- a/gdb/f-lang.c
+++ b/gdb/f-lang.c
@@ -503,6 +503,7 @@ const struct language_defn f_language_defn =
default_word_break_characters,
f_language_arch_info,
default_print_array_index,
+ default_pass_by_reference,
LANG_MAGIC
};