3 * gdb/parser-defs.h: (struct objc_class_str): New structure
4 for parsing ObjC classes.
8 * stack.c (frame_relative_level): Copy function from here ...
9 * frame.c (frame_relative_level): ...to here.
13 * frame.h (enum frame_type): Define.
14 (get_frame_type): Declare.
15 (struct frame_info): Add field `type'. Delete field
16 signal_handler_caller.
17 (deprecated_set_frame_signal_handler_caller): Declare.
18 * frame.c (get_frame_type): New function.
19 (deprecated_set_frame_type): New function.
20 (create_new_frame): Set the frame's type.
21 (get_prev_frame): Similar.
22 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
24 * m68klinux-nat.c: Ditto.
25 * ns32k-tdep.c: Ditto.
26 * x86-64-linux-tdep.c: Ditto.
28 * rs6000-tdep.c: Ditto.
29 * ppc-linux-tdep.c: Ditto.
30 * i386-interix-tdep.c: Ditto.
37 * alpha-tdep.c: Ditto.
41 * blockframe.c: Update.
42 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
43 deprecated_set_frame_type instead of signal_handler_caller.
44 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
45 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
46 * breakpoint.h: Delete FIXME suggesting get_frame_type.
50 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
54 * buildsym.c (pop_context): Add comment.
58 * buildsym.h (pop_context): Convert to function, defined in
60 * buildsym.c: Include gdb_assert.h.
61 (pop_context): Implement as C function. Add check for stack
63 * dbxread.c (process_one_symbol): Complain and stop processing
64 that symbol if we are already at the top of the context stack for
65 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
66 when processing N_RBRAC.
70 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
72 (struct target_waitstatus): Add opaque definition.
73 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
74 * exec.c (init_exec_ops): Likewise.
75 * fork-child.c (clone_and_follow_inferior): Remove.
76 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
77 * inferior.h (clone_and_follow_inferior): Remove prototype.
78 * infrun.c (follow_fork_mode_both): Remove.
79 (follow_fork_mode_kind_names): Remove commented out "both".
80 (follow_inferior_fork): Remove follow_fork_mode_both support.
81 * inftarg.c (child_clone_and_follow_inferior): Remove.
82 (child_post_follow_inferior_by_clone): Remove.
83 (init_child_ops): Don't set to_clone_and_follow_inferior
84 or to_post_follow_inferior_by_clone.
85 * target.c (default_clone_and_follow_inferior): Remove.
86 (cleanup_target): Don't set to_clone_and_follow_inferior
87 or to_post_follow_inferior_by_clone.
88 (find_default_clone_and_follow_inferior): Remove.
89 (init_dummy_target): Don't set to_clone_and_follow_inferior.
90 (debug_to_clone_and_follow_inferior): Remove.
91 (debug_to_post_follow_inferior_by_clone): Remove.
92 (setup_target_debug): Don't set to_clone_and_follow_inferior
93 or to_post_follow_inferior_by_clone.
94 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
95 and to_post_follow_inferior_by_clone.
96 (child_clone_and_follow_inferior): Remove prototype.
97 (child_post_follow_inferior_by_clone): Remove prototype.
98 (target_clone_and_follow_inferior): Remove macro.
99 (target_post_follow_inferior_by_clone): Remove macro.
100 (find_default_clone_and_follow_inferior): Remove prototype.
104 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
105 inferior_has_vforked, and inferior_has_execd instead of
106 target_has_forked, target_has_vforked, and target_has_execd.
107 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
108 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
109 (CHILD_WAIT): Define.
110 (child_wait): Add prototype.
111 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
113 (hpux_has_vforked): Likewise, from child_has_vforked.
114 (hpux_has_execd): Likewise, from child_has_execd.
115 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
116 (not_same_real_pid, child_wait): New, copied from inftarg.c.
117 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
118 and hpux_has_syscall_event instead of the target hooks.
119 * infrun.c (inferior_has_forked, inferior_has_vforked)
120 (inferior_has_execd): New functions.
121 * inftarg.c (not_same_real_pid): Remove.
122 (child_wait): Remove references to not_same_real_pid,
123 target_has_forked, target_has_vforked, target_has_execd,
124 and target_has_syscall_event.
125 (child_has_forked, child_has_vforked, child_has_execd)
126 (child_has_syscall_event): Remove.
127 (init_child_ops): Remove references to child_has_forked,
128 child_has_vforked, child_has_execd, and child_has_syscall_event.
129 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
130 (hpux_has_vforked): Likewise, from child_has_vforked.
131 (hpux_has_execd): Likewise, from child_has_execd.
132 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
133 * target.c (cleanup_target): Remove references to
134 to_has_forked, to_has_vforked, to_has_execd, and
135 to_has_syscall_event.
136 (update_current_target): Likewise.
137 (setup_target_debug): Likewise.
138 (debug_to_has_forked): Remove.
139 (debug_to_has_vforked): Remove.
140 (debug_to_has_execd): Remove.
141 (debug_to_has_syscall_event): Remove.
142 * target.h (struct target_ops): Remove to_has_forked.
143 to_has_vforked, to_has_execd, and to_has_syscall_event.
144 (child_has_forked, child_has_vforked, child_has_execd)
145 (child_has_syscall_event): Remove prototypes.
146 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
148 (target_has_forked, target_has_vforked, target_has_execd)
149 (target_has_syscall_event): Remove macros.
153 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
154 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
155 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
156 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
157 * target.c (cleanup_target): Remove reference to
158 to_can_follow_vfork_prior_to_exec.
159 (update_current_target): Likewise.
160 (debug_to_can_follow_vfork_prior_to_exec): Remove.
161 (setup_target_debug): Remove reference to
162 to_can_follow_vfork_prior_to_exec.
163 * target.h (struct target_ops): Remove
164 to_can_follow_vfork_prior_to_exec.
165 (child_can_follow_vfork_prior_to_exec): Remove prototype.
166 (target_can_follow_vfork_prior_to_exec): Remove definition.
167 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
169 * infrun.c (follow_vfork_when_exec): Remove.
170 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
171 (follow_exec): Likewise.
172 (handle_inferior_event): Likewise.
173 (keep_going): Likewise.
177 * frame.c (generic_unwind_get_saved_register): Make static.
178 * frame.h (generic_unwind_get_saved_register): Delete declaration.
179 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
180 defaults to generic_unwind_get_saved_register.
181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
182 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
183 * frv-tdep.c (frv_gdbarch_init): Ditto.
184 * i386-tdep.c (i386_gdbarch_init): Ditto.
185 * s390-tdep.c (s390_gdbarch_init): Ditto.
186 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
187 * v850-tdep.c (v850_gdbarch_init): Ditto.
188 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
189 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
190 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
194 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
199 * frame.h (sigtramp_saved_pc): Delete declaration.
200 * blockframe.c (sigtramp_saved_pc): Delete function.
201 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
202 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
203 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
204 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
208 * frame.c (frame_pc_unwind): New function.
209 (frame_saved_regs_pc_unwind): New function.
210 (frame_register_unwind): Pass unwind_cache instead of
211 register_unwind_cache.
212 (set_unwind_by_pc): Add unwind_pc parameter, set.
213 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
214 (get_prev_frame): Ditto.
215 * frame.h (frame_pc_unwind_ftype): Declare.
216 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
217 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
218 (frame_pc_unwind): Declare.
219 * dummy-frame.c (dummy_frame_pc_unwind): New function.
220 (struct dummy_frame): Add comment mentioning that values are for
222 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
223 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
224 (generic_file_frame_chain_valid): Ditto.
225 * stack.c (frame_info): Ditto.
229 * linespec.c (locate_first_half): New function.
230 (decode_line_1): Move code into locate_first_half.
234 * complaints.h: Add comment explaining how to eliminate a
235 deprecated_complain call.
236 * complaints.h: Fix spelling errors.
240 * printcmd.c: Remove #include "disasm.h".
244 * frame.h: Move the most relevant interface functions to the start
249 * regcache.h (deprecated_registers): Rename registers.
250 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
251 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
252 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
253 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
254 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
255 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
256 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
257 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
258 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
259 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
260 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
265 * utils.c (gdb_realpath): Add comment mentioning realpath with a
270 * regcache.h (deprecated_read_register_bytes): Rename
272 (deprecated_write_register_bytes): Rename write_register_bytes.
273 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
274 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
275 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
276 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
277 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
278 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
279 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
280 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
281 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
282 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
283 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
284 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
285 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
286 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
290 * findvar.c (read_var_value): Doc fix.
294 * regcache.c (struct regcache): Replace passthough_p with
296 (regcache_xmalloc): Initialize readonly_p.
297 (build_regcache): Initialize readonly_p.
298 (regcache_save): New function.
299 (regcache_restore): New function.
300 (regcache_cpy): Re-implement using regcache_save and
302 (regcache_raw_read): Update.
303 (regcache_cooked_read): When a read-only cache, checked for cached
304 pseudo register values.
305 (regcache_raw_write): Assert that the cache is not read-only.
306 Remove code handling a non-passthrough cache.
307 * regcache.h (regcache_save): Declare.
308 (regcache_restore): Declare.
312 * regcache.c (struct regcache_descr): Add fields
313 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
314 (init_legacy_regcache_descr): Compute the size of a cooked
315 register cache and then assign that to sizeof_raw_registers. Set
316 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
317 (init_legacy_regcache_descr): Ditto.
321 * regcache.c (register_buffer): Move to near start of file, update
323 (regcache_raw_read): Use.
324 (regcache_raw_write): Use.
325 (struct regcache): Rename raw_registers to registers and
326 raw_register_valid_p to register_valid_p.
327 (regcache_xmalloc): Update.
328 (regcache_xfree): Update.
329 (register_buffer): Update.
330 (regcache_cpy): Update.
331 (regcache_cpy_no_passthrough): Update.
332 (regcache_valid_p): Update.
333 (deprecated_grub_regcache_for_registers): Update.
334 (deprecated_grub_regcache_for_register_valid): Update.
335 (set_register_cached): Update.
336 (regcache_raw_write): Update.
340 * p-exp.y (name_not_typename): Use copy_name to
341 set current_type variable for fields of THIS.
345 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
346 * monitor.c (init_base_monitor_ops): Likewise.
347 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
348 * remote-array.c (init_array_ops): Likewise.
349 * remote-e7000.c (init_e7000_ops): Likewise.
350 * remote-es.c (init_es1800_ops): Likewise.
351 (init_es1800_child_ops): Likewise.
352 * remote-rdp.c (init_remote_rdp_ops): Likewise.
353 * remote-sim.c (init_gdbsim_ops): Likewise.
354 * remote-st.c (init_st2000_ops): Likewise.
355 * sol-thread.c (init_sol_core_ops): Likewise.
356 (init_sol_thread_ops): Likewise.
357 * v850ice.c (init_850ice_ops): Likewise.
358 * win32-nat.c (init_child_ops): Likewise.
359 * wince.c (init_child_ops): Likewise.
363 * utils.c (gdb_realpath): Make rp a constant pointer.
367 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
368 a constant buffer; cannonicalize_file_name(); realpath() with a
369 pathconf() defined buffer, xstrdup().
373 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
374 to hang2.C; hang3.c to hang3.C.
378 * findvar.c (read_var_value): Reenable TLS code.
383 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
384 * target.c (update_current_target): Add
385 to_get_thread_local_address.
386 * target.h (to_get_thread_local_address): Export.
387 (target_get_thread_local_address): Define.
388 (target_get_thread_local_address_p): Define.
389 * thread-db.c: Include solib-svr4.h.
390 (td_thr_tls_get_addr_p): Define.
391 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
392 (thread_db_get_thread_local_address): New function.
393 (init_thread_db_ops): Initialize to_get_thread_local_address.
394 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
395 * configure: Regenerate.
396 * config.in: Regenerate.
400 * linespec.c (set_flags): New function.
401 (decode_line_1): Move code into set_flags.
405 * linespec.c (decode_line_1): Move chunks of code to separate
407 (initialize_defaults): New function.
408 (decode_indirect): New function.
412 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
413 instead of void_code_ptr.
414 (sigtramp_saved_pc): Ditto.
416 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
421 * gdbtypes.h (struct main_type): Move artificial flag out of
422 loc. New member of ``struct field'' named static_kind. Reduce
423 overloaded meaning of bitsize.
424 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
425 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
426 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
428 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
430 (template_to_fixed_record_type, template_to_static_fixed_type)
431 (to_record_with_fixed_variant_part): Likewise.
432 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
433 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
434 * dwarfread.c (struct_type, enum_type): Likewise.
435 * hpread.c (hpread_read_enum_type)
436 (hpread_read_function_type, hpread_read_doc_function_type)
437 (hpread_read_struct_type): Likewise.
438 * mdebugread.c (parse_symbol): Likewise.
442 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
443 * stack.c (print_frame_info_base): Update.
444 (print_frame_info_base, frame_info): Update.
445 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
446 (sparc_frame_saved_pc): Update.
447 * ada-lang.c (find_printable_frame): Update.
448 * breakpoint.c (deprecated_frame_in_dummy): Update.
452 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
454 (regmap): Extend to cover all registers.
455 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
456 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
458 (fetch_register, sore_register): Simplify.
459 (old_fetch_inferior_registers, old_store_inferior_registers):
461 (cannot_fetch_register, cannot_store_register): Change
462 implementation to use regmap array to decide which registers
463 cannot be fetched/stored. This removes $orig_eax from the
464 registers that cannot be fetched/stored.
465 (fetch_inferior_registers): Call fetch_register directly instead
466 of calling old_fetch_inferior_registers.
467 (store_inferior_registers): Call store_register directly instead
468 of calling old_store_inferior_registers.
469 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
470 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
471 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
475 * i387-tdep.c (i387_supply_register): When called with NULL as a
476 buffer, mark the register as not provided (to mirror the behavior
478 (i387_supply_fxsave): Ditto.
479 (i387_supply_fsave): Ditto (inherits the behavior from
480 i387_supply_register).
484 * blockframe.c (sigtramp_saved_pc): Use
485 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
486 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
487 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
491 * frame.c (get_prev_frame): Test prev_p to identify a previously
492 unwound frame. Initialize prev_p.
493 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
498 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
499 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
500 more comments. Zap dead code.
504 * infcmd.c (print_vector_info, print_float_info): Move code that
505 checks whether the target has any registers and whether there is a
506 selected frame up, such that it is also used if a target provides
507 multi-arch definitions of these functions.
511 * Makefile.in (DESTDIR): Define.
512 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
515 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
516 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
520 * i386-linux-tdep.c: Include "reggroups.h".
521 (i386_linux_register_reggroup_p): New function.
522 (i386_linux_init_abi): Set register_reggroup_p to
523 i386_linux_register_reggroup_p.
524 * i386-tdep.h (i386_register_reggroup_p): Declare.
525 * i386-tdep.c: Include "reggroups.h".
526 (i386_init_reggroups): New function.
527 (i386_add_reggroups): New function.
528 (i386_register_reggroup_p): New function.
529 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
530 (_initialize_i386_tdep): Call i386_init_reggroups.
531 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
536 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
537 request that's available in *BSD.
539 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
541 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
546 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
547 * dummy-frame.c (find_dummy_frame): Rename
548 generic_find_dummy_frame, make static. Return the dummy frame
549 instead of the regcache.
550 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
551 (cached_find_dummy_frame): New function. Use find_dummy_frame.
552 (dummy_frame_register_unwind): Rename
553 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
554 * dummy-frame.h (dummy_frame_register_unwind): Rename
555 generic_call_dummy_register_unwind.
559 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
560 except the inclusion of "i386/tm-i386.h", to...
561 * config/i386/nm-i386v42mp.h: ...here.
562 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
566 * Makefile.in (frame.o): Update dependencies.
567 * blockframe.c (current_frame, frame_obstack_alloc)
568 (frame_saved_regs_zalloc, get_current_frame)
569 (set_current_frame, create_new_frame)
570 (set_unwind_by_pc, get_next_frame)
571 (flush_cached_frames, reinit_frame_cache)
572 (frame_saved_regs_register_unwind)
573 (deprecated_generic_get_saved_register)
574 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
575 (_initialize_blockframe): Move frame code from here...
576 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
577 "annotate.h" and "dummy-frame.h".
578 (_initialize_frame): New function.
582 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
583 when we finish a function a context.
584 * buildsym.h (outermost_context_p): New macro.
585 (Bug analyzed by David Edelsohn.)
589 * blockframe.c: Include "dummy-frame.h".
590 (struct dummy_frame, dummy_frame_stack)
591 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
592 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
593 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
594 (generic_save_call_dummy_addr, generic_pop_current_frame)
595 (generic_pop_dummy_frame, generic_fix_call_dummy)
596 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
597 dummy frame code from here...
598 * dummy-frame.c: ...to here. New file.
599 * dummy-frame.h: New file.
600 (generic_call_dummy_register_unwind): Declare.
601 (generic_find_dummy_frame): Declare.
602 * Makefile.in (SFILES): Add dummy-frame.c.
603 (dummy-frame.o): Specify dependencies.
604 (dummy_frame_h): Define.
605 (COMMON_OBS): Add dummy-frame.o.
606 (blockframe.o): Update dependencies.
610 * dwarf2read.c (read_func_scope): Restore local_symbols and
611 param_symbols after we finish the function context. (Based on a
612 patch from David Edelsohn.)
616 * linespec.c (symbol_found): New function.
617 (minsym_found): New function.
618 (decode_line_1): Separate out some code into separate functions.
622 * i386-tdep.c (i386_frameless_signal_p): Make non static for
623 the benefit of the interix target.
624 * i386-tdep.h (i386_frameless_signal_p): Declare.
628 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
629 declaration that snuck in from change below.
633 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
635 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
636 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
637 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
638 (i386_mxcsr_regnum_p): new function. Use instead of
640 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
641 (i386_sse_regnum_p): Declare.
642 (i386_mxcsr_regnum_p): Declare.
643 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
644 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
645 (IS_FP_REGNUM): Update definition.
646 (IS_FPU_CTRL_REGNUM): Update definition..
647 (IS_SSE_REGNUM): Update definition..
648 * i386v-nat.c (register_u_addr): Update.
649 * go32-nat.c (fetch_register): Update.
650 (store_register): Update.
654 Preparation work to convert the hppa targets to multiarch partial.
656 * hppa-tdep.c: Add new functions replacing macro bodies from
657 config/pa/tm-hppa.h. These function will be used to initialize
658 the gdbarch structure. Import some comments from tm-hppa.h,
659 and place them where appropriate, to avoid loosing them when
660 we cleanup this file.
661 (hppa_reg_struct_has_addr): New function.
662 (hppa_inner_than): New function.
663 (hppa_stack_align): New function.
664 (hppa_pc_requires_run_before_use): New function.
665 (hppa_instruction_nullified): New function.
666 (hppa_register_byte): New function.
667 (hppa_register_virtual_type): New function.
668 (hppa_store_struct_return): New function.
669 (hppa_cannot_store_register): New function.
670 (hppa_frame_args_address): New function.
671 (hppa_frame_locals_address): New function.
672 (hppa_smash_text_address): New function.
673 (hppa_coerce_float_to_double): New function. Requires the inclusion
676 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
678 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
679 gdbarch-eligible macro to a call to the new associated function
680 created in hppa-tdep.c.
681 (INNER_THAN): Likewise.
682 (STACK_ALIGN): Likewise.
683 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
684 (INSTRUCTION_NULLIFIED): Likewise.
685 (REGISTER_BYTE): Likewise.
686 (REGISTER_VIRTUAL_TYPE): Likewise.
687 (STORE_STRUCT_RETURN): Likewise.
688 (CANNOT_STORE_REGISTER): Likewise.
689 (FRAME_ARGS_ADDRESS): Likewise.
690 (FRAME_LOCALS_ADDRESS): Likewise.
691 (SMASH_TEXT_ADDRESS): Likewise.
692 (COERCE_FLOAT_TO_DOUBLE): Likewise.
693 (ABOUT_TO_RETURN): Delete, as no longer used.
697 * printcmd.c (disassemble_command): Remove obsolete function.
698 (_initialize_printcmd): Do not create disassemble command here.
699 * cli/cli-cmds.c (disassemble_command): New function. Implements
701 (init_cli_cmds): Create disassemble command here instead.
705 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
709 * regcache.h (regcache_cooked_read_using_offset_hack)
710 (regcache_cooked_write_using_offset_hack): Delete declarations.
711 (register_changed): Delete declaration.
712 * regcache.c (regcache_cooked_read_using_offset_hack)
713 (regcache_cooked_write_using_offset_hack): Delete functions.
714 (cooked_xfer_using_offset_hack): Delete function.
715 (register_changed): Delete function.
719 * macroscope.c: #include "complaints.h".
720 (sal_macro_scope): Cope with filenames that appear in the symtabs,
721 but not in the macro table.
722 * Makefile.in (macroscope.o): Record dependency.
726 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
730 * regcache.c (deprecated_registers_fetched): Update.
731 * regcache.h (deprecated_registers_fetched): Rename
733 * remote-vxsparc.c (vx_read_register): Update.
734 * remote-vxmips.c (vx_read_register): Update.
735 * remote-vx68.c (vx_read_register): Update.
736 * irix5-nat.c (fetch_core_registers): Update.
737 * mipsm3-nat.c (fetch_inferior_registers): Update.
738 * sun3-nat.c (fetch_inferior_registers): Update.
739 * symm-nat.c (fetch_inferior_registers): Update.
740 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
741 (fetch_core_registers): Update.
742 (fetch_kcore_registers): Update.
743 * mips-nat.c (fetch_inferior_registers): Update.
744 * corelow.c (get_core_registers): Update.
745 * a68v-nat.c (fetch_inferior_registers): Update.
749 Put in place the framework necessary for multiarching the hppa targets.
750 * hppa-tdep.c (hppa_gdbarch_init): New function.
751 (hppa_dump_tdep): New function.
752 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
753 tdep structure dumper.
754 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
755 until the multi-arching conversion has partially been completed.
759 * valops.c (value_assign): Merge lval_register case into
760 lval_reg_frame_relative. Use frame_register and
761 regcache_cooked_write instead of get_saved_register and
762 write_register_bytes. After flushing the register cache, try to
763 re-select the selected frame.
767 * regcache.h (deprecated_register_valid): Rename register_valid.
768 * regcache.c: Update.
769 * ia64-aix-nat.c: Update.
770 * i386gnu-nat.c: Update.
771 * alpha-nat.c: Update.
772 * sparc-nat.c: Update.
773 * lynx-nat.c: Update.
774 * remote-mips.c: Update.
778 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
779 to end of file, to be more consistent with the pratice followed
784 * infcmd.c: Include "reggroups.h" and <ctype.h>.
785 (print_float_info): Print registers in float_reggroup.
786 (print_vector_info): Print registers in vector_reggroup.
787 (default_print_registers_info): When all, print registers in
788 all_reggroup. Otherwize, print registers in general_reggroup.
789 (registers_info): Rewrite. Add support for register groups.
794 * symtab.c (methods_info): Delete. It has been ifdeffed out for
796 (symtab_symbol_info): Remove eons old ifdeffed out code.
797 (_initialize_symtab): Remove prehistoric disabled 'info methods'
802 * c-exp.y: Add missing semi-colons.
803 * f-exp.y: Add missing semi-colons.
804 * m2-exp.y: Add missing semi-colons.
805 * p-exp.y: Add missing semi-colons.
806 Add empty action to start rule to avoid a type clash error when
807 building with bison >= 1.50.
811 * macrotab.h (struct macro_source_file): Doc fix.
815 * varobj.c (child_exists, cplus_number_of_children): Change
816 STREQ macro references to strcmp.
817 (cplus_name_of_child): Change code to handle the fact that
818 fields are not necessarily contiguous with regards to their
819 access control. This is a fix for PR gdb/792.
823 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
824 * gdbarch.h, gdbarch.c: Regnerate.
825 * frame.h (frame_register): Declare.
826 * frame.c (frame_register): New function.
827 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
828 GET_SAVED_REGISTER, otherwize call
829 generic_unwind_get_saved_register.
830 (frame_register_read): Use frame_register instead of
836 * event-top.c (gdb_disable_readline): New function.
837 (_initialize_event_loop): Move comment.
841 * event-loop.c (start_event_loop): Add comment.
846 * infcmd.c (default_print_registers_info): Do not call
851 * sparc-tdep.c (sparc_print_register_hook): Make static.
852 (sparc_print_registers_info): New function.
853 (sparc_do_registers_info): New function.
854 (sparclet_print_registers_info): New function.
855 (sparclet_do_registers_info): New function.
856 (do_sparc_print_registers_info): New function.
857 (sparc_print_registers): New static function, clone of infcmd.c's
858 default_print_registers_info.
859 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
860 (sparclet_do_registers_info): Declare.
861 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
862 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
864 (sparc_do_registers_info): Declare.
865 (PRINT_REGISTER_HOOK): Delete macro.
866 (sparc_print_register_hook): Delete declaration.
870 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
872 (lookup_symbol_aux_local): New function.
873 (lookup_symbol_aux_symtabs): New function.
874 (lookup_symbol_aux_psymtabs): New function.
878 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
879 previous values of 'objfile' and 'block'.
883 * values.c (value_change_enclosing_type): Set
884 enclosing_type field correctly also for the case where
885 more memory needs to be allocated.
889 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
892 * i387-tdep.c (i387_print_float_info): Replace calls to
893 register_read and deprecated_read_register_gen with calls to
894 frame_register_read, and make the necessary adjustments to the
899 * gdbarch.sh (register_reggroup_p): Allow default value.
900 * gdbarch.h, gdbarch.c: Regenerate.
904 * regcache.h: Add coment indicating replacements for deprecated
909 * reggroups.h, reggroups.c: New files.
910 * regcache.c: Include "reggroups.h".
911 (enum regcache_dump_what): Add `regcache_dump_groups'.
912 (regcache_dump): Contract size of the "Type" column. When
913 specified, dump the register's groups.
914 (maintenance_print_register_groups): New function.
915 (_initialize_regcache): Add command `maint print register-groups'.
916 * Makefile.in (COMMON_OBS): Add reggroups.o
917 (SFILES): Add reggroups.c.
918 (reggroups_h): Define.
919 (regcache.o, gdbarch.o): Update dependencies.
920 (reggroups.o): Specify dependencies.
921 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
922 Add opaque declaration for `struct reggroup' in generated .h file.
923 Include "reggroups.h" in generated .c file.
924 gdbarch.h, gdbarch.c: Re-generate.
928 * regcache.h (deprecated_read_register_gen): Rename
930 (deprecated_write_register_gen): Rename write_register_gen.
931 * i387-tdep.c: Update.
932 * x86-64-linux-nat.c: Update
934 * thread-db.c: Update.
935 * win32-nat.c: Update.
936 * mips-tdep.c: Update.
937 * d10v-tdep.c: Update.
938 * cris-tdep.c: Update.
939 * remote-sim.c: Update.
940 * remote-rdi.c: Update.
941 * remote-rdp.c: Update.
944 * blockframe.c: Update.
945 * x86-64-tdep.c: Update.
946 * xstormy16-tdep.c: Update.
948 * s390-tdep.c: Update.
949 * rs6000-tdep.c: Update.
950 * sparc-tdep.c: Update.
951 * i386-tdep.c: Update.
952 * dwarf2cfi.c: Update.
953 * regcache.c: Update.
957 New interix-specific files:
958 * config/i386/nm-interix.h: New file.
959 * config/i386/interix.mh: New file.
960 * config/i386/interix.mt: New file.
961 * i386-interix-nat.c: New file.
962 * i386-interix-tdep.c: New file.
966 * frame.h (deprecated_generic_get_saved_register): Rename
967 generic_get_saved_register.
968 * blockframe.c (deprecated_generic_get_saved_register): Update.
969 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
970 (xstormy16_frame_saved_register): Update.
971 * sh-tdep.c (sh_gdbarch_init): Update.
972 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
973 * ia64-tdep.c (ia64_get_saved_register): Update.
974 * cris-tdep.c (cris_gdbarch_init): Update.
975 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
976 * arm-tdep.c (arm_gdbarch_init): Update.
980 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
984 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
985 trampolines in sigaction.
989 * h8300-tdep.c: Include "gdb_assert.h".
990 (h8300_print_register): Add gdbarch, file and frame parameters.
991 Use frame_read_unsigned_register to read the register's value.
992 Use fprintf_filtered to display output.
993 (h8300_print_registers_info): Replace h8300_do_registers_info.
994 (h8300_gdbarch_init): Set print_registers_info.
998 * frame.c (frame_read_unsigned_register): New function.
999 (frame_read_signed_register): New function.
1000 * frame.h (frame_read_unsigned_register): Declare.
1001 (frame_read_signed_register): Declare.
1005 * h8500-tdep.c (h8500_print_registers_info): New static function,
1006 clone of infcmd.c's default_print_registers_info.
1007 (h8500_do_registers_info): New funtion.
1008 (h8500_print_register_hook): Rename print_register_hook, make
1011 * config/h8500/tm-h8500.h: Update copyright.
1012 (DEPRECATED_DO_REGISTERS_INFO): Define.
1013 (h8500_do_registers_info: Declare.
1014 (PRINT_REGISTER_HOOK): Delete macro.
1015 (print_register_hook): Delete function.
1019 * z8k-tdep.c (z8k_print_register_hook): Make static.
1020 (z8k_print_registers_info): New static function, clone of
1021 infcmd.c's default_print_registers_info.
1022 (z8k_do_registers_info): New function. Wrap
1023 z8k_print_registers_info.
1024 * config/z8k/tm-z8k.h: Update copyright.
1025 (PRINT_REGISTER_HOOK): Delete macro.
1026 (z8k_print_register_hook): Delete declaration.
1027 (DEPRECATED_DO_REGISTERS_INFO): Define.
1028 (z8k_do_registers_info): Declare.
1032 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1033 as this is already provided by value.h, and was actually causing
1034 a compilation error because of a conflict in parameter type
1035 declaration due to a missing const keyword.
1036 (low_text_segment_addres): Fix a compilation warning.
1040 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1041 registers without a name.
1042 (mips_linux_cannot_store_register): Don't store registers without
1047 * symtab.c (find_addr_symbol): Delete. (It was already commented
1049 * symtab.h: Delete prototype for find_addr_symbol.
1053 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1055 gdbarch.h, gdbarch.c: Re-generate.
1056 * infcmd.c (default_print_registers_info): Update reference.
1057 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1058 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1059 * sh-tdep.c (sh_gdbarch_init): Ditto.
1060 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1061 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1065 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1066 cfi_init_extra_frame_info.
1067 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1068 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1070 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1071 target where necessary. Add more comments and remove the ones
1072 that don't provide any useful information.
1074 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1075 deprecated_read_register_dummy with
1076 frame_unwind_unsigned_register.
1078 * i386-tdep.c (i386_extract_struct_value_address): Use
1079 regcache_raw_read_unsigned instead of
1080 regcache_cooked_read_unsigned since we know that the register
1081 we're reading isn't a pseudo register. Rename variable 'val' into
1082 the more descriptive 'addr'.
1084 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1085 (x86_64_push_return_address): Add comment.
1086 (x86_64_pop_frame): Make static.
1087 (examine_argument): Clarify comment.
1088 (x86_64_skip_prologue): Make prolog_expact variable static.
1090 * dwarf2cfi.c: Fix some formatting problems.
1091 (context_cpy, read_encoded_pointer): Clarify comments.
1093 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1094 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1095 i386 target back into x86_64_gdbarch_init. Add some comments and
1096 remove meaningless ones.
1100 * complaints.h (struct deprecated_complaint): Rename `struct
1102 * complaints.c (complain): Update.
1103 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1104 incorrect comment indicating that "symfile.h" was being included
1105 for the `struct complaint' definition.
1106 * remote-vx.c: Update.
1107 * objc-lang.c: Update.
1108 * xcoffread.c: Update.
1110 * mdebugread.c: Update.
1111 * stabsread.c: Update.
1112 * dwarf2read.c: Update.
1113 * dwarfread.c: Update.
1114 * elfread.c: Update.
1115 * coffread.c: Update.
1116 * stabsread.h: Update.
1117 * dbxread.c: Update.
1118 * buildsym.c: Update.
1119 * gdbtypes.c: Update.
1120 * macrotab.c: Update.
1124 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1125 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1126 (x86_64_init_abi): ...new function.
1128 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1129 * i386v-nat.c: Include "i386-tdep.h".
1133 * gdbtypes.c (address_space_name_to_int): Update.
1134 (address_space_int_to_name): Update.
1135 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1136 multi-arch predicate.
1137 (address_class_name_to_type_flags): Ditto.
1138 * gdbarch.h, gdbarch.c: Re-generate.
1140 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1144 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1148 * symtab.h (INIT_SAL): Delete macro.
1150 * symtab.c (init_sal): New function.
1152 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1153 to init_sal function call.
1154 (find_sal_from_funcs_and_line): Ditto.
1155 (all_sals_for_line): Ditto.
1156 * breakpoint.c (create_internal_breakpoint): Ditto.
1157 (create_fork_vfork_event_catchpoint): Ditto.
1158 (create_exec_event_catchpoint): Ditto.
1159 (parse_breakpoint_sals): Ditto.
1160 (watch_command_1): Ditto.
1161 (handle_gnu_4_16_catch_command): Ditto.
1162 (clear_command): Ditto.
1163 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1164 * infcmd.c (run_stack_dummy): Ditto.
1165 * infrun.c (process_event_stop_test): Ditto.
1166 (check_sigtramp2): Ditto.
1167 (step_over_function): Ditto.
1168 * linespec.c (decode_line_2): Ditto.
1169 (decode_line_1): Ditto.
1170 * source.c (line_info): Ditto.
1171 * symtab.c (find_pc_sect_line): Ditto.
1175 * dwarf2cfi.c (struct context)
1176 (struct context_reg): Moved to dwarf2cfi.h
1177 (context_alloc, frame_state_alloc, context_cpy):
1178 Made extern instead of static, removed prototypes.
1179 * dwarf2cfi.h (struct context)
1180 (struct context_reg): New, moved from dwarf2cfi.c
1181 (context_alloc, frame_state_alloc, context_cpy):
1183 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1184 Changed from static to extern.
1185 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1186 (LINUX_SIGCONTEXT_FP_OFFSET)
1187 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1188 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1189 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1190 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1191 set_gdbarch_*() calls now use x86-64 specific functions
1192 instead of DWARF2 CFI ones.
1193 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1194 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1195 (x86_64_init_extra_frame_info): New prototypes.
1199 * linespec.c: #include "parser-defs.h".
1200 Delete prototype for find_template_name_end.
1201 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1205 * NEWS: add recent mi fixes.
1206 * varobj.c (struct varobj): Add new "updated" flag.
1207 (new_variable): Default "updated" flag to 0.
1208 (varobj_set_value): Set "updated" flag to 1 if value
1210 (varobj_update): Check varobj "updated" flag before
1211 comparing old and refreshed values. Fix for
1216 * parse.c (parse_exp_1): Use BLOCK_START.
1217 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1219 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1223 * symtab.c: Delete cplusplus_hint.
1224 Delete prototype for find_template_name_end.
1228 * symtab.h: Update comment.
1232 * printcmd.c (address_info): Restore quotes in output.
1233 * valops.c (value_of_local): Restore quotes in error message.
1237 * symtab.c (symbol_demangled_name): New function.
1238 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1239 turning most of it into a function.
1240 (symbol_demangled_name): Export.
1244 * valops.c (value_of_local): Restore quotes in error message.
1248 * symtab.c (symbol_init_language_specific): New function.
1249 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1250 turning most of it into a function.
1251 (symbol_init_language_specific): Export.
1255 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1256 (dwarf_attr_name): Ditto.
1257 (dwarf_type_encoding_name): Ditto.
1258 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1259 (process_die): Handle DW_TAG_namespace,
1260 DW_TAG_imported_declaration, DW_TAG_imported_module.
1261 (read_namespace): New function.
1265 * configure.in: Define NEW_PROC_API on Interix too.
1266 * configure: Regenerate.
1270 * configure: Regenerate using the proper version of autoconf.
1274 * findvar.c (read_var_value): Temporarily disable TLS code, until
1275 complete TLS support is added.
1280 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1281 for thread local storage locations.
1282 (struct symbol): Add objfile field.
1283 (SYMBOL_OBJFILE): Define.
1284 * dwarf2read.c (is_thread_local): New static variable.
1285 (new_symbol): If variable is in thread local fill in address class
1286 and objfile appropriately.
1287 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1289 * printcmd.c (address_info): Print the information for thread
1290 local storage variable.
1291 * findvar.c (read_var_value): In case of thread local variable,
1292 defer to the target vector code to compute address.
1296 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1297 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1301 * symtab.h (address_class): Rename
1302 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1303 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1304 * printcmd.c (address_info): Ditto.
1305 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1309 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1310 DBREG_DRX macro to acces debug registers.
1312 * Makefile.in (i386obsd-tdep.o): New target.
1314 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1315 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1317 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1318 * config/i386/obsd.mt: New file.
1319 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1320 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1321 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1322 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1323 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1324 * i386obsd-tdep.c: New file.
1328 * objc-exp.y (name_not_typename): Fix invalid comment.
1332 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1333 to allocate partial syms and macro byte caches.
1337 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1341 * stabsread.c (find_name_end): New function.
1342 (define_symbol): Use it.
1346 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1347 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1348 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1349 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1353 * symfile.h: Add opaque declaration for struct obstack.
1354 Declare obsavestring to take a const char *.
1355 * symfile.c (obsavestring): Make first argument a const char *.
1359 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1360 names when matching breakpoints in current file.
1364 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1365 (read_tag_pointer_type): Add address class support.
1366 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1367 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1369 * gdbarch.h, gdbarch.c: Regenerate.
1370 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1371 (make_type_with_address_space, recursive_type_dump): Add address
1373 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1374 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1375 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1379 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1380 to get the last character of a char[] buffer, not
1381 name[sizeof(vptr_name)-1].
1385 * symtab.h: New objc_specific struct.
1386 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1387 (SYMBOL_DEMANGLED_NAME): Likewise.
1391 * symfile.c (init_filename_language_table): Add ObjC file extension.
1395 * utils.c (puts_filtered_tabular): New function.
1396 (fprintf_symbol_filtered): Get ObjC demangled name.
1397 * defs.h (puts_filtered_tabular): Declared.
1401 * c-lang.h (c_type_print_varspec_prefix): Delete.
1402 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1403 ``need_post_space'' parameter. Adjust all callers.
1407 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1408 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1409 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1410 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1414 * source.c (print_source_lines): Update comments.
1418 * valops.c (value_of_local): New function.
1419 (value_of_this): Use it.
1420 * value.h (value_of_local): Declared.
1424 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1425 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1429 * language.c (binop_result_type): Add language_objc to case.
1430 (integral_type): Likewise.
1431 (character_type): Likewise.
1432 (string_type): Likewise.
1433 (boolean_type): Likewise.
1434 (structured_type): Likewise.
1435 (binop_type_check): Likewise.
1439 * printcmd.c (address_info): Print 'self' for ObjC.
1443 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1448 * language.h (CAST_IS_CONVERSION): Add language_objc.
1452 * defs.h (enum language): Add language_objc.
1456 * corefile.c (read_memory_typed_address): New function.
1457 * gdbcore.h (read_memory_typed_address): Add prototype.
1458 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1459 to read a value destined for a CORE_ADDR, not read_memory_integer.
1460 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1461 (f77_get_dynamic_lowerbound): Ditto.
1465 * utils.c (string_to_core_addr): After turning string into
1466 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1467 which will do necessary sign-extension, etc.
1471 * c-exp.y (THIS): Delete token and grammar rule.
1472 (yylex): Don't return THIS.
1473 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1474 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1475 * demangle.c (cplus_markers): Update comment. Put '$'
1476 first. Remove CPLUS_MARKER.
1477 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1478 * jv-exp.y (THIS): Delete token and grammar rule.
1479 (yylex): Don't return THIS.
1480 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1481 * objc-exp.y (THIS): Delete token and grammar rule.
1482 (yylex): Don't return THIS.
1483 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1484 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1485 (read_member_functions): Likewise for opname.
1486 (read_tilde_fields): Use is_cplus_marker.
1488 * defs.h (CPLUS_MARKER): Don't define.
1489 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1490 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1491 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1492 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1493 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1495 * config/i386/tm-i386v4.h: Delete file.
1496 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1497 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1498 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1499 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1500 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1501 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1502 * config/i386/i386v4.mt (TM_FILE): Likewise.
1503 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1507 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1508 accidentially not commited 2002-10-09
1509 * gdbarch.h, gdbarch.c: Re-generate.
1513 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1514 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1515 * gdbarch.h, gdbarch.c: Re-generate.
1521 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1522 so we can work on more than one compilation unit at a time. This
1523 helps prepare GDB to handle inter-CU die references.
1524 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1525 the code to be defined before struct comp_unit_head.
1526 (comp_unit_head): Added new members - offset, cu_head,
1527 begin_die, next and dwarf2_abbrevs.
1528 (dwarf2_abbrevs): Removed single static var; now member of
1529 struct comp_unit_head.
1530 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1532 (psymtab_to_symtab_1): Changed to work with the new
1533 struct comp_unit_head.
1534 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1535 constructs the dwarf2_abbrevs[] inside the cu_header.
1536 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1537 dwarf2_abbrev table to clean up.
1538 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1539 handling of dwarf2_abbrevs inside the cu_header.
1540 (read_partial_die): Now supports the call to the new
1541 dwarf2_lookup_abbrev.
1542 (read_full_die): Now supports the call to the new
1543 dwarf2_lookup_abbrev.
1547 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1548 insure that shell variables, such as "transformed_name" are propagated
1549 to later shell statements in rule.
1553 * config/i386/nm-i386sco.h: Add protection against
1554 multiple-inclusion. Include "i386/nm-i386v.h".
1555 (REGISTER_U_ADDR): Remove define.
1556 (i386_register_u_addr): Remove prototype.
1560 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1561 before treating it as a single-step event.
1565 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1566 (objc_demangle): Remove assignment in if statements, Replace
1568 (add_msglist): Likewise.
1569 (end_msglist): Likewise.
1570 (complare_selectors): Likewise.
1571 (selectors_info): Likewise.
1572 (compare_classes): Likewise.
1573 (classes_info): Likewise.
1574 (print_object_command): Likewise.
1575 (find_objc_msgcall_submethod): Replace PTR with void *.
1576 * objc-lang.h: Remove check for __STDC__.
1580 * ui-out.h (ui_out_field_fmt_int): New prototype.
1581 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1582 of field width and alignment.
1583 * stack.c (print_frame_info_base): When printing frame level, use
1584 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1589 * MAINTAINERS: Add self to Write After Approval list.
1593 * infcmd.c (interrupt_target_command_wrapper): Delete.
1594 (interrupt_target_command): Make non static.
1595 (nofp_registers_info): Make static.
1596 * stack.c (return_command_wrapper): Delete.
1597 (return_command): Make non static.
1601 * event-top.c (gdb_setup_readline): New function. Code moved from
1602 _initialize_event_loop().
1603 (_initialize_event_loop): Call gdb_setup_readline().
1607 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1608 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1609 * gdbarch.h, gdbarch.c: Re-generate.
1614 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1616 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1617 of fill_in_vptr_fieldno.
1621 * inferior.h (registers_info, stepi_command, nexti_command,
1622 continue_command, interrupt_target_command): Export from infcmd.c.
1623 * frame.h (args_info, selected_frame_level_changed_hook,
1624 return_command): Export from stack.c.
1625 * v850ice.c (stepi_command, nexti_command, continue_command): use
1626 prototypes from inferior.h.
1627 * tracepoint.c (registers_info, args_info, locals_info): Use
1628 prototypes from frame.h and inferior.h.
1629 * Makefile.in (mi-main.o): Add dependency on frame.h.
1633 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1634 value in register 3 adjusted by ppc_gp0_regnum.
1636 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1640 * MAINTAINERS: Add myself to the Write After Approval list.
1644 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1645 of the section for the N64 ABI, fixed.
1647 * config/mips/tm-irix6.h: Include solib.h.
1651 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1656 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1657 and that "mi0" syntax has been removed.
1661 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1662 * ppc-sysv-tdep.c: #include "gdb_string.h".
1663 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1668 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1669 "vrsave"'s register number.
1673 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1674 use frame_unwind_signed_register to obtain the PC.
1675 (mips_frame_chain): Handle a generic dummy frame.
1676 (mips_init_extra_frame_info): When a generic dummy frame, don't
1677 re-compute the frame base.
1678 (mips_pop_frame): Handle generic dummy frames.
1679 (mips_gdbarch_init): When generic dummy frames, set
1680 use_generic_dummy_frames, push_dummy_frame to
1681 generic_push_dummy_frame, pc_in_call_dummy to
1682 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1683 generic_save_dummy_frame_tos.
1687 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1688 against TOP when TOP was explictly set.
1689 (generic_push_dummy_frame): Set TOP to zero.
1693 * event-loop.c (start_event_loop): Rename variable 'result' to
1694 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1698 * gdb-events.sh (selected_thread_changed): New event.
1699 * gdb-events.c: Regenerated.
1700 * gdb-events.h: Regenerated.
1704 * MAINTAINERS: Add self to Write After Approval list.
1708 * disasm.c: New file.
1709 * disasm.h: New file.
1710 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1711 (compare_lines): Ditto.
1712 (dump_insns): Ditto.
1713 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1715 (do_assembly_only): Ditto.
1716 (do_disassembly): Renamed to gdb_disassembly and moved to
1717 disasm.c. Sdded uiout argument.
1718 * Makefile.in: Add new files. Reorder SFILES list. Update
1719 dependencies. Include libgdb.a later in the insight executable.
1723 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1724 bfd/elf64-alpha-fbsd.c.
1728 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1733 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1735 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1737 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1738 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1739 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1740 (S_msg_sig_post_reply): Ditto.
1744 * sh-tdep.c (sh_use_struct_convention): Use definition according
1746 (sh_push_arguments): Store in register with correct endianess.
1747 (sh_default_store_return_value): Ditto.
1748 (sh_gdbarch_init): Set sizeof long double to 8.
1752 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1753 Fix some whitespace problems.
1757 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1758 (mcore-tdep.o): Ditto.
1759 (ns32k-tdep.o): Ditto.
1760 (ns32knbsd-tdep.o): Ditto.
1762 (vax-tdep.o): Ditto.
1763 * cris-tdep.c: #include "gdb_string.h"
1764 * mcore-tdep.c: Ditto.
1765 * ns32k-tdep.c: Ditto.
1766 * ns32knbsd-tdep.c: Ditto.
1768 * vax-tdep.c: Ditto.
1772 * config/djgpp/fnchange.lst: Add entries for
1773 gdb/testsuite/gdb.c++/m-static files.
1777 * MAINTAINERS: Add myself to the Write After Approval list.
1781 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1786 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1791 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1792 (rs6000_struct_return_address): Delete variable.
1793 (rs6000_store_struct_return): Update.
1794 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1795 deprecated_extract_struct_value_address.
1796 (rs6000_frame_align): New function.
1797 (rs6000_gdbarch_init): Set frame_align.
1802 * Makefile.in (gdbtk-main.o): New target.
1803 (gdb.o): New target.
1805 (main.o): Update dependencies.
1806 (gdb$(EXEEXT)): Add gdb.o.
1807 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1808 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1809 (SUBDIR_GDBTK_CLEAN): Set.
1810 (install-gdbtk): Install the insight binary.
1811 (uninstall-gdbtk): New target.
1812 (all-gdbtk, clean-gdbtk): New rule.
1813 * top.c (use_windows): Default to zero.
1814 * main.c: Include "main.h".
1816 (struct captured_main_args): Delete.
1817 (gdb_main): New function.
1823 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1824 (frame_map_regnum_to_name): New function.
1825 (frame_map_name_to_regnum): New function.
1826 * frame.h (frame_map_name_to_regnum): Declare.
1827 (frame_map_regnum_to_name): Declare.
1828 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1829 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1830 * parse.c: Do not include "builtin-regs.h".
1831 (target_map_name_to_register): Delete function.
1832 (write_dollar_variable): Use frame_map_name_to_regnum.
1833 * parser-defs.h (target_map_name_to_register): Delete declaration.
1834 * expprint.c: Include "frame.h".
1835 (print_subexp): Use frame_map_regnum_to_name.
1836 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1837 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1841 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1842 wasn't saved, and the next innermost frame is a dummy, return the
1843 dummy frame's link register.
1847 Fix from Paul Breed:
1848 * main.c (captured_main): Add a `break' after the case for 'b'.
1852 * varobj.c (c_type_of_child): Use get_target_type instead
1853 of TYPE_TARGET_TYPE.
1857 * source.c (get_current_or_default_source_symtab_and_line): Remove
1859 (set_default_source_symtab_and_line): New function. Attempts to
1860 determine a source file to list lines from if one is not currently
1862 (get_current_source_symtab_and_line): Initialize sal.pc and
1864 (set_current_source_symtab_and_line): Mark argument as const.
1865 * source.h: Update declarations and comments.
1866 * linespec.c (decode_line_1): Replace call to removed routine above.
1867 * stack.c (print_frame_info_base): Ditto.
1868 * cli/cli-cmds.c (edit_command): Ditto.
1869 (list_command): Ditto.
1873 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1874 sal.pc and sal.end fields.
1875 (get_current_or_default_source_symtab_and_line): Ditto.
1876 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1877 so we do not cause a new source symtab to be searched for (reverting an
1878 unintentional change from the 2002-09-20 patch).
1879 * scm-lang.c (scm_unpac): Ditto.
1883 * complaints.c (symfile_explanations): Remove new-line from
1884 ``isolated_message''.
1885 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1886 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1890 * NEWS: Announce that V850EA ISA is no longer supported.
1891 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1895 * Makefile.in (c-lang.o): Correct dependencies.
1896 (utils.o): Gather dependencies.
1898 * c-lang.c: #include "gdb_string.h"
1903 * cli/cli-cmds.c (list_command): New function. Implements the new
1905 (_init_cli_cmds): Add new command definition.
1906 * gdb.1: Document edit command.
1907 * doc/gdb.texinfo: Document edit command.
1911 * source.c: Make global variables current_source_symtab and
1912 current_source_line static.
1913 (list_command): Moved to cli/cli-cmds.c.
1914 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1915 (get_first_line_listed): New accessor function.
1916 (get_lines_to_list): New accessor function.
1917 (get_current_source_symtab_and_line): New function. Retrieves the
1918 position in the source code that we consider current.
1919 (get_current_or_default_source_symtab_and_line): New function.
1920 Like the above but attempts to determine a default position if one
1921 is not currently defined.
1922 (set_current_source_symtab_and_line): New function. Sets the source
1923 code position considered current and returns the previously set one.
1924 (clear_current_source_symtab_and_line): Reset stored information about
1925 a current source line.
1926 (_initialize_source): Remove registration for the "list" command and
1928 * source.h: Add declarations for the new functions above.
1929 * symtab.h: Remove declarations for the global variables mentioned
1931 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1932 obtain current source line.
1933 * linespec.c (decode_line_1): Ditto.
1934 * macroscope.c (default_macro_scope): Ditto.
1935 * scm-lang.c (scm_unpac): Ditto.
1936 * stack.c (print_frame_info_base): Ditto.
1937 * symfile.c (clear_symtab_users): Ditto.
1938 * symtab.c (decode_line_spec): Ditto.
1939 * cli/cli-cmds.c (list_command): Moved here from source.c.
1940 (ambiguous_line_spec): Moved here from source.c.
1941 (_init_cli_cmds): Add definition for "list" and its alias.
1942 * Makefile.in: Update dependencies.
1946 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1947 with what gcc thinks is correct.
1951 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1952 multiple register push instruction.
1956 Add support for distinct host and target character sets.
1957 * charset.c, charset.h: New files.
1958 * c-exp.y: #include "charset.h".
1959 (yylex): Convert character and string literals to the target
1960 character set, before returning them as the semantic value of the
1962 * c-lang.c: #include "charset.h".
1963 (c_emit_char): Use charset-specific methods to recognize
1964 characters with backslash escape forms, to decide which characters
1965 to print literally and which to print using numeric escape
1966 sequences, and to convert target characters to host characters
1968 * utils.c: #include "charset.h".
1969 (no_control_char_error): New function.
1970 (parse_escape): Use charset-specific methods to recognize
1971 backslash escapes, parse `control character' notation, and convert
1972 characters from the host character set to the target character set.
1973 * configure.in: Set the default host character set.
1974 Check where to find iconv, and what its argument types might be.
1975 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1976 * Makefile.in (SFILES): List charset.c.
1977 (COMMON_OBS): List charset.o.
1978 (charset.o): New rule.
1979 (charset_h): New header dependency variable.
1980 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1981 (LIBICONV): New variable, set by configure.
1982 (CLIBS): Include $(LIBICONV) here.
1983 * aclocal.m4, config.in, configure: Regenerated.
1987 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1992 * gdb_mbuild.sh: New file.
1996 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2000 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2001 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2002 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2003 valops.c, value.h: Revert previous change.
2007 Preliminary support for Objective-C:
2008 * defs.h (language_objc): New enum value.
2009 (puts_filtered_tabular): Declaration only, exported from utils.c.
2010 (skip_quoted): Delete, declared in completer.h.
2011 * c-exp.y: Include completer.h.
2014 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2015 New operator enum values.
2016 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2017 * language.c (binop_result_type): Handle language_objc case.
2018 (integral_type, character_type, string_type, boolean_type,
2019 structured_type, binop_type_check): Ditto.
2020 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2021 (struct objc_specific): Add to general_symbol_info.
2022 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2023 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2024 * parser-defs.h (struct objc_class_str): New struct type.
2025 (start_msglist, end_msglist, add_msglist): Declaration only,
2026 exported from objc-lang.c.
2027 * value.h (value_of_local, value_nsstring,
2028 call_function_by_hand_expecting_type): Exported from valops.c.
2029 * valops.c (find_function_addr): Export.
2030 (call_function_by_hand_expecting_type): New function.
2031 (value_of_local): New function.
2032 * symfile.c (init_filename_language_table): Add ".m" extension
2034 * utils.c (puts_filtered_tabular): New function.
2035 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2036 (set/show demangle): Extend help-string to refer to ObjC.
2037 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2038 * stabsread.c (symbol_reference_defined): Objective-C symbols
2039 may contain colons: make allowances when scanning stabs strings
2041 (objc_find_colon): New function.
2042 * printcmd.c (address_info): If language == objc then print
2043 "self" instead of "this".
2044 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2045 OP_NSSTRING, and OP_SELF.
2046 (prefixify_subexp): Ditto.
2047 * source.c (print_source_lines): Mention objc in comment.
2048 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2053 * complaints.h: Update copyright.
2054 (struct complaints): Declare.
2055 (struct complaint): Make `message' constant.
2056 (internal_complaint): Declare.
2057 (complaint): Declare.
2058 (complaint_root): Delete declaration.
2059 (symfile_complaints): Delete declaration.
2060 (struct complaints): Add opaque declaration.
2061 (clear_complaints): Add a complaints parameter.
2062 * complaints.c: Update copyright.
2063 (enum complaint_series): Define.
2064 (complaint_root): Delete.
2065 (struct complaints): Define.
2066 (complaint_sentinel, symfile_complaint_book): New variables.
2067 (symfile_explanations, symfile_complaints): New variables.
2069 (get_complaints): New function.
2070 (vcomplaint): New function.
2071 (complaint): New function.
2072 (internal_complaint): New function.
2073 (complain): Call vcomplain with symfile_complaint.
2074 (clear_complaints): Rewrite.
2075 (_initialize_complaints): Use add_setshow_command.
2076 * Makefile.in (complaints.o): Update dependencies.
2077 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2078 to call to clear_complaints.
2079 (new_symfile_objfile, reread_symbols): Ditto.
2080 (oldsyms_complaint): Delete.
2081 (empty_symtab_complaint, unknown_option_complaint): Delete.
2082 (free_named_symtabs): Use complaint instead of complain.
2086 Contributed by Apple Computer, Inc. Merged with current sources
2089 * objc-lang.c: First clean-up round: comments, indentation.
2090 * objc-lang.h: Ditto.
2091 * objc-lang.y: Ditto.
2095 * maint.c (maintenance_internal_error): Print the parameter as the
2097 (maintenance_internal_warning): New function.
2098 (_initialize_maint_cmds): Add command `maint internal-warning'.
2100 * defs.h (internal_warning, internal_vwarning): Declare.
2101 * utils.c (struct internal_problem): Define.
2102 (internal_vproblem): New function.
2103 (internal_warning): New function.
2104 (internal_vwarning): New function.
2105 (internal_warning_problem, internal_error_problem): New variables.
2106 (internal_verror): Just call internal_vproblem.
2110 * objc-lang.c: New file, support for Objective-C.
2111 Preliminary check-in, not yet integrated into gdb.
2112 * objc-lang.h: New file.
2113 * objc-exp.y: New file.
2117 * infrun.c (signal_stop_update): Convert definition to ISO C.
2118 (signal_print_update): Ditto.
2119 (signal_pass_update): Ditto.
2120 * inflow.c (terminal_save_ours): Ditto.
2122 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2125 * config/djgpp/fnchange.lst: Handle name clashes between
2126 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2129 * i386-linux-tdep.h: Fix tipo.
2133 * MAINTAINERS: Add myself to the Write After Approval list.
2137 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2138 texthigh and textlow to reader-specific structs caused
2139 objfile_relocate to miss them. This is fixable, but the work that
2140 the change was supposed to prepare GDB for never got done anyway.
2144 * MAINTAINERS: Alphabetize Write After Approval list.
2149 * values.c (value_static_field): Call read_var_value.
2153 * valops.c (hand_function_call): Align the initial stack pointer
2154 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2155 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2157 * mips-tdep.c (mips_frame_align): New function.
2158 (mips_gdbarch_init): Set frame_align.
2159 * gdbarch.sh (FRAME_ALIGN): New method.
2160 * gdbarch.h, gdbarch.c: Re-generate.
2164 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2169 * NEWS: Mention that MIPS $fp behavior changed.
2170 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2171 reference to FP_REGNUM.
2172 (mipsnbsd_cannot_store_register): Ditto.
2173 * mips-linux-nat.c: Update copyright.
2174 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2175 (mips_linux_cannot_store_register): Ditto.
2176 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2177 * config/mips/tm-mips.h: Update copyright.
2178 (FP_REGNUM): Delete macro.
2179 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2180 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2181 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2182 (mips_r3041_reg_names, mips_r3051_reg_names)
2183 (mips_r3081_reg_names): Replace "fp" with "".
2188 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2189 generic_read_register_dummy() (PR gdb/703).
2190 (avr_push_return_address): #if 0 out unused vars.
2191 (avr_gdbarch_init): Enable use of avr_push_return_address().
2195 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2196 RTE will take care of it.
2200 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2201 invalid, return SP_REGNUM.
2205 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2206 point registers without sign extension.
2210 * blockframe.c (deprecated_read_register_dummy): Rename
2211 generic_read_register_dummy.
2212 * frame.c (frame_unwind_signed_register): New function.
2213 (frame_unwind_unsigned_register): New function.
2214 * frame.h (frame_unwind_signed_register): Declare.
2215 (frame_unwind_unsigned_register): Declare.
2216 (deprecated_read_register_dummy): Rename
2217 generic_read_register_dummy.
2219 * h8300-tdep.c (h8300_frame_chain): Update.
2220 (h8300_frame_saved_pc): Update.
2221 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2222 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2223 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2224 (s390_frame_chain): Update.
2225 * v850-tdep.c (v850_find_callers_reg): Update.
2226 (v850_frame_saved_pc): Update.
2227 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2228 (m32r_find_callers_reg): Update.
2229 (m32r_frame_saved_pc): Update.
2230 * sh-tdep.c (sh_find_callers_reg): Update.
2231 (sh64_get_saved_pr): Update.
2232 (sh_init_extra_frame_info): Update.
2233 (sh_init_extra_frame_info): Update.
2234 (sh64_init_extra_frame_info): Update.
2235 (sh64_init_extra_frame_info): Update.
2236 * mcore-tdep.c (mcore_find_callers_reg): Update.
2237 (mcore_frame_saved_pc): Update.
2238 (mcore_init_extra_frame_info): Update.
2239 * i386-tdep.c (i386_frame_saved_pc): Update.
2240 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2241 (ia64_init_extra_frame_info): Update.
2242 (ia64_init_extra_frame_info): Update.
2243 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2244 * cris-tdep.c (cris_init_extra_frame_info): Update.
2245 * avr-tdep.c (avr_frame_chain): Update.
2246 (avr_init_extra_frame_info): Update.
2247 (avr_frame_saved_pc): Update.
2248 * arm-tdep.c (arm_find_callers_reg): Update.
2249 (arm_init_extra_frame_info): Update.
2250 (arm_frame_saved_pc): Update.
2254 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2259 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2260 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2262 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2267 * osfsolib.c: Remove file, replaced by solib-osf.c.
2268 * Makefile.in: Remove compilation rules for osfsolib.c.
2272 * cp-valprint.c (cp_print_class_method): Correct args to
2273 check_stub_method_group.
2277 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2278 `set architecture'. Unify naming convention of functions.
2279 (h8300_skip_prologue): Improve prologue analysis.
2280 (h8300_push_arguments): Rewritten to more closely match GCC's
2281 bizarre argument-passing behavior, along with the comment describing
2283 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2284 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2285 sim, remote-e7000.c, remote-hms.c and remote.c
2289 * i386-tdep.c (gdb_print_insn_i386): Removed.
2290 (i386_print_insn): New function.
2291 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2292 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2297 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2302 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2303 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2304 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2308 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2312 * gdbtypes.c (check_stub_method): Make static.
2313 (check_stub_method_group): New function.
2314 * gdbtypes.h: Update prototypes.
2315 * cp-support.c: New file.
2316 * cp-support.h: New file.
2318 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2319 (update_method_name_from_physname): New function.
2320 (read_member_functions): Correct method names for operators
2321 and v3 constructors/destructors. Separate v2 constructors and
2323 * Makefile.in (stabsread.o): Update dependencies.
2324 (SFILES): Add cp-support.c.
2325 (COMMON_OBS): Add cp-support.o.
2326 (cp_support_h, cp-support.o): Add.
2328 * cp-valprint.c (cp_print_class_method): Call
2329 check_stub_method_group instead of check_stub_method. Remove
2331 * p-valprint.c (pascal_object_print_class_method): Likewise.
2332 * valops.c (search_struct_method): Likewise.
2333 (find_method_list, value_struct_elt_for_reference): Likewise.
2337 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2338 * gdbarch.h, gdbarch.c: Regenerate.
2342 * frame.c (find_saved_register): Delete function.
2343 * frame.h (find_saved_register): Delete declaration.
2348 * mips-tdep.c (read_next_frame_reg): Re-hack using
2349 frame_register_unwind.
2353 * mips-tdep.c (mips_get_saved_register): Re-hack using
2354 frame_register_unwind.
2358 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2359 vector. Will be useful for Interix.
2360 * gdbarch.h, gdbarch.c: Regenerate.
2362 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2363 name of the malloc function by NAME_OF_MALLOC.
2367 * value.h (find_function_in_inferior): Add const keyword to
2368 one of the parameters. Allows us to invoke this function with
2370 * valops.c (find_function_in_inferior): Likewise.
2374 * exec.c (xfer_memory): Fix compilation warning with old versions
2376 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2380 * symtab.h: Run through gdb_indent.h.
2381 Add 2002 to Copyright year list.
2385 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2387 * MAINTAINERS: Add myself to write after approval list.
2391 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2395 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2400 * procfs.c (do_detach): Clear current signal, not just fault.
2401 Corrects problem with breakpoint trap signal leaking to detached
2406 * buildsym.c (finish_block): Protect against null pointer.
2410 * infcmd.c (default_print_registers_info): Send all output to
2411 ``file'' instead of ``gdb_stdout''.
2415 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2416 LONGEST, and use signed register read (addresses are sign-
2421 * event-loop.c (gdb_do_one_event): Make public.
2422 * event-loop.h (gdb_do_one_event): Declare.
2426 * infttrace.c (child_resume): Simplify and rework to avoid
2431 * printcmd.c (print_scalar_formatted): "len" is the number of
2432 target bytes, NOT the number of target bits.
2437 * top.c (init_main): Set rl_terminal_name.
2441 * ada-lang.c (ada_array_bound, ada_type_match,
2442 _initialize_ada_language): Fix K&R definitions.
2443 * ada-tasks.c (get_current_task): Fix K&R definitions.
2444 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2448 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2453 * i386-tdep.c (i386_register_virtual_type,
2454 i386_register_convertible, i386_register_convert_to_virtual,
2455 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2456 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2457 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2458 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2459 Don't set push_arguments twice.
2461 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2462 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2463 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2464 sigtramp_end to NULL.
2465 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2467 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2469 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2472 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2473 * gdbarch.h, gdbarch.c: Re-generate.
2474 * blockframe.c (find_pc_sect_partial_function): Convert to use
2475 SIGTRAMP_START_P predicate.
2479 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2480 generic_dummy_frame method and old method. Also distinguish
2481 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2482 (arm_extract_return_value): Use new regcache method.
2484 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2485 adjustment that doesn't conform to the ABI.
2486 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2487 saved regcache, not from current regcache.
2491 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2496 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2497 if arm_apcs_32 is false.
2501 GDB 5.3 branch created.
2505 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2506 generic_unwind_get_saved_register.
2510 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2511 argument (PR gdb/653). Update call to smash_to_method_type.
2512 (read_structure_scope): Update call to dwarf2_add_member_fn.
2516 * x86-64-linux-tdep.c: Include gdb_string.h
2517 * x86-64-linux-nat.c: Ditto.
2521 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2522 when YYDEBUG is set to 1.
2523 * c-exp.y: Likewise.
2524 * f-exp.y: Likewise.
2525 * jv-exp.y: Likewise.
2526 * m2-exp.y: Likewise.
2527 * p-exp.y: Likewise.
2531 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2533 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2534 solib_svr4_fetch_link_map_offsets to
2535 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2536 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2537 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2538 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2539 solib-svr4.o, and solib-legacy.o.
2540 * config/i386/tm-nbsd.h: Include solib.h.
2544 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2545 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2546 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2547 comment noting that this needs its own target configuration.
2548 * config/i386/nbsd.mt: New file.
2549 * config/i386/nbsdaout.mt: Remove.
2550 * config/i386/nbsdelf.mt: Ditto.
2551 * config/i386/tm-nbsdaout.h: Ditto.
2555 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2556 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2557 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2559 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2560 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2561 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2565 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2566 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2567 * i386-tdep.h (i386bsd_init_abi): New prototype.
2568 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2569 function declaration.
2570 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2571 for NetBSD-a.out or NetBSD-ELF.
2572 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2573 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2574 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2575 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2577 (i386nbsd_pc_in_sigtramp): New function.
2578 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2579 i386nbsd_pc_in_sigtramp.
2580 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2581 and i386nbsdelf_init_abi OS ABI handlers.
2582 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2583 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2587 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2588 registers if the target really has them.
2592 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2597 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2599 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2600 (alphanbsd_skip_sigtramp_frame): New functions.
2601 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2602 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2603 to alphanbsd_sigcontext_addr.
2607 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2609 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2610 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2611 nbsd_pc_in_sigtramp.
2612 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2613 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2614 * nbsd-tdep.c: Include gdb_string.h.
2615 (nbsd_pc_in_sigtramp): New function.
2616 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2617 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2618 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2619 ppcnbsd_pc_in_sigtramp.
2620 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2621 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2622 shnbsd_pc_in_sigtramp.
2623 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2624 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2625 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2629 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2630 watchpoints to NULL.
2631 (insert_breakpoints): set val field of watchpoints if NULL.
2636 * symtab.c (lookup_symbol_aux): In the cases where we find a
2637 minimal symbol of an appropriate name and use its address to
2638 select a symtab to read and search, use `name' (as passed to us)
2639 as the demangled name when searching the symtab's global and
2640 static blocks, not the minsym's name.
2644 * stack.c (print_frame_info_base): Always set current_source_symtab
2645 and current_source_line.
2649 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2653 * stack.c (select_frame): Add FIXME concerning selected-frame
2655 (select_frame_command): Send selected-frame-level-changed
2656 event notification, but only if the level actually changed.
2657 (up_silently_base): Add selected-frame-level-changed event
2659 (down_silently_base): Likewise.
2663 * Makefile.in: Update dependencies for all gdb/*.c files.
2667 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2668 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2669 Update dependencies.
2670 * i387-tdep.c: Include gdb_string.h.
2671 * osabi.c: Likewise.
2672 * i386-linux-nat.c: Likewise.
2673 * lin-lwp.c: Likewise.
2674 * ax-gdb.c: Likewise.
2675 * signals/signals.c: Likewise.
2676 * jv-valprint.c: Likewise.
2677 * p-lang.c: Likewise.
2678 * c-valprint.c: Likewise.
2679 * cp-abi.c: Likewise.
2683 * cli/cli-script.h (copy_command_lines): Export.
2684 * breakpoint.c: Include cli/cli-script.h.
2685 * Makefile.in (breakpoint.o): Update dependencies.
2689 * breakpoint.c (insert_breakpoints): Protect all references
2690 to 'process_warning'. Shorten long lines.
2694 * cli/cli-script.c (copy_command_lines): New function.
2695 * defs.h (copy_command_lines): Export.
2696 * testsuite/gdb.base/commands.exp: New tests for commands
2697 attached to a temporary breakpoint, and for commands that
2698 delete the breakpoint they are attached to.
2702 * breakpoint.c (bpstat_stop_status): Instead of copying the
2703 pointer to the breakpoint commands struct, make a new copy
2704 of the struct and point to that.
2705 (bpstat_clear): Free the commands struct.
2706 (bpstat_clear_actions): Free the commands struct.
2707 (bpstat_do_actions): Free the command actions. Also execute
2708 the local cleanups, instead of deleting them.
2709 (delete_breakpoint): Leave the commands field of the bpstat
2710 chain alone -- it will be freed later.
2714 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2715 deleted in 2002-08-20 commit. This function is still used by
2720 * gdb-events.sh: Add selected-frame-level-changed event.
2721 * gdb-events.c: Regenerated.
2722 * gdb-events.h: Regenerated.
2727 * inflow.c (terminal_save_ours): New function to save terminal
2729 * inferior.h (terminal_save_ours): Declare.
2730 * target.c (debug_to_terminal_save_ours): New function.
2731 (cleanup_target): Defaults to_terminal_save_ours.
2732 (update_current_target): Inherit to_terminal_save_ours.
2733 (setup_target_debug): Set to_terminal_save_ours.
2734 * target.h (target_terminal_save_ours): New to save terminal settings.
2735 (target_ops): New member to_terminal_save_ours.
2736 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2737 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2738 * inftarg.c (init_child_ops): Likewise.
2739 * m3-nat.c (init_m3_ops): Likewise.
2740 * procfs.c (init_procfs_ops): Likewise.
2741 * wince.c (init_child_ops): Likewise.
2742 * win32-nat.c (init_child_ops): Likewise.
2743 * sol-thread.c (init_sol_thread_ops): Likewise.
2747 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2748 use regcache_* functions.
2749 (i386_gdbarch_init): Set store_return_value instead of
2750 deprecated_store_return_value.
2752 * regcache.c (regcache_raw_write_signed,
2753 regcache_raw_write_unsigned): New functions.
2754 * regcache.h (regcache_raw_write_signed,
2755 regcache_raw_write_unsigned): New prototypes.
2759 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2760 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2761 source file dependencies. Cleanup corresponding generator rules.
2765 * regcache.h (register_offset_hack): Declare.
2766 (regcache_cooked_read_using_offset_hack): Declare.
2767 (regcache_cooked_write_using_offset_hack): Declare.
2769 * regcache.c (register_offset_hack): New function.
2770 (regcache_cooked_read_using_offset_hack): New function.
2771 (regcache_cooked_write_using_offset_hack): New function.
2772 (regcache_dump): Check that the registers, according to their
2773 offset, are packed hard against each other.
2774 (cooked_xfer_using_offset_hack): New function.
2778 * regcache.c (struct regcache_descr): Add field register_type.
2779 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2781 (init_regcache_descr): Initialize register_type. Pass the descr
2782 to init_legacy_regcache_descr. Use register_type instead of
2783 REGISTER_VIRTUAL_TYPE.
2784 (register_type): New function.
2785 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2786 * regcache.h (register_type): Declare.
2790 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2791 instead of deprecated_store_return_value. Fix fallout from
2796 * regcache.c (max_register_size): New function.
2797 (init_legacy_regcache_descr): Ensure that max_register_size is
2798 large enough for REGISTER_VIRTUAL_SIZE.
2799 * regcache.h (max_register_size): Declare.
2803 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2805 (e500_extract_return_value): Change type of valbuf pointer to
2810 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2813 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2814 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2815 long long) to prevent compiler warning on 64-bit systems.
2819 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2820 (DEPRECATED_STORE_RETURN_VALUE): New method.
2821 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2822 * gdbarch.h, gdbarch.c: Re-generate.
2824 * values.c (set_return_value): Pass current_regcache to
2826 * arch-utils.h (legacy_store_return_value): Declare.
2827 * arch-utils.c (legacy_store_return_value): New function.
2828 (legacy_extract_return_value): Update parameters.
2830 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2832 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2833 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2834 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2835 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2836 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2837 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2838 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2839 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2840 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2841 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2844 * i386-tdep.c (i386_extract_return_value): Update.
2845 * arch-utils.c (legacy_extract_return_value): Update.
2846 * frv-tdep.c (frv_gdbarch_init): Update.
2847 * cris-tdep.c (cris_gdbarch_init): Update.
2848 * d10v-tdep.c (d10v_gdbarch_init): Update.
2849 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2850 * m68k-tdep.c (m68k_gdbarch_init): Update.
2851 * mcore-tdep.c (mcore_gdbarch_init): Update.
2852 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2853 * s390-tdep.c (s390_gdbarch_init): Update.
2854 * sparc-tdep.c (sparc_gdbarch_init): Update.
2855 * sh-tdep.c (sh_gdbarch_init): Update.
2856 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2857 * v850-tdep.c (v850_gdbarch_init): Update.
2858 * avr-tdep.c (avr_gdbarch_init): Update.
2859 * ia64-tdep.c (ia64_gdbarch_init): Update.
2860 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2861 * vax-tdep.c (vax_gdbarch_init): Update.
2862 * alpha-tdep.c (alpha_gdbarch_init): Update.
2863 * arm-tdep.c (arm_gdbarch_init): Update.
2864 * mips-tdep.c (mips_gdbarch_init): Update.
2865 * i386-tdep.c (i386_gdbarch_init): Update.
2869 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2870 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2874 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2879 * infrun.c (handle_inferior_event): Move a comment outside of a
2880 function call, in order to avoid indent reformatting this part
2881 of the code in an unreadable way.
2885 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2886 when breakpoints fail. Move general breakpoint error messages to
2888 * breakpoint.c (insert_breakpoints): Change warnings when
2889 breakpoints are nto inserted to specify the type. Remove call to
2890 memory_error when hardware breakpoints can't be inserted. Remove
2891 multiple calls to warning so all messages are sent to the user at
2893 (delete_breakpoints): Make insert error messsages more explicit.
2897 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2898 gdbserver/ChangeLog.
2902 * i386-tdep.c: Include "objfiles.h".
2903 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2904 skip_trampoline_code.
2905 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2906 (CPLUS_MARKER): Define to '.'.
2908 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2910 (linux_corefile_thread_callback): Increase args->num_notes.
2911 (linux_make_note_section): Initialize thread_args.num_notes, and
2912 use it to determine whether notes for any threads were created.
2916 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2917 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2919 (write_with_trace): Conditionalize out the switch branch handling
2920 PCSHOLD if the corresponding macro is not defined. Likewise for
2921 PRSABORT and PRSTOP.
2922 This change will be needed by the Interix port.
2926 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2927 write_register wherever possible instead of manipulating the
2928 register bytes directly.
2929 Assign VALUE_CONTENTS to a variable and use that.
2930 The GPR numbers are now dependent on the architecture.
2934 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2936 (skip_prologue): Add support for BookE/e500 instructions.
2937 (e500_extract_return_value): New function.
2938 (frame_get_saved_regs): Add support for saving ev registers and
2940 (e500_store_return_value): New function.
2941 (rs6000_gdbarch_init): Move up default intializations of
2942 deprecated_extract_return_value and store_return_value. Overwrite
2943 init of store_return_value with e500 specific version.
2944 Set extract_return_value for e500.
2948 * blockframe.c (generic_call_dummy_register_unwind): Use
2949 regcache_cooked_read to catch cases in which the variable is
2950 stored in a pseudo register.
2954 * NEWS: Mention that the i960 has been made obsolete.
2955 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2957 (remote-nrom.o): Obsolete target.
2958 (remote-nindy.o, i960-tdep.o): Ditto.
2959 * remote-nrom.c: Make file obsolete.
2960 * remote-nindy.c, remote-vx960.c: Ditto.
2961 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2962 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2963 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2964 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2965 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2966 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2967 i960-*-vxworks* obsolete.
2968 * MAINTAINERS: Note that the i960 is obsolete.
2972 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2973 detach to allow reinitialization.
2977 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2982 * coffread.c (coff_symfile_read): Don't try to read the line
2983 number table from disk if the image file doesn't have a symbol
2984 table; we'll never actually look at the info anyway, and Windows
2985 ships DLL's with bogus file offsets for the line number data.
2989 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2994 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2995 (MSYMBOL_SIZE): Replace macro with function.
2996 (DEFAULT_MIPS_TYPE): Delete unused macro.
2997 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2998 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3002 * valops.c (value_cast): Simplify and correct logic for doing a
3003 static cast from a pointer to a base class to a pointer to a
3008 * infcmd.c (default_print_registers_info): Replace
3010 (registers_info): Use gdbarch_print_registers_info instead of
3012 * inferior.h (default_print_registers_info): Replace
3014 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3015 (DO_REGISTERS_INFO): Change to a predicate function.
3016 * gdbarch.h, gdbarch.c: Regenerate.
3020 * gdb-events.sh: Add target-changed event.
3021 * gdb-events.c: Regenerated.
3022 * gdb-events.c: Regenerated.
3023 * valops.c (value_assign): Add target-changed event notification
3024 to inlval_register, lval_memory, and lval_reg_frame_relative.
3028 * NEWS: Add an entry regarding the improvement of the next/step
3029 operation on Alpha Tru64 multi-processor machines.
3033 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3035 * Makefile.in: Update all _h macro definitions.
3036 * Makefile.in (install-gdbtk): Move to install section.
3037 (rdi-share/libangsd.a): Move to end of file.
3041 * frame.c (frame_register_unwind): When a register, set addrp to
3042 the register's byte.
3046 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3047 used locally, so move them from the target machine header to here.
3048 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3049 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3051 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3055 * NEWS: Mention that the Apollo line was made obsolete.
3056 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3057 m68*-hp-hpux* obsolete.
3058 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3059 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3060 * buildsym.c (make_blockvector): Make static.
3061 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3062 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3063 (ALLDEPFILES): Remove dstread.c.
3064 (dstread.o): Obsolete make rule.
3065 * dstread.c: Makefile obsolete.
3067 * config/m68k/hp300hpux.mt: Ditto.
3068 * config/m68k/hp300hpux.mh: Ditto.
3069 * config/m68k/hp300bsd.mt: Ditto.
3070 * config/m68k/hp300bsd.mh: Ditto.
3071 * config/m68k/apollo68b.mt: Ditto.
3072 * config/m68k/apollo68v.mh: Ditto.
3073 * config/m68k/apollo68b.mh: Ditto.
3077 * mips-tdep.c (mips_in_return_stub): Make static.
3078 (mips_gdbarch_init): Set in_solib_return_trampoline.
3079 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3083 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3084 * gdbarch.c, gdbarch.h: Regenerate.
3085 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3087 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3091 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3092 (mips_gdbarch_init): Set skip_trampoline_code,
3093 in_solib_call_trampoline.
3094 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3095 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3099 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3101 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3102 vector type for ev registers.
3103 (e500_pseudo_register_read): New function.
3104 (e500_pseudo_register_write): New function.
3105 (e500_dwarf2_reg_to_regnum): New function.
3106 (PPC_UISA_NOFP_SPRS): New macro.
3107 (PPC_EV_REGS): New macro.
3108 (PPC_GPRS_PSEUDO_REGS): New macro.
3109 (registers_e500): New register set for e500.
3110 (variants): Add e500 variant.
3111 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3112 before setting architectural dependent variations. Initialize ev
3113 registers numbers. Add case for e500 architecture. Set the
3114 number of pseudo registers.
3118 * rs6000-tdep.c: Clean up comments.
3122 * h8300-tdep.c: Re-indent file.
3126 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3131 * breakpoints.c (watch_command_1): Use internal breakpoint
3132 when setting a watchpoint_scope breakpoint.
3136 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3137 (build_builtin_type_vec64i): Ditto.
3138 (build_builtin_type_vec128): Ditto.
3139 (build_builtin_type_vec128i): Ditto.
3143 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3144 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3145 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3146 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3147 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3148 CALL_DUMMY_ADDRESS): Delete.
3149 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3150 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3151 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3152 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3153 push_return_address.
3154 (mips_register_raw_size, mips_eabi_use_struct_convention,
3155 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3156 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3157 mips_init_extra_frame_info, mips_eabi_push_arguments,
3158 mips_n32n64_push_arguments, mips_push_return_address,
3159 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3160 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3164 * mips-tdep.c (mips_frame_num_args): New function.
3165 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3166 frame_saved_pc, frame_args_address, frame_locals_address,
3167 frame_num_args, and frame_args_skip.
3168 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3169 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3170 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3171 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3175 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3176 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3177 * mips-tdep.c (mips_store_struct_return): New function.
3178 (mips_extract_struct_value_address): New function.
3179 (mips_gdbarch_init): Set store_struct_return and
3180 extract_struct_value_address.
3184 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3185 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3186 (read_file_scope): Check that line_header is nonzero before
3187 decoding macro information.
3191 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3192 flag the general-purpose registers as floating-point on targets
3193 that don't support the floating-point registers.
3197 * rs6000-tdep.c (altivec_register_p): Delete.
3198 (rs6000_do_altivec_registers): Delete.
3199 (rs6000_altivec_registers_info): Delete.
3200 (rs6000_do_registers_info): Delete.
3201 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3202 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3206 * infcmd.c (do_registers_info): Print vector registers in hex
3208 (print_vector_info): Check that printing registers
3210 (print_float_info): Ditto.
3214 * mips-tdep.c (mips_gdbarch_init): Update.
3215 (mips_o32_extract_return_value): Rewrite.
3216 (mips_o32_store_return_value): Rewrite.
3217 (mips_o32_xfer_return_value): New function.
3218 (mips_xfer_register): Tweak debug print message. Allow for
3219 buf_offset when dumping the value transfered.
3223 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3224 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3225 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3226 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3227 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3231 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3235 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3237 (P): New macro to define a register as a pseudo register.
3238 (R, R4, R8, R16, FR32, R64, R0): Updated.
3239 (struct variant): Add new fields for number of pseudo registers
3240 and number of total registers.
3241 (tot_num_registers): New macro replacing....
3242 (num_registers): ...deleted macro.
3243 (num_registers): New function.
3244 (num_pseudo_registers): New function.
3245 (variants): Update all variants to intialize new fields correctly.
3246 Postpone initialization of number of pseudo regs and real regs.
3247 (init_variants): New function.
3248 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3253 * valops.c (search_struct_field): Change error message to treat
3254 return value of 0 from value_static_field as meaning that field is
3256 (value_struct_elt_for_reference): Ditto.
3257 * values.c (value_static_field): Treat an unresolved location the
3258 same as a nonexistent symbol. Fix PR gdb/635.
3259 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3260 enclosed. Fix PR gdb/574.
3261 * MAINTAINERS: Add self to Write After Approval list.
3265 * mips-tdep.c (mips_xfer_register): New function.
3266 (mips_n32n64_extract_return_value): Rewrite.
3267 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3268 instead of deprecated_extract_return_value.
3272 * rs6000-tdep.c (TDEP): Delete macro.
3273 (branch_dest): Replace use of TDEP macro with its body.
3274 (rs6000_pop_frame): Ditto.
3275 (rs6000_push_arguments): Ditto.
3276 (rs6000_skip_trampoline_code): Ditto.
3277 (rs6000_frame_saved_pc): Ditto.
3278 (rs6000_frame_chain): Ditto.
3279 (rs6000_register_name): Ditto.
3280 (rs6000_register_byte): Ditto.
3281 (rs6000_register_raw_size): Ditto.
3282 (rs6000_register_virtual_type): Ditto.
3283 (rs6000_register_convertible): Ditto.
3284 (rs6000_convert_from_func_ptr_addr): Ditto.
3288 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3290 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3291 MIPS_LINUX_JB_ELEMENT_SIZE.
3292 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3293 for MAX_REGISTER_RAW_SIZE arrays.
3294 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3295 MIPS_LINUX_JB_ELEMENT_SIZE.
3299 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3303 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3304 ada-valprint.c ada-tasks.c.
3305 (YYFILES): Add ada-exp.y.
3306 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3307 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3308 (ada-exp.tab.o): New target.
3312 * regcache.c (regcache_xfer_part): New function.
3313 (regcache_raw_read_part): New function.
3314 (regcache_raw_write_part): New function.
3315 (regcache_cooked_read_part): New function.
3316 (regcache_cooked_write_part): New function.
3317 * regcache.h (regcache_raw_read_part): Declare.
3318 (regcache_raw_write_part): Declare.
3319 (regcache_cooked_read_part): Declare.
3320 (regcache_cooked_write_part): Declare.
3324 * remote.c (remote_open_1): Add async_p.
3325 (remote_async_open_1): Delete.
3326 (open_remote_target): Delete.
3327 (remote_open, extended_remote_open): Update calls to remote_open_1.
3328 (remote_async_open, extended_remote_async_open): Call
3329 remote_open_1 instead of remote_async_open_1.
3333 * blockframe.c: Fix a few coding standard violations.
3337 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3339 * config/i386/tm-i386sco5.h: ... here. File removed.
3340 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3342 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3343 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3344 (TM_FILE): Set to tm-i386.h.
3345 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3346 * config/i386/tm-i386v.h: Remove file.
3347 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3348 instead of "i386/tm-i386v.h".
3349 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3350 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3352 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3353 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3358 * config/i386/nm-i386v.h: Add protection against
3360 (i386_register_u_addr): Remove prototype.
3361 (register_u_addr): New prototype.
3362 (REGISTER_U_ADDR): Redefine accordingly.
3363 * i386v-nat.c: Improve several comments.
3364 (i386_register_u_addr): Change signature and rename to
3365 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3370 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3371 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3372 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3373 deprecated_extract_return_value.
3374 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3375 rename mips_o32o64_push_arguments.
3376 (mips_gdbarch_init): Update.
3377 (mips_extract_return_value): Delete.
3378 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3379 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3380 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3381 (mips_n32n64_extract_return_value): Clone
3382 mips_extract_return_value.
3383 (mips_store_return_value): Delete.
3384 (mips_o32_store_return_value): Clone mips_store_return_value.
3385 (mips_o64_store_return_value): Clone mips_store_return_value.
3386 (mips_eabi_store_return_value): Clone mips_store_return_value.
3387 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3391 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3392 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3396 * ada-lang.c: Run through gdb_indent.sh.
3397 * ada-lang.h: Run through gdb_indent.sh.
3398 * ada-tasks.c: Run through gdb_indent.sh.
3399 * ada-typeprint.c: Run through gdb_indent.sh.
3400 * ada-valprint.c: Run through gdb_indent.sh.
3404 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3409 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3411 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3412 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3414 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3415 write_register_gen instead of write_register_bytes.
3417 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3418 i[3456]-*-osf1mk* configurations have been made obsolete.
3419 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3420 i[3456]86-*-osf1mk* hosts obsolete.
3421 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3423 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3424 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3425 config/i386/i386m3.mt, config/i386/nm-m3.h,
3426 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3427 config/i386/i386mk.mh, config/i386/i386mk.mt,
3428 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3430 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3431 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3432 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3436 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3437 (hppa_value_returned_from_stack): Declare.
3438 (hppa_extract_return_value): Declare.
3439 * config/pa/hppa.mt: New file.
3440 * configure.tgt: Recognize hppa*-*-*.
3441 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3445 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3450 * top.c (gdb_rl_operate_and_get_next): Make sure
3451 operate-and-get-next functions correctly even when the history
3452 list is completely filled.
3456 * MAINTAINERS (Target Instruction Set Architectures): Rename
3457 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3458 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3459 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3460 already listed under Host/Native.
3462 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3463 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3468 * config/ia64/ia64.mt: New file.
3469 * config/alpha/alpha.mt: New file.
3470 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3471 ia64-linux-gnu. Mention that ia64-elf is broken.
3472 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3476 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3477 generic_func_frame_valid instead of func_frame_valid.
3481 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3482 procfs appears to be broken when debugging on multi-processor
3483 machines. So enable software single stepping in order to avoid
3484 using the procfs interface to do next/step operations, using
3485 internal breakpoints instead.
3487 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3488 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3489 make this pc address equal to the value it would have if the
3490 system stepping capability was used. Also set a new flag used
3491 to ensure that we don't readjust the PC one more time later.
3493 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3494 address by DECR_PC_AFTER_BREAK when software single step is
3495 in use for this architecture, as this has already been taken
3496 care of in handle_inferior_event().
3500 * infrun.c (handle_inferior_event): Minor reformatting, to make
3501 a rather long condition expression easier to read.
3505 * Makefile.in (gdbtk.o): Move to end of file.
3506 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3507 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3508 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3509 (gdbtk-wrapper.o, gdbres.o): Ditto.
3513 * Makefile.in (copying.o): Separate out compile rule.
3514 (hpux-thread.o, procfs.o, signals.o): Ditto.
3515 (v850ice.o, z8k-tdep.o): Ditto.
3516 (tui-file.o): Move to TUI section.
3517 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3518 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3522 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3523 skip_trampoline_code, for better namespace-proofing.
3525 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3529 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3533 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3534 signal, check whether we hit a breakpoint before checking for a
3535 single step breakpoint. Otherwise, GDB fails to notice that a
3536 breakpoint has been hit when stepping onto a breakpoint.
3540 * gdb-events.sh (clear_gdb_event_hooks): New function.
3541 * gdb-events.c: Regenerate.
3542 * gdb-events.h: Regenerate.
3546 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3547 not_a_sw_breakpoint.
3548 * breakpoint.h (bpstat_stop_status): Add parameter names.
3552 * remote.c (remote_insert_hw_breakpoint)
3553 (remote_remove_hw_breakpoint): Fix calculation of length field
3558 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3559 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3560 (supply_fpregset): Ditto.
3562 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3563 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3564 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3565 (TARGET_READ_SP): Delete.
3566 (DO_REGISTERS_INFO): Delete.
3567 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3569 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3570 from macros to functions.
3572 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3573 (mips_register_convertible, mips_register_convert_to_virtual,
3574 mips_register_convert_to_raw): Make static.
3575 (mips_read_sp): New function.
3576 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3577 (mips_do_registers_info): Make static.
3578 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3579 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3580 (mips_register_convert_from_type, mips_register_convert_to_type):
3582 (mips_gdbarch_init): Set up function_start_offset,
3583 register_virtual_size, pc_in_sigtramp.
3587 * infcmd.c (vector_info): New function.
3588 (_initialize_infcmd): Add command "info vector".
3589 (print_vector_info): New function.
3591 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3592 * gdbarch.h, gdbarch.c: Regenerate.
3596 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3597 ``print_all''. Only print vector registers when ``print_all''.
3601 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3602 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3604 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3605 Add `args' parameter.
3606 * gdbarch.h, gdbarch.c: Regenerate.
3608 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3610 * infcmd.c (float_info): Call print_float_info.
3611 (print_float_info): New function. By default, print the
3612 floating-point registers.
3614 * arch-utils.h (default_print_float_info): Delete declaration.
3615 * arch-utils.c (default_print_float_info): Delete function.
3619 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3622 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3625 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3626 * configure.host: Make i[3456]86-*-aix host obsolete.
3627 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3628 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3629 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3630 config/i386/xm-i386aix.h: Make files obsolete.
3631 * i386aix-nat.c: Make file obsolete.
3632 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3633 (i386aix-nat.o): Make target obsolete.
3635 * config/i386/nm-gnu.h: Removed.
3636 * config/i386/nm-i386gnu.h: New file.
3637 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3638 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3640 * config/i386/tm-i386gnu.h: ... here. Removed.
3641 * config/i386/xm-i386gnu.h: Removed.
3642 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3643 (NAT_FILE): Set to nm-i386gnu.h.
3644 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3645 * i386-tdep.c: New file.
3646 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3647 (i386gnu-tdep.o): Specify dependencies.
3651 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3652 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3653 Adjust a few comments to reflect reality a bit closer.
3654 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3655 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3656 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3657 target_insert_watchpoint, target_remove_watchpoint):
3659 * config/i386/nm-i386sco5.h: ... here.
3660 (kernel_u_size): Add prototype. Improve a few comments and add
3661 protection against multiple inclusion.
3663 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3666 * uw-thread.c (SP_ARG0): Define if not already defined.
3667 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3669 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3671 * config/i386/tm-i386.h: Don't include "regcache.h".
3673 * i387-tdep.h (i387_print_float_info): New prototype.
3674 * i387-tdep.c (print_i387_value, print_i387_ext,
3675 print_i387_status_word, print_i387_control_word): Add `struct
3676 ui_file *' argument and use it for output.
3677 (i387_print_float_info): Renamed from i387_float_info. Add
3678 `struct gdbarch *' and `struct ui_file *' arguments and use the
3680 * i386-tdep.c: Include "i387-tdep.h".
3681 (i386_gdbarch_init): Set print_float_info.
3682 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3683 (FLOAT_INFO): Remove define.
3687 * mips-tdep.c (mips_push_arguments): Rename to
3688 mips_eabi_push_arguments, and tune for EABI.
3689 (MIPS_REGS_HAVE_HOME_P): Delete.
3690 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3691 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3692 Delete references to mips_regs_have_home_p.
3696 * Makefile.in (install-gdbtk): Create insight plugin directory.
3697 Install plugins.tcl file.
3701 * configure.in: Move SUBDIRS to near top of the file so that
3702 --enable options may add things to it.
3703 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3704 * configure: Regenerate.
3708 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3709 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3710 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3714 * vax-tdep.c (vax_get_saved_register): Delete function.
3715 (vax_gdbarch_init): Update.
3716 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3717 (ns32k_gdbarch_init): Update.
3718 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3719 (alpha_gdbarch_init): Update.
3723 * regcache.c (init_regcache_descr): Overallocate the
3724 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3725 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3727 (set_register_cached): Add range checking assertions. Use
3732 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3733 numbers for MMX registers.
3737 * i386-tdep.c (i386_gdbarch_init): Use
3738 generic_unwind_get_saved_register.
3742 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3743 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3745 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3746 Delete. Add comment regarding this now-deleted target method.
3750 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3751 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3752 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3753 real PC and the page number (if it's within the memory bank window).
3754 (m68hc11_pseudo_register_write): Likewise when saving.
3755 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3756 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3757 (m68hc11_register_raw_size): And use 32-bit for it.
3758 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3759 16K memory bank is used by the prog; also use the virtual pc.
3763 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3764 (m68hc11_gdbarch_init): Install it in gdbarch.
3765 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3766 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3767 (MSYMBOL_SIZE): New for documentation.
3768 (insn_return_kind): Enum to specify how a function returns.
3769 (frame_extra_info): Cleanup and record the return mode.
3770 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3771 register in address computation.
3772 (m68hc11_get_return_insn): New to obtain the return instruction used
3774 (m68hc11_frame_init_saved_regs): Take into account the return
3775 instruction used by the function for far and interrupt functions.
3776 (m68hc11_init_extra_frame_info): Take into account page register.
3777 (m68hc11_frame_args_address): Adjust according to the return mode.
3778 (show_regs): Print page register only when it's used.
3782 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3783 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3784 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3786 (m68hc11_register_raw_size): Likewise.
3790 * i386-tdep.c (i386_register_name): Handle mmx registers.
3791 (mmx_regnum_p): New function.
3792 (i386_mmx_names): New array.
3793 (mmx_num_regs): New variable.
3794 (i386_pseudo_register_read): New function.
3795 (i386_pseudo_register_write): New function.
3796 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3798 * regcache.c (regcache_raw_read_unsigned): New function.
3799 (regcache_raw_read_signed): New function.
3800 * regcache.h (regcache_raw_read_unsigned): Declare.
3801 (regcache_raw_read_signed): Declare.
3805 * regcache.c (regcache_raw_read_as_address): Delete function.
3806 (regcache_cooked_read_signed): New function.
3807 (regcache_cooked_read_unsigned): New function.
3808 * regcache.h (regcache_cooked_read_signed): Declare.
3809 (regcache_cooked_read_unsigned): Declare.
3810 (regcache_raw_read_as_address): Delete declaration.
3812 * blockframe.c (generic_read_register_dummy): Use
3813 regcache_cooked_read_unsigned.
3814 * i386-tdep.c (i386_extract_struct_value_address): Use
3815 regcache_cooked_read_unsigned.
3819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3820 double sizes according to ELF ABI flags.
3821 (gdbarch_tdep): Record elf_flags.
3825 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3826 (m6812_prolog): They can appear in 68HC12 function prologue.
3827 (m68hc11_frame_chain): Cleanup.
3831 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3833 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3834 (i386_linux_register_raw_size): Delete function.
3835 (i386_linux_init_abi): Update.
3836 * i386-tdep.c (i386_register_raw_size): Delete function.
3837 (i386_register_byte): Delete function.
3838 (i386_gdbarch_init): Update.
3839 (i386_register_size): Delete array.
3840 (i386_register_offset): Delete array.
3842 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3843 (REGISTER_RAW_SIZE): Delete macro.
3844 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3845 (REGISTER_BYTE): Delete macro.
3849 * ada-lang.c (ada_lookup_partial_symbol)
3850 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3851 prototype names so that grep ^func works properly.
3853 * ada-lang.c (ada_array_element_type)
3854 (ada_lookup_partial_symbol): Fix typos in parameter list.
3856 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3857 Fix prototype names so that grep ^func works properly.
3863 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3864 (build_builtin_type_vec128i): Set the vector bit.
3865 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3866 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3867 (build_builtin_type_vec64): New function.
3868 (build_builtin_type_vec64i): New function.
3869 (build_gdbtypes): Initialize builtin_type_vec64 and
3870 builtin_type_vec64i.
3874 * regcache.c (regcache_dump): Compare the register offset
3876 * arch-utils.c (generic_register_byte): New function.
3877 * arch-utils.h (generic_register_byte): Declare.
3878 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3879 * gdbarch.h, gdbarch.c: Regenerate.
3883 * regcache.c: Include "gdbcmd.h"
3884 (_initialize_regcache): Add commands "maintenance print
3885 registers", "maintenance print raw-registers" and "maintenance
3886 print cooked-registers".
3887 (enum regcache_dump_what): Define.
3888 (dump_endian_bytes): New function.
3889 (regcache_dump): New function.
3890 (regcache_print): New function.
3891 (maintenance_print_registers): New function.
3892 (maintenance_print_raw_registers): New function.
3893 (maintenance_print_cooked_registers): New function.
3894 * Makefile.in (regcache.o): Update dependencies.
3898 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3899 (mips_push_arguments): Correct some comments. Use paddr_nz
3900 for printing addresses in debug output. Replace static
3901 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3902 (mips_n32n64_push_arguments): New function, cloned from
3903 mips_push_arguments and tuned for the n32/n64 ABI.
3904 (mips_push_register): Buffer needs dynamic allocation.
3905 (mips_print_register): Ditto.
3906 (do_gp_register_row): Ditto.
3907 (mips_store_return_value): Ditto.
3908 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3912 * memattr.c (mem_info_command): Print special case of upper bound
3913 as max CORE_ADDR + 1.
3917 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3918 returns structs by ref if they're too big to fit in two registers.
3922 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3924 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3925 mips_find_saved_regs().
3926 (mips_pop_frame): Likewise.
3930 * blockframe.c (frame_saved_regs_register_unwind): Revise
3931 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3936 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3937 T-packets; the 'a' is not taken as a register number.
3938 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3939 (remote_stopped_data_address): New functions; add to target
3941 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3942 prototypes to match other implementations of this
3943 function. replace integer argument with pointer -- the length
3944 field in the Z-packet is the length of what is pointed to or 1 if
3945 pointer is null. Add to target vector.
3946 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3950 * remote.c (remote_wait): Add support to extract optional
3951 watchpoint information from T-packet. Ignore unrecognized
3952 optional info in T-packet.
3953 (remote_async_wait): Ditto.
3957 * cli/cli-dump.c: Change fopen modes to use binary open modes
3958 as defined in include/fopen-bin.h throughout.
3962 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3966 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3967 assertion failure by returning early after a warning.
3971 * mips-tdep.c (mips_find_saved_regs): Make static.
3972 (mips_frame_init_saved_regs): New function.
3973 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3974 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3975 (mips_find_saved_regs): Delete declaration.
3979 * remote.c (remote_wait, remote_async_wait): Change
3980 thread_num from int to ULONGEST.
3981 (unpack_varlen_hex): Change result parameter from
3982 int * to ULONGEST *.
3986 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3987 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3989 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3993 * gcore.c (override_derive_stack_segment): Delete variable.
3994 (preempt_derive_stack_segment): Delete function.
3995 (derive_stack_segment): Delete function.
3996 (default_derive_stack_segment): Renamed to derive_stack_segment.
3997 (override_derive_heap_segment): Delete variable.
3998 (preempt_derive_heap_segment): Delete function.
3999 (derive_heap_segment): Delete function.
4000 (default_derive_heap_segment): Rename to derive_heap_segment.
4004 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4005 * mips-tdep.c (mips_EABI_use_struct_convention,
4006 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4007 New functions. (mips_use_struct_convention): Delete.
4008 (mips_gdbarch_init): set use_gdbarch_convention.
4012 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4013 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4014 mips_o32_reg_struct_has_addr): New functions.
4015 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4019 * regcache.c (pseudo_register): Delete function.
4020 (fetch_register): Delete function.
4021 (store_register): Delete function.
4022 (regcache_raw_read, legacy_read_register_gen): Use
4023 target_fetch_registers instead of fetch_register.
4024 (legacy_write_register_gen, regcache_raw_write): Use
4025 target_store_register instead of store_register.
4026 (write_register_bytes): Ditto.
4028 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4029 (STORE_PSEUDO_REGISTER): Delete.
4030 * gdbarch.h, gdbarch.c: Regenerate.
4034 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4035 write dump file binary.
4039 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4040 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4041 (mips_gdbarch_init): Set N32 target to be mips64.
4045 * frame.c (find_saved_register): Break out of loop once saved
4046 register address is found. Don't mention sparc in loop comment
4051 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4052 mips_default_saved_regsize to 8.
4056 * gcore.c: Do not include <sys/procfs.h>.
4057 * Makefile.in (gcore.o): Update dependencies.
4061 * configure.tgt: Make arc-*-* obsolete.
4062 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4063 * MAINTAINERS: Make arc-elf obsolete.
4064 * arc-tdep.c: Make file obsolete.
4065 * config/arc/arc.mt: Ditto.
4066 * config/arc/tm-arc.h: Ditto.
4070 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4074 * mcore-tdep.c (mcore_gdbarch_init): Use
4075 generic_unwind_get_saved_register instead of
4076 generic_get_saved_register.
4077 * v850-tdep.c (v850_gdbarch_init): Ditto.
4078 * frv-tdep.c (frv_gdbarch_init): Ditto.
4079 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4080 * s390-tdep.c (s390_gdbarch_init): Ditto.
4081 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4082 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4083 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4087 * objfiles.h: Add missing #include "symfile.h"
4089 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4094 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4099 * NEWS: Cleanup and nitpick.
4103 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4107 * Makefile.in (gdbtk-bp.o): Update dependencies.
4108 (gdbtk-register.o): Ditto.
4109 (gdbtk-varobj.o): Ditto.
4113 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4114 m68hc11_fetch_pseudo_register.
4115 (m68hc11_pseudo_register_write): Replace
4116 m68hc11_store_pseudo_register.
4117 (m68hc11_gdbarch_init): Update.
4121 * gdbarch.sh: Include "gdb_string.h".
4122 * gdbarch.c: Regenerate.
4124 * regcache.c: Include "gdb_string.h".
4125 * ax-general.c: Ditto.
4127 * std-regs.c: Ditto.
4128 * fbsd-proc.c: Ditto.
4131 * Makefile.in (regcache.o): Update dependencies.
4132 (thread.o, gdbarch.o): Ditto.
4133 (ax-general.o, gdbarch.o): Ditto.
4134 (varobj.o, std-regs.o): Ditto.
4135 (fbsd-proc.o): Specify dependencies.
4139 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4141 (regcache_cooked_write): Ditto.
4145 * regcache.c (regcache_cooked_read): New function.
4146 (regcache_cooked_write): New function.
4147 (read_register_gen): Rewrite using regcache_cooked_read.
4148 (write_register_gen): Rewrite using regcache_cooked_write.
4150 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4155 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4156 Replace the architecture methods register_read and register_write.
4157 * gdbarch.h, gdbarch.c: Regenerate.
4158 * regcache.c (init_regcache_descr): Update.
4159 (read_register_gen): Update.
4160 (write_register_gen): Update.
4161 (supply_register): Update comment.
4163 * sh-tdep.c (sh_gdbarch_init): Update.
4164 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4165 `regcache' and `gdbarch' parameters. Make `buffer' a void
4166 pointer. Update code.
4167 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4168 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4169 void pointer. Update code.
4170 (sh64_register_write): Delete.
4171 (sh4_register_read): Delete.
4172 (sh64_register_read): Delete.
4173 (sh4_register_write): Delete.
4174 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4175 void pointer, `to' parameter a void pointer.
4176 (sh_sh64_register_convert_to_raw): Ditto.
4180 * mips-tdep.c (mips_register_virtual_type): Use architecture
4181 invariant return values.
4185 * linux-proc.c: Include "gdb_string.h".
4186 * Makefile.in (linux-proc.o): Update dependency list.
4190 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4195 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4196 to_insert_watchpoint, to_remove_watchpoint,
4197 to_stopped_by_watchpoint, to_stopped_data_address,
4198 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4199 target vecctor. Define their corresponding macros so they call
4202 * target.c: Add default and debug versions of for
4203 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4204 to_insert_watchpoint, to_remove_watchpoint,
4205 to_stopped_by_watchpoint, to_stopped_data_address,
4206 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4210 * mips-tdep.c (mips_register_virtual_type): New function.
4211 (mips_gdbarch_init): Register mips_register_virtual_type()
4212 with gdbarch machinery.
4213 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4214 this file instead of tm-bigmips.h.
4215 (MIPS_REGSIZE): Delete this macro.
4216 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4217 multiarch version in mips-tdep.c will be found.
4221 * NEWS: Menion that CHILL has been made obsolete.
4223 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4224 * stabsread.c (read_range_type): Ditto.
4225 * gdbtypes.h: Ditto.
4226 * language.c (binop_type_check): Ditto.
4227 (binop_result_type): Ditto.
4228 (integral_type): Ditto.
4229 (character_type): Ditto.
4230 (string_type): Ditto.
4231 (boolean_type): Ditto.
4232 (structured_type): Ditto.
4233 (lang_bool_type): Ditto.
4234 (binop_type_check): Ditto.
4235 * language.h (_LANG_chill): Ditto.
4236 * dwarfread.c (set_cu_language): Ditto.
4237 * dwarfread.c (CHILL_PRODUCER): Ditto.
4238 * dwarfread.c (handle_producer): Ditto.
4239 * expression.h (enum exp_opcode): Ditto.
4240 * eval.c: Ditto for comments.
4241 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4242 * expprint.c (print_subexp): Ditto.
4243 (print_subexp): Ditto.
4244 * valops.c (value_cast): Ditto.
4245 (search_struct_field): Ditto.
4246 * value.h (COERCE_VARYING_ARRAY): Ditto.
4247 * symfile.c (init_filename_language_table): Ditto.
4248 (add_psymbol_with_dem_name_to_list): Ditto.
4249 * valarith.c (value_binop): Ditto.
4251 * valops.c (value_slice): Ditto.
4252 * symtab.h (union language_specific): Ditto.
4253 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4254 (SYMBOL_DEMANGLED_NAME): Ditto.
4255 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4256 * defs.h (enum language): Ditto.
4257 * symtab.c (got_symtab): Ditto.
4258 * utils.c (fprintf_symbol_filtered): Ditto.
4260 * ch-typeprint.c: Make file obsolete.
4261 * ch-valprint.c: Make file obsolete.
4262 * ch-lang.h: Make file obsolete.
4263 * ch-exp.c: Make file obsolete.
4264 * ch-lang.c: Make file obsolete.
4266 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4268 (TARGET_FLAGS_TO_PASS): Ditto.
4269 (CHILLFLAGS): Obsolete.
4271 (CHILL_FOR_TARGET): Obsolete.
4272 (CHILL_LIB): Obsolete.
4273 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4275 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4276 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4278 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4283 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4284 This does not change anything at the moment, but will be helpful
4285 later when full Ada support is integrated.
4289 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4294 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4295 and save it in a local variable. Use variable in later test.
4299 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4300 test. (Thanks to Daniel Jacobowitz.)
4304 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4305 (mips_abi_strings): Add "n64".
4306 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4310 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4311 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4315 * utils.c (host_pointer_to_address, address_to_host_pointer):
4316 Use gdb_assert() instead of explicit call to internal_error().
4320 * Makefile.in (rs6000-nat.o): Update dependencies.
4322 From Nicholas Duffek:
4323 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4324 (aix-thread.o): New rule.
4325 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4326 * config/powerpc/aix432.mh: New file.
4330 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4331 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4332 (fetch_core_registers, ppc_linux_supply_gregset)
4333 (ppc_linux_supply_fpregset): New functions.
4334 (ppc_linux_regset_core_fns): New.
4335 (_initialize_ppc_linux_tdep): Call add_core_fns.
4336 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4337 and ppc_linux_supply_gregset.
4338 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4339 (supply_fpregset): Call ppc_linux_supply_fpregset.
4340 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4342 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4346 * symtab.c (lookup_symbol): Demangle before lowercasing.
4350 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4352 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4353 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4354 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4355 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4357 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4358 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4359 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4360 (avr-tdep.o, mon960-rom.o): Ditto.
4361 (aout_stabs_gnu_h): Define.
4362 (symtab_h): Remove $(gdb_obstack_h).
4367 * gdbinit.in: Move the `dir' commands that add GDB's own source
4368 directory to the search path to the end, so that the `gdb' source
4369 directory will be searched first.
4373 * gdb_obstack.h: New file.
4374 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4375 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4376 * objfiles.h: Include "gdb_obstack.h".
4377 * Makefile.in (gdb_obstack_h): Define.
4378 (symtab_h): Add $(gdb_obstack_h).
4379 (objfiles_h): Add $(gdb_obstack_h).
4381 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4382 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4383 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4384 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4385 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4386 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4387 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4388 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4390 * Makefile.in (bcache.o): Update dependencies.
4391 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4392 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4393 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4394 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4395 (stabsread.o, symfile.o, symmisc.o): Ditto.
4396 (symtab.o, typeprint.o, macroexp.o): Ditto.
4397 (macrotab.o, mdebugread.o): Ditto.
4398 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4399 (coff_ecoff_h, aout_aout64_h): Define.
4400 (aout_stabs_gnu_h, libaout_h): Define.
4404 * regcache.c (struct regcache_descr): Rename nr_registers to
4405 nr_cooked_registers. Revise comments describing the structure
4407 (init_regcache_descr): Update.
4408 (init_legacy_regcache_descr): Update.
4409 (read_register_gen, write_register_gen): When a cooked register in
4410 the raw register range, directly access the value from the raw
4415 * z8k-tdep.c: Do not include "obstack.h".
4416 * h8300-tdep.c, h8500-tdep.c: Ditto.
4417 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4418 * valprint.c, v850-tdep.c: Ditto.
4419 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4420 * mn10200-tdep.c: Ditto.
4422 * Makefile.in (z8k-tdep.o): Update dependencies.
4423 (m68hc11-tdep.o, valprint.o): Ditto.
4424 (v850-tdep.o, d10v-tdep.o): Ditto.
4425 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4426 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4427 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4428 (sh_opc_h, gdb_sim_sh_h): Define.
4429 (elf_sh_h, elf_bfd_h): Define.
4430 (opcode_m68hc11_h): Define.
4431 (OPCODES_SRC, OPCODES_DIR): define.
4432 (OPCODES): Use $(OPCODES_DIR).
4433 (gdb_sim_d10v_h): Rename sim_d10v_h.
4434 (gdb_sim_arm_h): Rename sim_arm_h.
4438 * utils.c (host_pointer_to_address, address_to_host_pointer):
4439 Change internal_error() message to indicate function responsible
4444 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4445 calls to local_hex_string_custom().
4449 * irix5-nat.c: Move IRIX shared library support from here...
4450 * solib-irix.c: ...to here. Revised substantially to work with
4451 generic solib framework.
4453 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4454 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4455 * mips-irix-tdep.c: New file.
4457 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4458 (mips-irix-tdep.o, solib-irix.o): New rules.
4459 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4461 * config/mips/irix6.mt (TDEPFILES): Likewise.
4462 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4466 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4467 disabled (via ``#if 0'') includes.
4471 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4472 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4473 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4474 Add support for the fpscr register.
4475 * rs6000-nat.c (regmap, fetch_inferior_registers)
4476 (store_inferior_registers, fetch_core_registers): Likewise.
4480 * rs6000-nat.c (language.h): Include.
4481 (special_regs): Delete this array.
4482 (regmap): New function.
4483 (fetch_register, store_register): Use regmap() to map gdb
4484 register numbers to ptrace register numbers. Also, use
4485 outputs from regmap() to make decisions regarding type of
4486 ptrace() call to make. In particular, don't compare against
4487 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4488 (fetch_inferior_registers, store_inferior_registers): Where
4489 possible, obtain register numbers from tdep struct. Don't
4490 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4491 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4492 (LAST_UISA_SP_REGNUM): Delete.
4496 * rs6000-nat.c (ppc-tdep.h): Include.
4497 (fetch_registers, store_register, fetch_core_registers): Don't
4498 access registers[] directly. Instead, use supply_register() or
4499 regcache_collect() as appropriate.
4500 (find_toc_address): Format hex address with local_hex_string().
4504 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4509 * jv-exp.y: Marked all strings with _().
4510 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4512 (MethodInvocation, CastExpression, parse_number, yyerror,
4513 java_type_from_name, push_expression_name, yylex): Typo fixes.
4517 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4518 (tee_file_flush, tee_file_write, tee_file_fputs)
4519 (tee_file_isatty): New.
4520 * ui-file.h (tee_file_new): Add prototype.
4524 * ada-lang.c: Change k&r style function definitions to prototyped
4526 * ada-typeprint.c: Change k&r style function definitions to prototyped
4528 * ada-valprint.c: Change k&r style function definitions to prototyped
4533 * README: Remove reference to remote-bug.
4534 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4536 (m88k-nat.o): Delete rule.
4537 (m88k-tdep.o): Delete rule.
4538 (remote-bug.o): Delete rule.
4539 * MAINTAINERS: Mark as obsolete.
4540 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4541 * m88k-tdep.c: Make file obsolete.
4542 * config/m88k/m88k.mh: Ditto.
4543 * config/m88k/delta88v4.mh: Ditto.
4544 * config/m88k/delta88v4.mt: Ditto.
4545 * config/m88k/delta88.mt: Ditto.
4546 * config/m88k/delta88.mh: Ditto.
4547 * remote-bug.c: Ditto.
4548 * config/m88k/tm-delta88.h: Ditto.
4549 * config/m88k/nm-delta88v4.h: Ditto.
4550 * config/m88k/xm-delta88.h: Ditto.
4551 * config/m88k/xm-dgux.h: Ditto.
4552 * config/m88k/tm-m88k.h: Ditto.
4553 * config/m88k/nm-m88k.h: Ditto.
4554 * config/m88k/tm-delta88v4.h: Ditto.
4555 * m88k-nat.c: Ditto.
4556 * cxux-nat.c: Ditto.
4557 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4558 and m88*-*-* obsolete.
4559 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4564 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4565 constant. Same for local pointer variables.
4566 (extract_signed_integer): Ditto.
4567 * defs.h (extract_unsigned_integer): Update.
4568 (extract_signed_integer): Update.
4572 * regcache.c (regcache_raw_write): Change buf parameter to a
4573 constant void pointer.
4574 (regcache_raw_read): Change buf parameter to a void pointer.
4575 (legacy_write_register_gen): Change myaddr parameter a constant
4577 (supply_register): Change val parameter to a const void pointer.
4578 * regcache.h (regcache_raw_write): Update declaration.
4579 (regcache_raw_read): Update declaration.
4580 (supply_register): Update declaration.
4584 * defs.h (gdb_readline_wrapper): Declare.
4585 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4586 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4587 * top.c (gdb_readline_wrapper): New function.
4588 (command_line_input): Use it.
4592 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4593 regcache_read and regcache_write.
4594 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4595 * regcache.c: Update.
4596 * sh-tdep.c (sh64_push_arguments): Update comment.
4597 (sh_pseudo_register_read): Update.
4598 (sh_pseudo_register_write): Update.
4599 (sh4_register_read): Update.
4600 (sh4_register_write): Update.
4601 (sh64_pseudo_register_read): Update.
4602 (sh64_pseudo_register_write): Update.
4603 (sh64_register_read): Update.
4604 (sh64_register_write): Update.
4605 * i386-tdep.c (i386_extract_return_value): Update.
4606 (i386_extract_struct_value_address): Update.
4607 (i386_extract_return_value): Update.
4608 * blockframe.c (generic_read_register_dummy): Update.
4609 (generic_call_dummy_register_unwind): Update
4610 * infrun.c (write_inferior_status_register): Update.
4614 * parser-defs.h (expression_context_pc): Make this extern.
4615 (Thanks to Michael Snyder.)
4619 GDB 5.2.1 released from 5.2 branch.
4620 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4621 * README: Update to mention 5.2.1.
4625 * remote.c (remote_read_bytes): Fix check for error.
4629 * aix-thread.c (language.h): Include.
4630 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4631 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4632 Print newlines at end of debug messages.
4633 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4634 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4638 * aix-thread.c (ppc-tdep.h): Include.
4639 (special_register_p): New function.
4640 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4641 (store_regs_user_thread): Use register number information from
4642 gdbarch_tdep struct instead of hardcoded offsets relative to
4643 FIRST_UISA_SP_REGNUM.
4644 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4645 special_register_p() instead of using FPLAST_REGNUM and
4646 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4647 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4648 will be MQ's register number.
4652 * aix-thread.c (ops): Rename to aix_thread_ops.
4653 (base_ops): Rename to base_target.
4654 (ops_attach): Rename to aix_thread_attach.
4655 (ops_detach): Rename to aix_thread_detach.
4656 (ops_resume): Rename to aix_thread_detach.
4657 (ops_wait): Rename to aix_thread_wait.
4658 (ops_kill): Rename to aix_thread_kill.
4659 (init_ops): Rename to init_aix_thread_ops.
4660 (ops_fetch_register): Rename to aix_thread_fetch_register.
4661 (ops_store_register): Rename to aix_thread_store_register.
4662 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4663 (ops_thread_alive): Rename to aix_thread_thread_alive.
4664 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4665 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4666 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4667 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4668 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4669 (store_regs_lib): Rename to store_regs_user_thread.
4670 (store_regs_kern): Rename to store_regs_kernel_thread.
4674 * aix-thread.c (ops_prepare_to_store): Eliminate.
4675 (init_ops): Don't initialize ops.prepare_to_store.
4676 (store_regs_kern): Pre-fetch register buffers from child,
4677 because some registers may not be in the cache. Copy
4678 regs from register cache only if they are cached.
4679 (store_regs_lib): Copy regs from register cache only
4681 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4682 fill_gprs64): Ditto.
4686 * aix-thread.c (gdb_assert.h): Include.
4687 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4688 register sizes (from register cache) match size of buffer holding
4690 (fill_sprs32): Change parameter types to match those in the ptrace()
4692 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4693 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4697 * aix-thread.c (supply_sprs64): Cosmetic change.
4698 (supply_sprs32): Cosmetic change.
4699 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4700 (fill_sprs64): Use regcache_collect instead of read_register.
4701 (store_regs_lib): Use regcache_collect instead of
4702 read_register. Use fill_sprs32 instead of fill_sprs64,
4703 if debugging a 32-bit architecture.
4704 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4705 out of the register cache, instead of passing a pointer into
4706 the register cache directly to ptrace. Use regcache_collect
4707 insteaad of read_register.
4708 (ops_prepare_to_store): Use target_read_registers instead
4709 of read_register_bytes.
4713 * MAINTAINERS: Add self under write after approval.
4717 * ada-tasks.c: Change k&r style function definitions to prototyped
4722 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4723 * x86-64-tdep.c: Include "objfiles.h".
4724 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4729 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4730 (update_context): Initialise cfa variable.
4734 * aix-thread.c: Shorten some long lines.
4735 Bring comments into line with code spec.
4739 * infrun.c: Re-indent using gdb_indent.sh.
4743 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4744 Leave the indentation temporarily untouched, to minimize the diffs.
4748 * stabsread.c: Make os9k sections of the code obsolete,
4750 * stabsread.h: Make os9k sections of the code obsolete.
4754 * linux-low.c (regsets_store_inferior_registers): Add free()
4755 at the end of a loop to prevent memory leak.
4756 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4757 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4758 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4760 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4764 * macrocmd.c (info_macro_command): Remove newline from error
4769 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4770 (sh_gdbarch_init): Use it for sh-dsp.
4774 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4775 64-bit DWARF2 format.
4779 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4780 <sys/proc.h> when not available.
4784 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4785 * stabsread.c: Make os9k sections of the code obsolete.
4786 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4787 * config/i386/i386os9k.mt: Make file obsolete.
4788 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4789 (COMMON_OBS): Remove os9kread.o
4790 (SFILES): Remove os9kread.c.
4791 (os9kread.o, remote-os9k.o): Make target obsolete.
4792 * remote-os9k.c: Make file obsolete.
4793 * os9kread.c: Make file obsolete.
4798 * NEWS: Mention that the FR30 has been made obsolete.
4799 * fr30-tdep.c: Make file obsolete.
4800 * config/fr30/tm-fr30.h: Ditto.
4801 * config/fr30/fr30.mt: Ditto.
4802 * configure.tgt: Make fr30-*-elf obsolete.
4803 * MAINTAINERS: Make fr30-elf obsolete.
4807 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4808 found is not inside a section.
4812 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4814 (pdc_realloc): Use xrealloc() instead of realloc().
4818 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4819 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4820 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4825 * aix-thread.c (ptrace_check): Eliminate goto.
4826 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4831 * aix-thread.c (gdbcmd.h): Include.
4832 (DEBUG, DBG, DBG2, dbg): Eliminate.
4833 (debug_aix_thread): New static global.
4834 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4835 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4836 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4837 invocations to DBG and DBG2 macros to test against
4838 ``debug_aix_thread'' and call fprintf_unfiltered().
4839 (_initialize_aix_thread): Add new command "set debug aix-thread".
4844 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4845 instead of supply_register.
4849 * dwarf2cfi.c: Include "gdb_assert.h".
4850 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4852 (update_context): Do not use __func__. Add missing ``break''.
4853 (update_context): Do not use __func__.
4857 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4858 and its setting. Set gdbarch instruction printing functions
4859 directly. For non-rs6000 case use new function
4860 gdb_print_insn_powerpc.
4861 (gdb_print_insn_powerpc): New function.
4865 * NEWS: Mention that the d30v has been marked obsolete.
4866 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4867 * configure.tgt: Mark d30v-*-* as obsolete.
4868 * d30v-tdep.c: Mark file as obsolete.
4869 * config/d30v/d30v.mt: Ditto.
4870 * config/d30v/tm-d30v.h: Ditto.
4874 * ada-tasks.c (add_task_entry): replace calls to
4875 malloc() with xmalloc
4876 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4878 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4879 ada_finish_decode_line_1, all_sals_for_line
4880 ada_breakpoint_rewrite): replace calls to free() with xfree()
4884 From Nicholas Duffek (with minor changes by Martin Hunt,
4885 Louis Hamilton, and Kevin Buettner):
4886 * aix-thread.c: New file.
4890 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4891 complaint for invalid attribute class or form.
4892 (read_func_scope): DW_AT_frame_base
4893 better handling of DW_AT_block*.
4894 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4895 better handling of DW_AT_block*.
4896 (read_common_block): DW_AT_location
4897 better handling of DW_AT_block*.
4898 (read_partial_die): DW_AT_location better handling
4900 (new_symbol): DW_AT_external better handling of
4901 DW_AT_block*. Proper initialization of variable
4903 (attr_form_is_block): New function that returns true
4904 if the attribute's form is of DW_FORM_block*.
4908 * valops.c (find_method_list): Remove comment about
4909 removed STATIC_MEMFUNCP argument.
4910 (value_find_oload_method_list): Likewise.
4914 From Nicholas Duffek:
4915 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4916 target_new_objfile_hook.
4920 From Nicholas Duffek:
4921 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4926 * MAINTAINERS: Mention --enable-sim-build-warnings.
4927 (m68hc11-elf): Disable sim build warnings.
4928 (m32r-elf): Mark as broken obsolete candidate.
4929 (x86_64-linux-gnu): Mark as buildable with -Werror.
4930 (arm-elf): Change -w to ``,'' which enables warnings but not
4935 * bcache.h: Update copyright.
4936 (struct bstring, struct bcache): Move definition to "bcache.c".
4937 Replaced by opaque declaration.
4938 (bcache_xfree): Replace free_bcache.
4939 (bcache_xmalloc, bcache_memory_used): Declare.
4941 * bcache.c: Update copyright.
4942 (struct bstring, struct bcache): Moved to here from "bcache.h".
4944 (bcache_xmalloc, bcache_memory_used): New functions.
4945 (bcache_xfree): Replace function free_bcache.
4947 * Makefile.in (objfiles.o): Add $(bcache_h).
4948 (objfiles_h): Remove $(bcache_h).
4949 (symfile.o): Add $(bcache_h).
4951 * symmisc.c: Update copyright.
4952 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4953 (print_objfile_statistics): Use bcache_memory_used.
4955 * symfile.c: Include "bcache.h".
4956 (reread_symbols): Use bcache_xfree.
4957 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4958 (add_psymbol_to_list): Pass psymbol_cache by value.
4959 (add_psymbol_with_dem_name_to_list): Ditto.
4961 * objfiles.h: Update copyright.
4962 (struct bcache): Declare opaque. Do not include "bcache.h".
4963 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4965 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4967 * objfiles.c: Include "bcache.h". Update copyright.
4968 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4970 (free_objfile): Use bcache_xfree.
4974 * monitor.c (monitor_fetch_register): Make name a constant.
4975 (monitor_store_register): Same.
4980 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4981 (finish_block) For non-function blocks, hash the symbol table. For
4982 function blocks, mark the symbol table as unhashed.
4983 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4984 (msymbol_hash_iw): Likewise.
4985 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4987 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4988 (lookup_minimal_symbol): Likewise for both.
4989 * symtab.h (struct block): Add `hashtable' flag. Comment the
4991 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4992 (ALL_BLOCK_SYMBOLS): Update.
4993 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4994 (struct symbol): Add `hash_next' pointer.
4995 * symtab.c (lookup_block_symbol): Search using the hash table when
4997 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4998 (search_symbols, find_addr_symbol): Likewise.
5000 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5001 (read_dst_symtab): Likewise.
5002 * jv-lang.c (get_java_class_symtab): Likewise.
5003 * mdebugread.c: Include "gdb_assert.h".
5004 (shrink_block): Assert that the block being modified is not hashed.
5005 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5006 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5008 (dump_symtab): Recognize hashed blocks.
5009 * printcmd.c (print_frame_args): Assert that function blocks do not
5010 have hashed symbol tables.
5011 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5012 (fill_in_ada_prototype, debug_print_block): Likewise.
5013 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5017 * stack.c (print_frame): Use result of frame_address_in_block()
5018 instead of fi->pc when evaluating symbols.
5019 (backtrace_command_1): Ditto.
5023 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5026 * arm-tdep.c (arm_register_name): Make return type constant.
5030 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5032 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5033 * s390-tdep.c (s390_fp_regnum): Ditto.
5034 (s390_read_fp): Ditto.
5035 (s390_pop_frame): Ditto.
5036 (_initialize_s390_tdep): Ditto.
5037 * remote.c (get_remote_state): Ditto.
5038 * procfs.c (mappingflags): Ditto.
5039 * memattr.c (_initialize_mem): Ditto.
5040 * mcore-tdep.c (mcore_pop_frame): Ditto.
5041 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5042 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5043 * language.c (set_case_str): Ditto.
5044 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5045 * frv-tdep.c (new_variant): Ditto.
5046 (frv_stopped_data_address): Ditto.
5047 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5048 (context_alloc): Ditto.
5049 (frame_state_alloc): Ditto.
5050 (unwind_tmp_obstack_init): Ditto.
5051 (unwind_tmp_obstack_free): Ditto.
5052 (cfi_read_fp): Ditto.
5053 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5054 (cris_pop_frame): Ditto.
5055 * c-lang.c (scanning_macro_expansion): Ditto.
5056 (finished_macro_expansion): Ditto.
5057 (c_preprocess_and_parse): Ditto.
5058 * gdbarch.sh: Ditto.
5059 * gdbarch.h, gdbarch.c: Regenerate.
5060 * config/mn10200/tm-mn10200.h: Adjust indentation.
5061 * target.c: Adjust indentation.
5062 * symtab.h: Adjust indentation.
5063 * stabsread.h: Adjust indentation.
5064 * remote-es.c: Adjust indentation.
5065 * os9kread.c: Adjust indentation.
5069 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5070 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5074 * NEWS: Mention m68k, mcore multi-arching.
5075 * MAINTAINERS: Change status of m68k, mcore to reflect
5080 * valops.c (find_overload_match): Free oload_syms.
5084 Define HAVE_SYS_PROC_H if sys/proc.h exists
5085 * configure.in: Add check for sys/proc.h
5086 * config.in: Regenerate.
5087 * configure: Regenerate.
5091 * config/m68k/tm-m68k.h: Remove macros wrapped in
5092 #if !GDB_MULTI_ARCH.
5096 * config.in, configure: Regenerate.
5100 * dwarf2cfi.c: Include "gcore.h".
5101 (execute_stack_op): Fix implementation of the
5102 DW_OP_deref and DW_OP_deref_size operators by letting do their
5103 lookup in the target.
5108 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5113 Fix PR gdb/595, gdb/602
5114 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5115 Don't call value_cast, just read the vtable pointer; update comments
5120 * config/mcore/tm-mcore.h: Remove file.
5121 * config/mcore/mcore.mt: Remove definition of TM_FILE
5122 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5126 * i386bsd-tdep.c: Include "gdb_string.h".
5130 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5131 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5133 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5134 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5135 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5136 (RETVAL_REGNUM): Move macros from tm-mcore.h
5137 (mcore_reg_struct_has_addr): New function.
5138 (mcore_gdbarch_init): Added initializations for the macros removed
5143 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5144 traditonal string branding within the ELF header.
5148 * symtab.c (remove_params): New function.
5149 (make_symbol_overload_list): Use it instead of cplus_demangle.
5150 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5154 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5156 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5158 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5159 and tdep->sigtramp_end.
5160 * i386obsd-nat.c: New file.
5161 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5163 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5164 Don't call get_current_frame().
5168 * i386-nat.c (child_post_startup_inferior): New function
5169 calling i386_cleanup_dregs if
5170 I386_USE_GENERIC_WATCHPOINTS is defined.
5171 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5172 conditional to acknowledge that i386-nat.c has its
5173 own child_post_startup_inferior function.
5177 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5178 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5179 instead of MAX_REGISTER_RAW_SIZE.
5180 (i386_extract_return_value, i386_extract_struct_value_address):
5181 Convert to use regcache.
5182 (i386_gdbarch_init): Set max_register_raw_size and
5183 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5184 Set extract_return_value and extract_struct_value_address instead
5185 of their deprecated variants.
5187 Convert i386 target to generic dummy frames.
5188 * i386-tdep.c: Include "symfile.h".
5189 (i386_frameless_signal_p): Consider a function to be frameless if
5190 the pc points at the first instruction of the function.
5191 (i386_frame_chain): Handle (generic) call dummies.
5192 (i386_frame_saved_pc): Likewise.
5193 (i386_frame_init_saved_regs): Remove code dealing with call
5194 dummies on the stack.
5195 (i386_push_dummy_frame): Removed.
5196 (i386_call_dummy_words): Removed.
5197 (i386_fix_call_dummy): Removed.
5198 (i386_push_return_address): New function.
5199 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5200 parameter, and don't call get_current_frame.
5201 (i386_pop_frame): New function.
5202 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5203 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5204 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5205 call_dummy_length to 0, set call_dummy_words to NULL, set
5206 sizeof_call_dummy_words to 0, set fix_call_dummy to
5207 generic_fix_call_dummy, set pc_in_call_dummy to
5208 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5209 generic_push_dummy_frame, set push_return_address to
5210 i386_push_return_address and set frame_chain_valid to
5211 generic_file_frame_chain_valid.
5215 * gdbarch.sh (struct regcache): Add opaque declaration.
5216 (EXTRACT_RETURN_VALUE): New architecture method.
5217 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5218 * gdbarch.h, gdbarch.c: Regenerate.
5219 * arch-utils.c (legacy_extract_return_value): New function.
5220 * arch-utils.h (legacy_extract_return_value): Declare.
5221 * values.c (value_being_returned): Re-enable code handling
5222 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5223 deprecated_grub_regcache_for_registers call to block handling
5224 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5225 (EXTRACT_RETURN_VALUE): Do not define.
5229 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5230 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5231 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5232 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5233 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5234 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5235 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5236 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5237 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5238 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5239 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5240 argument so the function fits the prototype in the architecture
5242 (mcore_pop_frame): Remove argument so the function fits the
5243 prototype. Use get_current_frame instead of the argument.
5244 (mcore_push_arguments): Change type of struct_return so the
5245 function can be used in the architecture vector.
5246 (mcore_store_struct_return): Add.
5247 (mcore_frame_init_saved_regs): Add.
5248 (mcore_gdbarch_init): Add function calls to replace the macros
5249 removed from tm-mcore.h
5253 * infcmd.c (print_return_value): Remove compatibility code calling
5254 deprecated_grub_regcache_for_registers.
5256 * values.c: Include "regcache.h".
5257 (value_being_returned): Update. Use
5258 deprecated_grub_regcache_for_registers to extract the register
5260 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5261 ``struct regcache''.
5262 * Makefile.in (values.o): Add dependency on $(regcache_h).
5264 * inferior.h (run_stack_dummy): Change type of second parameter to
5265 a ``struct regcache''.
5266 * valops.c (hand_function_call): Change type of retbuf to ``struct
5267 regcache''. Allocate using regcache_xmalloc, clean using
5268 make_cleanup_regcache_xfree.
5269 * infcmd.c (run_stack_dummy): Update. Use
5270 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5272 * regcache.c (do_regcache_xfree): New function.
5273 (make_cleanup_regcache_xfree): New function.
5274 * regcache.h (make_cleanup_regcache_xfree): Declare.
5278 * event-top.c (command_line_handler): Don't read past
5279 beginning of buffer.
5283 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5285 (varobj_create): Store frame_id for root.
5286 (varobj_gen_name): Use xasprintf.
5287 (varobj_update): Save and restore frame using get_frame_id() and
5289 (create_child): Use xasprintf.
5290 (new_root_variable): Initialize frame_id.
5291 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5292 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5293 to prevent memory leak.
5297 * valops.c (hand_function_call): Move declaration of retbuf to
5298 start of function, allocate using malloc, add a cleanup but before
5299 the inf_status cleanup, cleanup the buffer. Rename local variable
5300 old_chain to inf_status_cleanup.
5304 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5306 * cli/cli-decode.c (cmd_func_p): New function.
5307 (cmd_func): New function.
5309 * command.h: Add cmd_func() and cmd_func_p().
5313 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5314 (REGISTER_SIZE): Remove.
5315 (MAX_REGISTER_RAW_SIZE): Remove.
5316 (REGISTER_VIRTUAL_TYPE): Remove.
5317 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5318 (REGISTER_NAME): Remove.
5319 (USE_GENERIC_DUMMY_FRAMES): Remove.
5320 (CALL_DUMMY): Remove.
5321 (CALL_DUMMY_START_OFFSET): Remove.
5322 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5323 (CALL_DUMMY_LOCATION): Remove.
5324 (FIX_CALL_DUMMY): Remove.
5325 (CALL_DUMMY_ADDRESS): Remove.
5326 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5327 (SAVE_DUMMY_FRAME_TOS): Remove.
5328 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5329 (mcore_register_virtual_type): New function.
5330 (mcore_register_byte): New function.
5331 (mcore_register_size): New function.
5332 (mcore_register_name): New function.
5333 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5334 macros removed from tm-mcore.h.
5335 (mcore_dump_tdep): Add.
5336 (_initialize_mcore_tdep): Add gdbarch_register call.
5340 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5341 frameless_look_for_prologue, such that we actually call this
5346 * frame.h (frame_address_in_block): New function.
5348 * blockframe.c (frame_address_in_block): New function extracted
5349 from get_frame_block().
5350 (get_frame_block): Use frame_address_in_block().
5351 (block_innermost_frame): Use frame_address_in_block() to match
5352 the frame pc address against the block boundaries rather than
5353 the frame pc directly. This prevents a failure when a frame pc
5354 is actually a return-address pointing immediately after the end
5359 * MAINTAINERS: Add self under write after approval.
5363 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5364 used in architecture vector. The default is
5365 m68k_local_breakpoint_from_pc.
5366 (m68k_local_breakpoint_from_pc): Add.
5367 (enum): Add register numbers from tm-m68k.h.
5368 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5370 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5371 GDB_MULTI_ARCH_PARTIAL.
5372 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5373 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5375 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5376 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5377 to enum in m68k-tdep.c
5381 * solib-osf.c (open_map): Compute the list of shared libraries
5382 loaded by the inferior, rather than the list of libraries loaded
5383 by GDB itself. Otherwise, GDB ends up reading the symbols from
5384 the wrong shared libraries...
5388 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5389 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5391 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5393 (FRAMELESS_SIGNAL): Remove function.
5394 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5395 i386_linux_saved_pc_after_call): Removed.
5396 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5397 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5398 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5400 * i386-tdep.c (i386_frameless_signal_p): New function.
5401 (i386_frame_chain): Deal with frameless signals.
5402 (i386_sigtramp_saved_sp): New function.
5403 (i386_frame_saved_pc): Deal with frameless signals.
5404 (i386_saved_pc_after_call): Make sure the correct value is
5405 returned just after entry into a sigtramp.
5406 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5407 i386fbsd4_sc_sp_offset): New variables.
5408 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5409 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5410 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5411 similiar to what we already did for sc_pc_offset.
5412 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5415 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5419 * config/i386/tm-x86-64linux.h: New.
5420 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5422 * config/i386/nm-x86-64.h: Rename to ...
5423 * config/i386/nm-x86-64linux.h: ... this one.
5424 * config/i386/x86-64linux.mh: Reflect the above change.
5428 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5429 with sigcontext_addr. Add sc_sp_offset.
5430 (i386bsd_sigtramp_saved_pc): Remove prototype.
5431 (i386bsd_sicontext_addr): Add prototype.
5432 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5433 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5434 (i386_svr4_sigtramp_saved_pc): Removed.
5435 (i386_svr4_sigcontext_addr): New function.
5436 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5437 Initialize tdep->sigcontext_addr instead. Initialize
5438 tdep->sc_pc_offset and tdep->sc_sp_offset.
5439 (i386_gdbarch_init): Likewise.
5440 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5442 (i386bsd_sigtramp_saved_pc): Remove function.
5443 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5444 Initialize tdep->sigcontext_addr instead. Initialize
5446 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5447 of tdep->sigtramp_saved_pc.
5448 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5449 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5452 * i386-tdep.c (i386_frameless_function_invocation,
5453 i386_frame_num_args, i386_frame_init_saved_regs,
5454 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5455 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5456 i386_extract_return_value, i386_store_return_value,
5457 i386_extract_struct_value_address, i386_register_virtual_type,
5458 i386_register_convertible, i386_register_convert_to_virtual,
5459 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5460 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5465 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5467 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5468 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5469 this macro. Include "value.h".
5473 * ada-exp.tab.c: remove as it's a generated file
5474 * ada-lex.c: remove as it's a generated file
5478 * config/i386/tm-i386.h (struct frame_info, struct
5479 frame_saved_regs, struct value, struct type): Remove forward
5482 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5483 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5484 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5485 (FILL_FPXREGSET): Define.
5487 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5489 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5490 i[3456]86-*-netbsd* case.
5491 * config/i386/tm-obsd.h: Removed.
5492 * config/i386/obsd.mt: Removed.
5493 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5495 (MH_CFLAGS): Add -DYYDEBUG=0.
5497 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5498 i386nbsd_sc_pc_offset on OpenBSD too.
5500 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5501 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5502 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5504 * i386bsd-tdep.c: Include "arch-utils.h".
5505 (i386bsd_aout_in_solib_call_trampoline): New function.
5506 (i386bsd_init_abi): Set in_solib_call_trampoline to
5507 i386bsd_aout_in_solib_call_trampoline.
5508 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5509 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5513 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5514 (struct obstack, struct bcache): Add opaque declarations.
5515 * Makefile.in (macrotab_h): Update
5519 * blockframe.c (generic_find_dummy_frame): Change return type to
5520 ``struct regcache''.
5521 (struct dummy_frame): Replace field ``registers'' with regcache, a
5522 struct regcache object.
5523 (generic_find_dummy_frame): Update.
5524 (generic_push_dummy_frame): Update. Use regcache_xfree,
5525 regcache_xmalloc and regcache_cpy.
5526 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5528 (deprecated_generic_find_dummy_frame): Update.
5529 (generic_read_register_dummy): Update. Use
5530 regcache_read_as_address.
5531 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5532 (generic_get_saved_register): Update. Use regcache_read.
5536 * Makefile.in (objfiles_h): Add $(bcache_h).
5537 * objfiles.h: Include "bcache.h".
5539 * Makefile.in (symtab_h): Remove $(bcache_h).
5540 * symtab.h: Do not include "bcache.h".
5544 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5545 generic_func_frame_chain_valid.
5549 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5550 * config/i386/tm-fbsd.h: Likewise.
5554 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5555 generic_unwind_get_saved_register.
5560 * regcache.c (supply_register): Add missing argument to
5561 register_buffer call.
5565 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5566 Solaris /bin/grep does not not like it. From Peter Schauer.
5570 * command.h (add_setshow_cmd): Declare.
5571 (add_setshow_cmd_full): Declare.
5572 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5573 returns void. Use add_setshow_cmd_full.
5574 (add_setshow_cmd_full): New function.
5575 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5576 (add_setshow_boolean_cmd): Likewise.
5580 * config/vax/tm-vax.h: Protect from multiple inclusion.
5581 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5582 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5583 * config/vax/tm-vaxbsd.h: ...here. New file.
5584 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5588 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5589 (BELIEVE_PCC_PROMOTION): Remove.
5590 (AP_REGNUM): Move to...
5591 * config/vax/nm-vax.h: ...here.
5592 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5593 (vax_breakpoint_from_pc): New function.
5594 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5595 and gdbarch_believe_pcc_promotion.
5599 * Makefile.in (vax_tdep_h): Define.
5600 (vax-tdep.o): Use $(vax_tdep_h).
5601 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5602 (vax_dump_tdep): New function.
5603 (_initialize_vax_tdep): Register vax_dump_tdep.
5604 * vax-tdep.h: Include osabi.h.
5605 (struct gdbarch_tdep): New.
5609 * frame.h (deprecated_generic_find_dummy_frame): Rename
5610 generic_find_dummy_frame.
5611 * blockframe.c (generic_find_dummy_frame): Make static.
5612 (deprecated_generic_find_dummy_frame): New function.
5613 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5614 generic_find_dummy_frame with deprecated_find_dummy_frame.
5615 (sh64_nofp_frame_init_saved_regs): Ditto.
5616 (sh_fp_frame_init_saved_regs): Ditto.
5617 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5618 (s390_frame_chain): Ditto.
5619 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5623 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5624 gdbarch vector are at the top.
5626 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5627 (FRAME_ARGS_ADDRESS): Remove.
5628 (FRAME_LOCALS_ADDRESS): Remove.
5629 (FRAME_NUM_ARGS): Remove.
5630 (FRAME_ARGS_SKIP): Remove.
5631 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5632 (m68k_gdbarch_init): Add gdbarch initializations for macros
5633 undefined in tm-m68k.h
5637 * monitor.h: Add the function regname to monitor_ops
5638 structure. This way NUM_REGS does not have to be a constant.
5639 * monitor.c (monitor_fetch_register): Added support for regname
5640 function. The function is called if the array regnames is NULL.
5641 (monitor_store_register): Same.
5642 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5644 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5645 cpu32bug_cmds.regname to point to new function.
5646 * abug-rom.c (abug_regname): Same as above.
5647 (init_abug_cmds): Same.
5648 * dbug-rom.c (dbug_regname): Same as above.
5649 (init_dbug_cmds): Same.
5650 * remote-est.c (est_regname): Same.
5651 (init_est_cmds): Same.
5652 * rom68k-rom.c (rom68k_regname): Same.
5653 (init_rom68k_cmds): Same.
5657 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5661 * infrun.c (stop_registers): Change variable's type to ``struct
5663 (xmalloc_inferior_status): Delete function.
5664 (free_inferior_status): Delete function.
5665 (normal_stop): Use regcache_cpy.
5666 (struct inferior_status): Change type of fields ``stop_registers''
5667 and ``registers'' to ``struct regcache''.
5668 (write_inferior_status_register): Use regcache_write.
5669 (save_inferior_status): Instead of calling
5670 xmalloc_inferior_status, allocate the inf_status buffer directly.
5671 Use regcache_dup_no_passthrough and regcache_dup to save the
5673 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5674 Replace the stop_registers regcache instead of overriding it. Use
5675 regcache_xfree. Instead of calling free_inferior_status, xfree
5676 the buffer directly.
5677 (discard_inferior_status): Use regcache_xfree. Instead of calling
5678 free_inferior_status, xfree the buffer directly.
5679 (build_infrun): Use regcache_xmalloc.
5680 (_initialize_infrun): Delete redundant call to build_infrun.
5682 * Makefile.in (infcmd.o): Add $(regcache_h).
5684 * infcmd.c: Include "regcache.h".
5685 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5686 obtain the address of `stop_registers' register buffer.
5687 (print_return_value): Ditto.
5689 * inferior.h (struct regcache): Add opaque declaration.
5690 (stop_registers): Change variable's declared type to ``struct
5695 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5696 * target.c (initialize_targets): Fixed typo in
5697 trust-readonly-sections `show' documentation.
5699 * main.c: Marked all strings with _().
5703 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5704 that means max CORE_ADDR+1.
5705 (lookup_mem_region): Ditto.
5706 (mem_info_command): Ditto.
5710 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5711 (REGISTER_BYTES_OK): Remove.
5712 (REGISTER_BYTES): Remove.
5713 (STORE_STRUCT_RETURN): Remove.
5714 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5715 (STORE_RETURN_VALUE): Remove.
5716 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5717 (FRAME_CHAIN): Remove.
5718 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5719 (FRAME_SAVED_PC): Remove.
5720 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5721 (m68k_store_struct_return): Add.
5722 (m68k_deprecated_extract_return_value): Add.
5723 (m68k_deprecated_extract_struct_value_address): Add.
5724 (m68k_store_return_value): Add.
5725 (m68k_frame_chain): Add.
5726 (m68k_frameless_function_invocation): Add.
5727 (m68k_frame_saved_pc): Add.
5728 (m68k_gdbarch_init): added set_gdbarch calls for new
5729 functions and deleted macros.
5733 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5734 (ALLDEPFILES): Likewise.
5735 (udiheaders): Removed.
5736 (udip2soc.o): Likewise.
5737 (udi2go32.o): Likewise.
5739 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5743 * infrun.c (_initialize_infrun): Delete unnecessary call to
5746 * regcache.h: Update comments describing the regcache_cpy family
5748 (regcache_save, regcache_restore): Delete declaration.
5749 (regcache_save_no_passthrough): Delete declaration.
5750 (regcache_restore_no_passthrough): Delete declaration.
5751 * regcache.c (regcache_save): Delete function.
5752 (regcache_save_no_passthrough): Delete function.
5753 (regcache_restore): Delete function.
5754 (regcache_restore_no_passthrough): Delete function.
5758 * config/m68k/tm-m68k.h: Fix typo.
5759 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5760 (m68k_frame_init_saved_regs): Declare.
5764 Remove some vestiges of Harris 88k support.
5765 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5766 register numbering quirk.
5767 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5768 odd symbols occurring in Harris 88k ELF targets.
5772 * gdb_locale.h: New file.
5773 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5774 (defs_h): Added gdb_locale.h.
5775 * configure, config.in: Rebuilt.
5776 * configure.in (PACKAGE): Define.
5777 * defs.h: Include gdb_locale.h.
5778 * main.c (captured_main): Call setlocale, bindtextdomain,
5783 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5784 * config/frv/frv.mt: New file.
5785 * config/frv/tm-frv.h: New file.
5786 * configure.tgt: Support frv-*-*.
5787 * Makefile.in (frv-tdep.o): New target.
5788 * frv-tdep.c: New file.
5789 * NEWS: Mention frv.
5793 * MAINTAINERS: Add self to "Write After Approval" list.
5797 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5798 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5799 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5800 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5801 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5803 * m68k-tdep.c: Include arch-utils.h
5804 (m68k_register_raw_size): Add.
5805 (m68k_register_virtual_size): Add.
5806 (m68k_register_virtual_type): Add.
5807 (m68k_register_name): Add.
5808 (m68k_stack_align): Add.
5809 (m68k_register_byte): Add.
5810 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5815 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5816 m68k_find_saved_regs.
5817 (m68k_pop_frame): Removed saved_regs structure, and replaced
5818 references to it with frame->saved_regs.
5819 (m68k_gdbarch_init): Added function calls to initialize the
5821 (m68k_fix_call_dummy): Add.
5822 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5823 (CALL_DUMMY): Remove.
5824 (CALL_DUMMY_LENGTH): Remove.
5825 (CALL_DUMMY_START_OFFSET): Remove.
5826 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5827 (FIX_CALL_DUMMY): Remove.
5828 (PUSH_DUMMY_FRAME): Remove.
5829 (POP_FRAME): Remove.
5833 * parse.c (parse_fprintf): New function used to avoid calls to
5834 fprintf in bison parser generated debug code.
5835 * parser-defs.h: Declaration of new parse_fprintf function.
5836 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5837 Set YYDEBUG to 1 by default.
5838 Set YYFPRINTF as parse_fprintf.
5842 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5844 (pointer_encoding, enum ptr_encoding): New.
5845 (execute_cfa_program): Take care about pointer encoding.
5846 (dwarf2_build_frame_info): Only call parse_frame_info for
5847 .debug_frame and .eh_frame.
5848 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5849 fixed augmentation handling, added relative addressing,
5850 ignore duplicate FDEs. Added comments.
5851 * dwarf2cfi.c: Reindented.
5855 * event-top.c (command_handler): Don't use space_at_cmd_start
5856 unless there is sbrk() on the host. Assign time and space data
5857 to union fields of the appropriate length.
5861 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5862 x86_64_register_name. Return type changed to 'const char *'.
5863 (x86_64_register_name2nr): Rename to x86_64_register_number.
5864 (x86_64_gdbarch_init): Update to reflect the change.
5865 * x86-64-tdep.h: Ditto.
5866 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5867 (supply_fpregset): Ditto.
5871 * regcache.h: Update copyright.
5872 (struct regcache, struct gdbarch): Add opaque declarations.
5873 (current_regcache): Declare global variable.
5874 (regcache_read, regcache_write): Add gdbarch parameter.
5875 (regcache_save, regcache_save_no_passthrough)
5876 (regcache_restore, regcache_restore_no_passthrough)
5877 (regcache_dup, regcache_dup_no_passthrough)
5878 (regcache_cpy, regcache_cpy_no_passthrough)
5879 (deprecated_grub_regcache_for_registers)
5880 (deprecated_grub_regcache_for_register_valid)
5881 (regcache_valid_p): Add function declarations.
5883 * regcache.c: Update copyright.
5884 (regcache_descr_handle): New global variable.
5885 (struct regcache_descr): Define.
5886 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5887 (regcache_descr, xfree_regcache_descr): New functions.
5888 (struct regcache): Define.
5889 (regcache_xmalloc, regcache_xfree): New functions.
5890 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5891 (regcache_dup, regcache_dup_no_passthrough): New functions.
5892 (regcache_valid_p, regcache_read_as_address): New functions.
5893 (deprecated_grub_regcache_for_registers): New function.
5894 (deprecated_grub_regcache_for_register_valid): New function.
5895 (current_regcache): New global variable.
5896 (register_buffer): Add regcache parameter. Update calls.
5897 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5898 (read_register_gen, write_register_gen): Update register_buffer
5899 call. Test for legacy_p instead of gdbarch_register_read_p or
5900 gdbarch_register_write_p.
5901 (regcache_collect): Update register_buffer call.
5902 (build_regcache): Rewrite. Use deprecated grub functions.
5903 (regcache_save, regcache_save_no_passthrough): New functions.
5904 (regcache_restore, regcache_restore_no_passthrough): New
5906 (_initialize_regcache): Create the regcache_data_handle. Swap
5907 current_regcache global variable.
5909 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5910 parameter to regcache_read and regcache_write calls.
5911 (sh4_register_read): Ditto.
5912 (sh64_pseudo_register_read): Ditto.
5913 (sh64_register_read): Ditto.
5914 (sh_pseudo_register_write): Ditto.
5915 (sh4_register_write): Ditto.
5916 (sh64_pseudo_register_write): Ditto.
5917 (sh64_register_write): Ditto.
5919 * defs.h (XCALLOC): Define.
5923 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5924 * m68k-tdep.c (m68k_gdbarch_init): Added.
5925 (m68k_dump_tdep): Added.
5929 * ada-lang.c (fill_in_ada_prototype): Update comment.
5933 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5935 (mips_abi_string, mips_abi_strings): New.
5936 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5937 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5938 tdep->mips_abi_string. Honor mips_abi_string. Default to
5939 O32 if no ABI is found.
5940 (mips_dump_tdep): Use mips_abi_strings.
5941 (mips_abi_update): New function.
5942 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5943 ``set mips abi'' and ``show mips abi''. Check the size of
5948 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5953 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5954 current frame using only the first stack size adjustment. All
5955 subsequent size adjustments are not considered to be part of
5956 the "static" part of the current frame.
5957 Compute the address of the saved registers relative to the
5958 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5959 in use in this frame.
5963 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5965 suggesting this solution.
5969 * config/romp/xm-rtbsd.h: Delete file.
5970 * config/romp/rtbsd.mh: Delete file.
5974 * breakpoint.c (condition_command): Post breakpoint_modify
5975 when a condition is added to an existing breakpoint.
5976 (commands_command): Likewise for commands.
5977 (set_ignore_count): Likewise for ignore counts.
5978 If no tty, do not simply return, still need to send event
5980 (ignore_command): Only print a newline if the command came
5982 Don't call breakpoints_changed, since this is now properly
5983 handled by set_ignore_count.
5987 * MAINTAINERS: Note that cris-elf target can be compiled with
5989 * cris-tdep.c (cris_register_name): Make return type constant.
5990 (cris_breakpoint_from_pc): Ditto.
5994 * frame.h (struct frame_info): Change type of context to
5999 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6001 * gdbarch.h, gdbarch.c: Regenerate.
6002 * config/mips/tm-mips.h (mips_register_name): Update.
6003 * i386-tdep.h (i386_register_name): Update.
6004 * mips-tdep.c (mips_register_name): Update
6005 * alpha-tdep.c (alpha_register_name): Update.
6006 * arch-utils.c (legacy_register_name): Update.
6007 * arch-utils.h (legacy_register_name): Update.
6008 * avr-tdep.c (avr_register_name): Update.
6009 * ia64-tdep.c (ia64_register_name): Update.
6010 * i386-tdep.c (i386_register_name): Update.
6011 * sparc-tdep.c (sparc32_register_name): Update.
6012 (sparc64_register_name): Update.
6013 (sparclite_register_name): Update.
6014 (sparclet_register_name): Update.
6015 * sh-tdep.c (sh_generic_register_name): Update.
6016 (sh_sh_register_name): Update.
6017 (sh_sh3_register_name): Update.
6018 (sh_sh3e_register_name): Update.
6019 (sh_sh_dsp_register_name): Update.
6020 (sh_sh3_dsp_register_name): Update.
6021 (sh_sh4_register_name): Update.
6022 (sh_sh64_register_name): Update.
6023 * s390-tdep.c (s390_register_name): Update.
6024 * rs6000-tdep.c (rs6000_register_name): Update.
6025 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6026 (ns32k_register_name_32382): Update.
6027 * d10v-tdep.c (d10v_ts2_register_name): Update.
6028 (d10v_ts3_register_name): Update.
6029 * xstormy16-tdep.c (xstormy16_register_name): Update.
6030 * vax-tdep.c (vax_register_name): Update.
6031 * v850-tdep.c (v850_register_name): Update.
6032 * m68hc11-tdep.c (m68hc11_register_name): Update.
6033 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6034 (am33_register_name): Update.
6038 * m68k-tdep.c: Reindented.
6042 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6043 list of predefined types.
6047 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6048 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6049 REGISTER_CONVERT_TO_RAW): Remove defines.
6050 (i386_register_virtual_type, i386_register_convertible,
6051 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6053 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6054 macros mentioned above.
6056 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6057 (i386lynx_saved_pc_after_call): Remove prototype.
6058 * i386ly-tdep.c: Include "i386-tdep.h".
6059 (i386lynx_saved_pc_after_call): Make static. Use
6060 read_memory_nobpt instead of read_memory. Use
6061 read_memory_unsigned_integer instead of read_memory_integer.
6062 (i386lynx_init_abi): New function.
6063 (i386lynx_coff_osabi_sniffer): New function.
6064 (_initialize_i386bsd_tdep): New function.
6066 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6067 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6068 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6069 (i386_fix_call_dummy): Remove prototype.
6070 * i386-tdep.c (i386_call_dummy_words): New variable.
6071 (i386_gdbarch_init): Adjust for removal of the
6072 macros mentioned above.
6076 * command.h (add_setshow_auto_boolean_cmd): Replace
6077 add_set_auto_boolean_cmd.
6078 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6079 add_set_auto_boolean_cmd.
6080 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6081 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6082 mask-address'' command.
6083 (show_mask_address): Add cmd parameter.
6084 * remote.c (add_packet_config_cmd): Update. Change type of
6085 set_func and show_func to cmd_sfunc_ftype.
6086 (_initialize_remote): Update `set remote Z-packet'
6087 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6088 (show_remote_protocol_e_packet_cmd): Ditto.
6089 (show_remote_protocol_E_packet_cmd): Ditto.
6090 (show_remote_protocol_P_packet_cmd): Ditto.
6091 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6092 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6093 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6094 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6095 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6096 (show_remote_protocol_Z_packet_cmd): Ditto.
6097 (show_remote_protocol_binary_download_cmd): Ditto.
6098 (show_remote_cmd): Pass NULL to all of above.
6102 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6103 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6104 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6105 POP_FRAME): Remove defines.
6106 (i386_push_arguments, i386_store_struct_return,
6107 i386_extract_return_value, i386_store_return_value,
6108 i386_extract_struct_value_address, i386_push_dummy_frame,
6109 i386_pop_frame): Renove prototypes.
6110 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6111 macros mentioned above.
6115 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6116 add_set_boolean_cmd.
6117 (add_setshow_cmd): New function.
6118 * command.h (add_setshow_boolean_cmd): Replace
6119 add_set_boolean_cmd.
6120 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6121 and ``set rdiromatzero''.
6122 * maint.c (_initialize_maint_cmds): Update commented out code.
6123 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6124 * target.c (initialize_targets): Update `set
6125 trust-readonly-sections'.
6126 * remote.c (_initialize_remote): Update `set remotebreak'.
6130 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6131 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6132 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6133 fit into multi-arch framework.
6134 (i386_breakpoint_from_pc): New function.
6135 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6138 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6139 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6140 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6141 (i386_frameless_function_invocation, i386_frame_num_args,
6142 i386_frame_init_saved_regs): Remove prototypes.
6143 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6144 macros mentioned above.
6148 * cli/cli-decode.c (set_cmd_cfunc): Update.
6149 (set_cmd_sfunc): Update.
6150 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6151 (set_cmd_sfunc, set_cmd_cfunc): Update.
6152 * cli/cli-decode.h: Update.
6156 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6157 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6161 * defs.h (auto_boolean): Declare enum.
6162 * command.h (cmd_auto_boolean): Delete enum.
6163 * mips-tdep.c (mask_address_var): Update.
6164 (mips_mask_address_p): Update.
6165 (show_mask_address): Update.
6166 * remote.c (struct packet_config): Update.
6167 (update_packet_config): Update.
6168 (show_packet_config_cmd): Update.
6169 (packet_ok): Update.
6170 (add_packet_config_cmd): Update.
6171 (_initialize_remote):
6172 * command.h: Update.
6173 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6174 (do_setshow_command): Update.
6175 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6176 * cli/cli-decode.h: Update.
6180 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6181 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6182 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6183 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6184 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6185 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6187 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6188 list of DJGPP COFF targets.
6190 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6191 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6192 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6193 (FP0_REGNUM): Remove define.
6194 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6195 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6196 (i386_register_virtual_size): Remove protoype.
6197 * i386-tdep.c (i386_register_virtual_size): Removed.
6198 (i386_extract_return_value, i386_store_return_value): Use
6199 FP0_REGNUM instead of NUM_FREGS to determine whether the
6200 floating-point registers are available.
6201 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6202 Adjust for removal of macros mentioned above.
6206 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6208 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6210 (supply_gregset, fill_gregset): Remove use of register keyword and
6211 remove declaration for regmap. Use I386_NUM_GREGS instead of
6212 NUM_REGS and NUM_FREGS.
6213 (FPREGSET_FSAVE_OFFSET): Remove.
6214 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6215 NUM_FREGS to determine whether the floating-point registers are
6218 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6219 gnu_store_registers): Replace usage of NUM_GREGS with
6222 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6223 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6224 usage of NUM_GREGS with I386_NUM_GREGS.
6226 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6228 * i386bsd-nat.c: Include "i386-tdep.h".
6229 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6232 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6233 and associated comment. They no longer make any sense, since we
6234 don't use this file anymore on Linux.
6236 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6237 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6238 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6239 elements in these arrays.
6240 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6245 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6246 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6250 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6251 EXTRACT_RETURN_VALUE.
6252 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6253 EXTRACT_STRUCT_VALUE_ADDRESS.
6254 * gdbarch.h, gdbarch.c: Regenerate.
6256 * values.c (value_being_returned): Handle
6257 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6258 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6260 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6261 * arm-tdep.c (arm_gdbarch_init): Update.
6262 * avr-tdep.c (avr_gdbarch_init): Update.
6263 * cris-tdep.c (cris_gdbarch_init): Update.
6264 * d10v-tdep.c (d10v_gdbarch_init): Update.
6265 * ia64-tdep.c (ia64_gdbarch_init): Update.
6266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6267 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6268 * s390-tdep.c (s390_gdbarch_init): Update.
6269 * sh-tdep.c (sh_gdbarch_init): Update.
6270 * s390-tdep.c (s390_gdbarch_init): Update.
6271 * sparc-tdep.c (sparc_gdbarch_init): Update.
6272 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6273 * v850-tdep.c (v850_gdbarch_init): Update.
6274 * vax-tdep.c (vax_gdbarch_init): Update.
6275 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6278 * config/arc/tm-arc.h: Update.
6279 * config/d30v/tm-d30v.h: Update.
6280 * config/fr30/tm-fr30.h: Update.
6281 * config/h8300/tm-h8300.h: Update.
6282 * config/h8500/tm-h8500.h: Update.
6283 * config/i386/tm-i386.h: Update.
6284 * config/i386/tm-ptx.h: Update.
6285 * config/i386/tm-symmetry.h: Update.
6286 * config/i960/tm-i960.h: Update.
6287 * config/m32r/tm-m32r.h: Update.
6288 * config/m68k/tm-delta68.h: Update.
6289 * config/m68k/tm-linux.h: Update.
6290 * config/m68k/tm-m68k.h: Update.
6291 * config/m88k/tm-m88k.h: Update.
6292 * config/mcore/tm-mcore.h: Update.
6293 * config/mips/tm-mips.h: Update.
6294 * config/mn10200/tm-mn10200.h: Update.
6295 * config/pa/tm-hppa.h: Update.
6296 * config/pa/tm-hppa64.h: Update.
6297 * config/sparc/tm-sp64.h: Update.
6298 * config/sparc/tm-sparc.h: Update.
6299 * config/sparc/tm-sparclet.h: Update.
6300 * config/z8k/tm-z8k.h: Update.
6304 * Makefile.in (i386_linux_tdep_h): Define.
6305 (i386_tdep_h, i387_tdep_h): Define.
6306 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6307 $(i386_tdep_h) and $(i387_tdep_h).
6308 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6312 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6313 Already covered by the default.
6315 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6316 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6317 (i386_gdbarch_init): Initialize long_double_format and long_double
6320 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6321 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6323 * config/i386/i386sol2.mh: ... here.
6324 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6325 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6326 (SIGCONTEXT_PC_OFFSET): Remove define.
6327 (IN_SIGTRAMP): Remove define.
6328 * i386-sol2-tdep.c: New file.
6330 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6331 * config/i386/tm-i386nw.h: Removed.
6333 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6334 USE_STRUCT_CONVENTION): Remove defines.
6335 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6336 (get_longjmp_target): Remove prototype.
6337 (IN_SIGTRAMP): Remove define.
6338 (i386bsd_in_sigtramp): Remove prototype.
6339 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6340 function. Update comment accordingly
6341 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6342 (FRAME_SAVED_PC): Remove define.
6343 (i386bsd_frame_saved_pc): Remove prototype.
6344 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6345 GET_LONGJMP_TARGET): Remove defines.
6346 (get_longjmp_target): Remove prototype.
6347 (IN_SIGTRAMP): Remove define.
6348 (i386bsd_in_sigtramp): Remove prototype.
6349 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6350 function. Update comment accordingly
6351 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6352 (FRAME_SAVED_PC): Remove define.
6353 (i386bsd_frame_saved_pc): Remove prototype.
6354 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6356 (USE_STRUCT_CONVENTION): Remove prototype.
6357 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6359 (_initialize_i386bsd_nat): Revise logic to determine some
6360 constants at compile time when compiling a native GDB. Warn if
6361 things don't match up with what we expect.
6362 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6364 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6365 to use date stored in `struct gdbarch_tdep'.
6366 (i386bsd_sigcontext_offset): Remove varaible.
6367 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6368 stored in `struct gdbarch_tdep'.
6369 (i386bsd_frame_saved_pc): Make static.
6370 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6371 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6372 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6373 i386fbsd4_sc_pc_offset): New variables.
6374 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6375 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6377 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6379 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6380 Modify the value of i386fbsd_sigtramp_start and
6381 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6382 i386fbsd_sigtramp_end.
6383 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6386 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6387 define to i386-linux-tdep.h.
6388 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6389 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6391 (i386_linux_register_name, i386_linux_register_byte,
6392 i386_linux_register_raw_size): Remove prototypes.
6393 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6394 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6395 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6396 TARGET_WRITE_PC): Remove defines.
6397 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6398 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6399 i386_linux_write_pc): Remove prototypes.
6400 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6401 (get_longjmp_target): Remove prototype.
6402 * i386-linux-tdep.h: New file.
6403 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6404 * i386-linux-tdep.c: Include "i386-tdep.h" and
6405 "i386-linux-tdep.h".
6406 (i386_linux_register_name, i386_linux_register_byte,
6407 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6408 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6410 (i386_linux_init_abi): New function.
6411 (_initialize_i386_linux_tdep): New function.
6413 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6414 (i386_saved_pc_after_call): Remove prototype.
6415 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6416 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6417 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6418 (i386_register_name, i386_stab_reg_to_regnum,
6419 i386_dwarf_reg_to_regnum): Remove prototypes.
6420 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6421 SIZEOF_SSE_REGS): Remove defines.
6422 (REGISTER_BYTES): Remove define.
6423 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6424 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6425 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6426 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6427 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6428 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6429 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6430 (get_longjmp_target): Remove prototype.
6431 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6432 (sigtramp_saved_pc): Remove define.
6433 (i386v4_sigtramp_saved_pc): Remove prototype.
6434 * config/i386/tm-go32.h (FRAME_CHAIN,
6435 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6436 (i386go32_frame_saved_pc): Remove prototype.
6437 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6438 (get_longjmp_target): Remove prototype.
6439 * i386-tdep.h: Include "osabi.h".
6440 (enum i386_abi): Removed.
6441 (enum struct_return): New enum.
6442 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6443 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6444 sc_pc_offset members.
6445 (i386_gdbarch_register_os_abi): Remove prototype.
6446 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6447 I386_SSE_NUM_REGS): New defines.
6448 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6449 I386_SSE_SIZEOF_REGS): New defines.
6450 (i386_register_name, i386_register_byte, i386_register_raw_size):
6452 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6453 (i386bsd_sigtramp_saved_pc): New prototype.
6454 * i386-tdep.c: Don't include "elf-bfd.h".
6455 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6456 i386_frame_chain, i386_saved_pc_after_call): Make static.
6457 (i386_frame_saved_pc): Rewrite to call architecture dependent
6458 function to deal with signal handlers. Make static.
6459 (i386go32_frame_saved_pc): Removed.
6460 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6462 (i386_get_longjmp_target): New function.
6463 (default_struct_convention, pcc_struct_convention,
6464 reg_struct_convention, valid_conventions, struct_convention): New
6466 (i386_use_struct_convention): New function.
6467 (i386v4_sigtramp_saved_pc): Renamed to
6468 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6469 (i386_pc_in_sigtramp): New function.
6470 (i386_abi_names): Removed.
6471 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6472 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6474 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6475 i386_gdbarch_register_os_abi): Removed.
6476 (struct i386_abi_handler): Removed.
6477 (i386_abi_handler_list): Removed.
6478 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6480 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6481 i386_nw_init_abi): New functions.
6482 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6483 Use set_gdbarch_xxx() calls instead of relying on macros for a
6485 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6486 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6487 Register the various architecture variants defined in this file.
6491 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6492 (struct main_type): Remove arg_types member. Update comments for
6494 (TYPE_ARG_TYPES): Remove.
6495 (TYPE_FN_FIELD_ARGS): Update.
6496 (smash_to_method_type): Update prototype.
6498 * c-typeprint.c (cp_type_print_method_args): Take method type
6499 instead of argument list. Use new argument layout. Simplify.
6500 (c_type_print_args): Use new argument layout. Simplify.
6501 (c_type_print_base): Update call to cp_type_print_method_args.
6502 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6503 argument; use die->type instead. Update call to
6504 smash_to_method_type.
6505 (read_structure_scope): Update call to dwarf2_add_member_fn.
6506 * gdbtypes.c (allocate_stub_method): Update comment.
6507 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6508 Use new argument layout.
6509 (check_stub_method): Use new argument layout. Don't count
6510 void as an argument.
6511 (print_arg_types): Update comments. Use new argument layout.
6512 (recursive_dump_type): Don't print arg_types member.
6513 * hpread.c (hpread_read_struct_type): Use new argument layout.
6514 (fixup_class_method_type): Likewise.
6515 (hpread_type_lookup): Likewise.
6516 * stabsread.c (read_type): Update calls to read_args and
6517 smash_to_method_type.
6518 (read_args): Use new argument layout. Simplify.
6519 * valops.c (typecmp): Use new argument layout. Update parameters
6520 and comments. Simplify.
6521 (hand_function_call): Use new argument layout.
6522 (search_struct_method): Update call to typecmp.
6523 (find_overload_match): Use new argument layout.
6527 * NEWS: Mention multithreaded debug support for gdbserver.
6531 * MAINTAINERS: Mention NEWS.
6535 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6536 (struct mips_objfile_private, compare_pdr_entries): New.
6537 (non_heuristic_proc_desc): Read the ".pdr" section if it
6542 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6543 (arm_debug): New static variable.
6544 (_initialize_arm_tdep): Add ``set debug arm'' command.
6548 * Makefile.in (sim_arm_h): Define.
6549 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6550 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6551 (arm_register_sim_regno): New function, map an internal REGNUM
6552 onto a simulator register number.
6553 (arm_gdbarch_init): Set register_sim_regno.
6557 * MAINTAINERS: Add self.
6561 * source.c (source_info): Mention whether the symtab has
6562 information about preprocessor macros.
6564 Call the command `info macro', not `show macro'.
6565 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6567 (_initialize_macrocmd): Register `info_macro_command' in
6568 `infolist', not `showlist'.
6572 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6573 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6574 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6575 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6576 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6578 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6579 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6580 (_initialize_mips_tdep): Remove dead code.
6581 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6582 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6583 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6584 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6585 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6586 MIPS_LAST_FP_ARG_REGNUM): Remove.
6590 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6591 (unwind_tmp_obstack_free, parse_frame_info)
6592 (update_context, cfi_read_fp, cfi_write_fp)
6593 (cfi_frame_chain, cfi_init_extra_frame_info)
6594 (cfi_virtual_frame_pointer): Use the above function.
6595 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6599 * v850-tdep.c (v850_type_is_scalar): New function.
6600 (v850_use_struct_convention): Match current gcc implementation
6601 as close as possible.
6602 (v850_push_arguments): Fix stack_offset handling. Don't write
6603 struct_addr into register. This is done by v850_store_struct_return.
6604 (v850_extract_return_value): Care for structs.
6605 (v850_store_return_value): Ditto.
6606 (v850_store_struct_return): Actually write address.
6610 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6611 without debug information too.
6615 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6616 Make multi-arch pure.
6617 * gdbarch.h, gdbarch.c: Re-generate.
6618 * arm-tdep.c (arm_print_float_info): Update.
6619 * arch-utils.h (default_print_float_info): Update.
6620 * arch-utils.c (default_print_float_info): Update.
6621 * infcmd.c (float_info): Update call.
6625 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6626 the front of the initialize list.
6630 * infrun.c (struct inferior_status): Replace fields
6631 selected_frame_address and selected_level with field
6633 (save_inferior_status): Update. Use get_frame_id.
6634 (struct restore_selected_frame_args): Delete.
6635 (restore_selected_frame): Update. Use frame_find_by_id.
6636 (restore_inferior_status): Update.
6638 * breakpoint.h (struct breakpoint): Change type of
6639 watchpoint_frame to frame_id.
6640 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6641 call to get_current_frame.
6642 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6644 (watchpoint_check): Use frame_find_by_id.
6646 * frame.h (record_selected_frame): Delete declaration.
6647 * stack.c (record_selected_frame): Delete function.
6649 * frame.h (struct frame_id): Define.
6650 (get_frame_id): Declare.
6651 (frame_find_by_id): Declare.
6652 * frame.c (frame_find_by_id): New function.
6653 (get_frame_id): New function.
6657 * ser-e7kpc.c: Fix duplicated define and call of
6658 _initialize_ser_e7000pc
6662 * signals/signals.c (target_signal_from_host): Fix #ifdef
6664 (do_target_signal_to_host): Likewise.
6668 * mips-tdep.c (mips_find_abi_section): New function.
6669 (mips_gdbarch_init): Call it.
6673 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6674 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6675 after Andrew's 2002-06-08 gdbarch change.
6679 * i386-linux-nat.c (suppy_gregset): Don't supply
6680 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6682 (fill_gregset): Don't fetch it under the same circumstances.
6686 * Makefile.in (callback_h): Define.
6687 (remote_sim_h): Update path to remote-sim.h.
6688 (remote-rdp.o): Add $(callback_h).
6689 (remote-sim.o): Use $(callback_h).
6690 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6691 * remote-rdp.c: Include "gdb/callback.h".
6695 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6696 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6700 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6701 * rdi-share/serpardr.c: Ditto.
6702 * rdi-share/unixcomm.c: Ditto.
6703 * rdi-share/serdrv.c: Ditto.
6704 * rdi-share/hostchan.h: Ditto.
6705 * rdi-share/hostchan.c: Ditto.
6706 * rdi-share/host.h: Ditto.
6707 * rdi-share/devsw.c: Ditto.
6709 * objfiles.h: Change type of obj_private to void pointer.
6710 * pa64solib.c: Update copyright. Don't include "assert.h", use
6711 strcmp instead of STREQ, use LONGEST, do not use PTR
6712 * somsolib.c: Ditto.
6714 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6715 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6716 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6720 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6721 (default_get_saved_register): Delete function.
6722 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6723 generic_unwind_get_saved_register.
6724 * gdbarch.h, gdbarch.c: Re-generate.
6728 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6729 generic_func_frame_chain_valid.
6730 * gdbarch.h, gdbarch.c: Re-generate.
6731 * blockframe.c (generic_func_frame_chain_valid): Only check
6732 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6733 passing FP to PC_IN_CALL_DUMMY.
6738 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6739 (register_gdbarch_data): Initialize init_p.
6740 (gdbarch_data): Initialize data pointer using the init function.
6741 (init_gdbarch_data): Delete function.
6742 (gdbarch_update_p): Update.
6743 (initialize_non_multiarch): Update.
6744 (struct gdbarch): Add field initialized_p.
6745 * gdbarch.h, gdbarch.c: Re-generate.
6749 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6750 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6751 better do the things actually here.
6752 * x86-64-tdep.c (x86_64_register_name2nr): New.
6753 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6754 (x86_64_gdbarch_init): Respect the above change.
6755 * x86-64-tdep.h (x86_64_register_name2nr)
6756 (x86_64_register_nr2name): Add prototypes.
6757 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6761 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6762 Delete extra braces and re-indent.
6763 (d10v_store_return_value): Char return values
6764 must be shifted over by one byte in R0.
6765 (d10v_extract_return_value): Delete extra braces, re-indent.
6769 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6770 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6771 (d10v_integer_to_address): Rewrite.
6772 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6773 the d10v specific functions which take care of converting to the
6778 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6779 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6783 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6785 * config/tm-linux.h: Ditto.
6786 * config/alpha/tm-alphalinux.h: Ditto.
6787 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6788 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6789 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6790 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6791 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6792 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6793 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6794 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6795 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6796 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6797 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6798 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6799 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6800 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6801 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6802 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6803 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6804 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6805 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6806 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6807 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6808 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6809 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6810 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6811 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6812 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6813 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6814 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6815 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6816 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6817 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6818 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6819 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6820 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6821 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6822 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6823 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6827 * ada-exp.tab.c: New file
6828 * ada-exp.y: New file
6829 * ada-lang.c: New file
6830 * ada-lang.h: New file
6831 * ada-lex.c: New file
6832 * ada-lex.l: New file
6833 * ada-tasks.c: New file
6834 * ada-typeprint.c: New file
6835 * ada-valprint.c: New file
6839 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6840 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6844 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6845 insetead of ppc-linux-tdep.o.
6846 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6847 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6852 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6853 bit register contents for little endian hosts.
6857 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6862 * gdbarch.h: Regenerate.
6866 * MAINTAINERS: Add everyone to write-after-approval list.
6870 * stack.c (frame_info): Use frame_register_unwind instead of
6871 saved_regs. Mention when the SP is on the stack or in a register.
6873 * frame.h (frame_register_unwind_ftype): Define. Document.
6874 (struct frame_info): Add field register_unwind and
6875 register_unwind_cache.
6876 (frame_register_unwind): Declare.
6877 (generic_unwind_get_saved_register): Declare.
6879 * frame.c (frame_register_unwind): New function.
6880 (generic_unwind_get_saved_register): New function.
6882 * blockframe.c (generic_call_dummy_register_unwind): New function.
6883 (frame_saved_regs_register_unwind): New function.
6884 (set_unwind_by_pc): New function.
6885 (create_new_frame): New function.
6886 (get_prev_frame): New function.
6890 * a29k-share/: Delete directory.
6891 * remote-vx29k.c: Delete file.
6895 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6896 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6900 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6901 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6904 (sparcnbsd-tdep.o): New dependency lists.
6905 * NEWS: Note new UltraSPARC NetBSD native configuration.
6906 * configure.host (sparc64-*-netbsd*): New host.
6907 * configure.tgt (sparc-*-netbsdelf*)
6908 (sparc-*-netbsd*): Set gdb_target to nbsd.
6909 (sparc64-*-netbsd*): New target.
6910 * sparc64nbsd-nat.c: New file.
6911 * sparcnbsd-nat.c: New file.
6912 * sparcnbsd-tdep.c: New file.
6913 * sparcnbsd-tdep.h: New file.
6914 * config/sparc/nbsd.mt: New file.
6915 * config/sparc/nbsd64.mh: New file.
6916 * config/sparc/nbsd64.mt: New file.
6917 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6918 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6920 * config/sparc/nbsdaout.mt: Remove.
6921 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6922 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6924 * config/sparc/nbsdelf.mt: Remove.
6925 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6926 sparc-nat.c compatiblity defines.
6927 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6928 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6929 * config/sparc/tm-nbsd64.h: New file.
6930 * config/sparc/tm-nbsdaout.h: Remove.
6931 * config/sparc/xm-nbsd.h: Remove.
6935 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6936 * sparc-tdep.c: Include osabi.h.
6937 (gdbarch_tdep): Add osabi member.
6938 (_initialize_sparc_tdep): Use gdbarch_register.
6939 (sparc_gdbarch_init): Use generic OS ABI framework.
6940 (sparc_dump_tdep): New function.
6944 * corefile.c (do_captured_read_memory_integer): Return non-zero
6946 (safe_read_memory_integer): Copy result of memory read when
6947 status is non-zero. Also, add comments.
6951 * Makefile.in (ppc_tdep_h): Define.
6954 (rs6000-tdep.o): Use $(ppc_tdep_h).
6957 (ppcnbsd-tdep.o): New dependency lists.
6958 * ppc-tdep.h: Use generic OS ABI framework.
6959 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6960 (ppc_linux_init_abi): New functions.
6961 (ppc_sysv_abi_broken_use_struct_convention)
6962 (ppc_sysv_abi_use_struct_convention)
6963 (ppc_sysv_abi_push_arguments): Move to...
6964 * ppc-sysv-tdep.c: ...here.
6965 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6966 * rs6000-tdep.c (process_note_abi_tag_sections)
6967 (get_elfosabi): Remove.
6968 (rs6000_gdbarch_init): Use generic OS ABI framework.
6969 (rs6000_dump_tdep): New function.
6970 (_initialize_rs6000_tdep): Use gdbarch_register.
6971 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6972 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6973 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6974 of ppc-linux-tdep.o.
6975 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6976 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6977 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6978 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6979 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6980 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6984 * macroscope.c (default_macro_scope): Put `void' in empty argument
6989 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6990 * arch-utils.c: Include "sim-regno.h".
6991 * gdbarch.sh: Don't include "sim-regno.h".
6992 * gdbarch.h, gdbarch.c: Regenerate.
6993 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6995 * arch-utils.h (legacy_register_sim_regno): To here.
6996 * remote-sim.c (legacy_register_sim_regno): Move function from
6998 * arch-utils.c (legacy_register_sim_regno): To here.
7002 * sim-regno.h: New file.
7003 * Makefile.in (sim_regno_h): Define.
7004 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7005 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7006 (legacy_register_sim_regno): New function.
7007 (one2one_register_sim_regno): New function.
7008 (gdbsim_fetch_register): Rewrite.
7009 (gdbsim_store_register): Only store a register when
7010 REGISTER_SIM_REGNO is valid.
7011 * d10v-tdep.c: Include "sim-regno.h".
7012 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7013 (d10v_ts3_register_sim_regno): Ditto.
7014 * gdbarch.sh: Include "sim-regno.h".
7015 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7016 * gdbarch.h, gdbarch.c: Regenerate.
7017 * arch-utils.h (default_register_sim_regno): Delete declaration.
7018 * arch-utils.c (default_register_sim_regno): Delete function.
7022 * ppcnbsd-nat.c: Rewrite.
7023 * ppcnbsd-tdep.c: New file.
7024 * ppcnbsd-tdep.h: New file.
7025 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7026 solib.o, and solib-svr4.o.
7027 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7028 nbsd-tdep.o, and corelow.o.
7032 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7033 `tr' and `sed'. Mention that `broken' targets are not expected to
7038 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7039 Let PC point right after the prologue before looking up symbols.
7043 * i386-tdep.c (i386_register_virtual_type): Return
7044 builtin_type_vec128i for SSE registers.
7046 * gdbtypes.h (builtin_type_vec128i): Declare.
7048 * gdbtypes.c (build_builtin_type_vec128i): New function.
7049 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7050 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7051 (build_gdbtypes): Initialize new builtin vector types.
7052 (_initialize_gdbtypes): Register new vector types with gdbarch.
7056 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7057 since it has been multi-arch'd.
7058 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7059 Move Alpha and VAX multi-arch news entries to same section
7060 as other multi-arch news.
7064 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7065 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7066 static. Rename some register numbers to put them in ns32k-tdep
7068 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7069 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7071 (_initialize_ns32k_tdep): Use gdbarch_register.
7072 * ns32k-tdep.h: New file.
7073 * ns32knbsd-tdep.c: New file.
7074 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7075 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7076 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7077 REGISTER_BYTES, REGISTER_BYTE): Remove.
7078 * config/ns32k/tm-ns32k.h: New file.
7079 * config/ns32k/tm-umax.h: Remove.
7083 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7084 ns32k_store_struct_return, ns32k_extract_return_value,
7085 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7087 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7088 ns32k_saved_pc_after_call.
7089 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7090 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7091 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7092 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7093 ns32k_extract_struct_value_address.
7097 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7098 ns32k_fix_call_dummy): New.
7099 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7100 ns32k_call_dummy_words.
7101 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7102 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7103 CALL_DUMMY_NARGS): Remove.
7104 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7108 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7109 ns32k_frame_saved_pc, ns32k_frame_args_address,
7110 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7111 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7112 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7113 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7114 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7115 (BREAKPOINT): Remove..
7116 (FRAME_CHAIN): Define as ns32k_frame_chain.
7117 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7118 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7119 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7120 (FRAME_FIND_SAVED_REGS): Remove.
7121 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7122 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7123 (POP_FRAME): Define as ns32k_pop_frame.
7127 * ns32k-tdep.c (ns32k_register_byte_32082,
7128 ns32k_register_byte_32382, ns32k_register_raw_size,
7129 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7131 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7132 ns32k_register_byte_32382.
7133 * config/ns32k/tm-umax.h: Update copyright years.
7134 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7135 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7136 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7137 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7138 (ns32k_get_enter_addr): Fix prototype.
7142 * ns32k-tdep.c: Update copyright years.
7143 (ns32k_register_name_32082): New function.
7144 (ns32k_register_name_32382): Ditto.
7145 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7146 (REGISTER_NAME): Define as ns32k_register_name_32382.
7147 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7148 (REGISTER_NAME): Define as ns32k_register_name_32082.
7152 * dwarf2read.c (free_line_header): Use xfree, not free.
7156 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7157 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7161 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7165 From Ross Alexander at NEC Europe:
7166 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7170 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7171 for input, rather than parse_and_eval_address.
7175 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7176 * Makefile.in (sim_d10v_h): Update definition.
7180 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7181 change `2002-05-22 Michael Snyder' below.
7182 (d10v_push_arguments): Ditto.
7183 (d10v_extract_return_value): Ditto.
7187 * macrotab.c (check_for_redefinition): Don't complain if the new
7188 definition is the same as the previous one. Take more arguments
7189 to allow the comparison.
7190 (macro_define_object, macro_define_function): Pass more arguments
7191 to check_for_redefinition.
7195 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7196 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7197 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7198 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7199 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7200 Add a temp variable to save a call (and a memory read).
7201 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7202 if possible (so that PC_IN_CALL_DUMMY will work).
7206 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7210 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7212 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7213 (dwarf2_build_frame_info): Add offset to fde->initial_location
7214 so that frames of shared libraries are mapped correctly.
7215 (execute_stack_op): Change type of 'result' from ULONGEST to
7220 * config/alpha/tm-nbsd.h: Include solib.h.
7224 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7225 assumptions about the host's byte order.
7229 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7231 * alphanbsd-tdep.c: Include solib-svr4.h.
7232 * shnbsd-tdep.c: Ditto.
7236 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7237 nbsd-tdep.h to dependency list.
7238 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7239 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7240 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7241 nbsdaout.mh and nbsdelf.mh consistently.
7242 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7243 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7244 nbsdaout.mt and nbsdelf.mh consistently.
7245 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7246 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7247 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7248 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7249 a.out shared library stuff from here...
7250 * config/nm-nbsdaout.h: ...to here.
7251 * config/tm-nbsd.h: Remove.
7252 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7253 * config/arm/nbsd.mh: Remove.
7254 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7256 * config/arm/nbsdaout.mh: New file.
7257 * config/arm/nbsdelf.mh: New file.
7258 * config/arm/nm-nbsdaout.h: New file.
7259 * config/i386/nbsd.mh: Remove.
7260 * config/i386/nbsd.mt: Remove.
7261 * config/i386/nbsdaout.mh: New file.
7262 * config/i386/nbsdaout.mt: New file.
7263 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7264 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7265 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7266 i386_register_u_addr): Remove.
7267 * config/i386/nm-nbsdaout.h: New file.
7268 * config/i386/nm-nbsdelf.h: Remove.
7269 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7270 (USE_STRUCT_CONVENTION): Remove.
7271 * config/i386/tm-nbsdaout.h: New file.
7272 * config/i386/tm-nbsdelf.h: Remove.
7273 * config/m68k/nbsd.mh: Remove.
7274 * config/m68k/nbsd.mt: Remove.
7275 * config/m68k/nbsdaout.mh: New file.
7276 * config/m68k/nbsdaout.mt: New file.
7277 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7278 * config/m68k/nm-nbsdaout.h: New file.
7279 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7280 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7281 * config/ns32k/nbsd.mh: Remove.
7282 * config/ns32k/nbsd.mt: Remove.
7283 * config/ns32k/nbsdaout.mh: New file.
7284 * config/ns32k/nbsdaout.mt: New file.
7285 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7286 * config/ns32k/nm-nbsdaout.h: New file.
7287 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7288 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7289 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7290 (SVR4_SHARED_LIBS): Remove.
7291 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7292 * config/sparc/nbsd.mh: Remove.
7293 * config/sparc/nbsd.mt: Remove.
7294 * config/sparc/nbsdaout.mh: New file.
7295 * config/sparc/nbsdaout.mt: New file.
7296 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7297 * config/sparc/nbsdelf.mt: New file.
7298 * config/sparc/nm-nbsdaout.h: New file.
7299 * config/sparc/nm-nbsdelf.h: Remove.
7300 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7301 * config/sparc/tm-nbsdaout.h: New file.
7305 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7307 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7311 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7313 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7317 * NEWS: Note new MIPS NetBSD native configuration.
7318 * configure.host (mips*-*-netbsd*): New host.
7319 * configure.tgt (mips*-*-netbsd*): New target.
7320 * mipsnbsd-nat.c: New file.
7321 * mipsnbsd-tdep.c: New file.
7322 * mipsnbsd-tdep.h: New file.
7323 * config/mips/nbsd.mh: New file.
7324 * config/mips/nbsd.mt: New file.
7325 * config/mips/nm-nbsd.h: New file.
7326 * config/mips/tm-nbsd.h: New file.
7330 * Makefile.in (SFILES): Add osabi.c.
7331 (COMMON_OBS): Add osabi.o.
7332 (osabi.o): New dependency list.
7333 * osabi.c: New file.
7334 * osabi.h: New file.
7335 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7337 * Makefile.in (alpha_tdep_h): Define and use instead of
7339 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7340 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7342 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7343 * alpha-tdep.h: Include osabi.h.
7344 (alpha_abi): Remove.
7345 (gdbarch_tdep): Use generic OS ABI framework.
7346 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7347 gdbarch_register_osabi.
7348 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7349 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7350 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7352 * Makefile.in (sh_tdep_h): Add osabi.h.
7353 * sh-tdep.h (sh_osabi): Remove.
7354 (gdbarch_tdep): Use generic OS ABI framework.
7355 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7356 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7357 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7358 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7360 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7361 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7362 gdbarch_register_osabi.
7363 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7364 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7365 (get_elfosabi): Rename to...
7366 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7367 ABI framework support routines.
7368 (arm_gdbarch_init): Use generic OS ABI framework.
7369 (arm_dump_tdep): Likewise.
7370 (_initialize_arm_tdep): Likewise.
7371 * arm-tdep.h: Include osabi.h.
7373 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7375 (arm_gdbarch_register_os_abi): Remove prototype.
7376 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7377 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7379 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7380 * mips-tdep.c: Include osabi.h.
7381 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7386 * h8300-tdep.c: Fix formatting.
7390 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7391 printing vector registers.
7395 From Fernando Nasser:
7396 * remote.c (remote_async_open_1): Re-throw the exception when the
7398 (remote_cisco_open): Ditto.
7399 (remote_open_1): Ditto.
7403 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7404 (remote_start_remote): Add uiout parameter. Pass through to
7405 remote_start_remote_dummy.
7406 (remote_open_1): Use catch_exception instead of catch_errors.
7407 (remote_async_open_1): Ditto.
7408 (remote_cisco_open): Ditto.
7412 * remote.c (remote_start_remote): Replace PTR with void pointer.
7413 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7418 * gdb_indent.sh: Allow the script to be run in the sim directory.
7422 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7423 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7425 * corelow.c (core_open): Only call set_gdbarch_from_file if
7430 * h8300-tdep.c: Add support of EXR register
7431 * config/h8300/tm-h8300.h: Ditto.
7435 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7439 * h8300-tdep.c: Change literal regnums to REGNO.
7443 * NEWS: Note addition of macro support.
7445 Expand preprocessor macros in C expressions.
7446 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7447 (scan_macro_expansion, scanning_macro_expansion,
7448 finished_macro_expansion): New function declarations.
7449 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7450 variable declarations.
7451 * parser-defs.h (expression_context_pc): New declaration.
7452 * parse.c (expression_context_pc): New variable.
7453 (parse_exp_1): Set expression_context_pc, as well as
7454 expression_context_block.
7455 * c-exp.y (yylex): If we're not already reading the result of a
7456 macro expansion, try to macro-expand the next token. When we're
7457 done scanning a macro expansion, switch back to the mainline text.
7458 Commas and `if's in a macro's expansion don't terminate the input.
7459 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7460 (macro_original_text, macro_expanded_text,
7461 expression_macro_lookup_func, expression_macro_lookup_baton): New
7463 (scan_macro_expansion, scanning_macro_expansion,
7464 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7465 c_preprocess_and_parse): New functions.
7466 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7467 c_preprocess_and_parse, instead of c_parse.
7468 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7469 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7473 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7474 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7475 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7479 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7483 * Makefile.in (sh_tdep_h): Define and use.
7484 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7485 register enum): Move to...
7486 * * sh-tdep.h: ...here.
7487 * sh-tdep.c: Include sh-tdep.h.
7488 * sh3-rom.c: Likewise.
7489 * shnbsd-tdep.c: Likewise.
7493 * arm-tdep.c: Spelling fix in comment.
7497 Add commands for manually expanding macros and showing their
7499 * macrocmd.c, macroscope.c, macroscope.h: New files.
7500 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7501 (macroscope_h): New variable.
7502 (HFILES_NO_SRCDIR): Add macroscope.h.
7503 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7504 (macroscope.o, macrocmd.o): New rules.
7506 Teach the Dwarf 2 reader to read macro information.
7507 * dwarf2read.c: #include "macrotab.h".
7508 (dwarf_macinfo_buffer): New variable.
7509 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7511 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7512 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7513 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7514 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7515 dwarf2_macro_spaces_in_definition): New complaints.
7516 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7517 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7518 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7519 the partial symbol table.
7520 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7521 from what's recorded in the partial symbol table.
7522 (read_file_scope): If the compilation unit has a
7523 `DW_AT_macro_info' attribute, read its macro information.
7524 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7529 * ser-tcp.c: Don't include <netinet/udp.h>.
7533 * MAINTAINERS: Update my email address.
7537 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7538 include file of the same name.
7542 * configure.tgt: Mark v850 as multi-arched.
7543 * config/v850/tm-v850.h: Remove file.
7544 * config/v850/v850.mt: Eliminate TM_FILE.
7548 * v850-tdep.c: Full multi-arch.
7549 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7550 Define GDB_MULTI_ARCH to 2.
7554 * p-exp.y (current_type): New static variable.
7555 Carries the type of the expression at the position that is parsed.
7556 (push_current_type, pop_current_type): Two new functions. Used
7557 to store/restore current_type in expression on specific tokens.
7558 (search_field): New static variable. Set to one after parsing a point
7559 as at that point only a FIELDNAME token should be searched.
7560 (FIELDNAME): New token. After a point only a token belonging to
7561 current_type type definition is allowed.
7562 (all over token rules): reset and change current_type according
7564 (exp '[' rule): insert implicit array index field if
7565 exp is a pascal string type.
7569 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7570 frame info. Use frame_info's saved_regs instead of matching member
7571 in extra_frame_info throughout.
7572 (v850_frame_init_saved_regs): New function.
7573 (v850_init_extra_frame_info): Move most functionality into
7574 v850_frame_init_saved_regs().
7575 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7576 (v850_frame_find_saved_regs): Remove declaration.
7577 (FRAME_FIND_SAVED_REGS): Remove definition.
7578 (v850_frame_init_saved_regs): Add declaration.
7579 (FRAME_INIT_SAVED_REGS): Add definition.
7583 * v850-tdep.c: Begin multi-arch'ing v850.
7584 (v850_target_architecture_hook): Remove function.
7585 (v850_gdbarch_init): New function. Add code previously in
7586 v850_target_architecture_hook().
7587 (_initialize_v850_tdep): Don't set target_architecture_hook.
7588 Call register_gdbarch_init() instead.
7592 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7593 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7594 (fixup_class_method_type): Likewise.
7598 Add macro structures to GDB's symbol tables. Nobody puts anything
7600 * symtab.h (struct symtab): New member: `macro_table'.
7601 * buildsym.h (pending_macros): New global variable.
7602 * buildsym.c: #include "macrotab.h".
7603 (buildsym_init): Initialize `pending_macros'.
7604 (end_symtab): If we found macro information while reading a CU's
7605 debugging info, do build a symtab structure for it. Make the
7606 symtab point to the macro information, and clear the
7607 `pending_macros' pointer which held it while we were reading the
7609 (really_free_pendings): Free any pending macro table.
7610 * objfiles.h (struct objfile): New member: `macro_cache'.
7611 * objfiles.c (allocate_objfile): Set allocate and free functions
7612 for the macro cache's objstack.
7613 (free_objfile): Empty the macro cache's obstack.
7614 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7615 set new allocate and free functions for it.
7616 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7617 free functions for the macro cache's objstack. (Why is this
7618 function building its own objfile?)
7619 * symmisc.c (print_objfile_statistics): Print statistics on the
7621 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7625 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7626 (REGISTER_U_ADDR): Delete definition.
7627 (arm_register_u_addr): Delete declaration.
7631 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7632 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7636 * regcache.c (register_valid): Revise comments refering to "Not
7637 available" and "unavailable".
7638 * frame.c (frame_register_read): Ditto.
7639 * findvar.c (value_of_register): Ditto.
7643 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7644 (remote-sim.o): Update dependencies.
7645 (d10v-tdep.o): Specify dependencies.
7646 (sim_d10v_h): Define.
7650 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7651 * macrotab.c (macro_lookup_inclusion, find_definition,
7652 new_macro_table): Same.
7654 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7655 not `! strcmp ()'. This is a dubious improvement.
7656 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7658 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7659 although it's not necessary, to avoid a warning.
7663 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7664 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7665 TYPE_INSTANCE_FLAGS.
7666 (struct main_type): New.
7667 (struct type): Move most members to struct main_type. Change
7668 cv_type and as_type to new type_chain member. Add instance_flags.
7669 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7670 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7671 (finish_cv_type): Remove prototype.
7672 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7674 (alloc_type_instance): New function.
7675 (smash_type): New function.
7676 (make_pointer_type, make_reference_type, make_function_type)
7677 (smash_to_member_type, smash_to_method_type): Call smash_type.
7678 (make_qualified_type): New function.
7679 (make_type_with_address_space): Call make_qualified_type.
7680 (make_cv_type): Likewise.
7681 (finish_cv_type): Remove unnecessary function.
7682 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7683 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7684 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7685 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7686 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7687 * hpread.c (hpread_read_struct_type): Likewise.
7688 * stabsread.c (read_struct_type): Likewise.
7692 * configure.tgt: Add a catch all sh* target, for cases like
7693 sh[2,3,4]-elf and sh-hms.
7697 * event-loop.c (create_file_handler): Don't do anything but
7698 update data when we are given a fd which we are already
7703 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7704 (update_context): Use __func__ in warnings.
7708 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7709 and tcp_close to net_open and net_close.
7710 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7711 using UDP if requested. Don't try to disable Nagle on UDP
7713 * remote.c (remote_serial_open): New function. Warn about UDP.
7714 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7718 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7722 * configure.tgt: Remove sh-hms target.
7723 * MAINTAINERS: Don't list sh-hms as a separate target.
7727 Add first preprocessor macro-expansion files.
7728 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7729 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7730 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7731 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7732 (COMMON_OBS): Add macrotab.o, macroexp.o.
7733 (macroexp.o, macrotab.o): New rules.
7737 * config/m88k/tm-m88k.h: Update copyright.
7738 (m88k_target_write_pc): Declare
7739 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7740 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7741 (SHIFT_INST_REGS): Update definition.
7742 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7743 using old definition of TARGET_WRITE_PC.
7744 * regcache.c (generic_target_write_pc): Delete code handling
7746 * gdbarch.sh (NNPC_REGNUM): Delete.
7747 * gdbarch.h, gdbarch.c: Regenerate.
7751 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7756 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7757 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7758 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7760 * c-typeprint.c (cp_type_print_method_args): Likewise.
7761 (c_type_print_args): Likewise.
7762 * d10v-tdep.c (d10v_push_arguments): Likewise.
7763 (d10v_extract_return_value): Likewise.
7764 * expprint.c (print_subexp): Likewise.
7765 * gdbtypes.c (lookup_primitive_typename): Likewise.
7766 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7767 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7768 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7769 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7770 (TYPE_VECTOR): Likewise.
7771 * hpread.c (hpread_read_struct_type)
7772 (fix_static_member_physnames, fixup_class_method_type)
7773 (hpread_type_lookup): Likewise.
7774 * mdebugread.c (parse_symbol, parse_type): Likewise.
7775 * p-lang.c (is_pascal_string_type): Likewise.
7776 * valops.c (hand_function_call): Likewise.
7777 * x86-64-tdep.c (classify_argument): Likewise.
7779 * hpread.c (hpread_read_function_type)
7780 (hpread_read_doc_function_type): Call replace_type.
7781 * dstread.c (create_new_type): Delete.
7782 (decode_dst_structure, process_dst_function): Call alloc_type.
7783 Use type access macros.
7787 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7788 the're not supported by the current architecture.
7789 (i387_fill_fxsave): Likewise.
7793 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7794 sect_index_xxx members to index the first slot in section_offsets
7795 if all of the section_offsets are zero.
7799 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7800 checked in with last change.
7804 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7805 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7810 * Makefile.in: Update dependencies.
7814 * language.c (local_hex_string_custom): Simplify. Do not depend
7815 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7817 * memattr.c (mem_info_command): Replace calls to
7818 longest_local_hex_string and longest_local_hex_string_custom.
7819 * buildsym.c (make_blockvector): Ditto.
7820 * solib.c (info_sharedlibrary_command): Ditto.
7821 * tracepoint.c (tracepoints_info): Ditto.
7822 * symtab.c (print_msymbol_info): Ditto.
7824 * language.c (local_hex_string): Delete.
7825 (local_hex_string_custom): Delete.
7826 (longest_local_hex_string): Rename to local_hex_string.
7827 (longest_local_hex_string_custom): Rename to
7828 local_hex_string_custom.
7829 * language.h (local_hex_string): Change parameter type to LONGEST.
7830 (local_hex_string_custom): Ditto.
7831 (longest_local_hex_string): Delete declaration.
7832 (longest_local_hex_string_custom): Ditto.
7834 * solib.c: Update copyright.
7835 * memattr.c: Update copyright.
7839 * arch-utils.h (legacy_register_to_value): Declare.
7840 (legacy_value_to_register): Declare.
7841 (legacy_convert_register_p): Declare.
7842 * arch-utils.c (legacy_register_to_value): New function.
7843 (legacy_value_to_register): New function.
7844 (legacy_convert_register_p): New function.
7846 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7847 (VALUE_TO_REGISTER): Define.
7848 (CONVERT_REGISTER_P): Define.
7849 * gdbarch.h, gdbarch.c: Regenerate.
7851 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7853 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7859 * Makefile.in: Update dependencies for valops.c.
7860 * valops.c: Include "gdb_assert.h".
7861 (typecmp): Skip THIS parameter to methods.
7862 (find_method_list): Remove static_memfuncp argument,
7863 update callers. Check for stub methods.
7864 (find_value_oload_method_list): Don't set *static_memfuncp.
7865 (find_overload_match): Don't check for stub methods. Assert
7866 that methods are not stubbed. Handle static methods.
7867 (value_find_oload_method_list): Remove static_memfuncp argument.
7868 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7869 to the argument list for static stub methods.
7870 * value.h (value_find_oload_method_list): Update prototype.
7874 * arch-utils.h (generic_register_size): Declare.
7875 (generic_register_raw_size, generic_register_virtual_size): Delete
7877 * arch-utils.c (generic_register_raw_size): Delete.
7878 (generic_register_size): New function.
7879 (generic_register_virtual_size): Delete.
7881 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7882 default generic_register_size.
7883 * gdbarch.h, gdbarch.c: Re-generate.
7885 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7886 register_virtual_size.
7887 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7888 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7892 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7893 * gdbarch.h, gdbarch.c: Regenerate.
7894 * gnu-v3-abi.c: Update copyright.
7895 (vtable_address_point_offset): Update.
7896 (gnuv3_rtti_type): Update.
7897 (gnuv3_baseclass_offset): Update.
7898 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7899 (init_fetch_link_map_offsets): Update.
7900 * remote.c (get_remote_state): Update.
7904 * TODO: Remove value_headof/value_from_vtable_info comment.
7905 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7906 * values.c (value_headof, value_from_vtable_info): Delete.
7907 * value.h (value_from_vtable_info): Delete prototype.
7911 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7912 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7914 (gdb_assert_h): Define.
7915 (gdb_wait_h): Define.
7916 (gdb_regex_h): Define.
7921 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7925 * nbsd-tdep.c: Fix comment.
7929 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7930 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7931 (nbsd-tdep.o): New dependency list.
7932 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7934 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7935 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7936 * nbsd-tdep.c: New file.
7937 * nbsd-tdep.h: New file.
7938 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7940 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7941 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7942 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7943 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7947 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7948 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7949 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7950 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7951 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7952 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7956 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7957 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7958 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7959 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7960 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7961 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7962 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7966 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7967 fetch_elfcore_registers to...
7968 * i386nbsd-tdep.c: ...here.
7969 (i386nbsd_use_struct_convention): Rename to...
7970 (i386nbsd_aout_use_struct_convention): ...this.
7971 (i386nbsd_supply_reg): New function.
7972 (i386nbsd_fill_reg): New function.
7973 (fetch_core_registers): Use i386nbsd_supply_reg.
7974 (fetch_elfcore_registers): Likewise.
7975 (_initialize_i386nbsd_tdep): New function.
7976 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7977 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7978 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7979 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7980 (i386nbsd_aout_use_struct_convention): ...this.
7984 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7985 (store_inferior_registers): Use shnbsd_fill_reg.
7986 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7987 sh_nbsd_supply_register): Collapse into...
7988 (shnbsd_supply_reg): ...this.
7989 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7990 (shnbsd_fill_reg): ...this.
7991 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7992 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7993 (fetch_core_registers): Use shnbsd_supply_reg.
7994 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7995 (sh_nbsd_core_fns): Rename to...
7996 (shnbsd_core_fns): ...this.
7997 (sh_nbsd_elfcore_fns): Rename to...
7998 (shnbsd_elfcore_fns): ...this.
7999 (sh_nbsd_init_abi): Rename to...
8000 (shnbsd_init_abi): ...this.
8001 (_initialize_sh_nbsd_tdep): Rename to...
8002 (_initialize_shnbsd_tdep): ...this.
8003 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8004 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8005 sh_nbsd_fill_register): Remove prototypes.
8006 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8010 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8011 (i387-nat.o): Delete dependency list.
8012 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8013 (x86-64-linux-nat.o): Likewise.
8014 * i387-nat.c: Delete file, moving contents to...
8015 * i387-tdep.c: ...here.
8016 * i387-nat.h: Rename...
8017 * i387-tdep.h: ...to this.
8018 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8019 * i386-linux-nat.c: Likewise.
8020 * i386bsd-nat.c: Likewise.
8021 * i386gnu-nat.c: Likewise.
8022 * i386nbsd-nat.c: Likewise.
8023 * i386v4-nat.c: Likewise.
8024 * x86-64-linux-nat.c: Likewise.
8025 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8026 * config/i386/go32.mh (NATDEPFILES): Likewise.
8027 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8028 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8029 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8030 * config/i386/linux.mh (NATDEPFILES): Likewise.
8031 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8032 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8033 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8034 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8038 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8039 (alphanbsd-nat.o): Remove dependency list.
8040 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8041 * alphanbsd-nat.c: Delete. Contents moved to...
8042 * alphanbsd-tdep.c: ...here.
8043 (_initialize_alphanbsd_tdep): Register core functions.
8044 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8048 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8049 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8050 (alphanbsd-nat.o): Likewise.
8051 (alphabsd-tdep.o): New dependency list.
8052 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8053 (fill_gregset): Use alphabsd_fill_reg.
8054 (supply_fpregset): Use alphabsd_supply_fpreg.
8055 (fill_fpregset): Use alphabsd_fill_fpreg.
8056 (fetch_inferior_registers): Use struct reg and struct fpreg
8057 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8058 and alphabsd_supply_fpreg.
8059 (store_inferior_registers): Use struct reg and struct fpreg
8060 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8061 and alphabsd_fill_fpreg.
8062 * alphabsd-tdep.c: New file.
8063 * alphabsd-tdep.h: New file.
8064 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8065 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8066 alphabsd_supply_fpreg.
8067 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8068 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8072 * mips-tdep.c (mips_double_register_type): Fix thinko.
8073 (mips_single_register_type): Ditto.
8074 * MAINTAINERS: Add self.
8078 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8079 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8080 right thing on architectures with different endianness and/or
8086 * configure.in: Change sed expression which comments out
8087 NATDEPFILES to also comment out continuation lines.
8088 * configure: Regenerate.
8092 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8097 * sh-tdep.c: Include correct file.
8101 New support for sh64-elf (sh5) target.
8103 * configure.tgt: For sh64-elf target, default to sh-elf.
8105 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8106 (struct gdbarch_tdep): Add new fields for new registers and ABI
8109 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8110 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8111 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8112 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8113 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8114 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8115 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8116 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8117 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8118 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8119 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8120 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8121 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8122 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8123 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8124 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8125 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8126 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8127 sign_extend, sh64_nofp_frame_init_saved_regs,
8128 sh64_init_extra_frame_info, sh64_get_saved_register,
8129 sh64_extract_struct_value_address, sh64_pop_frame,
8130 sh64_push_arguments, sh64_extract_return_value,
8131 sh64_store_return_value, sh64_show_media_regs,
8132 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8133 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8134 sh_sh64_register_virtual_type,
8135 sh_sh64_register_convert_to_virtual,
8136 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8137 sh64_register_read, sh64_pseudo_register_write,
8138 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8139 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8140 sh64_do_pseudo_register, sh_compact_do_registers_info,
8141 sh64_do_registers_info, sh_gdbarch_init): New functions.
8145 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8149 * linespec.c (decode_line_1): Check for a double quote after
8150 a filename correctly.
8154 Properly track the size of the current objfile's .debug_line section.
8155 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8156 (DWARF_LINE_SIZE): New macro.
8157 (dwarf2_build_psymtabs_hard): Record the line section's size in
8158 the partial symbol table.
8159 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8164 * ia64-tdep.c: Handle breakpoints on L instruction type
8165 in MLX instruction bundle by moving the breakpoint to
8166 the third slot (X instruction type) as L holds only data.
8170 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8171 (process_one_symbol): Complain about discarding local symbols
8172 due to a misplaced N_LBRAC entry.
8177 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8178 decrease the depth we are at, in the case of templates.
8182 * mips-tdep.c (mips_float_register_type): New function.
8183 (mips_double_register_type): New function.
8184 (mips_print_register): Use them.
8185 (do_fp_register_row): Likewise.
8189 * signals/signals.c (signals): Remove conditional compilation around
8190 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8191 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8195 * remote-rdp.c (remote_rdp_can_run): Remove.
8199 * jv-valprint.c (java_val_print): Handle `char' as a special case
8204 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8205 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8206 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8207 str r(0123),[sp,#nn].
8208 (arm_skip_prologue): Ditto. Also make disassembly
8209 order-independent by placing it in a loop.
8213 * stabsread.c (read_type): Add recognition for new attribute:
8214 "@V;" means that an array type is actually a vector.
8215 This is analogous to the vector flag that's been added to dwarf2.
8219 * i386-tdep.h (i386_abi): New enum.
8220 (struct gdbarch_tdep): Replace os_ident member with abi.
8221 (i386_gdbarch_register_os_abi): New prototype.
8222 * i386-tdep.c (i386_abi_names): New array.
8223 (process_note_abi_tag_sections): Removed.
8224 (process_note_sections): New function.
8225 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8226 (struct i386_abi_handler): New struct.
8227 (i386_abi_handler_list): New variable.
8228 (i386_gdbarch_register_os_abi): New function.
8229 (i386_gdbarch_init): Adapt for the changes given above.
8233 * gregset.h: Say "GNU/Linux".
8237 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8238 (build_gdbtypes): Build builtin_type_v2_float.
8239 (_initialize_gdbtypes): Register new builtin type.
8243 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8244 (clear_gdbarch_swap): New function.
8245 (initialize_non_multiarch): Call.
8246 (gdbarch_update_p): Before calling init(), swap out and clear the
8247 existing architecture.
8248 * gdbarch.c: Regenerate.
8252 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8257 * sh-nbsd-nat.c: Rename to...
8258 * shnbsd-nat.c: ...this.
8259 * sh-nbsd-tdep.c: Rename to...
8260 * shnbsd-tdep.c: ...this.
8261 * sh-nbsd-tdep.h: Rename to...
8262 * shnbsd-tdep.h: ...this.
8263 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8264 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8268 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8269 concatenation for command help messages.
8273 * NEWS: Note new sh*-*-netbsdelf* configuration.
8274 * configure.host: Set gdb_host_cpu to sh for all sh*.
8275 (sh*-*-netbsdelf*): New host.
8276 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8277 (sh*-*-netbsdelf*): New target.
8278 * sh-nbsd-nat.c: New file.
8279 * sh-nbsd-tdep.c: New file.
8280 * sh-nbsd-tdep.h: New file.
8281 * config/sh/nbsd.mh: New file.
8282 * config/sh/nbsd.mt: New file.
8283 * config/sh/nm-nbsd.h: New file.
8284 * config/sh/tm-nbsd.h: New file.
8288 * sh-tdep.c (sh_osabi_names): Declare.
8289 (process_note_abi_tag_sections): New function.
8290 (get_elfosabi): Ditto.
8291 (sh_gdbarch_register_os_abi): Ditto.
8292 (sh_dump_tdep): Ditto.
8293 _initialize_sh_tdep): Use gdbarch_register to register
8294 sh_gdbarch_init and sh_dump_tdep.
8295 * config/sh/tm-sh.h (sh_osabi): Declare.
8296 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8300 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8301 (thumb_scan_prologue): Ditto.
8302 (arm_find_callers_reg): Ditto.
8303 (arm_frame_chain): Ditto.
8304 (arm_init_extra_frame_info): Ditto.
8305 (arm_frame_saved_pc): Ditto.
8306 (arm_pop_frame): Ditto.
8307 (arm_push_return_address): New function.
8308 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8309 call_dummy_location, call_dummy_breakpoint_offset_p,
8310 call_dummy_breakpoint_offset, call_dummy_p,
8311 call_dummy_stack_adjust_p, call_dummy_words,
8312 sizeof_call_dummy_words, call_dummy_start_offset,
8313 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8314 call_dummy_address, push_return_address and push_dummy_frame for
8315 generic dummy frames.
8319 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8320 size computation for alloca.
8321 (sh_fp_frame_init_saved_regs): Likewise.
8325 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8326 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8327 * arm-tdep.c (arm_store_return_value): Use them.
8328 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8329 * remote-rdp.c (remote_rdp_fetch_register): Use
8330 ARM_MAX_REGISTER_RAW_SIZE.
8331 (remote_rdp_store_register): Likewise.
8335 * dwarf2cfi.c: Code cleanup, removed unused variables,
8336 added default labels to switch {} statements.
8337 * x86-64-tdep.c: Ditto.
8338 * x86-64-linux-nat.c: Ditto.
8342 * solib.h: Protect against multiple inclusion.
8346 Add first preprocessor macro-expansion files.
8347 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8348 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8349 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8350 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8351 (COMMON_OBS): Add macrotab.o, macroexp.o.
8352 (macroexp.o, macrotab.o): New rules.
8354 Separate the job of reading the line number info statement program
8355 header (...expialidocious) out into its own function.
8356 * dwarf2read.c (struct line_head, struct filenames, struct
8357 directories): Replace with...
8358 (struct line_header): New structure, containing the full
8359 contents of the statement program header, including the
8360 include directory and file name tables.
8361 (read_file_scope): If we have line number info, instead of just
8362 calling dwarf_decode_lines to do all the work, call
8363 dwarf_decode_line_header first to get a `struct line_header'
8364 containing the data in the statement program header, and then
8365 pass that to dwarf_decode_lines, which will pick up where that
8366 left off. Be sure to clean up the `struct line_header' object.
8367 (dwarf_decode_line_header, free_line_header, add_include_dir,
8368 add_file_name): New functions.
8369 (dwarf_decode_lines): Move all the code to read the statement
8370 program header into dwarf_decode_line_header. Take the line
8371 header it built as the first argument, instead of the offset to
8372 the compilation unit's line number info. Use the new `struct
8373 line_header' type instead of the old structures. No need to do
8374 cleanups here now, since we don't allocate anything.
8375 (dwarf2_statement_list_fits_in_line_number_section,
8376 dwarf2_line_header_too_long): New complaints.
8380 * gdbtypes.c (init_vector_type): New function.
8381 (build_builtin_type_vec128): Simplify the representation of SIMD
8383 (build_gdbtypes): Initialize new builtin vector types.
8384 (_initialize_gdbtypes): Register new vector types with gdbarch.
8385 (builtin_type_v4_float, builtin_type_v4_int32,
8386 builtin_type_v8_int16, builtin_type_v16_int8,
8387 builtin_type_v2_int32, builtin_type_v4_int16,
8388 builtin_type_v8_int8): New (renamed) SIMD types.
8392 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8393 (i387_fill_fxsave): Likewise.
8397 * alpha-tdep.c (alpha_extract_return_value): Don't use
8398 non-constant array size in prototype.
8402 From Brian Taylor <briant at model dot com>:
8403 * ui-out.c (ui_out_field_core_addr): Use the function
8404 longest_local_hex_string_custom'to format addresses > 32 bits
8407 * ui-out.c (ui_out_field_core_addr): Update comment.
8411 * stack.c (select_and_print_frame): Make static. Delete the
8413 (func_command): Update call.
8414 (select_frame_command): Delete code computing the frame level.
8415 * frame.h (select_and_print_frame): Delete declaration.
8419 * sparc-tdep.c (sparc_get_saved_register): Comment why
8420 get_prev_frame call is safe.
8424 * frame.h (select_frame): Delete level parameter.
8425 * stack.c (select_frame): Update. Use frame_relative_level to
8426 obtain the frame's level.
8427 (select_and_print_frame): Update call.
8428 (select_frame_command): Ditto.
8429 (up_silently_base): Ditto.
8430 (down_silently_base): Ditto.
8431 * ocd.c (ocd_start_remote): Ditto.
8432 * remote-rdp.c (remote_rdp_open): Ditto.
8433 * remote-mips.c (mips_initialize): Ditto.
8434 (common_open): Ditto.
8435 * remote-e7000.c (e7000_start_remote): Ditto.
8436 * m3-nat.c (select_thread): Ditto.
8437 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8438 (child_get_current_exception_event): Ditto.
8439 * varobj.c (varobj_create): Ditto.
8440 (varobj_update): Ditto.
8441 (c_value_of_root): Ditto.
8442 * tracepoint.c (finish_tfind_command): Ditto.
8443 * corelow.c (core_open): Ditto.
8444 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8445 * thread.c (info_threads_command): Ditto.
8446 (switch_to_thread): Ditto.
8447 * infrun.c (normal_stop): Ditto.
8448 (restore_selected_frame): Ditto.
8449 (restore_inferior_status): Ditto.
8450 * breakpoint.c (insert_breakpoints): Ditto.
8451 (watchpoint_check): Ditto.
8452 (bpstat_stop_status): Ditto.
8453 (do_enable_breakpoint): Ditto.
8454 * blockframe.c (flush_cached_frames): Ditto.
8455 (reinit_frame_cache): Ditto.
8459 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8464 * gdbtypes.c (replace_type): Doc fix.
8468 * valprint.c (strcat_longest): Delete commented out function.
8473 * MAINTAINERS: Mark a29k as deleted.
8474 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8475 Move new configurations to the top.
8476 * configure.tgt: Remove a29k.
8477 * config/a29k/tm-vx29k.h: Delete.
8478 * config/a29k/vx29k.mt: Delete.
8479 * config/a29k/tm-a29k.h: Delete.
8480 * config/a29k/a29k-udi.mt: Delete.
8481 * config/a29k/a29k.mt: Delete.
8482 * a29k-tdep.c: Delete.
8483 * remote-udi.c: Delete.
8484 * remote-mm.c: Delete.
8485 * remote-eb.c: Delete.
8486 * remote-adapt.c: Delete.
8487 * Makefile.in: Remove obsolete code.
8488 * config/s390/s390x.mt: Ditto.
8489 * config/s390/s390.mt: Ditto.
8490 * config/sparc/sparclynx.mh: Ditto.
8491 * config/sparc/linux.mh: Ditto.
8492 * config/pa/hppaosf.mh: Ditto.
8493 * config/pa/hppabsd.mh: Ditto.
8494 * config/ns32k/nbsd.mt: Ditto.
8495 * config/mips/vr5000.mt: Ditto.
8496 * config/m68k/sun3os4.mh: Ditto.
8497 * config/m68k/nbsd.mt: Ditto.
8498 * config/m68k/m68klynx.mh: Ditto.
8499 * config/m32r/m32r.mt: Ditto.
8500 * config/i386/x86-64linux.mt: Ditto.
8501 * config/i386/nbsdelf.mt: Ditto.
8502 * config/i386/nbsd.mt: Ditto.
8503 * config/i386/i386lynx.mh: Ditto.
8507 * target.c (debug_print_register): New function. Handle oversize
8509 (debug_to_fetch_registers): Call.
8510 (debug_to_store_registers): Call.
8514 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8515 (read_type): Doc fix.
8516 * gdbtypes.c (replace_type): Doc fix.
8518 * stabsread.c (multiply_defined_struct): New complaint.
8519 (read_struct_type): If the type we were passed isn't empty, or
8520 incomplete, don't read the new struct type into it; complain,
8521 and return the original type unchanged. Take a new `type_code'
8522 argument, which is the type code for the new type.
8523 (read_type): Rather than storing the type's type code here, pass
8524 it as an argument to read_struct_type, and let that take care of
8525 storing it. That way, we don't overwrite the original type code,
8526 so read_struct_type can use it to decide whether we're overwriting
8527 something we shouldn't.
8528 (complain_about_struct_wipeout): New function.
8532 * gdbarch.sh: Assert that gdbarch is non-NULL.
8533 * gdbarch.c: Regenerate.
8537 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8542 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8543 (x86_64_dwarf2gdb_regno_map_length),
8544 (x86_64_dwarf2_reg_to_regnum): Added.
8545 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8546 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8547 (_initialize_x86_64_tdep): Synced with the change above.
8548 (x86_64_skip_prologue): Reformulated message.
8552 * f-exp.y: Also use new prev_lexptr variable
8553 to improve error reporting. Based on Michael Snyder
8554 2002-04-24 dated patch to c-exp.y.
8555 * jv-exp.y: Likewise.
8556 * m2-exp.y: Likewise.
8560 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8561 we are dealing with vectors.
8565 * config/m68k/tm-nbsd.h: Obvious fix,
8566 correct machine name.
8570 * p-typeprint.c (pascal_type_print_base): Add support
8571 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8575 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8576 for fondamental pascal 'char' type.
8580 * p-lang.h (is_pascal_string_type): Declaration changed,
8581 new sixth argument of type char ** added.
8582 * p-lang.c (is_pascal_string_type): Implementation
8583 changed. Args length_pos, length_size, string_pos, char_size
8584 can now be NULL. New argument arrayname set to the field
8585 name of the char array. Return value set to char array
8586 field index plus one.
8587 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8588 is_pascal_string_type function.
8592 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8594 * gdbarch.c: Regenerate.
8598 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8599 before probing for a new one. Detect errorenous gdbarch_init
8601 * gdbarch.c: Regenerate.
8605 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8606 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8607 * config/v850/tm-v850.h: Ditto. Update copyright.
8611 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8616 * arm-tdep.c: Whitespace clean-ups.
8617 (arm_skip_prologue): Fix thinko; two lines
8618 should have been removed as part of 4/24 change.
8622 * rs6000-tdep.c: Added comment describing how fpscr register
8623 numbers were chosen.
8627 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8631 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8632 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8633 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8638 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8639 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8640 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8641 not bfd-private xcoff data, to determine wordsize.
8642 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8646 GDB 5.2 released from 5.2 branch.
8650 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8651 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8652 (x86_64_register_info_table): Added comments with register numbers.
8656 * rs6000-tdep.c (rs6000_extract_return_value,
8657 rs6000_store_return_value): Handle returning vectors.
8658 (rs6000_gdbarch_init): Use
8659 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8660 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8662 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8664 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8665 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8667 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8669 * hpread.c (hpread_psymtab_to_symtab_1,
8670 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8671 with fprintf_unfiltered (gdb_stderr,...).
8673 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8675 * remote-array.c (printf_monitor, write_monitor,
8676 array_insert_breakpoint, array_remove_breakpoint ):
8677 Replace fprintf (stderr,...
8678 with fprintf_unfiltered (gdb_stderr,....
8679 * remote-es.c: Likewise.
8680 * remote-os9k.c: Likewise.
8681 * remote-st.c: Likewise.
8685 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8686 linux-proc.o and gcore.o.
8690 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8691 code without frame pointers.
8695 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8700 * target.c (do_xfer_memory): Correct reference to the new option
8701 "trust-readonly-sections".
8705 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8706 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8707 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8709 (read_array_type): Record the fact that this array type is really a
8710 vector (i.e. are passed in by value).
8714 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8715 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8716 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8717 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8718 * alpha-linux-tdep.c: Include frame.h.
8719 (alpha_linux_sigcontext_addr): New function.
8720 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8721 alpha_linux_sigcontext_addr.
8722 * alpha-osf1-tdep.c: Include gdbcore.h.
8723 (alpha_osf1_sigcontext_addr): New function.
8724 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8725 alpha_osf1_sigcontext_addr.
8726 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8727 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8731 * stack.c (selected_frame_level):
8732 (select_frame): Do not set selected_frame_level.
8733 * frame.h (selected_frame_level): Delete declaration.
8737 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8738 convert_from_func_ptr-addr when AIX / PowerOpen.
8742 * valops.c (hand_function_call): Call
8743 generic_save_call_dummy_addr.
8744 * frame.h (generic_save_call_dummy_addr): Declare.
8745 * blockframe.c (struct dummy_frame): Add fields call_lo and
8747 (generic_find_dummy_frame): Check for PC in range call_lo to
8748 call_hi instead of entry_point_address.
8749 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8750 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8751 (generic_save_call_dummy_addr): New function.
8755 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8756 sparc_skip_prologue.
8757 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8758 information to find prologue when possible.
8759 (sparc_prologue_frameless_p): Call examine_prologue directly.
8760 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8761 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8763 (SKIP_PROLOGUE): Likewise.
8767 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8768 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8769 indicate that the condition it was testing is always true.
8770 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8771 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8772 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8776 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8777 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8778 tdep->jb_pc and tdep->jb_elt_size.
8779 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8780 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8781 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8782 * alpha-nat.c (get_longjmp_target): Remove.
8783 (JB_ELEMENT_SIZE): Ditto.
8785 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8786 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8787 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8788 to alpha_get_longjmp_target.
8789 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8790 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8791 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8795 * README: Update to GDB 5.2.
8799 * gdbarch.sh (LC_ALL): Set to `c'.
8803 * avr-tdep.c: Ran through gdb_indent.sh.
8807 * MAINTAINERS: Add myself as AVR maintainer.
8808 * NEWS: Note new target avr.
8812 * Makefile.in: Add support for AVR target.
8813 * configure.tgt: Add support for AVR target.
8814 * avr-tdep.c: New file
8815 * config/avr/avr.mt: New file.
8819 * MAINTAINERS: Add myself to write-after-approval.
8821 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8823 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8824 with fprintf_unfiltered (gdb_stderr,....
8829 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8833 * p-exp.y: Also use new prev_lexptr variable
8834 to improve error reporting. Based on Michael Snyder
8835 2002-04-24 dated patch to c-exp.y.
8839 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8840 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8841 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8843 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8845 (FUNCTION_START_OFFSET): Remove.
8846 (BREAKPOINT): Ditto.
8850 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8855 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8856 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8857 alpha_linux_pc_in_sigtramp.
8858 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8859 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8860 alpha_osf1_pc_in_sigtramp.
8861 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8862 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8863 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8864 alphafbsd_pc_in_sigtramp.
8865 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8866 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8867 alphanbsd_pc_in_sigtramp.
8868 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8869 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8873 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8877 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8879 (alphanbsd-nat.o): New dependency list.
8880 (alphanbsd-tdep.o): Ditto.
8881 * NEWS: Note new native NetBSD/alpha configuration.
8882 * alphanbsd-nat.c: New file.
8883 * alphanbsd-tdep.c: Ditto.
8884 * configure.host (alpha*-*-netbsd*): New host.
8885 * configure.tgt (alpha*-*-netbsd*): New target.
8886 * config/alpha/nbsd.mh: New file.
8887 * config/alpha/nbsd.mt: Ditto.
8888 * config/alpha/nm-nbsd.h: Ditto.
8889 * config/alpha/tm-nbsd.h: Ditto.
8893 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8894 (alpha-osf1-tdep.o): New dependency list.
8895 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8896 and skip_sigtramp_frame members.
8897 * alpha-linux-tdep.c: Include gdbcore.h.
8898 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8899 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8900 * alpha-osf1-tdep.c: New file.
8901 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8903 (alpha_frame_past_sigtramp_frame): New function.
8904 (alpha_dynamic_sigtramp_offset): Ditto.
8905 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8906 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8907 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8908 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8909 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8910 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8911 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8912 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8913 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8914 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8915 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8916 to find_solib_trampoline_target.
8917 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8918 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8919 (SKIP_TRAMPOLINE_CODE): Remove.
8920 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8921 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8922 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8923 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8924 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8925 (PROC_SIGTRAMP_MAGIC): Ditto.
8926 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8927 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8928 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8929 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8930 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8934 * NEWS: Note that Alpha targets are now multi-arch.
8938 * parser-defs.h (prev_lexptr): New external variable.
8939 * parse.c (parse_exp_1): Set prev_lexptr to null before
8940 calling the language-specific parser.
8941 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8942 (yyerror): Use prev_lexptr in error reporting.
8946 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8947 * gregset.h: If FILL_FPXREGSET is defined, provide
8948 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8949 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8950 is defined, call fill_fpxregset.
8954 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8955 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8956 (supply_gregset, supply_fpregset): New functions.
8958 * gnu-nat.c (gnu_find_memory_regions): New function.
8959 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8960 (gnu_xfer_memory): Add a cast.
8964 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8965 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8966 of argument regs ("str r(0123), [r11, #-nn"]).
8967 (arm_skip_prologue): Better handling for frameless functions.
8968 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8969 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8973 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8974 NUM_PSEUDO_REGS can be used.
8978 * arch-utils.h: Update copyright.
8980 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8981 * gdbarch.h, gdbarch.c: Re-generate.
8983 * inferior.h (IN_SIGTRAMP): Delete definition.
8984 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8985 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8987 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8988 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8989 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8990 (find_proc_framesize): Ditto.
8991 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8992 (alpha_init_extra_frame_info): Ditto.
8993 * infrun.c (handle_inferior_event): Ditto.
8994 (handle_inferior_event): Ditto.
8995 (check_sigtramp2): Ditto.
8996 * blockframe.c (create_new_frame): Ditto.
8997 (get_prev_frame): Ditto.
8998 * ppc-linux-tdep.c: Update comments.
8999 * i386-linux-tdep.c: Update comments.
9000 * breakpoint.c (bpstat_what): Update comment.
9004 * i960-tdep.c (register_in_window_p): New function.
9005 (i960_find_saved_register): Use it instead of
9006 REGISTER_IN_WINDOW_P.
9007 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9009 * symtab.h (find_stab_function_addr): Kill extern.
9010 * minsyms.c (find_stab_function_addr): Remove from here...
9011 * dbxread.c: ... to here, and mark it static.
9015 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9016 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9020 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9021 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9022 (vx_write_register): Likewise.
9026 * source.c (is_regular_file): New function.
9027 (openp): Check wether file to open is a regular file
9028 to avoid opening directories.
9032 * findvar.c (extract_signed_integer): Cast printf argument
9033 to suppress format warning.
9034 (extract_unsigned_integer): Likewise.
9035 * infcmd.c (registers_info): Likewise.
9036 * top.c (get_prompt_1): Likewise.
9037 * valops.c (value_assign): Likewise.
9038 * valprint.c (print_decimal): Likewise.
9042 * c-exp.y (typebase): Support
9044 [long|long long|short] [signed|unsigned] [int|]
9048 signed [long|long long|short] int
9052 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9054 * vax-tdep.h: New file.
9055 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9056 Make several routines static.
9057 (vax_get_saved_register): New function.
9058 (vax_gdbarch_init): New function.
9059 (_initialize_vax_tdep): Register vax_gdbarch_init.
9060 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9061 Remove macros now under the control of gdbarch.
9065 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9066 Some whitespace and coding standards tweaks.
9070 * vax-tdep.c: Include regcache.h.
9071 (vax_call_dummy_words): New.
9072 (sizeof_vax_call_dummy_words): New.
9073 (vax_fix_call_dummy): New function.
9074 (vax_saved_pc_after_call): Ditto.
9075 * config/vax/tm-vax.h: Don't include regcache.h.
9076 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9077 (CALL_DUMMY): Remove.
9078 (CALL_DUMMY_WORDS): Define.
9079 (SIZEOF_CALL_DUMMY_WORDS): Define.
9080 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9084 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9088 * vax-tdep.c (vax_frame_chain): New function.
9089 (vax_push_dummy_frame): Ditto.
9090 (vax_pop_frame): Ditto.
9091 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9092 (FRAMELESS_FUNCTION_INVOCATION): Use
9093 generic_frameless_function_invocation_not.
9094 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9095 (POP_FRAME): Use vax_pop_frame.
9099 * vax-tdep.c (vax_store_struct_return): New function.
9100 (vax_extract_return_value): Ditto.
9101 (vax_store_return_value): Ditto.
9102 (vax_extract_struct_value_address): Ditto.
9103 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9104 vax_store_struct_return.
9105 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9106 (STORE_RETURN_VALUE): Use vax_store_return_value.
9107 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9111 * vax-tdep.c (vax_frame_saved_pc): New function.
9112 (vax_frame_args_address_correct): Ditto.
9113 (vax_frame_args_address): Ditto.
9114 (vax_frame_locals_address): Ditto.
9115 (vax_frame_num_args): Move code to be in proximity to
9116 other frame-related functions.
9117 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9118 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9119 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9120 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9121 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9125 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9130 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9131 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9132 (FRAME_INIT_SAVED_REGS): New macro.
9136 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9140 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9142 (fetch_osf_core_registers): Likewise.
9143 (supply_gregset): Likewise.
9147 * symfile.h (get_section_index): Define.
9148 * symfile.c (get_section_index): New function.
9149 * mdebugread.c (SC_IS_SBSS): New macro.
9150 (SC_IS_BSS): Return true for the scBss storage class only, as
9151 the scSBss storage class refers to the .sbss section.
9152 (parse_partial_symbols): Discard the symbols which associated
9153 section does not exist.
9154 Make sure to use the .sbss section index for symbols which
9155 storage class is scBss, rather than using the .bss section index.
9159 * vax-tdep.c: Update copyright years.
9160 (vax_register_name): New function.
9161 (vax_register_byte): Ditto.
9162 (vax_register_raw_size): Ditto.
9163 (vax_register_virtual_size): Ditto.
9164 (vax_register_virtual_type): Ditto.
9165 * config/vax/tm-vax.h: Update copyright years.
9166 (REGISTER_NAMES): Remove.
9167 (REGISTER_NAME): Define.
9168 (REGISTER_BYTE): Use vax_register_byte.
9169 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9170 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9171 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9175 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9177 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9181 * arch-utils.c (generic_prologue_frameless_p): Kill
9182 SKIP_PROLOGUE_FRAMELESS_P code.
9183 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9185 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9186 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9187 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9189 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9190 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9191 (sparc_gdbarch_init): Pass it to
9192 set_gdbarch_prologue_frameless_p.
9196 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9197 (alphabsd-nat.o): New dependency list.
9201 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9203 (alpha-linux-tdep.o): New dependency list.
9204 (alphafbsd-tdep.o): Likewise.
9208 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9210 * alpha-tdep.c: ...from here.
9211 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9215 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9216 prototype from here...
9217 * alpha-tdep.h: ...to here.
9221 * frame.h (selected_frame_level): Document as deprecated.
9222 (frame_relative_level): Declare.
9223 * stack.c (frame_relative_level): New function.
9224 (selected_frame_level): Document as deprecated.
9225 (select_frame): Do not set the selected_frame_level.
9227 * stack.c (frame_info, record_selected_frame): Update.
9228 (frame_command, current_frame_command): Update.
9229 (up_silently_base, up_command, down_silently_base): Update.
9230 (down_command): Update.
9231 * inflow.c (kill_command): Update.
9232 * tracepoint.c (finish_tfind_command): Update.
9233 * corelow.c (core_open): Update.
9234 * thread.c (info_threads_command): Update.
9235 (do_captured_thread_select): Update.
9236 * infcmd.c (finish_command): Update.
9237 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9241 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9245 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9250 * alphafbsd-tdep.c: Update copyright years. Include
9252 (alphafbsd_use_struct_convention): Make static.
9253 (alphafbsd_init_abi): New function.
9254 (_initialize_alphafbsd_tdep): New function.
9255 * config/alpha/tm-fbsd.h: Update copyright years.
9256 (USE_STRUCT_CONVENTION): Remove.
9260 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9261 an Alpha ABI variant.
9262 (alpha_abi_handler_list): Declare.
9263 (alpha_gdbarch_register_os_abi): New function.
9264 (alpha_gdbarch_init): Give registered ABI variant handlers a
9265 chance to tweak the gdbarch once we have set up defaults.
9266 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9270 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9271 to standard_coerce_float_to_double.
9272 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9276 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9277 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9278 from gdbarch_tdep rather than a constant.
9279 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9280 the default text address for all Alpha Unix ABIs.
9281 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9282 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9286 * alpha-tdep.h: New file. Includes several Alpha target constants
9288 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9289 let gdbarch deal with.
9290 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9291 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9293 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9294 Alpha target register names.
9295 * alphabsd-nat.c: Likewise.
9296 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9297 Alpha target register names. Make serveral routines static.
9298 (alpha_get_saved_register): New function.
9299 (alpha_abi_names): New.
9300 (process_note_abi_tag_sections): New function.
9301 (get_elfosabi): New function.
9302 (alpha_gdbarch_init): New function.
9303 (alpha_dump_tdep): New function.
9304 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9308 * frame.c (find_saved_register): Delete #ifdef
9309 HAVE_REGISTER_WINDOWS code.
9310 * config/sparc/tm-sparc.h: Update comments.
9311 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9315 * i960-tdep.c (i960_find_saved_register): New function.
9316 (i960_get_saved_register): New function.
9317 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9318 (i960_get_saved_register): Declare.
9319 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9323 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9327 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9328 instead of NUM_PSEUDO_REGS.
9332 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9333 GDB_MULTI_ARCH_PARTIAL
9334 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9335 define, let tm-sp64.h do it.
9339 * frame.c (find_saved_register): Avoid a NULL pointer
9340 dereference and actually walk the frame list.
9344 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9345 sorted in most most-recent-used order. Document.
9346 * gdbarch.h, gdbarch.c: Regenerate.
9350 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9352 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9353 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9354 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9360 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9361 (build_builtin_type_vec128): Ditto.
9362 (append_composite_type_field): Fix calculation of type length in
9367 * config/djgpp/README: Update.
9369 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9374 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9375 (alpha_setup_arbitrary_frame): ...to this.
9376 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9377 for alpha_setup_arbitrary_frame.
9381 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9382 * gdbarch.h, gdbarch.c: Regenerate.
9384 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9385 * target.h (memory_breakpoint_from_pc): Update declaration.
9386 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9388 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9389 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9390 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9391 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9392 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9393 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9394 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9395 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9396 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9397 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9398 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9399 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9401 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9403 * monitor.c (monitor_insert_breakpoint): Ditto.
9404 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9406 * config/mcore/tm-mcore.h: Update copyright.
9407 * mem-break.c: Ditto.
9408 * xstormy16-tdep.c: Ditto.
9412 * p-exp.y: Add precedence rule for '^' token.
9413 This removes the shift/reduce conflicts.
9414 Remove the comment concerning these shift/reduce conflicts.
9418 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9419 (registers_powerpc_nofp): New register set for processors
9420 without floating point unit.
9424 * MAINTAINERS: Add myself to write-after-approval.
9428 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9432 * rs6000-tdep.c (frame_initial_stack_address): Use
9433 frame_register_read to read the alloca_reg.
9437 * frame.c (find_saved_register): Find saved registers in the next
9443 * gdbarch.sh (LANG): Set to ``c''.
9447 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9451 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9454 * hpread.c (hpread_get_lntt): Add declaration.
9455 Also fix PR gdb/391.
9459 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9460 * aclocal.m4, configure: Re-generate.
9465 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9466 instead of tm_print_insn.
9470 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9474 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9475 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9476 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9480 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9481 max_user_call_depth.
9482 (init_cmd_lists): Initialize the new value;
9483 * cli/cli-script.c (execute_user_command): Limit the call depth of
9484 user defined commands. This avoids a core-dump when user commands
9485 are infinitly recursive.
9489 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9490 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9491 from tdep struct instead of DEFAULT_LR_SAVE.
9492 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9493 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9494 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9498 * Remote.c: Spelling fix.
9499 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9500 If no symbol found for "sbrk", try "_sbrk".
9501 (make_output_phdrs): Use bfd_section_name.
9502 (gcore_copy_callback): Use bfd_section_name.
9503 * eval.c: Indentation fix-ups.
9504 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9505 in case it gets applied to an address that is already
9506 in the instruction space.
9507 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9508 * symfile.c: Fix indentation, long lines.
9509 * source.c: White space fix-up.
9513 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9514 * frame.c (frame_register_read): New function. Return non-zero on
9516 (read_relative_register_raw_bytes_for_frame): Delete.
9517 (read_relative_register_raw_bytes): Delete.
9518 * frame.h (frame_register_read): Declare.
9519 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9521 * infcmd.c (do_registers_info): Ditto.
9522 * hppa-tdep.c: Ditto.
9523 * rs6000-tdep.c: Ditto.
9524 * h8500-tdep.c: Ditto.
9525 * mips-tdep.c: Ditto.
9526 * h8300-tdep.c: Ditto.
9527 * z8k-tdep.c: Ditto.
9532 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9538 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9544 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9545 register sets for these processor variants.
9549 * regformats/reg-ppc.dat: Support FPSCR.
9553 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9554 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9555 Add fpscr as an invalid/unfetchable register.
9556 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9557 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9558 (fill_fpregset): Add support for register fpscr.
9559 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9560 (fill_gregset): Account for the fact that register ``mq'' might
9562 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9563 (registers_power): Add fpscr to register set at slot 71.
9564 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9565 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9569 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9570 * configure: Regenerate.
9571 * config.in: Regenerate.
9572 * acconfig.h: Add define for _SYSCALL32.
9573 * core-sol2.c: Remove #define _SYSCALL32.
9574 * solib-legacy.c: Remove #define _SYSCALL32.
9578 * stack.c (select_frame): Cleanup internal error message, do not
9583 * stack.c (select_frame): Check that selected_frame and the
9584 specified level are as expected.
9585 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9587 * frame.h (struct frame_info): Add field `level'. Update
9589 Work-in-progress PR gdb/464.
9593 * maint.c (maint_print_section_info): Rename print_section_info.
9594 (print_bfd_section_info, print_objfile_section_info): Update.
9595 * inferior.h (struct gdbarch): Add opaque declaration.
9596 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9597 * gdbarch.h: Regenerate.
9601 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9602 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9603 (kernel_u_size): Added.
9604 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9605 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9609 * valarith.c (find_size_for_pointer_math): New function, either returns
9610 the size for a pointer's target, returns 1 for void *, or errors for
9612 (value_add, value_sub): use find_size_for_pointer_math.
9616 * linux-low.c (linux_look_up_symbols): New hook.
9617 (linux_target_ops): Add linux_look_up_symbols.
9618 * remote-utils.c (decode_address): New function.
9619 (look_up_one_symbol): New function.
9620 * server.c (handle_query): Call target look_up_symbols hook.
9621 * server.h (look_up_one_symbol): Add prototype.
9622 * target.h (struct target_ops): Add look_up_symbols hook.
9626 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9627 override FP_REGNUM with frame->fp. Update copyright.
9628 * parse.c (num_std_regs, std_regs): Delete.
9629 (target_map_name_to_register): Do not search std_regs. Update
9630 function description.
9631 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9632 declarations. Update copyright.
9637 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9638 after the last symbol in a block.
9642 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9643 is non zero as a found symbol.
9647 * findvar.c: Include "builtin-regs.h".
9648 (value_of_register): Call value_of_builtin_reg when applicable.
9649 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9650 (target_map_name_to_register): Call
9651 builtin_reg_map_name_to_regnum.
9652 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9653 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9654 (builtin_regs_h): Define.
9655 (builtin-regs.o): New target.
9656 (findvar.o): Add $(builtin_regs_h).
9657 * builtin-regs.c, builtin-regs.h: New files.
9658 * std-regs.c: New file.
9659 Partial fix for PR gdb/251.
9663 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9664 it's no longer required.
9668 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9673 * rs6000-tdep.c (rs6000_software_single_step): Use
9674 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9675 and size. Use target_insert_breakpoint() and
9676 target_remove_breakpoint() to insert and remove breakpoints
9677 instead of explicit memory reads and writes.
9681 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9682 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9683 ELF_OBJECT_FORMAT ifdef.
9688 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9693 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9694 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9698 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9699 s/asprintf/xasprintf/.
9700 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9704 I believe Jeff Law denies responsability for this one:
9705 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9706 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9707 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9708 Work-around for PR gdb/366.
9712 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9713 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9714 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9718 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9719 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9724 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9729 * README (Reporting Bugs in GDB): Document the bug web page as the
9730 prefered way of submitting bugs.
9735 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9737 * gdbarch.h, gdbarch.c: Re-generate.
9741 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9742 buffer to regcache_collect.
9746 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9747 * gdbarch.c, gdbarch.h: Re-generate.
9751 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9752 declaration. Fix -Werror.
9756 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9757 * gdbarch.c: Regenerate.
9761 * breakpoint.c (clear_command): Rewrite middle section to
9762 combine two loops with identical control conditions.
9763 Add a cleanup to eliminate a memory leak.
9764 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9768 * solib-svr4.c (bkpt_names): Add "__start".
9772 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9773 as test for 64 bit target.
9777 * h8500-tdep.c (h8500_write_fp): Delete function.
9778 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9779 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9780 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9782 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9783 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9785 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9786 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9787 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9788 (d10v_write_fp): Delete function.
9789 * inferior.h (write_fp, generic_target_write_fp): Delete
9791 * regcache.c (generic_target_write_fp): Delete function.
9792 (write_fp): Delete function.
9793 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9794 * gdbarch.h, gdbarch.c: Regenerate.
9795 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9796 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9797 (sparc64_write_fp): Delete declaration.
9798 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9799 (h8500_write_fp): Delete declaration.
9803 * sparc-tdep.c (sparc64_write_fp): Delete.
9804 (sparc_push_dummy_frame): Replace write_fp call with code to store
9806 (sparc_gdbarch_init): Do not initialize write_fp.
9810 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9815 * stack.c (get_selected_block): Add new argument `addr_in_block',
9816 used to return the exact code address we used to select the block,
9818 * blockframe.c (get_frame_block, get_current_block): Same.
9819 * frame.h (get_frame_block, get_current_block,
9820 get_selected_block): Update declarations.
9821 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9822 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9826 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9831 * utils.c (xfullpath): New function.
9832 * defs.h (xfullpath): Add declaration.
9833 * source.c (openp): Use xfullpath in place of gdb_realpath to
9834 avoid resolving the basename part of filenames when the
9835 associated file is a symbolic link. This fixes a potential
9836 inconsistency between the filenames known to GDB and the
9837 filenames it prints in the annotations.
9838 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9839 to be able to match a filename with either the real filename, or
9840 the name of any symbolic link to this file.
9841 (lookup_partial_symtab): Ditto.
9845 * breakpoint.c: Add support for hardware breakpoints in overlays.
9846 (overlay_events_enabled): New state variable.
9847 (insert_breakpoints): Use overlay_events_enabled to decide
9848 whether to attempt to set a breakpoint at the overlay load addr.
9849 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9850 (remove_breakpoint): Use overlay_events_enabled to decide
9851 whether breakpoints need to be removed from overlay load addr.
9852 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9853 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9854 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9855 disable_overlay_breakpoints): Update overlay_events_enabled.
9859 * dwarf2read.c (struct function_range): New.
9860 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9861 (check_cu_functions): New.
9862 (read_file_scope): Initialize global function lists.
9863 Call dwarf_decode_line after processing children.
9864 (read_func_scope): Add to global function list.
9865 (dwarf_decode_lines): Call check_cu_functions everywhere
9866 record_line is called. Call record_line with a linenumber
9867 of 0 to mark sequence ends.
9871 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9872 change sync with glibc.
9876 * configure.in: Call AC_C_INLINE.
9877 * configure: Regenerated.
9881 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9882 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9886 * NEWS: Mention gcore support on FreeBSD/i386.
9888 * fbsd-proc.c: New file.
9889 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9890 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9892 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9897 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9898 unescaped newlines in string literals, but newer ones don't. So
9904 * cli/cli-dump.c: New file. Dump memory to file,
9905 restore file to memory.
9906 * cli/cli-dump.h: New file.
9907 * Makefile.in: Add rules, dependencies for cli-dump.o.
9908 * NEWS: Mention new commands.
9912 * symfile.c (symbol_file_add): Move test for null symbols to later.
9916 From veksler at il.ibm.com:
9917 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9918 the xstrduped original path.
9923 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9924 * infcmd.c (_initialize_infcmd): Ditto.
9925 * language.c (_initialize_language): Ditto.
9926 * symfile.c (_initialize_symfile): Ditto.
9927 * top.c (_init_main): Ditto.
9928 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9932 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9933 vector registers handling.
9934 (skip_prologue): Handle new AltiVec instructions. Fill in new
9935 fields of frame data.
9936 (frame_get_saved_regs): Fill in information for AltiVec registers.
9940 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9941 a function; leave this macro here to invoke that function.
9942 (symbol_init_mangled_name): Declaration for that function.
9943 * symtab.c (symbol_init_mangled_name): New function.
9947 * valarith.c: Replace strerror with safe_strerror.
9948 * tracepoint.c: Ditto.
9950 * go32-nat.c: Ditto.
9956 * event-top.c (command_line_handler): Remove useless if.
9960 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9965 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9966 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9967 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9968 (x86_64_linux_dr_get_status, supply_gregset),
9969 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9970 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9971 (x86_64_register_info_table): Add.
9972 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9973 (x86_64_register_raw_size, x86_64_register_virtual_type),
9974 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9975 general x86_64_register_info_table.
9976 (i386_gdbarch_init): gdbarch_register_bytes is now set
9977 dynamicaly during initialization.
9978 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9979 * gdbserver/linux-x86-64-low.c: Ditto.
9983 * gdbserver/server.c (main): Call target_signal_to_host_p
9984 and target_signal_to_host on signals received from the remote.
9985 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9986 target_signal_from_host on signals sent to the remote.
9987 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9988 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9992 * signals/signals.c: Include "server.h" in gdbserver build.
9993 (target_signal_from_name): Don't use STREQ.
9994 (_initialize_signals): Likewise. Don't include function in
9999 * signals.c: Moved to...
10000 * signals/signals.c: Here.
10001 * Makefile (signals.o): Update.
10005 * somread.c (som_symtab_read): Remove some commented out code and
10006 updated related comments. Do not set the minimal symbol table to
10007 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10008 in a dynamic executable.
10009 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10010 where we are unable to find the minimal symbol for the given
10015 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10019 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10023 * command.h: Update copyright.
10024 (struct cmd_list_element): Replace definition with opaque
10026 (enum cmd_types): Document that it will eventually be moved to
10028 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10029 (MALLOCED_REPLACEMENT): Delete macro.
10030 * Makefile.in (cli_decode_h): Add $(command_h).
10031 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10032 * top.c: Include "cli/cli-decode.h".
10033 * completer.c: Include "cli/cli-decode.h".
10034 * maint.c: Include "cli/cli-decode.h".
10035 * cli/cli-decode.h: Include "command.h".
10036 (enum command_class): Delete.
10037 (enum cmd_types): Comment out.
10038 (enum cmd_auto_boolean): Delete.
10039 (enum var_types): Delete.
10043 * cli/cli-decode.c: Include "gdb_assert.h".
10044 (add_set_or_show_cmd): New static function.
10045 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10046 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10047 all fields, such as func, from the set command.
10051 * MAINTAINERS (sh-elf): Change warning flag to -w.
10055 * defs.h (error): Add printf format attribute.
10056 * thread-db.c (thread_from_lwp): Fix error format string.
10057 * stack.c (parse_frame_specification): Ditto.
10058 * cli/cli-decode.c (undef_cmd_error): Ditto.
10059 * scm-lang.c (scm_lookup_name): Ditto.
10060 * tracepoint.c (trace_error): Ditto.
10061 * remote-utils.c (usage): Ditto.
10062 * remote.c (compare_sections_command): Ditto.
10067 * gdbtypes.c (append_composite_type_field): New function.
10068 (init_composite_type): New function.
10069 * gdbtypes.h (append_composite_type_field): Declare.
10070 (init_composite_type): Ditto.
10074 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10076 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10077 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10078 structure returning convention for SYSV ABI case, but not
10079 for GNU/Linux, FreeBSD, or NetBSD.
10083 * symtab.h (lookup_block_symbol): Add mangled_name argument
10086 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10087 with new mangled_name argument.
10088 * linespec.c (decode_line_1): Likewise.
10089 * valops (value_of_this): Likewise.
10090 * symtab.c (lookup_transparent_type): Likewise.
10091 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10092 (lookup_symbol): If we are given a mangled name, pass it down
10093 to lookup_symbol_aux.
10094 (lookup_block_symbol): If we are given a mangled name to check
10095 against, only return symbols which match it.
10099 * win32-nat.c (child_create_inferior): Check for proper shell to use
10100 here, in case the user changes it on the fly.
10101 (_initialize_inftarg): Remove shell path considerations.
10105 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10106 for gdbarch_max_register_raw_size and max_register_virtual_size.
10107 Adjust copyright year.
10111 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10112 in a function to cover the entire beginning of the function
10113 as well if it does not already.
10117 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10118 (rs6000_ptrace64): Renamed from ptrace64.
10122 * gdbserver/remote-utils.c (remote_open): Don't call
10123 getprotobyname, we're all using TCP here so just use
10125 * gdbserver/gdbreplay.c (remote_open): Ditto.
10129 * regcache.c (_initialize_regcache): No need to call
10130 build_regcache() at this time; it gets called whenever
10131 the gdbarch changes.
10135 * sparc-nat.c: Include sys/param.h where possible.
10140 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10141 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10142 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10144 * stabsread.c (rs6000_builtin_type): Likewise.
10145 (read_sun_floating_type): Likewise.
10149 * stabsread.c (read_member_functions): Remove skip code for duplicate
10150 constructor/destructor methods. Use standard parsing for these
10151 methods and just do not chain them to the list of methods after
10156 * coffread.c: Remove redundant static declarations. Replace
10157 occurrences of `PTR' with `void *'.
10158 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10159 * top.h (quit_cover): Likewise.
10160 * defs.h (catch_errors): Likewise.
10164 * defs.h (XMALLOC): Define.
10165 * gdb-events.sh (XMALLOC): Delete macro.
10166 * gdb-events.c, gdb-events.h: Regenerate.
10167 * gdbarch.sh (XMALLOC): Delete macro.
10168 * gdbarch.c: Regenerate.
10169 * serial.c (XMALLOC): Delete macro.
10170 * ui-file.c (XMALLOC): Ditto.
10171 * ser-unix.h (XMALLOC): Ditto.
10172 * sh-tdep.c (XMALLOC): Ditto.
10173 * ui-out.c (XMALLOC): Ditto.
10174 * utils.c (XMALLOC): Ditto.
10175 * i386-tdep.c (XMALLOC): Ditto.
10176 * gdb-events.c (XMALLOC): Ditto.
10177 * d10v-tdep.c (XMALLOC): Ditto.
10178 * cli-out.c (XMALLOC): Ditto.
10180 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10181 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10182 * ui-file.c, ui-out.c: Ditto.
10186 * command.h (struct cmd_list_element): Add field context.
10187 (set_cmd_context, get_cmd_context): Declare.
10188 * cli/cli-decode.h: Ditto.
10189 * cli/cli-decode.c (get_cmd_context): New function.
10190 (set_cmd_context): New function.
10191 (add_cmd): Initialize context.
10192 Part of fixing PR gdb/145 and PR gdb/146.
10196 * cli/cli-decode.c (cmd_type): New function.
10197 * command.h (cmd_type): Declare.
10198 * infrun.c (set_schedlock_func): Call function cmd_type.
10199 * kod.c (kod_set_os): Call cmd_type.
10200 * cris-tdep.c (cris_version_update): Use function cmd_type.
10201 (cris_mode_update, cris_abi_update): Ditto.
10203 * command.h: (execute_cmd_post_hook): Declare.
10204 (execute_cmd_pre_hook): Declare.
10205 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10206 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10207 functions. Execute pre/post hook while ensuring that afterwords
10208 hook_in is cleared.
10209 * top.c (execute_command): Use execute_cmd_post_hook, and
10210 execute_cmd_pre_hook to execute pre/post commands.
10211 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10213 (hook_stop_stub): Call execute_cmd_pre_hook.
10217 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10218 set'' and this leads to a core dump. Move xstrdup of
10219 operating_system to after check that it is not NULL.
10223 * kod.c (kod_set_os): Remove unnecessary check that
10224 ``command->type'' is set_cmd.
10226 * valprint.c (set_input_radix): Use input_radix.
10227 (set_output_radix): Use output_radix.
10228 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10233 * value.h (struct value): Delete field ``substring_addr''. Change
10234 aligner fields to force_doublest_align, force_longest_align,
10235 force_core_addr_align and force_pointer_aligh.
10237 * value.h (struct value): Fix typo in above change.
10241 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10242 to fix internal_error from ``maintenance print architecture''.
10246 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10247 for gcc versions after gcc-2.8.1.
10251 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10252 for method resolution. Restore adjustment of ``this'' pointer after
10253 calling value_struct_elt, which was accidentally removed during the
10258 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10260 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10261 get_saved_register.
10262 * value.h (value_of_register): Update.
10266 * configure.in: Detect declaration for canonicalize_file_name.
10267 * utils.c (canonicalize_file_name): Declare, if needed.
10268 (gdb_realpath): Prefer realpath if available and usable.
10269 * config.in, configure: Rebuild.
10273 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10274 a constant array bound.
10276 * MAINTAINERS: Add myself to write-after-approval.
10280 * symfile.c (syms_from_objfile): Return immediately if no syms.
10281 (symbol_file_add): Return immediately if no syms.
10282 (find_sym_fns): Return immediately if no syms.
10286 * gdbserver/remote-util.c (remote_open): Print remote-side's
10287 IP address when remote debugging over the network.
10291 * config/sparc/fbsd.mh: Fix copyright.
10292 * config/sparc/fbsd.mt: Likewise.
10296 * MAINTAINERS: Fix typo in name of gdb warnings option.
10297 (x86-64): Fix formating so that this can be parsed by awk.
10301 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10302 * defs.h: Include "gdb/signals.h".
10303 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10307 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10308 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10314 * mips-tdep.c (ST0_FR): Define.
10315 (mips2_fp_compat): New function, temporarily disabled.
10316 (mips_read_fp_register_single): New function.
10317 (mips_read_fp_register_double): New function.
10318 (mips_print_register): Use them.
10319 (do_fp_register_row): Likewise.
10323 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10328 * stabsread.c (read_member_functions): Fix is_stub test for
10329 static member functions, improve comment.
10333 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10334 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10335 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10336 commands that set boolean values.
10337 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10338 (arm_rdi_resume): Always initialize PC.
10339 (arm_rdi_open): Don't use rslt as a boolean.
10340 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10341 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10342 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10343 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10347 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10348 * configure: Rebuilt.
10352 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10353 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10357 * cli/cli-decode.c (set_cmd_completer): New function.
10358 * command.h (set_cmd_completer): Declare.
10359 * cli/cli-decode.h (set_cmd_completer): Ditto.
10361 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10362 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10363 * win32-nat.c (_initialize_inftarg): Ditto.
10364 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10365 * proc-api.c (_initialize_proc_api): Ditto.
10366 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10367 * source.c (_initialize_source): Ditto.
10368 * exec.c (_initialize_exec): Ditto.
10369 * solib.c (_initialize_solib): Ditto.
10370 * top.c (init_main): Ditto.
10371 * tracepoint.c (_initialize_tracepoint): Ditto.
10372 * symfile.c (_initialize_symfile): Ditto.
10373 * printcmd.c (_initialize_printcmd): Ditto.
10374 * infcmd.c (_initialize_infcmd): Ditto.
10375 * corefile.c (_initialize_core): Ditto.
10379 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10383 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10387 * NEWS: Update headings, 5.2 has branched.
10391 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10392 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10393 (register_addr, REGISTER_RAW_SIZE): Likewise.
10394 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10395 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10399 * MAINTAINERS (x86-64): Add myself.
10400 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10401 changed value_ptr -> struct value *
10405 * configure.host (sparc64-*-freebsd): Add.
10406 * configure.tgt: Likewise.
10407 * config/sparc/fbsd.mh: New file.
10408 * config/sparc/fbsd.mt: Likewise.
10409 * config/sparc/nm-fbsd.h: Likewise.
10410 * config/sparc/tm-fbsd.h: Likewise.
10414 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10415 regformats/reg-s390x.dat.
10419 * utils.c: Add FIXME explaining true/false problem.
10423 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10427 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10431 * gdbserver/linux-s390-low.c: New file.
10432 * regformats/reg-s390.dat: New file.
10433 * regformats/reg-s390x.dat: New file.
10434 * gdbserver/configure.srv: Add S/390.
10435 * gdbserver/Makefile.in: Add S/390.
10436 * configure.tgt: Enable gdbserver for S/390.
10440 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10441 first line of the doc string for "info dos", except at the end of
10442 the sentence, since the short help stops at the first period.
10446 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10450 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10451 comment (dumy -> dummy).
10455 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10459 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10463 * gdbserver/acconfig.h: New file.
10464 * gdbserver/i387-fp.c: New file.
10465 * gdbserver/i387-fp.h: New file.
10466 * gdbserver/linux-x86-64.c: New file.
10467 * regformats/reg-x86-64.dat: New file.
10468 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10469 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10470 * gdbserver/configure.in: Add support for regsets.
10471 * gdbserver/config.in: Regenerate.
10472 * gdbserver/configure: Regenerate.
10473 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10474 * gdbserver/linux-low.h: New file.
10475 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10477 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10478 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10479 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10480 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10481 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10482 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10483 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10484 "i387-fp.h". Add PTRACE_GETREGS and friends.
10485 * gdbserver/regcache.c (supply_register): New function.
10486 (supply_register_by_name): New function.
10487 (collect_register): New function.
10488 (collect_register_by_name): New function.
10492 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10493 (config.status): Add configure.srv dependency.
10494 (server_h): Add config.h dependency.
10498 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10499 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10500 * gdbserver/configure.srv: Change i386-*-linux* to use
10505 * x86-64-tdep.c: Re-indent. Update copyright date.
10510 * x86-64-tdep.c (value.h): Delete.
10511 (gdb_assert.h): Include.
10512 (x86_64_register_convert_to_virtual,
10513 x86_64_register_convert_to_raw ): Add check which lets only
10514 floating-point values to be converted.
10515 (value_push): Delete.
10516 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10517 (i386_gdbarch_init): Number of register_bytes fixed.
10521 * MAINTAINERS: Add x86-64 target.
10525 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10526 * osfsolib.c (solib_map_sections): Ditto.
10527 * irix5-nat.c (solib_map_sections): Ditto.
10528 * corelow.c (gdb_check_format): Ditto.
10529 * symfile.c (symfile_bfd_open): Ditto.
10530 * solib.c (solib_map_sections): Ditto.
10535 * remote.c (_initialize_remote): By default, disable ``e'' and
10536 ``E'' step out-of-range packets.
10540 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10541 m68k_linux_frame_saved_pc.
10542 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10544 (SIGCONTEXT_PC_OFFSET): Remove.
10545 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10546 m68k_linux_sigtramp_saved_pc): New functions.
10547 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10548 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10549 (UCONTEXT_PC_OFFSET): Define.
10550 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10551 non-RT and RT signal trampolines.
10555 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10556 (TARGET_NBPG, STACK_END_ADDR): Delete
10557 (VARIABLES_INSIDE_BLOCK): Delete.
10561 * utils.c (perror_with_name): Make string parameter constant.
10562 (print_sys_errmsg): Ditto.
10564 * defs.h (perror_with_name): Update.
10565 (print_sys_errmsg): Update.
10571 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10575 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10576 if it already matches the current architecture from the exec file.
10577 Include arch-utils.h for gdbarch_info_init prototype.
10578 * Makefile.in (rs6000-nat.o): Update dependencies.
10582 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10583 list of exported variables.
10587 * gdbserver/configure.srv: New file.
10588 * gdbserver/configure.in: Use configure.srv instead
10589 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10591 * gdbserver/configure: Regenerated.
10592 * gdbserver/terminal.h: New file.
10593 * gdbserver/Makefile.in: Update for configure changes. Remove
10594 more unneeded include paths.
10598 From wiz at danbala:
10599 * config/sparc/tm-sp64.h: Fix grammar and typos.
10604 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10605 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10606 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10607 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10608 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10609 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10610 * s390-tdep.c: Ditto.
10611 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10612 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10613 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10614 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10615 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10616 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10617 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10618 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10619 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10620 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10625 * lin-thread.c: Delete file.
10626 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10627 to gdb_proc_service.h.
10628 * configure: Re-generate.
10630 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10631 * serial.c (serial_open): Delete check for "ocd".
10634 * Makefile.in (linux-thread.o): Delete target.
10635 * linux-thread.c: Delete file.
10637 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10638 renamed SH files to be consistent.
10640 * symtab.c (sort_search_symbols): Use xfree.
10644 * arm-linux-tdep.c (arm_linux_init_abi): Register
10645 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10646 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10647 definition with undef, since we don't want the sysvr4 definition.
10648 (SKIP_TRAMPOLINE_CODE): Likewise.
10654 * configure.in: (AC_CHECK_FUNCS) Added test for
10655 canonicalize_file_name Regenerated.
10656 * config.in, configure: Regenerated.
10657 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10658 defined use canonicalize_file_name.
10662 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10666 * README: Remove references to cygnus.com.
10667 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10668 dot com'' form. Remove references to cygnus.com and sourceware.
10673 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10674 1003.1-2001 no longer allows "head -1".
10675 * gdb/Makefile.in (version.c): Likewise.
10676 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10677 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10678 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10682 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10683 * command.h (cmd_cfunc_eq): Declare.
10684 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10686 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10687 ``struct cmd_list_element *''.
10688 * cli/cli-cmds.c (is_complete_command): Update. Use
10690 * top.c (execute_command): Pass the command to
10691 is_complete_command.
10692 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10697 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10698 architecture defines.
10699 * s390-tdep.c (s390_gdbarch_init): Likewise.
10703 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10704 (arm_linux_push_arguments): Likewise.
10705 (arm_linux_init_abi): Register them. Also register linux-specific
10707 (find_minsym_and_objfile): Use strcmp, not STREQ.
10708 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10709 (arm_linux_call_dummy_words): Delete declaration.
10710 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10711 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10713 (LOWEST_PC): Delete.
10717 * maint.c (print_section_info): Do not prepend `0x' to filepos
10718 output, it will be handled by local_hex_string_custom.
10722 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10723 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10724 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10728 Indicate that the bcache functions don't change the strings
10730 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10731 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10735 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10739 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10740 find the complete path to a loaded DLL.
10744 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10745 that marks the end of the range of a function, enter a line number
10746 entry that has a line number of zero and a PC offset that matches
10747 the end of the function. This starts a range of PC's for which no
10748 line number information is known.
10749 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10750 PC's for which no line number info is found (line number is zero)
10751 then we didn't find any valid line information.
10752 * symtab.h: Document use of zero line number entry.
10756 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10757 (have_ptrace_getvrregs): Define for run time checks.
10758 (gdb_vrregset_t): New type for Altivec register handling.
10759 (fetch_register, store_register): Fetch/store altivec register
10761 (fetch_altivec_register, store_altivec_register): New functions.
10762 (supply_vrregset, fill_vrregset): New functions.
10763 (fetch_altivec_registers, store_altivec_registers): New functions.
10764 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10769 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10773 * Makefile.in (armnbsd-nat.o): Update dependencies.
10774 * armnbsd-nat.c (supply_gregset): New function. Common code to
10775 supply the integer register set.
10776 (supply_fparegset): New function. Similar for FPA registers.
10777 (fetch_regs, fetch_fp_regs): Use them.
10778 (fetch_core_registers): Likewise.
10779 (fetch_elfcore_registers): New function.
10780 (arm_netbsd_elfcore_fns): New core-file type specification.
10781 (_initialize_arm_netbsd_nat): Register it.
10785 * armnbsd-nat.c: Include gdbcore.h.
10786 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10787 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10788 'void' to declaration, to shut up ARI.
10789 (fetch_core_registers): Make static. Rewrite using supply_register.
10790 (arm_netbsd_core_fns): New core-file type specification.
10791 (_initialize_arm_netbsd_nat): New function.
10795 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10800 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10805 * jv-exp.y (parse_number): Change type of implicit longs
10806 to builtin_type_uint64.
10810 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10811 to be an integer instead of a `union wait'.
10815 * mips-linux-nat.c: Call the operating system GNU/Linux.
10816 * mips-linux-tdep.c: Likewise.
10817 * mips-tdep.c: Likewise.
10822 * jv-exp.y (parse_number): Handle 64-bit integers.
10826 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10827 AC_STDC_HEADERS to AC_HEADER_STDC.
10828 * gdbserver/configure: Regenerated.
10832 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10834 * sparc-tdep.c (get_longjmp_target): Likewise.
10838 * News: Add news about ARM and Multi-arch. Mention the new target
10843 * stabsread.c (error_type_complaint): Improve error message.
10847 * gdbserver/README: Update documentation.
10848 * gdbserver/configure.in: Update configury to match documentation.
10849 * gdbserver/Makefile.in: Likewise.
10850 * gdbserver/configure: Regenerated.
10851 * gdbserver/aclocal.m4: New file, generated by aclocal.
10852 * gdbserver/config.in: New file, generated by autoheader.
10856 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10861 * arm-tdep.h (enum arm_float_model): New enum.
10862 (struct gdbarch_tdep): Add fp_model.
10863 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10864 up floating-point conversions until we know the floating-point model
10865 in use by the inferior. Don't complain about being unable to
10866 determine the ABI of the inferior when we don't have one.
10867 (arm_extract_return_value): Support different floating-point models.
10868 (arm_store_return_value): Likewise.
10869 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10871 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10875 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10876 of ``current_gdbarch''.
10880 * armnbsd-nat.c : ANSIfy all function declarations.
10881 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10882 (fetch_inferior_registers): Re-implement in terms of above.
10883 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10884 (store_inferior_registers): Re-implement in terms of above.
10888 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10890 * arm-linux-tdep.c: Likewise.
10891 * config/arm/tm-linux.h: Likewise.
10895 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10896 * config/arm/nbsd.mt (TM_FILE): Delete.
10897 * config/arm/tm-nbsd.h: Delete.
10901 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10902 Initialize CALL_DUMMY_LENGTH.
10906 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10908 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10909 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10910 defines one thing and that is incorrect for this port.
10911 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10915 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10919 * win32-nat.c (display_selector): New function. Displays information
10920 about the information returned by GetThreadSelectorEntry API function.
10921 (display_selectors): New function. Displays the infomation of
10922 the selector given as argument, or of CS, DS ans FS selectors
10923 if no argument is given.
10924 ( _initialize_inftarg): Add "w32" as info prefix command.
10925 Add "info w32 selector" as command calling display_selectors.
10929 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10930 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10935 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10939 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10940 (arm_fix_call_dummy): Call it.
10941 (arm_call_dummy_breakpoint_offset): Delete.
10942 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10943 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10947 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10948 Default to func_frame_chain_valid.
10949 * gdbarch.h, gdbarch.c: Re-generate.
10950 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10954 * ppc-linux-nat.c: Update copyright.
10955 (fetch_register, store_register): Add tid parameter, don't compute
10957 (fetch_ppc_registers, store_ppc_registers): Add tid
10958 parameter. Pass it along to callees.
10959 (fetch_inferior_registers, store_inferior_registers): Compute tid
10960 here, and pass it to calleed functions.
10961 (fill_gregset, supply_fpregset): Clean up formatting.
10965 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10966 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10970 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10971 * gdbarch.c gdbarch.h: Regenerate.
10972 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10974 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10975 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10976 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10978 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10979 * arm-tdep.c (arm_get_longjmp_target): New function.
10980 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10981 this to a positive value register arm_get_longjmp_target as the
10983 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10984 (arm_linux_init_abi): Set up longjmp description in tdep.
10985 * armnbsd-nat.c (get_longjmp_target): Delete.
10986 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10987 description in tdep.
10988 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10989 (get_longjmp_target): Delete declaration.
10990 (GET_LONGJMP_TARGET): Delete.
10991 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10992 (GET_LONGJMP_TARGET): Delete.
10997 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10998 of ``current_gdbarch''.
11002 * cli/cli-cmds.c (compare_strings): New function.
11003 (complete_command): Only print each unique item once.
11004 * completer.h (complete_line): Declare.
11005 * completer.c (complete_line): New function.
11006 (line_completion_function): Use it.
11010 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11011 * gdbarch.h, gdbarch.c: Re-generate.
11015 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11020 * valops.c (value_arg_coerce): Don't take the address of a reference
11021 to convert an argument to a reference.
11025 * win32-nat.c (get_image_name): New function.
11026 (handle_load_dll): Use get_image_name function.
11027 (get_child_debug_event): Avoid registering debug events until possibly
11028 execed process is started.
11029 (child_create_inferior): Allow invocation via shell so that command
11030 line redirection, etc. works ok.
11031 (_initialize_inftarg): Add new command: "set shell" to control whether
11032 a shell is used to start a process.
11036 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11037 instead of find_register_by_number.
11038 (cannot_store_register): Likewise.
11042 * dwarf2read.c: Replace fprintf (stderr, ...) by
11043 fprintf_unfiltered (gdb_stderr, ...).
11047 * gdbserver/gdbserver.1: Document --attach.
11051 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11053 * arm-tdep.c (arm_default_arm_le_breakpoint)
11054 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11055 (arm_default_thumb_be_breakpoint): New. Initialize them from
11056 traditional breakpoint defines.
11057 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11058 (arm_gdbarch_init): Initialize new breakpoint variables.
11059 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11060 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11061 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11062 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11064 (arm_netbsd_init_abi_common): ... here; new function.
11065 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11066 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11067 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11068 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11072 * arm-tdep.h (enum arm_abi): New enum.
11073 (struct gdbarch_tdep): New structure.
11074 (LOWEST_PC): Provide a default.
11075 (arm_gdbarch_register_os_abi): Declare new function.
11076 * arm-tdep.c (arm_abi_names): New array.
11077 (process_note_abi_tag_sections): New function.
11078 (get_elfosabi): New function.
11079 (arm_gdbarch_register_os_abi): New function.
11080 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11081 support for that ABI has been built in, then call the appropriate
11082 configuration routine. Use gdbarch_num_regs() to get the number
11084 (arm_dump_tdep): New function.
11085 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11086 place-holder functions.
11087 (_initialize_arm_tdep): Register them.
11088 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11090 * armnbsd-tdep.c: New file.
11091 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11092 * config/arm/nbsd.mt (TDEPFILES): Add it.
11093 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11095 * armnbsd-nat.c: Include regcache.h.
11096 * Makefile.in (armnbsd-nat.o): Update dependency list.
11098 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11102 * gdbserver/Makefile.in: Fix typos in target rules.
11106 Fix part of PR gdb/267.
11107 * linespec.c (find_methods): Handle constructors specially for now.
11111 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11113 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11114 standard_coerce_float_to_double().
11118 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11123 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11124 find_variant_by_name, because it confuses the multiarch
11125 framework. Return NULL if there isn't an architecture with the
11126 user supplied name, instead of forcing a different one without
11127 recording the change with the multiarch machinery.
11128 (find_variant_by_name): Delete.
11132 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11133 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11137 * stack.c (print_frame_info_base): When calling
11138 print_frame_info_listing_hook, set current_source_symtab.
11142 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11143 and remove unused $(INCLUDE_DIR).
11144 Add regcache.c to OBS.
11145 Add generated register protocol files to clean target.
11146 Update dependencies for new objects, obsolete old target code.
11148 * gdbserver/linux-low.c: Remove all platform-specific code to
11149 new files. Remove various dead code. Update to use regcache
11151 * gdbserver/remote-utils.c (fromhex): Add return statement
11153 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11155 (input_interrupt): Add integer parameter to match prototype
11156 of a signal handler.
11157 (outreg): Use register_data ().
11158 (prepare_resume_reply): Use gdbserver_expedite_regs.
11159 * gdbserver/server.c (main): Dynamically allocate own_buf because
11160 PBUFSIZ is no longer constant. Use registers_to_string () and
11161 registers_from_string ().
11162 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11163 for error (), fatal (), and warning (). Update definition of
11164 PBUFSIZ to use regcache functionality. Add include guard.
11165 * gdbserver/utils.c (fatal): Add missing ``const''.
11166 (warning): New function.
11168 * regformats/regdat.sh: Include "regcache.h" in generated files.
11169 Provide init_registers () function.
11170 * regformats/regdef.h: Add prototype for set_register_cache ().
11173 * gdbserver/linux-arm-low.c: New file.
11174 * gdbserver/linux-i386-low.c: New file.
11175 * gdbserver/linux-ia64-low.c: New file.
11176 * gdbserver/linux-m68k-low.c: New file.
11177 * gdbserver/linux-mips-low.c: New file.
11178 * gdbserver/linux-ppc-low.c: New file.
11179 * gdbserver/linux-sh-low.c: New file.
11181 * gdbserver/regcache.c: New file.
11182 * gdbserver/regcache.h: New file.
11184 * gdbserver/low-linux.c: Removed obsolete file.
11188 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11189 * config/i386/linux.mt: Likewise.
11190 * config/ia64/linux.mt: Likewise.
11191 * config/m68k/linux.mh: Likewise.
11192 * config/powerpc/linux.mh: Likewise.
11193 * config/mips/linux.mt: Likewise.
11195 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11197 * config/i386/i386lynx.mh: Mark gdbserver variables
11198 as (currently) obsolete for this target.
11199 * config/i386/nbsd.mt: Likewise.
11200 * config/i386/nbsdelf.mt: Likewise.
11201 * config/m32r/m32r.mt: Likewise.
11202 * config/m68k/m68klynx.mh: Likewise.
11203 * config/m68k/nbsd.mt: Likewise.
11204 * config/m68k/sun3os4.mh: Likewise.
11205 * config/mips/vr5000.mt: Likewise.
11206 * config/ns32k/nbsd.mt: Likewise.
11207 * config/pa/hppabsd.mh: Likewise.
11208 * config/pa/hppaosf.mh: Likewise.
11209 * config/powerpc/nbsd.mt: Likewise.
11210 * config/rs6000/rs6000lynx.mh: Likewise.
11211 * config/s390/s390.mt: Likewise.
11212 * config/s390/s390x.mt: Likewise.
11213 * config/sparc/sparclynx.mh: Likewise.
11214 * config/sparc/sun4os4.mh: Likewise.
11215 * config/i386/x86-64linux.mt: Likewise.
11216 * config/sparc/linux.mh: Likewise.
11220 * configure.tgt: Configure gdbserver only for known working
11221 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11222 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11223 SUBDIRS if it is configured. Update comment for ${nativefile}.
11224 * configure: Regenerated.
11228 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11230 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11231 (default_gcore_mach): Just return 0, work around a problem in bfd.
11232 (default_gcore_target): OK to return NULL if exec_bfd is null.
11233 (make_mem_sec): Use a cast, avoid a warning.
11235 * procfs.c (find_memory_regions_callback): Use a cast instead of
11236 calling host_pointer_to_address (which complains if
11237 sizeof (host pointer) != sizeof (target pointer)).
11238 (procfs_make_note_section): Avoid overflow in psargs string.
11240 * procfs.c (procfs_make_note_section): Make the default
11241 implementation return an error.
11245 * procfs.c (procfs_make_note_section): Provide a default definition
11246 (for alpha-dec-osf4.0f). Fix typos.
11250 * linux-proc.c: Add include of regcache.h.
11251 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11256 * memattr.c (create_mem_region): Disallow useless empty region.
11257 Regions are half-open intervals, so allow [A..B) [B..C) as
11262 * defs.h: Kill CONST_PTR.
11263 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11264 * c-lang.c (c_builtin_types): Likewise.
11265 * ch-lang.c (ch_builtin_types): Likewise.
11266 * f-lang.c (f_builtin_types): Likewise.
11267 * language.c (unknown_builtin_types): Likewise.
11268 * m2-lang.c (m2_builtin_types): Likewise.
11269 * p-lang.c (pascal_builtin_types): Likewise.
11270 * scm-lang.c (c_builtin_types): Likewise.
11274 * arm-tdep.h (arm_get_next_pc): Add declaration.
11278 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11279 with other related struct-returning functions.
11280 (arm_extract_struct_value_address): New function.
11281 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11282 initialize float_format, double_format and long_double_format as
11283 appropriate to the endianness of the target.
11284 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11285 (arm_use_struct_convention): Delete declaration.
11286 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11290 * defs.h (core_addr_to_string_nz): New function.
11294 Apply missing bits of 2002-01-15 patch.
11295 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11296 (fill_fpregset): Use i387_fill_fsave.
11300 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11301 (core_addr_to_string_nz): New function.
11305 * arm-linux-nat.c: Really include arm-tdep.h.
11306 * config/arm/tm-linux.h (struct type, struct value): Declare.
11310 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11311 (gcore section): Ifdef for Solaris and Unixware only.
11312 (procfs_do_thread_registers): Unixware needs one lwpstatus
11313 per thread (not one prstatus or pstatus).
11314 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11315 not over all gdb threads. For unixware, call elfcore_write_pstatus
11316 once before iterating over threads.
11320 * arm-tdep.h: New file.
11321 * arm-tdep.c: Include arm-tdep.h.
11322 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11323 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11324 (arm_print_float_info, arm_register_type, convert_to_extended)
11325 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11326 (arm_extract_return_value, arm_register_name): Make static.
11327 (arm_software_single_step): Similarly. Fix types in declaration.
11328 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11329 (arm_store_return_value, arm_store_struct_return): New functions.
11330 (arm_gdbarch_init): Register the above functions. Also register
11331 call_dummy_start_offset, sizeof_call_dummy_words,
11332 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11333 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11334 max_register_virtual_size, register_size. Set up
11335 prologue_cache.saved_regs here, rather than ...
11336 (_initialize_arm_tdep): ... here.
11337 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11339 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11340 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11341 (arm_print_float_info, arm_register_type, convert_to_extended)
11342 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11343 (arm_extract_return_value, arm_register_name): Delete declarations.
11344 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11345 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11346 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11347 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11348 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11349 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11350 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11351 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11352 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11353 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11354 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11355 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11357 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11358 * remote-rdi.c remote-rdp.c: Likewise.
11359 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11360 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11361 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11364 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11365 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11366 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11367 from non-ARM_ prefixed definitions.
11368 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11370 * remote-rdi.c remote-rdp.c: Likewise.
11371 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11375 * arm-tdep.c (arm_frameless_function_invocation)
11376 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11377 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11378 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11379 (arm_pop_frame, arm_get_next_pc): Make static.
11380 (arm_gdbarch_init): Register above in gdbarch structure.
11381 (arm_read_fp): Renamed from arm_target_read_fp.
11382 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11383 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11384 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11385 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11386 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11387 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11388 (arm_pc_is_thumb_dummy): Delete declarations.
11389 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11390 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11391 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11392 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11396 * symtab.c (compare_search_syms): New function.
11397 (sort_search_symbols): New function.
11398 (search_symbols): Sort symbols after searching rather than
11403 * NEWS: Linux -> GNU/Linux.
11407 * gdbarch.sh: For for level one methods, disallow a definition
11408 when partially multi-arched. Add comments explaining rationale.
11409 * gdbarch.h: Re-generate.
11413 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11414 multi-arch partial.
11418 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11419 field. Use diff -u.
11420 * gdbarch.c: Re-generate.
11424 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11425 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11430 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11431 multi-arch partial.
11432 (PUSH_ARGUMENTS): Switch to using predefault.
11433 * gdbarch.c: Regenerate.
11437 * valops.c (PUSH_ARGUMENTS): Delete definition.
11438 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11439 partial. Default to default_push_arguments.
11440 * gdbarch.h, gdbarch.c: Regenerate.
11444 * defs.h (throw_exception): Rename return_to_top_level. Update
11446 * utils.c (error_stream, internal_verror, quit): Ditto.
11447 * top.c (throw_exception, catcher): Ditto.
11448 * sparclet-rom.c (sparclet_load): Ditto.
11449 * remote.c (interrupt_query, minitelnet): Ditto.
11450 * remote-sds.c (interrupt_query): Ditto.
11451 * remote-mips.c (mips_error, mips_kill): Ditto.
11452 * ocd.c (interrupt_query): Ditto.
11453 * monitor.c (monitor_interrupt_query): Ditto.
11454 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11455 * target.h: Update comment.
11457 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11461 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11462 default_double_format.
11463 * gdbarch.h, gdbarch.c: Re-generate.
11464 * findvar.c (floatformat_unknown): Delete variable definition.
11465 * doublest.h (floatformat_unknown): Delete variable declaration.
11469 * stabsread.c (read_type): Add code to parse Sun's syntax for
11470 prototyped function types.
11474 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11475 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11479 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11480 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11481 now _initialize_xcoffsolib gets called again and overrides the
11482 commands from solib.c in a native configuration.
11486 * doublest.c (store_typed_floating): Don't try to return a value.
11491 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11492 is prototyped and has no arguments, print its argument list as
11497 * MAINTAINERS (write-after-approval): Add myself.
11498 (paper-trail): I've escaped!
11502 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11504 (_initialize_check_for_gdb_ini): Ditto.
11508 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11509 xaprintf -> xasprintf.
11513 * win32-nat.c: Remove use of printf and sprintf functions.
11517 * arm-tdep.c (arm_frame_chain_valid): Make static.
11518 (arm_push_arguments): Likewise.
11519 (arm_gdbarch_init): New function.
11520 (_initialize_arm_tdep): Call it.
11521 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11522 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11523 (FRAME_CHAIN_VALID): Delete.
11524 (arm_frame_chain_valid): Delete declaration.
11525 (PUSH_ARGUMENTS): Delete.
11526 (arm_push_arguments): Delete declaration.
11527 (CALL_DUMMY_P): Delete.
11532 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11533 on builtin float types.
11537 * utils.c: Include <curses.h> before "bfd.h".
11538 * tui/tui-hooks.c: Likewise.
11539 * tui/tui.c: Likewise.
11540 * tui/tuiCommand.c: Likewise.
11541 * tui/tuiData.c: Likewise.
11542 * tui/tuiDataWin.c: Likewise.
11543 * tui/tuiDisassem.c: Likewise.
11544 * tui/tuiGeneralWin.c: Likewise.
11545 * tui/tuiIO.c: Likewise.
11546 * tui/tuiLayout.c: Likewise.
11547 * tui/tuiRegs.c: Likewise.
11548 * tui/tuiSource.c: Likewise.
11549 * tui/tuiSourceWin.c: Likewise.
11550 * tui/tuiStack.c: Likewise.
11551 * tui/tuiWin.c: Likewise.
11555 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11556 to include space for pseudoregs as well. Update loops accordingly.
11557 (sh_fp_frame_init_saved_regs): Ditto.
11558 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11562 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11563 Add Richard Earnshaw to Arm maintainers.
11567 * defs.h (warning_begin): Delete declaration.
11569 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11574 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11575 Logic bug, remove misplaced else.
11579 * fork-inferior.c (fork_inferior): Add '!' to the list of
11580 characters that need to be quoted when building a string for the
11581 shell. Quote '!' specifically with a backslash, since CSH chokes
11582 when trying to evaluate "str!str".
11586 * rdi-share/host.h: Only provide a typedef for bool if it is not
11591 * breakpoint.h (enum bptype): Add new overlay event bp type.
11592 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11594 * breakpoint.c (create_internal_breakpoint): New function.
11595 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11596 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11597 (create_thread_event_breakpoint): Ditto.
11598 (create_solib_event_breakpoint): Ditto.
11599 (create_overlay_event_breakpoint): New function.
11600 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11601 (update_breakpoints_after_exec): Delete and re-initialize
11602 overlay event breakpoints after an exec. Add FIXME comment
11603 about longjmp breakpoint.
11604 (print_it_typical): Ignore overlay event breakpoints.
11605 (print_one_breakpoint): Ditto.
11607 (bpstat_what): Do not stop for overlay event breakpoints.
11608 (delete_breakpoint): Don't delete overlay event breakpoints.
11609 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11610 (breakpoint_re_set): Re-create overlay event breakpoint.
11612 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11613 (overlay_manual_command): Disable overlay breakpoints.
11614 (overlay_off_command): Disable overlay breakpoints.
11618 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11619 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11620 to here from config/tm-arm.h.
11621 (coff_sym_is_thumb): Make static.
11622 (arm_elf_make_msymbol_special): New function.
11623 (arm_coff_make_msymbol_special): New function.
11624 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11625 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11626 (coff_sym_is_thumb): Delete declaration.
11627 (arm_elf_make_msymbol_special): Declare.
11628 (arm_coff_make_msymbol_special): Declare.
11629 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11630 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11634 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11638 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11639 * gdbarch.c gdbarch.h: Regenerate.
11640 * arch-utils.c (default_print_float_info): New function.
11641 * arch-utils.h (default_print_float_info): Prototype it.
11642 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11643 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11644 (PRINT_FLOAT_INFO): Document it.
11646 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11647 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11648 (PRINT_FLOAT_INFO): Define.
11652 * win32-nat.c (_initialize_check_for_gdb_ini):
11653 Add typecast to sprintf argument to suppress a warning.
11657 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11658 to allow easier handling of pass state.
11659 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11660 that gives exception name and address.
11661 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11662 and set last_sig value to ourstatus->value.sig. Some missing
11664 (child_continue): Correctly report continue_status.
11665 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11666 TARGET_SIGNAL_0 (new default value).
11667 (child_resume): consider sig argument passed to decide if
11668 the exception should be passed to debuggee or not.
11672 * regcache.c (fetch_register): Call target_fetch_register
11673 only if we don't call FETCH_PSEUDO_REGISTER.
11674 (store_register): Call target_store_register only if we
11675 don't call STORE_PSEUDO_REGISTER.
11679 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11680 ELF_MAKE_MSYMBOL_SPECIAL.
11681 * gdbarch.c, gdbarch.h: Regenerate.
11682 * arch-utils.c (default_make_msymbol_special): New function.
11683 * arch-utils.h (default_make_msymbol_special): Export.
11684 * elfread.c (elf_symtab_read): Compile use of
11685 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11687 * coffread.c (coff_symtab_read): Ditto, for
11688 COFF_MAKE_MSYMBOL_SPECIAL.
11692 * solib-svr4.c (svr4_truncate_ptr): New function.
11693 (svr4_relocate_section_addresses): Do the address arithmetic with
11694 the appropriate truncation for target addresses, even when
11695 CORE_ADDR is larger than a target address.
11699 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11704 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11709 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11713 * gdbserver/linux-low.c: Remove unused include files.
11717 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11718 (read_inferior_memory): Use it.
11719 (write_inferior_memory): Likewise.
11723 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11724 grubbing through sys_errlist.
11728 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11731 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11735 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11736 (do_sfunc, set_cmd_sfunc): New functions.
11738 * command.h (struct cmd_list_element): Add field func.
11739 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11740 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11741 * cli/cli-decode.h: Ditto.
11743 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11744 (help_all, help_cmd_list): Ditto.
11745 (find_cmd, complete_on_cmdlist): Ditto.
11746 * top.c (execute_command): Ditto.
11748 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11751 * infcmd.c (notice_args_read): Fix function signature.
11753 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11754 * cli/cli-decode.c (add_set_cmd): Ditto.
11755 * utils.c (initialize_utils): Ditto.
11756 * maint.c (_initialize_maint_cmds): Ditto.
11757 * infrun.c (_initialize_infrun): Ditto.
11758 * demangle.c (_initialize_demangler): Ditto.
11759 * remote.c (add_packet_config_cmd): Ditto.
11760 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11761 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11762 * proc-api.c (_initialize_proc_api): Ditto.
11763 * kod.c (_initialize_kod): Ditto.
11764 * valprint.c (_initialize_valprint): Ditto.
11765 * top.c (init_main): Ditto.
11766 * infcmd.c (_initialize_infcmd): Ditto.
11767 * corefile.c (_initialize_core): Ditto.
11768 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11769 * arch-utils.c (initialize_current_architecture): Ditto.
11770 (_initialize_gdbarch_utils): Ditto.
11771 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11773 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11774 * wince.c (_initialize_inftarg): Ditto.
11775 * symfile.c (_initialize_symfile): Ditto.
11776 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11777 * language.c (_initialize_language): Ditto.
11778 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11782 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11786 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11787 Add rules for building the register data files.
11791 * regformats/regdat.sh: Add braces to the definition of
11792 expedite_regs_${arch}.
11796 * regformats/regdef.h (struct reg): Add comment describing the
11797 requirements for offset and size fields.
11801 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11802 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11806 * gdbarch.sh (copyright): Update years in generated header.
11807 (SMASH_TEXT_ADDRESS): Add rule.
11808 * gdbarch.h, gdbarch.c: Re-generate.
11809 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11810 * dbxread.c: Likewise.
11811 * dwarfread.c: Likewise.
11812 * elfread.c: Likewise.
11813 * somread.c: Likewise.
11815 * arm-tdep.c (arm_smash_text_address): New function.
11816 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11820 Add support for hardware watchpoints on win32 native.
11821 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11822 CONTEXT_DEBUG_REGISTERS.
11823 (dr variable): New variable. Static array containing a local copy
11824 of debug registers.
11825 (debug_registers_changed): New variable. Reflects when debug registers
11826 are changed and need to be written to inferior.
11827 (debug_registers_used): New variable. Reflects when any debug register
11828 was set, used when new threads are created.
11829 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11831 (thread_rec): Set dr array if id is the thread of current_event .
11832 (child_continue, child_resume): Change the debug registers for all
11833 threads if debug_registers_changed.
11834 (child_add_thread): Change the debug registers if debug_registers_used.
11835 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11836 Link nm.h to new nm-cygwin.h file.
11837 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11838 of hardware registers.
11842 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11843 Restore behavour broken by 2002-01-20 Andrew Cagney
11848 * c-valprint.c (c_val_print): Pass a proper valaddr to
11849 cp_print_class_method.
11850 * valops.c (search_struct_method): If there is only one method
11851 and args is NULL, return that method.
11855 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11856 accessing tag_name directly.
11860 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11861 of accessing tag_name directly.
11866 * gdbtypes.c (replace_type): New function.
11867 * gdbtypes.h (replace_type): Add prototype.
11868 * stabsread.c (read_type): Use replace_type.
11872 * Makefile.in (memattr.o): Add missing dependencies rule.
11876 * breakpoint.c (break_at_finish_command): Really export.
11877 (break_at_finish_at_depth_command): Ditto.
11878 (tbreak_at_finish_command): Ditto.
11879 * hppa-tdep.c: Include completer.h.
11880 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11881 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11885 * utils.c (do_write): New function.
11886 (error_stream): Rewrite combining the code from error_begin and
11888 (verror): Rewrite using error_stream.
11889 (error_begin): Delete function.
11893 * utils.c (error_begin): Make static.
11894 * defs.h (error_begin): Delete declaration.
11896 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11897 (decode_line_1): Use cplusplus_error instead of error_begin,
11898 cplusplus_hint and return_to_top_level.
11899 * coffread.c (coff_symfile_read): Use error instead of error_begin
11900 and return_to_top_level.
11901 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11905 * language.h (type_error, range_error): Make string parameter
11907 * language.c (warning_pre_print): Delete extern declaration.
11908 * dwarfread.c (warning_pre_print): Ditto.
11909 * language.c (type_error, range_error): Rewrite to use verror and
11910 vwarning instead of warning_begin.
11914 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11915 (set_ignore_count): Move misplaced comment back where it belongs.
11919 * command.h (NO_FUNCTION): Delete macro.
11920 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11921 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11922 * tracepoint.c (_initialize_tracepoint): Ditto.
11923 * cli/cli-decode.c (add_set_cmd): Ditto.
11924 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11928 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11929 Update ``this'' pointer when calling virtual functions.
11933 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11934 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11938 * regformats/reg-arm.dat: New file.
11939 * regformats/reg-i386.dat: New file.
11940 * regformats/reg-ia64.dat: New file.
11941 * regformats/reg-m68k.dat: New file.
11942 * regformats/reg-mips.dat: New file.
11943 * regformats/reg-ppc.dat: New file.
11944 * regformats/reg-sh.dat: New file.
11945 * regformats/regdef.h: New file.
11946 * regformats/regdat.sh: New file.
11950 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11951 (arm_frame_args_address, arm_frame_locals_address): New functions.
11952 (arm_frame_num_args): New function.
11953 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11954 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11955 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11959 * breakpoint.c (break_at_finish_command): Export.
11960 (break_at_finish_at_depth_command): Export.
11961 (tbreak_at_finish_command): Export.
11962 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11963 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11964 "txbreak" commands, which are HPPA specific.
11966 * printcmd.c (disassemble_command): Remove an ancient
11967 artifact of an old merge.
11969 * symfile.h (enum overlay_debugging_state):
11970 Define enum constant values for overlay mode.
11971 * symfile.c (overlay_debugging): Use enums instead of literals.
11972 (overlay_is_mapped, overlay_auto_command,
11973 overlay_manual_command): Ditto.
11975 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11976 breakpoint_here_p, breakpoint_inserted_here_p,
11977 breakpoint_thread_match, bpstat_stop_status,
11978 describe_other_breakpoints, check_duplicates, clear_command):
11979 Coding standard fixes.
11981 * target.c (target_xfer_memory): Add spaces, coding standard.
11982 (do_xfer_memory): Add missing line to trust-readonly
11983 code: check bfd SEC_READONLY flag for section.
11987 * PROBLEMS: Fix typo, 5.1->5.1.1.
11991 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11992 data symbols, since we search based on textlow and texthigh.
11993 (find_pc_sect_symtab): Likewise.
11997 * defs.h (vwarning): Declare.
11998 * utils.c (vwarning): New function.
11999 (warning): Call vwarning.
12000 (warning_begin): Delete function.
12002 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12003 the warning message.
12004 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12009 * NEWS: Mention "set trust-readonly-sections" command.
12010 Mention generate-core-file command.
12014 * target.c: New command, "set trust-readonly-sections on".
12015 (do_xfer_memory): Honor the suggestion to trust readonly sections
12016 by reading them from the object file instead of from the target.
12017 (initialize_targets): Register command "set trust-readonly-sections".
12021 * parse.c (target_map_name_to_register): Simplify, search regs and
12022 pseudo-regs using a single loop.
12026 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12030 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12031 * config/i386/i386v42mp.mh: Add i387-nat.o .
12032 * i386v4-nat.c: Include i387-nat.h.
12033 (supply_fpregset): Use i387_supply_fsave.
12034 (fill_fpregset): Use i387_fill_fsave.
12038 * arm-tdep.c (arm_call_dummy_words): Define.
12039 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12040 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12041 (CALL_DUMMY_WORDS): Define.
12042 (arm_call_dummy_words): Declare.
12043 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12044 (arm_linux_call_dummy_words): Declare.
12048 * m68klinux-nat.c: Fix last change to use regcache_collect
12049 instead of referencing registers[] directly.
12053 * parse.c (target_map_name_to_register): Delete code wrapped in
12054 #ifdef REGISTER_NAME_ALIAS_HOOK.
12058 * regcache.c (legacy_read_register_gen): Need to be able to
12059 read pseudo-register as well as real register.
12060 (legacy_write_register_gen): Ditto.
12064 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12065 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12066 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12067 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12068 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12069 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12070 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12071 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12072 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12073 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12074 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12075 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12076 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12077 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12078 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12079 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12080 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12081 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12082 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12083 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12087 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12088 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12089 (initialize_current_architecture): Update target_byte_order using
12090 information from BFD.
12091 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12092 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12096 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12097 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12099 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12100 #ifdef INVALID_FLOAT.
12101 * infcmd.c (do_registers_info): Ditto.
12102 * values.c (unpack_double): Ditto. Add comment.
12104 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12105 already commented out.
12109 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12110 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12111 registers and add support for PTRACE_GETREGS.
12115 GDB 5.1.1 released from 5.1 branch.
12116 * NEWS: Add 5.1.1 news.
12117 * README: Sync with 5.1 branch.
12121 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12122 stabstring on initial malloc. Reallocing will copy it for us,
12127 * Makefile.in (hpread_h): Delete.
12128 (HFILES_NO_SRCDIR): Remove hpread.h.
12129 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12130 (hpread.o): Update dependencies.
12131 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12133 * hp-psymtab-read.c: Remove file.
12134 * hp-symtab-read.c: Remove file.
12135 * hpread.h: Remove file.
12137 * hpread.c: Merge all contents of hp-psymtab-read.c,
12138 hp-symtab-read.c and hpread.h into this file, as it was prior to
12141 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12142 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12143 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12144 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12148 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12149 fill_gregset): Call gdbarch_tdep() just once, assign result to
12150 variable and use that, instead of calling the function several
12155 * configure.host: Accept sparcv9 as alias for sparc64.
12156 * configure.tgt: Likewise.
12160 * solib-aix5.c (build_so_list_from_mapfile)
12161 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12162 arguments is not reversed.
12163 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12164 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12168 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12169 modified version of obsolete sh_fetch_pseudo_register.
12170 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12171 (sh4_register_read): New function.
12172 (sh_pseudo_register_write): New function. Renamed and modified
12173 version of obsolete sh_store_pseudo_register.
12174 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12175 (sh4_register_write): New function.
12176 (sh_gdbarch_init): Remove setting of gdbarch function
12177 fetch_pseudo_register and store_pseudo_register. Remove setting of
12178 register_convert_to_raw, register_convert_to_virtual,
12179 register_convertible.
12180 (sh_sh4_register_convertible): Delete. No longer needed. All is
12181 taken care by architecture specific functions
12182 register_read/register_write.
12183 (sh_sh4_register_convert_to_virtual): Make static.
12184 (sh_sh4_register_convert_to_raw): Ditto.
12188 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12189 (floatformat_is_nan, floatformat_mantissa): Ditto.
12191 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12192 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12193 builtin_type_ieee_double_little,
12194 builtin_type_ieee_double_littlebyte_bigword,
12195 builtin_type_m68881_ext, builtin_type_i960_ext,
12196 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12197 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12198 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12199 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12203 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12204 parameter. Set frameless flag if it exists and depended of
12205 whether the scanned function is frameless or not.
12206 (xstormy16_skip_prologue): If function is frameless, return
12207 result of xstormy16_scan_prologue().
12208 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12213 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12214 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12215 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12216 sh_sh4_register_byte, sh_sh4_register_raw_size,
12217 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12218 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12219 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12220 sh_store_pseudo_register, sh_do_pseudo_register): Call
12221 gdbarch_tdep() just once, assign result to variable and use that,
12222 instead of calling the function several times.
12226 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12227 macros instead of LAST_FPU_CTRL_REGNUM.
12228 (store_register): Likewise.
12232 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12233 is up-to-date before running the program, not just when a program
12238 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12239 when we have found all instructions we are looking for.
12243 * arm-tdep.c (arm_register_name): New function.
12244 (arm_registers_names): Make static.
12245 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12246 (arm_register_name): Declare.
12247 (REGISTER_NAME): Use it.
12252 Convert arm targets to new FRAME interface.
12253 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12254 (arm_frame_find_save_regs): Delete.
12255 (arm_frame_init_saved_regs): New.
12256 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12257 Allocate extra_info as required. Convert all uses of fsr.regs
12258 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12260 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12261 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12262 (check_prologue_cache, save_prologue_cache): Likewise.
12263 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12264 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12265 (FRAME_FIND_SAVED_REGS): Delete.
12266 (arm_frame_find_saved_regs): Delete prototype.
12267 (arm_frame_init_saved_regs): New prototype.
12268 (FRAME_INIT_SAVED_REGS): Define.
12272 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12277 * infttrace.c: Include <sys/pstat.h>.
12278 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12279 exec file if the ttrace equivalent fails.
12283 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12284 (closeLogFile): Ditto.
12288 * top.c (print_gdb_version): Bump copyright year to 2002.
12292 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12293 Zannoni and Eli Zaretskii.
12297 * buildsym.c: Update copyright years.
12298 * c-typeprint.c: Likewise.
12299 * dwarf2read.c: Likewise.
12300 * f-typeprint.c: Likewise.
12301 * gdbtypes.c: Likewise.
12302 * gdbtypes.h: Likewise.
12303 * hp-symtab-read.c: Likewise.
12304 * hpread.c: Likewise.
12305 * mdebugread.c: Likewise.
12306 * p-typeprint.c: Likewise.
12310 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12311 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12312 byte-order selectable.
12313 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12314 * arch-utils.c: Ditto.
12315 (set_endian): Ditto.
12316 (set_endian_from_file): Ditto.
12317 * gdbserver/low-sim.c (create_inferior): Ditto.
12318 * gdbarch.sh: Ditto.
12319 * gdbarch.h: Re-generate.
12320 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12321 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12322 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12323 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12324 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12325 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12326 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12327 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12329 * config/mips/tm-wince.h: Remove #undef of macro
12330 TARGET_BYTE_ORDER_SELECTABLE.
12331 * config/sh/tm-wince.h: Ditto.
12335 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12336 member function fields. Add accessor macro
12337 TYPE_FN_FIELD_ARTIFICIAL.
12338 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12339 * c-typeprint.c (c_type_print_base): Skip artificial member
12344 * f-typeprint.c: Delete unused function f_type_print_args.
12345 * p-typeprint.c: Delete unused function pascal_type_print_args.
12349 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12350 comment. Add ``artificial'' to ``union field_location''.
12352 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12354 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12355 * mdebugread.c (parse_symbol): Likewise.
12356 * stabsread.c (define_symbol): Likewise.
12357 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12358 initializing TYPE_FIELD_BITPOS to n (obsolete).
12359 (hpread_doc_function_type): Likewise.
12360 * hpread.c (hpread_function_type): Likewise.
12364 * configure.in (host_makefile_frag): Only require a host makefile
12365 fragment when a native build.
12366 * configure: Re-generate.
12370 * doublest.h (floatformat_from_type): Declare.
12371 * doublest.c (floatformat_from_type): New function.
12372 (convert_typed_floating): Use.
12374 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12375 call to function floatformat_from_type.
12377 * gdbarch.sh (IEEE_FLOAT): Delete.
12378 * gdbarch.h, gdbarch.c: Re-generate.
12379 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12380 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12381 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12382 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12383 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12384 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12385 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12386 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12387 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12388 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12389 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12390 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12392 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12393 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12394 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12395 * sh-tdep.c (sh_gdbarch_init): Ditto.
12396 * mips-tdep.c (mips_gdbarch_init): Ditto.
12397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12398 * cris-tdep.c (cris_gdbarch_init): Ditto.
12402 * configure.host, configure.tgt: Support x86-64.
12403 * NEWS: Note new target x86-64.
12405 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12406 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12407 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12408 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12409 x86-64-linux-nat.o): Fix dependencies.
12413 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12414 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12415 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12416 * config/sparc/xm-sun4os4.h: Delete file.
12417 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12421 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12422 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12423 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12424 * config/i386/i386lynx.mh (XM_FILE): Delete.
12425 * config/rs6000/xm-rs6000ly.h: Delete file.
12426 * config/sparc/xm-sparclynx.h: Delete file.
12427 * config/m68k/xm-m68klynx.h: Delete file.
12428 * config/i386/xm-i386lynx.h: Delete file.
12429 * config/xm-lynx.h: Delete file.
12430 * config/djgpp/fnchange.lst: Update.
12434 * alpha-tdep.c (alpha_register_byte): New function.
12435 (alpha_register_raw_size): Ditto.
12436 (alpha_register_virtual_size): Ditto.
12437 (alpha_skip_prologue_internal): Renamed from
12438 alpha_skip_prologue.
12439 (alpha_skip_prologue): New version that calls
12440 alpha_skip_prologue_internal.
12441 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12442 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12443 second argument from alpha_skip_prologue.
12444 (REGISTER_BYTE): Use alpha_register_byte.
12445 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12446 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12447 (FRAMELESS_FUNCTION_INVOCATION): Use
12448 generic_frameless_function_invocation_not.
12449 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12450 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12454 * config/mips/xm-news-mips.h: Delete file.
12455 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12457 * config/m88k/xm-m88k.h: Delete file.
12458 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12459 * config/m88k/xm-delta88v4.h: Ditto.
12460 * config/m88k/xm-delta88.h: Ditto.
12462 * config/alpha/xm-fbsd.h: Delete file.
12463 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12465 * config/sparc/xm-sparc.h: Delete file.
12466 * Makefile.in (xm-sun4os4.h): Delete dependency.
12467 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12468 * config/sparc/xm-sun4os4.h: Ditto.
12469 * config/sparc/xm-linux.h: Ditto.
12471 * config/i386/xm-windows.h: Delete file.
12475 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12476 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12480 * alpha-tdep.c (alpha_call_dummy_words): New.
12481 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12482 (CALL_DUMMY_P): Define.
12483 (CALL_DUMMY_WORDS): Define.
12484 (SIZEOF_CALL_DUMMY_WORDS): Define.
12488 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12489 isn't NULL, which can happen with some gcj-3.x-produced code.
12493 * alpha-tdep.c (alpha_register_virtual_type): New function.
12494 (alpha_init_frame_pc_first): Ditto.
12495 (alpha_fix_call_dummy): Ditto.
12496 (alpha_store_struct_return): Ditto.
12497 (alpha_extract_struct_value_address): Ditto.
12498 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12499 alpha_register_virtual_type.
12500 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12501 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12502 alpha_extract_struct_value_address.
12503 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12504 (INIT_FRAME_PC): Use init_frame_pc_noop.
12505 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12509 * i386gnu-nat.c: Include "i386-tdep.h".
12510 (fetch_fpregs): Simplify code dealing with uninitialized floating
12511 point states such that it doesn't require FP7_REGNUM.
12515 * alpha-tdep.c (frame_extra_info): New.
12516 (alpha_find_saved_regs): Make static. Use
12518 (alpha_frame_init_saved_regs): New function.
12519 (alpha_frame_saved_pc): Use frame->extra_info.
12520 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12521 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12522 (init_extra_frame_info): Rename to...
12523 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12524 (alpha_print_extra_frame_info): New function.
12525 (alpha_frame_locals_address): Ditto.
12526 (alpha_frame_args_address): Ditto.
12527 (alpha_pop_frame): Use frame->extra_info.
12528 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12529 alpha_frame_args_address.
12530 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12531 (alpha_find_saved_regs): Remove prototype.
12532 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12533 (EXTRA_FRAME_INFO): Remove.
12534 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12535 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12539 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12540 (alpha_cannot_fetch_register): Ditto.
12541 (alpha_cannot_store_register): Ditto.
12542 (alpha_register_convertible): Ditto.
12543 (alpha_use_struct_convention): Ditto.
12544 * config/alpha/tm-alpha.h: Update copyright years.
12545 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12546 (INNER_THAN): Use core_addr_lessthan.
12547 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12548 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12549 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12550 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12551 (FRAME_CHAIN): Remove unnecessary cast.
12555 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12560 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12561 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12562 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12563 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12564 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12565 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12566 * x86-64-linux-nat.c: Ditto.
12570 * alpha-tdep.c (alpha_register_name): New function.
12571 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12572 (REGISTER_NAME): Define.
12576 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12580 * alpha-tdep.c: Update copyright years.
12581 (alpha_next_pc): New function.
12582 (alpha_software_single_step): Ditto.
12583 * config/alpha/tm-alpha.h: Add prototype for
12584 alpha_software_single_step.
12588 * alphabsd-nat.c: Update copyright years.
12589 (fill_gregset): Use regcache_collect.
12590 (fill_fpregset): Likewise.
12591 (fetch_inferior_registers): Only fetch integer registers
12592 if requested to do so.
12593 (store_inferior_registers): Only store integer registers
12594 if requested to do so.
12598 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12599 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12600 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12601 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12602 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12603 * config/arm/linux.mh (XDEPFILES): Delete.
12604 * config/arm/nbsd.mh (XDEPFILES): Delete.
12605 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12606 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12607 * config/i386/i386m3.mh (XDEPFILES): Delete.
12608 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12609 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12610 * config/i386/fbsd.mh (XDEPFILES): Delete.
12611 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12612 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12613 * config/i386/i386v4.mh (XDEPFILES): Delete.
12614 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12615 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12616 * config/i386/i386aix.mh (XDEPFILES): Delete.
12617 * config/i386/go32.mh (XDEPFILES): Delete.
12618 * config/i386/cygwin.mh (XDEPFILES): Delete.
12619 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12620 * config/i386/i386mach.mh (XDEPFILES): Delete.
12621 * config/i386/i386v32.mh (XDEPFILES): Delete.
12622 * config/i386/linux.mh (XDEPFILES): Delete.
12623 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12624 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12625 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12626 * config/i386/i386sco.mh (XDEPFILES): Delete.
12627 * config/i386/i386v.mh (XDEPFILES): Delete.
12628 * config/i386/nbsd.mh (XDEPFILES): Delete.
12629 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12630 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12631 * config/i386/symmetry.mh (XDEPFILES): Delete.
12632 * config/i386/obsd.mh (XDEPFILES): Delete.
12633 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12634 * config/ia64/linux.mh (XDEPFILES): Delete.
12635 * config/ia64/aix.mh (XDEPFILES): Delete.
12636 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12637 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12638 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12639 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12640 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12641 * config/m68k/linux.mh (XDEPFILES): Delete.
12642 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12643 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12644 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12645 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12646 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12647 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12648 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12649 * config/m88k/delta88.mh (XDEPFILES): Delete.
12650 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12651 * config/m88k/m88k.mh (XDEPFILES): Delete.
12652 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12653 * config/mips/linux.mh (XDEPFILES): Delete.
12654 * config/mips/irix6.mh (XDEPFILES): Delete.
12655 * config/mips/irix5.mh (XDEPFILES): Delete.
12656 * config/mips/irix4.mh (XDEPFILES): Delete.
12657 * config/mips/irix3.mh (XDEPFILES): Delete.
12658 * config/mips/decstation.mh (XDEPFILES): Delete.
12659 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12660 (NATDEPFILES): Move core-aout.o to here.
12661 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12662 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12663 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12664 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12665 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12666 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12667 * config/pa/hpux11.mh (XDEPFILES): Delete.
12668 * config/powerpc/aix.mh (XDEPFILES): Delete.
12669 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12670 * config/powerpc/linux.mh (XDEPFILES): Delete.
12671 * config/romp/rtbsd.mh: Rename XDEPFILES.
12672 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12673 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12674 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12675 * config/s390/s390.mh (XDEPFILES): Delete.
12676 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12677 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12678 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12679 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12680 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12681 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12682 * config/sparc/linux.mh (XDEPFILES): Delete.
12683 * config/vax/vaxult.mh (XDEPFILES): Delete.
12684 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12685 * Makefile.in (DEPFILES): Remove XDEPFILES.
12689 * utils.c (internal_verror): Fix comments, default is yes not no.
12690 Update queries to match. Default to quit and dump core.
12694 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12696 * defs.h, event-top.c, gdbcmd.h: Ditto.
12697 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12698 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12699 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12700 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12701 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12702 * mi/mi-main.c:Ditto.
12704 * stack.c, symfile.c: Update copyright.
12708 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12709 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12710 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12711 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12715 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12716 * gdbserver/low-lynx.c (myattach): Likewise.
12717 * gdbserver/low-nbsd.c (myattach): Likewise.
12718 * gdbserver/low-sim.c (myattach): Likewise.
12719 * gdbserver/low-sparc.c (myattach): Likewise.
12720 * gdbserver/low-sun3.c (myattach): Likewise.
12722 * gdbserver/low-linux.c (myattach): New function.
12724 * gdbserver/server.c (attach_inferior): New function.
12725 (main): Handle "--attach".
12729 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12734 * c-typeprint.c (is_type_conversion_operator): Add additional
12735 check for non-conversion operators.
12739 * linux-proc.c: Add "info proc" command, a la procfs.c.
12740 (read_mapping): New function, abstract and re-use code.
12741 (linux_find_memory_regions): Use new func read_mapping.
12742 (linux_info_proc_cmd): New function, implement "info proc".
12743 (_initialize_linux_proc): Add new command "info proc".
12747 * symfile.c (generic_load): Use bfd_map_over_sections method
12748 instead of manipulating bfd structure members directly.
12749 (add_section_size_callback): New function, bfd sections callback
12750 used by generic_load.
12751 (load_sections_callback): New function, bfd sections callback
12752 used by generic_load.
12756 [Based on work by Jim Blandy]
12757 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12758 (builtin_type_vec128): Export.
12759 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12761 (builtin_type_vec128): New builtin type for 128 bit vector
12763 (build_gdbtypes): Initialize builtin_type_v16qi and
12764 builtin_type_v8hi. Create the vec128 register builtin type
12766 (build_builtin_type_vec128): New function.
12767 (_initialize_gdbtypes): Register builtin_type_v16qi and
12768 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12769 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12770 AltiVec register to new builtin type.
12774 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12779 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12780 CLEAN_UP_REGISTER_VALUE.
12781 * regcache.c (supply_register): Update only call.
12785 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12786 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12787 a29k-*-vxworks* targets as obsolete.
12791 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12792 until we can resolve portability issues.
12793 * gregset.h: Remove references to fpxregs.
12794 * gcore.c (gcore_command): Initialize note_sec to NULL.
12798 * signals.c (target_signal_to_name): Rewrite. Only use
12799 signals[].name when in bounds and non-NULL.
12804 * signals.c (target_signal_to_name): Verify that SIG is within the
12805 bounds of the signals array.
12809 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12813 * stack.c (print_frame_info_base): Print the frame's pc
12814 only if when print_frame_info_listing_hook is not defined.
12818 * varobj.c (varobj_set_value): Make sure that there were no
12819 errors evaluating the object before attempting to set its
12821 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12822 so this offset adjustment is no longer necessary.
12823 (create_child): Don't set the error flag if the child is
12824 a CPLUS_FAKE_CHILD.
12825 (value_of_child): If value_fetch_lazy fails, return NULL
12826 so that callers will be notified that an error occurred.
12827 (c_value_of_variable): Delay check of variable's validity
12828 until later. We actually want all structs and unions to have
12830 Do not return "???" for variables which could not be evaluated.
12831 This error condition must be returned to the caller so that it
12832 can get the error condition from gdb.
12833 (cplus_name_of_child): Adjust index for vptr before figuring
12834 out the name of the child.
12835 (cplus_value_of_child): If a child's (real) parent is not valid,
12836 don't even bother trying to give a value for it. Just return
12837 an error. Change all instances in this function.
12838 (cplus_type_of_child): If our parent is one of the "fake"
12839 parents, we need to get at the type of the real parent, and
12840 derive the child's true type using this information.
12845 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12846 sources.redhat.com, and tweak some related URLs which had
12847 suffered from linkrot.
12852 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12853 structures passed in registers.
12857 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12858 white space which prevented compilation. Reported by DSK
12863 * symfile.c (build_section_addr_info_from_section_tab):
12864 Use bfd access method instead of manipulating bfd directly.
12865 (syms_from_objfile): Ditto.
12866 (simple_overlay_update_1): Ditto.
12867 (simple_overlay_update): Ditto.
12868 (generic_load): Ditto.
12869 (overlay_unmapped_address): FIXME comment, bfd access methods.
12870 (sections_overlap): FIXME comment, bfd access methods.
12871 (pc_in_mapped_range): FIXME comment, bfd access methods.
12872 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12873 (section_is_mapped): FIXME comment, bfd access methods.
12874 (section_is_overlay): FIXME comment, bfd access methods.
12876 * symfile.c (generic_load): Whitespace and long line cleanups.
12877 Remove duplicate variable, change several local variables to
12878 more appropriate data types.
12879 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12883 From Peter Schauer:
12884 * language.c (longest_local_hex_string_custom): Use phex_nz to
12885 convert NUM to a hex string.
12889 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12891 Update Copyright year.
12895 * language.c (longest_raw_hex_string): Delete unused function.
12899 * MAINTAINERS (write-after-approval): Add myself.
12900 * dwarf2read.c (read_tag_string_type): Handling of
12902 (read_tag_string_type): FORTRAN fix to prevent propagation of
12904 (set_cu_language): Handling of DW_LANG_Fortran95
12908 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12909 GETPID(inferior_ptid).
12910 (store_inferior_registers): Likewise.
12914 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12919 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12920 and bfd/elf32-sh-nbsd.c.
12924 * NEWS: Mention --pid and corefile/proc-id behavior change.
12926 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12927 * gcore.c: Include cli/cli-decode.h instead of command.h.
12929 * main.c (captured_main): Add new command line option "--pid".
12930 If the second command line argument (following the symbol-file)
12931 begins with a digit, try to attach to it before trying to open
12933 (print_gdb_help): Document the "--pid" argument.
12937 * completer.c (command_completer): New function.
12939 * completer.h <command_completer>: Add prototype.
12941 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12942 completer for the "help" command.
12946 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12950 * i386-linux-nat.c (fill_fpxregset): Make global.
12951 (store_fpxregset): Ditto.
12953 * gregset.h (gdb_fpxregset_t): Define.
12954 (supply_fpxregset): Prototype.
12955 (fill_fpxregset): Prototype.
12957 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12961 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12962 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12963 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12967 * MAINTAINERS: Update target maintainer rules so that any
12968 Maintainer can approve a tested patch for a maintenance-only
12973 * MAINTAINERS (write-after-approval): Add myself.
12975 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12980 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12981 real name of the executable, rather than the /proc name.
12985 Implement a "generate-core-file" command in gdb, save target state.
12986 * gcore.c: New file. Implement new command 'generate-core-file'.
12987 Save a corefile image of the current state of the inferior.
12988 * linux-proc.c: Add linux-specific code for saving corefiles.
12989 * target.h (struct target_ops): Add new target vectors for saving
12990 corefiles; to_find_memory_regions and to_make_corefile_notes.
12991 (target_find_memory_regions): New macro.
12992 (target_make_corefile_notes): New macro.
12993 * target.c (update_current_target): Inherit new target methods.
12994 (dummy_find_memory_regions): New place-holder method.
12995 (dummy_make_corefile_notes): New place-holder method.
12996 (init_dummy_target): Initialize new dummy target vectors.
12997 * exec.c (exec_set_find_memory_regions): New function.
12998 Allow the exec_ops vector for memory regions to be taken over.
12999 (exec_make_note_section): New function, target vector method.
13000 * defs.h (exec_set_find_memory_regions): Export prototype.
13001 * procfs.c (proc_find_memory_regions): New function, corefile method.
13002 (procfs_make_note_section): New function, corefile method.
13003 (init_procfs_ops): Set new target vector pointers.
13004 (find_memory_regions_callback): New function.
13005 (procfs_do_thread_registers): New function.
13006 (procfs_corefile_thread_callback): New function.
13007 * sol-thread.c (sol_find_memory_regions): New function.
13008 (sol_make_note_section): New function.
13009 (init_sol_thread_ops): Initialize new target vectors.
13010 * inftarg.c (inftarg_set_find_memory_regions): New function.
13011 Allow to_find_memory_regions vector to be taken over.
13012 (inftarg_set_make_corefile_notes): New function.
13013 Allow to_make_corefile_notes vector to be taken over.
13014 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13015 interface layer if not target_has_execution (may be a corefile).
13016 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13017 * config/sparc/sun4sol2.mh: Ditto.
13018 * config/alpha/alpha-linux.mh: Ditto.
13019 * config/arm/linux.mh: Ditto.
13020 * config/i386/x86-64linux.mh: Ditto.
13021 * config/ia64/linux.mh: Ditto.
13022 * config/m68k/linux.mh: Ditto.
13023 * config/mips/linux.mh: Ditto.
13024 * config/powerpc/linux.mh: Ditto.
13025 * config/sparc/linux.mh: Ditto.
13029 * arm-linux-nat.c: Remove references to regcache.c internal data
13030 (registers[] and register_valid[]).
13034 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13035 so that attaching to a pid will automatically read the process's
13036 symbol file and shlibs.
13037 * Makefile.in: Add rule for linux-proc.o.
13038 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13039 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13040 * config/arm/linux.mh: Ditto.
13041 * config/i386/linux.mh: Ditto.
13042 * config/i386/x86-64linux.mh: Ditto.
13043 * config/ia64/linux.mh: Ditto.
13044 * config/m68k/linux.mh: Ditto.
13045 * config/mips/linux.mh: Ditto.
13046 * config/powerpc/linux.mh: Ditto.
13047 * config/sparc/linux.mh: Ditto.
13051 * win32-nat.c: Add i386-tdep.h dependency.
13055 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13056 instead of bfd_get_arch_size. Don't bail out just because
13057 there's no exec_bfd.
13059 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13060 * p-valprint.c (pascal_object_print_value): Ditto.
13061 * somread.c (som_symtab_read): Ditto.
13062 * symfile.c (simple_free_overlay_region_table): Ditto.
13063 * valops.c (value_assign): Ditto.
13065 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13066 use tilde_expand and strerror for opening save-tracepoints file.
13068 * thread-db.c (thread_db_new_objfile): Indendation fix.
13070 * infptrace.c (GDB_MAX_ALLOCA): New define.
13071 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13072 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13073 can be overridden with whatever value is appropriate to the host).
13074 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13075 alloca to allocate potentially large buffer.
13076 * rs6000-nat.c (child_xfer_memory): Ditto.
13077 * symm-nat.c (child_xfer_memory): Ditto.
13078 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13083 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13087 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13088 Don't use exec_bfd if it's NULL.
13092 * valops.c (value_arg_coerce): Fix formatting.
13096 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13097 * gnu-nat.c: Ditto.
13101 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13102 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13103 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13104 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13105 z8k-coff have not been multi-arched. Update z8k-coff build
13110 * MAINTAINERS: Mark a29k target as obsolete.
13111 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13112 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13114 * NEWS: Note that a29k targets are obsolete.
13115 * a29k-tdep.c: Mark as obsolete.
13116 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13117 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13118 a29k-*-vxworks* targets as obsolete.
13119 * remote-adapt.c: Obsolete.
13120 * remote-eb.c: Obsolete.
13121 * remote-mm.c: Obsolete.
13122 * remote-udi.c: Obsolete.
13123 * config/a29k/a29k-udi.mt: Obsolete.
13124 * config/a29k/a29k.mt: Obsolete.
13125 * config/a29k/tm-a29k.h: Obsolete.
13126 * config/a29k/tm-vx29k.h: Obsolete.
13127 * config/a29k/vx29k.mt: Obsolete.
13131 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13132 with BFD_ENDIAN_BIG.
13136 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13137 * configure, config.in: Re-generate.
13138 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13139 * defs.h: Do not include <endian.h>.
13143 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13144 * config.in: Regenerate.
13145 * configure.in: Update copyright years.
13146 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13147 * configure: Regenerate.
13148 * i386bsd-nat.c: Update copyright years.
13149 (fill_gregset): Use regcache_collect.
13150 (fetch_inferior_registers): Only fetch integer registers
13151 if requested to do so. Add support for XMM registers
13152 using PT_GETXMMREGS.
13153 (store_inferior_registers): Only store integer registers
13154 if requested to do so. Add support for XMM registers
13155 using PT_SETXMMREGS.
13156 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13157 (store_inferior_registers): Remove.
13158 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13159 (fetch_elfcore_registers): New function.
13160 (i386nbsd_elfcore_fns): New.
13161 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13162 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13164 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13165 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13166 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13167 * config/i386/tm-nbsd.h: Update copyright years.
13168 (HAVE_SSE_REGS): Define.
13169 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13170 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13171 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13172 (SIGCONTEXT_PC_OFFSET): Remove.
13173 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13177 * configure.tgt: Remove powerpc-*-macos* target.
13178 * config/m68k/xm-mpw.h: Delete file.
13179 * config/xm-mpw.h: Delete file.
13180 * ser-mac.c: Delete file.
13181 * mpw-make.sed: Delete file.
13182 * mpw-config.in: Delete file.
13183 * mac-xdep.c: Delete file.
13184 * mac-gdb.r: Delete file.
13185 * mac-defs.h: Delete file.
13186 * mac-nat.c: Delete file.
13187 * config/powerpc/macos.mh: Delete file.
13188 * config/powerpc/macos.mt: Delete file.
13189 * config/powerpc/nm-macos.h: Delete file.
13190 * config/powerpc/tm-macos.h: Delete file.
13191 * source.c (openp, open_source_file): Remove obsolete code.
13192 * top.c (gdb_readline): Ditto.
13193 * utils.c (query): Ditto.
13194 * event-top.c (display_gdb_prompt): Ditto.
13195 * Makefile.in (ser-mac.o): Delete obsolete target.
13200 * defs.h (BIG_ENDIAN): Delete macro definition.
13201 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13202 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13203 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13204 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13205 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13206 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13207 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13208 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13209 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13210 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13211 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13212 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13213 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13214 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13215 * gdbarch.c: Re-generate.
13219 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13224 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13228 * value.h (value_ptr): Delete typedef.
13232 * i386nbsd-nat.c: Update copyright years.
13233 Include i386-tdep.h.
13237 * stabsread.c: Update copyright years.
13240 (read_struct_fields): Deal with Sun C compiler erroneous stab
13241 output for structs and unions.
13246 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13251 * cp-abi.c: Fix whitespace.
13252 (baseclass_offset): New wrapper function.
13253 * cp-abi.h (baseclass_offset): Add prototype.
13254 (struct cp_abi_ops): Add baseclass_offset pointer.
13256 * valops.c (vb_match): Move to...
13257 * gnu-v2-abi.c (vb_match): here.
13258 * valops.c (baseclass_offset): Move to...
13259 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13261 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13263 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13264 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13265 * hpacc-abi.c (init_hpacc_ops): Likewise.
13269 * valops.c (find_overload_match): Accept obj as a
13270 reference parameter. Update it before returning.
13271 * value.h (find_overload_match): Update prototype.
13272 * eval.c (evaluate_subexp_standard): Pass object to
13273 find_overload_match by reference.
13277 * valarith.c: Replace value_ptr with struct value pointer. Remove
13278 register attribute from value declarations.
13281 * scm-lang.c (scm_lookup_name): Ditto.
13285 Abstract the functionality of iterating over mapped memory
13286 regions into a general purpose iterator function.
13287 * procfs.c (iterate_over_mappings): New function, general purpose
13288 iterator for memory sections.
13289 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13290 (solib_mappings_callback): New function, callback for above.
13291 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13292 (info_mappings_callback): New function, callback for above.
13294 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13298 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13299 * i386-tdep.c: Include "elf-bfd.h".
13300 (process_note_abi_tag_sections): New function.
13301 (i386_gdbarch_init): Add code to recognize various OS/ABI
13304 * maint.c (_initialize_maint_cmds): Add missing \ in
13307 For older changes see ChangeLog-2001
13313 version-control: never