3 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
4 address register. Correct the call to frame_id_build.
5 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
10 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
11 the linetable past the function end.
15 * MAINTAINERS: Update my email address.
19 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
20 (inf_ttrace_delete_dying_threads_callback): New function.
21 (inf_ttrace_resume): After resuming the execution, iterate over
22 the dying threads to delete them for the thread list.
23 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
24 mark the corresponding thread as dying instead of removing it
26 (inf_ttrace_thread_alive): return 0 for dying threads.
30 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
31 that return_frame is not null.
35 * solib-svr4.c: Add include of "auxv.h".
36 (enable_break): Use the AT_BASE auxiliary entry if available.
37 * Makefile.in (solib-svr4.o): Update dependencies.
41 * NEWS: Create a new section for the next release branch.
42 Rename the section of the current branch, now that it has
47 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
48 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
52 * mi/mi-cmds.c (mi_cmds): Register -list-features.
53 * mi/mi-cmds.h (mi_cmd_list_features): New.
54 * mi/mi-main.c (mi_cmd_list_features): New.
58 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
59 * version.in: Bump version to 6.7.50-20070911-cvs.
63 * thread.c (free_thread): Do not delete the step resume breakpoint
68 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
69 * corelow.c (core_read_description): New.
70 (init_core_ops): Set to_read_description.
71 * gdbarch.sh: Add gdbarch_core_read_description.
72 * mips-linux-tdep.c (mips_linux_core_read_description): New.
73 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
74 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
75 (mips_register_g_packet_guesses): Use them.
76 (_initialize_mips_tdep): Initialize them.
77 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
78 * gdbarch.h, gdbarch.c: Regenerated.
82 * infrun.c (stepping_past_breakpoint): New global variable.
83 (stepping_past_breakpoint_ptid): Likewise.
84 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
85 Only switch threads if we need to single-step over a breakpoint hit
86 in the previously selected thread. If stepping, remember previous
87 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
88 switch_to_thread instead of copying its contents.
89 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
90 prepare_to_proceed returns true.
91 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
92 (context_switch): Call switch_to_thread.
93 (handle_inferior_event): Switch back to previous thread if requested
94 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
95 * gdbthread.h (switch_to_thread): Add prototype.
96 * thread.c (switch_to_thread): Make global.
100 * p-valprint.c: Fix 7 ARI reported problems.
101 (pascal_val_print): Fix one operator at end of line issue.
102 Use paddress function to remove use of
103 deprecated_print_address_numeric function (2 times).
104 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
105 (pascal_value_print): Fix 3 operator at end of line issues.
110 * arm-tdep.c (arm_in_call_stub): Delete.
111 (arm_skip_stub): Handle from_arm and from_thumb stubs.
115 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
121 * NEWS: Update description of string changes. Mention print/s.
122 * c-valprint.c (textual_element_type): New.
123 (c_val_print): Use it. Do not skip address printing for pointers
124 with a string format.
125 (c_value_print): Doc update.
126 * dwarf2read.c (read_array_type): Use make_vector_type.
127 * gdbtypes.c (make_vector_type): New.
128 (init_vector_type): Use it.
129 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
130 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
131 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
132 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
133 (make_vector_type): New.
134 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
135 Call the language print routine for string format.
136 (print_scalar_formatted): Call val_print for string format. Handle
137 unsigned original types for char format.
138 (validate_format): Do not reject string format.
139 * stabsread.c (read_type): Use make_vector_type.
140 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
144 * expprint.c (print_subexp_standard): Check strchr for null.
145 * Makefile.in (expprint.o): Depend on gdb_assert.h.
147 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
149 * stabsread.c (patch_block_status): Guard against null.
150 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
154 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
155 in internal error message.
160 * infcmd.c (post_create_inferior): Update comment.
161 (run_command_1): Always call post_create_inferior with 0 as
164 * i386-cygwin-tdep.h: New.
165 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
166 (win32_xfer_shared_library): Make it extern.
168 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
170 (win32_so_ops): Delete.
171 (get_relocated_section_addrs): Delete.
172 (solib_symbols_add): Delete.
173 (register_loaded_dll): Delete.
174 (win32_make_so): New.
175 (handle_load_dll): Use win32_make_so.
176 (win32_free_so): Free the passed in so.
177 (win32_relocate_section_addresses): Delete.
178 (win32_solib_create_inferior_hook): Delete.
179 (handle_unload_dll): Don't add PE offset here. Free so with
180 win32_free_so instead of free_so.
181 (win32_special_symbol_handling): Delete.
182 (get_win32_debug_event): Remove unneeded calls. Set state to
183 TARGET_WAITKIND_LOADED on a dll unload.
184 (do_initial_win32_stuff): Clear cygwin_load_start and
186 (map_code_section_args): Delete.
187 (dll_code_sections_add): Delete.
188 (core_section_load_dll_symbols): Delete.
189 (win32_xfer_shared_libraries): New.
190 (win32_current_sos): Delete.
191 (win32_xfer_partial): New.
192 (open_symbol_file_object): Delete.
193 (in_dynsym_resolve_code): Delete.
194 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
195 of win32_ops. Remove win32_so_ops settings. Don't set
196 current_target_so_ops here.
198 * Makefile.in (i386_cygwin_tdep_h): New variable.
199 (i386-cygwin-tdep.o): Update dependencies.
200 (win32-nat.o): Update dependencies.
205 * gdbarch.sh (core_xfer_shared_libraries): New.
207 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
209 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
211 * xml-support.c (gdb_xml_parse): Debug output tweaks.
212 (xml_escape_text): New.
213 * xml-support.h (xml_escape_text): Declare.
215 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
216 * config/i386/cygwin.mt (TDEPFILES): ... here.
218 * win32-nat.c: (fetch_elf_core_registers): Delete.
219 (win32_elf_core_fn): Delete.
220 (_initialize_core_win32): Delete.
222 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
223 "xml-support.h" and "gdbcore.h".
224 (i386_win32_gregset_reg_offset): New.
225 (I386_WIN32_SIZEOF_GREGSET): New.
226 (i386_win32_regset_from_core_section): New.
227 (win32_xfer_shared_library): New.
228 (struct cpms_data): New.
229 (core_process_module_section): New.
230 (win32_core_xfer_shared_libraries): New.
231 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
232 gregset_num_regs, sizeof_gregset members of tdep. Register
233 regset_from_core_section and core_xfer_shared_libraries callbacks.
235 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
236 * gdbarch.h, gdbarch.c: Regenerate.
240 * corelow.c (core_xfer_partial): Pass writebuf to
241 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
245 * arm-tdep.h (arm_skip_stub): Declare.
246 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
248 (arm_pe_skip_trampoline_code): New function.
249 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
250 gdbarch_skip_trampoline_code callback.
251 * Makefile.in (arm-wince-tdep.o): Update dependencies.
255 * MAINTAINERS: Move Fred Fish to Past Maintainers.
259 * configure.ac: Add --with-expat.
260 * configure: Regenerated.
264 * configure.ac: Accept --with-system-readline.
265 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
266 * configure: Regenerate.
267 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
269 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
274 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
278 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
282 * top.c (print_gdb_version): Update for GPL version 3.
286 * NEWS: Mention the build-id .debug files verification.
290 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
294 * Makefile.in (symfile.o): Update dependencies.
295 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
296 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
297 (struct build_id): New structure.
298 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
299 (find_separate_debug_file): New variable BUILD_ID.
300 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
304 * varobj.c (struct varobj): Fix comment
305 for the type member not to lie when it can be
310 Implement -var-info-path-expression.
312 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
314 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
315 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
316 * varobj.c (struct varobj): New field 'path_expr'.
317 (c_path_expr_of_child, cplus_path_expr_of_child)
318 (java_path_expr_of_child): New.
319 (struct language_specific): New field path_expr_of_child.
320 (varobj_create): Initialize the path_expr field.
321 (varobj_get_path_expr): New.
322 (new_variable): Initialize the path_expr field.
323 (free_variable): Free the path_expr field.
324 (adjust_value_for_children_access): New parameter
326 (c_number_of_children): Adjust.
327 (c_describe_child): New parameter CFULL_EXPRESSION.
328 Compute full expression.
329 (c_value_of_child, c_type_of_child): Adjust.
330 (cplus_number_of_children): Adjust.
331 (cplus_describe_child): New parameter CFULL_EXPRESSION.
332 Compute full expression.
333 (cplus_name_of_child, cplus_value_of_child)
334 (cplus_type_of_child): Adjust.
335 * varobj.h (varobj_get_path_expr): Declare.
339 * mi/mi-cmd-var.c (print_varobj): If a varobj
340 type is NULL, don't try to print it.
344 * ppc-linux-nat.c (right_fill_reg): Delete.
345 (supply_gregset): Use ppc_supply_gregset.
346 (supply_fpregset): Use ppc_supply_fpregset.
347 (fill_gregset): Use ppc_collect_gregset.
348 (fill_fpregset): Use ppc_collect_fpregset.
349 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
350 (right_supply_register, ppc_linux_supply_gregset): Delete.
351 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
352 (ppc_linux_supply_fpregset): Delete.
353 (ppc_linux_collect_gregset): New function.
354 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
355 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
356 ppc_linux_supply_gregset, and ppc_collect_gregset.
357 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
358 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
359 (ppc_linux_regset_from_core_section): Update.
360 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
361 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
362 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
363 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
364 (ppcobsd_collect_gregset): Likewise.
365 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
366 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
367 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
368 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
369 (rs6000_aix64_reg_offsets): Likewise.
370 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
371 ppc_floating_point_unit_p.
372 (rs6000_aix_collect_regset): Similarly.
373 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
374 when regsize is larger than regcache register size.
375 (ppc_collect_reg): Similarly zero pad when regsize is larger than
376 regcache register size.
377 (ppc_greg_offset): New function, split out from..
378 (ppc_supply_gregset): ..here. Separate code handling all regs from
379 single reg case. Correct xer offset.
380 (ppc_fpreg_offset): New function, split out from..
381 (ppc_supply_fpregset): ..here. Separate code handling all regs from
383 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
384 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
385 a fp unit, instead return if no fp.
389 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
390 this code has not been compiled for two years.
394 * event-top.c (gdb_readline2): Return after EOF.
398 * symtab.c: Remove a function that has been commented out 3 years ago.
402 * hppa-tdep.c (hppa32_cannot_fetch_register)
403 (hppa64_cannot_fetch_register): New functions.
404 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
405 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
409 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
410 check for null before calling check_typedef.
412 * NEWS: Mention Coverity bug fixes.
416 * spu-tdep.c (spu_pointer_to_address): New function.
417 (spu_integer_to_address): Likewise.
418 (spu_gdbarch_init): Add spu_pointer_to_address and
419 spu_integer_to_address to gdbarch.
423 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
427 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
428 that contains the GDB license.
429 * copying.awk: Adjust to the GPLv3 wording.
430 * copying.c: Regenerate.
434 * copying.awk: Protoization, and i18n markup.
438 * config/djgpp/djconfig.sh: Switch license to GPLv3.
439 * copyright.sh: Likewise.
440 * gdb-events.sh: Likewise.
441 * gdb_gcore.sh: Likewise.
442 * gdb_mbuild.sh: Likewise.
443 * gdbarch.sh: Likewise.
444 * observer.sh: Likewise.
445 * features/feature_to_c.sh: Likewise.
446 * regformats/regdat.sh: Likewise.
450 Switch the license of all .c files to GPLv3.
451 Switch the license of all .h files to GPLv3.
452 Switch the license of all .cc files to GPLv3.
456 * configure.ac: Switch license to GPLv3.
460 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
461 determine the file's FPU type.
465 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
466 (mips_n32n64_push_dummy_call): Always increment float_argreg along
467 with argreg. Use mips_n32n64_fp_arg_chunk_p.
471 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
473 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
474 (elf_lookup_lib_symbol): Fix formatting.
478 * dbxread.c (read_dbx_symtab): Guard null deref.
481 * valops.c (find_overload_match): Guard against NULL.
485 * MAINTAINERS (Patch Champions): Remove self.
489 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
494 * stabsread.c (dbx_lookup_type): Memory leak.
496 * event-loop.c (delete_async_signal_handler): Move pointer null
497 test to before pointer dereference.
499 * ui-out.c (append_header_to_list): Possible cut and paste error.
501 * MAINTAINERS: white space tweak.
505 * stack.c (print_frame): Memory leak.
507 * completer.c (filename_completer): Avoid memory leak.
508 Remove unnecessary nested block.
510 * c-exp.y (parse_number): Memory leak.
512 * completer.c (location_completer): Must free 'fn_list', except
513 in the one case where it is returned (as 'list').
515 * varobj.c (value_of_root): Memory leak.
517 * gdbtypes.h (virtual_base_list): Remove export decl.
518 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
519 (virtual_base_index): Memory leak.
520 (virtual_base_index_skip_primaries): Ditto.
524 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
525 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
526 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
527 (xtensa_read_register): New function.
528 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
529 (xtensa_insn_kind): New types.
530 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
531 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
532 (xtensa_verify_config, xtensa_pseudo_register_read)
533 (xtensa_pseudo_register_write, xtensa_extract_return_value)
534 (xtensa_store_return_value)
535 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
536 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
537 (xtensa_frame_this_id, xtensa_frame_prev_register)
538 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
539 (call0_frame_cache, call0_frame_get_reg_at_entry)
540 (call0_classify_opcode, call0_track_op)
541 (call0_analyze_prologue, call0_frame_cache): New functions.
545 * breakpoint.c (bpstat_free): New.
546 (bpstat_clear): Use bpstat_free.
547 (delete_breakpoint): Document why we cannot
548 remove bpstats from stop_bpstat.
549 * breakpoint.h (bpstat_free): Declare.
553 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
558 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
563 * ada-lang.c (possible_user_operator_p): Alternative fix to last
564 checkin guarding against NULL.
568 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
569 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
570 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
571 go at beginning of new line.
573 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
574 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
575 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
576 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
577 tui-winsource.h, tui.c, tui.h: Function declarations and
578 definitions, wrap long lines.
580 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
581 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
582 Reformat block comments to GNU standard.
584 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
585 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
586 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
587 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
588 tui.c, tui.h: Comment reformatting to coding standard (capitals,
589 spaces after periods, etc).
591 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
592 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
593 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
594 tui-winsource.h: Whitespace changes, fix pointer declarations
600 * ada-lang.c (field_alignment): Guard against NULL.
604 * MAINTAINERS (Global Maintainers): Add self.
608 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
610 * ada-lang.c (possible_user_operator_p): Guard against NULL.
612 * varobj.c (cplus_describe_child): Guard against null.
613 Use "NULL" instead of "0" to initialize pointers.
617 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
618 to match any gdbarch with matching OSABI. Set default ABI and FPU
619 after running the OSABI handler.
623 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
624 * config/i386/linux.mt (TDEPFILES): ...to here.
628 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
629 the 'silent' parameter and code to implement that.
630 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
632 * win32-nat.c: Adjust.
637 * breakpoint.c (update_breakpoints_after_exec): Don't
642 * valops.c: Whitespace clean-up.
644 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
646 * event-top.c (command_line_handler): Memory leak.
648 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
649 No need to make copy.
651 * source.c (find_source_lines): Require symtab 's'.
655 * completer.c: Spelling fix in comments.
659 * gdbtypes.c: Coding standard cleanup.
660 * gdbtypes.c: Comment/whitespace cleanup.
662 * stabsread.c (read_huge_number): Attempt to compute value before
663 values that it depends on.
665 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
666 (decode_objc): Use "NULL" instead of 0.
667 (find_method): Ditto.
668 (decode_all_digits): Ditto.
669 (decode_dollar): Ditto.
671 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
673 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
675 * solib-svr4.c (enable_break): Don't free tmp_pathname until
678 * completer.c: Comment/whitespace cleanup.
682 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
686 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
687 allocated file descriptors.
691 * Makefile.in: Minor cleanup throughout; add some missing variables,
692 add some missing rules, remove some rules that are no longer needed,
693 and fix the dependencies in several rules.
697 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
698 (scm_lang_h, scm_tags_h): New.
699 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
700 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
701 * defs.h (enum language): Add `language_scm'.
703 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
708 * MAINTAINERS (Write After Approval): Add myself.
712 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
716 * solib-som.c (som_relocate_section_addresses): Stop saving
717 the $CODE$ section in the so_list structure.
721 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
722 (xtensa_register_group_t): Add entries for coprocessors.
723 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
724 (xtensa_add_reggroups): Likewise.
725 (xtensa_register_reggroup_p): Likewise.
726 (xtensa_coprocessor_register_group): New function.
731 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
735 * target.c (target_read_string): Guard against null.
737 * varobj.c (value_of_root): Move alloc after return to avoid leak.
739 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
740 (tui_set_layout_for_display_command): Mem leak.
742 * top.c (command_line_input): Memory leak.
744 * solib-svr4.c (open_symbol_file_object): Memory leak.
745 (svr4_current_sos): Ditto.
746 (enable_break): Ditto.
748 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
750 * dwarf2read.c (add_partial_symbol): Memory leak.
754 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
758 * macroexp.c (init_buffer): Remove testing code that overrides the
759 caller's length guess.
760 (gather_arguments): Use a larger initial size, now that the vector
761 growth code has been exercised.
765 * solib-target.c (solib_target_relocate_section_addresses): Add
766 orig_delta to addr_high.
770 * remote-fileio.c (remote_fileio_func_write): Memory leak.
772 * breakpoint.c (print_one_breakpoint): Off by one error.
774 * tracepoint.c (add_register): Off by one error.
775 (stringify_collection_list): Free malloc buffer.
779 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
780 stop memory leak, straighten out cleanups.
782 * jv-lang.c (java_link_class_type): Guard against NULL.
786 * gdbtypes.c (create_set_type): Test should only be done within
787 the preceeding if block. Otherwise, variable is uninitialized.
789 * gdbtypes.c (check_typedef): Guard NULL.
793 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
794 avoid dereference in lookup_cmd_1.
796 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
798 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
799 (tui_alloc_win_info): Ditto.
800 (tui_add_content_elements): Ditto.
801 * tui/tui-file.c (tui_file_magic): Ditto.
805 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
806 True and false paths are mutually exclusive.
808 * event-top.c (command_line_handler): Add pedantic return.
810 * f-valprint.c (info_common_command): Bail out to prevent null
811 pointer deref. Break up a long line.
813 * exec.c (xfer_memory): Remove redundant condition from 'if'.
815 * symfile.c (reread_separate_symbols): Free xmalloced memory.
817 * printcmd.c (build_address_symbolic): Remove dead code and dead
822 * linespec.c (minsym_found): Advance to the next line if possible.
826 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
827 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
828 solib-svr4.o, and add solib-target.o
832 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
836 * MAINTAINERS (Write After Approval): Add myself.
840 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
845 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
849 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
850 'buffer' must cover both branches that call strcmp (Coverity).
852 * stack.c (print_frame_args): Check return value of lookup_symbol.
854 * ax-gdb.c (find_field): Guard against null ptr.
858 * regformats/reg-spu.dat: Fix order of npc, id registers.
862 * target.c (memory_xfer_partial): Accesses to unmapped overlay
863 sections should always go to the executable file.
867 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
868 prologue instructions.
872 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
878 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
884 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
885 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
887 * NEWS: Mention gdbserver DLL support.
891 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
895 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
900 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
905 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
906 (mep_analyze_prologue): Add case for BRA instruction.
910 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
914 * breakpoint.c: Include "top.h".
915 (breakpoint_1): Don't set convenience variable $_ if server prefix
917 (_initialize_breakpoint): Describe this behaviour in command help.
921 * solib-target.c (library_list_start_segment): Cast address to
926 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
927 for terminated processes.
931 * event-top.c (cli_command_loop): Prompt string can (and should)
932 be freed after call to readline (Coverity). Also move local var
933 declarations into block where they are used.
935 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
936 should) be freed after call to readline (Coverity). Also move
937 local var declarations into block where they are used.
941 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
949 * remote.c (remote_check_symbols): Use
950 gdbarch_convert_from_func_ptr_addr.
951 * infcall.c (find_function_addr): Handle function descriptors
952 without debugging information.
953 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
954 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
955 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
956 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
957 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
958 allow SEC_CODE and SEC_DATA.
959 (enable_break): Update calls. Pass current_target to solib_add.
960 Use gdbarch_convert_from_func_ptr_addr.
965 * symfile.c (print_transfer_performance): Avoid integer overflow.
970 * cp-namespace.c (lookup_symbol_file): Add block to
971 lookup_symbol_global call.
972 * Makefile.in (solist_h): Add dependency on symtab header.
973 (symtab.o): Add dependency on solist header.
974 * solib.c (solib_global_lookup): New function.
975 * solib-svr4.c (scan_dyntag): Likewise.
976 (elf_locate_base): Call helper routine scan_dyntag.
977 (elf_lookup_lib_symbol): New function.
978 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
979 * solist.h (symtab.h): New include.
980 (struct target_so_ops): New member lookup_lib_global_symbol.
981 (solib_global_lookup): New prototype.
982 * symtab.c: New include solist.h.
983 (lookup_objfile_from_block): New function.
984 (lookup_global_symbol_from_objfile): New function.
985 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
986 (lookup_symbol_global): Call library-specific lookup procedure.
987 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
989 * NEWS: Document framework.
993 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
996 * cli/cli-script.c (build_command_line): Update NULL check.
1000 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1004 * Makefile.in (XMLFILES): Add library-list.dtd.
1005 (ALLDEPFILES): Add solib-target.o.
1006 (solib-target.o): New rule.
1007 * remote.c (PACKET_qXfer_libraries): New constant.
1008 (remote_protocol_features): Add qXfer:libraries:read.
1009 (remote_wait): Recognize library stop replies.
1010 (remote_async_wait): Likewise. Fix typo.
1011 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1012 (init_remote_async_ops): Fix typo.
1013 (_initialize_remote): Register "set remote library-info-packet".
1014 * solib-som.c (som_current_sos): Set addr_low and addr_high.
1015 * solib-target.c: New file.
1016 * solib.c (solib_map_sections): Use addr_low and addr_high instead
1018 (info_sharedlibrary_command): Likewise.
1019 (solib_add_library, solib_remove_library): New.
1020 * solist.h (struct so_list): Replace textsection with addr_low and
1022 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1023 * NEWS: Describe new qXfer:libraries:read and shared library
1025 * features/library-list.dtd: New.
1029 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1030 (start_remote): Use STOP_QUIETLY_REMOTE.
1031 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1032 support on a SOLIB_ADD definition. Update breakpoints_inserted.
1033 Update to match shared library event breakpoint support. Only
1034 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
1035 (normal_stop): Handle TARGET_WAITKIND_LOADED.
1036 * fork-child.c (startup_inferior): Do not set
1037 inferior_ignoring_startup_exec_events
1038 * inferior.h (inferior_ignoring_startup_exec_events): Delete
1040 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
1044 * breakpoint.c (insert_bp_location): Remove dead code
1045 (DISABLE_UNSETTABLE_BREAK).
1046 (disable_breakpoints_in_shlibs)
1047 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1051 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1052 Call insert_bp_location.
1056 * core-regset.c (fetch_core_registers): Work around gcc 3.4
1061 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1066 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1067 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1068 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1069 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
1070 to display_gdb_prompt.
1075 * target.c (memory_xfer_partial): Do not continue past targets with
1080 * m68k-tdep.c (m68k_ps_type): New.
1081 (m68k_init_types): New.
1082 (m68k_register_type): Use m68k_ps_type for PS register.
1083 (_initialize_m68k_tdep): Call m68k_init_types.
1085 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1086 from the generic m68k arch.
1090 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1093 * linux-thread-db.c (thread_db_get_thread_local_address): Add
1094 gdb_assert before using return value of find_thread_pid (Coverity).
1096 * source.c (unset_substitute_path_command): Plug leak (Coverity).
1098 * cli/cli-script.c (build_command_line): Add null pointer guard
1103 * linux-thread-db.c (thread_db_attach): Delete.
1104 (thread_db_detach): Typo fix. Call target_mourn_inferior
1105 instead of fixing up proc_handle.
1106 (have_threads_callback, have_threads): New functions.
1107 (thread_db_wait): Remove dead proc_handle.pid check. Only
1108 translate PTIDs if we have registered threads. Check for new
1109 threads if we have none.
1110 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1111 (find_new_threads_callback): Only enable event reporting if TID == 0.
1112 (same_ptid_callback): New.
1113 (thread_db_get_thread_local_address): Check for new threads.
1114 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1115 or to_post_startup_inferior.
1119 * infrun.c (adjust_pc_after_break): Do not assume software single-step
1120 is always active if SOFTWARE_SINGLE_STEP_P is true.
1121 (resume): Use gdbarch_software_single_step[_p] instead of
1122 SOFTWARE_SINGLE_STEP[_P].
1123 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1125 * gdbarch.sh (software_single_step): Remove target macro.
1126 * gdbarch.h, gdbarch.c: Regenerate.
1130 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
1131 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
1132 (struct gdbarch_swap, struct gdbarch_swap_registration,
1133 struct gdbarch_swap_registry, gdbarch_swap_registry,
1134 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
1135 current_gdbarch_swap_in_hack): Remove.
1136 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
1137 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
1138 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
1139 (deprecated_current_gdbarch_select_hack): Likewise.
1140 * gdbarch.h, gdbarch.c: Regenerate.
1144 * infrun.c (clear_proceed_status): Clean up stop_registers.
1145 (normal_stop): Allocate regcache for stop_registers.
1146 (struct inferior_status): Remove stop_registers member.
1147 (save_inferior_status): Do not save stop_registers.
1148 (restore_inferior_status): Do not restore stop_registers.
1149 (discard_inferior_status): Do not discard stop_registers.
1150 (build_infrun): Remove.
1151 (_initialize_infrun): Do not swap stop_registers.
1155 * remote.c (remote_address_masked): If remote_address_size is zero,
1156 default to target address size.
1157 (build_remote_gdbarch_data): Remove.
1158 (_initialize_remote): Do not swap remote_address_size.
1162 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
1163 builtin_type_char, builtin_type_short, builtin_type_int,
1164 builtin_type_long, builtin_type_signed_char,
1165 builtin_type_unsigned_char, builtin_type_unsigned_short,
1166 builtin_type_unsigned_int, builtin_type_unsigned_long,
1167 builtin_type_float, builtin_type_double, builtin_type_long_double,
1168 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1169 builtin_type_bool, builtin_type_long_long,
1170 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1171 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
1172 variable declaration with compatibility macro.
1173 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
1174 builtin_type_char, builtin_type_short, builtin_type_int,
1175 builtin_type_long, builtin_type_signed_char,
1176 builtin_type_unsigned_char, builtin_type_unsigned_short,
1177 builtin_type_unsigned_int, builtin_type_unsigned_long,
1178 builtin_type_float, builtin_type_double, builtin_type_long_double,
1179 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1180 builtin_type_bool, builtin_type_long_long,
1181 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
1182 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
1183 (build_gdbtypes): Remove.
1184 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
1185 opaque-type-resolution command here. Do not call
1186 deprecated_register_gdbarch_swap.
1190 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
1191 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
1192 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
1194 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
1195 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
1196 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
1197 (build_parse): Remove.
1198 (_initialize_parse): Do not call build_parse. Do not register
1199 msym_ types for gdbarch-swapping.
1201 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
1202 instead of creating private type.
1204 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
1205 (_initialize_xcoffread): Do not initialized them.
1206 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
1208 * mdebugread.c (nodebug_func_symbol_type): Remove.
1209 (nodebug_var_symbol_type): Remove.
1210 (_initialize_mdebugread): Do not initialize them.
1211 (parse_symbol): Use builtin nodebug_ type instead of them.
1212 (parse_procedure): Likewise.
1216 * printcmd.c (do_one_display): If display/i, start with an initial
1217 line feed to avoid bad layout if there is a branch delay slot.
1222 * disasm.c (gdb_print_insn): Return the number of branch delay
1223 slot instructions too.
1224 * disasm.h (gdb_print_insn): Update prototype.
1225 * printcmd.c (branch_delay_insns): New variable to record the
1226 number of delay slot instructions after disassembling a branch.
1227 (print_formatted): Record the number of branch delay slot
1229 (do_examine): When disassembling, if the last instruction
1230 disassembled has any branch delay slots, then bump the count so
1231 that they get disassembled too.
1232 * tui/tui-disasm.c (tui_disassemble): Update the call to
1234 * NEWS: Document the new behaviour.
1238 * regcache.c (write_pc_pid): Restore missing else.
1242 * regcache.c (regcache_print): Use get_current_regcache ()
1243 instead of current_regcache.
1248 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
1249 instead of bfd_make_section_anyway.
1250 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
1251 when clearing SEC_LOAD.
1255 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
1256 registers for big-endian.
1260 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
1261 * disasm.c (dump_insns, gdb_print_insn): Likewise.
1262 * gdbarch.c, gdbarch.h: Regenerate.
1266 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
1267 gdbarch_believe_pcc_promotion.
1268 * stabsread.c (define_symbol): Likewise.
1269 Remove unnecessary definition.
1270 * coffread.c (process_coff_symbol): Remove unnecessary code.
1271 * gdbarch.c, gdbarch.h: Regenerate.
1275 * configure.ac: Do not use ${objdir}.
1276 * configure: Regenerated.
1280 * gdbarch.sh (deprecated_register_size): Remove.
1281 * gdbarch.h, gdbarch.c: Regenerate.
1283 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
1284 by INT_REGISTER_SIZE.
1285 (thumb_get_next_pc, arm_return_in_memory): Likewise.
1286 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
1287 * ia64-tdep.c (ia64_gdbarch_init): Do not call
1288 set_gdbarch_deprecated_register_size.
1292 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
1293 gdbarch_deprecated_fp_regnum.
1294 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1295 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
1296 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1297 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
1299 * gdbarch.c, gdbarch.h: Regenerate.
1303 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
1304 gdbarch_extract_return_value.
1305 * value.c (generic_use_struct_convention): Likewise (comment).
1306 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
1307 * arch-utils.c (legacy_return_value): Likewise.
1308 * arch-utils.h (legacy_return_value): Likewise (comment).
1309 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
1310 gdbarch_store_return_value.
1311 * stack.c (return_command): Likewise (comment).
1312 * arch-utils.h (legacy_return_value): Likewise (comment).
1313 * arch-utils.c (legacy_return_value): Likewise.
1314 * gdbarch.c, gdbarch.h: Regenerate.
1318 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
1319 gdbarch_deprecated_use_struct_convention.
1320 * arch-utils.c (legacy_return_value): Likewise.
1321 * gdbarch.c, gdbarch.h: Regenerate.
1325 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
1326 gdbarch_deprecated_function_start_offset.
1327 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
1328 * linespec.c (minsym_found): Likewise.
1329 * infrun.c (handle_inferior_event): Likewise.
1330 * infcall.c (find_function_addr): Likewise.
1331 * cli/cli-cmds.c (disassemble_command): Likewise.
1332 * gdbarch.c, gdbarch.h: Regenerate.
1336 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
1337 gdbarch_deprecated_reg_struct_has_addr.
1338 * infcall.c (call_function_by_hand): Likewise.
1339 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
1340 * gdbarch_deprecated_reg_struct_has_addr_p.
1341 * infcall.c (call_function_by_hand): Likewise.
1342 * gdbarch.c, gdbarch.h: Regenerate.
1346 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1347 * sh-tdep.c (sh_extract_struct_value_address): Remove.
1348 (sh_gdbarch_init): Remove
1349 set_gdbarch_deprecated_extract_struct_value_address.
1350 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
1351 (sh64_gdbarch_init): Remove
1352 set_gdbarch_deprecated_extract_struct_value_address.
1353 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
1354 (ia64_gdbarch_init): Remove
1355 set_gdbarch_deprecated_extract_struct_value_address.
1356 * frv-tdep.c (frv_extract_struct_value_address): Remove.
1357 (frv_gdbarch_init): Remove
1358 set_gdbarch_deprecated_extract_struct_value_address.
1359 * gdbarch.c, gdbarch.h: Regenerate.
1363 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
1364 * v850-tdep.c (v850_unwind_sp): Likewise.
1365 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
1366 * stack.c (frame_info): Likewise.
1367 * stabsread.c (define_symbol): Likewise.
1368 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
1369 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
1370 (sh_unwind_sp): Likewise.
1371 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
1372 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
1373 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
1374 (rs6000_frame_cache): Likewise.
1375 * rs6000-nat.c (store_register): Likewise.
1376 * remote-mips.c (mips_wait): Likewise.
1377 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1378 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1379 (ppc64_sysv_abi_push_dummy_call): Likewise.
1380 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1381 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1382 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1383 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1384 * m32r-rom.c (m32r_supply_register): Likewise.
1385 * frame.c (frame_sp_unwind): Likewise.
1386 * mips-tdep.c (mips_insn16_frame_cache)
1387 (mips_insn32_frame_cache): Likewise (comment).
1388 * m68klinux-nat.c (supply_gregset): Likewise.
1389 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1390 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
1391 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1392 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1393 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
1394 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
1395 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
1396 (cris_register_type, crisv32_register_type)
1397 (cris_dwarf2_frame_init_reg): Likewise.
1398 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
1399 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
1400 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
1401 * libunwind-frame.c (libunwind_frame_cache): Likewise.
1403 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
1404 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
1405 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
1406 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
1407 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
1408 * v850-tdep.c (v850_unwind_pc): Likewise.
1409 * stack.c (frame_info): Likewise.
1410 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
1411 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
1412 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
1413 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
1414 (sh_dsp_show_regs): Likewise.
1415 * shnbsd-tdep.c (shnbsd_supply_gregset)
1416 (shnbsd_collect_gregset): Likewise.
1417 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
1418 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
1419 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
1420 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1421 (6000_register_reggroup_p, rs6000_unwind_pc)
1422 (rs6000_frame_cache): Likewise.
1423 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
1424 (rs6000_store_inferior_registers): Likewise.
1425 * remote-mips.c (mips_wait, mips_load): Likewise.
1426 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1427 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1428 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1429 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1430 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
1431 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1432 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
1433 (store_ppc_registers, fill_gregset): Likewise.
1434 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
1435 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
1436 * mipsnbsd-nat.c (getregs_supplies): Likewise.
1437 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1438 * m68klinux-nat.c (supply_gregset): Likewise.
1439 * irix5-nat.c (fill_gregset): Likewise.
1440 * i386-tdep.c (i386_unwind_pc): Likewise.
1441 * i386-linux-nat.c (i386_linux_resume): Likewise.
1442 * frame.c (get_prev_frame_1): Likewise.
1443 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
1444 * dbug-rom.c (dbug_supply_register): Likewise.
1445 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
1446 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
1447 (cris_register_type, crisv32_register_type, crisv32_register_name)
1448 (cris_dwarf2_frame_init_reg, find_step_target)
1449 (cris_software_single_step, cris_supply_gregset)
1450 (cris_regnums): Likewise.
1451 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1452 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1453 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
1454 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
1455 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1457 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
1458 * dbug-rom.c (dbug_supply_register): Likewise.
1459 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
1460 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
1461 * win32-nat.c (win32_resume): Likewise.
1462 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
1463 * m68k-tdep.c (m68k_register_type): Likewise.
1464 * m68klinux-nat.c (supply_gregset): Likewise.
1466 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
1467 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
1468 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
1469 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
1470 (fv_reg_base_num, dr_reg_base_num): Likewise.
1471 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
1472 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
1473 (sh64_extract_return_value, sh64_store_return_value)
1474 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
1475 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
1476 * procfs.c (procfs_fetch_registers, procfs_store_registers)
1477 (invalidate_cache): Likewise.
1478 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
1479 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
1480 (mipsnbsd_fill_fpreg): Likewise.
1481 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
1482 (mipsnbsd_store_inferior_registers): Likewise.
1483 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
1484 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
1485 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
1486 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
1487 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
1488 (fill_fpregset): Likewise.
1489 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
1490 * i386-tdep.h (struct_return): Likewise (comment).
1491 * i386-nto-tdep.c (i386nto_register_area): Likewise.
1492 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1493 (go32_store_registers): Likewise.
1494 * alpha-tdep.c (alpha_next_pc): Likewise.
1495 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
1496 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1497 (alphabsd_store_inferior_registers): Likewise.
1498 * core-regset.c (fetch_core_registers): Likewise.
1499 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
1501 * gdbarch.c, gdbarch.h: Regenerate.
1505 * coffread.c (coff_sym_fns): Add default_symfile_segments.
1506 * dbxread.c (start_psymtab): Check HAVE_ELF.
1507 (aout_sym_fns): Likewise.
1508 * elfread.c (elf_symfile_segments): New.
1509 (elf_sym_fns): Add elf_symfile_segments.
1510 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
1511 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
1512 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
1513 * somread.c (som_sym_fns): Use default_symfile_segments.
1514 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
1515 (init_objfile_sect_indices): Call symfile_find_segment_sections.
1516 (default_symfile_segments): New function.
1517 (syms_from_objfile): Update call to find_sym_fns.
1518 (symfile_get_segment_data, free_symfile_segment_data): New.
1519 (symfile_map_offsets_to_segments): New.
1520 (symfile_find_segment_sections): New.
1521 * symfile.h (struct symfile_segment_data): New.
1522 (struct sym_fns): Add sym_segments.
1523 (default_symfile_segments, symfile_get_segment_data)
1524 (free_symfile_segment_data): New prototypes.
1525 (symfile_map_offsets_to_segments): Likewise.
1526 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
1527 * Makefile.in (COMMON_OBS): Remove elfread.o.
1528 (elf_internal_h): New.
1529 (elfread.o): Update.
1530 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
1532 * config.in, configure: Regenerated.
1533 * NEWS: Mention qOffsets changes.
1537 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
1538 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1539 Replace global variable declaration with compatibility macro.
1540 (struct builtin_m2_type): New data type.
1541 (builtin_m2_type): Add prototype.
1542 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
1543 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
1544 Remove global variables.
1545 (m2_language_arch_info): Use builtin_m2_type instead of variables.
1546 (build_m2_types): New function.
1547 (m2_type_data): New variable.
1548 (builtin_m2_type): New function.
1549 (_initialize_m2_language): Do not build data types. Register
1550 m2_type_data per-gdbarch data.
1554 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
1555 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1556 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1557 builtin_type_f_real_s8, builtin_type_f_real_s16,
1558 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1559 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
1560 variable declaration with compatibility macro.
1561 (struct builtin_f_type): New data type.
1562 (builtin_f_type): Add prototype.
1563 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
1564 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1565 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
1566 builtin_type_f_real_s8, builtin_type_f_real_s16,
1567 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1568 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
1569 (f_language_arch_info): Use builtin_f_type instead of variables.
1570 (build_fortran_types): Build builtin_f_type structure instead of
1571 setting global type variables.
1572 (f_type_data): New variable.
1573 (builtin_f_type): New function.
1574 (_initialize_f_language): Do not call build_fortran_types. Do not
1575 swap global type variables. Register f_type_data per-gdbarch data.
1579 * f-lang.c (_initialize_f_language): Do not initialize or
1580 swap builtin_type_string.
1584 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
1585 value_of_builtin_frame_reg): Remove.
1586 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
1587 inactive call to value_of_builtin_frame_reg.
1591 * gdbarch.sh (bfd_vma_bit): Remove.
1592 * gdbarch.c, gdbarch.h: Regenerate.
1594 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1595 * gdbtypes.h (builtin_bfd_vma_type): Remove.
1596 (build_gdbtypes): Do not initialize it.
1597 (_initialize_gdbtypes): Do not swap it.
1601 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
1602 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1603 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1604 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1605 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1606 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1607 builtin_type_vec64, builtin_type_vec128): Remove.
1608 (init_simd_type): Remove.
1609 (init_vector_type): Make global.
1610 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
1611 (build_gdbtypes): Do not build vector types.
1612 (_initialize_gdbtypes): Do not swap vector types.
1613 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
1614 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
1615 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
1616 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
1617 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
1618 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
1619 builtin_type_vec64, builtin_type_vec128): Remove declarations.
1620 (init_vector_type): Add prototype.
1622 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
1623 i386_sse_type members.
1624 (i386_mmx_type, i386_sse_type): Change from variables to functions.
1625 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
1626 (i386_init_types): Do not build vector types.
1627 (i386_mmx_type, i386_sse_type): New functions.
1628 (i386_register_type): Call them instead of using global variables.
1629 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
1630 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
1631 of using global variable.
1633 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
1634 and ppc_builtin_type_vec128 members.
1635 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
1636 (rs6000_builtin_type_vec128): Likewise.
1637 (rs6000_register_type): Call them instead of using builtin_type_vec64
1638 and builtin_type_vec128.
1639 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
1641 * spu-tdep.c (struct gdbarch_tdep): New data type.
1642 (spu_builtin_type_vec128): Remove variable.
1643 (spu_builtin_type_vec128): New function.
1644 (spu_register_type): Call it instead of using global variable.
1645 (spu_gdbarch_init): Allocate tdep structure.
1646 (spu_init_vector_type): Remove function.
1647 (_initialize_spu_tdep): Do not call it.
1651 * amd64-tdep.c (struct amd64_register_info): Remove.
1652 (amd64_register_info): Remove.
1653 (amd64_register_names): New static variable.
1654 (AMD64_NUM_REGS): Use amd64_register_names instead of
1655 amd64_register_info.
1656 (amd64_register_name): Likewise.
1657 (amd64_register_type): Do not refer to amd64_register_info.
1659 * s390-tdep.c (struct s390_register_info): Remove.
1660 (s390_register_info): Remove.
1661 (s390_register_name): Do not refer to s390_register_info.
1662 (s390_register_type): Likewise.
1664 * sparc64-tdep.c (struct sparc64_register_info): Remove.
1665 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
1666 (sparc64_register_names, sparc64_pseudo_register_names): New.
1667 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
1668 sparc64_register_names and sparc64_pseudo_register_names instead of
1669 sparc64_register_info and sparc64_pseudo_register_info.
1670 (sparc64_register_name): Likewise.
1671 (sparc64_register_type): Do not refer to sparc64_register_info
1672 and sparc64_pseudo_register_info.
1676 * c-lang.c (cplus_builtin_types): Remove.
1677 (enum cplus_primitive_types): New data type.
1678 (cplus_language_arch_info): New function.
1679 (cplus_language_defn): Set la_language_arch_info member. Do not set
1680 la_builtin_type_vector and string_char_type members.
1682 * f-lang.c (f_builtin_types): Remove.
1683 (enum f_primitive_types): New data type.
1684 (f_language_arch_info): New function.
1685 (f_language_de): Set la_language_arch_info member. Do not set
1686 la_builtin_type_vector and string_char_type members.
1688 * m2-lang.c (m2_builtin_types): Remove.
1689 (enum m2_primitive_types): New data type.
1690 (m2_language_arch_info): New function.
1691 (m2_language_defn): Set la_language_arch_info member. Do not set
1692 la_builtin_type_vector and string_char_type members.
1694 * objc-lang.c (objc_builtin_types): Remove.
1695 (objc_language): Set la_language_arch_info member. Do not set
1696 la_builtin_type_vector and string_char_type members.
1698 * p-lang.c (pascal_builtin_types): Remove.
1699 (enum pascal_primitive_types): New data type.
1700 (pascal_language_arch_info): New function.
1701 (pascal_language_defn): Set la_language_arch_info member. Do not set
1702 la_builtin_type_vector and string_char_type members.
1706 * regcache.c (struct regcache): Add ptid_t member.
1707 (regcache_xmalloc): Initialize it.
1708 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
1709 (regcache_dup): Likewise.
1710 (regcache_dup_no_passthrough): Likewise.
1711 (current_regcache): Make static.
1712 (registers_ptid): Remove variable.
1713 (get_thread_regcache): New function.
1714 (get_current_regcache): New function.
1715 (registers_changed): Implement by freeing current regcache.
1716 (regcache_raw_read): Do not refer to current_regcache. Set
1717 inferior_ptid to regcache->ptid while calling target routines.
1718 (regcache_raw_write): Likewise.
1719 (regcache_raw_supply): Do not refer to current_regcache.
1720 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
1721 (write_pc_pid): Likewise.
1722 (build_regcache): Remove.
1723 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
1724 or deprecated_register_gdbarch_swap. Do not initialize
1726 * regcache.h (get_current_regcache): Add prototype.
1727 (get_thread_regcache): Likewise.
1728 (current_regcache): Remove declaration.
1730 * corelow.c (core_open): Replace current_regcache by
1731 get_current_regcache ().
1732 * frame.c (frame_pop): Likewise.
1733 (put_frame_register): Likewise.
1734 (get_current_frame, create_new_frame): Likewise.
1735 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
1736 * stack.c (return_command): Likewise.
1737 * infcall.c (call_function_by_hand): Likewise.
1738 * infrun.c (resume): Likewise.
1739 (save_inferior_status, restore_inferior_status): Likewise.
1740 * linux-fork.c (fork_load_infrun_state): Likewise.
1741 (fork_save_infrun_state): Likewise.
1742 * win32-nat.c (win32_resume): Likewise.
1743 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
1744 * monitor.c (monitor_wait): Likewise.
1745 * remote.c (remote_wait): Likewise.
1746 * remote-mips.c (mips_wait): Likewise.
1748 * bsd-kvm.c (bsd_kvm_open): Likewise
1749 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
1750 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
1751 * i386-linux-nat.c (i386_linux_resume): Likewise.
1752 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
1753 (ia64_linux_stopped_data_address): Likewise.
1755 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
1756 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1757 * mep-tdep.c (current_me_module, current_options): Likewise.
1758 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
1760 * linux-nat.c (linux_nat_do_thread_registers): Use thread
1761 regcache instead of current_regcache. Call target_fetch_registers.
1762 (linux_nat_corefile_thread_callback): Update call site.
1763 (linux_nat_do_registers): Likewise.
1764 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
1765 of current_regcache.
1766 (procfs_make_note_section): Likewise.
1767 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
1768 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1769 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
1770 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
1774 * regcache.c (read_register, read_register_pid): Remove.
1775 (write_register, write_register_pid): Likewise.
1776 * regcache.h (read_register, read_register_pid): Remove prototype.
1777 (write_register, write_register_pid): Likewise.
1781 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
1782 (write_pc): Likewise. Remove default implementation, add predicate.
1783 * gdbarch.c, gdbarch.h: Regenerate.
1784 * regcache.c (read_pc_pid): Use current regcache instead of calling
1786 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
1788 (generic_target_write_pc): Remove.
1789 * inferior.h (generic_target_write_pc): Remove.
1790 * frv-tdep.c (frv_gdbarch_init): Do not install it.
1791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1792 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1793 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
1794 * sh-tdep.c (sh_gdbarch_init): Likewise.
1795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
1797 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
1798 argument. Use REGCACHE instead of calling read_register_pid.
1799 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
1800 * hppa-tdep.c (hppa_read_pc): Likewise.
1801 * hppa-tdep.h (hppa_read_pc): Likewise.
1802 * ia64-tdep.c (ia64_read_pc): Likewise.
1803 * m32r-tdep.c (m32r_read_pc): Likewise.
1804 * mep-tdep.c (mep_read_pc): Likewise.
1805 * mn10300-tdep.c (mn10300_read_pc): Likewise.
1806 * spu-tdep.c (spu_read_pc): Likewise.
1808 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
1809 argument. Use REGCACHE instead of calling write_register_pid.
1810 * avr-tdep.c (avr_write_pc): Likewise.
1811 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
1812 * hppa-tdep.c (hppa_write_pc): Likewise.
1813 * hppa-tdep.h (hppa_write_pc): Likewise.
1814 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
1815 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
1816 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
1817 * ia64-tdep.c (ia64_write_pc): Likewise.
1818 * ia64-tdep.h (ia64_write_pc): Likewise.
1819 * m32r-tdep.c (m32r_write_pc): Likewise.
1820 * m88k-tdep.c (m88k_write_pc): Likewise.
1821 * mep-tdep.c (mep_write_pc): Likewise.
1822 * mips-tdep.c (mips_write_pc): Likewise.
1823 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
1824 * mn10300-tdep.c (mn10300_write_pc): Likewise.
1825 * sparc-tdep.c (sparc_write_pc): Likewise.
1826 * spu-tdep.c (spu_write_pc): Likewise.
1828 * mips-tdep.c (read_signed_register): Remove.
1829 (read_signed_register_pid): Likewise.
1830 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
1831 Use REGCACHE instead of calling read_signed_register_pid.
1835 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
1836 * gdbarch.c, gdbarch.h: Regenerate.
1837 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
1838 (push_dummy_code): Likewise. Pass it to callee.
1839 (call_function_by_hand): Pass current regcache to push_dummy_code.
1841 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
1842 argument. Use it instead of current_regcache.
1844 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
1845 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
1849 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
1850 * gdbarch.c, gdbarch.h: Regenerate.
1851 * infrun.c (handle_inferior_event): Pass current frame to
1852 gdbarch_get_longjmp_target.
1854 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
1855 Read registers from FRAME instead of using read_register.
1856 Use get_frame_arch instead of current_gdbarch.
1857 * arm-tdep.c (arm_get_longjmp_target): Likewise.
1858 * i386-tdep.c (i386_get_longjmp_target): Likewise.
1859 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1860 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
1861 (mips64_linux_get_longjmp_target): Likewise.
1862 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1866 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
1867 * gdbarch.c, gdbarch.h: Regenerate.
1868 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
1869 * arch-utils.h (generic_skip_trampoline_code): Likewise.
1870 * infrun.c (handle_inferior_event): Pass current frame to
1871 gdbarch_skip_trampoline_code and skip_language_trampoline.
1873 * language.c (unk_lang_trampoline): Add FRAME argument.
1874 (skip_language_trampoline): Add FRAME argument. Pass it to
1875 skip_trampoline callback.
1876 * language.h: Add forward declaration of struct frame_info.
1877 (struct language_defn): Add FRAME argument to skip_trampoline.
1878 (skip_language_trampoline): Add FRAME argument.
1879 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
1880 to skip_trampoline callback.
1881 * cp-abi.h: Add forward declaration of struct frame_info.
1882 (cplus_skip_trampoline): Add FRAME argument.
1883 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
1884 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
1885 to gdbarch_skip_trampoline_code.
1886 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
1887 to gdbarch_skip_trampoline_code.
1889 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
1890 * symtab.h (find_solib_trampoline_target): Likewise.
1891 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
1892 find_solib_trampoline_target.
1894 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
1895 from FRAME instead of calling read_register.
1897 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
1898 argument. Read registers from FRAME instead of using read_register.
1899 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
1900 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
1902 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
1905 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
1907 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
1908 registers from FRAME instead of using read_signed_register.
1910 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
1912 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
1913 instead of using read_register.
1914 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
1915 ppc64_standard_linkage_target.
1916 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
1917 Pass it to find_solib_trampoline_target. Read registers from FRAME
1918 instead of using read_register.
1920 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
1925 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
1927 * gdbarch.c, gdbarch.h: Regenerate.
1928 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
1930 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
1931 registers from FRAME instead of using read_register.
1932 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1933 to alpha_next_pc. Use get_frame_pc instead of read_pc.
1934 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
1937 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
1938 from FRAME instead of using read_register.
1939 (thumb_get_next_pc): Likewise.
1940 (arm_get_next_pc): Likewise.
1941 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1942 to arm_get_next_pc. Use get_frame_pc instead of read_register.
1943 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
1946 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
1947 from FRAME instead of using read_register.
1948 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1949 to find_step_target.
1951 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
1952 from FRAME instead of using read_register / read_signed_register.
1953 (extended_mips16_next_pc): Likewise.
1954 (mips16_next_pc): Likewise.
1955 (mips_next_pc): Likewise.
1956 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1957 to mips_next_pc. Use get_frame_pc instead of read_pc.
1958 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
1961 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
1962 of current frame. Read registers from FRAME.
1963 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
1964 branch_dest. Use get_frame_pc instead of read_pc.
1965 (rs6000_software_single_step): Likewise.
1966 (bl_to_blrl_insn_p): Do not call branch_dest.
1967 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
1970 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
1971 Read registers from FRAME instead of current regcache.
1972 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
1973 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
1974 * sparc-tdep.c (sparc_address_from_register): Remove.
1975 (sparc_analyze_control_transfer): Pass FRAME argument instead of
1976 GDBARCH. Pass FRAME to step_trap callback.
1977 (sparc_step_trap): Add FRAME argument.
1978 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1979 to sparc_analyze_control_transfer. Read registers from FRAME instead
1980 of calling sparc_address_from_register.
1981 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
1983 (sparc_address_from_register): Remove prototype.
1984 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
1985 (sparcnbsd_step_trap): Add FRAME argument.
1987 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
1988 by FRAME. Read registers from FRAME instead of REGCACHE.
1992 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
1993 instead of calling read_register.
1995 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
1996 calling write_register.
1998 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
1999 calling write_register.
2001 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
2002 instead of calling read_register.
2003 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
2004 instead of calling read_register and write_register.
2006 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2007 instead of current_regcache.
2009 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2010 of calling write_register.
2011 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2012 parameter instead of current_regcache.
2014 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
2015 instead of calling read_register.
2016 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2017 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2018 (mips_n32n64_push_dummy_call): Likewise.
2019 (mips_o32_push_dummy_call): Likewise.
2020 (mips_o64_push_dummy_call): Likewise.
2022 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2023 parameter instead of current_regcache.
2025 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2026 Use it instead of read_register and write_register.
2027 (xtensa_register_read_masked): Likewise.
2028 (xtensa_pseudo_register_read): Update call.
2029 (xtensa_pseudo_register_write): Likewise.
2030 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2031 instead of calling read_register.
2032 (xtensa_push_dummy_call): Update comment.
2036 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2037 by frame_unwind_register_signed calls.
2038 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
2039 frame allocations when called with NULL NEXT_FRAME parameter.
2040 (read_next_frame_reg): Remove.
2042 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
2043 instead of reading the FPSCR register.
2044 (sh_frame_cache): Pass unwound FPSCR register value to
2045 sh_analyze_prologue.
2046 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2048 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
2049 instead of reading the CTBP register.
2050 (v850_frame_cache): Pass unwound CTBP register value to
2051 v850_analyze_prologue.
2055 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2056 * sh-tdep.c (sh_show_regs): Likewise.
2057 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2058 (sh_generic_show_regs): Add FRAME parameter. Use register
2059 values from that frame instead of calling read_register.
2060 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2061 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2062 sh_dsp_show_regs): Likewise.
2063 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2064 sh64_show_regs): Likewise.
2068 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2069 current regcache instead of calling read_register.
2073 * mep-tdep.c (current_me_module): Read from current regcache
2074 instead of calling read_register.
2075 (current_options): Likewise.
2079 * cris-tdep.c (cris_stopped_data_address): Read register values
2080 from current frame instead of calling read_register.
2081 * frv-tdep.c (frv_stopped_data_address): Likewise.
2085 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2086 instead of write_register (PC_REGNUM, ...).
2090 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2091 explaining why the PC adjustment code is necessary.
2095 * m68k-tdep.h (enum m68k_flavour): New.
2096 (struct gdbarch_tdep): New fields
2097 float_return, flavour and fpregs_present.
2098 * m68k-tdep.c (m68k_register_type): Use
2099 fpregs_present and conditionalize floating
2100 registers type on flavour.
2101 (m68k_register_names): New.
2102 (m68k_register_name): Use the above.
2103 (m68k_convert_register_p): Consult fpregs_present.
2104 (m68k_register_to_value, m68k_value_to_register):
2105 Use register_type to obtain the type of floating
2107 (m68k_svr4_extract_return_value): Check tdep->float_return.
2108 Use register_type to get the type of floating
2110 (m68k_svr4_store_return_value): Likewise.
2111 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2112 (m68k_analyze_register_saves): Likewise.
2113 (m68k_gdbarch_init): Extract infromation
2114 from XML description, if present. Guess coldfire by
2115 looking at the file, if present. Conditionalize
2116 setting of long double format. Set decr_pc_after_break
2117 to 2 on coldfire and fido. Enable XML-driven
2118 register description.
2119 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2120 size of tdep->fpreg_type, as opposed to hardcoded value.
2121 * Makefile.in (m68k-tdep.o): Update dependencies.
2125 * NEWS: Mention "info spu" commands and qXfer:spu:read and
2126 qXfer:spu:write remote packet types.
2130 * xml-tdesc.c (tdesc_start_target): New.
2131 (target_attributes): New.
2132 (tdesc_elements): Use it.
2133 * features/gdb-target.dtd: Add #FIXED version attribute for
2138 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
2142 * fork-child.c (fork_inferior): Update comment.
2146 * features/Makefile: Generate regformats for mips-linux and
2148 * features/sort-regs.xsl: Correct typo.
2149 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
2150 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
2155 * config/mips/linux.mh (TDEP_XML): New.
2156 * features/mips-linux.xml, features/mips64-linux.xml: New files.
2157 * mips-linux-nat.c (mips_linux_register_addr): Handle
2158 MIPS_RESTART_REGNUM.
2159 (mips64_linux_register_addr): Likewise.
2160 (super_xfer_partial, mips_linux_xfer_partial): New.
2161 (_initialize_mips_linux_nat): Add them to the target_ops.
2162 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
2163 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
2164 (mips_linux_o32_sigframe_init)
2165 (mips_linux_n32n64_sigframe_init): Likewise.
2166 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
2167 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
2168 "org.gnu.gdb.mips.linux" feature.
2169 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
2170 (mips_linux_restart_reg_p): New prototype.
2171 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
2172 initialization routine.
2173 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
2177 * Makefile.in (mips-tdep.o): Update.
2178 * mips-tdep.c (struct register_alias, mips_o32_aliases)
2179 (mips_n32_n64_aliases, mips_register_aliases): New.
2180 (mips_register_name): Call tdesc_register_name.
2181 (mips_tdesc_register_reggroup_p): New.
2182 (mips_pseudo_register_type, value_of_mips_user_reg): New.
2183 (mips_gdbarch_init): Add target-described register support.
2184 Register aliases for register names.
2185 * target-descriptions.c (tdesc_register_name): Make global.
2186 (tdesc_register_in_reggroup_p): New function, broken out from
2187 tdesc_register_reggroup_p.
2188 (tdesc_register_reggroup_p): Use it.
2189 * target-descriptions.h (tdesc_register_name)
2190 (tdesc_register_in_reggroup_p): New prototypes.
2191 * NEWS: Correct formatting. Mention MIPS register support.
2192 * features/mips-cp0.xml, features/mips-fpu.xml,
2193 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
2194 features/mips64-cpu.xml: New files.
2198 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
2199 * valops.c (value_cast): Likewise.
2200 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
2201 * ui-out.c (ui_out_field_core_addr): Likewise.
2202 * tracepoint.c (tracepoints_info): Likewise.
2203 * symtab.c (print_msymbol_info): Likewise.
2204 * solib-irix.c (irix_current_sos)
2205 (irix_open_symbol_file_object): Likewise.
2206 * remote.c (build_remote_gdbarch_data): Likewise.
2207 * prologue-value.c (make_pv_area): Likewise.
2208 * procfs.c (info_mappings_callback): Likewise.
2209 * printcmd.c (print_scalar_formatted)
2210 (deprecated_print_address_numeric): Likewise.
2211 * memattr.c (mem_info_command): Likewise.
2212 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
2213 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
2214 * exec.c (print_section_info): Likewise.
2215 * dwarf2read.c (read_subrange_type): Likewise.
2216 * dwarf2loc.c (find_location_expression): Likewise.
2217 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
2218 (signed_address_type, execute_stack_op): Likewise.
2219 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
2220 * gdbarch.c, gdbarch.h: Regenerate.
2224 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
2225 * arch-utils.c (show_architecture): Likewise.
2226 * remote-mips.c (mips_open): Likewise
2227 * nto-tdep.c (nto_find_and_open_solib)
2228 (nto_init_solib_absolute_prefix): Likewise.
2229 * nto-procfs (procfs_open): Likewise.
2230 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
2231 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
2232 * gdbarch.c, gdbarch.h: Regenerate.
2236 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
2237 * gdbtypes.c (build_flt): Likewise.
2238 * gdbarch.c, gdbarch.h: Regenerate.
2242 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
2243 gdbarch_breakpoint_from_pc.
2244 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
2245 * remote.c (remote_insert_breakpoint)
2246 (remote_insert_hw_breakpoint): Likewise.
2247 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2248 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
2249 * breakpoint.h (bp_target_info): Likewise (comment).
2250 * breakpoint.c (read_memory_nobpt): Likewise.
2251 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2252 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
2253 * gdbarch.c, gdbarch.h: Regenerate.
2257 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
2258 * solib-svr4.c (svr4_truncate_ptr): Likewise.
2259 * solib-pa64.c (read_dynamic_info): Likewise.
2260 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
2261 * solib.c (info_sharedlibrary_command): Likewise.
2262 * s390-nat.c (SUBOFF): Likewise.
2263 * p-valprint.c (pascal_val_print): Likewise.
2264 * procfs.c (info_proc_mappings): Likewise.
2265 * printcmd.c (decode_format): Likewise.
2266 * nto-tdep.c (nto_truncate_ptr): Likewise.
2267 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2268 (mips64_linux_get_longjmp_target): Likewise.
2269 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2270 * jv-valprint.c (java_value_print): Likewise.
2271 * jv-lang.c (get_java_object_header_size): Likewise.
2272 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2273 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2274 (hppa_hpux_unwind_adjust_stub): Likewise.
2275 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2276 * gdbtypes.c (make_pointer_type, make_reference_type)
2277 (smash_to_memberptr_type): Likewise.
2278 * gdbarch.c, gdbarch.h: Regenerate.
2282 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
2283 (print_gp_register_row): Stop before printing a register bigger
2284 than the ABI register size.
2285 (mips_print_registers_info): Update call to mips_print_register.
2289 * expression.h (enum exp_opcode): Document a register name for
2291 * parse.c (write_dollar_variable): Write the register name for
2293 (operator_length_standard): Expect the register name following
2295 * ada-lang.c (resolve_subexp): Likewise.
2296 * ax-gdb.c (gen_expr): Likewise.
2297 * eval.c (evaluate_subexp_standard): Likewise.
2298 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2300 * tracepoint.c (encode_actions): Likewise.
2304 * utils.c (set_screen_size): Use INT_MAX for default columns.
2308 * remote.c (remote_protocol_features): Add qXfer:spu:read and
2309 qXfer:spu:write packet types.
2313 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
2314 * gdbarch.c, gdbarch.h: Regenerate.
2318 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
2319 gdbarch_stab_reg_to_regnum.
2320 * stabsread.c (define_symbol): Likewise.
2321 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
2322 gdbarch_ecoff_reg_to_regnum.
2323 * mdebugread.c (parse_symbol): Likewise.
2324 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
2325 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
2326 gdbarch_dwarf_reg_to_regnum.
2327 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
2328 * coffread.c (process_coff_symbol): Likewise.
2329 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
2330 gdbarch_dwarf2_reg_to_regnum.
2331 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
2332 (locexpr_describe_location): Likewise.
2333 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
2334 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
2335 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
2336 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
2337 * gdbarch.c, gdbarch.h: Regenerate.
2341 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
2342 gdbarch_smash_text_address.
2343 * somread.c (som_symtab_read): Likewise.
2344 * elfread.c (record_minimal_symbol): Likewise.
2345 * dbxread.c (process_one_symbol): Likewise.
2346 * coffread.c (coff_symtab_read): Likewise.
2347 * gdbarch.c, gdbarch.h: Regenerate.
2351 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
2352 * findvar.c (value_from_register): Likewise.
2353 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
2354 * valops.c (value_assign): Likewise.
2355 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
2356 gdbarch_convert_register_p.
2357 * findvar.c (value_from_register): Likewise.
2358 * valops.c (value_assign): Likewise.
2359 * gdbarch.c, gdbarch.h: Regenerate.
2363 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
2364 gdbarch_register_sim_regno.
2365 * sim-regno.h (sim_regno): Likewise (comment).
2366 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
2367 * gdbarch.c, gdbarch.h: Regenerate.
2371 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
2372 gdbarch_virtual_frame_pointer.
2373 * tracepoint.c (encode_actions): Likewise.
2374 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
2375 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
2376 * gdbarch.c, gdbarch.h: Regenerate.
2380 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
2381 * p-lang.c (pascal_create_fundamental_type): Likewise.
2382 * objc-lang.c (objc_create_fundamental_type): Likewise.
2383 * mdebugread.c (_initialize_mdebugread): Likewise.
2384 * m2-lang.c (m2_create_fundamental_type)
2385 (_initialize_m2_language): Likewise.
2386 * gdbtypes.c (build_gdbtypes): Likewise.
2387 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2388 * doublest.c (floatformat_from_length): Likewise.
2389 * c-lang.c (c_create_fundamental_type): Likewise.
2390 * ada-lang.c (ada_create_fundamental_type)
2391 (ada_language_arch_info): Likewise.
2392 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
2393 * value.c (unpack_double): Likewise (comment).
2394 * gdbtypes.c (build_gdbtypes): Likewise.
2395 * doublest.c (floatformat_from_length): Likewise.
2396 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
2397 * valarith.c (value_binop): Likewise.
2398 * p-lang.c (pascal_create_fundamental_type): Likewise.
2399 * objc-lang.c (objc_create_fundamental_type): Likewise.
2400 * mdebugread.c (_initialize_mdebugread): Likewise.
2401 * m2-lang.c (m2_create_fundamental_type): Likewise.
2402 * gdbtypes.c (build_gdbtypes): Likewise.
2403 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2404 * doublest.c (floatformat_from_length): Likewise.
2405 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
2406 * c-lang.c (c_create_fundamental_type): Likewise.
2407 * ada-lex.l (processReal): Likewise.
2408 * ada-lang.c (ada_create_fundamental_type)
2409 (ada_language_arch_info): Likewise.
2410 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
2411 * value.c (unpack_double): Likewise (comment).
2412 * gdbtypes.c (build_gdbtypes): Likewise.
2413 * doublest.c (floatformat_from_length): Likewise.
2414 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
2415 gdbarch_long_double_bit.
2416 * p-lang.c (pascal_create_fundamental_type): Likewise.
2417 * objc-lang.c (objc_create_fundamental_type): Likewise.
2418 * m2-lang.c (m2_create_fundamental_type): Likewise.
2419 * gdbtypes.c (build_gdbtypes): Likewise.
2420 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2421 * doublest.c (floatformat_from_length): Likewise.
2422 * c-lang.c (c_create_fundamental_type): Likewise.
2423 * ada-lex.l (processReal): Likewise.
2424 * ada-lang.c (ada_create_fundamental_type)
2425 (ada_language_arch_info): Likewise.
2426 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
2427 gdbarch_long_double_format.
2428 * gdbtypes.c (build_gdbtypes): Likewise.
2429 * doublest.c (floatformat_from_length): Likewise.
2430 * gdbarch.c, gdbarch.h: Regenerate.
2434 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
2435 * ada-lang.c (ada_create_fundamental_type)
2436 (ada_language_arch_info): Likewise.
2437 * c-lang.c (c_create_fundamental_type): Likewise.
2438 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
2439 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2440 * m2-lang.c (m2_create_fundamental_type): Likewise.
2441 * objc-lang.c (objc_create_fundamental_type): Likewise.
2442 * p-lang.c (pascal_create_fundamental_type): Likewise.
2443 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
2444 * c-exp.y (parse_number): Likewise.
2445 * objc-exp.y (parse_number): Likewise.
2446 * ada-lex.l (processInt): Likewise.
2447 * f-exp.y (parse_number): Likewise.
2448 * p-exp.y (parse_number): Likewise.
2449 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
2450 (gdbtypes_post_init, build_gdbtypes): Likewise.
2451 * p-lang.c (pascal_create_fundamental_type): Likewise.
2452 * parse.c (build_parse): Likewise.
2453 * xcoffread.c (_initialize_xcoffread): Likewise.
2454 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
2455 (read_range_type): Likewise.
2456 * objc-lang.c (objc_create_fundamental_type): Likewise.
2457 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
2458 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
2459 (m2_create_fundamental_type): Likewise.
2460 * c-lang.c (c_create_fundamental_type): Likewise.
2461 * coffread.c (coff_read_enum_type): Likewise.
2462 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
2463 * dwarf2read.c (new_symbol): Likewise.
2464 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
2465 * c-exp.y (parse_number): Likewise.
2466 * objc-exp.y (parse_number): Likewise.
2467 * ada-lex.l (processInt): Likewise.
2468 * f-exp.y (parse_number): Likewise.
2469 * p-exp.y (parse_number): Likewise.
2470 * valarith.c (value_binop): Likewise.
2471 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
2472 * ada-lang.c (ada_create_fundamental_type)
2473 (ada_language_arch_info): Likewise.
2474 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2475 * symfile.c (TARGET_LONG_BYTES): Likewise.
2476 * p-lang.c (pascal_create_fundamental_type): Likewise.
2477 * objc-lang.c (objc_create_fundamental_type): Likewise.
2478 * m2-lang.c (m2_create_fundamental_type): Likewise.
2479 * f-lang.c (f_create_fundamental_type): Likewise.
2480 * c-lang.c (c_create_fundamental_type): Likewise.
2481 * coffread.c (decode_base_type): Likewise.
2482 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
2483 * c-exp.y (parse_number): Likewise.
2484 * objc-exp.y (parse_number): Likewise.
2485 * p-exp.y (parse_number): Likewise.
2486 * ada-lang.c (ada_create_fundamental_type)
2487 (ada_language_arch_info): Likewise.
2488 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
2489 * stabsread.c (read_range_type): Likewise.
2490 * p-lang.c (pascal_create_fundamental_type): Likewise.
2491 * objc-lang.c (objc_create_fundamental_type): Likewise.
2492 * m2-lang.c (m2_create_fundamental_type): Likewise.
2493 * f-lang.c (f_create_fundamental_type): Likewise.
2494 * c-lang.c (c_create_fundamental_type): Likewise.
2495 * gdbarch.c, gdbarch.h: Regenerate.
2499 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
2500 (struct frame_unwind): Add dealloc_cache.
2501 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
2503 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
2504 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
2505 (libunwind_frame_unwind): Set dealloc_cache.
2506 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
2511 * remote.c (remote_write_qxfer): New function.
2512 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
2513 (remote_read_qxfer): Do not cache empty objects.
2514 (_initialize_remote): Add PACKET_qXfer_spu_read and
2515 PACKET_qXfer_spu_write.
2519 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
2520 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
2522 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
2523 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
2524 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
2525 * spu-tdep.c (infospucmdlist): New variable.
2526 (spu_register_name): Handle additional pseudo registers.
2527 (spu_register_type): Likewise.
2528 (spu_pseudo_register_read): Likewise.
2529 (spu_pseudo_register_write): Likewise.
2530 (spu_pseudo_register_read_spu): New function.
2531 (spu_pseudo_register_write_spu): Likewise.
2532 (info_spu_event_command): New function.
2533 (info_spu_signal_command): Likewise.
2534 (info_spu_mailbox_list): Likewise.
2535 (info_spu_mailbox_command): Likewise.
2536 (spu_mfc_get_bitfield): Likewise.
2537 (info_spu_dma_cmdlist): Likewise.
2538 (info_spu_dma_command): Likewise.
2539 (info_spu_proxydma_command): Likewise.
2540 (info_spu_command): Likewise.
2541 (_initialize_spu_tdep): Install "info spu" commands.
2545 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
2546 accessing non-seekable spufs files.
2550 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
2551 gdbarch_skip_trampoline_code.
2552 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2553 * objc-lang.c (objc_skip_trampoline)
2554 (objc_submethod_helper_data): Likewise.
2555 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
2556 * infrun.c (handle_inferior_event): Likewise.
2557 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
2558 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
2559 gdbarch_in_solib_return_trampoline.
2560 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
2561 * infrun.c (handle_inferior_event): Likewise.
2562 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
2563 * gdbarch.c, gdbarch.h: Regenerate.
2567 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
2568 * symtab.c (find_function_start_sal, in_prologue): Likewise.
2569 * linespec.c (minsym_found): Likewise.
2570 * infrun.c (step_into_function): Likewise.
2571 * gdbarch.c, gdbarch.h: Regenerate.
2575 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
2576 * valops.c (value_allocate_space_in_inferior): Likewise.
2577 * gdbarch.c, gdbarch.h: Regenerate.
2581 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
2582 gdbarch_memory_insert_breakpoint.
2583 * mem-break.c (memory_insert_breakpoint): Likewise.
2584 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
2585 gdbarch_memory_remove_breakpoint.
2586 * mem-break.c (memory_remove_breakpoint): Likewise.
2587 * gdbarch.c, gdbarch.h: Regenerate.
2591 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
2592 gdbarch_fetch_tls_load_module_address.
2593 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
2594 gdbarch_fetch_tls_load_module_address_p.
2595 * gdbarch.c, gdbarch.h: Regenerate.
2599 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
2600 gdbarch_decr_pc_after_break.
2601 * tracepoint.c (trace_dump_command): Likewise.
2602 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2603 * linux-thread-db.c (check_event): Likewise.
2604 * linux-nat.c (cancel_breakpoints_callback): Likewise.
2605 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
2606 * frame.h: Likewise (comment).
2607 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
2608 * aix-thread.c (aix_thread_wait): Likewise.
2609 * gdbarch.c, gdbarch.h: Regenerate.
2613 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
2614 gdbarch_address_class_type_flags.
2615 * dwarf2read.c (read_tag_pointer_type): Likewise.
2616 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
2617 gdbarch_address_class_type_flags_p.
2618 * dwarf2read.c (read_tag_pointer_type): Likewise.
2619 * gdbarch.c, gdbarch.h: Regenerate.
2623 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
2624 * value.c (value_as_address): Likewise (comment).
2625 * remote-mips.c (common_breakpoint): Likewise.
2626 * regcache.c (read_pc_pid): Likewise.
2627 * printcmd.c (do_one_display): Likewise.
2628 * monitor.c (monitor_write_memory, monitor_read_memory)
2629 (monitor_insert_breakpoint): Likewise.
2630 * mips-tdep.c (heuristic_proc_start): Likewise.
2631 * infrun.c (insert_step_resume_breakpoint_at_frame)
2632 (insert_step_resume_breakpoint_at_caller): Likewise.
2633 * buildsym.c (record_line): Likewise.
2634 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
2635 (arm_get_next_pc): Likewise.
2636 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
2637 (store_regs): Likewise.
2638 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
2639 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
2640 * gdbarch.c, gdbarch.h: Regenerate.
2644 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
2645 * tracepoint.c (scope_info): Likewise.
2646 * target.c (debug_print_register): Likewise.
2647 * stack.c (frame_info): Likewise.
2648 * sh-tdep.c (sh_register_reggroup_p): Likewise.
2649 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
2650 (sh64_media_print_registers_info)
2651 (sh64_compact_print_registers_info): Likewise.
2652 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
2653 * remote-sim.c (gdbsim_fetch_register): Likewise.
2654 * remote.c (packet_reg): Likewise (comment).
2655 * reggroups.c (default_register_reggroup_p): Likewise.
2656 * regcache.c (regcache_dump): Likewise.
2657 * printcmd.c (address_info): Likewise.
2658 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2659 * mt-dep.c (mt_registers_info): Likewise.
2660 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
2661 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
2662 (mips_read_fp_register_double, mips_print_fp_register)
2663 (mips_print_register, print_gp_register_row, mips_print_registers_info)
2664 (mips_register_sim_regno): Likewise.
2665 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
2666 * inf-ptrace.c (inf_ptrace_fetch_register)
2667 (inf_ptrace_store_register): Likewise.
2668 * infcmd.c (default_print_registers_info): Likewise.
2669 * ia64-linux-nat.c (ia64_linux_fetch_register)
2670 (ia64_linux_store_register): Likewise.
2671 * i386-linux-nat.c (fetch_register, store_register): Likewise.
2672 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2673 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2674 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
2675 (hppa_hpux_store_register): Likewise.
2676 * findvar.c (locate_var_value): Likewise.
2677 * dwarf2loc.c (locexpr_describe_location): Likewise.
2678 * dwarf2-frame.c (execute_cfa_program): Likewise.
2679 * arm-tdep.c (arm_push_dummy_call): Likewise.
2680 * arch-utils.c (legacy_register_sim_regno): Likewise.
2681 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
2682 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2683 * mi/mi-main.c (mi_cmd_data_list_register_names)
2684 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
2685 (mi_cmd_data_write_register_values): Likewise.
2686 * gdbarch.c, gdbarch.h: Regenerate.
2690 * target-memory.c (blocks_to_erase): Correct off-by-one error.
2694 * remote.c (process_g_packet): Don't check size.
2695 * gdbarch.sh: Remove register_bytes_ok.
2696 * gdbarch.c: Regenerated.
2697 * gdbarch.h: Regenerated.
2698 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
2699 (m68k_register_bytes_ok): Remove.
2700 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
2704 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
2705 (destroy_addr_space_name): Define.
2706 (libunwind_load): Get address of destroy_addr_space function.
2707 (libunwind_frame_cache): Destroy unw_addr_space_t object before
2708 returning unsuccessfully.
2709 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
2711 (libunwind_sigtramp_frame_sniffer): Likewise.
2712 (libunwind_get_reg_special): Likewise.
2716 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
2717 gdbarch_fetch_pointer_argument.
2718 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
2719 * gdbarch.c, gdbarch.h: Regenerate.
2723 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
2724 gdbarch_have_nonsteppable_watchpoint.
2725 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
2726 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
2727 gdbarch_cannot_step_breakpoint.
2728 * infrun.c (resume): Likewise.
2729 * gdbarch.c, gdbarch.h: Regenerate.
2733 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
2734 * stack.c (print_frame_args): Likewise.
2735 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
2736 * stack.c (print_args_stub, frame_info): Likewise.
2737 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
2738 * stack.c (print_args_stub, frame_info): Likewise.
2739 * gdbarch.c, gdbarch.h: Regenerate.
2743 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
2744 gdbarch_coff_make_msymbol_special.
2745 * coffread.c (coff_symtab_read): Likewise.
2746 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
2747 gdbarch_elf_make_msymbol_special.
2748 * elfread.c (elf_symtab_read): Likewise.
2749 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
2750 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
2751 * gdbarch.c, gdbarch.h: Regenerate.
2755 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
2756 gdbarch_frame_red_zone_size.
2757 * gdbarch.c, gdbarch.h: Regenerate.
2761 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
2762 * infcall.c (call_function_by_hand): Likewise.
2763 * gcore.c (derive_stack_segment): Likewise.
2764 * frame.c (frame_id_inner): Likewise.
2765 * arch-utils.c (core_addr_lessthan): Likewise (comment).
2766 * ada-lang.c (ensure_lval): Likewise.
2767 * gdbarch.c, gdbarch.h: Regenerate.
2771 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
2772 gdbarch_address_to_pointer.
2773 * findvar.c (store_typed_address): Likewise.
2774 * gdbtypes.c (make_pointer_type): Likewise (comment).
2775 * procfs.c (procfs_address_to_host_pointer): Likewise.
2776 * std-regs.c (value_of_builtin_frame_reg): Likewise.
2777 (value_of_builtin_frame_fp_reg): Likewise.
2778 (value_of_builtin_frame_pc_reg): Likewise.
2779 * utils.c (paddress): Likewise (comment).
2780 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
2781 gdbarch_pointer_to_address.
2782 * findvar.c (extract_typed_address): Likewise.
2783 * gdbtypes.c (make_pointer_type): Likewise (comment).
2784 * valops.c (value_cast): Likewise (comment).
2785 * gdbarch.c, gdbarch.h: Regenerate.
2789 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
2790 * infrun.c (handle_inferior_event): Likewise.
2791 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
2792 gdbarch_get_longjmp_target_p.
2793 * breakpoint.c (breakpoint_re_set): Likewise.
2794 * infrun.c (handle_inferior_event): Likewise.
2795 * gdbarch.c, gdbarch.h: Regenerate.
2799 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
2800 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
2801 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
2802 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
2803 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
2804 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
2805 find_stub_with_shl_get, cover_find_stub_with_shl_get,
2806 initialize_hp_cxx_exception_support, child_enable_exception_callback,
2807 current_ex_event, child_get_current_exception_event): Remove.
2808 (hppa_hpux_inferior_created): Remove.
2809 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
2811 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
2812 (deprecated_exception_support_initialized): Remove.
2813 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
2814 (deprecated_exception_support_initialized): Remove.
2815 (breakpoint_init_inferior): Remove handling of non-zero
2816 deprecated_exception_catchpoints_are_fragile.
2818 * symtab.h (deprecated_hp_som_som_object_present): Remove.
2819 * symtab.c (deprecated_hp_som_som_object_present): Remove.
2820 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
2821 deprecated_hp_som_som_object_present.
2822 * eval.c (evaluate_subexp_standard): Likewise.
2823 * valops.c (value_cast): Likewise.
2825 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
2826 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
2827 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
2831 * objfiles.h (ImportEntry, ExportEntry): Remove types.
2832 (struct objfile): Remove import_list, import_list_size,
2833 export_list, export_list_size members.
2834 (is_in_import_list): Remove prototype.
2835 * objfiles.c (is_in_import_list): Remove.
2836 * somread.c (init_import_symbols, init_export_symbols): Remove.
2837 (som_symfile_read): Do not call init_import_symbols. Do not
2838 set objfile->export_list and objfile->export_list_size.
2842 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
2843 Use the original objfile if necessary.
2847 * defs.h (ldirname): New prototype.
2848 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
2850 * utils.c (ldirname): New function.
2851 * xml-tdesc.c (file_read_description_xml): Use ldirname.
2855 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
2859 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
2863 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
2867 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
2868 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
2869 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
2870 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
2871 (ppc_linux_in_sigtramp, insn_is_sigreturn,
2872 ppc_linux_at_sigtramp_return_path): Remove.
2876 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
2877 (xtensa_register_write_masked, xtensa_register_read_masked)
2878 (xtensa_extract_return_value, xtensa_store_return_value
2879 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
2880 TARGET_BYTE_ORDER by gdbarch_byte_order.
2881 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
2882 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
2883 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
2884 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
2885 (sh64_push_dummy_call, sh64_extract_return_value)
2886 (sh64_store_return_value, sh64_register_convert_to_virtual)
2887 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
2888 (sh64_pseudo_register_write, sh64_do_fp_register)
2889 (sh64_frame_prev_register): Likewise.
2890 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
2891 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
2892 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
2893 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
2894 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2895 * ppc-linux-nat.c (store_register): Likewise.
2896 * nto-tdep.c (nto_find_and_open_solib)
2897 (nto_init_solib_absolute_prefix): Likewise.
2898 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
2899 (mips_convert_register_p, mips_eabi_push_dummy_call)
2900 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2901 (mips_o32_push_dummy_call, mips_o32_return_value)
2902 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
2903 (mips_read_fp_register_single, mips_read_fp_register_double)
2904 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
2905 (mips_breakpoint_from_pc): Likewise.
2906 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
2907 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
2908 (mips_linux_o32_sigframe_init): Likewise.
2909 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2910 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
2911 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
2912 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
2913 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
2914 * coffread.c (process_coff_symbol): Likewise.
2915 * arm-tdep.c (convert_from_extended, convert_to_extended)
2916 (gdb_print_insn_arm): Likewise.
2920 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
2921 * i386-tdep.c (i386_dbx_reg_to_regnum)
2922 (i386_svr4_reg_to_regnum): Likewise.
2923 * inf-ptrace.c (inf_ptrace_fetch_registers)
2924 (inf_ptrace_store_registers): Likewise.
2925 * corelow.c (get_core_registers): Likewise.
2926 * i386-linux-nat.c (supply_gregset, fill_gregset)
2927 (i386_linux_fetch_inferior_registers)
2928 (i386_linux_store_inferior_registers): Likewise.
2929 * remote.c (init_remote_state,packet_reg_from_regnum)
2930 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
2931 (remote_prepare_to_store,store_registers_using_G)
2932 (remote_store_registers,remote_arch_state): Likewise.
2933 * tracepoint.c (encode_actions): Likewise.
2934 * mi/mi-main.c (mi_cmd_data_list_register_names)
2935 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2936 (mi_cmd_data_write_register_values): Likewise.
2937 * tui/tui-regs.c (tui_show_register_group)
2938 (tui_show_register_group): Likewise.
2939 * xtensa-tdep.h (FP_ALIAS): Likewise.
2940 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
2941 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
2942 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
2943 * win32-nat.c (do_win32_fetch_inferior_registers)
2944 (do_win32_store_inferior_registers,fetch_elf_core_registers
2945 * user-regs.h: Likewise (comment).
2946 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2947 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2948 * target-descriptions.h: Likewise (comment).
2949 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
2950 * target.c (debug_print_register): Likewise.
2951 * stack.c (frame_info): Likewise.
2952 * stabsread.c (define_symbol): Likewise.
2953 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
2954 (sh64_media_print_registers_info)
2955 (sh64_compact_print_registers_info): Likewise.
2956 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2957 * rs6000-nat.c (fetch_register,store_register): Likewise.
2958 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
2959 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
2960 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
2961 * remote-m32r-sdi.c (m32r_fetch_registers)
2962 (m32r_store_registers): Likewise.
2963 * reggroups.c (default_register_reggroup_p): Likewise.
2964 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
2965 (regcache_restore,regcache_dump): Likewise.
2966 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
2967 * mips-tdep.c (mips_xfer_register,mips_register_name)
2968 (mips_register_reggroup_p,mips_pseudo_register_read)
2969 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
2970 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
2971 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
2972 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
2973 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
2974 (print_gp_register_row,mips_print_registers_info)
2975 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2976 (mips_register_sim_regno): Likewise.
2977 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
2978 (mips_linux_n32n64_sigframe_init): Likewise.
2979 * mips-linux-nat.c (mips_linux_register_addr)
2980 (mips64_linux_register_addr): Likewise.
2981 * findvar.c (value_of_register): Likewise.
2982 * infcmd.c (default_print_registers_info,registers_info)
2983 (print_vector_info,print_float_info): Likewise.
2984 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
2985 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2986 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2987 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
2988 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2989 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
2990 (ia64_cannot_store_register,ia64_linux_fetch_registers)
2991 (ia64_linux_store_registers): Likewise.
2992 * hpux-thread.c (hpux_thread_fetch_registers)
2993 (hpux_thread_store_registers): Likewise.
2994 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
2995 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
2996 (h8300_register_type): Likewise.
2997 * dwarf2-frame.c (dwarf2_frame_cache)
2998 (dwarf2_frame_state_alloc_regs): Likewise.
2999 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3000 (cris_cannot_store_register,crisv32_cannot_fetch_register)
3001 (crisv32_cannot_store_register,cris_register_name): Likewise.
3002 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3003 * arch-utils.c (legacy_register_sim_regno)
3004 (legacy_virtual_frame_pointer): Likewise.
3005 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3006 * arm-tdep.h: Likewise (comment).
3007 * frv-tdep.c (frv_register_sim_regno): Likewise.
3008 * m68klinux-nat.c (old_fetch_inferior_registers)
3009 (old_store_inferior_registers): Likewise.
3010 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3011 * irix5-nat.c (fetch_core_registers): Likewise.
3012 * hppa-tdep.c (hppa_frame_cache): Likewise.
3013 * hppa-linux-nat.c (hppa_linux_register_addr)
3014 (hppa_linux_fetch_inferior_registers)
3015 (hppa_linux_store_inferior_registers): Likewise.
3016 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3017 (hppa_hpux_store_inferior_registers): Likewise.
3018 * amd64-nat.c (amd64_native_gregset_reg_offset)
3019 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3020 * dbug-rom.c (dbug_regname): Likewise.
3021 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3022 (HARD_PAGE_REGNUM (comment)): Likewise.
3023 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3024 * i386-tdep.c (i386_dbx_reg_to_regnum)
3025 (i386_svr4_reg_to_regnum): Likewise.
3026 * mi/mi-main.c (mi_cmd_data_list_register_names)
3027 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3028 (mi_cmd_data_write_register_values): Likewise.
3029 * gdbarch.c, gdbarch.h: Regenerate.
3030 * tui/tui-regs.c (tui_show_register_group): Likewise.
3031 * xtensa-tdep.h (FP_ALIAS): Likewise.
3032 * user-regs.h: Likewise (comment).
3033 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3034 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3035 * target-descriptions.h: Likewise (comment).
3036 * target.c (debug_print_register): Likewise.
3037 * stack.c (frame_info): Likewise.
3038 * stabsread.c (define_symbol): Likewise.
3039 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3040 (sh64_compact_print_registers_info): Likewise.
3041 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3042 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3043 (regcache_restore,regcache_dump): Likewise.
3044 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3045 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3046 (mips_stab_reg_to_regnum): Likewise.
3047 * findvar.c (value_of_register): Likewise.
3048 * infcmd.c (default_print_registers_info,registers_info)
3049 (print_vector_info,print_float_info): Likewise.
3050 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3051 * h8300-tdep.c (h8300_register_type): Likewise.
3052 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3053 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3054 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3055 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3056 * parse.c: Remove comment.
3057 * gdbarch.c, gdbarch.h: Regenerate
3061 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3062 gdbarch_cannot_fetch_register.
3063 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3064 * hppa-linux-nat.c (fetch_register): Likewise.
3065 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3066 * m68klinux-nat.c (fetch_register): Likewise.
3067 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3069 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3070 gdbarch_cannot_store_register.
3071 * hppa-linux-nat.c (store_register): Likewise.
3072 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3073 * regcache.c (regcache_raw_write): Likewise.
3074 * m68klinux-nat.c (store_register): Likewise.
3075 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3076 * gdbarch.c, gdbarch.h: Regenerate.
3080 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3081 * gdbarch.c, gdbarch.h: Regenerate.
3085 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3086 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3087 * gdbarch.c, gdbarch.h: Regenerate.
3091 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3092 * ax-gdb.c (gen_bitfield_ref): Likewise.
3093 * mi/mi-main.c (get_register): Likewise.
3094 * findvar.c (default_value_from_register, extract_signed_integer)
3095 (extract_unsigned_integer, extract_long_unsigned_integer)
3096 (store_signed_integer, store_unsigned_integer): Likewise.
3097 * regcache.c (regcache_dump): Likewise.
3098 * value.c (lookup_internalvar, value_of_internalvar)
3099 (set_internalvar): Likewise.
3101 * valprint.c (print_binary_chars, print_octal_chars)
3102 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3103 * infcmd.c (default_print_registers_info): Likewise.
3104 * arch-utils.c (selected_byte_order, show_endian): Likewise.
3105 * stabsread.c (define_symbol): Likewise.
3106 * doublest.c (floatformat_from_length, floatformat_from_type)
3107 (extract_typed_floating, store_typed_floating): Likewise.
3108 * gdbarch.c, gdbarch.h: Regenerate.
3112 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3113 gdbarch_call_dummy_location.
3114 * infcall.c (call_function_by_hand): Likewise.
3115 * inferior.h: Change comment.
3116 * arch-utils.c: Change comment.
3117 * gdbarch.c, gdbarch.h: Regenerate.
3121 * solib-aix5.c: Delete.
3122 * Makefile.in (solib-aix5.o): Delete rule.
3126 * breakpoint.h (enum bpstat_what_main_action): Remove
3127 BPSTAT_WHAT_THROUGH_SIGTRAMP.
3128 * infrun.c (process_event_stop_test): Do not check for it.
3133 * ser-unix.c (show_serial_hwflow): New function.
3134 (hardwire_raw): Add hardware flow control support.
3135 (_initialize_ser_hardwire): Add "set/show remoteflow".
3136 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
3137 * NEWS: Document the new command.
3141 * config/i386/tm-linux.h (sys_quotactl): Do not define.
3142 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
3143 define for i[[3456]]86-*-linux* native configurations.
3144 * config.in, configure: Regenerate.
3148 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
3149 a core file. Add comment in the function description.
3153 * c-valprint.c (c_value_print): If the initialized field of the
3154 value struct is 0, print out "[uninitialized]" before the value.
3155 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
3156 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
3157 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
3158 ctx->initialized appropriately. Verify no location op follows
3160 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
3161 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
3162 set_value_initialized.
3163 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
3164 (decode_locdesc): Add case for DW_OP_GNU_uninit.
3165 * value.c (struct value): New field, initialized.
3166 (allocate_value): Initialize new field.
3167 (set_value_initialized): New function.
3168 (value_initialized): New function.
3169 * value.h (value_initialized): New extern declaration.
3170 (set_value_initialized): Likewise.
3174 * MAINTAINERS (Write After Approval): Add self.
3178 * gdbtypes.c (make_reference_type): Preserve the type chain
3179 and set the length of all the variants of the pointer type.
3183 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
3184 and set the length of all the variants of the pointer type.
3188 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
3190 (mips_o64_push_dummy_call): Reformat a comment.
3194 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
3195 (score_prologue_frame_base_address): Return fp to keep gdb print
3196 local variables correctly when debugging information is stabs.
3198 (score_analyze_prologue): For software watchpoint, fetch all the
3199 instructions from range [startaddr, pc] once and identify them locally
3200 to reduce memory access.
3201 (score_malloc_and_get_memblock, score_free_memblock)
3202 (score_adjust_memblock_ptr): New functions.
3203 (score_fetch_inst): Fetch single instruction or mutiple instructions.
3205 (score_target_can_use_watch, score_stopped_by_watch)
3206 (score_target_insert_watchpoint, score_target_remove_watchpoint)
3207 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
3208 New functions for remote & local hw-watchpoint and hw-breakpoint.
3212 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
3213 declarations as well.
3217 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
3218 * config/arm/tm-embed.h: Delete file.
3220 * arm-tdep.h (arm_software_single_step): Declare.
3221 * arm-tdep.c (arm_software_single_step): Make global.
3222 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
3224 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
3225 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
3226 * armobsd-tdep.c (armobsd_init_abi): ... here ...
3227 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
3229 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
3230 allow defines to be overriden by TM file.
3231 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
3232 change default to {0xbe,0xbe}.
3233 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
3234 arm_obsd_thumb_be_breakpoint): New global variables.
3235 (armobsd_init_abi): Override tdep->thumb_breakpoint and
3236 tdep->thumb_breakpoint_size.
3237 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
3238 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
3239 tdep->thumb_breakpoint_size.
3241 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
3245 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
3248 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
3249 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
3250 (mips_stack_argsize_string, mips_stack_argsize): Delete.
3251 (mips_abi_regsize): Simplify.
3252 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3253 (mips_n32n64_return_value, mips_o32_push_dummy_call)
3254 (mips_o32_return_value, mips_o64_push_dummy_call)
3255 (mips_o64_return_value): Propogate constant register sizes. Use the
3256 ABI register size instead of mips_stack_argsize.
3257 (mips_dump_tdep): Don't print mips_stack_argsize.
3258 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
3263 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
3264 * config/mips/tm-linux.h: Delete.
3265 * mips-linux-tdep.c (mips_svr4_so_ops): New.
3266 (mips_linux_in_dynsym_resolve_code): Make static. Use
3267 svr4_in_dynsym_resolve_code.
3268 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
3270 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
3272 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
3273 * Makefile.in (mips-linux-tdep.o): Update.
3274 * solib.c (set_solib_ops): New.
3275 (current_target_so_ops): Update comment.
3276 * solib.h (set_solib_ops): New prototype.
3280 * printcmd.c (do_examine): Fix typos in a comment.
3284 * configure.ac: Allow sysroots to be relocated under $prefix as
3285 well as $exec_prefix.
3286 * configure: Regenerate.
3290 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
3291 (offsetof): Do not define.
3292 (find_stub_with_shl_get): Use numerical value 3 instead of
3293 symbolic value TYPE_PROCEDURE.
3297 * gdb_proc_service.h (paddr_t): Delete typedef.
3298 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
3299 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
3300 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
3301 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
3302 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
3303 * Makefile.in (proc-service.o): Update.
3307 * Makefile.in (mips-tdep.o): Update.
3308 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
3313 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
3314 instead of store_typed_address.
3315 * value.c (pack_long): New.
3316 (value_from_longest): Use it.
3317 * value.h (pack_long): New prototype.
3321 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
3322 DW_EH_PE_signed if appropriate.
3327 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
3329 (dwarf_decode_lines): Check for line info without a file.
3333 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
3338 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
3340 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
3342 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
3346 * gdbarch.sh (read_sp): Remove.
3347 * gdbarch.c, gdbarch.h: Regenerate.
3348 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
3350 * avr-tdep.c (avr_read_sp): Remove.
3351 (avr_unwind_sp): New function.
3352 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
3353 * mips-tdep.c (mips_read_sp): Remove.
3354 (mips_unwind_sp): New function.
3355 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
3356 * score-tdep.c (score_read_unsigned_register): Remove.
3357 (score_read_sp): Remove.
3358 (score_unwind_sp): New function.
3359 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
3363 * buildsym.c (start_subfile): Handle absolute pathnames
3364 while comparing subfile names.
3368 * hppa-hpux-tdep.c: Include "regcache.h".
3369 * hppa-linux-tdep.c: Likewise.
3370 * hppa-tdep.c: Include "gdb_stdint.h".
3371 (find_unwind_entry): Cast host pointer to uintptr_t before passing
3373 * Makefile.in: Update dependencies.
3377 * blockframe.c: Remove obsolete comments.
3378 * alpha-nat.c (fetch_osf_core_registers): Update comment.
3379 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
3380 * hppa-tdep.h (enum hppa_regnum): Likewise.
3381 * mips-tdep.h: Likewise.
3382 * m68hc11-tdep.c: Likewise.
3386 * inferior.h (read_sp): Remove prototype.
3387 * regcache.c (read_sp): Remove.
3388 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
3389 * infcall.c (call_function_by_hand): Likewise.
3390 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
3392 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3396 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
3397 instead of read_register and read_register_pid.
3399 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
3400 argument instead of PTID. Use regcache functions instead of
3402 (ia64_linux_insert_watchpoint): Update call.
3403 (ia64_linux_stopped_data_address): Use regcache functions
3404 instead of read_register_pid and write_register_pid.
3408 * libunwind-frame.h (struct regcache): Add forward declaration.
3409 (libunwind_get_reg_special): Add REGCACHE argument.
3410 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
3411 argument. Pass it to unw_init_remote_p.
3413 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
3414 libunwind_get_reg_special.
3415 (ia64_access_reg): Remove "write" case.
3416 (ia64_access_fpreg): Likewise. Read from next_frame passed
3417 as callback argument instead of from current_regcache.
3418 (ia64_access_rse_reg): Remove "write" case. Read from regcache
3419 passed as callback argument instead of from current_regcache.
3420 (ia64_access_rse_fpreg): New function.
3421 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
3425 * NEWS: Mention SPU overlay support.
3429 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
3433 * breakpoint.c (remove_breakpoint): Do not remove software
3434 breakpoints in unmapped overlay sections.
3438 * spu-tdep.c: Include "observer.h".
3439 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
3440 (spu_overlay_data): New variable.
3441 (struct spu_overlay_table): New type.
3442 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
3443 spu_overlay_new_objfile): New functions.
3444 (spu_gdbarch_init): Install spu_overlay_update.
3445 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
3446 allocate spu_overlay_data objfile data.
3450 * gdbarch.sh (overlay_update): New gdbarch function.
3451 (struct obj_section): Add forward declaration.
3452 * gdbarch.c, gdbarch.h: Regenerate.
3454 * symfile.c (simple_overlay_update): Make global.
3455 (target_overlay_update): Remove variable.
3456 (overlay_is_mapped): Call gdbarch_overlay_update instead of
3457 target_overlay_update.
3458 (overlay_load_command): Likewise.
3459 * symfile.h (struct obj_section): Add forward declaration.
3460 (simple_overlay_update): Add prototype.
3462 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
3466 * observer.sh: Add "struct objfile" forward declaration.
3467 * target.h (deprecated_target_new_objfile_hook): Remove.
3468 * symfile.c (deprecated_target_new_objfile_hook): Remove.
3469 (clear_symtab_users): Call observer_notify_new_objfile.
3470 (symbol_file_add_with_addrs_or_offsets): Likewise.
3471 * rs6000-nat.c: Include "observer.h".
3472 (vmap_ldinfo): Call observer_notify_new_objfile.
3473 (xcoff_relocate_core): Likewise.
3474 * remote.c (remote_new_objfile_chain): Remove.
3475 (remote_new_objfile): Do not call remote_new_objfile_chain.
3476 (_initialize_remote): Use observer_attach_new_objfile.
3477 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
3478 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
3479 (_initialize_tui_hooks): Use observer_attach_new_objfile.
3480 * aix-thread.c: Include "observer.h".
3481 (target_new_objfile_chain): Remove.
3482 (new_objfile): Do not call target_new_objfile_chain.
3483 (_initialize_aix_thread): Use observer_attach_new_objfile.
3484 * hpux-thread.c: Include "observer.h"
3485 (target_new_objfile_chain): Remove.
3486 (hpux_thread_new_objfile): Make static. Do not call
3487 target_new_objfile_chain.
3488 (_initialize_hpux_thread): Use observer_attach_new_objfile.
3489 * linux-thread-db.c: Include "observer.h".
3490 (target_new_objfile_chain): Remove.
3491 (thread_db_new_objfile): Do not call target_new_objfile_chain.
3492 (_initialize_thread_db): Use observer_attach_new_objfile.
3493 * sol-thread.c: Include "observer.h".
3494 (target_new_objfile_chain): Remove.
3495 (sol_thread_new_objfile): Make static. Do not call
3496 target_new_objfile_chain.
3497 (_initialize_sol_thread): Use observer_attach_new_objfile.
3498 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
3499 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
3504 * gdbarch.sh (remote_translate_xfer_address): Remove.
3505 * gdbarch.h, gdbarch.c: Regenerate.
3506 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
3507 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
3508 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
3509 call gdbarch_remote_translate_xfer_address.
3510 * frv-tdep.c (frv_gdbarch_init): Do not call
3511 set_gdbarch_remote_translate_xfer_address.
3512 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
3513 (ia64_gdbarch_init): Do not install it.
3517 * NEWS: Mention change in handling the -tui option.
3521 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
3526 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
3527 (breakpoint_inserted_here_p): Call it.
3528 (software_breakpoint_inserted_here_p): Likewise.
3532 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
3533 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
3534 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
3535 (inf_ptrace_store_register): Likewise.
3536 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
3537 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
3539 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
3541 * linux-nat.c (linux_trad_target): Adapt parameter list.
3542 * linux-nat.h (linux_trad_target): Likewise.
3544 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
3546 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
3547 (mips_linux_cannot_store_register): Likewise.
3548 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
3549 Return (CORE_ADDR) -1 for registers that cannot be fetched or
3550 stored via ptrace. Use GDBARCH instead of current_gdbarch.
3551 (mips64_linux_register_addr): Likewise.
3552 (mips_linux_register_u_offset): Adapt parameter list. Pass
3553 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
3555 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3556 * config/mips/nm-linux.h: Delete file.
3560 * remote.c (remote_detach): Error out if remote can't detach.
3564 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
3565 instruction's opcode in the "opcode" variable and declares new
3566 variable "closing_insn".
3571 * cli/cli-setshow.c (do_setshow_command): Remove trailing
3572 whitespace when setting a var_filename.
3576 * main.c (captured_main): Recognize -tui option and print an error
3577 message when the TUI is not configured.
3581 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
3582 set removed members.
3583 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
3587 * gdbarch.sh (deprecated_store_struct_return): Remove.
3588 * gdbarch.c, gdbarch.h: Regenerate.
3589 * frv-tdep.c (frv_store_struct_return): Remove.
3590 (frv_gdbarch_init): Do not install it.
3594 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
3595 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
3596 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
3600 * spu-linux-nat.c: Include "gdb_stdint.h".
3601 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
3602 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
3603 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
3604 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
3605 (spu_child_wait): Mark up string for translation.
3610 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
3611 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
3612 BC_INSTRUCTION): Define.
3613 (deal_with_atomic_sequence): New function.
3614 (rs6000_software_single_step): Call deal_with_atomic_sequence.
3615 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
3616 gdbarch_software_single_step routine.
3620 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
3621 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
3622 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
3623 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
3624 spu_child_post_attach, spu_fetch_inferior_registers,
3625 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
3626 memory addresses as ULONGEST, not CORE_ADDR.
3630 * gdbarch.sh: Add skip_permanent_breakpoint callback.
3631 * gdbarch.h, gdbarch.c: Regenerate.
3633 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
3634 (resume): Call gdbarch_skip_permanent_breakpoint instead of
3635 SKIP_PERMANENT_BREAKPOINT. Inline default case.
3637 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
3638 Add REGCACHE argument. Use it instead of read/write_register.
3639 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
3641 * config/pa/tm-hppah.h: Delete file.
3642 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
3643 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
3647 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
3648 * NEWS: Mention improved C++ thunk support.
3649 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
3650 * cp-abi.c (cplus_skip_trampoline): New.
3651 * cp-abi.h (cplus_skip_trampoline): New prototype.
3652 (struct cp_abi_ops): Add skip_trampoline member.
3653 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
3654 (init_gnuv3_ops): Set skip_trampoline.
3658 * rs6000-tdep.c (struct frame_extra_info): Delete.
3662 * linux-thread-db.c: Update some FIXME comments.
3663 (thread_db_xfer_partial): Delete.
3664 (init_thread_db_ops): Do not set to_xfer_partial.
3668 * inftarg.c, infptrace.c: Remove files.
3669 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
3670 (inftarg.o, infptrace.o): Remove rules.
3671 * gdbcore.h (register_addr): Remove prototype.
3672 * inferior.h (kill_inferior, store_inferior_registers,
3673 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
3674 call_ptrace, pre_fork_inferior): Remove prototypes.
3675 * target.h (child_xfer_memory, child_pid_to_exec_file,
3676 child_core_file_to_sym_file, child_post_attach,
3677 child_post_startup_inferior, child_acknowledge_created_inferior,
3678 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
3679 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
3680 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
3681 child_follow_fork, child_reported_exec_events_per_exec_call,
3682 child_has_exited, child_thread_alive): Remove prototypes.
3686 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
3687 (sparc_store_inferior_registers): Likewise.
3688 * sparc-nat.c (fetch_inferior_registers): Rename to ...
3689 (sparc_fetch_inferior_registers): ... this.
3690 (store_inferior_registers): Rename to ...
3691 (sparc_store_inferior_registers): ... this.
3692 (sparc_target): Update callback names.
3693 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
3694 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
3698 * linux-nat.c (child_post_attach): Rename to ...
3699 (linux_child_post_attach): ... this. Make static.
3700 (child_follow_fork): Rename to ...
3701 (linux_child_follow_fork): ... this. Make static.
3702 (child_insert_fork_catchpoint): Rename to ...
3703 (linux_child_insert_fork_catchpoint): ... this. Make static.
3704 (child_insert_vfork_catchpoint): Rename to ...
3705 (linux_child_insert_vfork_catchpoint): ... this. Make static.
3706 (child_insert_exec_catchpoint): Rename to ...
3707 (linux_child_insert_exec_catchpoint): ... this. Make static.
3708 (child_pid_to_exec_file): Rename to ...
3709 (linux_child_pid_to_exec_file): ... this. Make static.
3711 (linux_handle_extended_wait): Update call.
3712 (linux_xfer_partial): Update callback routine names.
3716 * configure.host (alpha*-*-osf[12]*): Remove support.
3717 * NEWS: Mention removed configurations.
3719 * config/alpha/alpha-osf1.mh: Delete file.
3720 * config/alpha/alpha-osf2.mh: Delete file.
3721 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
3723 * config/alpha/nm-osf.h: Delete file.
3724 * config/alpha/nm-osf2.h: Delete file.
3725 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
3726 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
3727 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
3729 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
3730 (register_addr, kernel_u_size): Remove.
3731 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
3735 * regcache.c (regcache_invalidate): New function.
3736 (register_cached): Remove.
3737 (set_register_cached): Remove.
3738 (deprecated_registers_fetched): Remove.
3739 (registers_changed): Use regcache_invalidate instead
3740 of set_register_cached.
3741 (regcache_raw_read): Update comment.
3743 * regcache.h (regcache_invalidate): Add prototype.
3744 (register_cached): Remove.
3745 (set_register_cached): Remove.
3746 (deprecated_registers_fetched): Remove.
3748 * findvar.c (value_of_register): Do not call register_cached.
3749 * frame.c (frame_register): Likewise.
3750 * tui/tui-regs.c (tui_get_register): Likewise.
3752 * remote.c (fetch_register_using_p): Do not call set_register_cached.
3753 (process_g_packet): Likewise.
3754 (remote_fetch_registers): Likewise.
3755 * remote-sim.c (gdbsim_fetch_register): Likewise.
3756 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
3757 by regcache_invalidate.
3758 (mt_pseudo_register_write): Likewise.
3759 * sh-tdep.c (sh_pseudo_register_write): Likewise.
3761 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
3762 call by loop over regcache_raw_supply (..., NULL).
3766 * target.h (struct target_ops): Add REGCACHE parameter to
3767 to_prepare_to_store.
3768 (target_prepare_to_store): Likewise.
3769 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
3770 (update_current_target): Adapt prepare_to_store de_fault rule.
3772 * regcache.c (regcache_raw_write): Pass regcache to
3773 target_prepare_to_store.
3775 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
3776 Do not call CHILD_PREPARE_TO_STORE.
3777 * gnu-nat.c (gnu_prepare_to_store): Likewise.
3778 * procfs.c (procfs_prepare_to_store): Likewise.
3780 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
3781 * go32-nat.c (go32_prepare_to_store): Likewise.
3782 * monitor.c (monitor_prepare_to_store): Likewise.
3783 * nto-procfs.c (procfs_prepare_to_store): Likewise.
3784 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
3785 * remote-mips.c (mips_prepare_to_store): Likewise.
3786 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
3787 * win32-nat.c (win32_prepare_to_store): Likewise.
3789 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
3790 Use it instead of current_regcache.
3792 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
3793 parameter. Pass it on to next target.
3794 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
3798 * target.h (struct regcache): Add forward declaration.
3799 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
3800 and to_store_registers target operations.
3801 (target_fetch_registers, target_store_registers): Update.
3803 * regcache.c (regcache_raw_read): Replace register_cached by
3804 regcache_valid_p. Pass regcache to target_fetch_registers.
3805 (regcache_raw_write): Pass regcache to target_store_registers.
3807 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
3808 store_regs, store_wmmx_regs): Replace register_cached by
3811 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
3812 to target_fetch_registers calls.
3813 * corelow.c (core_open): Likewise.
3814 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
3815 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3816 ps_lsetfpregs): Likewise.
3817 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
3818 ps_lsetfpregs): Likewise.
3819 * win32-nat.c (win32_resume): Likewise.
3820 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
3821 to target_store_registers call.
3822 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3824 * inferior.h (store_inferior_registers): Update prototype.
3825 (fetch_inferior_registers): Likewise.
3826 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
3827 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
3828 Update function pointer signatures.
3830 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
3831 use it instead of current_regcache, update calls.
3832 (aix_thread_store_registers): Likewise.
3833 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
3834 (alphabsd_store_inferior_registers): Likewise.
3835 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
3836 (amd64bsd_store_inferior_registers): Likewise.
3837 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
3838 (amd64_linux_store_inferior_registers): Likewise.
3839 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
3840 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
3841 fetch_wmmx_regs, store_wmmx_regs): Likewise.
3842 (arm_linux_fetch_inferior_registers): Likewise.
3843 (arm_linux_store_inferior_registers): Likewise.
3844 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
3845 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
3846 (store_register, store_regs, store_fp_register, store_fp_regs,
3847 armnbsd_store_registers): Likewise.
3848 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
3849 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
3850 (bsd_uthread_store_registers): Likewise.
3851 * corelow.c (get_core_registers): Likewise.
3852 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
3853 go32_store_registers): Likewise.
3854 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
3855 (hppabsd_store_registers): Likewise.
3856 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
3857 (hppa_hpux_fetch_inferior_registers): Likewise.
3858 (hppa_hpux_store_register): Likewise.
3859 (hppa_hpux_store_inferior_registers): Likewise.
3860 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3861 (hppa_linux_fetch_inferior_registers): Likewise.
3862 (hppa_linux_store_inferior_registers): Likewise.
3863 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
3864 (hpux_thread_store_registers): Likewise.
3865 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
3866 (i386bsd_store_inferior_registers): Likewise.
3867 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
3868 gnu_store_registers): Likewise.
3869 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
3870 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
3872 (i386_linux_fetch_inferior_registers): Likewise.
3873 (i386_linux_store_inferior_registers): Likewise.
3874 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
3875 (ia64_linux_fetch_registers): Likewise.
3876 (ia64_linux_store_register): Likewise.
3877 (ia64_linux_store_registers): Likewise.
3878 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3879 (inf_child_store_inferior_registers): Likewise.
3880 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3881 (inf_ptrace_fetch_registers): Likewise.
3882 (inf_ptrace_store_register): Likewise.
3883 (inf_ptrace_store_registers): Likewise.
3884 * infptrace.c (fetch_register, store_register): Likewise.
3885 (fetch_inferior_registers, store_inferior_registers): Likewise.
3886 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
3887 (m32r_linux_fetch_inferior_registers): Likewise.
3888 (m32r_linux_store_inferior_registers): Likewise.
3889 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
3890 (m68kbsd_store_inferior_registers): Likewise.
3891 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
3892 store_register, old_store_inferior_registers, fetch_regs, store_regs,
3893 fetch_fpregs, store_fpregs): Likewise.
3894 (m68k_linux_fetch_inferior_registers): Likewise.
3895 (m68k_linux_store_inferior_registers): Likewise.
3896 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
3897 (m88kbsd_store_inferior_registers): Likewise.
3898 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
3899 (mips64obsd_store_inferior_registers): Likewise.
3900 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
3901 (mips64_linux_regsets_store_registers): Likewise.
3902 (mips64_linux_fetch_registers): Likewise.
3903 (mips64_linux_store_registers): Likewise.
3904 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
3905 (mipsnbsd_store_inferior_registers): Likewise.
3906 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
3907 (monitor_fetch_registers, monitor_store_registers): Likewise.
3908 * nto-procfs.c (procfs_fetch_registers): Likewise.
3909 (procfs_store_registers): Likewise.
3910 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
3911 fetch_register, supply_vrregset, fetch_altivec_registers,
3912 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
3913 (store_altivec_register, store_spe_register, store_register,
3914 fill_vrregset, store_altivec_registers, store_ppc_registers,
3915 ppc_linux_store_inferior_registers): Likewise.
3916 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
3917 (ppcnbsd_store_inferior_registers): Likewise.
3918 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
3919 (ppcobsd_store_registers): Likewise.
3920 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
3921 * remote.c (fetch_register_using_p, process_g_packet,
3922 fetch_registers_using_g, remote_fetch_registers): Likewise.
3923 (store_register_using_P, store_registers_using_G,
3924 remote_store_registers): Likewise.
3925 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
3926 m32r_store_register, m32r_store_register): Likewise.
3927 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
3928 * remote-sim.c (gdbsim_fetch_register): Likewise.
3929 (gdbsim_store_register): Likewise.
3930 * rs6000-nat.c (fetch_register, store_register): Likewise.
3931 (rs6000_fetch_inferior_registers): Likewise.
3932 (rs6000_store_inferior_registers): Likewise.
3933 * s390-nat.c (fetch_regs, store_regs): Likewise.
3934 (fetch_fpregs, store_fpregs): Likewise.
3935 (s390_linux_fetch_inferior_registers): Likewise.
3936 (s390_linux_store_inferior_registers): Likewise.
3937 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
3938 (shnbsd_store_inferior_registers): Likewise.
3939 * sol-thread.c (sol_thread_fetch_registers): Likewise.
3940 (sol_thread_store_registers): Likewise.
3941 * sparc-nat.c (fetch_inferior_registers): Likewise.
3942 (store_inferior_registers): Likewise.
3943 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3944 (spu_store_inferior_registers): Likewise.
3945 * target.c (debug_print_register): Likewise.
3946 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
3947 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
3948 (vaxbsd_store_inferior_registers): Likewise.
3949 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
3950 (win32_fetch_inferior_registers): Likewise.
3951 (win32_store_inferior_registers): Likewise.
3955 * gdbcore.h (struct regcache): Add forward declaration.
3956 (struct core_fns): Add REGCACHE argument to core_read_registers
3958 * corelow.c (get_core_register_section): Add REGCACHE argument,
3959 use it instead of current_regcache, pass it to core_read_registers
3961 (get_core_registers): Add current_regcache as parameter to
3962 get_core_register_section calls.
3964 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
3965 use it instead of current_regcache.
3966 * armnbsd-nat.c (fetch_core_registers): Likewise.
3967 (fetch_elfcore_registers): Likewise.
3968 * core-regset.c (fetch_core_registers): Likewise.
3969 * cris-tdep.c (fetch_core_registers): Likewise.
3970 * irix5-nat.c (fetch_core_registers): Likewise.
3971 * m68klinux-nat.c (fetch_core_registers): Likewise.
3972 * mips-linux-tdep.c (fetch_core_registers): Likewise.
3973 * win32-nat.c (fetch_elf_core_registers): Likewise.
3977 * gregset.h (struct regcache): Add forward declaration.
3978 (supply_gregset): Add REGCACHE parameter, make GREGS const.
3979 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
3980 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
3981 (fill_gregset): Add REGCACHE parameter.
3982 (fill_fpregset): Likewise.
3983 (fill_fpxregset): Likewise.
3985 Update all definitions accordingly:
3986 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
3987 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
3988 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
3989 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
3990 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
3991 (supply_gregset): Add REGCACHE parameter, use it instead of
3992 current_regcache. Make GREGSETP parameter const, adapt casts.
3993 (supply_fpregset): Add REGCACHE parameter, use it instead of
3994 current_regcache. Make FPREGSETP parameter const, adapt casts.
3995 (fill_gregset): Add REGCACHE parameter, use it instead of
3997 (fill_fpregset): Likewise.
3999 Update all callers to pass in current_regcache as the new argument:
4000 * core-regset.c: Include "regcache.h".
4001 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4002 * procfs.c: Include "regcache.h".
4003 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4004 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4005 (procfs_do_thread_registers): Likewise.
4006 (procfs_make_note_section): Likewise.
4007 * proc-service.c: Include "regcache.h".
4008 (ps_lgetregs): Update fill_gregset call.
4009 (ps_lsetregs): Update supply_gregset call.
4010 (ps_lgetfpregs): Update fill_fpregset call.
4011 (ps_lsetfpregs): Update supply_fpregset call.
4012 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4013 supply_fpregset calls.
4014 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4015 (ps_lgetregs): Update fill_gregset call.
4016 (ps_lsetregs): Update supply_gregset call.
4017 (ps_lgetfpregs): Update fill_fpregset call.
4018 (ps_lsetfpregs): Update supply_fpregset call.
4020 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4021 fill_fpregset, and fill_fpxregset calls.
4022 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4023 (store_regs): Update fill_gregset call.
4024 (fetch_fpregs): Update supply_fpregset call.
4025 (store_fpregs): Update fill_fpregset call.
4026 (fetch_fpxregs): Update supply_fpxregset call.
4027 (store_fpxregs): Update fill_fpxregset call.
4028 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4029 (store_regs): Update fill_gregset call.
4030 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4031 (store_regs): Update fill_gregset call.
4032 (fetch_fpregs): Update supply_fpregset call.
4033 (store_fpregs): Update fill_fpregset call.
4034 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4035 * s390-nat.c (fetch_regs): Update supply_gregset call.
4036 (store_regs): Update fill_gregset call.
4037 (fetch_fpregs): Update supply_fpregset call.
4038 (store_fpregs): Update fill_fpregset call.
4040 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4045 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4046 it instead of current_regcache.
4047 (parse_register_dump): Add REGCACHE parameter, pass it to
4048 supply_register callback.
4049 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4050 parse_register_dump.
4051 (monitor_dump_regs): Add REGCACHE parameter, pass it to
4052 parse_register_dump and dumpregs callback.
4053 (monitor_wait): Pass current_regcache to parse_register_dump and
4055 (monitor_fetch_register): Pass current_regcache to
4056 monitor_supply_register.
4057 (monitor_fetch_registers): Pass current_regcache to
4059 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4060 supply_register and dumpregs callbacks.
4061 (monitor_supply_register, monitor_dump_reg_block): Update
4063 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
4064 it to monitor_supply_register.
4065 * dink32-rom.c (dink32_supply_register): Likewise.
4066 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4067 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
4068 instead of current_regcache.
4072 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4073 Add REGCACHE parameter. Use it instead of current_regcache.
4074 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4075 i386nto_supply_gregset and i386nto_supply_fpregset.
4076 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4077 of current_regcache.
4079 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4080 nto_supply_ helper functions.
4081 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4083 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4085 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4086 supply_greget, supply_fpregset, supply_altregset, supply_regset,
4087 and regset_fill member function pointers.
4088 (nto_dummy_supply_regset): Adapt prototype.
4092 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4093 instead of current_regcache. Make REGS const.
4094 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4095 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4097 * shnbsd-nat.c: Include "regcache.h".
4098 (shnbsd_fetch_inferior_registers): Pass current_regcache to
4100 (shnbsd_store_inferior_registers): Pass current_regcache to
4102 * Makefile.in (shbsd-nat.o): Update dependencies.
4106 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
4107 instead of current_regcache.
4108 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
4109 Make GREGSETP const, remove superfluous casts.
4110 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4111 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
4113 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4114 (supply_64bit_reg): Likewise
4115 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
4116 Make GREGSETP const, adapt casts accordingly.
4117 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4118 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
4120 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4121 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4123 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4124 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4125 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4127 * mips-linux-nat.c: Include "regcache.h".
4128 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4129 current_regcache to mips{64}_(supply|fill)_ helper routines.
4130 (mips64_linux_regsets_fetch_registers): Likewise.
4131 (mips64_linux_regsets_store_registers): Likewise.
4133 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
4134 REGCACHE argument; replace current_regcache. Make REGS const.
4135 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
4136 replace current_regcache.
4137 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
4138 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
4139 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
4140 mipsnbsd_store_inferior_registers): Pass current_regcache to
4141 mipsnbsd_(supply|fill)_... helper routines.
4143 * Makefile.in (mips-linux-nat.o): Update dependencies.
4147 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
4148 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
4149 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
4150 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
4151 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
4152 * i386gnu-nat.c (store_fpregs): Likewise.
4153 * i386v4-nat.c (fill_fpregset): Likewise.
4154 * go32-nat.c (store_register, go32_store_registers): Likewise.
4158 * cris-tdep.c (supply_gregset): Rename to ...
4159 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
4160 instead of current_regcache.
4161 (fetch_core_registers): Update call. Pass current_regcache.
4165 * arnmnbsd-nat.c (supply_gregset): Rename to ...
4166 (arm_supply_gregset): ... this. Add REGCACHE parameter.
4167 Use it instead of current_regcache.
4168 (supply_fparegset): Rename to ...
4169 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
4170 Use it instead of current_regcache.
4171 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
4172 (fetch_core_registers, fetch_elfcore_registers): Likewise.
4176 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
4177 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
4178 use it instead of current_regcache.
4179 * alpha-tdep.h (struct regcache): Add forward declaration.
4180 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
4181 alpha_fill_fp_regs): Update prototypes.
4183 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
4184 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
4185 * alpha-linux-nat.c: Include "regcache.h".
4186 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
4187 current_regcache to alpha_supply/fill_ routines.
4189 * alphabsd-tdep.c: Include "regcache.h".
4190 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
4191 pass it to alpha_supply_ routines. Make REGS const.
4192 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
4193 pass it to alpha_fill_ routines.
4194 * alphabsd-tdep.h (struct regcache): Add forward declaration.
4195 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
4196 alphabsd_fill_fpreg): Update prototypes.
4198 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4199 fill_fpregset, alphabsd_fetch_inferior_registers,
4200 alphabsd_store_inferior_registers): Pass current_regcache to
4201 alphabsd_supply/fill_ routines.
4203 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
4208 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4209 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
4210 instead of current_regcache.
4211 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
4212 REGCACHE parameter, pass it to supply_ routines.
4213 (aix_thread_fetch_registers): Pass current_regcache to
4214 fetch_regs_user_thread and fetch_regs_kernel_thread.
4216 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
4217 Add REGCACHE parameter, use it instead of current_regcache.
4218 Call regcache_valid_p instead of register_cached.
4219 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
4220 Also, pass REGCACHE to fill_ routines.
4221 (aix_thread_store_registers): Pass current_regcache to
4222 store_regs_user_thread and store_regs_kernel_thread.
4226 * m32r-linux-nat.c (supply_gregset): Do not modify contents
4227 pointed to by GREGSETP.
4231 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
4232 of regcache_raw_read_signed.
4233 (fill_fpregset): Use regcache_raw_collect instead of
4238 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
4239 point arguments, test explicitly for use of the EABI32 ABI
4240 instead of inferring this condition from tests on register
4245 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
4246 prior to allocating its location.
4250 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
4251 based on mips_abi_regsize() whose result is known in advance.
4252 (mips_o64_push_dummy_call): Likewise.
4256 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
4257 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
4259 * mips-linux-nat.c: Include "gregset.h".
4260 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
4261 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
4262 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
4263 fill_fpregset): Move to mips-linux-nat.c.
4265 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
4269 * regcache.c (deprecated_read_register_gen): Remove, inline ...
4270 (read_register): ... here.
4271 (deprecated_write_register_gen): Remove, inline ...
4272 (write_register): ... here.
4273 * regcache.h (deprecated_read_register_gen): Remove prototype.
4274 (deprecated_write_register_gen): Likewise.
4276 * remote-sim.c (gdbsim_store_register): Replace call to
4277 deprecated_read_register_gen with regcache_cooked_read.
4278 * target.c (debug_print_register): Replace calls to
4279 deprecated_read_register_gen and read_register with
4280 regcache_cooked_read.
4284 * hpux-thread.c (hpux_thread_store_registers): Use
4285 regcache_raw_collect, not regcache_raw_read.
4286 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
4287 not regcache_raw_write.
4291 * gdbarch.sh: Remove deprecated_register_byte.
4292 * gdbarch.c, gdbarch.h: Regenerate.
4293 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
4294 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
4296 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
4297 * regcache.c (regcache_valid_p): Allow to query cooked registers in
4298 read-only register caches. Make REGCACHE parameter const.
4299 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
4301 * mi/mi-main.c (old_regs): Remove.
4302 (mi_setup_architecture_data, _initialize_mi_main): Remove.
4303 (register_changed_p): Reimplement to compare two register caches.
4304 (mi_cmd_data_list_changed_registers): Update caller.
4305 * mi/mi-main.h (mi_setup_architecture_data): Remove.
4306 * mi/mi-interp.c (mi_interpreter_init): Do not call
4307 mi_setup_architecture_data.
4311 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
4312 inline definition at the places the macros are used.
4313 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
4317 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
4319 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
4320 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
4321 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
4322 (rs6000_aix_regset_from_core_section): New function.
4323 (rs6000_aix_init_osabi): Register it.
4324 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
4325 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
4326 * rs6000-nat.c (CoreRegs): Do not define type.
4327 (fetch_core_registers, rs6000_core_fns): Remove.
4328 (_initialize_core_rs6000): Do not register it. Rename to ...
4329 (_initialize_rs6000_nat): ... this.
4330 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
4334 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
4335 (dwarf2_read_address): Sign extend return address as required by
4336 target architecture.
4340 * solib-frv.c (lm_base): Bail out if the main executable has
4345 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
4346 of FPCR register in fpregset.
4350 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
4351 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
4355 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
4356 * rs6000-nat.c (rs6000_wait): New function.
4357 (_initialize_core_rs6000): Install it as to_wait target method.
4358 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
4362 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
4363 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
4364 * rs6000-nat.c (super_create_inferior): New variable.
4365 (rs6000_create_inferior): Make static. Adapt argument list. Call
4366 original version of create_inferior via super_create_inferior.
4367 (_initialize_core_rs6000): Install to_create_inferior target method.
4371 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
4372 (aix_thread_xfer_partial): ... this.
4373 (init_aix_thread_ops): Install to_xfer_partial instead
4374 of deprecated_xfer_memory target method.
4376 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
4377 and inftarg.o, add inf-ptrace.o.
4378 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
4379 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
4380 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
4381 (fetch_inferior_registers): Rename to ...
4382 (rs6000_fetch_inferior_registers): ... this. Make static.
4383 (store_inferior_registers): Rename to ...
4384 (rs6000_store_inferior_registers): ... this. Make static.
4385 (read_word, child_xfer_memory): Remove.
4386 (rs6000_xfer_partial): New function.
4387 (kernel_u_size): Remove.
4388 (_initialize_core_rs6000): Add inf_ptrace-based target.
4389 * Makefile.in (rs6000-nat.o): Update dependencies.
4393 * inf-ptrace.c: Include "gdb_stdint.h".
4394 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
4395 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
4396 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
4397 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
4398 (inf_ptrace_store_register): Likewise.
4399 * Makefile.in (inf-ptrace.o): Update dependencies.
4403 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
4404 * configure.tgt (rs6000-*-*): Likewise.
4405 * config/rs6000/aix4.mh: Delete file.
4406 * config/rs6000/aix4.mt: Delete file.
4407 * config/rs6000/rs6000.mh: Delete file.
4408 * config/rs6000/rs6000.mt: Delete file.
4410 * config/powerpc/nm-aix.h: Delete file.
4411 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
4415 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
4416 Remove obsolete part of comment.
4417 (store_regs_user_thread): Use uint32_t temporaries when calling
4419 (store_regs_kernel_thread): Likewise. Add assertion to verify
4420 correct size of struct ptsprs members.
4421 (aix_thread_xfer_memory): Fix type of myaddr.
4422 (aix_thread_extra_thread_info): Fix compiler warning.
4423 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
4424 (fetch_register, store_register): Adapt callers.
4428 * vec.h (vec_free): Rename to vec_free_. Adapt users.
4432 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
4434 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
4435 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
4436 (alpha_linux_regset_from_core_section): New function.
4437 (alpha_linux_init_abi): Install it.
4438 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
4439 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
4440 <sys/procfs.h>, and "gregset.h".
4441 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
4442 Move from config/alpha/nm-linux.h.
4443 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
4445 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
4446 * alpha-nat.c: Remove #ifdef __linux__ section.
4447 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
4448 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
4449 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
4450 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
4451 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
4452 (NATDEPFILES): Remove alpha-nat.o.
4453 * config/alpha/nm-linux.h: Delete file.
4454 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
4455 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4456 (alpha-linux-tdep.o): Likewise.
4460 * mips-linux-nat.c: No longer include "gdbcore.h".
4461 (mips_linux_register_addr): Move from mips-linux-tdep.c.
4462 (mips64_linux_register_addr): Likewise.
4463 (mips_linux_register_u_offset): Call mips_linux_register_addr or
4464 mips64_linux_register_addr instead of register_addr.
4465 * mips-linux-tdep.c (mips_linux_register_addr,
4466 mips64_linux_register_addr): Move to mips-linux-nat.c.
4467 (register_addr): Remove.
4468 (register_addr_data, init_register_addr_data): Remove.
4469 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
4470 (set_mips_linux_register_addr): Remove.
4471 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
4472 * Makefile.in (mips-linux-nat.o): Update dependencies.
4476 * linux-nat.c (linux_register_u_offset): Remove.
4477 (linux_target_install_ops): New function.
4478 (linux_target): Use it.
4479 (linux_trad_target): New function.
4480 * linux-nat.h (linux_trad_target): Declare.
4482 * alpha-linux-nat.c: Include "gdbcore.h".
4483 (alpha_linux_register_u_offset): New function.
4484 (_initialize_alpha_linux_nat): Use linux_trad_target.
4486 * mips-linux-nat.c: Include "gdbcore.h".
4487 (mips_linux_register_u_offset): New function.
4488 (_initialize_mips_linux_nat): Use linux_trad_target.
4490 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4491 * config/arm/nm-linux.h: Delete file.
4493 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
4494 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
4496 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4497 * config/ia64/nm-linux.h: Delete file.
4499 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4500 * config/m32r/nm-linux.h: Delete file.
4502 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4503 * config/m68k/nm-linux.h: Delete file.
4505 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4506 * config/pa/nm-linux.h: Delete file.
4508 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4509 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
4510 * config/powerpc/nm-linux.h: Delete file.
4512 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
4513 * config/s390/nm-linux.h: Delete file.
4515 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4516 * config/sparc/linux64.mh (NAT_FILE): Likewise.
4517 * config/sparc/nm-linux.h: Delete file.
4519 * Makefile.in (alpha-linux-nat.o): Update dependencies.
4520 (mips-linux-nat.o): Likewise.
4524 * core-aout.c: Delete file.
4525 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
4526 (core-aout.o): Delete rule.
4527 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
4529 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
4531 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
4532 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
4533 KERNEL_U_ADDR): Remove.
4535 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
4536 (cannot_fetch_register, cannot_store_register): Remove.
4537 (fetch_register): Inline cannot_fetch_register and register_addr.
4538 (store_register): Inline cannot_store_register and register_addr.
4539 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
4540 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4541 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
4544 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
4545 (fetch_register): Inline register_addr.
4546 (store_register): Inline register_addr.
4547 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
4548 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
4549 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
4551 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
4552 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
4553 REGISTER_U_ADDR): Remove.
4555 * hppa-linux-nat.c (register_addr): Rename to ...
4556 (hppa_linux_register_addr): ... this. Make static.
4557 (fetch_register, store_register): Adapt callers.
4558 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
4560 * ppc-linux-nat.c (kernel_u_size): Remove.
4561 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
4563 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
4564 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
4566 * config/vax/nm-vax.h: Delete file.
4570 * MAINTAINERS (Write After Approval): Add myself.
4574 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
4575 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
4576 (m68k_linux_sigcontext_reg_offset): Fix typo.
4577 (target_is_uclinux): New.
4578 (m68k_linux_inferior_created): New.
4579 (m68k_linux_get_sigtramp_info): Check for uClinux or
4580 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
4582 (_initialize_m68k_linux_tdep): Register
4583 m68k_linux_inferior_created.
4587 * win32-nat.c (win32_detach): Remove delete_command call.
4588 Resume inferior with win32_resume instead of win32_continue.
4592 * ser-mingw.c (fd_is_file): New function.
4593 (file_select_thread): New function.
4594 (ser_console_wait_handle): Add special handling for files.
4598 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
4599 when missing from DW_TAG_subrange_type. Remove the handling of null
4600 return from die_type.
4604 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
4605 change to rearrange some brackets.
4606 (mips_n32n64_push_dummy_call): Likewise.
4607 (mips_o32_push_dummy_call): Likewise.
4608 (mips_o64_push_dummy_call): Likewise.
4612 * infcmd.c (post_create_inferior): Start with a call to
4613 target_terminal_ours.
4617 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
4619 (mips_n32n64_push_dummy_call): Likewise. Reformat some
4621 (mips_o32_push_dummy_call): Likewise.
4622 (mips_o64_push_dummy_call): Likewise.
4626 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4631 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
4633 (mips_o32_push_dummy_call): Likewise.
4637 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
4638 sal to be bigger than the end of the function.
4643 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
4644 argument alignment requirements when calculating stack space
4645 required. When aligning an arg register to eight bytes
4646 boundary, align stack_offset too. Write floating-point
4647 arguments to the appropriate integer register if need go there.
4648 (mips_o64_push_dummy_call): Likewise.
4652 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
4653 "sig" arguments, add "regcache" argument.
4654 * gdbarch.c, gdbarch.h: Regenerate.
4656 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
4657 (handle_inferior_event): Call remove_single_step_breakpoints directly
4658 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
4660 * alpha-tdep.c (alpha_software_single_step): Update argument list.
4661 Remove handling of !insert_breakpoints_p case.
4662 * arm-tdep.c (arm_software_single_step): Likewise.
4663 * cris-tdep.c (cris_software_single_step): Likewise.
4664 * mips-tdep.c (mips_software_single_step): Likewise.
4665 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4666 * sparc-tdep.c (sparc_software_single_step): Likewise.
4667 * spu-tdep.c (spu_software_single_step): Likewise.
4669 * alpha-tdep.h (alpha_software_single_step): Update prototype.
4670 * mips-tdep.h (mips_software_single_step): Likewise.
4671 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4672 * sparc-tdep.h (sparc_software_single_step): Likewise.
4676 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
4677 when removing single-step breakpoints.
4681 * varobj.h (varobj_set_frozen): New
4682 (varobj_get_frozen): New.
4683 (varobj_update): New parameter explicit.
4684 * varobj.c (struct varobj): New fields frozen
4686 (varobj_set_frozen, varobj_get_frozen): New.
4687 (install_new_value): Don't fetch values for
4688 frozen variable object, or children thereof. Allow
4689 a frozen variable object to have non-fetched value.
4690 (varobj_update): Allow updating child variables.
4691 Don't traverse frozen children.
4692 (new_variable): Initialize the frozen field.
4693 (c_value_of_variable): Return NULL for frozen
4694 variable without any value yet.
4695 * mi/mi-cmd-var.c (varobj_update_one): New parameter
4697 (mi_cmd_var_create): Output the 'frozen' field,
4698 as soon as testsuite is adjusted to expect that field.
4699 (mi_cmd_var_set_frozen): New.
4700 (mi_cmd_var_update): Pass the 'explicit' parameter to
4702 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
4703 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
4707 * target-descriptions.c (tdesc_named_type): Add ieee_single and
4709 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
4713 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
4714 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
4715 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
4716 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
4717 * Makefile.in: Remove references to deleted files.
4718 * README: Do not mention deleted ROM monitor interfaces.
4719 * defs.h (enum language): Delete language_scm.
4720 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
4721 (dump_subexp_body_standard): Likewise.
4722 * parse.c (operator_length_standard): Likewise.
4723 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
4724 * remote-mips.c: Do not include remote-utils.h.
4725 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
4727 * value.c: Do not include scm-lang.h.
4728 (unpack_long): Delete scm_unpack call.
4729 * config/h8300/h8300.mt, config/mips/embed.mt,
4730 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
4731 config/sh/embed.mt, config/sh/linux.mt: Remove references to
4733 * NEWS: Mention removed files.
4737 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
4738 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
4742 * NEWS: Mention removal of HP aCC support.
4746 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
4747 first entry for static executables.
4748 (breakpoint_addr): Delete unused variable.
4749 (elf_locate_base): Search for _r_debug in static executables.
4750 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
4755 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
4756 (bpstat_what, print_one_breakpoint, allocate_bp_location)
4757 (mention): Remove bp_through_sigtramp support.
4758 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
4762 * breakpoint.c (bpstat_what): Give step-resume higher priority than
4767 * infrun.c: Doc fixes.
4768 (handle_inferior_event): Clarify debug message.
4769 (insert_step_resume_breakpoint_at_sal): Print a debug message.
4773 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
4777 * config/m68k/tm-monitor.h: Delete file.
4778 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
4779 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
4781 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
4782 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
4786 * gdbarch.sh (software_single_step): Change the return type
4787 from void to int and reformatted some comments to <= 80
4789 * gdbarch.c, gdbarch.h: Regenerated.
4790 * alpha-tdep.c (alpha_software_single_step): Likewise.
4791 * alpha-tdep.h (alpha_software_single_step): Likewise.
4792 * arm-tdep.c (arm_software_single_step): Likewise.
4793 * cris-tdep.c (cris_software_single_step): Likewise.
4794 * mips-tdep.c (mips_software_single_step): Likewise.
4795 * mips-tdep.h (mips_software_single_step): Likewise.
4796 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
4797 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
4798 * sparc-tdep.c (sparc_software_single_step): Likewise.
4799 * sparc-tdep.h (sparc_software_single_step): Likewise.
4800 * spu-tdep.c (spu_software_single_step): Likewise.
4801 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
4802 and act accordingly.
4806 * configure.ac (build_warnings): Add -Wno-char-subscripts.
4807 * configure: Regenerate.
4808 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
4812 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
4816 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
4818 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
4819 distinct on the TYPE_STUB_SUPPORTED debug targets.
4820 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
4824 * sparc-tdep.c (X_RS2): New macro.
4825 (sparc_skip_stack_check): New function.
4826 (sparc_analyze_prologue): Adjust PC past stack probing
4827 sequence if necessary.
4831 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
4836 * breakpoint.c (gdb_breakpoint_query): Really return an
4838 (gdb_breakpoint): Likewise.
4839 * thread.c (gdb_list_thread_ids): Likewise.
4840 (gdb_thread_select): Likewise.
4841 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
4842 (mi_cmd_thread_list_ids): Remove bogus initialization.
4846 * Makefile.in (SFILES): Remove hpacc-abi.c.
4847 (COMMON_OBS): Remove hpacc-abi.o.
4848 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
4849 (hpacc-abi.o, hpread.o): Delete rules.
4850 * somread.c: Delete extern declarations from hpread.c.
4851 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
4852 (som_symfile_finish): Do not call hpread_symfile_finish.
4853 (som_symfile_init): Do not call hpread_symfile_init.
4854 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
4855 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
4856 * hpacc-abi.c, hpread.c: Deleted.
4860 * solib-svr4.c (enable_break): Simplify return value.
4861 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
4865 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
4866 l_ld_size, l_next_size, l_prev_size, l_name_size.
4868 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
4869 to extract addresses from link map.
4870 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
4871 (LM_NEXT): Likewise.
4872 (LM_NAME): Likewise.
4873 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
4874 (elf_locate_base): Likewise.
4875 (open_symbol_file_object): Likewise.
4876 (svr4_fetch_objfile_link_map): Likewise.
4877 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
4878 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
4880 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
4881 (svr4_lp64_fetch_link_map_offsets): Likewise.
4883 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
4884 removed members. Set l_ld_offset to -1 if not present.
4888 Pass stderr of program run with "target remote |"
4890 * serial.c (serial_open): Set error_fd to -1.
4891 * serial.h (struct serial): New field error_fd.
4892 (struct serial_opts): New field avail.
4893 * ser-pipe.c (pipe_open): Create another pair
4894 of sockets. Pass stderr to gdb.
4895 * ser-mingw.c (pipe_windows_open): Pass
4896 PEX_STDERR_TO_PIPE to pex_run. Initialize
4899 (_initialize_ser_windows): Hook pipe_avail.
4900 * ser-base.c (generic_readchar): Check if there's
4901 anything in stderr channel and route that to gdb_stderr.
4905 * dbxread.c (read_ofile_symtab): Move current_objfile
4906 clearing to after end_stabs.
4910 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
4911 gdbarch instead of current_gdbarch.
4915 * varobj.c (varobj_create): Keep varobj value
4916 NULL when evaluating the type.
4920 * NEWS: Mention new Windows CE support.
4924 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
4925 the obsoletion stanza.
4926 * NEWS: Mention deleted targets.
4928 * config/sh/tm-wince.h: Remove.
4929 * config/sh/wince.mt: Remove.
4930 * config/mips/tm-wince.h: Remove.
4931 * config/mips/wince.mt: Remove.
4934 * wince-stub.c: Remove.
4935 * wince-stub.h: Remove.
4936 * Makefile.in (wince.o): Remove rule.
4937 (wince-stub.o): Likewise.
4939 * mips-tdep.c (mips_next_pc): Make static.
4940 * mips-tdep.h (mips_next_pc): Remove declaration.
4941 * arm-tdep.c (arm_pc_is_thumb): Make static.
4942 (thumb_get_next_pc): Likewise.
4943 (arm_get_next_pc): Likewise.
4944 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
4945 (arm_pc_is_thumb): Likewise.
4946 (thumb_get_next_pc): Likewise.
4947 (arm_get_next_pc): Likewise.
4951 * MAINTAINERS: Remove d10v entry.
4952 * Makefile.in (SFILES): Remove dwarfread.c.
4953 (COMMON_OBS): Remove dwarfread.o.
4954 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
4955 (remote-est.o, rom68k-rom.o): Delete.
4956 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
4957 target est, target rom68k, and DWARF 1.
4958 * configure.tgt: Mark d10v as removed.
4959 * dwarf2read.c: Doc update.
4960 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
4962 (elf_locate_sections): Do not set them.
4963 (elf_symfile_read): Do not call dwarf_build_psymtabs.
4964 * symfile.h (dwarf_build_psymtabs): Delete prototype.
4965 * config/m68k/monitor.mt (TDEPFILES): Prune.
4966 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
4967 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
4971 * doublest.c (convert_floatformat_to_doublest): Use
4972 floatformat_classify.
4973 (floatformat_is_nan): Rename to...
4974 (floatformat_classify): ...this. Return more information.
4975 * doublest.h (enum float_kind): New.
4976 (floatformat_is_nan): Replace prototype...
4977 (floatformat_classify): ...with this one.
4978 * valprint.c (print_floating): Use floatformat_classify. Handle
4983 * README: Mention ISO C library requirement.
4987 * Makefile.in (SFILES): Remove nlmread.c.
4988 (COMMON_OBS): Remove nlmread.o.
4989 (nlmread.o): Delete rule.
4990 * README: Delete reference to remote-st.c.
4991 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
4992 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
4994 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
4995 (_initialize_i386_tdep): Do not reference them.
4996 * nlmread.c: Delete file.
4997 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
4998 * target.c: Doc update.
4999 * thread.c: Delete commented include.
5000 * config/alpha/tm-alpha.h: Doc update.
5004 * utils.c (string_to_core_addr): Comment typo.
5008 * mips-tdep.c: Comment typo.
5012 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5013 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5014 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5015 * config/powerpc/nm-ppc64-linux.h: Remove file.
5016 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5017 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5018 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5019 * infptrace.c (call_ptrace): Likewise.
5020 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5021 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5022 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5023 (store_register): Likewise.
5027 * Makefile.in (varobj.o): Add missing dependency.
5031 * MAINTAINERS: Update my email address.
5035 Add support for exception handling with multiple versions of
5037 * ada-lang.c: Update general comments on how Ada exception catchpoints
5039 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5040 (__gnat_raise_nodefer_with_msg): Delete.
5041 (ada_unhandled_exception_name_addr_ftype): New type.
5042 (exception_support_info): New type.
5043 (ada_unhandled_exception_name_addr): Add forward declaration.
5044 (ada_unhandled_exception_name_addr_from_raise): Likewise.
5045 (default_exception_support_info): New constant.
5046 (exception_support_info_fallback): Likewise.
5047 (exception_info): New global variable.
5048 (ada_exception_support_info_sniffer): New function.
5049 (ada_executable_changed_observer): Likewise.
5050 (ada_unhandled_exception_name_addr_from_raise): Renamed from
5051 ada_unhandled_exception_name_addr.
5052 (ada_unhandled_exception_name_addr): Reimplement to match the
5053 latest Ada runtime implementation.
5054 (error_breakpoint_runtime_sym_not_found): Delete.
5055 (ada_exception_sym_name): Get the exception sym name from
5056 exception_info rather than hardcoding it.
5057 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5058 Update error handling.
5059 * Makefile.in (ada-lang.o): Add dependency on observer.h.
5063 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5064 (remote-st.o, uw-thread.o): Delete.
5065 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5066 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5067 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5068 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5069 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5070 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5071 rs6000-*-lynxos* to an obsoletion stanza.
5072 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5073 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5074 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
5075 i[34567]86-*-netware*.
5076 * NEWS: Mention deleted targets.
5078 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5079 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5080 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5081 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5082 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5083 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5084 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5085 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5086 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5087 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5088 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5089 config/rs6000/tm-rs6000ly.h: Delete files.
5093 * defs.h (deprecated_registers_changed_hook): Delete declaration.
5094 * interps.c (clear_interpreter_hooks): Do not clear
5095 deprecated_registers_changed_hook.
5096 * regcache.c (registers_changed): Do not call it.
5097 * top.c (deprecated_registers_changed_hook): Do not define it.
5098 * mi/mi-interp.c (mi_command_loop): Do not clear it.
5099 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5100 (tui_remove_hooks): Do not remove it.
5101 (tui_selected_frame_level_changed_hook): Check for negative level.
5102 Use get_selected_frame.
5103 (tui_registers_changed_hook): Deleted.
5107 * stabsread.c (add_undefined_type): Add extra parameter.
5108 Now handles nameless types separately.
5109 (struct nat): New type.
5110 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5111 New static variables.
5112 (read_type): Update calls to add_undefined_type.
5113 (add_undefined_type_noname): New function.
5114 (add_undefined_type_1): Renames from add_undefined_type.
5115 (cleanup_undefined_types_noname): New function.
5116 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5117 (cleanup_undefined_types): New handles nameless types separately.
5118 (_initialize_stabsread): Initialize our new static constants.
5122 * configure.ac: Test for signal.h.
5123 * configure, config.in: Regenerate.
5127 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5128 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
5132 * arm-wince-tdep.c: New.
5133 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
5134 (MT_CFLAGS): Delete.
5136 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
5137 solib-legacy.o, solib-svr4.o, and remove wince.o.
5138 * configure.tgt (arm*-*-mingw32ce*): Add.
5139 * signals/signals.c [HAVE_SIGNAL_H]: Check.
5140 (do_target_signal_to_host): Silence 'not used' warning.
5141 * config/arm/tm-wince.h: Remove.
5145 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
5146 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
5148 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
5149 * config/ia64/tm-linux.h: Remove file.
5150 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
5151 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
5152 legacy_pc_in_sigtramp.
5153 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
5154 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
5155 Remove func_name argument.
5156 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
5158 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
5159 * target.c (update_current_target): Add to_have_steppable_watchpoint.
5160 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
5161 (HAVE_STEPPABLE_WATCHPOINT): Define.
5163 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
5164 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
5165 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
5166 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5167 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
5168 target_insert_watchpoint, target_remove_watchpoint): Remove.
5169 (FETCH_INFERIOR_REGISTERS): Define.
5170 * ia64-linux-nat.c (ia64_register_addr): Make static.
5171 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
5172 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
5173 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
5174 (ia64_linux_stopped_data_address): Make static. Add target_ops.
5175 (ia64_linux_stopped_by_watchpoint): Make static.
5176 (ia64_linux_can_use_hw_breakpoint): New function.
5177 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
5178 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
5179 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
5183 * linespec.c: Include language.h.
5184 (find_methods): Add language parameter. Call
5185 lookup_symbol_in_language. Pass language down.
5186 (add_matching_methods): Likewise. Call
5187 lookup_symbol_in_language.
5188 (add_constructors): Likewise.
5189 (find_method): Pass sym_class to collect_methods.
5190 (collect_methods): Add sym_class parameter. Pass language
5192 * symtab.c (lookup_symbol): Rename to ...
5193 (lookup_symbol_in_language): ... this. Add language
5194 parameter. Use passed language instead of current_language.
5195 (lookup_symbol): New as wrapper around
5196 lookup_symbol_in_language.
5197 (lookup_symbol_aux): Add language parameter. Use passed
5198 language instead of current_language.
5199 (search_symbols): Indent.
5200 * symtab.h (enum language): Forward declare.
5201 (lookup_symbol_in_language): Declare.
5202 (lookup_symbol): Update description.
5203 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
5204 * ada-lang.c (restore_language): Remove.
5205 (lookup_symbol_in_language): Remove.
5209 * breakpoint.c (bpstat_num): Add int *num parameter.
5210 * breakpoint.h (bpstat_num): Likewise.
5211 * infcmd.c (continue_command): Adjust to new bpstat_num
5213 (program_info): Likewise.
5217 * config/sh/tm-sh.h: Remove file.
5218 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
5219 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
5220 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5221 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
5225 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
5226 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
5227 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
5228 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
5229 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
5230 sequence if target_shortname is "remote".
5234 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
5235 instead of wordsize when looking for the LR in a stack frame.
5240 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
5241 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
5242 argument. Update all callers.
5243 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
5244 (dwarf2_frame_set_eh_frame_regnum): Rename to...
5245 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
5246 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
5247 (dwarf2_frame_set_adjust_regnum): ...this.
5248 (dwarf2_frame_eh_frame_regnum): Delete prototype.
5249 * rs6000-tdep.c: Include "dwarf2-frame.h".
5250 (rs6000_adjust_frame_regnum): Define.
5251 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
5252 Register rs6000_adjust_frame_regnum.
5254 * Makefile.in (rs6000-tdep.o): Update dependencies.
5258 * Makefile.in: Add support for a "pdf" target.
5262 * amd64-tdep.c (amd64_init_frame_cache): New function.
5263 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
5268 * ui-out.c (ui_out_field_core_addr): Truncate address to
5269 TARGET_ADDR_BIT size before printing.
5274 * remote-mips.c (mips_xfer_memory): Update prototype.
5278 * symfile.h: #include "symtab.h"
5282 * utils.c (pagination_on_command, pagination_off_command):
5283 Remove useless prototypes.
5288 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
5289 instead of TYPE_NAME for object base class name.
5294 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
5295 Specify frame type in calls to frame_func_unwind().
5299 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
5300 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
5301 (refine_prologue_limit): Delete.
5302 (skip_prologue): Don't call it. Use extract_unsigned_integer.
5303 Assume lim_pc is set. Correct check for incomplete prologues.
5304 Do not skip clobbers of the frame pointer.
5305 * symtab.c (skip_prologue_using_sal): Fail if there is only one
5310 * frame.c (frame_pop): Check to see whether there's a frame to
5311 which we can pop first.
5315 * MAINTAINERS (Write After Approval): Add myself.
5319 * infrun.c (breakpoints_failed): Remove unnecessary variable.
5320 (handle_inferior_event): Remove unnecessary braces.
5321 * breakpoint.c (bpstat_what): Remove wrong comment.
5325 * spu-tdep.c (spu_in_function_epilogue_p): New function.
5326 (spu_gdbarch_init): Install it.
5330 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
5331 object types, not 0.
5335 * spu-tdep.c (spu_frame_align): New function.
5336 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
5340 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
5341 (spu_software_single_step): Likewise.
5342 (spu_read_pc, spu_write_pc): New functions.
5343 (spu_gdbarch_init): Install them.
5347 * cli/cli-dump.c (struct callback_data): load_offset needs to
5348 have signed long type.
5352 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
5353 Revert the previous change that had some unexpected side-effects
5355 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
5356 function to get the address of the calling instruction.
5360 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
5361 get_selected_frame by deprecated_safe_get_selected_frame.
5365 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
5366 "gdb_string.h". Don't include "nbsd-tdep.h".
5367 (SIZEOF_STRUCT_REG): Remove.
5368 (SHNBSD_SIZEOF_GREGS): New.
5369 (shnbsd_supply_gregset, shnbsd_collect_gregset)
5370 (shnbsd_regset_from_core_section): New functions.
5371 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
5372 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
5373 shnbsd_supply_gregset, shnbsd_collect_gregset.
5374 (shnbsd_gregset): New variable.
5375 (shnbsd_init_abi): Set regset_from_core_section.
5376 (GDB_OSABI_NETBSD_CORE): New define.
5377 (shnbsd_core_osabi_sniffer): New function.
5378 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
5379 * Makefile.in (shnbsd-tdep.o): Update dependencies.
5380 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
5382 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
5386 * gdbtypes.c (replace_type): Fix typo that caused us to not update
5387 length of the types referenced by the new type CV ring.
5391 * frame.c (frame_pop, frame_observer_target_changed): Call
5393 (flush_cached_frames): Rename to reinit_frame_cache and delete
5395 * frame.h (flush_cached_frames): Delete prototype and update comment.
5397 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
5398 reinit_frame_cache instead of flush_cached_frames. Do not call
5399 select_frame after reinit_frame_cache.
5400 * corelow.c (core_open): Likewise.
5401 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
5402 * infrun.c (prepare_to_proceed, context_switch)
5403 (handle_inferior_event): Likewise.
5404 * linux-fork.c (fork_load_infrun_state): Likewise.
5405 * ocd.c (ocd_start_remote): Likewise.
5406 * remote-e7000.c (e7000_start_remote): Likewise.
5407 * remote-mips.c (device): Likewise.
5408 * thread.c (switch_to_thread): Likewise.
5409 * tracepoint.c (finish_tfind_command): Likewise.
5410 * gdbarch.c: Regenerated.
5415 * gdbtypes.c (check_typedef): Do not replace stub type if
5416 the resolved type is not defined in the same objfile.
5420 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
5424 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
5425 symbol for Ada units when the symbol is defined using 't' rather
5426 than 'Tt' as symbol descriptor.
5430 * config/mips/tm-nbsd.h: Delete file.
5431 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
5432 * config/sh/tm-nbsd.h: Delete file.
5433 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
5437 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
5438 unused WRONG_PARAM value since it was recently deleted.
5442 * varobj.c (varobj_update): Free temporary vectors.
5446 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
5447 * config/powerpc/tm-linux.h: Delete file.
5448 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
5449 (PROCESS_LINENUMBER_HOOK): Do not undefine.
5450 (TEXT_SEGMENT_BASE): Do not redefine.
5451 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
5452 from config/rs6000/tm-rs6000.h.
5453 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5454 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
5455 (TEXT_SEGMENT_BASE): Remove.
5456 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
5457 (rs6000_in_solib_return_trampoline): Remove.
5458 (SKIP_TRAMPOLINE_CODE): Remove.
5459 (rs6000_skip_trampoline_code): Remove.
5460 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
5461 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
5462 (FP0_REGNUM): Remove.
5463 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
5464 (rs6000_set_host_arch_hook): Remove.
5465 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
5466 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
5467 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
5468 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
5469 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
5470 * rs6000-nat.c: Include "rs6000-tdep.h".
5471 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
5472 (set_host_arch): Rename to ...
5473 (rs6000_create_inferior): ... this. Make public.
5474 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
5475 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
5476 (rs6000_create_inferior): Remove.
5477 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
5478 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
5479 set_gdbarch_in_solib_return_trampoline, and
5480 set_gdbarch_skip_trampoline_code.
5481 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
5482 from config/rs6000/tm-rs6000.h.
5486 * buildsym.c (record_producer): Do nothing if no producer is provided.
5490 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
5491 to check changelist is non-NULL. Call error if the frontend tries
5492 to update a non-root variable.
5494 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
5498 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
5499 (dwarf2_frame_sniffer): Update.
5500 (dwarf2_signal_frame_this_id): New function.
5501 (dwarf2_signal_frame_unwind): Use it.
5502 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
5503 * frame.c (frame_func_unwind): Add this_type argument.
5504 (get_frame_func): Update.
5505 (frame_unwind_address_in_block): Add this_type argument and check it.
5507 (get_frame_address_in_block): Update.
5508 * frame.h (enum frame_type): Move higher in the file.
5509 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
5512 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
5513 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
5514 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
5515 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
5516 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
5517 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
5518 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
5519 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
5520 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
5521 frame_func_unwind and frame_unwind_address_in_block to specify
5522 the frame type. Use frame_unwind_address_in_block instead of
5523 frame_pc_unwind in sniffers.
5527 * frame.c (deprecated_selected_frame): Rename to...
5528 (selected_frame): ...this. Make static.
5529 (get_selected_frame, select_frame): Update.
5530 * frame.h (deprected_select_frame): Delete.
5531 (deprecated_safe_get_selected_frame): Update comments.
5533 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
5534 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
5535 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
5536 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
5537 tui/tui.c: Replace references to deprecated_selected_frame.
5541 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
5542 directly decrement the stack pointer, accumulate their operand into
5543 the stack offset, and mark the function as not being frameless.
5547 * arch-utils.c (selected_byte_order): New.
5548 * arch-utils.h (selected_byte_order): New prototype.
5549 * remote-sim.c (gdbsim_open): Use selected_byte_order.
5553 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
5554 (default_symfile_offsets): Check VMA here. Update section VMAs.
5558 * remote.c (init_remote_state): Add special handling for placeholder
5563 * Makefile.in (XMLFILES): Include $(TDEP_XML).
5564 (filenames_h): New variable.
5565 (clean): Clean up xml-builtin.c and stamp-xml.
5566 (arm-linux-nat.o): Update.
5567 * config/arm/linux.mh (TDEP_XML): Define.
5568 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
5569 (arm_linux_has_wmmx_registers): New.
5570 (GET_THREAD_ID): Fix typo.
5571 (IWMMXT_REGS_SIZE): Define.
5572 (fetch_wmmx_regs, store_wmmx_regs): New.
5573 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
5574 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
5575 (super_xfer_partial, arm_linux_xfer_partial): New.
5576 (_initialize_arm_linux_nat): Use them.
5577 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
5578 (xml_builtin_xfer_partial): New function.
5579 * xml-support.h (xml_builtin_xfer_partial): New prototype.
5580 * NEWS: Update mention of iWMMXt support.
5584 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
5585 if there are no FPA registers.
5586 (arm_dwarf_reg_to_regnum): New function.
5587 (arm_register_type, arm_register_name): Return minimal values for
5588 unsupported registers.
5589 (arm_register_sim_regno): Handle iWMMXt registers.
5590 (arm_gdbarch_init): Record missing FPA registers if indicated by
5591 a target description. Recognize iWMMXt registers. Only register
5592 "info float" for FPA. Use ARM_NUM_REGS. Register
5593 arm_dwarf_reg_to_regnum.
5594 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
5596 (struct gdbarch_tdep): Add have_fpa_registers.
5597 * features/xscale-iwmmxt.xml: Update capitalization.
5598 * regformats/arm-with-iwmmxt.dat: Regenerated.
5602 * NEWS (New targets): Add entry for the Toshiba Media Processor.
5606 * MAINTAINERS (mep): New target.
5610 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
5612 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
5613 (mep-tdep.o): New rule.
5614 * configure.tgt (mep-*-*): New target.
5615 * mep-tdep.c: New file.
5616 * config/mep/mep.mt: New file.
5620 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
5621 BREAKPOINT_HIT and STOP_UNKNOWN.
5625 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
5629 * gdb_expat.h (XMLCALL): Define if not already defined.
5633 * Makefile.in (symfile.o): Update dependencies.
5637 * MAINTAINERS: Disable -Werror for cris simulator. Build
5638 sparc64-solaris2.10 instead of the broken sparc-elf.
5639 * solib-frv.c: Include "solib.h".
5640 * Makefile.in (solib-frv.o): Update.
5641 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
5642 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
5643 (xtensa_frame_this_id, xtensa_frame_prev_register)
5644 (xtensa_push_dummy_call): Use %p.
5648 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5649 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
5650 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5651 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
5652 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
5653 (sparc-linux-tdep.o): Update.
5657 * xtensa-tdep.h (xtensa_reg_mask_t): New.
5658 (xtensa_mask_t): Change mask field to be a separate array.
5659 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
5660 (xtensa_pseudo_register_write, xtensa_unwind_pc)
5661 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
5662 (xtensa_breakpoint_from_pc): Remove implicit type casting.
5663 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
5664 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
5665 (mask14, mask15): Rename to
5666 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
5667 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
5668 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
5669 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
5670 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
5671 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
5672 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
5673 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
5674 (xtensa_submask14, xtensa_submask15): New.
5675 (rmap): Follow strict aliasing rules doing static initialization.
5679 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
5680 handling from here...
5681 (tdesc_register_type): ...to here.
5682 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
5683 * features/arm-core.xml: Use code_ptr and data_ptr.
5687 * varobj.h (enum varobj_update_error): New enum.
5688 * varobj.c (struct varobj_root): Add is_valid member.
5689 (varobj_get_type): Check for invalid varobj.
5690 (varobj_get_attributes): Likewise.
5691 (variable_editable):Likewise.
5692 (varobj_update): Likewise. Use varobj_update_error.
5693 (new_root_variable): Set root varobj as valid by default.
5694 (varobj_invalidate): New function.
5695 * symfile.c (clear_symtab_users): Use varobj_invalidate.
5696 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
5697 Use varobj_update_error.
5702 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
5703 Pascal language marker.
5704 * dwarf2read.c (set_cu_language): Likewise.
5708 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
5709 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
5710 instead of target_terminal_init since inferior_ptid isn't set yet.
5714 * MAINTAINERS (Write After Approval): Add myself.
5718 Based on work by Apple Computer, Inc.
5719 * event-top.c (async_request_quit): Call quit() whenever either
5720 quit_flag is set or immediate_quit is set.
5724 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
5725 type to a pointer to const struct block.
5726 (ada_lookup_symbol_list): Don't cast away constness when calling
5727 remove_out_of_scope_renamings.
5731 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
5732 address of 'filename'; it is always non null.
5736 * exec.c (add_to_section_table): Do not discard empty sections.
5740 * features/Makefile, features/arm-with-iwmmxt.xml,
5741 features/gdbserver-regs.xsl, features/number-regs.xsl,
5742 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
5743 * regformats/arm-with-iwmmxt.dat: Generate.
5744 * NEWS: Mention iWMMXt.
5748 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
5749 (xml-tdesc.o): Update.
5750 * xml-support.c: Add a comment.
5751 (gdb_xml_enums_boolean): New variable.
5752 (gdb_xml_parse_attr_enum): Use strcasecmp.
5753 * xml-support.h (gdb_xml_enums_boolean): Declare.
5754 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
5755 next_regnum, and current_union.
5756 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
5757 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
5758 (field_attributes, union_children, reg_attributes, union_attributes)
5759 (vector_attributes, feature_attributes, feature_children): New.
5760 (target_children): Make static. Add <feature>.
5761 (tdesc_elements): Make static.
5762 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
5763 (struct tdesc_feature, tdesc_feature_p): New types.
5764 (struct target_desc): Add features member.
5765 (struct tdesc_arch_data, tdesc_data): New.
5766 (target_find_description): Clarify error message. Warn about
5767 ignored register descriptions.
5768 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5769 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
5770 (tdesc_data_cleanup, tdesc_numbered_register)
5771 (tdesc_numbered_register_choices, tdesc_find_register)
5772 (tdesc_register_name, tdesc_register_type)
5773 (tdesc_remote_register_number, tdesc_register_reggroup_p)
5774 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
5775 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
5776 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
5777 (tdesc_create_feature, tdesc_record_type): New.
5778 (free_target_description): Free features.
5779 (_initialize_target_descriptions): Initialize tdesc_data.
5780 * arch-utils.c (default_remote_register_number): New.
5781 * arch-utils.h (default_remote_register_number): New prototype.
5782 * target-descriptions.h (set_tdesc_pseudo_register_name)
5783 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
5784 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
5785 (tdesc_numbered_register, tdesc_numbered_register_choices)
5786 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
5787 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
5788 (tdesc_create_reg): Declare.
5789 * gdbarch.sh (remote_register_number): New entry.
5790 * gdbarch.c, gdbarch.h: Regenerate.
5791 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
5792 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
5794 * arm-tdep.c (arm_register_aliases): New.
5795 (arm_register_name_strings): Rename to...
5796 (arm_register_names): ...this. Make const. Delete the old version.
5797 (current_option, arm_register_byte): Delete.
5798 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
5799 (value_of_arm_user_reg): New.
5800 (arm_gdbarch_init): Verify any described registers. Call
5801 tdesc_use_registers. Don't use arm_register_byte. Create aliases
5802 for standard register names.
5803 (_initialize_arm_tdep): Do not adjust arm_register_names.
5804 * user-regs.c (struct user_reg): Add baton member.
5805 (append_user_reg, user_reg_add_builtin, user_regs_init)
5806 (user_reg_add, value_of_user_reg): Use a baton for user
5808 * std-regs.c: Update.
5809 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
5810 (user_reg_add): Add baton argument.
5811 * NEWS: Mention target description register support.
5812 * features/arm-core.xml, features/arm-fpa.xml: New.
5813 * eval.c (evaluate_subexp_standard): Allow ptype $register
5814 when the program is not running.
5818 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
5822 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
5823 info->disassembler_options to "any".
5827 * varobj.c (install_new_value): Only call value_get_print_value
5833 * gdb/target.c (target_flash_erase): Do not return void value.
5834 (target_flash_done): Likewise.
5835 * gdb/cli/cli-cmds.c (source_command): Likewise.
5839 Based on work by Apple Computer, Inc.
5840 * event-top.c (handle_sigint): Set quit_flag.
5841 (async_request_quit): Don't set quit_flag. Avoid calling quit()
5842 if quit_flag has already been reset.
5846 * ser-mingw.c (pipe_windows_close): Move variable initialization back
5851 * defs.h (request_quit): Remove declaration.
5852 * utils.c (request_quit): Remove definition.
5858 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
5859 (skip_prologue): Allow bl->blrl used by PIC code.
5864 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
5865 initialize tmp_obstack.
5866 * p-valprint.c (pascal_object_print_value_fields)
5867 (pascal_object_print_value): Likewise.
5871 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
5875 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
5876 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
5880 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
5882 (tdesc_parse_xml): Cache expanded descriptions.
5886 * Makefile.in (XMLFILES): New.
5887 (COMMON_OBS): Add xml-builtin.o.
5888 (xml-builtin.c, stamp-xml): New rules.
5889 (xml-tdesc.o): Update.
5890 * features/feature_to_c.sh: New file.
5891 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
5892 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
5893 (gdb_xml_start_element): Initialize scope after possibly reallocating
5894 scopes. Move cleanup later. Handle the XInclude description
5896 (gdb_xml_end_element): Only parse the body if there is a current element.
5897 Call XML_DefaultCurrent if there is no element.
5898 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
5899 (struct xinclude_parsing_data, xinclude_start_include)
5900 (xinclude_end_include, xml_xinclude_default)
5901 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
5902 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
5903 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
5904 * xml-support.h (xml_fetch_another, xml_process_xincludes)
5905 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
5906 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
5907 XInclude directives. Use the compiled in DTD.
5908 (fetch_xml_from_file): Add baton argument. Treat it as a containing
5909 directory name. Do not warn here.
5910 (file_read_description_xml): Update call. Warn here instead. Pass
5912 (fetch_available_features_from_target): New.
5913 (target_read_description_xml): Use it.
5914 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
5916 * features/xinclude.dtd: New file.
5920 * linux-thread-db.c (check_for_thread_db): Return early if we have
5921 no libthread_db support.
5925 * mi/mi-parse.h: Include <sys/time.h>.
5929 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
5930 instead of print_variable_value to print values.
5934 * mi/mi-main.c: Numerous formatting changes.
5935 (mi_cmd_data_write_register_values): Replace clause inadvertantly
5936 removed in my previous change.
5940 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
5941 Use 1000000L instead of 1000000.
5945 Based on work by Apple Computer, Inc.
5947 * configure.ac: Test for sys/resource.h and getrusage.
5948 * configure, config.in: Regenerate.
5950 * mi/mi-main.c: Include <sys/resource.h> if present.
5951 (rusage): Declare if HAVE_GETRUSAGE.
5952 (current_command_ts, do_timings): New static variables.
5953 (timestamp, print_diff_now, print_diff, timeval_diff):
5954 New static timing functions.
5955 (mi_cmd_enable_timings): New function for new MI command.
5956 (captured_mi_execute_command, mi_execute_async_cli_command):
5957 Call timing functions.
5959 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
5962 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
5964 * mi/mi-parse.h: (mi_timestamp): New structure.
5965 (mi_parse): Add mi_timestamp* member.
5969 * thread.c (make_cleanup_restore_current_thread): New function.
5970 (info_threads_command): Use of make_cleanup_restore_current_thread
5971 to restore the current thread and the selected frame.
5972 (restore_selected_frame): New function.
5973 (struct current_thread_cleanup): Add frame_id field.
5974 (do_restore_current_thread_cleanup): Add restoring of the selected
5976 (make_cleanup_restore_current_thread): Likewise.
5977 (thread_apply_all_command): backup the selected frame while
5978 entering the function and restore it at exit.
5979 (thread_apply_command): Likewise.
5983 * MAINTAINERS (Write After Approval): Add myself to the list.
5987 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
5988 (m32r_store_register): Ditto.
5992 * ser-mingw.c (pipe_windows_open)
5993 (pipe_windows_read, pipe_windows_write): Declare
5994 variables at the top of the function.
5998 * doublest.c (floatformat_from_length): Use the right element from
5999 gdbarch floatformats.
6000 (floatformat_from_type, extract_typed_floating)
6001 (store_typed_floating): Likewise.
6002 * doublest.h: Remove declarations for undefined floatformat arrays.
6003 * gdbarch.sh (float_format, double_format, long_double_format): Change
6005 (pformat): Update for pairs.
6006 * gdbarch.c, gdbarch.h: Regenerated.
6007 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6008 (floatformats_ieee_double_littlebyte_bigword)
6009 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6010 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6011 (floatformats_vax_d): New variables.
6012 (builtin_type_ieee_single, builtin_type_ieee_double)
6013 (builtin_type_arm_ext, builtin_type_ia64_spill)
6014 (builtin_type_ia64_quad): Replace arrays with individual types.
6015 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6016 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6017 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6018 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6019 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6020 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6021 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6022 unused and endian-specific types.
6023 (recursive_dump_type): Update for floatformat pairs.
6024 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
6025 (build_gdbtypes): Use build_flt.
6026 (_initialize_gdbtypes): Update set of initialized types.
6027 * gdbtypes.h: Update declarations to match gdbtypes.c.
6028 (struct main_type): Store a pointer to two floatformats.
6029 * arch-utils.c (default_float_format, default_double_format): Delete.
6030 * arch-utils.h (default_float_format, default_double_format): Delete.
6032 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6033 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6034 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6035 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6036 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6040 * target.c (maintenance_print_target_stack): New function.
6041 (initialize_targets): Add new "maintenance print target-stack"
6046 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6050 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6051 (struct dwarf2_loclist_baton): Likewise.
6055 * cli/cli-script.c: Include breakpoint.h.
6056 (build_command_line): Require arguments only for if and while
6058 (get_command_line, execute_user_command, execute_control_command):
6059 Fix wording of warning messages.
6060 (print_command_lines): Print breakpoint commands.
6061 (execute_control_command): Call commands_from_control_command to
6062 handle the `commands' command inside a body of a flow-control
6064 (read_next_line): Recognize the `commands' command and build a
6065 command line structure for it.
6066 (recurse_read_control_structure, read_command_lines): Handle
6067 `commands' similarly to `if' and `while'.
6069 * breakpoint.c (get_number_trailer): Document the special meaning
6070 of NULL as the first argument PP.
6071 (commands_from_control_command): New function.
6073 * breakpoint.h (commands_from_control_command): Add prototype.
6075 * defs.h (commands_control): New enumerated value for enum
6076 command_control_type.
6080 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6081 (ada_exception_sal): Update accordingly.
6085 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6086 * NEWS: Describe CHAR array vs. string identifcation rules.
6090 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6094 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6095 expression is empty, bother to return the 'optimized out' value we
6096 construct. (Thanks to Carl Burch.)
6100 * varobj.c (c_value_of_root, c_value_of_child)
6101 (cplus_describe_child): Don't call release_value.
6105 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6110 Refactor getting children name, value and type access
6112 * varobj.c (get_type_deref): Remove.
6113 (adjust_value_for_child_access): New.
6114 (c_number_of_children): Use the above.
6115 (c_describe_child): Likewise.
6116 (enum accessibility): New.
6117 (match_accessibility): New function.
6118 (cplus_describe_child): New function.
6119 (cplus_name_of_child, cplus_value_of_child)
6120 (cplus_type_of_child): Reimplement in terms
6121 of cplus_describe_child.
6122 (cplus_number_of_children): Use
6123 adjust_value_for_child_access.
6127 Fix computation of the 'editable' attribute and
6128 value changeability for for references.
6129 * varobj.c (get_value_type): New function.
6130 (c_variable_editable): Use get_value_type.
6131 (varobj_value_is_changeable): Likewise.
6135 * source.c (find_and_open_source): Try rewriting the source
6136 path inside filename if dirname is NULL.
6140 * dwarf2read.c (add_partial_symbol): Create an extra partial
6141 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
6142 (new_symbol): Likewise for symbols.
6146 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
6150 * value.c (value_primitive_field): Copy the full 'location'
6151 contents, instead of assuming that copying ADDRESS will
6152 bring over everything in the union. Remove obsolete comment.
6156 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
6157 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
6158 (m32c_m16c_pointer_to_address): Separate code from declarations.
6162 * target.c (update_current_target): Correct typo.
6166 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
6173 * dwarf2-frame.c (execute_cfa_program): New support of
6174 `DW_CFA_GNU_negative_offset_extended'.
6178 * NEWS: Mention flash support for "load" and new remote packets.
6182 * breakpoint.c (delete_command): Skip redundant loop iterations.
6186 * gdbarch.sh (register_type): Update comment.
6187 * gdbarch.h: Regenerated.
6188 * arch-utils.c (generic_register_size): Call register_type.
6189 * ia64-tdep.c (ia64_extract_return_value): Likewise.
6190 * m32c-tdep.c (check_for_saved): Likewise.
6191 * mips-tdep.c (mips_print_register, print_gp_register_row)
6192 (mips_print_registers_info): Likewise.
6193 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
6195 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
6196 (sh64_do_register, sh64_print_register)
6197 (sh64_media_print_registers_info): Likewise.
6198 * tui/tui-regs.c (tui_register_format): Likewise.
6202 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
6204 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
6205 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
6206 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
6207 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6208 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
6209 (make_symbol_completion_list): Likewise.
6214 * buildsym.c (end_symtab): Use preallocated symtab if available.
6215 Fill in SYMBOL_SYMTAB.
6216 * buildsym.h (struct subfile): Add symtab member.
6217 * dwarf2read.c (struct dwarf2_cu): Add line_header.
6218 (struct file_entry): Add symtab.
6219 (free_cu_line_header): New function.
6220 (read_file_scope): Use it. Save line_header in the cu. Process
6222 (add_file_name): Initialize new symtab member.
6223 (dwarf_decode_lines): Create symtabs for included files.
6224 (new_symbol): Set SYMBOL_SYMTAB.
6225 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
6226 (search_symbols): Likewise.
6227 * symtab.h (struct symbol): Add symtab member.
6228 (SYMBOL_SYMTAB): Define.
6232 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
6236 * arch-utils.c (show_endian): Correct reversed condition.
6240 * MAINTAINERS (Write After Approval): Add myself.
6245 Fix 'selected frame' varobjs.
6246 * varobj.c (struct varobj): Remove the error field.
6247 (varobj_set_value): Don't check var->error.
6248 (install_new_value): Don't set var->error.
6249 (varobj_update): Always pass the new value
6250 of the root via install_new_value.
6251 (create_child): Don't set error field.
6252 (new_variable): Likewise.
6253 (c_value_of_root): Always reevaluate the value
6254 of selected frame varobjs in the selected frame.
6255 Don't call reinit_frame_cache.
6259 * source.c (_initialize_source): Improve the help text of
6260 the substitute-path commands.
6264 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
6265 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
6266 (frv_skip_prologue): Remove prototypes.
6267 (frv_adjust_breakpoint_address): Renamed from
6268 frv_gdbarch_adjust_breakpoint_address.
6269 (frv_gdbarch_init): Adjust.
6273 * gdbarch.sh (deprecated_extract_return_value)
6274 (deprecated_store_return_value): Remove.
6275 (extract_return_value, store_return_value): Remove default values.
6276 * gdbarch.c, gdbarch.h: Regenerate.
6277 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
6278 (legacy_store_return_value): Remove.
6279 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
6282 * mi/mi-main.c: Remove obsolete comment.
6284 * regcache.c, regcache.h (deprecated_register_bytes)
6285 (deprecated_read_register_bytes)
6286 (deprecated_write_register_bytes): Remove.
6288 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
6289 Don't forget to move destination pointer.
6293 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
6297 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
6298 past entry function with recent newlib.
6302 * gdb.texinfo (GDB/MI Variable Objects): Improve the
6303 introduction. Specify -var-update more exactly.
6307 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
6311 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
6312 the Global Maintainers' invitation to be a global maintainer.
6316 * infrun.c (singlestep_pc): New variable.
6317 (resume): Set singlestep_pc.
6318 (context_switch): Add a debugging message. Flush the frame cache.
6319 (handle_inferior_event): Add debugging messages. Handle thread
6320 hops when a software single step has completed. Let context_switch
6321 handle flushing the frame cache.
6325 * NEWS: Mention target descriptions, "set tdesc filename",
6326 "unset tdesc filename", "show tdesc filename", and
6327 qXfer:features:read.
6328 * arch-utils.c (choose_architecture_for_target): New function.
6329 (gdbarch_info_fill): Call it.
6330 * target-descriptions.c (struct property): Make members non-const.
6331 (struct target_desc): Add arch member.
6332 (target_description_filename): New variable.
6333 (target_find_description): Try via XML first.
6334 (tdesc_architecture): New.
6335 (free_target_description, make_cleanup_free_target_description): New.
6336 (set_tdesc_property): Call xstrdup.
6337 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
6338 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
6339 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
6340 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
6341 * target-descriptions.h (tdesc_architecture)
6342 (make_cleanup_free_target_description, set_tdesc_architecture): New
6344 * Makefile.in (SFILES): Add xml-tdesc.c.
6345 (COMMON_OBS): Add xml-tdesc.o.
6346 (target-descriptions.o): Update.
6347 (xml-tdesc.o): New rule.
6348 * xml-tdesc.c, xml-tdesc.h: New files.
6349 * remote.c (PACKET_qXfer_features): New enum.
6350 (remote_protocol_features): Add qXfer:features:read.
6351 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
6352 (_initialize_remote): Register qXfer:features:read.
6353 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
6354 * features/gdb-target.dtd: New file.
6358 * copyright.sh: Clarify error.
6362 * symtab.c (matching_bfd_sections): Fix VMA matching for
6367 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
6372 Updated copyright notices for most files.
6376 * copyright.sh (prunes): Add step-line.inp and step-line.c.
6380 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
6382 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
6384 * configure, config.in: Regenerate.
6385 * defs.h (debug_file_directory): Declare.
6386 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
6387 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
6388 relocate it if DEBUGDIR_RELOCATABLE.
6389 * symfile.c (debug_file_directory): Make non-static.
6390 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
6391 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
6392 (_initialize_symfile): Don't initialize debug_file_directory here.
6396 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
6401 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
6402 frame_unwind_register to recurse.
6403 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
6404 (alpha_heuristic_frame_prev_register): Likewise.
6405 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
6406 * m32c-tdep.c (m32c_prev_register): Likewise.
6407 * frame.c (frame_register_unwind_location): Remove FIXME.
6412 * copyright.sh: New file.
6416 * configure.ac: Check for XML_StopParser.
6417 * xml-support.c (gdb_xml_body_text): Check for an error.
6418 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
6419 (gdb_xml_end_element_wrapper): Likewise.
6420 * config.in, configure: Regenerated.
6424 * varobj.c (install_new_value): Always update print_value.
6425 (value_get_print_value): Immediately return NULL for missing
6430 * configure.ac: Tighten pattern for extracting value of
6431 DEPRECATED_TM_FILE from the target makefile fragment.
6432 * configure: Regenerated.
6436 * linux-nat.c (struct simple_pid_list): Add status.
6437 (add_to_pid_list): Record the PID's status.
6438 (linux_record_stopped_pid): Likewise. Make static.
6439 (pull_pid_from_list): Return the saved status.
6440 (linux_nat_handle_extended): Deleted.
6441 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
6442 Make static. Handle non-SIGSTOP for a new thread's first signal.
6443 (flush_callback): Handle unexpected pending signals.
6444 (linux_nat_wait): Update calls to changed functions.
6445 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
6446 Remove prototypes for newly static functions.
6450 * gdbarch.sh (value_from_register): New gdbarch function.
6451 * gdbarch.c, gdbarch.h: Regenerate.
6452 * findvar.c (default_value_from_register): New function.
6453 (value_from_register): Use gdbarch_value_from_register.
6454 * value.h (default_value_from_register): Declare.
6455 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
6456 spu_value_to_register): Remove.
6457 (spu_value_from_register): New function.
6458 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6459 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6460 Call set_gdbarch_value_from_register.
6461 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
6462 s390_value_to_register): Remove.
6463 (s390_value_from_register): New function.
6464 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
6465 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
6466 Call set_gdbarch_value_from_register.
6470 * NEWS: Add "set sysroot" and "show sysroot".
6471 * solib.c (solib_absolute_prefix): Delete. Replace
6472 all uses with gdb_sysroot.
6473 (_initialize_solib): Add "set sysroot" and "show sysroot".
6474 Make "solib-absolute-prefix" an alias to it.
6478 * frame.c (get_frame_register_bytes): New function.
6479 (put_frame_register_bytes): Likewise.
6480 * frame.h (get_frame_register_bytes): Declare.
6481 (put_frame_register_bytes): Likewise.
6482 * findvar.c (value_from_register): Always construct lval_register
6483 values. Use get_frame_register_bytes.
6484 * valops.c (value_assign): Use get_frame_register_bytes and
6485 put_frame_register_bytes.
6489 * MAINTAINERS: Update Stan Shebs' email address.
6493 * ada-lang.c (is_known_support_routine): Improve the implementation.
6497 * ada-lang.c: Add include of source.h.
6498 (is_known_support_routine): Improve the check verifying that the file
6499 associated to this frame exists.
6500 * Makefile.in (ada-lang.o): Add dependency on source.h.
6504 * ax-general.c (ax_const_l): Select proper opcode for the given
6509 * varobj.c (c_value_of_root): Don't select frame if variable
6510 object is out of scope.
6514 * varobj.c (struct varobj): New member print_value.
6515 (install_new_value): Compare last printed value with current one
6516 instead of contents.
6517 (new_variable): Initialize var->print_value to NULL.
6518 (free_variable): Free var->print_value.
6519 (value_get_print_value): New function derived from
6520 c_value_of_variable.
6521 (c_value_of_variable): Use value_get_print_value.
6525 * i386-tdep.c (i386_analyze_stack_align): Add comment.
6529 * NEWS: Add entries for new catch commands.
6533 * dwarf2read.c (partial_die_info): Add field has_byte_size.
6534 (add_partial_symbol): Correct identification of external references.
6535 (process_structure_scope): Likewise.
6536 (read_partial_die): Handle DW_AT_byte_size attribute.
6540 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
6544 * varobj.c (get_type_deref): Fix variable objects for references to
6549 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
6554 * memory-map.c (struct_memory_map_parsing_data): Remove most
6555 members. Make property_name an array.
6556 (free_memory_map_parsing_data, memory_map_start_element)
6557 (memory_map_end_element, memory_map_character_data): Delete.
6558 (memory_map_start_memory, memory_map_end_memory)
6559 (memory_map_start_property, memory_map_end_property): New functions.
6560 (property_attributes, memory_children, memory_type_enum)
6561 (memory_attributes, memory_map_children, memory_map_elements): New.
6562 (parse_memory_map): Rewrite.
6563 * xml-support.c (debug_xml): New.
6564 (xml_get_required_attribute, xml_get_integer_attribute)
6565 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
6567 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
6568 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
6569 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
6570 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
6571 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
6572 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
6573 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
6575 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
6576 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
6577 (enum gdb_xml_element_flag, struct gdb_xml_element)
6578 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
6579 (struct gdb_xml_enum): New.
6580 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
6581 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
6582 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
6583 (xml_get_required_attribute, xml_get_integer_attribute)
6584 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
6585 * Makefile.in (xml_support_h, xml-support.o): Update.
6589 * Makefile.in (eval.o): Update dependencies.
6590 * eval.c: Include "ui-out.h" and "exceptions.h".
6591 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
6592 Use value_zero if an error occurs when avoiding side effects.
6593 * varobj.c (c_value_of_root): Initialize new_val.
6597 * varobj.c (varobj_list_children): Stop if the number of children is
6599 (c_number_of_children):
6603 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
6604 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
6605 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
6606 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
6607 sizeof, instead of hardcoded constants.
6611 * CONTRIBUTE: Use sourceware.org.
6615 * buildsym.c (start_subfile): Handle producer.
6616 (record_producer): New function.
6617 * buildsym.h (struct subfile): Include producer.
6618 (record_producer): New prototype.
6619 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
6620 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
6621 armcc_cfa_offsets_reversed.
6622 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
6623 (dwarf2_frame_find_quirks): New function.
6624 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
6625 (decode_frame_entry_1): Record the CIE version. Record the
6626 augmentation. Skip armcc augmentations.
6627 * dwarf2read.c (read_file_scope): Save the producer.
6628 * symtab.h (struct symtab): Rename unused version member to
6633 * configure.ac (build_warnings): Use -Wall and
6634 -Wdeclaration-after-statement.
6635 * configure: Regenerated.
6639 Simplify access to variours properties of child
6640 variable objects in C.
6641 * varobj.c (value_struct_element_index): New function.
6642 (c_describe_child): New function.
6643 (c_name_of_child, c_value_of_child)
6644 (c_type_of_child): Rewrite to use c_describe_child.
6649 * varobj.c: Include "vec.h".
6650 (varobj_p): New typedef, declare vector of those.
6651 (struct varobj): Use vector for the 'children' member.
6652 (child_exists): Remove.
6653 (save_child_in_parent): Remove.
6654 (remove_child_from_parent): Remove.
6655 (struct varobj_child): Remove.
6656 (struct vstack): Remove.
6657 (vpush, vpop): Remove.
6658 (varobj_list_children): Adjust to work work vector.
6659 (varobj_update): Likewise. Use vectors for
6660 working stack and result.
6661 (delete_variable_1): Likewise.
6662 * Makefile.in (varobj.o): Update dependencies.
6666 Port from Apple's version.
6668 * varobj.c (type_changeable): Rename to...
6669 (varobj_value_is_changeable_p): ...this. Adjust all callers.
6670 (is_root_p): New function. Use it everywhere.
6674 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
6679 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
6683 * hpread.c (hpread_type_lookup): Fix compilation failure.
6687 * NEWS: New port to S+core.
6688 * MAINTAINERS (Write After Approval, Responsible Maintainers):
6691 * Makefile.in: Add dependencies for S+core files.
6692 * configure.tgt (score*, score-*-*): Add S+core target.
6693 * config/score/embed.mt: New file.
6694 * score-tdep.c: New file.
6695 * score-tdep.h: New file.
6699 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
6700 the appropriate type rather than a bogus void type.
6704 * ada-lang.h (ada_find_printable_frame): Remove.
6705 (ada_exception_catchpoint_p, ada_decode_exception_location)
6706 (ada_decode_assert_location): Add declaration.
6707 * ada-lang.c: Add include of annotate.h and valprint.h.
6708 (exception_catchpoint_kind): New enum.
6709 (function_name_from_pc, is_known_support_routine)
6710 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
6711 (ada_exception_name_addr_1, ada_exception_name_addr)
6712 (print_it_exception, print_one_exception, print_mention_exception)
6713 (print_it_catch_exception, print_one_catch_exception)
6714 (print_mention_catch_exception, catch_exception_breakpoint_ops)
6715 (print_it_catch_exception_unhandled)
6716 (print_one_catch_exception_unhandled)
6717 (print_mention_catch_exception_unhandled, print_it_catch_assert)
6718 (print_one_catch_assert, print_mention_catch_assert)
6719 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
6720 (ada_get_next_arg, catch_ada_exception_command_split)
6721 (ada_exception_sym_name, ada_exception_sym_name)
6722 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
6723 (ada_parse_catchpoint_condition, ada_exception_sal)
6724 (ada_decode_exception_location)
6725 (ada_decode_assert_location): New function.
6726 (catch_exception_unhandled_breakpoint_ops): New global variable.
6727 (catch_assert_breakpoint_ops): New global variable.
6728 * breakpoint.c: Add include of ada-lang.h.
6729 (print_one_breakpoint): Do not print the condition for Ada
6730 exception catchpoints.
6731 (create_ada_exception_breakpoint): New function.
6732 (catch_ada_exception_command, catch_assert_command): New function.
6733 (catch_command_1): Add support for the new "catch exception" and
6734 "catch assert" commands.
6735 (_initialize_breakpoint): Add help description for the new catch
6737 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
6739 (breakpoint.o): Add dependency on ada-lang.h.
6743 * coffread.c (cs_to_section): If bfd_section is found, always
6744 return its section index.
6745 (coff_symtab_read): Determine the minimal_symbol_type using the
6751 * Makefile.in (top.o): Update.
6752 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
6753 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
6754 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
6756 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
6760 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
6761 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
6765 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
6766 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
6767 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
6768 greater than or equal to zero.
6769 * m2-typeprint.c (m2_array): Likewise.
6770 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6771 * gdbtypes.c (copy_type_recursive): Correct == typo.
6772 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
6773 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
6775 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
6776 (default_macro_scope): Remove unused variable.
6777 * prologue-value.h (pv_area_find_reg): Don't name an argument
6779 * remote-fileio.c (remote_fio_func_map): Add missing braces.
6780 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
6782 (cleanup_sigint_signal_handler): Remove casts.
6783 * valprint.c (val_print): Use a volatile local for the modified
6785 * varobj.c (languages): Remove extra array dimension.
6786 (varobj_create): Correct access to languages array.
6787 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
6789 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
6790 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
6791 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
6792 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
6793 (mi_cmd_data_write_memory): Likewise.
6794 * signals/signals.c (target_signal_to_string): Cast to int before
6796 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
6801 * NEWS: Mention pointer to member improvements.
6802 * Makefile.in (gnu-v3-abi.o): Delete special rule.
6803 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
6804 * ada-valprint.c (ada_print_scalar): Update for new type codes.
6805 * c-typeprint.c (c_print_type): Update for new type codes.
6806 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
6807 (c_type_print_base): Likewise.
6808 (c_type_print_args): Rewrite.
6809 * c-valprint.c (c_val_print): Update for new type codes. Remove
6810 support for references to members. Treat methods like functions.
6811 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
6812 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
6813 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
6814 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
6815 (struct cp_abi_ops): Add corresponding members.
6816 * cp-valprint.c (cp_print_class_method): Delete.
6817 (cp_find_class_member): New function.
6818 (cp_print_class_member): Use it. Simplify support for bogus
6820 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
6821 lookup_methodptr_type.
6822 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
6823 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
6824 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
6826 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
6827 references returned by user defined operators.
6828 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
6829 (f_type_print_varspec_suffix): Remove support for member pointers.
6830 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
6832 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
6833 (lookup_methodptr_type): New.
6834 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
6835 (recursive_dump_type): Update for new types.
6836 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
6837 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
6838 (lookup_memberptr_type, lookup_methodptr_type)
6839 (smash_to_memberptr_type): New prototypes.
6840 (smash_to_method_type): Formatting fix.
6841 (lookup_member_type, smash_to_member_type): Delete prototypes.
6842 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
6843 Do not rely on debug information for the vptr or the method's
6844 enclosing type. Handle function descriptors for IA64.
6845 (gnuv3_virtual_fn_field): Rewrite using the new functions.
6846 (gnuv3_find_method_in, gnuv3_print_method_ptr)
6847 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
6848 (gnuv3_method_ptr_to_value): New.
6849 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
6850 * hpread.c (hpread_type_lookup): Update for new types.
6851 * infcall.c (value_arg_coerce): Likewise.
6852 * m2-typeprint.c (m2_print_type): Remove explicit support
6853 for member pointers.
6854 * m2-valprint.c (m2_val_print): Likewise.
6855 * p-typeprint.c (pascal_type_print_varspec_prefix)
6856 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
6857 * p-valprint.c (pascal_val_print): Likewise.
6858 (pascal_object_print_class_method, pascal_object_print_class_member):
6860 * p-lang.h (pascal_object_print_class_method)
6861 (pascal_object_print_class_member): Delete prototypes.
6862 * stabsread.c (read_type): Update for new types.
6863 * typeprint.c (print_type_scalar): Likewise.
6864 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
6865 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
6866 argument. Construct a pointer to member if the address of a
6867 function or data member is requested.
6868 (value_cast_pointers): Don't modify the input value.
6869 (value_cast): Adjust pointer to member handling for new types.
6870 Allow null pointer to member constants. Don't modify the input
6872 (value_ind): Remove pointer to member check. Handle function
6873 descriptors for function pointers.
6874 (value_struct_elt, value_find_oload_method_list, check_field):
6875 Remove pointer to member checks.
6876 * value.c (unpack_long): Allow pointers to data members.
6877 (value_from_longest): Allow member pointers.
6878 * value.h (value_aggregate_elt): Add want_address.
6879 * varobj.c (c_variable_editable): Remove check for members.
6880 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
6881 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
6883 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
6884 * c-lang.h (cp_print_class_method): Delete prototype.
6885 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
6886 * mips-tdep.c (mips_gdbarch_init): Likewise.
6887 * gdbarch.c, gdbarch.h: Regenerated.
6891 * rs6000-tdep.c (rs6000_use_struct_convention)
6892 (rs6000_extract_return_value, rs6000_store_return_value)
6893 (rs6000_extract_struct_value_address): Remove.
6894 (rs6000_return_value): New function.
6895 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
6896 store_return_value, deprecated_extract_struct_value_address and
6897 deprecated_use_struct_convention. Use rs6000_return_value
6902 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
6903 -display-disable, -display-enable, -display-insert and
6908 * breakpoint.c (remove_breakpoint): Remove dead code.
6912 * varobj.c: Include block.h.
6913 (c_value_of_root): Check scope within nested statements.
6917 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
6918 regcache_cooked_write_signed instead of
6919 deprecated_write_register_bytes.
6923 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
6927 Followed the Start of New Year Procedure:
6928 * ChangeLog-2006: New file, containing all the entries for 2006.
6929 * ChangeLog: Removed all 2006 entries, and changed the reference
6930 to the previous ChangeLog to point to ChangeLog 2006.
6931 * top.c (print_gdb_version): Update copyright year.
6935 * Makefile.in (remote-sds.o): Remove.
6936 * remote-sds.c: Delete.
6938 For older changes see ChangeLog-2006.
6944 version-control: never