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