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