3 Remove unused support for target-based exception catching.
4 * target.h (struct target_ops): Delete
5 to_enable_exception_callback and to_get_current_exception_event
7 (target_enable_exception_callback)
8 (target_get_current_exception_event): Delete macros.
9 * target.c (update_current_target): Remove code to inherit and
10 default those members.
11 (debug_to_enable_exception_callback)
12 (debug_to_get_current_exception_event): Delete functions.
13 (setup_target_debug): Don't install those methods.
14 * inf-child.c (inf_child_enable_exception_callback)
15 (inf_child_get_current_exception_event): Delete dummy functions.
16 (inf_child_target): Don't install them in the target vector.
17 * breakpoint.h (enum bptype): Delete bp_catch_catch,
19 * breakpoint.c (cover_target_enable_exception_callback)
20 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
22 (insert_bp_location, update_breakpoints_after_exec)
23 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
24 (bpstat_stop_status, bpstat_what)
25 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
26 (user_settable_breakpoint, allocate_bp_location)
27 (disable_watchpoints_before_interactive_call_start)
28 (enable_watchpoints_after_interactive_call_stop, mention)
29 (delete_breakpoint, breakpoint_re_set_one, disable_command)
30 (enable_command): Remove exception catchpoint cases.
31 (catch_exception_command_1): Don't try target-based exception
33 * stack.c (catch_info): Call print_frame_label_vars
39 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
40 of setting deprecated_register_valid array directly.
44 * mips-tdep.c (extended_offset): Fix a comment.
48 * target.c (update_current_target): Inherit to_log_command.
49 * target.h (struct target_ops). Add to_log_command.
50 (target_log_command): New macro.
51 * top.c (execute_command): Call target_log_command() rather than
53 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
54 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
55 * remote-mips.c (_initialize_remote_mips): Likewise.
56 * remote.c (init_remote_ops): Likewise.
60 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
61 (handle_inferior_event): Clear stop_stack_dummy earlier.
65 * addrmap.c (addrmap_splay_tree_remove): New function.
66 (addrmap_mutable_set_empty): Use it.
68 * addrmap.c, addrmap.h: Update to GPLv3.
70 * addrmap.c (struct addrmap): Make the referenced function table
72 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
73 Don't use designated initializers.
75 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
76 (addrmap_mutable_relocate): Use internal_error, not abort.
78 * NEWS: Mention support for non-contiguous lexical blocks and
83 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
84 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
86 * gdbarch.{c,h}: Regenerate.
88 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
89 Replace current_gdbarch by gdbarch.
90 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
91 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
92 (rs6000_dwarf2_reg_to_regnum): Likewise.
93 * mips-tdep.c (mips_stab_reg_to_regnum)
94 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
95 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
96 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
97 * i386-tdep.c (i386_dbx_reg_to_regnum)
98 (i386_svr4_reg_to_regnum): Likewise
99 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
100 (h8300_dbg_reg_to_regnum): Likewise.
101 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
102 * arch-utils.c (no_op_reg_to_regnum): Likewise.
103 * arch-utils.h (no_op_reg_to_regnum): Likewise.
104 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
105 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
106 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
107 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
108 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
112 Localize infrun use of remove_breakpoints.
113 * infrun.c (handle_inferior_event): Remove
114 calls to remove_breakpoints, except where needed to
115 communicate change of breakpoint locations to inferior.
116 (keep_going): If steppping over breakpoint, remove
121 Clarify infrun variable naming.
122 * infrun.c (trap_expected): Rename
123 to stepping_over_breakpoint. Document.
124 (stepping_past_breakpoint): Remove.
125 (stepping_past_breakpoint_ptdi): Renamed
126 to deferred_step_ptid.
127 (struct execution_control_state): Rename
128 the another_trap field to stepping_over_breakpoint.
129 (struct inferior_status): Rename the trap_expected
130 field to stepping_over_breakpoint.
131 (clear_proceed_status, proceed)
132 (init_execution_control_state, context_switch)
133 (handle_inferior_event, currently_stepping)
134 (keep_going, save_inferior_status)
135 (restore_inferior_status, prepare_to_proceed): Adjust.
136 * gdbthread.h (struct thread_info): Rename the
137 trap_expected field to stepping_over_breakpoint.
138 * thread.c (load_infrun_state, save_infrun_state):
143 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
144 Add "gdb_stdint.h" dependency required for uintptr_t type use.
145 (handle_output_debug_string): Use uintptr_t typecast.
146 (handle_exception): Ditto.
147 (win32_xfer_memory): Ditto.
148 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
152 Support lexical blocks and function bodies that occupy
153 non-contiguous address ranges.
154 * addrmap.c, addrmap.h: New files.
155 * block.h (struct addrmap): New forward declaration.
156 (struct blockvector): New member, 'map'.
157 (BLOCKVECTOR_MAP): New accessor macro.
158 * block.c: #include "addrmap.h"
159 (blockvector_for_pc_sect): If the blockvector we've found has
160 an address map, use it instead of searching the blocks.
161 * buildsym.c: #include "addrmap.h"
162 (pending_addrmap_obstack, pending_addrmap_interesting): New static
164 (really_free_pendings): If we have a pending addrmap, free it too.
165 (record_block_range): New function.
166 (make_blockvector): If we have an interesting pending addrmap,
167 record it in the new blockvector.
168 (start_symtab, buildsym_init): Assert that there is no pending
169 addrmap now; we should have cleaned up any addrmaps we'd built
171 (end_symtab): If there is a pending addrmap left over that didn't
172 get included in the blockvector, free it.
173 * buildsym.h (struct addrmap): New forward declaration.
174 (record_block_range): New prototype.
175 * objfiles.c: #include "addrmap.h".
176 (objfile_relocate): Relocate the blockvector's address map, if
178 * dwarf2read.c (dwarf2_record_block_ranges): New function.
179 (read_func_scope, read_lexical_block_scope): Call it.
180 * Makefile.in (SFILES): Add addrmap.c.
181 (addrmap_h): New header dependency variable.
182 (COMMON_OBS): Add addrmap.o.
183 (addrmap.o): New rule.l
184 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
186 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
187 pointer to the block, not its index in the blockvector.
188 (block_for_pc_sect): Use the returned block, instead of looking it
190 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
192 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
193 looking it up ourselves.
194 * stack.c (print_frame_label_vars): Disable function, which
195 depends on the block's index.
197 * buildsym.c (finish_block): Return the block we've built.
198 * buildsym.h (finish_block): Update prototype.
200 * defs.h (CORE_ADDR_MAX): New constant.
204 * coffread.c (decode_type): Use builtin_type_int32 instead
205 of FT_INTEGER fundamental type for array range index type.
206 (decode_base_type): Use builtin types of current_gdbarch
207 instead of fundamental types.
209 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
210 (read_file_scope): Do not initialize ftypes member.
211 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
212 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
213 fundamental type for array range index type.
214 (read_tag_string_type): Likewise for string range index type.
215 Also, do not overwrite FT_CHAR type with new string type.
216 (read_base_type): If DW_AT_name is missing, create unnamed type
217 with given properties instead of looking for a fundamental type.
218 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
219 DW_ATE_complex_float types.
220 (read_subrange_type): Create new type to represent missing
221 DW_AT_type instead of looking for a fundamental type.
222 (die_type): Use builtin type to represent "void" instead of
223 looking for a fundamental type.
225 * stabsread.c (define_symbol): Use builtin types to represent
226 'r' and 'i' floating-point and integer constants.
228 * gdbtypes.c (lookup_fundamental_type): Remove.
229 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
230 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
231 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
232 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
233 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
234 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
235 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
236 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
237 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
238 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
239 * objfiles.c (struct objfile): Remove fundamental_types member.
240 * symfile.c (reread_symbols): Do not clear fundamental_types.
242 * language.h (struct language_defn): Remove la_fund_type member.
243 (create_fundamental_type): Remove.
244 * language.c (unk_lang_create_fundamental_type): Remove.
245 (unknown_language_defn, auto_language_defn,
246 local_language_defn): Adapt initializer.
247 * ada-lang.c (ada_create_fundamental_type): Remove.
248 (ada_language_defn): Adapt initializer.
249 * c-lang.h (c_create_fundamental_type): Remove prototype.
250 * c-lang.c (c_create_fundamental_type): Remove.
251 (c_language_defn, cplus_language_defn, asm_language_defn,
252 minimal_language_defn): Adapt initializer.
253 * f-lang.c (f_create_fundamental_type): Remove.
254 (f_language_defn): Adapt initializer.
255 * jv-lang.c (java_create_fundamental_type): Remove.
256 (java_language_defn): Adapt initializer.
257 * m2-lang.c (m2_create_fundamental_type): Remove.
258 (m2_language_defn): Adapt initializer.
259 * objc-lang.c (objc_create_fundamental_type): Remove.
260 (objc_language_defn): Adapt initializer.
261 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
262 * p-lang.c (pascal_create_fundamental_type): Remove.
263 (pascal_language_defn): Adapt initializer.
264 * scm-lang.c (scm_language_defn): Adapt initializer.
268 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
269 * features/mips64-cpu.xml: Likewise.
270 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
271 * features/mips64-fpu.xml: Likewise.
272 * features/mips-linux.c: Regenerate.
273 * features/mips64-linux.c: Regenerate.
277 * target.h (target_find_new_threads): Fix definition.
281 * win32-nat.c (win32_resume): Set the trace bit
282 in the thread identified by inferior_ptid.
287 * win32-nat.c (open_process_used): New static variable.
288 (win32_init_thread_list): Remove call to CloseHandle for thread.
289 (win32_delete_thread): Ditto.
290 (fake_create_process): Set open_process_used if OpenProcess call is
292 (get_win32_debug_event): Do not close process handle.
293 (do_initial_win32_stuff): Set open_process_used to zero.
294 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
295 open_process_used is set.
296 (win32_kill_inferior): Do not close process and main_thread handles.
300 * remote.c (remote_cmdlist): New variable.
301 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
302 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
303 (remote_buffer_add_string, remote_buffer_add_bytes)
304 (remote_buffer_add_int, remote_hostio_parse_result)
305 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
306 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
307 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
308 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
309 (remote_file_delete, remote_put_command, remote_get_command)
310 (remote_delete_command, remote_command): New functions.
311 (_initialize_remote): Register new packets and commands.
312 * Makefile.in (gdb_fileio_h): New variable.
314 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
315 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
316 (mi-cmd-target.o): New rule.
317 * mi/mi-cmd-target.c: New file.
318 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
320 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
321 (mi_cmd_target_file_delete): Declare.
322 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
324 * NEWS: Describe new file transfer support.
328 * infrun.c (handle_inferior_event): Don't
329 ignore beakpoints if trap_expected is set.
333 Make insert_breakpoints return void.
334 * breakpoint.h (insert_breakpoints): Change
336 * breakpoint.c (insert_breakpoints): Change
337 return type to void. Rename local return_val
339 * infrun.c (keep_going): Instead of checking
340 return value from insert_breakpoints, catch exception.
344 Stop infrun from tracking breakpoint insertion status.
346 The checks of breakpoints_inserted before calling
347 remove_breakpoints are removed, as remove_breakpoint
348 won't touch uninserted breakpoints. In a number of places,
349 we're interested if a breakpoint is inserted at particular
350 PC, and we now use breakpoint_inserted_here_p. In a few
351 places, insert_breakpoints can be called unconditionally,
352 since it won't try to insert already inserted breakpoint.
354 * breakpoint.h (regular_breakpoint_inserted_here_p): New
356 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
357 (breakpoint_inserted_here_p): Use
358 regular_breakpoint_inserted_here_p.
359 * infrun.c (breakpoints_inserted): Remove.
360 (resume): Don't check for breakpoints_inserted before
361 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
362 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
363 (handle_inferior_event): Don't use breakpoints_inserted.
364 Use breakpoints_meant_to_be_inserted and
365 breakpoints_inserted_here_p.
366 (insert_step_resume_breakpoint_at_sal, keep_going): Use
367 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
368 (normal_stop): Don't check for breakpoints_inserted. Don't
369 set breakpoints_inserted.
370 (keep_going): Don't check for breakpoints_inserted.
371 (insert_step_resume_breakpoint_at_sal): Don't insert
376 * breakpoint.c (watch_command_1): When the watchpoint isn't local
377 to any frame, initialize watchpoint_frame using null_frame_id, not
382 * infrun.c (resume): Set right thread even if
383 stepping over breakpoint using software single step.
387 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
388 (mi_print_value_p): Guard against type = NULL.
392 * dfp.c (decimal_from_string): Remove superfluous newline from
394 (decimal_to_string): Likewise.
395 * printcmd.c (printf_command): Change string buffer to use
396 MAX_DECIMAL_STRING constant.
397 * value.c (value_from_decfloat): Likewise.
401 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
402 64-bit CORE_ADDR and BFD support, move them to ...
403 (ALL_64_TARGET_OBS): ... this new variable.
404 * configure.ac: Check for --enable-64-bit-bfd option. Only add
405 64-bit targets with --enable-targets=all if BFD supports 64-bit.
406 * configure: Regenerate.
408 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
409 all elf32-i386 executables, only cygwin core files.
413 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
414 code with its variables OBJFILE, CU_HEADER and OBFD into ...
415 (dwarf2_ranges_read): ... a new function.
416 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
420 * win32-nat.c (DR6_CLEAR_VALUE): New define.
421 (thread_info_struct): Rename suspend_count to suspended, to be
423 (thread_rec): Only suspend the thread if it wasn't suspended by
424 gdb before. Warn if suspending failed.
425 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
426 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
427 `suspended' flag. Do ContinueDebugEvent after resuming the
428 suspended threads, not before. Set threads' contexts before
429 resuming them, not after.
430 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
434 * breakpoint.c (insert_breakpoints)
435 (insert_bp_location): Remove stale comments.
439 * mips-linux-tdep.h: Fix some formatting.
443 * stack.c (print_args_stub): Use get_frame_arch to get at the current
444 architecture and replace current_gdbarch.
445 (frame_info): Likewise.
449 * varobj.c (c_variable_editable, cplus_variable_editable)
450 (java_variable_editable, variable_editable): Delete.
451 (varobj_editable_p): Replace above functions with one language
452 independent function. Check for an lvalue.
453 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
454 (struct language_specific): Delete variable_editable field.
456 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
458 * varobj.h: Add extern for varobj_editable_p.
462 Remove unused breakpoint fields.
463 * breakpoint.h (struct breakpoint): Remove
464 from_tty and flag fields.
465 * breakpoint.c (break_command_1): Don't set
466 from_tty and flag field set of breakpoint.
467 (create_ada_exception_breakpoint): Don't set
473 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
478 * infrun.c (resume): Clarify logic that
479 decides if a single thread must be resumed. Add
484 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
489 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
490 * gdbarch.{c,h}: Regenerate.
492 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
493 * score-tdep.c (score_register_sim_regno): Likewise.
494 * sim-regno.h (one2one_register_sim_regno): Likewise.
496 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
497 Replace current_gdbarch by gdbarch.
498 * sh-tdep.c (sh_sh2a_register_sim_regno)
499 (sh_dsp_register_sim_regno): Likewise.
500 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
501 * mips-tdep.c (mips_register_sim_regno): Likewise.
502 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
503 * frv-tdep.c (frv_register_sim_regno): Likewise.
504 * arm-tdep.c (arm_register_sim_regno): Likewise.
505 * remote-sim.c (one2one_register_sim_regno): Likewise.
509 * configure.ac (--enable-targets): New configure option.
510 Collect gdb_target_obs of multiple targets into TARGET_OBS.
511 Call configure.tgt multiple times, using $targ as operand.
512 * configure.tgt: Operate on $targ instead of $target.
513 * configure: Regenerate.
514 * Makefile.in (ALL_TARGET_OBS): Define.
516 * NEWS: Mention --enable-targets option.
520 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
521 current architecture is not MIPS.
525 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
526 to construct error message if no argument was supplied.
530 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
531 (i386nbsd_aout_regset_from_core_section): Likewise.
532 (i386nbsd_aout_init_abi): Likewise.
533 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
535 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
536 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
540 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
541 (amd64fbsd_sigtramp_end_addr): Likewise.
543 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
544 (iq2000_address_to_pointer): Likewise.
545 (iq2000_frame_prev_register): Likewise.
546 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
547 instead of regcache_cooked_read into CORE_ADDR variable.
548 (iq2000_return_value): Fix argument types.
550 * m32r-rom.c (m32r_load_section): Fix printf argument type.
551 (m32r_load): Likewise.
553 * m68kbsd-tdep.c: Include "gdbtypes.h".
554 * Makefile.in: Update dependencies.
556 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
558 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
559 lmo->l_addr_size element.
561 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
562 (m32r_insert_breakpoint): Likewise.
563 (m32r_remove_breakpoint): Likewise.
564 (m32r_insert_watchpoint): Likewise.
565 (m32r_remove_watchpoint): Likewise.
566 (m32r_load): Fix printf argument type.
568 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
570 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
571 (xtensa_frame_prev_register): Likewise.
572 (xtensa_push_dummy_call): Likewise.
576 * config/alpha/alpha-linux.mt: Remove file.
577 * config/alpha/alpha.mt: Remove file.
578 * config/alpha/alpha-osf1.mt: Remove file.
579 * config/alpha/fbsd.mt: Remove file.
580 * config/alpha/nbsd.mt: Remove file.
581 * config/alpha/obsd.mt: Remove file.
582 * config/arm/embed.mt: Remove file.
583 * config/arm/linux.mt: Remove file.
584 * config/arm/nbsd.mt: Remove file.
585 * config/arm/obsd.mt: Remove file.
586 * config/arm/wince.mt: Remove file.
587 * config/avr/avr.mt: Remove file.
588 * config/cris/cris.mt: Remove file.
589 * config/frv/frv.mt: Remove file.
590 * config/h8300/h8300.mt: Remove file.
591 * config/i386/cygwin.mt: Remove file.
592 * config/i386/fbsd64.mt: Remove file.
593 * config/i386/fbsd.mt: Remove file.
594 * config/i386/i386gnu.mt: Remove file.
595 * config/i386/i386.mt: Remove file.
596 * config/i386/i386sol2.mt: Remove file.
597 * config/i386/linux64.mt: Remove file.
598 * config/i386/linux.mt: Remove file.
599 * config/i386/mingw.mt: Remove file.
600 * config/i386/nbsd64.mt: Remove file.
601 * config/i386/nbsd.mt: Remove file.
602 * config/i386/nto.mt: Remove file.
603 * config/i386/obsd64.mt: Remove file.
604 * config/i386/obsd.mt: Remove file.
605 * config/i386/sol2-64.mt: Remove file.
606 * config/ia64/ia64.mt: Remove file.
607 * config/ia64/linux.mt: Remove file.
608 * config/iq2000/iq2000.mt: Remove file.
609 * config/m32c/m32c.mt: Remove file.
610 * config/m32r/linux.mt: Remove file.
611 * config/m32r/m32r.mt: Remove file.
612 * config/m68hc11/m68hc11.mt: Remove file.
613 * config/m68k/linux.mt: Remove file.
614 * config/m68k/monitor.mt: Remove file.
615 * config/m68k/nbsd.mt: Remove file.
616 * config/m68k/obsd.mt: Remove file.
617 * config/m88k/obsd.mt: Remove file.
618 * config/mep/mep.mt: Remove file.
619 * config/mips/embed.mt: Remove file.
620 * config/mips/irix5.mt: Remove file.
621 * config/mips/irix6.mt: Remove file.
622 * config/mips/linux.mt: Remove file.
623 * config/mips/nbsd.mt: Remove file.
624 * config/mips/obsd64.mt: Remove file.
625 * config/mn10300/linux.mt: Remove file.
626 * config/mn10300/mn10300.mt: Remove file.
627 * config/mt/mt.mt: Remove file.
628 * config/pa/hppahpux.mt: Remove file.
629 * config/pa/hppa.mt: Remove file.
630 * config/pa/linux.mt: Remove file.
631 * config/pa/obsd.mt: Remove file.
632 * config/powerpc/aix.mt: Remove file.
633 * config/powerpc/linux.mt: Remove file.
634 * config/powerpc/nbsd.mt: Remove file.
635 * config/powerpc/obsd.mt: Remove file.
636 * config/powerpc/ppc-eabi.mt: Remove file.
637 * config/s390/s390.mt: Remove file.
638 * config/score/embed.mt: Remove file.
639 * config/sh/embed.mt: Remove file.
640 * config/sh/linux.mt: Remove file.
641 * config/sh/nbsd.mt: Remove file.
642 * config/sh/obsd.mt: Remove file.
643 * config/sh/sh64.mt: Remove file.
644 * config/sparc/embed.mt: Remove file.
645 * config/sparc/fbsd.mt: Remove file.
646 * config/sparc/linux64.mt: Remove file.
647 * config/sparc/linux.mt: Remove file.
648 * config/sparc/nbsd64.mt: Remove file.
649 * config/sparc/nbsd.mt: Remove file.
650 * config/sparc/obsd64.mt: Remove file.
651 * config/sparc/obsd.mt: Remove file.
652 * config/sparc/sol2-64.mt: Remove file.
653 * config/sparc/sol2.mt: Remove file.
654 * config/sparc/sparc64.mt: Remove file.
655 * config/sparc/sparc.mt: Remove file.
656 * config/spu/spu.mt: Remove file.
657 * config/v850/v850.mt: Remove file.
658 * config/vax/nbsd.mt: Remove file.
659 * config/vax/obsd.mt: Remove file.
660 * config/vax/vax.mt: Remove file.
661 * config/xstormy16/xstormy16.mt: Remove file.
662 * config/xtensa/xtensa.mt: Remove file.
664 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
665 (gdb_target): Likewise.
666 (gdb_target_obs): Document. Set for every target to contents
667 of TDEPFILES in former .mt makefile fragment.
669 * configure.ac (TARGET_OBS): Define.
670 (target_makefile_frag, gdb_target_cpu): Do not define.
671 * configure: Regenerate.
673 * Makefile.in (MT_FLAGS): Remove.
674 (GLOBAL_CFLAGS): Update.
675 (TARGET_OBS): Substitute from configure.
676 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
677 (@target_makefile_frag@): Remove.
681 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
682 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
683 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
684 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
685 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
686 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
687 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
688 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
689 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
690 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
691 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
692 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
693 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
694 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
695 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
696 * config/powerpc/ppc-sim.mt: Remove file.
697 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
698 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
699 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
700 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
701 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
702 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
703 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
705 * configure.tgt (gdb_sim): Document variable.
706 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
709 (h8300-*-*): Likewise.
710 (iq2000-*-*): Likewise.
711 (m32c-*-*): Likewise.
712 (m32r*-*-linux*): Likewise.
713 (m32r*-*-*): Likewise.
714 (m68hc11*-*-*|m6811*-*-*): Likewise.
715 (mips*-*-*): Likewise.
716 (mips*-*-linux*): Likewise.
717 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
718 (mn10300-*-*): Likewise.
719 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
720 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
721 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
723 (sh-*-linux*): Likewise.
724 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
725 (sh64-*-elf*): Likewise.
726 (sparc-*-rtems*): Likewise.
727 (v850*-*-elf): Likewise.
728 (xstormy16-*-*): Likewise.
730 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
731 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
732 * configure: Regenerate.
733 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
734 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
738 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
739 (arm*-*-*): Do not set obsolete build_rdi_share variable.
741 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
742 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
743 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
744 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
745 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
747 (xscale-*-*): Merge into arm*-*-* case.
748 (fido-*-elf*): Merge into m68*-*-elf* case.
749 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
750 m68*-*-uclinux*): Merge cases.
751 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
752 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
756 * configure.tgt: Reformat main case statement.
760 * configure.ac (hostfile, targetfile): Remove.
761 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
762 (xm_h, tm_h): Likewise.
763 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
764 * configure, config.in: Regenerate.
766 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
767 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
768 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
769 * defs.h: Do not include "xm.h" or "tm.h".
771 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
772 * gdbarch.c: Regenerate.
774 * config/score/embed.mt: Remove obsolete comment.
778 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
780 * gdbarch.{c,h}: Regenerate.
782 * alpha-tdep.c (alpha_cannot_fetch_register)
783 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
784 current_gdbarch by gdbarch.
785 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
786 (crisv32_cannot_fetch_register)
787 (crisv32_cannot_store_register): Likewise.
788 * arch-utils.c (cannot_register_not): Likewise.
789 * arch-utils.h (cannot_register_not): Likewise.
790 * hppa-tdep.c (hppa32_cannot_store_register)
791 (hppa32_cannot_store_register, hppa64_cannot_store_register)
792 (hppa64_cannot_fetch_register): Likewise.
793 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
794 (mipsnbsd_cannot_store_register): Likewise.
798 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
799 the current architecture by regcache.
800 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
801 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
802 (fetch_register, supply_vrregset, fetch_ppc_registers)
803 (store_altivec_register, store_spe_register, store_register)
804 (fill_vrregset, store_ppc_registers): Likewise.
805 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
806 * win32-nat.c (do_win32_fetch_inferior_registers)
807 (do_win32_store_inferior_registers): Likewise.
808 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
809 * remote-m32r-sdi.c (m32r_fetch_registers)
810 (m32r_store_registers): Likewise.
811 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
813 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
815 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
816 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
817 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
818 (ppc64_sysv_abi_return_value): Likewise.
819 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
820 * m2-lang.c (build_m2_types): Likewise.
821 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
822 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
823 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
824 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
826 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
827 get at the current architecture by frame_info.
828 * gcore.c (derive_stack_segment): Likewise.
830 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
831 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
832 gdbarch to GETREGS_SUPPLIES call.
836 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
837 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
838 ELF-private symbol data when processing synthetic symbols. Use
839 udata.p to get at size of ppc64 synthetic 'dot' symbols.
840 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
844 * buildsym.h (subfiles): Move ...
845 * buildsym.c (subfiles): ... to here and make static.
847 * symmisc.c (maintenance_info_symtabs): Print linetable info.
851 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
855 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
856 expression and use get_frame_arch to replace current_gdbarch by frame's
858 * arm-tdep.h (LOWEST_PC): Remove
862 Apply const qualifier to some users of bp_location.
863 * breakpoint.h (struct bpstats): Make
864 the breakpoint_at field point at const bp_location.
865 * breakpoint.c (bpstat_alloc): Accept const
867 (breakpoint_here_p, breakpoint_inserted_here_p)
868 (software_breakpoint_inserted_here_p)
869 (breakpoint_thread_match, bpstat_stop_status)
870 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
871 const bp_location for iteration.
872 (print_it_typical, print_bp_stop_message): Use
873 const bp_location variable.
877 Make mark_breakpoints_out static.
878 * breakpoint.h (mark_breakpoints_out): Remove
880 * breakpoint.c (mark_breakpoints_out): Make static.
884 Prevent clear_command from directly modifying breakpoint list.
885 * Makefile.in (breakpoint_h): Update dependency.
886 * breakpoint.c (clear_command): Do not remove
887 breakpoints from breakpoint_chain. Collect breakpoints
888 to delete in a vector.
889 * breakpoint.h (breakpoint_p): New typedef for pointer to
890 breakpoint. Register vector of breakpoint_p.
894 Remove 'run_cleanup'.
895 * defs.h (do_run_cleanups, make_run_cleanup): Remove
897 * infcmd.c (run_command_1): Call clear_solib instead
899 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
901 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
902 (update_solib_lib): Don't setup run cleanup.
903 (no_shared_libraries): Call clear_solib, not do_clear_solib.
904 * utils.c (run_cleanup_chain, make_run_cleanup)
905 (do_run_cleanups): Remove.
909 Remove CLEAR_SOLIB use.
910 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
911 * infcmd.c (attach_command): Likewise.
915 * buildsym.c (start_subfile,start_symtab): Doc fixes.
919 * tui/tui-data.c (tui_prev_win): Guard against NULL.
923 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
925 (verify_gdbarch, gdbarch_dump): Likewise.
926 (do_read): Update comment.
927 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
928 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
929 * gdbarch.{c,h}: Regenerate.
933 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
934 (ARGS_FIRST_REG): Remove.
935 (areg_numer): New function.
936 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
937 (xtensa_extract_return_value, xtensa_store_return_value)
938 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
939 (AREG_NUMBER): Remove.
940 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
941 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
942 (xtensa_push_dummy_call): Update use of ARG_NOF.
943 (extract_call_winsize): Add gdbarch as parameter. Replace
944 current_gdbarch by gdbarch.
945 (xtensa_extract_return_value, xtensa_store_return_value): Update call
946 of extract_call_winsize.
950 * NEWS: Add entry for new set/show print frame-args command.
954 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
955 register number to map. Adjust warning check and error/warning
956 return value code to match expectations of this function's callers.
960 * stack.c (print_this_frame_argument_p): Handle arguments passed
961 by reference properly.
965 * stack.c (print_frame_arguments_choices): New static global.
966 (print_frame_arguments): Likewise.
967 (print_this_frame_argument_p): New function.
968 (print_frame_args): Print the argument value only when appropriate.
969 (_initialize_task): Add new "set/show print frame-arguments" command.
973 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
974 saved_dabr_value assignment to the correct position.
978 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
979 * arch-utils.h (generic_convert_register_p): Likewise.
983 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
984 * ia64-tdep.c (ia64_convert_register_p): Likewise.
985 * i387-tdep.c (i387_convert_register_p): Likewise.
986 * i387-tdep.h (i387_convert_register_p): Likewise.
987 * alpha-tdep.c (alpha_convert_register_p): Likewise.
988 * gdbarch.{c,h}: Regenerate.
990 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
991 Replace current_gdbarch by gdbarch.
992 * mips-tdep.c (mips_convert_register_p): Likewise.
993 * m68k-tdep.c (m68k_convert_register_p): Likewise.
994 * i386-tdep.c (i386_convert_register_p): Likewise.
998 * gdb_string.h: Include <strings.h>.
1002 * breakpoint.c (break_command_1): Remove
1003 pending_bp parameter.
1004 (create_breakpoint): Likewise.
1005 (create_breakpoints): Likewise. Adjust call to
1007 (break_command_1): Likewise. Adjust call to
1009 (do_captured_breakpoint): Adjust call to
1011 (break_command, tbreak_command, hbreak_command)
1012 (stopin_command, stopat_command): Adjust call
1018 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1019 struct values smaller than one doubleword; left-align those
1020 larger. Pass structs containing a single floating-point value in
1026 * gdbtypes.c (floatformats_ibm_long_double): New.
1027 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1028 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1030 * mips-tdep.c (n32n64_floatformat_always_valid,
1031 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1033 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1034 floatformats_n32n64_long.
1035 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1037 * doublest.c (convert_floatformat_to_doublest,
1038 convert_doublest_to_floatformat): Handle split floating-point
1040 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1042 (ppc64_sysv_abi_push_dummy_call): Likewise.
1043 (do_ppc_sysv_return_value): Handle IBM long double return.
1047 Fix crash when a variable object being deleted
1048 has any of its children deleted previously.
1050 * varobj.c (delete_variable_1): Don't recurse
1051 into deleted children.
1055 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1056 * gdbarch.{c,h}: Regenerate.
1057 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1058 Replace current_gdbarch by gdbarch.
1059 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1060 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1061 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1065 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1066 get_regcache_arch to get at the current architecture by regcache.
1067 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1068 to get at the current architecture by frame_info.
1069 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1070 at the current architecture by regcache.
1071 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1072 the current architecture by frame_info.
1073 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1074 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1075 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1076 caller of special_register_p.
1080 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1081 current architecture by frame_info.
1085 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1089 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1090 get at the current architecture by regcache.
1091 (SUBOFF): Add gdbarch to macro definition.
1095 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1096 * gdbarch.{c,h}: Regenerate.
1098 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1099 Replace current_gdbarch by gdbarch.
1100 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1101 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1102 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1103 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1104 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1105 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1106 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1108 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1110 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1111 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1112 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1113 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1114 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1115 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1116 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1117 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1118 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1119 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1120 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1121 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1122 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1123 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1124 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1125 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1126 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1127 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1128 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1129 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1131 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1132 Replace current_gdbarch by gdbarch.
1133 (rs6000_software_single_step): Use get_frame_arch to get at the
1134 current architecture by frame_info. Add gdbarch to
1135 rs6000_breakpoint_from_pc call.
1139 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1140 macro CURRENT_VARIANT by its expression.
1141 (CURRENT_VARIANT): Remove.
1142 (frv_check_watch_resources): Add gdbarch parameter.
1146 * MAINTAINERS (Write After Approval): Add self.
1150 * features/rs6000/power-core.xml: Use uint32 as register type.
1151 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1152 * features/rs6000/powerpc-32.c: Regenerate.
1153 * features/rs6000/powerpc-403.c: Regenerate.
1154 * features/rs6000/powerpc-403gc.c: Regenerate.
1155 * features/rs6000/powerpc-505.c: Regenerate.
1156 * features/rs6000/powerpc-602.c: Regenerate.
1157 * features/rs6000/powerpc-603.c: Regenerate.
1158 * features/rs6000/powerpc-604.c: Regenerate.
1159 * features/rs6000/powerpc-64.c: Regenerate.
1160 * features/rs6000/powerpc-7400.c: Regenerate.
1161 * features/rs6000/powerpc-750.c: Regenerate.
1162 * features/rs6000/powerpc-860.c: Regenerate.
1163 * features/rs6000/powerpc-e500.c: Regenerate.
1167 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1171 * breakpoint.h (create_solib_load_event_breakpoint)
1172 (create_solib_unload_event_breakpoint)
1173 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1174 (create_exec_event_catchpoint): Delete declaration.
1175 * breakpoint.c (create_solib_load_event_breakpoint)
1176 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1177 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1178 (create_exec_event_catchpoint): Make static.
1182 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1183 * breakpoint.c (set_breakpoint_sal): Delete.
1187 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1188 (make_blockvector): Likewise. Remove FIXME comment.
1192 * printcmd.c: (printf_command): Add support for new DFP
1193 modifiers %H, %D and %DD.
1194 * configure.ac: Add check for DECFLOAT printf support.
1195 * configure: Regenerated.
1199 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1200 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1201 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1202 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1203 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1204 (has_vtable, primary_base_class, virtual_base_list_length,
1205 virtual_base_list_length_skip_primaries, virtual_base_index,
1206 virtual_base_index_skip_primaries, class_index_in_primary_list,
1207 count_virtual_fns): Remove prototypes.
1208 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1209 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1210 virtual_base_list_length_skip_primaries, virtual_base_index,
1211 virtual_base_index_skip_primaries, class_index_in_primary_list,
1212 count_virtual_fns): Remove.
1214 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1215 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1216 (cp_print_value_fields): Remove support for HP aCC vtables.
1217 (cp_print_value): Likewise.
1218 * c-typeprint.c (c_type_print_base): Likewise.
1220 * value.h (find_rt_vbase_offset): Remove prototype.
1221 * valops.c (find_rt_vbase_offset): Remove.
1222 (search_struct_method): Remove support for HP aCC vtables.
1223 (find_method_list): Likewise.
1227 * language.h (struct language_defn): Remove la_builtin_type_vector
1228 and string_char_type members.
1229 * language.c (language_string_char_type): No longer consult
1230 la->string_char_type.
1231 (language_lookup_primitive_type_by_name): No longer consult
1232 current_language->la_builtin_type_vector.
1234 * language.c (unknown_language_defn, auto_language_defn,
1235 local_language_defn): Adapt initializer.
1236 * ada-lang.c (ada_language_defn): Likewise.
1237 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1238 minimal_language_defn): Likewise.
1239 * f-lang.c (f_language_defn): Likewise.
1240 * jv-lang.c (java_language_defn): Likewise.
1241 * m2-lang.c (m2_language_defn): Likewise.
1242 * objc-lang.c (objc_language_defn): Likewise.
1243 * p-lang.c (pascal_language_defn): Likewise.
1244 * scm-lang.c (scm_language_defn): Likewise.
1248 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1249 current_gdbarch by gdbarch.
1250 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1251 current architecture by frame_info.
1252 * frame.h (frame_id_inner): Add gdbarch parameter.
1253 * stack.c (return_command): Use get_frame_arch to get at the current
1254 architecture by frame_info. Update call of frame_id_inner.
1255 * infrun.c (handle_inferior_event): Likewise.
1256 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1257 current architecture by regcache. Update call of frame_id_inner.
1261 * gdbarch.sh (register_name): Add gdbarch parameter.
1262 * gdbarch.{c,h}: Regenerate.
1264 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1265 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1266 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1268 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1269 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1270 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1271 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1272 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1273 (mt_registers_info): Replace current_gdbarch by gdbarch.
1274 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1275 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1276 current_gdbarch by gdbarch.
1277 (mips_register_name): Add gdbarch to tdesc_register_name call.
1278 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1279 current_gdbarch by gdbarch.
1280 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1281 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1282 current_gdbarch by gdbarch.
1283 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1284 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1285 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1286 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1287 architecture by frame_info.
1288 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1289 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1290 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1292 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1293 (h8300sx_register_name): Add gdbarch parameter.
1294 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1295 gdbarch parameter. Replace current_gdbarch by gdbarch.
1296 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1297 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1298 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1299 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1301 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1302 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1303 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1304 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1305 of alpha_register_name.
1306 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1307 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1308 current_gdbarch by gdbarch.
1309 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1310 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1311 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1313 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1314 (m68hc11_register_reggroup_p): Add gdbarch to call of
1315 m68hc11_register_name.
1316 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1317 (am33_2_register_name): Add gdbarch parameter.
1318 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1319 architecture by frame_info.
1320 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1321 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1322 current_gdbarch by gdbarch.
1323 * score-tdep.c (score_register_name): Add gdbarch parameter.
1324 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1326 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1327 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1328 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1329 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1330 and update caller. Replace current_gdbarch by gdbarch.
1331 (sh64_extract_return_value, sh64_store_return_value): Use
1332 get_regcache_arch to get at the current architecture by regcache.
1333 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1334 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1335 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1336 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1337 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1339 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1340 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1341 current_gdbarch by gdbarch.
1342 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1343 get_regcache_arch to get at the current architecture by regcache.
1344 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1345 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1346 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1348 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1349 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1350 current_gdbarch by gdbarch.
1351 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1352 (xtensa_frame_prev_register): Add gdbarch parameter to
1353 xtensa_register_name call.
1357 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1358 find_solib_trampoline_target if PC is not in .plt section.
1362 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1363 minimal symbol from an undefined dynamic symbol, use proper section.
1367 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1368 to get at the current architecture by regcache.
1372 * libunwind-frame.c (libunwind_frame_sniffer)
1373 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1374 (libunwind_frame_cache): Use get_frame_arch to get at the current
1375 architecture by frame_info.
1376 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1380 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1381 at the current architecture by frame_info.
1385 * inf-child.c (inf_child_fetch_inferior_registers): Use
1386 get_regcache_arch to get at the current architecture by regcache.
1390 * inf-ptrace.c (inf_ptrace_fetch_registers)
1391 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1392 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1393 current architecture by regcache.
1397 * hpux-thread.c (hpux_thread_fetch_registers)
1398 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1399 current architecture by regcache.
1403 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1404 current architecture by frame_info.
1408 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1409 (go32_store_registers): Use get_regcache_arch to get at the current
1410 architecture by regcache.
1414 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1418 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1419 to get at the current architecture by frame_info.
1423 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1427 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1428 the current architecture by regcache.
1432 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1433 current architecture by regcache.
1437 * bsd-uthread.c (bsd_uthread_fetch_registers)
1438 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1439 current architecture by regcache.
1443 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1444 get_frame_arch to get at the current architecture by frame_info.
1448 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1452 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1453 (store_regs): Use get_regcache_arch to get at the current architecture
1458 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1459 to get at the current architecture by regcache.
1463 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1464 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1465 the current architecture by regcache.
1469 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1474 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1475 soft float and vector ABIs. Support the generic vector ABI for
1477 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1479 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1481 * ppc-tdep.h (enum powerpc_vector_abi): New.
1482 (struct gdbarch_tdep): Add soft_float and vector_abi.
1483 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1484 (powerpc_soft_float_global, powerpc_vector_strings)
1485 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1486 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1487 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1488 (powerpc_set_vector_abi): New.
1489 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1491 * Makefile.in (elf_ppc_h): New.
1492 (rs6000-tdep.o): Update.
1496 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1497 swapped offsets and VRSAVE offset.
1498 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1499 (ppc32_linux_vrregset): Added.
1500 (ppc_linux_regset_from_core_section): Added support for
1501 .reg-ppc-vmx section.
1502 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1503 (ppc_supply_vrregset): Declare.
1504 (ppc_collect_vrregset): Declare.
1505 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1506 (ppc_supply_vrregset): Added.
1507 (ppc_collect_vrregset): Added.
1508 * corelow.c (get_core_registers): Added support for
1509 .reg-ppc-vmx section.
1517 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1520 * tracepoint.c (tracepoint_operation): Report the deletion event
1521 after we have unlinked the tracepoint from the list, and use the
1522 proper tracepoint number.
1524 * ax-gdb.c (expr_to_agent): Delete unused function.
1525 (expr_to_address_and_size): Delete #if 0'd function.
1526 * ax-gdb.h (expr_to_agent): Delete declaration.
1528 * ax-gdb.c (gen_cast): Remove redundant assignment to
1529 value->type. Doc fix.
1531 * ax-general.c (gen_traced_pop, gen_int_literal)
1532 (gen_usual_arithmetic): Check for typedefs.
1536 * parse.c (prefixify_expression): Minor reformatting.
1540 * version.in: Use dot instead of dash.
1544 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1548 * memory-map.c (parse_memory_map): Don't use an empty struct
1553 * signals/signals.c (signals): Update pointer to enum
1554 target_signal declaration.
1560 * dwarf2read.c (read_partial_die): check the value
1561 of DW_AT_calling_convention in Fortran programs.
1566 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1567 floating point in YYSTYPE union.
1568 (DECFLOAT) Add token and expression element handling code.
1569 (parse_number): Parse DFP constants, which end with suffix 'df',
1570 'dd' or 'dl'. Return DECFLOAT.
1571 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1573 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1575 (union exp_element): Add decfloatconst to represent DFP
1576 elements, which is 16 bytes by default.
1577 * parse.c (write_exp_elt_decfloatcst): New function to write a
1578 decimal float const into the expression.
1579 (operator_length_standard): Set operator length for OP_DECFLOAT
1581 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1582 * valarith.c (value_neg): Add code to handle the negation
1583 operation of DFP values.
1584 * value.c (value_from_decfloat): New function to get the value
1585 from a decimal floating point.
1586 * value.h (value_from_decfloat): Prototype.
1591 * c-lang.c (c_create_fundamental_type): Create fundamental
1593 * c-typeprint.c (c_type_print_varspec_prefix): Add
1594 TYPE_CODE_DECFLOAT to no prefix needed case.
1595 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1597 * c-valprint.c (c_val_print): Call print_decimal_floating to
1599 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1600 attribute code and return TYPE_CODE_DECFLOAT.
1601 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1602 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1603 builtin_decdouble and builtin_declong.
1604 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1606 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1607 types, for decimal floating point.
1608 (FT_NUM_MEMBERS): Increment, new types added.
1609 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1610 and builtin_declong.
1611 * valprint.c (print_decimal_floating): New function to print DFP
1613 * value.h (print_decimal_floating): Prototype.
1618 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1619 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1620 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1621 (INSTALLED_LIBS): Add -ldecnumber in.
1622 (CLIBS): Add LIBDECNUMBER in.
1623 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1625 (dfp_h): New macros for decimal floating point.
1626 (dfp.o): New target.
1627 (COMMON_OBS): Add dfp.o in.
1628 (c-exp.o): Add dfp_h as dependency.
1629 (valprint.o): Add dfp_h as dependency.
1630 (value.o): Add dfp_h as dependency.
1631 * dfp.h: New header file for decimal floating point support in
1633 * dfp.c: New source file for decimal floating point support in
1634 GDB. Implement decimal_from_string and decimal_to_string based
1635 on libdecnumber API.
1636 * configure.ac: Add AC_C_BIGENDIAN test.
1637 * config.in, configure: Regenerate.
1643 * infcmd.c (registers_info): Check for a user register before
1644 calling target's gdbarch_print_registers_info(). If found to be
1645 so, extract the implicit value of user register and call
1646 print_scalar_formatted().
1647 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1651 * NEWS: Document status of hppa64-hpux support.
1655 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1656 set_solib_ops to install SVR4 operations.
1657 (_initialize_svr4_solib): Do not set current_target_so_ops.
1659 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1660 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1664 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1665 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1666 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1667 * solib-legacy.c: Remove file.
1669 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1670 * config/arm/linux.mt (TDEPFILES): Likewise.
1671 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1672 * config/ia64/linux.mt (TDEPFILES): Likewise.
1673 * config/m32r/linux.mt (TDEPFILES): Likewise.
1674 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1675 * config/s390/s390.mt (TDEPFILES): Likewise.
1677 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1678 set_solib_svr4_fetch_link_map_offsets.
1679 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1680 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1682 * i386gnu-tdep.c: Include "solib-svr4.h".
1683 * Makefile.in: Update dependencies.
1687 * i386-nto-tdep.c: Include "solib.h".
1688 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1689 current_target_so_ops members.
1690 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1691 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1692 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1693 * Makefile.in: Update dependencies.
1697 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1698 (arm_wince_init_abi): Call set_solib_ops.
1699 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1700 (i386_cygwin_init_abi): Call set_solib_ops.
1701 * solib-target.c: Include "solib-target.h".
1702 (solib_target_so_ops): Make global.
1703 (_initialize_solib_target): Do not set current_target_so_ops.
1704 * solib-target.h: New file.
1705 * Makefile.in: Update dependencies.
1709 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1710 (mips_irix_init_abi): Call set_solib_ops.
1711 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1712 (irix_so_ops): Make global.
1713 (_initialize_irix_solib): Do not set current_target_so_ops.
1714 * solib-irix.h: New file.
1715 * Makefile.in: Update dependencies.
1719 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1720 * config/pa/hppa64.mt: Delete file.
1721 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1722 (TDEPFILES): Move somread.o to ...
1723 * config/pa/hpux.mh (NATDEPFILES): ... here.
1725 * configure.ac: Add check for elf_hp.h header.
1726 Search libdl and libxpdl for dlgetmodinfo.
1727 * config.in, configure: Regenerate.
1728 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1729 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1730 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1731 set_solib_ops instead of modifying current_target_so_ops.
1732 * solib-pa64.h (pa64_solib_select): Update prototype.
1733 * solib-som.c: Remove include of "som.h". Include "solib.h".
1734 (som_solib_select): Take gdbarch instead of tdep argument. Call
1735 set_solib_ops instead of modifying current_target_so_ops.
1736 * solib-som.h (som_solib_select): Update prototype.
1737 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1738 of tdep to som_solib_select call.
1739 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1740 pa64_solib_select call.
1741 * Makefile.in: Update dependencies.
1745 * frv-tdep.c: Include "solib.h".
1746 (frv_gdbarch_init): Call set_solib_ops.
1747 * frv-tdep.h (struct target_so_ops): Add forward reference.
1748 (frv_so_ops): Add extern declaration.
1749 * solib-frv.c (frv_so_ops): Make global.
1750 (_initialize_frv_solib): Do not set current_target_so_ops.
1751 * Makefile.in: Update dependencies.
1755 * solib.c (solib_global_lookup): Use solib_ops instead of global
1756 current_target_so_ops.
1760 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1761 * config/frv-tm-frv.h: Delete file.
1765 * NEWS: Mention gdbserver support for non-libthread_db operation.
1769 * amd64-tdep.c (amd64_convert_register_p): Delete.
1770 (amd64_init_abi): Use i387_convert_register_p.
1771 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1773 (alpha_register_to_value, alpha_value_to_register): Do not handle
1775 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1776 * i387-tdep.c (i387_convert_register_p): New.
1777 (i387_register_to_value, i387_value_to_register): Update comments.
1778 * i387-tdep.h (i387_convert_register_p): Declare.
1779 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1780 builtin_type_ia64_ext.
1781 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1782 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1783 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1784 builtin_type_m68881_ext.
1785 (m68k_register_to_value, m68k_value_to_register): Update comments.
1789 * target-memory.c (claim_memory): Propagate baton for split memory
1795 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1800 * symtab.c (find_line_symtab): scan through psymtabs
1801 when exact_match is zero.
1805 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1806 (deal_with_atomic_sequence): New.
1807 (mips_software_single_step): Use it.
1812 * configure.ac: Modify $LIBINTL before the BFD check.
1813 * configure: Regenerated.
1817 * buildsym.c (free_pending_blocks): Remove commented-out code.
1818 (make_blockvector): Likewise. Re-use free_pending_blocks.
1819 (end_symtab): Remove commented-out code.
1823 * top.c (command_loop): Fix output for shrinkage.
1827 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1828 (exp): Remove and document function-like casts.
1832 * cp-support.c: Include "safe-ctype.h".
1833 (cp_already_canonical): New function.
1834 (cp_canonicalize_string): Use it. Return NULL for already canonical
1836 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1837 (cp_func_name, remove_params): Likewise.
1838 (cp_find_first_component_aux): Use ISSPACE.
1839 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1841 * cp-name-parser.y (ALLOC_CHUNK): Define.
1842 (struct demangle_info): Add PREV and NEXT. Increase the size of
1844 (d_grab): Convert to a function.
1845 (allocate_info): Rewrite.
1846 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1847 strlen. Update call to allocate_info. Do not free it on failure.
1848 (main): Update calls to cp_demangled_name_to_comp.
1849 * Makefile.in (cp-support.o): Update.
1853 * std-regs.c (value_of_builtin_frame_fp_reg)
1854 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1855 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1856 current architecture by frame_info.
1860 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1865 * infcmd.c (default_print_registers_info, print_return_value)
1866 (print_vector_info, print_float_info): Replace current_gdbarch by
1868 (registers_info): Use get_frame_arch to get at the current
1869 architecture by frame_info.
1873 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1874 get_regcache_arch to get at the current architecture by regcache.
1878 * target.c (debug_print_register): Use get_regcache_arch to get at the
1879 current architecture by regcache.
1883 * dwarf2read.c (read_file_scope): Add a comment.
1884 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1885 (read_enumeration_type, process_enumeration_scope, read_array_type)
1886 (read_typedef, read_base_type, read_subrange_type)
1887 (read_unspecified_type): Use dwarf2_name.
1891 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1892 * dwarf2read.c (dwarf2_free_objfile): New.
1893 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1894 * symfile.h (dwarf2_free_objfile): Declare.
1898 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1902 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1903 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1904 default dwarf2_frame_set_init_reg function.
1908 * NEWS: Mention native MinGW configuration.
1912 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1913 of "macro" column throughout the file. Remove (empty) "macro" entry
1914 of all gdbarch functions.
1918 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1919 * gdbarch.c, gdbarch.h: Regenerate.
1920 * dbxread.c (find_stab_function_addr): Define unconditionally.
1921 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1922 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1923 (end_psymtab): Likewise.
1924 (process_one_symbol): Likewise.
1925 * mdebugread.c (parse_partial_symbols): Likewise.
1927 * symtab.h (struct minimal_symbol): Always define "filename" member.
1928 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1929 * minsyms.c (lookup_minimal_symbol): Likewise.
1930 * symmisc.c (dump_msymbols): Likewise.
1932 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1933 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1934 * config/i386/tm-i386sol2.h: Remove file.
1935 * config/i386/tm-linux.h: Remove file.
1936 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1937 set_gdbarch_sofun_address_maybe_missing.
1938 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1940 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1941 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1942 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1943 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1944 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1945 * config/powerpc/tm-ppc-eabi.h: Remove file.
1946 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1947 set_gdbarch_sofun_address_maybe_missing.
1949 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1950 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1951 * config/sparc/tm-sol2.h: Remove file.
1952 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1953 set_gdbarch_sofun_address_maybe_missing.
1954 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1958 * gdbarch.sh (static_transform_name): New gdbarch callback.
1959 * gdbarch.c, gdbarch.h: Regenerate.
1960 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1961 instead of STATIC_TRANSFORM_NAME.
1962 * mdebugread.c (parse_partial_symbols): Likewise.
1963 * stabsread.c (define_symbol): Likewise.
1964 * xcoffread.c (scan_xcoff_symtab): Likewise.
1966 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1967 (IS_STATIC_TRANSFORM_NAME): Remove.
1968 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1969 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1970 (i386_sol2_init_abi): Install it.
1972 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1973 (IS_STATIC_TRANSFORM_NAME): Remove.
1974 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1975 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1976 (sparc32_sol2_init_abi): Install it.
1977 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1978 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1982 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1983 (mips_n32n64_return_value, mips_o32_return_value)
1984 (mips_o64_return_value): Update calls to mips_xfer_register.
1988 * frame.c (frame_unwind_unsigned_register): Delete.
1989 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1990 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1992 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1993 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1994 mt-tdep.c: Replace frame_unwind_unsigned_register with
1995 frame_unwind_register_unsigned.
1999 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2000 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2001 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2003 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2004 if not building on Cygwin.
2005 (win32_make_so, handle_output_debug_string, handle_exception)
2006 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2007 (win32_attach): Only fallback to Cygwin pids if building on
2009 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2011 (win32_create_inferior): Disable starting the inferior through a
2012 shell, environment var processing and tty handling if not building
2014 (cygwin_pid_to_str): Rename to ...
2015 (win32_pid_to_str): ... this.
2016 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2017 and "cygwin-exceptions" commands if not building on Cygwin.
2021 * doc/gdb.texinfo: Add TSIZE definition, removed
2022 statement about unbounded arrays being unimplemented.
2023 * m2-valprint.c (m2_print_array_contents): New function.
2024 (m2_print_unbounded_array): New function.
2025 (m2_print_array_contents): New function.
2026 * m2-typeprint.c (m2_unbounded_array): New function.
2027 (m2_is_unbounded_array): New function.
2028 (m2_print_type): Test for unbounded array when walking
2030 * m2-lang.h: Added extern m2_is_unbounded_array.
2031 * m2-lang.c (evaluate_subexp_modula2): New function.
2032 (exp_descriptor_modula2): New structure.
2033 (m2_language_defn): Use exp_descriptor_modula2.
2034 * m2-exp.y: Added TSIZE and binary subscript.
2038 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2043 * m32r-tdep.c (decode_prologue): Sign extend offset for
2045 (m32r_frame_unwind_cache): Likewise.
2049 * rs6000-tdep.c (skip_prologue): Restore comment with
2050 function description to its proper place.
2054 * NEWS: Mention gdbserver PowerPC improvements.
2058 * features/Makefile (WHICH): Add PowerPC register definitions.
2059 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2060 (rs6000/powerpc-64-expedite): New macros.
2061 ($(outdir)/%.dat): Handle subdirectories.
2062 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2063 regformats/rs6000/powerpc-e500.dat: New generated files.
2067 * ppc-linux-nat.c (ppc_linux_read_description): New.
2068 (_initialize_ppc_linux_nat): Set to_read_description.
2069 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2073 * NEWS: Document target described register support for PowerPC.
2074 * ppc-tdep.h: Remove ppc_spr constants.
2075 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2076 ppc_builtin_type_vec128 members.
2077 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2078 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2079 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2080 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2081 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2082 * rs6000-tdep.c: Include preparsed descriptions.
2083 (init_sim_regno_table): Do not iterate over pseudo registers.
2084 Look up segment registers by name. Use sim_spr_register_name
2086 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2087 (rs6000_builtin_type_vec128): Delete.
2088 (rs6000_register_name): Only handle SPE pseudo registers and upper
2089 halves. Call tdesc_register_name for everything else.
2090 (rs6000_register_type): Delete. Replace with...
2091 (rs6000_pseudo_register_type): ...this new function. Only handle
2092 SPE pseudo registers.
2093 (rs6000_register_reggroup_p): Delete. Replace with...
2094 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2095 handle SPE pseudo registers.
2096 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2098 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2100 (e500_register_reggroup_p): Delete.
2101 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2102 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2103 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2104 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2105 (registers_powerpc, registers_403, registers_403GC, registers_505)
2106 (registers_860, registers_601, registers_602, registers_603)
2107 (registers_604, registers_750, registers_7400, registers_e500): Delete
2109 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2111 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2112 (variants): Delete outdated comment. Use standard target descriptions
2113 instead of "struct reg" arrays.
2114 (init_variants): Delete.
2115 (rs6000_gdbarch_init): Do not guess word size from the BFD
2116 architecture if we have a target description. Select a variant
2117 before creating a new architecture. Use the variant's target
2118 description if the target did not define a register layout.
2119 Validate target-supplied registers. Reject mismatches. Use
2120 fixed register numbers and new constants instead of magic
2121 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2122 (_initialize_rs6000_tdep): Initialize the preparsed target
2124 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2126 (tdesc_find_register_early): New function.
2127 (tdesc_numbered_register): Use it.
2128 (tdesc_register_size): New function.
2129 (tdesc_use_registers): Take a target_desc argument. Do not use
2130 gdbarch_target_desc.
2131 * target-descriptions.h (tdesc_use_registers): Update prototype
2133 (tdesc_register_size): New prototype.
2134 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2135 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2136 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2137 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2138 (rs6000-tdep.o): Update.
2139 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2140 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2141 * mips-tdep.c (mips_gdbarch_init): Likewise.
2145 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2146 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2147 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2148 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2149 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2150 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2151 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2156 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2157 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2158 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2159 feature descriptions for standard PowerPC register sets.
2161 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2162 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2163 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2164 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2165 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2166 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2167 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2168 target descriptions for PowerPC processors.
2172 * target-descriptions.c (tdesc_predefined_types): New.
2173 (tdesc_named_type): Use it.
2174 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2175 (_intialize_target_descriptions): Register "maint print c-tdesc".
2176 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2177 (cfiles, %.c): New rules.
2178 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2179 features/mips64-linux.c: New generated files.
2181 * arm-linux-nat.c: Include preparsed description instead of
2183 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2184 (arm_linux_read_description): New function.
2185 (_initialize_arm_linux_nat): Set to_read_description instead of
2186 to_xfer_partial. Initialize preparsed description.
2187 * config/arm/linux.mh (TDEP_XML): Delete.
2188 * mips-linux-nat.c: Include preparsed descriptions instead of
2190 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2191 (mips_linux_read_description): New function.
2192 (_initialize_mips_linux_nat): Set to_read_description instead of
2193 to_xfer_partial. Initialize preparsed description.
2194 * config/mips/linux.mh (TDEP_XML): Delete.
2195 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2196 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2197 (mips64_linux_c): New macros.
2198 (arm-linux-nat.o, mips-linux-nat.o): Update.
2202 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2203 Replace xasprintf by xstrprintf.
2204 symfile-mem.c (add_vsyscall_page): Ditto.
2208 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2209 replacing use of global current_gdbarch.
2210 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2211 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2213 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2214 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2215 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2216 (ia64_sigtramp_frame_cache): Update caller.
2220 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2221 (extract_return_value, store_return_value): Remove.
2222 (return_value): Remove default implementation.
2223 * gdbarch.c, gdbarch.h: Regenerate.
2225 * stack.c (return_command): Remove compatibility hack.
2226 * arch-utils.c (legacy_return_value): Remove.
2227 * arch-utils.h (legacy_return_value): Likewise.
2229 * arch-utils.c (always_use_struct_convention): Remove.
2230 * arch-utils.h (always_use_struct_convention): Likewise.
2231 * value.c (generic_use_struct_convention): Remove.
2232 * defs.h (generic_use_struct_convention): Likewise.
2236 * avr-tdep.c (avr_return_value): New function.
2237 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2238 set_gdbarch_extract_return_value.
2240 * fvr-tdep.c (frv_return_value): New function.
2241 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2242 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2243 and set_gdbarch_deprecated_use_struct_convention.
2245 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2246 Add check for structure, union, or array types.
2247 (ia64_extract_return_value): Make static.
2248 (ia64_store_return_value): Make static. Support multi-word values.
2249 (ia64_return_value): New function.
2250 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2251 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2252 and set_gdbarch_deprecated_use_struct_convention.
2256 * solib-target.c (solib_target_parse_libraries)
2257 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2261 * serial.h (struct serial_ops): Document read_prim to return zero
2263 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2264 read_prim returns zero, not SERIAL_TIMEOUT.
2268 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2269 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2270 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2271 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2273 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2274 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2275 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2276 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2277 * config/alpha/tm-alpha.h: Remove file.
2281 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2282 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2284 * config/pa/tm-hppa.h: Delete file.
2285 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2286 * config/pa/hppahpux.mt: Likewise.
2287 * config/pa/hppa.mt: Likewise.
2288 * config/pa/linux.mt: Likewise.
2289 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2293 * config/arm/nm-nbsdaout.h: Remove file.
2294 * config/nm-nbsdaout.h: Likewise.
2295 * config/nm-nbsd.h: Likewise.
2299 * block.h (struct block): Remove "gcc_compile_flag" member.
2300 (BLOCK_GCC_COMPILED): Remove.
2301 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2302 * buildsym.c (finish_block): Do not set it.
2303 * symmisc.c (dump_symtab_1): Do not dump it.
2305 * value.h (using_struct_return): Remove "gcc_p" argument.
2306 * value.c (using_struct_return): Likewise.
2307 * eval.c (evaluate_subexp_standard): Adapt callers.
2308 * infcall.c (call_function_by_hand): Likewise.
2309 * stack.c (return_command): Likewise.
2310 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2312 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2313 * gdbarch.c, gdbarch.h: Regenerate.
2314 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2315 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2316 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2317 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2318 (push_dummy_code, call_function_by_hand): Adapt callers.
2322 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2323 (finish_command_continuation, finish_command): Adapt callers.
2327 * infcall.c (call_function_by_hand): Remove special handling
2328 for HP aCC compiled code.
2332 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2333 reference. Fix endianness bugs.
2334 (cris_reg_struct_has_address): Remove.
2335 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2336 and set_gdbarch_deprecated_use_struct_convention calls.
2338 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2339 * gdbarch.c, gdbarch.h: Regenerate.
2340 * infcall.c (call_function_by_hand): Remove handling of
2341 deprecated_reg_struct_has_addr.
2346 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2347 checking watchpoint resources.
2351 * memattr.c (inaccessible_by_default): Change the initial
2357 * coffread.c (read_one_sym): Check for read errors.
2361 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2362 instead of "Linux 2.6.19" in comment.
2363 (linux_xfer_partial): Use "GNU/Linux target" instead of
2364 "Linux target" in comment.
2365 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2366 (m68k_linux_get_sigtramp_info): Likewise.
2370 * MAINTAINERS (language support): List Joel and Paul as
2375 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2377 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2378 not set DEPRECATED_TM_FILE.
2379 * config/arm/tm-arm.h: Delete file.
2383 * MAINTAINERS (Write After Approval): Add self.
2387 * buildsym.c (record_line): Remove empty lines followed by
2388 end-of-sequence markers.
2392 * configure.tgt: Recognize fido-*-elf.
2400 * stack.c (print_frame_args, frame_info, return_command): Use
2401 get_regcache_arch or get_frame_arch to get at the current architecture
2402 by regcache or by frame, respectively.
2406 * rs6000-nat.c (fetch_register, store_register)
2407 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2408 get_regcache_arch to get at the current architecture by regcache.
2410 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2411 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2412 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2413 current_gdbarch by gdbarch.
2414 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2415 (rs6000_value_to_register): Use get_frame_arch to get at the current
2416 architecture by frame_info.
2420 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2421 get_regcache_arch to get at the current architecture by regcache.
2423 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2424 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2425 get_regcache_arch to get at the current architecture by regcache.
2427 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2428 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2429 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2430 current architecture by regcache.
2434 * remote-mips.c (mips_wait, mips_fetch_registers)
2435 (mips_store_registers): Use get_regcache_arch to get at the
2436 current architecture by regcache.
2438 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2439 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2440 get at the current architecture by regcache.
2441 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2442 architecture by frame_info.
2444 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2445 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2446 the current architecture by regcache.
2448 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2449 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2450 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2451 current architecture by frame_info.
2452 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2453 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2454 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2455 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2456 get at the current architecture by regcache.
2458 * mips-linux-nat.c (mips_linux_register_addr)
2459 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2460 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2461 (mips64_linux_regsets_fetch_registers)
2462 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2463 the current architecture by regcache.
2465 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2466 get at the current architecture by frame_info.
2470 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2471 current architecture by regcache.
2472 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2473 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2474 (mips_stub_frame_cache, mips_read_fp_register_single)
2475 (mips_read_fp_register_double, mips_print_fp_register)
2476 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2477 at the current architecture by frame_info.
2478 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2479 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2480 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2481 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2482 (mips_o32_push_dummy_call, mips_o32_return_value)
2483 (mips_o64_push_dummy_call, mips_o64_return_value)
2484 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2489 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2490 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2491 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2492 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2493 (xtensa_register_write_masked, xtensa_register_read_masked)
2494 (xtensa_supply_gregset, xtensa_store_return_value)
2495 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2496 current architecture by regcache.
2497 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2498 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2499 architecture by frame_info.
2503 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2504 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2505 out of loop. Do not set cache->frameoffset.
2506 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2507 frameoffset. Simplify framesize.
2508 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2510 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2514 * target.c (update_current_target): Call setup_target_debug.
2515 (push_target): Do not call it here.
2519 * MAINTAINERS: Update my email address.
2523 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2525 (xtensa_pseudo_register_read)
2526 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2527 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2528 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2529 (xtensa_pseudo_register_read)
2530 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2531 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2532 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2533 (xtensa_frame_prev_register): NUM_AREGS.
2534 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2535 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2536 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2537 (xtensa_supply_gregset, xtensa_frame_cache)
2538 (xtensa_frame_prev_register): WS_REGNUM.
2539 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2540 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2541 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2542 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2543 (xtensa_register_reggroup_p): REGMAP.
2544 (call0_track_op): LITBASE_REGNUM.
2545 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2546 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2547 (xtensa_frame_prev_register, AREG_NUMBER)
2548 (xtensa_register_type): AR_BASE.
2549 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2550 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2551 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2552 (xtensa_frame_cache, xtensa_frame_prev_register)
2553 (xtensa_extract_return_value, xtensa_store_return_value)
2554 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2555 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2556 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2557 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2558 (call0_frame_cache): A1_REGNUM.
2559 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2560 (xtensa_push_dummy_call): A4_REGNUM.
2561 (ARGS_FIRST_REG): A6_REGNUM.
2562 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2563 (xtensa_frame_prev_register): A15_REGNUM.
2564 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2565 them in the appropriate source file:
2566 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2567 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2568 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2569 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2570 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2571 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2572 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2573 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2574 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2575 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2576 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2580 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2581 the current architecture by frame_info.
2582 (h8300_frame_prev_register
2583 (h8300_print_register): Replace current_gdbarch by gdbarch.
2584 (h8300_print_registers_info, h8300_register_type)
2585 (h8300_register_type): Likewise.
2589 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2590 the current architecture by regcache.
2591 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2592 (i386_linux_fetch_inferior_registers)
2593 (i386_linux_store_inferior_registers): Likewise.
2594 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2595 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2596 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2597 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2598 (i386_extract_return_value, i386_store_return_value): Likewise.
2599 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2600 the current architecture by frame_info.
2601 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2602 (i386_register_to_value, i386_value_to_register): Likewise.
2606 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2607 the current architecture by regcache.
2608 (monitor_store_register, monitor_store_registers): Likewise.
2612 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2613 the current architecture by regcache.
2617 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2622 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2623 architecture by frame.
2624 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2625 (inside_main_func, frame_sp_unwind): Likewise.
2629 * solib-svr4.c (enable_break): Add the dynamic linker also if
2634 * MAINTAINERS (Write After Approval): Add self.
2638 * stabsread.c (read_huge_number): Initialize local variable to 0.
2642 * p-lang.h (pascal_main_name): Add declaration.
2643 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2644 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2645 (pascal_main_name): New function.
2646 * symtab.c: Include p-lang.h.
2647 (find_main_name): Add call to pascal_main_name.
2648 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2652 * stabsread.c (read_huge_number): Fix handling of octal
2653 representation when the bit width is known.
2654 (read_range_type): Record unsigned integral types with their size,
2655 when the type size is known.
2659 * MAINTAINERS (Write After Approval): Add self.
2663 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2664 Replace asprintf by xstrprintf.
2668 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2669 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2673 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2674 <sys/wait.h> include before last commit.
2678 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2682 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2683 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2684 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2685 (store_regs_user_thread, store_regs_kernel_thread): Use
2686 get_regcache_arch or get_frame_arch to get at the current architecture
2687 by regcache or by frame, respectively.
2691 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2692 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2693 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2694 (sh64_print_register, sh64_media_print_registers_info)
2695 (sh64_compact_print_registers_info, sh64_unwind_sp)
2696 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2697 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2698 (sh64_frame_prev_register): Use FRAME to recognize current
2703 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2704 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2705 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2706 current_gdbarch by gdbarch.
2707 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2708 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2709 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2710 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2711 recognize current architecture.
2715 * remote.c (init_remote_state, fetch_register_using_p)
2716 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2717 (store_register_using_P, store_registers_using_G)
2718 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2719 get at the current architecture by regcache or by frame, respectively.
2723 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2724 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2725 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2726 get_regcache_arch or get_frame_arch to get at the current architecture
2727 by regcache or by frame, respectively.
2728 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2729 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2730 (store_register, old_store_inferior_registers, supply_gregset)
2731 (supply_fpregset, fill_fpregset): Likewise.
2732 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2733 Replace current_gdbarch by gdbarch.
2737 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2738 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2739 get_frame_arch to get at the current architecture by regcache or by
2740 frame, respectively.
2744 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2745 Replace current_gdbarch by gdbarch.
2746 * ia64-tdep.c (ia64_frame_prev_register
2747 (ia64_sigtramp_frame_prev_register)
2748 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2749 get_frame_arch to get at the current architecture by regcache or by
2750 frame, respectively.
2751 * ia64-linux-nat.c (ia64_linux_fetch_register)
2752 (ia64_linux_fetch_registers, ia64_linux_store_register)
2753 (ia64_linux_store_registers): Likewise.
2757 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2758 current_gdbarch by gdbarch.
2759 * hppa-linux-nat.c (fetch_register, store_register)
2760 (hppa_linux_fetch_inferior_registers)
2761 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2762 get_frame_arch to get at the current architecture by regcache or by
2763 frame, respectively.
2764 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2765 (hppa_hpux_unwind_adjust_stub): Likewise.
2766 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2767 (hppa_hpux_fetch_inferior_registers)
2768 (hppa_hpux_store_inferior_registers): Likewise.
2772 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2773 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2774 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2775 or get_frame_arch to get at the current architecture by regcache or by
2776 frame, respectively.
2777 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2778 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2779 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2780 current_gdbarch by gdbarch.
2784 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2785 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2786 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2787 get at the current architecture by regcache or by·frame, respectively.
2788 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2793 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2794 Use get_regcache_arch or get_frame_arch to get at the current
2795 architecture by regcache or by frame, respectively.
2796 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2797 * amd64-nat.c (amd64_supply_native_gregset)
2798 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2802 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2804 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2805 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2806 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2807 get_frame_arch to get at the current architecture by regcache or by
2808 frame, respectively.
2809 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2813 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2814 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2815 current_gdbarch by gdbarch.
2816 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2820 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2821 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2822 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2823 get_frame_arch to get at the current architecture by regcache or by
2824 frame, respectively.
2828 * findvar.c (value_of_register, locate_var_value): Use
2829 get_regcache_arch or get_frame_arch to get at the current architecture
2830 by regcache or by frame, respectively.
2831 * findvar.c (default_value_from_register, value_from_register): Replace
2832 current_gdbarch by gdbarch.
2836 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2840 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2841 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2845 * remote.c (get_offsets): Only call free_symfile_segment_data if
2850 * objc-exp.y: ARI fix: remove 4 PARAMS.
2854 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2855 news. Mention XML support for M68K in GDB 6.7.
2859 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2861 (init_vector_type): Use builtin_type_int32.
2865 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2866 size to enable bi-arch generate-core-file support.
2870 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2874 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2876 * tui/tui-win.c (tui_initialize_win): New function for
2877 initializing tui's SIGWINCH signal handler.
2878 * tui/tui-win.h (tui_initialize_win): Declare.
2882 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2883 pointer to uintptr_t before casting to CORE_ADDR.
2887 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2891 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2892 * ser-mingw.c (enum select_thread_state): New type.
2893 (struct ser_console_state): Add have_started and thread_state.
2894 (select_thread_wait): New function.
2895 (thread_fn_type): New type.
2896 (create_select_thread): New function.
2897 (destroy_select_thread): Likewise.
2898 (start_select_thread): Likewise.
2899 (stop_select_thread): Likewise.
2900 (console_select_thread): Use new functions.
2901 (pipe_select_thread): Likewise.
2902 (file_select_thread): Likewise.
2903 (ser_console_wait_handle): Likewise.
2904 (ser_console_done_wait_handle): Likewise.
2905 (ser_console_close): Likewise.
2906 (free_pipe_state): Likewise.
2907 (pipe_wait_handle): Likewise.
2908 (pipe_done_wait_handle): Likewise.
2909 (struct net_windows_state): Derive from ser_console_state.
2910 (net_windows_select_thread): Use new functions.
2911 (net_windows_wait_handle): Likewise.
2912 (net_windows_done_wait_handle): Likewise.
2913 (net_windows_close): Likewise.
2917 * inflow.c (terminal_ours_1): Remove useless line.
2921 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2923 (mips_print_fp_register): Correct check for even FP registers.
2924 (mips_virtual_frame_pointer): New function.
2925 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2929 * value.h (lookup_only_internalvar): New prototype.
2930 (create_internalvar): Likewise.
2931 * value.c (lookup_only_internalvar): New function.
2932 (create_internalvar): Likewise.
2933 (lookup_internalvar): Use new lookup_only_internalvar and
2934 create_internalvar functions.
2935 * parse.c (write_dollar_variable): Look up $ symbols in internal
2936 table first rather than last.
2940 * linux-nat.c (linux_nat_new_thread): New variable.
2941 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2942 linux_nat_switch_fork.
2943 (lwp_list): Make public.
2944 (add_lwp): Call linux_nat_new_thread.
2945 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2947 (resume_callback): Clear lp->siginfo. Remove unused variable.
2948 (linux_nat_resume): Assert that the LWP list is already initialized.
2950 (save_siginfo): New.
2951 (stop_wait_callback, linux_nat_wait): Call it.
2952 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2953 * linux-nat.h (struct lwp_info): Add siginfo.
2954 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2957 * amd64-linux-nat.c (amd64_linux_dr): New.
2958 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2959 (amd64_linux_dr_set): Take a PTID argument.
2960 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2961 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2962 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2963 (amd64_linux_new_thread): New.
2964 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2965 * i386-linux-nat.c (i386_linux_dr): New.
2966 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2967 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2968 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2969 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2970 (i386_linux_new_thread): New.
2971 (i386_linux_resume): Remove unnecessary PID check.
2972 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2973 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2974 (fetch_debug_register, fetch_debug_register_pair): Delete.
2975 (debug_registers): New.
2976 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2977 ALL_LWPS and debug_registers.
2978 (ia64_linux_new_thread): New.
2979 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2980 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2981 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2982 (saved_dabr_value): New.
2983 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2985 (ppc_linux_new_thread): New.
2986 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2987 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2988 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2989 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2991 (s390_fix_watch_points): Take a PTID argument.
2992 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2993 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2998 * breakpoint.c (watchpoints_triggered): New.
2999 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3000 Check watchpoint_triggered instead. Combine handling for software
3001 and hardware watchpoints. Do not use target_stopped_data_address
3002 here. Always check a watchpoint if its scope breakpoint triggers.
3003 Do not stop for thread or overlay events. Improve check for
3004 triggered watchpoints without a value change.
3005 (watch_command_1): Insert the scope breakpoint first. Link the
3006 scope breakpoint to the watchpoint.
3007 * breakpoint.h (enum watchpoint_triggered): New.
3008 (struct breakpoint): Add watchpoint_triggered.
3009 (bpstat_stop_status): Update prototype.
3010 (watchpoints_triggered): Declare.
3011 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3012 (stepped_after_stopped_by_watchpoint): Delete.
3013 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3014 local. Handle infwait_step_watch_state. Update calls to
3015 bpstat_stop_status. Use watchpoints_triggered to check
3017 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3018 (remote_stopped_data_address): Do not check it.
3022 * configure.ac: Add $LIBINTL when testing libbfd.
3023 * configure: Regenerated.
3027 * NEW: Mention pending breakpoint changes and
3028 support for breakpoints at multiple locations.
3032 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3033 (arm_linux_init_abi): Use it.
3034 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3035 condition correctly.
3036 * arm-tdep.h (arm_get_next_pc): Declare.
3037 * Makefile.in (arm-linux-tdep.o): Update.
3041 * varobj.c (install_new_value): Don't
3042 call value_get_print_value when a value is
3043 lazy. Update the print_value member in a
3048 * breakpoint.c (create_breakpoint): Set
3049 condition on each location, not on the first
3050 location of breakpoint.
3054 * remote.c (getpkt_sane): Fix error message. No animals were
3055 harmed in the making of this debugger.
3059 * p-typeprint.c: Fix 11 ARI reported problems.
3060 (pascal_print_type): Fix 4 operator at end of line.
3061 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3062 using strncmp function.
3063 (pascal_type_print_base): Fix 2 operator at end of line.
3064 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3065 using strncmp function.
3070 * Fix PR pascal/2231
3071 dwarf2read.c (read_subroutine_type):
3072 All pascal functions are prototyped.
3076 * Fix PR pascal/2283
3077 p-valprint.c (pascal_val_print): correct current language check.
3078 Also print array of char as strings.
3084 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3088 * p-exp.y: Fix 12 ARI reported problems.
3089 (name_not_typename): Fix 2 operator at end of line issues.
3090 (yylex): Fix 3 operator at end of line issues.
3091 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3096 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3097 rules return composite types in registers as appropriate.
3101 * symfile.h (struct symfile_segment_data): Doc fixes.
3102 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3103 Assert that we were passed some loaded segment addresses,
3104 and that sections' segment numbers are valid.
3105 Simplify offset calculation.
3106 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3107 strategy, and set num_segments correctly. Delete redundant
3108 assignments to do_sections.
3112 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3116 * breakpoint.c (remove_sal): New.
3117 (expand_line_sal_maybe): New.
3118 (create_breakpoints): Call expand_line_sal_maybe.
3119 (clear_command): Add comment.
3120 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3121 * linespec.c (decode_indirect): Set explicit_pc to 1.
3122 (decode_all_digits): Set explicit_line to 1.
3123 (append_expanded_sal): New.
3124 (expand_line_sal): New.
3125 * linespec.h (expand_line_sal): Declare.
3126 * symtab.c (init_sal): Initialize explicit_pc
3128 * symtab.h (struct symtab_and_line): New fields
3129 explicit_pc and explicit_line.
3133 * infcall.c (call_function_by_hand): Handle language-specific
3134 pass and return by reference.
3136 * cp-abi.c (cp_pass_by_reference): New.
3137 * cp-abi.h (cp_pass_by_reference): Declare.
3138 (struct cp_abi_ops): Add pass_by_reference.
3139 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3140 (init_gnuv3_ops): Set pass_by_reference.
3142 * language.c (language_pass_by_reference): New.
3143 (default_pass_by_reference): New.
3144 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3145 default_pass_by_reference.
3146 * langauge.h (struct language_defn): Add la_pass_by_reference.
3147 (language_pass_by_reference, default_pass_by_reference): Declare.
3148 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3149 * c-lang.c (c_language_defn, asm_language_defn)
3150 (minimal_language_defn): Likewise.
3151 (cplus_language_defn): Add cp_pass_by_reference.
3152 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3153 * jv-lang.c (java_language_defn): Likewise.
3154 * m2-lang.c (m2_language_defn): Likewise.
3155 * objc-lang.c (objc_language_defn): Likewise.
3156 * p-lang.c (pascal_language_defn): Likewise.
3157 * scm-lang.c (scm_language_defn): Likewise
3161 Allow a code breakpoint to have several locations
3163 * breakpoint.h (enum enable_state): Remove the
3164 bp_shlib_disabled enumerator.
3165 (struct bp_location): New members shlib_disabled,
3166 global_next, enabled and function_name.
3167 Rename pending to condition_not_parsed.
3169 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3170 (ALL_BP_LOCATIONS_SAFE): Likewise.
3171 (breakpoint_enabled): Don't check for pending.
3172 (condition_command): Free and update all locations of
3174 (insert_bp_location): Adjust.
3175 (software_breakpoint_inserted_here_p): Don't care
3176 if breakpoint is enabled, as soon as it's inserted.
3177 (print_it_typical): Print bpstat's location, not
3178 bpstat's breakpoint's location.
3179 (bpstat_stop_status): Iterate over all locations, not
3181 (print_breakpoint_location): New.
3182 (print_one_breakpoint): Renamed to
3183 (print_one_breakpoint_location): ...this. Take
3184 parameters to describe which location is being
3185 printed. Modify code to properly print header
3186 for several locations and individual locations.
3187 (print_one_breakpoint): Print all locations.
3188 (breakpoint_has_pc): New.
3189 (describe_other_breakpoints): Use the above.
3190 (check_duplicates): Renamed to...
3191 (check_duplicates_for): .. this.
3192 (check_duplicates): Use check_duplicates_for.
3193 (allocate_bp_location): Adjust.
3194 (set_raw_breakpoint_without_location): New,
3195 extracted from set_raw_breakpoint.
3196 (set_breakpoint_location_function): New.
3197 (set_raw_breakpoint): Use
3198 set_raw_breakpoint_without_location.
3199 (make_breakpoint_permanent): Mark all locations
3201 (disable_breakpoints_in_shlibs): Iterate over
3203 (disable_breakpoints_in_unloaded_shlib): Likewise.
3204 (re_enable_breakpoints_in_shlibs): Likewise.
3205 (mention): Say "pending" when breakpoint has
3206 zero locations. If breakpoint has more than one
3208 (add_location_to_breakpoint): New.
3209 (create_breakpoint): Accept symtabs_and_lines, not
3210 symtab_and_line. Pass extra sals to
3211 add_location_to_breakpoint.
3212 (create_breakpoints): Pass symtabs_and_lines to
3214 (break_command_1): Make pending breakpoints
3215 have zero locations.
3216 (do_captured_breakpoint): Remove wrong allocation.
3217 (clear_command): Iterate over all locations.
3218 (unlink_locations_from_global_list): Renamed
3219 from unlink_location_from_global_list. Remove
3221 (delete_breakpoint): Remove all locations.
3222 Iterate over all locations when deciding which
3223 other location to re-enable.
3224 (all_locations_are_pending): New.
3225 (update_breakpoint_locations): Renamed from
3226 update_breakpoint_location. Try to match old
3227 and new locations using names of containing
3229 (breakpoint_re_set_one): Adjust.
3230 (find_location_by_number): New.
3231 (disable_command): Allow disabling individual location.
3232 (enable_command): Allow enabling individual location.
3233 * breakpoint.c: Adjust all uses of breakpoint's
3234 enable state to for bp_shlib_disabled change.
3238 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3239 (resolve_pending_breakpoint): Remove.
3240 (re_enable_breakpoints_in_shlibs): Remove.
3241 (unlink_locations_from_global_list): New.
3242 (update_breakpoint_locations): New.
3243 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3244 Use parse_condition and update_breakpoint_location to
3245 reset breakpoint. Ignore 'symbol not found' error from
3247 (breakpoint_re_set): Don't emit newline before the
3248 reason why breakpoint is not reset.
3249 (do_enable_breakpoint): Don't specially process pending
3251 (free_bp_location): New.
3252 (break_command_1): For pending breakpoints, initialize
3253 all fields of a sal with zeroes.
3254 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3255 * infcmd.c (post_create_inferior): Don't call
3256 re_enable_breakpoints_in_shlibs.
3257 * infrun.c (handle_inferior_event): Likewise.
3258 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3259 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3260 * win32-nat.c (get_win32_debug_event): Likewise.
3264 * breakpoint.c (create_breakpoint): Split from
3265 create_breakpoints, implementing most of its logic.
3266 Take just a single sal, single address string and
3267 single condition. Do not take parsed condition at
3269 (create_breakpoints): Just call create_breakpoint
3271 (find_condition_and_thread): New.
3272 (break_command_1): Use find_condition_and_thread.
3273 Do not keep parsed conditions.
3274 (do_captured_breakpoint): Don't convert
3275 condition string to struct expression.
3279 * breakpoint.h (struct breakpoint): Move the cond
3281 (struct bp_location): Here.
3282 * breakpoint.c (condition_command, bpstat_stop_status)
3283 (print_one_breakpoint, allocate_bp_location)
3284 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3285 (create_exec_event_catchpoint, create_breakpoints)
3286 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3287 (create_ada_exception_breakpoint, set_breakpoint_sal)
3288 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3289 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3293 Associate bp_stat with bp_location, not breakpoint.
3294 * breakpoint.h (breakpoint_at): Change type
3296 * breakpoint.c (bpstat_alloc): Take bp_location,
3298 (bpstat_find_breakpoint): Look at bpstat's location's
3299 owner, not at bpstat->breakpoint_at.
3300 (bpstat_find_step_resume_breakpoint): Likewise.
3301 (bpstat_num): Likewise.
3302 (print_it_typical): Likewise.
3303 (print_bp_stop_message): Likewise.
3304 (watchpoint_check): Likewise.
3305 (bpstat_what): Likewise.
3306 (bpstat_get_triggered_catchpoints): Likewise.
3307 (breakpoint_auto_delete): Likewise.
3308 (delete_breakpoint): Likewise.
3309 (bpstat_stop_status): Pass location, not breakpoint,
3310 to bpstat_alloc. Look at bpstat's location's
3311 owner, not at bpstat->breakpoint_at.
3315 * macrotab.h (new_macro_table): Document that removing information
3316 from an obstack/bcache-managed macro table leaks memory.
3317 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3318 that data is never freed in obstack/bcache-managed macro tables,
3319 just leak the storage.
3320 (macro_undef): If we're undefining a macro at exactly the same
3321 source location that we defined it, simply remove the definition
3326 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3327 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3328 Adjust the struct sym_fns object accordingly by setting
3329 the new field to NULL.
3330 * xcoffread.c (aix_process_linenos): Make static.
3331 (xcoff_sym_fns): Set new field to aix_process_linenos.
3332 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3333 by call to new the new sym_fns sym_read_linetable function.
3334 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3335 * config/rs6000/tm-rs6000.h: Delete.
3340 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3341 rules do not treat composite types specially.
3345 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3346 (mips16_in_function_epilogue_p): Likewise.
3347 (mips_in_function_epilogue_p): Likewise.
3348 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3352 * configure.ac: Add check for "etext".
3353 * configure, config.in: Regenerate.
3354 * maint.c (TEXTEND): Only define if either _etext or etext
3356 Disable the profiling functionality if TEXTEND is not defined.
3360 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3361 address register. Correct the call to frame_id_build.
3362 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3367 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3368 the linetable past the function end.
3372 * MAINTAINERS: Update my email address.
3376 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3377 (inf_ttrace_delete_dying_threads_callback): New function.
3378 (inf_ttrace_resume): After resuming the execution, iterate over
3379 the dying threads to delete them for the thread list.
3380 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3381 mark the corresponding thread as dying instead of removing it
3382 from the thread list.
3383 (inf_ttrace_thread_alive): return 0 for dying threads.
3387 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3388 that return_frame is not null.
3392 * solib-svr4.c: Add include of "auxv.h".
3393 (enable_break): Use the AT_BASE auxiliary entry if available.
3394 * Makefile.in (solib-svr4.o): Update dependencies.
3398 * NEWS: Create a new section for the next release branch.
3399 Rename the section of the current branch, now that it has
3404 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3405 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3409 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3410 * mi/mi-cmds.h (mi_cmd_list_features): New.
3411 * mi/mi-main.c (mi_cmd_list_features): New.
3415 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3416 * version.in: Bump version to 6.7.50-20070911-cvs.
3420 * thread.c (free_thread): Do not delete the step resume breakpoint
3425 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3426 * corelow.c (core_read_description): New.
3427 (init_core_ops): Set to_read_description.
3428 * gdbarch.sh: Add gdbarch_core_read_description.
3429 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3430 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3431 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3432 (mips_register_g_packet_guesses): Use them.
3433 (_initialize_mips_tdep): Initialize them.
3434 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3435 * gdbarch.h, gdbarch.c: Regenerated.
3439 * infrun.c (stepping_past_breakpoint): New global variable.
3440 (stepping_past_breakpoint_ptid): Likewise.
3441 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3442 Only switch threads if we need to single-step over a breakpoint hit
3443 in the previously selected thread. If stepping, remember previous
3444 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3445 switch_to_thread instead of copying its contents.
3446 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3447 prepare_to_proceed returns true.
3448 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3449 (context_switch): Call switch_to_thread.
3450 (handle_inferior_event): Switch back to previous thread if requested
3451 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3452 * gdbthread.h (switch_to_thread): Add prototype.
3453 * thread.c (switch_to_thread): Make global.
3457 * p-valprint.c: Fix 7 ARI reported problems.
3458 (pascal_val_print): Fix one operator at end of line issue.
3459 Use paddress function to remove use of
3460 deprecated_print_address_numeric function (2 times).
3461 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3462 (pascal_value_print): Fix 3 operator at end of line issues.
3467 * arm-tdep.c (arm_in_call_stub): Delete.
3468 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3472 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3478 * NEWS: Update description of string changes. Mention print/s.
3479 * c-valprint.c (textual_element_type): New.
3480 (c_val_print): Use it. Do not skip address printing for pointers
3481 with a string format.
3482 (c_value_print): Doc update.
3483 * dwarf2read.c (read_array_type): Use make_vector_type.
3484 * gdbtypes.c (make_vector_type): New.
3485 (init_vector_type): Use it.
3486 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3487 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3488 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3489 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3490 (make_vector_type): New.
3491 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3492 Call the language print routine for string format.
3493 (print_scalar_formatted): Call val_print for string format. Handle
3494 unsigned original types for char format.
3495 (validate_format): Do not reject string format.
3496 * stabsread.c (read_type): Use make_vector_type.
3497 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3501 * expprint.c (print_subexp_standard): Check strchr for null.
3502 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3504 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3506 * stabsread.c (patch_block_status): Guard against null.
3507 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3511 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3512 in internal error message.
3517 * infcmd.c (post_create_inferior): Update comment.
3518 (run_command_1): Always call post_create_inferior with 0 as
3521 * i386-cygwin-tdep.h: New.
3522 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3523 (win32_xfer_shared_library): Make it extern.
3525 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3527 (win32_so_ops): Delete.
3528 (get_relocated_section_addrs): Delete.
3529 (solib_symbols_add): Delete.
3530 (register_loaded_dll): Delete.
3531 (win32_make_so): New.
3532 (handle_load_dll): Use win32_make_so.
3533 (win32_free_so): Free the passed in so.
3534 (win32_relocate_section_addresses): Delete.
3535 (win32_solib_create_inferior_hook): Delete.
3536 (handle_unload_dll): Don't add PE offset here. Free so with
3537 win32_free_so instead of free_so.
3538 (win32_special_symbol_handling): Delete.
3539 (get_win32_debug_event): Remove unneeded calls. Set state to
3540 TARGET_WAITKIND_LOADED on a dll unload.
3541 (do_initial_win32_stuff): Clear cygwin_load_start and
3543 (map_code_section_args): Delete.
3544 (dll_code_sections_add): Delete.
3545 (core_section_load_dll_symbols): Delete.
3546 (win32_xfer_shared_libraries): New.
3547 (win32_current_sos): Delete.
3548 (win32_xfer_partial): New.
3549 (open_symbol_file_object): Delete.
3550 (in_dynsym_resolve_code): Delete.
3551 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3552 of win32_ops. Remove win32_so_ops settings. Don't set
3553 current_target_so_ops here.
3555 * Makefile.in (i386_cygwin_tdep_h): New variable.
3556 (i386-cygwin-tdep.o): Update dependencies.
3557 (win32-nat.o): Update dependencies.
3562 * gdbarch.sh (core_xfer_shared_libraries): New.
3564 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3566 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3568 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3569 (xml_escape_text): New.
3570 * xml-support.h (xml_escape_text): Declare.
3572 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3573 * config/i386/cygwin.mt (TDEPFILES): ... here.
3575 * win32-nat.c: (fetch_elf_core_registers): Delete.
3576 (win32_elf_core_fn): Delete.
3577 (_initialize_core_win32): Delete.
3579 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3580 "xml-support.h" and "gdbcore.h".
3581 (i386_win32_gregset_reg_offset): New.
3582 (I386_WIN32_SIZEOF_GREGSET): New.
3583 (i386_win32_regset_from_core_section): New.
3584 (win32_xfer_shared_library): New.
3585 (struct cpms_data): New.
3586 (core_process_module_section): New.
3587 (win32_core_xfer_shared_libraries): New.
3588 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3589 gregset_num_regs, sizeof_gregset members of tdep. Register
3590 regset_from_core_section and core_xfer_shared_libraries callbacks.
3592 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3593 * gdbarch.h, gdbarch.c: Regenerate.
3597 * corelow.c (core_xfer_partial): Pass writebuf to
3598 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3602 * arm-tdep.h (arm_skip_stub): Declare.
3603 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3605 (arm_pe_skip_trampoline_code): New function.
3606 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3607 gdbarch_skip_trampoline_code callback.
3608 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3612 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3616 * configure.ac: Add --with-expat.
3617 * configure: Regenerated.
3621 * configure.ac: Accept --with-system-readline.
3622 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3623 * configure: Regenerate.
3624 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3626 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3631 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3635 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3639 * top.c (print_gdb_version): Update for GPL version 3.
3643 * NEWS: Mention the build-id .debug files verification.
3647 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3651 * Makefile.in (symfile.o): Update dependencies.
3652 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3653 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3654 (struct build_id): New structure.
3655 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3656 (find_separate_debug_file): New variable BUILD_ID.
3657 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3661 * varobj.c (struct varobj): Fix comment
3662 for the type member not to lie when it can be
3667 Implement -var-info-path-expression.
3669 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3671 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3672 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3673 * varobj.c (struct varobj): New field 'path_expr'.
3674 (c_path_expr_of_child, cplus_path_expr_of_child)
3675 (java_path_expr_of_child): New.
3676 (struct language_specific): New field path_expr_of_child.
3677 (varobj_create): Initialize the path_expr field.
3678 (varobj_get_path_expr): New.
3679 (new_variable): Initialize the path_expr field.
3680 (free_variable): Free the path_expr field.
3681 (adjust_value_for_children_access): New parameter
3683 (c_number_of_children): Adjust.
3684 (c_describe_child): New parameter CFULL_EXPRESSION.
3685 Compute full expression.
3686 (c_value_of_child, c_type_of_child): Adjust.
3687 (cplus_number_of_children): Adjust.
3688 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3689 Compute full expression.
3690 (cplus_name_of_child, cplus_value_of_child)
3691 (cplus_type_of_child): Adjust.
3692 * varobj.h (varobj_get_path_expr): Declare.
3696 * mi/mi-cmd-var.c (print_varobj): If a varobj
3697 type is NULL, don't try to print it.
3701 * ppc-linux-nat.c (right_fill_reg): Delete.
3702 (supply_gregset): Use ppc_supply_gregset.
3703 (supply_fpregset): Use ppc_supply_fpregset.
3704 (fill_gregset): Use ppc_collect_gregset.
3705 (fill_fpregset): Use ppc_collect_fpregset.
3706 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3707 (right_supply_register, ppc_linux_supply_gregset): Delete.
3708 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3709 (ppc_linux_supply_fpregset): Delete.
3710 (ppc_linux_collect_gregset): New function.
3711 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3712 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3713 ppc_linux_supply_gregset, and ppc_collect_gregset.
3714 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3715 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3716 (ppc_linux_regset_from_core_section): Update.
3717 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3718 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3719 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3720 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3721 (ppcobsd_collect_gregset): Likewise.
3722 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3723 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3724 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3725 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3726 (rs6000_aix64_reg_offsets): Likewise.
3727 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3728 ppc_floating_point_unit_p.
3729 (rs6000_aix_collect_regset): Similarly.
3730 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3731 when regsize is larger than regcache register size.
3732 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3733 regcache register size.
3734 (ppc_greg_offset): New function, split out from..
3735 (ppc_supply_gregset): ..here. Separate code handling all regs from
3736 single reg case. Correct xer offset.
3737 (ppc_fpreg_offset): New function, split out from..
3738 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3740 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3741 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3742 a fp unit, instead return if no fp.
3746 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3747 this code has not been compiled for two years.
3751 * event-top.c (gdb_readline2): Return after EOF.
3755 * symtab.c: Remove a function that has been commented out 3 years ago.
3759 * hppa-tdep.c (hppa32_cannot_fetch_register)
3760 (hppa64_cannot_fetch_register): New functions.
3761 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3762 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3766 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3767 check for null before calling check_typedef.
3769 * NEWS: Mention Coverity bug fixes.
3773 * spu-tdep.c (spu_pointer_to_address): New function.
3774 (spu_integer_to_address): Likewise.
3775 (spu_gdbarch_init): Add spu_pointer_to_address and
3776 spu_integer_to_address to gdbarch.
3780 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3784 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3785 that contains the GDB license.
3786 * copying.awk: Adjust to the GPLv3 wording.
3787 * copying.c: Regenerate.
3791 * copying.awk: Protoization, and i18n markup.
3795 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3796 * copyright.sh: Likewise.
3797 * gdb-events.sh: Likewise.
3798 * gdb_gcore.sh: Likewise.
3799 * gdb_mbuild.sh: Likewise.
3800 * gdbarch.sh: Likewise.
3801 * observer.sh: Likewise.
3802 * features/feature_to_c.sh: Likewise.
3803 * regformats/regdat.sh: Likewise.
3807 Switch the license of all .c files to GPLv3.
3808 Switch the license of all .h files to GPLv3.
3809 Switch the license of all .cc files to GPLv3.
3813 * configure.ac: Switch license to GPLv3.
3817 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3818 determine the file's FPU type.
3822 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3823 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3824 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3828 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3830 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3831 (elf_lookup_lib_symbol): Fix formatting.
3835 * dbxread.c (read_dbx_symtab): Guard null deref.
3838 * valops.c (find_overload_match): Guard against NULL.
3842 * MAINTAINERS (Patch Champions): Remove self.
3846 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3851 * stabsread.c (dbx_lookup_type): Memory leak.
3853 * event-loop.c (delete_async_signal_handler): Move pointer null
3854 test to before pointer dereference.
3856 * ui-out.c (append_header_to_list): Possible cut and paste error.
3858 * MAINTAINERS: white space tweak.
3862 * stack.c (print_frame): Memory leak.
3864 * completer.c (filename_completer): Avoid memory leak.
3865 Remove unnecessary nested block.
3867 * c-exp.y (parse_number): Memory leak.
3869 * completer.c (location_completer): Must free 'fn_list', except
3870 in the one case where it is returned (as 'list').
3872 * varobj.c (value_of_root): Memory leak.
3874 * gdbtypes.h (virtual_base_list): Remove export decl.
3875 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3876 (virtual_base_index): Memory leak.
3877 (virtual_base_index_skip_primaries): Ditto.
3881 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3882 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3883 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3884 (xtensa_read_register): New function.
3885 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3886 (xtensa_insn_kind): New types.
3887 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3888 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3889 (xtensa_verify_config, xtensa_pseudo_register_read)
3890 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3891 (xtensa_store_return_value)
3892 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3893 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3894 (xtensa_frame_this_id, xtensa_frame_prev_register)
3895 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3896 (call0_frame_cache, call0_frame_get_reg_at_entry)
3897 (call0_classify_opcode, call0_track_op)
3898 (call0_analyze_prologue, call0_frame_cache): New functions.
3902 * breakpoint.c (bpstat_free): New.
3903 (bpstat_clear): Use bpstat_free.
3904 (delete_breakpoint): Document why we cannot
3905 remove bpstats from stop_bpstat.
3906 * breakpoint.h (bpstat_free): Declare.
3910 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3915 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3920 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3921 checkin guarding against NULL.
3925 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3926 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3927 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3928 go at beginning of new line.
3930 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3931 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3932 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3933 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3934 tui-winsource.h, tui.c, tui.h: Function declarations and
3935 definitions, wrap long lines.
3937 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3938 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3939 Reformat block comments to GNU standard.
3941 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3942 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3943 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3944 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3945 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3946 spaces after periods, etc).
3948 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3949 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3950 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3951 tui-winsource.h: Whitespace changes, fix pointer declarations
3957 * ada-lang.c (field_alignment): Guard against NULL.
3961 * MAINTAINERS (Global Maintainers): Add self.
3965 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3967 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3969 * varobj.c (cplus_describe_child): Guard against null.
3970 Use "NULL" instead of "0" to initialize pointers.
3974 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3975 to match any gdbarch with matching OSABI. Set default ABI and FPU
3976 after running the OSABI handler.
3980 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3981 * config/i386/linux.mt (TDEPFILES): ...to here.
3985 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3986 the 'silent' parameter and code to implement that.
3987 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3989 * win32-nat.c: Adjust.
3994 * breakpoint.c (update_breakpoints_after_exec): Don't
3995 set address to zero.
3999 * valops.c: Whitespace clean-up.
4001 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4003 * event-top.c (command_line_handler): Memory leak.
4005 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4006 No need to make copy.
4008 * source.c (find_source_lines): Require symtab 's'.
4012 * completer.c: Spelling fix in comments.
4016 * gdbtypes.c: Coding standard cleanup.
4017 * gdbtypes.c: Comment/whitespace cleanup.
4019 * stabsread.c (read_huge_number): Attempt to compute value before
4020 values that it depends on.
4022 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4023 (decode_objc): Use "NULL" instead of 0.
4024 (find_method): Ditto.
4025 (decode_all_digits): Ditto.
4026 (decode_dollar): Ditto.
4028 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4030 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4032 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4035 * completer.c: Comment/whitespace cleanup.
4039 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4043 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4044 allocated file descriptors.
4048 * Makefile.in: Minor cleanup throughout; add some missing variables,
4049 add some missing rules, remove some rules that are no longer needed,
4050 and fix the dependencies in several rules.
4054 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4055 (scm_lang_h, scm_tags_h): New.
4056 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4057 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4058 * defs.h (enum language): Add `language_scm'.
4060 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4065 * MAINTAINERS (Write After Approval): Add myself.
4069 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4073 * solib-som.c (som_relocate_section_addresses): Stop saving
4074 the $CODE$ section in the so_list structure.
4078 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4079 (xtensa_register_group_t): Add entries for coprocessors.
4080 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4081 (xtensa_add_reggroups): Likewise.
4082 (xtensa_register_reggroup_p): Likewise.
4083 (xtensa_coprocessor_register_group): New function.
4088 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4092 * target.c (target_read_string): Guard against null.
4094 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4096 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4097 (tui_set_layout_for_display_command): Mem leak.
4099 * top.c (command_line_input): Memory leak.
4101 * solib-svr4.c (open_symbol_file_object): Memory leak.
4102 (svr4_current_sos): Ditto.
4103 (enable_break): Ditto.
4105 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4107 * dwarf2read.c (add_partial_symbol): Memory leak.
4111 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4115 * macroexp.c (init_buffer): Remove testing code that overrides the
4116 caller's length guess.
4117 (gather_arguments): Use a larger initial size, now that the vector
4118 growth code has been exercised.
4122 * solib-target.c (solib_target_relocate_section_addresses): Add
4123 orig_delta to addr_high.
4127 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4129 * breakpoint.c (print_one_breakpoint): Off by one error.
4131 * tracepoint.c (add_register): Off by one error.
4132 (stringify_collection_list): Free malloc buffer.
4136 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4137 stop memory leak, straighten out cleanups.
4139 * jv-lang.c (java_link_class_type): Guard against NULL.
4143 * gdbtypes.c (create_set_type): Test should only be done within
4144 the preceeding if block. Otherwise, variable is uninitialized.
4146 * gdbtypes.c (check_typedef): Guard NULL.
4150 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4151 avoid dereference in lookup_cmd_1.
4153 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4154 clean up long lines.
4155 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4156 (tui_alloc_win_info): Ditto.
4157 (tui_add_content_elements): Ditto.
4158 * tui/tui-file.c (tui_file_magic): Ditto.
4162 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4163 True and false paths are mutually exclusive.
4165 * event-top.c (command_line_handler): Add pedantic return.
4167 * f-valprint.c (info_common_command): Bail out to prevent null
4168 pointer deref. Break up a long line.
4170 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4172 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4174 * printcmd.c (build_address_symbolic): Remove dead code and dead
4179 * linespec.c (minsym_found): Advance to the next line if possible.
4183 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4184 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4185 solib-svr4.o, and add solib-target.o
4189 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4193 * MAINTAINERS (Write After Approval): Add myself.
4197 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4202 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4206 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4207 'buffer' must cover both branches that call strcmp (Coverity).
4209 * stack.c (print_frame_args): Check return value of lookup_symbol.
4211 * ax-gdb.c (find_field): Guard against null ptr.
4215 * regformats/reg-spu.dat: Fix order of npc, id registers.
4219 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4220 sections should always go to the executable file.
4224 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4225 prologue instructions.
4229 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4235 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4241 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4242 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4244 * NEWS: Mention gdbserver DLL support.
4248 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4252 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4257 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4262 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4263 (mep_analyze_prologue): Add case for BRA instruction.
4267 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4271 * breakpoint.c: Include "top.h".
4272 (breakpoint_1): Don't set convenience variable $_ if server prefix
4274 (_initialize_breakpoint): Describe this behaviour in command help.
4278 * solib-target.c (library_list_start_segment): Cast address to
4283 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4284 for terminated processes.
4288 * event-top.c (cli_command_loop): Prompt string can (and should)
4289 be freed after call to readline (Coverity). Also move local var
4290 declarations into block where they are used.
4292 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4293 should) be freed after call to readline (Coverity). Also move
4294 local var declarations into block where they are used.
4298 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4306 * remote.c (remote_check_symbols): Use
4307 gdbarch_convert_from_func_ptr_addr.
4308 * infcall.c (find_function_addr): Handle function descriptors
4309 without debugging information.
4310 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4311 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4312 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4313 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4314 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4315 allow SEC_CODE and SEC_DATA.
4316 (enable_break): Update calls. Pass current_target to solib_add.
4317 Use gdbarch_convert_from_func_ptr_addr.
4322 * symfile.c (print_transfer_performance): Avoid integer overflow.
4327 * cp-namespace.c (lookup_symbol_file): Add block to
4328 lookup_symbol_global call.
4329 * Makefile.in (solist_h): Add dependency on symtab header.
4330 (symtab.o): Add dependency on solist header.
4331 * solib.c (solib_global_lookup): New function.
4332 * solib-svr4.c (scan_dyntag): Likewise.
4333 (elf_locate_base): Call helper routine scan_dyntag.
4334 (elf_lookup_lib_symbol): New function.
4335 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4336 * solist.h (symtab.h): New include.
4337 (struct target_so_ops): New member lookup_lib_global_symbol.
4338 (solib_global_lookup): New prototype.
4339 * symtab.c: New include solist.h.
4340 (lookup_objfile_from_block): New function.
4341 (lookup_global_symbol_from_objfile): New function.
4342 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4343 (lookup_symbol_global): Call library-specific lookup procedure.
4344 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4346 * NEWS: Document framework.
4350 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4353 * cli/cli-script.c (build_command_line): Update NULL check.
4357 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4361 * Makefile.in (XMLFILES): Add library-list.dtd.
4362 (ALLDEPFILES): Add solib-target.o.
4363 (solib-target.o): New rule.
4364 * remote.c (PACKET_qXfer_libraries): New constant.
4365 (remote_protocol_features): Add qXfer:libraries:read.
4366 (remote_wait): Recognize library stop replies.
4367 (remote_async_wait): Likewise. Fix typo.
4368 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4369 (init_remote_async_ops): Fix typo.
4370 (_initialize_remote): Register "set remote library-info-packet".
4371 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4372 * solib-target.c: New file.
4373 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4375 (info_sharedlibrary_command): Likewise.
4376 (solib_add_library, solib_remove_library): New.
4377 * solist.h (struct so_list): Replace textsection with addr_low and
4379 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4380 * NEWS: Describe new qXfer:libraries:read and shared library
4382 * features/library-list.dtd: New.
4386 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4387 (start_remote): Use STOP_QUIETLY_REMOTE.
4388 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4389 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4390 Update to match shared library event breakpoint support. Only
4391 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4392 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4393 * fork-child.c (startup_inferior): Do not set
4394 inferior_ignoring_startup_exec_events
4395 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4397 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4401 * breakpoint.c (insert_bp_location): Remove dead code
4402 (DISABLE_UNSETTABLE_BREAK).
4403 (disable_breakpoints_in_shlibs)
4404 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4408 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4409 Call insert_bp_location.
4413 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4418 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4423 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4424 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4425 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4426 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4427 to display_gdb_prompt.
4432 * target.c (memory_xfer_partial): Do not continue past targets with
4437 * m68k-tdep.c (m68k_ps_type): New.
4438 (m68k_init_types): New.
4439 (m68k_register_type): Use m68k_ps_type for PS register.
4440 (_initialize_m68k_tdep): Call m68k_init_types.
4442 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4443 from the generic m68k arch.
4447 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4450 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4451 gdb_assert before using return value of find_thread_pid (Coverity).
4453 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4455 * cli/cli-script.c (build_command_line): Add null pointer guard
4460 * linux-thread-db.c (thread_db_attach): Delete.
4461 (thread_db_detach): Typo fix. Call target_mourn_inferior
4462 instead of fixing up proc_handle.
4463 (have_threads_callback, have_threads): New functions.
4464 (thread_db_wait): Remove dead proc_handle.pid check. Only
4465 translate PTIDs if we have registered threads. Check for new
4466 threads if we have none.
4467 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4468 (find_new_threads_callback): Only enable event reporting if TID == 0.
4469 (same_ptid_callback): New.
4470 (thread_db_get_thread_local_address): Check for new threads.
4471 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4472 or to_post_startup_inferior.
4476 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4477 is always active if SOFTWARE_SINGLE_STEP_P is true.
4478 (resume): Use gdbarch_software_single_step[_p] instead of
4479 SOFTWARE_SINGLE_STEP[_P].
4480 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4482 * gdbarch.sh (software_single_step): Remove target macro.
4483 * gdbarch.h, gdbarch.c: Regenerate.
4487 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4488 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4489 (struct gdbarch_swap, struct gdbarch_swap_registration,
4490 struct gdbarch_swap_registry, gdbarch_swap_registry,
4491 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4492 current_gdbarch_swap_in_hack): Remove.
4493 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4494 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4495 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4496 (deprecated_current_gdbarch_select_hack): Likewise.
4497 * gdbarch.h, gdbarch.c: Regenerate.
4501 * infrun.c (clear_proceed_status): Clean up stop_registers.
4502 (normal_stop): Allocate regcache for stop_registers.
4503 (struct inferior_status): Remove stop_registers member.
4504 (save_inferior_status): Do not save stop_registers.
4505 (restore_inferior_status): Do not restore stop_registers.
4506 (discard_inferior_status): Do not discard stop_registers.
4507 (build_infrun): Remove.
4508 (_initialize_infrun): Do not swap stop_registers.
4512 * remote.c (remote_address_masked): If remote_address_size is zero,
4513 default to target address size.
4514 (build_remote_gdbarch_data): Remove.
4515 (_initialize_remote): Do not swap remote_address_size.
4519 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4520 builtin_type_char, builtin_type_short, builtin_type_int,
4521 builtin_type_long, builtin_type_signed_char,
4522 builtin_type_unsigned_char, builtin_type_unsigned_short,
4523 builtin_type_unsigned_int, builtin_type_unsigned_long,
4524 builtin_type_float, builtin_type_double, builtin_type_long_double,
4525 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4526 builtin_type_bool, builtin_type_long_long,
4527 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4528 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4529 variable declaration with compatibility macro.
4530 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4531 builtin_type_char, builtin_type_short, builtin_type_int,
4532 builtin_type_long, builtin_type_signed_char,
4533 builtin_type_unsigned_char, builtin_type_unsigned_short,
4534 builtin_type_unsigned_int, builtin_type_unsigned_long,
4535 builtin_type_float, builtin_type_double, builtin_type_long_double,
4536 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4537 builtin_type_bool, builtin_type_long_long,
4538 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4539 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4540 (build_gdbtypes): Remove.
4541 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4542 opaque-type-resolution command here. Do not call
4543 deprecated_register_gdbarch_swap.
4547 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4548 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4549 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4551 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4552 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4553 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4554 (build_parse): Remove.
4555 (_initialize_parse): Do not call build_parse. Do not register
4556 msym_ types for gdbarch-swapping.
4558 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4559 instead of creating private type.
4561 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4562 (_initialize_xcoffread): Do not initialized them.
4563 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4565 * mdebugread.c (nodebug_func_symbol_type): Remove.
4566 (nodebug_var_symbol_type): Remove.
4567 (_initialize_mdebugread): Do not initialize them.
4568 (parse_symbol): Use builtin nodebug_ type instead of them.
4569 (parse_procedure): Likewise.
4573 * printcmd.c (do_one_display): If display/i, start with an initial
4574 line feed to avoid bad layout if there is a branch delay slot.
4579 * disasm.c (gdb_print_insn): Return the number of branch delay
4580 slot instructions too.
4581 * disasm.h (gdb_print_insn): Update prototype.
4582 * printcmd.c (branch_delay_insns): New variable to record the
4583 number of delay slot instructions after disassembling a branch.
4584 (print_formatted): Record the number of branch delay slot
4586 (do_examine): When disassembling, if the last instruction
4587 disassembled has any branch delay slots, then bump the count so
4588 that they get disassembled too.
4589 * tui/tui-disasm.c (tui_disassemble): Update the call to
4591 * NEWS: Document the new behaviour.
4595 * regcache.c (write_pc_pid): Restore missing else.
4599 * regcache.c (regcache_print): Use get_current_regcache ()
4600 instead of current_regcache.
4605 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4606 instead of bfd_make_section_anyway.
4607 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4608 when clearing SEC_LOAD.
4612 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4613 registers for big-endian.
4617 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4618 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4619 * gdbarch.c, gdbarch.h: Regenerate.
4623 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4624 gdbarch_believe_pcc_promotion.
4625 * stabsread.c (define_symbol): Likewise.
4626 Remove unnecessary definition.
4627 * coffread.c (process_coff_symbol): Remove unnecessary code.
4628 * gdbarch.c, gdbarch.h: Regenerate.
4632 * configure.ac: Do not use ${objdir}.
4633 * configure: Regenerated.
4637 * gdbarch.sh (deprecated_register_size): Remove.
4638 * gdbarch.h, gdbarch.c: Regenerate.
4640 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4641 by INT_REGISTER_SIZE.
4642 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4643 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4644 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4645 set_gdbarch_deprecated_register_size.
4649 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4650 gdbarch_deprecated_fp_regnum.
4651 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4652 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4653 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4654 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4656 * gdbarch.c, gdbarch.h: Regenerate.
4660 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4661 gdbarch_extract_return_value.
4662 * value.c (generic_use_struct_convention): Likewise (comment).
4663 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4664 * arch-utils.c (legacy_return_value): Likewise.
4665 * arch-utils.h (legacy_return_value): Likewise (comment).
4666 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4667 gdbarch_store_return_value.
4668 * stack.c (return_command): Likewise (comment).
4669 * arch-utils.h (legacy_return_value): Likewise (comment).
4670 * arch-utils.c (legacy_return_value): Likewise.
4671 * gdbarch.c, gdbarch.h: Regenerate.
4675 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4676 gdbarch_deprecated_use_struct_convention.
4677 * arch-utils.c (legacy_return_value): Likewise.
4678 * gdbarch.c, gdbarch.h: Regenerate.
4682 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4683 gdbarch_deprecated_function_start_offset.
4684 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4685 * linespec.c (minsym_found): Likewise.
4686 * infrun.c (handle_inferior_event): Likewise.
4687 * infcall.c (find_function_addr): Likewise.
4688 * cli/cli-cmds.c (disassemble_command): Likewise.
4689 * gdbarch.c, gdbarch.h: Regenerate.
4693 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4694 gdbarch_deprecated_reg_struct_has_addr.
4695 * infcall.c (call_function_by_hand): Likewise.
4696 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4697 * gdbarch_deprecated_reg_struct_has_addr_p.
4698 * infcall.c (call_function_by_hand): Likewise.
4699 * gdbarch.c, gdbarch.h: Regenerate.
4703 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4704 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4705 (sh_gdbarch_init): Remove
4706 set_gdbarch_deprecated_extract_struct_value_address.
4707 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4708 (sh64_gdbarch_init): Remove
4709 set_gdbarch_deprecated_extract_struct_value_address.
4710 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4711 (ia64_gdbarch_init): Remove
4712 set_gdbarch_deprecated_extract_struct_value_address.
4713 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4714 (frv_gdbarch_init): Remove
4715 set_gdbarch_deprecated_extract_struct_value_address.
4716 * gdbarch.c, gdbarch.h: Regenerate.
4720 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4721 * v850-tdep.c (v850_unwind_sp): Likewise.
4722 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4723 * stack.c (frame_info): Likewise.
4724 * stabsread.c (define_symbol): Likewise.
4725 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4726 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4727 (sh_unwind_sp): Likewise.
4728 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4729 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4730 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4731 (rs6000_frame_cache): Likewise.
4732 * rs6000-nat.c (store_register): Likewise.
4733 * remote-mips.c (mips_wait): Likewise.
4734 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4735 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4736 (ppc64_sysv_abi_push_dummy_call): Likewise.
4737 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4738 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4739 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4740 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4741 * m32r-rom.c (m32r_supply_register): Likewise.
4742 * frame.c (frame_sp_unwind): Likewise.
4743 * mips-tdep.c (mips_insn16_frame_cache)
4744 (mips_insn32_frame_cache): Likewise (comment).
4745 * m68klinux-nat.c (supply_gregset): Likewise.
4746 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4747 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4748 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4749 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4750 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4751 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4752 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4753 (cris_register_type, crisv32_register_type)
4754 (cris_dwarf2_frame_init_reg): Likewise.
4755 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4756 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4757 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4758 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4760 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4761 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4762 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4763 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4764 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4765 * v850-tdep.c (v850_unwind_pc): Likewise.
4766 * stack.c (frame_info): Likewise.
4767 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4768 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4769 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4770 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4771 (sh_dsp_show_regs): Likewise.
4772 * shnbsd-tdep.c (shnbsd_supply_gregset)
4773 (shnbsd_collect_gregset): Likewise.
4774 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4775 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4776 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4777 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4778 (6000_register_reggroup_p, rs6000_unwind_pc)
4779 (rs6000_frame_cache): Likewise.
4780 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4781 (rs6000_store_inferior_registers): Likewise.
4782 * remote-mips.c (mips_wait, mips_load): Likewise.
4783 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4784 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4785 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4786 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4787 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4788 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4789 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4790 (store_ppc_registers, fill_gregset): Likewise.
4791 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4792 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4793 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4794 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4795 * m68klinux-nat.c (supply_gregset): Likewise.
4796 * irix5-nat.c (fill_gregset): Likewise.
4797 * i386-tdep.c (i386_unwind_pc): Likewise.
4798 * i386-linux-nat.c (i386_linux_resume): Likewise.
4799 * frame.c (get_prev_frame_1): Likewise.
4800 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4801 * dbug-rom.c (dbug_supply_register): Likewise.
4802 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4803 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4804 (cris_register_type, crisv32_register_type, crisv32_register_name)
4805 (cris_dwarf2_frame_init_reg, find_step_target)
4806 (cris_software_single_step, cris_supply_gregset)
4807 (cris_regnums): Likewise.
4808 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4809 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4810 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4811 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4812 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4814 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4815 * dbug-rom.c (dbug_supply_register): Likewise.
4816 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4817 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4818 * win32-nat.c (win32_resume): Likewise.
4819 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4820 * m68k-tdep.c (m68k_register_type): Likewise.
4821 * m68klinux-nat.c (supply_gregset): Likewise.
4823 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4824 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4825 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4826 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4827 (fv_reg_base_num, dr_reg_base_num): Likewise.
4828 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4829 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4830 (sh64_extract_return_value, sh64_store_return_value)
4831 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4832 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4833 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4834 (invalidate_cache): Likewise.
4835 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4836 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4837 (mipsnbsd_fill_fpreg): Likewise.
4838 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4839 (mipsnbsd_store_inferior_registers): Likewise.
4840 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4841 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4842 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4843 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4844 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4845 (fill_fpregset): Likewise.
4846 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4847 * i386-tdep.h (struct_return): Likewise (comment).
4848 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4849 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4850 (go32_store_registers): Likewise.
4851 * alpha-tdep.c (alpha_next_pc): Likewise.
4852 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4853 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4854 (alphabsd_store_inferior_registers): Likewise.
4855 * core-regset.c (fetch_core_registers): Likewise.
4856 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4858 * gdbarch.c, gdbarch.h: Regenerate.
4862 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4863 * dbxread.c (start_psymtab): Check HAVE_ELF.
4864 (aout_sym_fns): Likewise.
4865 * elfread.c (elf_symfile_segments): New.
4866 (elf_sym_fns): Add elf_symfile_segments.
4867 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4868 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4869 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4870 * somread.c (som_sym_fns): Use default_symfile_segments.
4871 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4872 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4873 (default_symfile_segments): New function.
4874 (syms_from_objfile): Update call to find_sym_fns.
4875 (symfile_get_segment_data, free_symfile_segment_data): New.
4876 (symfile_map_offsets_to_segments): New.
4877 (symfile_find_segment_sections): New.
4878 * symfile.h (struct symfile_segment_data): New.
4879 (struct sym_fns): Add sym_segments.
4880 (default_symfile_segments, symfile_get_segment_data)
4881 (free_symfile_segment_data): New prototypes.
4882 (symfile_map_offsets_to_segments): Likewise.
4883 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4884 * Makefile.in (COMMON_OBS): Remove elfread.o.
4885 (elf_internal_h): New.
4886 (elfread.o): Update.
4887 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4889 * config.in, configure: Regenerated.
4890 * NEWS: Mention qOffsets changes.
4894 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4895 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4896 Replace global variable declaration with compatibility macro.
4897 (struct builtin_m2_type): New data type.
4898 (builtin_m2_type): Add prototype.
4899 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4900 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4901 Remove global variables.
4902 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4903 (build_m2_types): New function.
4904 (m2_type_data): New variable.
4905 (builtin_m2_type): New function.
4906 (_initialize_m2_language): Do not build data types. Register
4907 m2_type_data per-gdbarch data.
4911 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4912 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4913 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4914 builtin_type_f_real_s8, builtin_type_f_real_s16,
4915 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4916 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4917 variable declaration with compatibility macro.
4918 (struct builtin_f_type): New data type.
4919 (builtin_f_type): Add prototype.
4920 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4921 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4922 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4923 builtin_type_f_real_s8, builtin_type_f_real_s16,
4924 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4925 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4926 (f_language_arch_info): Use builtin_f_type instead of variables.
4927 (build_fortran_types): Build builtin_f_type structure instead of
4928 setting global type variables.
4929 (f_type_data): New variable.
4930 (builtin_f_type): New function.
4931 (_initialize_f_language): Do not call build_fortran_types. Do not
4932 swap global type variables. Register f_type_data per-gdbarch data.
4936 * f-lang.c (_initialize_f_language): Do not initialize or
4937 swap builtin_type_string.
4941 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4942 value_of_builtin_frame_reg): Remove.
4943 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4944 inactive call to value_of_builtin_frame_reg.
4948 * gdbarch.sh (bfd_vma_bit): Remove.
4949 * gdbarch.c, gdbarch.h: Regenerate.
4951 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4952 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4953 (build_gdbtypes): Do not initialize it.
4954 (_initialize_gdbtypes): Do not swap it.
4958 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4959 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4960 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4961 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4962 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4963 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4964 builtin_type_vec64, builtin_type_vec128): Remove.
4965 (init_simd_type): Remove.
4966 (init_vector_type): Make global.
4967 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4968 (build_gdbtypes): Do not build vector types.
4969 (_initialize_gdbtypes): Do not swap vector types.
4970 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4971 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4972 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4973 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4974 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4975 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4976 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4977 (init_vector_type): Add prototype.
4979 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4980 i386_sse_type members.
4981 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4982 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4983 (i386_init_types): Do not build vector types.
4984 (i386_mmx_type, i386_sse_type): New functions.
4985 (i386_register_type): Call them instead of using global variables.
4986 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4987 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4988 of using global variable.
4990 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4991 and ppc_builtin_type_vec128 members.
4992 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4993 (rs6000_builtin_type_vec128): Likewise.
4994 (rs6000_register_type): Call them instead of using builtin_type_vec64
4995 and builtin_type_vec128.
4996 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4998 * spu-tdep.c (struct gdbarch_tdep): New data type.
4999 (spu_builtin_type_vec128): Remove variable.
5000 (spu_builtin_type_vec128): New function.
5001 (spu_register_type): Call it instead of using global variable.
5002 (spu_gdbarch_init): Allocate tdep structure.
5003 (spu_init_vector_type): Remove function.
5004 (_initialize_spu_tdep): Do not call it.
5008 * amd64-tdep.c (struct amd64_register_info): Remove.
5009 (amd64_register_info): Remove.
5010 (amd64_register_names): New static variable.
5011 (AMD64_NUM_REGS): Use amd64_register_names instead of
5012 amd64_register_info.
5013 (amd64_register_name): Likewise.
5014 (amd64_register_type): Do not refer to amd64_register_info.
5016 * s390-tdep.c (struct s390_register_info): Remove.
5017 (s390_register_info): Remove.
5018 (s390_register_name): Do not refer to s390_register_info.
5019 (s390_register_type): Likewise.
5021 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5022 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5023 (sparc64_register_names, sparc64_pseudo_register_names): New.
5024 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5025 sparc64_register_names and sparc64_pseudo_register_names instead of
5026 sparc64_register_info and sparc64_pseudo_register_info.
5027 (sparc64_register_name): Likewise.
5028 (sparc64_register_type): Do not refer to sparc64_register_info
5029 and sparc64_pseudo_register_info.
5033 * c-lang.c (cplus_builtin_types): Remove.
5034 (enum cplus_primitive_types): New data type.
5035 (cplus_language_arch_info): New function.
5036 (cplus_language_defn): Set la_language_arch_info member. Do not set
5037 la_builtin_type_vector and string_char_type members.
5039 * f-lang.c (f_builtin_types): Remove.
5040 (enum f_primitive_types): New data type.
5041 (f_language_arch_info): New function.
5042 (f_language_de): Set la_language_arch_info member. Do not set
5043 la_builtin_type_vector and string_char_type members.
5045 * m2-lang.c (m2_builtin_types): Remove.
5046 (enum m2_primitive_types): New data type.
5047 (m2_language_arch_info): New function.
5048 (m2_language_defn): Set la_language_arch_info member. Do not set
5049 la_builtin_type_vector and string_char_type members.
5051 * objc-lang.c (objc_builtin_types): Remove.
5052 (objc_language): Set la_language_arch_info member. Do not set
5053 la_builtin_type_vector and string_char_type members.
5055 * p-lang.c (pascal_builtin_types): Remove.
5056 (enum pascal_primitive_types): New data type.
5057 (pascal_language_arch_info): New function.
5058 (pascal_language_defn): Set la_language_arch_info member. Do not set
5059 la_builtin_type_vector and string_char_type members.
5063 * regcache.c (struct regcache): Add ptid_t member.
5064 (regcache_xmalloc): Initialize it.
5065 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5066 (regcache_dup): Likewise.
5067 (regcache_dup_no_passthrough): Likewise.
5068 (current_regcache): Make static.
5069 (registers_ptid): Remove variable.
5070 (get_thread_regcache): New function.
5071 (get_current_regcache): New function.
5072 (registers_changed): Implement by freeing current regcache.
5073 (regcache_raw_read): Do not refer to current_regcache. Set
5074 inferior_ptid to regcache->ptid while calling target routines.
5075 (regcache_raw_write): Likewise.
5076 (regcache_raw_supply): Do not refer to current_regcache.
5077 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5078 (write_pc_pid): Likewise.
5079 (build_regcache): Remove.
5080 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5081 or deprecated_register_gdbarch_swap. Do not initialize
5083 * regcache.h (get_current_regcache): Add prototype.
5084 (get_thread_regcache): Likewise.
5085 (current_regcache): Remove declaration.
5087 * corelow.c (core_open): Replace current_regcache by
5088 get_current_regcache ().
5089 * frame.c (frame_pop): Likewise.
5090 (put_frame_register): Likewise.
5091 (get_current_frame, create_new_frame): Likewise.
5092 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5093 * stack.c (return_command): Likewise.
5094 * infcall.c (call_function_by_hand): Likewise.
5095 * infrun.c (resume): Likewise.
5096 (save_inferior_status, restore_inferior_status): Likewise.
5097 * linux-fork.c (fork_load_infrun_state): Likewise.
5098 (fork_save_infrun_state): Likewise.
5099 * win32-nat.c (win32_resume): Likewise.
5100 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5101 * monitor.c (monitor_wait): Likewise.
5102 * remote.c (remote_wait): Likewise.
5103 * remote-mips.c (mips_wait): Likewise.
5105 * bsd-kvm.c (bsd_kvm_open): Likewise
5106 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5107 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5108 * i386-linux-nat.c (i386_linux_resume): Likewise.
5109 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5110 (ia64_linux_stopped_data_address): Likewise.
5112 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5113 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5114 * mep-tdep.c (current_me_module, current_options): Likewise.
5115 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5117 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5118 regcache instead of current_regcache. Call target_fetch_registers.
5119 (linux_nat_corefile_thread_callback): Update call site.
5120 (linux_nat_do_registers): Likewise.
5121 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5122 of current_regcache.
5123 (procfs_make_note_section): Likewise.
5124 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5125 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5126 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5127 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5131 * regcache.c (read_register, read_register_pid): Remove.
5132 (write_register, write_register_pid): Likewise.
5133 * regcache.h (read_register, read_register_pid): Remove prototype.
5134 (write_register, write_register_pid): Likewise.
5138 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5139 (write_pc): Likewise. Remove default implementation, add predicate.
5140 * gdbarch.c, gdbarch.h: Regenerate.
5141 * regcache.c (read_pc_pid): Use current regcache instead of calling
5143 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5145 (generic_target_write_pc): Remove.
5146 * inferior.h (generic_target_write_pc): Remove.
5147 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5149 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5150 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5151 * sh-tdep.c (sh_gdbarch_init): Likewise.
5152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5154 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5155 argument. Use REGCACHE instead of calling read_register_pid.
5156 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5157 * hppa-tdep.c (hppa_read_pc): Likewise.
5158 * hppa-tdep.h (hppa_read_pc): Likewise.
5159 * ia64-tdep.c (ia64_read_pc): Likewise.
5160 * m32r-tdep.c (m32r_read_pc): Likewise.
5161 * mep-tdep.c (mep_read_pc): Likewise.
5162 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5163 * spu-tdep.c (spu_read_pc): Likewise.
5165 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5166 argument. Use REGCACHE instead of calling write_register_pid.
5167 * avr-tdep.c (avr_write_pc): Likewise.
5168 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5169 * hppa-tdep.c (hppa_write_pc): Likewise.
5170 * hppa-tdep.h (hppa_write_pc): Likewise.
5171 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5172 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5173 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5174 * ia64-tdep.c (ia64_write_pc): Likewise.
5175 * ia64-tdep.h (ia64_write_pc): Likewise.
5176 * m32r-tdep.c (m32r_write_pc): Likewise.
5177 * m88k-tdep.c (m88k_write_pc): Likewise.
5178 * mep-tdep.c (mep_write_pc): Likewise.
5179 * mips-tdep.c (mips_write_pc): Likewise.
5180 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5181 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5182 * sparc-tdep.c (sparc_write_pc): Likewise.
5183 * spu-tdep.c (spu_write_pc): Likewise.
5185 * mips-tdep.c (read_signed_register): Remove.
5186 (read_signed_register_pid): Likewise.
5187 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5188 Use REGCACHE instead of calling read_signed_register_pid.
5192 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5193 * gdbarch.c, gdbarch.h: Regenerate.
5194 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5195 (push_dummy_code): Likewise. Pass it to callee.
5196 (call_function_by_hand): Pass current regcache to push_dummy_code.
5198 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5199 argument. Use it instead of current_regcache.
5201 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5202 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5206 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5207 * gdbarch.c, gdbarch.h: Regenerate.
5208 * infrun.c (handle_inferior_event): Pass current frame to
5209 gdbarch_get_longjmp_target.
5211 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5212 Read registers from FRAME instead of using read_register.
5213 Use get_frame_arch instead of current_gdbarch.
5214 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5215 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5216 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5217 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5218 (mips64_linux_get_longjmp_target): Likewise.
5219 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5223 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5224 * gdbarch.c, gdbarch.h: Regenerate.
5225 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5226 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5227 * infrun.c (handle_inferior_event): Pass current frame to
5228 gdbarch_skip_trampoline_code and skip_language_trampoline.
5230 * language.c (unk_lang_trampoline): Add FRAME argument.
5231 (skip_language_trampoline): Add FRAME argument. Pass it to
5232 skip_trampoline callback.
5233 * language.h: Add forward declaration of struct frame_info.
5234 (struct language_defn): Add FRAME argument to skip_trampoline.
5235 (skip_language_trampoline): Add FRAME argument.
5236 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5237 to skip_trampoline callback.
5238 * cp-abi.h: Add forward declaration of struct frame_info.
5239 (cplus_skip_trampoline): Add FRAME argument.
5240 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5241 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5242 to gdbarch_skip_trampoline_code.
5243 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5244 to gdbarch_skip_trampoline_code.
5246 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5247 * symtab.h (find_solib_trampoline_target): Likewise.
5248 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5249 find_solib_trampoline_target.
5251 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5252 from FRAME instead of calling read_register.
5254 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5255 argument. Read registers from FRAME instead of using read_register.
5256 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5257 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5259 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5262 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5264 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5265 registers from FRAME instead of using read_signed_register.
5267 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5269 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5270 instead of using read_register.
5271 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5272 ppc64_standard_linkage_target.
5273 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5274 Pass it to find_solib_trampoline_target. Read registers from FRAME
5275 instead of using read_register.
5277 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5282 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5284 * gdbarch.c, gdbarch.h: Regenerate.
5285 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5287 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5288 registers from FRAME instead of using read_register.
5289 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5290 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5291 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5294 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5295 from FRAME instead of using read_register.
5296 (thumb_get_next_pc): Likewise.
5297 (arm_get_next_pc): Likewise.
5298 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5299 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5300 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5303 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5304 from FRAME instead of using read_register.
5305 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5306 to find_step_target.
5308 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5309 from FRAME instead of using read_register / read_signed_register.
5310 (extended_mips16_next_pc): Likewise.
5311 (mips16_next_pc): Likewise.
5312 (mips_next_pc): Likewise.
5313 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5314 to mips_next_pc. Use get_frame_pc instead of read_pc.
5315 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5318 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5319 of current frame. Read registers from FRAME.
5320 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5321 branch_dest. Use get_frame_pc instead of read_pc.
5322 (rs6000_software_single_step): Likewise.
5323 (bl_to_blrl_insn_p): Do not call branch_dest.
5324 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5327 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5328 Read registers from FRAME instead of current regcache.
5329 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5330 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5331 * sparc-tdep.c (sparc_address_from_register): Remove.
5332 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5333 GDBARCH. Pass FRAME to step_trap callback.
5334 (sparc_step_trap): Add FRAME argument.
5335 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5336 to sparc_analyze_control_transfer. Read registers from FRAME instead
5337 of calling sparc_address_from_register.
5338 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5340 (sparc_address_from_register): Remove prototype.
5341 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5342 (sparcnbsd_step_trap): Add FRAME argument.
5344 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5345 by FRAME. Read registers from FRAME instead of REGCACHE.
5349 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5350 instead of calling read_register.
5352 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5353 calling write_register.
5355 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5356 calling write_register.
5358 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5359 instead of calling read_register.
5360 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5361 instead of calling read_register and write_register.
5363 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5364 instead of current_regcache.
5366 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5367 of calling write_register.
5368 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5369 parameter instead of current_regcache.
5371 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5372 instead of calling read_register.
5373 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5374 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5375 (mips_n32n64_push_dummy_call): Likewise.
5376 (mips_o32_push_dummy_call): Likewise.
5377 (mips_o64_push_dummy_call): Likewise.
5379 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5380 parameter instead of current_regcache.
5382 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5383 Use it instead of read_register and write_register.
5384 (xtensa_register_read_masked): Likewise.
5385 (xtensa_pseudo_register_read): Update call.
5386 (xtensa_pseudo_register_write): Likewise.
5387 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5388 instead of calling read_register.
5389 (xtensa_push_dummy_call): Update comment.
5393 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5394 by frame_unwind_register_signed calls.
5395 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5396 frame allocations when called with NULL NEXT_FRAME parameter.
5397 (read_next_frame_reg): Remove.
5399 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5400 instead of reading the FPSCR register.
5401 (sh_frame_cache): Pass unwound FPSCR register value to
5402 sh_analyze_prologue.
5403 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5405 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5406 instead of reading the CTBP register.
5407 (v850_frame_cache): Pass unwound CTBP register value to
5408 v850_analyze_prologue.
5412 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5413 * sh-tdep.c (sh_show_regs): Likewise.
5414 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5415 (sh_generic_show_regs): Add FRAME parameter. Use register
5416 values from that frame instead of calling read_register.
5417 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5418 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5419 sh_dsp_show_regs): Likewise.
5420 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5421 sh64_show_regs): Likewise.
5425 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5426 current regcache instead of calling read_register.
5430 * mep-tdep.c (current_me_module): Read from current regcache
5431 instead of calling read_register.
5432 (current_options): Likewise.
5436 * cris-tdep.c (cris_stopped_data_address): Read register values
5437 from current frame instead of calling read_register.
5438 * frv-tdep.c (frv_stopped_data_address): Likewise.
5442 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5443 instead of write_register (PC_REGNUM, ...).
5447 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5448 explaining why the PC adjustment code is necessary.
5452 * m68k-tdep.h (enum m68k_flavour): New.
5453 (struct gdbarch_tdep): New fields
5454 float_return, flavour and fpregs_present.
5455 * m68k-tdep.c (m68k_register_type): Use
5456 fpregs_present and conditionalize floating
5457 registers type on flavour.
5458 (m68k_register_names): New.
5459 (m68k_register_name): Use the above.
5460 (m68k_convert_register_p): Consult fpregs_present.
5461 (m68k_register_to_value, m68k_value_to_register):
5462 Use register_type to obtain the type of floating
5464 (m68k_svr4_extract_return_value): Check tdep->float_return.
5465 Use register_type to get the type of floating
5467 (m68k_svr4_store_return_value): Likewise.
5468 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5469 (m68k_analyze_register_saves): Likewise.
5470 (m68k_gdbarch_init): Extract infromation
5471 from XML description, if present. Guess coldfire by
5472 looking at the file, if present. Conditionalize
5473 setting of long double format. Set decr_pc_after_break
5474 to 2 on coldfire and fido. Enable XML-driven
5475 register description.
5476 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5477 size of tdep->fpreg_type, as opposed to hardcoded value.
5478 * Makefile.in (m68k-tdep.o): Update dependencies.
5482 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5483 qXfer:spu:write remote packet types.
5487 * xml-tdesc.c (tdesc_start_target): New.
5488 (target_attributes): New.
5489 (tdesc_elements): Use it.
5490 * features/gdb-target.dtd: Add #FIXED version attribute for
5495 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5499 * fork-child.c (fork_inferior): Update comment.
5503 * features/Makefile: Generate regformats for mips-linux and
5505 * features/sort-regs.xsl: Correct typo.
5506 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5507 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5512 * config/mips/linux.mh (TDEP_XML): New.
5513 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5514 * mips-linux-nat.c (mips_linux_register_addr): Handle
5515 MIPS_RESTART_REGNUM.
5516 (mips64_linux_register_addr): Likewise.
5517 (super_xfer_partial, mips_linux_xfer_partial): New.
5518 (_initialize_mips_linux_nat): Add them to the target_ops.
5519 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5520 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5521 (mips_linux_o32_sigframe_init)
5522 (mips_linux_n32n64_sigframe_init): Likewise.
5523 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5524 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5525 "org.gnu.gdb.mips.linux" feature.
5526 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5527 (mips_linux_restart_reg_p): New prototype.
5528 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5529 initialization routine.
5530 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5534 * Makefile.in (mips-tdep.o): Update.
5535 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5536 (mips_n32_n64_aliases, mips_register_aliases): New.
5537 (mips_register_name): Call tdesc_register_name.
5538 (mips_tdesc_register_reggroup_p): New.
5539 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5540 (mips_gdbarch_init): Add target-described register support.
5541 Register aliases for register names.
5542 * target-descriptions.c (tdesc_register_name): Make global.
5543 (tdesc_register_in_reggroup_p): New function, broken out from
5544 tdesc_register_reggroup_p.
5545 (tdesc_register_reggroup_p): Use it.
5546 * target-descriptions.h (tdesc_register_name)
5547 (tdesc_register_in_reggroup_p): New prototypes.
5548 * NEWS: Correct formatting. Mention MIPS register support.
5549 * features/mips-cp0.xml, features/mips-fpu.xml,
5550 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5551 features/mips64-cpu.xml: New files.
5555 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5556 * valops.c (value_cast): Likewise.
5557 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5558 * ui-out.c (ui_out_field_core_addr): Likewise.
5559 * tracepoint.c (tracepoints_info): Likewise.
5560 * symtab.c (print_msymbol_info): Likewise.
5561 * solib-irix.c (irix_current_sos)
5562 (irix_open_symbol_file_object): Likewise.
5563 * remote.c (build_remote_gdbarch_data): Likewise.
5564 * prologue-value.c (make_pv_area): Likewise.
5565 * procfs.c (info_mappings_callback): Likewise.
5566 * printcmd.c (print_scalar_formatted)
5567 (deprecated_print_address_numeric): Likewise.
5568 * memattr.c (mem_info_command): Likewise.
5569 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5570 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5571 * exec.c (print_section_info): Likewise.
5572 * dwarf2read.c (read_subrange_type): Likewise.
5573 * dwarf2loc.c (find_location_expression): Likewise.
5574 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5575 (signed_address_type, execute_stack_op): Likewise.
5576 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5577 * gdbarch.c, gdbarch.h: Regenerate.
5581 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5582 * arch-utils.c (show_architecture): Likewise.
5583 * remote-mips.c (mips_open): Likewise
5584 * nto-tdep.c (nto_find_and_open_solib)
5585 (nto_init_solib_absolute_prefix): Likewise.
5586 * nto-procfs (procfs_open): Likewise.
5587 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5588 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5589 * gdbarch.c, gdbarch.h: Regenerate.
5593 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5594 * gdbtypes.c (build_flt): Likewise.
5595 * gdbarch.c, gdbarch.h: Regenerate.
5599 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5600 gdbarch_breakpoint_from_pc.
5601 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5602 * remote.c (remote_insert_breakpoint)
5603 (remote_insert_hw_breakpoint): Likewise.
5604 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5605 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5606 * breakpoint.h (bp_target_info): Likewise (comment).
5607 * breakpoint.c (read_memory_nobpt): Likewise.
5608 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5609 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5610 * gdbarch.c, gdbarch.h: Regenerate.
5614 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5615 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5616 * solib-pa64.c (read_dynamic_info): Likewise.
5617 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5618 * solib.c (info_sharedlibrary_command): Likewise.
5619 * s390-nat.c (SUBOFF): Likewise.
5620 * p-valprint.c (pascal_val_print): Likewise.
5621 * procfs.c (info_proc_mappings): Likewise.
5622 * printcmd.c (decode_format): Likewise.
5623 * nto-tdep.c (nto_truncate_ptr): Likewise.
5624 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5625 (mips64_linux_get_longjmp_target): Likewise.
5626 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5627 * jv-valprint.c (java_value_print): Likewise.
5628 * jv-lang.c (get_java_object_header_size): Likewise.
5629 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5630 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5631 (hppa_hpux_unwind_adjust_stub): Likewise.
5632 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5633 * gdbtypes.c (make_pointer_type, make_reference_type)
5634 (smash_to_memberptr_type): Likewise.
5635 * gdbarch.c, gdbarch.h: Regenerate.
5639 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5640 (print_gp_register_row): Stop before printing a register bigger
5641 than the ABI register size.
5642 (mips_print_registers_info): Update call to mips_print_register.
5646 * expression.h (enum exp_opcode): Document a register name for
5648 * parse.c (write_dollar_variable): Write the register name for
5650 (operator_length_standard): Expect the register name following
5652 * ada-lang.c (resolve_subexp): Likewise.
5653 * ax-gdb.c (gen_expr): Likewise.
5654 * eval.c (evaluate_subexp_standard): Likewise.
5655 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5657 * tracepoint.c (encode_actions): Likewise.
5661 * utils.c (set_screen_size): Use INT_MAX for default columns.
5665 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5666 qXfer:spu:write packet types.
5670 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5671 * gdbarch.c, gdbarch.h: Regenerate.
5675 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5676 gdbarch_stab_reg_to_regnum.
5677 * stabsread.c (define_symbol): Likewise.
5678 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5679 gdbarch_ecoff_reg_to_regnum.
5680 * mdebugread.c (parse_symbol): Likewise.
5681 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5682 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5683 gdbarch_dwarf_reg_to_regnum.
5684 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5685 * coffread.c (process_coff_symbol): Likewise.
5686 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5687 gdbarch_dwarf2_reg_to_regnum.
5688 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5689 (locexpr_describe_location): Likewise.
5690 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5691 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5692 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5693 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5694 * gdbarch.c, gdbarch.h: Regenerate.
5698 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5699 gdbarch_smash_text_address.
5700 * somread.c (som_symtab_read): Likewise.
5701 * elfread.c (record_minimal_symbol): Likewise.
5702 * dbxread.c (process_one_symbol): Likewise.
5703 * coffread.c (coff_symtab_read): Likewise.
5704 * gdbarch.c, gdbarch.h: Regenerate.
5708 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5709 * findvar.c (value_from_register): Likewise.
5710 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5711 * valops.c (value_assign): Likewise.
5712 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5713 gdbarch_convert_register_p.
5714 * findvar.c (value_from_register): Likewise.
5715 * valops.c (value_assign): Likewise.
5716 * gdbarch.c, gdbarch.h: Regenerate.
5720 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5721 gdbarch_register_sim_regno.
5722 * sim-regno.h (sim_regno): Likewise (comment).
5723 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5724 * gdbarch.c, gdbarch.h: Regenerate.
5728 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5729 gdbarch_virtual_frame_pointer.
5730 * tracepoint.c (encode_actions): Likewise.
5731 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5732 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5733 * gdbarch.c, gdbarch.h: Regenerate.
5737 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5738 * p-lang.c (pascal_create_fundamental_type): Likewise.
5739 * objc-lang.c (objc_create_fundamental_type): Likewise.
5740 * mdebugread.c (_initialize_mdebugread): Likewise.
5741 * m2-lang.c (m2_create_fundamental_type)
5742 (_initialize_m2_language): Likewise.
5743 * gdbtypes.c (build_gdbtypes): Likewise.
5744 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5745 * doublest.c (floatformat_from_length): Likewise.
5746 * c-lang.c (c_create_fundamental_type): Likewise.
5747 * ada-lang.c (ada_create_fundamental_type)
5748 (ada_language_arch_info): Likewise.
5749 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5750 * value.c (unpack_double): Likewise (comment).
5751 * gdbtypes.c (build_gdbtypes): Likewise.
5752 * doublest.c (floatformat_from_length): Likewise.
5753 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5754 * valarith.c (value_binop): Likewise.
5755 * p-lang.c (pascal_create_fundamental_type): Likewise.
5756 * objc-lang.c (objc_create_fundamental_type): Likewise.
5757 * mdebugread.c (_initialize_mdebugread): Likewise.
5758 * m2-lang.c (m2_create_fundamental_type): Likewise.
5759 * gdbtypes.c (build_gdbtypes): Likewise.
5760 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5761 * doublest.c (floatformat_from_length): Likewise.
5762 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5763 * c-lang.c (c_create_fundamental_type): Likewise.
5764 * ada-lex.l (processReal): Likewise.
5765 * ada-lang.c (ada_create_fundamental_type)
5766 (ada_language_arch_info): Likewise.
5767 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5768 * value.c (unpack_double): Likewise (comment).
5769 * gdbtypes.c (build_gdbtypes): Likewise.
5770 * doublest.c (floatformat_from_length): Likewise.
5771 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5772 gdbarch_long_double_bit.
5773 * p-lang.c (pascal_create_fundamental_type): Likewise.
5774 * objc-lang.c (objc_create_fundamental_type): Likewise.
5775 * m2-lang.c (m2_create_fundamental_type): Likewise.
5776 * gdbtypes.c (build_gdbtypes): Likewise.
5777 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5778 * doublest.c (floatformat_from_length): Likewise.
5779 * c-lang.c (c_create_fundamental_type): Likewise.
5780 * ada-lex.l (processReal): Likewise.
5781 * ada-lang.c (ada_create_fundamental_type)
5782 (ada_language_arch_info): Likewise.
5783 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5784 gdbarch_long_double_format.
5785 * gdbtypes.c (build_gdbtypes): Likewise.
5786 * doublest.c (floatformat_from_length): Likewise.
5787 * gdbarch.c, gdbarch.h: Regenerate.
5791 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5792 * ada-lang.c (ada_create_fundamental_type)
5793 (ada_language_arch_info): Likewise.
5794 * c-lang.c (c_create_fundamental_type): Likewise.
5795 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5796 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5797 * m2-lang.c (m2_create_fundamental_type): Likewise.
5798 * objc-lang.c (objc_create_fundamental_type): Likewise.
5799 * p-lang.c (pascal_create_fundamental_type): Likewise.
5800 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5801 * c-exp.y (parse_number): Likewise.
5802 * objc-exp.y (parse_number): Likewise.
5803 * ada-lex.l (processInt): Likewise.
5804 * f-exp.y (parse_number): Likewise.
5805 * p-exp.y (parse_number): Likewise.
5806 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5807 (gdbtypes_post_init, build_gdbtypes): Likewise.
5808 * p-lang.c (pascal_create_fundamental_type): Likewise.
5809 * parse.c (build_parse): Likewise.
5810 * xcoffread.c (_initialize_xcoffread): Likewise.
5811 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5812 (read_range_type): Likewise.
5813 * objc-lang.c (objc_create_fundamental_type): Likewise.
5814 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5815 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5816 (m2_create_fundamental_type): Likewise.
5817 * c-lang.c (c_create_fundamental_type): Likewise.
5818 * coffread.c (coff_read_enum_type): Likewise.
5819 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5820 * dwarf2read.c (new_symbol): Likewise.
5821 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5822 * c-exp.y (parse_number): Likewise.
5823 * objc-exp.y (parse_number): Likewise.
5824 * ada-lex.l (processInt): Likewise.
5825 * f-exp.y (parse_number): Likewise.
5826 * p-exp.y (parse_number): Likewise.
5827 * valarith.c (value_binop): Likewise.
5828 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5829 * ada-lang.c (ada_create_fundamental_type)
5830 (ada_language_arch_info): Likewise.
5831 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5832 * symfile.c (TARGET_LONG_BYTES): Likewise.
5833 * p-lang.c (pascal_create_fundamental_type): Likewise.
5834 * objc-lang.c (objc_create_fundamental_type): Likewise.
5835 * m2-lang.c (m2_create_fundamental_type): Likewise.
5836 * f-lang.c (f_create_fundamental_type): Likewise.
5837 * c-lang.c (c_create_fundamental_type): Likewise.
5838 * coffread.c (decode_base_type): Likewise.
5839 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5840 * c-exp.y (parse_number): Likewise.
5841 * objc-exp.y (parse_number): Likewise.
5842 * p-exp.y (parse_number): Likewise.
5843 * ada-lang.c (ada_create_fundamental_type)
5844 (ada_language_arch_info): Likewise.
5845 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5846 * stabsread.c (read_range_type): Likewise.
5847 * p-lang.c (pascal_create_fundamental_type): Likewise.
5848 * objc-lang.c (objc_create_fundamental_type): Likewise.
5849 * m2-lang.c (m2_create_fundamental_type): Likewise.
5850 * f-lang.c (f_create_fundamental_type): Likewise.
5851 * c-lang.c (c_create_fundamental_type): Likewise.
5852 * gdbarch.c, gdbarch.h: Regenerate.
5856 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5857 (struct frame_unwind): Add dealloc_cache.
5858 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5860 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5861 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5862 (libunwind_frame_unwind): Set dealloc_cache.
5863 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5868 * remote.c (remote_write_qxfer): New function.
5869 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5870 (remote_read_qxfer): Do not cache empty objects.
5871 (_initialize_remote): Add PACKET_qXfer_spu_read and
5872 PACKET_qXfer_spu_write.
5876 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5877 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5879 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5880 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5881 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5882 * spu-tdep.c (infospucmdlist): New variable.
5883 (spu_register_name): Handle additional pseudo registers.
5884 (spu_register_type): Likewise.
5885 (spu_pseudo_register_read): Likewise.
5886 (spu_pseudo_register_write): Likewise.
5887 (spu_pseudo_register_read_spu): New function.
5888 (spu_pseudo_register_write_spu): Likewise.
5889 (info_spu_event_command): New function.
5890 (info_spu_signal_command): Likewise.
5891 (info_spu_mailbox_list): Likewise.
5892 (info_spu_mailbox_command): Likewise.
5893 (spu_mfc_get_bitfield): Likewise.
5894 (info_spu_dma_cmdlist): Likewise.
5895 (info_spu_dma_command): Likewise.
5896 (info_spu_proxydma_command): Likewise.
5897 (info_spu_command): Likewise.
5898 (_initialize_spu_tdep): Install "info spu" commands.
5902 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5903 accessing non-seekable spufs files.
5907 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5908 gdbarch_skip_trampoline_code.
5909 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5910 * objc-lang.c (objc_skip_trampoline)
5911 (objc_submethod_helper_data): Likewise.
5912 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5913 * infrun.c (handle_inferior_event): Likewise.
5914 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5915 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5916 gdbarch_in_solib_return_trampoline.
5917 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5918 * infrun.c (handle_inferior_event): Likewise.
5919 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5920 * gdbarch.c, gdbarch.h: Regenerate.
5924 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5925 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5926 * linespec.c (minsym_found): Likewise.
5927 * infrun.c (step_into_function): Likewise.
5928 * gdbarch.c, gdbarch.h: Regenerate.
5932 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5933 * valops.c (value_allocate_space_in_inferior): Likewise.
5934 * gdbarch.c, gdbarch.h: Regenerate.
5938 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5939 gdbarch_memory_insert_breakpoint.
5940 * mem-break.c (memory_insert_breakpoint): Likewise.
5941 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5942 gdbarch_memory_remove_breakpoint.
5943 * mem-break.c (memory_remove_breakpoint): Likewise.
5944 * gdbarch.c, gdbarch.h: Regenerate.
5948 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5949 gdbarch_fetch_tls_load_module_address.
5950 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5951 gdbarch_fetch_tls_load_module_address_p.
5952 * gdbarch.c, gdbarch.h: Regenerate.
5956 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5957 gdbarch_decr_pc_after_break.
5958 * tracepoint.c (trace_dump_command): Likewise.
5959 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5960 * linux-thread-db.c (check_event): Likewise.
5961 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5962 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5963 * frame.h: Likewise (comment).
5964 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5965 * aix-thread.c (aix_thread_wait): Likewise.
5966 * gdbarch.c, gdbarch.h: Regenerate.
5970 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5971 gdbarch_address_class_type_flags.
5972 * dwarf2read.c (read_tag_pointer_type): Likewise.
5973 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5974 gdbarch_address_class_type_flags_p.
5975 * dwarf2read.c (read_tag_pointer_type): Likewise.
5976 * gdbarch.c, gdbarch.h: Regenerate.
5980 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5981 * value.c (value_as_address): Likewise (comment).
5982 * remote-mips.c (common_breakpoint): Likewise.
5983 * regcache.c (read_pc_pid): Likewise.
5984 * printcmd.c (do_one_display): Likewise.
5985 * monitor.c (monitor_write_memory, monitor_read_memory)
5986 (monitor_insert_breakpoint): Likewise.
5987 * mips-tdep.c (heuristic_proc_start): Likewise.
5988 * infrun.c (insert_step_resume_breakpoint_at_frame)
5989 (insert_step_resume_breakpoint_at_caller): Likewise.
5990 * buildsym.c (record_line): Likewise.
5991 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5992 (arm_get_next_pc): Likewise.
5993 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5994 (store_regs): Likewise.
5995 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5996 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5997 * gdbarch.c, gdbarch.h: Regenerate.
6001 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6002 * tracepoint.c (scope_info): Likewise.
6003 * target.c (debug_print_register): Likewise.
6004 * stack.c (frame_info): Likewise.
6005 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6006 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6007 (sh64_media_print_registers_info)
6008 (sh64_compact_print_registers_info): Likewise.
6009 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6010 * remote-sim.c (gdbsim_fetch_register): Likewise.
6011 * remote.c (packet_reg): Likewise (comment).
6012 * reggroups.c (default_register_reggroup_p): Likewise.
6013 * regcache.c (regcache_dump): Likewise.
6014 * printcmd.c (address_info): Likewise.
6015 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6016 * mt-dep.c (mt_registers_info): Likewise.
6017 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6018 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6019 (mips_read_fp_register_double, mips_print_fp_register)
6020 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6021 (mips_register_sim_regno): Likewise.
6022 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6023 * inf-ptrace.c (inf_ptrace_fetch_register)
6024 (inf_ptrace_store_register): Likewise.
6025 * infcmd.c (default_print_registers_info): Likewise.
6026 * ia64-linux-nat.c (ia64_linux_fetch_register)
6027 (ia64_linux_store_register): Likewise.
6028 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6029 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6030 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6031 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6032 (hppa_hpux_store_register): Likewise.
6033 * findvar.c (locate_var_value): Likewise.
6034 * dwarf2loc.c (locexpr_describe_location): Likewise.
6035 * dwarf2-frame.c (execute_cfa_program): Likewise.
6036 * arm-tdep.c (arm_push_dummy_call): Likewise.
6037 * arch-utils.c (legacy_register_sim_regno): Likewise.
6038 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6039 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6040 * mi/mi-main.c (mi_cmd_data_list_register_names)
6041 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6042 (mi_cmd_data_write_register_values): Likewise.
6043 * gdbarch.c, gdbarch.h: Regenerate.
6047 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6051 * remote.c (process_g_packet): Don't check size.
6052 * gdbarch.sh: Remove register_bytes_ok.
6053 * gdbarch.c: Regenerated.
6054 * gdbarch.h: Regenerated.
6055 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6056 (m68k_register_bytes_ok): Remove.
6057 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6061 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6062 (destroy_addr_space_name): Define.
6063 (libunwind_load): Get address of destroy_addr_space function.
6064 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6065 returning unsuccessfully.
6066 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6068 (libunwind_sigtramp_frame_sniffer): Likewise.
6069 (libunwind_get_reg_special): Likewise.
6073 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6074 gdbarch_fetch_pointer_argument.
6075 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6076 * gdbarch.c, gdbarch.h: Regenerate.
6080 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6081 gdbarch_have_nonsteppable_watchpoint.
6082 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6083 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6084 gdbarch_cannot_step_breakpoint.
6085 * infrun.c (resume): Likewise.
6086 * gdbarch.c, gdbarch.h: Regenerate.
6090 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6091 * stack.c (print_frame_args): Likewise.
6092 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6093 * stack.c (print_args_stub, frame_info): Likewise.
6094 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6095 * stack.c (print_args_stub, frame_info): Likewise.
6096 * gdbarch.c, gdbarch.h: Regenerate.
6100 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6101 gdbarch_coff_make_msymbol_special.
6102 * coffread.c (coff_symtab_read): Likewise.
6103 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6104 gdbarch_elf_make_msymbol_special.
6105 * elfread.c (elf_symtab_read): Likewise.
6106 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6107 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6108 * gdbarch.c, gdbarch.h: Regenerate.
6112 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6113 gdbarch_frame_red_zone_size.
6114 * gdbarch.c, gdbarch.h: Regenerate.
6118 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6119 * infcall.c (call_function_by_hand): Likewise.
6120 * gcore.c (derive_stack_segment): Likewise.
6121 * frame.c (frame_id_inner): Likewise.
6122 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6123 * ada-lang.c (ensure_lval): Likewise.
6124 * gdbarch.c, gdbarch.h: Regenerate.
6128 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6129 gdbarch_address_to_pointer.
6130 * findvar.c (store_typed_address): Likewise.
6131 * gdbtypes.c (make_pointer_type): Likewise (comment).
6132 * procfs.c (procfs_address_to_host_pointer): Likewise.
6133 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6134 (value_of_builtin_frame_fp_reg): Likewise.
6135 (value_of_builtin_frame_pc_reg): Likewise.
6136 * utils.c (paddress): Likewise (comment).
6137 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6138 gdbarch_pointer_to_address.
6139 * findvar.c (extract_typed_address): Likewise.
6140 * gdbtypes.c (make_pointer_type): Likewise (comment).
6141 * valops.c (value_cast): Likewise (comment).
6142 * gdbarch.c, gdbarch.h: Regenerate.
6146 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6147 * infrun.c (handle_inferior_event): Likewise.
6148 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6149 gdbarch_get_longjmp_target_p.
6150 * breakpoint.c (breakpoint_re_set): Likewise.
6151 * infrun.c (handle_inferior_event): Likewise.
6152 * gdbarch.c, gdbarch.h: Regenerate.
6156 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6157 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6158 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6159 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6160 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6161 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6162 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6163 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6164 current_ex_event, child_get_current_exception_event): Remove.
6165 (hppa_hpux_inferior_created): Remove.
6166 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6168 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6169 (deprecated_exception_support_initialized): Remove.
6170 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6171 (deprecated_exception_support_initialized): Remove.
6172 (breakpoint_init_inferior): Remove handling of non-zero
6173 deprecated_exception_catchpoints_are_fragile.
6175 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6176 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6177 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6178 deprecated_hp_som_som_object_present.
6179 * eval.c (evaluate_subexp_standard): Likewise.
6180 * valops.c (value_cast): Likewise.
6182 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6183 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6184 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6188 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6189 (struct objfile): Remove import_list, import_list_size,
6190 export_list, export_list_size members.
6191 (is_in_import_list): Remove prototype.
6192 * objfiles.c (is_in_import_list): Remove.
6193 * somread.c (init_import_symbols, init_export_symbols): Remove.
6194 (som_symfile_read): Do not call init_import_symbols. Do not
6195 set objfile->export_list and objfile->export_list_size.
6199 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6200 Use the original objfile if necessary.
6204 * defs.h (ldirname): New prototype.
6205 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6207 * utils.c (ldirname): New function.
6208 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6212 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6216 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6220 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6224 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6225 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6226 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6227 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6228 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6229 ppc_linux_at_sigtramp_return_path): Remove.
6233 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6234 (xtensa_register_write_masked, xtensa_register_read_masked)
6235 (xtensa_extract_return_value, xtensa_store_return_value
6236 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6237 TARGET_BYTE_ORDER by gdbarch_byte_order.
6238 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6239 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6240 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6241 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6242 (sh64_push_dummy_call, sh64_extract_return_value)
6243 (sh64_store_return_value, sh64_register_convert_to_virtual)
6244 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6245 (sh64_pseudo_register_write, sh64_do_fp_register)
6246 (sh64_frame_prev_register): Likewise.
6247 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6248 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6249 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6250 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6251 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6252 * ppc-linux-nat.c (store_register): Likewise.
6253 * nto-tdep.c (nto_find_and_open_solib)
6254 (nto_init_solib_absolute_prefix): Likewise.
6255 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6256 (mips_convert_register_p, mips_eabi_push_dummy_call)
6257 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6258 (mips_o32_push_dummy_call, mips_o32_return_value)
6259 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6260 (mips_read_fp_register_single, mips_read_fp_register_double)
6261 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6262 (mips_breakpoint_from_pc): Likewise.
6263 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6264 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6265 (mips_linux_o32_sigframe_init): Likewise.
6266 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6267 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6268 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6269 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6270 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6271 * coffread.c (process_coff_symbol): Likewise.
6272 * arm-tdep.c (convert_from_extended, convert_to_extended)
6273 (gdb_print_insn_arm): Likewise.
6277 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6278 * i386-tdep.c (i386_dbx_reg_to_regnum)
6279 (i386_svr4_reg_to_regnum): Likewise.
6280 * inf-ptrace.c (inf_ptrace_fetch_registers)
6281 (inf_ptrace_store_registers): Likewise.
6282 * corelow.c (get_core_registers): Likewise.
6283 * i386-linux-nat.c (supply_gregset, fill_gregset)
6284 (i386_linux_fetch_inferior_registers)
6285 (i386_linux_store_inferior_registers): Likewise.
6286 * remote.c (init_remote_state,packet_reg_from_regnum)
6287 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6288 (remote_prepare_to_store,store_registers_using_G)
6289 (remote_store_registers,remote_arch_state): Likewise.
6290 * tracepoint.c (encode_actions): Likewise.
6291 * mi/mi-main.c (mi_cmd_data_list_register_names)
6292 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6293 (mi_cmd_data_write_register_values): Likewise.
6294 * tui/tui-regs.c (tui_show_register_group)
6295 (tui_show_register_group): Likewise.
6296 * xtensa-tdep.h (FP_ALIAS): Likewise.
6297 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6298 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6299 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6300 * win32-nat.c (do_win32_fetch_inferior_registers)
6301 (do_win32_store_inferior_registers,fetch_elf_core_registers
6302 * user-regs.h: Likewise (comment).
6303 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6304 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6305 * target-descriptions.h: Likewise (comment).
6306 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6307 * target.c (debug_print_register): Likewise.
6308 * stack.c (frame_info): Likewise.
6309 * stabsread.c (define_symbol): Likewise.
6310 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6311 (sh64_media_print_registers_info)
6312 (sh64_compact_print_registers_info): Likewise.
6313 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6314 * rs6000-nat.c (fetch_register,store_register): Likewise.
6315 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6316 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6317 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6318 * remote-m32r-sdi.c (m32r_fetch_registers)
6319 (m32r_store_registers): Likewise.
6320 * reggroups.c (default_register_reggroup_p): Likewise.
6321 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6322 (regcache_restore,regcache_dump): Likewise.
6323 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6324 * mips-tdep.c (mips_xfer_register,mips_register_name)
6325 (mips_register_reggroup_p,mips_pseudo_register_read)
6326 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6327 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6328 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6329 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6330 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6331 (print_gp_register_row,mips_print_registers_info)
6332 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6333 (mips_register_sim_regno): Likewise.
6334 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6335 (mips_linux_n32n64_sigframe_init): Likewise.
6336 * mips-linux-nat.c (mips_linux_register_addr)
6337 (mips64_linux_register_addr): Likewise.
6338 * findvar.c (value_of_register): Likewise.
6339 * infcmd.c (default_print_registers_info,registers_info)
6340 (print_vector_info,print_float_info): Likewise.
6341 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6342 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6343 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6344 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6345 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6346 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6347 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6348 (ia64_linux_store_registers): Likewise.
6349 * hpux-thread.c (hpux_thread_fetch_registers)
6350 (hpux_thread_store_registers): Likewise.
6351 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6352 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6353 (h8300_register_type): Likewise.
6354 * dwarf2-frame.c (dwarf2_frame_cache)
6355 (dwarf2_frame_state_alloc_regs): Likewise.
6356 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6357 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6358 (crisv32_cannot_store_register,cris_register_name): Likewise.
6359 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6360 * arch-utils.c (legacy_register_sim_regno)
6361 (legacy_virtual_frame_pointer): Likewise.
6362 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6363 * arm-tdep.h: Likewise (comment).
6364 * frv-tdep.c (frv_register_sim_regno): Likewise.
6365 * m68klinux-nat.c (old_fetch_inferior_registers)
6366 (old_store_inferior_registers): Likewise.
6367 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6368 * irix5-nat.c (fetch_core_registers): Likewise.
6369 * hppa-tdep.c (hppa_frame_cache): Likewise.
6370 * hppa-linux-nat.c (hppa_linux_register_addr)
6371 (hppa_linux_fetch_inferior_registers)
6372 (hppa_linux_store_inferior_registers): Likewise.
6373 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6374 (hppa_hpux_store_inferior_registers): Likewise.
6375 * amd64-nat.c (amd64_native_gregset_reg_offset)
6376 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6377 * dbug-rom.c (dbug_regname): Likewise.
6378 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6379 (HARD_PAGE_REGNUM (comment)): Likewise.
6380 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6381 * i386-tdep.c (i386_dbx_reg_to_regnum)
6382 (i386_svr4_reg_to_regnum): Likewise.
6383 * mi/mi-main.c (mi_cmd_data_list_register_names)
6384 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6385 (mi_cmd_data_write_register_values): Likewise.
6386 * gdbarch.c, gdbarch.h: Regenerate.
6387 * tui/tui-regs.c (tui_show_register_group): Likewise.
6388 * xtensa-tdep.h (FP_ALIAS): Likewise.
6389 * user-regs.h: Likewise (comment).
6390 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6391 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6392 * target-descriptions.h: Likewise (comment).
6393 * target.c (debug_print_register): Likewise.
6394 * stack.c (frame_info): Likewise.
6395 * stabsread.c (define_symbol): Likewise.
6396 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6397 (sh64_compact_print_registers_info): Likewise.
6398 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6399 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6400 (regcache_restore,regcache_dump): Likewise.
6401 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6402 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6403 (mips_stab_reg_to_regnum): Likewise.
6404 * findvar.c (value_of_register): Likewise.
6405 * infcmd.c (default_print_registers_info,registers_info)
6406 (print_vector_info,print_float_info): Likewise.
6407 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6408 * h8300-tdep.c (h8300_register_type): Likewise.
6409 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6410 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6411 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6412 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6413 * parse.c: Remove comment.
6414 * gdbarch.c, gdbarch.h: Regenerate
6418 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6419 gdbarch_cannot_fetch_register.
6420 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6421 * hppa-linux-nat.c (fetch_register): Likewise.
6422 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6423 * m68klinux-nat.c (fetch_register): Likewise.
6424 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6426 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6427 gdbarch_cannot_store_register.
6428 * hppa-linux-nat.c (store_register): Likewise.
6429 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6430 * regcache.c (regcache_raw_write): Likewise.
6431 * m68klinux-nat.c (store_register): Likewise.
6432 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6433 * gdbarch.c, gdbarch.h: Regenerate.
6437 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6438 * gdbarch.c, gdbarch.h: Regenerate.
6442 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6443 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6444 * gdbarch.c, gdbarch.h: Regenerate.
6448 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6449 * ax-gdb.c (gen_bitfield_ref): Likewise.
6450 * mi/mi-main.c (get_register): Likewise.
6451 * findvar.c (default_value_from_register, extract_signed_integer)
6452 (extract_unsigned_integer, extract_long_unsigned_integer)
6453 (store_signed_integer, store_unsigned_integer): Likewise.
6454 * regcache.c (regcache_dump): Likewise.
6455 * value.c (lookup_internalvar, value_of_internalvar)
6456 (set_internalvar): Likewise.
6458 * valprint.c (print_binary_chars, print_octal_chars)
6459 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6460 * infcmd.c (default_print_registers_info): Likewise.
6461 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6462 * stabsread.c (define_symbol): Likewise.
6463 * doublest.c (floatformat_from_length, floatformat_from_type)
6464 (extract_typed_floating, store_typed_floating): Likewise.
6465 * gdbarch.c, gdbarch.h: Regenerate.
6469 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6470 gdbarch_call_dummy_location.
6471 * infcall.c (call_function_by_hand): Likewise.
6472 * inferior.h: Change comment.
6473 * arch-utils.c: Change comment.
6474 * gdbarch.c, gdbarch.h: Regenerate.
6478 * solib-aix5.c: Delete.
6479 * Makefile.in (solib-aix5.o): Delete rule.
6483 * breakpoint.h (enum bpstat_what_main_action): Remove
6484 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6485 * infrun.c (process_event_stop_test): Do not check for it.
6490 * ser-unix.c (show_serial_hwflow): New function.
6491 (hardwire_raw): Add hardware flow control support.
6492 (_initialize_ser_hardwire): Add "set/show remoteflow".
6493 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6494 * NEWS: Document the new command.
6498 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6499 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6500 define for i[[3456]]86-*-linux* native configurations.
6501 * config.in, configure: Regenerate.
6505 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6506 a core file. Add comment in the function description.
6510 * c-valprint.c (c_value_print): If the initialized field of the
6511 value struct is 0, print out "[uninitialized]" before the value.
6512 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6513 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6514 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6515 ctx->initialized appropriately. Verify no location op follows
6517 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6518 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6519 set_value_initialized.
6520 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6521 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6522 * value.c (struct value): New field, initialized.
6523 (allocate_value): Initialize new field.
6524 (set_value_initialized): New function.
6525 (value_initialized): New function.
6526 * value.h (value_initialized): New extern declaration.
6527 (set_value_initialized): Likewise.
6531 * MAINTAINERS (Write After Approval): Add self.
6535 * gdbtypes.c (make_reference_type): Preserve the type chain
6536 and set the length of all the variants of the pointer type.
6540 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6541 and set the length of all the variants of the pointer type.
6545 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6547 (mips_o64_push_dummy_call): Reformat a comment.
6551 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6552 (score_prologue_frame_base_address): Return fp to keep gdb print
6553 local variables correctly when debugging information is stabs.
6555 (score_analyze_prologue): For software watchpoint, fetch all the
6556 instructions from range [startaddr, pc] once and identify them locally
6557 to reduce memory access.
6558 (score_malloc_and_get_memblock, score_free_memblock)
6559 (score_adjust_memblock_ptr): New functions.
6560 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6562 (score_target_can_use_watch, score_stopped_by_watch)
6563 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6564 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6565 New functions for remote & local hw-watchpoint and hw-breakpoint.
6569 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6570 declarations as well.
6574 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6575 * config/arm/tm-embed.h: Delete file.
6577 * arm-tdep.h (arm_software_single_step): Declare.
6578 * arm-tdep.c (arm_software_single_step): Make global.
6579 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6581 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6582 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6583 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6584 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6586 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6587 allow defines to be overriden by TM file.
6588 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6589 change default to {0xbe,0xbe}.
6590 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6591 arm_obsd_thumb_be_breakpoint): New global variables.
6592 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6593 tdep->thumb_breakpoint_size.
6594 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6595 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6596 tdep->thumb_breakpoint_size.
6598 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6602 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6605 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6606 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6607 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6608 (mips_abi_regsize): Simplify.
6609 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6610 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6611 (mips_o32_return_value, mips_o64_push_dummy_call)
6612 (mips_o64_return_value): Propogate constant register sizes. Use the
6613 ABI register size instead of mips_stack_argsize.
6614 (mips_dump_tdep): Don't print mips_stack_argsize.
6615 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6620 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6621 * config/mips/tm-linux.h: Delete.
6622 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6623 (mips_linux_in_dynsym_resolve_code): Make static. Use
6624 svr4_in_dynsym_resolve_code.
6625 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6627 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6629 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6630 * Makefile.in (mips-linux-tdep.o): Update.
6631 * solib.c (set_solib_ops): New.
6632 (current_target_so_ops): Update comment.
6633 * solib.h (set_solib_ops): New prototype.
6637 * printcmd.c (do_examine): Fix typos in a comment.
6641 * configure.ac: Allow sysroots to be relocated under $prefix as
6642 well as $exec_prefix.
6643 * configure: Regenerate.
6647 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6648 (offsetof): Do not define.
6649 (find_stub_with_shl_get): Use numerical value 3 instead of
6650 symbolic value TYPE_PROCEDURE.
6654 * gdb_proc_service.h (paddr_t): Delete typedef.
6655 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6656 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6657 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6658 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6659 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6660 * Makefile.in (proc-service.o): Update.
6664 * Makefile.in (mips-tdep.o): Update.
6665 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6670 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6671 instead of store_typed_address.
6672 * value.c (pack_long): New.
6673 (value_from_longest): Use it.
6674 * value.h (pack_long): New prototype.
6678 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6679 DW_EH_PE_signed if appropriate.
6684 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6686 (dwarf_decode_lines): Check for line info without a file.
6690 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6695 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6697 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6699 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6703 * gdbarch.sh (read_sp): Remove.
6704 * gdbarch.c, gdbarch.h: Regenerate.
6705 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6707 * avr-tdep.c (avr_read_sp): Remove.
6708 (avr_unwind_sp): New function.
6709 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6710 * mips-tdep.c (mips_read_sp): Remove.
6711 (mips_unwind_sp): New function.
6712 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6713 * score-tdep.c (score_read_unsigned_register): Remove.
6714 (score_read_sp): Remove.
6715 (score_unwind_sp): New function.
6716 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6720 * buildsym.c (start_subfile): Handle absolute pathnames
6721 while comparing subfile names.
6725 * hppa-hpux-tdep.c: Include "regcache.h".
6726 * hppa-linux-tdep.c: Likewise.
6727 * hppa-tdep.c: Include "gdb_stdint.h".
6728 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6730 * Makefile.in: Update dependencies.
6734 * blockframe.c: Remove obsolete comments.
6735 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6736 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6737 * hppa-tdep.h (enum hppa_regnum): Likewise.
6738 * mips-tdep.h: Likewise.
6739 * m68hc11-tdep.c: Likewise.
6743 * inferior.h (read_sp): Remove prototype.
6744 * regcache.c (read_sp): Remove.
6745 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6746 * infcall.c (call_function_by_hand): Likewise.
6747 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6749 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6753 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6754 instead of read_register and read_register_pid.
6756 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6757 argument instead of PTID. Use regcache functions instead of
6759 (ia64_linux_insert_watchpoint): Update call.
6760 (ia64_linux_stopped_data_address): Use regcache functions
6761 instead of read_register_pid and write_register_pid.
6765 * libunwind-frame.h (struct regcache): Add forward declaration.
6766 (libunwind_get_reg_special): Add REGCACHE argument.
6767 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6768 argument. Pass it to unw_init_remote_p.
6770 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6771 libunwind_get_reg_special.
6772 (ia64_access_reg): Remove "write" case.
6773 (ia64_access_fpreg): Likewise. Read from next_frame passed
6774 as callback argument instead of from current_regcache.
6775 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6776 passed as callback argument instead of from current_regcache.
6777 (ia64_access_rse_fpreg): New function.
6778 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6782 * NEWS: Mention SPU overlay support.
6786 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6790 * breakpoint.c (remove_breakpoint): Do not remove software
6791 breakpoints in unmapped overlay sections.
6795 * spu-tdep.c: Include "observer.h".
6796 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6797 (spu_overlay_data): New variable.
6798 (struct spu_overlay_table): New type.
6799 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6800 spu_overlay_new_objfile): New functions.
6801 (spu_gdbarch_init): Install spu_overlay_update.
6802 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6803 allocate spu_overlay_data objfile data.
6807 * gdbarch.sh (overlay_update): New gdbarch function.
6808 (struct obj_section): Add forward declaration.
6809 * gdbarch.c, gdbarch.h: Regenerate.
6811 * symfile.c (simple_overlay_update): Make global.
6812 (target_overlay_update): Remove variable.
6813 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6814 target_overlay_update.
6815 (overlay_load_command): Likewise.
6816 * symfile.h (struct obj_section): Add forward declaration.
6817 (simple_overlay_update): Add prototype.
6819 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6823 * observer.sh: Add "struct objfile" forward declaration.
6824 * target.h (deprecated_target_new_objfile_hook): Remove.
6825 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6826 (clear_symtab_users): Call observer_notify_new_objfile.
6827 (symbol_file_add_with_addrs_or_offsets): Likewise.
6828 * rs6000-nat.c: Include "observer.h".
6829 (vmap_ldinfo): Call observer_notify_new_objfile.
6830 (xcoff_relocate_core): Likewise.
6831 * remote.c (remote_new_objfile_chain): Remove.
6832 (remote_new_objfile): Do not call remote_new_objfile_chain.
6833 (_initialize_remote): Use observer_attach_new_objfile.
6834 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6835 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6836 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6837 * aix-thread.c: Include "observer.h".
6838 (target_new_objfile_chain): Remove.
6839 (new_objfile): Do not call target_new_objfile_chain.
6840 (_initialize_aix_thread): Use observer_attach_new_objfile.
6841 * hpux-thread.c: Include "observer.h"
6842 (target_new_objfile_chain): Remove.
6843 (hpux_thread_new_objfile): Make static. Do not call
6844 target_new_objfile_chain.
6845 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6846 * linux-thread-db.c: Include "observer.h".
6847 (target_new_objfile_chain): Remove.
6848 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6849 (_initialize_thread_db): Use observer_attach_new_objfile.
6850 * sol-thread.c: Include "observer.h".
6851 (target_new_objfile_chain): Remove.
6852 (sol_thread_new_objfile): Make static. Do not call
6853 target_new_objfile_chain.
6854 (_initialize_sol_thread): Use observer_attach_new_objfile.
6855 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6856 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6861 * gdbarch.sh (remote_translate_xfer_address): Remove.
6862 * gdbarch.h, gdbarch.c: Regenerate.
6863 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6864 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6865 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6866 call gdbarch_remote_translate_xfer_address.
6867 * frv-tdep.c (frv_gdbarch_init): Do not call
6868 set_gdbarch_remote_translate_xfer_address.
6869 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6870 (ia64_gdbarch_init): Do not install it.
6874 * NEWS: Mention change in handling the -tui option.
6878 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6883 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6884 (breakpoint_inserted_here_p): Call it.
6885 (software_breakpoint_inserted_here_p): Likewise.
6889 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6890 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6891 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6892 (inf_ptrace_store_register): Likewise.
6893 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6894 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6896 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6898 * linux-nat.c (linux_trad_target): Adapt parameter list.
6899 * linux-nat.h (linux_trad_target): Likewise.
6901 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6903 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6904 (mips_linux_cannot_store_register): Likewise.
6905 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6906 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6907 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6908 (mips64_linux_register_addr): Likewise.
6909 (mips_linux_register_u_offset): Adapt parameter list. Pass
6910 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6912 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6913 * config/mips/nm-linux.h: Delete file.
6917 * remote.c (remote_detach): Error out if remote can't detach.
6921 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6922 instruction's opcode in the "opcode" variable and declares new
6923 variable "closing_insn".
6928 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6929 whitespace when setting a var_filename.
6933 * main.c (captured_main): Recognize -tui option and print an error
6934 message when the TUI is not configured.
6938 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6939 set removed members.
6940 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6944 * gdbarch.sh (deprecated_store_struct_return): Remove.
6945 * gdbarch.c, gdbarch.h: Regenerate.
6946 * frv-tdep.c (frv_store_struct_return): Remove.
6947 (frv_gdbarch_init): Do not install it.
6951 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6952 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6953 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6957 * spu-linux-nat.c: Include "gdb_stdint.h".
6958 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6959 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6960 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6961 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6962 (spu_child_wait): Mark up string for translation.
6967 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6968 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6969 BC_INSTRUCTION): Define.
6970 (deal_with_atomic_sequence): New function.
6971 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6972 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6973 gdbarch_software_single_step routine.
6977 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6978 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6979 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6980 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6981 spu_child_post_attach, spu_fetch_inferior_registers,
6982 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6983 memory addresses as ULONGEST, not CORE_ADDR.
6987 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6988 * gdbarch.h, gdbarch.c: Regenerate.
6990 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6991 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6992 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6994 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6995 Add REGCACHE argument. Use it instead of read/write_register.
6996 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6998 * config/pa/tm-hppah.h: Delete file.
6999 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7000 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7004 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7005 * NEWS: Mention improved C++ thunk support.
7006 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7007 * cp-abi.c (cplus_skip_trampoline): New.
7008 * cp-abi.h (cplus_skip_trampoline): New prototype.
7009 (struct cp_abi_ops): Add skip_trampoline member.
7010 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7011 (init_gnuv3_ops): Set skip_trampoline.
7015 * rs6000-tdep.c (struct frame_extra_info): Delete.
7019 * linux-thread-db.c: Update some FIXME comments.
7020 (thread_db_xfer_partial): Delete.
7021 (init_thread_db_ops): Do not set to_xfer_partial.
7025 * inftarg.c, infptrace.c: Remove files.
7026 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7027 (inftarg.o, infptrace.o): Remove rules.
7028 * gdbcore.h (register_addr): Remove prototype.
7029 * inferior.h (kill_inferior, store_inferior_registers,
7030 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7031 call_ptrace, pre_fork_inferior): Remove prototypes.
7032 * target.h (child_xfer_memory, child_pid_to_exec_file,
7033 child_core_file_to_sym_file, child_post_attach,
7034 child_post_startup_inferior, child_acknowledge_created_inferior,
7035 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7036 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7037 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7038 child_follow_fork, child_reported_exec_events_per_exec_call,
7039 child_has_exited, child_thread_alive): Remove prototypes.
7043 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7044 (sparc_store_inferior_registers): Likewise.
7045 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7046 (sparc_fetch_inferior_registers): ... this.
7047 (store_inferior_registers): Rename to ...
7048 (sparc_store_inferior_registers): ... this.
7049 (sparc_target): Update callback names.
7050 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7051 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7055 * linux-nat.c (child_post_attach): Rename to ...
7056 (linux_child_post_attach): ... this. Make static.
7057 (child_follow_fork): Rename to ...
7058 (linux_child_follow_fork): ... this. Make static.
7059 (child_insert_fork_catchpoint): Rename to ...
7060 (linux_child_insert_fork_catchpoint): ... this. Make static.
7061 (child_insert_vfork_catchpoint): Rename to ...
7062 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7063 (child_insert_exec_catchpoint): Rename to ...
7064 (linux_child_insert_exec_catchpoint): ... this. Make static.
7065 (child_pid_to_exec_file): Rename to ...
7066 (linux_child_pid_to_exec_file): ... this. Make static.
7068 (linux_handle_extended_wait): Update call.
7069 (linux_xfer_partial): Update callback routine names.
7073 * configure.host (alpha*-*-osf[12]*): Remove support.
7074 * NEWS: Mention removed configurations.
7076 * config/alpha/alpha-osf1.mh: Delete file.
7077 * config/alpha/alpha-osf2.mh: Delete file.
7078 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7080 * config/alpha/nm-osf.h: Delete file.
7081 * config/alpha/nm-osf2.h: Delete file.
7082 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7083 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7084 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7086 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7087 (register_addr, kernel_u_size): Remove.
7088 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7092 * regcache.c (regcache_invalidate): New function.
7093 (register_cached): Remove.
7094 (set_register_cached): Remove.
7095 (deprecated_registers_fetched): Remove.
7096 (registers_changed): Use regcache_invalidate instead
7097 of set_register_cached.
7098 (regcache_raw_read): Update comment.
7100 * regcache.h (regcache_invalidate): Add prototype.
7101 (register_cached): Remove.
7102 (set_register_cached): Remove.
7103 (deprecated_registers_fetched): Remove.
7105 * findvar.c (value_of_register): Do not call register_cached.
7106 * frame.c (frame_register): Likewise.
7107 * tui/tui-regs.c (tui_get_register): Likewise.
7109 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7110 (process_g_packet): Likewise.
7111 (remote_fetch_registers): Likewise.
7112 * remote-sim.c (gdbsim_fetch_register): Likewise.
7113 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7114 by regcache_invalidate.
7115 (mt_pseudo_register_write): Likewise.
7116 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7118 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7119 call by loop over regcache_raw_supply (..., NULL).
7123 * target.h (struct target_ops): Add REGCACHE parameter to
7124 to_prepare_to_store.
7125 (target_prepare_to_store): Likewise.
7126 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7127 (update_current_target): Adapt prepare_to_store de_fault rule.
7129 * regcache.c (regcache_raw_write): Pass regcache to
7130 target_prepare_to_store.
7132 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7133 Do not call CHILD_PREPARE_TO_STORE.
7134 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7135 * procfs.c (procfs_prepare_to_store): Likewise.
7137 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7138 * go32-nat.c (go32_prepare_to_store): Likewise.
7139 * monitor.c (monitor_prepare_to_store): Likewise.
7140 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7141 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7142 * remote-mips.c (mips_prepare_to_store): Likewise.
7143 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7144 * win32-nat.c (win32_prepare_to_store): Likewise.
7146 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7147 Use it instead of current_regcache.
7149 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7150 parameter. Pass it on to next target.
7151 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7155 * target.h (struct regcache): Add forward declaration.
7156 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7157 and to_store_registers target operations.
7158 (target_fetch_registers, target_store_registers): Update.
7160 * regcache.c (regcache_raw_read): Replace register_cached by
7161 regcache_valid_p. Pass regcache to target_fetch_registers.
7162 (regcache_raw_write): Pass regcache to target_store_registers.
7164 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7165 store_regs, store_wmmx_regs): Replace register_cached by
7168 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7169 to target_fetch_registers calls.
7170 * corelow.c (core_open): Likewise.
7171 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7172 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7173 ps_lsetfpregs): Likewise.
7174 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7175 ps_lsetfpregs): Likewise.
7176 * win32-nat.c (win32_resume): Likewise.
7177 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7178 to target_store_registers call.
7179 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7181 * inferior.h (store_inferior_registers): Update prototype.
7182 (fetch_inferior_registers): Likewise.
7183 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7184 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7185 Update function pointer signatures.
7187 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7188 use it instead of current_regcache, update calls.
7189 (aix_thread_store_registers): Likewise.
7190 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7191 (alphabsd_store_inferior_registers): Likewise.
7192 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7193 (amd64bsd_store_inferior_registers): Likewise.
7194 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7195 (amd64_linux_store_inferior_registers): Likewise.
7196 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7197 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7198 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7199 (arm_linux_fetch_inferior_registers): Likewise.
7200 (arm_linux_store_inferior_registers): Likewise.
7201 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7202 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7203 (store_register, store_regs, store_fp_register, store_fp_regs,
7204 armnbsd_store_registers): Likewise.
7205 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7206 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7207 (bsd_uthread_store_registers): Likewise.
7208 * corelow.c (get_core_registers): Likewise.
7209 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7210 go32_store_registers): Likewise.
7211 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7212 (hppabsd_store_registers): Likewise.
7213 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7214 (hppa_hpux_fetch_inferior_registers): Likewise.
7215 (hppa_hpux_store_register): Likewise.
7216 (hppa_hpux_store_inferior_registers): Likewise.
7217 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7218 (hppa_linux_fetch_inferior_registers): Likewise.
7219 (hppa_linux_store_inferior_registers): Likewise.
7220 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7221 (hpux_thread_store_registers): Likewise.
7222 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7223 (i386bsd_store_inferior_registers): Likewise.
7224 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7225 gnu_store_registers): Likewise.
7226 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7227 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7229 (i386_linux_fetch_inferior_registers): Likewise.
7230 (i386_linux_store_inferior_registers): Likewise.
7231 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7232 (ia64_linux_fetch_registers): Likewise.
7233 (ia64_linux_store_register): Likewise.
7234 (ia64_linux_store_registers): Likewise.
7235 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7236 (inf_child_store_inferior_registers): Likewise.
7237 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7238 (inf_ptrace_fetch_registers): Likewise.
7239 (inf_ptrace_store_register): Likewise.
7240 (inf_ptrace_store_registers): Likewise.
7241 * infptrace.c (fetch_register, store_register): Likewise.
7242 (fetch_inferior_registers, store_inferior_registers): Likewise.
7243 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7244 (m32r_linux_fetch_inferior_registers): Likewise.
7245 (m32r_linux_store_inferior_registers): Likewise.
7246 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7247 (m68kbsd_store_inferior_registers): Likewise.
7248 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7249 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7250 fetch_fpregs, store_fpregs): Likewise.
7251 (m68k_linux_fetch_inferior_registers): Likewise.
7252 (m68k_linux_store_inferior_registers): Likewise.
7253 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7254 (m88kbsd_store_inferior_registers): Likewise.
7255 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7256 (mips64obsd_store_inferior_registers): Likewise.
7257 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7258 (mips64_linux_regsets_store_registers): Likewise.
7259 (mips64_linux_fetch_registers): Likewise.
7260 (mips64_linux_store_registers): Likewise.
7261 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7262 (mipsnbsd_store_inferior_registers): Likewise.
7263 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7264 (monitor_fetch_registers, monitor_store_registers): Likewise.
7265 * nto-procfs.c (procfs_fetch_registers): Likewise.
7266 (procfs_store_registers): Likewise.
7267 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7268 fetch_register, supply_vrregset, fetch_altivec_registers,
7269 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7270 (store_altivec_register, store_spe_register, store_register,
7271 fill_vrregset, store_altivec_registers, store_ppc_registers,
7272 ppc_linux_store_inferior_registers): Likewise.
7273 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7274 (ppcnbsd_store_inferior_registers): Likewise.
7275 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7276 (ppcobsd_store_registers): Likewise.
7277 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7278 * remote.c (fetch_register_using_p, process_g_packet,
7279 fetch_registers_using_g, remote_fetch_registers): Likewise.
7280 (store_register_using_P, store_registers_using_G,
7281 remote_store_registers): Likewise.
7282 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7283 m32r_store_register, m32r_store_register): Likewise.
7284 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7285 * remote-sim.c (gdbsim_fetch_register): Likewise.
7286 (gdbsim_store_register): Likewise.
7287 * rs6000-nat.c (fetch_register, store_register): Likewise.
7288 (rs6000_fetch_inferior_registers): Likewise.
7289 (rs6000_store_inferior_registers): Likewise.
7290 * s390-nat.c (fetch_regs, store_regs): Likewise.
7291 (fetch_fpregs, store_fpregs): Likewise.
7292 (s390_linux_fetch_inferior_registers): Likewise.
7293 (s390_linux_store_inferior_registers): Likewise.
7294 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7295 (shnbsd_store_inferior_registers): Likewise.
7296 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7297 (sol_thread_store_registers): Likewise.
7298 * sparc-nat.c (fetch_inferior_registers): Likewise.
7299 (store_inferior_registers): Likewise.
7300 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7301 (spu_store_inferior_registers): Likewise.
7302 * target.c (debug_print_register): Likewise.
7303 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7304 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7305 (vaxbsd_store_inferior_registers): Likewise.
7306 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7307 (win32_fetch_inferior_registers): Likewise.
7308 (win32_store_inferior_registers): Likewise.
7312 * gdbcore.h (struct regcache): Add forward declaration.
7313 (struct core_fns): Add REGCACHE argument to core_read_registers
7315 * corelow.c (get_core_register_section): Add REGCACHE argument,
7316 use it instead of current_regcache, pass it to core_read_registers
7318 (get_core_registers): Add current_regcache as parameter to
7319 get_core_register_section calls.
7321 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7322 use it instead of current_regcache.
7323 * armnbsd-nat.c (fetch_core_registers): Likewise.
7324 (fetch_elfcore_registers): Likewise.
7325 * core-regset.c (fetch_core_registers): Likewise.
7326 * cris-tdep.c (fetch_core_registers): Likewise.
7327 * irix5-nat.c (fetch_core_registers): Likewise.
7328 * m68klinux-nat.c (fetch_core_registers): Likewise.
7329 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7330 * win32-nat.c (fetch_elf_core_registers): Likewise.
7334 * gregset.h (struct regcache): Add forward declaration.
7335 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7336 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7337 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7338 (fill_gregset): Add REGCACHE parameter.
7339 (fill_fpregset): Likewise.
7340 (fill_fpxregset): Likewise.
7342 Update all definitions accordingly:
7343 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7344 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7345 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7346 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7347 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7348 (supply_gregset): Add REGCACHE parameter, use it instead of
7349 current_regcache. Make GREGSETP parameter const, adapt casts.
7350 (supply_fpregset): Add REGCACHE parameter, use it instead of
7351 current_regcache. Make FPREGSETP parameter const, adapt casts.
7352 (fill_gregset): Add REGCACHE parameter, use it instead of
7354 (fill_fpregset): Likewise.
7356 Update all callers to pass in current_regcache as the new argument:
7357 * core-regset.c: Include "regcache.h".
7358 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7359 * procfs.c: Include "regcache.h".
7360 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7361 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7362 (procfs_do_thread_registers): Likewise.
7363 (procfs_make_note_section): Likewise.
7364 * proc-service.c: Include "regcache.h".
7365 (ps_lgetregs): Update fill_gregset call.
7366 (ps_lsetregs): Update supply_gregset call.
7367 (ps_lgetfpregs): Update fill_fpregset call.
7368 (ps_lsetfpregs): Update supply_fpregset call.
7369 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7370 supply_fpregset calls.
7371 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7372 (ps_lgetregs): Update fill_gregset call.
7373 (ps_lsetregs): Update supply_gregset call.
7374 (ps_lgetfpregs): Update fill_fpregset call.
7375 (ps_lsetfpregs): Update supply_fpregset call.
7377 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7378 fill_fpregset, and fill_fpxregset calls.
7379 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7380 (store_regs): Update fill_gregset call.
7381 (fetch_fpregs): Update supply_fpregset call.
7382 (store_fpregs): Update fill_fpregset call.
7383 (fetch_fpxregs): Update supply_fpxregset call.
7384 (store_fpxregs): Update fill_fpxregset call.
7385 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7386 (store_regs): Update fill_gregset call.
7387 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7388 (store_regs): Update fill_gregset call.
7389 (fetch_fpregs): Update supply_fpregset call.
7390 (store_fpregs): Update fill_fpregset call.
7391 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7392 * s390-nat.c (fetch_regs): Update supply_gregset call.
7393 (store_regs): Update fill_gregset call.
7394 (fetch_fpregs): Update supply_fpregset call.
7395 (store_fpregs): Update fill_fpregset call.
7397 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7402 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7403 it instead of current_regcache.
7404 (parse_register_dump): Add REGCACHE parameter, pass it to
7405 supply_register callback.
7406 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7407 parse_register_dump.
7408 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7409 parse_register_dump and dumpregs callback.
7410 (monitor_wait): Pass current_regcache to parse_register_dump and
7412 (monitor_fetch_register): Pass current_regcache to
7413 monitor_supply_register.
7414 (monitor_fetch_registers): Pass current_regcache to
7416 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7417 supply_register and dumpregs callbacks.
7418 (monitor_supply_register, monitor_dump_reg_block): Update
7420 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7421 it to monitor_supply_register.
7422 * dink32-rom.c (dink32_supply_register): Likewise.
7423 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7424 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7425 instead of current_regcache.
7429 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7430 Add REGCACHE parameter. Use it instead of current_regcache.
7431 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7432 i386nto_supply_gregset and i386nto_supply_fpregset.
7433 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7434 of current_regcache.
7436 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7437 nto_supply_ helper functions.
7438 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7440 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7442 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7443 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7444 and regset_fill member function pointers.
7445 (nto_dummy_supply_regset): Adapt prototype.
7449 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7450 instead of current_regcache. Make REGS const.
7451 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7452 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7454 * shnbsd-nat.c: Include "regcache.h".
7455 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7457 (shnbsd_store_inferior_registers): Pass current_regcache to
7459 * Makefile.in (shbsd-nat.o): Update dependencies.
7463 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7464 instead of current_regcache.
7465 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7466 Make GREGSETP const, remove superfluous casts.
7467 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7468 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7470 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7471 (supply_64bit_reg): Likewise
7472 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7473 Make GREGSETP const, adapt casts accordingly.
7474 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7475 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7477 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7478 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7480 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7481 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7482 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7484 * mips-linux-nat.c: Include "regcache.h".
7485 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7486 current_regcache to mips{64}_(supply|fill)_ helper routines.
7487 (mips64_linux_regsets_fetch_registers): Likewise.
7488 (mips64_linux_regsets_store_registers): Likewise.
7490 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7491 REGCACHE argument; replace current_regcache. Make REGS const.
7492 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7493 replace current_regcache.
7494 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7495 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7496 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7497 mipsnbsd_store_inferior_registers): Pass current_regcache to
7498 mipsnbsd_(supply|fill)_... helper routines.
7500 * Makefile.in (mips-linux-nat.o): Update dependencies.
7504 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7505 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7506 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7507 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7508 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7509 * i386gnu-nat.c (store_fpregs): Likewise.
7510 * i386v4-nat.c (fill_fpregset): Likewise.
7511 * go32-nat.c (store_register, go32_store_registers): Likewise.
7515 * cris-tdep.c (supply_gregset): Rename to ...
7516 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7517 instead of current_regcache.
7518 (fetch_core_registers): Update call. Pass current_regcache.
7522 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7523 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7524 Use it instead of current_regcache.
7525 (supply_fparegset): Rename to ...
7526 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7527 Use it instead of current_regcache.
7528 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7529 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7533 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7534 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7535 use it instead of current_regcache.
7536 * alpha-tdep.h (struct regcache): Add forward declaration.
7537 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7538 alpha_fill_fp_regs): Update prototypes.
7540 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7541 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7542 * alpha-linux-nat.c: Include "regcache.h".
7543 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7544 current_regcache to alpha_supply/fill_ routines.
7546 * alphabsd-tdep.c: Include "regcache.h".
7547 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7548 pass it to alpha_supply_ routines. Make REGS const.
7549 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7550 pass it to alpha_fill_ routines.
7551 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7552 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7553 alphabsd_fill_fpreg): Update prototypes.
7555 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7556 fill_fpregset, alphabsd_fetch_inferior_registers,
7557 alphabsd_store_inferior_registers): Pass current_regcache to
7558 alphabsd_supply/fill_ routines.
7560 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7565 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7566 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7567 instead of current_regcache.
7568 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7569 REGCACHE parameter, pass it to supply_ routines.
7570 (aix_thread_fetch_registers): Pass current_regcache to
7571 fetch_regs_user_thread and fetch_regs_kernel_thread.
7573 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7574 Add REGCACHE parameter, use it instead of current_regcache.
7575 Call regcache_valid_p instead of register_cached.
7576 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7577 Also, pass REGCACHE to fill_ routines.
7578 (aix_thread_store_registers): Pass current_regcache to
7579 store_regs_user_thread and store_regs_kernel_thread.
7583 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7584 pointed to by GREGSETP.
7588 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7589 of regcache_raw_read_signed.
7590 (fill_fpregset): Use regcache_raw_collect instead of
7595 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7596 point arguments, test explicitly for use of the EABI32 ABI
7597 instead of inferring this condition from tests on register
7602 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7603 prior to allocating its location.
7607 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7608 based on mips_abi_regsize() whose result is known in advance.
7609 (mips_o64_push_dummy_call): Likewise.
7613 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7614 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7616 * mips-linux-nat.c: Include "gregset.h".
7617 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7618 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7619 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7620 fill_fpregset): Move to mips-linux-nat.c.
7622 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7626 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7627 (read_register): ... here.
7628 (deprecated_write_register_gen): Remove, inline ...
7629 (write_register): ... here.
7630 * regcache.h (deprecated_read_register_gen): Remove prototype.
7631 (deprecated_write_register_gen): Likewise.
7633 * remote-sim.c (gdbsim_store_register): Replace call to
7634 deprecated_read_register_gen with regcache_cooked_read.
7635 * target.c (debug_print_register): Replace calls to
7636 deprecated_read_register_gen and read_register with
7637 regcache_cooked_read.
7641 * hpux-thread.c (hpux_thread_store_registers): Use
7642 regcache_raw_collect, not regcache_raw_read.
7643 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7644 not regcache_raw_write.
7648 * gdbarch.sh: Remove deprecated_register_byte.
7649 * gdbarch.c, gdbarch.h: Regenerate.
7650 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7651 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7653 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7654 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7655 read-only register caches. Make REGCACHE parameter const.
7656 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7658 * mi/mi-main.c (old_regs): Remove.
7659 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7660 (register_changed_p): Reimplement to compare two register caches.
7661 (mi_cmd_data_list_changed_registers): Update caller.
7662 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7663 * mi/mi-interp.c (mi_interpreter_init): Do not call
7664 mi_setup_architecture_data.
7668 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7669 inline definition at the places the macros are used.
7670 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7674 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7676 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7677 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7678 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7679 (rs6000_aix_regset_from_core_section): New function.
7680 (rs6000_aix_init_osabi): Register it.
7681 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7682 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7683 * rs6000-nat.c (CoreRegs): Do not define type.
7684 (fetch_core_registers, rs6000_core_fns): Remove.
7685 (_initialize_core_rs6000): Do not register it. Rename to ...
7686 (_initialize_rs6000_nat): ... this.
7687 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7691 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7692 (dwarf2_read_address): Sign extend return address as required by
7693 target architecture.
7697 * solib-frv.c (lm_base): Bail out if the main executable has
7702 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7703 of FPCR register in fpregset.
7707 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7708 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7712 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7713 * rs6000-nat.c (rs6000_wait): New function.
7714 (_initialize_core_rs6000): Install it as to_wait target method.
7715 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7719 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7720 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7721 * rs6000-nat.c (super_create_inferior): New variable.
7722 (rs6000_create_inferior): Make static. Adapt argument list. Call
7723 original version of create_inferior via super_create_inferior.
7724 (_initialize_core_rs6000): Install to_create_inferior target method.
7728 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7729 (aix_thread_xfer_partial): ... this.
7730 (init_aix_thread_ops): Install to_xfer_partial instead
7731 of deprecated_xfer_memory target method.
7733 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7734 and inftarg.o, add inf-ptrace.o.
7735 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7736 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7737 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7738 (fetch_inferior_registers): Rename to ...
7739 (rs6000_fetch_inferior_registers): ... this. Make static.
7740 (store_inferior_registers): Rename to ...
7741 (rs6000_store_inferior_registers): ... this. Make static.
7742 (read_word, child_xfer_memory): Remove.
7743 (rs6000_xfer_partial): New function.
7744 (kernel_u_size): Remove.
7745 (_initialize_core_rs6000): Add inf_ptrace-based target.
7746 * Makefile.in (rs6000-nat.o): Update dependencies.
7750 * inf-ptrace.c: Include "gdb_stdint.h".
7751 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7752 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7753 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7754 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7755 (inf_ptrace_store_register): Likewise.
7756 * Makefile.in (inf-ptrace.o): Update dependencies.
7760 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7761 * configure.tgt (rs6000-*-*): Likewise.
7762 * config/rs6000/aix4.mh: Delete file.
7763 * config/rs6000/aix4.mt: Delete file.
7764 * config/rs6000/rs6000.mh: Delete file.
7765 * config/rs6000/rs6000.mt: Delete file.
7767 * config/powerpc/nm-aix.h: Delete file.
7768 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7772 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7773 Remove obsolete part of comment.
7774 (store_regs_user_thread): Use uint32_t temporaries when calling
7776 (store_regs_kernel_thread): Likewise. Add assertion to verify
7777 correct size of struct ptsprs members.
7778 (aix_thread_xfer_memory): Fix type of myaddr.
7779 (aix_thread_extra_thread_info): Fix compiler warning.
7780 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7781 (fetch_register, store_register): Adapt callers.
7785 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7789 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7791 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7792 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7793 (alpha_linux_regset_from_core_section): New function.
7794 (alpha_linux_init_abi): Install it.
7795 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7796 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7797 <sys/procfs.h>, and "gregset.h".
7798 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7799 Move from config/alpha/nm-linux.h.
7800 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7802 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7803 * alpha-nat.c: Remove #ifdef __linux__ section.
7804 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7805 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7806 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7807 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7808 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7809 (NATDEPFILES): Remove alpha-nat.o.
7810 * config/alpha/nm-linux.h: Delete file.
7811 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7812 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7813 (alpha-linux-tdep.o): Likewise.
7817 * mips-linux-nat.c: No longer include "gdbcore.h".
7818 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7819 (mips64_linux_register_addr): Likewise.
7820 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7821 mips64_linux_register_addr instead of register_addr.
7822 * mips-linux-tdep.c (mips_linux_register_addr,
7823 mips64_linux_register_addr): Move to mips-linux-nat.c.
7824 (register_addr): Remove.
7825 (register_addr_data, init_register_addr_data): Remove.
7826 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7827 (set_mips_linux_register_addr): Remove.
7828 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7829 * Makefile.in (mips-linux-nat.o): Update dependencies.
7833 * linux-nat.c (linux_register_u_offset): Remove.
7834 (linux_target_install_ops): New function.
7835 (linux_target): Use it.
7836 (linux_trad_target): New function.
7837 * linux-nat.h (linux_trad_target): Declare.
7839 * alpha-linux-nat.c: Include "gdbcore.h".
7840 (alpha_linux_register_u_offset): New function.
7841 (_initialize_alpha_linux_nat): Use linux_trad_target.
7843 * mips-linux-nat.c: Include "gdbcore.h".
7844 (mips_linux_register_u_offset): New function.
7845 (_initialize_mips_linux_nat): Use linux_trad_target.
7847 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7848 * config/arm/nm-linux.h: Delete file.
7850 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7851 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7853 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7854 * config/ia64/nm-linux.h: Delete file.
7856 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7857 * config/m32r/nm-linux.h: Delete file.
7859 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7860 * config/m68k/nm-linux.h: Delete file.
7862 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7863 * config/pa/nm-linux.h: Delete file.
7865 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7866 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7867 * config/powerpc/nm-linux.h: Delete file.
7869 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7870 * config/s390/nm-linux.h: Delete file.
7872 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7873 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7874 * config/sparc/nm-linux.h: Delete file.
7876 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7877 (mips-linux-nat.o): Likewise.
7881 * core-aout.c: Delete file.
7882 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7883 (core-aout.o): Delete rule.
7884 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7886 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7888 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7889 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7890 KERNEL_U_ADDR): Remove.
7892 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7893 (cannot_fetch_register, cannot_store_register): Remove.
7894 (fetch_register): Inline cannot_fetch_register and register_addr.
7895 (store_register): Inline cannot_store_register and register_addr.
7896 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7897 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7898 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7901 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7902 (fetch_register): Inline register_addr.
7903 (store_register): Inline register_addr.
7904 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7905 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7906 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7908 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7909 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7910 REGISTER_U_ADDR): Remove.
7912 * hppa-linux-nat.c (register_addr): Rename to ...
7913 (hppa_linux_register_addr): ... this. Make static.
7914 (fetch_register, store_register): Adapt callers.
7915 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7917 * ppc-linux-nat.c (kernel_u_size): Remove.
7918 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7920 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7921 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7923 * config/vax/nm-vax.h: Delete file.
7927 * MAINTAINERS (Write After Approval): Add myself.
7931 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7932 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7933 (m68k_linux_sigcontext_reg_offset): Fix typo.
7934 (target_is_uclinux): New.
7935 (m68k_linux_inferior_created): New.
7936 (m68k_linux_get_sigtramp_info): Check for uClinux or
7937 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7939 (_initialize_m68k_linux_tdep): Register
7940 m68k_linux_inferior_created.
7944 * win32-nat.c (win32_detach): Remove delete_command call.
7945 Resume inferior with win32_resume instead of win32_continue.
7949 * ser-mingw.c (fd_is_file): New function.
7950 (file_select_thread): New function.
7951 (ser_console_wait_handle): Add special handling for files.
7955 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7956 when missing from DW_TAG_subrange_type. Remove the handling of null
7957 return from die_type.
7961 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7962 change to rearrange some brackets.
7963 (mips_n32n64_push_dummy_call): Likewise.
7964 (mips_o32_push_dummy_call): Likewise.
7965 (mips_o64_push_dummy_call): Likewise.
7969 * infcmd.c (post_create_inferior): Start with a call to
7970 target_terminal_ours.
7974 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7976 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7978 (mips_o32_push_dummy_call): Likewise.
7979 (mips_o64_push_dummy_call): Likewise.
7983 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7988 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7990 (mips_o32_push_dummy_call): Likewise.
7994 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7995 sal to be bigger than the end of the function.
8000 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8001 argument alignment requirements when calculating stack space
8002 required. When aligning an arg register to eight bytes
8003 boundary, align stack_offset too. Write floating-point
8004 arguments to the appropriate integer register if need go there.
8005 (mips_o64_push_dummy_call): Likewise.
8009 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8010 "sig" arguments, add "regcache" argument.
8011 * gdbarch.c, gdbarch.h: Regenerate.
8013 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8014 (handle_inferior_event): Call remove_single_step_breakpoints directly
8015 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8017 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8018 Remove handling of !insert_breakpoints_p case.
8019 * arm-tdep.c (arm_software_single_step): Likewise.
8020 * cris-tdep.c (cris_software_single_step): Likewise.
8021 * mips-tdep.c (mips_software_single_step): Likewise.
8022 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8023 * sparc-tdep.c (sparc_software_single_step): Likewise.
8024 * spu-tdep.c (spu_software_single_step): Likewise.
8026 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8027 * mips-tdep.h (mips_software_single_step): Likewise.
8028 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8029 * sparc-tdep.h (sparc_software_single_step): Likewise.
8033 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8034 when removing single-step breakpoints.
8038 * varobj.h (varobj_set_frozen): New
8039 (varobj_get_frozen): New.
8040 (varobj_update): New parameter explicit.
8041 * varobj.c (struct varobj): New fields frozen
8043 (varobj_set_frozen, varobj_get_frozen): New.
8044 (install_new_value): Don't fetch values for
8045 frozen variable object, or children thereof. Allow
8046 a frozen variable object to have non-fetched value.
8047 (varobj_update): Allow updating child variables.
8048 Don't traverse frozen children.
8049 (new_variable): Initialize the frozen field.
8050 (c_value_of_variable): Return NULL for frozen
8051 variable without any value yet.
8052 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8054 (mi_cmd_var_create): Output the 'frozen' field,
8055 as soon as testsuite is adjusted to expect that field.
8056 (mi_cmd_var_set_frozen): New.
8057 (mi_cmd_var_update): Pass the 'explicit' parameter to
8059 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8060 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8064 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8066 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8070 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8071 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8072 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8073 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8074 * Makefile.in: Remove references to deleted files.
8075 * README: Do not mention deleted ROM monitor interfaces.
8076 * defs.h (enum language): Delete language_scm.
8077 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8078 (dump_subexp_body_standard): Likewise.
8079 * parse.c (operator_length_standard): Likewise.
8080 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8081 * remote-mips.c: Do not include remote-utils.h.
8082 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8084 * value.c: Do not include scm-lang.h.
8085 (unpack_long): Delete scm_unpack call.
8086 * config/h8300/h8300.mt, config/mips/embed.mt,
8087 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8088 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8090 * NEWS: Mention removed files.
8094 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8095 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8099 * NEWS: Mention removal of HP aCC support.
8103 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8104 first entry for static executables.
8105 (breakpoint_addr): Delete unused variable.
8106 (elf_locate_base): Search for _r_debug in static executables.
8107 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8112 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8113 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8114 (mention): Remove bp_through_sigtramp support.
8115 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8119 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8124 * infrun.c: Doc fixes.
8125 (handle_inferior_event): Clarify debug message.
8126 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8130 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8134 * config/m68k/tm-monitor.h: Delete file.
8135 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8136 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8138 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8139 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8143 * gdbarch.sh (software_single_step): Change the return type
8144 from void to int and reformatted some comments to <= 80
8146 * gdbarch.c, gdbarch.h: Regenerated.
8147 * alpha-tdep.c (alpha_software_single_step): Likewise.
8148 * alpha-tdep.h (alpha_software_single_step): Likewise.
8149 * arm-tdep.c (arm_software_single_step): Likewise.
8150 * cris-tdep.c (cris_software_single_step): Likewise.
8151 * mips-tdep.c (mips_software_single_step): Likewise.
8152 * mips-tdep.h (mips_software_single_step): Likewise.
8153 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8154 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8155 * sparc-tdep.c (sparc_software_single_step): Likewise.
8156 * sparc-tdep.h (sparc_software_single_step): Likewise.
8157 * spu-tdep.c (spu_software_single_step): Likewise.
8158 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8159 and act accordingly.
8163 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8164 * configure: Regenerate.
8165 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8169 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8173 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8175 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8176 distinct on the TYPE_STUB_SUPPORTED debug targets.
8177 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8181 * sparc-tdep.c (X_RS2): New macro.
8182 (sparc_skip_stack_check): New function.
8183 (sparc_analyze_prologue): Adjust PC past stack probing
8184 sequence if necessary.
8188 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8193 * breakpoint.c (gdb_breakpoint_query): Really return an
8195 (gdb_breakpoint): Likewise.
8196 * thread.c (gdb_list_thread_ids): Likewise.
8197 (gdb_thread_select): Likewise.
8198 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8199 (mi_cmd_thread_list_ids): Remove bogus initialization.
8203 * Makefile.in (SFILES): Remove hpacc-abi.c.
8204 (COMMON_OBS): Remove hpacc-abi.o.
8205 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8206 (hpacc-abi.o, hpread.o): Delete rules.
8207 * somread.c: Delete extern declarations from hpread.c.
8208 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8209 (som_symfile_finish): Do not call hpread_symfile_finish.
8210 (som_symfile_init): Do not call hpread_symfile_init.
8211 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8212 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8213 * hpacc-abi.c, hpread.c: Deleted.
8217 * solib-svr4.c (enable_break): Simplify return value.
8218 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8222 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8223 l_ld_size, l_next_size, l_prev_size, l_name_size.
8225 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8226 to extract addresses from link map.
8227 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8228 (LM_NEXT): Likewise.
8229 (LM_NAME): Likewise.
8230 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8231 (elf_locate_base): Likewise.
8232 (open_symbol_file_object): Likewise.
8233 (svr4_fetch_objfile_link_map): Likewise.
8234 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8235 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8237 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8238 (svr4_lp64_fetch_link_map_offsets): Likewise.
8240 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8241 removed members. Set l_ld_offset to -1 if not present.
8245 Pass stderr of program run with "target remote |"
8247 * serial.c (serial_open): Set error_fd to -1.
8248 * serial.h (struct serial): New field error_fd.
8249 (struct serial_opts): New field avail.
8250 * ser-pipe.c (pipe_open): Create another pair
8251 of sockets. Pass stderr to gdb.
8252 * ser-mingw.c (pipe_windows_open): Pass
8253 PEX_STDERR_TO_PIPE to pex_run. Initialize
8256 (_initialize_ser_windows): Hook pipe_avail.
8257 * ser-base.c (generic_readchar): Check if there's
8258 anything in stderr channel and route that to gdb_stderr.
8262 * dbxread.c (read_ofile_symtab): Move current_objfile
8263 clearing to after end_stabs.
8267 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8268 gdbarch instead of current_gdbarch.
8272 * varobj.c (varobj_create): Keep varobj value
8273 NULL when evaluating the type.
8277 * NEWS: Mention new Windows CE support.
8281 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8282 the obsoletion stanza.
8283 * NEWS: Mention deleted targets.
8285 * config/sh/tm-wince.h: Remove.
8286 * config/sh/wince.mt: Remove.
8287 * config/mips/tm-wince.h: Remove.
8288 * config/mips/wince.mt: Remove.
8291 * wince-stub.c: Remove.
8292 * wince-stub.h: Remove.
8293 * Makefile.in (wince.o): Remove rule.
8294 (wince-stub.o): Likewise.
8296 * mips-tdep.c (mips_next_pc): Make static.
8297 * mips-tdep.h (mips_next_pc): Remove declaration.
8298 * arm-tdep.c (arm_pc_is_thumb): Make static.
8299 (thumb_get_next_pc): Likewise.
8300 (arm_get_next_pc): Likewise.
8301 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8302 (arm_pc_is_thumb): Likewise.
8303 (thumb_get_next_pc): Likewise.
8304 (arm_get_next_pc): Likewise.
8308 * MAINTAINERS: Remove d10v entry.
8309 * Makefile.in (SFILES): Remove dwarfread.c.
8310 (COMMON_OBS): Remove dwarfread.o.
8311 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8312 (remote-est.o, rom68k-rom.o): Delete.
8313 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8314 target est, target rom68k, and DWARF 1.
8315 * configure.tgt: Mark d10v as removed.
8316 * dwarf2read.c: Doc update.
8317 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8319 (elf_locate_sections): Do not set them.
8320 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8321 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8322 * config/m68k/monitor.mt (TDEPFILES): Prune.
8323 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8324 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8328 * doublest.c (convert_floatformat_to_doublest): Use
8329 floatformat_classify.
8330 (floatformat_is_nan): Rename to...
8331 (floatformat_classify): ...this. Return more information.
8332 * doublest.h (enum float_kind): New.
8333 (floatformat_is_nan): Replace prototype...
8334 (floatformat_classify): ...with this one.
8335 * valprint.c (print_floating): Use floatformat_classify. Handle
8340 * README: Mention ISO C library requirement.
8344 * Makefile.in (SFILES): Remove nlmread.c.
8345 (COMMON_OBS): Remove nlmread.o.
8346 (nlmread.o): Delete rule.
8347 * README: Delete reference to remote-st.c.
8348 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8349 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8351 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8352 (_initialize_i386_tdep): Do not reference them.
8353 * nlmread.c: Delete file.
8354 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8355 * target.c: Doc update.
8356 * thread.c: Delete commented include.
8357 * config/alpha/tm-alpha.h: Doc update.
8361 * utils.c (string_to_core_addr): Comment typo.
8365 * mips-tdep.c: Comment typo.
8369 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8370 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8371 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8372 * config/powerpc/nm-ppc64-linux.h: Remove file.
8373 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8374 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8375 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8376 * infptrace.c (call_ptrace): Likewise.
8377 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8378 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8379 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8380 (store_register): Likewise.
8384 * Makefile.in (varobj.o): Add missing dependency.
8388 * MAINTAINERS: Update my email address.
8392 Add support for exception handling with multiple versions of
8394 * ada-lang.c: Update general comments on how Ada exception catchpoints
8396 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8397 (__gnat_raise_nodefer_with_msg): Delete.
8398 (ada_unhandled_exception_name_addr_ftype): New type.
8399 (exception_support_info): New type.
8400 (ada_unhandled_exception_name_addr): Add forward declaration.
8401 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8402 (default_exception_support_info): New constant.
8403 (exception_support_info_fallback): Likewise.
8404 (exception_info): New global variable.
8405 (ada_exception_support_info_sniffer): New function.
8406 (ada_executable_changed_observer): Likewise.
8407 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8408 ada_unhandled_exception_name_addr.
8409 (ada_unhandled_exception_name_addr): Reimplement to match the
8410 latest Ada runtime implementation.
8411 (error_breakpoint_runtime_sym_not_found): Delete.
8412 (ada_exception_sym_name): Get the exception sym name from
8413 exception_info rather than hardcoding it.
8414 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8415 Update error handling.
8416 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8420 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8421 (remote-st.o, uw-thread.o): Delete.
8422 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8423 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8424 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8425 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8426 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8427 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8428 rs6000-*-lynxos* to an obsoletion stanza.
8429 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8430 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8431 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8432 i[34567]86-*-netware*.
8433 * NEWS: Mention deleted targets.
8435 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8436 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8437 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8438 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8439 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8440 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8441 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8442 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8443 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8444 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8445 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8446 config/rs6000/tm-rs6000ly.h: Delete files.
8450 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8451 * interps.c (clear_interpreter_hooks): Do not clear
8452 deprecated_registers_changed_hook.
8453 * regcache.c (registers_changed): Do not call it.
8454 * top.c (deprecated_registers_changed_hook): Do not define it.
8455 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8456 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8457 (tui_remove_hooks): Do not remove it.
8458 (tui_selected_frame_level_changed_hook): Check for negative level.
8459 Use get_selected_frame.
8460 (tui_registers_changed_hook): Deleted.
8464 * stabsread.c (add_undefined_type): Add extra parameter.
8465 Now handles nameless types separately.
8466 (struct nat): New type.
8467 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8468 New static variables.
8469 (read_type): Update calls to add_undefined_type.
8470 (add_undefined_type_noname): New function.
8471 (add_undefined_type_1): Renames from add_undefined_type.
8472 (cleanup_undefined_types_noname): New function.
8473 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8474 (cleanup_undefined_types): New handles nameless types separately.
8475 (_initialize_stabsread): Initialize our new static constants.
8479 * configure.ac: Test for signal.h.
8480 * configure, config.in: Regenerate.
8484 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8485 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8489 * arm-wince-tdep.c: New.
8490 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8491 (MT_CFLAGS): Delete.
8493 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8494 solib-legacy.o, solib-svr4.o, and remove wince.o.
8495 * configure.tgt (arm*-*-mingw32ce*): Add.
8496 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8497 (do_target_signal_to_host): Silence 'not used' warning.
8498 * config/arm/tm-wince.h: Remove.
8502 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8503 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8505 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8506 * config/ia64/tm-linux.h: Remove file.
8507 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8508 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8509 legacy_pc_in_sigtramp.
8510 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8511 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8512 Remove func_name argument.
8513 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8515 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8516 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8517 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8518 (HAVE_STEPPABLE_WATCHPOINT): Define.
8520 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8521 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8522 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8523 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8524 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8525 target_insert_watchpoint, target_remove_watchpoint): Remove.
8526 (FETCH_INFERIOR_REGISTERS): Define.
8527 * ia64-linux-nat.c (ia64_register_addr): Make static.
8528 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8529 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8530 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8531 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8532 (ia64_linux_stopped_by_watchpoint): Make static.
8533 (ia64_linux_can_use_hw_breakpoint): New function.
8534 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8535 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8536 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8540 * linespec.c: Include language.h.
8541 (find_methods): Add language parameter. Call
8542 lookup_symbol_in_language. Pass language down.
8543 (add_matching_methods): Likewise. Call
8544 lookup_symbol_in_language.
8545 (add_constructors): Likewise.
8546 (find_method): Pass sym_class to collect_methods.
8547 (collect_methods): Add sym_class parameter. Pass language
8549 * symtab.c (lookup_symbol): Rename to ...
8550 (lookup_symbol_in_language): ... this. Add language
8551 parameter. Use passed language instead of current_language.
8552 (lookup_symbol): New as wrapper around
8553 lookup_symbol_in_language.
8554 (lookup_symbol_aux): Add language parameter. Use passed
8555 language instead of current_language.
8556 (search_symbols): Indent.
8557 * symtab.h (enum language): Forward declare.
8558 (lookup_symbol_in_language): Declare.
8559 (lookup_symbol): Update description.
8560 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8561 * ada-lang.c (restore_language): Remove.
8562 (lookup_symbol_in_language): Remove.
8566 * breakpoint.c (bpstat_num): Add int *num parameter.
8567 * breakpoint.h (bpstat_num): Likewise.
8568 * infcmd.c (continue_command): Adjust to new bpstat_num
8570 (program_info): Likewise.
8574 * config/sh/tm-sh.h: Remove file.
8575 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8576 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8577 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8578 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8582 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8583 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8584 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8585 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8586 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8587 sequence if target_shortname is "remote".
8591 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8592 instead of wordsize when looking for the LR in a stack frame.
8597 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8598 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8599 argument. Update all callers.
8600 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8601 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8602 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8603 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8604 (dwarf2_frame_set_adjust_regnum): ...this.
8605 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8606 * rs6000-tdep.c: Include "dwarf2-frame.h".
8607 (rs6000_adjust_frame_regnum): Define.
8608 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8609 Register rs6000_adjust_frame_regnum.
8611 * Makefile.in (rs6000-tdep.o): Update dependencies.
8615 * Makefile.in: Add support for a "pdf" target.
8619 * amd64-tdep.c (amd64_init_frame_cache): New function.
8620 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8625 * ui-out.c (ui_out_field_core_addr): Truncate address to
8626 TARGET_ADDR_BIT size before printing.
8631 * remote-mips.c (mips_xfer_memory): Update prototype.
8635 * symfile.h: #include "symtab.h"
8639 * utils.c (pagination_on_command, pagination_off_command):
8640 Remove useless prototypes.
8645 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8646 instead of TYPE_NAME for object base class name.
8651 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8652 Specify frame type in calls to frame_func_unwind().
8656 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8657 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8658 (refine_prologue_limit): Delete.
8659 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8660 Assume lim_pc is set. Correct check for incomplete prologues.
8661 Do not skip clobbers of the frame pointer.
8662 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8667 * frame.c (frame_pop): Check to see whether there's a frame to
8668 which we can pop first.
8672 * MAINTAINERS (Write After Approval): Add myself.
8676 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8677 (handle_inferior_event): Remove unnecessary braces.
8678 * breakpoint.c (bpstat_what): Remove wrong comment.
8682 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8683 (spu_gdbarch_init): Install it.
8687 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8688 object types, not 0.
8692 * spu-tdep.c (spu_frame_align): New function.
8693 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8697 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8698 (spu_software_single_step): Likewise.
8699 (spu_read_pc, spu_write_pc): New functions.
8700 (spu_gdbarch_init): Install them.
8704 * cli/cli-dump.c (struct callback_data): load_offset needs to
8705 have signed long type.
8709 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8710 Revert the previous change that had some unexpected side-effects
8712 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8713 function to get the address of the calling instruction.
8717 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8718 get_selected_frame by deprecated_safe_get_selected_frame.
8722 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8723 "gdb_string.h". Don't include "nbsd-tdep.h".
8724 (SIZEOF_STRUCT_REG): Remove.
8725 (SHNBSD_SIZEOF_GREGS): New.
8726 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8727 (shnbsd_regset_from_core_section): New functions.
8728 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8729 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8730 shnbsd_supply_gregset, shnbsd_collect_gregset.
8731 (shnbsd_gregset): New variable.
8732 (shnbsd_init_abi): Set regset_from_core_section.
8733 (GDB_OSABI_NETBSD_CORE): New define.
8734 (shnbsd_core_osabi_sniffer): New function.
8735 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8736 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8737 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8739 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8743 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8744 length of the types referenced by the new type CV ring.
8748 * frame.c (frame_pop, frame_observer_target_changed): Call
8750 (flush_cached_frames): Rename to reinit_frame_cache and delete
8752 * frame.h (flush_cached_frames): Delete prototype and update comment.
8754 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8755 reinit_frame_cache instead of flush_cached_frames. Do not call
8756 select_frame after reinit_frame_cache.
8757 * corelow.c (core_open): Likewise.
8758 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8759 * infrun.c (prepare_to_proceed, context_switch)
8760 (handle_inferior_event): Likewise.
8761 * linux-fork.c (fork_load_infrun_state): Likewise.
8762 * ocd.c (ocd_start_remote): Likewise.
8763 * remote-e7000.c (e7000_start_remote): Likewise.
8764 * remote-mips.c (device): Likewise.
8765 * thread.c (switch_to_thread): Likewise.
8766 * tracepoint.c (finish_tfind_command): Likewise.
8767 * gdbarch.c: Regenerated.
8772 * gdbtypes.c (check_typedef): Do not replace stub type if
8773 the resolved type is not defined in the same objfile.
8777 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8781 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8782 symbol for Ada units when the symbol is defined using 't' rather
8783 than 'Tt' as symbol descriptor.
8787 * config/mips/tm-nbsd.h: Delete file.
8788 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8789 * config/sh/tm-nbsd.h: Delete file.
8790 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8794 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8795 unused WRONG_PARAM value since it was recently deleted.
8799 * varobj.c (varobj_update): Free temporary vectors.
8803 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8804 * config/powerpc/tm-linux.h: Delete file.
8805 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8806 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8807 (TEXT_SEGMENT_BASE): Do not redefine.
8808 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8809 from config/rs6000/tm-rs6000.h.
8810 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8811 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8812 (TEXT_SEGMENT_BASE): Remove.
8813 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8814 (rs6000_in_solib_return_trampoline): Remove.
8815 (SKIP_TRAMPOLINE_CODE): Remove.
8816 (rs6000_skip_trampoline_code): Remove.
8817 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8818 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8819 (FP0_REGNUM): Remove.
8820 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8821 (rs6000_set_host_arch_hook): Remove.
8822 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8823 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8824 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8825 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8826 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8827 * rs6000-nat.c: Include "rs6000-tdep.h".
8828 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8829 (set_host_arch): Rename to ...
8830 (rs6000_create_inferior): ... this. Make public.
8831 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8832 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8833 (rs6000_create_inferior): Remove.
8834 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8835 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8836 set_gdbarch_in_solib_return_trampoline, and
8837 set_gdbarch_skip_trampoline_code.
8838 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8839 from config/rs6000/tm-rs6000.h.
8843 * buildsym.c (record_producer): Do nothing if no producer is provided.
8847 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8848 to check changelist is non-NULL. Call error if the frontend tries
8849 to update a non-root variable.
8851 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8855 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8856 (dwarf2_frame_sniffer): Update.
8857 (dwarf2_signal_frame_this_id): New function.
8858 (dwarf2_signal_frame_unwind): Use it.
8859 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8860 * frame.c (frame_func_unwind): Add this_type argument.
8861 (get_frame_func): Update.
8862 (frame_unwind_address_in_block): Add this_type argument and check it.
8864 (get_frame_address_in_block): Update.
8865 * frame.h (enum frame_type): Move higher in the file.
8866 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8869 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8870 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8871 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8872 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8873 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8874 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8875 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8876 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8877 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8878 frame_func_unwind and frame_unwind_address_in_block to specify
8879 the frame type. Use frame_unwind_address_in_block instead of
8880 frame_pc_unwind in sniffers.
8884 * frame.c (deprecated_selected_frame): Rename to...
8885 (selected_frame): ...this. Make static.
8886 (get_selected_frame, select_frame): Update.
8887 * frame.h (deprected_select_frame): Delete.
8888 (deprecated_safe_get_selected_frame): Update comments.
8890 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8891 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8892 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8893 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8894 tui/tui.c: Replace references to deprecated_selected_frame.
8898 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8899 directly decrement the stack pointer, accumulate their operand into
8900 the stack offset, and mark the function as not being frameless.
8904 * arch-utils.c (selected_byte_order): New.
8905 * arch-utils.h (selected_byte_order): New prototype.
8906 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8910 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8911 (default_symfile_offsets): Check VMA here. Update section VMAs.
8915 * remote.c (init_remote_state): Add special handling for placeholder
8920 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8921 (filenames_h): New variable.
8922 (clean): Clean up xml-builtin.c and stamp-xml.
8923 (arm-linux-nat.o): Update.
8924 * config/arm/linux.mh (TDEP_XML): Define.
8925 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8926 (arm_linux_has_wmmx_registers): New.
8927 (GET_THREAD_ID): Fix typo.
8928 (IWMMXT_REGS_SIZE): Define.
8929 (fetch_wmmx_regs, store_wmmx_regs): New.
8930 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8931 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8932 (super_xfer_partial, arm_linux_xfer_partial): New.
8933 (_initialize_arm_linux_nat): Use them.
8934 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8935 (xml_builtin_xfer_partial): New function.
8936 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8937 * NEWS: Update mention of iWMMXt support.
8941 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8942 if there are no FPA registers.
8943 (arm_dwarf_reg_to_regnum): New function.
8944 (arm_register_type, arm_register_name): Return minimal values for
8945 unsupported registers.
8946 (arm_register_sim_regno): Handle iWMMXt registers.
8947 (arm_gdbarch_init): Record missing FPA registers if indicated by
8948 a target description. Recognize iWMMXt registers. Only register
8949 "info float" for FPA. Use ARM_NUM_REGS. Register
8950 arm_dwarf_reg_to_regnum.
8951 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8953 (struct gdbarch_tdep): Add have_fpa_registers.
8954 * features/xscale-iwmmxt.xml: Update capitalization.
8955 * regformats/arm-with-iwmmxt.dat: Regenerated.
8959 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8963 * MAINTAINERS (mep): New target.
8967 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8969 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8970 (mep-tdep.o): New rule.
8971 * configure.tgt (mep-*-*): New target.
8972 * mep-tdep.c: New file.
8973 * config/mep/mep.mt: New file.
8977 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8978 BREAKPOINT_HIT and STOP_UNKNOWN.
8982 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8986 * gdb_expat.h (XMLCALL): Define if not already defined.
8990 * Makefile.in (symfile.o): Update dependencies.
8994 * MAINTAINERS: Disable -Werror for cris simulator. Build
8995 sparc64-solaris2.10 instead of the broken sparc-elf.
8996 * solib-frv.c: Include "solib.h".
8997 * Makefile.in (solib-frv.o): Update.
8998 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8999 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9000 (xtensa_frame_this_id, xtensa_frame_prev_register)
9001 (xtensa_push_dummy_call): Use %p.
9005 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9006 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9007 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9008 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9009 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9010 (sparc-linux-tdep.o): Update.
9014 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9015 (xtensa_mask_t): Change mask field to be a separate array.
9016 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9017 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9018 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9019 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9020 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9021 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9022 (mask14, mask15): Rename to
9023 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9024 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9025 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9026 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9027 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9028 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9029 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9030 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9031 (xtensa_submask14, xtensa_submask15): New.
9032 (rmap): Follow strict aliasing rules doing static initialization.
9036 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9037 handling from here...
9038 (tdesc_register_type): ...to here.
9039 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9040 * features/arm-core.xml: Use code_ptr and data_ptr.
9044 * varobj.h (enum varobj_update_error): New enum.
9045 * varobj.c (struct varobj_root): Add is_valid member.
9046 (varobj_get_type): Check for invalid varobj.
9047 (varobj_get_attributes): Likewise.
9048 (variable_editable):Likewise.
9049 (varobj_update): Likewise. Use varobj_update_error.
9050 (new_root_variable): Set root varobj as valid by default.
9051 (varobj_invalidate): New function.
9052 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9053 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9054 Use varobj_update_error.
9059 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9060 Pascal language marker.
9061 * dwarf2read.c (set_cu_language): Likewise.
9065 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9066 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9067 instead of target_terminal_init since inferior_ptid isn't set yet.
9071 * MAINTAINERS (Write After Approval): Add myself.
9075 Based on work by Apple Computer, Inc.
9076 * event-top.c (async_request_quit): Call quit() whenever either
9077 quit_flag is set or immediate_quit is set.
9081 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9082 type to a pointer to const struct block.
9083 (ada_lookup_symbol_list): Don't cast away constness when calling
9084 remove_out_of_scope_renamings.
9088 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9089 address of 'filename'; it is always non null.
9093 * exec.c (add_to_section_table): Do not discard empty sections.
9097 * features/Makefile, features/arm-with-iwmmxt.xml,
9098 features/gdbserver-regs.xsl, features/number-regs.xsl,
9099 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9100 * regformats/arm-with-iwmmxt.dat: Generate.
9101 * NEWS: Mention iWMMXt.
9105 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9106 (xml-tdesc.o): Update.
9107 * xml-support.c: Add a comment.
9108 (gdb_xml_enums_boolean): New variable.
9109 (gdb_xml_parse_attr_enum): Use strcasecmp.
9110 * xml-support.h (gdb_xml_enums_boolean): Declare.
9111 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9112 next_regnum, and current_union.
9113 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9114 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9115 (field_attributes, union_children, reg_attributes, union_attributes)
9116 (vector_attributes, feature_attributes, feature_children): New.
9117 (target_children): Make static. Add <feature>.
9118 (tdesc_elements): Make static.
9119 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9120 (struct tdesc_feature, tdesc_feature_p): New types.
9121 (struct target_desc): Add features member.
9122 (struct tdesc_arch_data, tdesc_data): New.
9123 (target_find_description): Clarify error message. Warn about
9124 ignored register descriptions.
9125 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9126 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9127 (tdesc_data_cleanup, tdesc_numbered_register)
9128 (tdesc_numbered_register_choices, tdesc_find_register)
9129 (tdesc_register_name, tdesc_register_type)
9130 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9131 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9132 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9133 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9134 (tdesc_create_feature, tdesc_record_type): New.
9135 (free_target_description): Free features.
9136 (_initialize_target_descriptions): Initialize tdesc_data.
9137 * arch-utils.c (default_remote_register_number): New.
9138 * arch-utils.h (default_remote_register_number): New prototype.
9139 * target-descriptions.h (set_tdesc_pseudo_register_name)
9140 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9141 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9142 (tdesc_numbered_register, tdesc_numbered_register_choices)
9143 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9144 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9145 (tdesc_create_reg): Declare.
9146 * gdbarch.sh (remote_register_number): New entry.
9147 * gdbarch.c, gdbarch.h: Regenerate.
9148 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9149 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9151 * arm-tdep.c (arm_register_aliases): New.
9152 (arm_register_name_strings): Rename to...
9153 (arm_register_names): ...this. Make const. Delete the old version.
9154 (current_option, arm_register_byte): Delete.
9155 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9156 (value_of_arm_user_reg): New.
9157 (arm_gdbarch_init): Verify any described registers. Call
9158 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9159 for standard register names.
9160 (_initialize_arm_tdep): Do not adjust arm_register_names.
9161 * user-regs.c (struct user_reg): Add baton member.
9162 (append_user_reg, user_reg_add_builtin, user_regs_init)
9163 (user_reg_add, value_of_user_reg): Use a baton for user
9165 * std-regs.c: Update.
9166 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9167 (user_reg_add): Add baton argument.
9168 * NEWS: Mention target description register support.
9169 * features/arm-core.xml, features/arm-fpa.xml: New.
9170 * eval.c (evaluate_subexp_standard): Allow ptype $register
9171 when the program is not running.
9175 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9179 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9180 info->disassembler_options to "any".
9184 * varobj.c (install_new_value): Only call value_get_print_value
9190 * gdb/target.c (target_flash_erase): Do not return void value.
9191 (target_flash_done): Likewise.
9192 * gdb/cli/cli-cmds.c (source_command): Likewise.
9196 Based on work by Apple Computer, Inc.
9197 * event-top.c (handle_sigint): Set quit_flag.
9198 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9199 if quit_flag has already been reset.
9203 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9208 * defs.h (request_quit): Remove declaration.
9209 * utils.c (request_quit): Remove definition.
9215 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9216 (skip_prologue): Allow bl->blrl used by PIC code.
9221 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9222 initialize tmp_obstack.
9223 * p-valprint.c (pascal_object_print_value_fields)
9224 (pascal_object_print_value): Likewise.
9228 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9232 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9233 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9237 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9239 (tdesc_parse_xml): Cache expanded descriptions.
9243 * Makefile.in (XMLFILES): New.
9244 (COMMON_OBS): Add xml-builtin.o.
9245 (xml-builtin.c, stamp-xml): New rules.
9246 (xml-tdesc.o): Update.
9247 * features/feature_to_c.sh: New file.
9248 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9249 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9250 (gdb_xml_start_element): Initialize scope after possibly reallocating
9251 scopes. Move cleanup later. Handle the XInclude description
9253 (gdb_xml_end_element): Only parse the body if there is a current element.
9254 Call XML_DefaultCurrent if there is no element.
9255 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9256 (struct xinclude_parsing_data, xinclude_start_include)
9257 (xinclude_end_include, xml_xinclude_default)
9258 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9259 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9260 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9261 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9262 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9263 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9264 XInclude directives. Use the compiled in DTD.
9265 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9266 directory name. Do not warn here.
9267 (file_read_description_xml): Update call. Warn here instead. Pass
9269 (fetch_available_features_from_target): New.
9270 (target_read_description_xml): Use it.
9271 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9273 * features/xinclude.dtd: New file.
9277 * linux-thread-db.c (check_for_thread_db): Return early if we have
9278 no libthread_db support.
9282 * mi/mi-parse.h: Include <sys/time.h>.
9286 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9287 instead of print_variable_value to print values.
9291 * mi/mi-main.c: Numerous formatting changes.
9292 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9293 removed in my previous change.
9297 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9298 Use 1000000L instead of 1000000.
9302 Based on work by Apple Computer, Inc.
9304 * configure.ac: Test for sys/resource.h and getrusage.
9305 * configure, config.in: Regenerate.
9307 * mi/mi-main.c: Include <sys/resource.h> if present.
9308 (rusage): Declare if HAVE_GETRUSAGE.
9309 (current_command_ts, do_timings): New static variables.
9310 (timestamp, print_diff_now, print_diff, timeval_diff):
9311 New static timing functions.
9312 (mi_cmd_enable_timings): New function for new MI command.
9313 (captured_mi_execute_command, mi_execute_async_cli_command):
9314 Call timing functions.
9316 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9319 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9321 * mi/mi-parse.h: (mi_timestamp): New structure.
9322 (mi_parse): Add mi_timestamp* member.
9326 * thread.c (make_cleanup_restore_current_thread): New function.
9327 (info_threads_command): Use of make_cleanup_restore_current_thread
9328 to restore the current thread and the selected frame.
9329 (restore_selected_frame): New function.
9330 (struct current_thread_cleanup): Add frame_id field.
9331 (do_restore_current_thread_cleanup): Add restoring of the selected
9333 (make_cleanup_restore_current_thread): Likewise.
9334 (thread_apply_all_command): backup the selected frame while
9335 entering the function and restore it at exit.
9336 (thread_apply_command): Likewise.
9340 * MAINTAINERS (Write After Approval): Add myself to the list.
9344 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9345 (m32r_store_register): Ditto.
9349 * ser-mingw.c (pipe_windows_open)
9350 (pipe_windows_read, pipe_windows_write): Declare
9351 variables at the top of the function.
9355 * doublest.c (floatformat_from_length): Use the right element from
9356 gdbarch floatformats.
9357 (floatformat_from_type, extract_typed_floating)
9358 (store_typed_floating): Likewise.
9359 * doublest.h: Remove declarations for undefined floatformat arrays.
9360 * gdbarch.sh (float_format, double_format, long_double_format): Change
9362 (pformat): Update for pairs.
9363 * gdbarch.c, gdbarch.h: Regenerated.
9364 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9365 (floatformats_ieee_double_littlebyte_bigword)
9366 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9367 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9368 (floatformats_vax_d): New variables.
9369 (builtin_type_ieee_single, builtin_type_ieee_double)
9370 (builtin_type_arm_ext, builtin_type_ia64_spill)
9371 (builtin_type_ia64_quad): Replace arrays with individual types.
9372 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9373 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9374 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9375 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9376 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9377 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9378 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9379 unused and endian-specific types.
9380 (recursive_dump_type): Update for floatformat pairs.
9381 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9382 (build_gdbtypes): Use build_flt.
9383 (_initialize_gdbtypes): Update set of initialized types.
9384 * gdbtypes.h: Update declarations to match gdbtypes.c.
9385 (struct main_type): Store a pointer to two floatformats.
9386 * arch-utils.c (default_float_format, default_double_format): Delete.
9387 * arch-utils.h (default_float_format, default_double_format): Delete.
9389 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9390 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9391 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9392 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9393 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9397 * target.c (maintenance_print_target_stack): New function.
9398 (initialize_targets): Add new "maintenance print target-stack"
9403 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9407 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9408 (struct dwarf2_loclist_baton): Likewise.
9412 * cli/cli-script.c: Include breakpoint.h.
9413 (build_command_line): Require arguments only for if and while
9415 (get_command_line, execute_user_command, execute_control_command):
9416 Fix wording of warning messages.
9417 (print_command_lines): Print breakpoint commands.
9418 (execute_control_command): Call commands_from_control_command to
9419 handle the `commands' command inside a body of a flow-control
9421 (read_next_line): Recognize the `commands' command and build a
9422 command line structure for it.
9423 (recurse_read_control_structure, read_command_lines): Handle
9424 `commands' similarly to `if' and `while'.
9426 * breakpoint.c (get_number_trailer): Document the special meaning
9427 of NULL as the first argument PP.
9428 (commands_from_control_command): New function.
9430 * breakpoint.h (commands_from_control_command): Add prototype.
9432 * defs.h (commands_control): New enumerated value for enum
9433 command_control_type.
9437 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9438 (ada_exception_sal): Update accordingly.
9442 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9443 * NEWS: Describe CHAR array vs. string identifcation rules.
9447 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9451 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9452 expression is empty, bother to return the 'optimized out' value we
9453 construct. (Thanks to Carl Burch.)
9457 * varobj.c (c_value_of_root, c_value_of_child)
9458 (cplus_describe_child): Don't call release_value.
9462 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9467 Refactor getting children name, value and type access
9469 * varobj.c (get_type_deref): Remove.
9470 (adjust_value_for_child_access): New.
9471 (c_number_of_children): Use the above.
9472 (c_describe_child): Likewise.
9473 (enum accessibility): New.
9474 (match_accessibility): New function.
9475 (cplus_describe_child): New function.
9476 (cplus_name_of_child, cplus_value_of_child)
9477 (cplus_type_of_child): Reimplement in terms
9478 of cplus_describe_child.
9479 (cplus_number_of_children): Use
9480 adjust_value_for_child_access.
9484 Fix computation of the 'editable' attribute and
9485 value changeability for for references.
9486 * varobj.c (get_value_type): New function.
9487 (c_variable_editable): Use get_value_type.
9488 (varobj_value_is_changeable): Likewise.
9492 * source.c (find_and_open_source): Try rewriting the source
9493 path inside filename if dirname is NULL.
9497 * dwarf2read.c (add_partial_symbol): Create an extra partial
9498 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9499 (new_symbol): Likewise for symbols.
9503 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9507 * value.c (value_primitive_field): Copy the full 'location'
9508 contents, instead of assuming that copying ADDRESS will
9509 bring over everything in the union. Remove obsolete comment.
9513 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9514 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9515 (m32c_m16c_pointer_to_address): Separate code from declarations.
9519 * target.c (update_current_target): Correct typo.
9523 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9530 * dwarf2-frame.c (execute_cfa_program): New support of
9531 `DW_CFA_GNU_negative_offset_extended'.
9535 * NEWS: Mention flash support for "load" and new remote packets.
9539 * breakpoint.c (delete_command): Skip redundant loop iterations.
9543 * gdbarch.sh (register_type): Update comment.
9544 * gdbarch.h: Regenerated.
9545 * arch-utils.c (generic_register_size): Call register_type.
9546 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9547 * m32c-tdep.c (check_for_saved): Likewise.
9548 * mips-tdep.c (mips_print_register, print_gp_register_row)
9549 (mips_print_registers_info): Likewise.
9550 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9552 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9553 (sh64_do_register, sh64_print_register)
9554 (sh64_media_print_registers_info): Likewise.
9555 * tui/tui-regs.c (tui_register_format): Likewise.
9559 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9561 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9562 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9563 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9564 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9565 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9566 (make_symbol_completion_list): Likewise.
9571 * buildsym.c (end_symtab): Use preallocated symtab if available.
9572 Fill in SYMBOL_SYMTAB.
9573 * buildsym.h (struct subfile): Add symtab member.
9574 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9575 (struct file_entry): Add symtab.
9576 (free_cu_line_header): New function.
9577 (read_file_scope): Use it. Save line_header in the cu. Process
9579 (add_file_name): Initialize new symtab member.
9580 (dwarf_decode_lines): Create symtabs for included files.
9581 (new_symbol): Set SYMBOL_SYMTAB.
9582 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9583 (search_symbols): Likewise.
9584 * symtab.h (struct symbol): Add symtab member.
9585 (SYMBOL_SYMTAB): Define.
9589 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9593 * arch-utils.c (show_endian): Correct reversed condition.
9597 * MAINTAINERS (Write After Approval): Add myself.
9602 Fix 'selected frame' varobjs.
9603 * varobj.c (struct varobj): Remove the error field.
9604 (varobj_set_value): Don't check var->error.
9605 (install_new_value): Don't set var->error.
9606 (varobj_update): Always pass the new value
9607 of the root via install_new_value.
9608 (create_child): Don't set error field.
9609 (new_variable): Likewise.
9610 (c_value_of_root): Always reevaluate the value
9611 of selected frame varobjs in the selected frame.
9612 Don't call reinit_frame_cache.
9616 * source.c (_initialize_source): Improve the help text of
9617 the substitute-path commands.
9621 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9622 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9623 (frv_skip_prologue): Remove prototypes.
9624 (frv_adjust_breakpoint_address): Renamed from
9625 frv_gdbarch_adjust_breakpoint_address.
9626 (frv_gdbarch_init): Adjust.
9630 * gdbarch.sh (deprecated_extract_return_value)
9631 (deprecated_store_return_value): Remove.
9632 (extract_return_value, store_return_value): Remove default values.
9633 * gdbarch.c, gdbarch.h: Regenerate.
9634 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9635 (legacy_store_return_value): Remove.
9636 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9639 * mi/mi-main.c: Remove obsolete comment.
9641 * regcache.c, regcache.h (deprecated_register_bytes)
9642 (deprecated_read_register_bytes)
9643 (deprecated_write_register_bytes): Remove.
9645 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9646 Don't forget to move destination pointer.
9650 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9654 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9655 past entry function with recent newlib.
9659 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9660 introduction. Specify -var-update more exactly.
9664 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9668 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9669 the Global Maintainers' invitation to be a global maintainer.
9673 * infrun.c (singlestep_pc): New variable.
9674 (resume): Set singlestep_pc.
9675 (context_switch): Add a debugging message. Flush the frame cache.
9676 (handle_inferior_event): Add debugging messages. Handle thread
9677 hops when a software single step has completed. Let context_switch
9678 handle flushing the frame cache.
9682 * NEWS: Mention target descriptions, "set tdesc filename",
9683 "unset tdesc filename", "show tdesc filename", and
9684 qXfer:features:read.
9685 * arch-utils.c (choose_architecture_for_target): New function.
9686 (gdbarch_info_fill): Call it.
9687 * target-descriptions.c (struct property): Make members non-const.
9688 (struct target_desc): Add arch member.
9689 (target_description_filename): New variable.
9690 (target_find_description): Try via XML first.
9691 (tdesc_architecture): New.
9692 (free_target_description, make_cleanup_free_target_description): New.
9693 (set_tdesc_property): Call xstrdup.
9694 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9695 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9696 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9697 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9698 * target-descriptions.h (tdesc_architecture)
9699 (make_cleanup_free_target_description, set_tdesc_architecture): New
9701 * Makefile.in (SFILES): Add xml-tdesc.c.
9702 (COMMON_OBS): Add xml-tdesc.o.
9703 (target-descriptions.o): Update.
9704 (xml-tdesc.o): New rule.
9705 * xml-tdesc.c, xml-tdesc.h: New files.
9706 * remote.c (PACKET_qXfer_features): New enum.
9707 (remote_protocol_features): Add qXfer:features:read.
9708 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9709 (_initialize_remote): Register qXfer:features:read.
9710 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9711 * features/gdb-target.dtd: New file.
9715 * copyright.sh: Clarify error.
9719 * symtab.c (matching_bfd_sections): Fix VMA matching for
9724 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9729 Updated copyright notices for most files.
9733 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9737 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9739 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9741 * configure, config.in: Regenerate.
9742 * defs.h (debug_file_directory): Declare.
9743 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9744 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9745 relocate it if DEBUGDIR_RELOCATABLE.
9746 * symfile.c (debug_file_directory): Make non-static.
9747 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9748 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9749 (_initialize_symfile): Don't initialize debug_file_directory here.
9753 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9758 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9759 frame_unwind_register to recurse.
9760 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9761 (alpha_heuristic_frame_prev_register): Likewise.
9762 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9763 * m32c-tdep.c (m32c_prev_register): Likewise.
9764 * frame.c (frame_register_unwind_location): Remove FIXME.
9769 * copyright.sh: New file.
9773 * configure.ac: Check for XML_StopParser.
9774 * xml-support.c (gdb_xml_body_text): Check for an error.
9775 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9776 (gdb_xml_end_element_wrapper): Likewise.
9777 * config.in, configure: Regenerated.
9781 * varobj.c (install_new_value): Always update print_value.
9782 (value_get_print_value): Immediately return NULL for missing
9787 * configure.ac: Tighten pattern for extracting value of
9788 DEPRECATED_TM_FILE from the target makefile fragment.
9789 * configure: Regenerated.
9793 * linux-nat.c (struct simple_pid_list): Add status.
9794 (add_to_pid_list): Record the PID's status.
9795 (linux_record_stopped_pid): Likewise. Make static.
9796 (pull_pid_from_list): Return the saved status.
9797 (linux_nat_handle_extended): Deleted.
9798 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9799 Make static. Handle non-SIGSTOP for a new thread's first signal.
9800 (flush_callback): Handle unexpected pending signals.
9801 (linux_nat_wait): Update calls to changed functions.
9802 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9803 Remove prototypes for newly static functions.
9807 * gdbarch.sh (value_from_register): New gdbarch function.
9808 * gdbarch.c, gdbarch.h: Regenerate.
9809 * findvar.c (default_value_from_register): New function.
9810 (value_from_register): Use gdbarch_value_from_register.
9811 * value.h (default_value_from_register): Declare.
9812 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9813 spu_value_to_register): Remove.
9814 (spu_value_from_register): New function.
9815 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9816 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9817 Call set_gdbarch_value_from_register.
9818 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9819 s390_value_to_register): Remove.
9820 (s390_value_from_register): New function.
9821 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9822 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9823 Call set_gdbarch_value_from_register.
9827 * NEWS: Add "set sysroot" and "show sysroot".
9828 * solib.c (solib_absolute_prefix): Delete. Replace
9829 all uses with gdb_sysroot.
9830 (_initialize_solib): Add "set sysroot" and "show sysroot".
9831 Make "solib-absolute-prefix" an alias to it.
9835 * frame.c (get_frame_register_bytes): New function.
9836 (put_frame_register_bytes): Likewise.
9837 * frame.h (get_frame_register_bytes): Declare.
9838 (put_frame_register_bytes): Likewise.
9839 * findvar.c (value_from_register): Always construct lval_register
9840 values. Use get_frame_register_bytes.
9841 * valops.c (value_assign): Use get_frame_register_bytes and
9842 put_frame_register_bytes.
9846 * MAINTAINERS: Update Stan Shebs' email address.
9850 * ada-lang.c (is_known_support_routine): Improve the implementation.
9854 * ada-lang.c: Add include of source.h.
9855 (is_known_support_routine): Improve the check verifying that the file
9856 associated to this frame exists.
9857 * Makefile.in (ada-lang.o): Add dependency on source.h.
9861 * ax-general.c (ax_const_l): Select proper opcode for the given
9866 * varobj.c (c_value_of_root): Don't select frame if variable
9867 object is out of scope.
9871 * varobj.c (struct varobj): New member print_value.
9872 (install_new_value): Compare last printed value with current one
9873 instead of contents.
9874 (new_variable): Initialize var->print_value to NULL.
9875 (free_variable): Free var->print_value.
9876 (value_get_print_value): New function derived from
9877 c_value_of_variable.
9878 (c_value_of_variable): Use value_get_print_value.
9882 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9886 * NEWS: Add entries for new catch commands.
9890 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9891 (add_partial_symbol): Correct identification of external references.
9892 (process_structure_scope): Likewise.
9893 (read_partial_die): Handle DW_AT_byte_size attribute.
9897 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9901 * varobj.c (get_type_deref): Fix variable objects for references to
9906 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9911 * memory-map.c (struct_memory_map_parsing_data): Remove most
9912 members. Make property_name an array.
9913 (free_memory_map_parsing_data, memory_map_start_element)
9914 (memory_map_end_element, memory_map_character_data): Delete.
9915 (memory_map_start_memory, memory_map_end_memory)
9916 (memory_map_start_property, memory_map_end_property): New functions.
9917 (property_attributes, memory_children, memory_type_enum)
9918 (memory_attributes, memory_map_children, memory_map_elements): New.
9919 (parse_memory_map): Rewrite.
9920 * xml-support.c (debug_xml): New.
9921 (xml_get_required_attribute, xml_get_integer_attribute)
9922 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9924 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9925 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9926 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9927 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9928 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9929 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9930 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9932 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9933 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9934 (enum gdb_xml_element_flag, struct gdb_xml_element)
9935 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9936 (struct gdb_xml_enum): New.
9937 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9938 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9939 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9940 (xml_get_required_attribute, xml_get_integer_attribute)
9941 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9942 * Makefile.in (xml_support_h, xml-support.o): Update.
9946 * Makefile.in (eval.o): Update dependencies.
9947 * eval.c: Include "ui-out.h" and "exceptions.h".
9948 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9949 Use value_zero if an error occurs when avoiding side effects.
9950 * varobj.c (c_value_of_root): Initialize new_val.
9954 * varobj.c (varobj_list_children): Stop if the number of children is
9956 (c_number_of_children):
9960 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9961 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9962 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9963 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9964 sizeof, instead of hardcoded constants.
9968 * CONTRIBUTE: Use sourceware.org.
9972 * buildsym.c (start_subfile): Handle producer.
9973 (record_producer): New function.
9974 * buildsym.h (struct subfile): Include producer.
9975 (record_producer): New prototype.
9976 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9977 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9978 armcc_cfa_offsets_reversed.
9979 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9980 (dwarf2_frame_find_quirks): New function.
9981 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9982 (decode_frame_entry_1): Record the CIE version. Record the
9983 augmentation. Skip armcc augmentations.
9984 * dwarf2read.c (read_file_scope): Save the producer.
9985 * symtab.h (struct symtab): Rename unused version member to
9990 * configure.ac (build_warnings): Use -Wall and
9991 -Wdeclaration-after-statement.
9992 * configure: Regenerated.
9996 Simplify access to variours properties of child
9997 variable objects in C.
9998 * varobj.c (value_struct_element_index): New function.
9999 (c_describe_child): New function.
10000 (c_name_of_child, c_value_of_child)
10001 (c_type_of_child): Rewrite to use c_describe_child.
10006 * varobj.c: Include "vec.h".
10007 (varobj_p): New typedef, declare vector of those.
10008 (struct varobj): Use vector for the 'children' member.
10009 (child_exists): Remove.
10010 (save_child_in_parent): Remove.
10011 (remove_child_from_parent): Remove.
10012 (struct varobj_child): Remove.
10013 (struct vstack): Remove.
10014 (vpush, vpop): Remove.
10015 (varobj_list_children): Adjust to work work vector.
10016 (varobj_update): Likewise. Use vectors for
10017 working stack and result.
10018 (delete_variable_1): Likewise.
10019 * Makefile.in (varobj.o): Update dependencies.
10023 Port from Apple's version.
10025 * varobj.c (type_changeable): Rename to...
10026 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10027 (is_root_p): New function. Use it everywhere.
10031 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10032 then plain 'fixup'.
10036 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10040 * hpread.c (hpread_type_lookup): Fix compilation failure.
10044 * NEWS: New port to S+core.
10045 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10048 * Makefile.in: Add dependencies for S+core files.
10049 * configure.tgt (score*, score-*-*): Add S+core target.
10050 * config/score/embed.mt: New file.
10051 * score-tdep.c: New file.
10052 * score-tdep.h: New file.
10056 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10057 the appropriate type rather than a bogus void type.
10061 * ada-lang.h (ada_find_printable_frame): Remove.
10062 (ada_exception_catchpoint_p, ada_decode_exception_location)
10063 (ada_decode_assert_location): Add declaration.
10064 * ada-lang.c: Add include of annotate.h and valprint.h.
10065 (exception_catchpoint_kind): New enum.
10066 (function_name_from_pc, is_known_support_routine)
10067 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10068 (ada_exception_name_addr_1, ada_exception_name_addr)
10069 (print_it_exception, print_one_exception, print_mention_exception)
10070 (print_it_catch_exception, print_one_catch_exception)
10071 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10072 (print_it_catch_exception_unhandled)
10073 (print_one_catch_exception_unhandled)
10074 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10075 (print_one_catch_assert, print_mention_catch_assert)
10076 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10077 (ada_get_next_arg, catch_ada_exception_command_split)
10078 (ada_exception_sym_name, ada_exception_sym_name)
10079 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10080 (ada_parse_catchpoint_condition, ada_exception_sal)
10081 (ada_decode_exception_location)
10082 (ada_decode_assert_location): New function.
10083 (catch_exception_unhandled_breakpoint_ops): New global variable.
10084 (catch_assert_breakpoint_ops): New global variable.
10085 * breakpoint.c: Add include of ada-lang.h.
10086 (print_one_breakpoint): Do not print the condition for Ada
10087 exception catchpoints.
10088 (create_ada_exception_breakpoint): New function.
10089 (catch_ada_exception_command, catch_assert_command): New function.
10090 (catch_command_1): Add support for the new "catch exception" and
10091 "catch assert" commands.
10092 (_initialize_breakpoint): Add help description for the new catch
10094 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10096 (breakpoint.o): Add dependency on ada-lang.h.
10100 * coffread.c (cs_to_section): If bfd_section is found, always
10101 return its section index.
10102 (coff_symtab_read): Determine the minimal_symbol_type using the
10108 * Makefile.in (top.o): Update.
10109 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10110 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10111 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10113 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10117 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10118 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10122 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10123 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10124 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10125 greater than or equal to zero.
10126 * m2-typeprint.c (m2_array): Likewise.
10127 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10128 * gdbtypes.c (copy_type_recursive): Correct == typo.
10129 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10130 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10132 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10133 (default_macro_scope): Remove unused variable.
10134 * prologue-value.h (pv_area_find_reg): Don't name an argument
10136 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10137 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10139 (cleanup_sigint_signal_handler): Remove casts.
10140 * valprint.c (val_print): Use a volatile local for the modified
10142 * varobj.c (languages): Remove extra array dimension.
10143 (varobj_create): Correct access to languages array.
10144 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10146 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10147 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10148 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10149 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10150 (mi_cmd_data_write_memory): Likewise.
10151 * signals/signals.c (target_signal_to_string): Cast to int before
10153 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10154 Update all callers.
10158 * NEWS: Mention pointer to member improvements.
10159 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10160 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10161 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10162 * c-typeprint.c (c_print_type): Update for new type codes.
10163 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10164 (c_type_print_base): Likewise.
10165 (c_type_print_args): Rewrite.
10166 * c-valprint.c (c_val_print): Update for new type codes. Remove
10167 support for references to members. Treat methods like functions.
10168 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10169 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10170 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10171 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10172 (struct cp_abi_ops): Add corresponding members.
10173 * cp-valprint.c (cp_print_class_method): Delete.
10174 (cp_find_class_member): New function.
10175 (cp_print_class_member): Use it. Simplify support for bogus
10177 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10178 lookup_methodptr_type.
10179 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10180 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10181 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10183 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10184 references returned by user defined operators.
10185 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10186 (f_type_print_varspec_suffix): Remove support for member pointers.
10187 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10189 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10190 (lookup_methodptr_type): New.
10191 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10192 (recursive_dump_type): Update for new types.
10193 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10194 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10195 (lookup_memberptr_type, lookup_methodptr_type)
10196 (smash_to_memberptr_type): New prototypes.
10197 (smash_to_method_type): Formatting fix.
10198 (lookup_member_type, smash_to_member_type): Delete prototypes.
10199 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10200 Do not rely on debug information for the vptr or the method's
10201 enclosing type. Handle function descriptors for IA64.
10202 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10203 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10204 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10205 (gnuv3_method_ptr_to_value): New.
10206 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10207 * hpread.c (hpread_type_lookup): Update for new types.
10208 * infcall.c (value_arg_coerce): Likewise.
10209 * m2-typeprint.c (m2_print_type): Remove explicit support
10210 for member pointers.
10211 * m2-valprint.c (m2_val_print): Likewise.
10212 * p-typeprint.c (pascal_type_print_varspec_prefix)
10213 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10214 * p-valprint.c (pascal_val_print): Likewise.
10215 (pascal_object_print_class_method, pascal_object_print_class_member):
10217 * p-lang.h (pascal_object_print_class_method)
10218 (pascal_object_print_class_member): Delete prototypes.
10219 * stabsread.c (read_type): Update for new types.
10220 * typeprint.c (print_type_scalar): Likewise.
10221 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10222 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10223 argument. Construct a pointer to member if the address of a
10224 function or data member is requested.
10225 (value_cast_pointers): Don't modify the input value.
10226 (value_cast): Adjust pointer to member handling for new types.
10227 Allow null pointer to member constants. Don't modify the input
10229 (value_ind): Remove pointer to member check. Handle function
10230 descriptors for function pointers.
10231 (value_struct_elt, value_find_oload_method_list, check_field):
10232 Remove pointer to member checks.
10233 * value.c (unpack_long): Allow pointers to data members.
10234 (value_from_longest): Allow member pointers.
10235 * value.h (value_aggregate_elt): Add want_address.
10236 * varobj.c (c_variable_editable): Remove check for members.
10237 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10238 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10240 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10241 * c-lang.h (cp_print_class_method): Delete prototype.
10242 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10243 * mips-tdep.c (mips_gdbarch_init): Likewise.
10244 * gdbarch.c, gdbarch.h: Regenerated.
10248 * rs6000-tdep.c (rs6000_use_struct_convention)
10249 (rs6000_extract_return_value, rs6000_store_return_value)
10250 (rs6000_extract_struct_value_address): Remove.
10251 (rs6000_return_value): New function.
10252 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10253 store_return_value, deprecated_extract_struct_value_address and
10254 deprecated_use_struct_convention. Use rs6000_return_value
10259 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10260 -display-disable, -display-enable, -display-insert and
10265 * breakpoint.c (remove_breakpoint): Remove dead code.
10269 * varobj.c: Include block.h.
10270 (c_value_of_root): Check scope within nested statements.
10274 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10275 regcache_cooked_write_signed instead of
10276 deprecated_write_register_bytes.
10280 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10284 Followed the Start of New Year Procedure:
10285 * ChangeLog-2006: New file, containing all the entries for 2006.
10286 * ChangeLog: Removed all 2006 entries, and changed the reference
10287 to the previous ChangeLog to point to ChangeLog 2006.
10288 * top.c (print_gdb_version): Update copyright year.
10292 * Makefile.in (remote-sds.o): Remove.
10293 * remote-sds.c: Delete.
10295 For older changes see ChangeLog-2006.
10301 version-control: never