3 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
4 DWARF3 equivalent `DW_AT_bit_stride'.
5 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
9 * mi/mi-main.c: Remove code that was commented out in 1999.
13 * expression.h (parse_expression_in_context): Delete prototype.
14 * parse.c (parse_expression_in_context): Delete.
18 Add support for pending breakpoints in MI.
19 * gdb.h (gdb_breakpoint): Add parameter pending.
20 * breakpoint.c (gdb_breakpoint): Add parameter pending.
21 * mi/mi-cmd-break.c (mi_break_insert): Change
22 comment to refer to manual. Add support for
23 the -f flag, for pending breakpoint.
27 * breakpoint.c (break_command_really): New, copied
28 from break_command_1. New parameters COND_STRING, THREAD
29 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
30 The previous FLAG parameter split into TEMPFLAG and
32 When PARSE_CONDITION_AND_THREAD is not set, duplicate
33 the passed condition string.
34 (struct captured_breakpoint_args): Remove
35 (do_captured_breakpoint): Remove.
36 (break_command_1): Relay to break_command_really.
37 (gdb_breakpoint): Relay to break_command_really.
41 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
45 * dwarf2read.c (attr_form_is_constant): New function.
46 (dwarf2_add_field): Use it and attr_form_is_section_offset to
47 recognize DW_AT_data_member_location attributes. Use
48 dwarf2_get_attr_constant_value when the attribute is a constant.
50 * dwarf2read.c (attr_form_is_section_offset): New function.
51 (dwarf_add_member_fn, read_common_block, read_partial_die)
52 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
56 Remove unused support for target-based exception catching.
57 * target.h (struct target_ops): Delete
58 to_enable_exception_callback and to_get_current_exception_event
60 (target_enable_exception_callback)
61 (target_get_current_exception_event): Delete macros.
62 * target.c (update_current_target): Remove code to inherit and
63 default those members.
64 (debug_to_enable_exception_callback)
65 (debug_to_get_current_exception_event): Delete functions.
66 (setup_target_debug): Don't install those methods.
67 * inf-child.c (inf_child_enable_exception_callback)
68 (inf_child_get_current_exception_event): Delete dummy functions.
69 (inf_child_target): Don't install them in the target vector.
70 * breakpoint.h (enum bptype): Delete bp_catch_catch,
72 * breakpoint.c (cover_target_enable_exception_callback)
73 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
75 (insert_bp_location, update_breakpoints_after_exec)
76 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
77 (bpstat_stop_status, bpstat_what)
78 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
79 (user_settable_breakpoint, allocate_bp_location)
80 (disable_watchpoints_before_interactive_call_start)
81 (enable_watchpoints_after_interactive_call_stop, mention)
82 (delete_breakpoint, breakpoint_re_set_one, disable_command)
83 (enable_command): Remove exception catchpoint cases.
84 (catch_exception_command_1): Don't try target-based exception
86 * stack.c (catch_info): Call print_frame_label_vars
92 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
93 of setting deprecated_register_valid array directly.
97 * mips-tdep.c (extended_offset): Fix a comment.
101 * target.c (update_current_target): Inherit to_log_command.
102 * target.h (struct target_ops). Add to_log_command.
103 (target_log_command): New macro.
104 * top.c (execute_command): Call target_log_command() rather than
105 serial_log_command().
106 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
107 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
108 * remote-mips.c (_initialize_remote_mips): Likewise.
109 * remote.c (init_remote_ops): Likewise.
113 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
114 (handle_inferior_event): Clear stop_stack_dummy earlier.
118 * addrmap.c (addrmap_splay_tree_remove): New function.
119 (addrmap_mutable_set_empty): Use it.
121 * addrmap.c, addrmap.h: Update to GPLv3.
123 * addrmap.c (struct addrmap): Make the referenced function table
125 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
126 Don't use designated initializers.
128 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
129 (addrmap_mutable_relocate): Use internal_error, not abort.
131 * NEWS: Mention support for non-contiguous lexical blocks and
136 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
137 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
138 gdbarch as parameter.
139 * gdbarch.{c,h}: Regenerate.
141 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
142 Replace current_gdbarch by gdbarch.
143 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
144 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
145 (rs6000_dwarf2_reg_to_regnum): Likewise.
146 * mips-tdep.c (mips_stab_reg_to_regnum)
147 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
148 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
149 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
150 * i386-tdep.c (i386_dbx_reg_to_regnum)
151 (i386_svr4_reg_to_regnum): Likewise
152 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
153 (h8300_dbg_reg_to_regnum): Likewise.
154 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
155 * arch-utils.c (no_op_reg_to_regnum): Likewise.
156 * arch-utils.h (no_op_reg_to_regnum): Likewise.
157 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
158 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
159 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
160 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
161 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
165 Localize infrun use of remove_breakpoints.
166 * infrun.c (handle_inferior_event): Remove
167 calls to remove_breakpoints, except where needed to
168 communicate change of breakpoint locations to inferior.
169 (keep_going): If steppping over breakpoint, remove
174 Clarify infrun variable naming.
175 * infrun.c (trap_expected): Rename
176 to stepping_over_breakpoint. Document.
177 (stepping_past_breakpoint): Remove.
178 (stepping_past_breakpoint_ptdi): Renamed
179 to deferred_step_ptid.
180 (struct execution_control_state): Rename
181 the another_trap field to stepping_over_breakpoint.
182 (struct inferior_status): Rename the trap_expected
183 field to stepping_over_breakpoint.
184 (clear_proceed_status, proceed)
185 (init_execution_control_state, context_switch)
186 (handle_inferior_event, currently_stepping)
187 (keep_going, save_inferior_status)
188 (restore_inferior_status, prepare_to_proceed): Adjust.
189 * gdbthread.h (struct thread_info): Rename the
190 trap_expected field to stepping_over_breakpoint.
191 * thread.c (load_infrun_state, save_infrun_state):
196 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
197 Add "gdb_stdint.h" dependency required for uintptr_t type use.
198 (handle_output_debug_string): Use uintptr_t typecast.
199 (handle_exception): Ditto.
200 (win32_xfer_memory): Ditto.
201 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
205 Support lexical blocks and function bodies that occupy
206 non-contiguous address ranges.
207 * addrmap.c, addrmap.h: New files.
208 * block.h (struct addrmap): New forward declaration.
209 (struct blockvector): New member, 'map'.
210 (BLOCKVECTOR_MAP): New accessor macro.
211 * block.c: #include "addrmap.h"
212 (blockvector_for_pc_sect): If the blockvector we've found has
213 an address map, use it instead of searching the blocks.
214 * buildsym.c: #include "addrmap.h"
215 (pending_addrmap_obstack, pending_addrmap_interesting): New static
217 (really_free_pendings): If we have a pending addrmap, free it too.
218 (record_block_range): New function.
219 (make_blockvector): If we have an interesting pending addrmap,
220 record it in the new blockvector.
221 (start_symtab, buildsym_init): Assert that there is no pending
222 addrmap now; we should have cleaned up any addrmaps we'd built
224 (end_symtab): If there is a pending addrmap left over that didn't
225 get included in the blockvector, free it.
226 * buildsym.h (struct addrmap): New forward declaration.
227 (record_block_range): New prototype.
228 * objfiles.c: #include "addrmap.h".
229 (objfile_relocate): Relocate the blockvector's address map, if
231 * dwarf2read.c (dwarf2_record_block_ranges): New function.
232 (read_func_scope, read_lexical_block_scope): Call it.
233 * Makefile.in (SFILES): Add addrmap.c.
234 (addrmap_h): New header dependency variable.
235 (COMMON_OBS): Add addrmap.o.
236 (addrmap.o): New rule.l
237 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
239 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
240 pointer to the block, not its index in the blockvector.
241 (block_for_pc_sect): Use the returned block, instead of looking it
243 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
245 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
246 looking it up ourselves.
247 * stack.c (print_frame_label_vars): Disable function, which
248 depends on the block's index.
250 * buildsym.c (finish_block): Return the block we've built.
251 * buildsym.h (finish_block): Update prototype.
253 * defs.h (CORE_ADDR_MAX): New constant.
257 * coffread.c (decode_type): Use builtin_type_int32 instead
258 of FT_INTEGER fundamental type for array range index type.
259 (decode_base_type): Use builtin types of current_gdbarch
260 instead of fundamental types.
262 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
263 (read_file_scope): Do not initialize ftypes member.
264 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
265 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
266 fundamental type for array range index type.
267 (read_tag_string_type): Likewise for string range index type.
268 Also, do not overwrite FT_CHAR type with new string type.
269 (read_base_type): If DW_AT_name is missing, create unnamed type
270 with given properties instead of looking for a fundamental type.
271 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
272 DW_ATE_complex_float types.
273 (read_subrange_type): Create new type to represent missing
274 DW_AT_type instead of looking for a fundamental type.
275 (die_type): Use builtin type to represent "void" instead of
276 looking for a fundamental type.
278 * stabsread.c (define_symbol): Use builtin types to represent
279 'r' and 'i' floating-point and integer constants.
281 * gdbtypes.c (lookup_fundamental_type): Remove.
282 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
283 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
284 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
285 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
286 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
287 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
288 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
289 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
290 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
291 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
292 * objfiles.c (struct objfile): Remove fundamental_types member.
293 * symfile.c (reread_symbols): Do not clear fundamental_types.
295 * language.h (struct language_defn): Remove la_fund_type member.
296 (create_fundamental_type): Remove.
297 * language.c (unk_lang_create_fundamental_type): Remove.
298 (unknown_language_defn, auto_language_defn,
299 local_language_defn): Adapt initializer.
300 * ada-lang.c (ada_create_fundamental_type): Remove.
301 (ada_language_defn): Adapt initializer.
302 * c-lang.h (c_create_fundamental_type): Remove prototype.
303 * c-lang.c (c_create_fundamental_type): Remove.
304 (c_language_defn, cplus_language_defn, asm_language_defn,
305 minimal_language_defn): Adapt initializer.
306 * f-lang.c (f_create_fundamental_type): Remove.
307 (f_language_defn): Adapt initializer.
308 * jv-lang.c (java_create_fundamental_type): Remove.
309 (java_language_defn): Adapt initializer.
310 * m2-lang.c (m2_create_fundamental_type): Remove.
311 (m2_language_defn): Adapt initializer.
312 * objc-lang.c (objc_create_fundamental_type): Remove.
313 (objc_language_defn): Adapt initializer.
314 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
315 * p-lang.c (pascal_create_fundamental_type): Remove.
316 (pascal_language_defn): Adapt initializer.
317 * scm-lang.c (scm_language_defn): Adapt initializer.
321 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
322 * features/mips64-cpu.xml: Likewise.
323 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
324 * features/mips64-fpu.xml: Likewise.
325 * features/mips-linux.c: Regenerate.
326 * features/mips64-linux.c: Regenerate.
330 * target.h (target_find_new_threads): Fix definition.
334 * win32-nat.c (win32_resume): Set the trace bit
335 in the thread identified by inferior_ptid.
340 * win32-nat.c (open_process_used): New static variable.
341 (win32_init_thread_list): Remove call to CloseHandle for thread.
342 (win32_delete_thread): Ditto.
343 (fake_create_process): Set open_process_used if OpenProcess call is
345 (get_win32_debug_event): Do not close process handle.
346 (do_initial_win32_stuff): Set open_process_used to zero.
347 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
348 open_process_used is set.
349 (win32_kill_inferior): Do not close process and main_thread handles.
353 * remote.c (remote_cmdlist): New variable.
354 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
355 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
356 (remote_buffer_add_string, remote_buffer_add_bytes)
357 (remote_buffer_add_int, remote_hostio_parse_result)
358 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
359 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
360 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
361 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
362 (remote_file_delete, remote_put_command, remote_get_command)
363 (remote_delete_command, remote_command): New functions.
364 (_initialize_remote): Register new packets and commands.
365 * Makefile.in (gdb_fileio_h): New variable.
367 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
368 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
369 (mi-cmd-target.o): New rule.
370 * mi/mi-cmd-target.c: New file.
371 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
373 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
374 (mi_cmd_target_file_delete): Declare.
375 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
377 * NEWS: Describe new file transfer support.
381 * infrun.c (handle_inferior_event): Don't
382 ignore beakpoints if trap_expected is set.
386 Make insert_breakpoints return void.
387 * breakpoint.h (insert_breakpoints): Change
389 * breakpoint.c (insert_breakpoints): Change
390 return type to void. Rename local return_val
392 * infrun.c (keep_going): Instead of checking
393 return value from insert_breakpoints, catch exception.
397 Stop infrun from tracking breakpoint insertion status.
399 The checks of breakpoints_inserted before calling
400 remove_breakpoints are removed, as remove_breakpoint
401 won't touch uninserted breakpoints. In a number of places,
402 we're interested if a breakpoint is inserted at particular
403 PC, and we now use breakpoint_inserted_here_p. In a few
404 places, insert_breakpoints can be called unconditionally,
405 since it won't try to insert already inserted breakpoint.
407 * breakpoint.h (regular_breakpoint_inserted_here_p): New
409 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
410 (breakpoint_inserted_here_p): Use
411 regular_breakpoint_inserted_here_p.
412 * infrun.c (breakpoints_inserted): Remove.
413 (resume): Don't check for breakpoints_inserted before
414 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
415 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
416 (handle_inferior_event): Don't use breakpoints_inserted.
417 Use breakpoints_meant_to_be_inserted and
418 breakpoints_inserted_here_p.
419 (insert_step_resume_breakpoint_at_sal, keep_going): Use
420 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
421 (normal_stop): Don't check for breakpoints_inserted. Don't
422 set breakpoints_inserted.
423 (keep_going): Don't check for breakpoints_inserted.
424 (insert_step_resume_breakpoint_at_sal): Don't insert
429 * breakpoint.c (watch_command_1): When the watchpoint isn't local
430 to any frame, initialize watchpoint_frame using null_frame_id, not
435 * infrun.c (resume): Set right thread even if
436 stepping over breakpoint using software single step.
440 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
441 (mi_print_value_p): Guard against type = NULL.
445 * dfp.c (decimal_from_string): Remove superfluous newline from
447 (decimal_to_string): Likewise.
448 * printcmd.c (printf_command): Change string buffer to use
449 MAX_DECIMAL_STRING constant.
450 * value.c (value_from_decfloat): Likewise.
454 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
455 64-bit CORE_ADDR and BFD support, move them to ...
456 (ALL_64_TARGET_OBS): ... this new variable.
457 * configure.ac: Check for --enable-64-bit-bfd option. Only add
458 64-bit targets with --enable-targets=all if BFD supports 64-bit.
459 * configure: Regenerate.
461 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
462 all elf32-i386 executables, only cygwin core files.
466 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
467 code with its variables OBJFILE, CU_HEADER and OBFD into ...
468 (dwarf2_ranges_read): ... a new function.
469 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
473 * win32-nat.c (DR6_CLEAR_VALUE): New define.
474 (thread_info_struct): Rename suspend_count to suspended, to be
476 (thread_rec): Only suspend the thread if it wasn't suspended by
477 gdb before. Warn if suspending failed.
478 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
479 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
480 `suspended' flag. Do ContinueDebugEvent after resuming the
481 suspended threads, not before. Set threads' contexts before
482 resuming them, not after.
483 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
487 * breakpoint.c (insert_breakpoints)
488 (insert_bp_location): Remove stale comments.
492 * mips-linux-tdep.h: Fix some formatting.
496 * stack.c (print_args_stub): Use get_frame_arch to get at the current
497 architecture and replace current_gdbarch.
498 (frame_info): Likewise.
502 * varobj.c (c_variable_editable, cplus_variable_editable)
503 (java_variable_editable, variable_editable): Delete.
504 (varobj_editable_p): Replace above functions with one language
505 independent function. Check for an lvalue.
506 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
507 (struct language_specific): Delete variable_editable field.
509 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
511 * varobj.h: Add extern for varobj_editable_p.
515 Remove unused breakpoint fields.
516 * breakpoint.h (struct breakpoint): Remove
517 from_tty and flag fields.
518 * breakpoint.c (break_command_1): Don't set
519 from_tty and flag field set of breakpoint.
520 (create_ada_exception_breakpoint): Don't set
526 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
531 * infrun.c (resume): Clarify logic that
532 decides if a single thread must be resumed. Add
537 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
542 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
543 * gdbarch.{c,h}: Regenerate.
545 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
546 * score-tdep.c (score_register_sim_regno): Likewise.
547 * sim-regno.h (one2one_register_sim_regno): Likewise.
549 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
550 Replace current_gdbarch by gdbarch.
551 * sh-tdep.c (sh_sh2a_register_sim_regno)
552 (sh_dsp_register_sim_regno): Likewise.
553 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
554 * mips-tdep.c (mips_register_sim_regno): Likewise.
555 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
556 * frv-tdep.c (frv_register_sim_regno): Likewise.
557 * arm-tdep.c (arm_register_sim_regno): Likewise.
558 * remote-sim.c (one2one_register_sim_regno): Likewise.
562 * configure.ac (--enable-targets): New configure option.
563 Collect gdb_target_obs of multiple targets into TARGET_OBS.
564 Call configure.tgt multiple times, using $targ as operand.
565 * configure.tgt: Operate on $targ instead of $target.
566 * configure: Regenerate.
567 * Makefile.in (ALL_TARGET_OBS): Define.
569 * NEWS: Mention --enable-targets option.
573 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
574 current architecture is not MIPS.
578 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
579 to construct error message if no argument was supplied.
583 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
584 (i386nbsd_aout_regset_from_core_section): Likewise.
585 (i386nbsd_aout_init_abi): Likewise.
586 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
588 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
589 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
593 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
594 (amd64fbsd_sigtramp_end_addr): Likewise.
596 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
597 (iq2000_address_to_pointer): Likewise.
598 (iq2000_frame_prev_register): Likewise.
599 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
600 instead of regcache_cooked_read into CORE_ADDR variable.
601 (iq2000_return_value): Fix argument types.
603 * m32r-rom.c (m32r_load_section): Fix printf argument type.
604 (m32r_load): Likewise.
606 * m68kbsd-tdep.c: Include "gdbtypes.h".
607 * Makefile.in: Update dependencies.
609 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
611 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
612 lmo->l_addr_size element.
614 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
615 (m32r_insert_breakpoint): Likewise.
616 (m32r_remove_breakpoint): Likewise.
617 (m32r_insert_watchpoint): Likewise.
618 (m32r_remove_watchpoint): Likewise.
619 (m32r_load): Fix printf argument type.
621 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
623 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
624 (xtensa_frame_prev_register): Likewise.
625 (xtensa_push_dummy_call): Likewise.
629 * config/alpha/alpha-linux.mt: Remove file.
630 * config/alpha/alpha.mt: Remove file.
631 * config/alpha/alpha-osf1.mt: Remove file.
632 * config/alpha/fbsd.mt: Remove file.
633 * config/alpha/nbsd.mt: Remove file.
634 * config/alpha/obsd.mt: Remove file.
635 * config/arm/embed.mt: Remove file.
636 * config/arm/linux.mt: Remove file.
637 * config/arm/nbsd.mt: Remove file.
638 * config/arm/obsd.mt: Remove file.
639 * config/arm/wince.mt: Remove file.
640 * config/avr/avr.mt: Remove file.
641 * config/cris/cris.mt: Remove file.
642 * config/frv/frv.mt: Remove file.
643 * config/h8300/h8300.mt: Remove file.
644 * config/i386/cygwin.mt: Remove file.
645 * config/i386/fbsd64.mt: Remove file.
646 * config/i386/fbsd.mt: Remove file.
647 * config/i386/i386gnu.mt: Remove file.
648 * config/i386/i386.mt: Remove file.
649 * config/i386/i386sol2.mt: Remove file.
650 * config/i386/linux64.mt: Remove file.
651 * config/i386/linux.mt: Remove file.
652 * config/i386/mingw.mt: Remove file.
653 * config/i386/nbsd64.mt: Remove file.
654 * config/i386/nbsd.mt: Remove file.
655 * config/i386/nto.mt: Remove file.
656 * config/i386/obsd64.mt: Remove file.
657 * config/i386/obsd.mt: Remove file.
658 * config/i386/sol2-64.mt: Remove file.
659 * config/ia64/ia64.mt: Remove file.
660 * config/ia64/linux.mt: Remove file.
661 * config/iq2000/iq2000.mt: Remove file.
662 * config/m32c/m32c.mt: Remove file.
663 * config/m32r/linux.mt: Remove file.
664 * config/m32r/m32r.mt: Remove file.
665 * config/m68hc11/m68hc11.mt: Remove file.
666 * config/m68k/linux.mt: Remove file.
667 * config/m68k/monitor.mt: Remove file.
668 * config/m68k/nbsd.mt: Remove file.
669 * config/m68k/obsd.mt: Remove file.
670 * config/m88k/obsd.mt: Remove file.
671 * config/mep/mep.mt: Remove file.
672 * config/mips/embed.mt: Remove file.
673 * config/mips/irix5.mt: Remove file.
674 * config/mips/irix6.mt: Remove file.
675 * config/mips/linux.mt: Remove file.
676 * config/mips/nbsd.mt: Remove file.
677 * config/mips/obsd64.mt: Remove file.
678 * config/mn10300/linux.mt: Remove file.
679 * config/mn10300/mn10300.mt: Remove file.
680 * config/mt/mt.mt: Remove file.
681 * config/pa/hppahpux.mt: Remove file.
682 * config/pa/hppa.mt: Remove file.
683 * config/pa/linux.mt: Remove file.
684 * config/pa/obsd.mt: Remove file.
685 * config/powerpc/aix.mt: Remove file.
686 * config/powerpc/linux.mt: Remove file.
687 * config/powerpc/nbsd.mt: Remove file.
688 * config/powerpc/obsd.mt: Remove file.
689 * config/powerpc/ppc-eabi.mt: Remove file.
690 * config/s390/s390.mt: Remove file.
691 * config/score/embed.mt: Remove file.
692 * config/sh/embed.mt: Remove file.
693 * config/sh/linux.mt: Remove file.
694 * config/sh/nbsd.mt: Remove file.
695 * config/sh/obsd.mt: Remove file.
696 * config/sh/sh64.mt: Remove file.
697 * config/sparc/embed.mt: Remove file.
698 * config/sparc/fbsd.mt: Remove file.
699 * config/sparc/linux64.mt: Remove file.
700 * config/sparc/linux.mt: Remove file.
701 * config/sparc/nbsd64.mt: Remove file.
702 * config/sparc/nbsd.mt: Remove file.
703 * config/sparc/obsd64.mt: Remove file.
704 * config/sparc/obsd.mt: Remove file.
705 * config/sparc/sol2-64.mt: Remove file.
706 * config/sparc/sol2.mt: Remove file.
707 * config/sparc/sparc64.mt: Remove file.
708 * config/sparc/sparc.mt: Remove file.
709 * config/spu/spu.mt: Remove file.
710 * config/v850/v850.mt: Remove file.
711 * config/vax/nbsd.mt: Remove file.
712 * config/vax/obsd.mt: Remove file.
713 * config/vax/vax.mt: Remove file.
714 * config/xstormy16/xstormy16.mt: Remove file.
715 * config/xtensa/xtensa.mt: Remove file.
717 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
718 (gdb_target): Likewise.
719 (gdb_target_obs): Document. Set for every target to contents
720 of TDEPFILES in former .mt makefile fragment.
722 * configure.ac (TARGET_OBS): Define.
723 (target_makefile_frag, gdb_target_cpu): Do not define.
724 * configure: Regenerate.
726 * Makefile.in (MT_FLAGS): Remove.
727 (GLOBAL_CFLAGS): Update.
728 (TARGET_OBS): Substitute from configure.
729 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
730 (@target_makefile_frag@): Remove.
734 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
735 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
736 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
737 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
738 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
739 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
740 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
741 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
742 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
743 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
744 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
745 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
746 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
747 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
748 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
749 * config/powerpc/ppc-sim.mt: Remove file.
750 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
751 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
752 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
753 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
754 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
755 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
756 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
758 * configure.tgt (gdb_sim): Document variable.
759 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
762 (h8300-*-*): Likewise.
763 (iq2000-*-*): Likewise.
764 (m32c-*-*): Likewise.
765 (m32r*-*-linux*): Likewise.
766 (m32r*-*-*): Likewise.
767 (m68hc11*-*-*|m6811*-*-*): Likewise.
768 (mips*-*-*): Likewise.
769 (mips*-*-linux*): Likewise.
770 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
771 (mn10300-*-*): Likewise.
772 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
773 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
774 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
776 (sh-*-linux*): Likewise.
777 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
778 (sh64-*-elf*): Likewise.
779 (sparc-*-rtems*): Likewise.
780 (v850*-*-elf): Likewise.
781 (xstormy16-*-*): Likewise.
783 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
784 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
785 * configure: Regenerate.
786 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
787 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
791 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
792 (arm*-*-*): Do not set obsolete build_rdi_share variable.
794 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
795 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
796 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
797 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
798 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
800 (xscale-*-*): Merge into arm*-*-* case.
801 (fido-*-elf*): Merge into m68*-*-elf* case.
802 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
803 m68*-*-uclinux*): Merge cases.
804 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
805 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
809 * configure.tgt: Reformat main case statement.
813 * configure.ac (hostfile, targetfile): Remove.
814 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
815 (xm_h, tm_h): Likewise.
816 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
817 * configure, config.in: Regenerate.
819 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
820 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
821 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
822 * defs.h: Do not include "xm.h" or "tm.h".
824 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
825 * gdbarch.c: Regenerate.
827 * config/score/embed.mt: Remove obsolete comment.
831 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
833 * gdbarch.{c,h}: Regenerate.
835 * alpha-tdep.c (alpha_cannot_fetch_register)
836 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
837 current_gdbarch by gdbarch.
838 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
839 (crisv32_cannot_fetch_register)
840 (crisv32_cannot_store_register): Likewise.
841 * arch-utils.c (cannot_register_not): Likewise.
842 * arch-utils.h (cannot_register_not): Likewise.
843 * hppa-tdep.c (hppa32_cannot_store_register)
844 (hppa32_cannot_store_register, hppa64_cannot_store_register)
845 (hppa64_cannot_fetch_register): Likewise.
846 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
847 (mipsnbsd_cannot_store_register): Likewise.
851 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
852 the current architecture by regcache.
853 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
854 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
855 (fetch_register, supply_vrregset, fetch_ppc_registers)
856 (store_altivec_register, store_spe_register, store_register)
857 (fill_vrregset, store_ppc_registers): Likewise.
858 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
859 * win32-nat.c (do_win32_fetch_inferior_registers)
860 (do_win32_store_inferior_registers): Likewise.
861 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
862 * remote-m32r-sdi.c (m32r_fetch_registers)
863 (m32r_store_registers): Likewise.
864 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
866 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
868 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
869 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
870 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
871 (ppc64_sysv_abi_return_value): Likewise.
872 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
873 * m2-lang.c (build_m2_types): Likewise.
874 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
875 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
876 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
877 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
879 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
880 get at the current architecture by frame_info.
881 * gcore.c (derive_stack_segment): Likewise.
883 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
884 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
885 gdbarch to GETREGS_SUPPLIES call.
889 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
890 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
891 ELF-private symbol data when processing synthetic symbols. Use
892 udata.p to get at size of ppc64 synthetic 'dot' symbols.
893 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
897 * buildsym.h (subfiles): Move ...
898 * buildsym.c (subfiles): ... to here and make static.
900 * symmisc.c (maintenance_info_symtabs): Print linetable info.
904 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
908 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
909 expression and use get_frame_arch to replace current_gdbarch by frame's
911 * arm-tdep.h (LOWEST_PC): Remove
915 Apply const qualifier to some users of bp_location.
916 * breakpoint.h (struct bpstats): Make
917 the breakpoint_at field point at const bp_location.
918 * breakpoint.c (bpstat_alloc): Accept const
920 (breakpoint_here_p, breakpoint_inserted_here_p)
921 (software_breakpoint_inserted_here_p)
922 (breakpoint_thread_match, bpstat_stop_status)
923 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
924 const bp_location for iteration.
925 (print_it_typical, print_bp_stop_message): Use
926 const bp_location variable.
930 Make mark_breakpoints_out static.
931 * breakpoint.h (mark_breakpoints_out): Remove
933 * breakpoint.c (mark_breakpoints_out): Make static.
937 Prevent clear_command from directly modifying breakpoint list.
938 * Makefile.in (breakpoint_h): Update dependency.
939 * breakpoint.c (clear_command): Do not remove
940 breakpoints from breakpoint_chain. Collect breakpoints
941 to delete in a vector.
942 * breakpoint.h (breakpoint_p): New typedef for pointer to
943 breakpoint. Register vector of breakpoint_p.
947 Remove 'run_cleanup'.
948 * defs.h (do_run_cleanups, make_run_cleanup): Remove
950 * infcmd.c (run_command_1): Call clear_solib instead
952 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
954 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
955 (update_solib_lib): Don't setup run cleanup.
956 (no_shared_libraries): Call clear_solib, not do_clear_solib.
957 * utils.c (run_cleanup_chain, make_run_cleanup)
958 (do_run_cleanups): Remove.
962 Remove CLEAR_SOLIB use.
963 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
964 * infcmd.c (attach_command): Likewise.
968 * buildsym.c (start_subfile,start_symtab): Doc fixes.
972 * tui/tui-data.c (tui_prev_win): Guard against NULL.
976 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
978 (verify_gdbarch, gdbarch_dump): Likewise.
979 (do_read): Update comment.
980 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
981 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
982 * gdbarch.{c,h}: Regenerate.
986 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
987 (ARGS_FIRST_REG): Remove.
988 (areg_numer): New function.
989 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
990 (xtensa_extract_return_value, xtensa_store_return_value)
991 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
992 (AREG_NUMBER): Remove.
993 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
994 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
995 (xtensa_push_dummy_call): Update use of ARG_NOF.
996 (extract_call_winsize): Add gdbarch as parameter. Replace
997 current_gdbarch by gdbarch.
998 (xtensa_extract_return_value, xtensa_store_return_value): Update call
999 of extract_call_winsize.
1003 * NEWS: Add entry for new set/show print frame-args command.
1007 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1008 register number to map. Adjust warning check and error/warning
1009 return value code to match expectations of this function's callers.
1013 * stack.c (print_this_frame_argument_p): Handle arguments passed
1014 by reference properly.
1018 * stack.c (print_frame_arguments_choices): New static global.
1019 (print_frame_arguments): Likewise.
1020 (print_this_frame_argument_p): New function.
1021 (print_frame_args): Print the argument value only when appropriate.
1022 (_initialize_task): Add new "set/show print frame-arguments" command.
1026 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1027 saved_dabr_value assignment to the correct position.
1031 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1032 * arch-utils.h (generic_convert_register_p): Likewise.
1036 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1037 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1038 * i387-tdep.c (i387_convert_register_p): Likewise.
1039 * i387-tdep.h (i387_convert_register_p): Likewise.
1040 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1041 * gdbarch.{c,h}: Regenerate.
1043 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1044 Replace current_gdbarch by gdbarch.
1045 * mips-tdep.c (mips_convert_register_p): Likewise.
1046 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1047 * i386-tdep.c (i386_convert_register_p): Likewise.
1051 * gdb_string.h: Include <strings.h>.
1055 * breakpoint.c (break_command_1): Remove
1056 pending_bp parameter.
1057 (create_breakpoint): Likewise.
1058 (create_breakpoints): Likewise. Adjust call to
1060 (break_command_1): Likewise. Adjust call to
1062 (do_captured_breakpoint): Adjust call to
1064 (break_command, tbreak_command, hbreak_command)
1065 (stopin_command, stopat_command): Adjust call
1071 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1072 struct values smaller than one doubleword; left-align those
1073 larger. Pass structs containing a single floating-point value in
1079 * gdbtypes.c (floatformats_ibm_long_double): New.
1080 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1081 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1083 * mips-tdep.c (n32n64_floatformat_always_valid,
1084 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1086 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1087 floatformats_n32n64_long.
1088 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1090 * doublest.c (convert_floatformat_to_doublest,
1091 convert_doublest_to_floatformat): Handle split floating-point
1093 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1095 (ppc64_sysv_abi_push_dummy_call): Likewise.
1096 (do_ppc_sysv_return_value): Handle IBM long double return.
1100 Fix crash when a variable object being deleted
1101 has any of its children deleted previously.
1103 * varobj.c (delete_variable_1): Don't recurse
1104 into deleted children.
1108 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1109 * gdbarch.{c,h}: Regenerate.
1110 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1111 Replace current_gdbarch by gdbarch.
1112 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1113 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1114 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1118 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1119 get_regcache_arch to get at the current architecture by regcache.
1120 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1121 to get at the current architecture by frame_info.
1122 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1123 at the current architecture by regcache.
1124 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1125 the current architecture by frame_info.
1126 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1127 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1128 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1129 caller of special_register_p.
1133 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1134 current architecture by frame_info.
1138 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1142 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1143 get at the current architecture by regcache.
1144 (SUBOFF): Add gdbarch to macro definition.
1148 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1149 * gdbarch.{c,h}: Regenerate.
1151 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1152 Replace current_gdbarch by gdbarch.
1153 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1154 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1155 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1156 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1157 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1158 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1159 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1161 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1163 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1164 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1165 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1166 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1167 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1168 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1169 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1170 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1171 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1172 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1173 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1174 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1175 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1176 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1177 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1178 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1179 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1180 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1181 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1182 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1184 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1185 Replace current_gdbarch by gdbarch.
1186 (rs6000_software_single_step): Use get_frame_arch to get at the
1187 current architecture by frame_info. Add gdbarch to
1188 rs6000_breakpoint_from_pc call.
1192 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1193 macro CURRENT_VARIANT by its expression.
1194 (CURRENT_VARIANT): Remove.
1195 (frv_check_watch_resources): Add gdbarch parameter.
1199 * MAINTAINERS (Write After Approval): Add self.
1203 * features/rs6000/power-core.xml: Use uint32 as register type.
1204 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1205 * features/rs6000/powerpc-32.c: Regenerate.
1206 * features/rs6000/powerpc-403.c: Regenerate.
1207 * features/rs6000/powerpc-403gc.c: Regenerate.
1208 * features/rs6000/powerpc-505.c: Regenerate.
1209 * features/rs6000/powerpc-602.c: Regenerate.
1210 * features/rs6000/powerpc-603.c: Regenerate.
1211 * features/rs6000/powerpc-604.c: Regenerate.
1212 * features/rs6000/powerpc-64.c: Regenerate.
1213 * features/rs6000/powerpc-7400.c: Regenerate.
1214 * features/rs6000/powerpc-750.c: Regenerate.
1215 * features/rs6000/powerpc-860.c: Regenerate.
1216 * features/rs6000/powerpc-e500.c: Regenerate.
1220 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1224 * breakpoint.h (create_solib_load_event_breakpoint)
1225 (create_solib_unload_event_breakpoint)
1226 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1227 (create_exec_event_catchpoint): Delete declaration.
1228 * breakpoint.c (create_solib_load_event_breakpoint)
1229 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1230 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1231 (create_exec_event_catchpoint): Make static.
1235 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1236 * breakpoint.c (set_breakpoint_sal): Delete.
1240 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1241 (make_blockvector): Likewise. Remove FIXME comment.
1245 * printcmd.c: (printf_command): Add support for new DFP
1246 modifiers %H, %D and %DD.
1247 * configure.ac: Add check for DECFLOAT printf support.
1248 * configure: Regenerated.
1252 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1253 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1254 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1255 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1256 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1257 (has_vtable, primary_base_class, virtual_base_list_length,
1258 virtual_base_list_length_skip_primaries, virtual_base_index,
1259 virtual_base_index_skip_primaries, class_index_in_primary_list,
1260 count_virtual_fns): Remove prototypes.
1261 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1262 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1263 virtual_base_list_length_skip_primaries, virtual_base_index,
1264 virtual_base_index_skip_primaries, class_index_in_primary_list,
1265 count_virtual_fns): Remove.
1267 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1268 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1269 (cp_print_value_fields): Remove support for HP aCC vtables.
1270 (cp_print_value): Likewise.
1271 * c-typeprint.c (c_type_print_base): Likewise.
1273 * value.h (find_rt_vbase_offset): Remove prototype.
1274 * valops.c (find_rt_vbase_offset): Remove.
1275 (search_struct_method): Remove support for HP aCC vtables.
1276 (find_method_list): Likewise.
1280 * language.h (struct language_defn): Remove la_builtin_type_vector
1281 and string_char_type members.
1282 * language.c (language_string_char_type): No longer consult
1283 la->string_char_type.
1284 (language_lookup_primitive_type_by_name): No longer consult
1285 current_language->la_builtin_type_vector.
1287 * language.c (unknown_language_defn, auto_language_defn,
1288 local_language_defn): Adapt initializer.
1289 * ada-lang.c (ada_language_defn): Likewise.
1290 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1291 minimal_language_defn): Likewise.
1292 * f-lang.c (f_language_defn): Likewise.
1293 * jv-lang.c (java_language_defn): Likewise.
1294 * m2-lang.c (m2_language_defn): Likewise.
1295 * objc-lang.c (objc_language_defn): Likewise.
1296 * p-lang.c (pascal_language_defn): Likewise.
1297 * scm-lang.c (scm_language_defn): Likewise.
1301 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1302 current_gdbarch by gdbarch.
1303 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1304 current architecture by frame_info.
1305 * frame.h (frame_id_inner): Add gdbarch parameter.
1306 * stack.c (return_command): Use get_frame_arch to get at the current
1307 architecture by frame_info. Update call of frame_id_inner.
1308 * infrun.c (handle_inferior_event): Likewise.
1309 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1310 current architecture by regcache. Update call of frame_id_inner.
1314 * gdbarch.sh (register_name): Add gdbarch parameter.
1315 * gdbarch.{c,h}: Regenerate.
1317 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1318 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1319 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1321 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1322 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1323 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1324 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1325 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1326 (mt_registers_info): Replace current_gdbarch by gdbarch.
1327 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1328 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1329 current_gdbarch by gdbarch.
1330 (mips_register_name): Add gdbarch to tdesc_register_name call.
1331 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1332 current_gdbarch by gdbarch.
1333 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1334 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1335 current_gdbarch by gdbarch.
1336 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1337 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1338 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1339 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1340 architecture by frame_info.
1341 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1342 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1343 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1345 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1346 (h8300sx_register_name): Add gdbarch parameter.
1347 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1348 gdbarch parameter. Replace current_gdbarch by gdbarch.
1349 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1350 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1351 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1352 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1354 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1355 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1356 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1357 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1358 of alpha_register_name.
1359 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1360 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1361 current_gdbarch by gdbarch.
1362 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1363 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1364 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1366 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1367 (m68hc11_register_reggroup_p): Add gdbarch to call of
1368 m68hc11_register_name.
1369 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1370 (am33_2_register_name): Add gdbarch parameter.
1371 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1372 architecture by frame_info.
1373 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1374 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1375 current_gdbarch by gdbarch.
1376 * score-tdep.c (score_register_name): Add gdbarch parameter.
1377 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1379 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1380 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1381 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1382 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1383 and update caller. Replace current_gdbarch by gdbarch.
1384 (sh64_extract_return_value, sh64_store_return_value): Use
1385 get_regcache_arch to get at the current architecture by regcache.
1386 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1387 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1388 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1389 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1390 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1392 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1393 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1394 current_gdbarch by gdbarch.
1395 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1396 get_regcache_arch to get at the current architecture by regcache.
1397 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1398 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1399 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1401 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1402 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1403 current_gdbarch by gdbarch.
1404 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1405 (xtensa_frame_prev_register): Add gdbarch parameter to
1406 xtensa_register_name call.
1410 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1411 find_solib_trampoline_target if PC is not in .plt section.
1415 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1416 minimal symbol from an undefined dynamic symbol, use proper section.
1420 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1421 to get at the current architecture by regcache.
1425 * libunwind-frame.c (libunwind_frame_sniffer)
1426 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1427 (libunwind_frame_cache): Use get_frame_arch to get at the current
1428 architecture by frame_info.
1429 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1433 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1434 at the current architecture by frame_info.
1438 * inf-child.c (inf_child_fetch_inferior_registers): Use
1439 get_regcache_arch to get at the current architecture by regcache.
1443 * inf-ptrace.c (inf_ptrace_fetch_registers)
1444 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1445 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1446 current architecture by regcache.
1450 * hpux-thread.c (hpux_thread_fetch_registers)
1451 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1452 current architecture by regcache.
1456 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1457 current architecture by frame_info.
1461 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1462 (go32_store_registers): Use get_regcache_arch to get at the current
1463 architecture by regcache.
1467 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1471 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1472 to get at the current architecture by frame_info.
1476 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1480 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1481 the current architecture by regcache.
1485 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1486 current architecture by regcache.
1490 * bsd-uthread.c (bsd_uthread_fetch_registers)
1491 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1492 current architecture by regcache.
1496 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1497 get_frame_arch to get at the current architecture by frame_info.
1501 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1505 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1506 (store_regs): Use get_regcache_arch to get at the current architecture
1511 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1512 to get at the current architecture by regcache.
1516 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1517 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1518 the current architecture by regcache.
1522 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1527 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1528 soft float and vector ABIs. Support the generic vector ABI for
1530 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1532 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1534 * ppc-tdep.h (enum powerpc_vector_abi): New.
1535 (struct gdbarch_tdep): Add soft_float and vector_abi.
1536 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1537 (powerpc_soft_float_global, powerpc_vector_strings)
1538 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1539 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1540 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1541 (powerpc_set_vector_abi): New.
1542 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1544 * Makefile.in (elf_ppc_h): New.
1545 (rs6000-tdep.o): Update.
1549 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1550 swapped offsets and VRSAVE offset.
1551 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1552 (ppc32_linux_vrregset): Added.
1553 (ppc_linux_regset_from_core_section): Added support for
1554 .reg-ppc-vmx section.
1555 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1556 (ppc_supply_vrregset): Declare.
1557 (ppc_collect_vrregset): Declare.
1558 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1559 (ppc_supply_vrregset): Added.
1560 (ppc_collect_vrregset): Added.
1561 * corelow.c (get_core_registers): Added support for
1562 .reg-ppc-vmx section.
1570 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1573 * tracepoint.c (tracepoint_operation): Report the deletion event
1574 after we have unlinked the tracepoint from the list, and use the
1575 proper tracepoint number.
1577 * ax-gdb.c (expr_to_agent): Delete unused function.
1578 (expr_to_address_and_size): Delete #if 0'd function.
1579 * ax-gdb.h (expr_to_agent): Delete declaration.
1581 * ax-gdb.c (gen_cast): Remove redundant assignment to
1582 value->type. Doc fix.
1584 * ax-general.c (gen_traced_pop, gen_int_literal)
1585 (gen_usual_arithmetic): Check for typedefs.
1589 * parse.c (prefixify_expression): Minor reformatting.
1593 * version.in: Use dot instead of dash.
1597 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1601 * memory-map.c (parse_memory_map): Don't use an empty struct
1606 * signals/signals.c (signals): Update pointer to enum
1607 target_signal declaration.
1613 * dwarf2read.c (read_partial_die): check the value
1614 of DW_AT_calling_convention in Fortran programs.
1619 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1620 floating point in YYSTYPE union.
1621 (DECFLOAT) Add token and expression element handling code.
1622 (parse_number): Parse DFP constants, which end with suffix 'df',
1623 'dd' or 'dl'. Return DECFLOAT.
1624 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1626 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1628 (union exp_element): Add decfloatconst to represent DFP
1629 elements, which is 16 bytes by default.
1630 * parse.c (write_exp_elt_decfloatcst): New function to write a
1631 decimal float const into the expression.
1632 (operator_length_standard): Set operator length for OP_DECFLOAT
1634 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1635 * valarith.c (value_neg): Add code to handle the negation
1636 operation of DFP values.
1637 * value.c (value_from_decfloat): New function to get the value
1638 from a decimal floating point.
1639 * value.h (value_from_decfloat): Prototype.
1644 * c-lang.c (c_create_fundamental_type): Create fundamental
1646 * c-typeprint.c (c_type_print_varspec_prefix): Add
1647 TYPE_CODE_DECFLOAT to no prefix needed case.
1648 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1650 * c-valprint.c (c_val_print): Call print_decimal_floating to
1652 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1653 attribute code and return TYPE_CODE_DECFLOAT.
1654 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1655 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1656 builtin_decdouble and builtin_declong.
1657 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1659 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1660 types, for decimal floating point.
1661 (FT_NUM_MEMBERS): Increment, new types added.
1662 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1663 and builtin_declong.
1664 * valprint.c (print_decimal_floating): New function to print DFP
1666 * value.h (print_decimal_floating): Prototype.
1671 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1672 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1673 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1674 (INSTALLED_LIBS): Add -ldecnumber in.
1675 (CLIBS): Add LIBDECNUMBER in.
1676 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1678 (dfp_h): New macros for decimal floating point.
1679 (dfp.o): New target.
1680 (COMMON_OBS): Add dfp.o in.
1681 (c-exp.o): Add dfp_h as dependency.
1682 (valprint.o): Add dfp_h as dependency.
1683 (value.o): Add dfp_h as dependency.
1684 * dfp.h: New header file for decimal floating point support in
1686 * dfp.c: New source file for decimal floating point support in
1687 GDB. Implement decimal_from_string and decimal_to_string based
1688 on libdecnumber API.
1689 * configure.ac: Add AC_C_BIGENDIAN test.
1690 * config.in, configure: Regenerate.
1696 * infcmd.c (registers_info): Check for a user register before
1697 calling target's gdbarch_print_registers_info(). If found to be
1698 so, extract the implicit value of user register and call
1699 print_scalar_formatted().
1700 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1704 * NEWS: Document status of hppa64-hpux support.
1708 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1709 set_solib_ops to install SVR4 operations.
1710 (_initialize_svr4_solib): Do not set current_target_so_ops.
1712 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1713 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1717 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1718 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1719 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1720 * solib-legacy.c: Remove file.
1722 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1723 * config/arm/linux.mt (TDEPFILES): Likewise.
1724 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1725 * config/ia64/linux.mt (TDEPFILES): Likewise.
1726 * config/m32r/linux.mt (TDEPFILES): Likewise.
1727 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1728 * config/s390/s390.mt (TDEPFILES): Likewise.
1730 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1731 set_solib_svr4_fetch_link_map_offsets.
1732 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1733 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1735 * i386gnu-tdep.c: Include "solib-svr4.h".
1736 * Makefile.in: Update dependencies.
1740 * i386-nto-tdep.c: Include "solib.h".
1741 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1742 current_target_so_ops members.
1743 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1744 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1745 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1746 * Makefile.in: Update dependencies.
1750 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1751 (arm_wince_init_abi): Call set_solib_ops.
1752 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1753 (i386_cygwin_init_abi): Call set_solib_ops.
1754 * solib-target.c: Include "solib-target.h".
1755 (solib_target_so_ops): Make global.
1756 (_initialize_solib_target): Do not set current_target_so_ops.
1757 * solib-target.h: New file.
1758 * Makefile.in: Update dependencies.
1762 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1763 (mips_irix_init_abi): Call set_solib_ops.
1764 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1765 (irix_so_ops): Make global.
1766 (_initialize_irix_solib): Do not set current_target_so_ops.
1767 * solib-irix.h: New file.
1768 * Makefile.in: Update dependencies.
1772 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1773 * config/pa/hppa64.mt: Delete file.
1774 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1775 (TDEPFILES): Move somread.o to ...
1776 * config/pa/hpux.mh (NATDEPFILES): ... here.
1778 * configure.ac: Add check for elf_hp.h header.
1779 Search libdl and libxpdl for dlgetmodinfo.
1780 * config.in, configure: Regenerate.
1781 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1782 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1783 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1784 set_solib_ops instead of modifying current_target_so_ops.
1785 * solib-pa64.h (pa64_solib_select): Update prototype.
1786 * solib-som.c: Remove include of "som.h". Include "solib.h".
1787 (som_solib_select): Take gdbarch instead of tdep argument. Call
1788 set_solib_ops instead of modifying current_target_so_ops.
1789 * solib-som.h (som_solib_select): Update prototype.
1790 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1791 of tdep to som_solib_select call.
1792 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1793 pa64_solib_select call.
1794 * Makefile.in: Update dependencies.
1798 * frv-tdep.c: Include "solib.h".
1799 (frv_gdbarch_init): Call set_solib_ops.
1800 * frv-tdep.h (struct target_so_ops): Add forward reference.
1801 (frv_so_ops): Add extern declaration.
1802 * solib-frv.c (frv_so_ops): Make global.
1803 (_initialize_frv_solib): Do not set current_target_so_ops.
1804 * Makefile.in: Update dependencies.
1808 * solib.c (solib_global_lookup): Use solib_ops instead of global
1809 current_target_so_ops.
1813 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1814 * config/frv-tm-frv.h: Delete file.
1818 * NEWS: Mention gdbserver support for non-libthread_db operation.
1822 * amd64-tdep.c (amd64_convert_register_p): Delete.
1823 (amd64_init_abi): Use i387_convert_register_p.
1824 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1826 (alpha_register_to_value, alpha_value_to_register): Do not handle
1828 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1829 * i387-tdep.c (i387_convert_register_p): New.
1830 (i387_register_to_value, i387_value_to_register): Update comments.
1831 * i387-tdep.h (i387_convert_register_p): Declare.
1832 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1833 builtin_type_ia64_ext.
1834 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1835 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1836 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1837 builtin_type_m68881_ext.
1838 (m68k_register_to_value, m68k_value_to_register): Update comments.
1842 * target-memory.c (claim_memory): Propagate baton for split memory
1848 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1853 * symtab.c (find_line_symtab): scan through psymtabs
1854 when exact_match is zero.
1858 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1859 (deal_with_atomic_sequence): New.
1860 (mips_software_single_step): Use it.
1865 * configure.ac: Modify $LIBINTL before the BFD check.
1866 * configure: Regenerated.
1870 * buildsym.c (free_pending_blocks): Remove commented-out code.
1871 (make_blockvector): Likewise. Re-use free_pending_blocks.
1872 (end_symtab): Remove commented-out code.
1876 * top.c (command_loop): Fix output for shrinkage.
1880 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1881 (exp): Remove and document function-like casts.
1885 * cp-support.c: Include "safe-ctype.h".
1886 (cp_already_canonical): New function.
1887 (cp_canonicalize_string): Use it. Return NULL for already canonical
1889 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1890 (cp_func_name, remove_params): Likewise.
1891 (cp_find_first_component_aux): Use ISSPACE.
1892 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1894 * cp-name-parser.y (ALLOC_CHUNK): Define.
1895 (struct demangle_info): Add PREV and NEXT. Increase the size of
1897 (d_grab): Convert to a function.
1898 (allocate_info): Rewrite.
1899 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1900 strlen. Update call to allocate_info. Do not free it on failure.
1901 (main): Update calls to cp_demangled_name_to_comp.
1902 * Makefile.in (cp-support.o): Update.
1906 * std-regs.c (value_of_builtin_frame_fp_reg)
1907 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1908 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1909 current architecture by frame_info.
1913 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1918 * infcmd.c (default_print_registers_info, print_return_value)
1919 (print_vector_info, print_float_info): Replace current_gdbarch by
1921 (registers_info): Use get_frame_arch to get at the current
1922 architecture by frame_info.
1926 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1927 get_regcache_arch to get at the current architecture by regcache.
1931 * target.c (debug_print_register): Use get_regcache_arch to get at the
1932 current architecture by regcache.
1936 * dwarf2read.c (read_file_scope): Add a comment.
1937 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1938 (read_enumeration_type, process_enumeration_scope, read_array_type)
1939 (read_typedef, read_base_type, read_subrange_type)
1940 (read_unspecified_type): Use dwarf2_name.
1944 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1945 * dwarf2read.c (dwarf2_free_objfile): New.
1946 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1947 * symfile.h (dwarf2_free_objfile): Declare.
1951 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1955 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1956 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1957 default dwarf2_frame_set_init_reg function.
1961 * NEWS: Mention native MinGW configuration.
1965 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1966 of "macro" column throughout the file. Remove (empty) "macro" entry
1967 of all gdbarch functions.
1971 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1972 * gdbarch.c, gdbarch.h: Regenerate.
1973 * dbxread.c (find_stab_function_addr): Define unconditionally.
1974 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1975 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1976 (end_psymtab): Likewise.
1977 (process_one_symbol): Likewise.
1978 * mdebugread.c (parse_partial_symbols): Likewise.
1980 * symtab.h (struct minimal_symbol): Always define "filename" member.
1981 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1982 * minsyms.c (lookup_minimal_symbol): Likewise.
1983 * symmisc.c (dump_msymbols): Likewise.
1985 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1986 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1987 * config/i386/tm-i386sol2.h: Remove file.
1988 * config/i386/tm-linux.h: Remove file.
1989 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1990 set_gdbarch_sofun_address_maybe_missing.
1991 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1993 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1994 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1995 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1996 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1997 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1998 * config/powerpc/tm-ppc-eabi.h: Remove file.
1999 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2000 set_gdbarch_sofun_address_maybe_missing.
2002 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2003 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2004 * config/sparc/tm-sol2.h: Remove file.
2005 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2006 set_gdbarch_sofun_address_maybe_missing.
2007 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2011 * gdbarch.sh (static_transform_name): New gdbarch callback.
2012 * gdbarch.c, gdbarch.h: Regenerate.
2013 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2014 instead of STATIC_TRANSFORM_NAME.
2015 * mdebugread.c (parse_partial_symbols): Likewise.
2016 * stabsread.c (define_symbol): Likewise.
2017 * xcoffread.c (scan_xcoff_symtab): Likewise.
2019 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2020 (IS_STATIC_TRANSFORM_NAME): Remove.
2021 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2022 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2023 (i386_sol2_init_abi): Install it.
2025 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2026 (IS_STATIC_TRANSFORM_NAME): Remove.
2027 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2028 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2029 (sparc32_sol2_init_abi): Install it.
2030 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2031 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2035 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2036 (mips_n32n64_return_value, mips_o32_return_value)
2037 (mips_o64_return_value): Update calls to mips_xfer_register.
2041 * frame.c (frame_unwind_unsigned_register): Delete.
2042 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2043 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2045 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2046 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2047 mt-tdep.c: Replace frame_unwind_unsigned_register with
2048 frame_unwind_register_unsigned.
2052 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2053 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2054 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2056 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2057 if not building on Cygwin.
2058 (win32_make_so, handle_output_debug_string, handle_exception)
2059 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2060 (win32_attach): Only fallback to Cygwin pids if building on
2062 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2064 (win32_create_inferior): Disable starting the inferior through a
2065 shell, environment var processing and tty handling if not building
2067 (cygwin_pid_to_str): Rename to ...
2068 (win32_pid_to_str): ... this.
2069 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2070 and "cygwin-exceptions" commands if not building on Cygwin.
2074 * doc/gdb.texinfo: Add TSIZE definition, removed
2075 statement about unbounded arrays being unimplemented.
2076 * m2-valprint.c (m2_print_array_contents): New function.
2077 (m2_print_unbounded_array): New function.
2078 (m2_print_array_contents): New function.
2079 * m2-typeprint.c (m2_unbounded_array): New function.
2080 (m2_is_unbounded_array): New function.
2081 (m2_print_type): Test for unbounded array when walking
2083 * m2-lang.h: Added extern m2_is_unbounded_array.
2084 * m2-lang.c (evaluate_subexp_modula2): New function.
2085 (exp_descriptor_modula2): New structure.
2086 (m2_language_defn): Use exp_descriptor_modula2.
2087 * m2-exp.y: Added TSIZE and binary subscript.
2091 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2096 * m32r-tdep.c (decode_prologue): Sign extend offset for
2098 (m32r_frame_unwind_cache): Likewise.
2102 * rs6000-tdep.c (skip_prologue): Restore comment with
2103 function description to its proper place.
2107 * NEWS: Mention gdbserver PowerPC improvements.
2111 * features/Makefile (WHICH): Add PowerPC register definitions.
2112 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2113 (rs6000/powerpc-64-expedite): New macros.
2114 ($(outdir)/%.dat): Handle subdirectories.
2115 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2116 regformats/rs6000/powerpc-e500.dat: New generated files.
2120 * ppc-linux-nat.c (ppc_linux_read_description): New.
2121 (_initialize_ppc_linux_nat): Set to_read_description.
2122 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2126 * NEWS: Document target described register support for PowerPC.
2127 * ppc-tdep.h: Remove ppc_spr constants.
2128 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2129 ppc_builtin_type_vec128 members.
2130 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2131 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2132 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2133 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2134 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2135 * rs6000-tdep.c: Include preparsed descriptions.
2136 (init_sim_regno_table): Do not iterate over pseudo registers.
2137 Look up segment registers by name. Use sim_spr_register_name
2139 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2140 (rs6000_builtin_type_vec128): Delete.
2141 (rs6000_register_name): Only handle SPE pseudo registers and upper
2142 halves. Call tdesc_register_name for everything else.
2143 (rs6000_register_type): Delete. Replace with...
2144 (rs6000_pseudo_register_type): ...this new function. Only handle
2145 SPE pseudo registers.
2146 (rs6000_register_reggroup_p): Delete. Replace with...
2147 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2148 handle SPE pseudo registers.
2149 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2151 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2153 (e500_register_reggroup_p): Delete.
2154 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2155 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2156 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2157 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2158 (registers_powerpc, registers_403, registers_403GC, registers_505)
2159 (registers_860, registers_601, registers_602, registers_603)
2160 (registers_604, registers_750, registers_7400, registers_e500): Delete
2162 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2164 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2165 (variants): Delete outdated comment. Use standard target descriptions
2166 instead of "struct reg" arrays.
2167 (init_variants): Delete.
2168 (rs6000_gdbarch_init): Do not guess word size from the BFD
2169 architecture if we have a target description. Select a variant
2170 before creating a new architecture. Use the variant's target
2171 description if the target did not define a register layout.
2172 Validate target-supplied registers. Reject mismatches. Use
2173 fixed register numbers and new constants instead of magic
2174 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2175 (_initialize_rs6000_tdep): Initialize the preparsed target
2177 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2179 (tdesc_find_register_early): New function.
2180 (tdesc_numbered_register): Use it.
2181 (tdesc_register_size): New function.
2182 (tdesc_use_registers): Take a target_desc argument. Do not use
2183 gdbarch_target_desc.
2184 * target-descriptions.h (tdesc_use_registers): Update prototype
2186 (tdesc_register_size): New prototype.
2187 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2188 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2189 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2190 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2191 (rs6000-tdep.o): Update.
2192 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2193 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2194 * mips-tdep.c (mips_gdbarch_init): Likewise.
2198 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2199 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2200 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2201 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2202 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2203 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2204 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2209 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2210 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2211 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2212 feature descriptions for standard PowerPC register sets.
2214 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2215 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2216 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2217 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2218 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2219 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2220 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2221 target descriptions for PowerPC processors.
2225 * target-descriptions.c (tdesc_predefined_types): New.
2226 (tdesc_named_type): Use it.
2227 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2228 (_intialize_target_descriptions): Register "maint print c-tdesc".
2229 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2230 (cfiles, %.c): New rules.
2231 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2232 features/mips64-linux.c: New generated files.
2234 * arm-linux-nat.c: Include preparsed description instead of
2236 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2237 (arm_linux_read_description): New function.
2238 (_initialize_arm_linux_nat): Set to_read_description instead of
2239 to_xfer_partial. Initialize preparsed description.
2240 * config/arm/linux.mh (TDEP_XML): Delete.
2241 * mips-linux-nat.c: Include preparsed descriptions instead of
2243 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2244 (mips_linux_read_description): New function.
2245 (_initialize_mips_linux_nat): Set to_read_description instead of
2246 to_xfer_partial. Initialize preparsed description.
2247 * config/mips/linux.mh (TDEP_XML): Delete.
2248 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2249 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2250 (mips64_linux_c): New macros.
2251 (arm-linux-nat.o, mips-linux-nat.o): Update.
2255 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2256 Replace xasprintf by xstrprintf.
2257 symfile-mem.c (add_vsyscall_page): Ditto.
2261 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2262 replacing use of global current_gdbarch.
2263 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2264 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2266 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2267 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2268 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2269 (ia64_sigtramp_frame_cache): Update caller.
2273 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2274 (extract_return_value, store_return_value): Remove.
2275 (return_value): Remove default implementation.
2276 * gdbarch.c, gdbarch.h: Regenerate.
2278 * stack.c (return_command): Remove compatibility hack.
2279 * arch-utils.c (legacy_return_value): Remove.
2280 * arch-utils.h (legacy_return_value): Likewise.
2282 * arch-utils.c (always_use_struct_convention): Remove.
2283 * arch-utils.h (always_use_struct_convention): Likewise.
2284 * value.c (generic_use_struct_convention): Remove.
2285 * defs.h (generic_use_struct_convention): Likewise.
2289 * avr-tdep.c (avr_return_value): New function.
2290 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2291 set_gdbarch_extract_return_value.
2293 * fvr-tdep.c (frv_return_value): New function.
2294 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2295 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2296 and set_gdbarch_deprecated_use_struct_convention.
2298 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2299 Add check for structure, union, or array types.
2300 (ia64_extract_return_value): Make static.
2301 (ia64_store_return_value): Make static. Support multi-word values.
2302 (ia64_return_value): New function.
2303 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2304 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2305 and set_gdbarch_deprecated_use_struct_convention.
2309 * solib-target.c (solib_target_parse_libraries)
2310 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2314 * serial.h (struct serial_ops): Document read_prim to return zero
2316 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2317 read_prim returns zero, not SERIAL_TIMEOUT.
2321 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2322 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2323 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2324 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2326 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2327 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2328 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2329 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2330 * config/alpha/tm-alpha.h: Remove file.
2334 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2335 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2337 * config/pa/tm-hppa.h: Delete file.
2338 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2339 * config/pa/hppahpux.mt: Likewise.
2340 * config/pa/hppa.mt: Likewise.
2341 * config/pa/linux.mt: Likewise.
2342 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2346 * config/arm/nm-nbsdaout.h: Remove file.
2347 * config/nm-nbsdaout.h: Likewise.
2348 * config/nm-nbsd.h: Likewise.
2352 * block.h (struct block): Remove "gcc_compile_flag" member.
2353 (BLOCK_GCC_COMPILED): Remove.
2354 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2355 * buildsym.c (finish_block): Do not set it.
2356 * symmisc.c (dump_symtab_1): Do not dump it.
2358 * value.h (using_struct_return): Remove "gcc_p" argument.
2359 * value.c (using_struct_return): Likewise.
2360 * eval.c (evaluate_subexp_standard): Adapt callers.
2361 * infcall.c (call_function_by_hand): Likewise.
2362 * stack.c (return_command): Likewise.
2363 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2365 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2366 * gdbarch.c, gdbarch.h: Regenerate.
2367 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2368 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2369 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2370 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2371 (push_dummy_code, call_function_by_hand): Adapt callers.
2375 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2376 (finish_command_continuation, finish_command): Adapt callers.
2380 * infcall.c (call_function_by_hand): Remove special handling
2381 for HP aCC compiled code.
2385 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2386 reference. Fix endianness bugs.
2387 (cris_reg_struct_has_address): Remove.
2388 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2389 and set_gdbarch_deprecated_use_struct_convention calls.
2391 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2392 * gdbarch.c, gdbarch.h: Regenerate.
2393 * infcall.c (call_function_by_hand): Remove handling of
2394 deprecated_reg_struct_has_addr.
2399 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2400 checking watchpoint resources.
2404 * memattr.c (inaccessible_by_default): Change the initial
2410 * coffread.c (read_one_sym): Check for read errors.
2414 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2415 instead of "Linux 2.6.19" in comment.
2416 (linux_xfer_partial): Use "GNU/Linux target" instead of
2417 "Linux target" in comment.
2418 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2419 (m68k_linux_get_sigtramp_info): Likewise.
2423 * MAINTAINERS (language support): List Joel and Paul as
2428 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2430 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2431 not set DEPRECATED_TM_FILE.
2432 * config/arm/tm-arm.h: Delete file.
2436 * MAINTAINERS (Write After Approval): Add self.
2440 * buildsym.c (record_line): Remove empty lines followed by
2441 end-of-sequence markers.
2445 * configure.tgt: Recognize fido-*-elf.
2453 * stack.c (print_frame_args, frame_info, return_command): Use
2454 get_regcache_arch or get_frame_arch to get at the current architecture
2455 by regcache or by frame, respectively.
2459 * rs6000-nat.c (fetch_register, store_register)
2460 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2461 get_regcache_arch to get at the current architecture by regcache.
2463 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2464 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2465 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2466 current_gdbarch by gdbarch.
2467 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2468 (rs6000_value_to_register): Use get_frame_arch to get at the current
2469 architecture by frame_info.
2473 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2474 get_regcache_arch to get at the current architecture by regcache.
2476 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2477 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2478 get_regcache_arch to get at the current architecture by regcache.
2480 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2481 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2482 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2483 current architecture by regcache.
2487 * remote-mips.c (mips_wait, mips_fetch_registers)
2488 (mips_store_registers): Use get_regcache_arch to get at the
2489 current architecture by regcache.
2491 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2492 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2493 get at the current architecture by regcache.
2494 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2495 architecture by frame_info.
2497 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2498 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2499 the current architecture by regcache.
2501 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2502 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2503 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2504 current architecture by frame_info.
2505 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2506 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2507 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2508 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2509 get at the current architecture by regcache.
2511 * mips-linux-nat.c (mips_linux_register_addr)
2512 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2513 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2514 (mips64_linux_regsets_fetch_registers)
2515 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2516 the current architecture by regcache.
2518 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2519 get at the current architecture by frame_info.
2523 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2524 current architecture by regcache.
2525 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2526 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2527 (mips_stub_frame_cache, mips_read_fp_register_single)
2528 (mips_read_fp_register_double, mips_print_fp_register)
2529 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2530 at the current architecture by frame_info.
2531 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2532 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2533 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2534 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2535 (mips_o32_push_dummy_call, mips_o32_return_value)
2536 (mips_o64_push_dummy_call, mips_o64_return_value)
2537 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2542 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2543 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2544 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2545 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2546 (xtensa_register_write_masked, xtensa_register_read_masked)
2547 (xtensa_supply_gregset, xtensa_store_return_value)
2548 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2549 current architecture by regcache.
2550 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2551 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2552 architecture by frame_info.
2556 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2557 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2558 out of loop. Do not set cache->frameoffset.
2559 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2560 frameoffset. Simplify framesize.
2561 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2563 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2567 * target.c (update_current_target): Call setup_target_debug.
2568 (push_target): Do not call it here.
2572 * MAINTAINERS: Update my email address.
2576 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2578 (xtensa_pseudo_register_read)
2579 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2580 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2581 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2582 (xtensa_pseudo_register_read)
2583 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2584 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2585 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2586 (xtensa_frame_prev_register): NUM_AREGS.
2587 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2588 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2589 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2590 (xtensa_supply_gregset, xtensa_frame_cache)
2591 (xtensa_frame_prev_register): WS_REGNUM.
2592 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2593 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2594 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2595 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2596 (xtensa_register_reggroup_p): REGMAP.
2597 (call0_track_op): LITBASE_REGNUM.
2598 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2599 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2600 (xtensa_frame_prev_register, AREG_NUMBER)
2601 (xtensa_register_type): AR_BASE.
2602 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2603 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2604 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2605 (xtensa_frame_cache, xtensa_frame_prev_register)
2606 (xtensa_extract_return_value, xtensa_store_return_value)
2607 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2608 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2609 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2610 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2611 (call0_frame_cache): A1_REGNUM.
2612 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2613 (xtensa_push_dummy_call): A4_REGNUM.
2614 (ARGS_FIRST_REG): A6_REGNUM.
2615 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2616 (xtensa_frame_prev_register): A15_REGNUM.
2617 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2618 them in the appropriate source file:
2619 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2620 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2621 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2622 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2623 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2624 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2625 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2626 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2627 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2628 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2629 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2633 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2634 the current architecture by frame_info.
2635 (h8300_frame_prev_register
2636 (h8300_print_register): Replace current_gdbarch by gdbarch.
2637 (h8300_print_registers_info, h8300_register_type)
2638 (h8300_register_type): Likewise.
2642 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2643 the current architecture by regcache.
2644 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2645 (i386_linux_fetch_inferior_registers)
2646 (i386_linux_store_inferior_registers): Likewise.
2647 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2648 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2649 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2650 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2651 (i386_extract_return_value, i386_store_return_value): Likewise.
2652 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2653 the current architecture by frame_info.
2654 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2655 (i386_register_to_value, i386_value_to_register): Likewise.
2659 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2660 the current architecture by regcache.
2661 (monitor_store_register, monitor_store_registers): Likewise.
2665 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2666 the current architecture by regcache.
2670 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2675 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2676 architecture by frame.
2677 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2678 (inside_main_func, frame_sp_unwind): Likewise.
2682 * solib-svr4.c (enable_break): Add the dynamic linker also if
2687 * MAINTAINERS (Write After Approval): Add self.
2691 * stabsread.c (read_huge_number): Initialize local variable to 0.
2695 * p-lang.h (pascal_main_name): Add declaration.
2696 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2697 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2698 (pascal_main_name): New function.
2699 * symtab.c: Include p-lang.h.
2700 (find_main_name): Add call to pascal_main_name.
2701 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2705 * stabsread.c (read_huge_number): Fix handling of octal
2706 representation when the bit width is known.
2707 (read_range_type): Record unsigned integral types with their size,
2708 when the type size is known.
2712 * MAINTAINERS (Write After Approval): Add self.
2716 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2717 Replace asprintf by xstrprintf.
2721 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2722 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2726 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2727 <sys/wait.h> include before last commit.
2731 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2735 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2736 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2737 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2738 (store_regs_user_thread, store_regs_kernel_thread): Use
2739 get_regcache_arch or get_frame_arch to get at the current architecture
2740 by regcache or by frame, respectively.
2744 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2745 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2746 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2747 (sh64_print_register, sh64_media_print_registers_info)
2748 (sh64_compact_print_registers_info, sh64_unwind_sp)
2749 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2750 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2751 (sh64_frame_prev_register): Use FRAME to recognize current
2756 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2757 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2758 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2759 current_gdbarch by gdbarch.
2760 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2761 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2762 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2763 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2764 recognize current architecture.
2768 * remote.c (init_remote_state, fetch_register_using_p)
2769 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2770 (store_register_using_P, store_registers_using_G)
2771 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2772 get at the current architecture by regcache or by frame, respectively.
2776 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2777 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2778 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2779 get_regcache_arch or get_frame_arch to get at the current architecture
2780 by regcache or by frame, respectively.
2781 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2782 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2783 (store_register, old_store_inferior_registers, supply_gregset)
2784 (supply_fpregset, fill_fpregset): Likewise.
2785 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2786 Replace current_gdbarch by gdbarch.
2790 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2791 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2792 get_frame_arch to get at the current architecture by regcache or by
2793 frame, respectively.
2797 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2798 Replace current_gdbarch by gdbarch.
2799 * ia64-tdep.c (ia64_frame_prev_register
2800 (ia64_sigtramp_frame_prev_register)
2801 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2802 get_frame_arch to get at the current architecture by regcache or by
2803 frame, respectively.
2804 * ia64-linux-nat.c (ia64_linux_fetch_register)
2805 (ia64_linux_fetch_registers, ia64_linux_store_register)
2806 (ia64_linux_store_registers): Likewise.
2810 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2811 current_gdbarch by gdbarch.
2812 * hppa-linux-nat.c (fetch_register, store_register)
2813 (hppa_linux_fetch_inferior_registers)
2814 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2815 get_frame_arch to get at the current architecture by regcache or by
2816 frame, respectively.
2817 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2818 (hppa_hpux_unwind_adjust_stub): Likewise.
2819 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2820 (hppa_hpux_fetch_inferior_registers)
2821 (hppa_hpux_store_inferior_registers): Likewise.
2825 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2826 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2827 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2828 or get_frame_arch to get at the current architecture by regcache or by
2829 frame, respectively.
2830 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2831 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2832 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2833 current_gdbarch by gdbarch.
2837 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2838 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2839 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2840 get at the current architecture by regcache or by·frame, respectively.
2841 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2846 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2847 Use get_regcache_arch or get_frame_arch to get at the current
2848 architecture by regcache or by frame, respectively.
2849 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2850 * amd64-nat.c (amd64_supply_native_gregset)
2851 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2855 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2857 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2858 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2859 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2860 get_frame_arch to get at the current architecture by regcache or by
2861 frame, respectively.
2862 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2866 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2867 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2868 current_gdbarch by gdbarch.
2869 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2873 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2874 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2875 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2876 get_frame_arch to get at the current architecture by regcache or by
2877 frame, respectively.
2881 * findvar.c (value_of_register, locate_var_value): Use
2882 get_regcache_arch or get_frame_arch to get at the current architecture
2883 by regcache or by frame, respectively.
2884 * findvar.c (default_value_from_register, value_from_register): Replace
2885 current_gdbarch by gdbarch.
2889 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2893 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2894 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2898 * remote.c (get_offsets): Only call free_symfile_segment_data if
2903 * objc-exp.y: ARI fix: remove 4 PARAMS.
2907 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2908 news. Mention XML support for M68K in GDB 6.7.
2912 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2914 (init_vector_type): Use builtin_type_int32.
2918 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2919 size to enable bi-arch generate-core-file support.
2923 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2927 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2929 * tui/tui-win.c (tui_initialize_win): New function for
2930 initializing tui's SIGWINCH signal handler.
2931 * tui/tui-win.h (tui_initialize_win): Declare.
2935 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2936 pointer to uintptr_t before casting to CORE_ADDR.
2940 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2944 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2945 * ser-mingw.c (enum select_thread_state): New type.
2946 (struct ser_console_state): Add have_started and thread_state.
2947 (select_thread_wait): New function.
2948 (thread_fn_type): New type.
2949 (create_select_thread): New function.
2950 (destroy_select_thread): Likewise.
2951 (start_select_thread): Likewise.
2952 (stop_select_thread): Likewise.
2953 (console_select_thread): Use new functions.
2954 (pipe_select_thread): Likewise.
2955 (file_select_thread): Likewise.
2956 (ser_console_wait_handle): Likewise.
2957 (ser_console_done_wait_handle): Likewise.
2958 (ser_console_close): Likewise.
2959 (free_pipe_state): Likewise.
2960 (pipe_wait_handle): Likewise.
2961 (pipe_done_wait_handle): Likewise.
2962 (struct net_windows_state): Derive from ser_console_state.
2963 (net_windows_select_thread): Use new functions.
2964 (net_windows_wait_handle): Likewise.
2965 (net_windows_done_wait_handle): Likewise.
2966 (net_windows_close): Likewise.
2970 * inflow.c (terminal_ours_1): Remove useless line.
2974 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2976 (mips_print_fp_register): Correct check for even FP registers.
2977 (mips_virtual_frame_pointer): New function.
2978 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2982 * value.h (lookup_only_internalvar): New prototype.
2983 (create_internalvar): Likewise.
2984 * value.c (lookup_only_internalvar): New function.
2985 (create_internalvar): Likewise.
2986 (lookup_internalvar): Use new lookup_only_internalvar and
2987 create_internalvar functions.
2988 * parse.c (write_dollar_variable): Look up $ symbols in internal
2989 table first rather than last.
2993 * linux-nat.c (linux_nat_new_thread): New variable.
2994 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2995 linux_nat_switch_fork.
2996 (lwp_list): Make public.
2997 (add_lwp): Call linux_nat_new_thread.
2998 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3000 (resume_callback): Clear lp->siginfo. Remove unused variable.
3001 (linux_nat_resume): Assert that the LWP list is already initialized.
3003 (save_siginfo): New.
3004 (stop_wait_callback, linux_nat_wait): Call it.
3005 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3006 * linux-nat.h (struct lwp_info): Add siginfo.
3007 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3010 * amd64-linux-nat.c (amd64_linux_dr): New.
3011 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3012 (amd64_linux_dr_set): Take a PTID argument.
3013 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3014 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3015 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3016 (amd64_linux_new_thread): New.
3017 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3018 * i386-linux-nat.c (i386_linux_dr): New.
3019 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3020 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3021 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3022 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3023 (i386_linux_new_thread): New.
3024 (i386_linux_resume): Remove unnecessary PID check.
3025 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3026 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3027 (fetch_debug_register, fetch_debug_register_pair): Delete.
3028 (debug_registers): New.
3029 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3030 ALL_LWPS and debug_registers.
3031 (ia64_linux_new_thread): New.
3032 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3033 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3034 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3035 (saved_dabr_value): New.
3036 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3038 (ppc_linux_new_thread): New.
3039 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3040 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3041 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3042 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3044 (s390_fix_watch_points): Take a PTID argument.
3045 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3046 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3051 * breakpoint.c (watchpoints_triggered): New.
3052 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3053 Check watchpoint_triggered instead. Combine handling for software
3054 and hardware watchpoints. Do not use target_stopped_data_address
3055 here. Always check a watchpoint if its scope breakpoint triggers.
3056 Do not stop for thread or overlay events. Improve check for
3057 triggered watchpoints without a value change.
3058 (watch_command_1): Insert the scope breakpoint first. Link the
3059 scope breakpoint to the watchpoint.
3060 * breakpoint.h (enum watchpoint_triggered): New.
3061 (struct breakpoint): Add watchpoint_triggered.
3062 (bpstat_stop_status): Update prototype.
3063 (watchpoints_triggered): Declare.
3064 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3065 (stepped_after_stopped_by_watchpoint): Delete.
3066 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3067 local. Handle infwait_step_watch_state. Update calls to
3068 bpstat_stop_status. Use watchpoints_triggered to check
3070 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3071 (remote_stopped_data_address): Do not check it.
3075 * configure.ac: Add $LIBINTL when testing libbfd.
3076 * configure: Regenerated.
3080 * NEW: Mention pending breakpoint changes and
3081 support for breakpoints at multiple locations.
3085 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3086 (arm_linux_init_abi): Use it.
3087 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3088 condition correctly.
3089 * arm-tdep.h (arm_get_next_pc): Declare.
3090 * Makefile.in (arm-linux-tdep.o): Update.
3094 * varobj.c (install_new_value): Don't
3095 call value_get_print_value when a value is
3096 lazy. Update the print_value member in a
3101 * breakpoint.c (create_breakpoint): Set
3102 condition on each location, not on the first
3103 location of breakpoint.
3107 * remote.c (getpkt_sane): Fix error message. No animals were
3108 harmed in the making of this debugger.
3112 * p-typeprint.c: Fix 11 ARI reported problems.
3113 (pascal_print_type): Fix 4 operator at end of line.
3114 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3115 using strncmp function.
3116 (pascal_type_print_base): Fix 2 operator at end of line.
3117 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3118 using strncmp function.
3123 * Fix PR pascal/2231
3124 dwarf2read.c (read_subroutine_type):
3125 All pascal functions are prototyped.
3129 * Fix PR pascal/2283
3130 p-valprint.c (pascal_val_print): correct current language check.
3131 Also print array of char as strings.
3137 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3141 * p-exp.y: Fix 12 ARI reported problems.
3142 (name_not_typename): Fix 2 operator at end of line issues.
3143 (yylex): Fix 3 operator at end of line issues.
3144 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3149 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3150 rules return composite types in registers as appropriate.
3154 * symfile.h (struct symfile_segment_data): Doc fixes.
3155 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3156 Assert that we were passed some loaded segment addresses,
3157 and that sections' segment numbers are valid.
3158 Simplify offset calculation.
3159 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3160 strategy, and set num_segments correctly. Delete redundant
3161 assignments to do_sections.
3165 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3169 * breakpoint.c (remove_sal): New.
3170 (expand_line_sal_maybe): New.
3171 (create_breakpoints): Call expand_line_sal_maybe.
3172 (clear_command): Add comment.
3173 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3174 * linespec.c (decode_indirect): Set explicit_pc to 1.
3175 (decode_all_digits): Set explicit_line to 1.
3176 (append_expanded_sal): New.
3177 (expand_line_sal): New.
3178 * linespec.h (expand_line_sal): Declare.
3179 * symtab.c (init_sal): Initialize explicit_pc
3181 * symtab.h (struct symtab_and_line): New fields
3182 explicit_pc and explicit_line.
3186 * infcall.c (call_function_by_hand): Handle language-specific
3187 pass and return by reference.
3189 * cp-abi.c (cp_pass_by_reference): New.
3190 * cp-abi.h (cp_pass_by_reference): Declare.
3191 (struct cp_abi_ops): Add pass_by_reference.
3192 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3193 (init_gnuv3_ops): Set pass_by_reference.
3195 * language.c (language_pass_by_reference): New.
3196 (default_pass_by_reference): New.
3197 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3198 default_pass_by_reference.
3199 * langauge.h (struct language_defn): Add la_pass_by_reference.
3200 (language_pass_by_reference, default_pass_by_reference): Declare.
3201 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3202 * c-lang.c (c_language_defn, asm_language_defn)
3203 (minimal_language_defn): Likewise.
3204 (cplus_language_defn): Add cp_pass_by_reference.
3205 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3206 * jv-lang.c (java_language_defn): Likewise.
3207 * m2-lang.c (m2_language_defn): Likewise.
3208 * objc-lang.c (objc_language_defn): Likewise.
3209 * p-lang.c (pascal_language_defn): Likewise.
3210 * scm-lang.c (scm_language_defn): Likewise
3214 Allow a code breakpoint to have several locations
3216 * breakpoint.h (enum enable_state): Remove the
3217 bp_shlib_disabled enumerator.
3218 (struct bp_location): New members shlib_disabled,
3219 global_next, enabled and function_name.
3220 Rename pending to condition_not_parsed.
3222 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3223 (ALL_BP_LOCATIONS_SAFE): Likewise.
3224 (breakpoint_enabled): Don't check for pending.
3225 (condition_command): Free and update all locations of
3227 (insert_bp_location): Adjust.
3228 (software_breakpoint_inserted_here_p): Don't care
3229 if breakpoint is enabled, as soon as it's inserted.
3230 (print_it_typical): Print bpstat's location, not
3231 bpstat's breakpoint's location.
3232 (bpstat_stop_status): Iterate over all locations, not
3234 (print_breakpoint_location): New.
3235 (print_one_breakpoint): Renamed to
3236 (print_one_breakpoint_location): ...this. Take
3237 parameters to describe which location is being
3238 printed. Modify code to properly print header
3239 for several locations and individual locations.
3240 (print_one_breakpoint): Print all locations.
3241 (breakpoint_has_pc): New.
3242 (describe_other_breakpoints): Use the above.
3243 (check_duplicates): Renamed to...
3244 (check_duplicates_for): .. this.
3245 (check_duplicates): Use check_duplicates_for.
3246 (allocate_bp_location): Adjust.
3247 (set_raw_breakpoint_without_location): New,
3248 extracted from set_raw_breakpoint.
3249 (set_breakpoint_location_function): New.
3250 (set_raw_breakpoint): Use
3251 set_raw_breakpoint_without_location.
3252 (make_breakpoint_permanent): Mark all locations
3254 (disable_breakpoints_in_shlibs): Iterate over
3256 (disable_breakpoints_in_unloaded_shlib): Likewise.
3257 (re_enable_breakpoints_in_shlibs): Likewise.
3258 (mention): Say "pending" when breakpoint has
3259 zero locations. If breakpoint has more than one
3261 (add_location_to_breakpoint): New.
3262 (create_breakpoint): Accept symtabs_and_lines, not
3263 symtab_and_line. Pass extra sals to
3264 add_location_to_breakpoint.
3265 (create_breakpoints): Pass symtabs_and_lines to
3267 (break_command_1): Make pending breakpoints
3268 have zero locations.
3269 (do_captured_breakpoint): Remove wrong allocation.
3270 (clear_command): Iterate over all locations.
3271 (unlink_locations_from_global_list): Renamed
3272 from unlink_location_from_global_list. Remove
3274 (delete_breakpoint): Remove all locations.
3275 Iterate over all locations when deciding which
3276 other location to re-enable.
3277 (all_locations_are_pending): New.
3278 (update_breakpoint_locations): Renamed from
3279 update_breakpoint_location. Try to match old
3280 and new locations using names of containing
3282 (breakpoint_re_set_one): Adjust.
3283 (find_location_by_number): New.
3284 (disable_command): Allow disabling individual location.
3285 (enable_command): Allow enabling individual location.
3286 * breakpoint.c: Adjust all uses of breakpoint's
3287 enable state to for bp_shlib_disabled change.
3291 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3292 (resolve_pending_breakpoint): Remove.
3293 (re_enable_breakpoints_in_shlibs): Remove.
3294 (unlink_locations_from_global_list): New.
3295 (update_breakpoint_locations): New.
3296 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3297 Use parse_condition and update_breakpoint_location to
3298 reset breakpoint. Ignore 'symbol not found' error from
3300 (breakpoint_re_set): Don't emit newline before the
3301 reason why breakpoint is not reset.
3302 (do_enable_breakpoint): Don't specially process pending
3304 (free_bp_location): New.
3305 (break_command_1): For pending breakpoints, initialize
3306 all fields of a sal with zeroes.
3307 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3308 * infcmd.c (post_create_inferior): Don't call
3309 re_enable_breakpoints_in_shlibs.
3310 * infrun.c (handle_inferior_event): Likewise.
3311 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3312 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3313 * win32-nat.c (get_win32_debug_event): Likewise.
3317 * breakpoint.c (create_breakpoint): Split from
3318 create_breakpoints, implementing most of its logic.
3319 Take just a single sal, single address string and
3320 single condition. Do not take parsed condition at
3322 (create_breakpoints): Just call create_breakpoint
3324 (find_condition_and_thread): New.
3325 (break_command_1): Use find_condition_and_thread.
3326 Do not keep parsed conditions.
3327 (do_captured_breakpoint): Don't convert
3328 condition string to struct expression.
3332 * breakpoint.h (struct breakpoint): Move the cond
3334 (struct bp_location): Here.
3335 * breakpoint.c (condition_command, bpstat_stop_status)
3336 (print_one_breakpoint, allocate_bp_location)
3337 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3338 (create_exec_event_catchpoint, create_breakpoints)
3339 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3340 (create_ada_exception_breakpoint, set_breakpoint_sal)
3341 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3342 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3346 Associate bp_stat with bp_location, not breakpoint.
3347 * breakpoint.h (breakpoint_at): Change type
3349 * breakpoint.c (bpstat_alloc): Take bp_location,
3351 (bpstat_find_breakpoint): Look at bpstat's location's
3352 owner, not at bpstat->breakpoint_at.
3353 (bpstat_find_step_resume_breakpoint): Likewise.
3354 (bpstat_num): Likewise.
3355 (print_it_typical): Likewise.
3356 (print_bp_stop_message): Likewise.
3357 (watchpoint_check): Likewise.
3358 (bpstat_what): Likewise.
3359 (bpstat_get_triggered_catchpoints): Likewise.
3360 (breakpoint_auto_delete): Likewise.
3361 (delete_breakpoint): Likewise.
3362 (bpstat_stop_status): Pass location, not breakpoint,
3363 to bpstat_alloc. Look at bpstat's location's
3364 owner, not at bpstat->breakpoint_at.
3368 * macrotab.h (new_macro_table): Document that removing information
3369 from an obstack/bcache-managed macro table leaks memory.
3370 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3371 that data is never freed in obstack/bcache-managed macro tables,
3372 just leak the storage.
3373 (macro_undef): If we're undefining a macro at exactly the same
3374 source location that we defined it, simply remove the definition
3379 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3380 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3381 Adjust the struct sym_fns object accordingly by setting
3382 the new field to NULL.
3383 * xcoffread.c (aix_process_linenos): Make static.
3384 (xcoff_sym_fns): Set new field to aix_process_linenos.
3385 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3386 by call to new the new sym_fns sym_read_linetable function.
3387 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3388 * config/rs6000/tm-rs6000.h: Delete.
3393 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3394 rules do not treat composite types specially.
3398 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3399 (mips16_in_function_epilogue_p): Likewise.
3400 (mips_in_function_epilogue_p): Likewise.
3401 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3405 * configure.ac: Add check for "etext".
3406 * configure, config.in: Regenerate.
3407 * maint.c (TEXTEND): Only define if either _etext or etext
3409 Disable the profiling functionality if TEXTEND is not defined.
3413 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3414 address register. Correct the call to frame_id_build.
3415 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3420 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3421 the linetable past the function end.
3425 * MAINTAINERS: Update my email address.
3429 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3430 (inf_ttrace_delete_dying_threads_callback): New function.
3431 (inf_ttrace_resume): After resuming the execution, iterate over
3432 the dying threads to delete them for the thread list.
3433 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3434 mark the corresponding thread as dying instead of removing it
3435 from the thread list.
3436 (inf_ttrace_thread_alive): return 0 for dying threads.
3440 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3441 that return_frame is not null.
3445 * solib-svr4.c: Add include of "auxv.h".
3446 (enable_break): Use the AT_BASE auxiliary entry if available.
3447 * Makefile.in (solib-svr4.o): Update dependencies.
3451 * NEWS: Create a new section for the next release branch.
3452 Rename the section of the current branch, now that it has
3457 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3458 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3462 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3463 * mi/mi-cmds.h (mi_cmd_list_features): New.
3464 * mi/mi-main.c (mi_cmd_list_features): New.
3468 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3469 * version.in: Bump version to 6.7.50-20070911-cvs.
3473 * thread.c (free_thread): Do not delete the step resume breakpoint
3478 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3479 * corelow.c (core_read_description): New.
3480 (init_core_ops): Set to_read_description.
3481 * gdbarch.sh: Add gdbarch_core_read_description.
3482 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3483 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3484 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3485 (mips_register_g_packet_guesses): Use them.
3486 (_initialize_mips_tdep): Initialize them.
3487 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3488 * gdbarch.h, gdbarch.c: Regenerated.
3492 * infrun.c (stepping_past_breakpoint): New global variable.
3493 (stepping_past_breakpoint_ptid): Likewise.
3494 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3495 Only switch threads if we need to single-step over a breakpoint hit
3496 in the previously selected thread. If stepping, remember previous
3497 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3498 switch_to_thread instead of copying its contents.
3499 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3500 prepare_to_proceed returns true.
3501 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3502 (context_switch): Call switch_to_thread.
3503 (handle_inferior_event): Switch back to previous thread if requested
3504 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3505 * gdbthread.h (switch_to_thread): Add prototype.
3506 * thread.c (switch_to_thread): Make global.
3510 * p-valprint.c: Fix 7 ARI reported problems.
3511 (pascal_val_print): Fix one operator at end of line issue.
3512 Use paddress function to remove use of
3513 deprecated_print_address_numeric function (2 times).
3514 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3515 (pascal_value_print): Fix 3 operator at end of line issues.
3520 * arm-tdep.c (arm_in_call_stub): Delete.
3521 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3525 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3531 * NEWS: Update description of string changes. Mention print/s.
3532 * c-valprint.c (textual_element_type): New.
3533 (c_val_print): Use it. Do not skip address printing for pointers
3534 with a string format.
3535 (c_value_print): Doc update.
3536 * dwarf2read.c (read_array_type): Use make_vector_type.
3537 * gdbtypes.c (make_vector_type): New.
3538 (init_vector_type): Use it.
3539 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3540 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3541 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3542 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3543 (make_vector_type): New.
3544 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3545 Call the language print routine for string format.
3546 (print_scalar_formatted): Call val_print for string format. Handle
3547 unsigned original types for char format.
3548 (validate_format): Do not reject string format.
3549 * stabsread.c (read_type): Use make_vector_type.
3550 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3554 * expprint.c (print_subexp_standard): Check strchr for null.
3555 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3557 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3559 * stabsread.c (patch_block_status): Guard against null.
3560 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3564 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3565 in internal error message.
3570 * infcmd.c (post_create_inferior): Update comment.
3571 (run_command_1): Always call post_create_inferior with 0 as
3574 * i386-cygwin-tdep.h: New.
3575 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3576 (win32_xfer_shared_library): Make it extern.
3578 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3580 (win32_so_ops): Delete.
3581 (get_relocated_section_addrs): Delete.
3582 (solib_symbols_add): Delete.
3583 (register_loaded_dll): Delete.
3584 (win32_make_so): New.
3585 (handle_load_dll): Use win32_make_so.
3586 (win32_free_so): Free the passed in so.
3587 (win32_relocate_section_addresses): Delete.
3588 (win32_solib_create_inferior_hook): Delete.
3589 (handle_unload_dll): Don't add PE offset here. Free so with
3590 win32_free_so instead of free_so.
3591 (win32_special_symbol_handling): Delete.
3592 (get_win32_debug_event): Remove unneeded calls. Set state to
3593 TARGET_WAITKIND_LOADED on a dll unload.
3594 (do_initial_win32_stuff): Clear cygwin_load_start and
3596 (map_code_section_args): Delete.
3597 (dll_code_sections_add): Delete.
3598 (core_section_load_dll_symbols): Delete.
3599 (win32_xfer_shared_libraries): New.
3600 (win32_current_sos): Delete.
3601 (win32_xfer_partial): New.
3602 (open_symbol_file_object): Delete.
3603 (in_dynsym_resolve_code): Delete.
3604 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3605 of win32_ops. Remove win32_so_ops settings. Don't set
3606 current_target_so_ops here.
3608 * Makefile.in (i386_cygwin_tdep_h): New variable.
3609 (i386-cygwin-tdep.o): Update dependencies.
3610 (win32-nat.o): Update dependencies.
3615 * gdbarch.sh (core_xfer_shared_libraries): New.
3617 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3619 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3621 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3622 (xml_escape_text): New.
3623 * xml-support.h (xml_escape_text): Declare.
3625 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3626 * config/i386/cygwin.mt (TDEPFILES): ... here.
3628 * win32-nat.c: (fetch_elf_core_registers): Delete.
3629 (win32_elf_core_fn): Delete.
3630 (_initialize_core_win32): Delete.
3632 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3633 "xml-support.h" and "gdbcore.h".
3634 (i386_win32_gregset_reg_offset): New.
3635 (I386_WIN32_SIZEOF_GREGSET): New.
3636 (i386_win32_regset_from_core_section): New.
3637 (win32_xfer_shared_library): New.
3638 (struct cpms_data): New.
3639 (core_process_module_section): New.
3640 (win32_core_xfer_shared_libraries): New.
3641 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3642 gregset_num_regs, sizeof_gregset members of tdep. Register
3643 regset_from_core_section and core_xfer_shared_libraries callbacks.
3645 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3646 * gdbarch.h, gdbarch.c: Regenerate.
3650 * corelow.c (core_xfer_partial): Pass writebuf to
3651 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3655 * arm-tdep.h (arm_skip_stub): Declare.
3656 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3658 (arm_pe_skip_trampoline_code): New function.
3659 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3660 gdbarch_skip_trampoline_code callback.
3661 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3665 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3669 * configure.ac: Add --with-expat.
3670 * configure: Regenerated.
3674 * configure.ac: Accept --with-system-readline.
3675 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3676 * configure: Regenerate.
3677 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3679 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3684 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3688 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3692 * top.c (print_gdb_version): Update for GPL version 3.
3696 * NEWS: Mention the build-id .debug files verification.
3700 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3704 * Makefile.in (symfile.o): Update dependencies.
3705 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3706 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3707 (struct build_id): New structure.
3708 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3709 (find_separate_debug_file): New variable BUILD_ID.
3710 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3714 * varobj.c (struct varobj): Fix comment
3715 for the type member not to lie when it can be
3720 Implement -var-info-path-expression.
3722 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3724 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3725 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3726 * varobj.c (struct varobj): New field 'path_expr'.
3727 (c_path_expr_of_child, cplus_path_expr_of_child)
3728 (java_path_expr_of_child): New.
3729 (struct language_specific): New field path_expr_of_child.
3730 (varobj_create): Initialize the path_expr field.
3731 (varobj_get_path_expr): New.
3732 (new_variable): Initialize the path_expr field.
3733 (free_variable): Free the path_expr field.
3734 (adjust_value_for_children_access): New parameter
3736 (c_number_of_children): Adjust.
3737 (c_describe_child): New parameter CFULL_EXPRESSION.
3738 Compute full expression.
3739 (c_value_of_child, c_type_of_child): Adjust.
3740 (cplus_number_of_children): Adjust.
3741 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3742 Compute full expression.
3743 (cplus_name_of_child, cplus_value_of_child)
3744 (cplus_type_of_child): Adjust.
3745 * varobj.h (varobj_get_path_expr): Declare.
3749 * mi/mi-cmd-var.c (print_varobj): If a varobj
3750 type is NULL, don't try to print it.
3754 * ppc-linux-nat.c (right_fill_reg): Delete.
3755 (supply_gregset): Use ppc_supply_gregset.
3756 (supply_fpregset): Use ppc_supply_fpregset.
3757 (fill_gregset): Use ppc_collect_gregset.
3758 (fill_fpregset): Use ppc_collect_fpregset.
3759 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3760 (right_supply_register, ppc_linux_supply_gregset): Delete.
3761 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3762 (ppc_linux_supply_fpregset): Delete.
3763 (ppc_linux_collect_gregset): New function.
3764 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3765 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3766 ppc_linux_supply_gregset, and ppc_collect_gregset.
3767 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3768 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3769 (ppc_linux_regset_from_core_section): Update.
3770 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3771 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3772 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3773 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3774 (ppcobsd_collect_gregset): Likewise.
3775 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3776 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3777 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3778 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3779 (rs6000_aix64_reg_offsets): Likewise.
3780 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3781 ppc_floating_point_unit_p.
3782 (rs6000_aix_collect_regset): Similarly.
3783 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3784 when regsize is larger than regcache register size.
3785 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3786 regcache register size.
3787 (ppc_greg_offset): New function, split out from..
3788 (ppc_supply_gregset): ..here. Separate code handling all regs from
3789 single reg case. Correct xer offset.
3790 (ppc_fpreg_offset): New function, split out from..
3791 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3793 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3794 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3795 a fp unit, instead return if no fp.
3799 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3800 this code has not been compiled for two years.
3804 * event-top.c (gdb_readline2): Return after EOF.
3808 * symtab.c: Remove a function that has been commented out 3 years ago.
3812 * hppa-tdep.c (hppa32_cannot_fetch_register)
3813 (hppa64_cannot_fetch_register): New functions.
3814 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3815 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3819 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3820 check for null before calling check_typedef.
3822 * NEWS: Mention Coverity bug fixes.
3826 * spu-tdep.c (spu_pointer_to_address): New function.
3827 (spu_integer_to_address): Likewise.
3828 (spu_gdbarch_init): Add spu_pointer_to_address and
3829 spu_integer_to_address to gdbarch.
3833 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3837 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3838 that contains the GDB license.
3839 * copying.awk: Adjust to the GPLv3 wording.
3840 * copying.c: Regenerate.
3844 * copying.awk: Protoization, and i18n markup.
3848 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3849 * copyright.sh: Likewise.
3850 * gdb-events.sh: Likewise.
3851 * gdb_gcore.sh: Likewise.
3852 * gdb_mbuild.sh: Likewise.
3853 * gdbarch.sh: Likewise.
3854 * observer.sh: Likewise.
3855 * features/feature_to_c.sh: Likewise.
3856 * regformats/regdat.sh: Likewise.
3860 Switch the license of all .c files to GPLv3.
3861 Switch the license of all .h files to GPLv3.
3862 Switch the license of all .cc files to GPLv3.
3866 * configure.ac: Switch license to GPLv3.
3870 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3871 determine the file's FPU type.
3875 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3876 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3877 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3881 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3883 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3884 (elf_lookup_lib_symbol): Fix formatting.
3888 * dbxread.c (read_dbx_symtab): Guard null deref.
3891 * valops.c (find_overload_match): Guard against NULL.
3895 * MAINTAINERS (Patch Champions): Remove self.
3899 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3904 * stabsread.c (dbx_lookup_type): Memory leak.
3906 * event-loop.c (delete_async_signal_handler): Move pointer null
3907 test to before pointer dereference.
3909 * ui-out.c (append_header_to_list): Possible cut and paste error.
3911 * MAINTAINERS: white space tweak.
3915 * stack.c (print_frame): Memory leak.
3917 * completer.c (filename_completer): Avoid memory leak.
3918 Remove unnecessary nested block.
3920 * c-exp.y (parse_number): Memory leak.
3922 * completer.c (location_completer): Must free 'fn_list', except
3923 in the one case where it is returned (as 'list').
3925 * varobj.c (value_of_root): Memory leak.
3927 * gdbtypes.h (virtual_base_list): Remove export decl.
3928 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3929 (virtual_base_index): Memory leak.
3930 (virtual_base_index_skip_primaries): Ditto.
3934 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3935 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3936 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3937 (xtensa_read_register): New function.
3938 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3939 (xtensa_insn_kind): New types.
3940 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3941 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3942 (xtensa_verify_config, xtensa_pseudo_register_read)
3943 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3944 (xtensa_store_return_value)
3945 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3946 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3947 (xtensa_frame_this_id, xtensa_frame_prev_register)
3948 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3949 (call0_frame_cache, call0_frame_get_reg_at_entry)
3950 (call0_classify_opcode, call0_track_op)
3951 (call0_analyze_prologue, call0_frame_cache): New functions.
3955 * breakpoint.c (bpstat_free): New.
3956 (bpstat_clear): Use bpstat_free.
3957 (delete_breakpoint): Document why we cannot
3958 remove bpstats from stop_bpstat.
3959 * breakpoint.h (bpstat_free): Declare.
3963 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3968 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3973 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3974 checkin guarding against NULL.
3978 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3979 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3980 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3981 go at beginning of new line.
3983 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3984 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3985 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3986 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3987 tui-winsource.h, tui.c, tui.h: Function declarations and
3988 definitions, wrap long lines.
3990 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3991 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3992 Reformat block comments to GNU standard.
3994 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3995 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3996 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3997 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3998 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3999 spaces after periods, etc).
4001 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4002 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4003 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4004 tui-winsource.h: Whitespace changes, fix pointer declarations
4010 * ada-lang.c (field_alignment): Guard against NULL.
4014 * MAINTAINERS (Global Maintainers): Add self.
4018 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4020 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4022 * varobj.c (cplus_describe_child): Guard against null.
4023 Use "NULL" instead of "0" to initialize pointers.
4027 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4028 to match any gdbarch with matching OSABI. Set default ABI and FPU
4029 after running the OSABI handler.
4033 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4034 * config/i386/linux.mt (TDEPFILES): ...to here.
4038 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4039 the 'silent' parameter and code to implement that.
4040 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4042 * win32-nat.c: Adjust.
4047 * breakpoint.c (update_breakpoints_after_exec): Don't
4048 set address to zero.
4052 * valops.c: Whitespace clean-up.
4054 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4056 * event-top.c (command_line_handler): Memory leak.
4058 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4059 No need to make copy.
4061 * source.c (find_source_lines): Require symtab 's'.
4065 * completer.c: Spelling fix in comments.
4069 * gdbtypes.c: Coding standard cleanup.
4070 * gdbtypes.c: Comment/whitespace cleanup.
4072 * stabsread.c (read_huge_number): Attempt to compute value before
4073 values that it depends on.
4075 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4076 (decode_objc): Use "NULL" instead of 0.
4077 (find_method): Ditto.
4078 (decode_all_digits): Ditto.
4079 (decode_dollar): Ditto.
4081 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4083 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4085 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4088 * completer.c: Comment/whitespace cleanup.
4092 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4096 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4097 allocated file descriptors.
4101 * Makefile.in: Minor cleanup throughout; add some missing variables,
4102 add some missing rules, remove some rules that are no longer needed,
4103 and fix the dependencies in several rules.
4107 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4108 (scm_lang_h, scm_tags_h): New.
4109 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4110 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4111 * defs.h (enum language): Add `language_scm'.
4113 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4118 * MAINTAINERS (Write After Approval): Add myself.
4122 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4126 * solib-som.c (som_relocate_section_addresses): Stop saving
4127 the $CODE$ section in the so_list structure.
4131 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4132 (xtensa_register_group_t): Add entries for coprocessors.
4133 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4134 (xtensa_add_reggroups): Likewise.
4135 (xtensa_register_reggroup_p): Likewise.
4136 (xtensa_coprocessor_register_group): New function.
4141 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4145 * target.c (target_read_string): Guard against null.
4147 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4149 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4150 (tui_set_layout_for_display_command): Mem leak.
4152 * top.c (command_line_input): Memory leak.
4154 * solib-svr4.c (open_symbol_file_object): Memory leak.
4155 (svr4_current_sos): Ditto.
4156 (enable_break): Ditto.
4158 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4160 * dwarf2read.c (add_partial_symbol): Memory leak.
4164 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4168 * macroexp.c (init_buffer): Remove testing code that overrides the
4169 caller's length guess.
4170 (gather_arguments): Use a larger initial size, now that the vector
4171 growth code has been exercised.
4175 * solib-target.c (solib_target_relocate_section_addresses): Add
4176 orig_delta to addr_high.
4180 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4182 * breakpoint.c (print_one_breakpoint): Off by one error.
4184 * tracepoint.c (add_register): Off by one error.
4185 (stringify_collection_list): Free malloc buffer.
4189 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4190 stop memory leak, straighten out cleanups.
4192 * jv-lang.c (java_link_class_type): Guard against NULL.
4196 * gdbtypes.c (create_set_type): Test should only be done within
4197 the preceeding if block. Otherwise, variable is uninitialized.
4199 * gdbtypes.c (check_typedef): Guard NULL.
4203 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4204 avoid dereference in lookup_cmd_1.
4206 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4207 clean up long lines.
4208 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4209 (tui_alloc_win_info): Ditto.
4210 (tui_add_content_elements): Ditto.
4211 * tui/tui-file.c (tui_file_magic): Ditto.
4215 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4216 True and false paths are mutually exclusive.
4218 * event-top.c (command_line_handler): Add pedantic return.
4220 * f-valprint.c (info_common_command): Bail out to prevent null
4221 pointer deref. Break up a long line.
4223 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4225 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4227 * printcmd.c (build_address_symbolic): Remove dead code and dead
4232 * linespec.c (minsym_found): Advance to the next line if possible.
4236 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4237 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4238 solib-svr4.o, and add solib-target.o
4242 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4246 * MAINTAINERS (Write After Approval): Add myself.
4250 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4255 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4259 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4260 'buffer' must cover both branches that call strcmp (Coverity).
4262 * stack.c (print_frame_args): Check return value of lookup_symbol.
4264 * ax-gdb.c (find_field): Guard against null ptr.
4268 * regformats/reg-spu.dat: Fix order of npc, id registers.
4272 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4273 sections should always go to the executable file.
4277 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4278 prologue instructions.
4282 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4288 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4294 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4295 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4297 * NEWS: Mention gdbserver DLL support.
4301 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4305 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4310 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4315 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4316 (mep_analyze_prologue): Add case for BRA instruction.
4320 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4324 * breakpoint.c: Include "top.h".
4325 (breakpoint_1): Don't set convenience variable $_ if server prefix
4327 (_initialize_breakpoint): Describe this behaviour in command help.
4331 * solib-target.c (library_list_start_segment): Cast address to
4336 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4337 for terminated processes.
4341 * event-top.c (cli_command_loop): Prompt string can (and should)
4342 be freed after call to readline (Coverity). Also move local var
4343 declarations into block where they are used.
4345 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4346 should) be freed after call to readline (Coverity). Also move
4347 local var declarations into block where they are used.
4351 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4359 * remote.c (remote_check_symbols): Use
4360 gdbarch_convert_from_func_ptr_addr.
4361 * infcall.c (find_function_addr): Handle function descriptors
4362 without debugging information.
4363 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4364 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4365 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4366 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4367 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4368 allow SEC_CODE and SEC_DATA.
4369 (enable_break): Update calls. Pass current_target to solib_add.
4370 Use gdbarch_convert_from_func_ptr_addr.
4375 * symfile.c (print_transfer_performance): Avoid integer overflow.
4380 * cp-namespace.c (lookup_symbol_file): Add block to
4381 lookup_symbol_global call.
4382 * Makefile.in (solist_h): Add dependency on symtab header.
4383 (symtab.o): Add dependency on solist header.
4384 * solib.c (solib_global_lookup): New function.
4385 * solib-svr4.c (scan_dyntag): Likewise.
4386 (elf_locate_base): Call helper routine scan_dyntag.
4387 (elf_lookup_lib_symbol): New function.
4388 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4389 * solist.h (symtab.h): New include.
4390 (struct target_so_ops): New member lookup_lib_global_symbol.
4391 (solib_global_lookup): New prototype.
4392 * symtab.c: New include solist.h.
4393 (lookup_objfile_from_block): New function.
4394 (lookup_global_symbol_from_objfile): New function.
4395 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4396 (lookup_symbol_global): Call library-specific lookup procedure.
4397 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4399 * NEWS: Document framework.
4403 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4406 * cli/cli-script.c (build_command_line): Update NULL check.
4410 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4414 * Makefile.in (XMLFILES): Add library-list.dtd.
4415 (ALLDEPFILES): Add solib-target.o.
4416 (solib-target.o): New rule.
4417 * remote.c (PACKET_qXfer_libraries): New constant.
4418 (remote_protocol_features): Add qXfer:libraries:read.
4419 (remote_wait): Recognize library stop replies.
4420 (remote_async_wait): Likewise. Fix typo.
4421 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4422 (init_remote_async_ops): Fix typo.
4423 (_initialize_remote): Register "set remote library-info-packet".
4424 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4425 * solib-target.c: New file.
4426 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4428 (info_sharedlibrary_command): Likewise.
4429 (solib_add_library, solib_remove_library): New.
4430 * solist.h (struct so_list): Replace textsection with addr_low and
4432 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4433 * NEWS: Describe new qXfer:libraries:read and shared library
4435 * features/library-list.dtd: New.
4439 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4440 (start_remote): Use STOP_QUIETLY_REMOTE.
4441 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4442 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4443 Update to match shared library event breakpoint support. Only
4444 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4445 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4446 * fork-child.c (startup_inferior): Do not set
4447 inferior_ignoring_startup_exec_events
4448 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4450 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4454 * breakpoint.c (insert_bp_location): Remove dead code
4455 (DISABLE_UNSETTABLE_BREAK).
4456 (disable_breakpoints_in_shlibs)
4457 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4461 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4462 Call insert_bp_location.
4466 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4471 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4476 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4477 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4478 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4479 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4480 to display_gdb_prompt.
4485 * target.c (memory_xfer_partial): Do not continue past targets with
4490 * m68k-tdep.c (m68k_ps_type): New.
4491 (m68k_init_types): New.
4492 (m68k_register_type): Use m68k_ps_type for PS register.
4493 (_initialize_m68k_tdep): Call m68k_init_types.
4495 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4496 from the generic m68k arch.
4500 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4503 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4504 gdb_assert before using return value of find_thread_pid (Coverity).
4506 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4508 * cli/cli-script.c (build_command_line): Add null pointer guard
4513 * linux-thread-db.c (thread_db_attach): Delete.
4514 (thread_db_detach): Typo fix. Call target_mourn_inferior
4515 instead of fixing up proc_handle.
4516 (have_threads_callback, have_threads): New functions.
4517 (thread_db_wait): Remove dead proc_handle.pid check. Only
4518 translate PTIDs if we have registered threads. Check for new
4519 threads if we have none.
4520 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4521 (find_new_threads_callback): Only enable event reporting if TID == 0.
4522 (same_ptid_callback): New.
4523 (thread_db_get_thread_local_address): Check for new threads.
4524 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4525 or to_post_startup_inferior.
4529 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4530 is always active if SOFTWARE_SINGLE_STEP_P is true.
4531 (resume): Use gdbarch_software_single_step[_p] instead of
4532 SOFTWARE_SINGLE_STEP[_P].
4533 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4535 * gdbarch.sh (software_single_step): Remove target macro.
4536 * gdbarch.h, gdbarch.c: Regenerate.
4540 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4541 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4542 (struct gdbarch_swap, struct gdbarch_swap_registration,
4543 struct gdbarch_swap_registry, gdbarch_swap_registry,
4544 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4545 current_gdbarch_swap_in_hack): Remove.
4546 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4547 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4548 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4549 (deprecated_current_gdbarch_select_hack): Likewise.
4550 * gdbarch.h, gdbarch.c: Regenerate.
4554 * infrun.c (clear_proceed_status): Clean up stop_registers.
4555 (normal_stop): Allocate regcache for stop_registers.
4556 (struct inferior_status): Remove stop_registers member.
4557 (save_inferior_status): Do not save stop_registers.
4558 (restore_inferior_status): Do not restore stop_registers.
4559 (discard_inferior_status): Do not discard stop_registers.
4560 (build_infrun): Remove.
4561 (_initialize_infrun): Do not swap stop_registers.
4565 * remote.c (remote_address_masked): If remote_address_size is zero,
4566 default to target address size.
4567 (build_remote_gdbarch_data): Remove.
4568 (_initialize_remote): Do not swap remote_address_size.
4572 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4573 builtin_type_char, builtin_type_short, builtin_type_int,
4574 builtin_type_long, builtin_type_signed_char,
4575 builtin_type_unsigned_char, builtin_type_unsigned_short,
4576 builtin_type_unsigned_int, builtin_type_unsigned_long,
4577 builtin_type_float, builtin_type_double, builtin_type_long_double,
4578 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4579 builtin_type_bool, builtin_type_long_long,
4580 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4581 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4582 variable declaration with compatibility macro.
4583 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4584 builtin_type_char, builtin_type_short, builtin_type_int,
4585 builtin_type_long, builtin_type_signed_char,
4586 builtin_type_unsigned_char, builtin_type_unsigned_short,
4587 builtin_type_unsigned_int, builtin_type_unsigned_long,
4588 builtin_type_float, builtin_type_double, builtin_type_long_double,
4589 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4590 builtin_type_bool, builtin_type_long_long,
4591 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4592 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4593 (build_gdbtypes): Remove.
4594 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4595 opaque-type-resolution command here. Do not call
4596 deprecated_register_gdbarch_swap.
4600 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4601 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4602 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4604 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4605 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4606 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4607 (build_parse): Remove.
4608 (_initialize_parse): Do not call build_parse. Do not register
4609 msym_ types for gdbarch-swapping.
4611 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4612 instead of creating private type.
4614 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4615 (_initialize_xcoffread): Do not initialized them.
4616 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4618 * mdebugread.c (nodebug_func_symbol_type): Remove.
4619 (nodebug_var_symbol_type): Remove.
4620 (_initialize_mdebugread): Do not initialize them.
4621 (parse_symbol): Use builtin nodebug_ type instead of them.
4622 (parse_procedure): Likewise.
4626 * printcmd.c (do_one_display): If display/i, start with an initial
4627 line feed to avoid bad layout if there is a branch delay slot.
4632 * disasm.c (gdb_print_insn): Return the number of branch delay
4633 slot instructions too.
4634 * disasm.h (gdb_print_insn): Update prototype.
4635 * printcmd.c (branch_delay_insns): New variable to record the
4636 number of delay slot instructions after disassembling a branch.
4637 (print_formatted): Record the number of branch delay slot
4639 (do_examine): When disassembling, if the last instruction
4640 disassembled has any branch delay slots, then bump the count so
4641 that they get disassembled too.
4642 * tui/tui-disasm.c (tui_disassemble): Update the call to
4644 * NEWS: Document the new behaviour.
4648 * regcache.c (write_pc_pid): Restore missing else.
4652 * regcache.c (regcache_print): Use get_current_regcache ()
4653 instead of current_regcache.
4658 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4659 instead of bfd_make_section_anyway.
4660 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4661 when clearing SEC_LOAD.
4665 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4666 registers for big-endian.
4670 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4671 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4672 * gdbarch.c, gdbarch.h: Regenerate.
4676 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4677 gdbarch_believe_pcc_promotion.
4678 * stabsread.c (define_symbol): Likewise.
4679 Remove unnecessary definition.
4680 * coffread.c (process_coff_symbol): Remove unnecessary code.
4681 * gdbarch.c, gdbarch.h: Regenerate.
4685 * configure.ac: Do not use ${objdir}.
4686 * configure: Regenerated.
4690 * gdbarch.sh (deprecated_register_size): Remove.
4691 * gdbarch.h, gdbarch.c: Regenerate.
4693 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4694 by INT_REGISTER_SIZE.
4695 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4696 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4697 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4698 set_gdbarch_deprecated_register_size.
4702 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4703 gdbarch_deprecated_fp_regnum.
4704 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4705 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4706 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4707 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4709 * gdbarch.c, gdbarch.h: Regenerate.
4713 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4714 gdbarch_extract_return_value.
4715 * value.c (generic_use_struct_convention): Likewise (comment).
4716 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4717 * arch-utils.c (legacy_return_value): Likewise.
4718 * arch-utils.h (legacy_return_value): Likewise (comment).
4719 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4720 gdbarch_store_return_value.
4721 * stack.c (return_command): Likewise (comment).
4722 * arch-utils.h (legacy_return_value): Likewise (comment).
4723 * arch-utils.c (legacy_return_value): Likewise.
4724 * gdbarch.c, gdbarch.h: Regenerate.
4728 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4729 gdbarch_deprecated_use_struct_convention.
4730 * arch-utils.c (legacy_return_value): Likewise.
4731 * gdbarch.c, gdbarch.h: Regenerate.
4735 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4736 gdbarch_deprecated_function_start_offset.
4737 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4738 * linespec.c (minsym_found): Likewise.
4739 * infrun.c (handle_inferior_event): Likewise.
4740 * infcall.c (find_function_addr): Likewise.
4741 * cli/cli-cmds.c (disassemble_command): Likewise.
4742 * gdbarch.c, gdbarch.h: Regenerate.
4746 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4747 gdbarch_deprecated_reg_struct_has_addr.
4748 * infcall.c (call_function_by_hand): Likewise.
4749 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4750 * gdbarch_deprecated_reg_struct_has_addr_p.
4751 * infcall.c (call_function_by_hand): Likewise.
4752 * gdbarch.c, gdbarch.h: Regenerate.
4756 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4757 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4758 (sh_gdbarch_init): Remove
4759 set_gdbarch_deprecated_extract_struct_value_address.
4760 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4761 (sh64_gdbarch_init): Remove
4762 set_gdbarch_deprecated_extract_struct_value_address.
4763 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4764 (ia64_gdbarch_init): Remove
4765 set_gdbarch_deprecated_extract_struct_value_address.
4766 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4767 (frv_gdbarch_init): Remove
4768 set_gdbarch_deprecated_extract_struct_value_address.
4769 * gdbarch.c, gdbarch.h: Regenerate.
4773 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4774 * v850-tdep.c (v850_unwind_sp): Likewise.
4775 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4776 * stack.c (frame_info): Likewise.
4777 * stabsread.c (define_symbol): Likewise.
4778 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4779 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4780 (sh_unwind_sp): Likewise.
4781 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4782 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4783 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4784 (rs6000_frame_cache): Likewise.
4785 * rs6000-nat.c (store_register): Likewise.
4786 * remote-mips.c (mips_wait): Likewise.
4787 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4788 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4789 (ppc64_sysv_abi_push_dummy_call): Likewise.
4790 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4791 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4792 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4793 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4794 * m32r-rom.c (m32r_supply_register): Likewise.
4795 * frame.c (frame_sp_unwind): Likewise.
4796 * mips-tdep.c (mips_insn16_frame_cache)
4797 (mips_insn32_frame_cache): Likewise (comment).
4798 * m68klinux-nat.c (supply_gregset): Likewise.
4799 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4800 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4801 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4802 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4803 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4804 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4805 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4806 (cris_register_type, crisv32_register_type)
4807 (cris_dwarf2_frame_init_reg): Likewise.
4808 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4809 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4810 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4811 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4813 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4814 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4815 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4816 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4817 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4818 * v850-tdep.c (v850_unwind_pc): Likewise.
4819 * stack.c (frame_info): Likewise.
4820 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4821 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4822 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4823 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4824 (sh_dsp_show_regs): Likewise.
4825 * shnbsd-tdep.c (shnbsd_supply_gregset)
4826 (shnbsd_collect_gregset): Likewise.
4827 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4828 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4829 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4830 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4831 (6000_register_reggroup_p, rs6000_unwind_pc)
4832 (rs6000_frame_cache): Likewise.
4833 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4834 (rs6000_store_inferior_registers): Likewise.
4835 * remote-mips.c (mips_wait, mips_load): Likewise.
4836 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4837 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4838 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4839 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4840 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4841 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4842 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4843 (store_ppc_registers, fill_gregset): Likewise.
4844 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4845 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4846 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4847 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4848 * m68klinux-nat.c (supply_gregset): Likewise.
4849 * irix5-nat.c (fill_gregset): Likewise.
4850 * i386-tdep.c (i386_unwind_pc): Likewise.
4851 * i386-linux-nat.c (i386_linux_resume): Likewise.
4852 * frame.c (get_prev_frame_1): Likewise.
4853 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4854 * dbug-rom.c (dbug_supply_register): Likewise.
4855 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4856 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4857 (cris_register_type, crisv32_register_type, crisv32_register_name)
4858 (cris_dwarf2_frame_init_reg, find_step_target)
4859 (cris_software_single_step, cris_supply_gregset)
4860 (cris_regnums): Likewise.
4861 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4862 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4863 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4864 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4865 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4867 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4868 * dbug-rom.c (dbug_supply_register): Likewise.
4869 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4870 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4871 * win32-nat.c (win32_resume): Likewise.
4872 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4873 * m68k-tdep.c (m68k_register_type): Likewise.
4874 * m68klinux-nat.c (supply_gregset): Likewise.
4876 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4877 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4878 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4879 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4880 (fv_reg_base_num, dr_reg_base_num): Likewise.
4881 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4882 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4883 (sh64_extract_return_value, sh64_store_return_value)
4884 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4885 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4886 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4887 (invalidate_cache): Likewise.
4888 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4889 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4890 (mipsnbsd_fill_fpreg): Likewise.
4891 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4892 (mipsnbsd_store_inferior_registers): Likewise.
4893 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4894 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4895 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4896 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4897 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4898 (fill_fpregset): Likewise.
4899 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4900 * i386-tdep.h (struct_return): Likewise (comment).
4901 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4902 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4903 (go32_store_registers): Likewise.
4904 * alpha-tdep.c (alpha_next_pc): Likewise.
4905 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4906 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4907 (alphabsd_store_inferior_registers): Likewise.
4908 * core-regset.c (fetch_core_registers): Likewise.
4909 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4911 * gdbarch.c, gdbarch.h: Regenerate.
4915 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4916 * dbxread.c (start_psymtab): Check HAVE_ELF.
4917 (aout_sym_fns): Likewise.
4918 * elfread.c (elf_symfile_segments): New.
4919 (elf_sym_fns): Add elf_symfile_segments.
4920 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4921 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4922 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4923 * somread.c (som_sym_fns): Use default_symfile_segments.
4924 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4925 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4926 (default_symfile_segments): New function.
4927 (syms_from_objfile): Update call to find_sym_fns.
4928 (symfile_get_segment_data, free_symfile_segment_data): New.
4929 (symfile_map_offsets_to_segments): New.
4930 (symfile_find_segment_sections): New.
4931 * symfile.h (struct symfile_segment_data): New.
4932 (struct sym_fns): Add sym_segments.
4933 (default_symfile_segments, symfile_get_segment_data)
4934 (free_symfile_segment_data): New prototypes.
4935 (symfile_map_offsets_to_segments): Likewise.
4936 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4937 * Makefile.in (COMMON_OBS): Remove elfread.o.
4938 (elf_internal_h): New.
4939 (elfread.o): Update.
4940 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4942 * config.in, configure: Regenerated.
4943 * NEWS: Mention qOffsets changes.
4947 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4948 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4949 Replace global variable declaration with compatibility macro.
4950 (struct builtin_m2_type): New data type.
4951 (builtin_m2_type): Add prototype.
4952 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4953 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4954 Remove global variables.
4955 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4956 (build_m2_types): New function.
4957 (m2_type_data): New variable.
4958 (builtin_m2_type): New function.
4959 (_initialize_m2_language): Do not build data types. Register
4960 m2_type_data per-gdbarch data.
4964 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4965 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4966 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4967 builtin_type_f_real_s8, builtin_type_f_real_s16,
4968 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4969 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4970 variable declaration with compatibility macro.
4971 (struct builtin_f_type): New data type.
4972 (builtin_f_type): Add prototype.
4973 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4974 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4975 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4976 builtin_type_f_real_s8, builtin_type_f_real_s16,
4977 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4978 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4979 (f_language_arch_info): Use builtin_f_type instead of variables.
4980 (build_fortran_types): Build builtin_f_type structure instead of
4981 setting global type variables.
4982 (f_type_data): New variable.
4983 (builtin_f_type): New function.
4984 (_initialize_f_language): Do not call build_fortran_types. Do not
4985 swap global type variables. Register f_type_data per-gdbarch data.
4989 * f-lang.c (_initialize_f_language): Do not initialize or
4990 swap builtin_type_string.
4994 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4995 value_of_builtin_frame_reg): Remove.
4996 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4997 inactive call to value_of_builtin_frame_reg.
5001 * gdbarch.sh (bfd_vma_bit): Remove.
5002 * gdbarch.c, gdbarch.h: Regenerate.
5004 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5005 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5006 (build_gdbtypes): Do not initialize it.
5007 (_initialize_gdbtypes): Do not swap it.
5011 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5012 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5013 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5014 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5015 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5016 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5017 builtin_type_vec64, builtin_type_vec128): Remove.
5018 (init_simd_type): Remove.
5019 (init_vector_type): Make global.
5020 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5021 (build_gdbtypes): Do not build vector types.
5022 (_initialize_gdbtypes): Do not swap vector types.
5023 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5024 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5025 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5026 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5027 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5028 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5029 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5030 (init_vector_type): Add prototype.
5032 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5033 i386_sse_type members.
5034 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5035 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5036 (i386_init_types): Do not build vector types.
5037 (i386_mmx_type, i386_sse_type): New functions.
5038 (i386_register_type): Call them instead of using global variables.
5039 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5040 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5041 of using global variable.
5043 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5044 and ppc_builtin_type_vec128 members.
5045 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5046 (rs6000_builtin_type_vec128): Likewise.
5047 (rs6000_register_type): Call them instead of using builtin_type_vec64
5048 and builtin_type_vec128.
5049 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5051 * spu-tdep.c (struct gdbarch_tdep): New data type.
5052 (spu_builtin_type_vec128): Remove variable.
5053 (spu_builtin_type_vec128): New function.
5054 (spu_register_type): Call it instead of using global variable.
5055 (spu_gdbarch_init): Allocate tdep structure.
5056 (spu_init_vector_type): Remove function.
5057 (_initialize_spu_tdep): Do not call it.
5061 * amd64-tdep.c (struct amd64_register_info): Remove.
5062 (amd64_register_info): Remove.
5063 (amd64_register_names): New static variable.
5064 (AMD64_NUM_REGS): Use amd64_register_names instead of
5065 amd64_register_info.
5066 (amd64_register_name): Likewise.
5067 (amd64_register_type): Do not refer to amd64_register_info.
5069 * s390-tdep.c (struct s390_register_info): Remove.
5070 (s390_register_info): Remove.
5071 (s390_register_name): Do not refer to s390_register_info.
5072 (s390_register_type): Likewise.
5074 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5075 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5076 (sparc64_register_names, sparc64_pseudo_register_names): New.
5077 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5078 sparc64_register_names and sparc64_pseudo_register_names instead of
5079 sparc64_register_info and sparc64_pseudo_register_info.
5080 (sparc64_register_name): Likewise.
5081 (sparc64_register_type): Do not refer to sparc64_register_info
5082 and sparc64_pseudo_register_info.
5086 * c-lang.c (cplus_builtin_types): Remove.
5087 (enum cplus_primitive_types): New data type.
5088 (cplus_language_arch_info): New function.
5089 (cplus_language_defn): Set la_language_arch_info member. Do not set
5090 la_builtin_type_vector and string_char_type members.
5092 * f-lang.c (f_builtin_types): Remove.
5093 (enum f_primitive_types): New data type.
5094 (f_language_arch_info): New function.
5095 (f_language_de): Set la_language_arch_info member. Do not set
5096 la_builtin_type_vector and string_char_type members.
5098 * m2-lang.c (m2_builtin_types): Remove.
5099 (enum m2_primitive_types): New data type.
5100 (m2_language_arch_info): New function.
5101 (m2_language_defn): Set la_language_arch_info member. Do not set
5102 la_builtin_type_vector and string_char_type members.
5104 * objc-lang.c (objc_builtin_types): Remove.
5105 (objc_language): Set la_language_arch_info member. Do not set
5106 la_builtin_type_vector and string_char_type members.
5108 * p-lang.c (pascal_builtin_types): Remove.
5109 (enum pascal_primitive_types): New data type.
5110 (pascal_language_arch_info): New function.
5111 (pascal_language_defn): Set la_language_arch_info member. Do not set
5112 la_builtin_type_vector and string_char_type members.
5116 * regcache.c (struct regcache): Add ptid_t member.
5117 (regcache_xmalloc): Initialize it.
5118 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5119 (regcache_dup): Likewise.
5120 (regcache_dup_no_passthrough): Likewise.
5121 (current_regcache): Make static.
5122 (registers_ptid): Remove variable.
5123 (get_thread_regcache): New function.
5124 (get_current_regcache): New function.
5125 (registers_changed): Implement by freeing current regcache.
5126 (regcache_raw_read): Do not refer to current_regcache. Set
5127 inferior_ptid to regcache->ptid while calling target routines.
5128 (regcache_raw_write): Likewise.
5129 (regcache_raw_supply): Do not refer to current_regcache.
5130 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5131 (write_pc_pid): Likewise.
5132 (build_regcache): Remove.
5133 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5134 or deprecated_register_gdbarch_swap. Do not initialize
5136 * regcache.h (get_current_regcache): Add prototype.
5137 (get_thread_regcache): Likewise.
5138 (current_regcache): Remove declaration.
5140 * corelow.c (core_open): Replace current_regcache by
5141 get_current_regcache ().
5142 * frame.c (frame_pop): Likewise.
5143 (put_frame_register): Likewise.
5144 (get_current_frame, create_new_frame): Likewise.
5145 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5146 * stack.c (return_command): Likewise.
5147 * infcall.c (call_function_by_hand): Likewise.
5148 * infrun.c (resume): Likewise.
5149 (save_inferior_status, restore_inferior_status): Likewise.
5150 * linux-fork.c (fork_load_infrun_state): Likewise.
5151 (fork_save_infrun_state): Likewise.
5152 * win32-nat.c (win32_resume): Likewise.
5153 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5154 * monitor.c (monitor_wait): Likewise.
5155 * remote.c (remote_wait): Likewise.
5156 * remote-mips.c (mips_wait): Likewise.
5158 * bsd-kvm.c (bsd_kvm_open): Likewise
5159 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5160 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5161 * i386-linux-nat.c (i386_linux_resume): Likewise.
5162 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5163 (ia64_linux_stopped_data_address): Likewise.
5165 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5166 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5167 * mep-tdep.c (current_me_module, current_options): Likewise.
5168 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5170 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5171 regcache instead of current_regcache. Call target_fetch_registers.
5172 (linux_nat_corefile_thread_callback): Update call site.
5173 (linux_nat_do_registers): Likewise.
5174 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5175 of current_regcache.
5176 (procfs_make_note_section): Likewise.
5177 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5178 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5179 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5180 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5184 * regcache.c (read_register, read_register_pid): Remove.
5185 (write_register, write_register_pid): Likewise.
5186 * regcache.h (read_register, read_register_pid): Remove prototype.
5187 (write_register, write_register_pid): Likewise.
5191 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5192 (write_pc): Likewise. Remove default implementation, add predicate.
5193 * gdbarch.c, gdbarch.h: Regenerate.
5194 * regcache.c (read_pc_pid): Use current regcache instead of calling
5196 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5198 (generic_target_write_pc): Remove.
5199 * inferior.h (generic_target_write_pc): Remove.
5200 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5202 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5203 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5204 * sh-tdep.c (sh_gdbarch_init): Likewise.
5205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5207 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5208 argument. Use REGCACHE instead of calling read_register_pid.
5209 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5210 * hppa-tdep.c (hppa_read_pc): Likewise.
5211 * hppa-tdep.h (hppa_read_pc): Likewise.
5212 * ia64-tdep.c (ia64_read_pc): Likewise.
5213 * m32r-tdep.c (m32r_read_pc): Likewise.
5214 * mep-tdep.c (mep_read_pc): Likewise.
5215 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5216 * spu-tdep.c (spu_read_pc): Likewise.
5218 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5219 argument. Use REGCACHE instead of calling write_register_pid.
5220 * avr-tdep.c (avr_write_pc): Likewise.
5221 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5222 * hppa-tdep.c (hppa_write_pc): Likewise.
5223 * hppa-tdep.h (hppa_write_pc): Likewise.
5224 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5225 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5226 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5227 * ia64-tdep.c (ia64_write_pc): Likewise.
5228 * ia64-tdep.h (ia64_write_pc): Likewise.
5229 * m32r-tdep.c (m32r_write_pc): Likewise.
5230 * m88k-tdep.c (m88k_write_pc): Likewise.
5231 * mep-tdep.c (mep_write_pc): Likewise.
5232 * mips-tdep.c (mips_write_pc): Likewise.
5233 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5234 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5235 * sparc-tdep.c (sparc_write_pc): Likewise.
5236 * spu-tdep.c (spu_write_pc): Likewise.
5238 * mips-tdep.c (read_signed_register): Remove.
5239 (read_signed_register_pid): Likewise.
5240 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5241 Use REGCACHE instead of calling read_signed_register_pid.
5245 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5246 * gdbarch.c, gdbarch.h: Regenerate.
5247 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5248 (push_dummy_code): Likewise. Pass it to callee.
5249 (call_function_by_hand): Pass current regcache to push_dummy_code.
5251 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5252 argument. Use it instead of current_regcache.
5254 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5255 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5259 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5260 * gdbarch.c, gdbarch.h: Regenerate.
5261 * infrun.c (handle_inferior_event): Pass current frame to
5262 gdbarch_get_longjmp_target.
5264 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5265 Read registers from FRAME instead of using read_register.
5266 Use get_frame_arch instead of current_gdbarch.
5267 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5268 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5269 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5270 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5271 (mips64_linux_get_longjmp_target): Likewise.
5272 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5276 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5277 * gdbarch.c, gdbarch.h: Regenerate.
5278 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5279 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5280 * infrun.c (handle_inferior_event): Pass current frame to
5281 gdbarch_skip_trampoline_code and skip_language_trampoline.
5283 * language.c (unk_lang_trampoline): Add FRAME argument.
5284 (skip_language_trampoline): Add FRAME argument. Pass it to
5285 skip_trampoline callback.
5286 * language.h: Add forward declaration of struct frame_info.
5287 (struct language_defn): Add FRAME argument to skip_trampoline.
5288 (skip_language_trampoline): Add FRAME argument.
5289 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5290 to skip_trampoline callback.
5291 * cp-abi.h: Add forward declaration of struct frame_info.
5292 (cplus_skip_trampoline): Add FRAME argument.
5293 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5294 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5295 to gdbarch_skip_trampoline_code.
5296 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5297 to gdbarch_skip_trampoline_code.
5299 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5300 * symtab.h (find_solib_trampoline_target): Likewise.
5301 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5302 find_solib_trampoline_target.
5304 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5305 from FRAME instead of calling read_register.
5307 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5308 argument. Read registers from FRAME instead of using read_register.
5309 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5310 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5312 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5315 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5317 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5318 registers from FRAME instead of using read_signed_register.
5320 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5322 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5323 instead of using read_register.
5324 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5325 ppc64_standard_linkage_target.
5326 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5327 Pass it to find_solib_trampoline_target. Read registers from FRAME
5328 instead of using read_register.
5330 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5335 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5337 * gdbarch.c, gdbarch.h: Regenerate.
5338 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5340 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5341 registers from FRAME instead of using read_register.
5342 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5343 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5344 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5347 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5348 from FRAME instead of using read_register.
5349 (thumb_get_next_pc): Likewise.
5350 (arm_get_next_pc): Likewise.
5351 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5352 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5353 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5356 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5357 from FRAME instead of using read_register.
5358 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5359 to find_step_target.
5361 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5362 from FRAME instead of using read_register / read_signed_register.
5363 (extended_mips16_next_pc): Likewise.
5364 (mips16_next_pc): Likewise.
5365 (mips_next_pc): Likewise.
5366 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5367 to mips_next_pc. Use get_frame_pc instead of read_pc.
5368 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5371 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5372 of current frame. Read registers from FRAME.
5373 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5374 branch_dest. Use get_frame_pc instead of read_pc.
5375 (rs6000_software_single_step): Likewise.
5376 (bl_to_blrl_insn_p): Do not call branch_dest.
5377 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5380 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5381 Read registers from FRAME instead of current regcache.
5382 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5383 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5384 * sparc-tdep.c (sparc_address_from_register): Remove.
5385 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5386 GDBARCH. Pass FRAME to step_trap callback.
5387 (sparc_step_trap): Add FRAME argument.
5388 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5389 to sparc_analyze_control_transfer. Read registers from FRAME instead
5390 of calling sparc_address_from_register.
5391 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5393 (sparc_address_from_register): Remove prototype.
5394 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5395 (sparcnbsd_step_trap): Add FRAME argument.
5397 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5398 by FRAME. Read registers from FRAME instead of REGCACHE.
5402 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5403 instead of calling read_register.
5405 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5406 calling write_register.
5408 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5409 calling write_register.
5411 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5412 instead of calling read_register.
5413 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5414 instead of calling read_register and write_register.
5416 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5417 instead of current_regcache.
5419 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5420 of calling write_register.
5421 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5422 parameter instead of current_regcache.
5424 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5425 instead of calling read_register.
5426 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5427 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5428 (mips_n32n64_push_dummy_call): Likewise.
5429 (mips_o32_push_dummy_call): Likewise.
5430 (mips_o64_push_dummy_call): Likewise.
5432 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5433 parameter instead of current_regcache.
5435 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5436 Use it instead of read_register and write_register.
5437 (xtensa_register_read_masked): Likewise.
5438 (xtensa_pseudo_register_read): Update call.
5439 (xtensa_pseudo_register_write): Likewise.
5440 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5441 instead of calling read_register.
5442 (xtensa_push_dummy_call): Update comment.
5446 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5447 by frame_unwind_register_signed calls.
5448 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5449 frame allocations when called with NULL NEXT_FRAME parameter.
5450 (read_next_frame_reg): Remove.
5452 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5453 instead of reading the FPSCR register.
5454 (sh_frame_cache): Pass unwound FPSCR register value to
5455 sh_analyze_prologue.
5456 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5458 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5459 instead of reading the CTBP register.
5460 (v850_frame_cache): Pass unwound CTBP register value to
5461 v850_analyze_prologue.
5465 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5466 * sh-tdep.c (sh_show_regs): Likewise.
5467 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5468 (sh_generic_show_regs): Add FRAME parameter. Use register
5469 values from that frame instead of calling read_register.
5470 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5471 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5472 sh_dsp_show_regs): Likewise.
5473 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5474 sh64_show_regs): Likewise.
5478 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5479 current regcache instead of calling read_register.
5483 * mep-tdep.c (current_me_module): Read from current regcache
5484 instead of calling read_register.
5485 (current_options): Likewise.
5489 * cris-tdep.c (cris_stopped_data_address): Read register values
5490 from current frame instead of calling read_register.
5491 * frv-tdep.c (frv_stopped_data_address): Likewise.
5495 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5496 instead of write_register (PC_REGNUM, ...).
5500 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5501 explaining why the PC adjustment code is necessary.
5505 * m68k-tdep.h (enum m68k_flavour): New.
5506 (struct gdbarch_tdep): New fields
5507 float_return, flavour and fpregs_present.
5508 * m68k-tdep.c (m68k_register_type): Use
5509 fpregs_present and conditionalize floating
5510 registers type on flavour.
5511 (m68k_register_names): New.
5512 (m68k_register_name): Use the above.
5513 (m68k_convert_register_p): Consult fpregs_present.
5514 (m68k_register_to_value, m68k_value_to_register):
5515 Use register_type to obtain the type of floating
5517 (m68k_svr4_extract_return_value): Check tdep->float_return.
5518 Use register_type to get the type of floating
5520 (m68k_svr4_store_return_value): Likewise.
5521 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5522 (m68k_analyze_register_saves): Likewise.
5523 (m68k_gdbarch_init): Extract infromation
5524 from XML description, if present. Guess coldfire by
5525 looking at the file, if present. Conditionalize
5526 setting of long double format. Set decr_pc_after_break
5527 to 2 on coldfire and fido. Enable XML-driven
5528 register description.
5529 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5530 size of tdep->fpreg_type, as opposed to hardcoded value.
5531 * Makefile.in (m68k-tdep.o): Update dependencies.
5535 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5536 qXfer:spu:write remote packet types.
5540 * xml-tdesc.c (tdesc_start_target): New.
5541 (target_attributes): New.
5542 (tdesc_elements): Use it.
5543 * features/gdb-target.dtd: Add #FIXED version attribute for
5548 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5552 * fork-child.c (fork_inferior): Update comment.
5556 * features/Makefile: Generate regformats for mips-linux and
5558 * features/sort-regs.xsl: Correct typo.
5559 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5560 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5565 * config/mips/linux.mh (TDEP_XML): New.
5566 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5567 * mips-linux-nat.c (mips_linux_register_addr): Handle
5568 MIPS_RESTART_REGNUM.
5569 (mips64_linux_register_addr): Likewise.
5570 (super_xfer_partial, mips_linux_xfer_partial): New.
5571 (_initialize_mips_linux_nat): Add them to the target_ops.
5572 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5573 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5574 (mips_linux_o32_sigframe_init)
5575 (mips_linux_n32n64_sigframe_init): Likewise.
5576 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5577 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5578 "org.gnu.gdb.mips.linux" feature.
5579 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5580 (mips_linux_restart_reg_p): New prototype.
5581 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5582 initialization routine.
5583 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5587 * Makefile.in (mips-tdep.o): Update.
5588 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5589 (mips_n32_n64_aliases, mips_register_aliases): New.
5590 (mips_register_name): Call tdesc_register_name.
5591 (mips_tdesc_register_reggroup_p): New.
5592 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5593 (mips_gdbarch_init): Add target-described register support.
5594 Register aliases for register names.
5595 * target-descriptions.c (tdesc_register_name): Make global.
5596 (tdesc_register_in_reggroup_p): New function, broken out from
5597 tdesc_register_reggroup_p.
5598 (tdesc_register_reggroup_p): Use it.
5599 * target-descriptions.h (tdesc_register_name)
5600 (tdesc_register_in_reggroup_p): New prototypes.
5601 * NEWS: Correct formatting. Mention MIPS register support.
5602 * features/mips-cp0.xml, features/mips-fpu.xml,
5603 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5604 features/mips64-cpu.xml: New files.
5608 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5609 * valops.c (value_cast): Likewise.
5610 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5611 * ui-out.c (ui_out_field_core_addr): Likewise.
5612 * tracepoint.c (tracepoints_info): Likewise.
5613 * symtab.c (print_msymbol_info): Likewise.
5614 * solib-irix.c (irix_current_sos)
5615 (irix_open_symbol_file_object): Likewise.
5616 * remote.c (build_remote_gdbarch_data): Likewise.
5617 * prologue-value.c (make_pv_area): Likewise.
5618 * procfs.c (info_mappings_callback): Likewise.
5619 * printcmd.c (print_scalar_formatted)
5620 (deprecated_print_address_numeric): Likewise.
5621 * memattr.c (mem_info_command): Likewise.
5622 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5623 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5624 * exec.c (print_section_info): Likewise.
5625 * dwarf2read.c (read_subrange_type): Likewise.
5626 * dwarf2loc.c (find_location_expression): Likewise.
5627 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5628 (signed_address_type, execute_stack_op): Likewise.
5629 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5630 * gdbarch.c, gdbarch.h: Regenerate.
5634 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5635 * arch-utils.c (show_architecture): Likewise.
5636 * remote-mips.c (mips_open): Likewise
5637 * nto-tdep.c (nto_find_and_open_solib)
5638 (nto_init_solib_absolute_prefix): Likewise.
5639 * nto-procfs (procfs_open): Likewise.
5640 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5641 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5642 * gdbarch.c, gdbarch.h: Regenerate.
5646 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5647 * gdbtypes.c (build_flt): Likewise.
5648 * gdbarch.c, gdbarch.h: Regenerate.
5652 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5653 gdbarch_breakpoint_from_pc.
5654 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5655 * remote.c (remote_insert_breakpoint)
5656 (remote_insert_hw_breakpoint): Likewise.
5657 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5658 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5659 * breakpoint.h (bp_target_info): Likewise (comment).
5660 * breakpoint.c (read_memory_nobpt): Likewise.
5661 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5662 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5663 * gdbarch.c, gdbarch.h: Regenerate.
5667 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5668 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5669 * solib-pa64.c (read_dynamic_info): Likewise.
5670 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5671 * solib.c (info_sharedlibrary_command): Likewise.
5672 * s390-nat.c (SUBOFF): Likewise.
5673 * p-valprint.c (pascal_val_print): Likewise.
5674 * procfs.c (info_proc_mappings): Likewise.
5675 * printcmd.c (decode_format): Likewise.
5676 * nto-tdep.c (nto_truncate_ptr): Likewise.
5677 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5678 (mips64_linux_get_longjmp_target): Likewise.
5679 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5680 * jv-valprint.c (java_value_print): Likewise.
5681 * jv-lang.c (get_java_object_header_size): Likewise.
5682 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5683 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5684 (hppa_hpux_unwind_adjust_stub): Likewise.
5685 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5686 * gdbtypes.c (make_pointer_type, make_reference_type)
5687 (smash_to_memberptr_type): Likewise.
5688 * gdbarch.c, gdbarch.h: Regenerate.
5692 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5693 (print_gp_register_row): Stop before printing a register bigger
5694 than the ABI register size.
5695 (mips_print_registers_info): Update call to mips_print_register.
5699 * expression.h (enum exp_opcode): Document a register name for
5701 * parse.c (write_dollar_variable): Write the register name for
5703 (operator_length_standard): Expect the register name following
5705 * ada-lang.c (resolve_subexp): Likewise.
5706 * ax-gdb.c (gen_expr): Likewise.
5707 * eval.c (evaluate_subexp_standard): Likewise.
5708 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5710 * tracepoint.c (encode_actions): Likewise.
5714 * utils.c (set_screen_size): Use INT_MAX for default columns.
5718 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5719 qXfer:spu:write packet types.
5723 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5724 * gdbarch.c, gdbarch.h: Regenerate.
5728 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5729 gdbarch_stab_reg_to_regnum.
5730 * stabsread.c (define_symbol): Likewise.
5731 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5732 gdbarch_ecoff_reg_to_regnum.
5733 * mdebugread.c (parse_symbol): Likewise.
5734 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5735 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5736 gdbarch_dwarf_reg_to_regnum.
5737 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5738 * coffread.c (process_coff_symbol): Likewise.
5739 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5740 gdbarch_dwarf2_reg_to_regnum.
5741 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5742 (locexpr_describe_location): Likewise.
5743 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5744 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5745 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5746 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5747 * gdbarch.c, gdbarch.h: Regenerate.
5751 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5752 gdbarch_smash_text_address.
5753 * somread.c (som_symtab_read): Likewise.
5754 * elfread.c (record_minimal_symbol): Likewise.
5755 * dbxread.c (process_one_symbol): Likewise.
5756 * coffread.c (coff_symtab_read): Likewise.
5757 * gdbarch.c, gdbarch.h: Regenerate.
5761 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5762 * findvar.c (value_from_register): Likewise.
5763 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5764 * valops.c (value_assign): Likewise.
5765 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5766 gdbarch_convert_register_p.
5767 * findvar.c (value_from_register): Likewise.
5768 * valops.c (value_assign): Likewise.
5769 * gdbarch.c, gdbarch.h: Regenerate.
5773 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5774 gdbarch_register_sim_regno.
5775 * sim-regno.h (sim_regno): Likewise (comment).
5776 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5777 * gdbarch.c, gdbarch.h: Regenerate.
5781 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5782 gdbarch_virtual_frame_pointer.
5783 * tracepoint.c (encode_actions): Likewise.
5784 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5785 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5786 * gdbarch.c, gdbarch.h: Regenerate.
5790 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5791 * p-lang.c (pascal_create_fundamental_type): Likewise.
5792 * objc-lang.c (objc_create_fundamental_type): Likewise.
5793 * mdebugread.c (_initialize_mdebugread): Likewise.
5794 * m2-lang.c (m2_create_fundamental_type)
5795 (_initialize_m2_language): Likewise.
5796 * gdbtypes.c (build_gdbtypes): Likewise.
5797 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5798 * doublest.c (floatformat_from_length): Likewise.
5799 * c-lang.c (c_create_fundamental_type): Likewise.
5800 * ada-lang.c (ada_create_fundamental_type)
5801 (ada_language_arch_info): Likewise.
5802 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5803 * value.c (unpack_double): Likewise (comment).
5804 * gdbtypes.c (build_gdbtypes): Likewise.
5805 * doublest.c (floatformat_from_length): Likewise.
5806 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5807 * valarith.c (value_binop): Likewise.
5808 * p-lang.c (pascal_create_fundamental_type): Likewise.
5809 * objc-lang.c (objc_create_fundamental_type): Likewise.
5810 * mdebugread.c (_initialize_mdebugread): Likewise.
5811 * m2-lang.c (m2_create_fundamental_type): Likewise.
5812 * gdbtypes.c (build_gdbtypes): Likewise.
5813 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5814 * doublest.c (floatformat_from_length): Likewise.
5815 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5816 * c-lang.c (c_create_fundamental_type): Likewise.
5817 * ada-lex.l (processReal): Likewise.
5818 * ada-lang.c (ada_create_fundamental_type)
5819 (ada_language_arch_info): Likewise.
5820 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5821 * value.c (unpack_double): Likewise (comment).
5822 * gdbtypes.c (build_gdbtypes): Likewise.
5823 * doublest.c (floatformat_from_length): Likewise.
5824 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5825 gdbarch_long_double_bit.
5826 * p-lang.c (pascal_create_fundamental_type): Likewise.
5827 * objc-lang.c (objc_create_fundamental_type): Likewise.
5828 * m2-lang.c (m2_create_fundamental_type): Likewise.
5829 * gdbtypes.c (build_gdbtypes): Likewise.
5830 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5831 * doublest.c (floatformat_from_length): Likewise.
5832 * c-lang.c (c_create_fundamental_type): Likewise.
5833 * ada-lex.l (processReal): Likewise.
5834 * ada-lang.c (ada_create_fundamental_type)
5835 (ada_language_arch_info): Likewise.
5836 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5837 gdbarch_long_double_format.
5838 * gdbtypes.c (build_gdbtypes): Likewise.
5839 * doublest.c (floatformat_from_length): Likewise.
5840 * gdbarch.c, gdbarch.h: Regenerate.
5844 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5845 * ada-lang.c (ada_create_fundamental_type)
5846 (ada_language_arch_info): Likewise.
5847 * c-lang.c (c_create_fundamental_type): Likewise.
5848 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5849 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5850 * m2-lang.c (m2_create_fundamental_type): Likewise.
5851 * objc-lang.c (objc_create_fundamental_type): Likewise.
5852 * p-lang.c (pascal_create_fundamental_type): Likewise.
5853 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5854 * c-exp.y (parse_number): Likewise.
5855 * objc-exp.y (parse_number): Likewise.
5856 * ada-lex.l (processInt): Likewise.
5857 * f-exp.y (parse_number): Likewise.
5858 * p-exp.y (parse_number): Likewise.
5859 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5860 (gdbtypes_post_init, build_gdbtypes): Likewise.
5861 * p-lang.c (pascal_create_fundamental_type): Likewise.
5862 * parse.c (build_parse): Likewise.
5863 * xcoffread.c (_initialize_xcoffread): Likewise.
5864 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5865 (read_range_type): Likewise.
5866 * objc-lang.c (objc_create_fundamental_type): Likewise.
5867 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5868 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5869 (m2_create_fundamental_type): Likewise.
5870 * c-lang.c (c_create_fundamental_type): Likewise.
5871 * coffread.c (coff_read_enum_type): Likewise.
5872 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5873 * dwarf2read.c (new_symbol): Likewise.
5874 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5875 * c-exp.y (parse_number): Likewise.
5876 * objc-exp.y (parse_number): Likewise.
5877 * ada-lex.l (processInt): Likewise.
5878 * f-exp.y (parse_number): Likewise.
5879 * p-exp.y (parse_number): Likewise.
5880 * valarith.c (value_binop): Likewise.
5881 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5882 * ada-lang.c (ada_create_fundamental_type)
5883 (ada_language_arch_info): Likewise.
5884 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5885 * symfile.c (TARGET_LONG_BYTES): Likewise.
5886 * p-lang.c (pascal_create_fundamental_type): Likewise.
5887 * objc-lang.c (objc_create_fundamental_type): Likewise.
5888 * m2-lang.c (m2_create_fundamental_type): Likewise.
5889 * f-lang.c (f_create_fundamental_type): Likewise.
5890 * c-lang.c (c_create_fundamental_type): Likewise.
5891 * coffread.c (decode_base_type): Likewise.
5892 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5893 * c-exp.y (parse_number): Likewise.
5894 * objc-exp.y (parse_number): Likewise.
5895 * p-exp.y (parse_number): Likewise.
5896 * ada-lang.c (ada_create_fundamental_type)
5897 (ada_language_arch_info): Likewise.
5898 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5899 * stabsread.c (read_range_type): Likewise.
5900 * p-lang.c (pascal_create_fundamental_type): Likewise.
5901 * objc-lang.c (objc_create_fundamental_type): Likewise.
5902 * m2-lang.c (m2_create_fundamental_type): Likewise.
5903 * f-lang.c (f_create_fundamental_type): Likewise.
5904 * c-lang.c (c_create_fundamental_type): Likewise.
5905 * gdbarch.c, gdbarch.h: Regenerate.
5909 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5910 (struct frame_unwind): Add dealloc_cache.
5911 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5913 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5914 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5915 (libunwind_frame_unwind): Set dealloc_cache.
5916 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5921 * remote.c (remote_write_qxfer): New function.
5922 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5923 (remote_read_qxfer): Do not cache empty objects.
5924 (_initialize_remote): Add PACKET_qXfer_spu_read and
5925 PACKET_qXfer_spu_write.
5929 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5930 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5932 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5933 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5934 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5935 * spu-tdep.c (infospucmdlist): New variable.
5936 (spu_register_name): Handle additional pseudo registers.
5937 (spu_register_type): Likewise.
5938 (spu_pseudo_register_read): Likewise.
5939 (spu_pseudo_register_write): Likewise.
5940 (spu_pseudo_register_read_spu): New function.
5941 (spu_pseudo_register_write_spu): Likewise.
5942 (info_spu_event_command): New function.
5943 (info_spu_signal_command): Likewise.
5944 (info_spu_mailbox_list): Likewise.
5945 (info_spu_mailbox_command): Likewise.
5946 (spu_mfc_get_bitfield): Likewise.
5947 (info_spu_dma_cmdlist): Likewise.
5948 (info_spu_dma_command): Likewise.
5949 (info_spu_proxydma_command): Likewise.
5950 (info_spu_command): Likewise.
5951 (_initialize_spu_tdep): Install "info spu" commands.
5955 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5956 accessing non-seekable spufs files.
5960 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5961 gdbarch_skip_trampoline_code.
5962 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5963 * objc-lang.c (objc_skip_trampoline)
5964 (objc_submethod_helper_data): Likewise.
5965 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5966 * infrun.c (handle_inferior_event): Likewise.
5967 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5968 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5969 gdbarch_in_solib_return_trampoline.
5970 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5971 * infrun.c (handle_inferior_event): Likewise.
5972 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5973 * gdbarch.c, gdbarch.h: Regenerate.
5977 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5978 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5979 * linespec.c (minsym_found): Likewise.
5980 * infrun.c (step_into_function): Likewise.
5981 * gdbarch.c, gdbarch.h: Regenerate.
5985 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5986 * valops.c (value_allocate_space_in_inferior): Likewise.
5987 * gdbarch.c, gdbarch.h: Regenerate.
5991 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5992 gdbarch_memory_insert_breakpoint.
5993 * mem-break.c (memory_insert_breakpoint): Likewise.
5994 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5995 gdbarch_memory_remove_breakpoint.
5996 * mem-break.c (memory_remove_breakpoint): Likewise.
5997 * gdbarch.c, gdbarch.h: Regenerate.
6001 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6002 gdbarch_fetch_tls_load_module_address.
6003 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6004 gdbarch_fetch_tls_load_module_address_p.
6005 * gdbarch.c, gdbarch.h: Regenerate.
6009 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6010 gdbarch_decr_pc_after_break.
6011 * tracepoint.c (trace_dump_command): Likewise.
6012 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6013 * linux-thread-db.c (check_event): Likewise.
6014 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6015 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6016 * frame.h: Likewise (comment).
6017 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6018 * aix-thread.c (aix_thread_wait): Likewise.
6019 * gdbarch.c, gdbarch.h: Regenerate.
6023 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6024 gdbarch_address_class_type_flags.
6025 * dwarf2read.c (read_tag_pointer_type): Likewise.
6026 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6027 gdbarch_address_class_type_flags_p.
6028 * dwarf2read.c (read_tag_pointer_type): Likewise.
6029 * gdbarch.c, gdbarch.h: Regenerate.
6033 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6034 * value.c (value_as_address): Likewise (comment).
6035 * remote-mips.c (common_breakpoint): Likewise.
6036 * regcache.c (read_pc_pid): Likewise.
6037 * printcmd.c (do_one_display): Likewise.
6038 * monitor.c (monitor_write_memory, monitor_read_memory)
6039 (monitor_insert_breakpoint): Likewise.
6040 * mips-tdep.c (heuristic_proc_start): Likewise.
6041 * infrun.c (insert_step_resume_breakpoint_at_frame)
6042 (insert_step_resume_breakpoint_at_caller): Likewise.
6043 * buildsym.c (record_line): Likewise.
6044 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6045 (arm_get_next_pc): Likewise.
6046 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6047 (store_regs): Likewise.
6048 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6049 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6050 * gdbarch.c, gdbarch.h: Regenerate.
6054 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6055 * tracepoint.c (scope_info): Likewise.
6056 * target.c (debug_print_register): Likewise.
6057 * stack.c (frame_info): Likewise.
6058 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6059 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6060 (sh64_media_print_registers_info)
6061 (sh64_compact_print_registers_info): Likewise.
6062 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6063 * remote-sim.c (gdbsim_fetch_register): Likewise.
6064 * remote.c (packet_reg): Likewise (comment).
6065 * reggroups.c (default_register_reggroup_p): Likewise.
6066 * regcache.c (regcache_dump): Likewise.
6067 * printcmd.c (address_info): Likewise.
6068 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6069 * mt-dep.c (mt_registers_info): Likewise.
6070 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6071 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6072 (mips_read_fp_register_double, mips_print_fp_register)
6073 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6074 (mips_register_sim_regno): Likewise.
6075 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6076 * inf-ptrace.c (inf_ptrace_fetch_register)
6077 (inf_ptrace_store_register): Likewise.
6078 * infcmd.c (default_print_registers_info): Likewise.
6079 * ia64-linux-nat.c (ia64_linux_fetch_register)
6080 (ia64_linux_store_register): Likewise.
6081 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6082 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6083 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6084 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6085 (hppa_hpux_store_register): Likewise.
6086 * findvar.c (locate_var_value): Likewise.
6087 * dwarf2loc.c (locexpr_describe_location): Likewise.
6088 * dwarf2-frame.c (execute_cfa_program): Likewise.
6089 * arm-tdep.c (arm_push_dummy_call): Likewise.
6090 * arch-utils.c (legacy_register_sim_regno): Likewise.
6091 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6092 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6093 * mi/mi-main.c (mi_cmd_data_list_register_names)
6094 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6095 (mi_cmd_data_write_register_values): Likewise.
6096 * gdbarch.c, gdbarch.h: Regenerate.
6100 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6104 * remote.c (process_g_packet): Don't check size.
6105 * gdbarch.sh: Remove register_bytes_ok.
6106 * gdbarch.c: Regenerated.
6107 * gdbarch.h: Regenerated.
6108 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6109 (m68k_register_bytes_ok): Remove.
6110 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6114 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6115 (destroy_addr_space_name): Define.
6116 (libunwind_load): Get address of destroy_addr_space function.
6117 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6118 returning unsuccessfully.
6119 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6121 (libunwind_sigtramp_frame_sniffer): Likewise.
6122 (libunwind_get_reg_special): Likewise.
6126 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6127 gdbarch_fetch_pointer_argument.
6128 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6129 * gdbarch.c, gdbarch.h: Regenerate.
6133 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6134 gdbarch_have_nonsteppable_watchpoint.
6135 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6136 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6137 gdbarch_cannot_step_breakpoint.
6138 * infrun.c (resume): Likewise.
6139 * gdbarch.c, gdbarch.h: Regenerate.
6143 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6144 * stack.c (print_frame_args): Likewise.
6145 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6146 * stack.c (print_args_stub, frame_info): Likewise.
6147 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6148 * stack.c (print_args_stub, frame_info): Likewise.
6149 * gdbarch.c, gdbarch.h: Regenerate.
6153 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6154 gdbarch_coff_make_msymbol_special.
6155 * coffread.c (coff_symtab_read): Likewise.
6156 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6157 gdbarch_elf_make_msymbol_special.
6158 * elfread.c (elf_symtab_read): Likewise.
6159 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6160 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6161 * gdbarch.c, gdbarch.h: Regenerate.
6165 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6166 gdbarch_frame_red_zone_size.
6167 * gdbarch.c, gdbarch.h: Regenerate.
6171 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6172 * infcall.c (call_function_by_hand): Likewise.
6173 * gcore.c (derive_stack_segment): Likewise.
6174 * frame.c (frame_id_inner): Likewise.
6175 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6176 * ada-lang.c (ensure_lval): Likewise.
6177 * gdbarch.c, gdbarch.h: Regenerate.
6181 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6182 gdbarch_address_to_pointer.
6183 * findvar.c (store_typed_address): Likewise.
6184 * gdbtypes.c (make_pointer_type): Likewise (comment).
6185 * procfs.c (procfs_address_to_host_pointer): Likewise.
6186 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6187 (value_of_builtin_frame_fp_reg): Likewise.
6188 (value_of_builtin_frame_pc_reg): Likewise.
6189 * utils.c (paddress): Likewise (comment).
6190 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6191 gdbarch_pointer_to_address.
6192 * findvar.c (extract_typed_address): Likewise.
6193 * gdbtypes.c (make_pointer_type): Likewise (comment).
6194 * valops.c (value_cast): Likewise (comment).
6195 * gdbarch.c, gdbarch.h: Regenerate.
6199 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6200 * infrun.c (handle_inferior_event): Likewise.
6201 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6202 gdbarch_get_longjmp_target_p.
6203 * breakpoint.c (breakpoint_re_set): Likewise.
6204 * infrun.c (handle_inferior_event): Likewise.
6205 * gdbarch.c, gdbarch.h: Regenerate.
6209 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6210 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6211 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6212 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6213 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6214 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6215 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6216 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6217 current_ex_event, child_get_current_exception_event): Remove.
6218 (hppa_hpux_inferior_created): Remove.
6219 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6221 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6222 (deprecated_exception_support_initialized): Remove.
6223 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6224 (deprecated_exception_support_initialized): Remove.
6225 (breakpoint_init_inferior): Remove handling of non-zero
6226 deprecated_exception_catchpoints_are_fragile.
6228 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6229 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6230 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6231 deprecated_hp_som_som_object_present.
6232 * eval.c (evaluate_subexp_standard): Likewise.
6233 * valops.c (value_cast): Likewise.
6235 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6236 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6237 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6241 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6242 (struct objfile): Remove import_list, import_list_size,
6243 export_list, export_list_size members.
6244 (is_in_import_list): Remove prototype.
6245 * objfiles.c (is_in_import_list): Remove.
6246 * somread.c (init_import_symbols, init_export_symbols): Remove.
6247 (som_symfile_read): Do not call init_import_symbols. Do not
6248 set objfile->export_list and objfile->export_list_size.
6252 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6253 Use the original objfile if necessary.
6257 * defs.h (ldirname): New prototype.
6258 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6260 * utils.c (ldirname): New function.
6261 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6265 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6269 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6273 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6277 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6278 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6279 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6280 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6281 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6282 ppc_linux_at_sigtramp_return_path): Remove.
6286 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6287 (xtensa_register_write_masked, xtensa_register_read_masked)
6288 (xtensa_extract_return_value, xtensa_store_return_value
6289 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6290 TARGET_BYTE_ORDER by gdbarch_byte_order.
6291 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6292 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6293 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6294 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6295 (sh64_push_dummy_call, sh64_extract_return_value)
6296 (sh64_store_return_value, sh64_register_convert_to_virtual)
6297 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6298 (sh64_pseudo_register_write, sh64_do_fp_register)
6299 (sh64_frame_prev_register): Likewise.
6300 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6301 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6302 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6303 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6304 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6305 * ppc-linux-nat.c (store_register): Likewise.
6306 * nto-tdep.c (nto_find_and_open_solib)
6307 (nto_init_solib_absolute_prefix): Likewise.
6308 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6309 (mips_convert_register_p, mips_eabi_push_dummy_call)
6310 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6311 (mips_o32_push_dummy_call, mips_o32_return_value)
6312 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6313 (mips_read_fp_register_single, mips_read_fp_register_double)
6314 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6315 (mips_breakpoint_from_pc): Likewise.
6316 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6317 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6318 (mips_linux_o32_sigframe_init): Likewise.
6319 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6320 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6321 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6322 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6323 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6324 * coffread.c (process_coff_symbol): Likewise.
6325 * arm-tdep.c (convert_from_extended, convert_to_extended)
6326 (gdb_print_insn_arm): Likewise.
6330 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6331 * i386-tdep.c (i386_dbx_reg_to_regnum)
6332 (i386_svr4_reg_to_regnum): Likewise.
6333 * inf-ptrace.c (inf_ptrace_fetch_registers)
6334 (inf_ptrace_store_registers): Likewise.
6335 * corelow.c (get_core_registers): Likewise.
6336 * i386-linux-nat.c (supply_gregset, fill_gregset)
6337 (i386_linux_fetch_inferior_registers)
6338 (i386_linux_store_inferior_registers): Likewise.
6339 * remote.c (init_remote_state,packet_reg_from_regnum)
6340 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6341 (remote_prepare_to_store,store_registers_using_G)
6342 (remote_store_registers,remote_arch_state): Likewise.
6343 * tracepoint.c (encode_actions): Likewise.
6344 * mi/mi-main.c (mi_cmd_data_list_register_names)
6345 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6346 (mi_cmd_data_write_register_values): Likewise.
6347 * tui/tui-regs.c (tui_show_register_group)
6348 (tui_show_register_group): Likewise.
6349 * xtensa-tdep.h (FP_ALIAS): Likewise.
6350 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6351 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6352 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6353 * win32-nat.c (do_win32_fetch_inferior_registers)
6354 (do_win32_store_inferior_registers,fetch_elf_core_registers
6355 * user-regs.h: Likewise (comment).
6356 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6357 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6358 * target-descriptions.h: Likewise (comment).
6359 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6360 * target.c (debug_print_register): Likewise.
6361 * stack.c (frame_info): Likewise.
6362 * stabsread.c (define_symbol): Likewise.
6363 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6364 (sh64_media_print_registers_info)
6365 (sh64_compact_print_registers_info): Likewise.
6366 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6367 * rs6000-nat.c (fetch_register,store_register): Likewise.
6368 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6369 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6370 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6371 * remote-m32r-sdi.c (m32r_fetch_registers)
6372 (m32r_store_registers): Likewise.
6373 * reggroups.c (default_register_reggroup_p): Likewise.
6374 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6375 (regcache_restore,regcache_dump): Likewise.
6376 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6377 * mips-tdep.c (mips_xfer_register,mips_register_name)
6378 (mips_register_reggroup_p,mips_pseudo_register_read)
6379 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6380 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6381 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6382 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6383 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6384 (print_gp_register_row,mips_print_registers_info)
6385 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6386 (mips_register_sim_regno): Likewise.
6387 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6388 (mips_linux_n32n64_sigframe_init): Likewise.
6389 * mips-linux-nat.c (mips_linux_register_addr)
6390 (mips64_linux_register_addr): Likewise.
6391 * findvar.c (value_of_register): Likewise.
6392 * infcmd.c (default_print_registers_info,registers_info)
6393 (print_vector_info,print_float_info): Likewise.
6394 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6395 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6396 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6397 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6398 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6399 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6400 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6401 (ia64_linux_store_registers): Likewise.
6402 * hpux-thread.c (hpux_thread_fetch_registers)
6403 (hpux_thread_store_registers): Likewise.
6404 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6405 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6406 (h8300_register_type): Likewise.
6407 * dwarf2-frame.c (dwarf2_frame_cache)
6408 (dwarf2_frame_state_alloc_regs): Likewise.
6409 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6410 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6411 (crisv32_cannot_store_register,cris_register_name): Likewise.
6412 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6413 * arch-utils.c (legacy_register_sim_regno)
6414 (legacy_virtual_frame_pointer): Likewise.
6415 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6416 * arm-tdep.h: Likewise (comment).
6417 * frv-tdep.c (frv_register_sim_regno): Likewise.
6418 * m68klinux-nat.c (old_fetch_inferior_registers)
6419 (old_store_inferior_registers): Likewise.
6420 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6421 * irix5-nat.c (fetch_core_registers): Likewise.
6422 * hppa-tdep.c (hppa_frame_cache): Likewise.
6423 * hppa-linux-nat.c (hppa_linux_register_addr)
6424 (hppa_linux_fetch_inferior_registers)
6425 (hppa_linux_store_inferior_registers): Likewise.
6426 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6427 (hppa_hpux_store_inferior_registers): Likewise.
6428 * amd64-nat.c (amd64_native_gregset_reg_offset)
6429 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6430 * dbug-rom.c (dbug_regname): Likewise.
6431 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6432 (HARD_PAGE_REGNUM (comment)): Likewise.
6433 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6434 * i386-tdep.c (i386_dbx_reg_to_regnum)
6435 (i386_svr4_reg_to_regnum): Likewise.
6436 * mi/mi-main.c (mi_cmd_data_list_register_names)
6437 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6438 (mi_cmd_data_write_register_values): Likewise.
6439 * gdbarch.c, gdbarch.h: Regenerate.
6440 * tui/tui-regs.c (tui_show_register_group): Likewise.
6441 * xtensa-tdep.h (FP_ALIAS): Likewise.
6442 * user-regs.h: Likewise (comment).
6443 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6444 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6445 * target-descriptions.h: Likewise (comment).
6446 * target.c (debug_print_register): Likewise.
6447 * stack.c (frame_info): Likewise.
6448 * stabsread.c (define_symbol): Likewise.
6449 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6450 (sh64_compact_print_registers_info): Likewise.
6451 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6452 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6453 (regcache_restore,regcache_dump): Likewise.
6454 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6455 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6456 (mips_stab_reg_to_regnum): Likewise.
6457 * findvar.c (value_of_register): Likewise.
6458 * infcmd.c (default_print_registers_info,registers_info)
6459 (print_vector_info,print_float_info): Likewise.
6460 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6461 * h8300-tdep.c (h8300_register_type): Likewise.
6462 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6463 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6464 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6465 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6466 * parse.c: Remove comment.
6467 * gdbarch.c, gdbarch.h: Regenerate
6471 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6472 gdbarch_cannot_fetch_register.
6473 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6474 * hppa-linux-nat.c (fetch_register): Likewise.
6475 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6476 * m68klinux-nat.c (fetch_register): Likewise.
6477 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6479 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6480 gdbarch_cannot_store_register.
6481 * hppa-linux-nat.c (store_register): Likewise.
6482 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6483 * regcache.c (regcache_raw_write): Likewise.
6484 * m68klinux-nat.c (store_register): Likewise.
6485 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6486 * gdbarch.c, gdbarch.h: Regenerate.
6490 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6491 * gdbarch.c, gdbarch.h: Regenerate.
6495 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6496 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6497 * gdbarch.c, gdbarch.h: Regenerate.
6501 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6502 * ax-gdb.c (gen_bitfield_ref): Likewise.
6503 * mi/mi-main.c (get_register): Likewise.
6504 * findvar.c (default_value_from_register, extract_signed_integer)
6505 (extract_unsigned_integer, extract_long_unsigned_integer)
6506 (store_signed_integer, store_unsigned_integer): Likewise.
6507 * regcache.c (regcache_dump): Likewise.
6508 * value.c (lookup_internalvar, value_of_internalvar)
6509 (set_internalvar): Likewise.
6511 * valprint.c (print_binary_chars, print_octal_chars)
6512 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6513 * infcmd.c (default_print_registers_info): Likewise.
6514 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6515 * stabsread.c (define_symbol): Likewise.
6516 * doublest.c (floatformat_from_length, floatformat_from_type)
6517 (extract_typed_floating, store_typed_floating): Likewise.
6518 * gdbarch.c, gdbarch.h: Regenerate.
6522 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6523 gdbarch_call_dummy_location.
6524 * infcall.c (call_function_by_hand): Likewise.
6525 * inferior.h: Change comment.
6526 * arch-utils.c: Change comment.
6527 * gdbarch.c, gdbarch.h: Regenerate.
6531 * solib-aix5.c: Delete.
6532 * Makefile.in (solib-aix5.o): Delete rule.
6536 * breakpoint.h (enum bpstat_what_main_action): Remove
6537 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6538 * infrun.c (process_event_stop_test): Do not check for it.
6543 * ser-unix.c (show_serial_hwflow): New function.
6544 (hardwire_raw): Add hardware flow control support.
6545 (_initialize_ser_hardwire): Add "set/show remoteflow".
6546 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6547 * NEWS: Document the new command.
6551 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6552 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6553 define for i[[3456]]86-*-linux* native configurations.
6554 * config.in, configure: Regenerate.
6558 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6559 a core file. Add comment in the function description.
6563 * c-valprint.c (c_value_print): If the initialized field of the
6564 value struct is 0, print out "[uninitialized]" before the value.
6565 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6566 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6567 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6568 ctx->initialized appropriately. Verify no location op follows
6570 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6571 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6572 set_value_initialized.
6573 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6574 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6575 * value.c (struct value): New field, initialized.
6576 (allocate_value): Initialize new field.
6577 (set_value_initialized): New function.
6578 (value_initialized): New function.
6579 * value.h (value_initialized): New extern declaration.
6580 (set_value_initialized): Likewise.
6584 * MAINTAINERS (Write After Approval): Add self.
6588 * gdbtypes.c (make_reference_type): Preserve the type chain
6589 and set the length of all the variants of the pointer type.
6593 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6594 and set the length of all the variants of the pointer type.
6598 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6600 (mips_o64_push_dummy_call): Reformat a comment.
6604 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6605 (score_prologue_frame_base_address): Return fp to keep gdb print
6606 local variables correctly when debugging information is stabs.
6608 (score_analyze_prologue): For software watchpoint, fetch all the
6609 instructions from range [startaddr, pc] once and identify them locally
6610 to reduce memory access.
6611 (score_malloc_and_get_memblock, score_free_memblock)
6612 (score_adjust_memblock_ptr): New functions.
6613 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6615 (score_target_can_use_watch, score_stopped_by_watch)
6616 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6617 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6618 New functions for remote & local hw-watchpoint and hw-breakpoint.
6622 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6623 declarations as well.
6627 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6628 * config/arm/tm-embed.h: Delete file.
6630 * arm-tdep.h (arm_software_single_step): Declare.
6631 * arm-tdep.c (arm_software_single_step): Make global.
6632 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6634 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6635 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6636 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6637 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6639 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6640 allow defines to be overriden by TM file.
6641 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6642 change default to {0xbe,0xbe}.
6643 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6644 arm_obsd_thumb_be_breakpoint): New global variables.
6645 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6646 tdep->thumb_breakpoint_size.
6647 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6648 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6649 tdep->thumb_breakpoint_size.
6651 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6655 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6658 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6659 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6660 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6661 (mips_abi_regsize): Simplify.
6662 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6663 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6664 (mips_o32_return_value, mips_o64_push_dummy_call)
6665 (mips_o64_return_value): Propogate constant register sizes. Use the
6666 ABI register size instead of mips_stack_argsize.
6667 (mips_dump_tdep): Don't print mips_stack_argsize.
6668 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6673 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6674 * config/mips/tm-linux.h: Delete.
6675 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6676 (mips_linux_in_dynsym_resolve_code): Make static. Use
6677 svr4_in_dynsym_resolve_code.
6678 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6680 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6682 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6683 * Makefile.in (mips-linux-tdep.o): Update.
6684 * solib.c (set_solib_ops): New.
6685 (current_target_so_ops): Update comment.
6686 * solib.h (set_solib_ops): New prototype.
6690 * printcmd.c (do_examine): Fix typos in a comment.
6694 * configure.ac: Allow sysroots to be relocated under $prefix as
6695 well as $exec_prefix.
6696 * configure: Regenerate.
6700 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6701 (offsetof): Do not define.
6702 (find_stub_with_shl_get): Use numerical value 3 instead of
6703 symbolic value TYPE_PROCEDURE.
6707 * gdb_proc_service.h (paddr_t): Delete typedef.
6708 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6709 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6710 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6711 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6712 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6713 * Makefile.in (proc-service.o): Update.
6717 * Makefile.in (mips-tdep.o): Update.
6718 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6723 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6724 instead of store_typed_address.
6725 * value.c (pack_long): New.
6726 (value_from_longest): Use it.
6727 * value.h (pack_long): New prototype.
6731 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6732 DW_EH_PE_signed if appropriate.
6737 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6739 (dwarf_decode_lines): Check for line info without a file.
6743 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6748 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6750 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6752 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6756 * gdbarch.sh (read_sp): Remove.
6757 * gdbarch.c, gdbarch.h: Regenerate.
6758 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6760 * avr-tdep.c (avr_read_sp): Remove.
6761 (avr_unwind_sp): New function.
6762 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6763 * mips-tdep.c (mips_read_sp): Remove.
6764 (mips_unwind_sp): New function.
6765 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6766 * score-tdep.c (score_read_unsigned_register): Remove.
6767 (score_read_sp): Remove.
6768 (score_unwind_sp): New function.
6769 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6773 * buildsym.c (start_subfile): Handle absolute pathnames
6774 while comparing subfile names.
6778 * hppa-hpux-tdep.c: Include "regcache.h".
6779 * hppa-linux-tdep.c: Likewise.
6780 * hppa-tdep.c: Include "gdb_stdint.h".
6781 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6783 * Makefile.in: Update dependencies.
6787 * blockframe.c: Remove obsolete comments.
6788 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6789 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6790 * hppa-tdep.h (enum hppa_regnum): Likewise.
6791 * mips-tdep.h: Likewise.
6792 * m68hc11-tdep.c: Likewise.
6796 * inferior.h (read_sp): Remove prototype.
6797 * regcache.c (read_sp): Remove.
6798 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6799 * infcall.c (call_function_by_hand): Likewise.
6800 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6802 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6806 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6807 instead of read_register and read_register_pid.
6809 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6810 argument instead of PTID. Use regcache functions instead of
6812 (ia64_linux_insert_watchpoint): Update call.
6813 (ia64_linux_stopped_data_address): Use regcache functions
6814 instead of read_register_pid and write_register_pid.
6818 * libunwind-frame.h (struct regcache): Add forward declaration.
6819 (libunwind_get_reg_special): Add REGCACHE argument.
6820 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6821 argument. Pass it to unw_init_remote_p.
6823 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6824 libunwind_get_reg_special.
6825 (ia64_access_reg): Remove "write" case.
6826 (ia64_access_fpreg): Likewise. Read from next_frame passed
6827 as callback argument instead of from current_regcache.
6828 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6829 passed as callback argument instead of from current_regcache.
6830 (ia64_access_rse_fpreg): New function.
6831 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6835 * NEWS: Mention SPU overlay support.
6839 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6843 * breakpoint.c (remove_breakpoint): Do not remove software
6844 breakpoints in unmapped overlay sections.
6848 * spu-tdep.c: Include "observer.h".
6849 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6850 (spu_overlay_data): New variable.
6851 (struct spu_overlay_table): New type.
6852 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6853 spu_overlay_new_objfile): New functions.
6854 (spu_gdbarch_init): Install spu_overlay_update.
6855 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6856 allocate spu_overlay_data objfile data.
6860 * gdbarch.sh (overlay_update): New gdbarch function.
6861 (struct obj_section): Add forward declaration.
6862 * gdbarch.c, gdbarch.h: Regenerate.
6864 * symfile.c (simple_overlay_update): Make global.
6865 (target_overlay_update): Remove variable.
6866 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6867 target_overlay_update.
6868 (overlay_load_command): Likewise.
6869 * symfile.h (struct obj_section): Add forward declaration.
6870 (simple_overlay_update): Add prototype.
6872 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6876 * observer.sh: Add "struct objfile" forward declaration.
6877 * target.h (deprecated_target_new_objfile_hook): Remove.
6878 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6879 (clear_symtab_users): Call observer_notify_new_objfile.
6880 (symbol_file_add_with_addrs_or_offsets): Likewise.
6881 * rs6000-nat.c: Include "observer.h".
6882 (vmap_ldinfo): Call observer_notify_new_objfile.
6883 (xcoff_relocate_core): Likewise.
6884 * remote.c (remote_new_objfile_chain): Remove.
6885 (remote_new_objfile): Do not call remote_new_objfile_chain.
6886 (_initialize_remote): Use observer_attach_new_objfile.
6887 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6888 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6889 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6890 * aix-thread.c: Include "observer.h".
6891 (target_new_objfile_chain): Remove.
6892 (new_objfile): Do not call target_new_objfile_chain.
6893 (_initialize_aix_thread): Use observer_attach_new_objfile.
6894 * hpux-thread.c: Include "observer.h"
6895 (target_new_objfile_chain): Remove.
6896 (hpux_thread_new_objfile): Make static. Do not call
6897 target_new_objfile_chain.
6898 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6899 * linux-thread-db.c: Include "observer.h".
6900 (target_new_objfile_chain): Remove.
6901 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6902 (_initialize_thread_db): Use observer_attach_new_objfile.
6903 * sol-thread.c: Include "observer.h".
6904 (target_new_objfile_chain): Remove.
6905 (sol_thread_new_objfile): Make static. Do not call
6906 target_new_objfile_chain.
6907 (_initialize_sol_thread): Use observer_attach_new_objfile.
6908 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6909 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6914 * gdbarch.sh (remote_translate_xfer_address): Remove.
6915 * gdbarch.h, gdbarch.c: Regenerate.
6916 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6917 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6918 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6919 call gdbarch_remote_translate_xfer_address.
6920 * frv-tdep.c (frv_gdbarch_init): Do not call
6921 set_gdbarch_remote_translate_xfer_address.
6922 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6923 (ia64_gdbarch_init): Do not install it.
6927 * NEWS: Mention change in handling the -tui option.
6931 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6936 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6937 (breakpoint_inserted_here_p): Call it.
6938 (software_breakpoint_inserted_here_p): Likewise.
6942 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6943 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6944 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6945 (inf_ptrace_store_register): Likewise.
6946 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6947 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6949 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6951 * linux-nat.c (linux_trad_target): Adapt parameter list.
6952 * linux-nat.h (linux_trad_target): Likewise.
6954 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6956 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6957 (mips_linux_cannot_store_register): Likewise.
6958 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6959 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6960 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6961 (mips64_linux_register_addr): Likewise.
6962 (mips_linux_register_u_offset): Adapt parameter list. Pass
6963 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6965 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6966 * config/mips/nm-linux.h: Delete file.
6970 * remote.c (remote_detach): Error out if remote can't detach.
6974 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6975 instruction's opcode in the "opcode" variable and declares new
6976 variable "closing_insn".
6981 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6982 whitespace when setting a var_filename.
6986 * main.c (captured_main): Recognize -tui option and print an error
6987 message when the TUI is not configured.
6991 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6992 set removed members.
6993 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6997 * gdbarch.sh (deprecated_store_struct_return): Remove.
6998 * gdbarch.c, gdbarch.h: Regenerate.
6999 * frv-tdep.c (frv_store_struct_return): Remove.
7000 (frv_gdbarch_init): Do not install it.
7004 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7005 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7006 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7010 * spu-linux-nat.c: Include "gdb_stdint.h".
7011 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7012 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7013 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7014 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7015 (spu_child_wait): Mark up string for translation.
7020 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7021 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7022 BC_INSTRUCTION): Define.
7023 (deal_with_atomic_sequence): New function.
7024 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7025 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7026 gdbarch_software_single_step routine.
7030 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7031 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7032 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7033 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7034 spu_child_post_attach, spu_fetch_inferior_registers,
7035 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7036 memory addresses as ULONGEST, not CORE_ADDR.
7040 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7041 * gdbarch.h, gdbarch.c: Regenerate.
7043 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7044 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7045 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7047 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7048 Add REGCACHE argument. Use it instead of read/write_register.
7049 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7051 * config/pa/tm-hppah.h: Delete file.
7052 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7053 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7057 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7058 * NEWS: Mention improved C++ thunk support.
7059 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7060 * cp-abi.c (cplus_skip_trampoline): New.
7061 * cp-abi.h (cplus_skip_trampoline): New prototype.
7062 (struct cp_abi_ops): Add skip_trampoline member.
7063 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7064 (init_gnuv3_ops): Set skip_trampoline.
7068 * rs6000-tdep.c (struct frame_extra_info): Delete.
7072 * linux-thread-db.c: Update some FIXME comments.
7073 (thread_db_xfer_partial): Delete.
7074 (init_thread_db_ops): Do not set to_xfer_partial.
7078 * inftarg.c, infptrace.c: Remove files.
7079 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7080 (inftarg.o, infptrace.o): Remove rules.
7081 * gdbcore.h (register_addr): Remove prototype.
7082 * inferior.h (kill_inferior, store_inferior_registers,
7083 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7084 call_ptrace, pre_fork_inferior): Remove prototypes.
7085 * target.h (child_xfer_memory, child_pid_to_exec_file,
7086 child_core_file_to_sym_file, child_post_attach,
7087 child_post_startup_inferior, child_acknowledge_created_inferior,
7088 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7089 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7090 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7091 child_follow_fork, child_reported_exec_events_per_exec_call,
7092 child_has_exited, child_thread_alive): Remove prototypes.
7096 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7097 (sparc_store_inferior_registers): Likewise.
7098 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7099 (sparc_fetch_inferior_registers): ... this.
7100 (store_inferior_registers): Rename to ...
7101 (sparc_store_inferior_registers): ... this.
7102 (sparc_target): Update callback names.
7103 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7104 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7108 * linux-nat.c (child_post_attach): Rename to ...
7109 (linux_child_post_attach): ... this. Make static.
7110 (child_follow_fork): Rename to ...
7111 (linux_child_follow_fork): ... this. Make static.
7112 (child_insert_fork_catchpoint): Rename to ...
7113 (linux_child_insert_fork_catchpoint): ... this. Make static.
7114 (child_insert_vfork_catchpoint): Rename to ...
7115 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7116 (child_insert_exec_catchpoint): Rename to ...
7117 (linux_child_insert_exec_catchpoint): ... this. Make static.
7118 (child_pid_to_exec_file): Rename to ...
7119 (linux_child_pid_to_exec_file): ... this. Make static.
7121 (linux_handle_extended_wait): Update call.
7122 (linux_xfer_partial): Update callback routine names.
7126 * configure.host (alpha*-*-osf[12]*): Remove support.
7127 * NEWS: Mention removed configurations.
7129 * config/alpha/alpha-osf1.mh: Delete file.
7130 * config/alpha/alpha-osf2.mh: Delete file.
7131 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7133 * config/alpha/nm-osf.h: Delete file.
7134 * config/alpha/nm-osf2.h: Delete file.
7135 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7136 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7137 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7139 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7140 (register_addr, kernel_u_size): Remove.
7141 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7145 * regcache.c (regcache_invalidate): New function.
7146 (register_cached): Remove.
7147 (set_register_cached): Remove.
7148 (deprecated_registers_fetched): Remove.
7149 (registers_changed): Use regcache_invalidate instead
7150 of set_register_cached.
7151 (regcache_raw_read): Update comment.
7153 * regcache.h (regcache_invalidate): Add prototype.
7154 (register_cached): Remove.
7155 (set_register_cached): Remove.
7156 (deprecated_registers_fetched): Remove.
7158 * findvar.c (value_of_register): Do not call register_cached.
7159 * frame.c (frame_register): Likewise.
7160 * tui/tui-regs.c (tui_get_register): Likewise.
7162 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7163 (process_g_packet): Likewise.
7164 (remote_fetch_registers): Likewise.
7165 * remote-sim.c (gdbsim_fetch_register): Likewise.
7166 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7167 by regcache_invalidate.
7168 (mt_pseudo_register_write): Likewise.
7169 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7171 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7172 call by loop over regcache_raw_supply (..., NULL).
7176 * target.h (struct target_ops): Add REGCACHE parameter to
7177 to_prepare_to_store.
7178 (target_prepare_to_store): Likewise.
7179 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7180 (update_current_target): Adapt prepare_to_store de_fault rule.
7182 * regcache.c (regcache_raw_write): Pass regcache to
7183 target_prepare_to_store.
7185 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7186 Do not call CHILD_PREPARE_TO_STORE.
7187 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7188 * procfs.c (procfs_prepare_to_store): Likewise.
7190 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7191 * go32-nat.c (go32_prepare_to_store): Likewise.
7192 * monitor.c (monitor_prepare_to_store): Likewise.
7193 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7194 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7195 * remote-mips.c (mips_prepare_to_store): Likewise.
7196 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7197 * win32-nat.c (win32_prepare_to_store): Likewise.
7199 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7200 Use it instead of current_regcache.
7202 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7203 parameter. Pass it on to next target.
7204 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7208 * target.h (struct regcache): Add forward declaration.
7209 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7210 and to_store_registers target operations.
7211 (target_fetch_registers, target_store_registers): Update.
7213 * regcache.c (regcache_raw_read): Replace register_cached by
7214 regcache_valid_p. Pass regcache to target_fetch_registers.
7215 (regcache_raw_write): Pass regcache to target_store_registers.
7217 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7218 store_regs, store_wmmx_regs): Replace register_cached by
7221 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7222 to target_fetch_registers calls.
7223 * corelow.c (core_open): Likewise.
7224 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7225 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7226 ps_lsetfpregs): Likewise.
7227 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7228 ps_lsetfpregs): Likewise.
7229 * win32-nat.c (win32_resume): Likewise.
7230 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7231 to target_store_registers call.
7232 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7234 * inferior.h (store_inferior_registers): Update prototype.
7235 (fetch_inferior_registers): Likewise.
7236 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7237 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7238 Update function pointer signatures.
7240 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7241 use it instead of current_regcache, update calls.
7242 (aix_thread_store_registers): Likewise.
7243 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7244 (alphabsd_store_inferior_registers): Likewise.
7245 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7246 (amd64bsd_store_inferior_registers): Likewise.
7247 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7248 (amd64_linux_store_inferior_registers): Likewise.
7249 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7250 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7251 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7252 (arm_linux_fetch_inferior_registers): Likewise.
7253 (arm_linux_store_inferior_registers): Likewise.
7254 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7255 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7256 (store_register, store_regs, store_fp_register, store_fp_regs,
7257 armnbsd_store_registers): Likewise.
7258 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7259 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7260 (bsd_uthread_store_registers): Likewise.
7261 * corelow.c (get_core_registers): Likewise.
7262 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7263 go32_store_registers): Likewise.
7264 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7265 (hppabsd_store_registers): Likewise.
7266 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7267 (hppa_hpux_fetch_inferior_registers): Likewise.
7268 (hppa_hpux_store_register): Likewise.
7269 (hppa_hpux_store_inferior_registers): Likewise.
7270 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7271 (hppa_linux_fetch_inferior_registers): Likewise.
7272 (hppa_linux_store_inferior_registers): Likewise.
7273 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7274 (hpux_thread_store_registers): Likewise.
7275 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7276 (i386bsd_store_inferior_registers): Likewise.
7277 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7278 gnu_store_registers): Likewise.
7279 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7280 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7282 (i386_linux_fetch_inferior_registers): Likewise.
7283 (i386_linux_store_inferior_registers): Likewise.
7284 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7285 (ia64_linux_fetch_registers): Likewise.
7286 (ia64_linux_store_register): Likewise.
7287 (ia64_linux_store_registers): Likewise.
7288 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7289 (inf_child_store_inferior_registers): Likewise.
7290 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7291 (inf_ptrace_fetch_registers): Likewise.
7292 (inf_ptrace_store_register): Likewise.
7293 (inf_ptrace_store_registers): Likewise.
7294 * infptrace.c (fetch_register, store_register): Likewise.
7295 (fetch_inferior_registers, store_inferior_registers): Likewise.
7296 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7297 (m32r_linux_fetch_inferior_registers): Likewise.
7298 (m32r_linux_store_inferior_registers): Likewise.
7299 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7300 (m68kbsd_store_inferior_registers): Likewise.
7301 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7302 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7303 fetch_fpregs, store_fpregs): Likewise.
7304 (m68k_linux_fetch_inferior_registers): Likewise.
7305 (m68k_linux_store_inferior_registers): Likewise.
7306 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7307 (m88kbsd_store_inferior_registers): Likewise.
7308 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7309 (mips64obsd_store_inferior_registers): Likewise.
7310 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7311 (mips64_linux_regsets_store_registers): Likewise.
7312 (mips64_linux_fetch_registers): Likewise.
7313 (mips64_linux_store_registers): Likewise.
7314 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7315 (mipsnbsd_store_inferior_registers): Likewise.
7316 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7317 (monitor_fetch_registers, monitor_store_registers): Likewise.
7318 * nto-procfs.c (procfs_fetch_registers): Likewise.
7319 (procfs_store_registers): Likewise.
7320 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7321 fetch_register, supply_vrregset, fetch_altivec_registers,
7322 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7323 (store_altivec_register, store_spe_register, store_register,
7324 fill_vrregset, store_altivec_registers, store_ppc_registers,
7325 ppc_linux_store_inferior_registers): Likewise.
7326 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7327 (ppcnbsd_store_inferior_registers): Likewise.
7328 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7329 (ppcobsd_store_registers): Likewise.
7330 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7331 * remote.c (fetch_register_using_p, process_g_packet,
7332 fetch_registers_using_g, remote_fetch_registers): Likewise.
7333 (store_register_using_P, store_registers_using_G,
7334 remote_store_registers): Likewise.
7335 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7336 m32r_store_register, m32r_store_register): Likewise.
7337 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7338 * remote-sim.c (gdbsim_fetch_register): Likewise.
7339 (gdbsim_store_register): Likewise.
7340 * rs6000-nat.c (fetch_register, store_register): Likewise.
7341 (rs6000_fetch_inferior_registers): Likewise.
7342 (rs6000_store_inferior_registers): Likewise.
7343 * s390-nat.c (fetch_regs, store_regs): Likewise.
7344 (fetch_fpregs, store_fpregs): Likewise.
7345 (s390_linux_fetch_inferior_registers): Likewise.
7346 (s390_linux_store_inferior_registers): Likewise.
7347 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7348 (shnbsd_store_inferior_registers): Likewise.
7349 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7350 (sol_thread_store_registers): Likewise.
7351 * sparc-nat.c (fetch_inferior_registers): Likewise.
7352 (store_inferior_registers): Likewise.
7353 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7354 (spu_store_inferior_registers): Likewise.
7355 * target.c (debug_print_register): Likewise.
7356 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7357 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7358 (vaxbsd_store_inferior_registers): Likewise.
7359 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7360 (win32_fetch_inferior_registers): Likewise.
7361 (win32_store_inferior_registers): Likewise.
7365 * gdbcore.h (struct regcache): Add forward declaration.
7366 (struct core_fns): Add REGCACHE argument to core_read_registers
7368 * corelow.c (get_core_register_section): Add REGCACHE argument,
7369 use it instead of current_regcache, pass it to core_read_registers
7371 (get_core_registers): Add current_regcache as parameter to
7372 get_core_register_section calls.
7374 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7375 use it instead of current_regcache.
7376 * armnbsd-nat.c (fetch_core_registers): Likewise.
7377 (fetch_elfcore_registers): Likewise.
7378 * core-regset.c (fetch_core_registers): Likewise.
7379 * cris-tdep.c (fetch_core_registers): Likewise.
7380 * irix5-nat.c (fetch_core_registers): Likewise.
7381 * m68klinux-nat.c (fetch_core_registers): Likewise.
7382 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7383 * win32-nat.c (fetch_elf_core_registers): Likewise.
7387 * gregset.h (struct regcache): Add forward declaration.
7388 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7389 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7390 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7391 (fill_gregset): Add REGCACHE parameter.
7392 (fill_fpregset): Likewise.
7393 (fill_fpxregset): Likewise.
7395 Update all definitions accordingly:
7396 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7397 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7398 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7399 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7400 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7401 (supply_gregset): Add REGCACHE parameter, use it instead of
7402 current_regcache. Make GREGSETP parameter const, adapt casts.
7403 (supply_fpregset): Add REGCACHE parameter, use it instead of
7404 current_regcache. Make FPREGSETP parameter const, adapt casts.
7405 (fill_gregset): Add REGCACHE parameter, use it instead of
7407 (fill_fpregset): Likewise.
7409 Update all callers to pass in current_regcache as the new argument:
7410 * core-regset.c: Include "regcache.h".
7411 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7412 * procfs.c: Include "regcache.h".
7413 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7414 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7415 (procfs_do_thread_registers): Likewise.
7416 (procfs_make_note_section): Likewise.
7417 * proc-service.c: Include "regcache.h".
7418 (ps_lgetregs): Update fill_gregset call.
7419 (ps_lsetregs): Update supply_gregset call.
7420 (ps_lgetfpregs): Update fill_fpregset call.
7421 (ps_lsetfpregs): Update supply_fpregset call.
7422 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7423 supply_fpregset calls.
7424 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7425 (ps_lgetregs): Update fill_gregset call.
7426 (ps_lsetregs): Update supply_gregset call.
7427 (ps_lgetfpregs): Update fill_fpregset call.
7428 (ps_lsetfpregs): Update supply_fpregset call.
7430 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7431 fill_fpregset, and fill_fpxregset calls.
7432 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7433 (store_regs): Update fill_gregset call.
7434 (fetch_fpregs): Update supply_fpregset call.
7435 (store_fpregs): Update fill_fpregset call.
7436 (fetch_fpxregs): Update supply_fpxregset call.
7437 (store_fpxregs): Update fill_fpxregset call.
7438 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7439 (store_regs): Update fill_gregset call.
7440 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7441 (store_regs): Update fill_gregset call.
7442 (fetch_fpregs): Update supply_fpregset call.
7443 (store_fpregs): Update fill_fpregset call.
7444 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7445 * s390-nat.c (fetch_regs): Update supply_gregset call.
7446 (store_regs): Update fill_gregset call.
7447 (fetch_fpregs): Update supply_fpregset call.
7448 (store_fpregs): Update fill_fpregset call.
7450 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7455 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7456 it instead of current_regcache.
7457 (parse_register_dump): Add REGCACHE parameter, pass it to
7458 supply_register callback.
7459 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7460 parse_register_dump.
7461 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7462 parse_register_dump and dumpregs callback.
7463 (monitor_wait): Pass current_regcache to parse_register_dump and
7465 (monitor_fetch_register): Pass current_regcache to
7466 monitor_supply_register.
7467 (monitor_fetch_registers): Pass current_regcache to
7469 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7470 supply_register and dumpregs callbacks.
7471 (monitor_supply_register, monitor_dump_reg_block): Update
7473 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7474 it to monitor_supply_register.
7475 * dink32-rom.c (dink32_supply_register): Likewise.
7476 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7477 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7478 instead of current_regcache.
7482 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7483 Add REGCACHE parameter. Use it instead of current_regcache.
7484 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7485 i386nto_supply_gregset and i386nto_supply_fpregset.
7486 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7487 of current_regcache.
7489 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7490 nto_supply_ helper functions.
7491 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7493 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7495 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7496 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7497 and regset_fill member function pointers.
7498 (nto_dummy_supply_regset): Adapt prototype.
7502 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7503 instead of current_regcache. Make REGS const.
7504 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7505 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7507 * shnbsd-nat.c: Include "regcache.h".
7508 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7510 (shnbsd_store_inferior_registers): Pass current_regcache to
7512 * Makefile.in (shbsd-nat.o): Update dependencies.
7516 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7517 instead of current_regcache.
7518 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7519 Make GREGSETP const, remove superfluous casts.
7520 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7521 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7523 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7524 (supply_64bit_reg): Likewise
7525 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7526 Make GREGSETP const, adapt casts accordingly.
7527 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7528 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7530 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7531 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7533 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7534 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7535 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7537 * mips-linux-nat.c: Include "regcache.h".
7538 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7539 current_regcache to mips{64}_(supply|fill)_ helper routines.
7540 (mips64_linux_regsets_fetch_registers): Likewise.
7541 (mips64_linux_regsets_store_registers): Likewise.
7543 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7544 REGCACHE argument; replace current_regcache. Make REGS const.
7545 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7546 replace current_regcache.
7547 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7548 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7549 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7550 mipsnbsd_store_inferior_registers): Pass current_regcache to
7551 mipsnbsd_(supply|fill)_... helper routines.
7553 * Makefile.in (mips-linux-nat.o): Update dependencies.
7557 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7558 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7559 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7560 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7561 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7562 * i386gnu-nat.c (store_fpregs): Likewise.
7563 * i386v4-nat.c (fill_fpregset): Likewise.
7564 * go32-nat.c (store_register, go32_store_registers): Likewise.
7568 * cris-tdep.c (supply_gregset): Rename to ...
7569 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7570 instead of current_regcache.
7571 (fetch_core_registers): Update call. Pass current_regcache.
7575 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7576 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7577 Use it instead of current_regcache.
7578 (supply_fparegset): Rename to ...
7579 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7580 Use it instead of current_regcache.
7581 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7582 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7586 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7587 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7588 use it instead of current_regcache.
7589 * alpha-tdep.h (struct regcache): Add forward declaration.
7590 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7591 alpha_fill_fp_regs): Update prototypes.
7593 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7594 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7595 * alpha-linux-nat.c: Include "regcache.h".
7596 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7597 current_regcache to alpha_supply/fill_ routines.
7599 * alphabsd-tdep.c: Include "regcache.h".
7600 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7601 pass it to alpha_supply_ routines. Make REGS const.
7602 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7603 pass it to alpha_fill_ routines.
7604 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7605 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7606 alphabsd_fill_fpreg): Update prototypes.
7608 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7609 fill_fpregset, alphabsd_fetch_inferior_registers,
7610 alphabsd_store_inferior_registers): Pass current_regcache to
7611 alphabsd_supply/fill_ routines.
7613 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7618 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7619 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7620 instead of current_regcache.
7621 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7622 REGCACHE parameter, pass it to supply_ routines.
7623 (aix_thread_fetch_registers): Pass current_regcache to
7624 fetch_regs_user_thread and fetch_regs_kernel_thread.
7626 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7627 Add REGCACHE parameter, use it instead of current_regcache.
7628 Call regcache_valid_p instead of register_cached.
7629 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7630 Also, pass REGCACHE to fill_ routines.
7631 (aix_thread_store_registers): Pass current_regcache to
7632 store_regs_user_thread and store_regs_kernel_thread.
7636 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7637 pointed to by GREGSETP.
7641 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7642 of regcache_raw_read_signed.
7643 (fill_fpregset): Use regcache_raw_collect instead of
7648 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7649 point arguments, test explicitly for use of the EABI32 ABI
7650 instead of inferring this condition from tests on register
7655 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7656 prior to allocating its location.
7660 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7661 based on mips_abi_regsize() whose result is known in advance.
7662 (mips_o64_push_dummy_call): Likewise.
7666 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7667 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7669 * mips-linux-nat.c: Include "gregset.h".
7670 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7671 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7672 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7673 fill_fpregset): Move to mips-linux-nat.c.
7675 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7679 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7680 (read_register): ... here.
7681 (deprecated_write_register_gen): Remove, inline ...
7682 (write_register): ... here.
7683 * regcache.h (deprecated_read_register_gen): Remove prototype.
7684 (deprecated_write_register_gen): Likewise.
7686 * remote-sim.c (gdbsim_store_register): Replace call to
7687 deprecated_read_register_gen with regcache_cooked_read.
7688 * target.c (debug_print_register): Replace calls to
7689 deprecated_read_register_gen and read_register with
7690 regcache_cooked_read.
7694 * hpux-thread.c (hpux_thread_store_registers): Use
7695 regcache_raw_collect, not regcache_raw_read.
7696 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7697 not regcache_raw_write.
7701 * gdbarch.sh: Remove deprecated_register_byte.
7702 * gdbarch.c, gdbarch.h: Regenerate.
7703 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7704 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7706 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7707 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7708 read-only register caches. Make REGCACHE parameter const.
7709 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7711 * mi/mi-main.c (old_regs): Remove.
7712 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7713 (register_changed_p): Reimplement to compare two register caches.
7714 (mi_cmd_data_list_changed_registers): Update caller.
7715 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7716 * mi/mi-interp.c (mi_interpreter_init): Do not call
7717 mi_setup_architecture_data.
7721 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7722 inline definition at the places the macros are used.
7723 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7727 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7729 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7730 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7731 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7732 (rs6000_aix_regset_from_core_section): New function.
7733 (rs6000_aix_init_osabi): Register it.
7734 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7735 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7736 * rs6000-nat.c (CoreRegs): Do not define type.
7737 (fetch_core_registers, rs6000_core_fns): Remove.
7738 (_initialize_core_rs6000): Do not register it. Rename to ...
7739 (_initialize_rs6000_nat): ... this.
7740 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7744 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7745 (dwarf2_read_address): Sign extend return address as required by
7746 target architecture.
7750 * solib-frv.c (lm_base): Bail out if the main executable has
7755 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7756 of FPCR register in fpregset.
7760 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7761 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7765 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7766 * rs6000-nat.c (rs6000_wait): New function.
7767 (_initialize_core_rs6000): Install it as to_wait target method.
7768 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7772 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7773 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7774 * rs6000-nat.c (super_create_inferior): New variable.
7775 (rs6000_create_inferior): Make static. Adapt argument list. Call
7776 original version of create_inferior via super_create_inferior.
7777 (_initialize_core_rs6000): Install to_create_inferior target method.
7781 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7782 (aix_thread_xfer_partial): ... this.
7783 (init_aix_thread_ops): Install to_xfer_partial instead
7784 of deprecated_xfer_memory target method.
7786 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7787 and inftarg.o, add inf-ptrace.o.
7788 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7789 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7790 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7791 (fetch_inferior_registers): Rename to ...
7792 (rs6000_fetch_inferior_registers): ... this. Make static.
7793 (store_inferior_registers): Rename to ...
7794 (rs6000_store_inferior_registers): ... this. Make static.
7795 (read_word, child_xfer_memory): Remove.
7796 (rs6000_xfer_partial): New function.
7797 (kernel_u_size): Remove.
7798 (_initialize_core_rs6000): Add inf_ptrace-based target.
7799 * Makefile.in (rs6000-nat.o): Update dependencies.
7803 * inf-ptrace.c: Include "gdb_stdint.h".
7804 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7805 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7806 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7807 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7808 (inf_ptrace_store_register): Likewise.
7809 * Makefile.in (inf-ptrace.o): Update dependencies.
7813 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7814 * configure.tgt (rs6000-*-*): Likewise.
7815 * config/rs6000/aix4.mh: Delete file.
7816 * config/rs6000/aix4.mt: Delete file.
7817 * config/rs6000/rs6000.mh: Delete file.
7818 * config/rs6000/rs6000.mt: Delete file.
7820 * config/powerpc/nm-aix.h: Delete file.
7821 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7825 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7826 Remove obsolete part of comment.
7827 (store_regs_user_thread): Use uint32_t temporaries when calling
7829 (store_regs_kernel_thread): Likewise. Add assertion to verify
7830 correct size of struct ptsprs members.
7831 (aix_thread_xfer_memory): Fix type of myaddr.
7832 (aix_thread_extra_thread_info): Fix compiler warning.
7833 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7834 (fetch_register, store_register): Adapt callers.
7838 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7842 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7844 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7845 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7846 (alpha_linux_regset_from_core_section): New function.
7847 (alpha_linux_init_abi): Install it.
7848 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7849 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7850 <sys/procfs.h>, and "gregset.h".
7851 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7852 Move from config/alpha/nm-linux.h.
7853 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7855 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7856 * alpha-nat.c: Remove #ifdef __linux__ section.
7857 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7858 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7859 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7860 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7861 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7862 (NATDEPFILES): Remove alpha-nat.o.
7863 * config/alpha/nm-linux.h: Delete file.
7864 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7865 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7866 (alpha-linux-tdep.o): Likewise.
7870 * mips-linux-nat.c: No longer include "gdbcore.h".
7871 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7872 (mips64_linux_register_addr): Likewise.
7873 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7874 mips64_linux_register_addr instead of register_addr.
7875 * mips-linux-tdep.c (mips_linux_register_addr,
7876 mips64_linux_register_addr): Move to mips-linux-nat.c.
7877 (register_addr): Remove.
7878 (register_addr_data, init_register_addr_data): Remove.
7879 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7880 (set_mips_linux_register_addr): Remove.
7881 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7882 * Makefile.in (mips-linux-nat.o): Update dependencies.
7886 * linux-nat.c (linux_register_u_offset): Remove.
7887 (linux_target_install_ops): New function.
7888 (linux_target): Use it.
7889 (linux_trad_target): New function.
7890 * linux-nat.h (linux_trad_target): Declare.
7892 * alpha-linux-nat.c: Include "gdbcore.h".
7893 (alpha_linux_register_u_offset): New function.
7894 (_initialize_alpha_linux_nat): Use linux_trad_target.
7896 * mips-linux-nat.c: Include "gdbcore.h".
7897 (mips_linux_register_u_offset): New function.
7898 (_initialize_mips_linux_nat): Use linux_trad_target.
7900 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7901 * config/arm/nm-linux.h: Delete file.
7903 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7904 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7906 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7907 * config/ia64/nm-linux.h: Delete file.
7909 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7910 * config/m32r/nm-linux.h: Delete file.
7912 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7913 * config/m68k/nm-linux.h: Delete file.
7915 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7916 * config/pa/nm-linux.h: Delete file.
7918 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7919 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7920 * config/powerpc/nm-linux.h: Delete file.
7922 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7923 * config/s390/nm-linux.h: Delete file.
7925 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7926 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7927 * config/sparc/nm-linux.h: Delete file.
7929 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7930 (mips-linux-nat.o): Likewise.
7934 * core-aout.c: Delete file.
7935 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7936 (core-aout.o): Delete rule.
7937 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7939 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7941 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7942 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7943 KERNEL_U_ADDR): Remove.
7945 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7946 (cannot_fetch_register, cannot_store_register): Remove.
7947 (fetch_register): Inline cannot_fetch_register and register_addr.
7948 (store_register): Inline cannot_store_register and register_addr.
7949 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7950 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7951 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7954 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7955 (fetch_register): Inline register_addr.
7956 (store_register): Inline register_addr.
7957 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7958 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7959 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7961 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7962 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7963 REGISTER_U_ADDR): Remove.
7965 * hppa-linux-nat.c (register_addr): Rename to ...
7966 (hppa_linux_register_addr): ... this. Make static.
7967 (fetch_register, store_register): Adapt callers.
7968 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7970 * ppc-linux-nat.c (kernel_u_size): Remove.
7971 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7973 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7974 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7976 * config/vax/nm-vax.h: Delete file.
7980 * MAINTAINERS (Write After Approval): Add myself.
7984 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7985 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7986 (m68k_linux_sigcontext_reg_offset): Fix typo.
7987 (target_is_uclinux): New.
7988 (m68k_linux_inferior_created): New.
7989 (m68k_linux_get_sigtramp_info): Check for uClinux or
7990 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7992 (_initialize_m68k_linux_tdep): Register
7993 m68k_linux_inferior_created.
7997 * win32-nat.c (win32_detach): Remove delete_command call.
7998 Resume inferior with win32_resume instead of win32_continue.
8002 * ser-mingw.c (fd_is_file): New function.
8003 (file_select_thread): New function.
8004 (ser_console_wait_handle): Add special handling for files.
8008 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8009 when missing from DW_TAG_subrange_type. Remove the handling of null
8010 return from die_type.
8014 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8015 change to rearrange some brackets.
8016 (mips_n32n64_push_dummy_call): Likewise.
8017 (mips_o32_push_dummy_call): Likewise.
8018 (mips_o64_push_dummy_call): Likewise.
8022 * infcmd.c (post_create_inferior): Start with a call to
8023 target_terminal_ours.
8027 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8029 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8031 (mips_o32_push_dummy_call): Likewise.
8032 (mips_o64_push_dummy_call): Likewise.
8036 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8041 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8043 (mips_o32_push_dummy_call): Likewise.
8047 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8048 sal to be bigger than the end of the function.
8053 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8054 argument alignment requirements when calculating stack space
8055 required. When aligning an arg register to eight bytes
8056 boundary, align stack_offset too. Write floating-point
8057 arguments to the appropriate integer register if need go there.
8058 (mips_o64_push_dummy_call): Likewise.
8062 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8063 "sig" arguments, add "regcache" argument.
8064 * gdbarch.c, gdbarch.h: Regenerate.
8066 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8067 (handle_inferior_event): Call remove_single_step_breakpoints directly
8068 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8070 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8071 Remove handling of !insert_breakpoints_p case.
8072 * arm-tdep.c (arm_software_single_step): Likewise.
8073 * cris-tdep.c (cris_software_single_step): Likewise.
8074 * mips-tdep.c (mips_software_single_step): Likewise.
8075 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8076 * sparc-tdep.c (sparc_software_single_step): Likewise.
8077 * spu-tdep.c (spu_software_single_step): Likewise.
8079 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8080 * mips-tdep.h (mips_software_single_step): Likewise.
8081 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8082 * sparc-tdep.h (sparc_software_single_step): Likewise.
8086 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8087 when removing single-step breakpoints.
8091 * varobj.h (varobj_set_frozen): New
8092 (varobj_get_frozen): New.
8093 (varobj_update): New parameter explicit.
8094 * varobj.c (struct varobj): New fields frozen
8096 (varobj_set_frozen, varobj_get_frozen): New.
8097 (install_new_value): Don't fetch values for
8098 frozen variable object, or children thereof. Allow
8099 a frozen variable object to have non-fetched value.
8100 (varobj_update): Allow updating child variables.
8101 Don't traverse frozen children.
8102 (new_variable): Initialize the frozen field.
8103 (c_value_of_variable): Return NULL for frozen
8104 variable without any value yet.
8105 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8107 (mi_cmd_var_create): Output the 'frozen' field,
8108 as soon as testsuite is adjusted to expect that field.
8109 (mi_cmd_var_set_frozen): New.
8110 (mi_cmd_var_update): Pass the 'explicit' parameter to
8112 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8113 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8117 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8119 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8123 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8124 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8125 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8126 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8127 * Makefile.in: Remove references to deleted files.
8128 * README: Do not mention deleted ROM monitor interfaces.
8129 * defs.h (enum language): Delete language_scm.
8130 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8131 (dump_subexp_body_standard): Likewise.
8132 * parse.c (operator_length_standard): Likewise.
8133 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8134 * remote-mips.c: Do not include remote-utils.h.
8135 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8137 * value.c: Do not include scm-lang.h.
8138 (unpack_long): Delete scm_unpack call.
8139 * config/h8300/h8300.mt, config/mips/embed.mt,
8140 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8141 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8143 * NEWS: Mention removed files.
8147 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8148 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8152 * NEWS: Mention removal of HP aCC support.
8156 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8157 first entry for static executables.
8158 (breakpoint_addr): Delete unused variable.
8159 (elf_locate_base): Search for _r_debug in static executables.
8160 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8165 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8166 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8167 (mention): Remove bp_through_sigtramp support.
8168 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8172 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8177 * infrun.c: Doc fixes.
8178 (handle_inferior_event): Clarify debug message.
8179 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8183 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8187 * config/m68k/tm-monitor.h: Delete file.
8188 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8189 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8191 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8192 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8196 * gdbarch.sh (software_single_step): Change the return type
8197 from void to int and reformatted some comments to <= 80
8199 * gdbarch.c, gdbarch.h: Regenerated.
8200 * alpha-tdep.c (alpha_software_single_step): Likewise.
8201 * alpha-tdep.h (alpha_software_single_step): Likewise.
8202 * arm-tdep.c (arm_software_single_step): Likewise.
8203 * cris-tdep.c (cris_software_single_step): Likewise.
8204 * mips-tdep.c (mips_software_single_step): Likewise.
8205 * mips-tdep.h (mips_software_single_step): Likewise.
8206 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8207 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8208 * sparc-tdep.c (sparc_software_single_step): Likewise.
8209 * sparc-tdep.h (sparc_software_single_step): Likewise.
8210 * spu-tdep.c (spu_software_single_step): Likewise.
8211 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8212 and act accordingly.
8216 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8217 * configure: Regenerate.
8218 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8222 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8226 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8228 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8229 distinct on the TYPE_STUB_SUPPORTED debug targets.
8230 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8234 * sparc-tdep.c (X_RS2): New macro.
8235 (sparc_skip_stack_check): New function.
8236 (sparc_analyze_prologue): Adjust PC past stack probing
8237 sequence if necessary.
8241 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8246 * breakpoint.c (gdb_breakpoint_query): Really return an
8248 (gdb_breakpoint): Likewise.
8249 * thread.c (gdb_list_thread_ids): Likewise.
8250 (gdb_thread_select): Likewise.
8251 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8252 (mi_cmd_thread_list_ids): Remove bogus initialization.
8256 * Makefile.in (SFILES): Remove hpacc-abi.c.
8257 (COMMON_OBS): Remove hpacc-abi.o.
8258 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8259 (hpacc-abi.o, hpread.o): Delete rules.
8260 * somread.c: Delete extern declarations from hpread.c.
8261 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8262 (som_symfile_finish): Do not call hpread_symfile_finish.
8263 (som_symfile_init): Do not call hpread_symfile_init.
8264 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8265 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8266 * hpacc-abi.c, hpread.c: Deleted.
8270 * solib-svr4.c (enable_break): Simplify return value.
8271 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8275 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8276 l_ld_size, l_next_size, l_prev_size, l_name_size.
8278 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8279 to extract addresses from link map.
8280 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8281 (LM_NEXT): Likewise.
8282 (LM_NAME): Likewise.
8283 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8284 (elf_locate_base): Likewise.
8285 (open_symbol_file_object): Likewise.
8286 (svr4_fetch_objfile_link_map): Likewise.
8287 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8288 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8290 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8291 (svr4_lp64_fetch_link_map_offsets): Likewise.
8293 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8294 removed members. Set l_ld_offset to -1 if not present.
8298 Pass stderr of program run with "target remote |"
8300 * serial.c (serial_open): Set error_fd to -1.
8301 * serial.h (struct serial): New field error_fd.
8302 (struct serial_opts): New field avail.
8303 * ser-pipe.c (pipe_open): Create another pair
8304 of sockets. Pass stderr to gdb.
8305 * ser-mingw.c (pipe_windows_open): Pass
8306 PEX_STDERR_TO_PIPE to pex_run. Initialize
8309 (_initialize_ser_windows): Hook pipe_avail.
8310 * ser-base.c (generic_readchar): Check if there's
8311 anything in stderr channel and route that to gdb_stderr.
8315 * dbxread.c (read_ofile_symtab): Move current_objfile
8316 clearing to after end_stabs.
8320 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8321 gdbarch instead of current_gdbarch.
8325 * varobj.c (varobj_create): Keep varobj value
8326 NULL when evaluating the type.
8330 * NEWS: Mention new Windows CE support.
8334 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8335 the obsoletion stanza.
8336 * NEWS: Mention deleted targets.
8338 * config/sh/tm-wince.h: Remove.
8339 * config/sh/wince.mt: Remove.
8340 * config/mips/tm-wince.h: Remove.
8341 * config/mips/wince.mt: Remove.
8344 * wince-stub.c: Remove.
8345 * wince-stub.h: Remove.
8346 * Makefile.in (wince.o): Remove rule.
8347 (wince-stub.o): Likewise.
8349 * mips-tdep.c (mips_next_pc): Make static.
8350 * mips-tdep.h (mips_next_pc): Remove declaration.
8351 * arm-tdep.c (arm_pc_is_thumb): Make static.
8352 (thumb_get_next_pc): Likewise.
8353 (arm_get_next_pc): Likewise.
8354 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8355 (arm_pc_is_thumb): Likewise.
8356 (thumb_get_next_pc): Likewise.
8357 (arm_get_next_pc): Likewise.
8361 * MAINTAINERS: Remove d10v entry.
8362 * Makefile.in (SFILES): Remove dwarfread.c.
8363 (COMMON_OBS): Remove dwarfread.o.
8364 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8365 (remote-est.o, rom68k-rom.o): Delete.
8366 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8367 target est, target rom68k, and DWARF 1.
8368 * configure.tgt: Mark d10v as removed.
8369 * dwarf2read.c: Doc update.
8370 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8372 (elf_locate_sections): Do not set them.
8373 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8374 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8375 * config/m68k/monitor.mt (TDEPFILES): Prune.
8376 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8377 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8381 * doublest.c (convert_floatformat_to_doublest): Use
8382 floatformat_classify.
8383 (floatformat_is_nan): Rename to...
8384 (floatformat_classify): ...this. Return more information.
8385 * doublest.h (enum float_kind): New.
8386 (floatformat_is_nan): Replace prototype...
8387 (floatformat_classify): ...with this one.
8388 * valprint.c (print_floating): Use floatformat_classify. Handle
8393 * README: Mention ISO C library requirement.
8397 * Makefile.in (SFILES): Remove nlmread.c.
8398 (COMMON_OBS): Remove nlmread.o.
8399 (nlmread.o): Delete rule.
8400 * README: Delete reference to remote-st.c.
8401 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8402 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8404 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8405 (_initialize_i386_tdep): Do not reference them.
8406 * nlmread.c: Delete file.
8407 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8408 * target.c: Doc update.
8409 * thread.c: Delete commented include.
8410 * config/alpha/tm-alpha.h: Doc update.
8414 * utils.c (string_to_core_addr): Comment typo.
8418 * mips-tdep.c: Comment typo.
8422 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8423 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8424 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8425 * config/powerpc/nm-ppc64-linux.h: Remove file.
8426 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8427 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8428 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8429 * infptrace.c (call_ptrace): Likewise.
8430 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8431 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8432 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8433 (store_register): Likewise.
8437 * Makefile.in (varobj.o): Add missing dependency.
8441 * MAINTAINERS: Update my email address.
8445 Add support for exception handling with multiple versions of
8447 * ada-lang.c: Update general comments on how Ada exception catchpoints
8449 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8450 (__gnat_raise_nodefer_with_msg): Delete.
8451 (ada_unhandled_exception_name_addr_ftype): New type.
8452 (exception_support_info): New type.
8453 (ada_unhandled_exception_name_addr): Add forward declaration.
8454 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8455 (default_exception_support_info): New constant.
8456 (exception_support_info_fallback): Likewise.
8457 (exception_info): New global variable.
8458 (ada_exception_support_info_sniffer): New function.
8459 (ada_executable_changed_observer): Likewise.
8460 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8461 ada_unhandled_exception_name_addr.
8462 (ada_unhandled_exception_name_addr): Reimplement to match the
8463 latest Ada runtime implementation.
8464 (error_breakpoint_runtime_sym_not_found): Delete.
8465 (ada_exception_sym_name): Get the exception sym name from
8466 exception_info rather than hardcoding it.
8467 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8468 Update error handling.
8469 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8473 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8474 (remote-st.o, uw-thread.o): Delete.
8475 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8476 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8477 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8478 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8479 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8480 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8481 rs6000-*-lynxos* to an obsoletion stanza.
8482 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8483 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8484 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8485 i[34567]86-*-netware*.
8486 * NEWS: Mention deleted targets.
8488 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8489 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8490 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8491 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8492 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8493 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8494 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8495 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8496 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8497 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8498 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8499 config/rs6000/tm-rs6000ly.h: Delete files.
8503 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8504 * interps.c (clear_interpreter_hooks): Do not clear
8505 deprecated_registers_changed_hook.
8506 * regcache.c (registers_changed): Do not call it.
8507 * top.c (deprecated_registers_changed_hook): Do not define it.
8508 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8509 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8510 (tui_remove_hooks): Do not remove it.
8511 (tui_selected_frame_level_changed_hook): Check for negative level.
8512 Use get_selected_frame.
8513 (tui_registers_changed_hook): Deleted.
8517 * stabsread.c (add_undefined_type): Add extra parameter.
8518 Now handles nameless types separately.
8519 (struct nat): New type.
8520 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8521 New static variables.
8522 (read_type): Update calls to add_undefined_type.
8523 (add_undefined_type_noname): New function.
8524 (add_undefined_type_1): Renames from add_undefined_type.
8525 (cleanup_undefined_types_noname): New function.
8526 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8527 (cleanup_undefined_types): New handles nameless types separately.
8528 (_initialize_stabsread): Initialize our new static constants.
8532 * configure.ac: Test for signal.h.
8533 * configure, config.in: Regenerate.
8537 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8538 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8542 * arm-wince-tdep.c: New.
8543 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8544 (MT_CFLAGS): Delete.
8546 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8547 solib-legacy.o, solib-svr4.o, and remove wince.o.
8548 * configure.tgt (arm*-*-mingw32ce*): Add.
8549 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8550 (do_target_signal_to_host): Silence 'not used' warning.
8551 * config/arm/tm-wince.h: Remove.
8555 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8556 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8558 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8559 * config/ia64/tm-linux.h: Remove file.
8560 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8561 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8562 legacy_pc_in_sigtramp.
8563 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8564 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8565 Remove func_name argument.
8566 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8568 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8569 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8570 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8571 (HAVE_STEPPABLE_WATCHPOINT): Define.
8573 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8574 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8575 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8576 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8577 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8578 target_insert_watchpoint, target_remove_watchpoint): Remove.
8579 (FETCH_INFERIOR_REGISTERS): Define.
8580 * ia64-linux-nat.c (ia64_register_addr): Make static.
8581 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8582 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8583 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8584 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8585 (ia64_linux_stopped_by_watchpoint): Make static.
8586 (ia64_linux_can_use_hw_breakpoint): New function.
8587 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8588 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8589 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8593 * linespec.c: Include language.h.
8594 (find_methods): Add language parameter. Call
8595 lookup_symbol_in_language. Pass language down.
8596 (add_matching_methods): Likewise. Call
8597 lookup_symbol_in_language.
8598 (add_constructors): Likewise.
8599 (find_method): Pass sym_class to collect_methods.
8600 (collect_methods): Add sym_class parameter. Pass language
8602 * symtab.c (lookup_symbol): Rename to ...
8603 (lookup_symbol_in_language): ... this. Add language
8604 parameter. Use passed language instead of current_language.
8605 (lookup_symbol): New as wrapper around
8606 lookup_symbol_in_language.
8607 (lookup_symbol_aux): Add language parameter. Use passed
8608 language instead of current_language.
8609 (search_symbols): Indent.
8610 * symtab.h (enum language): Forward declare.
8611 (lookup_symbol_in_language): Declare.
8612 (lookup_symbol): Update description.
8613 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8614 * ada-lang.c (restore_language): Remove.
8615 (lookup_symbol_in_language): Remove.
8619 * breakpoint.c (bpstat_num): Add int *num parameter.
8620 * breakpoint.h (bpstat_num): Likewise.
8621 * infcmd.c (continue_command): Adjust to new bpstat_num
8623 (program_info): Likewise.
8627 * config/sh/tm-sh.h: Remove file.
8628 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8629 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8630 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8631 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8635 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8636 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8637 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8638 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8639 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8640 sequence if target_shortname is "remote".
8644 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8645 instead of wordsize when looking for the LR in a stack frame.
8650 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8651 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8652 argument. Update all callers.
8653 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8654 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8655 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8656 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8657 (dwarf2_frame_set_adjust_regnum): ...this.
8658 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8659 * rs6000-tdep.c: Include "dwarf2-frame.h".
8660 (rs6000_adjust_frame_regnum): Define.
8661 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8662 Register rs6000_adjust_frame_regnum.
8664 * Makefile.in (rs6000-tdep.o): Update dependencies.
8668 * Makefile.in: Add support for a "pdf" target.
8672 * amd64-tdep.c (amd64_init_frame_cache): New function.
8673 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8678 * ui-out.c (ui_out_field_core_addr): Truncate address to
8679 TARGET_ADDR_BIT size before printing.
8684 * remote-mips.c (mips_xfer_memory): Update prototype.
8688 * symfile.h: #include "symtab.h"
8692 * utils.c (pagination_on_command, pagination_off_command):
8693 Remove useless prototypes.
8698 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8699 instead of TYPE_NAME for object base class name.
8704 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8705 Specify frame type in calls to frame_func_unwind().
8709 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8710 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8711 (refine_prologue_limit): Delete.
8712 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8713 Assume lim_pc is set. Correct check for incomplete prologues.
8714 Do not skip clobbers of the frame pointer.
8715 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8720 * frame.c (frame_pop): Check to see whether there's a frame to
8721 which we can pop first.
8725 * MAINTAINERS (Write After Approval): Add myself.
8729 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8730 (handle_inferior_event): Remove unnecessary braces.
8731 * breakpoint.c (bpstat_what): Remove wrong comment.
8735 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8736 (spu_gdbarch_init): Install it.
8740 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8741 object types, not 0.
8745 * spu-tdep.c (spu_frame_align): New function.
8746 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8750 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8751 (spu_software_single_step): Likewise.
8752 (spu_read_pc, spu_write_pc): New functions.
8753 (spu_gdbarch_init): Install them.
8757 * cli/cli-dump.c (struct callback_data): load_offset needs to
8758 have signed long type.
8762 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8763 Revert the previous change that had some unexpected side-effects
8765 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8766 function to get the address of the calling instruction.
8770 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8771 get_selected_frame by deprecated_safe_get_selected_frame.
8775 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8776 "gdb_string.h". Don't include "nbsd-tdep.h".
8777 (SIZEOF_STRUCT_REG): Remove.
8778 (SHNBSD_SIZEOF_GREGS): New.
8779 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8780 (shnbsd_regset_from_core_section): New functions.
8781 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8782 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8783 shnbsd_supply_gregset, shnbsd_collect_gregset.
8784 (shnbsd_gregset): New variable.
8785 (shnbsd_init_abi): Set regset_from_core_section.
8786 (GDB_OSABI_NETBSD_CORE): New define.
8787 (shnbsd_core_osabi_sniffer): New function.
8788 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8789 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8790 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8792 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8796 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8797 length of the types referenced by the new type CV ring.
8801 * frame.c (frame_pop, frame_observer_target_changed): Call
8803 (flush_cached_frames): Rename to reinit_frame_cache and delete
8805 * frame.h (flush_cached_frames): Delete prototype and update comment.
8807 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8808 reinit_frame_cache instead of flush_cached_frames. Do not call
8809 select_frame after reinit_frame_cache.
8810 * corelow.c (core_open): Likewise.
8811 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8812 * infrun.c (prepare_to_proceed, context_switch)
8813 (handle_inferior_event): Likewise.
8814 * linux-fork.c (fork_load_infrun_state): Likewise.
8815 * ocd.c (ocd_start_remote): Likewise.
8816 * remote-e7000.c (e7000_start_remote): Likewise.
8817 * remote-mips.c (device): Likewise.
8818 * thread.c (switch_to_thread): Likewise.
8819 * tracepoint.c (finish_tfind_command): Likewise.
8820 * gdbarch.c: Regenerated.
8825 * gdbtypes.c (check_typedef): Do not replace stub type if
8826 the resolved type is not defined in the same objfile.
8830 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8834 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8835 symbol for Ada units when the symbol is defined using 't' rather
8836 than 'Tt' as symbol descriptor.
8840 * config/mips/tm-nbsd.h: Delete file.
8841 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8842 * config/sh/tm-nbsd.h: Delete file.
8843 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8847 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8848 unused WRONG_PARAM value since it was recently deleted.
8852 * varobj.c (varobj_update): Free temporary vectors.
8856 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8857 * config/powerpc/tm-linux.h: Delete file.
8858 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8859 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8860 (TEXT_SEGMENT_BASE): Do not redefine.
8861 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8862 from config/rs6000/tm-rs6000.h.
8863 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8864 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8865 (TEXT_SEGMENT_BASE): Remove.
8866 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8867 (rs6000_in_solib_return_trampoline): Remove.
8868 (SKIP_TRAMPOLINE_CODE): Remove.
8869 (rs6000_skip_trampoline_code): Remove.
8870 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8871 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8872 (FP0_REGNUM): Remove.
8873 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8874 (rs6000_set_host_arch_hook): Remove.
8875 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8876 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8877 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8878 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8879 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8880 * rs6000-nat.c: Include "rs6000-tdep.h".
8881 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8882 (set_host_arch): Rename to ...
8883 (rs6000_create_inferior): ... this. Make public.
8884 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8885 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8886 (rs6000_create_inferior): Remove.
8887 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8888 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8889 set_gdbarch_in_solib_return_trampoline, and
8890 set_gdbarch_skip_trampoline_code.
8891 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8892 from config/rs6000/tm-rs6000.h.
8896 * buildsym.c (record_producer): Do nothing if no producer is provided.
8900 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8901 to check changelist is non-NULL. Call error if the frontend tries
8902 to update a non-root variable.
8904 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8908 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8909 (dwarf2_frame_sniffer): Update.
8910 (dwarf2_signal_frame_this_id): New function.
8911 (dwarf2_signal_frame_unwind): Use it.
8912 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8913 * frame.c (frame_func_unwind): Add this_type argument.
8914 (get_frame_func): Update.
8915 (frame_unwind_address_in_block): Add this_type argument and check it.
8917 (get_frame_address_in_block): Update.
8918 * frame.h (enum frame_type): Move higher in the file.
8919 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8922 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8923 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8924 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8925 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8926 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8927 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8928 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8929 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8930 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8931 frame_func_unwind and frame_unwind_address_in_block to specify
8932 the frame type. Use frame_unwind_address_in_block instead of
8933 frame_pc_unwind in sniffers.
8937 * frame.c (deprecated_selected_frame): Rename to...
8938 (selected_frame): ...this. Make static.
8939 (get_selected_frame, select_frame): Update.
8940 * frame.h (deprected_select_frame): Delete.
8941 (deprecated_safe_get_selected_frame): Update comments.
8943 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8944 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8945 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8946 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8947 tui/tui.c: Replace references to deprecated_selected_frame.
8951 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8952 directly decrement the stack pointer, accumulate their operand into
8953 the stack offset, and mark the function as not being frameless.
8957 * arch-utils.c (selected_byte_order): New.
8958 * arch-utils.h (selected_byte_order): New prototype.
8959 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8963 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8964 (default_symfile_offsets): Check VMA here. Update section VMAs.
8968 * remote.c (init_remote_state): Add special handling for placeholder
8973 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8974 (filenames_h): New variable.
8975 (clean): Clean up xml-builtin.c and stamp-xml.
8976 (arm-linux-nat.o): Update.
8977 * config/arm/linux.mh (TDEP_XML): Define.
8978 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8979 (arm_linux_has_wmmx_registers): New.
8980 (GET_THREAD_ID): Fix typo.
8981 (IWMMXT_REGS_SIZE): Define.
8982 (fetch_wmmx_regs, store_wmmx_regs): New.
8983 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8984 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8985 (super_xfer_partial, arm_linux_xfer_partial): New.
8986 (_initialize_arm_linux_nat): Use them.
8987 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8988 (xml_builtin_xfer_partial): New function.
8989 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8990 * NEWS: Update mention of iWMMXt support.
8994 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8995 if there are no FPA registers.
8996 (arm_dwarf_reg_to_regnum): New function.
8997 (arm_register_type, arm_register_name): Return minimal values for
8998 unsupported registers.
8999 (arm_register_sim_regno): Handle iWMMXt registers.
9000 (arm_gdbarch_init): Record missing FPA registers if indicated by
9001 a target description. Recognize iWMMXt registers. Only register
9002 "info float" for FPA. Use ARM_NUM_REGS. Register
9003 arm_dwarf_reg_to_regnum.
9004 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9006 (struct gdbarch_tdep): Add have_fpa_registers.
9007 * features/xscale-iwmmxt.xml: Update capitalization.
9008 * regformats/arm-with-iwmmxt.dat: Regenerated.
9012 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9016 * MAINTAINERS (mep): New target.
9020 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9022 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9023 (mep-tdep.o): New rule.
9024 * configure.tgt (mep-*-*): New target.
9025 * mep-tdep.c: New file.
9026 * config/mep/mep.mt: New file.
9030 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9031 BREAKPOINT_HIT and STOP_UNKNOWN.
9035 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9039 * gdb_expat.h (XMLCALL): Define if not already defined.
9043 * Makefile.in (symfile.o): Update dependencies.
9047 * MAINTAINERS: Disable -Werror for cris simulator. Build
9048 sparc64-solaris2.10 instead of the broken sparc-elf.
9049 * solib-frv.c: Include "solib.h".
9050 * Makefile.in (solib-frv.o): Update.
9051 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9052 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9053 (xtensa_frame_this_id, xtensa_frame_prev_register)
9054 (xtensa_push_dummy_call): Use %p.
9058 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9059 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9060 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9061 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9062 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9063 (sparc-linux-tdep.o): Update.
9067 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9068 (xtensa_mask_t): Change mask field to be a separate array.
9069 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9070 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9071 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9072 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9073 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9074 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9075 (mask14, mask15): Rename to
9076 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9077 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9078 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9079 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9080 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9081 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9082 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9083 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9084 (xtensa_submask14, xtensa_submask15): New.
9085 (rmap): Follow strict aliasing rules doing static initialization.
9089 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9090 handling from here...
9091 (tdesc_register_type): ...to here.
9092 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9093 * features/arm-core.xml: Use code_ptr and data_ptr.
9097 * varobj.h (enum varobj_update_error): New enum.
9098 * varobj.c (struct varobj_root): Add is_valid member.
9099 (varobj_get_type): Check for invalid varobj.
9100 (varobj_get_attributes): Likewise.
9101 (variable_editable):Likewise.
9102 (varobj_update): Likewise. Use varobj_update_error.
9103 (new_root_variable): Set root varobj as valid by default.
9104 (varobj_invalidate): New function.
9105 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9106 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9107 Use varobj_update_error.
9112 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9113 Pascal language marker.
9114 * dwarf2read.c (set_cu_language): Likewise.
9118 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9119 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9120 instead of target_terminal_init since inferior_ptid isn't set yet.
9124 * MAINTAINERS (Write After Approval): Add myself.
9128 Based on work by Apple Computer, Inc.
9129 * event-top.c (async_request_quit): Call quit() whenever either
9130 quit_flag is set or immediate_quit is set.
9134 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9135 type to a pointer to const struct block.
9136 (ada_lookup_symbol_list): Don't cast away constness when calling
9137 remove_out_of_scope_renamings.
9141 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9142 address of 'filename'; it is always non null.
9146 * exec.c (add_to_section_table): Do not discard empty sections.
9150 * features/Makefile, features/arm-with-iwmmxt.xml,
9151 features/gdbserver-regs.xsl, features/number-regs.xsl,
9152 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9153 * regformats/arm-with-iwmmxt.dat: Generate.
9154 * NEWS: Mention iWMMXt.
9158 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9159 (xml-tdesc.o): Update.
9160 * xml-support.c: Add a comment.
9161 (gdb_xml_enums_boolean): New variable.
9162 (gdb_xml_parse_attr_enum): Use strcasecmp.
9163 * xml-support.h (gdb_xml_enums_boolean): Declare.
9164 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9165 next_regnum, and current_union.
9166 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9167 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9168 (field_attributes, union_children, reg_attributes, union_attributes)
9169 (vector_attributes, feature_attributes, feature_children): New.
9170 (target_children): Make static. Add <feature>.
9171 (tdesc_elements): Make static.
9172 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9173 (struct tdesc_feature, tdesc_feature_p): New types.
9174 (struct target_desc): Add features member.
9175 (struct tdesc_arch_data, tdesc_data): New.
9176 (target_find_description): Clarify error message. Warn about
9177 ignored register descriptions.
9178 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9179 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9180 (tdesc_data_cleanup, tdesc_numbered_register)
9181 (tdesc_numbered_register_choices, tdesc_find_register)
9182 (tdesc_register_name, tdesc_register_type)
9183 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9184 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9185 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9186 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9187 (tdesc_create_feature, tdesc_record_type): New.
9188 (free_target_description): Free features.
9189 (_initialize_target_descriptions): Initialize tdesc_data.
9190 * arch-utils.c (default_remote_register_number): New.
9191 * arch-utils.h (default_remote_register_number): New prototype.
9192 * target-descriptions.h (set_tdesc_pseudo_register_name)
9193 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9194 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9195 (tdesc_numbered_register, tdesc_numbered_register_choices)
9196 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9197 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9198 (tdesc_create_reg): Declare.
9199 * gdbarch.sh (remote_register_number): New entry.
9200 * gdbarch.c, gdbarch.h: Regenerate.
9201 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9202 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9204 * arm-tdep.c (arm_register_aliases): New.
9205 (arm_register_name_strings): Rename to...
9206 (arm_register_names): ...this. Make const. Delete the old version.
9207 (current_option, arm_register_byte): Delete.
9208 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9209 (value_of_arm_user_reg): New.
9210 (arm_gdbarch_init): Verify any described registers. Call
9211 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9212 for standard register names.
9213 (_initialize_arm_tdep): Do not adjust arm_register_names.
9214 * user-regs.c (struct user_reg): Add baton member.
9215 (append_user_reg, user_reg_add_builtin, user_regs_init)
9216 (user_reg_add, value_of_user_reg): Use a baton for user
9218 * std-regs.c: Update.
9219 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9220 (user_reg_add): Add baton argument.
9221 * NEWS: Mention target description register support.
9222 * features/arm-core.xml, features/arm-fpa.xml: New.
9223 * eval.c (evaluate_subexp_standard): Allow ptype $register
9224 when the program is not running.
9228 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9232 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9233 info->disassembler_options to "any".
9237 * varobj.c (install_new_value): Only call value_get_print_value
9243 * gdb/target.c (target_flash_erase): Do not return void value.
9244 (target_flash_done): Likewise.
9245 * gdb/cli/cli-cmds.c (source_command): Likewise.
9249 Based on work by Apple Computer, Inc.
9250 * event-top.c (handle_sigint): Set quit_flag.
9251 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9252 if quit_flag has already been reset.
9256 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9261 * defs.h (request_quit): Remove declaration.
9262 * utils.c (request_quit): Remove definition.
9268 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9269 (skip_prologue): Allow bl->blrl used by PIC code.
9274 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9275 initialize tmp_obstack.
9276 * p-valprint.c (pascal_object_print_value_fields)
9277 (pascal_object_print_value): Likewise.
9281 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9285 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9286 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9290 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9292 (tdesc_parse_xml): Cache expanded descriptions.
9296 * Makefile.in (XMLFILES): New.
9297 (COMMON_OBS): Add xml-builtin.o.
9298 (xml-builtin.c, stamp-xml): New rules.
9299 (xml-tdesc.o): Update.
9300 * features/feature_to_c.sh: New file.
9301 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9302 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9303 (gdb_xml_start_element): Initialize scope after possibly reallocating
9304 scopes. Move cleanup later. Handle the XInclude description
9306 (gdb_xml_end_element): Only parse the body if there is a current element.
9307 Call XML_DefaultCurrent if there is no element.
9308 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9309 (struct xinclude_parsing_data, xinclude_start_include)
9310 (xinclude_end_include, xml_xinclude_default)
9311 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9312 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9313 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9314 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9315 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9316 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9317 XInclude directives. Use the compiled in DTD.
9318 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9319 directory name. Do not warn here.
9320 (file_read_description_xml): Update call. Warn here instead. Pass
9322 (fetch_available_features_from_target): New.
9323 (target_read_description_xml): Use it.
9324 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9326 * features/xinclude.dtd: New file.
9330 * linux-thread-db.c (check_for_thread_db): Return early if we have
9331 no libthread_db support.
9335 * mi/mi-parse.h: Include <sys/time.h>.
9339 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9340 instead of print_variable_value to print values.
9344 * mi/mi-main.c: Numerous formatting changes.
9345 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9346 removed in my previous change.
9350 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9351 Use 1000000L instead of 1000000.
9355 Based on work by Apple Computer, Inc.
9357 * configure.ac: Test for sys/resource.h and getrusage.
9358 * configure, config.in: Regenerate.
9360 * mi/mi-main.c: Include <sys/resource.h> if present.
9361 (rusage): Declare if HAVE_GETRUSAGE.
9362 (current_command_ts, do_timings): New static variables.
9363 (timestamp, print_diff_now, print_diff, timeval_diff):
9364 New static timing functions.
9365 (mi_cmd_enable_timings): New function for new MI command.
9366 (captured_mi_execute_command, mi_execute_async_cli_command):
9367 Call timing functions.
9369 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9372 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9374 * mi/mi-parse.h: (mi_timestamp): New structure.
9375 (mi_parse): Add mi_timestamp* member.
9379 * thread.c (make_cleanup_restore_current_thread): New function.
9380 (info_threads_command): Use of make_cleanup_restore_current_thread
9381 to restore the current thread and the selected frame.
9382 (restore_selected_frame): New function.
9383 (struct current_thread_cleanup): Add frame_id field.
9384 (do_restore_current_thread_cleanup): Add restoring of the selected
9386 (make_cleanup_restore_current_thread): Likewise.
9387 (thread_apply_all_command): backup the selected frame while
9388 entering the function and restore it at exit.
9389 (thread_apply_command): Likewise.
9393 * MAINTAINERS (Write After Approval): Add myself to the list.
9397 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9398 (m32r_store_register): Ditto.
9402 * ser-mingw.c (pipe_windows_open)
9403 (pipe_windows_read, pipe_windows_write): Declare
9404 variables at the top of the function.
9408 * doublest.c (floatformat_from_length): Use the right element from
9409 gdbarch floatformats.
9410 (floatformat_from_type, extract_typed_floating)
9411 (store_typed_floating): Likewise.
9412 * doublest.h: Remove declarations for undefined floatformat arrays.
9413 * gdbarch.sh (float_format, double_format, long_double_format): Change
9415 (pformat): Update for pairs.
9416 * gdbarch.c, gdbarch.h: Regenerated.
9417 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9418 (floatformats_ieee_double_littlebyte_bigword)
9419 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9420 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9421 (floatformats_vax_d): New variables.
9422 (builtin_type_ieee_single, builtin_type_ieee_double)
9423 (builtin_type_arm_ext, builtin_type_ia64_spill)
9424 (builtin_type_ia64_quad): Replace arrays with individual types.
9425 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9426 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9427 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9428 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9429 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9430 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9431 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9432 unused and endian-specific types.
9433 (recursive_dump_type): Update for floatformat pairs.
9434 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9435 (build_gdbtypes): Use build_flt.
9436 (_initialize_gdbtypes): Update set of initialized types.
9437 * gdbtypes.h: Update declarations to match gdbtypes.c.
9438 (struct main_type): Store a pointer to two floatformats.
9439 * arch-utils.c (default_float_format, default_double_format): Delete.
9440 * arch-utils.h (default_float_format, default_double_format): Delete.
9442 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9443 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9444 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9445 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9446 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9450 * target.c (maintenance_print_target_stack): New function.
9451 (initialize_targets): Add new "maintenance print target-stack"
9456 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9460 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9461 (struct dwarf2_loclist_baton): Likewise.
9465 * cli/cli-script.c: Include breakpoint.h.
9466 (build_command_line): Require arguments only for if and while
9468 (get_command_line, execute_user_command, execute_control_command):
9469 Fix wording of warning messages.
9470 (print_command_lines): Print breakpoint commands.
9471 (execute_control_command): Call commands_from_control_command to
9472 handle the `commands' command inside a body of a flow-control
9474 (read_next_line): Recognize the `commands' command and build a
9475 command line structure for it.
9476 (recurse_read_control_structure, read_command_lines): Handle
9477 `commands' similarly to `if' and `while'.
9479 * breakpoint.c (get_number_trailer): Document the special meaning
9480 of NULL as the first argument PP.
9481 (commands_from_control_command): New function.
9483 * breakpoint.h (commands_from_control_command): Add prototype.
9485 * defs.h (commands_control): New enumerated value for enum
9486 command_control_type.
9490 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9491 (ada_exception_sal): Update accordingly.
9495 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9496 * NEWS: Describe CHAR array vs. string identifcation rules.
9500 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9504 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9505 expression is empty, bother to return the 'optimized out' value we
9506 construct. (Thanks to Carl Burch.)
9510 * varobj.c (c_value_of_root, c_value_of_child)
9511 (cplus_describe_child): Don't call release_value.
9515 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9520 Refactor getting children name, value and type access
9522 * varobj.c (get_type_deref): Remove.
9523 (adjust_value_for_child_access): New.
9524 (c_number_of_children): Use the above.
9525 (c_describe_child): Likewise.
9526 (enum accessibility): New.
9527 (match_accessibility): New function.
9528 (cplus_describe_child): New function.
9529 (cplus_name_of_child, cplus_value_of_child)
9530 (cplus_type_of_child): Reimplement in terms
9531 of cplus_describe_child.
9532 (cplus_number_of_children): Use
9533 adjust_value_for_child_access.
9537 Fix computation of the 'editable' attribute and
9538 value changeability for for references.
9539 * varobj.c (get_value_type): New function.
9540 (c_variable_editable): Use get_value_type.
9541 (varobj_value_is_changeable): Likewise.
9545 * source.c (find_and_open_source): Try rewriting the source
9546 path inside filename if dirname is NULL.
9550 * dwarf2read.c (add_partial_symbol): Create an extra partial
9551 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9552 (new_symbol): Likewise for symbols.
9556 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9560 * value.c (value_primitive_field): Copy the full 'location'
9561 contents, instead of assuming that copying ADDRESS will
9562 bring over everything in the union. Remove obsolete comment.
9566 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9567 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9568 (m32c_m16c_pointer_to_address): Separate code from declarations.
9572 * target.c (update_current_target): Correct typo.
9576 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9583 * dwarf2-frame.c (execute_cfa_program): New support of
9584 `DW_CFA_GNU_negative_offset_extended'.
9588 * NEWS: Mention flash support for "load" and new remote packets.
9592 * breakpoint.c (delete_command): Skip redundant loop iterations.
9596 * gdbarch.sh (register_type): Update comment.
9597 * gdbarch.h: Regenerated.
9598 * arch-utils.c (generic_register_size): Call register_type.
9599 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9600 * m32c-tdep.c (check_for_saved): Likewise.
9601 * mips-tdep.c (mips_print_register, print_gp_register_row)
9602 (mips_print_registers_info): Likewise.
9603 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9605 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9606 (sh64_do_register, sh64_print_register)
9607 (sh64_media_print_registers_info): Likewise.
9608 * tui/tui-regs.c (tui_register_format): Likewise.
9612 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9614 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9615 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9616 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9617 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9618 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9619 (make_symbol_completion_list): Likewise.
9624 * buildsym.c (end_symtab): Use preallocated symtab if available.
9625 Fill in SYMBOL_SYMTAB.
9626 * buildsym.h (struct subfile): Add symtab member.
9627 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9628 (struct file_entry): Add symtab.
9629 (free_cu_line_header): New function.
9630 (read_file_scope): Use it. Save line_header in the cu. Process
9632 (add_file_name): Initialize new symtab member.
9633 (dwarf_decode_lines): Create symtabs for included files.
9634 (new_symbol): Set SYMBOL_SYMTAB.
9635 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9636 (search_symbols): Likewise.
9637 * symtab.h (struct symbol): Add symtab member.
9638 (SYMBOL_SYMTAB): Define.
9642 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9646 * arch-utils.c (show_endian): Correct reversed condition.
9650 * MAINTAINERS (Write After Approval): Add myself.
9655 Fix 'selected frame' varobjs.
9656 * varobj.c (struct varobj): Remove the error field.
9657 (varobj_set_value): Don't check var->error.
9658 (install_new_value): Don't set var->error.
9659 (varobj_update): Always pass the new value
9660 of the root via install_new_value.
9661 (create_child): Don't set error field.
9662 (new_variable): Likewise.
9663 (c_value_of_root): Always reevaluate the value
9664 of selected frame varobjs in the selected frame.
9665 Don't call reinit_frame_cache.
9669 * source.c (_initialize_source): Improve the help text of
9670 the substitute-path commands.
9674 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9675 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9676 (frv_skip_prologue): Remove prototypes.
9677 (frv_adjust_breakpoint_address): Renamed from
9678 frv_gdbarch_adjust_breakpoint_address.
9679 (frv_gdbarch_init): Adjust.
9683 * gdbarch.sh (deprecated_extract_return_value)
9684 (deprecated_store_return_value): Remove.
9685 (extract_return_value, store_return_value): Remove default values.
9686 * gdbarch.c, gdbarch.h: Regenerate.
9687 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9688 (legacy_store_return_value): Remove.
9689 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9692 * mi/mi-main.c: Remove obsolete comment.
9694 * regcache.c, regcache.h (deprecated_register_bytes)
9695 (deprecated_read_register_bytes)
9696 (deprecated_write_register_bytes): Remove.
9698 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9699 Don't forget to move destination pointer.
9703 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9707 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9708 past entry function with recent newlib.
9712 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9713 introduction. Specify -var-update more exactly.
9717 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9721 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9722 the Global Maintainers' invitation to be a global maintainer.
9726 * infrun.c (singlestep_pc): New variable.
9727 (resume): Set singlestep_pc.
9728 (context_switch): Add a debugging message. Flush the frame cache.
9729 (handle_inferior_event): Add debugging messages. Handle thread
9730 hops when a software single step has completed. Let context_switch
9731 handle flushing the frame cache.
9735 * NEWS: Mention target descriptions, "set tdesc filename",
9736 "unset tdesc filename", "show tdesc filename", and
9737 qXfer:features:read.
9738 * arch-utils.c (choose_architecture_for_target): New function.
9739 (gdbarch_info_fill): Call it.
9740 * target-descriptions.c (struct property): Make members non-const.
9741 (struct target_desc): Add arch member.
9742 (target_description_filename): New variable.
9743 (target_find_description): Try via XML first.
9744 (tdesc_architecture): New.
9745 (free_target_description, make_cleanup_free_target_description): New.
9746 (set_tdesc_property): Call xstrdup.
9747 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9748 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9749 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9750 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9751 * target-descriptions.h (tdesc_architecture)
9752 (make_cleanup_free_target_description, set_tdesc_architecture): New
9754 * Makefile.in (SFILES): Add xml-tdesc.c.
9755 (COMMON_OBS): Add xml-tdesc.o.
9756 (target-descriptions.o): Update.
9757 (xml-tdesc.o): New rule.
9758 * xml-tdesc.c, xml-tdesc.h: New files.
9759 * remote.c (PACKET_qXfer_features): New enum.
9760 (remote_protocol_features): Add qXfer:features:read.
9761 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9762 (_initialize_remote): Register qXfer:features:read.
9763 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9764 * features/gdb-target.dtd: New file.
9768 * copyright.sh: Clarify error.
9772 * symtab.c (matching_bfd_sections): Fix VMA matching for
9777 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9782 Updated copyright notices for most files.
9786 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9790 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9792 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9794 * configure, config.in: Regenerate.
9795 * defs.h (debug_file_directory): Declare.
9796 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9797 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9798 relocate it if DEBUGDIR_RELOCATABLE.
9799 * symfile.c (debug_file_directory): Make non-static.
9800 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9801 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9802 (_initialize_symfile): Don't initialize debug_file_directory here.
9806 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9811 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9812 frame_unwind_register to recurse.
9813 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9814 (alpha_heuristic_frame_prev_register): Likewise.
9815 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9816 * m32c-tdep.c (m32c_prev_register): Likewise.
9817 * frame.c (frame_register_unwind_location): Remove FIXME.
9822 * copyright.sh: New file.
9826 * configure.ac: Check for XML_StopParser.
9827 * xml-support.c (gdb_xml_body_text): Check for an error.
9828 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9829 (gdb_xml_end_element_wrapper): Likewise.
9830 * config.in, configure: Regenerated.
9834 * varobj.c (install_new_value): Always update print_value.
9835 (value_get_print_value): Immediately return NULL for missing
9840 * configure.ac: Tighten pattern for extracting value of
9841 DEPRECATED_TM_FILE from the target makefile fragment.
9842 * configure: Regenerated.
9846 * linux-nat.c (struct simple_pid_list): Add status.
9847 (add_to_pid_list): Record the PID's status.
9848 (linux_record_stopped_pid): Likewise. Make static.
9849 (pull_pid_from_list): Return the saved status.
9850 (linux_nat_handle_extended): Deleted.
9851 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9852 Make static. Handle non-SIGSTOP for a new thread's first signal.
9853 (flush_callback): Handle unexpected pending signals.
9854 (linux_nat_wait): Update calls to changed functions.
9855 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9856 Remove prototypes for newly static functions.
9860 * gdbarch.sh (value_from_register): New gdbarch function.
9861 * gdbarch.c, gdbarch.h: Regenerate.
9862 * findvar.c (default_value_from_register): New function.
9863 (value_from_register): Use gdbarch_value_from_register.
9864 * value.h (default_value_from_register): Declare.
9865 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9866 spu_value_to_register): Remove.
9867 (spu_value_from_register): New function.
9868 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9869 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9870 Call set_gdbarch_value_from_register.
9871 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9872 s390_value_to_register): Remove.
9873 (s390_value_from_register): New function.
9874 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9875 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9876 Call set_gdbarch_value_from_register.
9880 * NEWS: Add "set sysroot" and "show sysroot".
9881 * solib.c (solib_absolute_prefix): Delete. Replace
9882 all uses with gdb_sysroot.
9883 (_initialize_solib): Add "set sysroot" and "show sysroot".
9884 Make "solib-absolute-prefix" an alias to it.
9888 * frame.c (get_frame_register_bytes): New function.
9889 (put_frame_register_bytes): Likewise.
9890 * frame.h (get_frame_register_bytes): Declare.
9891 (put_frame_register_bytes): Likewise.
9892 * findvar.c (value_from_register): Always construct lval_register
9893 values. Use get_frame_register_bytes.
9894 * valops.c (value_assign): Use get_frame_register_bytes and
9895 put_frame_register_bytes.
9899 * MAINTAINERS: Update Stan Shebs' email address.
9903 * ada-lang.c (is_known_support_routine): Improve the implementation.
9907 * ada-lang.c: Add include of source.h.
9908 (is_known_support_routine): Improve the check verifying that the file
9909 associated to this frame exists.
9910 * Makefile.in (ada-lang.o): Add dependency on source.h.
9914 * ax-general.c (ax_const_l): Select proper opcode for the given
9919 * varobj.c (c_value_of_root): Don't select frame if variable
9920 object is out of scope.
9924 * varobj.c (struct varobj): New member print_value.
9925 (install_new_value): Compare last printed value with current one
9926 instead of contents.
9927 (new_variable): Initialize var->print_value to NULL.
9928 (free_variable): Free var->print_value.
9929 (value_get_print_value): New function derived from
9930 c_value_of_variable.
9931 (c_value_of_variable): Use value_get_print_value.
9935 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9939 * NEWS: Add entries for new catch commands.
9943 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9944 (add_partial_symbol): Correct identification of external references.
9945 (process_structure_scope): Likewise.
9946 (read_partial_die): Handle DW_AT_byte_size attribute.
9950 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9954 * varobj.c (get_type_deref): Fix variable objects for references to
9959 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9964 * memory-map.c (struct_memory_map_parsing_data): Remove most
9965 members. Make property_name an array.
9966 (free_memory_map_parsing_data, memory_map_start_element)
9967 (memory_map_end_element, memory_map_character_data): Delete.
9968 (memory_map_start_memory, memory_map_end_memory)
9969 (memory_map_start_property, memory_map_end_property): New functions.
9970 (property_attributes, memory_children, memory_type_enum)
9971 (memory_attributes, memory_map_children, memory_map_elements): New.
9972 (parse_memory_map): Rewrite.
9973 * xml-support.c (debug_xml): New.
9974 (xml_get_required_attribute, xml_get_integer_attribute)
9975 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9977 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9978 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9979 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9980 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9981 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9982 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9983 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9985 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9986 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9987 (enum gdb_xml_element_flag, struct gdb_xml_element)
9988 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9989 (struct gdb_xml_enum): New.
9990 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9991 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9992 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9993 (xml_get_required_attribute, xml_get_integer_attribute)
9994 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9995 * Makefile.in (xml_support_h, xml-support.o): Update.
9999 * Makefile.in (eval.o): Update dependencies.
10000 * eval.c: Include "ui-out.h" and "exceptions.h".
10001 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10002 Use value_zero if an error occurs when avoiding side effects.
10003 * varobj.c (c_value_of_root): Initialize new_val.
10007 * varobj.c (varobj_list_children): Stop if the number of children is
10009 (c_number_of_children):
10013 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10014 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10015 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10016 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10017 sizeof, instead of hardcoded constants.
10021 * CONTRIBUTE: Use sourceware.org.
10025 * buildsym.c (start_subfile): Handle producer.
10026 (record_producer): New function.
10027 * buildsym.h (struct subfile): Include producer.
10028 (record_producer): New prototype.
10029 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10030 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10031 armcc_cfa_offsets_reversed.
10032 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10033 (dwarf2_frame_find_quirks): New function.
10034 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10035 (decode_frame_entry_1): Record the CIE version. Record the
10036 augmentation. Skip armcc augmentations.
10037 * dwarf2read.c (read_file_scope): Save the producer.
10038 * symtab.h (struct symtab): Rename unused version member to
10043 * configure.ac (build_warnings): Use -Wall and
10044 -Wdeclaration-after-statement.
10045 * configure: Regenerated.
10049 Simplify access to variours properties of child
10050 variable objects in C.
10051 * varobj.c (value_struct_element_index): New function.
10052 (c_describe_child): New function.
10053 (c_name_of_child, c_value_of_child)
10054 (c_type_of_child): Rewrite to use c_describe_child.
10059 * varobj.c: Include "vec.h".
10060 (varobj_p): New typedef, declare vector of those.
10061 (struct varobj): Use vector for the 'children' member.
10062 (child_exists): Remove.
10063 (save_child_in_parent): Remove.
10064 (remove_child_from_parent): Remove.
10065 (struct varobj_child): Remove.
10066 (struct vstack): Remove.
10067 (vpush, vpop): Remove.
10068 (varobj_list_children): Adjust to work work vector.
10069 (varobj_update): Likewise. Use vectors for
10070 working stack and result.
10071 (delete_variable_1): Likewise.
10072 * Makefile.in (varobj.o): Update dependencies.
10076 Port from Apple's version.
10078 * varobj.c (type_changeable): Rename to...
10079 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10080 (is_root_p): New function. Use it everywhere.
10084 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10085 then plain 'fixup'.
10089 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10093 * hpread.c (hpread_type_lookup): Fix compilation failure.
10097 * NEWS: New port to S+core.
10098 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10101 * Makefile.in: Add dependencies for S+core files.
10102 * configure.tgt (score*, score-*-*): Add S+core target.
10103 * config/score/embed.mt: New file.
10104 * score-tdep.c: New file.
10105 * score-tdep.h: New file.
10109 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10110 the appropriate type rather than a bogus void type.
10114 * ada-lang.h (ada_find_printable_frame): Remove.
10115 (ada_exception_catchpoint_p, ada_decode_exception_location)
10116 (ada_decode_assert_location): Add declaration.
10117 * ada-lang.c: Add include of annotate.h and valprint.h.
10118 (exception_catchpoint_kind): New enum.
10119 (function_name_from_pc, is_known_support_routine)
10120 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10121 (ada_exception_name_addr_1, ada_exception_name_addr)
10122 (print_it_exception, print_one_exception, print_mention_exception)
10123 (print_it_catch_exception, print_one_catch_exception)
10124 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10125 (print_it_catch_exception_unhandled)
10126 (print_one_catch_exception_unhandled)
10127 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10128 (print_one_catch_assert, print_mention_catch_assert)
10129 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10130 (ada_get_next_arg, catch_ada_exception_command_split)
10131 (ada_exception_sym_name, ada_exception_sym_name)
10132 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10133 (ada_parse_catchpoint_condition, ada_exception_sal)
10134 (ada_decode_exception_location)
10135 (ada_decode_assert_location): New function.
10136 (catch_exception_unhandled_breakpoint_ops): New global variable.
10137 (catch_assert_breakpoint_ops): New global variable.
10138 * breakpoint.c: Add include of ada-lang.h.
10139 (print_one_breakpoint): Do not print the condition for Ada
10140 exception catchpoints.
10141 (create_ada_exception_breakpoint): New function.
10142 (catch_ada_exception_command, catch_assert_command): New function.
10143 (catch_command_1): Add support for the new "catch exception" and
10144 "catch assert" commands.
10145 (_initialize_breakpoint): Add help description for the new catch
10147 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10149 (breakpoint.o): Add dependency on ada-lang.h.
10153 * coffread.c (cs_to_section): If bfd_section is found, always
10154 return its section index.
10155 (coff_symtab_read): Determine the minimal_symbol_type using the
10161 * Makefile.in (top.o): Update.
10162 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10163 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10164 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10166 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10170 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10171 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10175 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10176 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10177 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10178 greater than or equal to zero.
10179 * m2-typeprint.c (m2_array): Likewise.
10180 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10181 * gdbtypes.c (copy_type_recursive): Correct == typo.
10182 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10183 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10185 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10186 (default_macro_scope): Remove unused variable.
10187 * prologue-value.h (pv_area_find_reg): Don't name an argument
10189 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10190 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10192 (cleanup_sigint_signal_handler): Remove casts.
10193 * valprint.c (val_print): Use a volatile local for the modified
10195 * varobj.c (languages): Remove extra array dimension.
10196 (varobj_create): Correct access to languages array.
10197 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10199 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10200 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10201 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10202 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10203 (mi_cmd_data_write_memory): Likewise.
10204 * signals/signals.c (target_signal_to_string): Cast to int before
10206 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10207 Update all callers.
10211 * NEWS: Mention pointer to member improvements.
10212 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10213 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10214 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10215 * c-typeprint.c (c_print_type): Update for new type codes.
10216 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10217 (c_type_print_base): Likewise.
10218 (c_type_print_args): Rewrite.
10219 * c-valprint.c (c_val_print): Update for new type codes. Remove
10220 support for references to members. Treat methods like functions.
10221 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10222 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10223 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10224 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10225 (struct cp_abi_ops): Add corresponding members.
10226 * cp-valprint.c (cp_print_class_method): Delete.
10227 (cp_find_class_member): New function.
10228 (cp_print_class_member): Use it. Simplify support for bogus
10230 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10231 lookup_methodptr_type.
10232 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10233 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10234 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10236 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10237 references returned by user defined operators.
10238 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10239 (f_type_print_varspec_suffix): Remove support for member pointers.
10240 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10242 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10243 (lookup_methodptr_type): New.
10244 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10245 (recursive_dump_type): Update for new types.
10246 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10247 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10248 (lookup_memberptr_type, lookup_methodptr_type)
10249 (smash_to_memberptr_type): New prototypes.
10250 (smash_to_method_type): Formatting fix.
10251 (lookup_member_type, smash_to_member_type): Delete prototypes.
10252 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10253 Do not rely on debug information for the vptr or the method's
10254 enclosing type. Handle function descriptors for IA64.
10255 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10256 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10257 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10258 (gnuv3_method_ptr_to_value): New.
10259 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10260 * hpread.c (hpread_type_lookup): Update for new types.
10261 * infcall.c (value_arg_coerce): Likewise.
10262 * m2-typeprint.c (m2_print_type): Remove explicit support
10263 for member pointers.
10264 * m2-valprint.c (m2_val_print): Likewise.
10265 * p-typeprint.c (pascal_type_print_varspec_prefix)
10266 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10267 * p-valprint.c (pascal_val_print): Likewise.
10268 (pascal_object_print_class_method, pascal_object_print_class_member):
10270 * p-lang.h (pascal_object_print_class_method)
10271 (pascal_object_print_class_member): Delete prototypes.
10272 * stabsread.c (read_type): Update for new types.
10273 * typeprint.c (print_type_scalar): Likewise.
10274 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10275 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10276 argument. Construct a pointer to member if the address of a
10277 function or data member is requested.
10278 (value_cast_pointers): Don't modify the input value.
10279 (value_cast): Adjust pointer to member handling for new types.
10280 Allow null pointer to member constants. Don't modify the input
10282 (value_ind): Remove pointer to member check. Handle function
10283 descriptors for function pointers.
10284 (value_struct_elt, value_find_oload_method_list, check_field):
10285 Remove pointer to member checks.
10286 * value.c (unpack_long): Allow pointers to data members.
10287 (value_from_longest): Allow member pointers.
10288 * value.h (value_aggregate_elt): Add want_address.
10289 * varobj.c (c_variable_editable): Remove check for members.
10290 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10291 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10293 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10294 * c-lang.h (cp_print_class_method): Delete prototype.
10295 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10296 * mips-tdep.c (mips_gdbarch_init): Likewise.
10297 * gdbarch.c, gdbarch.h: Regenerated.
10301 * rs6000-tdep.c (rs6000_use_struct_convention)
10302 (rs6000_extract_return_value, rs6000_store_return_value)
10303 (rs6000_extract_struct_value_address): Remove.
10304 (rs6000_return_value): New function.
10305 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10306 store_return_value, deprecated_extract_struct_value_address and
10307 deprecated_use_struct_convention. Use rs6000_return_value
10312 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10313 -display-disable, -display-enable, -display-insert and
10318 * breakpoint.c (remove_breakpoint): Remove dead code.
10322 * varobj.c: Include block.h.
10323 (c_value_of_root): Check scope within nested statements.
10327 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10328 regcache_cooked_write_signed instead of
10329 deprecated_write_register_bytes.
10333 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10337 Followed the Start of New Year Procedure:
10338 * ChangeLog-2006: New file, containing all the entries for 2006.
10339 * ChangeLog: Removed all 2006 entries, and changed the reference
10340 to the previous ChangeLog to point to ChangeLog 2006.
10341 * top.c (print_gdb_version): Update copyright year.
10345 * Makefile.in (remote-sds.o): Remove.
10346 * remote-sds.c: Delete.
10348 For older changes see ChangeLog-2006.
10354 version-control: never