* gdbtypes.h (builtin_type_void): Remove macro, add declaration.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index f6d18e13bd1f67d040ddde642e9258afabdcce43..5a486af2478d5a6bb79cbb287671b0d298e07b2a 100644 (file)
@@ -1,3 +1,128 @@
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
+       (builtin_type_f_void): Remove macro.
+       * gdbtypes.c (builtin_type_void): New global variable.
+       (_initialize_gdbtypes): Initialize it.
+
+       * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
+       lookup_pointer_type or lookup_function_type on builtin_type_void.
+       * printcmd.c (set_next_address): Likewise.
+       * objc-lang.c (value_nsstring): Likewise.
+       * mt-tdep.c (mt_copro_register_type): Likewise.
+       * xtensa-tdep.c (xtensa_register_type): Likewise.
+
+       * symfile.c (syms_from_objfile): Remove special handling
+       of builtin_type_void and builtin_type_char.
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
+       of builtin_type_ macros when handling OP_OBJC_ operations.
+       * objc-lang.c (print_object_command): Likewise.
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ada-valprint.c: Include "objfiles.h".
+       (ada_val_print_1): Use the gdbarch associated with the objfile whether
+       a System.Address type is defined to retrieve the proper pointer type
+       to use to print it.
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ada-lang.c (value_pos_atr): Add TYPE argument.  Use it as
+       result type instead of builtin_type_int.
+       (value_subscript_packed): Use pos_atr instead of value_pos_atr.
+       (ada_value_subscript): Update call to value_pos_atr.
+       (ada_value_ptr_subscript): Likewise.
+       (ada_evaluate_subexp): Likewise.
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
+       (cast_from_fixed_to_double): Rename to ...
+       (cast_from_fixed): ... this.  Add TYPE parameter.  Use it instead
+       of builtin_type_double.
+       (ada_value_cast): Use cast_from_fixed instead of casting result
+       of cast_from_fixed_to_double.
+       (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double. 
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * valops.c (value_ind): No longer allow dereferencing an
+       integer type.
+       * eval.c (evaluate_subexp_standard): Handle deferencing an
+       integer type here.
+       * ada-lang.c (ada_evaluate_subexp): Likewise.
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
+       a reference type, pass the reference type directly to unpack_pointer.
+       * c-valprint.c (c_val_print): Likewise.
+       * f-valprint.c (f_val_print): Likewise.
+       * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
+       * p-valprint.c (pascal_val_print): Likewise.
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * eval.c (evaluate_subexp_standard): Use builtin_type_int8
+       to construct the EVAL_SKIP dummy return value.
+       * ada-lang.c (ada_evaluate_subexp): Likewise.
+       * jv-lang.c (evaluate_subexp_java): Likewise.
+       * m2-lang.c (evaluate_subexp_modula2): Likewise.
+       * scm-lang.c (evaluate_exp): Likewise.
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * value.h (coerce_enum, coerce_number): Remove prototypes.
+       * value.c (coerce_enum, coerce_number): Remove.
+       * valarith.c (value_x_binop): Do not call coerce_enum.
+       (value_x_unop): Likewise.
+       (value_logical_not): Call coerce_array instead of coerce_number.
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ax-gdb.c: Include "language.h".
+       (gen_frame_args_address): Add GDBARCH parameter; use it
+       instead of current_gdbarch.
+       (gen_frame_locals_address): Likewise.
+       (gen_var_ref): Add GDBARCH parameter.  Update calls to
+       gen_frame_args_address and gen_frame_locals_address.  Use
+       pointer type from gdbarch.
+       (gen_usual_unary): Add EXP parameter.  Use integer type
+       from exp->gdbarch.
+       (gen_usual_arithmetic): Likewise.
+       (gen_integral_promotions): Likewise.
+       (gen_add, gen_sub): Remove.
+       (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
+       (gen_logical_not): Use passed-in boolean result type
+       instead of builtin_type_int.
+       (gen_complement): Do not call gen_usual_unary or
+       gen_integral_promotions.
+       (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
+       (gen_repeat): Add EXP parameter.  Update call to gen_expr.
+       Use builtin_type_int32 as internal range type.
+       (gen_sizeof): Add EXP and SIZE_TYPE parameters.  Use SIZE_TYPE
+       as result type.  Update call to gen_expr.
+       (gen_expr): Add EXP parameter.  Update calls to gen_expr,
+       gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
+       and gen_integral_promotions.  Call gen_ptradd, gen_ptrsub,
+       gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
+       Use exp->gdbarch instead of current_gdbarch.
+       Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
+
+2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * eval.c (evaluate_subexp_standard): Add calls to binop_promote
+       and unop_promote before calling value_binop et. al.
+       * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
+       and unop_promote before calling value_binop et. al.
+
+       * valarith.c (value_binop): Do not call binop_promote or unop_promote.
+       (value_pos): Do not call unop_promote.
+       (value_neg, value_complement): Likewise.
+
 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * value.h (unop_promote, binop_promote): Add prototypes.
This page took 0.024072 seconds and 4 git commands to generate.