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