3 * ada-lang.c (ada_evaluate_subexp): Add cases for BINOP_LOGICAL_AND,
4 BINOP_LOGICAL_OR, UNOP_LOGICAL_NOT, BINOP_BITWISE_IOR,
5 BINOP_BITWISE_XOR, BINOP_BITWISE_AND.
6 * language.c (lang_bool_type): Add Ada case.
10 * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion.
14 * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
15 function to handle required actions for the DW_CFA_restore and
16 DW_CFA_restore_extended instructions.
17 (dwarf2_restore_rule): New function.
21 * ada-lang.c (ada_is_character_type): Add recognition of type
22 "Wide_Wide_Character".
26 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
27 for char and unsigned char types of Ada compilation units.
28 * ada-lang.c (ada_is_character_type): Always return true if
29 the type code is TYPE_CODE_CHAR.
33 * infrun.c (handle_inferior_event): Remove code that made us
34 stop when stepping into the last line of the current function.
38 * win32-nat.c: Fix PR gdb/2388.
39 (do_win32_fetch_inferior_registers): Do not overwrite debug register
40 array dr if debug_registers_changed variable is set.
44 * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
45 (add_partial_symbol, pdi_needs_namespace, process_die)
46 (is_type_tag_for_partial, load_partial_dies, new_symbol)
47 (read_type_die, determine_prefix): Extend the current code of
48 `DW_TAG_class_type' also for `DW_TAG_interface_type'.
52 * ada-lang.h (ada_renaming_category): New enumerated type.
53 (ada_lookup_encoded_symbol): Declare.
54 (ada_parse_renaming): Declare.
55 (ada_renaming_type,ada_is_object_renaming)
56 (ada_simple_renamed_entity): Delete declarations.
57 * ada-lang.c (ada_parse_renaming): New function to concentrate
58 extraction of information from renaming symbols.
59 (parse_old_style_renaming): New function to concentrate
60 extraction of old-style (purely type-based) renaming information.
61 (renaming_is_visible): Rename to...
62 (old_renaming_is_invisible): Rename and change sense of
64 (remove_out_of_scope_renamings): Rename to...
65 (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
66 and augments with additional logic to handle cases where the same
67 object renaming is encoded both as a reference variable and an
69 (ada_renaming_type,ada_is_object_renaming)
70 (ada_simple_renamed_entity): Delete definitions.
71 (ada_lookup_encoded_symbol): New function factored out of
73 (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
74 (wild_match): Don't reject perfect match of prefix.
75 (ada_find_renaming_symbol): Factor old-style renaming logic into
76 find_old_style_renaming_symbol.
77 (find_old_style_renaming_symbol): New name for content of old
78 ada_find_renaming_symbol.
79 (ada_prefer_type): Reimplement not to use ada_renaming_type.
80 * ada-exp.y (write_object_renaming): Change interface. Reimplement
81 to use new arguments and ada_parse_renaming.
82 Correct blocks used to find array index.
83 (write_var_or_type): Reimplement to use ada_parse_renaming.
87 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
88 value or to PATH_MAX when possible.
92 * rs6000-tdep.h: Remove defs.h #include.
93 * Makefile.in (rs6000_tdep_h): Update dependencies.
97 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
98 to conform to C extension for decimal float.
99 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
101 (enum cplus_primitive_types): Likewise.
102 (c_language_arch_info): Add Decimal Floating Point builtin types to
103 the primitive_type_vector.
104 (cplus_language_arch_info): Likewise.
109 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
110 integers and 32-bit pointers as required by the ABI.
114 * symtab.h: Remove "defs.h" #include.
115 * Makefile.in (symtab_h): Update dependencies.
119 * symtab.h: #include "defs.h".
120 (enum language): Remove opaque declaration.
121 * Makefile.in (symtab_h): Update dependencies.
125 * language.h (enum exp_opcode): Remove commented out forward
127 (op_error): Delete declaration.
131 * infrun.c (handle_inferior_event): Fix spelling in comment.
135 * minsyms.c (lookup_minimal_symbol): Also check the separate
137 (lookup_minimal_symbol_text): Likewise.
138 (lookup_minimal_symbol_solib_trampoline): Likewise.
139 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
143 * mi/mi-main.c (mi_cmd_list_features): Announce
144 the 'pending-breakpoints' feature.
148 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
149 offsets obtained from DW_AT_data_member_location before recording
150 them in FIELD_BITPOS (*fp).
152 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
157 * utils.c (string_to_core_addr): If the executable format
158 indicates that addresses should be sign-extended and there are
159 only 8 hex digits in the address, then do so.
160 * Makefile.in (utils.o): Depend on $(gdbcore_h).
164 * symfile.c (init_filename_language_table): Recognise .sx as
169 * language.h (enum exp_opcode): Comment out this declaration,
170 undoing the previous change.
174 * breakpoint.c: (watch_command_1): Parse additional optional
175 "thread" parameter to the watchpoint command and set the
176 "thread" member of the breakpoint struct.
180 * breakpoint.c (bpstat_stop_status): Check an additional
181 condition before evaluating an expression value.
185 * language.h (enum exp_opcode): Add forward declaration.
186 (language_string_char_type, language_lookup_primitive_type_by_name):
187 Move declaration past declaration of language_defn.
192 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
193 *-*-solaris2.1[[0-9]].
194 * configure: Regenerate.
195 * procfs.c (proc_set_current_signal): If redelivering a signal,
196 reuse the current siginfo if possible.
200 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
201 (f_type_print_base): Output the type names directly for real and
206 * breakpoint.c (bpstat_have_active_hw_watchpoints):
208 (bpstat_stop_status): Remove unused variable
210 * breakpoint.h (bpstat_have_active_hw_watchpoints):
215 * target.h (target_pid_or_tid_to_str): Remove.
216 * infrun.c (handle_inferior_event):
217 Use target_pid_to_str instead of
218 target_pid_or_tid_to_str.
219 (normal_stop): Likewise.
223 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
224 DWARF3 equivalent `DW_AT_bit_stride'.
225 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
229 * mi/mi-main.c: Remove code that was commented out in 1999.
233 * expression.h (parse_expression_in_context): Delete prototype.
234 * parse.c (parse_expression_in_context): Delete.
238 Add support for pending breakpoints in MI.
239 * gdb.h (gdb_breakpoint): Add parameter pending.
240 * breakpoint.c (gdb_breakpoint): Add parameter pending.
241 * mi/mi-cmd-break.c (mi_break_insert): Change
242 comment to refer to manual. Add support for
243 the -f flag, for pending breakpoint.
247 * breakpoint.c (break_command_really): New, copied
248 from break_command_1. New parameters COND_STRING, THREAD
249 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
250 The previous FLAG parameter split into TEMPFLAG and
252 When PARSE_CONDITION_AND_THREAD is not set, duplicate
253 the passed condition string.
254 (struct captured_breakpoint_args): Remove
255 (do_captured_breakpoint): Remove.
256 (break_command_1): Relay to break_command_really.
257 (gdb_breakpoint): Relay to break_command_really.
261 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
265 * dwarf2read.c (attr_form_is_constant): New function.
266 (dwarf2_add_field): Use it and attr_form_is_section_offset to
267 recognize DW_AT_data_member_location attributes. Use
268 dwarf2_get_attr_constant_value when the attribute is a constant.
270 * dwarf2read.c (attr_form_is_section_offset): New function.
271 (dwarf_add_member_fn, read_common_block, read_partial_die)
272 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
276 Remove unused support for target-based exception catching.
277 * target.h (struct target_ops): Delete
278 to_enable_exception_callback and to_get_current_exception_event
280 (target_enable_exception_callback)
281 (target_get_current_exception_event): Delete macros.
282 * target.c (update_current_target): Remove code to inherit and
283 default those members.
284 (debug_to_enable_exception_callback)
285 (debug_to_get_current_exception_event): Delete functions.
286 (setup_target_debug): Don't install those methods.
287 * inf-child.c (inf_child_enable_exception_callback)
288 (inf_child_get_current_exception_event): Delete dummy functions.
289 (inf_child_target): Don't install them in the target vector.
290 * breakpoint.h (enum bptype): Delete bp_catch_catch,
292 * breakpoint.c (cover_target_enable_exception_callback)
293 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
295 (insert_bp_location, update_breakpoints_after_exec)
296 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
297 (bpstat_stop_status, bpstat_what)
298 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
299 (user_settable_breakpoint, allocate_bp_location)
300 (disable_watchpoints_before_interactive_call_start)
301 (enable_watchpoints_after_interactive_call_stop, mention)
302 (delete_breakpoint, breakpoint_re_set_one, disable_command)
303 (enable_command): Remove exception catchpoint cases.
304 (catch_exception_command_1): Don't try target-based exception
306 * stack.c (catch_info): Call print_frame_label_vars
312 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
313 of setting deprecated_register_valid array directly.
317 * mips-tdep.c (extended_offset): Fix a comment.
321 * target.c (update_current_target): Inherit to_log_command.
322 * target.h (struct target_ops). Add to_log_command.
323 (target_log_command): New macro.
324 * top.c (execute_command): Call target_log_command() rather than
325 serial_log_command().
326 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
327 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
328 * remote-mips.c (_initialize_remote_mips): Likewise.
329 * remote.c (init_remote_ops): Likewise.
333 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
334 (handle_inferior_event): Clear stop_stack_dummy earlier.
338 * addrmap.c (addrmap_splay_tree_remove): New function.
339 (addrmap_mutable_set_empty): Use it.
341 * addrmap.c, addrmap.h: Update to GPLv3.
343 * addrmap.c (struct addrmap): Make the referenced function table
345 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
346 Don't use designated initializers.
348 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
349 (addrmap_mutable_relocate): Use internal_error, not abort.
351 * NEWS: Mention support for non-contiguous lexical blocks and
356 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
357 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
358 gdbarch as parameter.
359 * gdbarch.{c,h}: Regenerate.
361 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
362 Replace current_gdbarch by gdbarch.
363 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
364 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
365 (rs6000_dwarf2_reg_to_regnum): Likewise.
366 * mips-tdep.c (mips_stab_reg_to_regnum)
367 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
368 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
369 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
370 * i386-tdep.c (i386_dbx_reg_to_regnum)
371 (i386_svr4_reg_to_regnum): Likewise
372 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
373 (h8300_dbg_reg_to_regnum): Likewise.
374 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
375 * arch-utils.c (no_op_reg_to_regnum): Likewise.
376 * arch-utils.h (no_op_reg_to_regnum): Likewise.
377 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
378 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
379 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
380 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
381 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
385 Localize infrun use of remove_breakpoints.
386 * infrun.c (handle_inferior_event): Remove
387 calls to remove_breakpoints, except where needed to
388 communicate change of breakpoint locations to inferior.
389 (keep_going): If steppping over breakpoint, remove
394 Clarify infrun variable naming.
395 * infrun.c (trap_expected): Rename
396 to stepping_over_breakpoint. Document.
397 (stepping_past_breakpoint): Remove.
398 (stepping_past_breakpoint_ptdi): Renamed
399 to deferred_step_ptid.
400 (struct execution_control_state): Rename
401 the another_trap field to stepping_over_breakpoint.
402 (struct inferior_status): Rename the trap_expected
403 field to stepping_over_breakpoint.
404 (clear_proceed_status, proceed)
405 (init_execution_control_state, context_switch)
406 (handle_inferior_event, currently_stepping)
407 (keep_going, save_inferior_status)
408 (restore_inferior_status, prepare_to_proceed): Adjust.
409 * gdbthread.h (struct thread_info): Rename the
410 trap_expected field to stepping_over_breakpoint.
411 * thread.c (load_infrun_state, save_infrun_state):
416 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
417 Add "gdb_stdint.h" dependency required for uintptr_t type use.
418 (handle_output_debug_string): Use uintptr_t typecast.
419 (handle_exception): Ditto.
420 (win32_xfer_memory): Ditto.
421 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
425 Support lexical blocks and function bodies that occupy
426 non-contiguous address ranges.
427 * addrmap.c, addrmap.h: New files.
428 * block.h (struct addrmap): New forward declaration.
429 (struct blockvector): New member, 'map'.
430 (BLOCKVECTOR_MAP): New accessor macro.
431 * block.c: #include "addrmap.h"
432 (blockvector_for_pc_sect): If the blockvector we've found has
433 an address map, use it instead of searching the blocks.
434 * buildsym.c: #include "addrmap.h"
435 (pending_addrmap_obstack, pending_addrmap_interesting): New static
437 (really_free_pendings): If we have a pending addrmap, free it too.
438 (record_block_range): New function.
439 (make_blockvector): If we have an interesting pending addrmap,
440 record it in the new blockvector.
441 (start_symtab, buildsym_init): Assert that there is no pending
442 addrmap now; we should have cleaned up any addrmaps we'd built
444 (end_symtab): If there is a pending addrmap left over that didn't
445 get included in the blockvector, free it.
446 * buildsym.h (struct addrmap): New forward declaration.
447 (record_block_range): New prototype.
448 * objfiles.c: #include "addrmap.h".
449 (objfile_relocate): Relocate the blockvector's address map, if
451 * dwarf2read.c (dwarf2_record_block_ranges): New function.
452 (read_func_scope, read_lexical_block_scope): Call it.
453 * Makefile.in (SFILES): Add addrmap.c.
454 (addrmap_h): New header dependency variable.
455 (COMMON_OBS): Add addrmap.o.
456 (addrmap.o): New rule.l
457 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
459 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
460 pointer to the block, not its index in the blockvector.
461 (block_for_pc_sect): Use the returned block, instead of looking it
463 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
465 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
466 looking it up ourselves.
467 * stack.c (print_frame_label_vars): Disable function, which
468 depends on the block's index.
470 * buildsym.c (finish_block): Return the block we've built.
471 * buildsym.h (finish_block): Update prototype.
473 * defs.h (CORE_ADDR_MAX): New constant.
477 * coffread.c (decode_type): Use builtin_type_int32 instead
478 of FT_INTEGER fundamental type for array range index type.
479 (decode_base_type): Use builtin types of current_gdbarch
480 instead of fundamental types.
482 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
483 (read_file_scope): Do not initialize ftypes member.
484 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
485 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
486 fundamental type for array range index type.
487 (read_tag_string_type): Likewise for string range index type.
488 Also, do not overwrite FT_CHAR type with new string type.
489 (read_base_type): If DW_AT_name is missing, create unnamed type
490 with given properties instead of looking for a fundamental type.
491 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
492 DW_ATE_complex_float types.
493 (read_subrange_type): Create new type to represent missing
494 DW_AT_type instead of looking for a fundamental type.
495 (die_type): Use builtin type to represent "void" instead of
496 looking for a fundamental type.
498 * stabsread.c (define_symbol): Use builtin types to represent
499 'r' and 'i' floating-point and integer constants.
501 * gdbtypes.c (lookup_fundamental_type): Remove.
502 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
503 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
504 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
505 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
506 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
507 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
508 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
509 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
510 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
511 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
512 * objfiles.c (struct objfile): Remove fundamental_types member.
513 * symfile.c (reread_symbols): Do not clear fundamental_types.
515 * language.h (struct language_defn): Remove la_fund_type member.
516 (create_fundamental_type): Remove.
517 * language.c (unk_lang_create_fundamental_type): Remove.
518 (unknown_language_defn, auto_language_defn,
519 local_language_defn): Adapt initializer.
520 * ada-lang.c (ada_create_fundamental_type): Remove.
521 (ada_language_defn): Adapt initializer.
522 * c-lang.h (c_create_fundamental_type): Remove prototype.
523 * c-lang.c (c_create_fundamental_type): Remove.
524 (c_language_defn, cplus_language_defn, asm_language_defn,
525 minimal_language_defn): Adapt initializer.
526 * f-lang.c (f_create_fundamental_type): Remove.
527 (f_language_defn): Adapt initializer.
528 * jv-lang.c (java_create_fundamental_type): Remove.
529 (java_language_defn): Adapt initializer.
530 * m2-lang.c (m2_create_fundamental_type): Remove.
531 (m2_language_defn): Adapt initializer.
532 * objc-lang.c (objc_create_fundamental_type): Remove.
533 (objc_language_defn): Adapt initializer.
534 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
535 * p-lang.c (pascal_create_fundamental_type): Remove.
536 (pascal_language_defn): Adapt initializer.
537 * scm-lang.c (scm_language_defn): Adapt initializer.
541 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
542 * features/mips64-cpu.xml: Likewise.
543 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
544 * features/mips64-fpu.xml: Likewise.
545 * features/mips-linux.c: Regenerate.
546 * features/mips64-linux.c: Regenerate.
550 * target.h (target_find_new_threads): Fix definition.
554 * win32-nat.c (win32_resume): Set the trace bit
555 in the thread identified by inferior_ptid.
560 * win32-nat.c (open_process_used): New static variable.
561 (win32_init_thread_list): Remove call to CloseHandle for thread.
562 (win32_delete_thread): Ditto.
563 (fake_create_process): Set open_process_used if OpenProcess call is
565 (get_win32_debug_event): Do not close process handle.
566 (do_initial_win32_stuff): Set open_process_used to zero.
567 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
568 open_process_used is set.
569 (win32_kill_inferior): Do not close process and main_thread handles.
573 * remote.c (remote_cmdlist): New variable.
574 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
575 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
576 (remote_buffer_add_string, remote_buffer_add_bytes)
577 (remote_buffer_add_int, remote_hostio_parse_result)
578 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
579 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
580 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
581 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
582 (remote_file_delete, remote_put_command, remote_get_command)
583 (remote_delete_command, remote_command): New functions.
584 (_initialize_remote): Register new packets and commands.
585 * Makefile.in (gdb_fileio_h): New variable.
587 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
588 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
589 (mi-cmd-target.o): New rule.
590 * mi/mi-cmd-target.c: New file.
591 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
593 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
594 (mi_cmd_target_file_delete): Declare.
595 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
597 * NEWS: Describe new file transfer support.
601 * infrun.c (handle_inferior_event): Don't
602 ignore beakpoints if trap_expected is set.
606 Make insert_breakpoints return void.
607 * breakpoint.h (insert_breakpoints): Change
609 * breakpoint.c (insert_breakpoints): Change
610 return type to void. Rename local return_val
612 * infrun.c (keep_going): Instead of checking
613 return value from insert_breakpoints, catch exception.
617 Stop infrun from tracking breakpoint insertion status.
619 The checks of breakpoints_inserted before calling
620 remove_breakpoints are removed, as remove_breakpoint
621 won't touch uninserted breakpoints. In a number of places,
622 we're interested if a breakpoint is inserted at particular
623 PC, and we now use breakpoint_inserted_here_p. In a few
624 places, insert_breakpoints can be called unconditionally,
625 since it won't try to insert already inserted breakpoint.
627 * breakpoint.h (regular_breakpoint_inserted_here_p): New
629 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
630 (breakpoint_inserted_here_p): Use
631 regular_breakpoint_inserted_here_p.
632 * infrun.c (breakpoints_inserted): Remove.
633 (resume): Don't check for breakpoints_inserted before
634 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
635 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
636 (handle_inferior_event): Don't use breakpoints_inserted.
637 Use breakpoints_meant_to_be_inserted and
638 breakpoints_inserted_here_p.
639 (insert_step_resume_breakpoint_at_sal, keep_going): Use
640 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
641 (normal_stop): Don't check for breakpoints_inserted. Don't
642 set breakpoints_inserted.
643 (keep_going): Don't check for breakpoints_inserted.
644 (insert_step_resume_breakpoint_at_sal): Don't insert
649 * breakpoint.c (watch_command_1): When the watchpoint isn't local
650 to any frame, initialize watchpoint_frame using null_frame_id, not
655 * infrun.c (resume): Set right thread even if
656 stepping over breakpoint using software single step.
660 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
661 (mi_print_value_p): Guard against type = NULL.
665 * dfp.c (decimal_from_string): Remove superfluous newline from
667 (decimal_to_string): Likewise.
668 * printcmd.c (printf_command): Change string buffer to use
669 MAX_DECIMAL_STRING constant.
670 * value.c (value_from_decfloat): Likewise.
674 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
675 64-bit CORE_ADDR and BFD support, move them to ...
676 (ALL_64_TARGET_OBS): ... this new variable.
677 * configure.ac: Check for --enable-64-bit-bfd option. Only add
678 64-bit targets with --enable-targets=all if BFD supports 64-bit.
679 * configure: Regenerate.
681 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
682 all elf32-i386 executables, only cygwin core files.
686 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
687 code with its variables OBJFILE, CU_HEADER and OBFD into ...
688 (dwarf2_ranges_read): ... a new function.
689 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
693 * win32-nat.c (DR6_CLEAR_VALUE): New define.
694 (thread_info_struct): Rename suspend_count to suspended, to be
696 (thread_rec): Only suspend the thread if it wasn't suspended by
697 gdb before. Warn if suspending failed.
698 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
699 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
700 `suspended' flag. Do ContinueDebugEvent after resuming the
701 suspended threads, not before. Set threads' contexts before
702 resuming them, not after.
703 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
707 * breakpoint.c (insert_breakpoints)
708 (insert_bp_location): Remove stale comments.
712 * mips-linux-tdep.h: Fix some formatting.
716 * stack.c (print_args_stub): Use get_frame_arch to get at the current
717 architecture and replace current_gdbarch.
718 (frame_info): Likewise.
722 * varobj.c (c_variable_editable, cplus_variable_editable)
723 (java_variable_editable, variable_editable): Delete.
724 (varobj_editable_p): Replace above functions with one language
725 independent function. Check for an lvalue.
726 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
727 (struct language_specific): Delete variable_editable field.
729 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
731 * varobj.h: Add extern for varobj_editable_p.
735 Remove unused breakpoint fields.
736 * breakpoint.h (struct breakpoint): Remove
737 from_tty and flag fields.
738 * breakpoint.c (break_command_1): Don't set
739 from_tty and flag field set of breakpoint.
740 (create_ada_exception_breakpoint): Don't set
746 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
751 * infrun.c (resume): Clarify logic that
752 decides if a single thread must be resumed. Add
757 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
762 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
763 * gdbarch.{c,h}: Regenerate.
765 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
766 * score-tdep.c (score_register_sim_regno): Likewise.
767 * sim-regno.h (one2one_register_sim_regno): Likewise.
769 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
770 Replace current_gdbarch by gdbarch.
771 * sh-tdep.c (sh_sh2a_register_sim_regno)
772 (sh_dsp_register_sim_regno): Likewise.
773 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
774 * mips-tdep.c (mips_register_sim_regno): Likewise.
775 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
776 * frv-tdep.c (frv_register_sim_regno): Likewise.
777 * arm-tdep.c (arm_register_sim_regno): Likewise.
778 * remote-sim.c (one2one_register_sim_regno): Likewise.
782 * configure.ac (--enable-targets): New configure option.
783 Collect gdb_target_obs of multiple targets into TARGET_OBS.
784 Call configure.tgt multiple times, using $targ as operand.
785 * configure.tgt: Operate on $targ instead of $target.
786 * configure: Regenerate.
787 * Makefile.in (ALL_TARGET_OBS): Define.
789 * NEWS: Mention --enable-targets option.
793 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
794 current architecture is not MIPS.
798 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
799 to construct error message if no argument was supplied.
803 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
804 (i386nbsd_aout_regset_from_core_section): Likewise.
805 (i386nbsd_aout_init_abi): Likewise.
806 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
808 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
809 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
813 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
814 (amd64fbsd_sigtramp_end_addr): Likewise.
816 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
817 (iq2000_address_to_pointer): Likewise.
818 (iq2000_frame_prev_register): Likewise.
819 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
820 instead of regcache_cooked_read into CORE_ADDR variable.
821 (iq2000_return_value): Fix argument types.
823 * m32r-rom.c (m32r_load_section): Fix printf argument type.
824 (m32r_load): Likewise.
826 * m68kbsd-tdep.c: Include "gdbtypes.h".
827 * Makefile.in: Update dependencies.
829 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
831 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
832 lmo->l_addr_size element.
834 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
835 (m32r_insert_breakpoint): Likewise.
836 (m32r_remove_breakpoint): Likewise.
837 (m32r_insert_watchpoint): Likewise.
838 (m32r_remove_watchpoint): Likewise.
839 (m32r_load): Fix printf argument type.
841 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
843 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
844 (xtensa_frame_prev_register): Likewise.
845 (xtensa_push_dummy_call): Likewise.
849 * config/alpha/alpha-linux.mt: Remove file.
850 * config/alpha/alpha.mt: Remove file.
851 * config/alpha/alpha-osf1.mt: Remove file.
852 * config/alpha/fbsd.mt: Remove file.
853 * config/alpha/nbsd.mt: Remove file.
854 * config/alpha/obsd.mt: Remove file.
855 * config/arm/embed.mt: Remove file.
856 * config/arm/linux.mt: Remove file.
857 * config/arm/nbsd.mt: Remove file.
858 * config/arm/obsd.mt: Remove file.
859 * config/arm/wince.mt: Remove file.
860 * config/avr/avr.mt: Remove file.
861 * config/cris/cris.mt: Remove file.
862 * config/frv/frv.mt: Remove file.
863 * config/h8300/h8300.mt: Remove file.
864 * config/i386/cygwin.mt: Remove file.
865 * config/i386/fbsd64.mt: Remove file.
866 * config/i386/fbsd.mt: Remove file.
867 * config/i386/i386gnu.mt: Remove file.
868 * config/i386/i386.mt: Remove file.
869 * config/i386/i386sol2.mt: Remove file.
870 * config/i386/linux64.mt: Remove file.
871 * config/i386/linux.mt: Remove file.
872 * config/i386/mingw.mt: Remove file.
873 * config/i386/nbsd64.mt: Remove file.
874 * config/i386/nbsd.mt: Remove file.
875 * config/i386/nto.mt: Remove file.
876 * config/i386/obsd64.mt: Remove file.
877 * config/i386/obsd.mt: Remove file.
878 * config/i386/sol2-64.mt: Remove file.
879 * config/ia64/ia64.mt: Remove file.
880 * config/ia64/linux.mt: Remove file.
881 * config/iq2000/iq2000.mt: Remove file.
882 * config/m32c/m32c.mt: Remove file.
883 * config/m32r/linux.mt: Remove file.
884 * config/m32r/m32r.mt: Remove file.
885 * config/m68hc11/m68hc11.mt: Remove file.
886 * config/m68k/linux.mt: Remove file.
887 * config/m68k/monitor.mt: Remove file.
888 * config/m68k/nbsd.mt: Remove file.
889 * config/m68k/obsd.mt: Remove file.
890 * config/m88k/obsd.mt: Remove file.
891 * config/mep/mep.mt: Remove file.
892 * config/mips/embed.mt: Remove file.
893 * config/mips/irix5.mt: Remove file.
894 * config/mips/irix6.mt: Remove file.
895 * config/mips/linux.mt: Remove file.
896 * config/mips/nbsd.mt: Remove file.
897 * config/mips/obsd64.mt: Remove file.
898 * config/mn10300/linux.mt: Remove file.
899 * config/mn10300/mn10300.mt: Remove file.
900 * config/mt/mt.mt: Remove file.
901 * config/pa/hppahpux.mt: Remove file.
902 * config/pa/hppa.mt: Remove file.
903 * config/pa/linux.mt: Remove file.
904 * config/pa/obsd.mt: Remove file.
905 * config/powerpc/aix.mt: Remove file.
906 * config/powerpc/linux.mt: Remove file.
907 * config/powerpc/nbsd.mt: Remove file.
908 * config/powerpc/obsd.mt: Remove file.
909 * config/powerpc/ppc-eabi.mt: Remove file.
910 * config/s390/s390.mt: Remove file.
911 * config/score/embed.mt: Remove file.
912 * config/sh/embed.mt: Remove file.
913 * config/sh/linux.mt: Remove file.
914 * config/sh/nbsd.mt: Remove file.
915 * config/sh/obsd.mt: Remove file.
916 * config/sh/sh64.mt: Remove file.
917 * config/sparc/embed.mt: Remove file.
918 * config/sparc/fbsd.mt: Remove file.
919 * config/sparc/linux64.mt: Remove file.
920 * config/sparc/linux.mt: Remove file.
921 * config/sparc/nbsd64.mt: Remove file.
922 * config/sparc/nbsd.mt: Remove file.
923 * config/sparc/obsd64.mt: Remove file.
924 * config/sparc/obsd.mt: Remove file.
925 * config/sparc/sol2-64.mt: Remove file.
926 * config/sparc/sol2.mt: Remove file.
927 * config/sparc/sparc64.mt: Remove file.
928 * config/sparc/sparc.mt: Remove file.
929 * config/spu/spu.mt: Remove file.
930 * config/v850/v850.mt: Remove file.
931 * config/vax/nbsd.mt: Remove file.
932 * config/vax/obsd.mt: Remove file.
933 * config/vax/vax.mt: Remove file.
934 * config/xstormy16/xstormy16.mt: Remove file.
935 * config/xtensa/xtensa.mt: Remove file.
937 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
938 (gdb_target): Likewise.
939 (gdb_target_obs): Document. Set for every target to contents
940 of TDEPFILES in former .mt makefile fragment.
942 * configure.ac (TARGET_OBS): Define.
943 (target_makefile_frag, gdb_target_cpu): Do not define.
944 * configure: Regenerate.
946 * Makefile.in (MT_FLAGS): Remove.
947 (GLOBAL_CFLAGS): Update.
948 (TARGET_OBS): Substitute from configure.
949 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
950 (@target_makefile_frag@): Remove.
954 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
955 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
956 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
957 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
958 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
959 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
960 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
961 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
962 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
963 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
964 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
965 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
966 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
967 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
968 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
969 * config/powerpc/ppc-sim.mt: Remove file.
970 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
971 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
972 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
973 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
974 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
975 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
976 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
978 * configure.tgt (gdb_sim): Document variable.
979 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
982 (h8300-*-*): Likewise.
983 (iq2000-*-*): Likewise.
984 (m32c-*-*): Likewise.
985 (m32r*-*-linux*): Likewise.
986 (m32r*-*-*): Likewise.
987 (m68hc11*-*-*|m6811*-*-*): Likewise.
988 (mips*-*-*): Likewise.
989 (mips*-*-linux*): Likewise.
990 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
991 (mn10300-*-*): Likewise.
992 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
993 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
994 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
996 (sh-*-linux*): Likewise.
997 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
998 (sh64-*-elf*): Likewise.
999 (sparc-*-rtems*): Likewise.
1000 (v850*-*-elf): Likewise.
1001 (xstormy16-*-*): Likewise.
1003 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
1004 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
1005 * configure: Regenerate.
1006 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
1007 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
1011 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
1012 (arm*-*-*): Do not set obsolete build_rdi_share variable.
1014 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
1015 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1016 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
1017 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
1018 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
1020 (xscale-*-*): Merge into arm*-*-* case.
1021 (fido-*-elf*): Merge into m68*-*-elf* case.
1022 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1023 m68*-*-uclinux*): Merge cases.
1024 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1025 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1029 * configure.tgt: Reformat main case statement.
1033 * configure.ac (hostfile, targetfile): Remove.
1034 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1035 (xm_h, tm_h): Likewise.
1036 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1037 * configure, config.in: Regenerate.
1039 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
1040 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1041 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1042 * defs.h: Do not include "xm.h" or "tm.h".
1044 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1045 * gdbarch.c: Regenerate.
1047 * config/score/embed.mt: Remove obsolete comment.
1051 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1053 * gdbarch.{c,h}: Regenerate.
1055 * alpha-tdep.c (alpha_cannot_fetch_register)
1056 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1057 current_gdbarch by gdbarch.
1058 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1059 (crisv32_cannot_fetch_register)
1060 (crisv32_cannot_store_register): Likewise.
1061 * arch-utils.c (cannot_register_not): Likewise.
1062 * arch-utils.h (cannot_register_not): Likewise.
1063 * hppa-tdep.c (hppa32_cannot_store_register)
1064 (hppa32_cannot_store_register, hppa64_cannot_store_register)
1065 (hppa64_cannot_fetch_register): Likewise.
1066 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1067 (mipsnbsd_cannot_store_register): Likewise.
1071 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1072 the current architecture by regcache.
1073 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1074 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1075 (fetch_register, supply_vrregset, fetch_ppc_registers)
1076 (store_altivec_register, store_spe_register, store_register)
1077 (fill_vrregset, store_ppc_registers): Likewise.
1078 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1079 * win32-nat.c (do_win32_fetch_inferior_registers)
1080 (do_win32_store_inferior_registers): Likewise.
1081 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1082 * remote-m32r-sdi.c (m32r_fetch_registers)
1083 (m32r_store_registers): Likewise.
1084 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1086 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1088 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1089 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1090 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1091 (ppc64_sysv_abi_return_value): Likewise.
1092 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1093 * m2-lang.c (build_m2_types): Likewise.
1094 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1095 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1096 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1097 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1099 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1100 get at the current architecture by frame_info.
1101 * gcore.c (derive_stack_segment): Likewise.
1103 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1104 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1105 gdbarch to GETREGS_SUPPLIES call.
1109 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1110 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1111 ELF-private symbol data when processing synthetic symbols. Use
1112 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1113 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1117 * buildsym.h (subfiles): Move ...
1118 * buildsym.c (subfiles): ... to here and make static.
1120 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1124 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1128 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1129 expression and use get_frame_arch to replace current_gdbarch by frame's
1131 * arm-tdep.h (LOWEST_PC): Remove
1135 Apply const qualifier to some users of bp_location.
1136 * breakpoint.h (struct bpstats): Make
1137 the breakpoint_at field point at const bp_location.
1138 * breakpoint.c (bpstat_alloc): Accept const
1140 (breakpoint_here_p, breakpoint_inserted_here_p)
1141 (software_breakpoint_inserted_here_p)
1142 (breakpoint_thread_match, bpstat_stop_status)
1143 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1144 const bp_location for iteration.
1145 (print_it_typical, print_bp_stop_message): Use
1146 const bp_location variable.
1150 Make mark_breakpoints_out static.
1151 * breakpoint.h (mark_breakpoints_out): Remove
1153 * breakpoint.c (mark_breakpoints_out): Make static.
1157 Prevent clear_command from directly modifying breakpoint list.
1158 * Makefile.in (breakpoint_h): Update dependency.
1159 * breakpoint.c (clear_command): Do not remove
1160 breakpoints from breakpoint_chain. Collect breakpoints
1161 to delete in a vector.
1162 * breakpoint.h (breakpoint_p): New typedef for pointer to
1163 breakpoint. Register vector of breakpoint_p.
1167 Remove 'run_cleanup'.
1168 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1170 * infcmd.c (run_command_1): Call clear_solib instead
1172 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1174 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1175 (update_solib_lib): Don't setup run cleanup.
1176 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1177 * utils.c (run_cleanup_chain, make_run_cleanup)
1178 (do_run_cleanups): Remove.
1182 Remove CLEAR_SOLIB use.
1183 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1184 * infcmd.c (attach_command): Likewise.
1188 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1192 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1196 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1198 (verify_gdbarch, gdbarch_dump): Likewise.
1199 (do_read): Update comment.
1200 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1201 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1202 * gdbarch.{c,h}: Regenerate.
1206 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1207 (ARGS_FIRST_REG): Remove.
1208 (areg_numer): New function.
1209 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1210 (xtensa_extract_return_value, xtensa_store_return_value)
1211 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1212 (AREG_NUMBER): Remove.
1213 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1214 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1215 (xtensa_push_dummy_call): Update use of ARG_NOF.
1216 (extract_call_winsize): Add gdbarch as parameter. Replace
1217 current_gdbarch by gdbarch.
1218 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1219 of extract_call_winsize.
1223 * NEWS: Add entry for new set/show print frame-args command.
1227 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1228 register number to map. Adjust warning check and error/warning
1229 return value code to match expectations of this function's callers.
1233 * stack.c (print_this_frame_argument_p): Handle arguments passed
1234 by reference properly.
1238 * stack.c (print_frame_arguments_choices): New static global.
1239 (print_frame_arguments): Likewise.
1240 (print_this_frame_argument_p): New function.
1241 (print_frame_args): Print the argument value only when appropriate.
1242 (_initialize_task): Add new "set/show print frame-arguments" command.
1246 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1247 saved_dabr_value assignment to the correct position.
1251 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1252 * arch-utils.h (generic_convert_register_p): Likewise.
1256 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1257 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1258 * i387-tdep.c (i387_convert_register_p): Likewise.
1259 * i387-tdep.h (i387_convert_register_p): Likewise.
1260 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1261 * gdbarch.{c,h}: Regenerate.
1263 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1264 Replace current_gdbarch by gdbarch.
1265 * mips-tdep.c (mips_convert_register_p): Likewise.
1266 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1267 * i386-tdep.c (i386_convert_register_p): Likewise.
1271 * gdb_string.h: Include <strings.h>.
1275 * breakpoint.c (break_command_1): Remove
1276 pending_bp parameter.
1277 (create_breakpoint): Likewise.
1278 (create_breakpoints): Likewise. Adjust call to
1280 (break_command_1): Likewise. Adjust call to
1282 (do_captured_breakpoint): Adjust call to
1284 (break_command, tbreak_command, hbreak_command)
1285 (stopin_command, stopat_command): Adjust call
1291 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1292 struct values smaller than one doubleword; left-align those
1293 larger. Pass structs containing a single floating-point value in
1299 * gdbtypes.c (floatformats_ibm_long_double): New.
1300 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1301 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1303 * mips-tdep.c (n32n64_floatformat_always_valid,
1304 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1306 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1307 floatformats_n32n64_long.
1308 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1310 * doublest.c (convert_floatformat_to_doublest,
1311 convert_doublest_to_floatformat): Handle split floating-point
1313 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1315 (ppc64_sysv_abi_push_dummy_call): Likewise.
1316 (do_ppc_sysv_return_value): Handle IBM long double return.
1320 Fix crash when a variable object being deleted
1321 has any of its children deleted previously.
1323 * varobj.c (delete_variable_1): Don't recurse
1324 into deleted children.
1328 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1329 * gdbarch.{c,h}: Regenerate.
1330 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1331 Replace current_gdbarch by gdbarch.
1332 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1333 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1334 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1338 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1339 get_regcache_arch to get at the current architecture by regcache.
1340 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1341 to get at the current architecture by frame_info.
1342 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1343 at the current architecture by regcache.
1344 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1345 the current architecture by frame_info.
1346 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1347 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1348 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1349 caller of special_register_p.
1353 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1354 current architecture by frame_info.
1358 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1362 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1363 get at the current architecture by regcache.
1364 (SUBOFF): Add gdbarch to macro definition.
1368 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1369 * gdbarch.{c,h}: Regenerate.
1371 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1372 Replace current_gdbarch by gdbarch.
1373 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1374 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1375 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1376 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1377 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1378 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1379 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1381 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1383 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1384 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1385 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1386 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1387 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1388 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1389 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1390 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1391 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1392 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1393 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1394 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1395 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1396 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1397 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1398 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1399 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1400 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1401 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1402 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1404 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1405 Replace current_gdbarch by gdbarch.
1406 (rs6000_software_single_step): Use get_frame_arch to get at the
1407 current architecture by frame_info. Add gdbarch to
1408 rs6000_breakpoint_from_pc call.
1412 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1413 macro CURRENT_VARIANT by its expression.
1414 (CURRENT_VARIANT): Remove.
1415 (frv_check_watch_resources): Add gdbarch parameter.
1419 * MAINTAINERS (Write After Approval): Add self.
1423 * features/rs6000/power-core.xml: Use uint32 as register type.
1424 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1425 * features/rs6000/powerpc-32.c: Regenerate.
1426 * features/rs6000/powerpc-403.c: Regenerate.
1427 * features/rs6000/powerpc-403gc.c: Regenerate.
1428 * features/rs6000/powerpc-505.c: Regenerate.
1429 * features/rs6000/powerpc-602.c: Regenerate.
1430 * features/rs6000/powerpc-603.c: Regenerate.
1431 * features/rs6000/powerpc-604.c: Regenerate.
1432 * features/rs6000/powerpc-64.c: Regenerate.
1433 * features/rs6000/powerpc-7400.c: Regenerate.
1434 * features/rs6000/powerpc-750.c: Regenerate.
1435 * features/rs6000/powerpc-860.c: Regenerate.
1436 * features/rs6000/powerpc-e500.c: Regenerate.
1440 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1444 * breakpoint.h (create_solib_load_event_breakpoint)
1445 (create_solib_unload_event_breakpoint)
1446 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1447 (create_exec_event_catchpoint): Delete declaration.
1448 * breakpoint.c (create_solib_load_event_breakpoint)
1449 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1450 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1451 (create_exec_event_catchpoint): Make static.
1455 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1456 * breakpoint.c (set_breakpoint_sal): Delete.
1460 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1461 (make_blockvector): Likewise. Remove FIXME comment.
1465 * printcmd.c: (printf_command): Add support for new DFP
1466 modifiers %H, %D and %DD.
1467 * configure.ac: Add check for DECFLOAT printf support.
1468 * configure: Regenerated.
1472 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1473 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1474 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1475 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1476 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1477 (has_vtable, primary_base_class, virtual_base_list_length,
1478 virtual_base_list_length_skip_primaries, virtual_base_index,
1479 virtual_base_index_skip_primaries, class_index_in_primary_list,
1480 count_virtual_fns): Remove prototypes.
1481 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1482 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1483 virtual_base_list_length_skip_primaries, virtual_base_index,
1484 virtual_base_index_skip_primaries, class_index_in_primary_list,
1485 count_virtual_fns): Remove.
1487 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1488 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1489 (cp_print_value_fields): Remove support for HP aCC vtables.
1490 (cp_print_value): Likewise.
1491 * c-typeprint.c (c_type_print_base): Likewise.
1493 * value.h (find_rt_vbase_offset): Remove prototype.
1494 * valops.c (find_rt_vbase_offset): Remove.
1495 (search_struct_method): Remove support for HP aCC vtables.
1496 (find_method_list): Likewise.
1500 * language.h (struct language_defn): Remove la_builtin_type_vector
1501 and string_char_type members.
1502 * language.c (language_string_char_type): No longer consult
1503 la->string_char_type.
1504 (language_lookup_primitive_type_by_name): No longer consult
1505 current_language->la_builtin_type_vector.
1507 * language.c (unknown_language_defn, auto_language_defn,
1508 local_language_defn): Adapt initializer.
1509 * ada-lang.c (ada_language_defn): Likewise.
1510 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1511 minimal_language_defn): Likewise.
1512 * f-lang.c (f_language_defn): Likewise.
1513 * jv-lang.c (java_language_defn): Likewise.
1514 * m2-lang.c (m2_language_defn): Likewise.
1515 * objc-lang.c (objc_language_defn): Likewise.
1516 * p-lang.c (pascal_language_defn): Likewise.
1517 * scm-lang.c (scm_language_defn): Likewise.
1521 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1522 current_gdbarch by gdbarch.
1523 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1524 current architecture by frame_info.
1525 * frame.h (frame_id_inner): Add gdbarch parameter.
1526 * stack.c (return_command): Use get_frame_arch to get at the current
1527 architecture by frame_info. Update call of frame_id_inner.
1528 * infrun.c (handle_inferior_event): Likewise.
1529 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1530 current architecture by regcache. Update call of frame_id_inner.
1534 * gdbarch.sh (register_name): Add gdbarch parameter.
1535 * gdbarch.{c,h}: Regenerate.
1537 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1538 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1539 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1541 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1542 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1543 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1544 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1545 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1546 (mt_registers_info): Replace current_gdbarch by gdbarch.
1547 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1548 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1549 current_gdbarch by gdbarch.
1550 (mips_register_name): Add gdbarch to tdesc_register_name call.
1551 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1552 current_gdbarch by gdbarch.
1553 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1554 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1555 current_gdbarch by gdbarch.
1556 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1557 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1558 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1559 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1560 architecture by frame_info.
1561 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1562 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1563 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1565 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1566 (h8300sx_register_name): Add gdbarch parameter.
1567 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1568 gdbarch parameter. Replace current_gdbarch by gdbarch.
1569 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1570 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1571 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1572 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1574 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1575 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1576 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1577 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1578 of alpha_register_name.
1579 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1580 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1581 current_gdbarch by gdbarch.
1582 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1583 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1584 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1586 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1587 (m68hc11_register_reggroup_p): Add gdbarch to call of
1588 m68hc11_register_name.
1589 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1590 (am33_2_register_name): Add gdbarch parameter.
1591 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1592 architecture by frame_info.
1593 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1594 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1595 current_gdbarch by gdbarch.
1596 * score-tdep.c (score_register_name): Add gdbarch parameter.
1597 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1599 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1600 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1601 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1602 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1603 and update caller. Replace current_gdbarch by gdbarch.
1604 (sh64_extract_return_value, sh64_store_return_value): Use
1605 get_regcache_arch to get at the current architecture by regcache.
1606 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1607 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1608 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1609 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1610 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1612 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1613 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1614 current_gdbarch by gdbarch.
1615 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1616 get_regcache_arch to get at the current architecture by regcache.
1617 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1618 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1619 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1621 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1622 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1623 current_gdbarch by gdbarch.
1624 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1625 (xtensa_frame_prev_register): Add gdbarch parameter to
1626 xtensa_register_name call.
1630 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1631 find_solib_trampoline_target if PC is not in .plt section.
1635 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1636 minimal symbol from an undefined dynamic symbol, use proper section.
1640 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1641 to get at the current architecture by regcache.
1645 * libunwind-frame.c (libunwind_frame_sniffer)
1646 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1647 (libunwind_frame_cache): Use get_frame_arch to get at the current
1648 architecture by frame_info.
1649 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1653 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1654 at the current architecture by frame_info.
1658 * inf-child.c (inf_child_fetch_inferior_registers): Use
1659 get_regcache_arch to get at the current architecture by regcache.
1663 * inf-ptrace.c (inf_ptrace_fetch_registers)
1664 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1665 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1666 current architecture by regcache.
1670 * hpux-thread.c (hpux_thread_fetch_registers)
1671 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1672 current architecture by regcache.
1676 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1677 current architecture by frame_info.
1681 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1682 (go32_store_registers): Use get_regcache_arch to get at the current
1683 architecture by regcache.
1687 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1691 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1692 to get at the current architecture by frame_info.
1696 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1700 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1701 the current architecture by regcache.
1705 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1706 current architecture by regcache.
1710 * bsd-uthread.c (bsd_uthread_fetch_registers)
1711 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1712 current architecture by regcache.
1716 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1717 get_frame_arch to get at the current architecture by frame_info.
1721 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1725 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1726 (store_regs): Use get_regcache_arch to get at the current architecture
1731 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1732 to get at the current architecture by regcache.
1736 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1737 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1738 the current architecture by regcache.
1742 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1747 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1748 soft float and vector ABIs. Support the generic vector ABI for
1750 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1752 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1754 * ppc-tdep.h (enum powerpc_vector_abi): New.
1755 (struct gdbarch_tdep): Add soft_float and vector_abi.
1756 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1757 (powerpc_soft_float_global, powerpc_vector_strings)
1758 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1759 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1760 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1761 (powerpc_set_vector_abi): New.
1762 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1764 * Makefile.in (elf_ppc_h): New.
1765 (rs6000-tdep.o): Update.
1769 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1770 swapped offsets and VRSAVE offset.
1771 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1772 (ppc32_linux_vrregset): Added.
1773 (ppc_linux_regset_from_core_section): Added support for
1774 .reg-ppc-vmx section.
1775 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1776 (ppc_supply_vrregset): Declare.
1777 (ppc_collect_vrregset): Declare.
1778 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1779 (ppc_supply_vrregset): Added.
1780 (ppc_collect_vrregset): Added.
1781 * corelow.c (get_core_registers): Added support for
1782 .reg-ppc-vmx section.
1790 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1793 * tracepoint.c (tracepoint_operation): Report the deletion event
1794 after we have unlinked the tracepoint from the list, and use the
1795 proper tracepoint number.
1797 * ax-gdb.c (expr_to_agent): Delete unused function.
1798 (expr_to_address_and_size): Delete #if 0'd function.
1799 * ax-gdb.h (expr_to_agent): Delete declaration.
1801 * ax-gdb.c (gen_cast): Remove redundant assignment to
1802 value->type. Doc fix.
1804 * ax-general.c (gen_traced_pop, gen_int_literal)
1805 (gen_usual_arithmetic): Check for typedefs.
1809 * parse.c (prefixify_expression): Minor reformatting.
1813 * version.in: Use dot instead of dash.
1817 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1821 * memory-map.c (parse_memory_map): Don't use an empty struct
1826 * signals/signals.c (signals): Update pointer to enum
1827 target_signal declaration.
1833 * dwarf2read.c (read_partial_die): check the value
1834 of DW_AT_calling_convention in Fortran programs.
1839 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1840 floating point in YYSTYPE union.
1841 (DECFLOAT) Add token and expression element handling code.
1842 (parse_number): Parse DFP constants, which end with suffix 'df',
1843 'dd' or 'dl'. Return DECFLOAT.
1844 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1846 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1848 (union exp_element): Add decfloatconst to represent DFP
1849 elements, which is 16 bytes by default.
1850 * parse.c (write_exp_elt_decfloatcst): New function to write a
1851 decimal float const into the expression.
1852 (operator_length_standard): Set operator length for OP_DECFLOAT
1854 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1855 * valarith.c (value_neg): Add code to handle the negation
1856 operation of DFP values.
1857 * value.c (value_from_decfloat): New function to get the value
1858 from a decimal floating point.
1859 * value.h (value_from_decfloat): Prototype.
1864 * c-lang.c (c_create_fundamental_type): Create fundamental
1866 * c-typeprint.c (c_type_print_varspec_prefix): Add
1867 TYPE_CODE_DECFLOAT to no prefix needed case.
1868 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1870 * c-valprint.c (c_val_print): Call print_decimal_floating to
1872 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1873 attribute code and return TYPE_CODE_DECFLOAT.
1874 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1875 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1876 builtin_decdouble and builtin_declong.
1877 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1879 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1880 types, for decimal floating point.
1881 (FT_NUM_MEMBERS): Increment, new types added.
1882 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1883 and builtin_declong.
1884 * valprint.c (print_decimal_floating): New function to print DFP
1886 * value.h (print_decimal_floating): Prototype.
1891 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1892 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1893 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1894 (INSTALLED_LIBS): Add -ldecnumber in.
1895 (CLIBS): Add LIBDECNUMBER in.
1896 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1898 (dfp_h): New macros for decimal floating point.
1899 (dfp.o): New target.
1900 (COMMON_OBS): Add dfp.o in.
1901 (c-exp.o): Add dfp_h as dependency.
1902 (valprint.o): Add dfp_h as dependency.
1903 (value.o): Add dfp_h as dependency.
1904 * dfp.h: New header file for decimal floating point support in
1906 * dfp.c: New source file for decimal floating point support in
1907 GDB. Implement decimal_from_string and decimal_to_string based
1908 on libdecnumber API.
1909 * configure.ac: Add AC_C_BIGENDIAN test.
1910 * config.in, configure: Regenerate.
1916 * infcmd.c (registers_info): Check for a user register before
1917 calling target's gdbarch_print_registers_info(). If found to be
1918 so, extract the implicit value of user register and call
1919 print_scalar_formatted().
1920 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1924 * NEWS: Document status of hppa64-hpux support.
1928 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1929 set_solib_ops to install SVR4 operations.
1930 (_initialize_svr4_solib): Do not set current_target_so_ops.
1932 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1933 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1937 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1938 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1939 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1940 * solib-legacy.c: Remove file.
1942 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1943 * config/arm/linux.mt (TDEPFILES): Likewise.
1944 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1945 * config/ia64/linux.mt (TDEPFILES): Likewise.
1946 * config/m32r/linux.mt (TDEPFILES): Likewise.
1947 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1948 * config/s390/s390.mt (TDEPFILES): Likewise.
1950 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1951 set_solib_svr4_fetch_link_map_offsets.
1952 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1953 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1955 * i386gnu-tdep.c: Include "solib-svr4.h".
1956 * Makefile.in: Update dependencies.
1960 * i386-nto-tdep.c: Include "solib.h".
1961 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1962 current_target_so_ops members.
1963 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1964 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1965 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1966 * Makefile.in: Update dependencies.
1970 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1971 (arm_wince_init_abi): Call set_solib_ops.
1972 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1973 (i386_cygwin_init_abi): Call set_solib_ops.
1974 * solib-target.c: Include "solib-target.h".
1975 (solib_target_so_ops): Make global.
1976 (_initialize_solib_target): Do not set current_target_so_ops.
1977 * solib-target.h: New file.
1978 * Makefile.in: Update dependencies.
1982 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1983 (mips_irix_init_abi): Call set_solib_ops.
1984 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1985 (irix_so_ops): Make global.
1986 (_initialize_irix_solib): Do not set current_target_so_ops.
1987 * solib-irix.h: New file.
1988 * Makefile.in: Update dependencies.
1992 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1993 * config/pa/hppa64.mt: Delete file.
1994 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1995 (TDEPFILES): Move somread.o to ...
1996 * config/pa/hpux.mh (NATDEPFILES): ... here.
1998 * configure.ac: Add check for elf_hp.h header.
1999 Search libdl and libxpdl for dlgetmodinfo.
2000 * config.in, configure: Regenerate.
2001 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
2002 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
2003 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
2004 set_solib_ops instead of modifying current_target_so_ops.
2005 * solib-pa64.h (pa64_solib_select): Update prototype.
2006 * solib-som.c: Remove include of "som.h". Include "solib.h".
2007 (som_solib_select): Take gdbarch instead of tdep argument. Call
2008 set_solib_ops instead of modifying current_target_so_ops.
2009 * solib-som.h (som_solib_select): Update prototype.
2010 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
2011 of tdep to som_solib_select call.
2012 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
2013 pa64_solib_select call.
2014 * Makefile.in: Update dependencies.
2018 * frv-tdep.c: Include "solib.h".
2019 (frv_gdbarch_init): Call set_solib_ops.
2020 * frv-tdep.h (struct target_so_ops): Add forward reference.
2021 (frv_so_ops): Add extern declaration.
2022 * solib-frv.c (frv_so_ops): Make global.
2023 (_initialize_frv_solib): Do not set current_target_so_ops.
2024 * Makefile.in: Update dependencies.
2028 * solib.c (solib_global_lookup): Use solib_ops instead of global
2029 current_target_so_ops.
2033 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2034 * config/frv-tm-frv.h: Delete file.
2038 * NEWS: Mention gdbserver support for non-libthread_db operation.
2042 * amd64-tdep.c (amd64_convert_register_p): Delete.
2043 (amd64_init_abi): Use i387_convert_register_p.
2044 * alpha-tdep.c (alpha_convert_register_p): Return zero for
2046 (alpha_register_to_value, alpha_value_to_register): Do not handle
2048 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2049 * i387-tdep.c (i387_convert_register_p): New.
2050 (i387_register_to_value, i387_value_to_register): Update comments.
2051 * i387-tdep.h (i387_convert_register_p): Declare.
2052 * ia64-tdep.c (ia64_convert_register_p): Return zero for
2053 builtin_type_ia64_ext.
2054 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2055 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2056 * m68k-tdep.c (m68k_convert_register_p): Return zero for
2057 builtin_type_m68881_ext.
2058 (m68k_register_to_value, m68k_value_to_register): Update comments.
2062 * target-memory.c (claim_memory): Propagate baton for split memory
2068 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2073 * symtab.c (find_line_symtab): scan through psymtabs
2074 when exact_match is zero.
2078 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2079 (deal_with_atomic_sequence): New.
2080 (mips_software_single_step): Use it.
2085 * configure.ac: Modify $LIBINTL before the BFD check.
2086 * configure: Regenerated.
2090 * buildsym.c (free_pending_blocks): Remove commented-out code.
2091 (make_blockvector): Likewise. Re-use free_pending_blocks.
2092 (end_symtab): Remove commented-out code.
2096 * top.c (command_loop): Fix output for shrinkage.
2100 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2101 (exp): Remove and document function-like casts.
2105 * cp-support.c: Include "safe-ctype.h".
2106 (cp_already_canonical): New function.
2107 (cp_canonicalize_string): Use it. Return NULL for already canonical
2109 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2110 (cp_func_name, remove_params): Likewise.
2111 (cp_find_first_component_aux): Use ISSPACE.
2112 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2114 * cp-name-parser.y (ALLOC_CHUNK): Define.
2115 (struct demangle_info): Add PREV and NEXT. Increase the size of
2117 (d_grab): Convert to a function.
2118 (allocate_info): Rewrite.
2119 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2120 strlen. Update call to allocate_info. Do not free it on failure.
2121 (main): Update calls to cp_demangled_name_to_comp.
2122 * Makefile.in (cp-support.o): Update.
2126 * std-regs.c (value_of_builtin_frame_fp_reg)
2127 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2128 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2129 current architecture by frame_info.
2133 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2138 * infcmd.c (default_print_registers_info, print_return_value)
2139 (print_vector_info, print_float_info): Replace current_gdbarch by
2141 (registers_info): Use get_frame_arch to get at the current
2142 architecture by frame_info.
2146 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2147 get_regcache_arch to get at the current architecture by regcache.
2151 * target.c (debug_print_register): Use get_regcache_arch to get at the
2152 current architecture by regcache.
2156 * dwarf2read.c (read_file_scope): Add a comment.
2157 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2158 (read_enumeration_type, process_enumeration_scope, read_array_type)
2159 (read_typedef, read_base_type, read_subrange_type)
2160 (read_unspecified_type): Use dwarf2_name.
2164 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2165 * dwarf2read.c (dwarf2_free_objfile): New.
2166 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2167 * symfile.h (dwarf2_free_objfile): Declare.
2171 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2175 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2176 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2177 default dwarf2_frame_set_init_reg function.
2181 * NEWS: Mention native MinGW configuration.
2185 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2186 of "macro" column throughout the file. Remove (empty) "macro" entry
2187 of all gdbarch functions.
2191 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2192 * gdbarch.c, gdbarch.h: Regenerate.
2193 * dbxread.c (find_stab_function_addr): Define unconditionally.
2194 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2195 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2196 (end_psymtab): Likewise.
2197 (process_one_symbol): Likewise.
2198 * mdebugread.c (parse_partial_symbols): Likewise.
2200 * symtab.h (struct minimal_symbol): Always define "filename" member.
2201 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2202 * minsyms.c (lookup_minimal_symbol): Likewise.
2203 * symmisc.c (dump_msymbols): Likewise.
2205 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2206 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2207 * config/i386/tm-i386sol2.h: Remove file.
2208 * config/i386/tm-linux.h: Remove file.
2209 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2210 set_gdbarch_sofun_address_maybe_missing.
2211 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2213 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2214 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2215 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2216 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2217 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2218 * config/powerpc/tm-ppc-eabi.h: Remove file.
2219 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2220 set_gdbarch_sofun_address_maybe_missing.
2222 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2223 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2224 * config/sparc/tm-sol2.h: Remove file.
2225 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2226 set_gdbarch_sofun_address_maybe_missing.
2227 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2231 * gdbarch.sh (static_transform_name): New gdbarch callback.
2232 * gdbarch.c, gdbarch.h: Regenerate.
2233 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2234 instead of STATIC_TRANSFORM_NAME.
2235 * mdebugread.c (parse_partial_symbols): Likewise.
2236 * stabsread.c (define_symbol): Likewise.
2237 * xcoffread.c (scan_xcoff_symtab): Likewise.
2239 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2240 (IS_STATIC_TRANSFORM_NAME): Remove.
2241 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2242 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2243 (i386_sol2_init_abi): Install it.
2245 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2246 (IS_STATIC_TRANSFORM_NAME): Remove.
2247 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2248 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2249 (sparc32_sol2_init_abi): Install it.
2250 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2251 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2255 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2256 (mips_n32n64_return_value, mips_o32_return_value)
2257 (mips_o64_return_value): Update calls to mips_xfer_register.
2261 * frame.c (frame_unwind_unsigned_register): Delete.
2262 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2263 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2265 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2266 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2267 mt-tdep.c: Replace frame_unwind_unsigned_register with
2268 frame_unwind_register_unsigned.
2272 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2273 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2274 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2276 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2277 if not building on Cygwin.
2278 (win32_make_so, handle_output_debug_string, handle_exception)
2279 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2280 (win32_attach): Only fallback to Cygwin pids if building on
2282 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2284 (win32_create_inferior): Disable starting the inferior through a
2285 shell, environment var processing and tty handling if not building
2287 (cygwin_pid_to_str): Rename to ...
2288 (win32_pid_to_str): ... this.
2289 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2290 and "cygwin-exceptions" commands if not building on Cygwin.
2294 * doc/gdb.texinfo: Add TSIZE definition, removed
2295 statement about unbounded arrays being unimplemented.
2296 * m2-valprint.c (m2_print_array_contents): New function.
2297 (m2_print_unbounded_array): New function.
2298 (m2_print_array_contents): New function.
2299 * m2-typeprint.c (m2_unbounded_array): New function.
2300 (m2_is_unbounded_array): New function.
2301 (m2_print_type): Test for unbounded array when walking
2303 * m2-lang.h: Added extern m2_is_unbounded_array.
2304 * m2-lang.c (evaluate_subexp_modula2): New function.
2305 (exp_descriptor_modula2): New structure.
2306 (m2_language_defn): Use exp_descriptor_modula2.
2307 * m2-exp.y: Added TSIZE and binary subscript.
2311 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2316 * m32r-tdep.c (decode_prologue): Sign extend offset for
2318 (m32r_frame_unwind_cache): Likewise.
2322 * rs6000-tdep.c (skip_prologue): Restore comment with
2323 function description to its proper place.
2327 * NEWS: Mention gdbserver PowerPC improvements.
2331 * features/Makefile (WHICH): Add PowerPC register definitions.
2332 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2333 (rs6000/powerpc-64-expedite): New macros.
2334 ($(outdir)/%.dat): Handle subdirectories.
2335 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2336 regformats/rs6000/powerpc-e500.dat: New generated files.
2340 * ppc-linux-nat.c (ppc_linux_read_description): New.
2341 (_initialize_ppc_linux_nat): Set to_read_description.
2342 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2346 * NEWS: Document target described register support for PowerPC.
2347 * ppc-tdep.h: Remove ppc_spr constants.
2348 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2349 ppc_builtin_type_vec128 members.
2350 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2351 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2352 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2353 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2354 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2355 * rs6000-tdep.c: Include preparsed descriptions.
2356 (init_sim_regno_table): Do not iterate over pseudo registers.
2357 Look up segment registers by name. Use sim_spr_register_name
2359 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2360 (rs6000_builtin_type_vec128): Delete.
2361 (rs6000_register_name): Only handle SPE pseudo registers and upper
2362 halves. Call tdesc_register_name for everything else.
2363 (rs6000_register_type): Delete. Replace with...
2364 (rs6000_pseudo_register_type): ...this new function. Only handle
2365 SPE pseudo registers.
2366 (rs6000_register_reggroup_p): Delete. Replace with...
2367 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2368 handle SPE pseudo registers.
2369 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2371 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2373 (e500_register_reggroup_p): Delete.
2374 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2375 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2376 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2377 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2378 (registers_powerpc, registers_403, registers_403GC, registers_505)
2379 (registers_860, registers_601, registers_602, registers_603)
2380 (registers_604, registers_750, registers_7400, registers_e500): Delete
2382 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2384 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2385 (variants): Delete outdated comment. Use standard target descriptions
2386 instead of "struct reg" arrays.
2387 (init_variants): Delete.
2388 (rs6000_gdbarch_init): Do not guess word size from the BFD
2389 architecture if we have a target description. Select a variant
2390 before creating a new architecture. Use the variant's target
2391 description if the target did not define a register layout.
2392 Validate target-supplied registers. Reject mismatches. Use
2393 fixed register numbers and new constants instead of magic
2394 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2395 (_initialize_rs6000_tdep): Initialize the preparsed target
2397 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2399 (tdesc_find_register_early): New function.
2400 (tdesc_numbered_register): Use it.
2401 (tdesc_register_size): New function.
2402 (tdesc_use_registers): Take a target_desc argument. Do not use
2403 gdbarch_target_desc.
2404 * target-descriptions.h (tdesc_use_registers): Update prototype
2406 (tdesc_register_size): New prototype.
2407 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2408 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2409 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2410 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2411 (rs6000-tdep.o): Update.
2412 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2413 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2414 * mips-tdep.c (mips_gdbarch_init): Likewise.
2418 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2419 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2420 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2421 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2422 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2423 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2424 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2429 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2430 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2431 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2432 feature descriptions for standard PowerPC register sets.
2434 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2435 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2436 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2437 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2438 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2439 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2440 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2441 target descriptions for PowerPC processors.
2445 * target-descriptions.c (tdesc_predefined_types): New.
2446 (tdesc_named_type): Use it.
2447 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2448 (_intialize_target_descriptions): Register "maint print c-tdesc".
2449 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2450 (cfiles, %.c): New rules.
2451 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2452 features/mips64-linux.c: New generated files.
2454 * arm-linux-nat.c: Include preparsed description instead of
2456 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2457 (arm_linux_read_description): New function.
2458 (_initialize_arm_linux_nat): Set to_read_description instead of
2459 to_xfer_partial. Initialize preparsed description.
2460 * config/arm/linux.mh (TDEP_XML): Delete.
2461 * mips-linux-nat.c: Include preparsed descriptions instead of
2463 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2464 (mips_linux_read_description): New function.
2465 (_initialize_mips_linux_nat): Set to_read_description instead of
2466 to_xfer_partial. Initialize preparsed description.
2467 * config/mips/linux.mh (TDEP_XML): Delete.
2468 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2469 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2470 (mips64_linux_c): New macros.
2471 (arm-linux-nat.o, mips-linux-nat.o): Update.
2475 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2476 Replace xasprintf by xstrprintf.
2477 symfile-mem.c (add_vsyscall_page): Ditto.
2481 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2482 replacing use of global current_gdbarch.
2483 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2484 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2486 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2487 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2488 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2489 (ia64_sigtramp_frame_cache): Update caller.
2493 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2494 (extract_return_value, store_return_value): Remove.
2495 (return_value): Remove default implementation.
2496 * gdbarch.c, gdbarch.h: Regenerate.
2498 * stack.c (return_command): Remove compatibility hack.
2499 * arch-utils.c (legacy_return_value): Remove.
2500 * arch-utils.h (legacy_return_value): Likewise.
2502 * arch-utils.c (always_use_struct_convention): Remove.
2503 * arch-utils.h (always_use_struct_convention): Likewise.
2504 * value.c (generic_use_struct_convention): Remove.
2505 * defs.h (generic_use_struct_convention): Likewise.
2509 * avr-tdep.c (avr_return_value): New function.
2510 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2511 set_gdbarch_extract_return_value.
2513 * fvr-tdep.c (frv_return_value): New function.
2514 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2515 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2516 and set_gdbarch_deprecated_use_struct_convention.
2518 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2519 Add check for structure, union, or array types.
2520 (ia64_extract_return_value): Make static.
2521 (ia64_store_return_value): Make static. Support multi-word values.
2522 (ia64_return_value): New function.
2523 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2524 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2525 and set_gdbarch_deprecated_use_struct_convention.
2529 * solib-target.c (solib_target_parse_libraries)
2530 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2534 * serial.h (struct serial_ops): Document read_prim to return zero
2536 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2537 read_prim returns zero, not SERIAL_TIMEOUT.
2541 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2542 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2543 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2544 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2546 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2547 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2548 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2549 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2550 * config/alpha/tm-alpha.h: Remove file.
2554 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2555 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2557 * config/pa/tm-hppa.h: Delete file.
2558 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2559 * config/pa/hppahpux.mt: Likewise.
2560 * config/pa/hppa.mt: Likewise.
2561 * config/pa/linux.mt: Likewise.
2562 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2566 * config/arm/nm-nbsdaout.h: Remove file.
2567 * config/nm-nbsdaout.h: Likewise.
2568 * config/nm-nbsd.h: Likewise.
2572 * block.h (struct block): Remove "gcc_compile_flag" member.
2573 (BLOCK_GCC_COMPILED): Remove.
2574 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2575 * buildsym.c (finish_block): Do not set it.
2576 * symmisc.c (dump_symtab_1): Do not dump it.
2578 * value.h (using_struct_return): Remove "gcc_p" argument.
2579 * value.c (using_struct_return): Likewise.
2580 * eval.c (evaluate_subexp_standard): Adapt callers.
2581 * infcall.c (call_function_by_hand): Likewise.
2582 * stack.c (return_command): Likewise.
2583 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2585 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2586 * gdbarch.c, gdbarch.h: Regenerate.
2587 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2588 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2589 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2590 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2591 (push_dummy_code, call_function_by_hand): Adapt callers.
2595 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2596 (finish_command_continuation, finish_command): Adapt callers.
2600 * infcall.c (call_function_by_hand): Remove special handling
2601 for HP aCC compiled code.
2605 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2606 reference. Fix endianness bugs.
2607 (cris_reg_struct_has_address): Remove.
2608 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2609 and set_gdbarch_deprecated_use_struct_convention calls.
2611 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2612 * gdbarch.c, gdbarch.h: Regenerate.
2613 * infcall.c (call_function_by_hand): Remove handling of
2614 deprecated_reg_struct_has_addr.
2619 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2620 checking watchpoint resources.
2624 * memattr.c (inaccessible_by_default): Change the initial
2630 * coffread.c (read_one_sym): Check for read errors.
2634 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2635 instead of "Linux 2.6.19" in comment.
2636 (linux_xfer_partial): Use "GNU/Linux target" instead of
2637 "Linux target" in comment.
2638 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2639 (m68k_linux_get_sigtramp_info): Likewise.
2643 * MAINTAINERS (language support): List Joel and Paul as
2648 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2650 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2651 not set DEPRECATED_TM_FILE.
2652 * config/arm/tm-arm.h: Delete file.
2656 * MAINTAINERS (Write After Approval): Add self.
2660 * buildsym.c (record_line): Remove empty lines followed by
2661 end-of-sequence markers.
2665 * configure.tgt: Recognize fido-*-elf.
2673 * stack.c (print_frame_args, frame_info, return_command): Use
2674 get_regcache_arch or get_frame_arch to get at the current architecture
2675 by regcache or by frame, respectively.
2679 * rs6000-nat.c (fetch_register, store_register)
2680 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2681 get_regcache_arch to get at the current architecture by regcache.
2683 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2684 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2685 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2686 current_gdbarch by gdbarch.
2687 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2688 (rs6000_value_to_register): Use get_frame_arch to get at the current
2689 architecture by frame_info.
2693 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2694 get_regcache_arch to get at the current architecture by regcache.
2696 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2697 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2698 get_regcache_arch to get at the current architecture by regcache.
2700 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2701 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2702 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2703 current architecture by regcache.
2707 * remote-mips.c (mips_wait, mips_fetch_registers)
2708 (mips_store_registers): Use get_regcache_arch to get at the
2709 current architecture by regcache.
2711 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2712 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2713 get at the current architecture by regcache.
2714 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2715 architecture by frame_info.
2717 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2718 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2719 the current architecture by regcache.
2721 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2722 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2723 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2724 current architecture by frame_info.
2725 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2726 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2727 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2728 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2729 get at the current architecture by regcache.
2731 * mips-linux-nat.c (mips_linux_register_addr)
2732 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2733 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2734 (mips64_linux_regsets_fetch_registers)
2735 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2736 the current architecture by regcache.
2738 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2739 get at the current architecture by frame_info.
2743 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2744 current architecture by regcache.
2745 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2746 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2747 (mips_stub_frame_cache, mips_read_fp_register_single)
2748 (mips_read_fp_register_double, mips_print_fp_register)
2749 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2750 at the current architecture by frame_info.
2751 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2752 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2753 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2754 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2755 (mips_o32_push_dummy_call, mips_o32_return_value)
2756 (mips_o64_push_dummy_call, mips_o64_return_value)
2757 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2762 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2763 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2764 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2765 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2766 (xtensa_register_write_masked, xtensa_register_read_masked)
2767 (xtensa_supply_gregset, xtensa_store_return_value)
2768 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2769 current architecture by regcache.
2770 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2771 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2772 architecture by frame_info.
2776 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2777 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2778 out of loop. Do not set cache->frameoffset.
2779 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2780 frameoffset. Simplify framesize.
2781 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2783 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2787 * target.c (update_current_target): Call setup_target_debug.
2788 (push_target): Do not call it here.
2792 * MAINTAINERS: Update my email address.
2796 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2798 (xtensa_pseudo_register_read)
2799 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2800 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2801 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2802 (xtensa_pseudo_register_read)
2803 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2804 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2805 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2806 (xtensa_frame_prev_register): NUM_AREGS.
2807 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2808 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2809 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2810 (xtensa_supply_gregset, xtensa_frame_cache)
2811 (xtensa_frame_prev_register): WS_REGNUM.
2812 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2813 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2814 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2815 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2816 (xtensa_register_reggroup_p): REGMAP.
2817 (call0_track_op): LITBASE_REGNUM.
2818 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2819 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2820 (xtensa_frame_prev_register, AREG_NUMBER)
2821 (xtensa_register_type): AR_BASE.
2822 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2823 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2824 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2825 (xtensa_frame_cache, xtensa_frame_prev_register)
2826 (xtensa_extract_return_value, xtensa_store_return_value)
2827 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2828 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2829 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2830 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2831 (call0_frame_cache): A1_REGNUM.
2832 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2833 (xtensa_push_dummy_call): A4_REGNUM.
2834 (ARGS_FIRST_REG): A6_REGNUM.
2835 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2836 (xtensa_frame_prev_register): A15_REGNUM.
2837 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2838 them in the appropriate source file:
2839 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2840 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2841 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2842 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2843 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2844 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2845 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2846 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2847 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2848 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2849 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2853 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2854 the current architecture by frame_info.
2855 (h8300_frame_prev_register
2856 (h8300_print_register): Replace current_gdbarch by gdbarch.
2857 (h8300_print_registers_info, h8300_register_type)
2858 (h8300_register_type): Likewise.
2862 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2863 the current architecture by regcache.
2864 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2865 (i386_linux_fetch_inferior_registers)
2866 (i386_linux_store_inferior_registers): Likewise.
2867 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2868 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2869 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2870 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2871 (i386_extract_return_value, i386_store_return_value): Likewise.
2872 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2873 the current architecture by frame_info.
2874 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2875 (i386_register_to_value, i386_value_to_register): Likewise.
2879 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2880 the current architecture by regcache.
2881 (monitor_store_register, monitor_store_registers): Likewise.
2885 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2886 the current architecture by regcache.
2890 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2895 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2896 architecture by frame.
2897 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2898 (inside_main_func, frame_sp_unwind): Likewise.
2902 * solib-svr4.c (enable_break): Add the dynamic linker also if
2907 * MAINTAINERS (Write After Approval): Add self.
2911 * stabsread.c (read_huge_number): Initialize local variable to 0.
2915 * p-lang.h (pascal_main_name): Add declaration.
2916 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2917 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2918 (pascal_main_name): New function.
2919 * symtab.c: Include p-lang.h.
2920 (find_main_name): Add call to pascal_main_name.
2921 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2925 * stabsread.c (read_huge_number): Fix handling of octal
2926 representation when the bit width is known.
2927 (read_range_type): Record unsigned integral types with their size,
2928 when the type size is known.
2932 * MAINTAINERS (Write After Approval): Add self.
2936 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2937 Replace asprintf by xstrprintf.
2941 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2942 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2946 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2947 <sys/wait.h> include before last commit.
2951 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2955 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2956 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2957 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2958 (store_regs_user_thread, store_regs_kernel_thread): Use
2959 get_regcache_arch or get_frame_arch to get at the current architecture
2960 by regcache or by frame, respectively.
2964 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2965 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2966 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2967 (sh64_print_register, sh64_media_print_registers_info)
2968 (sh64_compact_print_registers_info, sh64_unwind_sp)
2969 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2970 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2971 (sh64_frame_prev_register): Use FRAME to recognize current
2976 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2977 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2978 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2979 current_gdbarch by gdbarch.
2980 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2981 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2982 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2983 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2984 recognize current architecture.
2988 * remote.c (init_remote_state, fetch_register_using_p)
2989 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2990 (store_register_using_P, store_registers_using_G)
2991 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2992 get at the current architecture by regcache or by frame, respectively.
2996 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2997 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2998 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2999 get_regcache_arch or get_frame_arch to get at the current architecture
3000 by regcache or by frame, respectively.
3001 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3002 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
3003 (store_register, old_store_inferior_registers, supply_gregset)
3004 (supply_fpregset, fill_fpregset): Likewise.
3005 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
3006 Replace current_gdbarch by gdbarch.
3010 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
3011 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
3012 get_frame_arch to get at the current architecture by regcache or by
3013 frame, respectively.
3017 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
3018 Replace current_gdbarch by gdbarch.
3019 * ia64-tdep.c (ia64_frame_prev_register
3020 (ia64_sigtramp_frame_prev_register)
3021 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
3022 get_frame_arch to get at the current architecture by regcache or by
3023 frame, respectively.
3024 * ia64-linux-nat.c (ia64_linux_fetch_register)
3025 (ia64_linux_fetch_registers, ia64_linux_store_register)
3026 (ia64_linux_store_registers): Likewise.
3030 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3031 current_gdbarch by gdbarch.
3032 * hppa-linux-nat.c (fetch_register, store_register)
3033 (hppa_linux_fetch_inferior_registers)
3034 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3035 get_frame_arch to get at the current architecture by regcache or by
3036 frame, respectively.
3037 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3038 (hppa_hpux_unwind_adjust_stub): Likewise.
3039 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3040 (hppa_hpux_fetch_inferior_registers)
3041 (hppa_hpux_store_inferior_registers): Likewise.
3045 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3046 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3047 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3048 or get_frame_arch to get at the current architecture by regcache or by
3049 frame, respectively.
3050 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3051 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3052 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3053 current_gdbarch by gdbarch.
3057 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3058 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3059 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3060 get at the current architecture by regcache or by·frame, respectively.
3061 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3066 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3067 Use get_regcache_arch or get_frame_arch to get at the current
3068 architecture by regcache or by frame, respectively.
3069 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3070 * amd64-nat.c (amd64_supply_native_gregset)
3071 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3075 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3077 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3078 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3079 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3080 get_frame_arch to get at the current architecture by regcache or by
3081 frame, respectively.
3082 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3086 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3087 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3088 current_gdbarch by gdbarch.
3089 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3093 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3094 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3095 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3096 get_frame_arch to get at the current architecture by regcache or by
3097 frame, respectively.
3101 * findvar.c (value_of_register, locate_var_value): Use
3102 get_regcache_arch or get_frame_arch to get at the current architecture
3103 by regcache or by frame, respectively.
3104 * findvar.c (default_value_from_register, value_from_register): Replace
3105 current_gdbarch by gdbarch.
3109 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3113 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3114 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3118 * remote.c (get_offsets): Only call free_symfile_segment_data if
3123 * objc-exp.y: ARI fix: remove 4 PARAMS.
3127 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3128 news. Mention XML support for M68K in GDB 6.7.
3132 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3134 (init_vector_type): Use builtin_type_int32.
3138 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3139 size to enable bi-arch generate-core-file support.
3143 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3147 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3149 * tui/tui-win.c (tui_initialize_win): New function for
3150 initializing tui's SIGWINCH signal handler.
3151 * tui/tui-win.h (tui_initialize_win): Declare.
3155 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3156 pointer to uintptr_t before casting to CORE_ADDR.
3160 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3164 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3165 * ser-mingw.c (enum select_thread_state): New type.
3166 (struct ser_console_state): Add have_started and thread_state.
3167 (select_thread_wait): New function.
3168 (thread_fn_type): New type.
3169 (create_select_thread): New function.
3170 (destroy_select_thread): Likewise.
3171 (start_select_thread): Likewise.
3172 (stop_select_thread): Likewise.
3173 (console_select_thread): Use new functions.
3174 (pipe_select_thread): Likewise.
3175 (file_select_thread): Likewise.
3176 (ser_console_wait_handle): Likewise.
3177 (ser_console_done_wait_handle): Likewise.
3178 (ser_console_close): Likewise.
3179 (free_pipe_state): Likewise.
3180 (pipe_wait_handle): Likewise.
3181 (pipe_done_wait_handle): Likewise.
3182 (struct net_windows_state): Derive from ser_console_state.
3183 (net_windows_select_thread): Use new functions.
3184 (net_windows_wait_handle): Likewise.
3185 (net_windows_done_wait_handle): Likewise.
3186 (net_windows_close): Likewise.
3190 * inflow.c (terminal_ours_1): Remove useless line.
3194 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3196 (mips_print_fp_register): Correct check for even FP registers.
3197 (mips_virtual_frame_pointer): New function.
3198 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3202 * value.h (lookup_only_internalvar): New prototype.
3203 (create_internalvar): Likewise.
3204 * value.c (lookup_only_internalvar): New function.
3205 (create_internalvar): Likewise.
3206 (lookup_internalvar): Use new lookup_only_internalvar and
3207 create_internalvar functions.
3208 * parse.c (write_dollar_variable): Look up $ symbols in internal
3209 table first rather than last.
3213 * linux-nat.c (linux_nat_new_thread): New variable.
3214 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3215 linux_nat_switch_fork.
3216 (lwp_list): Make public.
3217 (add_lwp): Call linux_nat_new_thread.
3218 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3220 (resume_callback): Clear lp->siginfo. Remove unused variable.
3221 (linux_nat_resume): Assert that the LWP list is already initialized.
3223 (save_siginfo): New.
3224 (stop_wait_callback, linux_nat_wait): Call it.
3225 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3226 * linux-nat.h (struct lwp_info): Add siginfo.
3227 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3230 * amd64-linux-nat.c (amd64_linux_dr): New.
3231 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3232 (amd64_linux_dr_set): Take a PTID argument.
3233 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3234 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3235 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3236 (amd64_linux_new_thread): New.
3237 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3238 * i386-linux-nat.c (i386_linux_dr): New.
3239 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3240 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3241 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3242 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3243 (i386_linux_new_thread): New.
3244 (i386_linux_resume): Remove unnecessary PID check.
3245 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3246 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3247 (fetch_debug_register, fetch_debug_register_pair): Delete.
3248 (debug_registers): New.
3249 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3250 ALL_LWPS and debug_registers.
3251 (ia64_linux_new_thread): New.
3252 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3253 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3254 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3255 (saved_dabr_value): New.
3256 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3258 (ppc_linux_new_thread): New.
3259 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3260 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3261 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3262 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3264 (s390_fix_watch_points): Take a PTID argument.
3265 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3266 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3271 * breakpoint.c (watchpoints_triggered): New.
3272 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3273 Check watchpoint_triggered instead. Combine handling for software
3274 and hardware watchpoints. Do not use target_stopped_data_address
3275 here. Always check a watchpoint if its scope breakpoint triggers.
3276 Do not stop for thread or overlay events. Improve check for
3277 triggered watchpoints without a value change.
3278 (watch_command_1): Insert the scope breakpoint first. Link the
3279 scope breakpoint to the watchpoint.
3280 * breakpoint.h (enum watchpoint_triggered): New.
3281 (struct breakpoint): Add watchpoint_triggered.
3282 (bpstat_stop_status): Update prototype.
3283 (watchpoints_triggered): Declare.
3284 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3285 (stepped_after_stopped_by_watchpoint): Delete.
3286 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3287 local. Handle infwait_step_watch_state. Update calls to
3288 bpstat_stop_status. Use watchpoints_triggered to check
3290 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3291 (remote_stopped_data_address): Do not check it.
3295 * configure.ac: Add $LIBINTL when testing libbfd.
3296 * configure: Regenerated.
3300 * NEW: Mention pending breakpoint changes and
3301 support for breakpoints at multiple locations.
3305 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3306 (arm_linux_init_abi): Use it.
3307 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3308 condition correctly.
3309 * arm-tdep.h (arm_get_next_pc): Declare.
3310 * Makefile.in (arm-linux-tdep.o): Update.
3314 * varobj.c (install_new_value): Don't
3315 call value_get_print_value when a value is
3316 lazy. Update the print_value member in a
3321 * breakpoint.c (create_breakpoint): Set
3322 condition on each location, not on the first
3323 location of breakpoint.
3327 * remote.c (getpkt_sane): Fix error message. No animals were
3328 harmed in the making of this debugger.
3332 * p-typeprint.c: Fix 11 ARI reported problems.
3333 (pascal_print_type): Fix 4 operator at end of line.
3334 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3335 using strncmp function.
3336 (pascal_type_print_base): Fix 2 operator at end of line.
3337 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3338 using strncmp function.
3343 * Fix PR pascal/2231
3344 dwarf2read.c (read_subroutine_type):
3345 All pascal functions are prototyped.
3349 * Fix PR pascal/2283
3350 p-valprint.c (pascal_val_print): correct current language check.
3351 Also print array of char as strings.
3357 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3361 * p-exp.y: Fix 12 ARI reported problems.
3362 (name_not_typename): Fix 2 operator at end of line issues.
3363 (yylex): Fix 3 operator at end of line issues.
3364 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3369 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3370 rules return composite types in registers as appropriate.
3374 * symfile.h (struct symfile_segment_data): Doc fixes.
3375 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3376 Assert that we were passed some loaded segment addresses,
3377 and that sections' segment numbers are valid.
3378 Simplify offset calculation.
3379 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3380 strategy, and set num_segments correctly. Delete redundant
3381 assignments to do_sections.
3385 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3389 * breakpoint.c (remove_sal): New.
3390 (expand_line_sal_maybe): New.
3391 (create_breakpoints): Call expand_line_sal_maybe.
3392 (clear_command): Add comment.
3393 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3394 * linespec.c (decode_indirect): Set explicit_pc to 1.
3395 (decode_all_digits): Set explicit_line to 1.
3396 (append_expanded_sal): New.
3397 (expand_line_sal): New.
3398 * linespec.h (expand_line_sal): Declare.
3399 * symtab.c (init_sal): Initialize explicit_pc
3401 * symtab.h (struct symtab_and_line): New fields
3402 explicit_pc and explicit_line.
3406 * infcall.c (call_function_by_hand): Handle language-specific
3407 pass and return by reference.
3409 * cp-abi.c (cp_pass_by_reference): New.
3410 * cp-abi.h (cp_pass_by_reference): Declare.
3411 (struct cp_abi_ops): Add pass_by_reference.
3412 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3413 (init_gnuv3_ops): Set pass_by_reference.
3415 * language.c (language_pass_by_reference): New.
3416 (default_pass_by_reference): New.
3417 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3418 default_pass_by_reference.
3419 * langauge.h (struct language_defn): Add la_pass_by_reference.
3420 (language_pass_by_reference, default_pass_by_reference): Declare.
3421 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3422 * c-lang.c (c_language_defn, asm_language_defn)
3423 (minimal_language_defn): Likewise.
3424 (cplus_language_defn): Add cp_pass_by_reference.
3425 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3426 * jv-lang.c (java_language_defn): Likewise.
3427 * m2-lang.c (m2_language_defn): Likewise.
3428 * objc-lang.c (objc_language_defn): Likewise.
3429 * p-lang.c (pascal_language_defn): Likewise.
3430 * scm-lang.c (scm_language_defn): Likewise
3434 Allow a code breakpoint to have several locations
3436 * breakpoint.h (enum enable_state): Remove the
3437 bp_shlib_disabled enumerator.
3438 (struct bp_location): New members shlib_disabled,
3439 global_next, enabled and function_name.
3440 Rename pending to condition_not_parsed.
3442 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3443 (ALL_BP_LOCATIONS_SAFE): Likewise.
3444 (breakpoint_enabled): Don't check for pending.
3445 (condition_command): Free and update all locations of
3447 (insert_bp_location): Adjust.
3448 (software_breakpoint_inserted_here_p): Don't care
3449 if breakpoint is enabled, as soon as it's inserted.
3450 (print_it_typical): Print bpstat's location, not
3451 bpstat's breakpoint's location.
3452 (bpstat_stop_status): Iterate over all locations, not
3454 (print_breakpoint_location): New.
3455 (print_one_breakpoint): Renamed to
3456 (print_one_breakpoint_location): ...this. Take
3457 parameters to describe which location is being
3458 printed. Modify code to properly print header
3459 for several locations and individual locations.
3460 (print_one_breakpoint): Print all locations.
3461 (breakpoint_has_pc): New.
3462 (describe_other_breakpoints): Use the above.
3463 (check_duplicates): Renamed to...
3464 (check_duplicates_for): .. this.
3465 (check_duplicates): Use check_duplicates_for.
3466 (allocate_bp_location): Adjust.
3467 (set_raw_breakpoint_without_location): New,
3468 extracted from set_raw_breakpoint.
3469 (set_breakpoint_location_function): New.
3470 (set_raw_breakpoint): Use
3471 set_raw_breakpoint_without_location.
3472 (make_breakpoint_permanent): Mark all locations
3474 (disable_breakpoints_in_shlibs): Iterate over
3476 (disable_breakpoints_in_unloaded_shlib): Likewise.
3477 (re_enable_breakpoints_in_shlibs): Likewise.
3478 (mention): Say "pending" when breakpoint has
3479 zero locations. If breakpoint has more than one
3481 (add_location_to_breakpoint): New.
3482 (create_breakpoint): Accept symtabs_and_lines, not
3483 symtab_and_line. Pass extra sals to
3484 add_location_to_breakpoint.
3485 (create_breakpoints): Pass symtabs_and_lines to
3487 (break_command_1): Make pending breakpoints
3488 have zero locations.
3489 (do_captured_breakpoint): Remove wrong allocation.
3490 (clear_command): Iterate over all locations.
3491 (unlink_locations_from_global_list): Renamed
3492 from unlink_location_from_global_list. Remove
3494 (delete_breakpoint): Remove all locations.
3495 Iterate over all locations when deciding which
3496 other location to re-enable.
3497 (all_locations_are_pending): New.
3498 (update_breakpoint_locations): Renamed from
3499 update_breakpoint_location. Try to match old
3500 and new locations using names of containing
3502 (breakpoint_re_set_one): Adjust.
3503 (find_location_by_number): New.
3504 (disable_command): Allow disabling individual location.
3505 (enable_command): Allow enabling individual location.
3506 * breakpoint.c: Adjust all uses of breakpoint's
3507 enable state to for bp_shlib_disabled change.
3511 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3512 (resolve_pending_breakpoint): Remove.
3513 (re_enable_breakpoints_in_shlibs): Remove.
3514 (unlink_locations_from_global_list): New.
3515 (update_breakpoint_locations): New.
3516 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3517 Use parse_condition and update_breakpoint_location to
3518 reset breakpoint. Ignore 'symbol not found' error from
3520 (breakpoint_re_set): Don't emit newline before the
3521 reason why breakpoint is not reset.
3522 (do_enable_breakpoint): Don't specially process pending
3524 (free_bp_location): New.
3525 (break_command_1): For pending breakpoints, initialize
3526 all fields of a sal with zeroes.
3527 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3528 * infcmd.c (post_create_inferior): Don't call
3529 re_enable_breakpoints_in_shlibs.
3530 * infrun.c (handle_inferior_event): Likewise.
3531 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3532 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3533 * win32-nat.c (get_win32_debug_event): Likewise.
3537 * breakpoint.c (create_breakpoint): Split from
3538 create_breakpoints, implementing most of its logic.
3539 Take just a single sal, single address string and
3540 single condition. Do not take parsed condition at
3542 (create_breakpoints): Just call create_breakpoint
3544 (find_condition_and_thread): New.
3545 (break_command_1): Use find_condition_and_thread.
3546 Do not keep parsed conditions.
3547 (do_captured_breakpoint): Don't convert
3548 condition string to struct expression.
3552 * breakpoint.h (struct breakpoint): Move the cond
3554 (struct bp_location): Here.
3555 * breakpoint.c (condition_command, bpstat_stop_status)
3556 (print_one_breakpoint, allocate_bp_location)
3557 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3558 (create_exec_event_catchpoint, create_breakpoints)
3559 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3560 (create_ada_exception_breakpoint, set_breakpoint_sal)
3561 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3562 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3566 Associate bp_stat with bp_location, not breakpoint.
3567 * breakpoint.h (breakpoint_at): Change type
3569 * breakpoint.c (bpstat_alloc): Take bp_location,
3571 (bpstat_find_breakpoint): Look at bpstat's location's
3572 owner, not at bpstat->breakpoint_at.
3573 (bpstat_find_step_resume_breakpoint): Likewise.
3574 (bpstat_num): Likewise.
3575 (print_it_typical): Likewise.
3576 (print_bp_stop_message): Likewise.
3577 (watchpoint_check): Likewise.
3578 (bpstat_what): Likewise.
3579 (bpstat_get_triggered_catchpoints): Likewise.
3580 (breakpoint_auto_delete): Likewise.
3581 (delete_breakpoint): Likewise.
3582 (bpstat_stop_status): Pass location, not breakpoint,
3583 to bpstat_alloc. Look at bpstat's location's
3584 owner, not at bpstat->breakpoint_at.
3588 * macrotab.h (new_macro_table): Document that removing information
3589 from an obstack/bcache-managed macro table leaks memory.
3590 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3591 that data is never freed in obstack/bcache-managed macro tables,
3592 just leak the storage.
3593 (macro_undef): If we're undefining a macro at exactly the same
3594 source location that we defined it, simply remove the definition
3599 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3600 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3601 Adjust the struct sym_fns object accordingly by setting
3602 the new field to NULL.
3603 * xcoffread.c (aix_process_linenos): Make static.
3604 (xcoff_sym_fns): Set new field to aix_process_linenos.
3605 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3606 by call to new the new sym_fns sym_read_linetable function.
3607 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3608 * config/rs6000/tm-rs6000.h: Delete.
3613 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3614 rules do not treat composite types specially.
3618 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3619 (mips16_in_function_epilogue_p): Likewise.
3620 (mips_in_function_epilogue_p): Likewise.
3621 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3625 * configure.ac: Add check for "etext".
3626 * configure, config.in: Regenerate.
3627 * maint.c (TEXTEND): Only define if either _etext or etext
3629 Disable the profiling functionality if TEXTEND is not defined.
3633 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3634 address register. Correct the call to frame_id_build.
3635 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3640 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3641 the linetable past the function end.
3645 * MAINTAINERS: Update my email address.
3649 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3650 (inf_ttrace_delete_dying_threads_callback): New function.
3651 (inf_ttrace_resume): After resuming the execution, iterate over
3652 the dying threads to delete them for the thread list.
3653 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3654 mark the corresponding thread as dying instead of removing it
3655 from the thread list.
3656 (inf_ttrace_thread_alive): return 0 for dying threads.
3660 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3661 that return_frame is not null.
3665 * solib-svr4.c: Add include of "auxv.h".
3666 (enable_break): Use the AT_BASE auxiliary entry if available.
3667 * Makefile.in (solib-svr4.o): Update dependencies.
3671 * NEWS: Create a new section for the next release branch.
3672 Rename the section of the current branch, now that it has
3677 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3678 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3682 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3683 * mi/mi-cmds.h (mi_cmd_list_features): New.
3684 * mi/mi-main.c (mi_cmd_list_features): New.
3688 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3689 * version.in: Bump version to 6.7.50-20070911-cvs.
3693 * thread.c (free_thread): Do not delete the step resume breakpoint
3698 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3699 * corelow.c (core_read_description): New.
3700 (init_core_ops): Set to_read_description.
3701 * gdbarch.sh: Add gdbarch_core_read_description.
3702 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3703 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3704 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3705 (mips_register_g_packet_guesses): Use them.
3706 (_initialize_mips_tdep): Initialize them.
3707 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3708 * gdbarch.h, gdbarch.c: Regenerated.
3712 * infrun.c (stepping_past_breakpoint): New global variable.
3713 (stepping_past_breakpoint_ptid): Likewise.
3714 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3715 Only switch threads if we need to single-step over a breakpoint hit
3716 in the previously selected thread. If stepping, remember previous
3717 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3718 switch_to_thread instead of copying its contents.
3719 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3720 prepare_to_proceed returns true.
3721 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3722 (context_switch): Call switch_to_thread.
3723 (handle_inferior_event): Switch back to previous thread if requested
3724 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3725 * gdbthread.h (switch_to_thread): Add prototype.
3726 * thread.c (switch_to_thread): Make global.
3730 * p-valprint.c: Fix 7 ARI reported problems.
3731 (pascal_val_print): Fix one operator at end of line issue.
3732 Use paddress function to remove use of
3733 deprecated_print_address_numeric function (2 times).
3734 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3735 (pascal_value_print): Fix 3 operator at end of line issues.
3740 * arm-tdep.c (arm_in_call_stub): Delete.
3741 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3745 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3751 * NEWS: Update description of string changes. Mention print/s.
3752 * c-valprint.c (textual_element_type): New.
3753 (c_val_print): Use it. Do not skip address printing for pointers
3754 with a string format.
3755 (c_value_print): Doc update.
3756 * dwarf2read.c (read_array_type): Use make_vector_type.
3757 * gdbtypes.c (make_vector_type): New.
3758 (init_vector_type): Use it.
3759 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3760 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3761 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3762 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3763 (make_vector_type): New.
3764 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3765 Call the language print routine for string format.
3766 (print_scalar_formatted): Call val_print for string format. Handle
3767 unsigned original types for char format.
3768 (validate_format): Do not reject string format.
3769 * stabsread.c (read_type): Use make_vector_type.
3770 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3774 * expprint.c (print_subexp_standard): Check strchr for null.
3775 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3777 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3779 * stabsread.c (patch_block_status): Guard against null.
3780 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3784 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3785 in internal error message.
3790 * infcmd.c (post_create_inferior): Update comment.
3791 (run_command_1): Always call post_create_inferior with 0 as
3794 * i386-cygwin-tdep.h: New.
3795 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3796 (win32_xfer_shared_library): Make it extern.
3798 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3800 (win32_so_ops): Delete.
3801 (get_relocated_section_addrs): Delete.
3802 (solib_symbols_add): Delete.
3803 (register_loaded_dll): Delete.
3804 (win32_make_so): New.
3805 (handle_load_dll): Use win32_make_so.
3806 (win32_free_so): Free the passed in so.
3807 (win32_relocate_section_addresses): Delete.
3808 (win32_solib_create_inferior_hook): Delete.
3809 (handle_unload_dll): Don't add PE offset here. Free so with
3810 win32_free_so instead of free_so.
3811 (win32_special_symbol_handling): Delete.
3812 (get_win32_debug_event): Remove unneeded calls. Set state to
3813 TARGET_WAITKIND_LOADED on a dll unload.
3814 (do_initial_win32_stuff): Clear cygwin_load_start and
3816 (map_code_section_args): Delete.
3817 (dll_code_sections_add): Delete.
3818 (core_section_load_dll_symbols): Delete.
3819 (win32_xfer_shared_libraries): New.
3820 (win32_current_sos): Delete.
3821 (win32_xfer_partial): New.
3822 (open_symbol_file_object): Delete.
3823 (in_dynsym_resolve_code): Delete.
3824 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3825 of win32_ops. Remove win32_so_ops settings. Don't set
3826 current_target_so_ops here.
3828 * Makefile.in (i386_cygwin_tdep_h): New variable.
3829 (i386-cygwin-tdep.o): Update dependencies.
3830 (win32-nat.o): Update dependencies.
3835 * gdbarch.sh (core_xfer_shared_libraries): New.
3837 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3839 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3841 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3842 (xml_escape_text): New.
3843 * xml-support.h (xml_escape_text): Declare.
3845 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3846 * config/i386/cygwin.mt (TDEPFILES): ... here.
3848 * win32-nat.c: (fetch_elf_core_registers): Delete.
3849 (win32_elf_core_fn): Delete.
3850 (_initialize_core_win32): Delete.
3852 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3853 "xml-support.h" and "gdbcore.h".
3854 (i386_win32_gregset_reg_offset): New.
3855 (I386_WIN32_SIZEOF_GREGSET): New.
3856 (i386_win32_regset_from_core_section): New.
3857 (win32_xfer_shared_library): New.
3858 (struct cpms_data): New.
3859 (core_process_module_section): New.
3860 (win32_core_xfer_shared_libraries): New.
3861 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3862 gregset_num_regs, sizeof_gregset members of tdep. Register
3863 regset_from_core_section and core_xfer_shared_libraries callbacks.
3865 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3866 * gdbarch.h, gdbarch.c: Regenerate.
3870 * corelow.c (core_xfer_partial): Pass writebuf to
3871 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3875 * arm-tdep.h (arm_skip_stub): Declare.
3876 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3878 (arm_pe_skip_trampoline_code): New function.
3879 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3880 gdbarch_skip_trampoline_code callback.
3881 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3885 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3889 * configure.ac: Add --with-expat.
3890 * configure: Regenerated.
3894 * configure.ac: Accept --with-system-readline.
3895 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3896 * configure: Regenerate.
3897 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3899 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3904 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3908 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3912 * top.c (print_gdb_version): Update for GPL version 3.
3916 * NEWS: Mention the build-id .debug files verification.
3920 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3924 * Makefile.in (symfile.o): Update dependencies.
3925 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3926 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3927 (struct build_id): New structure.
3928 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3929 (find_separate_debug_file): New variable BUILD_ID.
3930 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3934 * varobj.c (struct varobj): Fix comment
3935 for the type member not to lie when it can be
3940 Implement -var-info-path-expression.
3942 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3944 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3945 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3946 * varobj.c (struct varobj): New field 'path_expr'.
3947 (c_path_expr_of_child, cplus_path_expr_of_child)
3948 (java_path_expr_of_child): New.
3949 (struct language_specific): New field path_expr_of_child.
3950 (varobj_create): Initialize the path_expr field.
3951 (varobj_get_path_expr): New.
3952 (new_variable): Initialize the path_expr field.
3953 (free_variable): Free the path_expr field.
3954 (adjust_value_for_children_access): New parameter
3956 (c_number_of_children): Adjust.
3957 (c_describe_child): New parameter CFULL_EXPRESSION.
3958 Compute full expression.
3959 (c_value_of_child, c_type_of_child): Adjust.
3960 (cplus_number_of_children): Adjust.
3961 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3962 Compute full expression.
3963 (cplus_name_of_child, cplus_value_of_child)
3964 (cplus_type_of_child): Adjust.
3965 * varobj.h (varobj_get_path_expr): Declare.
3969 * mi/mi-cmd-var.c (print_varobj): If a varobj
3970 type is NULL, don't try to print it.
3974 * ppc-linux-nat.c (right_fill_reg): Delete.
3975 (supply_gregset): Use ppc_supply_gregset.
3976 (supply_fpregset): Use ppc_supply_fpregset.
3977 (fill_gregset): Use ppc_collect_gregset.
3978 (fill_fpregset): Use ppc_collect_fpregset.
3979 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3980 (right_supply_register, ppc_linux_supply_gregset): Delete.
3981 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3982 (ppc_linux_supply_fpregset): Delete.
3983 (ppc_linux_collect_gregset): New function.
3984 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3985 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3986 ppc_linux_supply_gregset, and ppc_collect_gregset.
3987 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3988 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3989 (ppc_linux_regset_from_core_section): Update.
3990 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3991 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3992 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3993 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3994 (ppcobsd_collect_gregset): Likewise.
3995 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3996 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3997 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3998 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3999 (rs6000_aix64_reg_offsets): Likewise.
4000 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
4001 ppc_floating_point_unit_p.
4002 (rs6000_aix_collect_regset): Similarly.
4003 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
4004 when regsize is larger than regcache register size.
4005 (ppc_collect_reg): Similarly zero pad when regsize is larger than
4006 regcache register size.
4007 (ppc_greg_offset): New function, split out from..
4008 (ppc_supply_gregset): ..here. Separate code handling all regs from
4009 single reg case. Correct xer offset.
4010 (ppc_fpreg_offset): New function, split out from..
4011 (ppc_supply_fpregset): ..here. Separate code handling all regs from
4013 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
4014 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
4015 a fp unit, instead return if no fp.
4019 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
4020 this code has not been compiled for two years.
4024 * event-top.c (gdb_readline2): Return after EOF.
4028 * symtab.c: Remove a function that has been commented out 3 years ago.
4032 * hppa-tdep.c (hppa32_cannot_fetch_register)
4033 (hppa64_cannot_fetch_register): New functions.
4034 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4035 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4039 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4040 check for null before calling check_typedef.
4042 * NEWS: Mention Coverity bug fixes.
4046 * spu-tdep.c (spu_pointer_to_address): New function.
4047 (spu_integer_to_address): Likewise.
4048 (spu_gdbarch_init): Add spu_pointer_to_address and
4049 spu_integer_to_address to gdbarch.
4053 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4057 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4058 that contains the GDB license.
4059 * copying.awk: Adjust to the GPLv3 wording.
4060 * copying.c: Regenerate.
4064 * copying.awk: Protoization, and i18n markup.
4068 * config/djgpp/djconfig.sh: Switch license to GPLv3.
4069 * copyright.sh: Likewise.
4070 * gdb-events.sh: Likewise.
4071 * gdb_gcore.sh: Likewise.
4072 * gdb_mbuild.sh: Likewise.
4073 * gdbarch.sh: Likewise.
4074 * observer.sh: Likewise.
4075 * features/feature_to_c.sh: Likewise.
4076 * regformats/regdat.sh: Likewise.
4080 Switch the license of all .c files to GPLv3.
4081 Switch the license of all .h files to GPLv3.
4082 Switch the license of all .cc files to GPLv3.
4086 * configure.ac: Switch license to GPLv3.
4090 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4091 determine the file's FPU type.
4095 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4096 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4097 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4101 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4103 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4104 (elf_lookup_lib_symbol): Fix formatting.
4108 * dbxread.c (read_dbx_symtab): Guard null deref.
4111 * valops.c (find_overload_match): Guard against NULL.
4115 * MAINTAINERS (Patch Champions): Remove self.
4119 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4124 * stabsread.c (dbx_lookup_type): Memory leak.
4126 * event-loop.c (delete_async_signal_handler): Move pointer null
4127 test to before pointer dereference.
4129 * ui-out.c (append_header_to_list): Possible cut and paste error.
4131 * MAINTAINERS: white space tweak.
4135 * stack.c (print_frame): Memory leak.
4137 * completer.c (filename_completer): Avoid memory leak.
4138 Remove unnecessary nested block.
4140 * c-exp.y (parse_number): Memory leak.
4142 * completer.c (location_completer): Must free 'fn_list', except
4143 in the one case where it is returned (as 'list').
4145 * varobj.c (value_of_root): Memory leak.
4147 * gdbtypes.h (virtual_base_list): Remove export decl.
4148 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4149 (virtual_base_index): Memory leak.
4150 (virtual_base_index_skip_primaries): Ditto.
4154 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4155 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4156 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4157 (xtensa_read_register): New function.
4158 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4159 (xtensa_insn_kind): New types.
4160 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4161 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4162 (xtensa_verify_config, xtensa_pseudo_register_read)
4163 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4164 (xtensa_store_return_value)
4165 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4166 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4167 (xtensa_frame_this_id, xtensa_frame_prev_register)
4168 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4169 (call0_frame_cache, call0_frame_get_reg_at_entry)
4170 (call0_classify_opcode, call0_track_op)
4171 (call0_analyze_prologue, call0_frame_cache): New functions.
4175 * breakpoint.c (bpstat_free): New.
4176 (bpstat_clear): Use bpstat_free.
4177 (delete_breakpoint): Document why we cannot
4178 remove bpstats from stop_bpstat.
4179 * breakpoint.h (bpstat_free): Declare.
4183 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4188 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4193 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4194 checkin guarding against NULL.
4198 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4199 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4200 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4201 go at beginning of new line.
4203 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4204 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4205 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4206 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4207 tui-winsource.h, tui.c, tui.h: Function declarations and
4208 definitions, wrap long lines.
4210 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4211 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4212 Reformat block comments to GNU standard.
4214 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4215 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4216 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4217 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4218 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4219 spaces after periods, etc).
4221 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4222 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4223 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4224 tui-winsource.h: Whitespace changes, fix pointer declarations
4230 * ada-lang.c (field_alignment): Guard against NULL.
4234 * MAINTAINERS (Global Maintainers): Add self.
4238 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4240 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4242 * varobj.c (cplus_describe_child): Guard against null.
4243 Use "NULL" instead of "0" to initialize pointers.
4247 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4248 to match any gdbarch with matching OSABI. Set default ABI and FPU
4249 after running the OSABI handler.
4253 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4254 * config/i386/linux.mt (TDEPFILES): ...to here.
4258 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4259 the 'silent' parameter and code to implement that.
4260 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4262 * win32-nat.c: Adjust.
4267 * breakpoint.c (update_breakpoints_after_exec): Don't
4268 set address to zero.
4272 * valops.c: Whitespace clean-up.
4274 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4276 * event-top.c (command_line_handler): Memory leak.
4278 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4279 No need to make copy.
4281 * source.c (find_source_lines): Require symtab 's'.
4285 * completer.c: Spelling fix in comments.
4289 * gdbtypes.c: Coding standard cleanup.
4290 * gdbtypes.c: Comment/whitespace cleanup.
4292 * stabsread.c (read_huge_number): Attempt to compute value before
4293 values that it depends on.
4295 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4296 (decode_objc): Use "NULL" instead of 0.
4297 (find_method): Ditto.
4298 (decode_all_digits): Ditto.
4299 (decode_dollar): Ditto.
4301 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4303 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4305 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4308 * completer.c: Comment/whitespace cleanup.
4312 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4316 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4317 allocated file descriptors.
4321 * Makefile.in: Minor cleanup throughout; add some missing variables,
4322 add some missing rules, remove some rules that are no longer needed,
4323 and fix the dependencies in several rules.
4327 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4328 (scm_lang_h, scm_tags_h): New.
4329 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4330 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4331 * defs.h (enum language): Add `language_scm'.
4333 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4338 * MAINTAINERS (Write After Approval): Add myself.
4342 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4346 * solib-som.c (som_relocate_section_addresses): Stop saving
4347 the $CODE$ section in the so_list structure.
4351 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4352 (xtensa_register_group_t): Add entries for coprocessors.
4353 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4354 (xtensa_add_reggroups): Likewise.
4355 (xtensa_register_reggroup_p): Likewise.
4356 (xtensa_coprocessor_register_group): New function.
4361 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4365 * target.c (target_read_string): Guard against null.
4367 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4369 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4370 (tui_set_layout_for_display_command): Mem leak.
4372 * top.c (command_line_input): Memory leak.
4374 * solib-svr4.c (open_symbol_file_object): Memory leak.
4375 (svr4_current_sos): Ditto.
4376 (enable_break): Ditto.
4378 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4380 * dwarf2read.c (add_partial_symbol): Memory leak.
4384 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4388 * macroexp.c (init_buffer): Remove testing code that overrides the
4389 caller's length guess.
4390 (gather_arguments): Use a larger initial size, now that the vector
4391 growth code has been exercised.
4395 * solib-target.c (solib_target_relocate_section_addresses): Add
4396 orig_delta to addr_high.
4400 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4402 * breakpoint.c (print_one_breakpoint): Off by one error.
4404 * tracepoint.c (add_register): Off by one error.
4405 (stringify_collection_list): Free malloc buffer.
4409 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4410 stop memory leak, straighten out cleanups.
4412 * jv-lang.c (java_link_class_type): Guard against NULL.
4416 * gdbtypes.c (create_set_type): Test should only be done within
4417 the preceeding if block. Otherwise, variable is uninitialized.
4419 * gdbtypes.c (check_typedef): Guard NULL.
4423 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4424 avoid dereference in lookup_cmd_1.
4426 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4427 clean up long lines.
4428 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4429 (tui_alloc_win_info): Ditto.
4430 (tui_add_content_elements): Ditto.
4431 * tui/tui-file.c (tui_file_magic): Ditto.
4435 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4436 True and false paths are mutually exclusive.
4438 * event-top.c (command_line_handler): Add pedantic return.
4440 * f-valprint.c (info_common_command): Bail out to prevent null
4441 pointer deref. Break up a long line.
4443 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4445 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4447 * printcmd.c (build_address_symbolic): Remove dead code and dead
4452 * linespec.c (minsym_found): Advance to the next line if possible.
4456 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4457 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4458 solib-svr4.o, and add solib-target.o
4462 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4466 * MAINTAINERS (Write After Approval): Add myself.
4470 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4475 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4479 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4480 'buffer' must cover both branches that call strcmp (Coverity).
4482 * stack.c (print_frame_args): Check return value of lookup_symbol.
4484 * ax-gdb.c (find_field): Guard against null ptr.
4488 * regformats/reg-spu.dat: Fix order of npc, id registers.
4492 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4493 sections should always go to the executable file.
4497 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4498 prologue instructions.
4502 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4508 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4514 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4515 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4517 * NEWS: Mention gdbserver DLL support.
4521 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4525 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4530 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4535 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4536 (mep_analyze_prologue): Add case for BRA instruction.
4540 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4544 * breakpoint.c: Include "top.h".
4545 (breakpoint_1): Don't set convenience variable $_ if server prefix
4547 (_initialize_breakpoint): Describe this behaviour in command help.
4551 * solib-target.c (library_list_start_segment): Cast address to
4556 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4557 for terminated processes.
4561 * event-top.c (cli_command_loop): Prompt string can (and should)
4562 be freed after call to readline (Coverity). Also move local var
4563 declarations into block where they are used.
4565 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4566 should) be freed after call to readline (Coverity). Also move
4567 local var declarations into block where they are used.
4571 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4579 * remote.c (remote_check_symbols): Use
4580 gdbarch_convert_from_func_ptr_addr.
4581 * infcall.c (find_function_addr): Handle function descriptors
4582 without debugging information.
4583 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4584 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4585 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4586 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4587 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4588 allow SEC_CODE and SEC_DATA.
4589 (enable_break): Update calls. Pass current_target to solib_add.
4590 Use gdbarch_convert_from_func_ptr_addr.
4595 * symfile.c (print_transfer_performance): Avoid integer overflow.
4600 * cp-namespace.c (lookup_symbol_file): Add block to
4601 lookup_symbol_global call.
4602 * Makefile.in (solist_h): Add dependency on symtab header.
4603 (symtab.o): Add dependency on solist header.
4604 * solib.c (solib_global_lookup): New function.
4605 * solib-svr4.c (scan_dyntag): Likewise.
4606 (elf_locate_base): Call helper routine scan_dyntag.
4607 (elf_lookup_lib_symbol): New function.
4608 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4609 * solist.h (symtab.h): New include.
4610 (struct target_so_ops): New member lookup_lib_global_symbol.
4611 (solib_global_lookup): New prototype.
4612 * symtab.c: New include solist.h.
4613 (lookup_objfile_from_block): New function.
4614 (lookup_global_symbol_from_objfile): New function.
4615 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4616 (lookup_symbol_global): Call library-specific lookup procedure.
4617 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4619 * NEWS: Document framework.
4623 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4626 * cli/cli-script.c (build_command_line): Update NULL check.
4630 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4634 * Makefile.in (XMLFILES): Add library-list.dtd.
4635 (ALLDEPFILES): Add solib-target.o.
4636 (solib-target.o): New rule.
4637 * remote.c (PACKET_qXfer_libraries): New constant.
4638 (remote_protocol_features): Add qXfer:libraries:read.
4639 (remote_wait): Recognize library stop replies.
4640 (remote_async_wait): Likewise. Fix typo.
4641 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4642 (init_remote_async_ops): Fix typo.
4643 (_initialize_remote): Register "set remote library-info-packet".
4644 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4645 * solib-target.c: New file.
4646 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4648 (info_sharedlibrary_command): Likewise.
4649 (solib_add_library, solib_remove_library): New.
4650 * solist.h (struct so_list): Replace textsection with addr_low and
4652 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4653 * NEWS: Describe new qXfer:libraries:read and shared library
4655 * features/library-list.dtd: New.
4659 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4660 (start_remote): Use STOP_QUIETLY_REMOTE.
4661 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4662 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4663 Update to match shared library event breakpoint support. Only
4664 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4665 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4666 * fork-child.c (startup_inferior): Do not set
4667 inferior_ignoring_startup_exec_events
4668 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4670 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4674 * breakpoint.c (insert_bp_location): Remove dead code
4675 (DISABLE_UNSETTABLE_BREAK).
4676 (disable_breakpoints_in_shlibs)
4677 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4681 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4682 Call insert_bp_location.
4686 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4691 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4696 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4697 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4698 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4699 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4700 to display_gdb_prompt.
4705 * target.c (memory_xfer_partial): Do not continue past targets with
4710 * m68k-tdep.c (m68k_ps_type): New.
4711 (m68k_init_types): New.
4712 (m68k_register_type): Use m68k_ps_type for PS register.
4713 (_initialize_m68k_tdep): Call m68k_init_types.
4715 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4716 from the generic m68k arch.
4720 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4723 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4724 gdb_assert before using return value of find_thread_pid (Coverity).
4726 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4728 * cli/cli-script.c (build_command_line): Add null pointer guard
4733 * linux-thread-db.c (thread_db_attach): Delete.
4734 (thread_db_detach): Typo fix. Call target_mourn_inferior
4735 instead of fixing up proc_handle.
4736 (have_threads_callback, have_threads): New functions.
4737 (thread_db_wait): Remove dead proc_handle.pid check. Only
4738 translate PTIDs if we have registered threads. Check for new
4739 threads if we have none.
4740 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4741 (find_new_threads_callback): Only enable event reporting if TID == 0.
4742 (same_ptid_callback): New.
4743 (thread_db_get_thread_local_address): Check for new threads.
4744 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4745 or to_post_startup_inferior.
4749 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4750 is always active if SOFTWARE_SINGLE_STEP_P is true.
4751 (resume): Use gdbarch_software_single_step[_p] instead of
4752 SOFTWARE_SINGLE_STEP[_P].
4753 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4755 * gdbarch.sh (software_single_step): Remove target macro.
4756 * gdbarch.h, gdbarch.c: Regenerate.
4760 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4761 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4762 (struct gdbarch_swap, struct gdbarch_swap_registration,
4763 struct gdbarch_swap_registry, gdbarch_swap_registry,
4764 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4765 current_gdbarch_swap_in_hack): Remove.
4766 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4767 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4768 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4769 (deprecated_current_gdbarch_select_hack): Likewise.
4770 * gdbarch.h, gdbarch.c: Regenerate.
4774 * infrun.c (clear_proceed_status): Clean up stop_registers.
4775 (normal_stop): Allocate regcache for stop_registers.
4776 (struct inferior_status): Remove stop_registers member.
4777 (save_inferior_status): Do not save stop_registers.
4778 (restore_inferior_status): Do not restore stop_registers.
4779 (discard_inferior_status): Do not discard stop_registers.
4780 (build_infrun): Remove.
4781 (_initialize_infrun): Do not swap stop_registers.
4785 * remote.c (remote_address_masked): If remote_address_size is zero,
4786 default to target address size.
4787 (build_remote_gdbarch_data): Remove.
4788 (_initialize_remote): Do not swap remote_address_size.
4792 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4793 builtin_type_char, builtin_type_short, builtin_type_int,
4794 builtin_type_long, builtin_type_signed_char,
4795 builtin_type_unsigned_char, builtin_type_unsigned_short,
4796 builtin_type_unsigned_int, builtin_type_unsigned_long,
4797 builtin_type_float, builtin_type_double, builtin_type_long_double,
4798 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4799 builtin_type_bool, builtin_type_long_long,
4800 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4801 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4802 variable declaration with compatibility macro.
4803 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4804 builtin_type_char, builtin_type_short, builtin_type_int,
4805 builtin_type_long, builtin_type_signed_char,
4806 builtin_type_unsigned_char, builtin_type_unsigned_short,
4807 builtin_type_unsigned_int, builtin_type_unsigned_long,
4808 builtin_type_float, builtin_type_double, builtin_type_long_double,
4809 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4810 builtin_type_bool, builtin_type_long_long,
4811 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4812 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4813 (build_gdbtypes): Remove.
4814 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4815 opaque-type-resolution command here. Do not call
4816 deprecated_register_gdbarch_swap.
4820 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4821 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4822 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4824 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4825 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4826 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4827 (build_parse): Remove.
4828 (_initialize_parse): Do not call build_parse. Do not register
4829 msym_ types for gdbarch-swapping.
4831 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4832 instead of creating private type.
4834 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4835 (_initialize_xcoffread): Do not initialized them.
4836 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4838 * mdebugread.c (nodebug_func_symbol_type): Remove.
4839 (nodebug_var_symbol_type): Remove.
4840 (_initialize_mdebugread): Do not initialize them.
4841 (parse_symbol): Use builtin nodebug_ type instead of them.
4842 (parse_procedure): Likewise.
4846 * printcmd.c (do_one_display): If display/i, start with an initial
4847 line feed to avoid bad layout if there is a branch delay slot.
4852 * disasm.c (gdb_print_insn): Return the number of branch delay
4853 slot instructions too.
4854 * disasm.h (gdb_print_insn): Update prototype.
4855 * printcmd.c (branch_delay_insns): New variable to record the
4856 number of delay slot instructions after disassembling a branch.
4857 (print_formatted): Record the number of branch delay slot
4859 (do_examine): When disassembling, if the last instruction
4860 disassembled has any branch delay slots, then bump the count so
4861 that they get disassembled too.
4862 * tui/tui-disasm.c (tui_disassemble): Update the call to
4864 * NEWS: Document the new behaviour.
4868 * regcache.c (write_pc_pid): Restore missing else.
4872 * regcache.c (regcache_print): Use get_current_regcache ()
4873 instead of current_regcache.
4878 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4879 instead of bfd_make_section_anyway.
4880 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4881 when clearing SEC_LOAD.
4885 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4886 registers for big-endian.
4890 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4891 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4892 * gdbarch.c, gdbarch.h: Regenerate.
4896 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4897 gdbarch_believe_pcc_promotion.
4898 * stabsread.c (define_symbol): Likewise.
4899 Remove unnecessary definition.
4900 * coffread.c (process_coff_symbol): Remove unnecessary code.
4901 * gdbarch.c, gdbarch.h: Regenerate.
4905 * configure.ac: Do not use ${objdir}.
4906 * configure: Regenerated.
4910 * gdbarch.sh (deprecated_register_size): Remove.
4911 * gdbarch.h, gdbarch.c: Regenerate.
4913 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4914 by INT_REGISTER_SIZE.
4915 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4916 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4917 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4918 set_gdbarch_deprecated_register_size.
4922 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4923 gdbarch_deprecated_fp_regnum.
4924 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4925 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4926 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4927 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4929 * gdbarch.c, gdbarch.h: Regenerate.
4933 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4934 gdbarch_extract_return_value.
4935 * value.c (generic_use_struct_convention): Likewise (comment).
4936 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4937 * arch-utils.c (legacy_return_value): Likewise.
4938 * arch-utils.h (legacy_return_value): Likewise (comment).
4939 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4940 gdbarch_store_return_value.
4941 * stack.c (return_command): Likewise (comment).
4942 * arch-utils.h (legacy_return_value): Likewise (comment).
4943 * arch-utils.c (legacy_return_value): Likewise.
4944 * gdbarch.c, gdbarch.h: Regenerate.
4948 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4949 gdbarch_deprecated_use_struct_convention.
4950 * arch-utils.c (legacy_return_value): Likewise.
4951 * gdbarch.c, gdbarch.h: Regenerate.
4955 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4956 gdbarch_deprecated_function_start_offset.
4957 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4958 * linespec.c (minsym_found): Likewise.
4959 * infrun.c (handle_inferior_event): Likewise.
4960 * infcall.c (find_function_addr): Likewise.
4961 * cli/cli-cmds.c (disassemble_command): Likewise.
4962 * gdbarch.c, gdbarch.h: Regenerate.
4966 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4967 gdbarch_deprecated_reg_struct_has_addr.
4968 * infcall.c (call_function_by_hand): Likewise.
4969 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4970 * gdbarch_deprecated_reg_struct_has_addr_p.
4971 * infcall.c (call_function_by_hand): Likewise.
4972 * gdbarch.c, gdbarch.h: Regenerate.
4976 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4977 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4978 (sh_gdbarch_init): Remove
4979 set_gdbarch_deprecated_extract_struct_value_address.
4980 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4981 (sh64_gdbarch_init): Remove
4982 set_gdbarch_deprecated_extract_struct_value_address.
4983 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4984 (ia64_gdbarch_init): Remove
4985 set_gdbarch_deprecated_extract_struct_value_address.
4986 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4987 (frv_gdbarch_init): Remove
4988 set_gdbarch_deprecated_extract_struct_value_address.
4989 * gdbarch.c, gdbarch.h: Regenerate.
4993 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4994 * v850-tdep.c (v850_unwind_sp): Likewise.
4995 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4996 * stack.c (frame_info): Likewise.
4997 * stabsread.c (define_symbol): Likewise.
4998 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4999 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
5000 (sh_unwind_sp): Likewise.
5001 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
5002 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
5003 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
5004 (rs6000_frame_cache): Likewise.
5005 * rs6000-nat.c (store_register): Likewise.
5006 * remote-mips.c (mips_wait): Likewise.
5007 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5008 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5009 (ppc64_sysv_abi_push_dummy_call): Likewise.
5010 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5011 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5012 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5013 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5014 * m32r-rom.c (m32r_supply_register): Likewise.
5015 * frame.c (frame_sp_unwind): Likewise.
5016 * mips-tdep.c (mips_insn16_frame_cache)
5017 (mips_insn32_frame_cache): Likewise (comment).
5018 * m68klinux-nat.c (supply_gregset): Likewise.
5019 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5020 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
5021 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5022 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5023 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5024 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5025 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5026 (cris_register_type, crisv32_register_type)
5027 (cris_dwarf2_frame_init_reg): Likewise.
5028 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5029 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5030 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5031 * libunwind-frame.c (libunwind_frame_cache): Likewise.
5033 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5034 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5035 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5036 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5037 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5038 * v850-tdep.c (v850_unwind_pc): Likewise.
5039 * stack.c (frame_info): Likewise.
5040 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5041 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5042 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5043 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5044 (sh_dsp_show_regs): Likewise.
5045 * shnbsd-tdep.c (shnbsd_supply_gregset)
5046 (shnbsd_collect_gregset): Likewise.
5047 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5048 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5049 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5050 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5051 (6000_register_reggroup_p, rs6000_unwind_pc)
5052 (rs6000_frame_cache): Likewise.
5053 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5054 (rs6000_store_inferior_registers): Likewise.
5055 * remote-mips.c (mips_wait, mips_load): Likewise.
5056 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5057 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5058 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5059 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5060 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5061 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5062 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5063 (store_ppc_registers, fill_gregset): Likewise.
5064 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5065 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5066 * mipsnbsd-nat.c (getregs_supplies): Likewise.
5067 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5068 * m68klinux-nat.c (supply_gregset): Likewise.
5069 * irix5-nat.c (fill_gregset): Likewise.
5070 * i386-tdep.c (i386_unwind_pc): Likewise.
5071 * i386-linux-nat.c (i386_linux_resume): Likewise.
5072 * frame.c (get_prev_frame_1): Likewise.
5073 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5074 * dbug-rom.c (dbug_supply_register): Likewise.
5075 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5076 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5077 (cris_register_type, crisv32_register_type, crisv32_register_name)
5078 (cris_dwarf2_frame_init_reg, find_step_target)
5079 (cris_software_single_step, cris_supply_gregset)
5080 (cris_regnums): Likewise.
5081 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5082 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5083 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5084 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5085 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5087 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5088 * dbug-rom.c (dbug_supply_register): Likewise.
5089 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5090 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5091 * win32-nat.c (win32_resume): Likewise.
5092 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5093 * m68k-tdep.c (m68k_register_type): Likewise.
5094 * m68klinux-nat.c (supply_gregset): Likewise.
5096 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5097 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5098 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5099 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5100 (fv_reg_base_num, dr_reg_base_num): Likewise.
5101 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5102 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5103 (sh64_extract_return_value, sh64_store_return_value)
5104 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5105 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5106 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5107 (invalidate_cache): Likewise.
5108 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5109 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5110 (mipsnbsd_fill_fpreg): Likewise.
5111 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5112 (mipsnbsd_store_inferior_registers): Likewise.
5113 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5114 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5115 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5116 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5117 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5118 (fill_fpregset): Likewise.
5119 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5120 * i386-tdep.h (struct_return): Likewise (comment).
5121 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5122 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5123 (go32_store_registers): Likewise.
5124 * alpha-tdep.c (alpha_next_pc): Likewise.
5125 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5126 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5127 (alphabsd_store_inferior_registers): Likewise.
5128 * core-regset.c (fetch_core_registers): Likewise.
5129 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5131 * gdbarch.c, gdbarch.h: Regenerate.
5135 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5136 * dbxread.c (start_psymtab): Check HAVE_ELF.
5137 (aout_sym_fns): Likewise.
5138 * elfread.c (elf_symfile_segments): New.
5139 (elf_sym_fns): Add elf_symfile_segments.
5140 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5141 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5142 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5143 * somread.c (som_sym_fns): Use default_symfile_segments.
5144 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5145 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5146 (default_symfile_segments): New function.
5147 (syms_from_objfile): Update call to find_sym_fns.
5148 (symfile_get_segment_data, free_symfile_segment_data): New.
5149 (symfile_map_offsets_to_segments): New.
5150 (symfile_find_segment_sections): New.
5151 * symfile.h (struct symfile_segment_data): New.
5152 (struct sym_fns): Add sym_segments.
5153 (default_symfile_segments, symfile_get_segment_data)
5154 (free_symfile_segment_data): New prototypes.
5155 (symfile_map_offsets_to_segments): Likewise.
5156 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5157 * Makefile.in (COMMON_OBS): Remove elfread.o.
5158 (elf_internal_h): New.
5159 (elfread.o): Update.
5160 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5162 * config.in, configure: Regenerated.
5163 * NEWS: Mention qOffsets changes.
5167 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5168 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5169 Replace global variable declaration with compatibility macro.
5170 (struct builtin_m2_type): New data type.
5171 (builtin_m2_type): Add prototype.
5172 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5173 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5174 Remove global variables.
5175 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5176 (build_m2_types): New function.
5177 (m2_type_data): New variable.
5178 (builtin_m2_type): New function.
5179 (_initialize_m2_language): Do not build data types. Register
5180 m2_type_data per-gdbarch data.
5184 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5185 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5186 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5187 builtin_type_f_real_s8, builtin_type_f_real_s16,
5188 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5189 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5190 variable declaration with compatibility macro.
5191 (struct builtin_f_type): New data type.
5192 (builtin_f_type): Add prototype.
5193 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5194 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5195 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5196 builtin_type_f_real_s8, builtin_type_f_real_s16,
5197 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5198 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5199 (f_language_arch_info): Use builtin_f_type instead of variables.
5200 (build_fortran_types): Build builtin_f_type structure instead of
5201 setting global type variables.
5202 (f_type_data): New variable.
5203 (builtin_f_type): New function.
5204 (_initialize_f_language): Do not call build_fortran_types. Do not
5205 swap global type variables. Register f_type_data per-gdbarch data.
5209 * f-lang.c (_initialize_f_language): Do not initialize or
5210 swap builtin_type_string.
5214 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5215 value_of_builtin_frame_reg): Remove.
5216 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5217 inactive call to value_of_builtin_frame_reg.
5221 * gdbarch.sh (bfd_vma_bit): Remove.
5222 * gdbarch.c, gdbarch.h: Regenerate.
5224 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5225 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5226 (build_gdbtypes): Do not initialize it.
5227 (_initialize_gdbtypes): Do not swap it.
5231 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5232 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5233 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5234 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5235 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5236 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5237 builtin_type_vec64, builtin_type_vec128): Remove.
5238 (init_simd_type): Remove.
5239 (init_vector_type): Make global.
5240 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5241 (build_gdbtypes): Do not build vector types.
5242 (_initialize_gdbtypes): Do not swap vector types.
5243 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5244 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5245 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5246 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5247 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5248 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5249 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5250 (init_vector_type): Add prototype.
5252 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5253 i386_sse_type members.
5254 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5255 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5256 (i386_init_types): Do not build vector types.
5257 (i386_mmx_type, i386_sse_type): New functions.
5258 (i386_register_type): Call them instead of using global variables.
5259 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5260 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5261 of using global variable.
5263 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5264 and ppc_builtin_type_vec128 members.
5265 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5266 (rs6000_builtin_type_vec128): Likewise.
5267 (rs6000_register_type): Call them instead of using builtin_type_vec64
5268 and builtin_type_vec128.
5269 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5271 * spu-tdep.c (struct gdbarch_tdep): New data type.
5272 (spu_builtin_type_vec128): Remove variable.
5273 (spu_builtin_type_vec128): New function.
5274 (spu_register_type): Call it instead of using global variable.
5275 (spu_gdbarch_init): Allocate tdep structure.
5276 (spu_init_vector_type): Remove function.
5277 (_initialize_spu_tdep): Do not call it.
5281 * amd64-tdep.c (struct amd64_register_info): Remove.
5282 (amd64_register_info): Remove.
5283 (amd64_register_names): New static variable.
5284 (AMD64_NUM_REGS): Use amd64_register_names instead of
5285 amd64_register_info.
5286 (amd64_register_name): Likewise.
5287 (amd64_register_type): Do not refer to amd64_register_info.
5289 * s390-tdep.c (struct s390_register_info): Remove.
5290 (s390_register_info): Remove.
5291 (s390_register_name): Do not refer to s390_register_info.
5292 (s390_register_type): Likewise.
5294 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5295 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5296 (sparc64_register_names, sparc64_pseudo_register_names): New.
5297 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5298 sparc64_register_names and sparc64_pseudo_register_names instead of
5299 sparc64_register_info and sparc64_pseudo_register_info.
5300 (sparc64_register_name): Likewise.
5301 (sparc64_register_type): Do not refer to sparc64_register_info
5302 and sparc64_pseudo_register_info.
5306 * c-lang.c (cplus_builtin_types): Remove.
5307 (enum cplus_primitive_types): New data type.
5308 (cplus_language_arch_info): New function.
5309 (cplus_language_defn): Set la_language_arch_info member. Do not set
5310 la_builtin_type_vector and string_char_type members.
5312 * f-lang.c (f_builtin_types): Remove.
5313 (enum f_primitive_types): New data type.
5314 (f_language_arch_info): New function.
5315 (f_language_de): Set la_language_arch_info member. Do not set
5316 la_builtin_type_vector and string_char_type members.
5318 * m2-lang.c (m2_builtin_types): Remove.
5319 (enum m2_primitive_types): New data type.
5320 (m2_language_arch_info): New function.
5321 (m2_language_defn): Set la_language_arch_info member. Do not set
5322 la_builtin_type_vector and string_char_type members.
5324 * objc-lang.c (objc_builtin_types): Remove.
5325 (objc_language): Set la_language_arch_info member. Do not set
5326 la_builtin_type_vector and string_char_type members.
5328 * p-lang.c (pascal_builtin_types): Remove.
5329 (enum pascal_primitive_types): New data type.
5330 (pascal_language_arch_info): New function.
5331 (pascal_language_defn): Set la_language_arch_info member. Do not set
5332 la_builtin_type_vector and string_char_type members.
5336 * regcache.c (struct regcache): Add ptid_t member.
5337 (regcache_xmalloc): Initialize it.
5338 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5339 (regcache_dup): Likewise.
5340 (regcache_dup_no_passthrough): Likewise.
5341 (current_regcache): Make static.
5342 (registers_ptid): Remove variable.
5343 (get_thread_regcache): New function.
5344 (get_current_regcache): New function.
5345 (registers_changed): Implement by freeing current regcache.
5346 (regcache_raw_read): Do not refer to current_regcache. Set
5347 inferior_ptid to regcache->ptid while calling target routines.
5348 (regcache_raw_write): Likewise.
5349 (regcache_raw_supply): Do not refer to current_regcache.
5350 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5351 (write_pc_pid): Likewise.
5352 (build_regcache): Remove.
5353 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5354 or deprecated_register_gdbarch_swap. Do not initialize
5356 * regcache.h (get_current_regcache): Add prototype.
5357 (get_thread_regcache): Likewise.
5358 (current_regcache): Remove declaration.
5360 * corelow.c (core_open): Replace current_regcache by
5361 get_current_regcache ().
5362 * frame.c (frame_pop): Likewise.
5363 (put_frame_register): Likewise.
5364 (get_current_frame, create_new_frame): Likewise.
5365 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5366 * stack.c (return_command): Likewise.
5367 * infcall.c (call_function_by_hand): Likewise.
5368 * infrun.c (resume): Likewise.
5369 (save_inferior_status, restore_inferior_status): Likewise.
5370 * linux-fork.c (fork_load_infrun_state): Likewise.
5371 (fork_save_infrun_state): Likewise.
5372 * win32-nat.c (win32_resume): Likewise.
5373 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5374 * monitor.c (monitor_wait): Likewise.
5375 * remote.c (remote_wait): Likewise.
5376 * remote-mips.c (mips_wait): Likewise.
5378 * bsd-kvm.c (bsd_kvm_open): Likewise
5379 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5380 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5381 * i386-linux-nat.c (i386_linux_resume): Likewise.
5382 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5383 (ia64_linux_stopped_data_address): Likewise.
5385 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5386 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5387 * mep-tdep.c (current_me_module, current_options): Likewise.
5388 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5390 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5391 regcache instead of current_regcache. Call target_fetch_registers.
5392 (linux_nat_corefile_thread_callback): Update call site.
5393 (linux_nat_do_registers): Likewise.
5394 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5395 of current_regcache.
5396 (procfs_make_note_section): Likewise.
5397 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5398 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5399 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5400 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5404 * regcache.c (read_register, read_register_pid): Remove.
5405 (write_register, write_register_pid): Likewise.
5406 * regcache.h (read_register, read_register_pid): Remove prototype.
5407 (write_register, write_register_pid): Likewise.
5411 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5412 (write_pc): Likewise. Remove default implementation, add predicate.
5413 * gdbarch.c, gdbarch.h: Regenerate.
5414 * regcache.c (read_pc_pid): Use current regcache instead of calling
5416 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5418 (generic_target_write_pc): Remove.
5419 * inferior.h (generic_target_write_pc): Remove.
5420 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5421 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5422 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5423 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5424 * sh-tdep.c (sh_gdbarch_init): Likewise.
5425 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5427 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5428 argument. Use REGCACHE instead of calling read_register_pid.
5429 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5430 * hppa-tdep.c (hppa_read_pc): Likewise.
5431 * hppa-tdep.h (hppa_read_pc): Likewise.
5432 * ia64-tdep.c (ia64_read_pc): Likewise.
5433 * m32r-tdep.c (m32r_read_pc): Likewise.
5434 * mep-tdep.c (mep_read_pc): Likewise.
5435 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5436 * spu-tdep.c (spu_read_pc): Likewise.
5438 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5439 argument. Use REGCACHE instead of calling write_register_pid.
5440 * avr-tdep.c (avr_write_pc): Likewise.
5441 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5442 * hppa-tdep.c (hppa_write_pc): Likewise.
5443 * hppa-tdep.h (hppa_write_pc): Likewise.
5444 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5445 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5446 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5447 * ia64-tdep.c (ia64_write_pc): Likewise.
5448 * ia64-tdep.h (ia64_write_pc): Likewise.
5449 * m32r-tdep.c (m32r_write_pc): Likewise.
5450 * m88k-tdep.c (m88k_write_pc): Likewise.
5451 * mep-tdep.c (mep_write_pc): Likewise.
5452 * mips-tdep.c (mips_write_pc): Likewise.
5453 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5454 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5455 * sparc-tdep.c (sparc_write_pc): Likewise.
5456 * spu-tdep.c (spu_write_pc): Likewise.
5458 * mips-tdep.c (read_signed_register): Remove.
5459 (read_signed_register_pid): Likewise.
5460 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5461 Use REGCACHE instead of calling read_signed_register_pid.
5465 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5466 * gdbarch.c, gdbarch.h: Regenerate.
5467 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5468 (push_dummy_code): Likewise. Pass it to callee.
5469 (call_function_by_hand): Pass current regcache to push_dummy_code.
5471 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5472 argument. Use it instead of current_regcache.
5474 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5475 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5479 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5480 * gdbarch.c, gdbarch.h: Regenerate.
5481 * infrun.c (handle_inferior_event): Pass current frame to
5482 gdbarch_get_longjmp_target.
5484 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5485 Read registers from FRAME instead of using read_register.
5486 Use get_frame_arch instead of current_gdbarch.
5487 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5488 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5489 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5490 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5491 (mips64_linux_get_longjmp_target): Likewise.
5492 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5496 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5497 * gdbarch.c, gdbarch.h: Regenerate.
5498 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5499 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5500 * infrun.c (handle_inferior_event): Pass current frame to
5501 gdbarch_skip_trampoline_code and skip_language_trampoline.
5503 * language.c (unk_lang_trampoline): Add FRAME argument.
5504 (skip_language_trampoline): Add FRAME argument. Pass it to
5505 skip_trampoline callback.
5506 * language.h: Add forward declaration of struct frame_info.
5507 (struct language_defn): Add FRAME argument to skip_trampoline.
5508 (skip_language_trampoline): Add FRAME argument.
5509 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5510 to skip_trampoline callback.
5511 * cp-abi.h: Add forward declaration of struct frame_info.
5512 (cplus_skip_trampoline): Add FRAME argument.
5513 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5514 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5515 to gdbarch_skip_trampoline_code.
5516 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5517 to gdbarch_skip_trampoline_code.
5519 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5520 * symtab.h (find_solib_trampoline_target): Likewise.
5521 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5522 find_solib_trampoline_target.
5524 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5525 from FRAME instead of calling read_register.
5527 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5528 argument. Read registers from FRAME instead of using read_register.
5529 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5530 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5532 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5535 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5537 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5538 registers from FRAME instead of using read_signed_register.
5540 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5542 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5543 instead of using read_register.
5544 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5545 ppc64_standard_linkage_target.
5546 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5547 Pass it to find_solib_trampoline_target. Read registers from FRAME
5548 instead of using read_register.
5550 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5555 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5557 * gdbarch.c, gdbarch.h: Regenerate.
5558 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5560 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5561 registers from FRAME instead of using read_register.
5562 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5563 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5564 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5567 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5568 from FRAME instead of using read_register.
5569 (thumb_get_next_pc): Likewise.
5570 (arm_get_next_pc): Likewise.
5571 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5572 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5573 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5576 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5577 from FRAME instead of using read_register.
5578 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5579 to find_step_target.
5581 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5582 from FRAME instead of using read_register / read_signed_register.
5583 (extended_mips16_next_pc): Likewise.
5584 (mips16_next_pc): Likewise.
5585 (mips_next_pc): Likewise.
5586 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5587 to mips_next_pc. Use get_frame_pc instead of read_pc.
5588 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5591 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5592 of current frame. Read registers from FRAME.
5593 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5594 branch_dest. Use get_frame_pc instead of read_pc.
5595 (rs6000_software_single_step): Likewise.
5596 (bl_to_blrl_insn_p): Do not call branch_dest.
5597 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5600 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5601 Read registers from FRAME instead of current regcache.
5602 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5603 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5604 * sparc-tdep.c (sparc_address_from_register): Remove.
5605 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5606 GDBARCH. Pass FRAME to step_trap callback.
5607 (sparc_step_trap): Add FRAME argument.
5608 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5609 to sparc_analyze_control_transfer. Read registers from FRAME instead
5610 of calling sparc_address_from_register.
5611 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5613 (sparc_address_from_register): Remove prototype.
5614 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5615 (sparcnbsd_step_trap): Add FRAME argument.
5617 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5618 by FRAME. Read registers from FRAME instead of REGCACHE.
5622 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5623 instead of calling read_register.
5625 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5626 calling write_register.
5628 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5629 calling write_register.
5631 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5632 instead of calling read_register.
5633 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5634 instead of calling read_register and write_register.
5636 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5637 instead of current_regcache.
5639 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5640 of calling write_register.
5641 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5642 parameter instead of current_regcache.
5644 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5645 instead of calling read_register.
5646 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5647 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5648 (mips_n32n64_push_dummy_call): Likewise.
5649 (mips_o32_push_dummy_call): Likewise.
5650 (mips_o64_push_dummy_call): Likewise.
5652 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5653 parameter instead of current_regcache.
5655 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5656 Use it instead of read_register and write_register.
5657 (xtensa_register_read_masked): Likewise.
5658 (xtensa_pseudo_register_read): Update call.
5659 (xtensa_pseudo_register_write): Likewise.
5660 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5661 instead of calling read_register.
5662 (xtensa_push_dummy_call): Update comment.
5666 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5667 by frame_unwind_register_signed calls.
5668 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5669 frame allocations when called with NULL NEXT_FRAME parameter.
5670 (read_next_frame_reg): Remove.
5672 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5673 instead of reading the FPSCR register.
5674 (sh_frame_cache): Pass unwound FPSCR register value to
5675 sh_analyze_prologue.
5676 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5678 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5679 instead of reading the CTBP register.
5680 (v850_frame_cache): Pass unwound CTBP register value to
5681 v850_analyze_prologue.
5685 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5686 * sh-tdep.c (sh_show_regs): Likewise.
5687 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5688 (sh_generic_show_regs): Add FRAME parameter. Use register
5689 values from that frame instead of calling read_register.
5690 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5691 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5692 sh_dsp_show_regs): Likewise.
5693 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5694 sh64_show_regs): Likewise.
5698 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5699 current regcache instead of calling read_register.
5703 * mep-tdep.c (current_me_module): Read from current regcache
5704 instead of calling read_register.
5705 (current_options): Likewise.
5709 * cris-tdep.c (cris_stopped_data_address): Read register values
5710 from current frame instead of calling read_register.
5711 * frv-tdep.c (frv_stopped_data_address): Likewise.
5715 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5716 instead of write_register (PC_REGNUM, ...).
5720 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5721 explaining why the PC adjustment code is necessary.
5725 * m68k-tdep.h (enum m68k_flavour): New.
5726 (struct gdbarch_tdep): New fields
5727 float_return, flavour and fpregs_present.
5728 * m68k-tdep.c (m68k_register_type): Use
5729 fpregs_present and conditionalize floating
5730 registers type on flavour.
5731 (m68k_register_names): New.
5732 (m68k_register_name): Use the above.
5733 (m68k_convert_register_p): Consult fpregs_present.
5734 (m68k_register_to_value, m68k_value_to_register):
5735 Use register_type to obtain the type of floating
5737 (m68k_svr4_extract_return_value): Check tdep->float_return.
5738 Use register_type to get the type of floating
5740 (m68k_svr4_store_return_value): Likewise.
5741 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5742 (m68k_analyze_register_saves): Likewise.
5743 (m68k_gdbarch_init): Extract infromation
5744 from XML description, if present. Guess coldfire by
5745 looking at the file, if present. Conditionalize
5746 setting of long double format. Set decr_pc_after_break
5747 to 2 on coldfire and fido. Enable XML-driven
5748 register description.
5749 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5750 size of tdep->fpreg_type, as opposed to hardcoded value.
5751 * Makefile.in (m68k-tdep.o): Update dependencies.
5755 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5756 qXfer:spu:write remote packet types.
5760 * xml-tdesc.c (tdesc_start_target): New.
5761 (target_attributes): New.
5762 (tdesc_elements): Use it.
5763 * features/gdb-target.dtd: Add #FIXED version attribute for
5768 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5772 * fork-child.c (fork_inferior): Update comment.
5776 * features/Makefile: Generate regformats for mips-linux and
5778 * features/sort-regs.xsl: Correct typo.
5779 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5780 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5785 * config/mips/linux.mh (TDEP_XML): New.
5786 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5787 * mips-linux-nat.c (mips_linux_register_addr): Handle
5788 MIPS_RESTART_REGNUM.
5789 (mips64_linux_register_addr): Likewise.
5790 (super_xfer_partial, mips_linux_xfer_partial): New.
5791 (_initialize_mips_linux_nat): Add them to the target_ops.
5792 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5793 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5794 (mips_linux_o32_sigframe_init)
5795 (mips_linux_n32n64_sigframe_init): Likewise.
5796 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5797 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5798 "org.gnu.gdb.mips.linux" feature.
5799 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5800 (mips_linux_restart_reg_p): New prototype.
5801 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5802 initialization routine.
5803 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5807 * Makefile.in (mips-tdep.o): Update.
5808 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5809 (mips_n32_n64_aliases, mips_register_aliases): New.
5810 (mips_register_name): Call tdesc_register_name.
5811 (mips_tdesc_register_reggroup_p): New.
5812 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5813 (mips_gdbarch_init): Add target-described register support.
5814 Register aliases for register names.
5815 * target-descriptions.c (tdesc_register_name): Make global.
5816 (tdesc_register_in_reggroup_p): New function, broken out from
5817 tdesc_register_reggroup_p.
5818 (tdesc_register_reggroup_p): Use it.
5819 * target-descriptions.h (tdesc_register_name)
5820 (tdesc_register_in_reggroup_p): New prototypes.
5821 * NEWS: Correct formatting. Mention MIPS register support.
5822 * features/mips-cp0.xml, features/mips-fpu.xml,
5823 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5824 features/mips64-cpu.xml: New files.
5828 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5829 * valops.c (value_cast): Likewise.
5830 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5831 * ui-out.c (ui_out_field_core_addr): Likewise.
5832 * tracepoint.c (tracepoints_info): Likewise.
5833 * symtab.c (print_msymbol_info): Likewise.
5834 * solib-irix.c (irix_current_sos)
5835 (irix_open_symbol_file_object): Likewise.
5836 * remote.c (build_remote_gdbarch_data): Likewise.
5837 * prologue-value.c (make_pv_area): Likewise.
5838 * procfs.c (info_mappings_callback): Likewise.
5839 * printcmd.c (print_scalar_formatted)
5840 (deprecated_print_address_numeric): Likewise.
5841 * memattr.c (mem_info_command): Likewise.
5842 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5843 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5844 * exec.c (print_section_info): Likewise.
5845 * dwarf2read.c (read_subrange_type): Likewise.
5846 * dwarf2loc.c (find_location_expression): Likewise.
5847 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5848 (signed_address_type, execute_stack_op): Likewise.
5849 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5850 * gdbarch.c, gdbarch.h: Regenerate.
5854 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5855 * arch-utils.c (show_architecture): Likewise.
5856 * remote-mips.c (mips_open): Likewise
5857 * nto-tdep.c (nto_find_and_open_solib)
5858 (nto_init_solib_absolute_prefix): Likewise.
5859 * nto-procfs (procfs_open): Likewise.
5860 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5861 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5862 * gdbarch.c, gdbarch.h: Regenerate.
5866 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5867 * gdbtypes.c (build_flt): Likewise.
5868 * gdbarch.c, gdbarch.h: Regenerate.
5872 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5873 gdbarch_breakpoint_from_pc.
5874 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5875 * remote.c (remote_insert_breakpoint)
5876 (remote_insert_hw_breakpoint): Likewise.
5877 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5878 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5879 * breakpoint.h (bp_target_info): Likewise (comment).
5880 * breakpoint.c (read_memory_nobpt): Likewise.
5881 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5882 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5883 * gdbarch.c, gdbarch.h: Regenerate.
5887 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5888 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5889 * solib-pa64.c (read_dynamic_info): Likewise.
5890 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5891 * solib.c (info_sharedlibrary_command): Likewise.
5892 * s390-nat.c (SUBOFF): Likewise.
5893 * p-valprint.c (pascal_val_print): Likewise.
5894 * procfs.c (info_proc_mappings): Likewise.
5895 * printcmd.c (decode_format): Likewise.
5896 * nto-tdep.c (nto_truncate_ptr): Likewise.
5897 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5898 (mips64_linux_get_longjmp_target): Likewise.
5899 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5900 * jv-valprint.c (java_value_print): Likewise.
5901 * jv-lang.c (get_java_object_header_size): Likewise.
5902 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5903 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5904 (hppa_hpux_unwind_adjust_stub): Likewise.
5905 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5906 * gdbtypes.c (make_pointer_type, make_reference_type)
5907 (smash_to_memberptr_type): Likewise.
5908 * gdbarch.c, gdbarch.h: Regenerate.
5912 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5913 (print_gp_register_row): Stop before printing a register bigger
5914 than the ABI register size.
5915 (mips_print_registers_info): Update call to mips_print_register.
5919 * expression.h (enum exp_opcode): Document a register name for
5921 * parse.c (write_dollar_variable): Write the register name for
5923 (operator_length_standard): Expect the register name following
5925 * ada-lang.c (resolve_subexp): Likewise.
5926 * ax-gdb.c (gen_expr): Likewise.
5927 * eval.c (evaluate_subexp_standard): Likewise.
5928 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5930 * tracepoint.c (encode_actions): Likewise.
5934 * utils.c (set_screen_size): Use INT_MAX for default columns.
5938 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5939 qXfer:spu:write packet types.
5943 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5944 * gdbarch.c, gdbarch.h: Regenerate.
5948 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5949 gdbarch_stab_reg_to_regnum.
5950 * stabsread.c (define_symbol): Likewise.
5951 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5952 gdbarch_ecoff_reg_to_regnum.
5953 * mdebugread.c (parse_symbol): Likewise.
5954 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5955 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5956 gdbarch_dwarf_reg_to_regnum.
5957 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5958 * coffread.c (process_coff_symbol): Likewise.
5959 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5960 gdbarch_dwarf2_reg_to_regnum.
5961 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5962 (locexpr_describe_location): Likewise.
5963 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5964 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5965 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5966 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5967 * gdbarch.c, gdbarch.h: Regenerate.
5971 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5972 gdbarch_smash_text_address.
5973 * somread.c (som_symtab_read): Likewise.
5974 * elfread.c (record_minimal_symbol): Likewise.
5975 * dbxread.c (process_one_symbol): Likewise.
5976 * coffread.c (coff_symtab_read): Likewise.
5977 * gdbarch.c, gdbarch.h: Regenerate.
5981 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5982 * findvar.c (value_from_register): Likewise.
5983 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5984 * valops.c (value_assign): Likewise.
5985 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5986 gdbarch_convert_register_p.
5987 * findvar.c (value_from_register): Likewise.
5988 * valops.c (value_assign): Likewise.
5989 * gdbarch.c, gdbarch.h: Regenerate.
5993 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5994 gdbarch_register_sim_regno.
5995 * sim-regno.h (sim_regno): Likewise (comment).
5996 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5997 * gdbarch.c, gdbarch.h: Regenerate.
6001 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
6002 gdbarch_virtual_frame_pointer.
6003 * tracepoint.c (encode_actions): Likewise.
6004 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
6005 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
6006 * gdbarch.c, gdbarch.h: Regenerate.
6010 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
6011 * p-lang.c (pascal_create_fundamental_type): Likewise.
6012 * objc-lang.c (objc_create_fundamental_type): Likewise.
6013 * mdebugread.c (_initialize_mdebugread): Likewise.
6014 * m2-lang.c (m2_create_fundamental_type)
6015 (_initialize_m2_language): Likewise.
6016 * gdbtypes.c (build_gdbtypes): Likewise.
6017 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6018 * doublest.c (floatformat_from_length): Likewise.
6019 * c-lang.c (c_create_fundamental_type): Likewise.
6020 * ada-lang.c (ada_create_fundamental_type)
6021 (ada_language_arch_info): Likewise.
6022 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6023 * value.c (unpack_double): Likewise (comment).
6024 * gdbtypes.c (build_gdbtypes): Likewise.
6025 * doublest.c (floatformat_from_length): Likewise.
6026 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6027 * valarith.c (value_binop): Likewise.
6028 * p-lang.c (pascal_create_fundamental_type): Likewise.
6029 * objc-lang.c (objc_create_fundamental_type): Likewise.
6030 * mdebugread.c (_initialize_mdebugread): Likewise.
6031 * m2-lang.c (m2_create_fundamental_type): Likewise.
6032 * gdbtypes.c (build_gdbtypes): Likewise.
6033 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6034 * doublest.c (floatformat_from_length): Likewise.
6035 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6036 * c-lang.c (c_create_fundamental_type): Likewise.
6037 * ada-lex.l (processReal): Likewise.
6038 * ada-lang.c (ada_create_fundamental_type)
6039 (ada_language_arch_info): Likewise.
6040 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6041 * value.c (unpack_double): Likewise (comment).
6042 * gdbtypes.c (build_gdbtypes): Likewise.
6043 * doublest.c (floatformat_from_length): Likewise.
6044 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6045 gdbarch_long_double_bit.
6046 * p-lang.c (pascal_create_fundamental_type): Likewise.
6047 * objc-lang.c (objc_create_fundamental_type): Likewise.
6048 * m2-lang.c (m2_create_fundamental_type): Likewise.
6049 * gdbtypes.c (build_gdbtypes): Likewise.
6050 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6051 * doublest.c (floatformat_from_length): Likewise.
6052 * c-lang.c (c_create_fundamental_type): Likewise.
6053 * ada-lex.l (processReal): Likewise.
6054 * ada-lang.c (ada_create_fundamental_type)
6055 (ada_language_arch_info): Likewise.
6056 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6057 gdbarch_long_double_format.
6058 * gdbtypes.c (build_gdbtypes): Likewise.
6059 * doublest.c (floatformat_from_length): Likewise.
6060 * gdbarch.c, gdbarch.h: Regenerate.
6064 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6065 * ada-lang.c (ada_create_fundamental_type)
6066 (ada_language_arch_info): Likewise.
6067 * c-lang.c (c_create_fundamental_type): Likewise.
6068 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6069 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6070 * m2-lang.c (m2_create_fundamental_type): Likewise.
6071 * objc-lang.c (objc_create_fundamental_type): Likewise.
6072 * p-lang.c (pascal_create_fundamental_type): Likewise.
6073 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
6074 * c-exp.y (parse_number): Likewise.
6075 * objc-exp.y (parse_number): Likewise.
6076 * ada-lex.l (processInt): Likewise.
6077 * f-exp.y (parse_number): Likewise.
6078 * p-exp.y (parse_number): Likewise.
6079 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6080 (gdbtypes_post_init, build_gdbtypes): Likewise.
6081 * p-lang.c (pascal_create_fundamental_type): Likewise.
6082 * parse.c (build_parse): Likewise.
6083 * xcoffread.c (_initialize_xcoffread): Likewise.
6084 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6085 (read_range_type): Likewise.
6086 * objc-lang.c (objc_create_fundamental_type): Likewise.
6087 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6088 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6089 (m2_create_fundamental_type): Likewise.
6090 * c-lang.c (c_create_fundamental_type): Likewise.
6091 * coffread.c (coff_read_enum_type): Likewise.
6092 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6093 * dwarf2read.c (new_symbol): Likewise.
6094 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6095 * c-exp.y (parse_number): Likewise.
6096 * objc-exp.y (parse_number): Likewise.
6097 * ada-lex.l (processInt): Likewise.
6098 * f-exp.y (parse_number): Likewise.
6099 * p-exp.y (parse_number): Likewise.
6100 * valarith.c (value_binop): Likewise.
6101 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6102 * ada-lang.c (ada_create_fundamental_type)
6103 (ada_language_arch_info): Likewise.
6104 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6105 * symfile.c (TARGET_LONG_BYTES): Likewise.
6106 * p-lang.c (pascal_create_fundamental_type): Likewise.
6107 * objc-lang.c (objc_create_fundamental_type): Likewise.
6108 * m2-lang.c (m2_create_fundamental_type): Likewise.
6109 * f-lang.c (f_create_fundamental_type): Likewise.
6110 * c-lang.c (c_create_fundamental_type): Likewise.
6111 * coffread.c (decode_base_type): Likewise.
6112 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6113 * c-exp.y (parse_number): Likewise.
6114 * objc-exp.y (parse_number): Likewise.
6115 * p-exp.y (parse_number): Likewise.
6116 * ada-lang.c (ada_create_fundamental_type)
6117 (ada_language_arch_info): Likewise.
6118 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6119 * stabsread.c (read_range_type): Likewise.
6120 * p-lang.c (pascal_create_fundamental_type): Likewise.
6121 * objc-lang.c (objc_create_fundamental_type): Likewise.
6122 * m2-lang.c (m2_create_fundamental_type): Likewise.
6123 * f-lang.c (f_create_fundamental_type): Likewise.
6124 * c-lang.c (c_create_fundamental_type): Likewise.
6125 * gdbarch.c, gdbarch.h: Regenerate.
6129 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6130 (struct frame_unwind): Add dealloc_cache.
6131 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6133 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6134 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6135 (libunwind_frame_unwind): Set dealloc_cache.
6136 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6141 * remote.c (remote_write_qxfer): New function.
6142 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6143 (remote_read_qxfer): Do not cache empty objects.
6144 (_initialize_remote): Add PACKET_qXfer_spu_read and
6145 PACKET_qXfer_spu_write.
6149 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6150 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6152 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6153 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6154 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6155 * spu-tdep.c (infospucmdlist): New variable.
6156 (spu_register_name): Handle additional pseudo registers.
6157 (spu_register_type): Likewise.
6158 (spu_pseudo_register_read): Likewise.
6159 (spu_pseudo_register_write): Likewise.
6160 (spu_pseudo_register_read_spu): New function.
6161 (spu_pseudo_register_write_spu): Likewise.
6162 (info_spu_event_command): New function.
6163 (info_spu_signal_command): Likewise.
6164 (info_spu_mailbox_list): Likewise.
6165 (info_spu_mailbox_command): Likewise.
6166 (spu_mfc_get_bitfield): Likewise.
6167 (info_spu_dma_cmdlist): Likewise.
6168 (info_spu_dma_command): Likewise.
6169 (info_spu_proxydma_command): Likewise.
6170 (info_spu_command): Likewise.
6171 (_initialize_spu_tdep): Install "info spu" commands.
6175 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6176 accessing non-seekable spufs files.
6180 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6181 gdbarch_skip_trampoline_code.
6182 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6183 * objc-lang.c (objc_skip_trampoline)
6184 (objc_submethod_helper_data): Likewise.
6185 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6186 * infrun.c (handle_inferior_event): Likewise.
6187 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6188 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6189 gdbarch_in_solib_return_trampoline.
6190 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6191 * infrun.c (handle_inferior_event): Likewise.
6192 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6193 * gdbarch.c, gdbarch.h: Regenerate.
6197 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6198 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6199 * linespec.c (minsym_found): Likewise.
6200 * infrun.c (step_into_function): Likewise.
6201 * gdbarch.c, gdbarch.h: Regenerate.
6205 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6206 * valops.c (value_allocate_space_in_inferior): Likewise.
6207 * gdbarch.c, gdbarch.h: Regenerate.
6211 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6212 gdbarch_memory_insert_breakpoint.
6213 * mem-break.c (memory_insert_breakpoint): Likewise.
6214 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6215 gdbarch_memory_remove_breakpoint.
6216 * mem-break.c (memory_remove_breakpoint): Likewise.
6217 * gdbarch.c, gdbarch.h: Regenerate.
6221 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6222 gdbarch_fetch_tls_load_module_address.
6223 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6224 gdbarch_fetch_tls_load_module_address_p.
6225 * gdbarch.c, gdbarch.h: Regenerate.
6229 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6230 gdbarch_decr_pc_after_break.
6231 * tracepoint.c (trace_dump_command): Likewise.
6232 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6233 * linux-thread-db.c (check_event): Likewise.
6234 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6235 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6236 * frame.h: Likewise (comment).
6237 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6238 * aix-thread.c (aix_thread_wait): Likewise.
6239 * gdbarch.c, gdbarch.h: Regenerate.
6243 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6244 gdbarch_address_class_type_flags.
6245 * dwarf2read.c (read_tag_pointer_type): Likewise.
6246 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6247 gdbarch_address_class_type_flags_p.
6248 * dwarf2read.c (read_tag_pointer_type): Likewise.
6249 * gdbarch.c, gdbarch.h: Regenerate.
6253 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6254 * value.c (value_as_address): Likewise (comment).
6255 * remote-mips.c (common_breakpoint): Likewise.
6256 * regcache.c (read_pc_pid): Likewise.
6257 * printcmd.c (do_one_display): Likewise.
6258 * monitor.c (monitor_write_memory, monitor_read_memory)
6259 (monitor_insert_breakpoint): Likewise.
6260 * mips-tdep.c (heuristic_proc_start): Likewise.
6261 * infrun.c (insert_step_resume_breakpoint_at_frame)
6262 (insert_step_resume_breakpoint_at_caller): Likewise.
6263 * buildsym.c (record_line): Likewise.
6264 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6265 (arm_get_next_pc): Likewise.
6266 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6267 (store_regs): Likewise.
6268 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6269 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6270 * gdbarch.c, gdbarch.h: Regenerate.
6274 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6275 * tracepoint.c (scope_info): Likewise.
6276 * target.c (debug_print_register): Likewise.
6277 * stack.c (frame_info): Likewise.
6278 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6279 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6280 (sh64_media_print_registers_info)
6281 (sh64_compact_print_registers_info): Likewise.
6282 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6283 * remote-sim.c (gdbsim_fetch_register): Likewise.
6284 * remote.c (packet_reg): Likewise (comment).
6285 * reggroups.c (default_register_reggroup_p): Likewise.
6286 * regcache.c (regcache_dump): Likewise.
6287 * printcmd.c (address_info): Likewise.
6288 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6289 * mt-dep.c (mt_registers_info): Likewise.
6290 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6291 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6292 (mips_read_fp_register_double, mips_print_fp_register)
6293 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6294 (mips_register_sim_regno): Likewise.
6295 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6296 * inf-ptrace.c (inf_ptrace_fetch_register)
6297 (inf_ptrace_store_register): Likewise.
6298 * infcmd.c (default_print_registers_info): Likewise.
6299 * ia64-linux-nat.c (ia64_linux_fetch_register)
6300 (ia64_linux_store_register): Likewise.
6301 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6302 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6303 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6304 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6305 (hppa_hpux_store_register): Likewise.
6306 * findvar.c (locate_var_value): Likewise.
6307 * dwarf2loc.c (locexpr_describe_location): Likewise.
6308 * dwarf2-frame.c (execute_cfa_program): Likewise.
6309 * arm-tdep.c (arm_push_dummy_call): Likewise.
6310 * arch-utils.c (legacy_register_sim_regno): Likewise.
6311 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6312 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6313 * mi/mi-main.c (mi_cmd_data_list_register_names)
6314 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6315 (mi_cmd_data_write_register_values): Likewise.
6316 * gdbarch.c, gdbarch.h: Regenerate.
6320 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6324 * remote.c (process_g_packet): Don't check size.
6325 * gdbarch.sh: Remove register_bytes_ok.
6326 * gdbarch.c: Regenerated.
6327 * gdbarch.h: Regenerated.
6328 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6329 (m68k_register_bytes_ok): Remove.
6330 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6334 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6335 (destroy_addr_space_name): Define.
6336 (libunwind_load): Get address of destroy_addr_space function.
6337 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6338 returning unsuccessfully.
6339 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6341 (libunwind_sigtramp_frame_sniffer): Likewise.
6342 (libunwind_get_reg_special): Likewise.
6346 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6347 gdbarch_fetch_pointer_argument.
6348 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6349 * gdbarch.c, gdbarch.h: Regenerate.
6353 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6354 gdbarch_have_nonsteppable_watchpoint.
6355 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6356 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6357 gdbarch_cannot_step_breakpoint.
6358 * infrun.c (resume): Likewise.
6359 * gdbarch.c, gdbarch.h: Regenerate.
6363 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6364 * stack.c (print_frame_args): Likewise.
6365 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6366 * stack.c (print_args_stub, frame_info): Likewise.
6367 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6368 * stack.c (print_args_stub, frame_info): Likewise.
6369 * gdbarch.c, gdbarch.h: Regenerate.
6373 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6374 gdbarch_coff_make_msymbol_special.
6375 * coffread.c (coff_symtab_read): Likewise.
6376 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6377 gdbarch_elf_make_msymbol_special.
6378 * elfread.c (elf_symtab_read): Likewise.
6379 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6380 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6381 * gdbarch.c, gdbarch.h: Regenerate.
6385 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6386 gdbarch_frame_red_zone_size.
6387 * gdbarch.c, gdbarch.h: Regenerate.
6391 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6392 * infcall.c (call_function_by_hand): Likewise.
6393 * gcore.c (derive_stack_segment): Likewise.
6394 * frame.c (frame_id_inner): Likewise.
6395 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6396 * ada-lang.c (ensure_lval): Likewise.
6397 * gdbarch.c, gdbarch.h: Regenerate.
6401 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6402 gdbarch_address_to_pointer.
6403 * findvar.c (store_typed_address): Likewise.
6404 * gdbtypes.c (make_pointer_type): Likewise (comment).
6405 * procfs.c (procfs_address_to_host_pointer): Likewise.
6406 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6407 (value_of_builtin_frame_fp_reg): Likewise.
6408 (value_of_builtin_frame_pc_reg): Likewise.
6409 * utils.c (paddress): Likewise (comment).
6410 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6411 gdbarch_pointer_to_address.
6412 * findvar.c (extract_typed_address): Likewise.
6413 * gdbtypes.c (make_pointer_type): Likewise (comment).
6414 * valops.c (value_cast): Likewise (comment).
6415 * gdbarch.c, gdbarch.h: Regenerate.
6419 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6420 * infrun.c (handle_inferior_event): Likewise.
6421 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6422 gdbarch_get_longjmp_target_p.
6423 * breakpoint.c (breakpoint_re_set): Likewise.
6424 * infrun.c (handle_inferior_event): Likewise.
6425 * gdbarch.c, gdbarch.h: Regenerate.
6429 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6430 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6431 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6432 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6433 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6434 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6435 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6436 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6437 current_ex_event, child_get_current_exception_event): Remove.
6438 (hppa_hpux_inferior_created): Remove.
6439 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6441 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6442 (deprecated_exception_support_initialized): Remove.
6443 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6444 (deprecated_exception_support_initialized): Remove.
6445 (breakpoint_init_inferior): Remove handling of non-zero
6446 deprecated_exception_catchpoints_are_fragile.
6448 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6449 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6450 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6451 deprecated_hp_som_som_object_present.
6452 * eval.c (evaluate_subexp_standard): Likewise.
6453 * valops.c (value_cast): Likewise.
6455 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6456 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6457 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6461 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6462 (struct objfile): Remove import_list, import_list_size,
6463 export_list, export_list_size members.
6464 (is_in_import_list): Remove prototype.
6465 * objfiles.c (is_in_import_list): Remove.
6466 * somread.c (init_import_symbols, init_export_symbols): Remove.
6467 (som_symfile_read): Do not call init_import_symbols. Do not
6468 set objfile->export_list and objfile->export_list_size.
6472 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6473 Use the original objfile if necessary.
6477 * defs.h (ldirname): New prototype.
6478 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6480 * utils.c (ldirname): New function.
6481 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6485 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6489 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6493 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6497 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6498 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6499 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6500 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6501 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6502 ppc_linux_at_sigtramp_return_path): Remove.
6506 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6507 (xtensa_register_write_masked, xtensa_register_read_masked)
6508 (xtensa_extract_return_value, xtensa_store_return_value
6509 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6510 TARGET_BYTE_ORDER by gdbarch_byte_order.
6511 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6512 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6513 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6514 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6515 (sh64_push_dummy_call, sh64_extract_return_value)
6516 (sh64_store_return_value, sh64_register_convert_to_virtual)
6517 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6518 (sh64_pseudo_register_write, sh64_do_fp_register)
6519 (sh64_frame_prev_register): Likewise.
6520 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6521 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6522 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6523 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6524 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6525 * ppc-linux-nat.c (store_register): Likewise.
6526 * nto-tdep.c (nto_find_and_open_solib)
6527 (nto_init_solib_absolute_prefix): Likewise.
6528 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6529 (mips_convert_register_p, mips_eabi_push_dummy_call)
6530 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6531 (mips_o32_push_dummy_call, mips_o32_return_value)
6532 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6533 (mips_read_fp_register_single, mips_read_fp_register_double)
6534 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6535 (mips_breakpoint_from_pc): Likewise.
6536 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6537 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6538 (mips_linux_o32_sigframe_init): Likewise.
6539 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6540 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6541 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6542 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6543 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6544 * coffread.c (process_coff_symbol): Likewise.
6545 * arm-tdep.c (convert_from_extended, convert_to_extended)
6546 (gdb_print_insn_arm): Likewise.
6550 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6551 * i386-tdep.c (i386_dbx_reg_to_regnum)
6552 (i386_svr4_reg_to_regnum): Likewise.
6553 * inf-ptrace.c (inf_ptrace_fetch_registers)
6554 (inf_ptrace_store_registers): Likewise.
6555 * corelow.c (get_core_registers): Likewise.
6556 * i386-linux-nat.c (supply_gregset, fill_gregset)
6557 (i386_linux_fetch_inferior_registers)
6558 (i386_linux_store_inferior_registers): Likewise.
6559 * remote.c (init_remote_state,packet_reg_from_regnum)
6560 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6561 (remote_prepare_to_store,store_registers_using_G)
6562 (remote_store_registers,remote_arch_state): Likewise.
6563 * tracepoint.c (encode_actions): Likewise.
6564 * mi/mi-main.c (mi_cmd_data_list_register_names)
6565 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6566 (mi_cmd_data_write_register_values): Likewise.
6567 * tui/tui-regs.c (tui_show_register_group)
6568 (tui_show_register_group): Likewise.
6569 * xtensa-tdep.h (FP_ALIAS): Likewise.
6570 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6571 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6572 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6573 * win32-nat.c (do_win32_fetch_inferior_registers)
6574 (do_win32_store_inferior_registers,fetch_elf_core_registers
6575 * user-regs.h: Likewise (comment).
6576 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6577 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6578 * target-descriptions.h: Likewise (comment).
6579 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6580 * target.c (debug_print_register): Likewise.
6581 * stack.c (frame_info): Likewise.
6582 * stabsread.c (define_symbol): Likewise.
6583 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6584 (sh64_media_print_registers_info)
6585 (sh64_compact_print_registers_info): Likewise.
6586 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6587 * rs6000-nat.c (fetch_register,store_register): Likewise.
6588 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6589 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6590 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6591 * remote-m32r-sdi.c (m32r_fetch_registers)
6592 (m32r_store_registers): Likewise.
6593 * reggroups.c (default_register_reggroup_p): Likewise.
6594 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6595 (regcache_restore,regcache_dump): Likewise.
6596 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6597 * mips-tdep.c (mips_xfer_register,mips_register_name)
6598 (mips_register_reggroup_p,mips_pseudo_register_read)
6599 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6600 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6601 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6602 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6603 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6604 (print_gp_register_row,mips_print_registers_info)
6605 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6606 (mips_register_sim_regno): Likewise.
6607 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6608 (mips_linux_n32n64_sigframe_init): Likewise.
6609 * mips-linux-nat.c (mips_linux_register_addr)
6610 (mips64_linux_register_addr): Likewise.
6611 * findvar.c (value_of_register): Likewise.
6612 * infcmd.c (default_print_registers_info,registers_info)
6613 (print_vector_info,print_float_info): Likewise.
6614 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6615 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6616 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6617 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6618 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6619 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6620 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6621 (ia64_linux_store_registers): Likewise.
6622 * hpux-thread.c (hpux_thread_fetch_registers)
6623 (hpux_thread_store_registers): Likewise.
6624 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6625 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6626 (h8300_register_type): Likewise.
6627 * dwarf2-frame.c (dwarf2_frame_cache)
6628 (dwarf2_frame_state_alloc_regs): Likewise.
6629 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6630 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6631 (crisv32_cannot_store_register,cris_register_name): Likewise.
6632 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6633 * arch-utils.c (legacy_register_sim_regno)
6634 (legacy_virtual_frame_pointer): Likewise.
6635 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6636 * arm-tdep.h: Likewise (comment).
6637 * frv-tdep.c (frv_register_sim_regno): Likewise.
6638 * m68klinux-nat.c (old_fetch_inferior_registers)
6639 (old_store_inferior_registers): Likewise.
6640 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6641 * irix5-nat.c (fetch_core_registers): Likewise.
6642 * hppa-tdep.c (hppa_frame_cache): Likewise.
6643 * hppa-linux-nat.c (hppa_linux_register_addr)
6644 (hppa_linux_fetch_inferior_registers)
6645 (hppa_linux_store_inferior_registers): Likewise.
6646 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6647 (hppa_hpux_store_inferior_registers): Likewise.
6648 * amd64-nat.c (amd64_native_gregset_reg_offset)
6649 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6650 * dbug-rom.c (dbug_regname): Likewise.
6651 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6652 (HARD_PAGE_REGNUM (comment)): Likewise.
6653 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6654 * i386-tdep.c (i386_dbx_reg_to_regnum)
6655 (i386_svr4_reg_to_regnum): Likewise.
6656 * mi/mi-main.c (mi_cmd_data_list_register_names)
6657 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6658 (mi_cmd_data_write_register_values): Likewise.
6659 * gdbarch.c, gdbarch.h: Regenerate.
6660 * tui/tui-regs.c (tui_show_register_group): Likewise.
6661 * xtensa-tdep.h (FP_ALIAS): Likewise.
6662 * user-regs.h: Likewise (comment).
6663 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6664 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6665 * target-descriptions.h: Likewise (comment).
6666 * target.c (debug_print_register): Likewise.
6667 * stack.c (frame_info): Likewise.
6668 * stabsread.c (define_symbol): Likewise.
6669 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6670 (sh64_compact_print_registers_info): Likewise.
6671 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6672 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6673 (regcache_restore,regcache_dump): Likewise.
6674 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6675 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6676 (mips_stab_reg_to_regnum): Likewise.
6677 * findvar.c (value_of_register): Likewise.
6678 * infcmd.c (default_print_registers_info,registers_info)
6679 (print_vector_info,print_float_info): Likewise.
6680 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6681 * h8300-tdep.c (h8300_register_type): Likewise.
6682 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6683 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6684 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6685 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6686 * parse.c: Remove comment.
6687 * gdbarch.c, gdbarch.h: Regenerate
6691 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6692 gdbarch_cannot_fetch_register.
6693 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6694 * hppa-linux-nat.c (fetch_register): Likewise.
6695 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6696 * m68klinux-nat.c (fetch_register): Likewise.
6697 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6699 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6700 gdbarch_cannot_store_register.
6701 * hppa-linux-nat.c (store_register): Likewise.
6702 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6703 * regcache.c (regcache_raw_write): Likewise.
6704 * m68klinux-nat.c (store_register): Likewise.
6705 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6706 * gdbarch.c, gdbarch.h: Regenerate.
6710 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6711 * gdbarch.c, gdbarch.h: Regenerate.
6715 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6716 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6717 * gdbarch.c, gdbarch.h: Regenerate.
6721 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6722 * ax-gdb.c (gen_bitfield_ref): Likewise.
6723 * mi/mi-main.c (get_register): Likewise.
6724 * findvar.c (default_value_from_register, extract_signed_integer)
6725 (extract_unsigned_integer, extract_long_unsigned_integer)
6726 (store_signed_integer, store_unsigned_integer): Likewise.
6727 * regcache.c (regcache_dump): Likewise.
6728 * value.c (lookup_internalvar, value_of_internalvar)
6729 (set_internalvar): Likewise.
6731 * valprint.c (print_binary_chars, print_octal_chars)
6732 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6733 * infcmd.c (default_print_registers_info): Likewise.
6734 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6735 * stabsread.c (define_symbol): Likewise.
6736 * doublest.c (floatformat_from_length, floatformat_from_type)
6737 (extract_typed_floating, store_typed_floating): Likewise.
6738 * gdbarch.c, gdbarch.h: Regenerate.
6742 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6743 gdbarch_call_dummy_location.
6744 * infcall.c (call_function_by_hand): Likewise.
6745 * inferior.h: Change comment.
6746 * arch-utils.c: Change comment.
6747 * gdbarch.c, gdbarch.h: Regenerate.
6751 * solib-aix5.c: Delete.
6752 * Makefile.in (solib-aix5.o): Delete rule.
6756 * breakpoint.h (enum bpstat_what_main_action): Remove
6757 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6758 * infrun.c (process_event_stop_test): Do not check for it.
6763 * ser-unix.c (show_serial_hwflow): New function.
6764 (hardwire_raw): Add hardware flow control support.
6765 (_initialize_ser_hardwire): Add "set/show remoteflow".
6766 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6767 * NEWS: Document the new command.
6771 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6772 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6773 define for i[[3456]]86-*-linux* native configurations.
6774 * config.in, configure: Regenerate.
6778 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6779 a core file. Add comment in the function description.
6783 * c-valprint.c (c_value_print): If the initialized field of the
6784 value struct is 0, print out "[uninitialized]" before the value.
6785 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6786 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6787 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6788 ctx->initialized appropriately. Verify no location op follows
6790 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6791 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6792 set_value_initialized.
6793 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6794 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6795 * value.c (struct value): New field, initialized.
6796 (allocate_value): Initialize new field.
6797 (set_value_initialized): New function.
6798 (value_initialized): New function.
6799 * value.h (value_initialized): New extern declaration.
6800 (set_value_initialized): Likewise.
6804 * MAINTAINERS (Write After Approval): Add self.
6808 * gdbtypes.c (make_reference_type): Preserve the type chain
6809 and set the length of all the variants of the pointer type.
6813 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6814 and set the length of all the variants of the pointer type.
6818 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6820 (mips_o64_push_dummy_call): Reformat a comment.
6824 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6825 (score_prologue_frame_base_address): Return fp to keep gdb print
6826 local variables correctly when debugging information is stabs.
6828 (score_analyze_prologue): For software watchpoint, fetch all the
6829 instructions from range [startaddr, pc] once and identify them locally
6830 to reduce memory access.
6831 (score_malloc_and_get_memblock, score_free_memblock)
6832 (score_adjust_memblock_ptr): New functions.
6833 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6835 (score_target_can_use_watch, score_stopped_by_watch)
6836 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6837 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6838 New functions for remote & local hw-watchpoint and hw-breakpoint.
6842 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6843 declarations as well.
6847 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6848 * config/arm/tm-embed.h: Delete file.
6850 * arm-tdep.h (arm_software_single_step): Declare.
6851 * arm-tdep.c (arm_software_single_step): Make global.
6852 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6854 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6855 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6856 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6857 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6859 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6860 allow defines to be overriden by TM file.
6861 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6862 change default to {0xbe,0xbe}.
6863 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6864 arm_obsd_thumb_be_breakpoint): New global variables.
6865 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6866 tdep->thumb_breakpoint_size.
6867 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6868 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6869 tdep->thumb_breakpoint_size.
6871 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6875 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6878 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6879 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6880 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6881 (mips_abi_regsize): Simplify.
6882 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6883 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6884 (mips_o32_return_value, mips_o64_push_dummy_call)
6885 (mips_o64_return_value): Propogate constant register sizes. Use the
6886 ABI register size instead of mips_stack_argsize.
6887 (mips_dump_tdep): Don't print mips_stack_argsize.
6888 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6893 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6894 * config/mips/tm-linux.h: Delete.
6895 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6896 (mips_linux_in_dynsym_resolve_code): Make static. Use
6897 svr4_in_dynsym_resolve_code.
6898 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6900 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6902 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6903 * Makefile.in (mips-linux-tdep.o): Update.
6904 * solib.c (set_solib_ops): New.
6905 (current_target_so_ops): Update comment.
6906 * solib.h (set_solib_ops): New prototype.
6910 * printcmd.c (do_examine): Fix typos in a comment.
6914 * configure.ac: Allow sysroots to be relocated under $prefix as
6915 well as $exec_prefix.
6916 * configure: Regenerate.
6920 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6921 (offsetof): Do not define.
6922 (find_stub_with_shl_get): Use numerical value 3 instead of
6923 symbolic value TYPE_PROCEDURE.
6927 * gdb_proc_service.h (paddr_t): Delete typedef.
6928 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6929 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6930 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6931 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6932 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6933 * Makefile.in (proc-service.o): Update.
6937 * Makefile.in (mips-tdep.o): Update.
6938 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6943 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6944 instead of store_typed_address.
6945 * value.c (pack_long): New.
6946 (value_from_longest): Use it.
6947 * value.h (pack_long): New prototype.
6951 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6952 DW_EH_PE_signed if appropriate.
6957 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6959 (dwarf_decode_lines): Check for line info without a file.
6963 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6968 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6970 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6972 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6976 * gdbarch.sh (read_sp): Remove.
6977 * gdbarch.c, gdbarch.h: Regenerate.
6978 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6980 * avr-tdep.c (avr_read_sp): Remove.
6981 (avr_unwind_sp): New function.
6982 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6983 * mips-tdep.c (mips_read_sp): Remove.
6984 (mips_unwind_sp): New function.
6985 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6986 * score-tdep.c (score_read_unsigned_register): Remove.
6987 (score_read_sp): Remove.
6988 (score_unwind_sp): New function.
6989 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6993 * buildsym.c (start_subfile): Handle absolute pathnames
6994 while comparing subfile names.
6998 * hppa-hpux-tdep.c: Include "regcache.h".
6999 * hppa-linux-tdep.c: Likewise.
7000 * hppa-tdep.c: Include "gdb_stdint.h".
7001 (find_unwind_entry): Cast host pointer to uintptr_t before passing
7003 * Makefile.in: Update dependencies.
7007 * blockframe.c: Remove obsolete comments.
7008 * alpha-nat.c (fetch_osf_core_registers): Update comment.
7009 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
7010 * hppa-tdep.h (enum hppa_regnum): Likewise.
7011 * mips-tdep.h: Likewise.
7012 * m68hc11-tdep.c: Likewise.
7016 * inferior.h (read_sp): Remove prototype.
7017 * regcache.c (read_sp): Remove.
7018 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
7019 * infcall.c (call_function_by_hand): Likewise.
7020 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
7022 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7026 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7027 instead of read_register and read_register_pid.
7029 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7030 argument instead of PTID. Use regcache functions instead of
7032 (ia64_linux_insert_watchpoint): Update call.
7033 (ia64_linux_stopped_data_address): Use regcache functions
7034 instead of read_register_pid and write_register_pid.
7038 * libunwind-frame.h (struct regcache): Add forward declaration.
7039 (libunwind_get_reg_special): Add REGCACHE argument.
7040 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7041 argument. Pass it to unw_init_remote_p.
7043 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7044 libunwind_get_reg_special.
7045 (ia64_access_reg): Remove "write" case.
7046 (ia64_access_fpreg): Likewise. Read from next_frame passed
7047 as callback argument instead of from current_regcache.
7048 (ia64_access_rse_reg): Remove "write" case. Read from regcache
7049 passed as callback argument instead of from current_regcache.
7050 (ia64_access_rse_fpreg): New function.
7051 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7055 * NEWS: Mention SPU overlay support.
7059 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7063 * breakpoint.c (remove_breakpoint): Do not remove software
7064 breakpoints in unmapped overlay sections.
7068 * spu-tdep.c: Include "observer.h".
7069 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7070 (spu_overlay_data): New variable.
7071 (struct spu_overlay_table): New type.
7072 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7073 spu_overlay_new_objfile): New functions.
7074 (spu_gdbarch_init): Install spu_overlay_update.
7075 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7076 allocate spu_overlay_data objfile data.
7080 * gdbarch.sh (overlay_update): New gdbarch function.
7081 (struct obj_section): Add forward declaration.
7082 * gdbarch.c, gdbarch.h: Regenerate.
7084 * symfile.c (simple_overlay_update): Make global.
7085 (target_overlay_update): Remove variable.
7086 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7087 target_overlay_update.
7088 (overlay_load_command): Likewise.
7089 * symfile.h (struct obj_section): Add forward declaration.
7090 (simple_overlay_update): Add prototype.
7092 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7096 * observer.sh: Add "struct objfile" forward declaration.
7097 * target.h (deprecated_target_new_objfile_hook): Remove.
7098 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7099 (clear_symtab_users): Call observer_notify_new_objfile.
7100 (symbol_file_add_with_addrs_or_offsets): Likewise.
7101 * rs6000-nat.c: Include "observer.h".
7102 (vmap_ldinfo): Call observer_notify_new_objfile.
7103 (xcoff_relocate_core): Likewise.
7104 * remote.c (remote_new_objfile_chain): Remove.
7105 (remote_new_objfile): Do not call remote_new_objfile_chain.
7106 (_initialize_remote): Use observer_attach_new_objfile.
7107 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7108 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7109 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7110 * aix-thread.c: Include "observer.h".
7111 (target_new_objfile_chain): Remove.
7112 (new_objfile): Do not call target_new_objfile_chain.
7113 (_initialize_aix_thread): Use observer_attach_new_objfile.
7114 * hpux-thread.c: Include "observer.h"
7115 (target_new_objfile_chain): Remove.
7116 (hpux_thread_new_objfile): Make static. Do not call
7117 target_new_objfile_chain.
7118 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7119 * linux-thread-db.c: Include "observer.h".
7120 (target_new_objfile_chain): Remove.
7121 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7122 (_initialize_thread_db): Use observer_attach_new_objfile.
7123 * sol-thread.c: Include "observer.h".
7124 (target_new_objfile_chain): Remove.
7125 (sol_thread_new_objfile): Make static. Do not call
7126 target_new_objfile_chain.
7127 (_initialize_sol_thread): Use observer_attach_new_objfile.
7128 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7129 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7134 * gdbarch.sh (remote_translate_xfer_address): Remove.
7135 * gdbarch.h, gdbarch.c: Regenerate.
7136 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7137 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7138 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7139 call gdbarch_remote_translate_xfer_address.
7140 * frv-tdep.c (frv_gdbarch_init): Do not call
7141 set_gdbarch_remote_translate_xfer_address.
7142 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7143 (ia64_gdbarch_init): Do not install it.
7147 * NEWS: Mention change in handling the -tui option.
7151 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7156 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7157 (breakpoint_inserted_here_p): Call it.
7158 (software_breakpoint_inserted_here_p): Likewise.
7162 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7163 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7164 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7165 (inf_ptrace_store_register): Likewise.
7166 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7167 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7169 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7171 * linux-nat.c (linux_trad_target): Adapt parameter list.
7172 * linux-nat.h (linux_trad_target): Likewise.
7174 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7176 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7177 (mips_linux_cannot_store_register): Likewise.
7178 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7179 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7180 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7181 (mips64_linux_register_addr): Likewise.
7182 (mips_linux_register_u_offset): Adapt parameter list. Pass
7183 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7185 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7186 * config/mips/nm-linux.h: Delete file.
7190 * remote.c (remote_detach): Error out if remote can't detach.
7194 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7195 instruction's opcode in the "opcode" variable and declares new
7196 variable "closing_insn".
7201 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7202 whitespace when setting a var_filename.
7206 * main.c (captured_main): Recognize -tui option and print an error
7207 message when the TUI is not configured.
7211 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7212 set removed members.
7213 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7217 * gdbarch.sh (deprecated_store_struct_return): Remove.
7218 * gdbarch.c, gdbarch.h: Regenerate.
7219 * frv-tdep.c (frv_store_struct_return): Remove.
7220 (frv_gdbarch_init): Do not install it.
7224 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7225 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7226 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7230 * spu-linux-nat.c: Include "gdb_stdint.h".
7231 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7232 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7233 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7234 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7235 (spu_child_wait): Mark up string for translation.
7240 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7241 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7242 BC_INSTRUCTION): Define.
7243 (deal_with_atomic_sequence): New function.
7244 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7245 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7246 gdbarch_software_single_step routine.
7250 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7251 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7252 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7253 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7254 spu_child_post_attach, spu_fetch_inferior_registers,
7255 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7256 memory addresses as ULONGEST, not CORE_ADDR.
7260 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7261 * gdbarch.h, gdbarch.c: Regenerate.
7263 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7264 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7265 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7267 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7268 Add REGCACHE argument. Use it instead of read/write_register.
7269 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7271 * config/pa/tm-hppah.h: Delete file.
7272 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7273 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7277 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7278 * NEWS: Mention improved C++ thunk support.
7279 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7280 * cp-abi.c (cplus_skip_trampoline): New.
7281 * cp-abi.h (cplus_skip_trampoline): New prototype.
7282 (struct cp_abi_ops): Add skip_trampoline member.
7283 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7284 (init_gnuv3_ops): Set skip_trampoline.
7288 * rs6000-tdep.c (struct frame_extra_info): Delete.
7292 * linux-thread-db.c: Update some FIXME comments.
7293 (thread_db_xfer_partial): Delete.
7294 (init_thread_db_ops): Do not set to_xfer_partial.
7298 * inftarg.c, infptrace.c: Remove files.
7299 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7300 (inftarg.o, infptrace.o): Remove rules.
7301 * gdbcore.h (register_addr): Remove prototype.
7302 * inferior.h (kill_inferior, store_inferior_registers,
7303 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7304 call_ptrace, pre_fork_inferior): Remove prototypes.
7305 * target.h (child_xfer_memory, child_pid_to_exec_file,
7306 child_core_file_to_sym_file, child_post_attach,
7307 child_post_startup_inferior, child_acknowledge_created_inferior,
7308 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7309 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7310 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7311 child_follow_fork, child_reported_exec_events_per_exec_call,
7312 child_has_exited, child_thread_alive): Remove prototypes.
7316 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7317 (sparc_store_inferior_registers): Likewise.
7318 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7319 (sparc_fetch_inferior_registers): ... this.
7320 (store_inferior_registers): Rename to ...
7321 (sparc_store_inferior_registers): ... this.
7322 (sparc_target): Update callback names.
7323 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7324 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7328 * linux-nat.c (child_post_attach): Rename to ...
7329 (linux_child_post_attach): ... this. Make static.
7330 (child_follow_fork): Rename to ...
7331 (linux_child_follow_fork): ... this. Make static.
7332 (child_insert_fork_catchpoint): Rename to ...
7333 (linux_child_insert_fork_catchpoint): ... this. Make static.
7334 (child_insert_vfork_catchpoint): Rename to ...
7335 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7336 (child_insert_exec_catchpoint): Rename to ...
7337 (linux_child_insert_exec_catchpoint): ... this. Make static.
7338 (child_pid_to_exec_file): Rename to ...
7339 (linux_child_pid_to_exec_file): ... this. Make static.
7341 (linux_handle_extended_wait): Update call.
7342 (linux_xfer_partial): Update callback routine names.
7346 * configure.host (alpha*-*-osf[12]*): Remove support.
7347 * NEWS: Mention removed configurations.
7349 * config/alpha/alpha-osf1.mh: Delete file.
7350 * config/alpha/alpha-osf2.mh: Delete file.
7351 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7353 * config/alpha/nm-osf.h: Delete file.
7354 * config/alpha/nm-osf2.h: Delete file.
7355 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7356 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7357 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7359 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7360 (register_addr, kernel_u_size): Remove.
7361 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7365 * regcache.c (regcache_invalidate): New function.
7366 (register_cached): Remove.
7367 (set_register_cached): Remove.
7368 (deprecated_registers_fetched): Remove.
7369 (registers_changed): Use regcache_invalidate instead
7370 of set_register_cached.
7371 (regcache_raw_read): Update comment.
7373 * regcache.h (regcache_invalidate): Add prototype.
7374 (register_cached): Remove.
7375 (set_register_cached): Remove.
7376 (deprecated_registers_fetched): Remove.
7378 * findvar.c (value_of_register): Do not call register_cached.
7379 * frame.c (frame_register): Likewise.
7380 * tui/tui-regs.c (tui_get_register): Likewise.
7382 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7383 (process_g_packet): Likewise.
7384 (remote_fetch_registers): Likewise.
7385 * remote-sim.c (gdbsim_fetch_register): Likewise.
7386 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7387 by regcache_invalidate.
7388 (mt_pseudo_register_write): Likewise.
7389 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7391 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7392 call by loop over regcache_raw_supply (..., NULL).
7396 * target.h (struct target_ops): Add REGCACHE parameter to
7397 to_prepare_to_store.
7398 (target_prepare_to_store): Likewise.
7399 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7400 (update_current_target): Adapt prepare_to_store de_fault rule.
7402 * regcache.c (regcache_raw_write): Pass regcache to
7403 target_prepare_to_store.
7405 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7406 Do not call CHILD_PREPARE_TO_STORE.
7407 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7408 * procfs.c (procfs_prepare_to_store): Likewise.
7410 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7411 * go32-nat.c (go32_prepare_to_store): Likewise.
7412 * monitor.c (monitor_prepare_to_store): Likewise.
7413 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7414 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7415 * remote-mips.c (mips_prepare_to_store): Likewise.
7416 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7417 * win32-nat.c (win32_prepare_to_store): Likewise.
7419 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7420 Use it instead of current_regcache.
7422 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7423 parameter. Pass it on to next target.
7424 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7428 * target.h (struct regcache): Add forward declaration.
7429 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7430 and to_store_registers target operations.
7431 (target_fetch_registers, target_store_registers): Update.
7433 * regcache.c (regcache_raw_read): Replace register_cached by
7434 regcache_valid_p. Pass regcache to target_fetch_registers.
7435 (regcache_raw_write): Pass regcache to target_store_registers.
7437 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7438 store_regs, store_wmmx_regs): Replace register_cached by
7441 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7442 to target_fetch_registers calls.
7443 * corelow.c (core_open): Likewise.
7444 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7445 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7446 ps_lsetfpregs): Likewise.
7447 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7448 ps_lsetfpregs): Likewise.
7449 * win32-nat.c (win32_resume): Likewise.
7450 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7451 to target_store_registers call.
7452 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7454 * inferior.h (store_inferior_registers): Update prototype.
7455 (fetch_inferior_registers): Likewise.
7456 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7457 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7458 Update function pointer signatures.
7460 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7461 use it instead of current_regcache, update calls.
7462 (aix_thread_store_registers): Likewise.
7463 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7464 (alphabsd_store_inferior_registers): Likewise.
7465 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7466 (amd64bsd_store_inferior_registers): Likewise.
7467 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7468 (amd64_linux_store_inferior_registers): Likewise.
7469 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7470 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7471 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7472 (arm_linux_fetch_inferior_registers): Likewise.
7473 (arm_linux_store_inferior_registers): Likewise.
7474 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7475 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7476 (store_register, store_regs, store_fp_register, store_fp_regs,
7477 armnbsd_store_registers): Likewise.
7478 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7479 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7480 (bsd_uthread_store_registers): Likewise.
7481 * corelow.c (get_core_registers): Likewise.
7482 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7483 go32_store_registers): Likewise.
7484 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7485 (hppabsd_store_registers): Likewise.
7486 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7487 (hppa_hpux_fetch_inferior_registers): Likewise.
7488 (hppa_hpux_store_register): Likewise.
7489 (hppa_hpux_store_inferior_registers): Likewise.
7490 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7491 (hppa_linux_fetch_inferior_registers): Likewise.
7492 (hppa_linux_store_inferior_registers): Likewise.
7493 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7494 (hpux_thread_store_registers): Likewise.
7495 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7496 (i386bsd_store_inferior_registers): Likewise.
7497 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7498 gnu_store_registers): Likewise.
7499 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7500 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7502 (i386_linux_fetch_inferior_registers): Likewise.
7503 (i386_linux_store_inferior_registers): Likewise.
7504 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7505 (ia64_linux_fetch_registers): Likewise.
7506 (ia64_linux_store_register): Likewise.
7507 (ia64_linux_store_registers): Likewise.
7508 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7509 (inf_child_store_inferior_registers): Likewise.
7510 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7511 (inf_ptrace_fetch_registers): Likewise.
7512 (inf_ptrace_store_register): Likewise.
7513 (inf_ptrace_store_registers): Likewise.
7514 * infptrace.c (fetch_register, store_register): Likewise.
7515 (fetch_inferior_registers, store_inferior_registers): Likewise.
7516 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7517 (m32r_linux_fetch_inferior_registers): Likewise.
7518 (m32r_linux_store_inferior_registers): Likewise.
7519 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7520 (m68kbsd_store_inferior_registers): Likewise.
7521 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7522 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7523 fetch_fpregs, store_fpregs): Likewise.
7524 (m68k_linux_fetch_inferior_registers): Likewise.
7525 (m68k_linux_store_inferior_registers): Likewise.
7526 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7527 (m88kbsd_store_inferior_registers): Likewise.
7528 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7529 (mips64obsd_store_inferior_registers): Likewise.
7530 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7531 (mips64_linux_regsets_store_registers): Likewise.
7532 (mips64_linux_fetch_registers): Likewise.
7533 (mips64_linux_store_registers): Likewise.
7534 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7535 (mipsnbsd_store_inferior_registers): Likewise.
7536 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7537 (monitor_fetch_registers, monitor_store_registers): Likewise.
7538 * nto-procfs.c (procfs_fetch_registers): Likewise.
7539 (procfs_store_registers): Likewise.
7540 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7541 fetch_register, supply_vrregset, fetch_altivec_registers,
7542 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7543 (store_altivec_register, store_spe_register, store_register,
7544 fill_vrregset, store_altivec_registers, store_ppc_registers,
7545 ppc_linux_store_inferior_registers): Likewise.
7546 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7547 (ppcnbsd_store_inferior_registers): Likewise.
7548 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7549 (ppcobsd_store_registers): Likewise.
7550 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7551 * remote.c (fetch_register_using_p, process_g_packet,
7552 fetch_registers_using_g, remote_fetch_registers): Likewise.
7553 (store_register_using_P, store_registers_using_G,
7554 remote_store_registers): Likewise.
7555 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7556 m32r_store_register, m32r_store_register): Likewise.
7557 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7558 * remote-sim.c (gdbsim_fetch_register): Likewise.
7559 (gdbsim_store_register): Likewise.
7560 * rs6000-nat.c (fetch_register, store_register): Likewise.
7561 (rs6000_fetch_inferior_registers): Likewise.
7562 (rs6000_store_inferior_registers): Likewise.
7563 * s390-nat.c (fetch_regs, store_regs): Likewise.
7564 (fetch_fpregs, store_fpregs): Likewise.
7565 (s390_linux_fetch_inferior_registers): Likewise.
7566 (s390_linux_store_inferior_registers): Likewise.
7567 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7568 (shnbsd_store_inferior_registers): Likewise.
7569 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7570 (sol_thread_store_registers): Likewise.
7571 * sparc-nat.c (fetch_inferior_registers): Likewise.
7572 (store_inferior_registers): Likewise.
7573 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7574 (spu_store_inferior_registers): Likewise.
7575 * target.c (debug_print_register): Likewise.
7576 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7577 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7578 (vaxbsd_store_inferior_registers): Likewise.
7579 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7580 (win32_fetch_inferior_registers): Likewise.
7581 (win32_store_inferior_registers): Likewise.
7585 * gdbcore.h (struct regcache): Add forward declaration.
7586 (struct core_fns): Add REGCACHE argument to core_read_registers
7588 * corelow.c (get_core_register_section): Add REGCACHE argument,
7589 use it instead of current_regcache, pass it to core_read_registers
7591 (get_core_registers): Add current_regcache as parameter to
7592 get_core_register_section calls.
7594 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7595 use it instead of current_regcache.
7596 * armnbsd-nat.c (fetch_core_registers): Likewise.
7597 (fetch_elfcore_registers): Likewise.
7598 * core-regset.c (fetch_core_registers): Likewise.
7599 * cris-tdep.c (fetch_core_registers): Likewise.
7600 * irix5-nat.c (fetch_core_registers): Likewise.
7601 * m68klinux-nat.c (fetch_core_registers): Likewise.
7602 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7603 * win32-nat.c (fetch_elf_core_registers): Likewise.
7607 * gregset.h (struct regcache): Add forward declaration.
7608 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7609 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7610 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7611 (fill_gregset): Add REGCACHE parameter.
7612 (fill_fpregset): Likewise.
7613 (fill_fpxregset): Likewise.
7615 Update all definitions accordingly:
7616 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7617 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7618 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7619 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7620 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7621 (supply_gregset): Add REGCACHE parameter, use it instead of
7622 current_regcache. Make GREGSETP parameter const, adapt casts.
7623 (supply_fpregset): Add REGCACHE parameter, use it instead of
7624 current_regcache. Make FPREGSETP parameter const, adapt casts.
7625 (fill_gregset): Add REGCACHE parameter, use it instead of
7627 (fill_fpregset): Likewise.
7629 Update all callers to pass in current_regcache as the new argument:
7630 * core-regset.c: Include "regcache.h".
7631 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7632 * procfs.c: Include "regcache.h".
7633 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7634 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7635 (procfs_do_thread_registers): Likewise.
7636 (procfs_make_note_section): Likewise.
7637 * proc-service.c: Include "regcache.h".
7638 (ps_lgetregs): Update fill_gregset call.
7639 (ps_lsetregs): Update supply_gregset call.
7640 (ps_lgetfpregs): Update fill_fpregset call.
7641 (ps_lsetfpregs): Update supply_fpregset call.
7642 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7643 supply_fpregset calls.
7644 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7645 (ps_lgetregs): Update fill_gregset call.
7646 (ps_lsetregs): Update supply_gregset call.
7647 (ps_lgetfpregs): Update fill_fpregset call.
7648 (ps_lsetfpregs): Update supply_fpregset call.
7650 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7651 fill_fpregset, and fill_fpxregset calls.
7652 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7653 (store_regs): Update fill_gregset call.
7654 (fetch_fpregs): Update supply_fpregset call.
7655 (store_fpregs): Update fill_fpregset call.
7656 (fetch_fpxregs): Update supply_fpxregset call.
7657 (store_fpxregs): Update fill_fpxregset call.
7658 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7659 (store_regs): Update fill_gregset call.
7660 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7661 (store_regs): Update fill_gregset call.
7662 (fetch_fpregs): Update supply_fpregset call.
7663 (store_fpregs): Update fill_fpregset call.
7664 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7665 * s390-nat.c (fetch_regs): Update supply_gregset call.
7666 (store_regs): Update fill_gregset call.
7667 (fetch_fpregs): Update supply_fpregset call.
7668 (store_fpregs): Update fill_fpregset call.
7670 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7675 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7676 it instead of current_regcache.
7677 (parse_register_dump): Add REGCACHE parameter, pass it to
7678 supply_register callback.
7679 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7680 parse_register_dump.
7681 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7682 parse_register_dump and dumpregs callback.
7683 (monitor_wait): Pass current_regcache to parse_register_dump and
7685 (monitor_fetch_register): Pass current_regcache to
7686 monitor_supply_register.
7687 (monitor_fetch_registers): Pass current_regcache to
7689 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7690 supply_register and dumpregs callbacks.
7691 (monitor_supply_register, monitor_dump_reg_block): Update
7693 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7694 it to monitor_supply_register.
7695 * dink32-rom.c (dink32_supply_register): Likewise.
7696 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7697 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7698 instead of current_regcache.
7702 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7703 Add REGCACHE parameter. Use it instead of current_regcache.
7704 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7705 i386nto_supply_gregset and i386nto_supply_fpregset.
7706 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7707 of current_regcache.
7709 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7710 nto_supply_ helper functions.
7711 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7713 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7715 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7716 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7717 and regset_fill member function pointers.
7718 (nto_dummy_supply_regset): Adapt prototype.
7722 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7723 instead of current_regcache. Make REGS const.
7724 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7725 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7727 * shnbsd-nat.c: Include "regcache.h".
7728 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7730 (shnbsd_store_inferior_registers): Pass current_regcache to
7732 * Makefile.in (shbsd-nat.o): Update dependencies.
7736 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7737 instead of current_regcache.
7738 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7739 Make GREGSETP const, remove superfluous casts.
7740 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7741 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7743 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7744 (supply_64bit_reg): Likewise
7745 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7746 Make GREGSETP const, adapt casts accordingly.
7747 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7748 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7750 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7751 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7753 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7754 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7755 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7757 * mips-linux-nat.c: Include "regcache.h".
7758 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7759 current_regcache to mips{64}_(supply|fill)_ helper routines.
7760 (mips64_linux_regsets_fetch_registers): Likewise.
7761 (mips64_linux_regsets_store_registers): Likewise.
7763 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7764 REGCACHE argument; replace current_regcache. Make REGS const.
7765 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7766 replace current_regcache.
7767 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7768 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7769 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7770 mipsnbsd_store_inferior_registers): Pass current_regcache to
7771 mipsnbsd_(supply|fill)_... helper routines.
7773 * Makefile.in (mips-linux-nat.o): Update dependencies.
7777 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7778 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7779 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7780 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7781 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7782 * i386gnu-nat.c (store_fpregs): Likewise.
7783 * i386v4-nat.c (fill_fpregset): Likewise.
7784 * go32-nat.c (store_register, go32_store_registers): Likewise.
7788 * cris-tdep.c (supply_gregset): Rename to ...
7789 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7790 instead of current_regcache.
7791 (fetch_core_registers): Update call. Pass current_regcache.
7795 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7796 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7797 Use it instead of current_regcache.
7798 (supply_fparegset): Rename to ...
7799 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7800 Use it instead of current_regcache.
7801 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7802 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7806 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7807 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7808 use it instead of current_regcache.
7809 * alpha-tdep.h (struct regcache): Add forward declaration.
7810 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7811 alpha_fill_fp_regs): Update prototypes.
7813 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7814 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7815 * alpha-linux-nat.c: Include "regcache.h".
7816 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7817 current_regcache to alpha_supply/fill_ routines.
7819 * alphabsd-tdep.c: Include "regcache.h".
7820 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7821 pass it to alpha_supply_ routines. Make REGS const.
7822 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7823 pass it to alpha_fill_ routines.
7824 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7825 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7826 alphabsd_fill_fpreg): Update prototypes.
7828 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7829 fill_fpregset, alphabsd_fetch_inferior_registers,
7830 alphabsd_store_inferior_registers): Pass current_regcache to
7831 alphabsd_supply/fill_ routines.
7833 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7838 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7839 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7840 instead of current_regcache.
7841 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7842 REGCACHE parameter, pass it to supply_ routines.
7843 (aix_thread_fetch_registers): Pass current_regcache to
7844 fetch_regs_user_thread and fetch_regs_kernel_thread.
7846 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7847 Add REGCACHE parameter, use it instead of current_regcache.
7848 Call regcache_valid_p instead of register_cached.
7849 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7850 Also, pass REGCACHE to fill_ routines.
7851 (aix_thread_store_registers): Pass current_regcache to
7852 store_regs_user_thread and store_regs_kernel_thread.
7856 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7857 pointed to by GREGSETP.
7861 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7862 of regcache_raw_read_signed.
7863 (fill_fpregset): Use regcache_raw_collect instead of
7868 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7869 point arguments, test explicitly for use of the EABI32 ABI
7870 instead of inferring this condition from tests on register
7875 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7876 prior to allocating its location.
7880 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7881 based on mips_abi_regsize() whose result is known in advance.
7882 (mips_o64_push_dummy_call): Likewise.
7886 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7887 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7889 * mips-linux-nat.c: Include "gregset.h".
7890 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7891 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7892 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7893 fill_fpregset): Move to mips-linux-nat.c.
7895 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7899 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7900 (read_register): ... here.
7901 (deprecated_write_register_gen): Remove, inline ...
7902 (write_register): ... here.
7903 * regcache.h (deprecated_read_register_gen): Remove prototype.
7904 (deprecated_write_register_gen): Likewise.
7906 * remote-sim.c (gdbsim_store_register): Replace call to
7907 deprecated_read_register_gen with regcache_cooked_read.
7908 * target.c (debug_print_register): Replace calls to
7909 deprecated_read_register_gen and read_register with
7910 regcache_cooked_read.
7914 * hpux-thread.c (hpux_thread_store_registers): Use
7915 regcache_raw_collect, not regcache_raw_read.
7916 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7917 not regcache_raw_write.
7921 * gdbarch.sh: Remove deprecated_register_byte.
7922 * gdbarch.c, gdbarch.h: Regenerate.
7923 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7924 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7926 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7927 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7928 read-only register caches. Make REGCACHE parameter const.
7929 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7931 * mi/mi-main.c (old_regs): Remove.
7932 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7933 (register_changed_p): Reimplement to compare two register caches.
7934 (mi_cmd_data_list_changed_registers): Update caller.
7935 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7936 * mi/mi-interp.c (mi_interpreter_init): Do not call
7937 mi_setup_architecture_data.
7941 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7942 inline definition at the places the macros are used.
7943 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7947 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7949 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7950 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7951 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7952 (rs6000_aix_regset_from_core_section): New function.
7953 (rs6000_aix_init_osabi): Register it.
7954 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7955 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7956 * rs6000-nat.c (CoreRegs): Do not define type.
7957 (fetch_core_registers, rs6000_core_fns): Remove.
7958 (_initialize_core_rs6000): Do not register it. Rename to ...
7959 (_initialize_rs6000_nat): ... this.
7960 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7964 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7965 (dwarf2_read_address): Sign extend return address as required by
7966 target architecture.
7970 * solib-frv.c (lm_base): Bail out if the main executable has
7975 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7976 of FPCR register in fpregset.
7980 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7981 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7985 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7986 * rs6000-nat.c (rs6000_wait): New function.
7987 (_initialize_core_rs6000): Install it as to_wait target method.
7988 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7992 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7993 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7994 * rs6000-nat.c (super_create_inferior): New variable.
7995 (rs6000_create_inferior): Make static. Adapt argument list. Call
7996 original version of create_inferior via super_create_inferior.
7997 (_initialize_core_rs6000): Install to_create_inferior target method.
8001 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
8002 (aix_thread_xfer_partial): ... this.
8003 (init_aix_thread_ops): Install to_xfer_partial instead
8004 of deprecated_xfer_memory target method.
8006 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
8007 and inftarg.o, add inf-ptrace.o.
8008 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
8009 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
8010 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
8011 (fetch_inferior_registers): Rename to ...
8012 (rs6000_fetch_inferior_registers): ... this. Make static.
8013 (store_inferior_registers): Rename to ...
8014 (rs6000_store_inferior_registers): ... this. Make static.
8015 (read_word, child_xfer_memory): Remove.
8016 (rs6000_xfer_partial): New function.
8017 (kernel_u_size): Remove.
8018 (_initialize_core_rs6000): Add inf_ptrace-based target.
8019 * Makefile.in (rs6000-nat.o): Update dependencies.
8023 * inf-ptrace.c: Include "gdb_stdint.h".
8024 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8025 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8026 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8027 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8028 (inf_ptrace_store_register): Likewise.
8029 * Makefile.in (inf-ptrace.o): Update dependencies.
8033 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8034 * configure.tgt (rs6000-*-*): Likewise.
8035 * config/rs6000/aix4.mh: Delete file.
8036 * config/rs6000/aix4.mt: Delete file.
8037 * config/rs6000/rs6000.mh: Delete file.
8038 * config/rs6000/rs6000.mt: Delete file.
8040 * config/powerpc/nm-aix.h: Delete file.
8041 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8045 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8046 Remove obsolete part of comment.
8047 (store_regs_user_thread): Use uint32_t temporaries when calling
8049 (store_regs_kernel_thread): Likewise. Add assertion to verify
8050 correct size of struct ptsprs members.
8051 (aix_thread_xfer_memory): Fix type of myaddr.
8052 (aix_thread_extra_thread_info): Fix compiler warning.
8053 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8054 (fetch_register, store_register): Adapt callers.
8058 * vec.h (vec_free): Rename to vec_free_. Adapt users.
8062 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8064 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8065 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8066 (alpha_linux_regset_from_core_section): New function.
8067 (alpha_linux_init_abi): Install it.
8068 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
8069 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
8070 <sys/procfs.h>, and "gregset.h".
8071 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8072 Move from config/alpha/nm-linux.h.
8073 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8075 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8076 * alpha-nat.c: Remove #ifdef __linux__ section.
8077 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8078 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8079 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8080 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8081 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8082 (NATDEPFILES): Remove alpha-nat.o.
8083 * config/alpha/nm-linux.h: Delete file.
8084 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8085 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8086 (alpha-linux-tdep.o): Likewise.
8090 * mips-linux-nat.c: No longer include "gdbcore.h".
8091 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8092 (mips64_linux_register_addr): Likewise.
8093 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8094 mips64_linux_register_addr instead of register_addr.
8095 * mips-linux-tdep.c (mips_linux_register_addr,
8096 mips64_linux_register_addr): Move to mips-linux-nat.c.
8097 (register_addr): Remove.
8098 (register_addr_data, init_register_addr_data): Remove.
8099 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8100 (set_mips_linux_register_addr): Remove.
8101 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8102 * Makefile.in (mips-linux-nat.o): Update dependencies.
8106 * linux-nat.c (linux_register_u_offset): Remove.
8107 (linux_target_install_ops): New function.
8108 (linux_target): Use it.
8109 (linux_trad_target): New function.
8110 * linux-nat.h (linux_trad_target): Declare.
8112 * alpha-linux-nat.c: Include "gdbcore.h".
8113 (alpha_linux_register_u_offset): New function.
8114 (_initialize_alpha_linux_nat): Use linux_trad_target.
8116 * mips-linux-nat.c: Include "gdbcore.h".
8117 (mips_linux_register_u_offset): New function.
8118 (_initialize_mips_linux_nat): Use linux_trad_target.
8120 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8121 * config/arm/nm-linux.h: Delete file.
8123 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8124 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8126 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8127 * config/ia64/nm-linux.h: Delete file.
8129 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8130 * config/m32r/nm-linux.h: Delete file.
8132 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8133 * config/m68k/nm-linux.h: Delete file.
8135 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8136 * config/pa/nm-linux.h: Delete file.
8138 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8139 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8140 * config/powerpc/nm-linux.h: Delete file.
8142 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8143 * config/s390/nm-linux.h: Delete file.
8145 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8146 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8147 * config/sparc/nm-linux.h: Delete file.
8149 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8150 (mips-linux-nat.o): Likewise.
8154 * core-aout.c: Delete file.
8155 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8156 (core-aout.o): Delete rule.
8157 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8159 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8161 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8162 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8163 KERNEL_U_ADDR): Remove.
8165 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8166 (cannot_fetch_register, cannot_store_register): Remove.
8167 (fetch_register): Inline cannot_fetch_register and register_addr.
8168 (store_register): Inline cannot_store_register and register_addr.
8169 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8170 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8171 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8174 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8175 (fetch_register): Inline register_addr.
8176 (store_register): Inline register_addr.
8177 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8178 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8179 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8181 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8182 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8183 REGISTER_U_ADDR): Remove.
8185 * hppa-linux-nat.c (register_addr): Rename to ...
8186 (hppa_linux_register_addr): ... this. Make static.
8187 (fetch_register, store_register): Adapt callers.
8188 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8190 * ppc-linux-nat.c (kernel_u_size): Remove.
8191 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8193 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8194 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8196 * config/vax/nm-vax.h: Delete file.
8200 * MAINTAINERS (Write After Approval): Add myself.
8204 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8205 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8206 (m68k_linux_sigcontext_reg_offset): Fix typo.
8207 (target_is_uclinux): New.
8208 (m68k_linux_inferior_created): New.
8209 (m68k_linux_get_sigtramp_info): Check for uClinux or
8210 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8212 (_initialize_m68k_linux_tdep): Register
8213 m68k_linux_inferior_created.
8217 * win32-nat.c (win32_detach): Remove delete_command call.
8218 Resume inferior with win32_resume instead of win32_continue.
8222 * ser-mingw.c (fd_is_file): New function.
8223 (file_select_thread): New function.
8224 (ser_console_wait_handle): Add special handling for files.
8228 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8229 when missing from DW_TAG_subrange_type. Remove the handling of null
8230 return from die_type.
8234 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8235 change to rearrange some brackets.
8236 (mips_n32n64_push_dummy_call): Likewise.
8237 (mips_o32_push_dummy_call): Likewise.
8238 (mips_o64_push_dummy_call): Likewise.
8242 * infcmd.c (post_create_inferior): Start with a call to
8243 target_terminal_ours.
8247 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8249 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8251 (mips_o32_push_dummy_call): Likewise.
8252 (mips_o64_push_dummy_call): Likewise.
8256 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8261 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8263 (mips_o32_push_dummy_call): Likewise.
8267 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8268 sal to be bigger than the end of the function.
8273 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8274 argument alignment requirements when calculating stack space
8275 required. When aligning an arg register to eight bytes
8276 boundary, align stack_offset too. Write floating-point
8277 arguments to the appropriate integer register if need go there.
8278 (mips_o64_push_dummy_call): Likewise.
8282 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8283 "sig" arguments, add "regcache" argument.
8284 * gdbarch.c, gdbarch.h: Regenerate.
8286 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8287 (handle_inferior_event): Call remove_single_step_breakpoints directly
8288 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8290 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8291 Remove handling of !insert_breakpoints_p case.
8292 * arm-tdep.c (arm_software_single_step): Likewise.
8293 * cris-tdep.c (cris_software_single_step): Likewise.
8294 * mips-tdep.c (mips_software_single_step): Likewise.
8295 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8296 * sparc-tdep.c (sparc_software_single_step): Likewise.
8297 * spu-tdep.c (spu_software_single_step): Likewise.
8299 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8300 * mips-tdep.h (mips_software_single_step): Likewise.
8301 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8302 * sparc-tdep.h (sparc_software_single_step): Likewise.
8306 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8307 when removing single-step breakpoints.
8311 * varobj.h (varobj_set_frozen): New
8312 (varobj_get_frozen): New.
8313 (varobj_update): New parameter explicit.
8314 * varobj.c (struct varobj): New fields frozen
8316 (varobj_set_frozen, varobj_get_frozen): New.
8317 (install_new_value): Don't fetch values for
8318 frozen variable object, or children thereof. Allow
8319 a frozen variable object to have non-fetched value.
8320 (varobj_update): Allow updating child variables.
8321 Don't traverse frozen children.
8322 (new_variable): Initialize the frozen field.
8323 (c_value_of_variable): Return NULL for frozen
8324 variable without any value yet.
8325 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8327 (mi_cmd_var_create): Output the 'frozen' field,
8328 as soon as testsuite is adjusted to expect that field.
8329 (mi_cmd_var_set_frozen): New.
8330 (mi_cmd_var_update): Pass the 'explicit' parameter to
8332 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8333 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8337 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8339 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8343 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8344 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8345 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8346 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8347 * Makefile.in: Remove references to deleted files.
8348 * README: Do not mention deleted ROM monitor interfaces.
8349 * defs.h (enum language): Delete language_scm.
8350 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8351 (dump_subexp_body_standard): Likewise.
8352 * parse.c (operator_length_standard): Likewise.
8353 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8354 * remote-mips.c: Do not include remote-utils.h.
8355 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8357 * value.c: Do not include scm-lang.h.
8358 (unpack_long): Delete scm_unpack call.
8359 * config/h8300/h8300.mt, config/mips/embed.mt,
8360 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8361 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8363 * NEWS: Mention removed files.
8367 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8368 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8372 * NEWS: Mention removal of HP aCC support.
8376 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8377 first entry for static executables.
8378 (breakpoint_addr): Delete unused variable.
8379 (elf_locate_base): Search for _r_debug in static executables.
8380 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8385 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8386 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8387 (mention): Remove bp_through_sigtramp support.
8388 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8392 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8397 * infrun.c: Doc fixes.
8398 (handle_inferior_event): Clarify debug message.
8399 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8403 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8407 * config/m68k/tm-monitor.h: Delete file.
8408 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8409 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8411 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8412 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8416 * gdbarch.sh (software_single_step): Change the return type
8417 from void to int and reformatted some comments to <= 80
8419 * gdbarch.c, gdbarch.h: Regenerated.
8420 * alpha-tdep.c (alpha_software_single_step): Likewise.
8421 * alpha-tdep.h (alpha_software_single_step): Likewise.
8422 * arm-tdep.c (arm_software_single_step): Likewise.
8423 * cris-tdep.c (cris_software_single_step): Likewise.
8424 * mips-tdep.c (mips_software_single_step): Likewise.
8425 * mips-tdep.h (mips_software_single_step): Likewise.
8426 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8427 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8428 * sparc-tdep.c (sparc_software_single_step): Likewise.
8429 * sparc-tdep.h (sparc_software_single_step): Likewise.
8430 * spu-tdep.c (spu_software_single_step): Likewise.
8431 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8432 and act accordingly.
8436 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8437 * configure: Regenerate.
8438 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8442 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8446 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8448 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8449 distinct on the TYPE_STUB_SUPPORTED debug targets.
8450 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8454 * sparc-tdep.c (X_RS2): New macro.
8455 (sparc_skip_stack_check): New function.
8456 (sparc_analyze_prologue): Adjust PC past stack probing
8457 sequence if necessary.
8461 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8466 * breakpoint.c (gdb_breakpoint_query): Really return an
8468 (gdb_breakpoint): Likewise.
8469 * thread.c (gdb_list_thread_ids): Likewise.
8470 (gdb_thread_select): Likewise.
8471 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8472 (mi_cmd_thread_list_ids): Remove bogus initialization.
8476 * Makefile.in (SFILES): Remove hpacc-abi.c.
8477 (COMMON_OBS): Remove hpacc-abi.o.
8478 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8479 (hpacc-abi.o, hpread.o): Delete rules.
8480 * somread.c: Delete extern declarations from hpread.c.
8481 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8482 (som_symfile_finish): Do not call hpread_symfile_finish.
8483 (som_symfile_init): Do not call hpread_symfile_init.
8484 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8485 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8486 * hpacc-abi.c, hpread.c: Deleted.
8490 * solib-svr4.c (enable_break): Simplify return value.
8491 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8495 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8496 l_ld_size, l_next_size, l_prev_size, l_name_size.
8498 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8499 to extract addresses from link map.
8500 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8501 (LM_NEXT): Likewise.
8502 (LM_NAME): Likewise.
8503 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8504 (elf_locate_base): Likewise.
8505 (open_symbol_file_object): Likewise.
8506 (svr4_fetch_objfile_link_map): Likewise.
8507 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8508 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8510 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8511 (svr4_lp64_fetch_link_map_offsets): Likewise.
8513 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8514 removed members. Set l_ld_offset to -1 if not present.
8518 Pass stderr of program run with "target remote |"
8520 * serial.c (serial_open): Set error_fd to -1.
8521 * serial.h (struct serial): New field error_fd.
8522 (struct serial_opts): New field avail.
8523 * ser-pipe.c (pipe_open): Create another pair
8524 of sockets. Pass stderr to gdb.
8525 * ser-mingw.c (pipe_windows_open): Pass
8526 PEX_STDERR_TO_PIPE to pex_run. Initialize
8529 (_initialize_ser_windows): Hook pipe_avail.
8530 * ser-base.c (generic_readchar): Check if there's
8531 anything in stderr channel and route that to gdb_stderr.
8535 * dbxread.c (read_ofile_symtab): Move current_objfile
8536 clearing to after end_stabs.
8540 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8541 gdbarch instead of current_gdbarch.
8545 * varobj.c (varobj_create): Keep varobj value
8546 NULL when evaluating the type.
8550 * NEWS: Mention new Windows CE support.
8554 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8555 the obsoletion stanza.
8556 * NEWS: Mention deleted targets.
8558 * config/sh/tm-wince.h: Remove.
8559 * config/sh/wince.mt: Remove.
8560 * config/mips/tm-wince.h: Remove.
8561 * config/mips/wince.mt: Remove.
8564 * wince-stub.c: Remove.
8565 * wince-stub.h: Remove.
8566 * Makefile.in (wince.o): Remove rule.
8567 (wince-stub.o): Likewise.
8569 * mips-tdep.c (mips_next_pc): Make static.
8570 * mips-tdep.h (mips_next_pc): Remove declaration.
8571 * arm-tdep.c (arm_pc_is_thumb): Make static.
8572 (thumb_get_next_pc): Likewise.
8573 (arm_get_next_pc): Likewise.
8574 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8575 (arm_pc_is_thumb): Likewise.
8576 (thumb_get_next_pc): Likewise.
8577 (arm_get_next_pc): Likewise.
8581 * MAINTAINERS: Remove d10v entry.
8582 * Makefile.in (SFILES): Remove dwarfread.c.
8583 (COMMON_OBS): Remove dwarfread.o.
8584 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8585 (remote-est.o, rom68k-rom.o): Delete.
8586 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8587 target est, target rom68k, and DWARF 1.
8588 * configure.tgt: Mark d10v as removed.
8589 * dwarf2read.c: Doc update.
8590 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8592 (elf_locate_sections): Do not set them.
8593 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8594 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8595 * config/m68k/monitor.mt (TDEPFILES): Prune.
8596 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8597 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8601 * doublest.c (convert_floatformat_to_doublest): Use
8602 floatformat_classify.
8603 (floatformat_is_nan): Rename to...
8604 (floatformat_classify): ...this. Return more information.
8605 * doublest.h (enum float_kind): New.
8606 (floatformat_is_nan): Replace prototype...
8607 (floatformat_classify): ...with this one.
8608 * valprint.c (print_floating): Use floatformat_classify. Handle
8613 * README: Mention ISO C library requirement.
8617 * Makefile.in (SFILES): Remove nlmread.c.
8618 (COMMON_OBS): Remove nlmread.o.
8619 (nlmread.o): Delete rule.
8620 * README: Delete reference to remote-st.c.
8621 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8622 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8624 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8625 (_initialize_i386_tdep): Do not reference them.
8626 * nlmread.c: Delete file.
8627 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8628 * target.c: Doc update.
8629 * thread.c: Delete commented include.
8630 * config/alpha/tm-alpha.h: Doc update.
8634 * utils.c (string_to_core_addr): Comment typo.
8638 * mips-tdep.c: Comment typo.
8642 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8643 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8644 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8645 * config/powerpc/nm-ppc64-linux.h: Remove file.
8646 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8647 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8648 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8649 * infptrace.c (call_ptrace): Likewise.
8650 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8651 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8652 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8653 (store_register): Likewise.
8657 * Makefile.in (varobj.o): Add missing dependency.
8661 * MAINTAINERS: Update my email address.
8665 Add support for exception handling with multiple versions of
8667 * ada-lang.c: Update general comments on how Ada exception catchpoints
8669 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8670 (__gnat_raise_nodefer_with_msg): Delete.
8671 (ada_unhandled_exception_name_addr_ftype): New type.
8672 (exception_support_info): New type.
8673 (ada_unhandled_exception_name_addr): Add forward declaration.
8674 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8675 (default_exception_support_info): New constant.
8676 (exception_support_info_fallback): Likewise.
8677 (exception_info): New global variable.
8678 (ada_exception_support_info_sniffer): New function.
8679 (ada_executable_changed_observer): Likewise.
8680 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8681 ada_unhandled_exception_name_addr.
8682 (ada_unhandled_exception_name_addr): Reimplement to match the
8683 latest Ada runtime implementation.
8684 (error_breakpoint_runtime_sym_not_found): Delete.
8685 (ada_exception_sym_name): Get the exception sym name from
8686 exception_info rather than hardcoding it.
8687 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8688 Update error handling.
8689 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8693 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8694 (remote-st.o, uw-thread.o): Delete.
8695 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8696 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8697 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8698 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8699 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8700 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8701 rs6000-*-lynxos* to an obsoletion stanza.
8702 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8703 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8704 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8705 i[34567]86-*-netware*.
8706 * NEWS: Mention deleted targets.
8708 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8709 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8710 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8711 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8712 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8713 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8714 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8715 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8716 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8717 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8718 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8719 config/rs6000/tm-rs6000ly.h: Delete files.
8723 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8724 * interps.c (clear_interpreter_hooks): Do not clear
8725 deprecated_registers_changed_hook.
8726 * regcache.c (registers_changed): Do not call it.
8727 * top.c (deprecated_registers_changed_hook): Do not define it.
8728 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8729 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8730 (tui_remove_hooks): Do not remove it.
8731 (tui_selected_frame_level_changed_hook): Check for negative level.
8732 Use get_selected_frame.
8733 (tui_registers_changed_hook): Deleted.
8737 * stabsread.c (add_undefined_type): Add extra parameter.
8738 Now handles nameless types separately.
8739 (struct nat): New type.
8740 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8741 New static variables.
8742 (read_type): Update calls to add_undefined_type.
8743 (add_undefined_type_noname): New function.
8744 (add_undefined_type_1): Renames from add_undefined_type.
8745 (cleanup_undefined_types_noname): New function.
8746 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8747 (cleanup_undefined_types): New handles nameless types separately.
8748 (_initialize_stabsread): Initialize our new static constants.
8752 * configure.ac: Test for signal.h.
8753 * configure, config.in: Regenerate.
8757 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8758 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8762 * arm-wince-tdep.c: New.
8763 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8764 (MT_CFLAGS): Delete.
8766 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8767 solib-legacy.o, solib-svr4.o, and remove wince.o.
8768 * configure.tgt (arm*-*-mingw32ce*): Add.
8769 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8770 (do_target_signal_to_host): Silence 'not used' warning.
8771 * config/arm/tm-wince.h: Remove.
8775 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8776 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8778 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8779 * config/ia64/tm-linux.h: Remove file.
8780 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8781 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8782 legacy_pc_in_sigtramp.
8783 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8784 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8785 Remove func_name argument.
8786 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8788 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8789 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8790 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8791 (HAVE_STEPPABLE_WATCHPOINT): Define.
8793 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8794 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8795 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8796 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8797 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8798 target_insert_watchpoint, target_remove_watchpoint): Remove.
8799 (FETCH_INFERIOR_REGISTERS): Define.
8800 * ia64-linux-nat.c (ia64_register_addr): Make static.
8801 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8802 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8803 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8804 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8805 (ia64_linux_stopped_by_watchpoint): Make static.
8806 (ia64_linux_can_use_hw_breakpoint): New function.
8807 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8808 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8809 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8813 * linespec.c: Include language.h.
8814 (find_methods): Add language parameter. Call
8815 lookup_symbol_in_language. Pass language down.
8816 (add_matching_methods): Likewise. Call
8817 lookup_symbol_in_language.
8818 (add_constructors): Likewise.
8819 (find_method): Pass sym_class to collect_methods.
8820 (collect_methods): Add sym_class parameter. Pass language
8822 * symtab.c (lookup_symbol): Rename to ...
8823 (lookup_symbol_in_language): ... this. Add language
8824 parameter. Use passed language instead of current_language.
8825 (lookup_symbol): New as wrapper around
8826 lookup_symbol_in_language.
8827 (lookup_symbol_aux): Add language parameter. Use passed
8828 language instead of current_language.
8829 (search_symbols): Indent.
8830 * symtab.h (enum language): Forward declare.
8831 (lookup_symbol_in_language): Declare.
8832 (lookup_symbol): Update description.
8833 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8834 * ada-lang.c (restore_language): Remove.
8835 (lookup_symbol_in_language): Remove.
8839 * breakpoint.c (bpstat_num): Add int *num parameter.
8840 * breakpoint.h (bpstat_num): Likewise.
8841 * infcmd.c (continue_command): Adjust to new bpstat_num
8843 (program_info): Likewise.
8847 * config/sh/tm-sh.h: Remove file.
8848 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8849 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8850 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8851 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8855 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8856 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8857 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8858 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8859 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8860 sequence if target_shortname is "remote".
8864 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8865 instead of wordsize when looking for the LR in a stack frame.
8870 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8871 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8872 argument. Update all callers.
8873 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8874 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8875 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8876 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8877 (dwarf2_frame_set_adjust_regnum): ...this.
8878 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8879 * rs6000-tdep.c: Include "dwarf2-frame.h".
8880 (rs6000_adjust_frame_regnum): Define.
8881 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8882 Register rs6000_adjust_frame_regnum.
8884 * Makefile.in (rs6000-tdep.o): Update dependencies.
8888 * Makefile.in: Add support for a "pdf" target.
8892 * amd64-tdep.c (amd64_init_frame_cache): New function.
8893 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8898 * ui-out.c (ui_out_field_core_addr): Truncate address to
8899 TARGET_ADDR_BIT size before printing.
8904 * remote-mips.c (mips_xfer_memory): Update prototype.
8908 * symfile.h: #include "symtab.h"
8912 * utils.c (pagination_on_command, pagination_off_command):
8913 Remove useless prototypes.
8918 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8919 instead of TYPE_NAME for object base class name.
8924 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8925 Specify frame type in calls to frame_func_unwind().
8929 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8930 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8931 (refine_prologue_limit): Delete.
8932 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8933 Assume lim_pc is set. Correct check for incomplete prologues.
8934 Do not skip clobbers of the frame pointer.
8935 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8940 * frame.c (frame_pop): Check to see whether there's a frame to
8941 which we can pop first.
8945 * MAINTAINERS (Write After Approval): Add myself.
8949 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8950 (handle_inferior_event): Remove unnecessary braces.
8951 * breakpoint.c (bpstat_what): Remove wrong comment.
8955 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8956 (spu_gdbarch_init): Install it.
8960 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8961 object types, not 0.
8965 * spu-tdep.c (spu_frame_align): New function.
8966 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8970 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8971 (spu_software_single_step): Likewise.
8972 (spu_read_pc, spu_write_pc): New functions.
8973 (spu_gdbarch_init): Install them.
8977 * cli/cli-dump.c (struct callback_data): load_offset needs to
8978 have signed long type.
8982 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8983 Revert the previous change that had some unexpected side-effects
8985 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8986 function to get the address of the calling instruction.
8990 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8991 get_selected_frame by deprecated_safe_get_selected_frame.
8995 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8996 "gdb_string.h". Don't include "nbsd-tdep.h".
8997 (SIZEOF_STRUCT_REG): Remove.
8998 (SHNBSD_SIZEOF_GREGS): New.
8999 (shnbsd_supply_gregset, shnbsd_collect_gregset)
9000 (shnbsd_regset_from_core_section): New functions.
9001 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
9002 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
9003 shnbsd_supply_gregset, shnbsd_collect_gregset.
9004 (shnbsd_gregset): New variable.
9005 (shnbsd_init_abi): Set regset_from_core_section.
9006 (GDB_OSABI_NETBSD_CORE): New define.
9007 (shnbsd_core_osabi_sniffer): New function.
9008 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
9009 * Makefile.in (shnbsd-tdep.o): Update dependencies.
9010 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
9012 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
9016 * gdbtypes.c (replace_type): Fix typo that caused us to not update
9017 length of the types referenced by the new type CV ring.
9021 * frame.c (frame_pop, frame_observer_target_changed): Call
9023 (flush_cached_frames): Rename to reinit_frame_cache and delete
9025 * frame.h (flush_cached_frames): Delete prototype and update comment.
9027 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9028 reinit_frame_cache instead of flush_cached_frames. Do not call
9029 select_frame after reinit_frame_cache.
9030 * corelow.c (core_open): Likewise.
9031 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9032 * infrun.c (prepare_to_proceed, context_switch)
9033 (handle_inferior_event): Likewise.
9034 * linux-fork.c (fork_load_infrun_state): Likewise.
9035 * ocd.c (ocd_start_remote): Likewise.
9036 * remote-e7000.c (e7000_start_remote): Likewise.
9037 * remote-mips.c (device): Likewise.
9038 * thread.c (switch_to_thread): Likewise.
9039 * tracepoint.c (finish_tfind_command): Likewise.
9040 * gdbarch.c: Regenerated.
9045 * gdbtypes.c (check_typedef): Do not replace stub type if
9046 the resolved type is not defined in the same objfile.
9050 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9054 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9055 symbol for Ada units when the symbol is defined using 't' rather
9056 than 'Tt' as symbol descriptor.
9060 * config/mips/tm-nbsd.h: Delete file.
9061 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9062 * config/sh/tm-nbsd.h: Delete file.
9063 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9067 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9068 unused WRONG_PARAM value since it was recently deleted.
9072 * varobj.c (varobj_update): Free temporary vectors.
9076 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9077 * config/powerpc/tm-linux.h: Delete file.
9078 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9079 (PROCESS_LINENUMBER_HOOK): Do not undefine.
9080 (TEXT_SEGMENT_BASE): Do not redefine.
9081 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9082 from config/rs6000/tm-rs6000.h.
9083 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9084 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9085 (TEXT_SEGMENT_BASE): Remove.
9086 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9087 (rs6000_in_solib_return_trampoline): Remove.
9088 (SKIP_TRAMPOLINE_CODE): Remove.
9089 (rs6000_skip_trampoline_code): Remove.
9090 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9091 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9092 (FP0_REGNUM): Remove.
9093 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9094 (rs6000_set_host_arch_hook): Remove.
9095 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9096 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9097 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9098 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9099 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9100 * rs6000-nat.c: Include "rs6000-tdep.h".
9101 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9102 (set_host_arch): Rename to ...
9103 (rs6000_create_inferior): ... this. Make public.
9104 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9105 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9106 (rs6000_create_inferior): Remove.
9107 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9108 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9109 set_gdbarch_in_solib_return_trampoline, and
9110 set_gdbarch_skip_trampoline_code.
9111 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9112 from config/rs6000/tm-rs6000.h.
9116 * buildsym.c (record_producer): Do nothing if no producer is provided.
9120 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9121 to check changelist is non-NULL. Call error if the frontend tries
9122 to update a non-root variable.
9124 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9128 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9129 (dwarf2_frame_sniffer): Update.
9130 (dwarf2_signal_frame_this_id): New function.
9131 (dwarf2_signal_frame_unwind): Use it.
9132 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9133 * frame.c (frame_func_unwind): Add this_type argument.
9134 (get_frame_func): Update.
9135 (frame_unwind_address_in_block): Add this_type argument and check it.
9137 (get_frame_address_in_block): Update.
9138 * frame.h (enum frame_type): Move higher in the file.
9139 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9142 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9143 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9144 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9145 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9146 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9147 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9148 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9149 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9150 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9151 frame_func_unwind and frame_unwind_address_in_block to specify
9152 the frame type. Use frame_unwind_address_in_block instead of
9153 frame_pc_unwind in sniffers.
9157 * frame.c (deprecated_selected_frame): Rename to...
9158 (selected_frame): ...this. Make static.
9159 (get_selected_frame, select_frame): Update.
9160 * frame.h (deprected_select_frame): Delete.
9161 (deprecated_safe_get_selected_frame): Update comments.
9163 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9164 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9165 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9166 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9167 tui/tui.c: Replace references to deprecated_selected_frame.
9171 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9172 directly decrement the stack pointer, accumulate their operand into
9173 the stack offset, and mark the function as not being frameless.
9177 * arch-utils.c (selected_byte_order): New.
9178 * arch-utils.h (selected_byte_order): New prototype.
9179 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9183 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9184 (default_symfile_offsets): Check VMA here. Update section VMAs.
9188 * remote.c (init_remote_state): Add special handling for placeholder
9193 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9194 (filenames_h): New variable.
9195 (clean): Clean up xml-builtin.c and stamp-xml.
9196 (arm-linux-nat.o): Update.
9197 * config/arm/linux.mh (TDEP_XML): Define.
9198 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9199 (arm_linux_has_wmmx_registers): New.
9200 (GET_THREAD_ID): Fix typo.
9201 (IWMMXT_REGS_SIZE): Define.
9202 (fetch_wmmx_regs, store_wmmx_regs): New.
9203 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9204 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9205 (super_xfer_partial, arm_linux_xfer_partial): New.
9206 (_initialize_arm_linux_nat): Use them.
9207 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9208 (xml_builtin_xfer_partial): New function.
9209 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9210 * NEWS: Update mention of iWMMXt support.
9214 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9215 if there are no FPA registers.
9216 (arm_dwarf_reg_to_regnum): New function.
9217 (arm_register_type, arm_register_name): Return minimal values for
9218 unsupported registers.
9219 (arm_register_sim_regno): Handle iWMMXt registers.
9220 (arm_gdbarch_init): Record missing FPA registers if indicated by
9221 a target description. Recognize iWMMXt registers. Only register
9222 "info float" for FPA. Use ARM_NUM_REGS. Register
9223 arm_dwarf_reg_to_regnum.
9224 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9226 (struct gdbarch_tdep): Add have_fpa_registers.
9227 * features/xscale-iwmmxt.xml: Update capitalization.
9228 * regformats/arm-with-iwmmxt.dat: Regenerated.
9232 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9236 * MAINTAINERS (mep): New target.
9240 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9242 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9243 (mep-tdep.o): New rule.
9244 * configure.tgt (mep-*-*): New target.
9245 * mep-tdep.c: New file.
9246 * config/mep/mep.mt: New file.
9250 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9251 BREAKPOINT_HIT and STOP_UNKNOWN.
9255 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9259 * gdb_expat.h (XMLCALL): Define if not already defined.
9263 * Makefile.in (symfile.o): Update dependencies.
9267 * MAINTAINERS: Disable -Werror for cris simulator. Build
9268 sparc64-solaris2.10 instead of the broken sparc-elf.
9269 * solib-frv.c: Include "solib.h".
9270 * Makefile.in (solib-frv.o): Update.
9271 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9272 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9273 (xtensa_frame_this_id, xtensa_frame_prev_register)
9274 (xtensa_push_dummy_call): Use %p.
9278 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9279 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9280 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9281 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9282 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9283 (sparc-linux-tdep.o): Update.
9287 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9288 (xtensa_mask_t): Change mask field to be a separate array.
9289 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9290 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9291 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9292 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9293 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9294 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9295 (mask14, mask15): Rename to
9296 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9297 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9298 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9299 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9300 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9301 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9302 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9303 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9304 (xtensa_submask14, xtensa_submask15): New.
9305 (rmap): Follow strict aliasing rules doing static initialization.
9309 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9310 handling from here...
9311 (tdesc_register_type): ...to here.
9312 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9313 * features/arm-core.xml: Use code_ptr and data_ptr.
9317 * varobj.h (enum varobj_update_error): New enum.
9318 * varobj.c (struct varobj_root): Add is_valid member.
9319 (varobj_get_type): Check for invalid varobj.
9320 (varobj_get_attributes): Likewise.
9321 (variable_editable):Likewise.
9322 (varobj_update): Likewise. Use varobj_update_error.
9323 (new_root_variable): Set root varobj as valid by default.
9324 (varobj_invalidate): New function.
9325 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9326 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9327 Use varobj_update_error.
9332 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9333 Pascal language marker.
9334 * dwarf2read.c (set_cu_language): Likewise.
9338 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9339 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9340 instead of target_terminal_init since inferior_ptid isn't set yet.
9344 * MAINTAINERS (Write After Approval): Add myself.
9348 Based on work by Apple Computer, Inc.
9349 * event-top.c (async_request_quit): Call quit() whenever either
9350 quit_flag is set or immediate_quit is set.
9354 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9355 type to a pointer to const struct block.
9356 (ada_lookup_symbol_list): Don't cast away constness when calling
9357 remove_out_of_scope_renamings.
9361 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9362 address of 'filename'; it is always non null.
9366 * exec.c (add_to_section_table): Do not discard empty sections.
9370 * features/Makefile, features/arm-with-iwmmxt.xml,
9371 features/gdbserver-regs.xsl, features/number-regs.xsl,
9372 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9373 * regformats/arm-with-iwmmxt.dat: Generate.
9374 * NEWS: Mention iWMMXt.
9378 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9379 (xml-tdesc.o): Update.
9380 * xml-support.c: Add a comment.
9381 (gdb_xml_enums_boolean): New variable.
9382 (gdb_xml_parse_attr_enum): Use strcasecmp.
9383 * xml-support.h (gdb_xml_enums_boolean): Declare.
9384 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9385 next_regnum, and current_union.
9386 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9387 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9388 (field_attributes, union_children, reg_attributes, union_attributes)
9389 (vector_attributes, feature_attributes, feature_children): New.
9390 (target_children): Make static. Add <feature>.
9391 (tdesc_elements): Make static.
9392 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9393 (struct tdesc_feature, tdesc_feature_p): New types.
9394 (struct target_desc): Add features member.
9395 (struct tdesc_arch_data, tdesc_data): New.
9396 (target_find_description): Clarify error message. Warn about
9397 ignored register descriptions.
9398 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9399 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9400 (tdesc_data_cleanup, tdesc_numbered_register)
9401 (tdesc_numbered_register_choices, tdesc_find_register)
9402 (tdesc_register_name, tdesc_register_type)
9403 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9404 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9405 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9406 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9407 (tdesc_create_feature, tdesc_record_type): New.
9408 (free_target_description): Free features.
9409 (_initialize_target_descriptions): Initialize tdesc_data.
9410 * arch-utils.c (default_remote_register_number): New.
9411 * arch-utils.h (default_remote_register_number): New prototype.
9412 * target-descriptions.h (set_tdesc_pseudo_register_name)
9413 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9414 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9415 (tdesc_numbered_register, tdesc_numbered_register_choices)
9416 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9417 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9418 (tdesc_create_reg): Declare.
9419 * gdbarch.sh (remote_register_number): New entry.
9420 * gdbarch.c, gdbarch.h: Regenerate.
9421 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9422 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9424 * arm-tdep.c (arm_register_aliases): New.
9425 (arm_register_name_strings): Rename to...
9426 (arm_register_names): ...this. Make const. Delete the old version.
9427 (current_option, arm_register_byte): Delete.
9428 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9429 (value_of_arm_user_reg): New.
9430 (arm_gdbarch_init): Verify any described registers. Call
9431 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9432 for standard register names.
9433 (_initialize_arm_tdep): Do not adjust arm_register_names.
9434 * user-regs.c (struct user_reg): Add baton member.
9435 (append_user_reg, user_reg_add_builtin, user_regs_init)
9436 (user_reg_add, value_of_user_reg): Use a baton for user
9438 * std-regs.c: Update.
9439 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9440 (user_reg_add): Add baton argument.
9441 * NEWS: Mention target description register support.
9442 * features/arm-core.xml, features/arm-fpa.xml: New.
9443 * eval.c (evaluate_subexp_standard): Allow ptype $register
9444 when the program is not running.
9448 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9452 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9453 info->disassembler_options to "any".
9457 * varobj.c (install_new_value): Only call value_get_print_value
9463 * gdb/target.c (target_flash_erase): Do not return void value.
9464 (target_flash_done): Likewise.
9465 * gdb/cli/cli-cmds.c (source_command): Likewise.
9469 Based on work by Apple Computer, Inc.
9470 * event-top.c (handle_sigint): Set quit_flag.
9471 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9472 if quit_flag has already been reset.
9476 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9481 * defs.h (request_quit): Remove declaration.
9482 * utils.c (request_quit): Remove definition.
9488 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9489 (skip_prologue): Allow bl->blrl used by PIC code.
9494 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9495 initialize tmp_obstack.
9496 * p-valprint.c (pascal_object_print_value_fields)
9497 (pascal_object_print_value): Likewise.
9501 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9505 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9506 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9510 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9512 (tdesc_parse_xml): Cache expanded descriptions.
9516 * Makefile.in (XMLFILES): New.
9517 (COMMON_OBS): Add xml-builtin.o.
9518 (xml-builtin.c, stamp-xml): New rules.
9519 (xml-tdesc.o): Update.
9520 * features/feature_to_c.sh: New file.
9521 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9522 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9523 (gdb_xml_start_element): Initialize scope after possibly reallocating
9524 scopes. Move cleanup later. Handle the XInclude description
9526 (gdb_xml_end_element): Only parse the body if there is a current element.
9527 Call XML_DefaultCurrent if there is no element.
9528 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9529 (struct xinclude_parsing_data, xinclude_start_include)
9530 (xinclude_end_include, xml_xinclude_default)
9531 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9532 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9533 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9534 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9535 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9536 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9537 XInclude directives. Use the compiled in DTD.
9538 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9539 directory name. Do not warn here.
9540 (file_read_description_xml): Update call. Warn here instead. Pass
9542 (fetch_available_features_from_target): New.
9543 (target_read_description_xml): Use it.
9544 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9546 * features/xinclude.dtd: New file.
9550 * linux-thread-db.c (check_for_thread_db): Return early if we have
9551 no libthread_db support.
9555 * mi/mi-parse.h: Include <sys/time.h>.
9559 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9560 instead of print_variable_value to print values.
9564 * mi/mi-main.c: Numerous formatting changes.
9565 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9566 removed in my previous change.
9570 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9571 Use 1000000L instead of 1000000.
9575 Based on work by Apple Computer, Inc.
9577 * configure.ac: Test for sys/resource.h and getrusage.
9578 * configure, config.in: Regenerate.
9580 * mi/mi-main.c: Include <sys/resource.h> if present.
9581 (rusage): Declare if HAVE_GETRUSAGE.
9582 (current_command_ts, do_timings): New static variables.
9583 (timestamp, print_diff_now, print_diff, timeval_diff):
9584 New static timing functions.
9585 (mi_cmd_enable_timings): New function for new MI command.
9586 (captured_mi_execute_command, mi_execute_async_cli_command):
9587 Call timing functions.
9589 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9592 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9594 * mi/mi-parse.h: (mi_timestamp): New structure.
9595 (mi_parse): Add mi_timestamp* member.
9599 * thread.c (make_cleanup_restore_current_thread): New function.
9600 (info_threads_command): Use of make_cleanup_restore_current_thread
9601 to restore the current thread and the selected frame.
9602 (restore_selected_frame): New function.
9603 (struct current_thread_cleanup): Add frame_id field.
9604 (do_restore_current_thread_cleanup): Add restoring of the selected
9606 (make_cleanup_restore_current_thread): Likewise.
9607 (thread_apply_all_command): backup the selected frame while
9608 entering the function and restore it at exit.
9609 (thread_apply_command): Likewise.
9613 * MAINTAINERS (Write After Approval): Add myself to the list.
9617 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9618 (m32r_store_register): Ditto.
9622 * ser-mingw.c (pipe_windows_open)
9623 (pipe_windows_read, pipe_windows_write): Declare
9624 variables at the top of the function.
9628 * doublest.c (floatformat_from_length): Use the right element from
9629 gdbarch floatformats.
9630 (floatformat_from_type, extract_typed_floating)
9631 (store_typed_floating): Likewise.
9632 * doublest.h: Remove declarations for undefined floatformat arrays.
9633 * gdbarch.sh (float_format, double_format, long_double_format): Change
9635 (pformat): Update for pairs.
9636 * gdbarch.c, gdbarch.h: Regenerated.
9637 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9638 (floatformats_ieee_double_littlebyte_bigword)
9639 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9640 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9641 (floatformats_vax_d): New variables.
9642 (builtin_type_ieee_single, builtin_type_ieee_double)
9643 (builtin_type_arm_ext, builtin_type_ia64_spill)
9644 (builtin_type_ia64_quad): Replace arrays with individual types.
9645 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9646 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9647 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9648 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9649 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9650 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9651 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9652 unused and endian-specific types.
9653 (recursive_dump_type): Update for floatformat pairs.
9654 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9655 (build_gdbtypes): Use build_flt.
9656 (_initialize_gdbtypes): Update set of initialized types.
9657 * gdbtypes.h: Update declarations to match gdbtypes.c.
9658 (struct main_type): Store a pointer to two floatformats.
9659 * arch-utils.c (default_float_format, default_double_format): Delete.
9660 * arch-utils.h (default_float_format, default_double_format): Delete.
9662 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9663 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9664 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9665 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9666 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9670 * target.c (maintenance_print_target_stack): New function.
9671 (initialize_targets): Add new "maintenance print target-stack"
9676 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9680 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9681 (struct dwarf2_loclist_baton): Likewise.
9685 * cli/cli-script.c: Include breakpoint.h.
9686 (build_command_line): Require arguments only for if and while
9688 (get_command_line, execute_user_command, execute_control_command):
9689 Fix wording of warning messages.
9690 (print_command_lines): Print breakpoint commands.
9691 (execute_control_command): Call commands_from_control_command to
9692 handle the `commands' command inside a body of a flow-control
9694 (read_next_line): Recognize the `commands' command and build a
9695 command line structure for it.
9696 (recurse_read_control_structure, read_command_lines): Handle
9697 `commands' similarly to `if' and `while'.
9699 * breakpoint.c (get_number_trailer): Document the special meaning
9700 of NULL as the first argument PP.
9701 (commands_from_control_command): New function.
9703 * breakpoint.h (commands_from_control_command): Add prototype.
9705 * defs.h (commands_control): New enumerated value for enum
9706 command_control_type.
9710 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9711 (ada_exception_sal): Update accordingly.
9715 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9716 * NEWS: Describe CHAR array vs. string identifcation rules.
9720 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9724 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9725 expression is empty, bother to return the 'optimized out' value we
9726 construct. (Thanks to Carl Burch.)
9730 * varobj.c (c_value_of_root, c_value_of_child)
9731 (cplus_describe_child): Don't call release_value.
9735 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9740 Refactor getting children name, value and type access
9742 * varobj.c (get_type_deref): Remove.
9743 (adjust_value_for_child_access): New.
9744 (c_number_of_children): Use the above.
9745 (c_describe_child): Likewise.
9746 (enum accessibility): New.
9747 (match_accessibility): New function.
9748 (cplus_describe_child): New function.
9749 (cplus_name_of_child, cplus_value_of_child)
9750 (cplus_type_of_child): Reimplement in terms
9751 of cplus_describe_child.
9752 (cplus_number_of_children): Use
9753 adjust_value_for_child_access.
9757 Fix computation of the 'editable' attribute and
9758 value changeability for for references.
9759 * varobj.c (get_value_type): New function.
9760 (c_variable_editable): Use get_value_type.
9761 (varobj_value_is_changeable): Likewise.
9765 * source.c (find_and_open_source): Try rewriting the source
9766 path inside filename if dirname is NULL.
9770 * dwarf2read.c (add_partial_symbol): Create an extra partial
9771 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9772 (new_symbol): Likewise for symbols.
9776 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9780 * value.c (value_primitive_field): Copy the full 'location'
9781 contents, instead of assuming that copying ADDRESS will
9782 bring over everything in the union. Remove obsolete comment.
9786 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9787 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9788 (m32c_m16c_pointer_to_address): Separate code from declarations.
9792 * target.c (update_current_target): Correct typo.
9796 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9803 * dwarf2-frame.c (execute_cfa_program): New support of
9804 `DW_CFA_GNU_negative_offset_extended'.
9808 * NEWS: Mention flash support for "load" and new remote packets.
9812 * breakpoint.c (delete_command): Skip redundant loop iterations.
9816 * gdbarch.sh (register_type): Update comment.
9817 * gdbarch.h: Regenerated.
9818 * arch-utils.c (generic_register_size): Call register_type.
9819 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9820 * m32c-tdep.c (check_for_saved): Likewise.
9821 * mips-tdep.c (mips_print_register, print_gp_register_row)
9822 (mips_print_registers_info): Likewise.
9823 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9825 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9826 (sh64_do_register, sh64_print_register)
9827 (sh64_media_print_registers_info): Likewise.
9828 * tui/tui-regs.c (tui_register_format): Likewise.
9832 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9834 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9835 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9836 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9837 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9838 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9839 (make_symbol_completion_list): Likewise.
9844 * buildsym.c (end_symtab): Use preallocated symtab if available.
9845 Fill in SYMBOL_SYMTAB.
9846 * buildsym.h (struct subfile): Add symtab member.
9847 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9848 (struct file_entry): Add symtab.
9849 (free_cu_line_header): New function.
9850 (read_file_scope): Use it. Save line_header in the cu. Process
9852 (add_file_name): Initialize new symtab member.
9853 (dwarf_decode_lines): Create symtabs for included files.
9854 (new_symbol): Set SYMBOL_SYMTAB.
9855 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9856 (search_symbols): Likewise.
9857 * symtab.h (struct symbol): Add symtab member.
9858 (SYMBOL_SYMTAB): Define.
9862 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9866 * arch-utils.c (show_endian): Correct reversed condition.
9870 * MAINTAINERS (Write After Approval): Add myself.
9875 Fix 'selected frame' varobjs.
9876 * varobj.c (struct varobj): Remove the error field.
9877 (varobj_set_value): Don't check var->error.
9878 (install_new_value): Don't set var->error.
9879 (varobj_update): Always pass the new value
9880 of the root via install_new_value.
9881 (create_child): Don't set error field.
9882 (new_variable): Likewise.
9883 (c_value_of_root): Always reevaluate the value
9884 of selected frame varobjs in the selected frame.
9885 Don't call reinit_frame_cache.
9889 * source.c (_initialize_source): Improve the help text of
9890 the substitute-path commands.
9894 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9895 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9896 (frv_skip_prologue): Remove prototypes.
9897 (frv_adjust_breakpoint_address): Renamed from
9898 frv_gdbarch_adjust_breakpoint_address.
9899 (frv_gdbarch_init): Adjust.
9903 * gdbarch.sh (deprecated_extract_return_value)
9904 (deprecated_store_return_value): Remove.
9905 (extract_return_value, store_return_value): Remove default values.
9906 * gdbarch.c, gdbarch.h: Regenerate.
9907 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9908 (legacy_store_return_value): Remove.
9909 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9912 * mi/mi-main.c: Remove obsolete comment.
9914 * regcache.c, regcache.h (deprecated_register_bytes)
9915 (deprecated_read_register_bytes)
9916 (deprecated_write_register_bytes): Remove.
9918 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9919 Don't forget to move destination pointer.
9923 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9927 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9928 past entry function with recent newlib.
9932 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9933 introduction. Specify -var-update more exactly.
9937 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9941 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9942 the Global Maintainers' invitation to be a global maintainer.
9946 * infrun.c (singlestep_pc): New variable.
9947 (resume): Set singlestep_pc.
9948 (context_switch): Add a debugging message. Flush the frame cache.
9949 (handle_inferior_event): Add debugging messages. Handle thread
9950 hops when a software single step has completed. Let context_switch
9951 handle flushing the frame cache.
9955 * NEWS: Mention target descriptions, "set tdesc filename",
9956 "unset tdesc filename", "show tdesc filename", and
9957 qXfer:features:read.
9958 * arch-utils.c (choose_architecture_for_target): New function.
9959 (gdbarch_info_fill): Call it.
9960 * target-descriptions.c (struct property): Make members non-const.
9961 (struct target_desc): Add arch member.
9962 (target_description_filename): New variable.
9963 (target_find_description): Try via XML first.
9964 (tdesc_architecture): New.
9965 (free_target_description, make_cleanup_free_target_description): New.
9966 (set_tdesc_property): Call xstrdup.
9967 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9968 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9969 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9970 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9971 * target-descriptions.h (tdesc_architecture)
9972 (make_cleanup_free_target_description, set_tdesc_architecture): New
9974 * Makefile.in (SFILES): Add xml-tdesc.c.
9975 (COMMON_OBS): Add xml-tdesc.o.
9976 (target-descriptions.o): Update.
9977 (xml-tdesc.o): New rule.
9978 * xml-tdesc.c, xml-tdesc.h: New files.
9979 * remote.c (PACKET_qXfer_features): New enum.
9980 (remote_protocol_features): Add qXfer:features:read.
9981 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9982 (_initialize_remote): Register qXfer:features:read.
9983 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9984 * features/gdb-target.dtd: New file.
9988 * copyright.sh: Clarify error.
9992 * symtab.c (matching_bfd_sections): Fix VMA matching for
9997 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
10002 Updated copyright notices for most files.
10006 * copyright.sh (prunes): Add step-line.inp and step-line.c.
10010 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
10012 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
10014 * configure, config.in: Regenerate.
10015 * defs.h (debug_file_directory): Declare.
10016 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
10017 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
10018 relocate it if DEBUGDIR_RELOCATABLE.
10019 * symfile.c (debug_file_directory): Make non-static.
10020 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
10021 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
10022 (_initialize_symfile): Don't initialize debug_file_directory here.
10026 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10031 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10032 frame_unwind_register to recurse.
10033 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10034 (alpha_heuristic_frame_prev_register): Likewise.
10035 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10036 * m32c-tdep.c (m32c_prev_register): Likewise.
10037 * frame.c (frame_register_unwind_location): Remove FIXME.
10042 * copyright.sh: New file.
10046 * configure.ac: Check for XML_StopParser.
10047 * xml-support.c (gdb_xml_body_text): Check for an error.
10048 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10049 (gdb_xml_end_element_wrapper): Likewise.
10050 * config.in, configure: Regenerated.
10054 * varobj.c (install_new_value): Always update print_value.
10055 (value_get_print_value): Immediately return NULL for missing
10060 * configure.ac: Tighten pattern for extracting value of
10061 DEPRECATED_TM_FILE from the target makefile fragment.
10062 * configure: Regenerated.
10066 * linux-nat.c (struct simple_pid_list): Add status.
10067 (add_to_pid_list): Record the PID's status.
10068 (linux_record_stopped_pid): Likewise. Make static.
10069 (pull_pid_from_list): Return the saved status.
10070 (linux_nat_handle_extended): Deleted.
10071 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10072 Make static. Handle non-SIGSTOP for a new thread's first signal.
10073 (flush_callback): Handle unexpected pending signals.
10074 (linux_nat_wait): Update calls to changed functions.
10075 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10076 Remove prototypes for newly static functions.
10080 * gdbarch.sh (value_from_register): New gdbarch function.
10081 * gdbarch.c, gdbarch.h: Regenerate.
10082 * findvar.c (default_value_from_register): New function.
10083 (value_from_register): Use gdbarch_value_from_register.
10084 * value.h (default_value_from_register): Declare.
10085 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10086 spu_value_to_register): Remove.
10087 (spu_value_from_register): New function.
10088 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10089 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10090 Call set_gdbarch_value_from_register.
10091 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10092 s390_value_to_register): Remove.
10093 (s390_value_from_register): New function.
10094 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10095 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10096 Call set_gdbarch_value_from_register.
10100 * NEWS: Add "set sysroot" and "show sysroot".
10101 * solib.c (solib_absolute_prefix): Delete. Replace
10102 all uses with gdb_sysroot.
10103 (_initialize_solib): Add "set sysroot" and "show sysroot".
10104 Make "solib-absolute-prefix" an alias to it.
10108 * frame.c (get_frame_register_bytes): New function.
10109 (put_frame_register_bytes): Likewise.
10110 * frame.h (get_frame_register_bytes): Declare.
10111 (put_frame_register_bytes): Likewise.
10112 * findvar.c (value_from_register): Always construct lval_register
10113 values. Use get_frame_register_bytes.
10114 * valops.c (value_assign): Use get_frame_register_bytes and
10115 put_frame_register_bytes.
10119 * MAINTAINERS: Update Stan Shebs' email address.
10123 * ada-lang.c (is_known_support_routine): Improve the implementation.
10127 * ada-lang.c: Add include of source.h.
10128 (is_known_support_routine): Improve the check verifying that the file
10129 associated to this frame exists.
10130 * Makefile.in (ada-lang.o): Add dependency on source.h.
10134 * ax-general.c (ax_const_l): Select proper opcode for the given
10139 * varobj.c (c_value_of_root): Don't select frame if variable
10140 object is out of scope.
10144 * varobj.c (struct varobj): New member print_value.
10145 (install_new_value): Compare last printed value with current one
10146 instead of contents.
10147 (new_variable): Initialize var->print_value to NULL.
10148 (free_variable): Free var->print_value.
10149 (value_get_print_value): New function derived from
10150 c_value_of_variable.
10151 (c_value_of_variable): Use value_get_print_value.
10155 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10159 * NEWS: Add entries for new catch commands.
10163 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10164 (add_partial_symbol): Correct identification of external references.
10165 (process_structure_scope): Likewise.
10166 (read_partial_die): Handle DW_AT_byte_size attribute.
10170 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10174 * varobj.c (get_type_deref): Fix variable objects for references to
10179 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10184 * memory-map.c (struct_memory_map_parsing_data): Remove most
10185 members. Make property_name an array.
10186 (free_memory_map_parsing_data, memory_map_start_element)
10187 (memory_map_end_element, memory_map_character_data): Delete.
10188 (memory_map_start_memory, memory_map_end_memory)
10189 (memory_map_start_property, memory_map_end_property): New functions.
10190 (property_attributes, memory_children, memory_type_enum)
10191 (memory_attributes, memory_map_children, memory_map_elements): New.
10192 (parse_memory_map): Rewrite.
10193 * xml-support.c (debug_xml): New.
10194 (xml_get_required_attribute, xml_get_integer_attribute)
10195 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10197 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10198 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10199 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10200 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10201 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10202 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10203 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10205 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10206 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10207 (enum gdb_xml_element_flag, struct gdb_xml_element)
10208 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10209 (struct gdb_xml_enum): New.
10210 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10211 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10212 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10213 (xml_get_required_attribute, xml_get_integer_attribute)
10214 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10215 * Makefile.in (xml_support_h, xml-support.o): Update.
10219 * Makefile.in (eval.o): Update dependencies.
10220 * eval.c: Include "ui-out.h" and "exceptions.h".
10221 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10222 Use value_zero if an error occurs when avoiding side effects.
10223 * varobj.c (c_value_of_root): Initialize new_val.
10227 * varobj.c (varobj_list_children): Stop if the number of children is
10229 (c_number_of_children):
10233 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10234 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10235 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10236 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10237 sizeof, instead of hardcoded constants.
10241 * CONTRIBUTE: Use sourceware.org.
10245 * buildsym.c (start_subfile): Handle producer.
10246 (record_producer): New function.
10247 * buildsym.h (struct subfile): Include producer.
10248 (record_producer): New prototype.
10249 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10250 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10251 armcc_cfa_offsets_reversed.
10252 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10253 (dwarf2_frame_find_quirks): New function.
10254 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10255 (decode_frame_entry_1): Record the CIE version. Record the
10256 augmentation. Skip armcc augmentations.
10257 * dwarf2read.c (read_file_scope): Save the producer.
10258 * symtab.h (struct symtab): Rename unused version member to
10263 * configure.ac (build_warnings): Use -Wall and
10264 -Wdeclaration-after-statement.
10265 * configure: Regenerated.
10269 Simplify access to variours properties of child
10270 variable objects in C.
10271 * varobj.c (value_struct_element_index): New function.
10272 (c_describe_child): New function.
10273 (c_name_of_child, c_value_of_child)
10274 (c_type_of_child): Rewrite to use c_describe_child.
10279 * varobj.c: Include "vec.h".
10280 (varobj_p): New typedef, declare vector of those.
10281 (struct varobj): Use vector for the 'children' member.
10282 (child_exists): Remove.
10283 (save_child_in_parent): Remove.
10284 (remove_child_from_parent): Remove.
10285 (struct varobj_child): Remove.
10286 (struct vstack): Remove.
10287 (vpush, vpop): Remove.
10288 (varobj_list_children): Adjust to work work vector.
10289 (varobj_update): Likewise. Use vectors for
10290 working stack and result.
10291 (delete_variable_1): Likewise.
10292 * Makefile.in (varobj.o): Update dependencies.
10296 Port from Apple's version.
10298 * varobj.c (type_changeable): Rename to...
10299 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10300 (is_root_p): New function. Use it everywhere.
10304 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10305 then plain 'fixup'.
10309 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10313 * hpread.c (hpread_type_lookup): Fix compilation failure.
10317 * NEWS: New port to S+core.
10318 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10321 * Makefile.in: Add dependencies for S+core files.
10322 * configure.tgt (score*, score-*-*): Add S+core target.
10323 * config/score/embed.mt: New file.
10324 * score-tdep.c: New file.
10325 * score-tdep.h: New file.
10329 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10330 the appropriate type rather than a bogus void type.
10334 * ada-lang.h (ada_find_printable_frame): Remove.
10335 (ada_exception_catchpoint_p, ada_decode_exception_location)
10336 (ada_decode_assert_location): Add declaration.
10337 * ada-lang.c: Add include of annotate.h and valprint.h.
10338 (exception_catchpoint_kind): New enum.
10339 (function_name_from_pc, is_known_support_routine)
10340 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10341 (ada_exception_name_addr_1, ada_exception_name_addr)
10342 (print_it_exception, print_one_exception, print_mention_exception)
10343 (print_it_catch_exception, print_one_catch_exception)
10344 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10345 (print_it_catch_exception_unhandled)
10346 (print_one_catch_exception_unhandled)
10347 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10348 (print_one_catch_assert, print_mention_catch_assert)
10349 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10350 (ada_get_next_arg, catch_ada_exception_command_split)
10351 (ada_exception_sym_name, ada_exception_sym_name)
10352 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10353 (ada_parse_catchpoint_condition, ada_exception_sal)
10354 (ada_decode_exception_location)
10355 (ada_decode_assert_location): New function.
10356 (catch_exception_unhandled_breakpoint_ops): New global variable.
10357 (catch_assert_breakpoint_ops): New global variable.
10358 * breakpoint.c: Add include of ada-lang.h.
10359 (print_one_breakpoint): Do not print the condition for Ada
10360 exception catchpoints.
10361 (create_ada_exception_breakpoint): New function.
10362 (catch_ada_exception_command, catch_assert_command): New function.
10363 (catch_command_1): Add support for the new "catch exception" and
10364 "catch assert" commands.
10365 (_initialize_breakpoint): Add help description for the new catch
10367 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10369 (breakpoint.o): Add dependency on ada-lang.h.
10373 * coffread.c (cs_to_section): If bfd_section is found, always
10374 return its section index.
10375 (coff_symtab_read): Determine the minimal_symbol_type using the
10381 * Makefile.in (top.o): Update.
10382 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10383 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10384 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10386 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10390 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10391 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10395 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10396 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10397 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10398 greater than or equal to zero.
10399 * m2-typeprint.c (m2_array): Likewise.
10400 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10401 * gdbtypes.c (copy_type_recursive): Correct == typo.
10402 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10403 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10405 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10406 (default_macro_scope): Remove unused variable.
10407 * prologue-value.h (pv_area_find_reg): Don't name an argument
10409 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10410 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10412 (cleanup_sigint_signal_handler): Remove casts.
10413 * valprint.c (val_print): Use a volatile local for the modified
10415 * varobj.c (languages): Remove extra array dimension.
10416 (varobj_create): Correct access to languages array.
10417 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10419 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10420 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10421 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10422 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10423 (mi_cmd_data_write_memory): Likewise.
10424 * signals/signals.c (target_signal_to_string): Cast to int before
10426 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10427 Update all callers.
10431 * NEWS: Mention pointer to member improvements.
10432 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10433 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10434 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10435 * c-typeprint.c (c_print_type): Update for new type codes.
10436 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10437 (c_type_print_base): Likewise.
10438 (c_type_print_args): Rewrite.
10439 * c-valprint.c (c_val_print): Update for new type codes. Remove
10440 support for references to members. Treat methods like functions.
10441 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10442 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10443 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10444 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10445 (struct cp_abi_ops): Add corresponding members.
10446 * cp-valprint.c (cp_print_class_method): Delete.
10447 (cp_find_class_member): New function.
10448 (cp_print_class_member): Use it. Simplify support for bogus
10450 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10451 lookup_methodptr_type.
10452 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10453 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10454 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10456 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10457 references returned by user defined operators.
10458 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10459 (f_type_print_varspec_suffix): Remove support for member pointers.
10460 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10462 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10463 (lookup_methodptr_type): New.
10464 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10465 (recursive_dump_type): Update for new types.
10466 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10467 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10468 (lookup_memberptr_type, lookup_methodptr_type)
10469 (smash_to_memberptr_type): New prototypes.
10470 (smash_to_method_type): Formatting fix.
10471 (lookup_member_type, smash_to_member_type): Delete prototypes.
10472 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10473 Do not rely on debug information for the vptr or the method's
10474 enclosing type. Handle function descriptors for IA64.
10475 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10476 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10477 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10478 (gnuv3_method_ptr_to_value): New.
10479 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10480 * hpread.c (hpread_type_lookup): Update for new types.
10481 * infcall.c (value_arg_coerce): Likewise.
10482 * m2-typeprint.c (m2_print_type): Remove explicit support
10483 for member pointers.
10484 * m2-valprint.c (m2_val_print): Likewise.
10485 * p-typeprint.c (pascal_type_print_varspec_prefix)
10486 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10487 * p-valprint.c (pascal_val_print): Likewise.
10488 (pascal_object_print_class_method, pascal_object_print_class_member):
10490 * p-lang.h (pascal_object_print_class_method)
10491 (pascal_object_print_class_member): Delete prototypes.
10492 * stabsread.c (read_type): Update for new types.
10493 * typeprint.c (print_type_scalar): Likewise.
10494 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10495 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10496 argument. Construct a pointer to member if the address of a
10497 function or data member is requested.
10498 (value_cast_pointers): Don't modify the input value.
10499 (value_cast): Adjust pointer to member handling for new types.
10500 Allow null pointer to member constants. Don't modify the input
10502 (value_ind): Remove pointer to member check. Handle function
10503 descriptors for function pointers.
10504 (value_struct_elt, value_find_oload_method_list, check_field):
10505 Remove pointer to member checks.
10506 * value.c (unpack_long): Allow pointers to data members.
10507 (value_from_longest): Allow member pointers.
10508 * value.h (value_aggregate_elt): Add want_address.
10509 * varobj.c (c_variable_editable): Remove check for members.
10510 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10511 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10513 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10514 * c-lang.h (cp_print_class_method): Delete prototype.
10515 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10516 * mips-tdep.c (mips_gdbarch_init): Likewise.
10517 * gdbarch.c, gdbarch.h: Regenerated.
10521 * rs6000-tdep.c (rs6000_use_struct_convention)
10522 (rs6000_extract_return_value, rs6000_store_return_value)
10523 (rs6000_extract_struct_value_address): Remove.
10524 (rs6000_return_value): New function.
10525 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10526 store_return_value, deprecated_extract_struct_value_address and
10527 deprecated_use_struct_convention. Use rs6000_return_value
10532 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10533 -display-disable, -display-enable, -display-insert and
10538 * breakpoint.c (remove_breakpoint): Remove dead code.
10542 * varobj.c: Include block.h.
10543 (c_value_of_root): Check scope within nested statements.
10547 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10548 regcache_cooked_write_signed instead of
10549 deprecated_write_register_bytes.
10553 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10557 Followed the Start of New Year Procedure:
10558 * ChangeLog-2006: New file, containing all the entries for 2006.
10559 * ChangeLog: Removed all 2006 entries, and changed the reference
10560 to the previous ChangeLog to point to ChangeLog 2006.
10561 * top.c (print_gdb_version): Update copyright year.
10565 * Makefile.in (remote-sds.o): Remove.
10566 * remote-sds.c: Delete.
10568 For older changes see ChangeLog-2006.
10574 version-control: never