* Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
[external/binutils.git] / gdb / ChangeLog
1 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
2
3         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
4         (xml-tdesc.o): Update.
5         * xml-support.c: Add a comment.
6         (gdb_xml_enums_boolean): New variable.
7         (gdb_xml_parse_attr_enum): Use strcasecmp.
8         * xml-support.h (gdb_xml_enums_boolean): Declare.
9         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
10         next_regnum, and current_union.
11         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
12         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
13         (field_attributes, union_children, reg_attributes, union_attributes)
14         (vector_attributes, feature_attributes, feature_children): New.
15         (target_children): Make static.  Add <feature>.
16         (tdesc_elements): Make static.
17         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
18         (struct tdesc_feature, tdesc_feature_p): New types.
19         (struct target_desc): Add features member.
20         (struct tdesc_arch_data, tdesc_data): New.
21         (target_find_description): Clarify error message.  Warn about
22         ignored register descriptions.
23         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
24         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
25         (tdesc_data_cleanup, tdesc_numbered_register)
26         (tdesc_numbered_register_choices, tdesc_find_register)
27         (tdesc_register_name, tdesc_register_type)
28         (tdesc_remote_register_number, tdesc_register_reggroup_p)
29         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
30         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
31         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
32         (tdesc_create_feature, tdesc_record_type): New.
33         (free_target_description): Free features.
34         (_initialize_target_descriptions): Initialize tdesc_data.
35         * arch-utils.c (default_remote_register_number): New.
36         * arch-utils.h (default_remote_register_number): New prototype.
37         * target-descriptions.h (set_tdesc_pseudo_register_name)
38         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
39         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
40         (tdesc_numbered_register, tdesc_numbered_register_choices)
41         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
42         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
43         (tdesc_create_reg): Declare.
44         * gdbarch.sh (remote_register_number): New entry.
45         * gdbarch.c, gdbarch.h: Regenerate.
46         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
47         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
48
49         * arm-tdep.c (arm_register_aliases): New.
50         (arm_register_name_strings): Rename to...
51         (arm_register_names): ...this.  Make const.  Delete the old version.
52         (current_option, arm_register_byte): Delete.
53         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
54         (value_of_arm_user_reg): New.
55         (arm_gdbarch_init): Verify any described registers.  Call
56         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
57         for standard register names.
58         (_initialize_arm_tdep): Do not adjust arm_register_names.
59         * user-regs.c (struct user_reg): Add baton member.
60         (append_user_reg, user_reg_add_builtin, user_regs_init)
61         (user_reg_add, value_of_user_reg): Use a baton for user
62         register functions.
63         * std-regs.c: Update.
64         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
65         (user_reg_add): Add baton argument.
66         * NEWS: Mention target description register support.
67         * features/arm-core.xml, features/arm-fpa.xml: New.
68         * eval.c (evaluate_subexp_standard): Allow ptype $register
69         when the program is not running.
70
71 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
72
73         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
74
75 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
76
77         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
78         info->disassembler_options to "any".
79
80 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
81
82         * varobj.c (install_new_value): Only call value_get_print_value
83         if changeable.
84
85 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
86
87         Reported by timeless@gmail.com:
88         * gdb/target.c (target_flash_erase): Do not return void value.
89         (target_flash_done): Likewise.
90         * gdb/cli/cli-cmds.c (source_command): Likewise.
91
92 2007-02-08  Fred Fish  <fnf@specifix.com>
93
94         * event-top.c (handle_sigint): Set quit_flag.
95         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
96         if quit_flag has already been reset.
97
98 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
99
100         * ser-mingw.c (pipe_windows_close): Move variable initialization back
101         up.
102
103 2007-02-08  Fred Fish  <fnf@specifix.com>
104
105         * defs.h (request_quit): Remove declaration.
106         * utils.c (request_quit): Remove definition.
107
108 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
109             Jan Kratochvil  <jan.kratochvil@redhat.com>
110             Daniel Jacobowitz  <dan@codesourcery.com>
111
112         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
113         (skip_prologue): Allow bl->blrl used by PIC code.
114
115 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
116             Daniel Jacobowitz  <dan@codesourcery.com>
117
118         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
119         initialize tmp_obstack.
120         * p-valprint.c (pascal_object_print_value_fields)
121         (pascal_object_print_value): Likewise.
122
123 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
124
125         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
126
127 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
128
129         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
130         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
131
132 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
133
134         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
135         (xml_cache): New.
136         (tdesc_parse_xml): Cache expanded descriptions.
137
138 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
139
140         * Makefile.in (XMLFILES): New.
141         (COMMON_OBS): Add xml-builtin.o.
142         (xml-builtin.c, stamp-xml): New rules.
143         (xml-tdesc.o): Update.
144         * features/feature_to_c.sh: New file.
145         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
146         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
147         (gdb_xml_start_element): Initialize scope after possibly reallocating
148         scopes.  Move cleanup later.  Handle the XInclude description
149         specially.
150         (gdb_xml_end_element): Only parse the body if there is a current element.
151         Call XML_DefaultCurrent if there is no element.
152         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
153         (struct xinclude_parsing_data, xinclude_start_include)
154         (xinclude_end_include, xml_xinclude_default)
155         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
156         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
157         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
158         * xml-support.h (xml_fetch_another, xml_process_xincludes)
159         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
160         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
161         XInclude directives.  Use the compiled in DTD.
162         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
163         directory name.  Do not warn here.
164         (file_read_description_xml): Update call.  Warn here instead.  Pass
165         a dirname as baton.
166         (fetch_available_features_from_target): New.
167         (target_read_description_xml): Use it.
168         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
169         to handle XInclude.
170         * features/xinclude.dtd: New file.
171
172 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
173
174         * linux-thread-db.c (check_for_thread_db): Return early if we have
175         no libthread_db support.
176
177 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
178
179         * mi/mi-parse.h: Include <sys/time.h>.
180
181 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
182
183         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
184         instead of print_variable_value to print values.
185
186 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
187
188         * mi/mi-main.c: Numerous formatting changes.
189         (mi_cmd_data_write_register_values): Replace clause inadvertantly
190         removed in my previous change.
191
192 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
193
194         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
195         Use 1000000L instead of 1000000.
196
197 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
198
199             Based on work by Apple Computer, Inc.
200
201         * configure.ac: Test for sys/resource.h and getrusage.
202         * configure, config.in: Regenerate.
203
204         * mi/mi-main.c: Include <sys/resource.h> if present.
205         (rusage): Declare if HAVE_GETRUSAGE.
206         (current_command_ts, do_timings): New static variables.
207         (timestamp, print_diff_now, print_diff, timeval_diff):
208         New static timing functions.
209         (mi_cmd_enable_timings): New function for new MI command.
210         (captured_mi_execute_command, mi_execute_async_cli_command): 
211         Call timing functions.
212
213         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
214         -enable-timings.
215
216         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
217
218         * mi/mi-parse.h: (mi_timestamp): New structure.
219         (mi_parse): Add mi_timestamp* member.
220
221 2007-02-02  Denis Pilat  <denis.pilat@st.com>
222
223         * thread.c (make_cleanup_restore_current_thread): New function.
224         (info_threads_command): Use of make_cleanup_restore_current_thread
225         to restore the current thread and the selected frame.
226         (restore_selected_frame): New function.
227         (struct current_thread_cleanup): Add frame_id field.
228         (do_restore_current_thread_cleanup): Add restoring of the selected
229         frame.
230         (make_cleanup_restore_current_thread): Likewise.
231         (thread_apply_all_command): backup the selected frame while 
232         entering the function and restore it at exit.
233         (thread_apply_command): Likewise.
234
235 2007-02-02  Denis Pilat  <denis.pilat@st.com>
236
237         * MAINTAINERS (Write After Approval): Add myself to the list.
238
239 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
240
241         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
242         (m32r_store_register): Ditto.
243
244 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
245
246         * ser-mingw.c (pipe_windows_open)
247         (pipe_windows_read, pipe_windows_write): Declare
248         variables at the top of the function.
249
250 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
251
252         * doublest.c (floatformat_from_length): Use the right element from
253         gdbarch floatformats.
254         (floatformat_from_type, extract_typed_floating)
255         (store_typed_floating): Likewise.
256         * doublest.h: Remove declarations for undefined floatformat arrays.
257         * gdbarch.sh (float_format, double_format, long_double_format): Change
258         to pairs.
259         (pformat): Update for pairs.
260         * gdbarch.c, gdbarch.h: Regenerated.
261         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
262         (floatformats_ieee_double_littlebyte_bigword)
263         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
264         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
265         (floatformats_vax_d): New variables.
266         (builtin_type_ieee_single, builtin_type_ieee_double)
267         (builtin_type_arm_ext, builtin_type_ia64_spill)
268         (builtin_type_ia64_quad): Replace arrays with individual types.
269         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
270         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
271         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
272         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
273         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
274         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
275         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
276         unused and endian-specific types.
277         (recursive_dump_type): Update for floatformat pairs.
278         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
279         (build_gdbtypes): Use build_flt.
280         (_initialize_gdbtypes): Update set of initialized types.
281         * gdbtypes.h: Update declarations to match gdbtypes.c.
282         (struct main_type): Store a pointer to two floatformats.
283         * arch-utils.c (default_float_format, default_double_format): Delete.
284         * arch-utils.h (default_float_format, default_double_format): Delete.
285
286         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
287         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
288         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
289         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
290         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
291
292 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
293
294         * target.c (maintenance_print_target_stack): New function.
295         (initialize_targets): Add new "maintenance print target-stack"
296         command.
297
298 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
299
300         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
301
302 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
303
304         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
305         (struct dwarf2_loclist_baton): Likewise.
306
307 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
308
309         * cli/cli-script.c: Include breakpoint.h.
310         (build_command_line): Require arguments only for if and while
311         commands.
312         (get_command_line, execute_user_command, execute_control_command):
313         Fix wording of warning messages.
314         (print_command_lines): Print breakpoint commands.
315         (execute_control_command): Call commands_from_control_command to
316         handle the `commands' command inside a body of a flow-control
317         command.
318         (read_next_line): Recognize the `commands' command and build a
319         command line structure for it.
320         (recurse_read_control_structure, read_command_lines): Handle
321         `commands' similarly to `if' and `while'.
322
323         * breakpoint.c (get_number_trailer): Document the special meaning
324         of NULL as the first argument PP.
325         (commands_from_control_command): New function.
326
327         * breakpoint.h (commands_from_control_command): Add prototype.
328
329         * defs.h (commands_control): New enumerated value for enum
330         command_control_type.
331
332 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
333
334         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
335         (ada_exception_sal): Update accordingly.
336
337 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
338
339         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
340         * NEWS: Describe CHAR array vs. string identifcation rules.
341
342 2007-01-25  Paul Brook  <paul@codesourcery.com>
343
344         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
345
346 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
347
348         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
349         expression is empty, bother to return the 'optimized out' value we
350         construct.  (Thanks to Carl Burch.)
351
352 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
353
354         * varobj.c (c_value_of_root, c_value_of_child)
355         (cplus_describe_child): Don't call release_value.
356
357 2007-01-24  Thiemo Seufer  <ths@mips.com>
358
359         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
360         initialization.
361
362 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
363
364         Refactor getting children name, value and type access 
365         for varobjs in C++.
366         * varobj.c (get_type_deref): Remove.
367         (adjust_value_for_child_access): New.
368         (c_number_of_children): Use the above.
369         (c_describe_child): Likewise.
370         (enum accessibility): New.
371         (match_accessibility): New function.
372         (cplus_describe_child): New function.
373         (cplus_name_of_child, cplus_value_of_child)
374         (cplus_type_of_child): Reimplement in terms
375         of cplus_describe_child.
376         (cplus_number_of_children): Use 
377         adjust_value_for_child_access.
378         
379 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
380
381         Fix computation of the 'editable' attribute and
382         value changeability for for references.
383         * varobj.c (get_value_type): New function.
384         (c_variable_editable): Use get_value_type.
385         (varobj_value_is_changeable): Likewise.
386                 
387 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
388
389         * source.c (find_and_open_source): Try rewriting the source
390         path inside filename if dirname is NULL.
391
392 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
393
394         * dwarf2read.c (add_partial_symbol): Create an extra partial
395         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
396         (new_symbol): Likewise for symbols.
397
398 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
399
400         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
401
402 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
403         
404         * value.c (value_primitive_field): Copy the full 'location' 
405         contents, instead of assuming that copying ADDRESS will 
406         bring over everything in the union.  Remove obsolete comment.
407         
408 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
409
410         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
411         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
412         (m32c_m16c_pointer_to_address): Separate code from declarations.
413
414 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
415
416         * target.c (update_current_target): Correct typo.
417
418 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
419
420         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
421         declaration.
422
423 2007-01-11  Andrew Cagney  <cagney@redhat.com>
424             Daniel Jacobowitz  <dan@codesourcery.com>
425             Jan Kratochvil  <jan.kratochvil@redhat.com>
426
427         * dwarf2-frame.c (execute_cfa_program): New support of
428         `DW_CFA_GNU_negative_offset_extended'.
429
430 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
431
432         * NEWS: Mention flash support for "load" and new remote packets.
433
434 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
435
436         * breakpoint.c (delete_command): Skip redundant loop iterations.
437
438 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
439
440         * gdbarch.sh (register_type): Update comment.
441         * gdbarch.h: Regenerated.
442         * arch-utils.c (generic_register_size): Call register_type.
443         * ia64-tdep.c (ia64_extract_return_value): Likewise.
444         * m32c-tdep.c (check_for_saved): Likewise.
445         * mips-tdep.c (mips_print_register, print_gp_register_row)
446         (mips_print_registers_info): Likewise.
447         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
448         Likewise.
449         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
450         (sh64_do_register, sh64_print_register)
451         (sh64_media_print_registers_info): Likewise.
452         * tui/tui-regs.c (tui_register_format): Likewise.
453
454 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
455
456         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
457
458         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
459         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
460         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
461         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
462         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
463         (make_symbol_completion_list): Likewise.
464
465 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
466             Daniel Jacobowitz  <dan@codesourcery.com>
467
468         * buildsym.c (end_symtab): Use preallocated symtab if available.
469         Fill in SYMBOL_SYMTAB.
470         * buildsym.h (struct subfile): Add symtab member.
471         * dwarf2read.c (struct dwarf2_cu): Add line_header.
472         (struct file_entry): Add symtab.
473         (free_cu_line_header): New function.
474         (read_file_scope): Use it.  Save line_header in the cu.  Process
475         lines before DIEs.
476         (add_file_name): Initialize new symtab member.
477         (dwarf_decode_lines): Create symtabs for included files.
478         (new_symbol): Set SYMBOL_SYMTAB.
479         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
480         (search_symbols): Likewise.
481         * symtab.h (struct symbol): Add symtab member.
482         (SYMBOL_SYMTAB): Define.
483
484 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
485
486         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
487
488 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
489
490         * arch-utils.c (show_endian): Correct reversed condition.
491
492 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
493
494         * MAINTAINERS (Write After Approval): Add myself.
495
496 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
497             Vladimir Prus  <vladimir@codesourcery.com>
498
499         Fix 'selected frame' varobjs.
500         * varobj.c (struct varobj): Remove the error field.
501         (varobj_set_value): Don't check var->error.
502         (install_new_value): Don't set var->error.
503         (varobj_update): Always pass the new value
504         of the root via install_new_value.
505         (create_child): Don't set error field.
506         (new_variable): Likewise.
507         (c_value_of_root): Always reevaluate the value
508         of selected frame varobjs in the selected frame.
509         Don't call reinit_frame_cache.
510
511 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
512
513         * source.c (_initialize_source): Improve the help text of
514         the substitute-path commands.
515
516 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
517
518         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
519         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
520         (frv_skip_prologue): Remove prototypes.
521         (frv_adjust_breakpoint_address): Renamed from
522         frv_gdbarch_adjust_breakpoint_address.
523         (frv_gdbarch_init): Adjust.
524
525 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
526
527         * gdbarch.sh (deprecated_extract_return_value)
528         (deprecated_store_return_value): Remove.
529         (extract_return_value, store_return_value): Remove default values.
530         * gdbarch.c, gdbarch.h: Regenerate.
531         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
532         (legacy_store_return_value): Remove.
533         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
534         Remove.
535
536         * mi/mi-main.c: Remove obsolete comment.
537
538         * regcache.c, regcache.h (deprecated_register_bytes)
539         (deprecated_read_register_bytes)
540         (deprecated_write_register_bytes): Remove.
541
542         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
543         Don't forget to move destination pointer.
544
545 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
546
547         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
548
549 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
550
551         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
552         past entry function with recent newlib.
553
554 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
555
556         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
557         introduction.  Specify -var-update more exactly.
558
559 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
560
561         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
562
563 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
564
565         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
566         the Global Maintainers' invitation to be a global maintainer.
567
568 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
569
570         * infrun.c (singlestep_pc): New variable.
571         (resume): Set singlestep_pc.
572         (context_switch): Add a debugging message.  Flush the frame cache.
573         (handle_inferior_event): Add debugging messages.  Handle thread
574         hops when a software single step has completed.  Let context_switch
575         handle flushing the frame cache.
576
577 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
578
579         * NEWS: Mention target descriptions, "set tdesc filename",
580         "unset tdesc filename", "show tdesc filename", and
581         qXfer:features:read.
582         * arch-utils.c (choose_architecture_for_target): New function.
583         (gdbarch_info_fill): Call it.
584         * target-descriptions.c (struct property): Make members non-const.
585         (struct target_desc): Add arch member.
586         (target_description_filename): New variable.
587         (target_find_description): Try via XML first.
588         (tdesc_architecture): New.
589         (free_target_description, make_cleanup_free_target_description): New.
590         (set_tdesc_property): Call xstrdup.
591         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
592         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
593         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
594         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
595         * target-descriptions.h (tdesc_architecture)
596         (make_cleanup_free_target_description, set_tdesc_architecture): New
597         prototypes.
598         * Makefile.in (SFILES): Add xml-tdesc.c.
599         (COMMON_OBS): Add xml-tdesc.o.
600         (target-descriptions.o): Update.
601         (xml-tdesc.o): New rule.
602         * xml-tdesc.c, xml-tdesc.h: New files.
603         * remote.c (PACKET_qXfer_features): New enum.
604         (remote_protocol_features): Add qXfer:features:read.
605         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
606         (_initialize_remote): Register qXfer:features:read.
607         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
608         * features/gdb-target.dtd: New file.
609
610 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
611
612         * copyright.sh: Clarify error.
613
614 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
615
616         * symtab.c (matching_bfd_sections): Fix VMA matching for
617         prelinked objects.
618
619 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
620
621         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
622         nested symbols.
623
624 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
625
626         Updated copyright notices for most files.
627
628 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
629
630         * copyright.sh (prunes): Add step-line.inp and step-line.c.
631
632 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
633
634         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
635         exec_prefix.
636         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
637         '${prefix}'.
638         * configure, config.in: Regenerate.
639         * defs.h (debug_file_directory): Declare.
640         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
641         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
642         relocate it if DEBUGDIR_RELOCATABLE.
643         * symfile.c (debug_file_directory): Make non-static.
644         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
645         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
646         (_initialize_symfile): Don't initialize debug_file_directory here.
647
648 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
649
650         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
651         statements.
652
653 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
654
655         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
656         frame_unwind_register to recurse.
657         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
658         (alpha_heuristic_frame_prev_register): Likewise.
659         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
660         * m32c-tdep.c (m32c_prev_register): Likewise.
661         * frame.c (frame_register_unwind_location): Remove FIXME.
662
663 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
664             Eli Zaretskii  <eliz@gnu.org>
665
666         * copyright.sh: New file.
667
668 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
669
670         * configure.ac: Check for XML_StopParser.
671         * xml-support.c (gdb_xml_body_text): Check for an error.
672         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
673         (gdb_xml_end_element_wrapper): Likewise.
674         * config.in, configure: Regenerated.
675
676 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
677
678         * varobj.c (install_new_value): Always update print_value.
679         (value_get_print_value): Immediately return NULL for missing
680         values.
681
682 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
683
684         * configure.ac: Tighten pattern for extracting value of
685         DEPRECATED_TM_FILE from the target makefile fragment.
686         * configure: Regenerated.
687
688 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
689
690         * linux-nat.c (struct simple_pid_list): Add status.
691         (add_to_pid_list): Record the PID's status.
692         (linux_record_stopped_pid): Likewise.  Make static.
693         (pull_pid_from_list): Return the saved status.
694         (linux_nat_handle_extended): Deleted.
695         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
696         Make static.  Handle non-SIGSTOP for a new thread's first signal.
697         (flush_callback): Handle unexpected pending signals.
698         (linux_nat_wait): Update calls to changed functions.
699         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
700         Remove prototypes for newly static functions.
701
702 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
703
704         * gdbarch.sh (value_from_register): New gdbarch function.
705         * gdbarch.c, gdbarch.h: Regenerate.
706         * findvar.c (default_value_from_register): New function.
707         (value_from_register): Use gdbarch_value_from_register.
708         * value.h (default_value_from_register): Declare.
709         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
710         spu_value_to_register): Remove.
711         (spu_value_from_register): New function.
712         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
713         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
714         Call set_gdbarch_value_from_register.
715         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
716         s390_value_to_register): Remove.
717         (s390_value_from_register): New function.
718         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
719         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
720         Call set_gdbarch_value_from_register.
721
722 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
723
724         * NEWS: Add "set sysroot" and "show sysroot".
725         * solib.c (solib_absolute_prefix): Delete.  Replace
726         all uses with gdb_sysroot.
727         (_initialize_solib): Add "set sysroot" and "show sysroot".
728         Make "solib-absolute-prefix" an alias to it.
729
730 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
731
732         * frame.c (get_frame_register_bytes): New function.
733         (put_frame_register_bytes): Likewise.
734         * frame.h (get_frame_register_bytes): Declare.
735         (put_frame_register_bytes): Likewise.
736         * findvar.c (value_from_register): Always construct lval_register
737         values.  Use get_frame_register_bytes.
738         * valops.c (value_assign): Use get_frame_register_bytes and
739         put_frame_register_bytes.
740
741 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
742
743         * MAINTAINERS: Update Stan Shebs' email address.
744
745 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
746
747         * ada-lang.c (is_known_support_routine): Improve the implementation.
748
749 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
750
751         * ada-lang.c: Add include of source.h.
752         (is_known_support_routine): Improve the check verifying that the file
753         associated to this frame exists.
754         * Makefile.in (ada-lang.o): Add dependency on source.h.
755
756 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
757
758         * ax-general.c (ax_const_l): Select proper opcode for the given
759         value.
760
761 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
762
763         * varobj.c (c_value_of_root): Don't select frame if variable
764         object is out of scope.
765
766 2007-01-06  Nick Roberts  <nickrob@snap.net.nz>
767
768         * varobj.c (struct varobj): New member print_value.
769         (install_new_value): Compare last printed value with current one
770         instead of contents.
771         (new_variable): Initialize var->print_value to NULL.
772         (free_variable): Free var->print_value.
773         (value_get_print_value): New function derived from
774         c_value_of_variable.
775         (c_value_of_variable): Use value_get_print_value.
776
777 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
778
779         * i386-tdep.c (i386_analyze_stack_align): Add comment.
780
781 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
782
783         * NEWS: Add entries for new catch commands.
784
785 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
786
787         * dwarf2read.c (partial_die_info): Add field has_byte_size.
788         (add_partial_symbol): Correct identification of external references.
789         (process_structure_scope): Likewise.
790         (read_partial_die): Handle DW_AT_byte_size attribute.
791
792 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
793
794         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
795
796 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
797
798         * varobj.c (get_type_deref): Fix variable objects for references to
799         pointers.
800
801 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
802
803         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
804         with no symbols.
805
806 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
807
808         * memory-map.c (struct_memory_map_parsing_data): Remove most
809         members.  Make property_name an array.
810         (free_memory_map_parsing_data, memory_map_start_element)
811         (memory_map_end_element, memory_map_character_data): Delete.
812         (memory_map_start_memory, memory_map_end_memory)
813         (memory_map_start_property, memory_map_end_property): New functions.
814         (property_attributes, memory_children, memory_type_enum)
815         (memory_attributes, memory_map_children, memory_map_elements): New.
816         (parse_memory_map): Rewrite.
817         * xml-support.c (debug_xml): New.
818         (xml_get_required_attribute, xml_get_integer_attribute)
819         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
820         Delete.
821         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
822         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
823         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
824         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
825         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
826         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
827         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
828         New.
829         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
830         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
831         (enum gdb_xml_element_flag, struct gdb_xml_element)
832         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
833         (struct gdb_xml_enum): New.
834         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
835         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
836         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
837         (xml_get_required_attribute, xml_get_integer_attribute)
838         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
839         * Makefile.in (xml_support_h, xml-support.o): Update.
840
841 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
842
843         * Makefile.in (eval.o): Update dependencies.
844         * eval.c: Include "ui-out.h" and "exceptions.h".
845         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
846         Use value_zero if an error occurs when avoiding side effects.
847         * varobj.c (c_value_of_root): Initialize new_val.
848
849 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
850
851         * varobj.c (varobj_list_children): Stop if the number of children is
852         unknown.
853         (c_number_of_children):
854
855 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
856
857         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
858         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
859         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
860         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
861         sizeof, instead of hardcoded constants.
862
863 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
864
865         * CONTRIBUTE: Use sourceware.org.
866
867 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
868
869         * buildsym.c (start_subfile): Handle producer.
870         (record_producer): New function.
871         * buildsym.h (struct subfile): Include producer.
872         (record_producer): New prototype.
873         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
874         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
875         armcc_cfa_offsets_reversed.
876         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
877         (dwarf2_frame_find_quirks): New function.
878         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
879         (decode_frame_entry_1): Record the CIE version.  Record the
880         augmentation.  Skip armcc augmentations.
881         * dwarf2read.c (read_file_scope): Save the producer.
882         * symtab.h (struct symtab): Rename unused version member to
883         producer.
884
885 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
886
887         * configure.ac (build_warnings): Use -Wall and
888         -Wdeclaration-after-statement.
889         * configure: Regenerated.
890
891 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
892
893         Simplify access to variours properties of child
894         variable objects in C.
895         * varobj.c (value_struct_element_index): New function.
896         (c_describe_child): New function.
897         (c_name_of_child, c_value_of_child)
898         (c_type_of_child): Rewrite to use c_describe_child.
899
900 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
901
902         gdb/
903         * varobj.c: Include "vec.h". 
904         (varobj_p): New typedef, declare vector of those.
905         (struct varobj): Use vector for the 'children' member.
906         (child_exists): Remove.
907         (save_child_in_parent): Remove.
908         (remove_child_from_parent): Remove.
909         (struct varobj_child): Remove.
910         (struct vstack): Remove.
911         (vpush, vpop): Remove.
912         (varobj_list_children): Adjust to work work vector.
913         (varobj_update): Likewise. Use vectors for
914         working stack and result.
915         (delete_variable_1): Likewise.
916         * Makefile.in (varobj.o): Update dependencies.
917
918 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
919
920         Port from Apple's version.
921         gdb/
922         * varobj.c (type_changeable): Rename to...
923         (varobj_value_is_changeable_p): ...this. Adjust all callers.
924         (is_root_p): New function. Use it everywhere.
925
926 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
927
928         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
929         then plain 'fixup'.
930
931 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
932
933         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
934
935 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
936
937         * hpread.c (hpread_type_lookup): Fix compilation failure.
938
939 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
940
941         * NEWS: New port to S+core.
942         * MAINTAINERS (Write After Approval, Responsible Maintainers):
943         Add myself.
944
945         * Makefile.in: Add dependencies for S+core files.
946         * configure.tgt (score*, score-*-*): Add S+core target.
947         * config/score/embed.mt: New file.
948         * score-tdep.c: New file.
949         * score-tdep.h: New file.
950
951 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
952
953         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
954         the appropriate type rather than a bogus void type.
955
956 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
957
958         * ada-lang.h (ada_find_printable_frame): Remove.
959         (ada_exception_catchpoint_p, ada_decode_exception_location)
960         (ada_decode_assert_location): Add declaration.
961         * ada-lang.c: Add include of annotate.h and valprint.h.
962         (exception_catchpoint_kind): New enum.
963         (function_name_from_pc, is_known_support_routine)
964         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
965         (ada_exception_name_addr_1, ada_exception_name_addr)
966         (print_it_exception, print_one_exception, print_mention_exception)
967         (print_it_catch_exception, print_one_catch_exception)
968         (print_mention_catch_exception, catch_exception_breakpoint_ops)
969         (print_it_catch_exception_unhandled)
970         (print_one_catch_exception_unhandled)
971         (print_mention_catch_exception_unhandled, print_it_catch_assert)
972         (print_one_catch_assert, print_mention_catch_assert)
973         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
974         (ada_get_next_arg, catch_ada_exception_command_split)
975         (ada_exception_sym_name, ada_exception_sym_name)
976         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
977         (ada_parse_catchpoint_condition, ada_exception_sal)
978         (ada_decode_exception_location)
979         (ada_decode_assert_location): New function.
980         (catch_exception_unhandled_breakpoint_ops): New global variable.
981         (catch_assert_breakpoint_ops): New global variable.
982         * breakpoint.c: Add include of ada-lang.h.
983         (print_one_breakpoint): Do not print the condition for Ada
984         exception catchpoints.
985         (create_ada_exception_breakpoint): New function.
986         (catch_ada_exception_command, catch_assert_command): New function.
987         (catch_command_1): Add support for the new "catch exception" and
988         "catch assert" commands.
989         (_initialize_breakpoint): Add help description for the new catch
990         commands.
991         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
992         valprint.h.
993         (breakpoint.o): Add dependency on ada-lang.h.
994
995 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
996
997         * coffread.c (cs_to_section): If bfd_section is found, always
998         return its section index.
999         (coff_symtab_read): Determine the minimal_symbol_type using the
1000         bfd_section flags.
1001
1002 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
1003             Daniel Jacobowitz  <dan@codesourcery.com>
1004
1005         * Makefile.in (top.o): Update.
1006         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
1007         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
1008         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
1009         New.
1010         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
1011
1012 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
1013
1014         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
1015         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
1016
1017 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
1018
1019         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
1020         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
1021         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
1022         greater than or equal to zero.
1023         * m2-typeprint.c (m2_array): Likewise.
1024         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1025         * gdbtypes.c (copy_type_recursive): Correct == typo.
1026         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
1027         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
1028         greater than zero.
1029         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
1030         (default_macro_scope): Remove unused variable.
1031         * prologue-value.h (pv_area_find_reg): Don't name an argument
1032         "register".
1033         * remote-fileio.c (remote_fio_func_map): Add missing braces.
1034         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
1035         type.
1036         (cleanup_sigint_signal_handler): Remove casts.
1037         * valprint.c (val_print): Use a volatile local for the modified
1038         argument.
1039         * varobj.c (languages): Remove extra array dimension.
1040         (varobj_create): Correct access to languages array.
1041         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
1042         missing braces.
1043         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1044         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
1045         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
1046         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1047         (mi_cmd_data_write_memory): Likewise.
1048         * signals/signals.c (target_signal_to_string): Cast to int before
1049         comparing.
1050         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
1051         Update all callers.
1052
1053 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
1054
1055         * NEWS: Mention pointer to member improvements.
1056         * Makefile.in (gnu-v3-abi.o): Delete special rule.
1057         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
1058         * ada-valprint.c (ada_print_scalar): Update for new type codes.
1059         * c-typeprint.c (c_print_type): Update for new type codes.
1060         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
1061         (c_type_print_base): Likewise.
1062         (c_type_print_args): Rewrite.
1063         * c-valprint.c (c_val_print): Update for new type codes.  Remove
1064         support for references to members.  Treat methods like functions.
1065         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
1066         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
1067         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
1068         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
1069         (struct cp_abi_ops): Add corresponding members.
1070         * cp-valprint.c (cp_print_class_method): Delete.
1071         (cp_find_class_member): New function.
1072         (cp_print_class_member): Use it.  Simplify support for bogus
1073         member pointers.
1074         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
1075         lookup_methodptr_type.
1076         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
1077         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
1078         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
1079         pointer support.
1080         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
1081         references returned by user defined operators.
1082         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
1083         (f_type_print_varspec_suffix): Remove support for member pointers.
1084         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
1085         and adjusted.
1086         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
1087         (lookup_methodptr_type): New.
1088         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
1089         (recursive_dump_type): Update for new types.
1090         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
1091         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
1092         (lookup_memberptr_type, lookup_methodptr_type)
1093         (smash_to_memberptr_type): New prototypes.
1094         (smash_to_method_type): Formatting fix.
1095         (lookup_member_type, smash_to_member_type): Delete prototypes.
1096         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
1097         Do not rely on debug information for the vptr or the method's
1098         enclosing type.  Handle function descriptors for IA64.
1099         (gnuv3_virtual_fn_field): Rewrite using the new functions.
1100         (gnuv3_find_method_in, gnuv3_print_method_ptr)
1101         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
1102         (gnuv3_method_ptr_to_value): New.
1103         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
1104         * hpread.c (hpread_type_lookup): Update for new types.
1105         * infcall.c (value_arg_coerce): Likewise.
1106         * m2-typeprint.c (m2_print_type): Remove explicit support
1107         for member pointers.
1108         * m2-valprint.c (m2_val_print): Likewise.
1109         * p-typeprint.c (pascal_type_print_varspec_prefix)
1110         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
1111         * p-valprint.c (pascal_val_print): Likewise.
1112         (pascal_object_print_class_method, pascal_object_print_class_member):
1113         Delete.
1114         * p-lang.h (pascal_object_print_class_method)
1115         (pascal_object_print_class_member): Delete prototypes.
1116         * stabsread.c (read_type): Update for new types.
1117         * typeprint.c (print_type_scalar): Likewise.
1118         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
1119         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
1120         argument.  Construct a pointer to member if the address of a
1121         function or data member is requested.
1122         (value_cast_pointers): Don't modify the input value.
1123         (value_cast): Adjust pointer to member handling for new types.
1124         Allow null pointer to member constants.  Don't modify the input
1125         value.
1126         (value_ind): Remove pointer to member check.  Handle function
1127         descriptors for function pointers.
1128         (value_struct_elt, value_find_oload_method_list, check_field):
1129         Remove pointer to member checks.
1130         * value.c (unpack_long): Allow pointers to data members.
1131         (value_from_longest): Allow member pointers.
1132         * value.h (value_aggregate_elt): Add want_address.
1133         * varobj.c (c_variable_editable): Remove check for members.
1134         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
1135         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
1136         in virtual tables.
1137         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
1138         * c-lang.h (cp_print_class_method): Delete prototype.
1139         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
1140         * mips-tdep.c (mips_gdbarch_init): Likewise.
1141         * gdbarch.c, gdbarch.h: Regenerated.
1142
1143 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
1144
1145         * rs6000-tdep.c (rs6000_use_struct_convention)
1146         (rs6000_extract_return_value, rs6000_store_return_value)
1147         (rs6000_extract_struct_value_address): Remove.
1148         (rs6000_return_value): New function.
1149         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
1150         store_return_value, deprecated_extract_struct_value_address and
1151         deprecated_use_struct_convention.  Use rs6000_return_value
1152         instead.
1153
1154 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
1155
1156         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
1157         -display-disable, -display-enable, -display-insert and
1158         -display-list.
1159
1160 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
1161
1162         * breakpoint.c (remove_breakpoint): Remove dead code.
1163
1164 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
1165
1166         * varobj.c: Include block.h.
1167         (c_value_of_root): Check scope within nested statements.
1168
1169 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
1170
1171         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
1172         regcache_cooked_write_signed instead of
1173         deprecated_write_register_bytes.
1174
1175 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
1176
1177         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
1178
1179 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
1180
1181         Followed the Start of New Year Procedure:
1182         * ChangeLog-2006: New file, containing all the entries for 2006.
1183         * ChangeLog: Removed all 2006 entries, and changed the reference
1184         to the previous ChangeLog to point to ChangeLog 2006.
1185         * top.c (print_gdb_version): Update copyright year.
1186
1187 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
1188
1189         * Makefile.in (remote-sds.o): Remove.
1190         * remote-sds.c: Delete.
1191
1192 For older changes see ChangeLog-2006.
1193 \f
1194 Local Variables:
1195 mode: change-log
1196 left-margin: 8
1197 fill-column: 74
1198 version-control: never
1199 End: