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