7f47dab3c04b0ab8b20f31dfde1d7f41518cd64b
[external/binutils.git] / gdb / ChangeLog
1 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
2
3         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
4         the appropriate type rather than a bogus void type.
5
6 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
7
8         * ada-lang.h (ada_find_printable_frame): Remove.
9         (ada_exception_catchpoint_p, ada_decode_exception_location)
10         (ada_decode_assert_location): Add declaration.
11         * ada-lang.c: Add include of annotate.h and valprint.h.
12         (exception_catchpoint_kind): New enum.
13         (function_name_from_pc, is_known_support_routine)
14         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
15         (ada_exception_name_addr_1, ada_exception_name_addr)
16         (print_it_exception, print_one_exception, print_mention_exception)
17         (print_it_catch_exception, print_one_catch_exception)
18         (print_mention_catch_exception, catch_exception_breakpoint_ops)
19         (print_it_catch_exception_unhandled)
20         (print_one_catch_exception_unhandled)
21         (print_mention_catch_exception_unhandled, print_it_catch_assert)
22         (print_one_catch_assert, print_mention_catch_assert)
23         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
24         (ada_get_next_arg, catch_ada_exception_command_split)
25         (ada_exception_sym_name, ada_exception_sym_name)
26         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
27         (ada_parse_catchpoint_condition, ada_exception_sal)
28         (ada_decode_exception_location)
29         (ada_decode_assert_location): New function.
30         (catch_exception_unhandled_breakpoint_ops): New global variable.
31         (catch_assert_breakpoint_ops): New global variable.
32         * breakpoint.c: Add include of ada-lang.h.
33         (print_one_breakpoint): Do not print the condition for Ada
34         exception catchpoints.
35         (create_ada_exception_breakpoint): New function.
36         (catch_ada_exception_command, catch_assert_command): New function.
37         (catch_command_1): Add support for the new "catch exception" and
38         "catch assert" commands.
39         (_initialize_breakpoint): Add help description for the new catch
40         commands.
41         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
42         valprint.h.
43         (breakpoint.o): Add dependency on ada-lang.h.
44
45 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
46
47         * coffread.c (cs_to_section): If bfd_section is found, always
48         return its section index.
49         (coff_symtab_read): Determine the minimal_symbol_type using the
50         bfd_section flags.
51
52 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
53             Daniel Jacobowitz  <dan@codesourcery.com>
54
55         * Makefile.in (top.o): Update.
56         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
57         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
58         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
59         New.
60         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
61
62 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
63
64         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
65         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
66
67 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
68
69         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
70         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
71         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
72         greater than or equal to zero.
73         * m2-typeprint.c (m2_array): Likewise.
74         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
75         * gdbtypes.c (copy_type_recursive): Correct == typo.
76         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
77         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
78         greater than zero.
79         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
80         (default_macro_scope): Remove unused variable.
81         * prologue-value.h (pv_area_find_reg): Don't name an argument
82         "register".
83         * remote-fileio.c (remote_fio_func_map): Add missing braces.
84         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
85         type.
86         (cleanup_sigint_signal_handler): Remove casts.
87         * valprint.c (val_print): Use a volatile local for the modified
88         argument.
89         * varobj.c (languages): Remove extra array dimension.
90         (varobj_create): Correct access to languages array.
91         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
92         missing braces.
93         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
94         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
95         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
96         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
97         (mi_cmd_data_write_memory): Likewise.
98         * signals/signals.c (target_signal_to_string): Cast to int before
99         comparing.
100         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
101         Update all callers.
102
103 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
104
105         * NEWS: Mention pointer to member improvements.
106         * Makefile.in (gnu-v3-abi.o): Delete special rule.
107         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
108         * ada-valprint.c (ada_print_scalar): Update for new type codes.
109         * c-typeprint.c (c_print_type): Update for new type codes.
110         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
111         (c_type_print_base): Likewise.
112         (c_type_print_args): Rewrite.
113         * c-valprint.c (c_val_print): Update for new type codes.  Remove
114         support for references to members.  Treat methods like functions.
115         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
116         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
117         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
118         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
119         (struct cp_abi_ops): Add corresponding members.
120         * cp-valprint.c (cp_print_class_method): Delete.
121         (cp_find_class_member): New function.
122         (cp_print_class_member): Use it.  Simplify support for bogus
123         member pointers.
124         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
125         lookup_methodptr_type.
126         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
127         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
128         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
129         pointer support.
130         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
131         references returned by user defined operators.
132         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
133         (f_type_print_varspec_suffix): Remove support for member pointers.
134         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
135         and adjusted.
136         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
137         (lookup_methodptr_type): New.
138         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
139         (recursive_dump_type): Update for new types.
140         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
141         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
142         (lookup_memberptr_type, lookup_methodptr_type)
143         (smash_to_memberptr_type): New prototypes.
144         (smash_to_method_type): Formatting fix.
145         (lookup_member_type, smash_to_member_type): Delete prototypes.
146         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
147         Do not rely on debug information for the vptr or the method's
148         enclosing type.  Handle function descriptors for IA64.
149         (gnuv3_virtual_fn_field): Rewrite using the new functions.
150         (gnuv3_find_method_in, gnuv3_print_method_ptr)
151         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
152         (gnuv3_method_ptr_to_value): New.
153         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
154         * hpread.c (hpread_type_lookup): Update for new types.
155         * infcall.c (value_arg_coerce): Likewise.
156         * m2-typeprint.c (m2_print_type): Remove explicit support
157         for member pointers.
158         * m2-valprint.c (m2_val_print): Likewise.
159         * p-typeprint.c (pascal_type_print_varspec_prefix)
160         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
161         * p-valprint.c (pascal_val_print): Likewise.
162         (pascal_object_print_class_method, pascal_object_print_class_member):
163         Delete.
164         * p-lang.h (pascal_object_print_class_method)
165         (pascal_object_print_class_member): Delete prototypes.
166         * stabsread.c (read_type): Update for new types.
167         * typeprint.c (print_type_scalar): Likewise.
168         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
169         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
170         argument.  Construct a pointer to member if the address of a
171         function or data member is requested.
172         (value_cast_pointers): Don't modify the input value.
173         (value_cast): Adjust pointer to member handling for new types.
174         Allow null pointer to member constants.  Don't modify the input
175         value.
176         (value_ind): Remove pointer to member check.  Handle function
177         descriptors for function pointers.
178         (value_struct_elt, value_find_oload_method_list, check_field):
179         Remove pointer to member checks.
180         * value.c (unpack_long): Allow pointers to data members.
181         (value_from_longest): Allow member pointers.
182         * value.h (value_aggregate_elt): Add want_address.
183         * varobj.c (c_variable_editable): Remove check for members.
184         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
185         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
186         in virtual tables.
187         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
188         * c-lang.h (cp_print_class_method): Delete prototype.
189         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
190         * mips-tdep.c (mips_gdbarch_init): Likewise.
191         * gdbarch.c, gdbarch.h: Regenerated.
192
193 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
194
195         * rs6000-tdep.c (rs6000_use_struct_convention)
196         (rs6000_extract_return_value, rs6000_store_return_value)
197         (rs6000_extract_struct_value_address): Remove.
198         (rs6000_return_value): New function.
199         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
200         store_return_value, deprecated_extract_struct_value_address and
201         deprecated_use_struct_convention.  Use rs6000_return_value
202         instead.
203
204 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
205
206         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
207         -display-disable, -display-enable, -display-insert and
208         -display-list.
209
210 2006-01-01  Joel Brobecker  <brobecker@adacore.com>
211
212         * breakpoint.c (remove_breakpoint): Remove dead code.
213
214 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
215
216         * varobj.c: Include block.h.
217         (c_value_of_root): Check scope within nested statements.
218
219 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
220
221         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
222         regcache_cooked_write_signed instead of
223         deprecated_write_register_bytes.
224
225 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
226
227         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
228
229 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
230
231         Followed the Start of New Year Procedure:
232         * ChangeLog-2006: New file, containing all the entries for 2006.
233         * ChangeLog: Removed all 2006 entries, and changed the reference
234         to the previous ChangeLog to point to ChangeLog 2006.
235         * top.c (print_gdb_version): Update copyright year.
236
237 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
238
239         * Makefile.in (remote-sds.o): Remove.
240         * remote-sds.c: Delete.
241
242 For older changes see ChangeLog-2006.
243 \f
244 Local Variables:
245 mode: change-log
246 left-margin: 8
247 fill-column: 74
248 version-control: never
249 End: