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