3 * spu-tdep.c (spu_in_function_epilogue_p): New function.
4 (spu_gdbarch_init): Install it.
8 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
13 * spu-tdep.c (spu_frame_align): New function.
14 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
18 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
19 (spu_software_single_step): Likewise.
20 (spu_read_pc, spu_write_pc): New functions.
21 (spu_gdbarch_init): Install them.
25 * cli/cli-dump.c (struct callback_data): load_offset needs to
26 have signed long type.
30 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
31 Revert the previous change that had some unexpected side-effects
33 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
34 function to get the address of the calling instruction.
38 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
39 get_selected_frame by deprecated_safe_get_selected_frame.
43 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
44 "gdb_string.h". Don't include "nbsd-tdep.h".
45 (SIZEOF_STRUCT_REG): Remove.
46 (SHNBSD_SIZEOF_GREGS): New.
47 (shnbsd_supply_gregset, shnbsd_collect_gregset)
48 (shnbsd_regset_from_core_section): New functions.
49 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
50 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
51 shnbsd_supply_gregset, shnbsd_collect_gregset.
52 (shnbsd_gregset): New variable.
53 (shnbsd_init_abi): Set regset_from_core_section.
54 (GDB_OSABI_NETBSD_CORE): New define.
55 (shnbsd_core_osabi_sniffer): New function.
56 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
57 * Makefile.in (shnbsd-tdep.o): Update dependencies.
58 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
60 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
64 * gdbtypes.c (replace_type): Fix typo that caused us to not update
65 length of the types referenced by the new type CV ring.
69 * frame.c (frame_pop, frame_observer_target_changed): Call
71 (flush_cached_frames): Rename to reinit_frame_cache and delete
73 * frame.h (flush_cached_frames): Delete prototype and update comment.
75 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
76 reinit_frame_cache instead of flush_cached_frames. Do not call
77 select_frame after reinit_frame_cache.
78 * corelow.c (core_open): Likewise.
79 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
80 * infrun.c (prepare_to_proceed, context_switch)
81 (handle_inferior_event): Likewise.
82 * linux-fork.c (fork_load_infrun_state): Likewise.
83 * ocd.c (ocd_start_remote): Likewise.
84 * remote-e7000.c (e7000_start_remote): Likewise.
85 * remote-mips.c (device): Likewise.
86 * thread.c (switch_to_thread): Likewise.
87 * tracepoint.c (finish_tfind_command): Likewise.
88 * gdbarch.c: Regenerated.
93 * gdbtypes.c (check_typedef): Do not replace stub type if
94 the resolved type is not defined in the same objfile.
98 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
102 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
103 symbol for Ada units when the symbol is defined using 't' rather
104 than 'Tt' as symbol descriptor.
108 * config/mips/tm-nbsd.h: Delete file.
109 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
110 * config/sh/tm-nbsd.h: Delete file.
111 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
115 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
116 unused WRONG_PARAM value since it was recently deleted.
120 * varobj.c (varobj_update): Free temporary vectors.
124 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
125 * config/powerpc/tm-linux.h: Delete file.
126 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
127 (PROCESS_LINENUMBER_HOOK): Do not undefine.
128 (TEXT_SEGMENT_BASE): Do not redefine.
129 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
130 from config/rs6000/tm-rs6000.h.
131 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
132 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
133 (TEXT_SEGMENT_BASE): Remove.
134 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
135 (rs6000_in_solib_return_trampoline): Remove.
136 (SKIP_TRAMPOLINE_CODE): Remove.
137 (rs6000_skip_trampoline_code): Remove.
138 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
139 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
140 (FP0_REGNUM): Remove.
141 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
142 (rs6000_set_host_arch_hook): Remove.
143 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
144 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
145 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
146 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
147 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
148 * rs6000-nat.c: Include "rs6000-tdep.h".
149 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
150 (set_host_arch): Rename to ...
151 (rs6000_create_inferior): ... this. Make public.
152 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
153 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
154 (rs6000_create_inferior): Remove.
155 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
156 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
157 set_gdbarch_in_solib_return_trampoline, and
158 set_gdbarch_skip_trampoline_code.
159 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
160 from config/rs6000/tm-rs6000.h.
164 * buildsym.c (record_producer): Do nothing if no producer is provided.
168 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
169 to check changelist is non-NULL. Call error if the frontend tries
170 to update a non-root variable.
172 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
176 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
177 (dwarf2_frame_sniffer): Update.
178 (dwarf2_signal_frame_this_id): New function.
179 (dwarf2_signal_frame_unwind): Use it.
180 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
181 * frame.c (frame_func_unwind): Add this_type argument.
182 (get_frame_func): Update.
183 (frame_unwind_address_in_block): Add this_type argument and check it.
185 (get_frame_address_in_block): Update.
186 * frame.h (enum frame_type): Move higher in the file.
187 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
190 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
191 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
192 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
193 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
194 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
195 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
196 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
197 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
198 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
199 frame_func_unwind and frame_unwind_address_in_block to specify
200 the frame type. Use frame_unwind_address_in_block instead of
201 frame_pc_unwind in sniffers.
205 * frame.c (deprecated_selected_frame): Rename to...
206 (selected_frame): ...this. Make static.
207 (get_selected_frame, select_frame): Update.
208 * frame.h (deprected_select_frame): Delete.
209 (deprecated_safe_get_selected_frame): Update comments.
211 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
212 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
213 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
214 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
215 tui/tui.c: Replace references to deprecated_selected_frame.
219 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
220 directly decrement the stack pointer, accumulate their operand into
221 the stack offset, and mark the function as not being frameless.
225 * arch-utils.c (selected_byte_order): New.
226 * arch-utils.h (selected_byte_order): New prototype.
227 * remote-sim.c (gdbsim_open): Use selected_byte_order.
231 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
232 (default_symfile_offsets): Check VMA here. Update section VMAs.
236 * remote.c (init_remote_state): Add special handling for placeholder
241 * Makefile.in (XMLFILES): Include $(TDEP_XML).
242 (filenames_h): New variable.
243 (clean): Clean up xml-builtin.c and stamp-xml.
244 (arm-linux-nat.o): Update.
245 * config/arm/linux.mh (TDEP_XML): Define.
246 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
247 (arm_linux_has_wmmx_registers): New.
248 (GET_THREAD_ID): Fix typo.
249 (IWMMXT_REGS_SIZE): Define.
250 (fetch_wmmx_regs, store_wmmx_regs): New.
251 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
252 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
253 (super_xfer_partial, arm_linux_xfer_partial): New.
254 (_initialize_arm_linux_nat): Use them.
255 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
256 (xml_builtin_xfer_partial): New function.
257 * xml-support.h (xml_builtin_xfer_partial): New prototype.
258 * NEWS: Update mention of iWMMXt support.
262 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
263 if there are no FPA registers.
264 (arm_dwarf_reg_to_regnum): New function.
265 (arm_register_type, arm_register_name): Return minimal values for
266 unsupported registers.
267 (arm_register_sim_regno): Handle iWMMXt registers.
268 (arm_gdbarch_init): Record missing FPA registers if indicated by
269 a target description. Recognize iWMMXt registers. Only register
270 "info float" for FPA. Use ARM_NUM_REGS. Register
271 arm_dwarf_reg_to_regnum.
272 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
274 (struct gdbarch_tdep): Add have_fpa_registers.
275 * features/xscale-iwmmxt.xml: Update capitalization.
276 * regformats/arm-with-iwmmxt.dat: Regenerated.
280 * NEWS (New targets): Add entry for the Toshiba Media Processor.
284 * MAINTAINERS (mep): New target.
288 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
290 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
291 (mep-tdep.o): New rule.
292 * configure.tgt (mep-*-*): New target.
293 * mep-tdep.c: New file.
294 * config/mep/mep.mt: New file.
298 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
299 BREAKPOINT_HIT and STOP_UNKNOWN.
303 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
307 * gdb_expat.h (XMLCALL): Define if not already defined.
311 * Makefile.in (symfile.o): Update dependencies.
315 * MAINTAINERS: Disable -Werror for cris simulator. Build
316 sparc64-solaris2.10 instead of the broken sparc-elf.
317 * solib-frv.c: Include "solib.h".
318 * Makefile.in (solib-frv.o): Update.
319 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
320 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
321 (xtensa_frame_this_id, xtensa_frame_prev_register)
322 (xtensa_push_dummy_call): Use %p.
326 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
327 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
328 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
329 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
330 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
331 (sparc-linux-tdep.o): Update.
335 * xtensa-tdep.h (xtensa_reg_mask_t): New.
336 (xtensa_mask_t): Change mask field to be a separate array.
337 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
338 (xtensa_pseudo_register_write, xtensa_unwind_pc)
339 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
340 (xtensa_breakpoint_from_pc): Remove implicit type casting.
341 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
342 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
343 (mask14, mask15): Rename to
344 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
345 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
346 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
347 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
348 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
349 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
350 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
351 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
352 (xtensa_submask14, xtensa_submask15): New.
353 (rmap): Follow strict aliasing rules doing static initialization.
357 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
358 handling from here...
359 (tdesc_register_type): ...to here.
360 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
361 * features/arm-core.xml: Use code_ptr and data_ptr.
365 * varobj.h (enum varobj_update_error): New enum.
366 * varobj.c (struct varobj_root): Add is_valid member.
367 (varobj_get_type): Check for invalid varobj.
368 (varobj_get_attributes): Likewise.
369 (variable_editable):Likewise.
370 (varobj_update): Likewise. Use varobj_update_error.
371 (new_root_variable): Set root varobj as valid by default.
372 (varobj_invalidate): New function.
373 * symfile.c (clear_symtab_users): Use varobj_invalidate.
374 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
375 Use varobj_update_error.
380 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
381 Pascal language marker.
382 * dwarf2read.c (set_cu_language): Likewise.
386 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
387 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
388 instead of target_terminal_init since inferior_ptid isn't set yet.
392 * MAINTAINERS (Write After Approval): Add myself.
396 Based on work by Apple Computer, Inc.
397 * event-top.c (async_request_quit): Call quit() whenever either
398 quit_flag is set or immediate_quit is set.
402 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
403 type to a pointer to const struct block.
404 (ada_lookup_symbol_list): Don't cast away constness when calling
405 remove_out_of_scope_renamings.
409 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
410 address of 'filename'; it is always non null.
414 * exec.c (add_to_section_table): Do not discard empty sections.
418 * features/Makefile, features/arm-with-iwmmxt.xml,
419 features/gdbserver-regs.xsl, features/number-regs.xsl,
420 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
421 * regformats/arm-with-iwmmxt.dat: Generate.
422 * NEWS: Mention iWMMXt.
426 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
427 (xml-tdesc.o): Update.
428 * xml-support.c: Add a comment.
429 (gdb_xml_enums_boolean): New variable.
430 (gdb_xml_parse_attr_enum): Use strcasecmp.
431 * xml-support.h (gdb_xml_enums_boolean): Declare.
432 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
433 next_regnum, and current_union.
434 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
435 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
436 (field_attributes, union_children, reg_attributes, union_attributes)
437 (vector_attributes, feature_attributes, feature_children): New.
438 (target_children): Make static. Add <feature>.
439 (tdesc_elements): Make static.
440 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
441 (struct tdesc_feature, tdesc_feature_p): New types.
442 (struct target_desc): Add features member.
443 (struct tdesc_arch_data, tdesc_data): New.
444 (target_find_description): Clarify error message. Warn about
445 ignored register descriptions.
446 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
447 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
448 (tdesc_data_cleanup, tdesc_numbered_register)
449 (tdesc_numbered_register_choices, tdesc_find_register)
450 (tdesc_register_name, tdesc_register_type)
451 (tdesc_remote_register_number, tdesc_register_reggroup_p)
452 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
453 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
454 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
455 (tdesc_create_feature, tdesc_record_type): New.
456 (free_target_description): Free features.
457 (_initialize_target_descriptions): Initialize tdesc_data.
458 * arch-utils.c (default_remote_register_number): New.
459 * arch-utils.h (default_remote_register_number): New prototype.
460 * target-descriptions.h (set_tdesc_pseudo_register_name)
461 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
462 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
463 (tdesc_numbered_register, tdesc_numbered_register_choices)
464 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
465 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
466 (tdesc_create_reg): Declare.
467 * gdbarch.sh (remote_register_number): New entry.
468 * gdbarch.c, gdbarch.h: Regenerate.
469 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
470 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
472 * arm-tdep.c (arm_register_aliases): New.
473 (arm_register_name_strings): Rename to...
474 (arm_register_names): ...this. Make const. Delete the old version.
475 (current_option, arm_register_byte): Delete.
476 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
477 (value_of_arm_user_reg): New.
478 (arm_gdbarch_init): Verify any described registers. Call
479 tdesc_use_registers. Don't use arm_register_byte. Create aliases
480 for standard register names.
481 (_initialize_arm_tdep): Do not adjust arm_register_names.
482 * user-regs.c (struct user_reg): Add baton member.
483 (append_user_reg, user_reg_add_builtin, user_regs_init)
484 (user_reg_add, value_of_user_reg): Use a baton for user
486 * std-regs.c: Update.
487 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
488 (user_reg_add): Add baton argument.
489 * NEWS: Mention target description register support.
490 * features/arm-core.xml, features/arm-fpa.xml: New.
491 * eval.c (evaluate_subexp_standard): Allow ptype $register
492 when the program is not running.
496 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
500 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
501 info->disassembler_options to "any".
505 * varobj.c (install_new_value): Only call value_get_print_value
511 * gdb/target.c (target_flash_erase): Do not return void value.
512 (target_flash_done): Likewise.
513 * gdb/cli/cli-cmds.c (source_command): Likewise.
517 Based on work by Apple Computer, Inc.
518 * event-top.c (handle_sigint): Set quit_flag.
519 (async_request_quit): Don't set quit_flag. Avoid calling quit()
520 if quit_flag has already been reset.
524 * ser-mingw.c (pipe_windows_close): Move variable initialization back
529 * defs.h (request_quit): Remove declaration.
530 * utils.c (request_quit): Remove definition.
536 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
537 (skip_prologue): Allow bl->blrl used by PIC code.
542 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
543 initialize tmp_obstack.
544 * p-valprint.c (pascal_object_print_value_fields)
545 (pascal_object_print_value): Likewise.
549 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
553 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
554 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
558 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
560 (tdesc_parse_xml): Cache expanded descriptions.
564 * Makefile.in (XMLFILES): New.
565 (COMMON_OBS): Add xml-builtin.o.
566 (xml-builtin.c, stamp-xml): New rules.
567 (xml-tdesc.o): Update.
568 * features/feature_to_c.sh: New file.
569 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
570 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
571 (gdb_xml_start_element): Initialize scope after possibly reallocating
572 scopes. Move cleanup later. Handle the XInclude description
574 (gdb_xml_end_element): Only parse the body if there is a current element.
575 Call XML_DefaultCurrent if there is no element.
576 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
577 (struct xinclude_parsing_data, xinclude_start_include)
578 (xinclude_end_include, xml_xinclude_default)
579 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
580 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
581 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
582 * xml-support.h (xml_fetch_another, xml_process_xincludes)
583 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
584 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
585 XInclude directives. Use the compiled in DTD.
586 (fetch_xml_from_file): Add baton argument. Treat it as a containing
587 directory name. Do not warn here.
588 (file_read_description_xml): Update call. Warn here instead. Pass
590 (fetch_available_features_from_target): New.
591 (target_read_description_xml): Use it.
592 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
594 * features/xinclude.dtd: New file.
598 * linux-thread-db.c (check_for_thread_db): Return early if we have
599 no libthread_db support.
603 * mi/mi-parse.h: Include <sys/time.h>.
607 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
608 instead of print_variable_value to print values.
612 * mi/mi-main.c: Numerous formatting changes.
613 (mi_cmd_data_write_register_values): Replace clause inadvertantly
614 removed in my previous change.
618 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
619 Use 1000000L instead of 1000000.
623 Based on work by Apple Computer, Inc.
625 * configure.ac: Test for sys/resource.h and getrusage.
626 * configure, config.in: Regenerate.
628 * mi/mi-main.c: Include <sys/resource.h> if present.
629 (rusage): Declare if HAVE_GETRUSAGE.
630 (current_command_ts, do_timings): New static variables.
631 (timestamp, print_diff_now, print_diff, timeval_diff):
632 New static timing functions.
633 (mi_cmd_enable_timings): New function for new MI command.
634 (captured_mi_execute_command, mi_execute_async_cli_command):
635 Call timing functions.
637 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
640 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
642 * mi/mi-parse.h: (mi_timestamp): New structure.
643 (mi_parse): Add mi_timestamp* member.
647 * thread.c (make_cleanup_restore_current_thread): New function.
648 (info_threads_command): Use of make_cleanup_restore_current_thread
649 to restore the current thread and the selected frame.
650 (restore_selected_frame): New function.
651 (struct current_thread_cleanup): Add frame_id field.
652 (do_restore_current_thread_cleanup): Add restoring of the selected
654 (make_cleanup_restore_current_thread): Likewise.
655 (thread_apply_all_command): backup the selected frame while
656 entering the function and restore it at exit.
657 (thread_apply_command): Likewise.
661 * MAINTAINERS (Write After Approval): Add myself to the list.
665 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
666 (m32r_store_register): Ditto.
670 * ser-mingw.c (pipe_windows_open)
671 (pipe_windows_read, pipe_windows_write): Declare
672 variables at the top of the function.
676 * doublest.c (floatformat_from_length): Use the right element from
677 gdbarch floatformats.
678 (floatformat_from_type, extract_typed_floating)
679 (store_typed_floating): Likewise.
680 * doublest.h: Remove declarations for undefined floatformat arrays.
681 * gdbarch.sh (float_format, double_format, long_double_format): Change
683 (pformat): Update for pairs.
684 * gdbarch.c, gdbarch.h: Regenerated.
685 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
686 (floatformats_ieee_double_littlebyte_bigword)
687 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
688 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
689 (floatformats_vax_d): New variables.
690 (builtin_type_ieee_single, builtin_type_ieee_double)
691 (builtin_type_arm_ext, builtin_type_ia64_spill)
692 (builtin_type_ia64_quad): Replace arrays with individual types.
693 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
694 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
695 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
696 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
697 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
698 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
699 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
700 unused and endian-specific types.
701 (recursive_dump_type): Update for floatformat pairs.
702 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
703 (build_gdbtypes): Use build_flt.
704 (_initialize_gdbtypes): Update set of initialized types.
705 * gdbtypes.h: Update declarations to match gdbtypes.c.
706 (struct main_type): Store a pointer to two floatformats.
707 * arch-utils.c (default_float_format, default_double_format): Delete.
708 * arch-utils.h (default_float_format, default_double_format): Delete.
710 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
711 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
712 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
713 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
714 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
718 * target.c (maintenance_print_target_stack): New function.
719 (initialize_targets): Add new "maintenance print target-stack"
724 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
728 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
729 (struct dwarf2_loclist_baton): Likewise.
733 * cli/cli-script.c: Include breakpoint.h.
734 (build_command_line): Require arguments only for if and while
736 (get_command_line, execute_user_command, execute_control_command):
737 Fix wording of warning messages.
738 (print_command_lines): Print breakpoint commands.
739 (execute_control_command): Call commands_from_control_command to
740 handle the `commands' command inside a body of a flow-control
742 (read_next_line): Recognize the `commands' command and build a
743 command line structure for it.
744 (recurse_read_control_structure, read_command_lines): Handle
745 `commands' similarly to `if' and `while'.
747 * breakpoint.c (get_number_trailer): Document the special meaning
748 of NULL as the first argument PP.
749 (commands_from_control_command): New function.
751 * breakpoint.h (commands_from_control_command): Add prototype.
753 * defs.h (commands_control): New enumerated value for enum
754 command_control_type.
758 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
759 (ada_exception_sal): Update accordingly.
763 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
764 * NEWS: Describe CHAR array vs. string identifcation rules.
768 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
772 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
773 expression is empty, bother to return the 'optimized out' value we
774 construct. (Thanks to Carl Burch.)
778 * varobj.c (c_value_of_root, c_value_of_child)
779 (cplus_describe_child): Don't call release_value.
783 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
788 Refactor getting children name, value and type access
790 * varobj.c (get_type_deref): Remove.
791 (adjust_value_for_child_access): New.
792 (c_number_of_children): Use the above.
793 (c_describe_child): Likewise.
794 (enum accessibility): New.
795 (match_accessibility): New function.
796 (cplus_describe_child): New function.
797 (cplus_name_of_child, cplus_value_of_child)
798 (cplus_type_of_child): Reimplement in terms
799 of cplus_describe_child.
800 (cplus_number_of_children): Use
801 adjust_value_for_child_access.
805 Fix computation of the 'editable' attribute and
806 value changeability for for references.
807 * varobj.c (get_value_type): New function.
808 (c_variable_editable): Use get_value_type.
809 (varobj_value_is_changeable): Likewise.
813 * source.c (find_and_open_source): Try rewriting the source
814 path inside filename if dirname is NULL.
818 * dwarf2read.c (add_partial_symbol): Create an extra partial
819 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
820 (new_symbol): Likewise for symbols.
824 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
828 * value.c (value_primitive_field): Copy the full 'location'
829 contents, instead of assuming that copying ADDRESS will
830 bring over everything in the union. Remove obsolete comment.
834 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
835 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
836 (m32c_m16c_pointer_to_address): Separate code from declarations.
840 * target.c (update_current_target): Correct typo.
844 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
851 * dwarf2-frame.c (execute_cfa_program): New support of
852 `DW_CFA_GNU_negative_offset_extended'.
856 * NEWS: Mention flash support for "load" and new remote packets.
860 * breakpoint.c (delete_command): Skip redundant loop iterations.
864 * gdbarch.sh (register_type): Update comment.
865 * gdbarch.h: Regenerated.
866 * arch-utils.c (generic_register_size): Call register_type.
867 * ia64-tdep.c (ia64_extract_return_value): Likewise.
868 * m32c-tdep.c (check_for_saved): Likewise.
869 * mips-tdep.c (mips_print_register, print_gp_register_row)
870 (mips_print_registers_info): Likewise.
871 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
873 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
874 (sh64_do_register, sh64_print_register)
875 (sh64_media_print_registers_info): Likewise.
876 * tui/tui-regs.c (tui_register_format): Likewise.
880 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
882 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
883 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
884 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
885 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
886 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
887 (make_symbol_completion_list): Likewise.
892 * buildsym.c (end_symtab): Use preallocated symtab if available.
893 Fill in SYMBOL_SYMTAB.
894 * buildsym.h (struct subfile): Add symtab member.
895 * dwarf2read.c (struct dwarf2_cu): Add line_header.
896 (struct file_entry): Add symtab.
897 (free_cu_line_header): New function.
898 (read_file_scope): Use it. Save line_header in the cu. Process
900 (add_file_name): Initialize new symtab member.
901 (dwarf_decode_lines): Create symtabs for included files.
902 (new_symbol): Set SYMBOL_SYMTAB.
903 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
904 (search_symbols): Likewise.
905 * symtab.h (struct symbol): Add symtab member.
906 (SYMBOL_SYMTAB): Define.
910 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
914 * arch-utils.c (show_endian): Correct reversed condition.
918 * MAINTAINERS (Write After Approval): Add myself.
923 Fix 'selected frame' varobjs.
924 * varobj.c (struct varobj): Remove the error field.
925 (varobj_set_value): Don't check var->error.
926 (install_new_value): Don't set var->error.
927 (varobj_update): Always pass the new value
928 of the root via install_new_value.
929 (create_child): Don't set error field.
930 (new_variable): Likewise.
931 (c_value_of_root): Always reevaluate the value
932 of selected frame varobjs in the selected frame.
933 Don't call reinit_frame_cache.
937 * source.c (_initialize_source): Improve the help text of
938 the substitute-path commands.
942 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
943 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
944 (frv_skip_prologue): Remove prototypes.
945 (frv_adjust_breakpoint_address): Renamed from
946 frv_gdbarch_adjust_breakpoint_address.
947 (frv_gdbarch_init): Adjust.
951 * gdbarch.sh (deprecated_extract_return_value)
952 (deprecated_store_return_value): Remove.
953 (extract_return_value, store_return_value): Remove default values.
954 * gdbarch.c, gdbarch.h: Regenerate.
955 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
956 (legacy_store_return_value): Remove.
957 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
960 * mi/mi-main.c: Remove obsolete comment.
962 * regcache.c, regcache.h (deprecated_register_bytes)
963 (deprecated_read_register_bytes)
964 (deprecated_write_register_bytes): Remove.
966 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
967 Don't forget to move destination pointer.
971 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
975 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
976 past entry function with recent newlib.
980 * gdb.texinfo (GDB/MI Variable Objects): Improve the
981 introduction. Specify -var-update more exactly.
985 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
989 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
990 the Global Maintainers' invitation to be a global maintainer.
994 * infrun.c (singlestep_pc): New variable.
995 (resume): Set singlestep_pc.
996 (context_switch): Add a debugging message. Flush the frame cache.
997 (handle_inferior_event): Add debugging messages. Handle thread
998 hops when a software single step has completed. Let context_switch
999 handle flushing the frame cache.
1003 * NEWS: Mention target descriptions, "set tdesc filename",
1004 "unset tdesc filename", "show tdesc filename", and
1005 qXfer:features:read.
1006 * arch-utils.c (choose_architecture_for_target): New function.
1007 (gdbarch_info_fill): Call it.
1008 * target-descriptions.c (struct property): Make members non-const.
1009 (struct target_desc): Add arch member.
1010 (target_description_filename): New variable.
1011 (target_find_description): Try via XML first.
1012 (tdesc_architecture): New.
1013 (free_target_description, make_cleanup_free_target_description): New.
1014 (set_tdesc_property): Call xstrdup.
1015 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
1016 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
1017 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
1018 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
1019 * target-descriptions.h (tdesc_architecture)
1020 (make_cleanup_free_target_description, set_tdesc_architecture): New
1022 * Makefile.in (SFILES): Add xml-tdesc.c.
1023 (COMMON_OBS): Add xml-tdesc.o.
1024 (target-descriptions.o): Update.
1025 (xml-tdesc.o): New rule.
1026 * xml-tdesc.c, xml-tdesc.h: New files.
1027 * remote.c (PACKET_qXfer_features): New enum.
1028 (remote_protocol_features): Add qXfer:features:read.
1029 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
1030 (_initialize_remote): Register qXfer:features:read.
1031 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
1032 * features/gdb-target.dtd: New file.
1036 * copyright.sh: Clarify error.
1040 * symtab.c (matching_bfd_sections): Fix VMA matching for
1045 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
1050 Updated copyright notices for most files.
1054 * copyright.sh (prunes): Add step-line.inp and step-line.c.
1058 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
1060 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
1062 * configure, config.in: Regenerate.
1063 * defs.h (debug_file_directory): Declare.
1064 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
1065 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
1066 relocate it if DEBUGDIR_RELOCATABLE.
1067 * symfile.c (debug_file_directory): Make non-static.
1068 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
1069 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
1070 (_initialize_symfile): Don't initialize debug_file_directory here.
1074 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
1079 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
1080 frame_unwind_register to recurse.
1081 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
1082 (alpha_heuristic_frame_prev_register): Likewise.
1083 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
1084 * m32c-tdep.c (m32c_prev_register): Likewise.
1085 * frame.c (frame_register_unwind_location): Remove FIXME.
1090 * copyright.sh: New file.
1094 * configure.ac: Check for XML_StopParser.
1095 * xml-support.c (gdb_xml_body_text): Check for an error.
1096 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
1097 (gdb_xml_end_element_wrapper): Likewise.
1098 * config.in, configure: Regenerated.
1102 * varobj.c (install_new_value): Always update print_value.
1103 (value_get_print_value): Immediately return NULL for missing
1108 * configure.ac: Tighten pattern for extracting value of
1109 DEPRECATED_TM_FILE from the target makefile fragment.
1110 * configure: Regenerated.
1114 * linux-nat.c (struct simple_pid_list): Add status.
1115 (add_to_pid_list): Record the PID's status.
1116 (linux_record_stopped_pid): Likewise. Make static.
1117 (pull_pid_from_list): Return the saved status.
1118 (linux_nat_handle_extended): Deleted.
1119 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
1120 Make static. Handle non-SIGSTOP for a new thread's first signal.
1121 (flush_callback): Handle unexpected pending signals.
1122 (linux_nat_wait): Update calls to changed functions.
1123 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
1124 Remove prototypes for newly static functions.
1128 * gdbarch.sh (value_from_register): New gdbarch function.
1129 * gdbarch.c, gdbarch.h: Regenerate.
1130 * findvar.c (default_value_from_register): New function.
1131 (value_from_register): Use gdbarch_value_from_register.
1132 * value.h (default_value_from_register): Declare.
1133 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
1134 spu_value_to_register): Remove.
1135 (spu_value_from_register): New function.
1136 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1137 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1138 Call set_gdbarch_value_from_register.
1139 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
1140 s390_value_to_register): Remove.
1141 (s390_value_from_register): New function.
1142 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
1143 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
1144 Call set_gdbarch_value_from_register.
1148 * NEWS: Add "set sysroot" and "show sysroot".
1149 * solib.c (solib_absolute_prefix): Delete. Replace
1150 all uses with gdb_sysroot.
1151 (_initialize_solib): Add "set sysroot" and "show sysroot".
1152 Make "solib-absolute-prefix" an alias to it.
1156 * frame.c (get_frame_register_bytes): New function.
1157 (put_frame_register_bytes): Likewise.
1158 * frame.h (get_frame_register_bytes): Declare.
1159 (put_frame_register_bytes): Likewise.
1160 * findvar.c (value_from_register): Always construct lval_register
1161 values. Use get_frame_register_bytes.
1162 * valops.c (value_assign): Use get_frame_register_bytes and
1163 put_frame_register_bytes.
1167 * MAINTAINERS: Update Stan Shebs' email address.
1171 * ada-lang.c (is_known_support_routine): Improve the implementation.
1175 * ada-lang.c: Add include of source.h.
1176 (is_known_support_routine): Improve the check verifying that the file
1177 associated to this frame exists.
1178 * Makefile.in (ada-lang.o): Add dependency on source.h.
1182 * ax-general.c (ax_const_l): Select proper opcode for the given
1187 * varobj.c (c_value_of_root): Don't select frame if variable
1188 object is out of scope.
1192 * varobj.c (struct varobj): New member print_value.
1193 (install_new_value): Compare last printed value with current one
1194 instead of contents.
1195 (new_variable): Initialize var->print_value to NULL.
1196 (free_variable): Free var->print_value.
1197 (value_get_print_value): New function derived from
1198 c_value_of_variable.
1199 (c_value_of_variable): Use value_get_print_value.
1203 * i386-tdep.c (i386_analyze_stack_align): Add comment.
1207 * NEWS: Add entries for new catch commands.
1211 * dwarf2read.c (partial_die_info): Add field has_byte_size.
1212 (add_partial_symbol): Correct identification of external references.
1213 (process_structure_scope): Likewise.
1214 (read_partial_die): Handle DW_AT_byte_size attribute.
1218 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
1222 * varobj.c (get_type_deref): Fix variable objects for references to
1227 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
1232 * memory-map.c (struct_memory_map_parsing_data): Remove most
1233 members. Make property_name an array.
1234 (free_memory_map_parsing_data, memory_map_start_element)
1235 (memory_map_end_element, memory_map_character_data): Delete.
1236 (memory_map_start_memory, memory_map_end_memory)
1237 (memory_map_start_property, memory_map_end_property): New functions.
1238 (property_attributes, memory_children, memory_type_enum)
1239 (memory_attributes, memory_map_children, memory_map_elements): New.
1240 (parse_memory_map): Rewrite.
1241 * xml-support.c (debug_xml): New.
1242 (xml_get_required_attribute, xml_get_integer_attribute)
1243 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
1245 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
1246 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
1247 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
1248 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
1249 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
1250 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
1251 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
1253 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
1254 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
1255 (enum gdb_xml_element_flag, struct gdb_xml_element)
1256 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
1257 (struct gdb_xml_enum): New.
1258 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
1259 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
1260 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
1261 (xml_get_required_attribute, xml_get_integer_attribute)
1262 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
1263 * Makefile.in (xml_support_h, xml-support.o): Update.
1267 * Makefile.in (eval.o): Update dependencies.
1268 * eval.c: Include "ui-out.h" and "exceptions.h".
1269 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
1270 Use value_zero if an error occurs when avoiding side effects.
1271 * varobj.c (c_value_of_root): Initialize new_val.
1275 * varobj.c (varobj_list_children): Stop if the number of children is
1277 (c_number_of_children):
1281 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
1282 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
1283 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
1284 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
1285 sizeof, instead of hardcoded constants.
1289 * CONTRIBUTE: Use sourceware.org.
1293 * buildsym.c (start_subfile): Handle producer.
1294 (record_producer): New function.
1295 * buildsym.h (struct subfile): Include producer.
1296 (record_producer): New prototype.
1297 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
1298 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
1299 armcc_cfa_offsets_reversed.
1300 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
1301 (dwarf2_frame_find_quirks): New function.
1302 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
1303 (decode_frame_entry_1): Record the CIE version. Record the
1304 augmentation. Skip armcc augmentations.
1305 * dwarf2read.c (read_file_scope): Save the producer.
1306 * symtab.h (struct symtab): Rename unused version member to
1311 * configure.ac (build_warnings): Use -Wall and
1312 -Wdeclaration-after-statement.
1313 * configure: Regenerated.
1317 Simplify access to variours properties of child
1318 variable objects in C.
1319 * varobj.c (value_struct_element_index): New function.
1320 (c_describe_child): New function.
1321 (c_name_of_child, c_value_of_child)
1322 (c_type_of_child): Rewrite to use c_describe_child.
1327 * varobj.c: Include "vec.h".
1328 (varobj_p): New typedef, declare vector of those.
1329 (struct varobj): Use vector for the 'children' member.
1330 (child_exists): Remove.
1331 (save_child_in_parent): Remove.
1332 (remove_child_from_parent): Remove.
1333 (struct varobj_child): Remove.
1334 (struct vstack): Remove.
1335 (vpush, vpop): Remove.
1336 (varobj_list_children): Adjust to work work vector.
1337 (varobj_update): Likewise. Use vectors for
1338 working stack and result.
1339 (delete_variable_1): Likewise.
1340 * Makefile.in (varobj.o): Update dependencies.
1344 Port from Apple's version.
1346 * varobj.c (type_changeable): Rename to...
1347 (varobj_value_is_changeable_p): ...this. Adjust all callers.
1348 (is_root_p): New function. Use it everywhere.
1352 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
1357 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
1361 * hpread.c (hpread_type_lookup): Fix compilation failure.
1365 * NEWS: New port to S+core.
1366 * MAINTAINERS (Write After Approval, Responsible Maintainers):
1369 * Makefile.in: Add dependencies for S+core files.
1370 * configure.tgt (score*, score-*-*): Add S+core target.
1371 * config/score/embed.mt: New file.
1372 * score-tdep.c: New file.
1373 * score-tdep.h: New file.
1377 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
1378 the appropriate type rather than a bogus void type.
1382 * ada-lang.h (ada_find_printable_frame): Remove.
1383 (ada_exception_catchpoint_p, ada_decode_exception_location)
1384 (ada_decode_assert_location): Add declaration.
1385 * ada-lang.c: Add include of annotate.h and valprint.h.
1386 (exception_catchpoint_kind): New enum.
1387 (function_name_from_pc, is_known_support_routine)
1388 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
1389 (ada_exception_name_addr_1, ada_exception_name_addr)
1390 (print_it_exception, print_one_exception, print_mention_exception)
1391 (print_it_catch_exception, print_one_catch_exception)
1392 (print_mention_catch_exception, catch_exception_breakpoint_ops)
1393 (print_it_catch_exception_unhandled)
1394 (print_one_catch_exception_unhandled)
1395 (print_mention_catch_exception_unhandled, print_it_catch_assert)
1396 (print_one_catch_assert, print_mention_catch_assert)
1397 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
1398 (ada_get_next_arg, catch_ada_exception_command_split)
1399 (ada_exception_sym_name, ada_exception_sym_name)
1400 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
1401 (ada_parse_catchpoint_condition, ada_exception_sal)
1402 (ada_decode_exception_location)
1403 (ada_decode_assert_location): New function.
1404 (catch_exception_unhandled_breakpoint_ops): New global variable.
1405 (catch_assert_breakpoint_ops): New global variable.
1406 * breakpoint.c: Add include of ada-lang.h.
1407 (print_one_breakpoint): Do not print the condition for Ada
1408 exception catchpoints.
1409 (create_ada_exception_breakpoint): New function.
1410 (catch_ada_exception_command, catch_assert_command): New function.
1411 (catch_command_1): Add support for the new "catch exception" and
1412 "catch assert" commands.
1413 (_initialize_breakpoint): Add help description for the new catch
1415 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
1417 (breakpoint.o): Add dependency on ada-lang.h.
1421 * coffread.c (cs_to_section): If bfd_section is found, always
1422 return its section index.
1423 (coff_symtab_read): Determine the minimal_symbol_type using the
1429 * Makefile.in (top.o): Update.
1430 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
1431 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
1432 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
1434 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
1438 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
1439 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
1443 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
1444 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
1445 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
1446 greater than or equal to zero.
1447 * m2-typeprint.c (m2_array): Likewise.
1448 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1449 * gdbtypes.c (copy_type_recursive): Correct == typo.
1450 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
1451 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
1453 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
1454 (default_macro_scope): Remove unused variable.
1455 * prologue-value.h (pv_area_find_reg): Don't name an argument
1457 * remote-fileio.c (remote_fio_func_map): Add missing braces.
1458 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
1460 (cleanup_sigint_signal_handler): Remove casts.
1461 * valprint.c (val_print): Use a volatile local for the modified
1463 * varobj.c (languages): Remove extra array dimension.
1464 (varobj_create): Correct access to languages array.
1465 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
1467 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
1468 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
1469 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
1470 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1471 (mi_cmd_data_write_memory): Likewise.
1472 * signals/signals.c (target_signal_to_string): Cast to int before
1474 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
1479 * NEWS: Mention pointer to member improvements.
1480 * Makefile.in (gnu-v3-abi.o): Delete special rule.
1481 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
1482 * ada-valprint.c (ada_print_scalar): Update for new type codes.
1483 * c-typeprint.c (c_print_type): Update for new type codes.
1484 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
1485 (c_type_print_base): Likewise.
1486 (c_type_print_args): Rewrite.
1487 * c-valprint.c (c_val_print): Update for new type codes. Remove
1488 support for references to members. Treat methods like functions.
1489 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
1490 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
1491 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
1492 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
1493 (struct cp_abi_ops): Add corresponding members.
1494 * cp-valprint.c (cp_print_class_method): Delete.
1495 (cp_find_class_member): New function.
1496 (cp_print_class_member): Use it. Simplify support for bogus
1498 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
1499 lookup_methodptr_type.
1500 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
1501 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
1502 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
1504 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
1505 references returned by user defined operators.
1506 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
1507 (f_type_print_varspec_suffix): Remove support for member pointers.
1508 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
1510 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
1511 (lookup_methodptr_type): New.
1512 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
1513 (recursive_dump_type): Update for new types.
1514 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
1515 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
1516 (lookup_memberptr_type, lookup_methodptr_type)
1517 (smash_to_memberptr_type): New prototypes.
1518 (smash_to_method_type): Formatting fix.
1519 (lookup_member_type, smash_to_member_type): Delete prototypes.
1520 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
1521 Do not rely on debug information for the vptr or the method's
1522 enclosing type. Handle function descriptors for IA64.
1523 (gnuv3_virtual_fn_field): Rewrite using the new functions.
1524 (gnuv3_find_method_in, gnuv3_print_method_ptr)
1525 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
1526 (gnuv3_method_ptr_to_value): New.
1527 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
1528 * hpread.c (hpread_type_lookup): Update for new types.
1529 * infcall.c (value_arg_coerce): Likewise.
1530 * m2-typeprint.c (m2_print_type): Remove explicit support
1531 for member pointers.
1532 * m2-valprint.c (m2_val_print): Likewise.
1533 * p-typeprint.c (pascal_type_print_varspec_prefix)
1534 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
1535 * p-valprint.c (pascal_val_print): Likewise.
1536 (pascal_object_print_class_method, pascal_object_print_class_member):
1538 * p-lang.h (pascal_object_print_class_method)
1539 (pascal_object_print_class_member): Delete prototypes.
1540 * stabsread.c (read_type): Update for new types.
1541 * typeprint.c (print_type_scalar): Likewise.
1542 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
1543 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
1544 argument. Construct a pointer to member if the address of a
1545 function or data member is requested.
1546 (value_cast_pointers): Don't modify the input value.
1547 (value_cast): Adjust pointer to member handling for new types.
1548 Allow null pointer to member constants. Don't modify the input
1550 (value_ind): Remove pointer to member check. Handle function
1551 descriptors for function pointers.
1552 (value_struct_elt, value_find_oload_method_list, check_field):
1553 Remove pointer to member checks.
1554 * value.c (unpack_long): Allow pointers to data members.
1555 (value_from_longest): Allow member pointers.
1556 * value.h (value_aggregate_elt): Add want_address.
1557 * varobj.c (c_variable_editable): Remove check for members.
1558 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
1559 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
1561 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
1562 * c-lang.h (cp_print_class_method): Delete prototype.
1563 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
1564 * mips-tdep.c (mips_gdbarch_init): Likewise.
1565 * gdbarch.c, gdbarch.h: Regenerated.
1569 * rs6000-tdep.c (rs6000_use_struct_convention)
1570 (rs6000_extract_return_value, rs6000_store_return_value)
1571 (rs6000_extract_struct_value_address): Remove.
1572 (rs6000_return_value): New function.
1573 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
1574 store_return_value, deprecated_extract_struct_value_address and
1575 deprecated_use_struct_convention. Use rs6000_return_value
1580 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
1581 -display-disable, -display-enable, -display-insert and
1586 * breakpoint.c (remove_breakpoint): Remove dead code.
1590 * varobj.c: Include block.h.
1591 (c_value_of_root): Check scope within nested statements.
1595 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
1596 regcache_cooked_write_signed instead of
1597 deprecated_write_register_bytes.
1601 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
1605 Followed the Start of New Year Procedure:
1606 * ChangeLog-2006: New file, containing all the entries for 2006.
1607 * ChangeLog: Removed all 2006 entries, and changed the reference
1608 to the previous ChangeLog to point to ChangeLog 2006.
1609 * top.c (print_gdb_version): Update copyright year.
1613 * Makefile.in (remote-sds.o): Remove.
1614 * remote-sds.c: Delete.
1616 For older changes see ChangeLog-2006.
1622 version-control: never