From 41f1b6975dce5616800a8ff1acb544019c7bc132 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 23 Sep 2007 16:25:06 +0000 Subject: * 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. --- gdb/ada-lang.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 4960fda..04135fe 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -10441,6 +10441,7 @@ const struct language_defn ada_language_defn = { ada_get_gdb_completer_word_break_characters, ada_language_arch_info, ada_print_array_index, + default_pass_by_reference, LANG_MAGIC }; -- cgit v1.1