2002-11-18 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2
3 * stack.c (frame_relative_level): Copy function from here ...
4 * frame.c (frame_relative_level): ...to here.
5
6 2002-11-18 Andrew Cagney <ac131313@redhat.com>
7
8 * frame.h (enum frame_type): Define.
9 (get_frame_type): Declare.
10 (struct frame_info): Add field `type'. Delete field
11 signal_handler_caller.
12 (deprecated_set_frame_signal_handler_caller): Declare.
13 * frame.c (get_frame_type): New function.
14 (deprecated_set_frame_type): New function.
15 (create_new_frame): Set the frame's type.
16 (get_prev_frame): Similar.
17 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
18 * s390-tdep.c: Ditto.
19 * m68klinux-nat.c: Ditto.
20 * ns32k-tdep.c: Ditto.
21 * x86-64-linux-tdep.c: Ditto.
22 * vax-tdep.c: Ditto.
23 * rs6000-tdep.c: Ditto.
24 * ppc-linux-tdep.c: Ditto.
25 * i386-interix-tdep.c: Ditto.
26 * mips-tdep.c: Ditto.
27 * m68k-tdep.c: Ditto.
28 * hppa-tdep.c: Ditto.
29 * ia64-tdep.c: Ditto.
30 * cris-tdep.c: Ditto.
31 * arm-tdep.c: Ditto.
32 * alpha-tdep.c: Ditto.
33 * i386-tdep.c: Ditto.
34 * stack.c: Ditto.
35 * ada-lang.c: Ditto.
36 * blockframe.c: Update.
37 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
38 deprecated_set_frame_type instead of signal_handler_caller.
39 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
40 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
41 * breakpoint.h: Delete FIXME suggesting get_frame_type.
42
43 2002-11-18 Klee Dienes <kdienes@apple.com>
44
45 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
46
47 2002-11-18 Klee Dienes <kdienes@apple.com>
48
49 * buildsym.c (pop_context): Add comment.
50
51 2002-11-18 Klee Dienes <kdienes@apple.com>
52
53 * buildsym.h (pop_context): Convert to function, defined in
54 buildsym.c.
55 * buildsym.c: Include gdb_assert.h.
56 (pop_context): Implement as C function. Add check for stack
57 underflow.
58 * dbxread.c (process_one_symbol): Complain and stop processing
59 that symbol if we are already at the top of the context stack for
60 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
61 when processing N_RBRAC.
62
63 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
64
65 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
66 define.
67 (struct target_waitstatus): Add opaque definition.
68 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
69 * exec.c (init_exec_ops): Likewise.
70 * fork-child.c (clone_and_follow_inferior): Remove.
71 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
72 * inferior.h (clone_and_follow_inferior): Remove prototype.
73 * infrun.c (follow_fork_mode_both): Remove.
74 (follow_fork_mode_kind_names): Remove commented out "both".
75 (follow_inferior_fork): Remove follow_fork_mode_both support.
76 * inftarg.c (child_clone_and_follow_inferior): Remove.
77 (child_post_follow_inferior_by_clone): Remove.
78 (init_child_ops): Don't set to_clone_and_follow_inferior
79 or to_post_follow_inferior_by_clone.
80 * target.c (default_clone_and_follow_inferior): Remove.
81 (cleanup_target): Don't set to_clone_and_follow_inferior
82 or to_post_follow_inferior_by_clone.
83 (find_default_clone_and_follow_inferior): Remove.
84 (init_dummy_target): Don't set to_clone_and_follow_inferior.
85 (debug_to_clone_and_follow_inferior): Remove.
86 (debug_to_post_follow_inferior_by_clone): Remove.
87 (setup_target_debug): Don't set to_clone_and_follow_inferior
88 or to_post_follow_inferior_by_clone.
89 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
90 and to_post_follow_inferior_by_clone.
91 (child_clone_and_follow_inferior): Remove prototype.
92 (child_post_follow_inferior_by_clone): Remove prototype.
93 (target_clone_and_follow_inferior): Remove macro.
94 (target_post_follow_inferior_by_clone): Remove macro.
95 (find_default_clone_and_follow_inferior): Remove prototype.
96
97 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
98
99 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
100 inferior_has_vforked, and inferior_has_execd instead of
101 target_has_forked, target_has_vforked, and target_has_execd.
102 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
103 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
104 (CHILD_WAIT): Define.
105 (child_wait): Add prototype.
106 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
107 Add prototype.
108 (hpux_has_vforked): Likewise, from child_has_vforked.
109 (hpux_has_execd): Likewise, from child_has_execd.
110 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
111 (not_same_real_pid, child_wait): New, copied from inftarg.c.
112 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
113 and hpux_has_syscall_event instead of the target hooks.
114 * infrun.c (inferior_has_forked, inferior_has_vforked)
115 (inferior_has_execd): New functions.
116 * inftarg.c (not_same_real_pid): Remove.
117 (child_wait): Remove references to not_same_real_pid,
118 target_has_forked, target_has_vforked, target_has_execd,
119 and target_has_syscall_event.
120 (child_has_forked, child_has_vforked, child_has_execd)
121 (child_has_syscall_event): Remove.
122 (init_child_ops): Remove references to child_has_forked,
123 child_has_vforked, child_has_execd, and child_has_syscall_event.
124 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
125 (hpux_has_vforked): Likewise, from child_has_vforked.
126 (hpux_has_execd): Likewise, from child_has_execd.
127 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
128 * target.c (cleanup_target): Remove references to
129 to_has_forked, to_has_vforked, to_has_execd, and
130 to_has_syscall_event.
131 (update_current_target): Likewise.
132 (setup_target_debug): Likewise.
133 (debug_to_has_forked): Remove.
134 (debug_to_has_vforked): Remove.
135 (debug_to_has_execd): Remove.
136 (debug_to_has_syscall_event): Remove.
137 * target.h (struct target_ops): Remove to_has_forked.
138 to_has_vforked, to_has_execd, and to_has_syscall_event.
139 (child_has_forked, child_has_vforked, child_has_execd)
140 (child_has_syscall_event): Remove prototypes.
141 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
142 prototypes.
143 (target_has_forked, target_has_vforked, target_has_execd)
144 (target_has_syscall_event): Remove macros.
145
146 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
147
148 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
149 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
150 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
151 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
152 * target.c (cleanup_target): Remove reference to
153 to_can_follow_vfork_prior_to_exec.
154 (update_current_target): Likewise.
155 (debug_to_can_follow_vfork_prior_to_exec): Remove.
156 (setup_target_debug): Remove reference to
157 to_can_follow_vfork_prior_to_exec.
158 * target.h (struct target_ops): Remove
159 to_can_follow_vfork_prior_to_exec.
160 (child_can_follow_vfork_prior_to_exec): Remove prototype.
161 (target_can_follow_vfork_prior_to_exec): Remove definition.
162 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
163 define.
164 * infrun.c (follow_vfork_when_exec): Remove.
165 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
166 (follow_exec): Likewise.
167 (handle_inferior_event): Likewise.
168 (keep_going): Likewise.
169
170 2002-11-15 Andrew Cagney <cagney@redhat.com>
171
172 * frame.c (generic_unwind_get_saved_register): Make static.
173 * frame.h (generic_unwind_get_saved_register): Delete declaration.
174 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
175 defaults to generic_unwind_get_saved_register.
176 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
177 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
178 * frv-tdep.c (frv_gdbarch_init): Ditto.
179 * i386-tdep.c (i386_gdbarch_init): Ditto.
180 * s390-tdep.c (s390_gdbarch_init): Ditto.
181 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
182 * v850-tdep.c (v850_gdbarch_init): Ditto.
183 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
184 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
185 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
186
187 2002-11-15 Andrew Cagney <cagney@redhat.com>
188
189 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
190 i386-tdep.c.
191
192 2002-11-15 Andrew Cagney <cagney@redhat.com>
193
194 * frame.h (sigtramp_saved_pc): Delete declaration.
195 * blockframe.c (sigtramp_saved_pc): Delete function.
196 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
197 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
198 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
199 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
200
201 2002-11-15 Andrew Cagney <ac131313@redhat.com>
202
203 * frame.c (frame_pc_unwind): New function.
204 (frame_saved_regs_pc_unwind): New function.
205 (frame_register_unwind): Pass unwind_cache instead of
206 register_unwind_cache.
207 (set_unwind_by_pc): Add unwind_pc parameter, set.
208 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
209 (get_prev_frame): Ditto.
210 * frame.h (frame_pc_unwind_ftype): Declare.
211 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
212 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
213 (frame_pc_unwind): Declare.
214 * dummy-frame.c (dummy_frame_pc_unwind): New function.
215 (struct dummy_frame): Add comment mentioning that values are for
216 previous frame.
217 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
218 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
219 (generic_file_frame_chain_valid): Ditto.
220 * stack.c (frame_info): Ditto.
221
222 2002-11-15 David Carlton <carlton@math.stanford.edu>
223
224 * linespec.c (locate_first_half): New function.
225 (decode_line_1): Move code into locate_first_half.
226
227 2002-11-15 Andrew Cagney <ac131313@redhat.com>
228
229 * complaints.h: Add comment explaining how to eliminate a
230 deprecated_complain call.
231 * complaints.h: Fix spelling errors.
232
233 2002-11-15 David Carlton <carlton@math.stanford.edu>
234
235 * printcmd.c: Remove #include "disasm.h".
236
237 2002-11-14 Andrew Cagney <ac131313@redhat.com>
238
239 * frame.h: Move the most relevant interface functions to the start
240 of the file.
241
242 2002-11-14 Andrew Cagney <ac131313@redhat.com>
243
244 * regcache.h (deprecated_registers): Rename registers.
245 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
246 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
247 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
248 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
249 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
250 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
251 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
252 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
253 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
254 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
255 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
256 * v850ice.c: Update.
257
258 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
259
260 * utils.c (gdb_realpath): Add comment mentioning realpath with a
261 NULL buffer.
262
263 2002-11-13 Andrew Cagney <cagney@redhat.com>
264
265 * regcache.h (deprecated_read_register_bytes): Rename
266 read_register_bytes.
267 (deprecated_write_register_bytes): Rename write_register_bytes.
268 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
269 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
270 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
271 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
272 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
273 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
274 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
275 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
276 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
277 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
278 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
279 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
280 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
281 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
282
283 2002-11-13 Jim Blandy <jimb@redhat.com>
284
285 * findvar.c (read_var_value): Doc fix.
286
287 2002-11-13 Andrew Cagney <cagney@redhat.com>
288
289 * regcache.c (struct regcache): Replace passthough_p with
290 readonly_p.
291 (regcache_xmalloc): Initialize readonly_p.
292 (build_regcache): Initialize readonly_p.
293 (regcache_save): New function.
294 (regcache_restore): New function.
295 (regcache_cpy): Re-implement using regcache_save and
296 regcache_restore.
297 (regcache_raw_read): Update.
298 (regcache_cooked_read): When a read-only cache, checked for cached
299 pseudo register values.
300 (regcache_raw_write): Assert that the cache is not read-only.
301 Remove code handling a non-passthrough cache.
302 * regcache.h (regcache_save): Declare.
303 (regcache_restore): Declare.
304
305 2002-11-13 Andrew Cagney <cagney@redhat.com>
306
307 * regcache.c (struct regcache_descr): Add fields
308 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
309 (init_legacy_regcache_descr): Compute the size of a cooked
310 register cache and then assign that to sizeof_raw_registers. Set
311 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
312 (init_legacy_regcache_descr): Ditto.
313
314 2002-11-13 Andrew Cagney <cagney@redhat.com>
315
316 * regcache.c (register_buffer): Move to near start of file, update
317 description.
318 (regcache_raw_read): Use.
319 (regcache_raw_write): Use.
320 (struct regcache): Rename raw_registers to registers and
321 raw_register_valid_p to register_valid_p.
322 (regcache_xmalloc): Update.
323 (regcache_xfree): Update.
324 (register_buffer): Update.
325 (regcache_cpy): Update.
326 (regcache_cpy_no_passthrough): Update.
327 (regcache_valid_p): Update.
328 (deprecated_grub_regcache_for_registers): Update.
329 (deprecated_grub_regcache_for_register_valid): Update.
330 (set_register_cached): Update.
331 (regcache_raw_write): Update.
332
333 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
334
335 * p-exp.y (name_not_typename): Use copy_name to
336 set current_type variable for fields of THIS.
337
338 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
339
340 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
341 * monitor.c (init_base_monitor_ops): Likewise.
342 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
343 * remote-array.c (init_array_ops): Likewise.
344 * remote-e7000.c (init_e7000_ops): Likewise.
345 * remote-es.c (init_es1800_ops): Likewise.
346 (init_es1800_child_ops): Likewise.
347 * remote-rdp.c (init_remote_rdp_ops): Likewise.
348 * remote-sim.c (init_gdbsim_ops): Likewise.
349 * remote-st.c (init_st2000_ops): Likewise.
350 * sol-thread.c (init_sol_core_ops): Likewise.
351 (init_sol_thread_ops): Likewise.
352 * v850ice.c (init_850ice_ops): Likewise.
353 * win32-nat.c (init_child_ops): Likewise.
354 * wince.c (init_child_ops): Likewise.
355
356 2002-11-12 Andrew Cagney <ac131313@redhat.com>
357
358 * utils.c (gdb_realpath): Make rp a constant pointer.
359
360 2002-11-12 Andrew Cagney <ac131313@redhat.com>
361
362 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
363 a constant buffer; cannonicalize_file_name(); realpath() with a
364 pathconf() defined buffer, xstrdup().
365
366 2002-11-12 Andrew Cagney <ac131313@redhat.com>
367
368 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
369 to hang2.C; hang3.c to hang3.C.
370
371 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
372
373 * findvar.c (read_var_value): Reenable TLS code.
374
375 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
376 Jim Blandy <jimb@redhat.com>
377
378 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
379 * target.c (update_current_target): Add
380 to_get_thread_local_address.
381 * target.h (to_get_thread_local_address): Export.
382 (target_get_thread_local_address): Define.
383 (target_get_thread_local_address_p): Define.
384 * thread-db.c: Include solib-svr4.h.
385 (td_thr_tls_get_addr_p): Define.
386 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
387 (thread_db_get_thread_local_address): New function.
388 (init_thread_db_ops): Initialize to_get_thread_local_address.
389 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
390 * configure: Regenerate.
391 * config.in: Regenerate.
392
393 2002-11-11 David Carlton <carlton@math.stanford.edu>
394
395 * linespec.c (set_flags): New function.
396 (decode_line_1): Move code into set_flags.
397
398 2002-11-11 David Carlton <carlton@math.stanford.edu>
399
400 * linespec.c (decode_line_1): Move chunks of code to separate
401 functions.
402 (initialize_defaults): New function.
403 (decode_indirect): New function.
404
405 2002-11-11 Andrew Cagney <ac131313@redhat.com>
406
407 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
408 instead of void_code_ptr.
409 (sigtramp_saved_pc): Ditto.
410
411 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
412 i386_fp_regnum_p.
413
414 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
415
416 * gdbtypes.h (struct main_type): Move artificial flag out of
417 loc. New member of ``struct field'' named static_kind. Reduce
418 overloaded meaning of bitsize.
419 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
420 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
421 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
422
423 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
424 new fields.
425 (template_to_fixed_record_type, template_to_static_fixed_type)
426 (to_record_with_fixed_variant_part): Likewise.
427 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
428 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
429 * dwarfread.c (struct_type, enum_type): Likewise.
430 * hpread.c (hpread_read_enum_type)
431 (hpread_read_function_type, hpread_read_doc_function_type)
432 (hpread_read_struct_type): Likewise.
433 * mdebugread.c (parse_symbol): Likewise.
434
435 2002-11-10 Andrew Cagney <ac131313@redhat.com>
436
437 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
438 * stack.c (print_frame_info_base): Update.
439 (print_frame_info_base, frame_info): Update.
440 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
441 (sparc_frame_saved_pc): Update.
442 * ada-lang.c (find_printable_frame): Update.
443 * breakpoint.c (deprecated_frame_in_dummy): Update.
444
445 2002-11-09 Mark Kettenis <kettenis@gnu.org>
446
447 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
448 defined.
449 (regmap): Extend to cover all registers.
450 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
451 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
452 definitions.
453 (fetch_register, sore_register): Simplify.
454 (old_fetch_inferior_registers, old_store_inferior_registers):
455 Remove functions.
456 (cannot_fetch_register, cannot_store_register): Change
457 implementation to use regmap array to decide which registers
458 cannot be fetched/stored. This removes $orig_eax from the
459 registers that cannot be fetched/stored.
460 (fetch_inferior_registers): Call fetch_register directly instead
461 of calling old_fetch_inferior_registers.
462 (store_inferior_registers): Call store_register directly instead
463 of calling old_store_inferior_registers.
464 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
465 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
466 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
467
468 2002-11-09 Klee Dienes <kdienes@apple.com>
469
470 * i387-tdep.c (i387_supply_register): When called with NULL as a
471 buffer, mark the register as not provided (to mirror the behavior
472 of supply_register).
473 (i387_supply_fxsave): Ditto.
474 (i387_supply_fsave): Ditto (inherits the behavior from
475 i387_supply_register).
476
477 2002-11-09 Klee Dienes <kdienes@apple.com>
478
479 * blockframe.c (sigtramp_saved_pc): Use
480 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
481 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
482 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
483
484 2002-11-09 Andrew Cagney <ac131313@redhat.com>
485
486 * frame.c (get_prev_frame): Test prev_p to identify a previously
487 unwound frame. Initialize prev_p.
488 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
489 comment.
490
491 2002-11-09 Andrew Cagney <ac131313@redhat.com>
492
493 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
494 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
495 more comments. Zap dead code.
496
497 2002-11-09 Mark Kettenis <kettenis@gnu.org>
498
499 * infcmd.c (print_vector_info, print_float_info): Move code that
500 checks whether the target has any registers and whether there is a
501 selected frame up, such that it is also used if a target provides
502 multi-arch definitions of these functions.
503
504 2002-11-08 Andrew Cagney <ac131313@redhat.com>
505
506 * Makefile.in (DESTDIR): Define.
507 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
508 prefix.
509
510 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
511 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
512
513 2002-11-08 Andrew Cagney <ac131313@redhat.com>
514
515 * i386-linux-tdep.c: Include "reggroups.h".
516 (i386_linux_register_reggroup_p): New function.
517 (i386_linux_init_abi): Set register_reggroup_p to
518 i386_linux_register_reggroup_p.
519 * i386-tdep.h (i386_register_reggroup_p): Declare.
520 * i386-tdep.c: Include "reggroups.h".
521 (i386_init_reggroups): New function.
522 (i386_add_reggroups): New function.
523 (i386_register_reggroup_p): New function.
524 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
525 (_initialize_i386_tdep): Call i386_init_reggroups.
526 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
527 specific reggroups.
528
529 2002-11-09 Mark Kettenis <kettenis@gnu.org>
530
531 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
532 request that's available in *BSD.
533
534 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
535
536 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
537 FDOFF_REGNUM.
538
539 2002-11-08 Andrew Cagney <ac131313@redhat.com>
540
541 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
542 * dummy-frame.c (find_dummy_frame): Rename
543 generic_find_dummy_frame, make static. Return the dummy frame
544 instead of the regcache.
545 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
546 (cached_find_dummy_frame): New function. Use find_dummy_frame.
547 (dummy_frame_register_unwind): Rename
548 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
549 * dummy-frame.h (dummy_frame_register_unwind): Rename
550 generic_call_dummy_register_unwind.
551
552 2002-11-08 Mark Kettenis <kettenis@gnu.org>
553
554 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
555 except the inclusion of "i386/tm-i386.h", to...
556 * config/i386/nm-i386v42mp.h: ...here.
557 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
558
559 2002-11-08 Andrew Cagney <ac131313@redhat.com>
560
561 * Makefile.in (frame.o): Update dependencies.
562 * blockframe.c (current_frame, frame_obstack_alloc)
563 (frame_saved_regs_zalloc, get_current_frame)
564 (set_current_frame, create_new_frame)
565 (set_unwind_by_pc, get_next_frame)
566 (flush_cached_frames, reinit_frame_cache)
567 (frame_saved_regs_register_unwind)
568 (deprecated_generic_get_saved_register)
569 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
570 (_initialize_blockframe): Move frame code from here...
571 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
572 "annotate.h" and "dummy-frame.h".
573 (_initialize_frame): New function.
574
575 2002-11-08 Jim Blandy <jimb@redhat.com>
576
577 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
578 when we finish a function a context.
579 * buildsym.h (outermost_context_p): New macro.
580 (Bug analyzed by David Edelsohn.)
581
582 2002-11-08 Andrew Cagney <ac131313@redhat.com>
583
584 * blockframe.c: Include "dummy-frame.h".
585 (struct dummy_frame, dummy_frame_stack)
586 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
587 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
588 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
589 (generic_save_call_dummy_addr, generic_pop_current_frame)
590 (generic_pop_dummy_frame, generic_fix_call_dummy)
591 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
592 dummy frame code from here...
593 * dummy-frame.c: ...to here. New file.
594 * dummy-frame.h: New file.
595 (generic_call_dummy_register_unwind): Declare.
596 (generic_find_dummy_frame): Declare.
597 * Makefile.in (SFILES): Add dummy-frame.c.
598 (dummy-frame.o): Specify dependencies.
599 (dummy_frame_h): Define.
600 (COMMON_OBS): Add dummy-frame.o.
601 (blockframe.o): Update dependencies.
602
603 2002-11-08 Jim Blandy <jimb@redhat.com>
604
605 * dwarf2read.c (read_func_scope): Restore local_symbols and
606 param_symbols after we finish the function context. (Based on a
607 patch from David Edelsohn.)
608
609 2002-11-08 David Carlton <carlton@math.stanford.edu>
610
611 * linespec.c (symbol_found): New function.
612 (minsym_found): New function.
613 (decode_line_1): Separate out some code into separate functions.
614
615 2002-11-08 Joel Brobecker <brobecker@gnat.com>
616
617 * i386-tdep.c (i386_frameless_signal_p): Make non static for
618 the benefit of the interix target.
619 * i386-tdep.h (i386_frameless_signal_p): Declare.
620
621 2002-11-08 Andrew Cagney <ac131313@redhat.com>
622
623 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
624 declaration that snuck in from change below.
625
626 2002-11-06 Andrew Cagney <cagney@redhat.com>
627
628 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
629 all callers.
630 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
631 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
632 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
633 (i386_mxcsr_regnum_p): new function. Use instead of
634 MXCSR_REGNUM_P.
635 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
636 (i386_sse_regnum_p): Declare.
637 (i386_mxcsr_regnum_p): Declare.
638 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
639 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
640 (IS_FP_REGNUM): Update definition.
641 (IS_FPU_CTRL_REGNUM): Update definition..
642 (IS_SSE_REGNUM): Update definition..
643 * i386v-nat.c (register_u_addr): Update.
644 * go32-nat.c (fetch_register): Update.
645 (store_register): Update.
646
647 2002-11-07 Joel Brobecker <brobecker@gnat.com>
648
649 Preparation work to convert the hppa targets to multiarch partial.
650
651 * hppa-tdep.c: Add new functions replacing macro bodies from
652 config/pa/tm-hppa.h. These function will be used to initialize
653 the gdbarch structure. Import some comments from tm-hppa.h,
654 and place them where appropriate, to avoid loosing them when
655 we cleanup this file.
656 (hppa_reg_struct_has_addr): New function.
657 (hppa_inner_than): New function.
658 (hppa_stack_align): New function.
659 (hppa_pc_requires_run_before_use): New function.
660 (hppa_instruction_nullified): New function.
661 (hppa_register_byte): New function.
662 (hppa_register_virtual_type): New function.
663 (hppa_store_struct_return): New function.
664 (hppa_cannot_store_register): New function.
665 (hppa_frame_args_address): New function.
666 (hppa_frame_locals_address): New function.
667 (hppa_smash_text_address): New function.
668 (hppa_coerce_float_to_double): New function. Requires the inclusion
669 of "language.h".
670
671 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
672
673 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
674 gdbarch-eligible macro to a call to the new associated function
675 created in hppa-tdep.c.
676 (INNER_THAN): Likewise.
677 (STACK_ALIGN): Likewise.
678 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
679 (INSTRUCTION_NULLIFIED): Likewise.
680 (REGISTER_BYTE): Likewise.
681 (REGISTER_VIRTUAL_TYPE): Likewise.
682 (STORE_STRUCT_RETURN): Likewise.
683 (CANNOT_STORE_REGISTER): Likewise.
684 (FRAME_ARGS_ADDRESS): Likewise.
685 (FRAME_LOCALS_ADDRESS): Likewise.
686 (SMASH_TEXT_ADDRESS): Likewise.
687 (COERCE_FLOAT_TO_DOUBLE): Likewise.
688 (ABOUT_TO_RETURN): Delete, as no longer used.
689
690 2002-11-07 Fernando Nasser <fnasser@redhat.com>
691
692 * printcmd.c (disassemble_command): Remove obsolete function.
693 (_initialize_printcmd): Do not create disassemble command here.
694 * cli/cli-cmds.c (disassemble_command): New function. Implements
695 disassemble command.
696 (init_cli_cmds): Create disassemble command here instead.
697
698 2002-11-07 Andrew Cagney <ac131313@redhat.com>
699
700 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
701
702 2002-11-07 Andrew Cagney <ac131313@redhat.com>
703
704 * regcache.h (regcache_cooked_read_using_offset_hack)
705 (regcache_cooked_write_using_offset_hack): Delete declarations.
706 (register_changed): Delete declaration.
707 * regcache.c (regcache_cooked_read_using_offset_hack)
708 (regcache_cooked_write_using_offset_hack): Delete functions.
709 (cooked_xfer_using_offset_hack): Delete function.
710 (register_changed): Delete function.
711
712 2002-11-07 Jim Blandy <jimb@redhat.com>
713
714 * macroscope.c: #include "complaints.h".
715 (sal_macro_scope): Cope with filenames that appear in the symtabs,
716 but not in the macro table.
717 * Makefile.in (macroscope.o): Record dependency.
718
719 2002-11-07 Joel Brobecker <brobecker@gnat.com>
720
721 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
722
723 2002-11-07 Andrew Cagney <ac131313@redhat.com>
724
725 * regcache.c (deprecated_registers_fetched): Update.
726 * regcache.h (deprecated_registers_fetched): Rename
727 registers_fetched.
728 * remote-vxsparc.c (vx_read_register): Update.
729 * remote-vxmips.c (vx_read_register): Update.
730 * remote-vx68.c (vx_read_register): Update.
731 * irix5-nat.c (fetch_core_registers): Update.
732 * mipsm3-nat.c (fetch_inferior_registers): Update.
733 * sun3-nat.c (fetch_inferior_registers): Update.
734 * symm-nat.c (fetch_inferior_registers): Update.
735 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
736 (fetch_core_registers): Update.
737 (fetch_kcore_registers): Update.
738 * mips-nat.c (fetch_inferior_registers): Update.
739 * corelow.c (get_core_registers): Update.
740 * a68v-nat.c (fetch_inferior_registers): Update.
741
742 2002-11-06 Joel Brobecker <brobecker@gnat.com>
743
744 Put in place the framework necessary for multiarching the hppa targets.
745 * hppa-tdep.c (hppa_gdbarch_init): New function.
746 (hppa_dump_tdep): New function.
747 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
748 tdep structure dumper.
749 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
750 until the multi-arching conversion has partially been completed.
751
752 2002-11-06 Andrew Cagney <ac131313@redhat.com>
753
754 * valops.c (value_assign): Merge lval_register case into
755 lval_reg_frame_relative. Use frame_register and
756 regcache_cooked_write instead of get_saved_register and
757 write_register_bytes. After flushing the register cache, try to
758 re-select the selected frame.
759
760 2002-11-06 Andrew Cagney <ac131313@redhat.com>
761
762 * regcache.h (deprecated_register_valid): Rename register_valid.
763 * regcache.c: Update.
764 * ia64-aix-nat.c: Update.
765 * i386gnu-nat.c: Update.
766 * alpha-nat.c: Update.
767 * sparc-nat.c: Update.
768 * lynx-nat.c: Update.
769 * remote-mips.c: Update.
770
771 2002-11-06 Joel Brobecker <brobecker@gnat.com>
772
773 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
774 to end of file, to be more consistent with the pratice followed
775 by other targets.
776
777 2002-11-06 Andrew Cagney <ac131313@redhat.com>
778
779 * infcmd.c: Include "reggroups.h" and <ctype.h>.
780 (print_float_info): Print registers in float_reggroup.
781 (print_vector_info): Print registers in vector_reggroup.
782 (default_print_registers_info): When all, print registers in
783 all_reggroup. Otherwize, print registers in general_reggroup.
784 (registers_info): Rewrite. Add support for register groups.
785 Eliminate a goto.
786
787 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
788
789 * symtab.c (methods_info): Delete. It has been ifdeffed out for
790 ages.
791 (symtab_symbol_info): Remove eons old ifdeffed out code.
792 (_initialize_symtab): Remove prehistoric disabled 'info methods'
793 command.
794
795 2002-11-06 Theodore A. Roth <troth@openavr.org>
796
797 * c-exp.y: Add missing semi-colons.
798 * f-exp.y: Add missing semi-colons.
799 * m2-exp.y: Add missing semi-colons.
800 * p-exp.y: Add missing semi-colons.
801 Add empty action to start rule to avoid a type clash error when
802 building with bison >= 1.50.
803
804 2002-11-06 Jim Blandy <jimb@redhat.com>
805
806 * macrotab.h (struct macro_source_file): Doc fix.
807
808 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
809
810 * varobj.c (child_exists, cplus_number_of_children): Change
811 STREQ macro references to strcmp.
812 (cplus_name_of_child): Change code to handle the fact that
813 fields are not necessarily contiguous with regards to their
814 access control. This is a fix for PR gdb/792.
815
816 2002-11-05 Andrew Cagney <ac131313@redhat.com>
817
818 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
819 * gdbarch.h, gdbarch.c: Regnerate.
820 * frame.h (frame_register): Declare.
821 * frame.c (frame_register): New function.
822 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
823 GET_SAVED_REGISTER, otherwize call
824 generic_unwind_get_saved_register.
825 (frame_register_read): Use frame_register instead of
826 get_saved_register.
827
828 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
829
830 From Jim Ingham <jingham@apple.com>:
831 * event-top.c (gdb_disable_readline): New function.
832 (_initialize_event_loop): Move comment.
833
834 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
835
836 * event-loop.c (start_event_loop): Add comment.
837 Update copyright.
838
839 2002-11-05 Andrew Cagney <ac131313@redhat.com>
840
841 * infcmd.c (default_print_registers_info): Do not call
842 PRINT_REGISTER_HOOK.
843
844 2002-11-05 Andrew Cagney <ac131313@redhat.com>
845
846 * sparc-tdep.c (sparc_print_register_hook): Make static.
847 (sparc_print_registers_info): New function.
848 (sparc_do_registers_info): New function.
849 (sparclet_print_registers_info): New function.
850 (sparclet_do_registers_info): New function.
851 (do_sparc_print_registers_info): New function.
852 (sparc_print_registers): New static function, clone of infcmd.c's
853 default_print_registers_info.
854 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
855 (sparclet_do_registers_info): Declare.
856 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
857 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
858 Re-define.
859 (sparc_do_registers_info): Declare.
860 (PRINT_REGISTER_HOOK): Delete macro.
861 (sparc_print_register_hook): Delete declaration.
862
863 2002-11-05 David Carlton <carlton@math.stanford.edu>
864
865 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
866 functions.
867 (lookup_symbol_aux_local): New function.
868 (lookup_symbol_aux_symtabs): New function.
869 (lookup_symbol_aux_psymtabs): New function.
870
871 2002-11-05 David Carlton <carlton@math.stanford.edu>
872
873 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
874 previous values of 'objfile' and 'block'.
875
876 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
877
878 * values.c (value_change_enclosing_type): Set
879 enclosing_type field correctly also for the case where
880 more memory needs to be allocated.
881
882 2002-11-03 Mark Kettenis <kettenis@gnu.org>
883
884 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
885 of puts_filtered.
886
887 * i387-tdep.c (i387_print_float_info): Replace calls to
888 register_read and deprecated_read_register_gen with calls to
889 frame_register_read, and make the necessary adjustments to the
890 surrounding code.
891
892 2002-11-02 Andrew Cagney <ac131313@redhat.com>
893
894 * gdbarch.sh (register_reggroup_p): Allow default value.
895 * gdbarch.h, gdbarch.c: Regenerate.
896
897 2002-11-02 Andrew Cagney <ac131313@redhat.com>
898
899 * regcache.h: Add coment indicating replacements for deprecated
900 functions.
901
902 2002-11-02 Andrew Cagney <cagney@redhat.com>
903
904 * reggroups.h, reggroups.c: New files.
905 * regcache.c: Include "reggroups.h".
906 (enum regcache_dump_what): Add `regcache_dump_groups'.
907 (regcache_dump): Contract size of the "Type" column. When
908 specified, dump the register's groups.
909 (maintenance_print_register_groups): New function.
910 (_initialize_regcache): Add command `maint print register-groups'.
911 * Makefile.in (COMMON_OBS): Add reggroups.o
912 (SFILES): Add reggroups.c.
913 (reggroups_h): Define.
914 (regcache.o, gdbarch.o): Update dependencies.
915 (reggroups.o): Specify dependencies.
916 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
917 Add opaque declaration for `struct reggroup' in generated .h file.
918 Include "reggroups.h" in generated .c file.
919 gdbarch.h, gdbarch.c: Re-generate.
920
921 2002-11-02 Andrew Cagney <cagney@redhat.com>
922
923 * regcache.h (deprecated_read_register_gen): Rename
924 read_register_gen.
925 (deprecated_write_register_gen): Rename write_register_gen.
926 * i387-tdep.c: Update.
927 * x86-64-linux-nat.c: Update
928 * wince.c: Update.
929 * thread-db.c: Update.
930 * win32-nat.c: Update.
931 * mips-tdep.c: Update.
932 * d10v-tdep.c: Update.
933 * cris-tdep.c: Update.
934 * remote-sim.c: Update.
935 * remote-rdi.c: Update.
936 * remote-rdp.c: Update.
937 * frame.c: Update.
938 * target.c: Update.
939 * blockframe.c: Update.
940 * x86-64-tdep.c: Update.
941 * xstormy16-tdep.c: Update.
942 * sh-tdep.c: Update.
943 * s390-tdep.c: Update.
944 * rs6000-tdep.c: Update.
945 * sparc-tdep.c: Update.
946 * i386-tdep.c: Update.
947 * dwarf2cfi.c: Update.
948 * regcache.c: Update.
949
950 2002-11-01 Joel Brobecker <brobecker@gnat.com>
951
952 New interix-specific files:
953 * config/i386/nm-interix.h: New file.
954 * config/i386/interix.mh: New file.
955 * config/i386/interix.mt: New file.
956 * i386-interix-nat.c: New file.
957 * i386-interix-tdep.c: New file.
958
959 2002-11-01 Andrew Cagney <cagney@redhat.com>
960
961 * frame.h (deprecated_generic_get_saved_register): Rename
962 generic_get_saved_register.
963 * blockframe.c (deprecated_generic_get_saved_register): Update.
964 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
965 (xstormy16_frame_saved_register): Update.
966 * sh-tdep.c (sh_gdbarch_init): Update.
967 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
968 * ia64-tdep.c (ia64_get_saved_register): Update.
969 * cris-tdep.c (cris_gdbarch_init): Update.
970 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
971 * arm-tdep.c (arm_gdbarch_init): Update.
972
973 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
974
975 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
976
977 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
978
979 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
980 trampolines in sigaction.
981
982 2002-10-31 Andrew Cagney <cagney@redhat.com>
983
984 * h8300-tdep.c: Include "gdb_assert.h".
985 (h8300_print_register): Add gdbarch, file and frame parameters.
986 Use frame_read_unsigned_register to read the register's value.
987 Use fprintf_filtered to display output.
988 (h8300_print_registers_info): Replace h8300_do_registers_info.
989 (h8300_gdbarch_init): Set print_registers_info.
990
991 2002-10-31 Andrew Cagney <cagney@redhat.com>
992
993 * frame.c (frame_read_unsigned_register): New function.
994 (frame_read_signed_register): New function.
995 * frame.h (frame_read_unsigned_register): Declare.
996 (frame_read_signed_register): Declare.
997
998 2002-10-31 Andrew Cagney <cagney@redhat.com>
999
1000 * h8500-tdep.c (h8500_print_registers_info): New static function,
1001 clone of infcmd.c's default_print_registers_info.
1002 (h8500_do_registers_info): New funtion.
1003 (h8500_print_register_hook): Rename print_register_hook, make
1004 static.
1005
1006 * config/h8500/tm-h8500.h: Update copyright.
1007 (DEPRECATED_DO_REGISTERS_INFO): Define.
1008 (h8500_do_registers_info: Declare.
1009 (PRINT_REGISTER_HOOK): Delete macro.
1010 (print_register_hook): Delete function.
1011
1012 2002-10-31 Andrew Cagney <cagney@redhat.com>
1013
1014 * z8k-tdep.c (z8k_print_register_hook): Make static.
1015 (z8k_print_registers_info): New static function, clone of
1016 infcmd.c's default_print_registers_info.
1017 (z8k_do_registers_info): New function. Wrap
1018 z8k_print_registers_info.
1019 * config/z8k/tm-z8k.h: Update copyright.
1020 (PRINT_REGISTER_HOOK): Delete macro.
1021 (z8k_print_register_hook): Delete declaration.
1022 (DEPRECATED_DO_REGISTERS_INFO): Define.
1023 (z8k_do_registers_info): Declare.
1024
1025 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1026
1027 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1028 as this is already provided by value.h, and was actually causing
1029 a compilation error because of a conflict in parameter type
1030 declaration due to a missing const keyword.
1031 (low_text_segment_addres): Fix a compilation warning.
1032
1033 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1034
1035 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1036 registers without a name.
1037 (mips_linux_cannot_store_register): Don't store registers without
1038 a name.
1039
1040 2002-10-28 David Carlton <carlton@math.stanford.edu>
1041
1042 * symtab.c (find_addr_symbol): Delete. (It was already commented
1043 out.)
1044 * symtab.h: Delete prototype for find_addr_symbol.
1045
1046 2002-10-26 Andrew Cagney <cagney@redhat.com>
1047
1048 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1049 DO_REGISTERS_INFO.
1050 gdbarch.h, gdbarch.c: Re-generate.
1051 * infcmd.c (default_print_registers_info): Update reference.
1052 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1053 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1054 * sh-tdep.c (sh_gdbarch_init): Ditto.
1055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1056 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1057
1058 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1059
1060 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1061 cfi_init_extra_frame_info.
1062 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1063 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1064
1065 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1066 target where necessary. Add more comments and remove the ones
1067 that don't provide any useful information.
1068
1069 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1070 deprecated_read_register_dummy with
1071 frame_unwind_unsigned_register.
1072
1073 * i386-tdep.c (i386_extract_struct_value_address): Use
1074 regcache_raw_read_unsigned instead of
1075 regcache_cooked_read_unsigned since we know that the register
1076 we're reading isn't a pseudo register. Rename variable 'val' into
1077 the more descriptive 'addr'.
1078
1079 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1080 (x86_64_push_return_address): Add comment.
1081 (x86_64_pop_frame): Make static.
1082 (examine_argument): Clarify comment.
1083 (x86_64_skip_prologue): Make prolog_expact variable static.
1084
1085 * dwarf2cfi.c: Fix some formatting problems.
1086 (context_cpy, read_encoded_pointer): Clarify comments.
1087
1088 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1089 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1090 i386 target back into x86_64_gdbarch_init. Add some comments and
1091 remove meaningless ones.
1092
1093 2002-10-25 Andrew Cagney <cagney@redhat.com>
1094
1095 * complaints.h (struct deprecated_complaint): Rename `struct
1096 complaint'.
1097 * complaints.c (complain): Update.
1098 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1099 incorrect comment indicating that "symfile.h" was being included
1100 for the `struct complaint' definition.
1101 * remote-vx.c: Update.
1102 * objc-lang.c: Update.
1103 * xcoffread.c: Update.
1104 * hpread.c: Update.
1105 * mdebugread.c: Update.
1106 * stabsread.c: Update.
1107 * dwarf2read.c: Update.
1108 * dwarfread.c: Update.
1109 * elfread.c: Update.
1110 * coffread.c: Update.
1111 * stabsread.h: Update.
1112 * dbxread.c: Update.
1113 * buildsym.c: Update.
1114 * gdbtypes.c: Update.
1115 * macrotab.c: Update.
1116
1117 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1118
1119 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1120 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1121 (x86_64_init_abi): ...new function.
1122
1123 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1124 * i386v-nat.c: Include "i386-tdep.h".
1125
1126 2002-10-25 Andrew Cagney <cagney@redhat.com>
1127
1128 * gdbtypes.c (address_space_name_to_int): Update.
1129 (address_space_int_to_name): Update.
1130 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1131 multi-arch predicate.
1132 (address_class_name_to_type_flags): Ditto.
1133 * gdbarch.h, gdbarch.c: Re-generate.
1134
1135 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1136
1137 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1138
1139 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1140
1141 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1142
1143 * symtab.h (INIT_SAL): Delete macro.
1144 (init_sal): Export.
1145 * symtab.c (init_sal): New function.
1146
1147 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1148 to init_sal function call.
1149 (find_sal_from_funcs_and_line): Ditto.
1150 (all_sals_for_line): Ditto.
1151 * breakpoint.c (create_internal_breakpoint): Ditto.
1152 (create_fork_vfork_event_catchpoint): Ditto.
1153 (create_exec_event_catchpoint): Ditto.
1154 (parse_breakpoint_sals): Ditto.
1155 (watch_command_1): Ditto.
1156 (handle_gnu_4_16_catch_command): Ditto.
1157 (clear_command): Ditto.
1158 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1159 * infcmd.c (run_stack_dummy): Ditto.
1160 * infrun.c (process_event_stop_test): Ditto.
1161 (check_sigtramp2): Ditto.
1162 (step_over_function): Ditto.
1163 * linespec.c (decode_line_2): Ditto.
1164 (decode_line_1): Ditto.
1165 * source.c (line_info): Ditto.
1166 * symtab.c (find_pc_sect_line): Ditto.
1167
1168 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1169
1170 * dwarf2cfi.c (struct context)
1171 (struct context_reg): Moved to dwarf2cfi.h
1172 (context_alloc, frame_state_alloc, context_cpy):
1173 Made extern instead of static, removed prototypes.
1174 * dwarf2cfi.h (struct context)
1175 (struct context_reg): New, moved from dwarf2cfi.c
1176 (context_alloc, frame_state_alloc, context_cpy):
1177 New prototypes.
1178 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1179 Changed from static to extern.
1180 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1181 (LINUX_SIGCONTEXT_FP_OFFSET)
1182 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1183 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1184 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1185 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1186 set_gdbarch_*() calls now use x86-64 specific functions
1187 instead of DWARF2 CFI ones.
1188 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1189 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1190 (x86_64_init_extra_frame_info): New prototypes.
1191
1192 2002-10-23 David Carlton <carlton@math.stanford.edu>
1193
1194 * linespec.c: #include "parser-defs.h".
1195 Delete prototype for find_template_name_end.
1196 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1197
1198 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1199
1200 * NEWS: add recent mi fixes.
1201 * varobj.c (struct varobj): Add new "updated" flag.
1202 (new_variable): Default "updated" flag to 0.
1203 (varobj_set_value): Set "updated" flag to 1 if value
1204 changes.
1205 (varobj_update): Check varobj "updated" flag before
1206 comparing old and refreshed values. Fix for
1207 PR gdb/702.
1208
1209 2002-10-23 David Carlton <carlton@math.stanford.edu>
1210
1211 * parse.c (parse_exp_1): Use BLOCK_START.
1212 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1213 SYMBOL_BLOCK_VALUE.
1214 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1215
1216 2002-10-23 David Carlton <carlton@math.stanford.edu>
1217
1218 * symtab.c: Delete cplusplus_hint.
1219 Delete prototype for find_template_name_end.
1220
1221 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1222
1223 * symtab.h: Update comment.
1224
1225 2002-10-23 Michael Snyder <msnyder@redhat.com>
1226
1227 * printcmd.c (address_info): Restore quotes in output.
1228 * valops.c (value_of_local): Restore quotes in error message.
1229
1230 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1231
1232 * symtab.c (symbol_demangled_name): New function.
1233 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1234 turning most of it into a function.
1235 (symbol_demangled_name): Export.
1236
1237 2002-10-23 Michael Snyder <msnyder@redhat.com>
1238
1239 * valops.c (value_of_local): Restore quotes in error message.
1240
1241 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1242
1243 * symtab.c (symbol_init_language_specific): New function.
1244 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1245 turning most of it into a function.
1246 (symbol_init_language_specific): Export.
1247
1248 2002-10-23 David Carlton <carlton@math.stanford.edu>
1249
1250 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1251 (dwarf_attr_name): Ditto.
1252 (dwarf_type_encoding_name): Ditto.
1253 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1254 (process_die): Handle DW_TAG_namespace,
1255 DW_TAG_imported_declaration, DW_TAG_imported_module.
1256 (read_namespace): New function.
1257
1258 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1259
1260 * configure.in: Define NEW_PROC_API on Interix too.
1261 * configure: Regenerate.
1262
1263 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1264
1265 * configure: Regenerate using the proper version of autoconf.
1266
1267 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1268
1269 * findvar.c (read_var_value): Temporarily disable TLS code, until
1270 complete TLS support is added.
1271
1272 2002-10-21 Jim Blandy <jimb@redhat.com>
1273 Elena Zannoni <ezannoni@redhat.com>
1274
1275 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1276 for thread local storage locations.
1277 (struct symbol): Add objfile field.
1278 (SYMBOL_OBJFILE): Define.
1279 * dwarf2read.c (is_thread_local): New static variable.
1280 (new_symbol): If variable is in thread local fill in address class
1281 and objfile appropriately.
1282 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1283 stack operation.
1284 * printcmd.c (address_info): Print the information for thread
1285 local storage variable.
1286 * findvar.c (read_var_value): In case of thread local variable,
1287 defer to the target vector code to compute address.
1288
1289 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1290
1291 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1292 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1293
1294 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1295
1296 * symtab.h (address_class): Rename
1297 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1298 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1299 * printcmd.c (address_info): Ditto.
1300 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1301
1302 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1303
1304 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1305 DBREG_DRX macro to acces debug registers.
1306
1307 * Makefile.in (i386obsd-tdep.o): New target.
1308
1309 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1310 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1311
1312 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1313 * config/i386/obsd.mt: New file.
1314 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1315 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1316 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1317 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1318 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1319 * i386obsd-tdep.c: New file.
1320
1321 2002-10-19 Adam Fedor <fedor@gnu.org>
1322
1323 * objc-exp.y (name_not_typename): Fix invalid comment.
1324
1325 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1326
1327 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1328 to allocate partial syms and macro byte caches.
1329
1330 2002-10-18 David Carlton <carlton@math.stanford.edu>
1331
1332 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1333
1334 2002-10-18 Adam Fedor <fedor@gnu.org>
1335
1336 * stabsread.c (find_name_end): New function.
1337 (define_symbol): Use it.
1338
1339 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1340
1341 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1342 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1343 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1344 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1345
1346 2002-10-17 David Carlton <carlton@math.stanford.edu>
1347
1348 * symfile.h: Add opaque declaration for struct obstack.
1349 Declare obsavestring to take a const char *.
1350 * symfile.c (obsavestring): Make first argument a const char *.
1351
1352 2002-10-16 Adam Fedor <fedor@gnu.org>
1353
1354 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1355 names when matching breakpoints in current file.
1356
1357 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1358
1359 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1360 (read_tag_pointer_type): Add address class support.
1361 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1362 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1363 New methods.
1364 * gdbarch.h, gdbarch.c: Regenerate.
1365 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1366 (make_type_with_address_space, recursive_type_dump): Add address
1367 class support.
1368 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1369 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1370 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1371
1372 2002-10-16 Klee Dienes <kdienes@apple.com>
1373
1374 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1375 to get the last character of a char[] buffer, not
1376 name[sizeof(vptr_name)-1].
1377
1378 2002-10-14 Adam Fedor <fedor@gnu.org>
1379
1380 * symtab.h: New objc_specific struct.
1381 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1382 (SYMBOL_DEMANGLED_NAME): Likewise.
1383
1384 2002-10-14 Adam Fedor <fedor@gnu.org>
1385
1386 * symfile.c (init_filename_language_table): Add ObjC file extension.
1387
1388 2002-10-14 Adam Fedor <fedor@gnu.org>
1389
1390 * utils.c (puts_filtered_tabular): New function.
1391 (fprintf_symbol_filtered): Get ObjC demangled name.
1392 * defs.h (puts_filtered_tabular): Declared.
1393
1394 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1395
1396 * c-lang.h (c_type_print_varspec_prefix): Delete.
1397 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1398 ``need_post_space'' parameter. Adjust all callers.
1399
1400 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1401
1402 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1403 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1404 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1405 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1406
1407 2002-10-13 Adam Fedor <fedor@gnu.org>
1408
1409 * source.c (print_source_lines): Update comments.
1410
1411 2002-10-13 Adam Fedor <fedor@gnu.org>
1412
1413 * valops.c (value_of_local): New function.
1414 (value_of_this): Use it.
1415 * value.h (value_of_local): Declared.
1416
1417 2002-10-13 Adam Fedor <fedor@gnu.org>
1418
1419 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1420 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1421
1422 2002-10-12 Adam Fedor <fedor@gnu.org>
1423
1424 * language.c (binop_result_type): Add language_objc to case.
1425 (integral_type): Likewise.
1426 (character_type): Likewise.
1427 (string_type): Likewise.
1428 (boolean_type): Likewise.
1429 (structured_type): Likewise.
1430 (binop_type_check): Likewise.
1431
1432 2002-10-11 Adam Fedor <fedor@gnu.org>
1433
1434 * printcmd.c (address_info): Print 'self' for ObjC.
1435
1436 2002-10-11 Adam Fedor <fedor@gnu.org>
1437
1438 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1439 OP_SELF.
1440
1441 2002-10-11 Adam Fedor <fedor@gnu.org>
1442
1443 * language.h (CAST_IS_CONVERSION): Add language_objc.
1444
1445 2002-10-11 Adam Fedor <fedor@gnu.org>
1446
1447 * defs.h (enum language): Add language_objc.
1448
1449 2002-10-11 Klee Dienes <kdienes@apple.com>
1450
1451 * corefile.c (read_memory_typed_address): New function.
1452 * gdbcore.h (read_memory_typed_address): Add prototype.
1453 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1454 to read a value destined for a CORE_ADDR, not read_memory_integer.
1455 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1456 (f77_get_dynamic_lowerbound): Ditto.
1457
1458 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1459
1460 * utils.c (string_to_core_addr): After turning string into
1461 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1462 which will do necessary sign-extension, etc.
1463
1464 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1465
1466 * c-exp.y (THIS): Delete token and grammar rule.
1467 (yylex): Don't return THIS.
1468 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1469 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1470 * demangle.c (cplus_markers): Update comment. Put '$'
1471 first. Remove CPLUS_MARKER.
1472 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1473 * jv-exp.y (THIS): Delete token and grammar rule.
1474 (yylex): Don't return THIS.
1475 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1476 * objc-exp.y (THIS): Delete token and grammar rule.
1477 (yylex): Don't return THIS.
1478 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1479 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1480 (read_member_functions): Likewise for opname.
1481 (read_tilde_fields): Use is_cplus_marker.
1482
1483 * defs.h (CPLUS_MARKER): Don't define.
1484 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1485 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1486 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1487 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1488 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1489
1490 * config/i386/tm-i386v4.h: Delete file.
1491 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1492 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1493 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1494 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1495 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1496 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1497 * config/i386/i386v4.mt (TM_FILE): Likewise.
1498 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1499
1500 2002-10-10 Marko Mlinar <markom@opencores.org>
1501
1502 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1503 accidentially not commited 2002-10-09
1504 * gdbarch.h, gdbarch.c: Re-generate.
1505
1506 2002-10-09 Marko Mlinar <markom@opencores.org>
1507
1508 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1509 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1510 * gdbarch.h, gdbarch.c: Re-generate.
1511
1512 2002-10-08 Petr Sorfa <petrs@caldera.com>
1513
1514 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1515
1516 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1517 so we can work on more than one compilation unit at a time. This
1518 helps prepare GDB to handle inter-CU die references.
1519 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1520 the code to be defined before struct comp_unit_head.
1521 (comp_unit_head): Added new members - offset, cu_head,
1522 begin_die, next and dwarf2_abbrevs.
1523 (dwarf2_abbrevs): Removed single static var; now member of
1524 struct comp_unit_head.
1525 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1526 members.
1527 (psymtab_to_symtab_1): Changed to work with the new
1528 struct comp_unit_head.
1529 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1530 constructs the dwarf2_abbrevs[] inside the cu_header.
1531 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1532 dwarf2_abbrev table to clean up.
1533 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1534 handling of dwarf2_abbrevs inside the cu_header.
1535 (read_partial_die): Now supports the call to the new
1536 dwarf2_lookup_abbrev.
1537 (read_full_die): Now supports the call to the new
1538 dwarf2_lookup_abbrev.
1539
1540 2002-10-06 Christopher Faylor <cgf@redhat.com>
1541
1542 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1543 insure that shell variables, such as "transformed_name" are propagated
1544 to later shell statements in rule.
1545
1546 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1547
1548 * config/i386/nm-i386sco.h: Add protection against
1549 multiple-inclusion. Include "i386/nm-i386v.h".
1550 (REGISTER_U_ADDR): Remove define.
1551 (i386_register_u_addr): Remove prototype.
1552
1553 2002-10-04 Michael Snyder <msnyder@redhat.com>
1554
1555 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1556 before treating it as a single-step event.
1557
1558 2002-10-03 Adam Fedor <fedor@gnu.org>
1559
1560 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1561 (objc_demangle): Remove assignment in if statements, Replace
1562 free with xfree.
1563 (add_msglist): Likewise.
1564 (end_msglist): Likewise.
1565 (complare_selectors): Likewise.
1566 (selectors_info): Likewise.
1567 (compare_classes): Likewise.
1568 (classes_info): Likewise.
1569 (print_object_command): Likewise.
1570 (find_objc_msgcall_submethod): Replace PTR with void *.
1571 * objc-lang.h: Remove check for __STDC__.
1572
1573 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1574
1575 * ui-out.h (ui_out_field_fmt_int): New prototype.
1576 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1577 of field width and alignment.
1578 * stack.c (print_frame_info_base): When printing frame level, use
1579 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1580 PR gdb/192
1581
1582 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1583
1584 * MAINTAINERS: Add self to Write After Approval list.
1585
1586 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1587
1588 * infcmd.c (interrupt_target_command_wrapper): Delete.
1589 (interrupt_target_command): Make non static.
1590 (nofp_registers_info): Make static.
1591 * stack.c (return_command_wrapper): Delete.
1592 (return_command): Make non static.
1593
1594 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1595
1596 * event-top.c (gdb_setup_readline): New function. Code moved from
1597 _initialize_event_loop().
1598 (_initialize_event_loop): Call gdb_setup_readline().
1599
1600 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1601
1602 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1603 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1604 * gdbarch.h, gdbarch.c: Re-generate.
1605
1606 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1607
1608 Fix PR gdb/778
1609 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1610 before recursing.
1611 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1612 of fill_in_vptr_fieldno.
1613
1614 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1615
1616 * inferior.h (registers_info, stepi_command, nexti_command,
1617 continue_command, interrupt_target_command): Export from infcmd.c.
1618 * frame.h (args_info, selected_frame_level_changed_hook,
1619 return_command): Export from stack.c.
1620 * v850ice.c (stepi_command, nexti_command, continue_command): use
1621 prototypes from inferior.h.
1622 * tracepoint.c (registers_info, args_info, locals_info): Use
1623 prototypes from frame.h and inferior.h.
1624 * Makefile.in (mi-main.o): Add dependency on frame.h.
1625
1626 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1627
1628 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1629 value in register 3 adjusted by ppc_gp0_regnum.
1630
1631 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1632
1633 2002-10-02 Marko Mlinar <markom@opencores.org>
1634
1635 * MAINTAINERS: Add myself to the Write After Approval list.
1636
1637 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1638
1639 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1640 of the section for the N64 ABI, fixed.
1641
1642 * config/mips/tm-irix6.h: Include solib.h.
1643
1644 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1645
1646 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1647 GNU operators.
1648
1649 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1650
1651 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1652 and that "mi0" syntax has been removed.
1653
1654 2002-09-30 David Carlton <carlton@math.stanford.edu>
1655
1656 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1657 * ppc-sysv-tdep.c: #include "gdb_string.h".
1658 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1659 pacify GCC.
1660
1661 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1662
1663 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1664 "vrsave"'s register number.
1665
1666 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1667
1668 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1669 use frame_unwind_signed_register to obtain the PC.
1670 (mips_frame_chain): Handle a generic dummy frame.
1671 (mips_init_extra_frame_info): When a generic dummy frame, don't
1672 re-compute the frame base.
1673 (mips_pop_frame): Handle generic dummy frames.
1674 (mips_gdbarch_init): When generic dummy frames, set
1675 use_generic_dummy_frames, push_dummy_frame to
1676 generic_push_dummy_frame, pc_in_call_dummy to
1677 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1678 generic_save_dummy_frame_tos.
1679
1680 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1681
1682 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1683 against TOP when TOP was explictly set.
1684 (generic_push_dummy_frame): Set TOP to zero.
1685
1686 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1687
1688 * event-loop.c (start_event_loop): Rename variable 'result' to
1689 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1690
1691 2002-09-30 Keith Seitz <keiths@redhat.com>
1692
1693 * gdb-events.sh (selected_thread_changed): New event.
1694 * gdb-events.c: Regenerated.
1695 * gdb-events.h: Regenerated.
1696
1697 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1698
1699 * MAINTAINERS: Add self to Write After Approval list.
1700
1701 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1702
1703 * disasm.c: New file.
1704 * disasm.h: New file.
1705 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1706 (compare_lines): Ditto.
1707 (dump_insns): Ditto.
1708 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1709 argument.
1710 (do_assembly_only): Ditto.
1711 (do_disassembly): Renamed to gdb_disassembly and moved to
1712 disasm.c. Sdded uiout argument.
1713 * Makefile.in: Add new files. Reorder SFILES list. Update
1714 dependencies. Include libgdb.a later in the insight executable.
1715
1716 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1717
1718 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1719 bfd/elf64-alpha-fbsd.c.
1720
1721 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1722
1723 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1724 i386gnu-tdep.c.
1725
1726 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1727
1728 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1729 __FUNCTION__.
1730 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1731 function name.
1732 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1733 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1734 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1735 (S_msg_sig_post_reply): Ditto.
1736
1737 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1738
1739 * sh-tdep.c (sh_use_struct_convention): Use definition according
1740 to ABI.
1741 (sh_push_arguments): Store in register with correct endianess.
1742 (sh_default_store_return_value): Ditto.
1743 (sh_gdbarch_init): Set sizeof long double to 8.
1744
1745 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1746
1747 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1748 Fix some whitespace problems.
1749
1750 2002-09-27 David Carlton <carlton@math.stanford.edu>
1751
1752 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1753 (mcore-tdep.o): Ditto.
1754 (ns32k-tdep.o): Ditto.
1755 (ns32knbsd-tdep.o): Ditto.
1756 (sh3-rom.o): Ditto.
1757 (vax-tdep.o): Ditto.
1758 * cris-tdep.c: #include "gdb_string.h"
1759 * mcore-tdep.c: Ditto.
1760 * ns32k-tdep.c: Ditto.
1761 * ns32knbsd-tdep.c: Ditto.
1762 * sh3-rom.c: Ditto.
1763 * vax-tdep.c: Ditto.
1764
1765 2002-09-27 David Carlton <carlton@math.stanford.edu>
1766
1767 * config/djgpp/fnchange.lst: Add entries for
1768 gdb/testsuite/gdb.c++/m-static files.
1769
1770 2002-09-27 Jim Wilson <wilson@redhat.com>
1771
1772 * MAINTAINERS: Add myself to the Write After Approval list.
1773
1774 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1775
1776 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1777
1778
1779 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1780
1781 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1782 frame.
1783
1784 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1785
1786 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1787 (rs6000_struct_return_address): Delete variable.
1788 (rs6000_store_struct_return): Update.
1789 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1790 deprecated_extract_struct_value_address.
1791 (rs6000_frame_align): New function.
1792 (rs6000_gdbarch_init): Set frame_align.
1793
1794 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1795
1796 From Grace Sainsbury <graces@redhat.com>:
1797 * Makefile.in (gdbtk-main.o): New target.
1798 (gdb.o): New target.
1799 (main_h): Define.
1800 (main.o): Update dependencies.
1801 (gdb$(EXEEXT)): Add gdb.o.
1802 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1803 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1804 (SUBDIR_GDBTK_CLEAN): Set.
1805 (install-gdbtk): Install the insight binary.
1806 (uninstall-gdbtk): New target.
1807 (all-gdbtk, clean-gdbtk): New rule.
1808 * top.c (use_windows): Default to zero.
1809 * main.c: Include "main.h".
1810 (main): Delete.
1811 (struct captured_main_args): Delete.
1812 (gdb_main): New function.
1813 * main.h: New file.
1814 * gdb.c: New File.
1815
1816 2002-09-25 Andrew Cagney <cagney@redhat.com>
1817
1818 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1819 (frame_map_regnum_to_name): New function.
1820 (frame_map_name_to_regnum): New function.
1821 * frame.h (frame_map_name_to_regnum): Declare.
1822 (frame_map_regnum_to_name): Declare.
1823 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1824 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1825 * parse.c: Do not include "builtin-regs.h".
1826 (target_map_name_to_register): Delete function.
1827 (write_dollar_variable): Use frame_map_name_to_regnum.
1828 * parser-defs.h (target_map_name_to_register): Delete declaration.
1829 * expprint.c: Include "frame.h".
1830 (print_subexp): Use frame_map_regnum_to_name.
1831 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1832 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1833
1834 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1835
1836 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1837 wasn't saved, and the next innermost frame is a dummy, return the
1838 dummy frame's link register.
1839
1840 2002-09-24 Jim Blandy <jimb@redhat.com>
1841
1842 Fix from Paul Breed:
1843 * main.c (captured_main): Add a `break' after the case for 'b'.
1844
1845 2002-09-24 Keith Seitz <keiths@redhat.com>
1846
1847 * varobj.c (c_type_of_child): Use get_target_type instead
1848 of TYPE_TARGET_TYPE.
1849
1850 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1851
1852 * source.c (get_current_or_default_source_symtab_and_line): Remove
1853 function.
1854 (set_default_source_symtab_and_line): New function. Attempts to
1855 determine a source file to list lines from if one is not currently
1856 defined.
1857 (get_current_source_symtab_and_line): Initialize sal.pc and
1858 sal.end fields.
1859 (set_current_source_symtab_and_line): Mark argument as const.
1860 * source.h: Update declarations and comments.
1861 * linespec.c (decode_line_1): Replace call to removed routine above.
1862 * stack.c (print_frame_info_base): Ditto.
1863 * cli/cli-cmds.c (edit_command): Ditto.
1864 (list_command): Ditto.
1865
1866 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1867
1868 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1869 sal.pc and sal.end fields.
1870 (get_current_or_default_source_symtab_and_line): Ditto.
1871 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1872 so we do not cause a new source symtab to be searched for (reverting an
1873 unintentional change from the 2002-09-20 patch).
1874 * scm-lang.c (scm_unpac): Ditto.
1875
1876 2002-09-21 Andrew Cagney <cagney@redhat.com>
1877
1878 * complaints.c (symfile_explanations): Remove new-line from
1879 ``isolated_message''.
1880 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1881 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1882
1883 2002-09-20 Nick Clifton <nickc@redhat.com>
1884
1885 * NEWS: Announce that V850EA ISA is no longer supported.
1886 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1887
1888 2002-09-20 David Carlton <carlton@math.stanford.edu>
1889
1890 * Makefile.in (c-lang.o): Correct dependencies.
1891 (utils.o): Gather dependencies.
1892 (charset.o): Move.
1893 * c-lang.c: #include "gdb_string.h"
1894
1895 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1896
1897 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1898 * cli/cli-cmds.c (list_command): New function. Implements the new
1899 cli edit command.
1900 (_init_cli_cmds): Add new command definition.
1901 * gdb.1: Document edit command.
1902 * doc/gdb.texinfo: Document edit command.
1903
1904 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1905
1906 * source.c: Make global variables current_source_symtab and
1907 current_source_line static.
1908 (list_command): Moved to cli/cli-cmds.c.
1909 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1910 (get_first_line_listed): New accessor function.
1911 (get_lines_to_list): New accessor function.
1912 (get_current_source_symtab_and_line): New function. Retrieves the
1913 position in the source code that we consider current.
1914 (get_current_or_default_source_symtab_and_line): New function.
1915 Like the above but attempts to determine a default position if one
1916 is not currently defined.
1917 (set_current_source_symtab_and_line): New function. Sets the source
1918 code position considered current and returns the previously set one.
1919 (clear_current_source_symtab_and_line): Reset stored information about
1920 a current source line.
1921 (_initialize_source): Remove registration for the "list" command and
1922 its alias.
1923 * source.h: Add declarations for the new functions above.
1924 * symtab.h: Remove declarations for the global variables mentioned
1925 above.
1926 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1927 obtain current source line.
1928 * linespec.c (decode_line_1): Ditto.
1929 * macroscope.c (default_macro_scope): Ditto.
1930 * scm-lang.c (scm_unpac): Ditto.
1931 * stack.c (print_frame_info_base): Ditto.
1932 * symfile.c (clear_symtab_users): Ditto.
1933 * symtab.c (decode_line_spec): Ditto.
1934 * cli/cli-cmds.c (list_command): Moved here from source.c.
1935 (ambiguous_line_spec): Moved here from source.c.
1936 (_init_cli_cmds): Add definition for "list" and its alias.
1937 * Makefile.in: Update dependencies.
1938
1939 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1940
1941 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1942 with what gcc thinks is correct.
1943
1944 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1945
1946 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1947 multiple register push instruction.
1948
1949 2002-09-19 Jim Blandy <jimb@redhat.com>
1950
1951 Add support for distinct host and target character sets.
1952 * charset.c, charset.h: New files.
1953 * c-exp.y: #include "charset.h".
1954 (yylex): Convert character and string literals to the target
1955 character set, before returning them as the semantic value of the
1956 token.
1957 * c-lang.c: #include "charset.h".
1958 (c_emit_char): Use charset-specific methods to recognize
1959 characters with backslash escape forms, to decide which characters
1960 to print literally and which to print using numeric escape
1961 sequences, and to convert target characters to host characters
1962 before printing.
1963 * utils.c: #include "charset.h".
1964 (no_control_char_error): New function.
1965 (parse_escape): Use charset-specific methods to recognize
1966 backslash escapes, parse `control character' notation, and convert
1967 characters from the host character set to the target character set.
1968 * configure.in: Set the default host character set.
1969 Check where to find iconv, and what its argument types might be.
1970 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1971 * Makefile.in (SFILES): List charset.c.
1972 (COMMON_OBS): List charset.o.
1973 (charset.o): New rule.
1974 (charset_h): New header dependency variable.
1975 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1976 (LIBICONV): New variable, set by configure.
1977 (CLIBS): Include $(LIBICONV) here.
1978 * aclocal.m4, config.in, configure: Regenerated.
1979
1980 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1981
1982 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1983 bison 1.35 warning.
1984
1985 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1986
1987 * gdb_mbuild.sh: New file.
1988
1989 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1990
1991 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1992
1993 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1994
1995 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1996 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1997 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1998 valops.c, value.h: Revert previous change.
1999
2000 2002-09-18 Michael Snyder <msnyder@redhat.com>
2001
2002 Preliminary support for Objective-C:
2003 * defs.h (language_objc): New enum value.
2004 (puts_filtered_tabular): Declaration only, exported from utils.c.
2005 (skip_quoted): Delete, declared in completer.h.
2006 * c-exp.y: Include completer.h.
2007 * p-exp.y: Ditto.
2008 * jv-exp.y: Ditto.
2009 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2010 New operator enum values.
2011 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2012 * language.c (binop_result_type): Handle language_objc case.
2013 (integral_type, character_type, string_type, boolean_type,
2014 structured_type, binop_type_check): Ditto.
2015 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2016 (struct objc_specific): Add to general_symbol_info.
2017 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2018 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2019 * parser-defs.h (struct objc_class_str): New struct type.
2020 (start_msglist, end_msglist, add_msglist): Declaration only,
2021 exported from objc-lang.c.
2022 * value.h (value_of_local, value_nsstring,
2023 call_function_by_hand_expecting_type): Exported from valops.c.
2024 * valops.c (find_function_addr): Export.
2025 (call_function_by_hand_expecting_type): New function.
2026 (value_of_local): New function.
2027 * symfile.c (init_filename_language_table): Add ".m" extension
2028 for Objective-C.
2029 * utils.c (puts_filtered_tabular): New function.
2030 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2031 (set/show demangle): Extend help-string to refer to ObjC.
2032 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2033 * stabsread.c (symbol_reference_defined): Objective-C symbols
2034 may contain colons: make allowances when scanning stabs strings
2035 for colons.
2036 (objc_find_colon): New function.
2037 * printcmd.c (address_info): If language == objc then print
2038 "self" instead of "this".
2039 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2040 OP_NSSTRING, and OP_SELF.
2041 (prefixify_subexp): Ditto.
2042 * source.c (print_source_lines): Mention objc in comment.
2043 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2044 method names.
2045
2046 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2047
2048 * complaints.h: Update copyright.
2049 (struct complaints): Declare.
2050 (struct complaint): Make `message' constant.
2051 (internal_complaint): Declare.
2052 (complaint): Declare.
2053 (complaint_root): Delete declaration.
2054 (symfile_complaints): Delete declaration.
2055 (struct complaints): Add opaque declaration.
2056 (clear_complaints): Add a complaints parameter.
2057 * complaints.c: Update copyright.
2058 (enum complaint_series): Define.
2059 (complaint_root): Delete.
2060 (struct complaints): Define.
2061 (complaint_sentinel, symfile_complaint_book): New variables.
2062 (symfile_explanations, symfile_complaints): New variables.
2063 New variables.
2064 (get_complaints): New function.
2065 (vcomplaint): New function.
2066 (complaint): New function.
2067 (internal_complaint): New function.
2068 (complain): Call vcomplain with symfile_complaint.
2069 (clear_complaints): Rewrite.
2070 (_initialize_complaints): Use add_setshow_command.
2071 * Makefile.in (complaints.o): Update dependencies.
2072 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2073 to call to clear_complaints.
2074 (new_symfile_objfile, reread_symbols): Ditto.
2075 (oldsyms_complaint): Delete.
2076 (empty_symtab_complaint, unknown_option_complaint): Delete.
2077 (free_named_symtabs): Use complaint instead of complain.
2078
2079 2002-09-18 Michael Snyder <msnyder@redhat.com>
2080
2081 Contributed by Apple Computer, Inc. Merged with current sources
2082 by Adam Fedor <fedor@doc.com> [cagney].
2083
2084 * objc-lang.c: First clean-up round: comments, indentation.
2085 * objc-lang.h: Ditto.
2086 * objc-lang.y: Ditto.
2087
2088 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2089
2090 * maint.c (maintenance_internal_error): Print the parameter as the
2091 error message.
2092 (maintenance_internal_warning): New function.
2093 (_initialize_maint_cmds): Add command `maint internal-warning'.
2094
2095 * defs.h (internal_warning, internal_vwarning): Declare.
2096 * utils.c (struct internal_problem): Define.
2097 (internal_vproblem): New function.
2098 (internal_warning): New function.
2099 (internal_vwarning): New function.
2100 (internal_warning_problem, internal_error_problem): New variables.
2101 (internal_verror): Just call internal_vproblem.
2102
2103 2002-09-18 Michael Snyder <msnyder@redhat.com>
2104
2105 * objc-lang.c: New file, support for Objective-C.
2106 Preliminary check-in, not yet integrated into gdb.
2107 * objc-lang.h: New file.
2108 * objc-exp.y: New file.
2109
2110 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2111
2112 * infrun.c (signal_stop_update): Convert definition to ISO C.
2113 (signal_print_update): Ditto.
2114 (signal_pass_update): Ditto.
2115 * inflow.c (terminal_save_ours): Ditto.
2116
2117 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2118 comments.
2119
2120 * config/djgpp/fnchange.lst: Handle name clashes between
2121 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2122 bfd/coff-tic80.c.
2123
2124 * i386-linux-tdep.h: Fix tipo.
2125
2126 2002-09-18 Adam Fedor <fedor@gnu.org>
2127
2128 * MAINTAINERS: Add myself to the Write After Approval list.
2129
2130 2002-09-18 Jim Blandy <jimb@redhat.com>
2131
2132 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2133 texthigh and textlow to reader-specific structs caused
2134 objfile_relocate to miss them. This is fixable, but the work that
2135 the change was supposed to prepare GDB for never got done anyway.
2136
2137 2002-09-18 David Carlton <carlton@math.stanford.edu>
2138
2139 * MAINTAINERS: Alphabetize Write After Approval list.
2140
2141 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2142
2143 Fix PR gdb/709
2144 * values.c (value_static_field): Call read_var_value.
2145
2146 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2147
2148 * valops.c (hand_function_call): Align the initial stack pointer
2149 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2150 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2151 return value.
2152 * mips-tdep.c (mips_frame_align): New function.
2153 (mips_gdbarch_init): Set frame_align.
2154 * gdbarch.sh (FRAME_ALIGN): New method.
2155 * gdbarch.h, gdbarch.c: Re-generate.
2156
2157 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2158
2159 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2160 registers.
2161
2162 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2163
2164 * NEWS: Mention that MIPS $fp behavior changed.
2165 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2166 reference to FP_REGNUM.
2167 (mipsnbsd_cannot_store_register): Ditto.
2168 * mips-linux-nat.c: Update copyright.
2169 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2170 (mips_linux_cannot_store_register): Ditto.
2171 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2172 * config/mips/tm-mips.h: Update copyright.
2173 (FP_REGNUM): Delete macro.
2174 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2175 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2176 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2177 (mips_r3041_reg_names, mips_r3051_reg_names)
2178 (mips_r3081_reg_names): Replace "fp" with "".
2179 Fix PR gdb/480.
2180
2181 2002-09-17 Theodore A. Roth <troth@verinet.com>
2182
2183 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2184 generic_read_register_dummy() (PR gdb/703).
2185 (avr_push_return_address): #if 0 out unused vars.
2186 (avr_gdbarch_init): Enable use of avr_push_return_address().
2187
2188 2002-09-17 Michael Snyder <msnyder@redhat.com>
2189
2190 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2191 RTE will take care of it.
2192
2193 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2194
2195 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2196 invalid, return SP_REGNUM.
2197
2198 2002-09-17 Michael Snyder <msnyder@redhat.com>
2199
2200 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2201 point registers without sign extension.
2202
2203 2002-09-17 Andrew Cagney <cagney@redhat.com>
2204
2205 * blockframe.c (deprecated_read_register_dummy): Rename
2206 generic_read_register_dummy.
2207 * frame.c (frame_unwind_signed_register): New function.
2208 (frame_unwind_unsigned_register): New function.
2209 * frame.h (frame_unwind_signed_register): Declare.
2210 (frame_unwind_unsigned_register): Declare.
2211 (deprecated_read_register_dummy): Rename
2212 generic_read_register_dummy.
2213
2214 * h8300-tdep.c (h8300_frame_chain): Update.
2215 (h8300_frame_saved_pc): Update.
2216 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2217 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2218 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2219 (s390_frame_chain): Update.
2220 * v850-tdep.c (v850_find_callers_reg): Update.
2221 (v850_frame_saved_pc): Update.
2222 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2223 (m32r_find_callers_reg): Update.
2224 (m32r_frame_saved_pc): Update.
2225 * sh-tdep.c (sh_find_callers_reg): Update.
2226 (sh64_get_saved_pr): Update.
2227 (sh_init_extra_frame_info): Update.
2228 (sh_init_extra_frame_info): Update.
2229 (sh64_init_extra_frame_info): Update.
2230 (sh64_init_extra_frame_info): Update.
2231 * mcore-tdep.c (mcore_find_callers_reg): Update.
2232 (mcore_frame_saved_pc): Update.
2233 (mcore_init_extra_frame_info): Update.
2234 * i386-tdep.c (i386_frame_saved_pc): Update.
2235 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2236 (ia64_init_extra_frame_info): Update.
2237 (ia64_init_extra_frame_info): Update.
2238 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2239 * cris-tdep.c (cris_init_extra_frame_info): Update.
2240 * avr-tdep.c (avr_frame_chain): Update.
2241 (avr_init_extra_frame_info): Update.
2242 (avr_frame_saved_pc): Update.
2243 * arm-tdep.c (arm_find_callers_reg): Update.
2244 (arm_init_extra_frame_info): Update.
2245 (arm_frame_saved_pc): Update.
2246
2247 2002-09-17 Tom Tromey <tromey@redhat.com>
2248
2249 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2250 is "'".
2251
2252 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2253
2254 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2255 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2256 NEXT_PROLOGUE_INSN.
2257 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2258 NEXT_PROLOGUE_INSN.
2259
2260 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2261
2262 * osfsolib.c: Remove file, replaced by solib-osf.c.
2263 * Makefile.in: Remove compilation rules for osfsolib.c.
2264
2265 2002-09-16 David Carlton <carlton@math.stanford.edu>
2266
2267 * cp-valprint.c (cp_print_class_method): Correct args to
2268 check_stub_method_group.
2269
2270 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2271
2272 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2273 `set architecture'. Unify naming convention of functions.
2274 (h8300_skip_prologue): Improve prologue analysis.
2275 (h8300_push_arguments): Rewritten to more closely match GCC's
2276 bizarre argument-passing behavior, along with the comment describing
2277 said behavior.
2278 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2279 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2280 sim, remote-e7000.c, remote-hms.c and remote.c
2281
2282 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2283
2284 * i386-tdep.c (gdb_print_insn_i386): Removed.
2285 (i386_print_insn): New function.
2286 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2287 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2288 tm_print_insn_info.
2289
2290 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2291
2292 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2293 zero.
2294
2295 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2296
2297 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2298 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2299 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2300
2301 2002-09-13 Christopher Faylor <cgf@redhat.com>
2302
2303 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2304
2305 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2306
2307 * gdbtypes.c (check_stub_method): Make static.
2308 (check_stub_method_group): New function.
2309 * gdbtypes.h: Update prototypes.
2310 * cp-support.c: New file.
2311 * cp-support.h: New file.
2312
2313 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2314 (update_method_name_from_physname): New function.
2315 (read_member_functions): Correct method names for operators
2316 and v3 constructors/destructors. Separate v2 constructors and
2317 destructors.
2318 * Makefile.in (stabsread.o): Update dependencies.
2319 (SFILES): Add cp-support.c.
2320 (COMMON_OBS): Add cp-support.o.
2321 (cp_support_h, cp-support.o): Add.
2322
2323 * cp-valprint.c (cp_print_class_method): Call
2324 check_stub_method_group instead of check_stub_method. Remove
2325 extraneous QUITs.
2326 * p-valprint.c (pascal_object_print_class_method): Likewise.
2327 * valops.c (search_struct_method): Likewise.
2328 (find_method_list, value_struct_elt_for_reference): Likewise.
2329
2330 2002-09-13 Andrew Cagney <cagney@redhat.com>
2331
2332 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2333 * gdbarch.h, gdbarch.c: Regenerate.
2334
2335 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2336
2337 * frame.c (find_saved_register): Delete function.
2338 * frame.h (find_saved_register): Delete declaration.
2339 Fix PR gdb/631.
2340
2341 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2342
2343 * mips-tdep.c (read_next_frame_reg): Re-hack using
2344 frame_register_unwind.
2345
2346 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2347
2348 * mips-tdep.c (mips_get_saved_register): Re-hack using
2349 frame_register_unwind.
2350
2351 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2352
2353 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2354 vector. Will be useful for Interix.
2355 * gdbarch.h, gdbarch.c: Regenerate.
2356
2357 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2358 name of the malloc function by NAME_OF_MALLOC.
2359
2360 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2361
2362 * value.h (find_function_in_inferior): Add const keyword to
2363 one of the parameters. Allows us to invoke this function with
2364 a const char *.
2365 * valops.c (find_function_in_inferior): Likewise.
2366
2367 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2368
2369 * exec.c (xfer_memory): Fix compilation warning with old versions
2370 of GCC.
2371 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2372
2373 2002-09-12 David Carlton <carlton@math.stanford.edu>
2374
2375 * symtab.h: Run through gdb_indent.h.
2376 Add 2002 to Copyright year list.
2377
2378 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2379
2380 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2381 mach constants.
2382 * MAINTAINERS: Add myself to write after approval list.
2383
2384 2002-09-11 J. Brobecker <brobecker@gnat.com>
2385
2386 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2387
2388 2002-09-11 J. Brobecker <brobecker@gnat.com>
2389
2390 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2391 Interix.
2392
2393 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2394
2395 * procfs.c (do_detach): Clear current signal, not just fault.
2396 Corrects problem with breakpoint trap signal leaking to detached
2397 process on Tru64.
2398
2399 2002-09-10 Michael Snyder <msnyder@redhat.com>
2400
2401 * buildsym.c (finish_block): Protect against null pointer.
2402
2403 2002-09-10 Andrew Cagney <cagney@redhat.com>
2404
2405 * infcmd.c (default_print_registers_info): Send all output to
2406 ``file'' instead of ``gdb_stdout''.
2407
2408 2002-09-10 Michael Snyder <msnyder@redhat.com>
2409
2410 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2411 LONGEST, and use signed register read (addresses are sign-
2412 extended for mips).
2413
2414 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2415
2416 * event-loop.c (gdb_do_one_event): Make public.
2417 * event-loop.h (gdb_do_one_event): Declare.
2418
2419 2002-09-10 Jeff Law <law@redhat.com>
2420
2421 * infttrace.c (child_resume): Simplify and rework to avoid
2422 TT_PROC_CONTINUE.
2423
2424 2002-09-09 Fred Fish <fnf@intrinsity.com>
2425
2426 * printcmd.c (print_scalar_formatted): "len" is the number of
2427 target bytes, NOT the number of target bits.
2428
2429 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2430
2431 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2432 * top.c (init_main): Set rl_terminal_name.
2433
2434 2002-09-08 Aidan Skinner <aidan@velvet.net>
2435
2436 * ada-lang.c (ada_array_bound, ada_type_match,
2437 _initialize_ada_language): Fix K&R definitions.
2438 * ada-tasks.c (get_current_task): Fix K&R definitions.
2439 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2440
2441 2002-09-07 Christopher Faylor <cgf@redhat.com>
2442
2443 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2444 Add XP.
2445
2446 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2447
2448 * i386-tdep.c (i386_register_virtual_type,
2449 i386_register_convertible, i386_register_convert_to_virtual,
2450 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2451 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2452 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2453 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2454 Don't set push_arguments twice.
2455
2456 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2457 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2458 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2459 sigtramp_end to NULL.
2460 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2461 defines.
2462 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2463
2464 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2465 whitespace.
2466
2467 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2468 * gdbarch.h, gdbarch.c: Re-generate.
2469 * blockframe.c (find_pc_sect_partial_function): Convert to use
2470 SIGTRAMP_START_P predicate.
2471
2472 2002-09-05 Michael Snyder <msnyder@redhat.com>
2473
2474 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2475 generic_dummy_frame method and old method. Also distinguish
2476 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2477 (arm_extract_return_value): Use new regcache method.
2478
2479 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2480 adjustment that doesn't conform to the ABI.
2481 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2482 saved regcache, not from current regcache.
2483
2484 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2485
2486 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2487 * README: Update.
2488
2489 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2490
2491 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2492 if arm_apcs_32 is false.
2493
2494 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2495
2496 GDB 5.3 branch created.
2497
2498 2002-09-03 Theodore A. Roth <troth@verinet.com>
2499
2500 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2501 generic_unwind_get_saved_register.
2502
2503 2002-09-03 David Carlton <carlton@math.stanford.edu>
2504
2505 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2506 argument (PR gdb/653). Update call to smash_to_method_type.
2507 (read_structure_scope): Update call to dwarf2_add_member_fn.
2508
2509 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2510
2511 * x86-64-linux-tdep.c: Include gdb_string.h
2512 * x86-64-linux-nat.c: Ditto.
2513
2514 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2515
2516 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2517 when YYDEBUG is set to 1.
2518 * c-exp.y: Likewise.
2519 * f-exp.y: Likewise.
2520 * jv-exp.y: Likewise.
2521 * m2-exp.y: Likewise.
2522 * p-exp.y: Likewise.
2523
2524 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2525
2526 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2527 dependency list.
2528 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2529 solib_svr4_fetch_link_map_offsets to
2530 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2531 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2532 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2533 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2534 solib-svr4.o, and solib-legacy.o.
2535 * config/i386/tm-nbsd.h: Include solib.h.
2536
2537 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2538
2539 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2540 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2541 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2542 comment noting that this needs its own target configuration.
2543 * config/i386/nbsd.mt: New file.
2544 * config/i386/nbsdaout.mt: Remove.
2545 * config/i386/nbsdelf.mt: Ditto.
2546 * config/i386/tm-nbsdaout.h: Ditto.
2547
2548 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2549
2550 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2551 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2552 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2553 tdep->sigtramp_end.
2554 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2555 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2556 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2557
2558 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2559
2560 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2561 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2562 * i386-tdep.h (i386bsd_init_abi): New prototype.
2563 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2564 function declaration.
2565 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2566 for NetBSD-a.out or NetBSD-ELF.
2567 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2568 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2569 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2570 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2571 and nbsd-tdep.h.
2572 (i386nbsd_pc_in_sigtramp): New function.
2573 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2574 i386nbsd_pc_in_sigtramp.
2575 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2576 and i386nbsdelf_init_abi OS ABI handlers.
2577 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2578 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2579
2580 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2581
2582 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2583 registers if the target really has them.
2584
2585 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2586
2587 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2588 than nbsd-tdep.h.
2589
2590 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2591
2592 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2593 list.
2594 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2595 (alphanbsd_skip_sigtramp_frame): New functions.
2596 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2597 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2598 to alphanbsd_sigcontext_addr.
2599
2600 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2601
2602 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2603 list.
2604 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2605 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2606 nbsd_pc_in_sigtramp.
2607 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2608 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2609 * nbsd-tdep.c: Include gdb_string.h.
2610 (nbsd_pc_in_sigtramp): New function.
2611 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2612 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2613 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2614 ppcnbsd_pc_in_sigtramp.
2615 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2616 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2617 shnbsd_pc_in_sigtramp.
2618 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2619 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2620 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2621
2622 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2623
2624 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2625 watchpoints to NULL.
2626 (insert_breakpoints): set val field of watchpoints if NULL.
2627
2628
2629 2002-08-29 Jim Blandy <jimb@redhat.com>
2630
2631 * symtab.c (lookup_symbol_aux): In the cases where we find a
2632 minimal symbol of an appropriate name and use its address to
2633 select a symtab to read and search, use `name' (as passed to us)
2634 as the demangled name when searching the symtab's global and
2635 static blocks, not the minsym's name.
2636
2637 2002-08-29 Keith Seitz <keiths@redhat.com>
2638
2639 * stack.c (print_frame_info_base): Always set current_source_symtab
2640 and current_source_line.
2641
2642 2002-08-29 Donn Terry <donnte@microsoft.com>
2643
2644 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2645
2646 2002-08-28 Keith Seitz <keiths@redhat.com>
2647
2648 * stack.c (select_frame): Add FIXME concerning selected-frame
2649 events.
2650 (select_frame_command): Send selected-frame-level-changed
2651 event notification, but only if the level actually changed.
2652 (up_silently_base): Add selected-frame-level-changed event
2653 notification.
2654 (down_silently_base): Likewise.
2655
2656 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2657
2658 * Makefile.in: Update dependencies for all gdb/*.c files.
2659
2660 2002-08-27 Tom Tromey <tromey@redhat.com>
2661
2662 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2663 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2664 Update dependencies.
2665 * i387-tdep.c: Include gdb_string.h.
2666 * osabi.c: Likewise.
2667 * i386-linux-nat.c: Likewise.
2668 * lin-lwp.c: Likewise.
2669 * ax-gdb.c: Likewise.
2670 * signals/signals.c: Likewise.
2671 * jv-valprint.c: Likewise.
2672 * p-lang.c: Likewise.
2673 * c-valprint.c: Likewise.
2674 * cp-abi.c: Likewise.
2675
2676 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2677
2678 * cli/cli-script.h (copy_command_lines): Export.
2679 * breakpoint.c: Include cli/cli-script.h.
2680 * Makefile.in (breakpoint.o): Update dependencies.
2681
2682 2002-08-26 Michael Snyder <msnyder@redhat.com>
2683
2684 * breakpoint.c (insert_breakpoints): Protect all references
2685 to 'process_warning'. Shorten long lines.
2686
2687 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2688
2689 * cli/cli-script.c (copy_command_lines): New function.
2690 * defs.h (copy_command_lines): Export.
2691 * testsuite/gdb.base/commands.exp: New tests for commands
2692 attached to a temporary breakpoint, and for commands that
2693 delete the breakpoint they are attached to.
2694
2695 2002-08-26 Michael Snyder <msnyder@redhat.com>
2696
2697 * breakpoint.c (bpstat_stop_status): Instead of copying the
2698 pointer to the breakpoint commands struct, make a new copy
2699 of the struct and point to that.
2700 (bpstat_clear): Free the commands struct.
2701 (bpstat_clear_actions): Free the commands struct.
2702 (bpstat_do_actions): Free the command actions. Also execute
2703 the local cleanups, instead of deleting them.
2704 (delete_breakpoint): Leave the commands field of the bpstat
2705 chain alone -- it will be freed later.
2706
2707 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2708
2709 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2710 deleted in 2002-08-20 commit. This function is still used by
2711 ppc-linux-nat.c.
2712
2713 2002-08-26 Keith Seitz <keiths@redhat.com>
2714
2715 * gdb-events.sh: Add selected-frame-level-changed event.
2716 * gdb-events.c: Regenerated.
2717 * gdb-events.h: Regenerated.
2718
2719 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2720
2721 Fix PR gdb/393:
2722 * inflow.c (terminal_save_ours): New function to save terminal
2723 settings.
2724 * inferior.h (terminal_save_ours): Declare.
2725 * target.c (debug_to_terminal_save_ours): New function.
2726 (cleanup_target): Defaults to_terminal_save_ours.
2727 (update_current_target): Inherit to_terminal_save_ours.
2728 (setup_target_debug): Set to_terminal_save_ours.
2729 * target.h (target_terminal_save_ours): New to save terminal settings.
2730 (target_ops): New member to_terminal_save_ours.
2731 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2732 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2733 * inftarg.c (init_child_ops): Likewise.
2734 * m3-nat.c (init_m3_ops): Likewise.
2735 * procfs.c (init_procfs_ops): Likewise.
2736 * wince.c (init_child_ops): Likewise.
2737 * win32-nat.c (init_child_ops): Likewise.
2738 * sol-thread.c (init_sol_thread_ops): Likewise.
2739
2740 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2741
2742 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2743 use regcache_* functions.
2744 (i386_gdbarch_init): Set store_return_value instead of
2745 deprecated_store_return_value.
2746
2747 * regcache.c (regcache_raw_write_signed,
2748 regcache_raw_write_unsigned): New functions.
2749 * regcache.h (regcache_raw_write_signed,
2750 regcache_raw_write_unsigned): New prototypes.
2751
2752 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2753
2754 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2755 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2756 source file dependencies. Cleanup corresponding generator rules.
2757
2758 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2759
2760 * regcache.h (register_offset_hack): Declare.
2761 (regcache_cooked_read_using_offset_hack): Declare.
2762 (regcache_cooked_write_using_offset_hack): Declare.
2763
2764 * regcache.c (register_offset_hack): New function.
2765 (regcache_cooked_read_using_offset_hack): New function.
2766 (regcache_cooked_write_using_offset_hack): New function.
2767 (regcache_dump): Check that the registers, according to their
2768 offset, are packed hard against each other.
2769 (cooked_xfer_using_offset_hack): New function.
2770
2771 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2772
2773 * regcache.c (struct regcache_descr): Add field register_type.
2774 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2775 in as a parameter
2776 (init_regcache_descr): Initialize register_type. Pass the descr
2777 to init_legacy_regcache_descr. Use register_type instead of
2778 REGISTER_VIRTUAL_TYPE.
2779 (register_type): New function.
2780 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2781 * regcache.h (register_type): Declare.
2782
2783 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2784
2785 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2786 instead of deprecated_store_return_value. Fix fallout from
2787 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2788
2789 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2790
2791 * regcache.c (max_register_size): New function.
2792 (init_legacy_regcache_descr): Ensure that max_register_size is
2793 large enough for REGISTER_VIRTUAL_SIZE.
2794 * regcache.h (max_register_size): Declare.
2795
2796 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2797
2798 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2799 store_return_value.
2800 (e500_extract_return_value): Change type of valbuf pointer to
2801 void.
2802
2803 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2804
2805 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2806 workaround.
2807
2808 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2809 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2810 long long) to prevent compiler warning on 64-bit systems.
2811
2812 2002-08-23 Andrew Cagney <cagney@redhat.com>
2813
2814 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2815 (DEPRECATED_STORE_RETURN_VALUE): New method.
2816 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2817 * gdbarch.h, gdbarch.c: Re-generate.
2818
2819 * values.c (set_return_value): Pass current_regcache to
2820 STORE_RETURN_VALUE.
2821 * arch-utils.h (legacy_store_return_value): Declare.
2822 * arch-utils.c (legacy_store_return_value): New function.
2823 (legacy_extract_return_value): Update parameters.
2824
2825 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2826 STORE_RETURN_VALUE.
2827 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2828 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2829 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2830 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2831 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2832 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2833 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2834 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2835 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2836 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2837
2838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2839 * i386-tdep.c (i386_extract_return_value): Update.
2840 * arch-utils.c (legacy_extract_return_value): Update.
2841 * frv-tdep.c (frv_gdbarch_init): Update.
2842 * cris-tdep.c (cris_gdbarch_init): Update.
2843 * d10v-tdep.c (d10v_gdbarch_init): Update.
2844 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2845 * m68k-tdep.c (m68k_gdbarch_init): Update.
2846 * mcore-tdep.c (mcore_gdbarch_init): Update.
2847 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2848 * s390-tdep.c (s390_gdbarch_init): Update.
2849 * sparc-tdep.c (sparc_gdbarch_init): Update.
2850 * sh-tdep.c (sh_gdbarch_init): Update.
2851 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2852 * v850-tdep.c (v850_gdbarch_init): Update.
2853 * avr-tdep.c (avr_gdbarch_init): Update.
2854 * ia64-tdep.c (ia64_gdbarch_init): Update.
2855 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2856 * vax-tdep.c (vax_gdbarch_init): Update.
2857 * alpha-tdep.c (alpha_gdbarch_init): Update.
2858 * arm-tdep.c (arm_gdbarch_init): Update.
2859 * mips-tdep.c (mips_gdbarch_init): Update.
2860 * i386-tdep.c (i386_gdbarch_init): Update.
2861
2862 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2863
2864 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2865 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2866
2867 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2868
2869 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2870 problems.
2871
2872 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2873
2874 * infrun.c (handle_inferior_event): Move a comment outside of a
2875 function call, in order to avoid indent reformatting this part
2876 of the code in an unreadable way.
2877
2878 2002-08-23 Grace Sainsbury <graces@redhat.com>
2879
2880 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2881 when breakpoints fail. Move general breakpoint error messages to
2882 insert_breakpoints.
2883 * breakpoint.c (insert_breakpoints): Change warnings when
2884 breakpoints are nto inserted to specify the type. Remove call to
2885 memory_error when hardware breakpoints can't be inserted. Remove
2886 multiple calls to warning so all messages are sent to the user at
2887 once.
2888 (delete_breakpoints): Make insert error messsages more explicit.
2889
2890 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2891
2892 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2893 gdbserver/ChangeLog.
2894
2895 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2896
2897 * i386-tdep.c: Include "objfiles.h".
2898 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2899 skip_trampoline_code.
2900 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2901 (CPLUS_MARKER): Define to '.'.
2902
2903 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2904 member.
2905 (linux_corefile_thread_callback): Increase args->num_notes.
2906 (linux_make_note_section): Initialize thread_args.num_notes, and
2907 use it to determine whether notes for any threads were created.
2908
2909 2002-08-23 Donn Terry <donnte@microsoft.com>
2910
2911 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2912 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2913 and PCUNKILL.
2914 (write_with_trace): Conditionalize out the switch branch handling
2915 PCSHOLD if the corresponding macro is not defined. Likewise for
2916 PRSABORT and PRSTOP.
2917 This change will be needed by the Interix port.
2918
2919 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2920
2921 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2922 write_register wherever possible instead of manipulating the
2923 register bytes directly.
2924 Assign VALUE_CONTENTS to a variable and use that.
2925 The GPR numbers are now dependent on the architecture.
2926
2927 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2928
2929 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2930 ev_offset fields.
2931 (skip_prologue): Add support for BookE/e500 instructions.
2932 (e500_extract_return_value): New function.
2933 (frame_get_saved_regs): Add support for saving ev registers and
2934 pseudo gpr's.
2935 (e500_store_return_value): New function.
2936 (rs6000_gdbarch_init): Move up default intializations of
2937 deprecated_extract_return_value and store_return_value. Overwrite
2938 init of store_return_value with e500 specific version.
2939 Set extract_return_value for e500.
2940
2941 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2942
2943 * blockframe.c (generic_call_dummy_register_unwind): Use
2944 regcache_cooked_read to catch cases in which the variable is
2945 stored in a pseudo register.
2946
2947 2002-08-22 Andrew Cagney <cagney@redhat.com>
2948
2949 * NEWS: Mention that the i960 has been made obsolete.
2950 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2951 i960-tdep.c
2952 (remote-nrom.o): Obsolete target.
2953 (remote-nindy.o, i960-tdep.o): Ditto.
2954 * remote-nrom.c: Make file obsolete.
2955 * remote-nindy.c, remote-vx960.c: Ditto.
2956 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2957 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2958 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2959 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2960 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2961 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2962 i960-*-vxworks* obsolete.
2963 * MAINTAINERS: Note that the i960 is obsolete.
2964
2965 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2966
2967 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2968 detach to allow reinitialization.
2969
2970 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2971
2972 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2973 attempt).
2974
2975 2002-08-22 Jim Blandy <jimb@redhat.com>
2976
2977 * coffread.c (coff_symfile_read): Don't try to read the line
2978 number table from disk if the image file doesn't have a symbol
2979 table; we'll never actually look at the info anyway, and Windows
2980 ships DLL's with bogus file offsets for the line number data.
2981
2982 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2983
2984 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2985 an e500 executable.
2986
2987 2002-08-21 Michael Snyder <msnyder@redhat.com>
2988
2989 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2990 (MSYMBOL_SIZE): Replace macro with function.
2991 (DEFAULT_MIPS_TYPE): Delete unused macro.
2992 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2993 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2994
2995 2002-08-21 Jim Blandy <jimb@redhat.com>
2996
2997 * valops.c (value_cast): Simplify and correct logic for doing a
2998 static cast from a pointer to a base class to a pointer to a
2999 derived class.
3000
3001 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3002
3003 * infcmd.c (default_print_registers_info): Replace
3004 do_registers_info.
3005 (registers_info): Use gdbarch_print_registers_info instead of
3006 DO_REGISTERS_INFO.
3007 * inferior.h (default_print_registers_info): Replace
3008 do_registers_info.
3009 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3010 (DO_REGISTERS_INFO): Change to a predicate function.
3011 * gdbarch.h, gdbarch.c: Regenerate.
3012
3013 2002-08-21 Keith Seitz <keiths@redhat.com>
3014
3015 * gdb-events.sh: Add target-changed event.
3016 * gdb-events.c: Regenerated.
3017 * gdb-events.c: Regenerated.
3018 * valops.c (value_assign): Add target-changed event notification
3019 to inlval_register, lval_memory, and lval_reg_frame_relative.
3020
3021 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3022
3023 * NEWS: Add an entry regarding the improvement of the next/step
3024 operation on Alpha Tru64 multi-processor machines.
3025
3026 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3027
3028 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3029 directores.
3030 * Makefile.in: Update all _h macro definitions.
3031 * Makefile.in (install-gdbtk): Move to install section.
3032 (rdi-share/libangsd.a): Move to end of file.
3033
3034 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3035
3036 * frame.c (frame_register_unwind): When a register, set addrp to
3037 the register's byte.
3038
3039 2002-08-20 Michael Snyder <msnyder@redhat.com>
3040
3041 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3042 used locally, so move them from the target machine header to here.
3043 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3044 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3045 Make static.
3046 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3047
3048 2002-08-20 Andrew Cagney <cagney@redhat.com>
3049
3050 * NEWS: Mention that the Apollo line was made obsolete.
3051 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3052 m68*-hp-hpux* obsolete.
3053 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3054 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3055 * buildsym.c (make_blockvector): Make static.
3056 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3057 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3058 (ALLDEPFILES): Remove dstread.c.
3059 (dstread.o): Obsolete make rule.
3060 * dstread.c: Makefile obsolete.
3061 * dst.h: Ditto.
3062 * config/m68k/hp300hpux.mt: Ditto.
3063 * config/m68k/hp300hpux.mh: Ditto.
3064 * config/m68k/hp300bsd.mt: Ditto.
3065 * config/m68k/hp300bsd.mh: Ditto.
3066 * config/m68k/apollo68b.mt: Ditto.
3067 * config/m68k/apollo68v.mh: Ditto.
3068 * config/m68k/apollo68b.mh: Ditto.
3069
3070 2002-08-20 Michael Snyder <msnyder@redhat.com>
3071
3072 * mips-tdep.c (mips_in_return_stub): Make static.
3073 (mips_gdbarch_init): Set in_solib_return_trampoline.
3074 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3075
3076 2002-08-20 Michael Snyder <msnyder@redhat.com>
3077
3078 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3079 * gdbarch.c, gdbarch.h: Regenerate.
3080 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3081 Add.
3082 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3083
3084 2002-08-20 Michael Snyder <msnyder@redhat.com>
3085
3086 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3087 (mips_gdbarch_init): Set skip_trampoline_code,
3088 in_solib_call_trampoline.
3089 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3090 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3091
3092 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3093
3094 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3095
3096 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3097 vector type for ev registers.
3098 (e500_pseudo_register_read): New function.
3099 (e500_pseudo_register_write): New function.
3100 (e500_dwarf2_reg_to_regnum): New function.
3101 (PPC_UISA_NOFP_SPRS): New macro.
3102 (PPC_EV_REGS): New macro.
3103 (PPC_GPRS_PSEUDO_REGS): New macro.
3104 (registers_e500): New register set for e500.
3105 (variants): Add e500 variant.
3106 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3107 before setting architectural dependent variations. Initialize ev
3108 registers numbers. Add case for e500 architecture. Set the
3109 number of pseudo registers.
3110
3111 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3112
3113 * rs6000-tdep.c: Clean up comments.
3114
3115 2002-08-20 Andrew Cagney <cagney@redhat.com>
3116
3117 * h8300-tdep.c: Re-indent file.
3118
3119 2002-08-20 Jim Blandy <jimb@redhat.com>
3120
3121 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3122 default for this.
3123
3124 2002-08-20 Keith Seitz <keiths@redhat.com>
3125
3126 * breakpoints.c (watch_command_1): Use internal breakpoint
3127 when setting a watchpoint_scope breakpoint.
3128
3129 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3130
3131 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3132 (build_builtin_type_vec64i): Ditto.
3133 (build_builtin_type_vec128): Ditto.
3134 (build_builtin_type_vec128i): Ditto.
3135
3136 2002-08-19 Michael Snyder <msnyder@redhat.com>
3137
3138 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3139 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3140 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3141 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3142 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3143 CALL_DUMMY_ADDRESS): Delete.
3144 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3145 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3146 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3147 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3148 push_return_address.
3149 (mips_register_raw_size, mips_eabi_use_struct_convention,
3150 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3151 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3152 mips_init_extra_frame_info, mips_eabi_push_arguments,
3153 mips_n32n64_push_arguments, mips_push_return_address,
3154 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3155 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3156
3157 2002-08-19 Michael Snyder <msnyder@redhat.com>
3158
3159 * mips-tdep.c (mips_frame_num_args): New function.
3160 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3161 frame_saved_pc, frame_args_address, frame_locals_address,
3162 frame_num_args, and frame_args_skip.
3163 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3164 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3165 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3166 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3167
3168 2002-08-20 Michael Snyder <msnyder@redhat.com>
3169
3170 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3171 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3172 * mips-tdep.c (mips_store_struct_return): New function.
3173 (mips_extract_struct_value_address): New function.
3174 (mips_gdbarch_init): Set store_struct_return and
3175 extract_struct_value_address.
3176
3177 2002-08-20 David Carlton <carlton@math.stanford.edu>
3178
3179 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3180 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3181 (read_file_scope): Check that line_header is nonzero before
3182 decoding macro information.
3183
3184 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3185
3186 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3187 flag the general-purpose registers as floating-point on targets
3188 that don't support the floating-point registers.
3189
3190 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3191
3192 * rs6000-tdep.c (altivec_register_p): Delete.
3193 (rs6000_do_altivec_registers): Delete.
3194 (rs6000_altivec_registers_info): Delete.
3195 (rs6000_do_registers_info): Delete.
3196 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3197 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3198
3199 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3200
3201 * infcmd.c (do_registers_info): Print vector registers in hex
3202 format only.
3203 (print_vector_info): Check that printing registers
3204 makes sense.
3205 (print_float_info): Ditto.
3206
3207 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3208
3209 * mips-tdep.c (mips_gdbarch_init): Update.
3210 (mips_o32_extract_return_value): Rewrite.
3211 (mips_o32_store_return_value): Rewrite.
3212 (mips_o32_xfer_return_value): New function.
3213 (mips_xfer_register): Tweak debug print message. Allow for
3214 buf_offset when dumping the value transfered.
3215
3216 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3217
3218 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3219 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3220 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3221 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3222 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3223
3224 2002-08-14 Michael Snyder <msnyder@redhat.com>
3225
3226 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3227
3228 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3229
3230 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3231 register.
3232 (P): New macro to define a register as a pseudo register.
3233 (R, R4, R8, R16, FR32, R64, R0): Updated.
3234 (struct variant): Add new fields for number of pseudo registers
3235 and number of total registers.
3236 (tot_num_registers): New macro replacing....
3237 (num_registers): ...deleted macro.
3238 (num_registers): New function.
3239 (num_pseudo_registers): New function.
3240 (variants): Update all variants to intialize new fields correctly.
3241 Postpone initialization of number of pseudo regs and real regs.
3242 (init_variants): New function.
3243 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3244 registers offsets.
3245
3246 2002-08-19 David Carlton <carlton@math.stanford.edu>
3247
3248 * valops.c (search_struct_field): Change error message to treat
3249 return value of 0 from value_static_field as meaning that field is
3250 optimized out.
3251 (value_struct_elt_for_reference): Ditto.
3252 * values.c (value_static_field): Treat an unresolved location the
3253 same as a nonexistent symbol. Fix PR gdb/635.
3254 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3255 enclosed. Fix PR gdb/574.
3256 * MAINTAINERS: Add self to Write After Approval list.
3257
3258 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3259
3260 * mips-tdep.c (mips_xfer_register): New function.
3261 (mips_n32n64_extract_return_value): Rewrite.
3262 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3263 instead of deprecated_extract_return_value.
3264
3265 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3266
3267 * rs6000-tdep.c (TDEP): Delete macro.
3268 (branch_dest): Replace use of TDEP macro with its body.
3269 (rs6000_pop_frame): Ditto.
3270 (rs6000_push_arguments): Ditto.
3271 (rs6000_skip_trampoline_code): Ditto.
3272 (rs6000_frame_saved_pc): Ditto.
3273 (rs6000_frame_chain): Ditto.
3274 (rs6000_register_name): Ditto.
3275 (rs6000_register_byte): Ditto.
3276 (rs6000_register_raw_size): Ditto.
3277 (rs6000_register_virtual_type): Ditto.
3278 (rs6000_register_convertible): Ditto.
3279 (rs6000_convert_from_func_ptr_addr): Ditto.
3280
3281 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3282
3283 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3284 conditionally.
3285 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3286 MIPS_LINUX_JB_ELEMENT_SIZE.
3287 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3288 for MAX_REGISTER_RAW_SIZE arrays.
3289 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3290 MIPS_LINUX_JB_ELEMENT_SIZE.
3291
3292 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3293
3294 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3295
3296 2002-08-19 Aidan Skinner <aidan@velvet.net>
3297
3298 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3299 ada-valprint.c ada-tasks.c.
3300 (YYFILES): Add ada-exp.y.
3301 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3302 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3303 (ada-exp.tab.o): New target.
3304
3305 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3306
3307 * regcache.c (regcache_xfer_part): New function.
3308 (regcache_raw_read_part): New function.
3309 (regcache_raw_write_part): New function.
3310 (regcache_cooked_read_part): New function.
3311 (regcache_cooked_write_part): New function.
3312 * regcache.h (regcache_raw_read_part): Declare.
3313 (regcache_raw_write_part): Declare.
3314 (regcache_cooked_read_part): Declare.
3315 (regcache_cooked_write_part): Declare.
3316
3317 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3318
3319 * remote.c (remote_open_1): Add async_p.
3320 (remote_async_open_1): Delete.
3321 (open_remote_target): Delete.
3322 (remote_open, extended_remote_open): Update calls to remote_open_1.
3323 (remote_async_open, extended_remote_async_open): Call
3324 remote_open_1 instead of remote_async_open_1.
3325
3326 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3327
3328 * blockframe.c: Fix a few coding standard violations.
3329
3330 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3331
3332 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3333 here from ...
3334 * config/i386/tm-i386sco5.h: ... here. File removed.
3335 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3336
3337 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3338 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3339 (TM_FILE): Set to tm-i386.h.
3340 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3341 * config/i386/tm-i386v.h: Remove file.
3342 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3343 instead of "i386/tm-i386v.h".
3344 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3345 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3346 "i386/tm-i386v.h".
3347 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3348 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3349 "i386/tm-i386.h".
3350
3351 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3352
3353 * config/i386/nm-i386v.h: Add protection against
3354 multiple-inclusion.
3355 (i386_register_u_addr): Remove prototype.
3356 (register_u_addr): New prototype.
3357 (REGISTER_U_ADDR): Redefine accordingly.
3358 * i386v-nat.c: Improve several comments.
3359 (i386_register_u_addr): Change signature and rename to
3360 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3361 ubase variable.
3362
3363 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3364
3365 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3366 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3367 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3368 deprecated_extract_return_value.
3369 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3370 rename mips_o32o64_push_arguments.
3371 (mips_gdbarch_init): Update.
3372 (mips_extract_return_value): Delete.
3373 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3374 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3375 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3376 (mips_n32n64_extract_return_value): Clone
3377 mips_extract_return_value.
3378 (mips_store_return_value): Delete.
3379 (mips_o32_store_return_value): Clone mips_store_return_value.
3380 (mips_o64_store_return_value): Clone mips_store_return_value.
3381 (mips_eabi_store_return_value): Clone mips_store_return_value.
3382 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3383
3384 2002-08-18 Aidan Skinner <aidan@velvet.net>
3385
3386 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3387 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3388
3389 2002-08-18 Aidan Skinner <aidan@velvet.net>
3390
3391 * ada-lang.c: Run through gdb_indent.sh.
3392 * ada-lang.h: Run through gdb_indent.sh.
3393 * ada-tasks.c: Run through gdb_indent.sh.
3394 * ada-typeprint.c: Run through gdb_indent.sh.
3395 * ada-valprint.c: Run through gdb_indent.sh.
3396
3397 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3398
3399 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3400 ABI.
3401
3402 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3403
3404 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3405
3406 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3407 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3408
3409 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3410 write_register_gen instead of write_register_bytes.
3411
3412 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3413 i[3456]-*-osf1mk* configurations have been made obsolete.
3414 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3415 i[3456]86-*-osf1mk* hosts obsolete.
3416 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3417 targets obsolete.
3418 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3419 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3420 config/i386/i386m3.mt, config/i386/nm-m3.h,
3421 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3422 config/i386/i386mk.mh, config/i386/i386mk.mt,
3423 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3424 obsolete.
3425 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3426 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3427 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3428
3429 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3430
3431 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3432 (hppa_value_returned_from_stack): Declare.
3433 (hppa_extract_return_value): Declare.
3434 * config/pa/hppa.mt: New file.
3435 * configure.tgt: Recognize hppa*-*-*.
3436 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3437
3438 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3439
3440 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3441 comment.
3442
3443 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3444
3445 * top.c (gdb_rl_operate_and_get_next): Make sure
3446 operate-and-get-next functions correctly even when the history
3447 list is completely filled.
3448
3449 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3450
3451 * MAINTAINERS (Target Instruction Set Architectures): Rename
3452 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3453 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3454 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3455 already listed under Host/Native.
3456
3457 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3458 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3459 mips*-*-*.
3460
3461 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3462
3463 * config/ia64/ia64.mt: New file.
3464 * config/alpha/alpha.mt: New file.
3465 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3466 ia64-linux-gnu. Mention that ia64-elf is broken.
3467 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3468
3469 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3470
3471 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3472 generic_func_frame_valid instead of func_frame_valid.
3473
3474 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3475
3476 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3477 procfs appears to be broken when debugging on multi-processor
3478 machines. So enable software single stepping in order to avoid
3479 using the procfs interface to do next/step operations, using
3480 internal breakpoints instead.
3481
3482 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3483 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3484 make this pc address equal to the value it would have if the
3485 system stepping capability was used. Also set a new flag used
3486 to ensure that we don't readjust the PC one more time later.
3487
3488 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3489 address by DECR_PC_AFTER_BREAK when software single step is
3490 in use for this architecture, as this has already been taken
3491 care of in handle_inferior_event().
3492
3493 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3494
3495 * infrun.c (handle_inferior_event): Minor reformatting, to make
3496 a rather long condition expression easier to read.
3497
3498 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3499
3500 * Makefile.in (gdbtk.o): Move to end of file.
3501 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3502 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3503 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3504 (gdbtk-wrapper.o, gdbres.o): Ditto.
3505
3506 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3507
3508 * Makefile.in (copying.o): Separate out compile rule.
3509 (hpux-thread.o, procfs.o, signals.o): Ditto.
3510 (v850ice.o, z8k-tdep.o): Ditto.
3511 (tui-file.o): Move to TUI section.
3512 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3513 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3514
3515 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3516
3517 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3518 skip_trampoline_code, for better namespace-proofing.
3519
3520 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3521
3522 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3523
3524 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3525
3526 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3527
3528 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3529 signal, check whether we hit a breakpoint before checking for a
3530 single step breakpoint. Otherwise, GDB fails to notice that a
3531 breakpoint has been hit when stepping onto a breakpoint.
3532
3533 2002-08-16 Keith Seitz <keiths@redhat.com>
3534
3535 * gdb-events.sh (clear_gdb_event_hooks): New function.
3536 * gdb-events.c: Regenerate.
3537 * gdb-events.h: Regenerate.
3538
3539 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3540
3541 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3542 not_a_sw_breakpoint.
3543 * breakpoint.h (bpstat_stop_status): Add parameter names.
3544
3545 2002-08-16 Grace Sainsbury <graces@redhat.com>
3546
3547 * remote.c (remote_insert_hw_breakpoint)
3548 (remote_remove_hw_breakpoint): Fix calculation of length field
3549 for Z-packet.
3550
3551 2002-08-15 Michael Snyder <msnyder@redhat.com>
3552
3553 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3554 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3555 (supply_fpregset): Ditto.
3556
3557 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3558 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3559 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3560 (TARGET_READ_SP): Delete.
3561 (DO_REGISTERS_INFO): Delete.
3562 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3563 Delete.
3564 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3565 from macros to functions.
3566
3567 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3568 (mips_register_convertible, mips_register_convert_to_virtual,
3569 mips_register_convert_to_raw): Make static.
3570 (mips_read_sp): New function.
3571 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3572 (mips_do_registers_info): Make static.
3573 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3574 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3575 (mips_register_convert_from_type, mips_register_convert_to_type):
3576 New functions.
3577 (mips_gdbarch_init): Set up function_start_offset,
3578 register_virtual_size, pc_in_sigtramp.
3579
3580 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3581
3582 * infcmd.c (vector_info): New function.
3583 (_initialize_infcmd): Add command "info vector".
3584 (print_vector_info): New function.
3585
3586 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3587 * gdbarch.h, gdbarch.c: Regenerate.
3588
3589 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3590
3591 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3592 ``print_all''. Only print vector registers when ``print_all''.
3593
3594 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3595
3596 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3597 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3598
3599 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3600 Add `args' parameter.
3601 * gdbarch.h, gdbarch.c: Regenerate.
3602
3603 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3604
3605 * infcmd.c (float_info): Call print_float_info.
3606 (print_float_info): New function. By default, print the
3607 floating-point registers.
3608
3609 * arch-utils.h (default_print_float_info): Delete declaration.
3610 * arch-utils.c (default_print_float_info): Delete function.
3611
3612 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3613
3614 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3615 out define.
3616
3617 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3618 FRAME.
3619
3620 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3621 * configure.host: Make i[3456]86-*-aix host obsolete.
3622 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3623 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3624 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3625 config/i386/xm-i386aix.h: Make files obsolete.
3626 * i386aix-nat.c: Make file obsolete.
3627 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3628 (i386aix-nat.o): Make target obsolete.
3629
3630 * config/i386/nm-gnu.h: Removed.
3631 * config/i386/nm-i386gnu.h: New file.
3632 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3633 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3634 Moved here from ...
3635 * config/i386/tm-i386gnu.h: ... here. Removed.
3636 * config/i386/xm-i386gnu.h: Removed.
3637 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3638 (NAT_FILE): Set to nm-i386gnu.h.
3639 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3640 * i386-tdep.c: New file.
3641 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3642 (i386gnu-tdep.o): Specify dependencies.
3643
3644 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3645
3646 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3647 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3648 Adjust a few comments to reflect reality a bit closer.
3649 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3650 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3651 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3652 target_insert_watchpoint, target_remove_watchpoint):
3653 Move defines to ...
3654 * config/i386/nm-i386sco5.h: ... here.
3655 (kernel_u_size): Add prototype. Improve a few comments and add
3656 protection against multiple inclusion.
3657
3658 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3659 out define.
3660
3661 * uw-thread.c (SP_ARG0): Define if not already defined.
3662 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3663
3664 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3665
3666 * config/i386/tm-i386.h: Don't include "regcache.h".
3667
3668 * i387-tdep.h (i387_print_float_info): New prototype.
3669 * i387-tdep.c (print_i387_value, print_i387_ext,
3670 print_i387_status_word, print_i387_control_word): Add `struct
3671 ui_file *' argument and use it for output.
3672 (i387_print_float_info): Renamed from i387_float_info. Add
3673 `struct gdbarch *' and `struct ui_file *' arguments and use the
3674 latter for output.
3675 * i386-tdep.c: Include "i387-tdep.h".
3676 (i386_gdbarch_init): Set print_float_info.
3677 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3678 (FLOAT_INFO): Remove define.
3679
3680 2002-08-13 Michael Snyder <msnyder@redhat.com>
3681
3682 * mips-tdep.c (mips_push_arguments): Rename to
3683 mips_eabi_push_arguments, and tune for EABI.
3684 (MIPS_REGS_HAVE_HOME_P): Delete.
3685 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3686 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3687 Delete references to mips_regs_have_home_p.
3688
3689 2002-08-14 Keith Seitz <keiths@redhat.com>
3690
3691 * Makefile.in (install-gdbtk): Create insight plugin directory.
3692 Install plugins.tcl file.
3693
3694 2002-08-14 Keith Seitz <keiths@redhat.com>
3695
3696 * configure.in: Move SUBDIRS to near top of the file so that
3697 --enable options may add things to it.
3698 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3699 * configure: Regenerate.
3700
3701 2002-08-13 Michael Snyder <msnyder@redhat.com>
3702
3703 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3704 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3705 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3706
3707 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3708
3709 * vax-tdep.c (vax_get_saved_register): Delete function.
3710 (vax_gdbarch_init): Update.
3711 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3712 (ns32k_gdbarch_init): Update.
3713 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3714 (alpha_gdbarch_init): Update.
3715
3716 2002-08-13 Andrew Cagney <cagney@redhat.com>
3717
3718 * regcache.c (init_regcache_descr): Overallocate the
3719 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3720 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3721 nr_raw_registers.
3722 (set_register_cached): Add range checking assertions. Use
3723 current_regcache.
3724
3725 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3726
3727 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3728 numbers for MMX registers.
3729
3730 2002-08-13 Andrew Cagney <cagney@redhat.com>
3731
3732 * i386-tdep.c (i386_gdbarch_init): Use
3733 generic_unwind_get_saved_register.
3734
3735 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3736
3737 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3738 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3739 target vector.
3740 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3741 Delete. Add comment regarding this now-deleted target method.
3742
3743 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3744
3745 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3746 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3747 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3748 real PC and the page number (if it's within the memory bank window).
3749 (m68hc11_pseudo_register_write): Likewise when saving.
3750 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3751 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3752 (m68hc11_register_raw_size): And use 32-bit for it.
3753 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3754 16K memory bank is used by the prog; also use the virtual pc.
3755
3756 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3757
3758 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3759 (m68hc11_gdbarch_init): Install it in gdbarch.
3760 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3761 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3762 (MSYMBOL_SIZE): New for documentation.
3763 (insn_return_kind): Enum to specify how a function returns.
3764 (frame_extra_info): Cleanup and record the return mode.
3765 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3766 register in address computation.
3767 (m68hc11_get_return_insn): New to obtain the return instruction used
3768 by the function.
3769 (m68hc11_frame_init_saved_regs): Take into account the return
3770 instruction used by the function for far and interrupt functions.
3771 (m68hc11_init_extra_frame_info): Take into account page register.
3772 (m68hc11_frame_args_address): Adjust according to the return mode.
3773 (show_regs): Print page register only when it's used.
3774
3775 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3776
3777 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3778 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3779 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3780 registers.
3781 (m68hc11_register_raw_size): Likewise.
3782
3783 2002-08-13 Andrew Cagney <cagney@redhat.com>
3784
3785 * i386-tdep.c (i386_register_name): Handle mmx registers.
3786 (mmx_regnum_p): New function.
3787 (i386_mmx_names): New array.
3788 (mmx_num_regs): New variable.
3789 (i386_pseudo_register_read): New function.
3790 (i386_pseudo_register_write): New function.
3791 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3792
3793 * regcache.c (regcache_raw_read_unsigned): New function.
3794 (regcache_raw_read_signed): New function.
3795 * regcache.h (regcache_raw_read_unsigned): Declare.
3796 (regcache_raw_read_signed): Declare.
3797
3798 2002-08-13 Andrew Cagney <cagney@redhat.com>
3799
3800 * regcache.c (regcache_raw_read_as_address): Delete function.
3801 (regcache_cooked_read_signed): New function.
3802 (regcache_cooked_read_unsigned): New function.
3803 * regcache.h (regcache_cooked_read_signed): Declare.
3804 (regcache_cooked_read_unsigned): Declare.
3805 (regcache_raw_read_as_address): Delete declaration.
3806
3807 * blockframe.c (generic_read_register_dummy): Use
3808 regcache_cooked_read_unsigned.
3809 * i386-tdep.c (i386_extract_struct_value_address): Use
3810 regcache_cooked_read_unsigned.
3811
3812 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3813
3814 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3815 double sizes according to ELF ABI flags.
3816 (gdbarch_tdep): Record elf_flags.
3817
3818 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3819
3820 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3821 (m6812_prolog): They can appear in 68HC12 function prologue.
3822 (m68hc11_frame_chain): Cleanup.
3823
3824 2002-08-12 Andrew Cagney <cagney@redhat.com>
3825
3826 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3827 declarations.
3828 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3829 (i386_linux_register_raw_size): Delete function.
3830 (i386_linux_init_abi): Update.
3831 * i386-tdep.c (i386_register_raw_size): Delete function.
3832 (i386_register_byte): Delete function.
3833 (i386_gdbarch_init): Update.
3834 (i386_register_size): Delete array.
3835 (i386_register_offset): Delete array.
3836
3837 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3838 (REGISTER_RAW_SIZE): Delete macro.
3839 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3840 (REGISTER_BYTE): Delete macro.
3841
3842 2002-08-11 Aidan Skinner <aidan@velvet.net>
3843
3844 * ada-lang.c (ada_lookup_partial_symbol)
3845 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3846 prototype names so that grep ^func works properly.
3847
3848 * ada-lang.c (ada_array_element_type)
3849 (ada_lookup_partial_symbol): Fix typos in parameter list.
3850
3851 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3852 Fix prototype names so that grep ^func works properly.
3853
3854 2002-08-10 Andrew Cagney <cagney@redhat.com>
3855 Elena Zannoni <ezannoni@redhat.com>
3856 Martin M. Hunt <hunt@redhat.com>
3857
3858 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3859 (build_builtin_type_vec128i): Set the vector bit.
3860 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3861 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3862 (build_builtin_type_vec64): New function.
3863 (build_builtin_type_vec64i): New function.
3864 (build_gdbtypes): Initialize builtin_type_vec64 and
3865 builtin_type_vec64i.
3866
3867 2002-08-09 Andrew Cagney <cagney@redhat.com>
3868
3869 * regcache.c (regcache_dump): Compare the register offset
3870 with REGISTER_BYTE.
3871 * arch-utils.c (generic_register_byte): New function.
3872 * arch-utils.h (generic_register_byte): Declare.
3873 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3874 * gdbarch.h, gdbarch.c: Regenerate.
3875
3876 2002-08-09 Andrew Cagney <cagney@redhat.com>
3877
3878 * regcache.c: Include "gdbcmd.h"
3879 (_initialize_regcache): Add commands "maintenance print
3880 registers", "maintenance print raw-registers" and "maintenance
3881 print cooked-registers".
3882 (enum regcache_dump_what): Define.
3883 (dump_endian_bytes): New function.
3884 (regcache_dump): New function.
3885 (regcache_print): New function.
3886 (maintenance_print_registers): New function.
3887 (maintenance_print_raw_registers): New function.
3888 (maintenance_print_cooked_registers): New function.
3889 * Makefile.in (regcache.o): Update dependencies.
3890
3891 2002-08-09 Michael Snyder <msnyder@redhat.com>
3892
3893 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3894 (mips_push_arguments): Correct some comments. Use paddr_nz
3895 for printing addresses in debug output. Replace static
3896 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3897 (mips_n32n64_push_arguments): New function, cloned from
3898 mips_push_arguments and tuned for the n32/n64 ABI.
3899 (mips_push_register): Buffer needs dynamic allocation.
3900 (mips_print_register): Ditto.
3901 (do_gp_register_row): Ditto.
3902 (mips_store_return_value): Ditto.
3903 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3904
3905 2002-08-09 Don Howard <dhoward@redhat.com>
3906
3907 * memattr.c (mem_info_command): Print special case of upper bound
3908 as max CORE_ADDR + 1.
3909
3910 2002-08-08 Michael Snyder <msnyder@redhat.com>
3911
3912 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3913 returns structs by ref if they're too big to fit in two registers.
3914
3915 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3916
3917 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3918 saved regs value.
3919 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3920 mips_find_saved_regs().
3921 (mips_pop_frame): Likewise.
3922
3923 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3924
3925 * blockframe.c (frame_saved_regs_register_unwind): Revise
3926 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3927 frames are in use.
3928
3929 2002-08-09 Grace Sainsbury <graces@redhat.com>
3930
3931 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3932 T-packets; the 'a' is not taken as a register number.
3933 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3934 (remote_stopped_data_address): New functions; add to target
3935 vector.
3936 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3937 prototypes to match other implementations of this
3938 function. replace integer argument with pointer -- the length
3939 field in the Z-packet is the length of what is pointed to or 1 if
3940 pointer is null. Add to target vector.
3941 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3942 target vector.
3943
3944 From Mark Salter:
3945 * remote.c (remote_wait): Add support to extract optional
3946 watchpoint information from T-packet. Ignore unrecognized
3947 optional info in T-packet.
3948 (remote_async_wait): Ditto.
3949
3950 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3951
3952 * cli/cli-dump.c: Change fopen modes to use binary open modes
3953 as defined in include/fopen-bin.h throughout.
3954
3955 2002-08-08 Michael Snyder <msnyder@redhat.com>
3956
3957 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3958
3959 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3960
3961 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3962 assertion failure by returning early after a warning.
3963
3964 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3965
3966 * mips-tdep.c (mips_find_saved_regs): Make static.
3967 (mips_frame_init_saved_regs): New function.
3968 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3969 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3970 (mips_find_saved_regs): Delete declaration.
3971
3972 2002-08-08 Grace Sainsbury <graces@redhat.com>
3973
3974 * remote.c (remote_wait, remote_async_wait): Change
3975 thread_num from int to ULONGEST.
3976 (unpack_varlen_hex): Change result parameter from
3977 int * to ULONGEST *.
3978
3979 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3980
3981 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3982 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3983 powerpc*-*-*.
3984 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3985
3986 2002-08-08 Andrew Cagney <cagney@redhat.com>
3987
3988 * gcore.c (override_derive_stack_segment): Delete variable.
3989 (preempt_derive_stack_segment): Delete function.
3990 (derive_stack_segment): Delete function.
3991 (default_derive_stack_segment): Renamed to derive_stack_segment.
3992 (override_derive_heap_segment): Delete variable.
3993 (preempt_derive_heap_segment): Delete function.
3994 (derive_heap_segment): Delete function.
3995 (default_derive_heap_segment): Rename to derive_heap_segment.
3996
3997 2002-08-06 Michael Snyder <msnyder@redhat.com>
3998
3999 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4000 * mips-tdep.c (mips_EABI_use_struct_convention,
4001 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4002 New functions. (mips_use_struct_convention): Delete.
4003 (mips_gdbarch_init): set use_gdbarch_convention.
4004
4005 2002-08-06 Michael Snyder <msnyder@redhat.com>
4006
4007 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4008 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4009 mips_o32_reg_struct_has_addr): New functions.
4010 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4011
4012 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4013
4014 * regcache.c (pseudo_register): Delete function.
4015 (fetch_register): Delete function.
4016 (store_register): Delete function.
4017 (regcache_raw_read, legacy_read_register_gen): Use
4018 target_fetch_registers instead of fetch_register.
4019 (legacy_write_register_gen, regcache_raw_write): Use
4020 target_store_register instead of store_register.
4021 (write_register_bytes): Ditto.
4022
4023 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4024 (STORE_PSEUDO_REGISTER): Delete.
4025 * gdbarch.h, gdbarch.c: Regenerate.
4026
4027 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4028
4029 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4030 write dump file binary.
4031
4032 2002-08-05 Michael Snyder <msnyder@redhat.com>
4033
4034 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4035 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4036 (mips_gdbarch_init): Set N32 target to be mips64.
4037
4038 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4039
4040 * frame.c (find_saved_register): Break out of loop once saved
4041 register address is found. Don't mention sparc in loop comment
4042 anymore.
4043
4044 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4045
4046 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4047 mips_default_saved_regsize to 8.
4048
4049 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4050
4051 * gcore.c: Do not include <sys/procfs.h>.
4052 * Makefile.in (gcore.o): Update dependencies.
4053
4054 2002-08-06 Andrew Cagney <cagney@redhat.com>
4055
4056 * configure.tgt: Make arc-*-* obsolete.
4057 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4058 * MAINTAINERS: Make arc-elf obsolete.
4059 * arc-tdep.c: Make file obsolete.
4060 * config/arc/arc.mt: Ditto.
4061 * config/arc/tm-arc.h: Ditto.
4062
4063 2002-08-05 Theodore A. Roth <troth@verinet.com>
4064
4065 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4066
4067 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4068
4069 * mcore-tdep.c (mcore_gdbarch_init): Use
4070 generic_unwind_get_saved_register instead of
4071 generic_get_saved_register.
4072 * v850-tdep.c (v850_gdbarch_init): Ditto.
4073 * frv-tdep.c (frv_gdbarch_init): Ditto.
4074 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4075 * s390-tdep.c (s390_gdbarch_init): Ditto.
4076 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4077 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4078 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4079
4080 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4081
4082 * objfiles.h: Add missing #include "symfile.h"
4083
4084 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4085
4086 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4087
4088 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4089 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4090 of FIELD_BITSIZE.
4091
4092 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4093
4094 * NEWS: Cleanup and nitpick.
4095
4096 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4097
4098 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4099
4100 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4101
4102 * Makefile.in (gdbtk-bp.o): Update dependencies.
4103 (gdbtk-register.o): Ditto.
4104 (gdbtk-varobj.o): Ditto.
4105
4106 2002-08-03 Andrew Cagney <cagney@redhat.com>
4107
4108 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4109 m68hc11_fetch_pseudo_register.
4110 (m68hc11_pseudo_register_write): Replace
4111 m68hc11_store_pseudo_register.
4112 (m68hc11_gdbarch_init): Update.
4113
4114 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4115
4116 * gdbarch.sh: Include "gdb_string.h".
4117 * gdbarch.c: Regenerate.
4118
4119 * regcache.c: Include "gdb_string.h".
4120 * ax-general.c: Ditto.
4121 * varobj.c: Ditto.
4122 * std-regs.c: Ditto.
4123 * fbsd-proc.c: Ditto.
4124 * thread.c: Ditto.
4125
4126 * Makefile.in (regcache.o): Update dependencies.
4127 (thread.o, gdbarch.o): Ditto.
4128 (ax-general.o, gdbarch.o): Ditto.
4129 (varobj.o, std-regs.o): Ditto.
4130 (fbsd-proc.o): Specify dependencies.
4131
4132 2002-08-02 Andrew Cagney <cagney@redhat.com>
4133
4134 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4135 regnum.
4136 (regcache_cooked_write): Ditto.
4137
4138 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4139
4140 * regcache.c (regcache_cooked_read): New function.
4141 (regcache_cooked_write): New function.
4142 (read_register_gen): Rewrite using regcache_cooked_read.
4143 (write_register_gen): Rewrite using regcache_cooked_write.
4144
4145 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4146 Declare.
4147
4148 2002-08-02 Andrew Cagney <cagney@redhat.com>
4149
4150 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4151 Replace the architecture methods register_read and register_write.
4152 * gdbarch.h, gdbarch.c: Regenerate.
4153 * regcache.c (init_regcache_descr): Update.
4154 (read_register_gen): Update.
4155 (write_register_gen): Update.
4156 (supply_register): Update comment.
4157
4158 * sh-tdep.c (sh_gdbarch_init): Update.
4159 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4160 `regcache' and `gdbarch' parameters. Make `buffer' a void
4161 pointer. Update code.
4162 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4163 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4164 void pointer. Update code.
4165 (sh64_register_write): Delete.
4166 (sh4_register_read): Delete.
4167 (sh64_register_read): Delete.
4168 (sh4_register_write): Delete.
4169 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4170 void pointer, `to' parameter a void pointer.
4171 (sh_sh64_register_convert_to_raw): Ditto.
4172
4173 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4174
4175 * mips-tdep.c (mips_register_virtual_type): Use architecture
4176 invariant return values.
4177
4178 2002-08-01 Andrew Cagney <cagney@redhat.com>
4179
4180 * linux-proc.c: Include "gdb_string.h".
4181 * Makefile.in (linux-proc.o): Update dependency list.
4182
4183 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4184
4185 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4186 comment.
4187
4188 2002-08-01 Grace Sainsbury <graces@redhat.com>
4189
4190 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4191 to_insert_watchpoint, to_remove_watchpoint,
4192 to_stopped_by_watchpoint, to_stopped_data_address,
4193 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4194 target vecctor. Define their corresponding macros so they call
4195 them.
4196
4197 * target.c: Add default and debug versions of for
4198 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4199 to_insert_watchpoint, to_remove_watchpoint,
4200 to_stopped_by_watchpoint, to_stopped_data_address,
4201 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4202
4203 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4204
4205 * mips-tdep.c (mips_register_virtual_type): New function.
4206 (mips_gdbarch_init): Register mips_register_virtual_type()
4207 with gdbarch machinery.
4208 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4209 this file instead of tm-bigmips.h.
4210 (MIPS_REGSIZE): Delete this macro.
4211 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4212 multiarch version in mips-tdep.c will be found.
4213
4214 2002-08-01 Andrew Cagney <cagney@redhat.com>
4215
4216 * NEWS: Menion that CHILL has been made obsolete.
4217
4218 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4219 * stabsread.c (read_range_type): Ditto.
4220 * gdbtypes.h: Ditto.
4221 * language.c (binop_type_check): Ditto.
4222 (binop_result_type): Ditto.
4223 (integral_type): Ditto.
4224 (character_type): Ditto.
4225 (string_type): Ditto.
4226 (boolean_type): Ditto.
4227 (structured_type): Ditto.
4228 (lang_bool_type): Ditto.
4229 (binop_type_check): Ditto.
4230 * language.h (_LANG_chill): Ditto.
4231 * dwarfread.c (set_cu_language): Ditto.
4232 * dwarfread.c (CHILL_PRODUCER): Ditto.
4233 * dwarfread.c (handle_producer): Ditto.
4234 * expression.h (enum exp_opcode): Ditto.
4235 * eval.c: Ditto for comments.
4236 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4237 * expprint.c (print_subexp): Ditto.
4238 (print_subexp): Ditto.
4239 * valops.c (value_cast): Ditto.
4240 (search_struct_field): Ditto.
4241 * value.h (COERCE_VARYING_ARRAY): Ditto.
4242 * symfile.c (init_filename_language_table): Ditto.
4243 (add_psymbol_with_dem_name_to_list): Ditto.
4244 * valarith.c (value_binop): Ditto.
4245 (value_neg): Ditto.
4246 * valops.c (value_slice): Ditto.
4247 * symtab.h (union language_specific): Ditto.
4248 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4249 (SYMBOL_DEMANGLED_NAME): Ditto.
4250 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4251 * defs.h (enum language): Ditto.
4252 * symtab.c (got_symtab): Ditto.
4253 * utils.c (fprintf_symbol_filtered): Ditto.
4254
4255 * ch-typeprint.c: Make file obsolete.
4256 * ch-valprint.c: Make file obsolete.
4257 * ch-lang.h: Make file obsolete.
4258 * ch-exp.c: Make file obsolete.
4259 * ch-lang.c: Make file obsolete.
4260
4261 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4262 CHILL_LIB.
4263 (TARGET_FLAGS_TO_PASS): Ditto.
4264 (CHILLFLAGS): Obsolete.
4265 (CHILL): Obsolete.
4266 (CHILL_FOR_TARGET): Obsolete.
4267 (CHILL_LIB): Obsolete.
4268 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4269 ch-valprint.c.
4270 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4271 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4272 ch-lang.o.
4273 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4274 targets.
4275
4276 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4277
4278 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4279 This does not change anything at the moment, but will be helpful
4280 later when full Ada support is integrated.
4281
4282 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4283
4284 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4285 help message.
4286
4287 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4288
4289 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4290 and save it in a local variable. Use variable in later test.
4291
4292 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4293
4294 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4295 test. (Thanks to Daniel Jacobowitz.)
4296
4297 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4298
4299 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4300 (mips_abi_strings): Add "n64".
4301 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4302
4303 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4304
4305 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4306 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4307
4308 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4309
4310 * utils.c (host_pointer_to_address, address_to_host_pointer):
4311 Use gdb_assert() instead of explicit call to internal_error().
4312
4313 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4314
4315 * Makefile.in (rs6000-nat.o): Update dependencies.
4316
4317 From Nicholas Duffek:
4318 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4319 (aix-thread.o): New rule.
4320 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4321 * config/powerpc/aix432.mh: New file.
4322
4323 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4324
4325 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4326 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4327 (fetch_core_registers, ppc_linux_supply_gregset)
4328 (ppc_linux_supply_fpregset): New functions.
4329 (ppc_linux_regset_core_fns): New.
4330 (_initialize_ppc_linux_tdep): Call add_core_fns.
4331 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4332 and ppc_linux_supply_gregset.
4333 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4334 (supply_fpregset): Call ppc_linux_supply_fpregset.
4335 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4336 corelow.o.
4337 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4338
4339 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4340
4341 * symtab.c (lookup_symbol): Demangle before lowercasing.
4342
4343 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4344
4345 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4346 declaration.
4347 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4348 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4349 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4350 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4351 "gdb_string.h".
4352 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4353 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4354 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4355 (avr-tdep.o, mon960-rom.o): Ditto.
4356 (aout_stabs_gnu_h): Define.
4357 (symtab_h): Remove $(gdb_obstack_h).
4358
4359 2002-07-30 Jim Blandy <jimb@redhat.com>
4360
4361 Patch from David Carlton <carlton@math.stanford.edu>:
4362 * gdbinit.in: Move the `dir' commands that add GDB's own source
4363 directory to the search path to the end, so that the `gdb' source
4364 directory will be searched first.
4365
4366 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4367
4368 * gdb_obstack.h: New file.
4369 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4370 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4371 * objfiles.h: Include "gdb_obstack.h".
4372 * Makefile.in (gdb_obstack_h): Define.
4373 (symtab_h): Add $(gdb_obstack_h).
4374 (objfiles_h): Add $(gdb_obstack_h).
4375
4376 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4377 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4378 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4379 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4380 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4381 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4382 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4383 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4384
4385 * Makefile.in (bcache.o): Update dependencies.
4386 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4387 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4388 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4389 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4390 (stabsread.o, symfile.o, symmisc.o): Ditto.
4391 (symtab.o, typeprint.o, macroexp.o): Ditto.
4392 (macrotab.o, mdebugread.o): Ditto.
4393 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4394 (coff_ecoff_h, aout_aout64_h): Define.
4395 (aout_stabs_gnu_h, libaout_h): Define.
4396
4397 2002-07-29 Andrew Cagney <cagney@redhat.com>
4398
4399 * regcache.c (struct regcache_descr): Rename nr_registers to
4400 nr_cooked_registers. Revise comments describing the structure
4401 member fields.
4402 (init_regcache_descr): Update.
4403 (init_legacy_regcache_descr): Update.
4404 (read_register_gen, write_register_gen): When a cooked register in
4405 the raw register range, directly access the value from the raw
4406 register cache.
4407
4408 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4409
4410 * z8k-tdep.c: Do not include "obstack.h".
4411 * h8300-tdep.c, h8500-tdep.c: Ditto.
4412 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4413 * valprint.c, v850-tdep.c: Ditto.
4414 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4415 * mn10200-tdep.c: Ditto.
4416
4417 * Makefile.in (z8k-tdep.o): Update dependencies.
4418 (m68hc11-tdep.o, valprint.o): Ditto.
4419 (v850-tdep.o, d10v-tdep.o): Ditto.
4420 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4421 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4422 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4423 (sh_opc_h, gdb_sim_sh_h): Define.
4424 (elf_sh_h, elf_bfd_h): Define.
4425 (opcode_m68hc11_h): Define.
4426 (OPCODES_SRC, OPCODES_DIR): define.
4427 (OPCODES): Use $(OPCODES_DIR).
4428 (gdb_sim_d10v_h): Rename sim_d10v_h.
4429 (gdb_sim_arm_h): Rename sim_arm_h.
4430
4431 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4432
4433 * utils.c (host_pointer_to_address, address_to_host_pointer):
4434 Change internal_error() message to indicate function responsible
4435 for the error.
4436
4437 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4438
4439 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4440 calls to local_hex_string_custom().
4441
4442 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4443
4444 * irix5-nat.c: Move IRIX shared library support from here...
4445 * solib-irix.c: ...to here. Revised substantially to work with
4446 generic solib framework.
4447
4448 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4449 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4450 * mips-irix-tdep.c: New file.
4451
4452 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4453 (mips-irix-tdep.o, solib-irix.o): New rules.
4454 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4455 solib-irix.o.
4456 * config/mips/irix6.mt (TDEPFILES): Likewise.
4457 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4458
4459 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4460
4461 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4462 disabled (via ``#if 0'') includes.
4463
4464 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4465
4466 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4467 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4468 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4469 Add support for the fpscr register.
4470 * rs6000-nat.c (regmap, fetch_inferior_registers)
4471 (store_inferior_registers, fetch_core_registers): Likewise.
4472
4473 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4474
4475 * rs6000-nat.c (language.h): Include.
4476 (special_regs): Delete this array.
4477 (regmap): New function.
4478 (fetch_register, store_register): Use regmap() to map gdb
4479 register numbers to ptrace register numbers. Also, use
4480 outputs from regmap() to make decisions regarding type of
4481 ptrace() call to make. In particular, don't compare against
4482 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4483 (fetch_inferior_registers, store_inferior_registers): Where
4484 possible, obtain register numbers from tdep struct. Don't
4485 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4486 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4487 (LAST_UISA_SP_REGNUM): Delete.
4488
4489 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4490
4491 * rs6000-nat.c (ppc-tdep.h): Include.
4492 (fetch_registers, store_register, fetch_core_registers): Don't
4493 access registers[] directly. Instead, use supply_register() or
4494 regcache_collect() as appropriate.
4495 (find_toc_address): Format hex address with local_hex_string().
4496
4497 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4498
4499 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4500 bfd/elf32-frv.c.
4501
4502 2002-07-24 Tom Tromey <tromey@redhat.com>
4503
4504 * jv-exp.y: Marked all strings with _().
4505 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4506 internal_error.
4507 (MethodInvocation, CastExpression, parse_number, yyerror,
4508 java_type_from_name, push_expression_name, yylex): Typo fixes.
4509
4510 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4511
4512 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4513 (tee_file_flush, tee_file_write, tee_file_fputs)
4514 (tee_file_isatty): New.
4515 * ui-file.h (tee_file_new): Add prototype.
4516
4517 2002-07-24 Aidan Skinner <aidan@velvet.net>
4518
4519 * ada-lang.c: Change k&r style function definitions to prototyped
4520 form.
4521 * ada-typeprint.c: Change k&r style function definitions to prototyped
4522 form.
4523 * ada-valprint.c: Change k&r style function definitions to prototyped
4524 form.
4525
4526 2002-07-24 Andrew Cagney <cagney@redhat.com>
4527
4528 * README: Remove reference to remote-bug.
4529 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4530 remote-bug.c.
4531 (m88k-nat.o): Delete rule.
4532 (m88k-tdep.o): Delete rule.
4533 (remote-bug.o): Delete rule.
4534 * MAINTAINERS: Mark as obsolete.
4535 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4536 * m88k-tdep.c: Make file obsolete.
4537 * config/m88k/m88k.mh: Ditto.
4538 * config/m88k/delta88v4.mh: Ditto.
4539 * config/m88k/delta88v4.mt: Ditto.
4540 * config/m88k/delta88.mt: Ditto.
4541 * config/m88k/delta88.mh: Ditto.
4542 * remote-bug.c: Ditto.
4543 * config/m88k/tm-delta88.h: Ditto.
4544 * config/m88k/nm-delta88v4.h: Ditto.
4545 * config/m88k/xm-delta88.h: Ditto.
4546 * config/m88k/xm-dgux.h: Ditto.
4547 * config/m88k/tm-m88k.h: Ditto.
4548 * config/m88k/nm-m88k.h: Ditto.
4549 * config/m88k/tm-delta88v4.h: Ditto.
4550 * m88k-nat.c: Ditto.
4551 * cxux-nat.c: Ditto.
4552 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4553 and m88*-*-* obsolete.
4554 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4555 m88*-*-* obsolete.
4556
4557 2002-07-24 Andrew Cagney <cagney@redhat.com>
4558
4559 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4560 constant. Same for local pointer variables.
4561 (extract_signed_integer): Ditto.
4562 * defs.h (extract_unsigned_integer): Update.
4563 (extract_signed_integer): Update.
4564
4565 2002-07-24 Andrew Cagney <cagney@redhat.com>
4566
4567 * regcache.c (regcache_raw_write): Change buf parameter to a
4568 constant void pointer.
4569 (regcache_raw_read): Change buf parameter to a void pointer.
4570 (legacy_write_register_gen): Change myaddr parameter a constant
4571 void pointer.
4572 (supply_register): Change val parameter to a const void pointer.
4573 * regcache.h (regcache_raw_write): Update declaration.
4574 (regcache_raw_read): Update declaration.
4575 (supply_register): Update declaration.
4576
4577 2002-07-24 Tom Tromey <tromey@redhat.com>
4578
4579 * defs.h (gdb_readline_wrapper): Declare.
4580 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4581 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4582 * top.c (gdb_readline_wrapper): New function.
4583 (command_line_input): Use it.
4584
4585 2002-07-24 Andrew Cagney <cagney@redhat.com>
4586
4587 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4588 regcache_read and regcache_write.
4589 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4590 * regcache.c: Update.
4591 * sh-tdep.c (sh64_push_arguments): Update comment.
4592 (sh_pseudo_register_read): Update.
4593 (sh_pseudo_register_write): Update.
4594 (sh4_register_read): Update.
4595 (sh4_register_write): Update.
4596 (sh64_pseudo_register_read): Update.
4597 (sh64_pseudo_register_write): Update.
4598 (sh64_register_read): Update.
4599 (sh64_register_write): Update.
4600 * i386-tdep.c (i386_extract_return_value): Update.
4601 (i386_extract_struct_value_address): Update.
4602 (i386_extract_return_value): Update.
4603 * blockframe.c (generic_read_register_dummy): Update.
4604 (generic_call_dummy_register_unwind): Update
4605 * infrun.c (write_inferior_status_register): Update.
4606
4607 2002-07-23 Jim Blandy <jimb@redhat.com>
4608
4609 * parser-defs.h (expression_context_pc): Make this extern.
4610 (Thanks to Michael Snyder.)
4611
4612 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4613
4614 GDB 5.2.1 released from 5.2 branch.
4615 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4616 * README: Update to mention 5.2.1.
4617
4618 2002-07-23 Mark Salter <msalter@redhat.com>
4619
4620 * remote.c (remote_read_bytes): Fix check for error.
4621
4622 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4623
4624 * aix-thread.c (language.h): Include.
4625 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4626 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4627 Print newlines at end of debug messages.
4628 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4629 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4630
4631 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4632
4633 * aix-thread.c (ppc-tdep.h): Include.
4634 (special_register_p): New function.
4635 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4636 (store_regs_user_thread): Use register number information from
4637 gdbarch_tdep struct instead of hardcoded offsets relative to
4638 FIRST_UISA_SP_REGNUM.
4639 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4640 special_register_p() instead of using FPLAST_REGNUM and
4641 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4642 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4643 will be MQ's register number.
4644
4645 2002-07-22 Michael Snyder <msnyder@redhat.com>
4646
4647 * aix-thread.c (ops): Rename to aix_thread_ops.
4648 (base_ops): Rename to base_target.
4649 (ops_attach): Rename to aix_thread_attach.
4650 (ops_detach): Rename to aix_thread_detach.
4651 (ops_resume): Rename to aix_thread_detach.
4652 (ops_wait): Rename to aix_thread_wait.
4653 (ops_kill): Rename to aix_thread_kill.
4654 (init_ops): Rename to init_aix_thread_ops.
4655 (ops_fetch_register): Rename to aix_thread_fetch_register.
4656 (ops_store_register): Rename to aix_thread_store_register.
4657 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4658 (ops_thread_alive): Rename to aix_thread_thread_alive.
4659 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4660 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4661 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4662 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4663 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4664 (store_regs_lib): Rename to store_regs_user_thread.
4665 (store_regs_kern): Rename to store_regs_kernel_thread.
4666
4667 2002-07-22 Michael Snyder <msnyder@redhat.com>
4668
4669 * aix-thread.c (ops_prepare_to_store): Eliminate.
4670 (init_ops): Don't initialize ops.prepare_to_store.
4671 (store_regs_kern): Pre-fetch register buffers from child,
4672 because some registers may not be in the cache. Copy
4673 regs from register cache only if they are cached.
4674 (store_regs_lib): Copy regs from register cache only
4675 if they are cached.
4676 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4677 fill_gprs64): Ditto.
4678
4679 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4680
4681 * aix-thread.c (gdb_assert.h): Include.
4682 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4683 register sizes (from register cache) match size of buffer holding
4684 register data.
4685 (fill_sprs32): Change parameter types to match those in the ptrace()
4686 buffer.
4687 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4688 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4689
4690 2002-07-22 Michael Snyder <msnyder@redhat.com>
4691
4692 * aix-thread.c (supply_sprs64): Cosmetic change.
4693 (supply_sprs32): Cosmetic change.
4694 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4695 (fill_sprs64): Use regcache_collect instead of read_register.
4696 (store_regs_lib): Use regcache_collect instead of
4697 read_register. Use fill_sprs32 instead of fill_sprs64,
4698 if debugging a 32-bit architecture.
4699 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4700 out of the register cache, instead of passing a pointer into
4701 the register cache directly to ptrace. Use regcache_collect
4702 insteaad of read_register.
4703 (ops_prepare_to_store): Use target_read_registers instead
4704 of read_register_bytes.
4705
4706 2002-07-20 Aidan Skinner <aidan@velvet.net>
4707
4708 * MAINTAINERS: Add self under write after approval.
4709
4710 2002-07-20 Aidan Skinner <aidan@velvet.net>
4711
4712 * ada-tasks.c: Change k&r style function definitions to prototyped
4713 form.
4714
4715 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4716
4717 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4718 * x86-64-tdep.c: Include "objfiles.h".
4719 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4720 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4721
4722 2002-07-17 Michal Ludvig <michal@suse.cz>
4723
4724 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4725 (update_context): Initialise cfa variable.
4726
4727 2002-07-17 Michael Snyder <msnyder@redhat.com>
4728
4729 * aix-thread.c: Shorten some long lines.
4730 Bring comments into line with code spec.
4731
4732 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4733
4734 * infrun.c: Re-indent using gdb_indent.sh.
4735
4736 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4737
4738 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4739 Leave the indentation temporarily untouched, to minimize the diffs.
4740
4741 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4742
4743 * stabsread.c: Make os9k sections of the code obsolete,
4744 for real this time.
4745 * stabsread.h: Make os9k sections of the code obsolete.
4746
4747 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4748
4749 * linux-low.c (regsets_store_inferior_registers): Add free()
4750 at the end of a loop to prevent memory leak.
4751 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4752 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4753 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4754 line a comment.
4755 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4756
4757 2002-07-17 Jim Blandy <jimb@redhat.com>
4758
4759 * macrocmd.c (info_macro_command): Remove newline from error
4760 message.
4761
4762 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4763
4764 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4765 (sh_gdbarch_init): Use it for sh-dsp.
4766
4767 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4768
4769 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4770 64-bit DWARF2 format.
4771
4772 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4773
4774 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4775 <sys/proc.h> when not available.
4776
4777 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4778
4779 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4780 * stabsread.c: Make os9k sections of the code obsolete.
4781 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4782 * config/i386/i386os9k.mt: Make file obsolete.
4783 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4784 (COMMON_OBS): Remove os9kread.o
4785 (SFILES): Remove os9kread.c.
4786 (os9kread.o, remote-os9k.o): Make target obsolete.
4787 * remote-os9k.c: Make file obsolete.
4788 * os9kread.c: Make file obsolete.
4789 * Makefile.in
4790
4791 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4792
4793 * NEWS: Mention that the FR30 has been made obsolete.
4794 * fr30-tdep.c: Make file obsolete.
4795 * config/fr30/tm-fr30.h: Ditto.
4796 * config/fr30/fr30.mt: Ditto.
4797 * configure.tgt: Make fr30-*-elf obsolete.
4798 * MAINTAINERS: Make fr30-elf obsolete.
4799
4800 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4801
4802 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4803 found is not inside a section.
4804
4805 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4806
4807 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4808 strerror().
4809 (pdc_realloc): Use xrealloc() instead of realloc().
4810
4811 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4812
4813 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4814 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4815 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4816 macros.
4817
4818 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4819
4820 * aix-thread.c (ptrace_check): Eliminate goto.
4821 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4822 problem.
4823
4824 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4825
4826 * aix-thread.c (gdbcmd.h): Include.
4827 (DEBUG, DBG, DBG2, dbg): Eliminate.
4828 (debug_aix_thread): New static global.
4829 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4830 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4831 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4832 invocations to DBG and DBG2 macros to test against
4833 ``debug_aix_thread'' and call fprintf_unfiltered().
4834 (_initialize_aix_thread): Add new command "set debug aix-thread".
4835
4836 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4837
4838 From Gerhard Tonn <TON@de.ibm.com>:
4839 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4840 instead of supply_register.
4841
4842 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4843
4844 * dwarf2cfi.c: Include "gdb_assert.h".
4845 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4846 non-NULL.
4847 (update_context): Do not use __func__. Add missing ``break''.
4848 (update_context): Do not use __func__.
4849
4850 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4851
4852 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4853 and its setting. Set gdbarch instruction printing functions
4854 directly. For non-rs6000 case use new function
4855 gdb_print_insn_powerpc.
4856 (gdb_print_insn_powerpc): New function.
4857
4858 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4859
4860 * NEWS: Mention that the d30v has been marked obsolete.
4861 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4862 * configure.tgt: Mark d30v-*-* as obsolete.
4863 * d30v-tdep.c: Mark file as obsolete.
4864 * config/d30v/d30v.mt: Ditto.
4865 * config/d30v/tm-d30v.h: Ditto.
4866
4867 2002-07-13 Aidan Skinner <aidan@velvet.net>
4868
4869 * ada-tasks.c (add_task_entry): replace calls to
4870 malloc() with xmalloc
4871 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4872
4873 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4874 ada_finish_decode_line_1, all_sals_for_line
4875 ada_breakpoint_rewrite): replace calls to free() with xfree()
4876
4877 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4878
4879 From Nicholas Duffek (with minor changes by Martin Hunt,
4880 Louis Hamilton, and Kevin Buettner):
4881 * aix-thread.c: New file.
4882
4883 2002-07-12 Petr Sorfa <petrs@caldera.com>
4884
4885 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4886 complaint for invalid attribute class or form.
4887 (read_func_scope): DW_AT_frame_base
4888 better handling of DW_AT_block*.
4889 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4890 better handling of DW_AT_block*.
4891 (read_common_block): DW_AT_location
4892 better handling of DW_AT_block*.
4893 (read_partial_die): DW_AT_location better handling
4894 of DW_AT_block*.
4895 (new_symbol): DW_AT_external better handling of
4896 DW_AT_block*. Proper initialization of variable
4897 "addr".
4898 (attr_form_is_block): New function that returns true
4899 if the attribute's form is of DW_FORM_block*.
4900
4901 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4902
4903 * valops.c (find_method_list): Remove comment about
4904 removed STATIC_MEMFUNCP argument.
4905 (value_find_oload_method_list): Likewise.
4906
4907 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4908
4909 From Nicholas Duffek:
4910 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4911 target_new_objfile_hook.
4912
4913 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4914
4915 From Nicholas Duffek:
4916 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4917 csect.
4918
4919 2002-07-12 Andrew Cagney <cagney@redhat.com>
4920
4921 * MAINTAINERS: Mention --enable-sim-build-warnings.
4922 (m68hc11-elf): Disable sim build warnings.
4923 (m32r-elf): Mark as broken obsolete candidate.
4924 (x86_64-linux-gnu): Mark as buildable with -Werror.
4925 (arm-elf): Change -w to ``,'' which enables warnings but not
4926 -Werror.
4927
4928 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4929
4930 * bcache.h: Update copyright.
4931 (struct bstring, struct bcache): Move definition to "bcache.c".
4932 Replaced by opaque declaration.
4933 (bcache_xfree): Replace free_bcache.
4934 (bcache_xmalloc, bcache_memory_used): Declare.
4935
4936 * bcache.c: Update copyright.
4937 (struct bstring, struct bcache): Moved to here from "bcache.h".
4938 Update comments.
4939 (bcache_xmalloc, bcache_memory_used): New functions.
4940 (bcache_xfree): Replace function free_bcache.
4941
4942 * Makefile.in (objfiles.o): Add $(bcache_h).
4943 (objfiles_h): Remove $(bcache_h).
4944 (symfile.o): Add $(bcache_h).
4945
4946 * symmisc.c: Update copyright.
4947 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4948 (print_objfile_statistics): Use bcache_memory_used.
4949
4950 * symfile.c: Include "bcache.h".
4951 (reread_symbols): Use bcache_xfree.
4952 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4953 (add_psymbol_to_list): Pass psymbol_cache by value.
4954 (add_psymbol_with_dem_name_to_list): Ditto.
4955
4956 * objfiles.h: Update copyright.
4957 (struct bcache): Declare opaque. Do not include "bcache.h".
4958 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4959 bcache'' pointers.
4960 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4961
4962 * objfiles.c: Include "bcache.h". Update copyright.
4963 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4964 macro_cache.
4965 (free_objfile): Use bcache_xfree.
4966
4967 2002-07-11 Grace Sainsbury <graces@redhat.com>
4968
4969 * monitor.c (monitor_fetch_register): Make name a constant.
4970 (monitor_store_register): Same.
4971
4972 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4973
4974 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4975 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4976 (finish_block) For non-function blocks, hash the symbol table. For
4977 function blocks, mark the symbol table as unhashed.
4978 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4979 (msymbol_hash_iw): Likewise.
4980 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4981 value.
4982 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4983 (lookup_minimal_symbol): Likewise for both.
4984 * symtab.h (struct block): Add `hashtable' flag. Comment the
4985 hashtable.
4986 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4987 (ALL_BLOCK_SYMBOLS): Update.
4988 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4989 (struct symbol): Add `hash_next' pointer.
4990 * symtab.c (lookup_block_symbol): Search using the hash table when
4991 possible.
4992 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4993 (search_symbols, find_addr_symbol): Likewise.
4994
4995 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4996 (read_dst_symtab): Likewise.
4997 * jv-lang.c (get_java_class_symtab): Likewise.
4998 * mdebugread.c: Include "gdb_assert.h".
4999 (shrink_block): Assert that the block being modified is not hashed.
5000 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5001 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5002 symbols.
5003 (dump_symtab): Recognize hashed blocks.
5004 * printcmd.c (print_frame_args): Assert that function blocks do not
5005 have hashed symbol tables.
5006 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5007 (fill_in_ada_prototype, debug_print_block): Likewise.
5008 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5009
5010 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5011
5012 * stack.c (print_frame): Use result of frame_address_in_block()
5013 instead of fi->pc when evaluating symbols.
5014 (backtrace_command_1): Ditto.
5015
5016 2002-07-11 Andrew Cagney <cagney@redhat.com>
5017
5018 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5019 Make static.
5020
5021 * arm-tdep.c (arm_register_name): Make return type constant.
5022
5023 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5024
5025 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5026 prototype.
5027 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5028 * s390-tdep.c (s390_fp_regnum): Ditto.
5029 (s390_read_fp): Ditto.
5030 (s390_pop_frame): Ditto.
5031 (_initialize_s390_tdep): Ditto.
5032 * remote.c (get_remote_state): Ditto.
5033 * procfs.c (mappingflags): Ditto.
5034 * memattr.c (_initialize_mem): Ditto.
5035 * mcore-tdep.c (mcore_pop_frame): Ditto.
5036 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5037 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5038 * language.c (set_case_str): Ditto.
5039 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5040 * frv-tdep.c (new_variant): Ditto.
5041 (frv_stopped_data_address): Ditto.
5042 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5043 (context_alloc): Ditto.
5044 (frame_state_alloc): Ditto.
5045 (unwind_tmp_obstack_init): Ditto.
5046 (unwind_tmp_obstack_free): Ditto.
5047 (cfi_read_fp): Ditto.
5048 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5049 (cris_pop_frame): Ditto.
5050 * c-lang.c (scanning_macro_expansion): Ditto.
5051 (finished_macro_expansion): Ditto.
5052 (c_preprocess_and_parse): Ditto.
5053 * gdbarch.sh: Ditto.
5054 * gdbarch.h, gdbarch.c: Regenerate.
5055 * config/mn10200/tm-mn10200.h: Adjust indentation.
5056 * target.c: Adjust indentation.
5057 * symtab.h: Adjust indentation.
5058 * stabsread.h: Adjust indentation.
5059 * remote-es.c: Adjust indentation.
5060 * os9kread.c: Adjust indentation.
5061
5062 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5063
5064 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5065 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5066
5067 2002-07-10 Grace Sainsbury <graces@redhat.com>
5068
5069 * NEWS: Mention m68k, mcore multi-arching.
5070 * MAINTAINERS: Change status of m68k, mcore to reflect
5071 multi-arching.
5072
5073 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5074
5075 * valops.c (find_overload_match): Free oload_syms.
5076
5077 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5078
5079 Define HAVE_SYS_PROC_H if sys/proc.h exists
5080 * configure.in: Add check for sys/proc.h
5081 * config.in: Regenerate.
5082 * configure: Regenerate.
5083
5084 2002-07-09 Grace Sainsbury <graces@redhat.com>
5085
5086 * config/m68k/tm-m68k.h: Remove macros wrapped in
5087 #if !GDB_MULTI_ARCH.
5088
5089 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5090
5091 * config.in, configure: Regenerate.
5092
5093 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5094
5095 * dwarf2cfi.c: Include "gcore.h".
5096 (execute_stack_op): Fix implementation of the
5097 DW_OP_deref and DW_OP_deref_size operators by letting do their
5098 lookup in the target.
5099
5100 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5101
5102 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5103 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5104 tdep->sc_sp_offset.
5105
5106 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5107
5108 Fix PR gdb/595, gdb/602
5109 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5110 Don't call value_cast, just read the vtable pointer; update comments
5111 to match.
5112
5113 2002-07-05 Grace Sainsbury <graces@redhat.com>
5114
5115 * config/mcore/tm-mcore.h: Remove file.
5116 * config/mcore/mcore.mt: Remove definition of TM_FILE
5117 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5118
5119 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5120
5121 * i386bsd-tdep.c: Include "gdb_string.h".
5122
5123 2002-07-04 Grace Sainsbury <graces@redhat.com>
5124
5125 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5126 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5127 mcore-tdep.
5128 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5129 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5130 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5131 (RETVAL_REGNUM): Move macros from tm-mcore.h
5132 (mcore_reg_struct_has_addr): New function.
5133 (mcore_gdbarch_init): Added initializations for the macros removed
5134 from tm-mcore.h.
5135
5136 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5137
5138 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5139 traditonal string branding within the ELF header.
5140
5141 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5142
5143 * symtab.c (remove_params): New function.
5144 (make_symbol_overload_list): Use it instead of cplus_demangle.
5145 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5146
5147 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5148
5149 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5150
5151 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5152 New variables.
5153 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5154 and tdep->sigtramp_end.
5155 * i386obsd-nat.c: New file.
5156 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5157
5158 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5159 Don't call get_current_frame().
5160
5161 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5162
5163 * i386-nat.c (child_post_startup_inferior): New function
5164 calling i386_cleanup_dregs if
5165 I386_USE_GENERIC_WATCHPOINTS is defined.
5166 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5167 conditional to acknowledge that i386-nat.c has its
5168 own child_post_startup_inferior function.
5169
5170 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5171
5172 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5173 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5174 instead of MAX_REGISTER_RAW_SIZE.
5175 (i386_extract_return_value, i386_extract_struct_value_address):
5176 Convert to use regcache.
5177 (i386_gdbarch_init): Set max_register_raw_size and
5178 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5179 Set extract_return_value and extract_struct_value_address instead
5180 of their deprecated variants.
5181
5182 Convert i386 target to generic dummy frames.
5183 * i386-tdep.c: Include "symfile.h".
5184 (i386_frameless_signal_p): Consider a function to be frameless if
5185 the pc points at the first instruction of the function.
5186 (i386_frame_chain): Handle (generic) call dummies.
5187 (i386_frame_saved_pc): Likewise.
5188 (i386_frame_init_saved_regs): Remove code dealing with call
5189 dummies on the stack.
5190 (i386_push_dummy_frame): Removed.
5191 (i386_call_dummy_words): Removed.
5192 (i386_fix_call_dummy): Removed.
5193 (i386_push_return_address): New function.
5194 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5195 parameter, and don't call get_current_frame.
5196 (i386_pop_frame): New function.
5197 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5198 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5199 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5200 call_dummy_length to 0, set call_dummy_words to NULL, set
5201 sizeof_call_dummy_words to 0, set fix_call_dummy to
5202 generic_fix_call_dummy, set pc_in_call_dummy to
5203 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5204 generic_push_dummy_frame, set push_return_address to
5205 i386_push_return_address and set frame_chain_valid to
5206 generic_file_frame_chain_valid.
5207
5208 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5209
5210 * gdbarch.sh (struct regcache): Add opaque declaration.
5211 (EXTRACT_RETURN_VALUE): New architecture method.
5212 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5213 * gdbarch.h, gdbarch.c: Regenerate.
5214 * arch-utils.c (legacy_extract_return_value): New function.
5215 * arch-utils.h (legacy_extract_return_value): Declare.
5216 * values.c (value_being_returned): Re-enable code handling
5217 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5218 deprecated_grub_regcache_for_registers call to block handling
5219 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5220 (EXTRACT_RETURN_VALUE): Do not define.
5221
5222 2002-07-03 Grace Sainsbury <graces@redhat.com>
5223
5224 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5225 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5226 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5227 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5228 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5229 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5230 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5231 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5232 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5233 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5234 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5235 argument so the function fits the prototype in the architecture
5236 vector.
5237 (mcore_pop_frame): Remove argument so the function fits the
5238 prototype. Use get_current_frame instead of the argument.
5239 (mcore_push_arguments): Change type of struct_return so the
5240 function can be used in the architecture vector.
5241 (mcore_store_struct_return): Add.
5242 (mcore_frame_init_saved_regs): Add.
5243 (mcore_gdbarch_init): Add function calls to replace the macros
5244 removed from tm-mcore.h
5245
5246 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5247
5248 * infcmd.c (print_return_value): Remove compatibility code calling
5249 deprecated_grub_regcache_for_registers.
5250
5251 * values.c: Include "regcache.h".
5252 (value_being_returned): Update. Use
5253 deprecated_grub_regcache_for_registers to extract the register
5254 buffer address.
5255 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5256 ``struct regcache''.
5257 * Makefile.in (values.o): Add dependency on $(regcache_h).
5258
5259 * inferior.h (run_stack_dummy): Change type of second parameter to
5260 a ``struct regcache''.
5261 * valops.c (hand_function_call): Change type of retbuf to ``struct
5262 regcache''. Allocate using regcache_xmalloc, clean using
5263 make_cleanup_regcache_xfree.
5264 * infcmd.c (run_stack_dummy): Update. Use
5265 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5266
5267 * regcache.c (do_regcache_xfree): New function.
5268 (make_cleanup_regcache_xfree): New function.
5269 * regcache.h (make_cleanup_regcache_xfree): Declare.
5270
5271 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5272
5273 * event-top.c (command_line_handler): Don't read past
5274 beginning of buffer.
5275
5276 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5277
5278 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5279 struct frame_id.
5280 (varobj_create): Store frame_id for root.
5281 (varobj_gen_name): Use xasprintf.
5282 (varobj_update): Save and restore frame using get_frame_id() and
5283 frame_find_by_id().
5284 (create_child): Use xasprintf.
5285 (new_root_variable): Initialize frame_id.
5286 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5287 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5288 to prevent memory leak.
5289
5290 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5291
5292 * valops.c (hand_function_call): Move declaration of retbuf to
5293 start of function, allocate using malloc, add a cleanup but before
5294 the inf_status cleanup, cleanup the buffer. Rename local variable
5295 old_chain to inf_status_cleanup.
5296
5297 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5298
5299 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5300
5301 * cli/cli-decode.c (cmd_func_p): New function.
5302 (cmd_func): New function.
5303
5304 * command.h: Add cmd_func() and cmd_func_p().
5305
5306 2002-07-03 Grace Sainsbury <graces@redhat.com>
5307
5308 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5309 (REGISTER_SIZE): Remove.
5310 (MAX_REGISTER_RAW_SIZE): Remove.
5311 (REGISTER_VIRTUAL_TYPE): Remove.
5312 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5313 (REGISTER_NAME): Remove.
5314 (USE_GENERIC_DUMMY_FRAMES): Remove.
5315 (CALL_DUMMY): Remove.
5316 (CALL_DUMMY_START_OFFSET): Remove.
5317 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5318 (CALL_DUMMY_LOCATION): Remove.
5319 (FIX_CALL_DUMMY): Remove.
5320 (CALL_DUMMY_ADDRESS): Remove.
5321 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5322 (SAVE_DUMMY_FRAME_TOS): Remove.
5323 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5324 (mcore_register_virtual_type): New function.
5325 (mcore_register_byte): New function.
5326 (mcore_register_size): New function.
5327 (mcore_register_name): New function.
5328 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5329 macros removed from tm-mcore.h.
5330 (mcore_dump_tdep): Add.
5331 (_initialize_mcore_tdep): Add gdbarch_register call.
5332
5333 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5334
5335 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5336 frameless_look_for_prologue, such that we actually call this
5337 function.
5338
5339 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5340
5341 * frame.h (frame_address_in_block): New function.
5342
5343 * blockframe.c (frame_address_in_block): New function extracted
5344 from get_frame_block().
5345 (get_frame_block): Use frame_address_in_block().
5346 (block_innermost_frame): Use frame_address_in_block() to match
5347 the frame pc address against the block boundaries rather than
5348 the frame pc directly. This prevents a failure when a frame pc
5349 is actually a return-address pointing immediately after the end
5350 of the given block.
5351
5352 2002-07-02 Grace Sainsbury <graces@redhat.com>
5353
5354 * MAINTAINERS: Add self under write after approval.
5355
5356 2002-07-02 Grace Sainsbury <graces@redhat.com>
5357
5358 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5359 used in architecture vector. The default is
5360 m68k_local_breakpoint_from_pc.
5361 (m68k_local_breakpoint_from_pc): Add.
5362 (enum): Add register numbers from tm-m68k.h.
5363 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5364 vector.
5365 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5366 GDB_MULTI_ARCH_PARTIAL.
5367 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5368 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5369 m68k-tdep.c.
5370 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5371 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5372 to enum in m68k-tdep.c
5373
5374 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5375
5376 * solib-osf.c (open_map): Compute the list of shared libraries
5377 loaded by the inferior, rather than the list of libraries loaded
5378 by GDB itself. Otherwise, GDB ends up reading the symbols from
5379 the wrong shared libraries...
5380
5381 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5382
5383 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5384 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5385 macros.
5386 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5387 Remove functions.
5388 (FRAMELESS_SIGNAL): Remove function.
5389 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5390 i386_linux_saved_pc_after_call): Removed.
5391 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5392 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5393 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5394
5395 * i386-tdep.c (i386_frameless_signal_p): New function.
5396 (i386_frame_chain): Deal with frameless signals.
5397 (i386_sigtramp_saved_sp): New function.
5398 (i386_frame_saved_pc): Deal with frameless signals.
5399 (i386_saved_pc_after_call): Make sure the correct value is
5400 returned just after entry into a sigtramp.
5401 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5402 i386fbsd4_sc_sp_offset): New variables.
5403 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5404 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5405 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5406 similiar to what we already did for sc_pc_offset.
5407 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5408 tdep->sc_sp_offset.
5409
5410 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5411
5412 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5413
5414 * config/i386/tm-x86-64linux.h: New.
5415 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5416 definitions.
5417 * config/i386/nm-x86-64.h: Rename to ...
5418 * config/i386/nm-x86-64linux.h: ... this one.
5419 * config/i386/x86-64linux.mh: Reflect the above change.
5420
5421 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5422
5423 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5424 with sigcontext_addr. Add sc_sp_offset.
5425 (i386bsd_sigtramp_saved_pc): Remove prototype.
5426 (i386bsd_sicontext_addr): Add prototype.
5427 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5428 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5429 (i386_svr4_sigtramp_saved_pc): Removed.
5430 (i386_svr4_sigcontext_addr): New function.
5431 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5432 Initialize tdep->sigcontext_addr instead. Initialize
5433 tdep->sc_pc_offset and tdep->sc_sp_offset.
5434 (i386_gdbarch_init): Likewise.
5435 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5436 any more.
5437 (i386bsd_sigtramp_saved_pc): Remove function.
5438 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5439 Initialize tdep->sigcontext_addr instead. Initialize
5440 tdep->sc_pc_offset.
5441 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5442 of tdep->sigtramp_saved_pc.
5443 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5444 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5445 instead.
5446
5447 * i386-tdep.c (i386_frameless_function_invocation,
5448 i386_frame_num_args, i386_frame_init_saved_regs,
5449 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5450 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5451 i386_extract_return_value, i386_store_return_value,
5452 i386_extract_struct_value_address, i386_register_virtual_type,
5453 i386_register_convertible, i386_register_convert_to_virtual,
5454 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5455 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5456 static.
5457
5458 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5459
5460 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5461
5462 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5463 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5464 this macro. Include "value.h".
5465
5466 2002-06-30 Aidan Skinner <aidan@velvet.net>
5467
5468 * ada-exp.tab.c: remove as it's a generated file
5469 * ada-lex.c: remove as it's a generated file
5470
5471 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5472
5473 * config/i386/tm-i386.h (struct frame_info, struct
5474 frame_saved_regs, struct value, struct type): Remove forward
5475 declarations.
5476
5477 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5478 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5479 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5480 (FILL_FPXREGSET): Define.
5481
5482 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5483
5484 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5485 i[3456]86-*-netbsd* case.
5486 * config/i386/tm-obsd.h: Removed.
5487 * config/i386/obsd.mt: Removed.
5488 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5489 core-aout.o.
5490 (MH_CFLAGS): Add -DYYDEBUG=0.
5491
5492 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5493 i386nbsd_sc_pc_offset on OpenBSD too.
5494
5495 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5496 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5497 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5498 define.
5499 * i386bsd-tdep.c: Include "arch-utils.h".
5500 (i386bsd_aout_in_solib_call_trampoline): New function.
5501 (i386bsd_init_abi): Set in_solib_call_trampoline to
5502 i386bsd_aout_in_solib_call_trampoline.
5503 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5504 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5505
5506 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5507
5508 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5509 (struct obstack, struct bcache): Add opaque declarations.
5510 * Makefile.in (macrotab_h): Update
5511
5512 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5513
5514 * blockframe.c (generic_find_dummy_frame): Change return type to
5515 ``struct regcache''.
5516 (struct dummy_frame): Replace field ``registers'' with regcache, a
5517 struct regcache object.
5518 (generic_find_dummy_frame): Update.
5519 (generic_push_dummy_frame): Update. Use regcache_xfree,
5520 regcache_xmalloc and regcache_cpy.
5521 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5522 regcache_xfree.
5523 (deprecated_generic_find_dummy_frame): Update.
5524 (generic_read_register_dummy): Update. Use
5525 regcache_read_as_address.
5526 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5527 (generic_get_saved_register): Update. Use regcache_read.
5528
5529 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5530
5531 * Makefile.in (objfiles_h): Add $(bcache_h).
5532 * objfiles.h: Include "bcache.h".
5533
5534 * Makefile.in (symtab_h): Remove $(bcache_h).
5535 * symtab.h: Do not include "bcache.h".
5536
5537 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5538
5539 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5540 generic_func_frame_chain_valid.
5541
5542 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5543
5544 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5545 * config/i386/tm-fbsd.h: Likewise.
5546
5547 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5548
5549 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5550 generic_unwind_get_saved_register.
5551
5552 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5553
5554 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5555 * regcache.c (supply_register): Add missing argument to
5556 register_buffer call.
5557
5558 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5559
5560 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5561 Solaris /bin/grep does not not like it. From Peter Schauer.
5562
5563 2002-06-26 Tom Tromey <tromey@redhat.com>
5564
5565 * command.h (add_setshow_cmd): Declare.
5566 (add_setshow_cmd_full): Declare.
5567 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5568 returns void. Use add_setshow_cmd_full.
5569 (add_setshow_cmd_full): New function.
5570 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5571 (add_setshow_boolean_cmd): Likewise.
5572
5573 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5574
5575 * config/vax/tm-vax.h: Protect from multiple inclusion.
5576 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5577 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5578 * config/vax/tm-vaxbsd.h: ...here. New file.
5579 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5580
5581 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5582
5583 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5584 (BELIEVE_PCC_PROMOTION): Remove.
5585 (AP_REGNUM): Move to...
5586 * config/vax/nm-vax.h: ...here.
5587 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5588 (vax_breakpoint_from_pc): New function.
5589 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5590 and gdbarch_believe_pcc_promotion.
5591
5592 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5593
5594 * Makefile.in (vax_tdep_h): Define.
5595 (vax-tdep.o): Use $(vax_tdep_h).
5596 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5597 (vax_dump_tdep): New function.
5598 (_initialize_vax_tdep): Register vax_dump_tdep.
5599 * vax-tdep.h: Include osabi.h.
5600 (struct gdbarch_tdep): New.
5601
5602 2002-06-26 Andrew Cagney <cagney@redhat.com>
5603
5604 * frame.h (deprecated_generic_find_dummy_frame): Rename
5605 generic_find_dummy_frame.
5606 * blockframe.c (generic_find_dummy_frame): Make static.
5607 (deprecated_generic_find_dummy_frame): New function.
5608 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5609 generic_find_dummy_frame with deprecated_find_dummy_frame.
5610 (sh64_nofp_frame_init_saved_regs): Ditto.
5611 (sh_fp_frame_init_saved_regs): Ditto.
5612 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5613 (s390_frame_chain): Ditto.
5614 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5615
5616 2002-06-26 Grace Sainsbury <graces@redhat.com>
5617
5618 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5619 gdbarch vector are at the top.
5620 (NUM_REGS): Remove.
5621 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5622 (FRAME_ARGS_ADDRESS): Remove.
5623 (FRAME_LOCALS_ADDRESS): Remove.
5624 (FRAME_NUM_ARGS): Remove.
5625 (FRAME_ARGS_SKIP): Remove.
5626 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5627 (m68k_gdbarch_init): Add gdbarch initializations for macros
5628 undefined in tm-m68k.h
5629
5630 2002-06-26 Grace Sainsbury <graces@redhat.com>
5631
5632 * monitor.h: Add the function regname to monitor_ops
5633 structure. This way NUM_REGS does not have to be a constant.
5634 * monitor.c (monitor_fetch_register): Added support for regname
5635 function. The function is called if the array regnames is NULL.
5636 (monitor_store_register): Same.
5637 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5638 regnames array.
5639 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5640 cpu32bug_cmds.regname to point to new function.
5641 * abug-rom.c (abug_regname): Same as above.
5642 (init_abug_cmds): Same.
5643 * dbug-rom.c (dbug_regname): Same as above.
5644 (init_dbug_cmds): Same.
5645 * remote-est.c (est_regname): Same.
5646 (init_est_cmds): Same.
5647 * rom68k-rom.c (rom68k_regname): Same.
5648 (init_rom68k_cmds): Same.
5649
5650 2002-06-25 Tom Tromey <tromey@redhat.com>
5651
5652 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5653
5654 2002-06-25 Andrew Cagney <cagney@redhat.com>
5655
5656 * infrun.c (stop_registers): Change variable's type to ``struct
5657 regcache'''.
5658 (xmalloc_inferior_status): Delete function.
5659 (free_inferior_status): Delete function.
5660 (normal_stop): Use regcache_cpy.
5661 (struct inferior_status): Change type of fields ``stop_registers''
5662 and ``registers'' to ``struct regcache''.
5663 (write_inferior_status_register): Use regcache_write.
5664 (save_inferior_status): Instead of calling
5665 xmalloc_inferior_status, allocate the inf_status buffer directly.
5666 Use regcache_dup_no_passthrough and regcache_dup to save the
5667 buffers.
5668 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5669 Replace the stop_registers regcache instead of overriding it. Use
5670 regcache_xfree. Instead of calling free_inferior_status, xfree
5671 the buffer directly.
5672 (discard_inferior_status): Use regcache_xfree. Instead of calling
5673 free_inferior_status, xfree the buffer directly.
5674 (build_infrun): Use regcache_xmalloc.
5675 (_initialize_infrun): Delete redundant call to build_infrun.
5676
5677 * Makefile.in (infcmd.o): Add $(regcache_h).
5678
5679 * infcmd.c: Include "regcache.h".
5680 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5681 obtain the address of `stop_registers' register buffer.
5682 (print_return_value): Ditto.
5683
5684 * inferior.h (struct regcache): Add opaque declaration.
5685 (stop_registers): Change variable's declared type to ``struct
5686 regcache''.
5687
5688 2002-06-24 Tom Tromey <tromey@redhat.com>
5689
5690 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5691 * target.c (initialize_targets): Fixed typo in
5692 trust-readonly-sections `show' documentation.
5693
5694 * main.c: Marked all strings with _().
5695
5696 2002-06-24 Don Howard <dhoward@redhat.com>
5697
5698 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5699 that means max CORE_ADDR+1.
5700 (lookup_mem_region): Ditto.
5701 (mem_info_command): Ditto.
5702
5703 2002-06-24 Grace Sainsbury <graces@redhat.com>
5704
5705 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5706 (REGISTER_BYTES_OK): Remove.
5707 (REGISTER_BYTES): Remove.
5708 (STORE_STRUCT_RETURN): Remove.
5709 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5710 (STORE_RETURN_VALUE): Remove.
5711 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5712 (FRAME_CHAIN): Remove.
5713 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5714 (FRAME_SAVED_PC): Remove.
5715 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5716 (m68k_store_struct_return): Add.
5717 (m68k_deprecated_extract_return_value): Add.
5718 (m68k_deprecated_extract_struct_value_address): Add.
5719 (m68k_store_return_value): Add.
5720 (m68k_frame_chain): Add.
5721 (m68k_frameless_function_invocation): Add.
5722 (m68k_frame_saved_pc): Add.
5723 (m68k_gdbarch_init): added set_gdbarch calls for new
5724 functions and deleted macros.
5725
5726 2002-06-23 Tom Tromey <tromey@redhat.com>
5727
5728 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5729 (ALLDEPFILES): Likewise.
5730 (udiheaders): Removed.
5731 (udip2soc.o): Likewise.
5732 (udi2go32.o): Likewise.
5733 (udr.o): Likewise.
5734 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5735
5736 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5737
5738 * infrun.c (_initialize_infrun): Delete unnecessary call to
5739 build_infrun.
5740
5741 * regcache.h: Update comments describing the regcache_cpy family
5742 of functions.
5743 (regcache_save, regcache_restore): Delete declaration.
5744 (regcache_save_no_passthrough): Delete declaration.
5745 (regcache_restore_no_passthrough): Delete declaration.
5746 * regcache.c (regcache_save): Delete function.
5747 (regcache_save_no_passthrough): Delete function.
5748 (regcache_restore): Delete function.
5749 (regcache_restore_no_passthrough): Delete function.
5750
5751 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5752
5753 * config/m68k/tm-m68k.h: Fix typo.
5754 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5755 (m68k_frame_init_saved_regs): Declare.
5756
5757 2002-06-21 Jim Blandy <jimb@redhat.com>
5758
5759 Remove some vestiges of Harris 88k support.
5760 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5761 register numbering quirk.
5762 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5763 odd symbols occurring in Harris 88k ELF targets.
5764
5765 2002-06-21 Tom Tromey <tromey@redhat.com>
5766
5767 * gdb_locale.h: New file.
5768 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5769 (defs_h): Added gdb_locale.h.
5770 * configure, config.in: Rebuilt.
5771 * configure.in (PACKAGE): Define.
5772 * defs.h: Include gdb_locale.h.
5773 * main.c (captured_main): Call setlocale, bindtextdomain,
5774 textdomain.
5775
5776 2002-06-21 Dave Brolley <brolley@redhat.com>
5777
5778 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5779 * config/frv/frv.mt: New file.
5780 * config/frv/tm-frv.h: New file.
5781 * configure.tgt: Support frv-*-*.
5782 * Makefile.in (frv-tdep.o): New target.
5783 * frv-tdep.c: New file.
5784 * NEWS: Mention frv.
5785
5786 2002-06-21 Dave Brolley <brolley@redhat.com>
5787
5788 * MAINTAINERS: Add self to "Write After Approval" list.
5789
5790 2002-06-21 Grace Sainsbury <graces@redhat.com>
5791
5792 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5793 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5794 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5795 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5796 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5797
5798 * m68k-tdep.c: Include arch-utils.h
5799 (m68k_register_raw_size): Add.
5800 (m68k_register_virtual_size): Add.
5801 (m68k_register_virtual_type): Add.
5802 (m68k_register_name): Add.
5803 (m68k_stack_align): Add.
5804 (m68k_register_byte): Add.
5805 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5806 tm-m68k.h.
5807
5808 2002-06-21 Grace Sainsbury <graces@redhat.com>
5809
5810 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5811 m68k_find_saved_regs.
5812 (m68k_pop_frame): Removed saved_regs structure, and replaced
5813 references to it with frame->saved_regs.
5814 (m68k_gdbarch_init): Added function calls to initialize the
5815 gdbarch structure.
5816 (m68k_fix_call_dummy): Add.
5817 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5818 (CALL_DUMMY): Remove.
5819 (CALL_DUMMY_LENGTH): Remove.
5820 (CALL_DUMMY_START_OFFSET): Remove.
5821 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5822 (FIX_CALL_DUMMY): Remove.
5823 (PUSH_DUMMY_FRAME): Remove.
5824 (POP_FRAME): Remove.
5825
5826 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5827
5828 * parse.c (parse_fprintf): New function used to avoid calls to
5829 fprintf in bison parser generated debug code.
5830 * parser-defs.h: Declaration of new parse_fprintf function.
5831 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5832 Set YYDEBUG to 1 by default.
5833 Set YYFPRINTF as parse_fprintf.
5834
5835 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5836
5837 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5838 encoding anymore.
5839 (pointer_encoding, enum ptr_encoding): New.
5840 (execute_cfa_program): Take care about pointer encoding.
5841 (dwarf2_build_frame_info): Only call parse_frame_info for
5842 .debug_frame and .eh_frame.
5843 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5844 fixed augmentation handling, added relative addressing,
5845 ignore duplicate FDEs. Added comments.
5846 * dwarf2cfi.c: Reindented.
5847
5848 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5849
5850 * event-top.c (command_handler): Don't use space_at_cmd_start
5851 unless there is sbrk() on the host. Assign time and space data
5852 to union fields of the appropriate length.
5853
5854 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5855
5856 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5857 x86_64_register_name. Return type changed to 'const char *'.
5858 (x86_64_register_name2nr): Rename to x86_64_register_number.
5859 (x86_64_gdbarch_init): Update to reflect the change.
5860 * x86-64-tdep.h: Ditto.
5861 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5862 (supply_fpregset): Ditto.
5863
5864 2002-06-19 Andrew Cagney <cagney@redhat.com>
5865
5866 * regcache.h: Update copyright.
5867 (struct regcache, struct gdbarch): Add opaque declarations.
5868 (current_regcache): Declare global variable.
5869 (regcache_read, regcache_write): Add gdbarch parameter.
5870 (regcache_save, regcache_save_no_passthrough)
5871 (regcache_restore, regcache_restore_no_passthrough)
5872 (regcache_dup, regcache_dup_no_passthrough)
5873 (regcache_cpy, regcache_cpy_no_passthrough)
5874 (deprecated_grub_regcache_for_registers)
5875 (deprecated_grub_regcache_for_register_valid)
5876 (regcache_valid_p): Add function declarations.
5877
5878 * regcache.c: Update copyright.
5879 (regcache_descr_handle): New global variable.
5880 (struct regcache_descr): Define.
5881 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5882 (regcache_descr, xfree_regcache_descr): New functions.
5883 (struct regcache): Define.
5884 (regcache_xmalloc, regcache_xfree): New functions.
5885 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5886 (regcache_dup, regcache_dup_no_passthrough): New functions.
5887 (regcache_valid_p, regcache_read_as_address): New functions.
5888 (deprecated_grub_regcache_for_registers): New function.
5889 (deprecated_grub_regcache_for_register_valid): New function.
5890 (current_regcache): New global variable.
5891 (register_buffer): Add regcache parameter. Update calls.
5892 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5893 (read_register_gen, write_register_gen): Update register_buffer
5894 call. Test for legacy_p instead of gdbarch_register_read_p or
5895 gdbarch_register_write_p.
5896 (regcache_collect): Update register_buffer call.
5897 (build_regcache): Rewrite. Use deprecated grub functions.
5898 (regcache_save, regcache_save_no_passthrough): New functions.
5899 (regcache_restore, regcache_restore_no_passthrough): New
5900 functions.
5901 (_initialize_regcache): Create the regcache_data_handle. Swap
5902 current_regcache global variable.
5903
5904 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5905 parameter to regcache_read and regcache_write calls.
5906 (sh4_register_read): Ditto.
5907 (sh64_pseudo_register_read): Ditto.
5908 (sh64_register_read): Ditto.
5909 (sh_pseudo_register_write): Ditto.
5910 (sh4_register_write): Ditto.
5911 (sh64_pseudo_register_write): Ditto.
5912 (sh64_register_write): Ditto.
5913
5914 * defs.h (XCALLOC): Define.
5915
5916 2002-06-19 Grace Sainsbury <graces@redhat.com>
5917
5918 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5919 * m68k-tdep.c (m68k_gdbarch_init): Added.
5920 (m68k_dump_tdep): Added.
5921
5922 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5923
5924 * ada-lang.c (fill_in_ada_prototype): Update comment.
5925
5926 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5927
5928 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5929 MIPS_ABI_LAST.
5930 (mips_abi_string, mips_abi_strings): New.
5931 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5932 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5933 tdep->mips_abi_string. Honor mips_abi_string. Default to
5934 O32 if no ABI is found.
5935 (mips_dump_tdep): Use mips_abi_strings.
5936 (mips_abi_update): New function.
5937 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5938 ``set mips abi'' and ``show mips abi''. Check the size of
5939 mips_abi_strings.
5940
5941 2002-06-19 Andrew Cagney <cagney@redhat.com>
5942
5943 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5944 constant.
5945
5946 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5947
5948 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5949 current frame using only the first stack size adjustment. All
5950 subsequent size adjustments are not considered to be part of
5951 the "static" part of the current frame.
5952 Compute the address of the saved registers relative to the
5953 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5954 in use in this frame.
5955
5956 2002-06-18 Don Howard <dhoward@redhat.com>
5957
5958 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5959 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5960 suggesting this solution.
5961
5962 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5963
5964 * config/romp/xm-rtbsd.h: Delete file.
5965 * config/romp/rtbsd.mh: Delete file.
5966
5967 2002-06-18 Keith Seitz <keiths@redhat.com>
5968
5969 * breakpoint.c (condition_command): Post breakpoint_modify
5970 when a condition is added to an existing breakpoint.
5971 (commands_command): Likewise for commands.
5972 (set_ignore_count): Likewise for ignore counts.
5973 If no tty, do not simply return, still need to send event
5974 notification.
5975 (ignore_command): Only print a newline if the command came
5976 from a tty.
5977 Don't call breakpoints_changed, since this is now properly
5978 handled by set_ignore_count.
5979
5980 2002-06-18 Andrew Cagney <cagney@redhat.com>
5981
5982 * MAINTAINERS: Note that cris-elf target can be compiled with
5983 -Werror.
5984 * cris-tdep.c (cris_register_name): Make return type constant.
5985 (cris_breakpoint_from_pc): Ditto.
5986
5987 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5988
5989 * frame.h (struct frame_info): Change type of context to
5990 'struct context'.
5991
5992 2002-06-17 Andrew Cagney <cagney@redhat.com>
5993
5994 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5995 pointer.
5996 * gdbarch.h, gdbarch.c: Regenerate.
5997 * config/mips/tm-mips.h (mips_register_name): Update.
5998 * i386-tdep.h (i386_register_name): Update.
5999 * mips-tdep.c (mips_register_name): Update
6000 * alpha-tdep.c (alpha_register_name): Update.
6001 * arch-utils.c (legacy_register_name): Update.
6002 * arch-utils.h (legacy_register_name): Update.
6003 * avr-tdep.c (avr_register_name): Update.
6004 * ia64-tdep.c (ia64_register_name): Update.
6005 * i386-tdep.c (i386_register_name): Update.
6006 * sparc-tdep.c (sparc32_register_name): Update.
6007 (sparc64_register_name): Update.
6008 (sparclite_register_name): Update.
6009 (sparclet_register_name): Update.
6010 * sh-tdep.c (sh_generic_register_name): Update.
6011 (sh_sh_register_name): Update.
6012 (sh_sh3_register_name): Update.
6013 (sh_sh3e_register_name): Update.
6014 (sh_sh_dsp_register_name): Update.
6015 (sh_sh3_dsp_register_name): Update.
6016 (sh_sh4_register_name): Update.
6017 (sh_sh64_register_name): Update.
6018 * s390-tdep.c (s390_register_name): Update.
6019 * rs6000-tdep.c (rs6000_register_name): Update.
6020 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6021 (ns32k_register_name_32382): Update.
6022 * d10v-tdep.c (d10v_ts2_register_name): Update.
6023 (d10v_ts3_register_name): Update.
6024 * xstormy16-tdep.c (xstormy16_register_name): Update.
6025 * vax-tdep.c (vax_register_name): Update.
6026 * v850-tdep.c (v850_register_name): Update.
6027 * m68hc11-tdep.c (m68hc11_register_name): Update.
6028 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6029 (am33_register_name): Update.
6030
6031 2002-06-17 Grace Sainsbury <graces@redhat.com>
6032
6033 * m68k-tdep.c: Reindented.
6034
6035 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6036
6037 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6038 list of predefined types.
6039
6040 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6041
6042 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6043 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6044 REGISTER_CONVERT_TO_RAW): Remove defines.
6045 (i386_register_virtual_type, i386_register_convertible,
6046 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6047 Remove prototypes.
6048 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6049 macros mentioned above.
6050
6051 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6052 (i386lynx_saved_pc_after_call): Remove prototype.
6053 * i386ly-tdep.c: Include "i386-tdep.h".
6054 (i386lynx_saved_pc_after_call): Make static. Use
6055 read_memory_nobpt instead of read_memory. Use
6056 read_memory_unsigned_integer instead of read_memory_integer.
6057 (i386lynx_init_abi): New function.
6058 (i386lynx_coff_osabi_sniffer): New function.
6059 (_initialize_i386bsd_tdep): New function.
6060
6061 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6062 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6063 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6064 (i386_fix_call_dummy): Remove prototype.
6065 * i386-tdep.c (i386_call_dummy_words): New variable.
6066 (i386_gdbarch_init): Adjust for removal of the
6067 macros mentioned above.
6068
6069 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6070
6071 * command.h (add_setshow_auto_boolean_cmd): Replace
6072 add_set_auto_boolean_cmd.
6073 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6074 add_set_auto_boolean_cmd.
6075 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6076 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6077 mask-address'' command.
6078 (show_mask_address): Add cmd parameter.
6079 * remote.c (add_packet_config_cmd): Update. Change type of
6080 set_func and show_func to cmd_sfunc_ftype.
6081 (_initialize_remote): Update `set remote Z-packet'
6082 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6083 (show_remote_protocol_e_packet_cmd): Ditto.
6084 (show_remote_protocol_E_packet_cmd): Ditto.
6085 (show_remote_protocol_P_packet_cmd): Ditto.
6086 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6087 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6088 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6089 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6090 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6091 (show_remote_protocol_Z_packet_cmd): Ditto.
6092 (show_remote_protocol_binary_download_cmd): Ditto.
6093 (show_remote_cmd): Pass NULL to all of above.
6094
6095 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6096
6097 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6098 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6099 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6100 POP_FRAME): Remove defines.
6101 (i386_push_arguments, i386_store_struct_return,
6102 i386_extract_return_value, i386_store_return_value,
6103 i386_extract_struct_value_address, i386_push_dummy_frame,
6104 i386_pop_frame): Renove prototypes.
6105 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6106 macros mentioned above.
6107
6108 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6109
6110 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6111 add_set_boolean_cmd.
6112 (add_setshow_cmd): New function.
6113 * command.h (add_setshow_boolean_cmd): Replace
6114 add_set_boolean_cmd.
6115 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6116 and ``set rdiromatzero''.
6117 * maint.c (_initialize_maint_cmds): Update commented out code.
6118 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6119 * target.c (initialize_targets): Update `set
6120 trust-readonly-sections'.
6121 * remote.c (_initialize_remote): Update `set remotebreak'.
6122
6123 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6124
6125 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6126 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6127 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6128 fit into multi-arch framework.
6129 (i386_breakpoint_from_pc): New function.
6130 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6131 above.
6132
6133 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6134 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6135 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6136 (i386_frameless_function_invocation, i386_frame_num_args,
6137 i386_frame_init_saved_regs): Remove prototypes.
6138 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6139 macros mentioned above.
6140
6141 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6142
6143 * cli/cli-decode.c (set_cmd_cfunc): Update.
6144 (set_cmd_sfunc): Update.
6145 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6146 (set_cmd_sfunc, set_cmd_cfunc): Update.
6147 * cli/cli-decode.h: Update.
6148
6149 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6150
6151 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6152 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6153
6154 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6155
6156 * defs.h (auto_boolean): Declare enum.
6157 * command.h (cmd_auto_boolean): Delete enum.
6158 * mips-tdep.c (mask_address_var): Update.
6159 (mips_mask_address_p): Update.
6160 (show_mask_address): Update.
6161 * remote.c (struct packet_config): Update.
6162 (update_packet_config): Update.
6163 (show_packet_config_cmd): Update.
6164 (packet_ok): Update.
6165 (add_packet_config_cmd): Update.
6166 (_initialize_remote):
6167 * command.h: Update.
6168 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6169 (do_setshow_command): Update.
6170 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6171 * cli/cli-decode.h: Update.
6172
6173 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6174
6175 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6176 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6177 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6178 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6179 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6180 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6181
6182 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6183 list of DJGPP COFF targets.
6184
6185 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6186 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6187 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6188 (FP0_REGNUM): Remove define.
6189 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6190 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6191 (i386_register_virtual_size): Remove protoype.
6192 * i386-tdep.c (i386_register_virtual_size): Removed.
6193 (i386_extract_return_value, i386_store_return_value): Use
6194 FP0_REGNUM instead of NUM_FREGS to determine whether the
6195 floating-point registers are available.
6196 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6197 Adjust for removal of macros mentioned above.
6198
6199 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6200
6201 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6202 comments.
6203 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6204 Remove prototypes.
6205 (supply_gregset, fill_gregset): Remove use of register keyword and
6206 remove declaration for regmap. Use I386_NUM_GREGS instead of
6207 NUM_REGS and NUM_FREGS.
6208 (FPREGSET_FSAVE_OFFSET): Remove.
6209 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6210 NUM_FREGS to determine whether the floating-point registers are
6211 available.
6212
6213 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6214 gnu_store_registers): Replace usage of NUM_GREGS with
6215 I386_NUM_GREGS.
6216
6217 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6218 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6219 usage of NUM_GREGS with I386_NUM_GREGS.
6220
6221 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6222
6223 * i386bsd-nat.c: Include "i386-tdep.h".
6224 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6225 I386_NUM_GREGS.
6226
6227 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6228 and associated comment. They no longer make any sense, since we
6229 don't use this file anymore on Linux.
6230
6231 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6232 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6233 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6234 elements in these arrays.
6235 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6236 MAX_NUM_REGS.
6237
6238 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6239
6240 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6241 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6242
6243 2002-06-14 Andrew Cagney <cagney@redhat.com>
6244
6245 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6246 EXTRACT_RETURN_VALUE.
6247 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6248 EXTRACT_STRUCT_VALUE_ADDRESS.
6249 * gdbarch.h, gdbarch.c: Regenerate.
6250
6251 * values.c (value_being_returned): Handle
6252 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6253 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6254
6255 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6256 * arm-tdep.c (arm_gdbarch_init): Update.
6257 * avr-tdep.c (avr_gdbarch_init): Update.
6258 * cris-tdep.c (cris_gdbarch_init): Update.
6259 * d10v-tdep.c (d10v_gdbarch_init): Update.
6260 * ia64-tdep.c (ia64_gdbarch_init): Update.
6261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6262 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6263 * s390-tdep.c (s390_gdbarch_init): Update.
6264 * sh-tdep.c (sh_gdbarch_init): Update.
6265 * s390-tdep.c (s390_gdbarch_init): Update.
6266 * sparc-tdep.c (sparc_gdbarch_init): Update.
6267 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6268 * v850-tdep.c (v850_gdbarch_init): Update.
6269 * vax-tdep.c (vax_gdbarch_init): Update.
6270 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6272
6273 * config/arc/tm-arc.h: Update.
6274 * config/d30v/tm-d30v.h: Update.
6275 * config/fr30/tm-fr30.h: Update.
6276 * config/h8300/tm-h8300.h: Update.
6277 * config/h8500/tm-h8500.h: Update.
6278 * config/i386/tm-i386.h: Update.
6279 * config/i386/tm-ptx.h: Update.
6280 * config/i386/tm-symmetry.h: Update.
6281 * config/i960/tm-i960.h: Update.
6282 * config/m32r/tm-m32r.h: Update.
6283 * config/m68k/tm-delta68.h: Update.
6284 * config/m68k/tm-linux.h: Update.
6285 * config/m68k/tm-m68k.h: Update.
6286 * config/m88k/tm-m88k.h: Update.
6287 * config/mcore/tm-mcore.h: Update.
6288 * config/mips/tm-mips.h: Update.
6289 * config/mn10200/tm-mn10200.h: Update.
6290 * config/pa/tm-hppa.h: Update.
6291 * config/pa/tm-hppa64.h: Update.
6292 * config/sparc/tm-sp64.h: Update.
6293 * config/sparc/tm-sparc.h: Update.
6294 * config/sparc/tm-sparclet.h: Update.
6295 * config/z8k/tm-z8k.h: Update.
6296
6297 2002-06-14 Andrew Cagney <cagney@redhat.com>
6298
6299 * Makefile.in (i386_linux_tdep_h): Define.
6300 (i386_tdep_h, i387_tdep_h): Define.
6301 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6302 $(i386_tdep_h) and $(i387_tdep_h).
6303 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6304
6305 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6306
6307 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6308 Already covered by the default.
6309
6310 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6311 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6312 (i386_gdbarch_init): Initialize long_double_format and long_double
6313 bit.
6314
6315 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6316 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6317 Move these to ...
6318 * config/i386/i386sol2.mh: ... here.
6319 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6320 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6321 (SIGCONTEXT_PC_OFFSET): Remove define.
6322 (IN_SIGTRAMP): Remove define.
6323 * i386-sol2-tdep.c: New file.
6324
6325 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6326 * config/i386/tm-i386nw.h: Removed.
6327
6328 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6329 USE_STRUCT_CONVENTION): Remove defines.
6330 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6331 (get_longjmp_target): Remove prototype.
6332 (IN_SIGTRAMP): Remove define.
6333 (i386bsd_in_sigtramp): Remove prototype.
6334 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6335 function. Update comment accordingly
6336 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6337 (FRAME_SAVED_PC): Remove define.
6338 (i386bsd_frame_saved_pc): Remove prototype.
6339 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6340 GET_LONGJMP_TARGET): Remove defines.
6341 (get_longjmp_target): Remove prototype.
6342 (IN_SIGTRAMP): Remove define.
6343 (i386bsd_in_sigtramp): Remove prototype.
6344 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6345 function. Update comment accordingly
6346 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6347 (FRAME_SAVED_PC): Remove define.
6348 (i386bsd_frame_saved_pc): Remove prototype.
6349 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6350 Remove prototype.
6351 (USE_STRUCT_CONVENTION): Remove prototype.
6352 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6353 declaration.
6354 (_initialize_i386bsd_nat): Revise logic to determine some
6355 constants at compile time when compiling a native GDB. Warn if
6356 things don't match up with what we expect.
6357 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6358 Remove variables.
6359 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6360 to use date stored in `struct gdbarch_tdep'.
6361 (i386bsd_sigcontext_offset): Remove varaible.
6362 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6363 stored in `struct gdbarch_tdep'.
6364 (i386bsd_frame_saved_pc): Make static.
6365 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6366 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6367 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6368 i386fbsd4_sc_pc_offset): New variables.
6369 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6370 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6371 functions.
6372 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6373 functions.
6374 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6375 Modify the value of i386fbsd_sigtramp_start and
6376 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6377 i386fbsd_sigtramp_end.
6378 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6379 function.
6380
6381 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6382 define to i386-linux-tdep.h.
6383 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6384 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6385 defines.
6386 (i386_linux_register_name, i386_linux_register_byte,
6387 i386_linux_register_raw_size): Remove prototypes.
6388 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6389 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6390 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6391 TARGET_WRITE_PC): Remove defines.
6392 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6393 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6394 i386_linux_write_pc): Remove prototypes.
6395 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6396 (get_longjmp_target): Remove prototype.
6397 * i386-linux-tdep.h: New file.
6398 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6399 * i386-linux-tdep.c: Include "i386-tdep.h" and
6400 "i386-linux-tdep.h".
6401 (i386_linux_register_name, i386_linux_register_byte,
6402 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6403 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6404 Make static.
6405 (i386_linux_init_abi): New function.
6406 (_initialize_i386_linux_tdep): New function.
6407
6408 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6409 (i386_saved_pc_after_call): Remove prototype.
6410 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6411 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6412 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6413 (i386_register_name, i386_stab_reg_to_regnum,
6414 i386_dwarf_reg_to_regnum): Remove prototypes.
6415 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6416 SIZEOF_SSE_REGS): Remove defines.
6417 (REGISTER_BYTES): Remove define.
6418 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6419 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6420 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6421 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6422 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6423 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6424 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6425 (get_longjmp_target): Remove prototype.
6426 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6427 (sigtramp_saved_pc): Remove define.
6428 (i386v4_sigtramp_saved_pc): Remove prototype.
6429 * config/i386/tm-go32.h (FRAME_CHAIN,
6430 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6431 (i386go32_frame_saved_pc): Remove prototype.
6432 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6433 (get_longjmp_target): Remove prototype.
6434 * i386-tdep.h: Include "osabi.h".
6435 (enum i386_abi): Removed.
6436 (enum struct_return): New enum.
6437 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6438 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6439 sc_pc_offset members.
6440 (i386_gdbarch_register_os_abi): Remove prototype.
6441 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6442 I386_SSE_NUM_REGS): New defines.
6443 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6444 I386_SSE_SIZEOF_REGS): New defines.
6445 (i386_register_name, i386_register_byte, i386_register_raw_size):
6446 New prototypes.
6447 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6448 (i386bsd_sigtramp_saved_pc): New prototype.
6449 * i386-tdep.c: Don't include "elf-bfd.h".
6450 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6451 i386_frame_chain, i386_saved_pc_after_call): Make static.
6452 (i386_frame_saved_pc): Rewrite to call architecture dependent
6453 function to deal with signal handlers. Make static.
6454 (i386go32_frame_saved_pc): Removed.
6455 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6456 Removed.
6457 (i386_get_longjmp_target): New function.
6458 (default_struct_convention, pcc_struct_convention,
6459 reg_struct_convention, valid_conventions, struct_convention): New
6460 variables.
6461 (i386_use_struct_convention): New function.
6462 (i386v4_sigtramp_saved_pc): Renamed to
6463 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6464 (i386_pc_in_sigtramp): New function.
6465 (i386_abi_names): Removed.
6466 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6467 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6468 Removed.
6469 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6470 i386_gdbarch_register_os_abi): Removed.
6471 (struct i386_abi_handler): Removed.
6472 (i386_abi_handler_list): Removed.
6473 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6474 functions.
6475 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6476 i386_nw_init_abi): New functions.
6477 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6478 Use set_gdbarch_xxx() calls instead of relying on macros for a
6479 number of calls.
6480 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6481 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6482 Register the various architecture variants defined in this file.
6483
6484 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6485
6486 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6487 (struct main_type): Remove arg_types member. Update comments for
6488 struct field.
6489 (TYPE_ARG_TYPES): Remove.
6490 (TYPE_FN_FIELD_ARGS): Update.
6491 (smash_to_method_type): Update prototype.
6492
6493 * c-typeprint.c (cp_type_print_method_args): Take method type
6494 instead of argument list. Use new argument layout. Simplify.
6495 (c_type_print_args): Use new argument layout. Simplify.
6496 (c_type_print_base): Update call to cp_type_print_method_args.
6497 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6498 argument; use die->type instead. Update call to
6499 smash_to_method_type.
6500 (read_structure_scope): Update call to dwarf2_add_member_fn.
6501 * gdbtypes.c (allocate_stub_method): Update comment.
6502 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6503 Use new argument layout.
6504 (check_stub_method): Use new argument layout. Don't count
6505 void as an argument.
6506 (print_arg_types): Update comments. Use new argument layout.
6507 (recursive_dump_type): Don't print arg_types member.
6508 * hpread.c (hpread_read_struct_type): Use new argument layout.
6509 (fixup_class_method_type): Likewise.
6510 (hpread_type_lookup): Likewise.
6511 * stabsread.c (read_type): Update calls to read_args and
6512 smash_to_method_type.
6513 (read_args): Use new argument layout. Simplify.
6514 * valops.c (typecmp): Use new argument layout. Update parameters
6515 and comments. Simplify.
6516 (hand_function_call): Use new argument layout.
6517 (search_struct_method): Update call to typecmp.
6518 (find_overload_match): Use new argument layout.
6519
6520 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6521
6522 * NEWS: Mention multithreaded debug support for gdbserver.
6523
6524 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6525
6526 * MAINTAINERS: Mention NEWS.
6527
6528 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6529
6530 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6531 (struct mips_objfile_private, compare_pdr_entries): New.
6532 (non_heuristic_proc_desc): Read the ".pdr" section if it
6533 is present.
6534
6535 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6536
6537 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6538 (arm_debug): New static variable.
6539 (_initialize_arm_tdep): Add ``set debug arm'' command.
6540
6541 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6542
6543 * Makefile.in (sim_arm_h): Define.
6544 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6545 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6546 (arm_register_sim_regno): New function, map an internal REGNUM
6547 onto a simulator register number.
6548 (arm_gdbarch_init): Set register_sim_regno.
6549
6550 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6551
6552 * MAINTAINERS: Add self.
6553
6554 2002-06-11 Jim Blandy <jimb@redhat.com>
6555
6556 * source.c (source_info): Mention whether the symtab has
6557 information about preprocessor macros.
6558
6559 Call the command `info macro', not `show macro'.
6560 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6561 Fix error message.
6562 (_initialize_macrocmd): Register `info_macro_command' in
6563 `infolist', not `showlist'.
6564
6565 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6566
6567 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6568 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6569 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6570 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6571 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6572 unconditionally.
6573 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6574 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6575 (_initialize_mips_tdep): Remove dead code.
6576 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6577 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6578 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6579 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6580 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6581 MIPS_LAST_FP_ARG_REGNUM): Remove.
6582
6583 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6584
6585 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6586 (unwind_tmp_obstack_free, parse_frame_info)
6587 (update_context, cfi_read_fp, cfi_write_fp)
6588 (cfi_frame_chain, cfi_init_extra_frame_info)
6589 (cfi_virtual_frame_pointer): Use the above function.
6590 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6591
6592 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6593
6594 * v850-tdep.c (v850_type_is_scalar): New function.
6595 (v850_use_struct_convention): Match current gcc implementation
6596 as close as possible.
6597 (v850_push_arguments): Fix stack_offset handling. Don't write
6598 struct_addr into register. This is done by v850_store_struct_return.
6599 (v850_extract_return_value): Care for structs.
6600 (v850_store_return_value): Ditto.
6601 (v850_store_struct_return): Actually write address.
6602
6603 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6604
6605 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6606 without debug information too.
6607
6608 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6609
6610 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6611 Make multi-arch pure.
6612 * gdbarch.h, gdbarch.c: Re-generate.
6613 * arm-tdep.c (arm_print_float_info): Update.
6614 * arch-utils.h (default_print_float_info): Update.
6615 * arch-utils.c (default_print_float_info): Update.
6616 * infcmd.c (float_info): Update call.
6617
6618 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6619
6620 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6621 the front of the initialize list.
6622
6623 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6624
6625 * infrun.c (struct inferior_status): Replace fields
6626 selected_frame_address and selected_level with field
6627 selected_frame_id.
6628 (save_inferior_status): Update. Use get_frame_id.
6629 (struct restore_selected_frame_args): Delete.
6630 (restore_selected_frame): Update. Use frame_find_by_id.
6631 (restore_inferior_status): Update.
6632
6633 * breakpoint.h (struct breakpoint): Change type of
6634 watchpoint_frame to frame_id.
6635 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6636 call to get_current_frame.
6637 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6638 get_current_frame.
6639 (watchpoint_check): Use frame_find_by_id.
6640
6641 * frame.h (record_selected_frame): Delete declaration.
6642 * stack.c (record_selected_frame): Delete function.
6643
6644 * frame.h (struct frame_id): Define.
6645 (get_frame_id): Declare.
6646 (frame_find_by_id): Declare.
6647 * frame.c (frame_find_by_id): New function.
6648 (get_frame_id): New function.
6649
6650 2002-06-10 Andrey Volkov <avolkov@transas.com>
6651
6652 * ser-e7kpc.c: Fix duplicated define and call of
6653 _initialize_ser_e7000pc
6654
6655 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6656
6657 * signals/signals.c (target_signal_from_host): Fix #ifdef
6658 SIGRTMIN case.
6659 (do_target_signal_to_host): Likewise.
6660
6661 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6662
6663 * mips-tdep.c (mips_find_abi_section): New function.
6664 (mips_gdbarch_init): Call it.
6665
6666 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6667
6668 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6669 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6670 after Andrew's 2002-06-08 gdbarch change.
6671
6672 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6673
6674 * i386-linux-nat.c (suppy_gregset): Don't supply
6675 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6676 register cache.
6677 (fill_gregset): Don't fetch it under the same circumstances.
6678
6679 2002-06-09 Andrew Cagney <cagney@redhat.com>
6680
6681 * Makefile.in (callback_h): Define.
6682 (remote_sim_h): Update path to remote-sim.h.
6683 (remote-rdp.o): Add $(callback_h).
6684 (remote-sim.o): Use $(callback_h).
6685 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6686 * remote-rdp.c: Include "gdb/callback.h".
6687
6688 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6689
6690 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6691 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6692
6693 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6694
6695 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6696 * rdi-share/serpardr.c: Ditto.
6697 * rdi-share/unixcomm.c: Ditto.
6698 * rdi-share/serdrv.c: Ditto.
6699 * rdi-share/hostchan.h: Ditto.
6700 * rdi-share/hostchan.c: Ditto.
6701 * rdi-share/host.h: Ditto.
6702 * rdi-share/devsw.c: Ditto.
6703
6704 * objfiles.h: Change type of obj_private to void pointer.
6705 * pa64solib.c: Update copyright. Don't include "assert.h", use
6706 strcmp instead of STREQ, use LONGEST, do not use PTR
6707 * somsolib.c: Ditto.
6708
6709 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6710 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6711 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6712
6713 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6714
6715 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6716 (default_get_saved_register): Delete function.
6717 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6718 generic_unwind_get_saved_register.
6719 * gdbarch.h, gdbarch.c: Re-generate.
6720
6721 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6722
6723 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6724 generic_func_frame_chain_valid.
6725 * gdbarch.h, gdbarch.c: Re-generate.
6726 * blockframe.c (generic_func_frame_chain_valid): Only check
6727 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6728 passing FP to PC_IN_CALL_DUMMY.
6729 Fix PR gdb/360.
6730
6731 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6732
6733 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6734 (register_gdbarch_data): Initialize init_p.
6735 (gdbarch_data): Initialize data pointer using the init function.
6736 (init_gdbarch_data): Delete function.
6737 (gdbarch_update_p): Update.
6738 (initialize_non_multiarch): Update.
6739 (struct gdbarch): Add field initialized_p.
6740 * gdbarch.h, gdbarch.c: Re-generate.
6741
6742 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6743
6744 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6745 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6746 better do the things actually here.
6747 * x86-64-tdep.c (x86_64_register_name2nr): New.
6748 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6749 (x86_64_gdbarch_init): Respect the above change.
6750 * x86-64-tdep.h (x86_64_register_name2nr)
6751 (x86_64_register_nr2name): Add prototypes.
6752 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6753
6754 2002-06-06 Michael Snyder <msnyder@redhat.com>
6755
6756 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6757 Delete extra braces and re-indent.
6758 (d10v_store_return_value): Char return values
6759 must be shifted over by one byte in R0.
6760 (d10v_extract_return_value): Delete extra braces, re-indent.
6761
6762 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6763
6764 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6765 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6766 (d10v_integer_to_address): Rewrite.
6767 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6768 the d10v specific functions which take care of converting to the
6769 correct space.
6770
6771 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6772
6773 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6774 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6775
6776 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6777
6778 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6779 includes.
6780 * config/tm-linux.h: Ditto.
6781 * config/alpha/tm-alphalinux.h: Ditto.
6782 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6783 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6784 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6785 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6786 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6787 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6788 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6789 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6790 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6791 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6792 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6793 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6794 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6795 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6796 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6797 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6798 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6799 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6800 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6801 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6802 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6803 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6804 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6805 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6806 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6807 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6808 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6809 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6810 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6811 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6812 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6813 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6814 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6815 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6816 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6817 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6818 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6819
6820 2002-05-04 Aidan Skinner <aidan@velvet.net>
6821
6822 * ada-exp.tab.c: New file
6823 * ada-exp.y: New file
6824 * ada-lang.c: New file
6825 * ada-lang.h: New file
6826 * ada-lex.c: New file
6827 * ada-lex.l: New file
6828 * ada-tasks.c: New file
6829 * ada-typeprint.c: New file
6830 * ada-valprint.c: New file
6831
6832 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6833
6834 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6835 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6836
6837 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6838
6839 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6840 insetead of ppc-linux-tdep.o.
6841 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6842 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6843
6844 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6845
6846 2002-05-07 Christian Groessler <chris@groessler.org>
6847 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6848 bit register contents for little endian hosts.
6849
6850 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6851
6852 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6853 any maintainer.
6854
6855 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6856
6857 * gdbarch.h: Regenerate.
6858
6859 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6860
6861 * MAINTAINERS: Add everyone to write-after-approval list.
6862
6863 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6864
6865 * stack.c (frame_info): Use frame_register_unwind instead of
6866 saved_regs. Mention when the SP is on the stack or in a register.
6867
6868 * frame.h (frame_register_unwind_ftype): Define. Document.
6869 (struct frame_info): Add field register_unwind and
6870 register_unwind_cache.
6871 (frame_register_unwind): Declare.
6872 (generic_unwind_get_saved_register): Declare.
6873
6874 * frame.c (frame_register_unwind): New function.
6875 (generic_unwind_get_saved_register): New function.
6876
6877 * blockframe.c (generic_call_dummy_register_unwind): New function.
6878 (frame_saved_regs_register_unwind): New function.
6879 (set_unwind_by_pc): New function.
6880 (create_new_frame): New function.
6881 (get_prev_frame): New function.
6882
6883 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6884
6885 * a29k-share/: Delete directory.
6886 * remote-vx29k.c: Delete file.
6887
6888 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6889
6890 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6891 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6892
6893 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6894
6895 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6896 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6897 (sparc64nbsd-nat.o)
6898 (sparcnbsd-nat.o)
6899 (sparcnbsd-tdep.o): New dependency lists.
6900 * NEWS: Note new UltraSPARC NetBSD native configuration.
6901 * configure.host (sparc64-*-netbsd*): New host.
6902 * configure.tgt (sparc-*-netbsdelf*)
6903 (sparc-*-netbsd*): Set gdb_target to nbsd.
6904 (sparc64-*-netbsd*): New target.
6905 * sparc64nbsd-nat.c: New file.
6906 * sparcnbsd-nat.c: New file.
6907 * sparcnbsd-tdep.c: New file.
6908 * sparcnbsd-tdep.h: New file.
6909 * config/sparc/nbsd.mt: New file.
6910 * config/sparc/nbsd64.mh: New file.
6911 * config/sparc/nbsd64.mt: New file.
6912 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6913 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6914 (HOST_IPC): Remove.
6915 * config/sparc/nbsdaout.mt: Remove.
6916 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6917 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6918 (HOST_IPC): Remove.
6919 * config/sparc/nbsdelf.mt: Remove.
6920 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6921 sparc-nat.c compatiblity defines.
6922 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6923 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6924 * config/sparc/tm-nbsd64.h: New file.
6925 * config/sparc/tm-nbsdaout.h: Remove.
6926 * config/sparc/xm-nbsd.h: Remove.
6927
6928 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6929
6930 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6931 * sparc-tdep.c: Include osabi.h.
6932 (gdbarch_tdep): Add osabi member.
6933 (_initialize_sparc_tdep): Use gdbarch_register.
6934 (sparc_gdbarch_init): Use generic OS ABI framework.
6935 (sparc_dump_tdep): New function.
6936
6937 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6938
6939 * corefile.c (do_captured_read_memory_integer): Return non-zero
6940 result.
6941 (safe_read_memory_integer): Copy result of memory read when
6942 status is non-zero. Also, add comments.
6943
6944 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6945
6946 * Makefile.in (ppc_tdep_h): Define.
6947 (ppc-linux-nat.o)
6948 (ppc-linux-tdep.o)
6949 (rs6000-tdep.o): Use $(ppc_tdep_h).
6950 (ppc-sysv-tdep.o)
6951 (ppcnbsd-nat.o)
6952 (ppcnbsd-tdep.o): New dependency lists.
6953 * ppc-tdep.h: Use generic OS ABI framework.
6954 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6955 (ppc_linux_init_abi): New functions.
6956 (ppc_sysv_abi_broken_use_struct_convention)
6957 (ppc_sysv_abi_use_struct_convention)
6958 (ppc_sysv_abi_push_arguments): Move to...
6959 * ppc-sysv-tdep.c: ...here.
6960 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6961 * rs6000-tdep.c (process_note_abi_tag_sections)
6962 (get_elfosabi): Remove.
6963 (rs6000_gdbarch_init): Use generic OS ABI framework.
6964 (rs6000_dump_tdep): New function.
6965 (_initialize_rs6000_tdep): Use gdbarch_register.
6966 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6967 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6968 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6969 of ppc-linux-tdep.o.
6970 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6971 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6972 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6973 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6974 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6975 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6976
6977 2002-05-29 Jim Blandy <jimb@redhat.com>
6978
6979 * macroscope.c (default_macro_scope): Put `void' in empty argument
6980 list.
6981
6982 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6983
6984 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6985 * arch-utils.c: Include "sim-regno.h".
6986 * gdbarch.sh: Don't include "sim-regno.h".
6987 * gdbarch.h, gdbarch.c: Regenerate.
6988 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6989 here.
6990 * arch-utils.h (legacy_register_sim_regno): To here.
6991 * remote-sim.c (legacy_register_sim_regno): Move function from
6992 here.
6993 * arch-utils.c (legacy_register_sim_regno): To here.
6994
6995 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6996
6997 * sim-regno.h: New file.
6998 * Makefile.in (sim_regno_h): Define.
6999 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7000 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7001 (legacy_register_sim_regno): New function.
7002 (one2one_register_sim_regno): New function.
7003 (gdbsim_fetch_register): Rewrite.
7004 (gdbsim_store_register): Only store a register when
7005 REGISTER_SIM_REGNO is valid.
7006 * d10v-tdep.c: Include "sim-regno.h".
7007 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7008 (d10v_ts3_register_sim_regno): Ditto.
7009 * gdbarch.sh: Include "sim-regno.h".
7010 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7011 * gdbarch.h, gdbarch.c: Regenerate.
7012 * arch-utils.h (default_register_sim_regno): Delete declaration.
7013 * arch-utils.c (default_register_sim_regno): Delete function.
7014
7015 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7016
7017 * ppcnbsd-nat.c: Rewrite.
7018 * ppcnbsd-tdep.c: New file.
7019 * ppcnbsd-tdep.h: New file.
7020 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7021 solib.o, and solib-svr4.o.
7022 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7023 nbsd-tdep.o, and corelow.o.
7024
7025 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7026
7027 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7028 `tr' and `sed'. Mention that `broken' targets are not expected to
7029 build.
7030
7031 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7032
7033 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7034 Let PC point right after the prologue before looking up symbols.
7035
7036 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7037
7038 * i386-tdep.c (i386_register_virtual_type): Return
7039 builtin_type_vec128i for SSE registers.
7040
7041 * gdbtypes.h (builtin_type_vec128i): Declare.
7042
7043 * gdbtypes.c (build_builtin_type_vec128i): New function.
7044 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7045 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7046 (build_gdbtypes): Initialize new builtin vector types.
7047 (_initialize_gdbtypes): Register new vector types with gdbarch.
7048
7049 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7050
7051 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7052 since it has been multi-arch'd.
7053 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7054 Move Alpha and VAX multi-arch news entries to same section
7055 as other multi-arch news.
7056
7057 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7058
7059 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7060 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7061 static. Rename some register numbers to put them in ns32k-tdep
7062 private namespace.
7063 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7064 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7065 functions.
7066 (_initialize_ns32k_tdep): Use gdbarch_register.
7067 * ns32k-tdep.h: New file.
7068 * ns32knbsd-tdep.c: New file.
7069 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7070 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7071 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7072 REGISTER_BYTES, REGISTER_BYTE): Remove.
7073 * config/ns32k/tm-ns32k.h: New file.
7074 * config/ns32k/tm-umax.h: Remove.
7075
7076 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7077
7078 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7079 ns32k_store_struct_return, ns32k_extract_return_value,
7080 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7081 functions.
7082 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7083 ns32k_saved_pc_after_call.
7084 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7085 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7086 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7087 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7088 ns32k_extract_struct_value_address.
7089
7090 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7091
7092 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7093 ns32k_fix_call_dummy): New.
7094 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7095 ns32k_call_dummy_words.
7096 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7097 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7098 CALL_DUMMY_NARGS): Remove.
7099 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7100
7101 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7102
7103 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7104 ns32k_frame_saved_pc, ns32k_frame_args_address,
7105 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7106 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7107 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7108 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7109 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7110 (BREAKPOINT): Remove..
7111 (FRAME_CHAIN): Define as ns32k_frame_chain.
7112 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7113 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7114 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7115 (FRAME_FIND_SAVED_REGS): Remove.
7116 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7117 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7118 (POP_FRAME): Define as ns32k_pop_frame.
7119
7120 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7121
7122 * ns32k-tdep.c (ns32k_register_byte_32082,
7123 ns32k_register_byte_32382, ns32k_register_raw_size,
7124 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7125 functions.
7126 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7127 ns32k_register_byte_32382.
7128 * config/ns32k/tm-umax.h: Update copyright years.
7129 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7130 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7131 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7132 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7133 (ns32k_get_enter_addr): Fix prototype.
7134
7135 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7136
7137 * ns32k-tdep.c: Update copyright years.
7138 (ns32k_register_name_32082): New function.
7139 (ns32k_register_name_32382): Ditto.
7140 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7141 (REGISTER_NAME): Define as ns32k_register_name_32382.
7142 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7143 (REGISTER_NAME): Define as ns32k_register_name_32082.
7144
7145 2002-05-24 Jim Blandy <jimb@redhat.com>
7146
7147 * dwarf2read.c (free_line_header): Use xfree, not free.
7148
7149 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7150
7151 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7152 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7153
7154 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7155
7156 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7157
7158 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7159
7160 From Ross Alexander at NEC Europe:
7161 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7162
7163 2002-05-23 Michael Snyder <msnyder@redhat.com>
7164
7165 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7166 for input, rather than parse_and_eval_address.
7167
7168 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7169
7170 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7171 * Makefile.in (sim_d10v_h): Update definition.
7172
7173 2002-05-24 Andrew Cagney <cagney@redhat.com>
7174
7175 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7176 change `2002-05-22 Michael Snyder' below.
7177 (d10v_push_arguments): Ditto.
7178 (d10v_extract_return_value): Ditto.
7179
7180 2002-05-23 Jim Blandy <jimb@redhat.com>
7181
7182 * macrotab.c (check_for_redefinition): Don't complain if the new
7183 definition is the same as the previous one. Take more arguments
7184 to allow the comparison.
7185 (macro_define_object, macro_define_function): Pass more arguments
7186 to check_for_redefinition.
7187
7188 2002-05-22 Michael Snyder <msnyder@redhat.com>
7189
7190 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7191 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7192 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7193 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7194 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7195 Add a temp variable to save a call (and a memory read).
7196 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7197 if possible (so that PC_IN_CALL_DUMMY will work).
7198
7199 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7200
7201 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7202
7203 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7204
7205 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7206 fde->cie_ptr.
7207 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7208 (dwarf2_build_frame_info): Add offset to fde->initial_location
7209 so that frames of shared libraries are mapped correctly.
7210 (execute_stack_op): Change type of 'result' from ULONGEST to
7211 CORE_ADDR.
7212
7213 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7214
7215 * config/alpha/tm-nbsd.h: Include solib.h.
7216
7217 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7218
7219 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7220 assumptions about the host's byte order.
7221
7222 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7223
7224 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7225 to dependency list.
7226 * alphanbsd-tdep.c: Include solib-svr4.h.
7227 * shnbsd-tdep.c: Ditto.
7228
7229 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7230
7231 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7232 nbsd-tdep.h to dependency list.
7233 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7234 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7235 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7236 nbsdaout.mh and nbsdelf.mh consistently.
7237 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7238 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7239 nbsdaout.mt and nbsdelf.mh consistently.
7240 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7241 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7242 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7243 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7244 a.out shared library stuff from here...
7245 * config/nm-nbsdaout.h: ...to here.
7246 * config/tm-nbsd.h: Remove.
7247 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7248 * config/arm/nbsd.mh: Remove.
7249 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7250 nbsd-tdep.o.
7251 * config/arm/nbsdaout.mh: New file.
7252 * config/arm/nbsdelf.mh: New file.
7253 * config/arm/nm-nbsdaout.h: New file.
7254 * config/i386/nbsd.mh: Remove.
7255 * config/i386/nbsd.mt: Remove.
7256 * config/i386/nbsdaout.mh: New file.
7257 * config/i386/nbsdaout.mt: New file.
7258 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7259 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7260 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7261 i386_register_u_addr): Remove.
7262 * config/i386/nm-nbsdaout.h: New file.
7263 * config/i386/nm-nbsdelf.h: Remove.
7264 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7265 (USE_STRUCT_CONVENTION): Remove.
7266 * config/i386/tm-nbsdaout.h: New file.
7267 * config/i386/tm-nbsdelf.h: Remove.
7268 * config/m68k/nbsd.mh: Remove.
7269 * config/m68k/nbsd.mt: Remove.
7270 * config/m68k/nbsdaout.mh: New file.
7271 * config/m68k/nbsdaout.mt: New file.
7272 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7273 * config/m68k/nm-nbsdaout.h: New file.
7274 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7275 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7276 * config/ns32k/nbsd.mh: Remove.
7277 * config/ns32k/nbsd.mt: Remove.
7278 * config/ns32k/nbsdaout.mh: New file.
7279 * config/ns32k/nbsdaout.mt: New file.
7280 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7281 * config/ns32k/nm-nbsdaout.h: New file.
7282 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7283 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7284 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7285 (SVR4_SHARED_LIBS): Remove.
7286 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7287 * config/sparc/nbsd.mh: Remove.
7288 * config/sparc/nbsd.mt: Remove.
7289 * config/sparc/nbsdaout.mh: New file.
7290 * config/sparc/nbsdaout.mt: New file.
7291 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7292 * config/sparc/nbsdelf.mt: New file.
7293 * config/sparc/nm-nbsdaout.h: New file.
7294 * config/sparc/nm-nbsdelf.h: Remove.
7295 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7296 * config/sparc/tm-nbsdaout.h: New file.
7297
7298 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7299
7300 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7301 mipsnbsd-tdep.c
7302 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7303
7304 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7305
7306 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7307 shnbsd-nat.c.
7308 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7309
7310 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7311
7312 * NEWS: Note new MIPS NetBSD native configuration.
7313 * configure.host (mips*-*-netbsd*): New host.
7314 * configure.tgt (mips*-*-netbsd*): New target.
7315 * mipsnbsd-nat.c: New file.
7316 * mipsnbsd-tdep.c: New file.
7317 * mipsnbsd-tdep.h: New file.
7318 * config/mips/nbsd.mh: New file.
7319 * config/mips/nbsd.mt: New file.
7320 * config/mips/nm-nbsd.h: New file.
7321 * config/mips/tm-nbsd.h: New file.
7322
7323 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7324
7325 * Makefile.in (SFILES): Add osabi.c.
7326 (COMMON_OBS): Add osabi.o.
7327 (osabi.o): New dependency list.
7328 * osabi.c: New file.
7329 * osabi.h: New file.
7330 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7331
7332 * Makefile.in (alpha_tdep_h): Define and use instead of
7333 alpha-tdep.h.
7334 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7335 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7336 Remove.
7337 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7338 * alpha-tdep.h: Include osabi.h.
7339 (alpha_abi): Remove.
7340 (gdbarch_tdep): Use generic OS ABI framework.
7341 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7342 gdbarch_register_osabi.
7343 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7344 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7345 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7346
7347 * Makefile.in (sh_tdep_h): Add osabi.h.
7348 * sh-tdep.h (sh_osabi): Remove.
7349 (gdbarch_tdep): Use generic OS ABI framework.
7350 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7351 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7352 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7353 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7354
7355 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7356 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7357 gdbarch_register_osabi.
7358 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7359 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7360 (get_elfosabi): Rename to...
7361 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7362 ABI framework support routines.
7363 (arm_gdbarch_init): Use generic OS ABI framework.
7364 (arm_dump_tdep): Likewise.
7365 (_initialize_arm_tdep): Likewise.
7366 * arm-tdep.h: Include osabi.h.
7367 (arm_abi): Remove.
7368 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7369 osabi member.
7370 (arm_gdbarch_register_os_abi): Remove prototype.
7371 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7372 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7373
7374 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7375 * mips-tdep.c: Include osabi.h.
7376 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7377 OS ABI framework.
7378
7379 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7380
7381 * h8300-tdep.c: Fix formatting.
7382
7383 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7384
7385 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7386 printing vector registers.
7387
7388 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7389
7390 From Fernando Nasser:
7391 * remote.c (remote_async_open_1): Re-throw the exception when the
7392 connection fails.
7393 (remote_cisco_open): Ditto.
7394 (remote_open_1): Ditto.
7395
7396 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7397
7398 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7399 (remote_start_remote): Add uiout parameter. Pass through to
7400 remote_start_remote_dummy.
7401 (remote_open_1): Use catch_exception instead of catch_errors.
7402 (remote_async_open_1): Ditto.
7403 (remote_cisco_open): Ditto.
7404
7405 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7406
7407 * remote.c (remote_start_remote): Replace PTR with void pointer.
7408 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7409 static.
7410
7411 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7412
7413 * gdb_indent.sh: Allow the script to be run in the sim directory.
7414
7415 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7416
7417 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7418 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7419
7420 * corelow.c (core_open): Only call set_gdbarch_from_file if
7421 exec_bfd is NULL.
7422
7423 2002-05-17 Andrey Volkov <avolkov@transas.com>
7424
7425 * h8300-tdep.c: Add support of EXR register
7426 * config/h8300/tm-h8300.h: Ditto.
7427
7428 2002-05-17 Andrey Volkov <avolkov@transas.com>
7429
7430 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7431
7432 2002-05-17 Andrey Volkov <avolkov@transas.com>
7433
7434 * h8300-tdep.c: Change literal regnums to REGNO.
7435
7436 2002-05-17 Jim Blandy <jimb@redhat.com>
7437
7438 * NEWS: Note addition of macro support.
7439
7440 Expand preprocessor macros in C expressions.
7441 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7442 (scan_macro_expansion, scanning_macro_expansion,
7443 finished_macro_expansion): New function declarations.
7444 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7445 variable declarations.
7446 * parser-defs.h (expression_context_pc): New declaration.
7447 * parse.c (expression_context_pc): New variable.
7448 (parse_exp_1): Set expression_context_pc, as well as
7449 expression_context_block.
7450 * c-exp.y (yylex): If we're not already reading the result of a
7451 macro expansion, try to macro-expand the next token. When we're
7452 done scanning a macro expansion, switch back to the mainline text.
7453 Commas and `if's in a macro's expansion don't terminate the input.
7454 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7455 (macro_original_text, macro_expanded_text,
7456 expression_macro_lookup_func, expression_macro_lookup_baton): New
7457 variables.
7458 (scan_macro_expansion, scanning_macro_expansion,
7459 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7460 c_preprocess_and_parse): New functions.
7461 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7462 c_preprocess_and_parse, instead of c_parse.
7463 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7464 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7465
7466 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7467
7468 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7469 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7470 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7471
7472 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7473
7474 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7475
7476 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7477
7478 * Makefile.in (sh_tdep_h): Define and use.
7479 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7480 register enum): Move to...
7481 * * sh-tdep.h: ...here.
7482 * sh-tdep.c: Include sh-tdep.h.
7483 * sh3-rom.c: Likewise.
7484 * shnbsd-tdep.c: Likewise.
7485
7486 2002-05-16 Michael Snyder <msnyder@redhat.com>
7487
7488 * arm-tdep.c: Spelling fix in comment.
7489
7490 2002-05-16 Jim Blandy <jimb@redhat.com>
7491
7492 Add commands for manually expanding macros and showing their
7493 definitions.
7494 * macrocmd.c, macroscope.c, macroscope.h: New files.
7495 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7496 (macroscope_h): New variable.
7497 (HFILES_NO_SRCDIR): Add macroscope.h.
7498 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7499 (macroscope.o, macrocmd.o): New rules.
7500
7501 Teach the Dwarf 2 reader to read macro information.
7502 * dwarf2read.c: #include "macrotab.h".
7503 (dwarf_macinfo_buffer): New variable.
7504 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7505 dwarf_macinfo_size.
7506 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7507 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7508 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7509 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7510 dwarf2_macro_spaces_in_definition): New complaints.
7511 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7512 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7513 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7514 the partial symbol table.
7515 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7516 from what's recorded in the partial symbol table.
7517 (read_file_scope): If the compilation unit has a
7518 `DW_AT_macro_info' attribute, read its macro information.
7519 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7520
7521 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7522
7523 Fix PR gdb/546
7524 * ser-tcp.c: Don't include <netinet/udp.h>.
7525
7526 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7527
7528 * MAINTAINERS: Update my email address.
7529
7530 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7531
7532 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7533 include file of the same name.
7534
7535 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7536
7537 * configure.tgt: Mark v850 as multi-arched.
7538 * config/v850/tm-v850.h: Remove file.
7539 * config/v850/v850.mt: Eliminate TM_FILE.
7540
7541 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7542
7543 * v850-tdep.c: Full multi-arch.
7544 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7545 Define GDB_MULTI_ARCH to 2.
7546
7547 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7548
7549 * p-exp.y (current_type): New static variable.
7550 Carries the type of the expression at the position that is parsed.
7551 (push_current_type, pop_current_type): Two new functions. Used
7552 to store/restore current_type in expression on specific tokens.
7553 (search_field): New static variable. Set to one after parsing a point
7554 as at that point only a FIELDNAME token should be searched.
7555 (FIELDNAME): New token. After a point only a token belonging to
7556 current_type type definition is allowed.
7557 (all over token rules): reset and change current_type according
7558 to rules.
7559 (exp '[' rule): insert implicit array index field if
7560 exp is a pascal string type.
7561
7562 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7563
7564 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7565 frame info. Use frame_info's saved_regs instead of matching member
7566 in extra_frame_info throughout.
7567 (v850_frame_init_saved_regs): New function.
7568 (v850_init_extra_frame_info): Move most functionality into
7569 v850_frame_init_saved_regs().
7570 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7571 (v850_frame_find_saved_regs): Remove declaration.
7572 (FRAME_FIND_SAVED_REGS): Remove definition.
7573 (v850_frame_init_saved_regs): Add declaration.
7574 (FRAME_INIT_SAVED_REGS): Add definition.
7575
7576 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7577
7578 * v850-tdep.c: Begin multi-arch'ing v850.
7579 (v850_target_architecture_hook): Remove function.
7580 (v850_gdbarch_init): New function. Add code previously in
7581 v850_target_architecture_hook().
7582 (_initialize_v850_tdep): Don't set target_architecture_hook.
7583 Call register_gdbarch_init() instead.
7584
7585 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7586
7587 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7588 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7589 (fixup_class_method_type): Likewise.
7590
7591 2002-05-15 Jim Blandy <jimb@redhat.com>
7592
7593 Add macro structures to GDB's symbol tables. Nobody puts anything
7594 in them yet.
7595 * symtab.h (struct symtab): New member: `macro_table'.
7596 * buildsym.h (pending_macros): New global variable.
7597 * buildsym.c: #include "macrotab.h".
7598 (buildsym_init): Initialize `pending_macros'.
7599 (end_symtab): If we found macro information while reading a CU's
7600 debugging info, do build a symtab structure for it. Make the
7601 symtab point to the macro information, and clear the
7602 `pending_macros' pointer which held it while we were reading the
7603 debug info.
7604 (really_free_pendings): Free any pending macro table.
7605 * objfiles.h (struct objfile): New member: `macro_cache'.
7606 * objfiles.c (allocate_objfile): Set allocate and free functions
7607 for the macro cache's objstack.
7608 (free_objfile): Empty the macro cache's obstack.
7609 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7610 set new allocate and free functions for it.
7611 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7612 free functions for the macro cache's objstack. (Why is this
7613 function building its own objfile?)
7614 * symmisc.c (print_objfile_statistics): Print statistics on the
7615 macro bcache.
7616 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7617
7618 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7619
7620 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7621 (REGISTER_U_ADDR): Delete definition.
7622 (arm_register_u_addr): Delete declaration.
7623
7624 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7625
7626 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7627 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7628
7629 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7630
7631 * regcache.c (register_valid): Revise comments refering to "Not
7632 available" and "unavailable".
7633 * frame.c (frame_register_read): Ditto.
7634 * findvar.c (value_of_register): Ditto.
7635
7636 2002-05-15 Andrew Cagney <cagney@redhat.com>
7637
7638 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7639 (remote-sim.o): Update dependencies.
7640 (d10v-tdep.o): Specify dependencies.
7641 (sim_d10v_h): Define.
7642
7643 2002-05-14 Jim Blandy <jimb@redhat.com>
7644
7645 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7646 * macrotab.c (macro_lookup_inclusion, find_definition,
7647 new_macro_table): Same.
7648
7649 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7650 not `! strcmp ()'. This is a dubious improvement.
7651 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7652
7653 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7654 although it's not necessary, to avoid a warning.
7655
7656 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7657
7658 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7659 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7660 TYPE_INSTANCE_FLAGS.
7661 (struct main_type): New.
7662 (struct type): Move most members to struct main_type. Change
7663 cv_type and as_type to new type_chain member. Add instance_flags.
7664 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7665 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7666 (finish_cv_type): Remove prototype.
7667 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7668 Set TYPE_CHAIN.
7669 (alloc_type_instance): New function.
7670 (smash_type): New function.
7671 (make_pointer_type, make_reference_type, make_function_type)
7672 (smash_to_member_type, smash_to_method_type): Call smash_type.
7673 (make_qualified_type): New function.
7674 (make_type_with_address_space): Call make_qualified_type.
7675 (make_cv_type): Likewise.
7676 (finish_cv_type): Remove unnecessary function.
7677 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7678 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7679 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7680 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7681 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7682 * hpread.c (hpread_read_struct_type): Likewise.
7683 * stabsread.c (read_struct_type): Likewise.
7684
7685 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7686
7687 * configure.tgt: Add a catch all sh* target, for cases like
7688 sh[2,3,4]-elf and sh-hms.
7689
7690 2002-05-14 Keith Seitz <keiths@redhat.com>
7691
7692 * event-loop.c (create_file_handler): Don't do anything but
7693 update data when we are given a fd which we are already
7694 monitoring.
7695
7696 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7697
7698 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7699 (update_context): Use __func__ in warnings.
7700
7701 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7702
7703 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7704 and tcp_close to net_open and net_close.
7705 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7706 using UDP if requested. Don't try to disable Nagle on UDP
7707 sockets.
7708 * remote.c (remote_serial_open): New function. Warn about UDP.
7709 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7710
7711 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7712
7713 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7714
7715 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7716
7717 * configure.tgt: Remove sh-hms target.
7718 * MAINTAINERS: Don't list sh-hms as a separate target.
7719
7720 2002-05-13 Jim Blandy <jimb@redhat.com>
7721
7722 Add first preprocessor macro-expansion files.
7723 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7724 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7725 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7726 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7727 (COMMON_OBS): Add macrotab.o, macroexp.o.
7728 (macroexp.o, macrotab.o): New rules.
7729
7730 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7731
7732 * config/m88k/tm-m88k.h: Update copyright.
7733 (m88k_target_write_pc): Declare
7734 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7735 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7736 (SHIFT_INST_REGS): Update definition.
7737 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7738 using old definition of TARGET_WRITE_PC.
7739 * regcache.c (generic_target_write_pc): Delete code handling
7740 NNPC_REGNUM.
7741 * gdbarch.sh (NNPC_REGNUM): Delete.
7742 * gdbarch.h, gdbarch.c: Regenerate.
7743
7744 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7745
7746 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7747 builtin reg number.
7748
7749 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7750
7751 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7752 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7753 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7754 access macros.
7755 * c-typeprint.c (cp_type_print_method_args): Likewise.
7756 (c_type_print_args): Likewise.
7757 * d10v-tdep.c (d10v_push_arguments): Likewise.
7758 (d10v_extract_return_value): Likewise.
7759 * expprint.c (print_subexp): Likewise.
7760 * gdbtypes.c (lookup_primitive_typename): Likewise.
7761 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7762 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7763 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7764 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7765 (TYPE_VECTOR): Likewise.
7766 * hpread.c (hpread_read_struct_type)
7767 (fix_static_member_physnames, fixup_class_method_type)
7768 (hpread_type_lookup): Likewise.
7769 * mdebugread.c (parse_symbol, parse_type): Likewise.
7770 * p-lang.c (is_pascal_string_type): Likewise.
7771 * valops.c (hand_function_call): Likewise.
7772 * x86-64-tdep.c (classify_argument): Likewise.
7773
7774 * hpread.c (hpread_read_function_type)
7775 (hpread_read_doc_function_type): Call replace_type.
7776 * dstread.c (create_new_type): Delete.
7777 (decode_dst_structure, process_dst_function): Call alloc_type.
7778 Use type access macros.
7779
7780 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7781
7782 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7783 the're not supported by the current architecture.
7784 (i387_fill_fxsave): Likewise.
7785
7786 2002-05-12 Fred Fish <fnf@redhat.com>
7787
7788 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7789 sect_index_xxx members to index the first slot in section_offsets
7790 if all of the section_offsets are zero.
7791
7792 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7793
7794 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7795 checked in with last change.
7796
7797 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7798
7799 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7800 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7801 config.sub.
7802
7803 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7804
7805 * Makefile.in: Update dependencies.
7806
7807 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7808
7809 * language.c (local_hex_string_custom): Simplify. Do not depend
7810 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7811
7812 * memattr.c (mem_info_command): Replace calls to
7813 longest_local_hex_string and longest_local_hex_string_custom.
7814 * buildsym.c (make_blockvector): Ditto.
7815 * solib.c (info_sharedlibrary_command): Ditto.
7816 * tracepoint.c (tracepoints_info): Ditto.
7817 * symtab.c (print_msymbol_info): Ditto.
7818
7819 * language.c (local_hex_string): Delete.
7820 (local_hex_string_custom): Delete.
7821 (longest_local_hex_string): Rename to local_hex_string.
7822 (longest_local_hex_string_custom): Rename to
7823 local_hex_string_custom.
7824 * language.h (local_hex_string): Change parameter type to LONGEST.
7825 (local_hex_string_custom): Ditto.
7826 (longest_local_hex_string): Delete declaration.
7827 (longest_local_hex_string_custom): Ditto.
7828
7829 * solib.c: Update copyright.
7830 * memattr.c: Update copyright.
7831
7832 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7833
7834 * arch-utils.h (legacy_register_to_value): Declare.
7835 (legacy_value_to_register): Declare.
7836 (legacy_convert_register_p): Declare.
7837 * arch-utils.c (legacy_register_to_value): New function.
7838 (legacy_value_to_register): New function.
7839 (legacy_convert_register_p): New function.
7840
7841 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7842 (VALUE_TO_REGISTER): Define.
7843 (CONVERT_REGISTER_P): Define.
7844 * gdbarch.h, gdbarch.c: Regenerate.
7845
7846 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7847 VALUE_TO_REGISTER.
7848 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7849 CONVERT_REGISTER_P.
7850
7851 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7852 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7853
7854 * Makefile.in: Update dependencies for valops.c.
7855 * valops.c: Include "gdb_assert.h".
7856 (typecmp): Skip THIS parameter to methods.
7857 (find_method_list): Remove static_memfuncp argument,
7858 update callers. Check for stub methods.
7859 (find_value_oload_method_list): Don't set *static_memfuncp.
7860 (find_overload_match): Don't check for stub methods. Assert
7861 that methods are not stubbed. Handle static methods.
7862 (value_find_oload_method_list): Remove static_memfuncp argument.
7863 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7864 to the argument list for static stub methods.
7865 * value.h (value_find_oload_method_list): Update prototype.
7866
7867 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7868
7869 * arch-utils.h (generic_register_size): Declare.
7870 (generic_register_raw_size, generic_register_virtual_size): Delete
7871 declarations.
7872 * arch-utils.c (generic_register_raw_size): Delete.
7873 (generic_register_size): New function.
7874 (generic_register_virtual_size): Delete.
7875
7876 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7877 default generic_register_size.
7878 * gdbarch.h, gdbarch.c: Re-generate.
7879
7880 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7881 register_virtual_size.
7882 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7883 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7884
7885 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7886
7887 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7888 * gdbarch.h, gdbarch.c: Regenerate.
7889 * gnu-v3-abi.c: Update copyright.
7890 (vtable_address_point_offset): Update.
7891 (gnuv3_rtti_type): Update.
7892 (gnuv3_baseclass_offset): Update.
7893 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7894 (init_fetch_link_map_offsets): Update.
7895 * remote.c (get_remote_state): Update.
7896
7897 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7898
7899 * TODO: Remove value_headof/value_from_vtable_info comment.
7900 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7901 * values.c (value_headof, value_from_vtable_info): Delete.
7902 * value.h (value_from_vtable_info): Delete prototype.
7903
7904 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7905
7906 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7907 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7908 $(gdb_regex_h).
7909 (gdb_assert_h): Define.
7910 (gdb_wait_h): Define.
7911 (gdb_regex_h): Define.
7912
7913 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7914
7915 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7916 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7917
7918 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7919
7920 * nbsd-tdep.c: Fix comment.
7921
7922 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7923
7924 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7925 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7926 (nbsd-tdep.o): New dependency list.
7927 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7928 nbsd-tdep.h.
7929 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7930 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7931 * nbsd-tdep.c: New file.
7932 * nbsd-tdep.h: New file.
7933 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7934 nbsd-tdep.h.
7935 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7936 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7937 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7938 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7939
7940 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7941
7942 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7943 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7944 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7945 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7946 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7947 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7948
7949 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7950
7951 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7952 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7953 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7954 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7955 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7956 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7957 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7958
7959 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7960
7961 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7962 fetch_elfcore_registers to...
7963 * i386nbsd-tdep.c: ...here.
7964 (i386nbsd_use_struct_convention): Rename to...
7965 (i386nbsd_aout_use_struct_convention): ...this.
7966 (i386nbsd_supply_reg): New function.
7967 (i386nbsd_fill_reg): New function.
7968 (fetch_core_registers): Use i386nbsd_supply_reg.
7969 (fetch_elfcore_registers): Likewise.
7970 (_initialize_i386nbsd_tdep): New function.
7971 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7972 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7973 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7974 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7975 (i386nbsd_aout_use_struct_convention): ...this.
7976
7977 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7978
7979 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7980 (store_inferior_registers): Use shnbsd_fill_reg.
7981 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7982 sh_nbsd_supply_register): Collapse into...
7983 (shnbsd_supply_reg): ...this.
7984 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7985 (shnbsd_fill_reg): ...this.
7986 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7987 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7988 (fetch_core_registers): Use shnbsd_supply_reg.
7989 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7990 (sh_nbsd_core_fns): Rename to...
7991 (shnbsd_core_fns): ...this.
7992 (sh_nbsd_elfcore_fns): Rename to...
7993 (shnbsd_elfcore_fns): ...this.
7994 (sh_nbsd_init_abi): Rename to...
7995 (shnbsd_init_abi): ...this.
7996 (_initialize_sh_nbsd_tdep): Rename to...
7997 (_initialize_shnbsd_tdep): ...this.
7998 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7999 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8000 sh_nbsd_fill_register): Remove prototypes.
8001 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8002
8003 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8004
8005 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8006 (i387-nat.o): Delete dependency list.
8007 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8008 (x86-64-linux-nat.o): Likewise.
8009 * i387-nat.c: Delete file, moving contents to...
8010 * i387-tdep.c: ...here.
8011 * i387-nat.h: Rename...
8012 * i387-tdep.h: ...to this.
8013 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8014 * i386-linux-nat.c: Likewise.
8015 * i386bsd-nat.c: Likewise.
8016 * i386gnu-nat.c: Likewise.
8017 * i386nbsd-nat.c: Likewise.
8018 * i386v4-nat.c: Likewise.
8019 * x86-64-linux-nat.c: Likewise.
8020 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8021 * config/i386/go32.mh (NATDEPFILES): Likewise.
8022 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8023 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8024 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8025 * config/i386/linux.mh (NATDEPFILES): Likewise.
8026 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8027 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8028 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8029 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8030
8031 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8032
8033 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8034 (alphanbsd-nat.o): Remove dependency list.
8035 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8036 * alphanbsd-nat.c: Delete. Contents moved to...
8037 * alphanbsd-tdep.c: ...here.
8038 (_initialize_alphanbsd_tdep): Register core functions.
8039 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8040
8041 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8042
8043 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8044 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8045 (alphanbsd-nat.o): Likewise.
8046 (alphabsd-tdep.o): New dependency list.
8047 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8048 (fill_gregset): Use alphabsd_fill_reg.
8049 (supply_fpregset): Use alphabsd_supply_fpreg.
8050 (fill_fpregset): Use alphabsd_fill_fpreg.
8051 (fetch_inferior_registers): Use struct reg and struct fpreg
8052 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8053 and alphabsd_supply_fpreg.
8054 (store_inferior_registers): Use struct reg and struct fpreg
8055 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8056 and alphabsd_fill_fpreg.
8057 * alphabsd-tdep.c: New file.
8058 * alphabsd-tdep.h: New file.
8059 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8060 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8061 alphabsd_supply_fpreg.
8062 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8063 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8064
8065 2002-05-11 Eric Christopher <echristo@redhat.com>
8066
8067 * mips-tdep.c (mips_double_register_type): Fix thinko.
8068 (mips_single_register_type): Ditto.
8069 * MAINTAINERS: Add self.
8070
8071 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8072
8073 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8074 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8075 right thing on architectures with different endianness and/or
8076 integer sizes.
8077
8078 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8079
8080 From Christian Limpach <chris@Pin.LU>
8081 * configure.in: Change sed expression which comments out
8082 NATDEPFILES to also comment out continuation lines.
8083 * configure: Regenerate.
8084
8085 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8086
8087 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8088 big patch.
8089
8090 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8091
8092 * sh-tdep.c: Include correct file.
8093
8094 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8095
8096 New support for sh64-elf (sh5) target.
8097
8098 * configure.tgt: For sh64-elf target, default to sh-elf.
8099
8100 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8101 (struct gdbarch_tdep): Add new fields for new registers and ABI
8102 info.
8103
8104 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8105 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8106 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8107 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8108 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8109 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8110 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8111 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8112 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8113 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8114 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8115 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8116 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8117 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8118 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8119 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8120 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8121 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8122 sign_extend, sh64_nofp_frame_init_saved_regs,
8123 sh64_init_extra_frame_info, sh64_get_saved_register,
8124 sh64_extract_struct_value_address, sh64_pop_frame,
8125 sh64_push_arguments, sh64_extract_return_value,
8126 sh64_store_return_value, sh64_show_media_regs,
8127 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8128 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8129 sh_sh64_register_virtual_type,
8130 sh_sh64_register_convert_to_virtual,
8131 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8132 sh64_register_read, sh64_pseudo_register_write,
8133 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8134 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8135 sh64_do_pseudo_register, sh_compact_do_registers_info,
8136 sh64_do_registers_info, sh_gdbarch_init): New functions.
8137
8138 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8139
8140 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8141
8142 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8143
8144 * linespec.c (decode_line_1): Check for a double quote after
8145 a filename correctly.
8146
8147 2002-05-10 Jim Blandy <jimb@redhat.com>
8148
8149 Properly track the size of the current objfile's .debug_line section.
8150 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8151 (DWARF_LINE_SIZE): New macro.
8152 (dwarf2_build_psymtabs_hard): Record the line section's size in
8153 the partial symbol table.
8154 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8155 symbol table.
8156
8157 2002-05-10 Petr Sorfa <petrs@caldera.com>
8158
8159 * ia64-tdep.c: Handle breakpoints on L instruction type
8160 in MLX instruction bundle by moving the breakpoint to
8161 the third slot (X instruction type) as L holds only data.
8162
8163 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8164
8165 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8166 (process_one_symbol): Complain about discarding local symbols
8167 due to a misplaced N_LBRAC entry.
8168
8169 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8170
8171 From Daniel Berlin <dan@cgsoftware.com>
8172 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8173 decrease the depth we are at, in the case of templates.
8174
8175 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8176
8177 * mips-tdep.c (mips_float_register_type): New function.
8178 (mips_double_register_type): New function.
8179 (mips_print_register): Use them.
8180 (do_fp_register_row): Likewise.
8181
8182 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8183
8184 * signals/signals.c (signals): Remove conditional compilation around
8185 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8186 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8187
8188 2002-05-09 Michael Snyder <msnyder@redhat.com>
8189
8190 * remote-rdp.c (remote_rdp_can_run): Remove.
8191
8192 2002-05-09 Tom Tromey <tromey@redhat.com>
8193
8194 * jv-valprint.c (java_val_print): Handle `char' as a special case
8195 of TYPE_CODE_INT.
8196
8197 2002-05-09 Michael Snyder <msnyder@redhat.com>
8198
8199 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8200 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8201 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8202 str r(0123),[sp,#nn].
8203 (arm_skip_prologue): Ditto. Also make disassembly
8204 order-independent by placing it in a loop.
8205
8206 2002-05-06 Michael Snyder <msnyder@redhat.com>
8207
8208 * stabsread.c (read_type): Add recognition for new attribute:
8209 "@V;" means that an array type is actually a vector.
8210 This is analogous to the vector flag that's been added to dwarf2.
8211
8212 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8213
8214 * i386-tdep.h (i386_abi): New enum.
8215 (struct gdbarch_tdep): Replace os_ident member with abi.
8216 (i386_gdbarch_register_os_abi): New prototype.
8217 * i386-tdep.c (i386_abi_names): New array.
8218 (process_note_abi_tag_sections): Removed.
8219 (process_note_sections): New function.
8220 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8221 (struct i386_abi_handler): New struct.
8222 (i386_abi_handler_list): New variable.
8223 (i386_gdbarch_register_os_abi): New function.
8224 (i386_gdbarch_init): Adapt for the changes given above.
8225
8226 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8227
8228 * gregset.h: Say "GNU/Linux".
8229
8230 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8231
8232 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8233 (build_gdbtypes): Build builtin_type_v2_float.
8234 (_initialize_gdbtypes): Register new builtin type.
8235
8236 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8237
8238 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8239 (clear_gdbarch_swap): New function.
8240 (initialize_non_multiarch): Call.
8241 (gdbarch_update_p): Before calling init(), swap out and clear the
8242 existing architecture.
8243 * gdbarch.c: Regenerate.
8244
8245 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8246
8247 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8248 alphanbsd-tdep.c.
8249
8250 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8251
8252 * sh-nbsd-nat.c: Rename to...
8253 * shnbsd-nat.c: ...this.
8254 * sh-nbsd-tdep.c: Rename to...
8255 * shnbsd-tdep.c: ...this.
8256 * sh-nbsd-tdep.h: Rename to...
8257 * shnbsd-tdep.h: ...this.
8258 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8259 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8260
8261 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8262
8263 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8264 concatenation for command help messages.
8265
8266 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8267
8268 * NEWS: Note new sh*-*-netbsdelf* configuration.
8269 * configure.host: Set gdb_host_cpu to sh for all sh*.
8270 (sh*-*-netbsdelf*): New host.
8271 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8272 (sh*-*-netbsdelf*): New target.
8273 * sh-nbsd-nat.c: New file.
8274 * sh-nbsd-tdep.c: New file.
8275 * sh-nbsd-tdep.h: New file.
8276 * config/sh/nbsd.mh: New file.
8277 * config/sh/nbsd.mt: New file.
8278 * config/sh/nm-nbsd.h: New file.
8279 * config/sh/tm-nbsd.h: New file.
8280
8281 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8282
8283 * sh-tdep.c (sh_osabi_names): Declare.
8284 (process_note_abi_tag_sections): New function.
8285 (get_elfosabi): Ditto.
8286 (sh_gdbarch_register_os_abi): Ditto.
8287 (sh_dump_tdep): Ditto.
8288 _initialize_sh_tdep): Use gdbarch_register to register
8289 sh_gdbarch_init and sh_dump_tdep.
8290 * config/sh/tm-sh.h (sh_osabi): Declare.
8291 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8292
8293 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8294
8295 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8296 (thumb_scan_prologue): Ditto.
8297 (arm_find_callers_reg): Ditto.
8298 (arm_frame_chain): Ditto.
8299 (arm_init_extra_frame_info): Ditto.
8300 (arm_frame_saved_pc): Ditto.
8301 (arm_pop_frame): Ditto.
8302 (arm_push_return_address): New function.
8303 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8304 call_dummy_location, call_dummy_breakpoint_offset_p,
8305 call_dummy_breakpoint_offset, call_dummy_p,
8306 call_dummy_stack_adjust_p, call_dummy_words,
8307 sizeof_call_dummy_words, call_dummy_start_offset,
8308 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8309 call_dummy_address, push_return_address and push_dummy_frame for
8310 generic dummy frames.
8311
8312 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8313
8314 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8315 size computation for alloca.
8316 (sh_fp_frame_init_saved_regs): Likewise.
8317
8318 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8319
8320 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8321 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8322 * arm-tdep.c (arm_store_return_value): Use them.
8323 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8324 * remote-rdp.c (remote_rdp_fetch_register): Use
8325 ARM_MAX_REGISTER_RAW_SIZE.
8326 (remote_rdp_store_register): Likewise.
8327
8328 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8329
8330 * dwarf2cfi.c: Code cleanup, removed unused variables,
8331 added default labels to switch {} statements.
8332 * x86-64-tdep.c: Ditto.
8333 * x86-64-linux-nat.c: Ditto.
8334
8335 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8336
8337 * solib.h: Protect against multiple inclusion.
8338
8339 2002-05-06 Jim Blandy <jimb@redhat.com>
8340
8341 Add first preprocessor macro-expansion files.
8342 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8343 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8344 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8345 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8346 (COMMON_OBS): Add macrotab.o, macroexp.o.
8347 (macroexp.o, macrotab.o): New rules.
8348
8349 Separate the job of reading the line number info statement program
8350 header (...expialidocious) out into its own function.
8351 * dwarf2read.c (struct line_head, struct filenames, struct
8352 directories): Replace with...
8353 (struct line_header): New structure, containing the full
8354 contents of the statement program header, including the
8355 include directory and file name tables.
8356 (read_file_scope): If we have line number info, instead of just
8357 calling dwarf_decode_lines to do all the work, call
8358 dwarf_decode_line_header first to get a `struct line_header'
8359 containing the data in the statement program header, and then
8360 pass that to dwarf_decode_lines, which will pick up where that
8361 left off. Be sure to clean up the `struct line_header' object.
8362 (dwarf_decode_line_header, free_line_header, add_include_dir,
8363 add_file_name): New functions.
8364 (dwarf_decode_lines): Move all the code to read the statement
8365 program header into dwarf_decode_line_header. Take the line
8366 header it built as the first argument, instead of the offset to
8367 the compilation unit's line number info. Use the new `struct
8368 line_header' type instead of the old structures. No need to do
8369 cleanups here now, since we don't allocate anything.
8370 (dwarf2_statement_list_fits_in_line_number_section,
8371 dwarf2_line_header_too_long): New complaints.
8372
8373 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8374
8375 * gdbtypes.c (init_vector_type): New function.
8376 (build_builtin_type_vec128): Simplify the representation of SIMD
8377 registers.
8378 (build_gdbtypes): Initialize new builtin vector types.
8379 (_initialize_gdbtypes): Register new vector types with gdbarch.
8380 (builtin_type_v4_float, builtin_type_v4_int32,
8381 builtin_type_v8_int16, builtin_type_v16_int8,
8382 builtin_type_v2_int32, builtin_type_v4_int16,
8383 builtin_type_v8_int8): New (renamed) SIMD types.
8384
8385 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8386
8387 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8388 (i387_fill_fxsave): Likewise.
8389
8390 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8391
8392 * alpha-tdep.c (alpha_extract_return_value): Don't use
8393 non-constant array size in prototype.
8394
8395 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8396
8397 From Brian Taylor <briant at model dot com>:
8398 * ui-out.c (ui_out_field_core_addr): Use the function
8399 longest_local_hex_string_custom'to format addresses > 32 bits
8400 wide.
8401
8402 * ui-out.c (ui_out_field_core_addr): Update comment.
8403
8404 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8405
8406 * stack.c (select_and_print_frame): Make static. Delete the
8407 parameter `level'.
8408 (func_command): Update call.
8409 (select_frame_command): Delete code computing the frame level.
8410 * frame.h (select_and_print_frame): Delete declaration.
8411
8412 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8413
8414 * sparc-tdep.c (sparc_get_saved_register): Comment why
8415 get_prev_frame call is safe.
8416
8417 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8418
8419 * frame.h (select_frame): Delete level parameter.
8420 * stack.c (select_frame): Update. Use frame_relative_level to
8421 obtain the frame's level.
8422 (select_and_print_frame): Update call.
8423 (select_frame_command): Ditto.
8424 (up_silently_base): Ditto.
8425 (down_silently_base): Ditto.
8426 * ocd.c (ocd_start_remote): Ditto.
8427 * remote-rdp.c (remote_rdp_open): Ditto.
8428 * remote-mips.c (mips_initialize): Ditto.
8429 (common_open): Ditto.
8430 * remote-e7000.c (e7000_start_remote): Ditto.
8431 * m3-nat.c (select_thread): Ditto.
8432 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8433 (child_get_current_exception_event): Ditto.
8434 * varobj.c (varobj_create): Ditto.
8435 (varobj_update): Ditto.
8436 (c_value_of_root): Ditto.
8437 * tracepoint.c (finish_tfind_command): Ditto.
8438 * corelow.c (core_open): Ditto.
8439 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8440 * thread.c (info_threads_command): Ditto.
8441 (switch_to_thread): Ditto.
8442 * infrun.c (normal_stop): Ditto.
8443 (restore_selected_frame): Ditto.
8444 (restore_inferior_status): Ditto.
8445 * breakpoint.c (insert_breakpoints): Ditto.
8446 (watchpoint_check): Ditto.
8447 (bpstat_stop_status): Ditto.
8448 (do_enable_breakpoint): Ditto.
8449 * blockframe.c (flush_cached_frames): Ditto.
8450 (reinit_frame_cache): Ditto.
8451
8452 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8453
8454 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8455 maintainer.
8456
8457 2002-05-04 Jim Blandy <jimb@redhat.com>
8458
8459 * gdbtypes.c (replace_type): Doc fix.
8460
8461 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8462
8463 * valprint.c (strcat_longest): Delete commented out function.
8464 Update copyright.
8465
8466 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8467
8468 * MAINTAINERS: Mark a29k as deleted.
8469 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8470 Move new configurations to the top.
8471 * configure.tgt: Remove a29k.
8472 * config/a29k/tm-vx29k.h: Delete.
8473 * config/a29k/vx29k.mt: Delete.
8474 * config/a29k/tm-a29k.h: Delete.
8475 * config/a29k/a29k-udi.mt: Delete.
8476 * config/a29k/a29k.mt: Delete.
8477 * a29k-tdep.c: Delete.
8478 * remote-udi.c: Delete.
8479 * remote-mm.c: Delete.
8480 * remote-eb.c: Delete.
8481 * remote-adapt.c: Delete.
8482 * Makefile.in: Remove obsolete code.
8483 * config/s390/s390x.mt: Ditto.
8484 * config/s390/s390.mt: Ditto.
8485 * config/sparc/sparclynx.mh: Ditto.
8486 * config/sparc/linux.mh: Ditto.
8487 * config/pa/hppaosf.mh: Ditto.
8488 * config/pa/hppabsd.mh: Ditto.
8489 * config/ns32k/nbsd.mt: Ditto.
8490 * config/mips/vr5000.mt: Ditto.
8491 * config/m68k/sun3os4.mh: Ditto.
8492 * config/m68k/nbsd.mt: Ditto.
8493 * config/m68k/m68klynx.mh: Ditto.
8494 * config/m32r/m32r.mt: Ditto.
8495 * config/i386/x86-64linux.mt: Ditto.
8496 * config/i386/nbsdelf.mt: Ditto.
8497 * config/i386/nbsd.mt: Ditto.
8498 * config/i386/i386lynx.mh: Ditto.
8499
8500 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8501
8502 * target.c (debug_print_register): New function. Handle oversize
8503 registers.
8504 (debug_to_fetch_registers): Call.
8505 (debug_to_store_registers): Call.
8506
8507 2002-05-03 Jim Blandy <jimb@redhat.com>
8508
8509 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8510 (read_type): Doc fix.
8511 * gdbtypes.c (replace_type): Doc fix.
8512
8513 * stabsread.c (multiply_defined_struct): New complaint.
8514 (read_struct_type): If the type we were passed isn't empty, or
8515 incomplete, don't read the new struct type into it; complain,
8516 and return the original type unchanged. Take a new `type_code'
8517 argument, which is the type code for the new type.
8518 (read_type): Rather than storing the type's type code here, pass
8519 it as an argument to read_struct_type, and let that take care of
8520 storing it. That way, we don't overwrite the original type code,
8521 so read_struct_type can use it to decide whether we're overwriting
8522 something we shouldn't.
8523 (complain_about_struct_wipeout): New function.
8524
8525 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8526
8527 * gdbarch.sh: Assert that gdbarch is non-NULL.
8528 * gdbarch.c: Regenerate.
8529
8530 2002-05-03 Jason Merrill <jason@redhat.com>
8531
8532 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8533 and return NULL.
8534
8535 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8536
8537 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8538 (x86_64_dwarf2gdb_regno_map_length),
8539 (x86_64_dwarf2_reg_to_regnum): Added.
8540 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8541 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8542 (_initialize_x86_64_tdep): Synced with the change above.
8543 (x86_64_skip_prologue): Reformulated message.
8544
8545 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8546
8547 * f-exp.y: Also use new prev_lexptr variable
8548 to improve error reporting. Based on Michael Snyder
8549 2002-04-24 dated patch to c-exp.y.
8550 * jv-exp.y: Likewise.
8551 * m2-exp.y: Likewise.
8552
8553 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8554
8555 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8556 we are dealing with vectors.
8557
8558 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8559
8560 * config/m68k/tm-nbsd.h: Obvious fix,
8561 correct machine name.
8562
8563 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8564
8565 * p-typeprint.c (pascal_type_print_base): Add support
8566 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8567
8568 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8569
8570 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8571 for fondamental pascal 'char' type.
8572
8573 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8574
8575 * p-lang.h (is_pascal_string_type): Declaration changed,
8576 new sixth argument of type char ** added.
8577 * p-lang.c (is_pascal_string_type): Implementation
8578 changed. Args length_pos, length_size, string_pos, char_size
8579 can now be NULL. New argument arrayname set to the field
8580 name of the char array. Return value set to char array
8581 field index plus one.
8582 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8583 is_pascal_string_type function.
8584
8585 2002-05-02 Andrew Cagney <cagney@redhat.com>
8586
8587 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8588 <cagney@redhat.com> change.
8589 * gdbarch.c: Regenerate.
8590
8591 2002-05-02 Andrew Cagney <cagney@redhat.com>
8592
8593 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8594 before probing for a new one. Detect errorenous gdbarch_init
8595 functions.
8596 * gdbarch.c: Regenerate.
8597
8598 2002-05-01 Andrew Cagney <cagney@redhat.com>
8599
8600 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8601 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8602 * config/v850/tm-v850.h: Ditto. Update copyright.
8603
8604 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8605
8606 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8607 current_gdbarch.
8608
8609 2002-04-30 Michael Snyder <msnyder@redhat.com>
8610
8611 * arm-tdep.c: Whitespace clean-ups.
8612 (arm_skip_prologue): Fix thinko; two lines
8613 should have been removed as part of 4/24 change.
8614
8615 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8616
8617 * rs6000-tdep.c: Added comment describing how fpscr register
8618 numbers were chosen.
8619
8620 2002-04-30 Michael Snyder <msnyder@redhat.com>
8621
8622 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8623
8624 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8625
8626 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8627 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8628 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8629
8630 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8631
8632 From Louis Hamilton <hamilton@redhat.com>:
8633 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8634 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8635 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8636 not bfd-private xcoff data, to determine wordsize.
8637 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8638
8639 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8640
8641 GDB 5.2 released from 5.2 branch.
8642
8643 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8644
8645 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8646 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8647 (x86_64_register_info_table): Added comments with register numbers.
8648
8649 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8650
8651 * rs6000-tdep.c (rs6000_extract_return_value,
8652 rs6000_store_return_value): Handle returning vectors.
8653 (rs6000_gdbarch_init): Use
8654 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8655 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8656 New function.
8657 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8658 vectors.
8659 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8660 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8661
8662 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8663
8664 * hpread.c (hpread_psymtab_to_symtab_1,
8665 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8666 with fprintf_unfiltered (gdb_stderr,...).
8667
8668 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8669
8670 * remote-array.c (printf_monitor, write_monitor,
8671 array_insert_breakpoint, array_remove_breakpoint ):
8672 Replace fprintf (stderr,...
8673 with fprintf_unfiltered (gdb_stderr,....
8674 * remote-es.c: Likewise.
8675 * remote-os9k.c: Likewise.
8676 * remote-st.c: Likewise.
8677
8678 2002-04-28 Andreas Schwab <schwab@suse.de>
8679
8680 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8681 linux-proc.o and gcore.o.
8682
8683 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8684
8685 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8686 code without frame pointers.
8687
8688 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8689
8690 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8691 ON_STACK is needed.
8692
8693 2002-04-26 Ben Elliston <bje@redhat.com>
8694
8695 * target.c (do_xfer_memory): Correct reference to the new option
8696 "trust-readonly-sections".
8697
8698 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8699
8700 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8701 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8702 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8703 vectors.
8704 (read_array_type): Record the fact that this array type is really a
8705 vector (i.e. are passed in by value).
8706
8707 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8708
8709 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8710 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8711 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8712 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8713 * alpha-linux-tdep.c: Include frame.h.
8714 (alpha_linux_sigcontext_addr): New function.
8715 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8716 alpha_linux_sigcontext_addr.
8717 * alpha-osf1-tdep.c: Include gdbcore.h.
8718 (alpha_osf1_sigcontext_addr): New function.
8719 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8720 alpha_osf1_sigcontext_addr.
8721 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8722 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8723
8724 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8725
8726 * stack.c (selected_frame_level):
8727 (select_frame): Do not set selected_frame_level.
8728 * frame.h (selected_frame_level): Delete declaration.
8729
8730 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8731
8732 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8733 convert_from_func_ptr-addr when AIX / PowerOpen.
8734
8735 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8736
8737 * valops.c (hand_function_call): Call
8738 generic_save_call_dummy_addr.
8739 * frame.h (generic_save_call_dummy_addr): Declare.
8740 * blockframe.c (struct dummy_frame): Add fields call_lo and
8741 call_hi.
8742 (generic_find_dummy_frame): Check for PC in range call_lo to
8743 call_hi instead of entry_point_address.
8744 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8745 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8746 (generic_save_call_dummy_addr): New function.
8747
8748 2002-04-24 David S. Miller <davem@redhat.com>
8749
8750 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8751 sparc_skip_prologue.
8752 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8753 information to find prologue when possible.
8754 (sparc_prologue_frameless_p): Call examine_prologue directly.
8755 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8756 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8757 second argument.
8758 (SKIP_PROLOGUE): Likewise.
8759
8760 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8761
8762 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8763 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8764 indicate that the condition it was testing is always true.
8765 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8766 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8767 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8768
8769 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8770
8771 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8772 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8773 tdep->jb_pc and tdep->jb_elt_size.
8774 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8775 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8776 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8777 * alpha-nat.c (get_longjmp_target): Remove.
8778 (JB_ELEMENT_SIZE): Ditto.
8779 (JB_PC): Ditto.
8780 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8781 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8782 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8783 to alpha_get_longjmp_target.
8784 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8785 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8786 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8787
8788 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8789
8790 * README: Update to GDB 5.2.
8791
8792 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8793
8794 * gdbarch.sh (LC_ALL): Set to `c'.
8795
8796 2002-04-25 Theodore A. Roth <troth@verinet.com>
8797
8798 * avr-tdep.c: Ran through gdb_indent.sh.
8799
8800 2002-04-25 Theodore A. Roth <troth@verinet.com>
8801
8802 * MAINTAINERS: Add myself as AVR maintainer.
8803 * NEWS: Note new target avr.
8804
8805 2002-04-25 Theodore A. Roth <troth@verinet.com>
8806
8807 * Makefile.in: Add support for AVR target.
8808 * configure.tgt: Add support for AVR target.
8809 * avr-tdep.c: New file
8810 * config/avr/avr.mt: New file.
8811
8812 2002-04-25 Theodore A. Roth <troth@verinet.com>
8813
8814 * MAINTAINERS: Add myself to write-after-approval.
8815
8816 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8817
8818 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8819 with fprintf_unfiltered (gdb_stderr,....
8820
8821 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8822
8823 Fix PR gdb/508.
8824 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8825
8826 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8827
8828 * p-exp.y: Also use new prev_lexptr variable
8829 to improve error reporting. Based on Michael Snyder
8830 2002-04-24 dated patch to c-exp.y.
8831
8832 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8833
8834 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8835 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8836 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8837 to 0.
8838 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8839 and struct value.
8840 (FUNCTION_START_OFFSET): Remove.
8841 (BREAKPOINT): Ditto.
8842
8843 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8844
8845 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8846 * NEWS: Ditto.
8847
8848 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8849
8850 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8851 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8852 alpha_linux_pc_in_sigtramp.
8853 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8854 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8855 alpha_osf1_pc_in_sigtramp.
8856 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8857 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8858 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8859 alphafbsd_pc_in_sigtramp.
8860 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8861 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8862 alphanbsd_pc_in_sigtramp.
8863 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8864 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8865
8866 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8867
8868 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8869
8870 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8871
8872 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8873 alphanbsd-tdep.c.
8874 (alphanbsd-nat.o): New dependency list.
8875 (alphanbsd-tdep.o): Ditto.
8876 * NEWS: Note new native NetBSD/alpha configuration.
8877 * alphanbsd-nat.c: New file.
8878 * alphanbsd-tdep.c: Ditto.
8879 * configure.host (alpha*-*-netbsd*): New host.
8880 * configure.tgt (alpha*-*-netbsd*): New target.
8881 * config/alpha/nbsd.mh: New file.
8882 * config/alpha/nbsd.mt: Ditto.
8883 * config/alpha/nm-nbsd.h: Ditto.
8884 * config/alpha/tm-nbsd.h: Ditto.
8885
8886 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8887
8888 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8889 (alpha-osf1-tdep.o): New dependency list.
8890 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8891 and skip_sigtramp_frame members.
8892 * alpha-linux-tdep.c: Include gdbcore.h.
8893 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8894 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8895 * alpha-osf1-tdep.c: New file.
8896 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8897 alpha-osf1-dep.c.
8898 (alpha_frame_past_sigtramp_frame): New function.
8899 (alpha_dynamic_sigtramp_offset): Ditto.
8900 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8901 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8902 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8903 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8904 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8905 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8906 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8907 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8908 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8909 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8910 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8911 to find_solib_trampoline_target.
8912 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8913 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8914 (SKIP_TRAMPOLINE_CODE): Remove.
8915 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8916 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8917 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8918 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8919 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8920 (PROC_SIGTRAMP_MAGIC): Ditto.
8921 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8922 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8923 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8924 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8925 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8926
8927 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8928
8929 * NEWS: Note that Alpha targets are now multi-arch.
8930
8931 2002-04-24 Michael Snyder <msnyder@redhat.com>
8932
8933 * parser-defs.h (prev_lexptr): New external variable.
8934 * parse.c (parse_exp_1): Set prev_lexptr to null before
8935 calling the language-specific parser.
8936 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8937 (yyerror): Use prev_lexptr in error reporting.
8938
8939 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8940
8941 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8942 * gregset.h: If FILL_FPXREGSET is defined, provide
8943 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8944 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8945 is defined, call fill_fpxregset.
8946
8947 2002-04-24 Roland McGrath <roland@frob.com>
8948
8949 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8950 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8951 (supply_gregset, supply_fpregset): New functions.
8952
8953 * gnu-nat.c (gnu_find_memory_regions): New function.
8954 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8955 (gnu_xfer_memory): Add a cast.
8956
8957 2002-04-24 Michael Snyder <msnyder@redhat.com>
8958
8959 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8960 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8961 of argument regs ("str r(0123), [r11, #-nn"]).
8962 (arm_skip_prologue): Better handling for frameless functions.
8963 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8964 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8965
8966 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8967
8968 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8969 NUM_PSEUDO_REGS can be used.
8970
8971 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8972
8973 * arch-utils.h: Update copyright.
8974
8975 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8976 * gdbarch.h, gdbarch.c: Re-generate.
8977
8978 * inferior.h (IN_SIGTRAMP): Delete definition.
8979 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8980 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8981
8982 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8983 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8984 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8985 (find_proc_framesize): Ditto.
8986 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8987 (alpha_init_extra_frame_info): Ditto.
8988 * infrun.c (handle_inferior_event): Ditto.
8989 (handle_inferior_event): Ditto.
8990 (check_sigtramp2): Ditto.
8991 * blockframe.c (create_new_frame): Ditto.
8992 (get_prev_frame): Ditto.
8993 * ppc-linux-tdep.c: Update comments.
8994 * i386-linux-tdep.c: Update comments.
8995 * breakpoint.c (bpstat_what): Update comment.
8996
8997 2002-04-24 David S. Miller <davem@redhat.com>
8998
8999 * i960-tdep.c (register_in_window_p): New function.
9000 (i960_find_saved_register): Use it instead of
9001 REGISTER_IN_WINDOW_P.
9002 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9003
9004 * symtab.h (find_stab_function_addr): Kill extern.
9005 * minsyms.c (find_stab_function_addr): Remove from here...
9006 * dbxread.c: ... to here, and mark it static.
9007
9008 2002-04-20 David S. Miller <davem@redhat.com>
9009
9010 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9011 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9012
9013 2002-04-21 David S. Miller <davem@redhat.com>
9014
9015 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9016 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9017 (vx_write_register): Likewise.
9018
9019 2002-04-23 J. Brobecker <brobecker@gnat.com>
9020
9021 * source.c (is_regular_file): New function.
9022 (openp): Check wether file to open is a regular file
9023 to avoid opening directories.
9024
9025 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9026
9027 * findvar.c (extract_signed_integer): Cast printf argument
9028 to suppress format warning.
9029 (extract_unsigned_integer): Likewise.
9030 * infcmd.c (registers_info): Likewise.
9031 * top.c (get_prompt_1): Likewise.
9032 * valops.c (value_assign): Likewise.
9033 * valprint.c (print_decimal): Likewise.
9034
9035 2002-04-22 H.J. Lu (hjl@gnu.org)
9036
9037 * c-exp.y (typebase): Support
9038
9039 [long|long long|short] [signed|unsigned] [int|]
9040
9041 and
9042
9043 signed [long|long long|short] int
9044
9045 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9046
9047 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9048 and vax-tdep.h.
9049 * vax-tdep.h: New file.
9050 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9051 Make several routines static.
9052 (vax_get_saved_register): New function.
9053 (vax_gdbarch_init): New function.
9054 (_initialize_vax_tdep): Register vax_gdbarch_init.
9055 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9056 Remove macros now under the control of gdbarch.
9057
9058 2002-04-22 Michael Snyder <msnyder@redhat.com>
9059
9060 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9061 Some whitespace and coding standards tweaks.
9062
9063 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9064
9065 * vax-tdep.c: Include regcache.h.
9066 (vax_call_dummy_words): New.
9067 (sizeof_vax_call_dummy_words): New.
9068 (vax_fix_call_dummy): New function.
9069 (vax_saved_pc_after_call): Ditto.
9070 * config/vax/tm-vax.h: Don't include regcache.h.
9071 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9072 (CALL_DUMMY): Remove.
9073 (CALL_DUMMY_WORDS): Define.
9074 (SIZEOF_CALL_DUMMY_WORDS): Define.
9075 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9076
9077 2002-04-18 Michael Snyder <msnyder@redhat.com>
9078
9079 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9080
9081 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9082
9083 * vax-tdep.c (vax_frame_chain): New function.
9084 (vax_push_dummy_frame): Ditto.
9085 (vax_pop_frame): Ditto.
9086 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9087 (FRAMELESS_FUNCTION_INVOCATION): Use
9088 generic_frameless_function_invocation_not.
9089 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9090 (POP_FRAME): Use vax_pop_frame.
9091
9092 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9093
9094 * vax-tdep.c (vax_store_struct_return): New function.
9095 (vax_extract_return_value): Ditto.
9096 (vax_store_return_value): Ditto.
9097 (vax_extract_struct_value_address): Ditto.
9098 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9099 vax_store_struct_return.
9100 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9101 (STORE_RETURN_VALUE): Use vax_store_return_value.
9102 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9103
9104 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9105
9106 * vax-tdep.c (vax_frame_saved_pc): New function.
9107 (vax_frame_args_address_correct): Ditto.
9108 (vax_frame_args_address): Ditto.
9109 (vax_frame_locals_address): Ditto.
9110 (vax_frame_num_args): Move code to be in proximity to
9111 other frame-related functions.
9112 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9113 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9114 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9115 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9116 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9117
9118 2002-04-22 H.J. Lu (hjl@gnu.org)
9119
9120 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9121 includedir.
9122
9123 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9124
9125 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9126 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9127 (FRAME_INIT_SAVED_REGS): New macro.
9128
9129 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9130
9131 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9132
9133 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9134
9135 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9136 where needed.
9137 (fetch_osf_core_registers): Likewise.
9138 (supply_gregset): Likewise.
9139
9140 2002-04-22 J. Brobecker <brobecker@gnat.com>
9141
9142 * symfile.h (get_section_index): Define.
9143 * symfile.c (get_section_index): New function.
9144 * mdebugread.c (SC_IS_SBSS): New macro.
9145 (SC_IS_BSS): Return true for the scBss storage class only, as
9146 the scSBss storage class refers to the .sbss section.
9147 (parse_partial_symbols): Discard the symbols which associated
9148 section does not exist.
9149 Make sure to use the .sbss section index for symbols which
9150 storage class is scBss, rather than using the .bss section index.
9151
9152 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9153
9154 * vax-tdep.c: Update copyright years.
9155 (vax_register_name): New function.
9156 (vax_register_byte): Ditto.
9157 (vax_register_raw_size): Ditto.
9158 (vax_register_virtual_size): Ditto.
9159 (vax_register_virtual_type): Ditto.
9160 * config/vax/tm-vax.h: Update copyright years.
9161 (REGISTER_NAMES): Remove.
9162 (REGISTER_NAME): Define.
9163 (REGISTER_BYTE): Use vax_register_byte.
9164 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9165 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9166 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9167
9168 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9169
9170 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9171 declaration
9172 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9173
9174 2002-04-21 David S. Miller <davem@redhat.com>
9175
9176 * arch-utils.c (generic_prologue_frameless_p): Kill
9177 SKIP_PROLOGUE_FRAMELESS_P code.
9178 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9179 references.
9180 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9181 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9182 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9183 references.
9184 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9185 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9186 (sparc_gdbarch_init): Pass it to
9187 set_gdbarch_prologue_frameless_p.
9188
9189 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9190
9191 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9192 (alphabsd-nat.o): New dependency list.
9193
9194 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9195
9196 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9197 alphafbsd-tdep.c.
9198 (alpha-linux-tdep.o): New dependency list.
9199 (alphafbsd-tdep.o): Likewise.
9200
9201 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9202
9203 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9204 to here...
9205 * alpha-tdep.c: ...from here.
9206 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9207
9208 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9209
9210 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9211 prototype from here...
9212 * alpha-tdep.h: ...to here.
9213
9214 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9215
9216 * frame.h (selected_frame_level): Document as deprecated.
9217 (frame_relative_level): Declare.
9218 * stack.c (frame_relative_level): New function.
9219 (selected_frame_level): Document as deprecated.
9220 (select_frame): Do not set the selected_frame_level.
9221
9222 * stack.c (frame_info, record_selected_frame): Update.
9223 (frame_command, current_frame_command): Update.
9224 (up_silently_base, up_command, down_silently_base): Update.
9225 (down_command): Update.
9226 * inflow.c (kill_command): Update.
9227 * tracepoint.c (finish_tfind_command): Update.
9228 * corelow.c (core_open): Update.
9229 * thread.c (info_threads_command): Update.
9230 (do_captured_thread_select): Update.
9231 * infcmd.c (finish_command): Update.
9232 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9233
9234 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9235
9236 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9237
9238 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9239
9240 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9241 type const.
9242
9243 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9244
9245 * alphafbsd-tdep.c: Update copyright years. Include
9246 alpha-tdep.h.
9247 (alphafbsd_use_struct_convention): Make static.
9248 (alphafbsd_init_abi): New function.
9249 (_initialize_alphafbsd_tdep): New function.
9250 * config/alpha/tm-fbsd.h: Update copyright years.
9251 (USE_STRUCT_CONVENTION): Remove.
9252
9253 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9254
9255 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9256 an Alpha ABI variant.
9257 (alpha_abi_handler_list): Declare.
9258 (alpha_gdbarch_register_os_abi): New function.
9259 (alpha_gdbarch_init): Give registered ABI variant handlers a
9260 chance to tweak the gdbarch once we have set up defaults.
9261 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9262
9263 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9264
9265 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9266 to standard_coerce_float_to_double.
9267 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9268
9269 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9270
9271 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9272 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9273 from gdbarch_tdep rather than a constant.
9274 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9275 the default text address for all Alpha Unix ABIs.
9276 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9277 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9278
9279 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9280
9281 * alpha-tdep.h: New file. Includes several Alpha target constants
9282 taken from...
9283 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9284 let gdbarch deal with.
9285 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9286 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9287 to dependency list.
9288 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9289 Alpha target register names.
9290 * alphabsd-nat.c: Likewise.
9291 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9292 Alpha target register names. Make serveral routines static.
9293 (alpha_get_saved_register): New function.
9294 (alpha_abi_names): New.
9295 (process_note_abi_tag_sections): New function.
9296 (get_elfosabi): New function.
9297 (alpha_gdbarch_init): New function.
9298 (alpha_dump_tdep): New function.
9299 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9300
9301 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9302
9303 * frame.c (find_saved_register): Delete #ifdef
9304 HAVE_REGISTER_WINDOWS code.
9305 * config/sparc/tm-sparc.h: Update comments.
9306 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9307
9308 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9309
9310 * i960-tdep.c (i960_find_saved_register): New function.
9311 (i960_get_saved_register): New function.
9312 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9313 (i960_get_saved_register): Declare.
9314 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9315
9316 2002-04-20 David S. Miller <davem@redhat.com>
9317
9318 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9319
9320 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9321
9322 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9323 instead of NUM_PSEUDO_REGS.
9324
9325 2002-04-20 David S. Miller <davem@redhat.com>
9326
9327 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9328 GDB_MULTI_ARCH_PARTIAL
9329 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9330 define, let tm-sp64.h do it.
9331
9332 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9333
9334 * frame.c (find_saved_register): Avoid a NULL pointer
9335 dereference and actually walk the frame list.
9336
9337 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9338
9339 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9340 sorted in most most-recent-used order. Document.
9341 * gdbarch.h, gdbarch.c: Regenerate.
9342
9343 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9344
9345 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9346 instead of ->prev.
9347 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9348 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9349 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9350 instead of ->prev.
9351
9352 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9353
9354 Fix PR gdb/471.
9355 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9356 (build_builtin_type_vec128): Ditto.
9357 (append_composite_type_field): Fix calculation of type length in
9358 union case.
9359
9360 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9361
9362 * config/djgpp/README: Update.
9363
9364 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9365 compiler warnings.
9366
9367 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9368
9369 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9370 (alpha_setup_arbitrary_frame): ...to this.
9371 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9372 for alpha_setup_arbitrary_frame.
9373
9374 2002-04-18 Andrew Cagney <cagney@redhat.com>
9375
9376 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9377 * gdbarch.h, gdbarch.c: Regenerate.
9378
9379 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9380 * target.h (memory_breakpoint_from_pc): Update declaration.
9381 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9382
9383 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9384 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9385 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9386 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9387 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9388 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9389 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9390 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9391 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9392 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9393 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9394 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9395
9396 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9397 const pointer.
9398 * monitor.c (monitor_insert_breakpoint): Ditto.
9399 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9400
9401 * config/mcore/tm-mcore.h: Update copyright.
9402 * mem-break.c: Ditto.
9403 * xstormy16-tdep.c: Ditto.
9404
9405 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9406
9407 * p-exp.y: Add precedence rule for '^' token.
9408 This removes the shift/reduce conflicts.
9409 Remove the comment concerning these shift/reduce conflicts.
9410
9411 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9412
9413 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9414 (registers_powerpc_nofp): New register set for processors
9415 without floating point unit.
9416
9417 2002-04-18 David S. Miller <davem@redhat.com>
9418
9419 * MAINTAINERS: Add myself to write-after-approval.
9420
9421 2002-04-17 Michael Snyder <msnyder@redhat.com>
9422
9423 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9424
9425 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9426
9427 * rs6000-tdep.c (frame_initial_stack_address): Use
9428 frame_register_read to read the alloca_reg.
9429
9430 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9431
9432 * frame.c (find_saved_register): Find saved registers in the next
9433 not prev frame.
9434 Fix PR gdb/365.
9435
9436 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9437
9438 * gdbarch.sh (LANG): Set to ``c''.
9439
9440 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9441
9442 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9443
9444 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9445
9446 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9447 Update copyright.
9448
9449 * hpread.c (hpread_get_lntt): Add declaration.
9450 Also fix PR gdb/391.
9451
9452 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9453
9454 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9455 * aclocal.m4, configure: Re-generate.
9456 Fix PR gdb/391.
9457
9458 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9459
9460 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9461 instead of tm_print_insn.
9462
9463 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9464
9465 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9466
9467 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9468
9469 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9470 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9471 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9472
9473 2002-04-12 Don Howard <dhoward@redhat.com>
9474
9475 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9476 max_user_call_depth.
9477 (init_cmd_lists): Initialize the new value;
9478 * cli/cli-script.c (execute_user_command): Limit the call depth of
9479 user defined commands. This avoids a core-dump when user commands
9480 are infinitly recursive.
9481
9482 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9483
9484 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9485 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9486 from tdep struct instead of DEFAULT_LR_SAVE.
9487 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9488 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9489 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9490
9491 2002-04-12 Michael Snyder <msnyder@redhat.com>
9492
9493 * Remote.c: Spelling fix.
9494 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9495 If no symbol found for "sbrk", try "_sbrk".
9496 (make_output_phdrs): Use bfd_section_name.
9497 (gcore_copy_callback): Use bfd_section_name.
9498 * eval.c: Indentation fix-ups.
9499 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9500 in case it gets applied to an address that is already
9501 in the instruction space.
9502 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9503 * symfile.c: Fix indentation, long lines.
9504 * source.c: White space fix-up.
9505
9506 2002-04-12 Andrew Cagney <cagney@redhat.com>
9507
9508 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9509 * frame.c (frame_register_read): New function. Return non-zero on
9510 success.
9511 (read_relative_register_raw_bytes_for_frame): Delete.
9512 (read_relative_register_raw_bytes): Delete.
9513 * frame.h (frame_register_read): Declare.
9514 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9515 * sh-tdep.c: Ditto.
9516 * infcmd.c (do_registers_info): Ditto.
9517 * hppa-tdep.c: Ditto.
9518 * rs6000-tdep.c: Ditto.
9519 * h8500-tdep.c: Ditto.
9520 * mips-tdep.c: Ditto.
9521 * h8300-tdep.c: Ditto.
9522 * z8k-tdep.c: Ditto.
9523
9524 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9525
9526 From Jimi X <jimix@watson.ibm.com>:
9527 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9528 64-bit SysV ABI.
9529
9530 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9531
9532 From Jimi X <jimix@watson.ibm.com>:
9533 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9534 bfd info.
9535
9536 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9537
9538 From Jimi X <jimix@watson.ibm.com>:
9539 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9540 register sets for these processor variants.
9541
9542 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9543
9544 * regformats/reg-ppc.dat: Support FPSCR.
9545
9546 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9547
9548 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9549 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9550 Add fpscr as an invalid/unfetchable register.
9551 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9552 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9553 (fill_fpregset): Add support for register fpscr.
9554 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9555 (fill_gregset): Account for the fact that register ``mq'' might
9556 not exist.
9557 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9558 (registers_power): Add fpscr to register set at slot 71.
9559 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9560 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9561
9562 2002-04-11 Michael Snyder <msnyder@redhat.com>
9563
9564 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9565 * configure: Regenerate.
9566 * config.in: Regenerate.
9567 * acconfig.h: Add define for _SYSCALL32.
9568 * core-sol2.c: Remove #define _SYSCALL32.
9569 * solib-legacy.c: Remove #define _SYSCALL32.
9570
9571 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9572
9573 * stack.c (select_frame): Cleanup internal error message, do not
9574 use %p.
9575
9576 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9577
9578 * stack.c (select_frame): Check that selected_frame and the
9579 specified level are as expected.
9580 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9581 Update copyright.
9582 * frame.h (struct frame_info): Add field `level'. Update
9583 copyright.
9584 Work-in-progress PR gdb/464.
9585
9586 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9587
9588 * maint.c (maint_print_section_info): Rename print_section_info.
9589 (print_bfd_section_info, print_objfile_section_info): Update.
9590 * inferior.h (struct gdbarch): Add opaque declaration.
9591 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9592 * gdbarch.h: Regenerate.
9593
9594 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9595
9596 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9597 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9598 (kernel_u_size): Added.
9599 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9600 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9601
9602 2002-04-04 Jim Ingham <jingham@apple.com>
9603
9604 * valarith.c (find_size_for_pointer_math): New function, either returns
9605 the size for a pointer's target, returns 1 for void *, or errors for
9606 incomplete types.
9607 (value_add, value_sub): use find_size_for_pointer_math.
9608
9609 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9610
9611 * linux-low.c (linux_look_up_symbols): New hook.
9612 (linux_target_ops): Add linux_look_up_symbols.
9613 * remote-utils.c (decode_address): New function.
9614 (look_up_one_symbol): New function.
9615 * server.c (handle_query): Call target look_up_symbols hook.
9616 * server.h (look_up_one_symbol): Add prototype.
9617 * target.h (struct target_ops): Add look_up_symbols hook.
9618
9619 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9620
9621 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9622 override FP_REGNUM with frame->fp. Update copyright.
9623 * parse.c (num_std_regs, std_regs): Delete.
9624 (target_map_name_to_register): Do not search std_regs. Update
9625 function description.
9626 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9627 declarations. Update copyright.
9628 Fix PR gdb/251.
9629
9630 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9631
9632 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9633 after the last symbol in a block.
9634
9635 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9636
9637 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9638 is non zero as a found symbol.
9639
9640 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9641
9642 * findvar.c: Include "builtin-regs.h".
9643 (value_of_register): Call value_of_builtin_reg when applicable.
9644 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9645 (target_map_name_to_register): Call
9646 builtin_reg_map_name_to_regnum.
9647 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9648 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9649 (builtin_regs_h): Define.
9650 (builtin-regs.o): New target.
9651 (findvar.o): Add $(builtin_regs_h).
9652 * builtin-regs.c, builtin-regs.h: New files.
9653 * std-regs.c: New file.
9654 Partial fix for PR gdb/251.
9655
9656 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9657
9658 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9659 it's no longer required.
9660
9661 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9662
9663 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9664
9665 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9666
9667 From Jimi X <jimix@watson.ibm.com>:
9668 * rs6000-tdep.c (rs6000_software_single_step): Use
9669 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9670 and size. Use target_insert_breakpoint() and
9671 target_remove_breakpoint() to insert and remove breakpoints
9672 instead of explicit memory reads and writes.
9673
9674 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9675
9676 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9677 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9678 ELF_OBJECT_FORMAT ifdef.
9679
9680 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9681
9682 From Jimi X <jimix@watson.ibm.com>:
9683 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9684
9685 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9686
9687 From Jimi X <jimix@watson.ibm.com>:
9688 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9689 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9690
9691 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9692
9693 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9694 s/asprintf/xasprintf/.
9695 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9696
9697 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9698
9699 I believe Jeff Law denies responsability for this one:
9700 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9701 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9702 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9703 Work-around for PR gdb/366.
9704
9705 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9706
9707 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9708 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9709 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9710
9711 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9712
9713 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9714 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9715 information.
9716
9717 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9718
9719 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9720 maintainer.
9721
9722 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9723
9724 * README (Reporting Bugs in GDB): Document the bug web page as the
9725 prefered way of submitting bugs.
9726 Fix PR gdb/402.
9727
9728 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9729
9730 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9731 -1. Update comment.
9732 * gdbarch.h, gdbarch.c: Re-generate.
9733
9734 2002-04-07 Andreas Schwab <schwab@suse.de>
9735
9736 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9737 buffer to regcache_collect.
9738
9739 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9740
9741 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9742 * gdbarch.c, gdbarch.h: Re-generate.
9743
9744 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9745
9746 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9747 declaration. Fix -Werror.
9748
9749 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9750
9751 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9752 * gdbarch.c: Regenerate.
9753
9754 2002-04-05 Michael Snyder <msnyder@redhat.com>
9755
9756 * breakpoint.c (clear_command): Rewrite middle section to
9757 combine two loops with identical control conditions.
9758 Add a cleanup to eliminate a memory leak.
9759 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9760
9761 2002-04-05 H.J. Lu (hjl@gnu.org)
9762
9763 * solib-svr4.c (bkpt_names): Add "__start".
9764
9765 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9766
9767 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9768 as test for 64 bit target.
9769
9770 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9771
9772 * h8500-tdep.c (h8500_write_fp): Delete function.
9773 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9774 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9775 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9777 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9778 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9779 (s390_write_fp):
9780 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9781 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9782 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9783 (d10v_write_fp): Delete function.
9784 * inferior.h (write_fp, generic_target_write_fp): Delete
9785 declarations.
9786 * regcache.c (generic_target_write_fp): Delete function.
9787 (write_fp): Delete function.
9788 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9789 * gdbarch.h, gdbarch.c: Regenerate.
9790 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9791 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9792 (sparc64_write_fp): Delete declaration.
9793 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9794 (h8500_write_fp): Delete declaration.
9795
9796 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9797
9798 * sparc-tdep.c (sparc64_write_fp): Delete.
9799 (sparc_push_dummy_frame): Replace write_fp call with code to store
9800 the FP directly.
9801 (sparc_gdbarch_init): Do not initialize write_fp.
9802
9803 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9804
9805 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9806 clause.
9807
9808 2002-03-29 Jim Blandy <jimb@redhat.com>
9809
9810 * stack.c (get_selected_block): Add new argument `addr_in_block',
9811 used to return the exact code address we used to select the block,
9812 not just the block.
9813 * blockframe.c (get_frame_block, get_current_block): Same.
9814 * frame.h (get_frame_block, get_current_block,
9815 get_selected_block): Update declarations.
9816 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9817 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9818
9819 2002-04-05 Michael Snyder <msnyder@redhat.com>
9820
9821 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9822 warning message.
9823
9824 2002-04-05 J. Brobecker <brobecker@gnat.com>
9825
9826 * utils.c (xfullpath): New function.
9827 * defs.h (xfullpath): Add declaration.
9828 * source.c (openp): Use xfullpath in place of gdb_realpath to
9829 avoid resolving the basename part of filenames when the
9830 associated file is a symbolic link. This fixes a potential
9831 inconsistency between the filenames known to GDB and the
9832 filenames it prints in the annotations.
9833 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9834 to be able to match a filename with either the real filename, or
9835 the name of any symbolic link to this file.
9836 (lookup_partial_symtab): Ditto.
9837
9838 2002-04-04 Michael Snyder <msnyder@redhat.com>
9839
9840 * breakpoint.c: Add support for hardware breakpoints in overlays.
9841 (overlay_events_enabled): New state variable.
9842 (insert_breakpoints): Use overlay_events_enabled to decide
9843 whether to attempt to set a breakpoint at the overlay load addr.
9844 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9845 (remove_breakpoint): Use overlay_events_enabled to decide
9846 whether breakpoints need to be removed from overlay load addr.
9847 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9848 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9849 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9850 disable_overlay_breakpoints): Update overlay_events_enabled.
9851
9852 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9853
9854 * dwarf2read.c (struct function_range): New.
9855 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9856 (check_cu_functions): New.
9857 (read_file_scope): Initialize global function lists.
9858 Call dwarf_decode_line after processing children.
9859 (read_func_scope): Add to global function list.
9860 (dwarf_decode_lines): Call check_cu_functions everywhere
9861 record_line is called. Call record_line with a linenumber
9862 of 0 to mark sequence ends.
9863
9864 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9865
9866 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9867 change sync with glibc.
9868
9869 2002-04-03 Jim Blandy <jimb@redhat.com>
9870
9871 * configure.in: Call AC_C_INLINE.
9872 * configure: Regenerated.
9873
9874 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9875
9876 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9877 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9878
9879 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9880
9881 * NEWS: Mention gcore support on FreeBSD/i386.
9882
9883 * fbsd-proc.c: New file.
9884 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9885 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9886
9887 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9888 while statement.
9889
9890 2002-03-29 Jim Blandy <jimb@redhat.com>
9891
9892 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9893 unescaped newlines in string literals, but newer ones don't. So
9894 escape them.
9895
9896 2002-03-26 Michael Snyder <msnyder@redhat.com>
9897 Andrew Cagney <cagney@redhat.com>
9898
9899 * cli/cli-dump.c: New file. Dump memory to file,
9900 restore file to memory.
9901 * cli/cli-dump.h: New file.
9902 * Makefile.in: Add rules, dependencies for cli-dump.o.
9903 * NEWS: Mention new commands.
9904
9905 2002-03-28 Michael Snyder <msnyder@redhat.com>
9906
9907 * symfile.c (symbol_file_add): Move test for null symbols to later.
9908
9909 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9910
9911 From veksler at il.ibm.com:
9912 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9913 the xstrduped original path.
9914 Fix PR gdb/417.
9915
9916 2002-03-27 Michael Snyder <msnyder@redhat.com>
9917
9918 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9919 * infcmd.c (_initialize_infcmd): Ditto.
9920 * language.c (_initialize_language): Ditto.
9921 * symfile.c (_initialize_symfile): Ditto.
9922 * top.c (_init_main): Ditto.
9923 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9924
9925 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9926
9927 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9928 vector registers handling.
9929 (skip_prologue): Handle new AltiVec instructions. Fill in new
9930 fields of frame data.
9931 (frame_get_saved_regs): Fill in information for AltiVec registers.
9932
9933 2002-03-27 Jim Blandy <jimb@redhat.com>
9934
9935 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9936 a function; leave this macro here to invoke that function.
9937 (symbol_init_mangled_name): Declaration for that function.
9938 * symtab.c (symbol_init_mangled_name): New function.
9939
9940 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9941
9942 * valarith.c: Replace strerror with safe_strerror.
9943 * tracepoint.c: Ditto.
9944 * lin-lwp.c: Ditto.
9945 * go32-nat.c: Ditto.
9946 * inflow.c: Ditto.
9947 * gnu-nat.c: Ditto.
9948
9949 2002-03-27 Andreas Schwab <schwab@suse.de>
9950
9951 * event-top.c (command_line_handler): Remove useless if.
9952
9953 2002-03-27 Andreas Jaeger <aj@suse.de>
9954
9955 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9956 comment.
9957
9958 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9959
9960 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9961 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9962 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9963 (x86_64_linux_dr_get_status, supply_gregset),
9964 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9965 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9966 (x86_64_register_info_table): Add.
9967 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9968 (x86_64_register_raw_size, x86_64_register_virtual_type),
9969 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9970 general x86_64_register_info_table.
9971 (i386_gdbarch_init): gdbarch_register_bytes is now set
9972 dynamicaly during initialization.
9973 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9974 * gdbserver/linux-x86-64-low.c: Ditto.
9975
9976 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9977
9978 * gdbserver/server.c (main): Call target_signal_to_host_p
9979 and target_signal_to_host on signals received from the remote.
9980 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9981 target_signal_from_host on signals sent to the remote.
9982 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9983 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9984
9985 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * signals/signals.c: Include "server.h" in gdbserver build.
9988 (target_signal_from_name): Don't use STREQ.
9989 (_initialize_signals): Likewise. Don't include function in
9990 gdbserver build.
9991
9992 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9993
9994 * signals.c: Moved to...
9995 * signals/signals.c: Here.
9996 * Makefile (signals.o): Update.
9997
9998 2002-03-26 Jeff Law (law@redhat.com)
9999
10000 * somread.c (som_symtab_read): Remove some commented out code and
10001 updated related comments. Do not set the minimal symbol table to
10002 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10003 in a dynamic executable.
10004 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10005 where we are unable to find the minimal symbol for the given
10006 PC value.
10007
10008 2002-03-25 Jeff Law (law@redhat.com)
10009
10010 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10011
10012 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10013
10014 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10015
10016 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10017
10018 * command.h: Update copyright.
10019 (struct cmd_list_element): Replace definition with opaque
10020 declaration.
10021 (enum cmd_types): Document that it will eventually be moved to
10022 cli/cli-decode.h
10023 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10024 (MALLOCED_REPLACEMENT): Delete macro.
10025 * Makefile.in (cli_decode_h): Add $(command_h).
10026 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10027 * top.c: Include "cli/cli-decode.h".
10028 * completer.c: Include "cli/cli-decode.h".
10029 * maint.c: Include "cli/cli-decode.h".
10030 * cli/cli-decode.h: Include "command.h".
10031 (enum command_class): Delete.
10032 (enum cmd_types): Comment out.
10033 (enum cmd_auto_boolean): Delete.
10034 (enum var_types): Delete.
10035
10036 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10037
10038 * cli/cli-decode.c: Include "gdb_assert.h".
10039 (add_set_or_show_cmd): New static function.
10040 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10041 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10042 all fields, such as func, from the set command.
10043
10044 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10045
10046 * MAINTAINERS (sh-elf): Change warning flag to -w.
10047
10048 2002-03-23 Andrew Cagney <cagney@redhat.com>
10049
10050 * defs.h (error): Add printf format attribute.
10051 * thread-db.c (thread_from_lwp): Fix error format string.
10052 * stack.c (parse_frame_specification): Ditto.
10053 * cli/cli-decode.c (undef_cmd_error): Ditto.
10054 * scm-lang.c (scm_lookup_name): Ditto.
10055 * tracepoint.c (trace_error): Ditto.
10056 * remote-utils.c (usage): Ditto.
10057 * remote.c (compare_sections_command): Ditto.
10058 Fix PR gdb/328.
10059
10060 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10061
10062 * gdbtypes.c (append_composite_type_field): New function.
10063 (init_composite_type): New function.
10064 * gdbtypes.h (append_composite_type_field): Declare.
10065 (init_composite_type): Ditto.
10066
10067 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10068
10069 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10070 function.
10071 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10072 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10073 structure returning convention for SYSV ABI case, but not
10074 for GNU/Linux, FreeBSD, or NetBSD.
10075
10076 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10077
10078 * symtab.h (lookup_block_symbol): Add mangled_name argument
10079 to prototype.
10080
10081 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10082 with new mangled_name argument.
10083 * linespec.c (decode_line_1): Likewise.
10084 * valops (value_of_this): Likewise.
10085 * symtab.c (lookup_transparent_type): Likewise.
10086 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10087 (lookup_symbol): If we are given a mangled name, pass it down
10088 to lookup_symbol_aux.
10089 (lookup_block_symbol): If we are given a mangled name to check
10090 against, only return symbols which match it.
10091
10092 2002-03-22 Christopher Faylor <cgf@redhat.com>
10093
10094 * win32-nat.c (child_create_inferior): Check for proper shell to use
10095 here, in case the user changes it on the fly.
10096 (_initialize_inftarg): Remove shell path considerations.
10097
10098 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10099
10100 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10101 for gdbarch_max_register_raw_size and max_register_virtual_size.
10102 Adjust copyright year.
10103
10104 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10107 in a function to cover the entire beginning of the function
10108 as well if it does not already.
10109
10110 2002-03-21 Tom Rix <trix@redhat.com>
10111
10112 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10113 (rs6000_ptrace64): Renamed from ptrace64.
10114
10115 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10116
10117 * gdbserver/remote-utils.c (remote_open): Don't call
10118 getprotobyname, we're all using TCP here so just use
10119 IPPROTO_TCP.
10120 * gdbserver/gdbreplay.c (remote_open): Ditto.
10121
10122 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10123
10124 * regcache.c (_initialize_regcache): No need to call
10125 build_regcache() at this time; it gets called whenever
10126 the gdbarch changes.
10127
10128 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10129
10130 * sparc-nat.c: Include sys/param.h where possible.
10131
10132 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10133
10134 Fix PR gdb/422.
10135 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10136 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10137 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10138 complex types.
10139 * stabsread.c (rs6000_builtin_type): Likewise.
10140 (read_sun_floating_type): Likewise.
10141
10142 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10143
10144 * stabsread.c (read_member_functions): Remove skip code for duplicate
10145 constructor/destructor methods. Use standard parsing for these
10146 methods and just do not chain them to the list of methods after
10147 parsing.
10148
10149 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10150
10151 * coffread.c: Remove redundant static declarations. Replace
10152 occurrences of `PTR' with `void *'.
10153 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10154 * top.h (quit_cover): Likewise.
10155 * defs.h (catch_errors): Likewise.
10156
10157 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10158
10159 * defs.h (XMALLOC): Define.
10160 * gdb-events.sh (XMALLOC): Delete macro.
10161 * gdb-events.c, gdb-events.h: Regenerate.
10162 * gdbarch.sh (XMALLOC): Delete macro.
10163 * gdbarch.c: Regenerate.
10164 * serial.c (XMALLOC): Delete macro.
10165 * ui-file.c (XMALLOC): Ditto.
10166 * ser-unix.h (XMALLOC): Ditto.
10167 * sh-tdep.c (XMALLOC): Ditto.
10168 * ui-out.c (XMALLOC): Ditto.
10169 * utils.c (XMALLOC): Ditto.
10170 * i386-tdep.c (XMALLOC): Ditto.
10171 * gdb-events.c (XMALLOC): Ditto.
10172 * d10v-tdep.c (XMALLOC): Ditto.
10173 * cli-out.c (XMALLOC): Ditto.
10174
10175 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10176 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10177 * ui-file.c, ui-out.c: Ditto.
10178
10179 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10180
10181 * command.h (struct cmd_list_element): Add field context.
10182 (set_cmd_context, get_cmd_context): Declare.
10183 * cli/cli-decode.h: Ditto.
10184 * cli/cli-decode.c (get_cmd_context): New function.
10185 (set_cmd_context): New function.
10186 (add_cmd): Initialize context.
10187 Part of fixing PR gdb/145 and PR gdb/146.
10188
10189 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10190
10191 * cli/cli-decode.c (cmd_type): New function.
10192 * command.h (cmd_type): Declare.
10193 * infrun.c (set_schedlock_func): Call function cmd_type.
10194 * kod.c (kod_set_os): Call cmd_type.
10195 * cris-tdep.c (cris_version_update): Use function cmd_type.
10196 (cris_mode_update, cris_abi_update): Ditto.
10197
10198 * command.h: (execute_cmd_post_hook): Declare.
10199 (execute_cmd_pre_hook): Declare.
10200 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10201 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10202 functions. Execute pre/post hook while ensuring that afterwords
10203 hook_in is cleared.
10204 * top.c (execute_command): Use execute_cmd_post_hook, and
10205 execute_cmd_pre_hook to execute pre/post commands.
10206 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10207 hook_stop_stub.
10208 (hook_stop_stub): Call execute_cmd_pre_hook.
10209
10210 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10211
10212 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10213 set'' and this leads to a core dump. Move xstrdup of
10214 operating_system to after check that it is not NULL.
10215
10216 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10217
10218 * kod.c (kod_set_os): Remove unnecessary check that
10219 ``command->type'' is set_cmd.
10220
10221 * valprint.c (set_input_radix): Use input_radix.
10222 (set_output_radix): Use output_radix.
10223 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10224 isn't reverted.
10225
10226 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10227
10228 * value.h (struct value): Delete field ``substring_addr''. Change
10229 aligner fields to force_doublest_align, force_longest_align,
10230 force_core_addr_align and force_pointer_aligh.
10231
10232 * value.h (struct value): Fix typo in above change.
10233
10234 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10235
10236 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10237 to fix internal_error from ``maintenance print architecture''.
10238
10239 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10240
10241 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10242 for gcc versions after gcc-2.8.1.
10243
10244 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10245
10246 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10247 for method resolution. Restore adjustment of ``this'' pointer after
10248 calling value_struct_elt, which was accidentally removed during the
10249 HP merge.
10250
10251 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10252
10253 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10254 value_of_register.
10255 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10256 get_saved_register.
10257 * value.h (value_of_register): Update.
10258
10259 2002-03-14 Richard Henderson <rth@redhat.com>
10260
10261 * configure.in: Detect declaration for canonicalize_file_name.
10262 * utils.c (canonicalize_file_name): Declare, if needed.
10263 (gdb_realpath): Prefer realpath if available and usable.
10264 * config.in, configure: Rebuild.
10265
10266 2002-03-14 Richard Henderson <rth@redhat.com>
10267
10268 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10269 a constant array bound.
10270
10271 * MAINTAINERS: Add myself to write-after-approval.
10272
10273 2002-03-14 Michael Snyder <msnyder@redhat.com>
10274
10275 * symfile.c (syms_from_objfile): Return immediately if no syms.
10276 (symbol_file_add): Return immediately if no syms.
10277 (find_sym_fns): Return immediately if no syms.
10278
10279 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10280
10281 * gdbserver/remote-util.c (remote_open): Print remote-side's
10282 IP address when remote debugging over the network.
10283
10284 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10285
10286 * config/sparc/fbsd.mh: Fix copyright.
10287 * config/sparc/fbsd.mt: Likewise.
10288
10289 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10290
10291 * MAINTAINERS: Fix typo in name of gdb warnings option.
10292 (x86-64): Fix formating so that this can be parsed by awk.
10293
10294 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10295
10296 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10297 * defs.h: Include "gdb/signals.h".
10298 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10299
10300 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10301
10302 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10303 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10304 from x86-64-tdep.h
10305
10306 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10307 Don Howard <dhoward@redhat.com>
10308
10309 * mips-tdep.c (ST0_FR): Define.
10310 (mips2_fp_compat): New function, temporarily disabled.
10311 (mips_read_fp_register_single): New function.
10312 (mips_read_fp_register_double): New function.
10313 (mips_print_register): Use them.
10314 (do_fp_register_row): Likewise.
10315
10316 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10317
10318 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10319 approval''.
10320
10321 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10322
10323 * stabsread.c (read_member_functions): Fix is_stub test for
10324 static member functions, improve comment.
10325
10326 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10327
10328 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10329 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10330 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10331 commands that set boolean values.
10332 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10333 (arm_rdi_resume): Always initialize PC.
10334 (arm_rdi_open): Don't use rslt as a boolean.
10335 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10336 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10337 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10338 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10339
10340 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10341
10342 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10343 * configure: Rebuilt.
10344
10345 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10346
10347 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10348 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10349
10350 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10351
10352 * cli/cli-decode.c (set_cmd_completer): New function.
10353 * command.h (set_cmd_completer): Declare.
10354 * cli/cli-decode.h (set_cmd_completer): Ditto.
10355
10356 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10357 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10358 * win32-nat.c (_initialize_inftarg): Ditto.
10359 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10360 * proc-api.c (_initialize_proc_api): Ditto.
10361 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10362 * source.c (_initialize_source): Ditto.
10363 * exec.c (_initialize_exec): Ditto.
10364 * solib.c (_initialize_solib): Ditto.
10365 * top.c (init_main): Ditto.
10366 * tracepoint.c (_initialize_tracepoint): Ditto.
10367 * symfile.c (_initialize_symfile): Ditto.
10368 * printcmd.c (_initialize_printcmd): Ditto.
10369 * infcmd.c (_initialize_infcmd): Ditto.
10370 * corefile.c (_initialize_core): Ditto.
10371
10372 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10373
10374 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10375
10376 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10377
10378 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10379
10380 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10381
10382 * NEWS: Update headings, 5.2 has branched.
10383
10384 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10385
10386 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10387 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10388 (register_addr, REGISTER_RAW_SIZE): Likewise.
10389 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10390 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10391
10392 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10393
10394 * MAINTAINERS (x86-64): Add myself.
10395 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10396 changed value_ptr -> struct value *
10397
10398 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10399
10400 * configure.host (sparc64-*-freebsd): Add.
10401 * configure.tgt: Likewise.
10402 * config/sparc/fbsd.mh: New file.
10403 * config/sparc/fbsd.mt: Likewise.
10404 * config/sparc/nm-fbsd.h: Likewise.
10405 * config/sparc/tm-fbsd.h: Likewise.
10406
10407 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10408
10409 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10410 regformats/reg-s390x.dat.
10411
10412 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10413
10414 * utils.c: Add FIXME explaining true/false problem.
10415
10416 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10417
10418 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10419
10420 2002-02-28 Michael Chastain <mec@shout.net>
10421
10422 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10423
10424 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10425
10426 * gdbserver/linux-s390-low.c: New file.
10427 * regformats/reg-s390.dat: New file.
10428 * regformats/reg-s390x.dat: New file.
10429 * gdbserver/configure.srv: Add S/390.
10430 * gdbserver/Makefile.in: Add S/390.
10431 * configure.tgt: Enable gdbserver for S/390.
10432
10433 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10434
10435 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10436 first line of the doc string for "info dos", except at the end of
10437 the sentence, since the short help stops at the first period.
10438
10439 2002-02-28 Jason Merrill <jason@redhat.com>
10440
10441 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10442
10443 2002-02-27 Fred Fish <fnf@redhat.com>
10444
10445 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10446 comment (dumy -> dummy).
10447
10448 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10449
10450 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10451
10452 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10453
10454 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10455
10456 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10457
10458 * gdbserver/acconfig.h: New file.
10459 * gdbserver/i387-fp.c: New file.
10460 * gdbserver/i387-fp.h: New file.
10461 * gdbserver/linux-x86-64.c: New file.
10462 * regformats/reg-x86-64.dat: New file.
10463 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10464 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10465 * gdbserver/configure.in: Add support for regsets.
10466 * gdbserver/config.in: Regenerate.
10467 * gdbserver/configure: Regenerate.
10468 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10469 * gdbserver/linux-low.h: New file.
10470 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10471 for regsets.
10472 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10473 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10474 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10475 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10476 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10477 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10478 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10479 "i387-fp.h". Add PTRACE_GETREGS and friends.
10480 * gdbserver/regcache.c (supply_register): New function.
10481 (supply_register_by_name): New function.
10482 (collect_register): New function.
10483 (collect_register_by_name): New function.
10484
10485 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10488 (config.status): Add configure.srv dependency.
10489 (server_h): Add config.h dependency.
10490
10491 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10492
10493 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10494 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10495 * gdbserver/configure.srv: Change i386-*-linux* to use
10496 reg-i386-linux.o.
10497
10498 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10499
10500 * x86-64-tdep.c: Re-indent. Update copyright date.
10501
10502 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10503
10504 From Michal Ludvig <mludvig@suse.cz>:
10505 * x86-64-tdep.c (value.h): Delete.
10506 (gdb_assert.h): Include.
10507 (x86_64_register_convert_to_virtual,
10508 x86_64_register_convert_to_raw ): Add check which lets only
10509 floating-point values to be converted.
10510 (value_push): Delete.
10511 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10512 (i386_gdbarch_init): Number of register_bytes fixed.
10513
10514 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10515
10516 * MAINTAINERS: Add x86-64 target.
10517
10518 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10519
10520 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10521 * osfsolib.c (solib_map_sections): Ditto.
10522 * irix5-nat.c (solib_map_sections): Ditto.
10523 * corelow.c (gdb_check_format): Ditto.
10524 * symfile.c (symfile_bfd_open): Ditto.
10525 * solib.c (solib_map_sections): Ditto.
10526 Fix PR gdb/354.
10527
10528 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10529
10530 * remote.c (_initialize_remote): By default, disable ``e'' and
10531 ``E'' step out-of-range packets.
10532
10533 2002-02-26 Andreas Schwab <schwab@suse.de>
10534
10535 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10536 m68k_linux_frame_saved_pc.
10537 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10538 in_sigtramp.
10539 (SIGCONTEXT_PC_OFFSET): Remove.
10540 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10541 m68k_linux_sigtramp_saved_pc): New functions.
10542 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10543 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10544 (UCONTEXT_PC_OFFSET): Define.
10545 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10546 non-RT and RT signal trampolines.
10547
10548 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10549
10550 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10551 (TARGET_NBPG, STACK_END_ADDR): Delete
10552 (VARIABLES_INSIDE_BLOCK): Delete.
10553
10554 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10555
10556 * utils.c (perror_with_name): Make string parameter constant.
10557 (print_sys_errmsg): Ditto.
10558 (query): Ditto.
10559 * defs.h (perror_with_name): Update.
10560 (print_sys_errmsg): Update.
10561 (query): Update.
10562
10563 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10564
10565 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10566 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10567
10568 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10569
10570 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10571 if it already matches the current architecture from the exec file.
10572 Include arch-utils.h for gdbarch_info_init prototype.
10573 * Makefile.in (rs6000-nat.o): Update dependencies.
10574
10575 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10576
10577 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10578 list of exported variables.
10579
10580 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10581
10582 * gdbserver/configure.srv: New file.
10583 * gdbserver/configure.in: Use configure.srv instead
10584 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10585 from it.
10586 * gdbserver/configure: Regenerated.
10587 * gdbserver/terminal.h: New file.
10588 * gdbserver/Makefile.in: Update for configure changes. Remove
10589 more unneeded include paths.
10590
10591 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10592
10593 From wiz at danbala:
10594 * config/sparc/tm-sp64.h: Fix grammar and typos.
10595 Fix PR gdb/287.
10596
10597 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10598
10599 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10600 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10601 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10602 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10603 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10604 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10605 * s390-tdep.c: Ditto.
10606 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10607 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10608 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10609 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10610 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10611 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10612 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10613 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10614 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10615 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10616 Fix PR gdb/378.
10617
10618 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10619
10620 * lin-thread.c: Delete file.
10621 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10622 to gdb_proc_service.h.
10623 * configure: Re-generate.
10624
10625 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10626 * serial.c (serial_open): Delete check for "ocd".
10627 Fix PR gdb/349.
10628
10629 * Makefile.in (linux-thread.o): Delete target.
10630 * linux-thread.c: Delete file.
10631
10632 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10633 renamed SH files to be consistent.
10634
10635 * symtab.c (sort_search_symbols): Use xfree.
10636
10637 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10638
10639 * arm-linux-tdep.c (arm_linux_init_abi): Register
10640 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10641 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10642 definition with undef, since we don't want the sysvr4 definition.
10643 (SKIP_TRAMPOLINE_CODE): Likewise.
10644
10645 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10646
10647 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10648
10649 * configure.in: (AC_CHECK_FUNCS) Added test for
10650 canonicalize_file_name Regenerated.
10651 * config.in, configure: Regenerated.
10652 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10653 defined use canonicalize_file_name.
10654
10655 2002-02-23 Michael Chastain <mec@shout.net>
10656
10657 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10658
10659 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10660
10661 * README: Remove references to cygnus.com.
10662 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10663 dot com'' form. Remove references to cygnus.com and sourceware.
10664
10665 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10666
10667 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10668 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10669 1003.1-2001 no longer allows "head -1".
10670 * gdb/Makefile.in (version.c): Likewise.
10671 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10672 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10673 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10674
10675 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10676
10677 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10678 * command.h (cmd_cfunc_eq): Declare.
10679 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10680
10681 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10682 ``struct cmd_list_element *''.
10683 * cli/cli-cmds.c (is_complete_command): Update. Use
10684 cmd_cfunc_eq.
10685 * top.c (execute_command): Pass the command to
10686 is_complete_command.
10687 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10688
10689 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10690
10691 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10692 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10693 architecture defines.
10694 * s390-tdep.c (s390_gdbarch_init): Likewise.
10695
10696 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10697
10698 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10699 (arm_linux_push_arguments): Likewise.
10700 (arm_linux_init_abi): Register them. Also register linux-specific
10701 call_dummy_words.
10702 (find_minsym_and_objfile): Use strcmp, not STREQ.
10703 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10704 (arm_linux_call_dummy_words): Delete declaration.
10705 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10706 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10707 declarations.
10708 (LOWEST_PC): Delete.
10709
10710 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10711
10712 * maint.c (print_section_info): Do not prepend `0x' to filepos
10713 output, it will be handled by local_hex_string_custom.
10714
10715 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10716
10717 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10718 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10719 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10720
10721 2002-02-22 Jim Blandy <jimb@redhat.com>
10722
10723 Indicate that the bcache functions don't change the strings
10724 they're passed.
10725 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10726 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10727
10728 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10729
10730 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10731
10732 2002-02-21 Christopher Faylor <cgf@redhat.com>
10733
10734 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10735 find the complete path to a loaded DLL.
10736
10737 2002-02-21 Fred Fish <fnf@redhat.com>
10738
10739 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10740 that marks the end of the range of a function, enter a line number
10741 entry that has a line number of zero and a PC offset that matches
10742 the end of the function. This starts a range of PC's for which no
10743 line number information is known.
10744 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10745 PC's for which no line number info is found (line number is zero)
10746 then we didn't find any valid line information.
10747 * symtab.h: Document use of zero line number entry.
10748
10749 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10750
10751 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10752 (have_ptrace_getvrregs): Define for run time checks.
10753 (gdb_vrregset_t): New type for Altivec register handling.
10754 (fetch_register, store_register): Fetch/store altivec register
10755 when needed.
10756 (fetch_altivec_register, store_altivec_register): New functions.
10757 (supply_vrregset, fill_vrregset): New functions.
10758 (fetch_altivec_registers, store_altivec_registers): New functions.
10759 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10760 registers as well.
10761
10762 2002-02-21 Jiri Smid <smid@suse.cz>
10763
10764 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10765
10766 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10767
10768 * Makefile.in (armnbsd-nat.o): Update dependencies.
10769 * armnbsd-nat.c (supply_gregset): New function. Common code to
10770 supply the integer register set.
10771 (supply_fparegset): New function. Similar for FPA registers.
10772 (fetch_regs, fetch_fp_regs): Use them.
10773 (fetch_core_registers): Likewise.
10774 (fetch_elfcore_registers): New function.
10775 (arm_netbsd_elfcore_fns): New core-file type specification.
10776 (_initialize_arm_netbsd_nat): Register it.
10777
10778 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10779
10780 * armnbsd-nat.c: Include gdbcore.h.
10781 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10782 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10783 'void' to declaration, to shut up ARI.
10784 (fetch_core_registers): Make static. Rewrite using supply_register.
10785 (arm_netbsd_core_fns): New core-file type specification.
10786 (_initialize_arm_netbsd_nat): New function.
10787
10788 2002-02-21 Christopher Faylor <cgf@redhat.com>
10789
10790 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10791 value.
10792
10793 2002-02-20 Christopher Faylor <cgf@redhat.com>
10794
10795 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10796 fails.
10797
10798 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10799
10800 * jv-exp.y (parse_number): Change type of implicit longs
10801 to builtin_type_uint64.
10802
10803 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10804
10805 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10806 to be an integer instead of a `union wait'.
10807
10808 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10809
10810 * mips-linux-nat.c: Call the operating system GNU/Linux.
10811 * mips-linux-tdep.c: Likewise.
10812 * mips-tdep.c: Likewise.
10813
10814 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10815
10816 Fix PR gdb/265.
10817 * jv-exp.y (parse_number): Handle 64-bit integers.
10818
10819 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10820
10821 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10822 AC_STDC_HEADERS to AC_HEADER_STDC.
10823 * gdbserver/configure: Regenerated.
10824
10825 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10826
10827 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10828 is defined.
10829 * sparc-tdep.c (get_longjmp_target): Likewise.
10830
10831 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10832
10833 * News: Add news about ARM and Multi-arch. Mention the new target
10834 arm*-*-netbsd*.
10835
10836 2002-02-19 Jim Blandy <jimb@redhat.com>
10837
10838 * stabsread.c (error_type_complaint): Improve error message.
10839
10840 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10841
10842 * gdbserver/README: Update documentation.
10843 * gdbserver/configure.in: Update configury to match documentation.
10844 * gdbserver/Makefile.in: Likewise.
10845 * gdbserver/configure: Regenerated.
10846 * gdbserver/aclocal.m4: New file, generated by aclocal.
10847 * gdbserver/config.in: New file, generated by autoheader.
10848
10849 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10850
10851 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10852 armnbsd-nat.c.
10853
10854 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10855
10856 * arm-tdep.h (enum arm_float_model): New enum.
10857 (struct gdbarch_tdep): Add fp_model.
10858 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10859 up floating-point conversions until we know the floating-point model
10860 in use by the inferior. Don't complain about being unable to
10861 determine the ABI of the inferior when we don't have one.
10862 (arm_extract_return_value): Support different floating-point models.
10863 (arm_store_return_value): Likewise.
10864 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10865 ARM_FLOAT_SOFT.
10866 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10867
10868 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10869
10870 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10871 of ``current_gdbarch''.
10872
10873 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10874
10875 * armnbsd-nat.c : ANSIfy all function declarations.
10876 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10877 (fetch_inferior_registers): Re-implement in terms of above.
10878 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10879 (store_inferior_registers): Re-implement in terms of above.
10880
10881 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10882
10883 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10884 kernel.
10885 * arm-linux-tdep.c: Likewise.
10886 * config/arm/tm-linux.h: Likewise.
10887
10888 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10889
10890 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10891 * config/arm/nbsd.mt (TM_FILE): Delete.
10892 * config/arm/tm-nbsd.h: Delete.
10893
10894 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10895
10896 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10897 Initialize CALL_DUMMY_LENGTH.
10898
10899 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10900
10901 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10902 function.
10903 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10904 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10905 defines one thing and that is incorrect for this port.
10906 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10907
10908 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10909
10910 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10911
10912 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10913
10914 * win32-nat.c (display_selector): New function. Displays information
10915 about the information returned by GetThreadSelectorEntry API function.
10916 (display_selectors): New function. Displays the infomation of
10917 the selector given as argument, or of CS, DS ans FS selectors
10918 if no argument is given.
10919 ( _initialize_inftarg): Add "w32" as info prefix command.
10920 Add "info w32 selector" as command calling display_selectors.
10921
10922 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10923
10924 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10925 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10926 if not defined.
10927
10928 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10929
10930 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10931
10932 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10933
10934 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10935 (arm_fix_call_dummy): Call it.
10936 (arm_call_dummy_breakpoint_offset): Delete.
10937 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10938 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10939
10940 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10941
10942 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10943 Default to func_frame_chain_valid.
10944 * gdbarch.h, gdbarch.c: Re-generate.
10945 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10946
10947 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10948
10949 * ppc-linux-nat.c: Update copyright.
10950 (fetch_register, store_register): Add tid parameter, don't compute
10951 tid here.
10952 (fetch_ppc_registers, store_ppc_registers): Add tid
10953 parameter. Pass it along to callees.
10954 (fetch_inferior_registers, store_inferior_registers): Compute tid
10955 here, and pass it to calleed functions.
10956 (fill_gregset, supply_fpregset): Clean up formatting.
10957
10958 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10959
10960 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10961 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10962
10963 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10964
10965 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10966 * gdbarch.c gdbarch.h: Regenerate.
10967 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10968 function.
10969 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10970 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10971 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10972
10973 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10974 * arm-tdep.c (arm_get_longjmp_target): New function.
10975 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10976 this to a positive value register arm_get_longjmp_target as the
10977 longjmp handler.
10978 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10979 (arm_linux_init_abi): Set up longjmp description in tdep.
10980 * armnbsd-nat.c (get_longjmp_target): Delete.
10981 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10982 description in tdep.
10983 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10984 (get_longjmp_target): Delete declaration.
10985 (GET_LONGJMP_TARGET): Delete.
10986 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10987 (GET_LONGJMP_TARGET): Delete.
10988
10989 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10990
10991 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10992 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10993 of ``current_gdbarch''.
10994
10995 2002-02-17 Tom Tromey <tromey@redhat.com>
10996
10997 * cli/cli-cmds.c (compare_strings): New function.
10998 (complete_command): Only print each unique item once.
10999 * completer.h (complete_line): Declare.
11000 * completer.c (complete_line): New function.
11001 (line_completion_function): Use it.
11002
11003 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11004
11005 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11006 * gdbarch.h, gdbarch.c: Re-generate.
11007
11008 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11009
11010 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11011
11012 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11013
11014 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11015 * valops.c (value_arg_coerce): Don't take the address of a reference
11016 to convert an argument to a reference.
11017
11018 2002-02-15 Christopher Faylor <cgf@redhat.com>
11019
11020 * win32-nat.c (get_image_name): New function.
11021 (handle_load_dll): Use get_image_name function.
11022 (get_child_debug_event): Avoid registering debug events until possibly
11023 execed process is started.
11024 (child_create_inferior): Allow invocation via shell so that command
11025 line redirection, etc. works ok.
11026 (_initialize_inftarg): Add new command: "set shell" to control whether
11027 a shell is used to start a process.
11028
11029 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11030
11031 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11032 instead of find_register_by_number.
11033 (cannot_store_register): Likewise.
11034
11035 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11036
11037 * dwarf2read.c: Replace fprintf (stderr, ...) by
11038 fprintf_unfiltered (gdb_stderr, ...).
11039
11040 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11041
11042 * gdbserver/gdbserver.1: Document --attach.
11043
11044 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11045
11046 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11047 descriptions.
11048 * arm-tdep.c (arm_default_arm_le_breakpoint)
11049 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11050 (arm_default_thumb_be_breakpoint): New. Initialize them from
11051 traditional breakpoint defines.
11052 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11053 (arm_gdbarch_init): Initialize new breakpoint variables.
11054 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11055 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11056 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11057 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11058 code out to ...
11059 (arm_netbsd_init_abi_common): ... here; new function.
11060 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11061 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11062 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11063 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11064
11065 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11066
11067 * arm-tdep.h (enum arm_abi): New enum.
11068 (struct gdbarch_tdep): New structure.
11069 (LOWEST_PC): Provide a default.
11070 (arm_gdbarch_register_os_abi): Declare new function.
11071 * arm-tdep.c (arm_abi_names): New array.
11072 (process_note_abi_tag_sections): New function.
11073 (get_elfosabi): New function.
11074 (arm_gdbarch_register_os_abi): New function.
11075 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11076 support for that ABI has been built in, then call the appropriate
11077 configuration routine. Use gdbarch_num_regs() to get the number
11078 of registers.
11079 (arm_dump_tdep): New function.
11080 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11081 place-holder functions.
11082 (_initialize_arm_tdep): Register them.
11083 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11084
11085 * armnbsd-tdep.c: New file.
11086 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11087 * config/arm/nbsd.mt (TDEPFILES): Add it.
11088 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11089
11090 * armnbsd-nat.c: Include regcache.h.
11091 * Makefile.in (armnbsd-nat.o): Update dependency list.
11092
11093 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11094
11095 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11096
11097 * gdbserver/Makefile.in: Fix typos in target rules.
11098
11099 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11100
11101 Fix part of PR gdb/267.
11102 * linespec.c (find_methods): Handle constructors specially for now.
11103
11104 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11105
11106 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11107 handling.
11108 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11109 standard_coerce_float_to_double().
11110
11111 2002-02-14 Christopher Faylor <cgf@redhat.com>
11112
11113 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11114 GDBINIT_FILENAME.
11115
11116 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11117
11118 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11119 find_variant_by_name, because it confuses the multiarch
11120 framework. Return NULL if there isn't an architecture with the
11121 user supplied name, instead of forcing a different one without
11122 recording the change with the multiarch machinery.
11123 (find_variant_by_name): Delete.
11124
11125 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11126
11127 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11128 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11129
11130 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11131
11132 * stack.c (print_frame_info_base): When calling
11133 print_frame_info_listing_hook, set current_source_symtab.
11134
11135 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11136
11137 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11138 and remove unused $(INCLUDE_DIR).
11139 Add regcache.c to OBS.
11140 Add generated register protocol files to clean target.
11141 Update dependencies for new objects, obsolete old target code.
11142
11143 * gdbserver/linux-low.c: Remove all platform-specific code to
11144 new files. Remove various dead code. Update to use regcache
11145 functionality.
11146 * gdbserver/remote-utils.c (fromhex): Add return statement
11147 to quiet warning.
11148 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11149 constant.
11150 (input_interrupt): Add integer parameter to match prototype
11151 of a signal handler.
11152 (outreg): Use register_data ().
11153 (prepare_resume_reply): Use gdbserver_expedite_regs.
11154 * gdbserver/server.c (main): Dynamically allocate own_buf because
11155 PBUFSIZ is no longer constant. Use registers_to_string () and
11156 registers_from_string ().
11157 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11158 for error (), fatal (), and warning (). Update definition of
11159 PBUFSIZ to use regcache functionality. Add include guard.
11160 * gdbserver/utils.c (fatal): Add missing ``const''.
11161 (warning): New function.
11162
11163 * regformats/regdat.sh: Include "regcache.h" in generated files.
11164 Provide init_registers () function.
11165 * regformats/regdef.h: Add prototype for set_register_cache ().
11166 Add include guard.
11167
11168 * gdbserver/linux-arm-low.c: New file.
11169 * gdbserver/linux-i386-low.c: New file.
11170 * gdbserver/linux-ia64-low.c: New file.
11171 * gdbserver/linux-m68k-low.c: New file.
11172 * gdbserver/linux-mips-low.c: New file.
11173 * gdbserver/linux-ppc-low.c: New file.
11174 * gdbserver/linux-sh-low.c: New file.
11175
11176 * gdbserver/regcache.c: New file.
11177 * gdbserver/regcache.h: New file.
11178
11179 * gdbserver/low-linux.c: Removed obsolete file.
11180
11181 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11182
11183 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11184 * config/i386/linux.mt: Likewise.
11185 * config/ia64/linux.mt: Likewise.
11186 * config/m68k/linux.mh: Likewise.
11187 * config/powerpc/linux.mh: Likewise.
11188 * config/mips/linux.mt: Likewise.
11189
11190 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11191
11192 * config/i386/i386lynx.mh: Mark gdbserver variables
11193 as (currently) obsolete for this target.
11194 * config/i386/nbsd.mt: Likewise.
11195 * config/i386/nbsdelf.mt: Likewise.
11196 * config/m32r/m32r.mt: Likewise.
11197 * config/m68k/m68klynx.mh: Likewise.
11198 * config/m68k/nbsd.mt: Likewise.
11199 * config/m68k/sun3os4.mh: Likewise.
11200 * config/mips/vr5000.mt: Likewise.
11201 * config/ns32k/nbsd.mt: Likewise.
11202 * config/pa/hppabsd.mh: Likewise.
11203 * config/pa/hppaosf.mh: Likewise.
11204 * config/powerpc/nbsd.mt: Likewise.
11205 * config/rs6000/rs6000lynx.mh: Likewise.
11206 * config/s390/s390.mt: Likewise.
11207 * config/s390/s390x.mt: Likewise.
11208 * config/sparc/sparclynx.mh: Likewise.
11209 * config/sparc/sun4os4.mh: Likewise.
11210 * config/i386/x86-64linux.mt: Likewise.
11211 * config/sparc/linux.mh: Likewise.
11212
11213 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11214
11215 * configure.tgt: Configure gdbserver only for known working
11216 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11217 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11218 SUBDIRS if it is configured. Update comment for ${nativefile}.
11219 * configure: Regenerated.
11220
11221 2002-02-13 Michael Snyder <msnyder@redhat.com>
11222
11223 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11224
11225 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11226 (default_gcore_mach): Just return 0, work around a problem in bfd.
11227 (default_gcore_target): OK to return NULL if exec_bfd is null.
11228 (make_mem_sec): Use a cast, avoid a warning.
11229
11230 * procfs.c (find_memory_regions_callback): Use a cast instead of
11231 calling host_pointer_to_address (which complains if
11232 sizeof (host pointer) != sizeof (target pointer)).
11233 (procfs_make_note_section): Avoid overflow in psargs string.
11234
11235 * procfs.c (procfs_make_note_section): Make the default
11236 implementation return an error.
11237
11238 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11239
11240 * procfs.c (procfs_make_note_section): Provide a default definition
11241 (for alpha-dec-osf4.0f). Fix typos.
11242
11243 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11244
11245 * linux-proc.c: Add include of regcache.h.
11246 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11247
11248 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11249
11250 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11251 * memattr.c (create_mem_region): Disallow useless empty region.
11252 Regions are half-open intervals, so allow [A..B) [B..C) as
11253 non-overlapping.
11254
11255 2002-02-13 Michael Chastain <mec@shout.net>
11256
11257 * defs.h: Kill CONST_PTR.
11258 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11259 * c-lang.c (c_builtin_types): Likewise.
11260 * ch-lang.c (ch_builtin_types): Likewise.
11261 * f-lang.c (f_builtin_types): Likewise.
11262 * language.c (unknown_builtin_types): Likewise.
11263 * m2-lang.c (m2_builtin_types): Likewise.
11264 * p-lang.c (pascal_builtin_types): Likewise.
11265 * scm-lang.c (c_builtin_types): Likewise.
11266
11267 2002-02-13 Keith Seitz <keiths@redhat.com>
11268
11269 * arm-tdep.h (arm_get_next_pc): Add declaration.
11270
11271 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11272
11273 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11274 with other related struct-returning functions.
11275 (arm_extract_struct_value_address): New function.
11276 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11277 initialize float_format, double_format and long_double_format as
11278 appropriate to the endianness of the target.
11279 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11280 (arm_use_struct_convention): Delete declaration.
11281 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11282
11283 2002-02-13 Keith Seitz <keiths@redhat.com>
11284
11285 * defs.h (core_addr_to_string_nz): New function.
11286
11287 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11288
11289 Apply missing bits of 2002-01-15 patch.
11290 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11291 (fill_fpregset): Use i387_fill_fsave.
11292
11293 2002-02-12 Keith Seitz <keiths@redhat.com>
11294
11295 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11296 (core_addr_to_string_nz): New function.
11297
11298 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11299
11300 * arm-linux-nat.c: Really include arm-tdep.h.
11301 * config/arm/tm-linux.h (struct type, struct value): Declare.
11302
11303 2002-02-11 Michael Snyder <msnyder@redhat.com>
11304
11305 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11306 (gcore section): Ifdef for Solaris and Unixware only.
11307 (procfs_do_thread_registers): Unixware needs one lwpstatus
11308 per thread (not one prstatus or pstatus).
11309 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11310 not over all gdb threads. For unixware, call elfcore_write_pstatus
11311 once before iterating over threads.
11312
11313 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11314
11315 * arm-tdep.h: New file.
11316 * arm-tdep.c: Include arm-tdep.h.
11317 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11318 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11319 (arm_print_float_info, arm_register_type, convert_to_extended)
11320 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11321 (arm_extract_return_value, arm_register_name): Make static.
11322 (arm_software_single_step): Similarly. Fix types in declaration.
11323 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11324 (arm_store_return_value, arm_store_struct_return): New functions.
11325 (arm_gdbarch_init): Register the above functions. Also register
11326 call_dummy_start_offset, sizeof_call_dummy_words,
11327 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11328 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11329 max_register_virtual_size, register_size. Set up
11330 prologue_cache.saved_regs here, rather than ...
11331 (_initialize_arm_tdep): ... here.
11332 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11333 declarations.
11334 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11335 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11336 (arm_print_float_info, arm_register_type, convert_to_extended)
11337 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11338 (arm_extract_return_value, arm_register_name): Delete declarations.
11339 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11340 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11341 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11342 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11343 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11344 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11345 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11346 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11347 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11348 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11349 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11350 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11351 interface.
11352 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11353 * remote-rdi.c remote-rdp.c: Likewise.
11354 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11355 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11356 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11357 definition.
11358
11359 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11360 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11361 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11362 from non-ARM_ prefixed definitions.
11363 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11364 all uses of above.
11365 * remote-rdi.c remote-rdp.c: Likewise.
11366 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11367
11368 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11369
11370 * arm-tdep.c (arm_frameless_function_invocation)
11371 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11372 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11373 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11374 (arm_pop_frame, arm_get_next_pc): Make static.
11375 (arm_gdbarch_init): Register above in gdbarch structure.
11376 (arm_read_fp): Renamed from arm_target_read_fp.
11377 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11378 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11379 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11380 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11381 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11382 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11383 (arm_pc_is_thumb_dummy): Delete declarations.
11384 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11385 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11386 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11387 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11388
11389 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11390
11391 * symtab.c (compare_search_syms): New function.
11392 (sort_search_symbols): New function.
11393 (search_symbols): Sort symbols after searching rather than
11394 before.
11395
11396 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11397
11398 * NEWS: Linux -> GNU/Linux.
11399
11400 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11401
11402 * gdbarch.sh: For for level one methods, disallow a definition
11403 when partially multi-arched. Add comments explaining rationale.
11404 * gdbarch.h: Re-generate.
11405
11406 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11407
11408 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11409 multi-arch partial.
11410
11411 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11412
11413 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11414 field. Use diff -u.
11415 * gdbarch.c: Re-generate.
11416
11417 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11418
11419 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11420 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11421 partial.
11422
11423 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11424
11425 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11426 multi-arch partial.
11427 (PUSH_ARGUMENTS): Switch to using predefault.
11428 * gdbarch.c: Regenerate.
11429
11430 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11431
11432 * valops.c (PUSH_ARGUMENTS): Delete definition.
11433 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11434 partial. Default to default_push_arguments.
11435 * gdbarch.h, gdbarch.c: Regenerate.
11436
11437 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11438
11439 * defs.h (throw_exception): Rename return_to_top_level. Update
11440 comments.
11441 * utils.c (error_stream, internal_verror, quit): Ditto.
11442 * top.c (throw_exception, catcher): Ditto.
11443 * sparclet-rom.c (sparclet_load): Ditto.
11444 * remote.c (interrupt_query, minitelnet): Ditto.
11445 * remote-sds.c (interrupt_query): Ditto.
11446 * remote-mips.c (mips_error, mips_kill): Ditto.
11447 * ocd.c (interrupt_query): Ditto.
11448 * monitor.c (monitor_interrupt_query): Ditto.
11449 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11450 * target.h: Update comment.
11451
11452 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11453
11454 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11455
11456 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11457 default_double_format.
11458 * gdbarch.h, gdbarch.c: Re-generate.
11459 * findvar.c (floatformat_unknown): Delete variable definition.
11460 * doublest.h (floatformat_unknown): Delete variable declaration.
11461
11462 2002-02-09 Jim Blandy <jimb@redhat.com>
11463
11464 * stabsread.c (read_type): Add code to parse Sun's syntax for
11465 prototyped function types.
11466
11467 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11468
11469 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11470 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11471
11472 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11473
11474 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11475 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11476 now _initialize_xcoffsolib gets called again and overrides the
11477 commands from solib.c in a native configuration.
11478
11479 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11480
11481 * doublest.c (store_typed_floating): Don't try to return a value.
11482 Fixes PR gdb/290.
11483
11484 2002-02-08 Jim Blandy <jimb@redhat.com>
11485
11486 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11487 is prototyped and has no arguments, print its argument list as
11488 `(void)'.
11489
11490 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11491
11492 * MAINTAINERS (write-after-approval): Add myself.
11493 (paper-trail): I've escaped!
11494
11495 2002-02-08 Christopher Faylor <cgf@redhat.com>
11496
11497 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11498 changes.
11499 (_initialize_check_for_gdb_ini): Ditto.
11500
11501 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11502
11503 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11504 xaprintf -> xasprintf.
11505
11506 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11507
11508 * win32-nat.c: Remove use of printf and sprintf functions.
11509
11510 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11511
11512 * arm-tdep.c (arm_frame_chain_valid): Make static.
11513 (arm_push_arguments): Likewise.
11514 (arm_gdbarch_init): New function.
11515 (_initialize_arm_tdep): Call it.
11516 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11517 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11518 (FRAME_CHAIN_VALID): Delete.
11519 (arm_frame_chain_valid): Delete declaration.
11520 (PUSH_ARGUMENTS): Delete.
11521 (arm_push_arguments): Delete declaration.
11522 (CALL_DUMMY_P): Delete.
11523
11524 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11525 Corinna Vinschen <vinschen@redhat.com>
11526
11527 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11528 on builtin float types.
11529
11530 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11531
11532 * utils.c: Include <curses.h> before "bfd.h".
11533 * tui/tui-hooks.c: Likewise.
11534 * tui/tui.c: Likewise.
11535 * tui/tuiCommand.c: Likewise.
11536 * tui/tuiData.c: Likewise.
11537 * tui/tuiDataWin.c: Likewise.
11538 * tui/tuiDisassem.c: Likewise.
11539 * tui/tuiGeneralWin.c: Likewise.
11540 * tui/tuiIO.c: Likewise.
11541 * tui/tuiLayout.c: Likewise.
11542 * tui/tuiRegs.c: Likewise.
11543 * tui/tuiSource.c: Likewise.
11544 * tui/tuiSourceWin.c: Likewise.
11545 * tui/tuiStack.c: Likewise.
11546 * tui/tuiWin.c: Likewise.
11547
11548 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11549
11550 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11551 to include space for pseudoregs as well. Update loops accordingly.
11552 (sh_fp_frame_init_saved_regs): Ditto.
11553 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11554
11555 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11556
11557 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11558 Add Richard Earnshaw to Arm maintainers.
11559
11560 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11561
11562 * defs.h (warning_begin): Delete declaration.
11563
11564 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11565 Delete macro.
11566
11567 2002-02-07 Michael Snyder <msnyder@redhat.com>
11568
11569 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11570 Logic bug, remove misplaced else.
11571
11572 2002-02-07 Klee Dienes <klee@apple.com>
11573
11574 * fork-inferior.c (fork_inferior): Add '!' to the list of
11575 characters that need to be quoted when building a string for the
11576 shell. Quote '!' specifically with a backslash, since CSH chokes
11577 when trying to evaluate "str!str".
11578
11579 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11580
11581 * rdi-share/host.h: Only provide a typedef for bool if it is not
11582 defined.
11583
11584 2002-02-04 Michael Snyder <msnyder@redhat.com>
11585
11586 * breakpoint.h (enum bptype): Add new overlay event bp type.
11587 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11588
11589 * breakpoint.c (create_internal_breakpoint): New function.
11590 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11591 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11592 (create_thread_event_breakpoint): Ditto.
11593 (create_solib_event_breakpoint): Ditto.
11594 (create_overlay_event_breakpoint): New function.
11595 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11596 (update_breakpoints_after_exec): Delete and re-initialize
11597 overlay event breakpoints after an exec. Add FIXME comment
11598 about longjmp breakpoint.
11599 (print_it_typical): Ignore overlay event breakpoints.
11600 (print_one_breakpoint): Ditto.
11601 (mention): Ditto.
11602 (bpstat_what): Do not stop for overlay event breakpoints.
11603 (delete_breakpoint): Don't delete overlay event breakpoints.
11604 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11605 (breakpoint_re_set): Re-create overlay event breakpoint.
11606
11607 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11608 (overlay_manual_command): Disable overlay breakpoints.
11609 (overlay_off_command): Disable overlay breakpoints.
11610
11611 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11612
11613 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11614 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11615 to here from config/tm-arm.h.
11616 (coff_sym_is_thumb): Make static.
11617 (arm_elf_make_msymbol_special): New function.
11618 (arm_coff_make_msymbol_special): New function.
11619 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11620 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11621 (coff_sym_is_thumb): Delete declaration.
11622 (arm_elf_make_msymbol_special): Declare.
11623 (arm_coff_make_msymbol_special): Declare.
11624 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11625 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11626
11627 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11628
11629 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11630
11631 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11632
11633 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11634 * gdbarch.c gdbarch.h: Regenerate.
11635 * arch-utils.c (default_print_float_info): New function.
11636 * arch-utils.h (default_print_float_info): Prototype it.
11637 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11638 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11639 (PRINT_FLOAT_INFO): Document it.
11640
11641 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11642 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11643 (PRINT_FLOAT_INFO): Define.
11644
11645 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11646
11647 * win32-nat.c (_initialize_check_for_gdb_ini):
11648 Add typecast to sprintf argument to suppress a warning.
11649
11650 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11651
11652 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11653 to allow easier handling of pass state.
11654 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11655 that gives exception name and address.
11656 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11657 and set last_sig value to ourstatus->value.sig. Some missing
11658 exceptions added.
11659 (child_continue): Correctly report continue_status.
11660 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11661 TARGET_SIGNAL_0 (new default value).
11662 (child_resume): consider sig argument passed to decide if
11663 the exception should be passed to debuggee or not.
11664
11665 2002-02-05 Michael Snyder <msnyder@redhat.com>
11666
11667 * regcache.c (fetch_register): Call target_fetch_register
11668 only if we don't call FETCH_PSEUDO_REGISTER.
11669 (store_register): Call target_store_register only if we
11670 don't call STORE_PSEUDO_REGISTER.
11671
11672 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11673
11674 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11675 ELF_MAKE_MSYMBOL_SPECIAL.
11676 * gdbarch.c, gdbarch.h: Regenerate.
11677 * arch-utils.c (default_make_msymbol_special): New function.
11678 * arch-utils.h (default_make_msymbol_special): Export.
11679 * elfread.c (elf_symtab_read): Compile use of
11680 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11681 multiarched.
11682 * coffread.c (coff_symtab_read): Ditto, for
11683 COFF_MAKE_MSYMBOL_SPECIAL.
11684
11685 2002-02-05 Jim Blandy <jimb@redhat.com>
11686
11687 * solib-svr4.c (svr4_truncate_ptr): New function.
11688 (svr4_relocate_section_addresses): Do the address arithmetic with
11689 the appropriate truncation for target addresses, even when
11690 CORE_ADDR is larger than a target address.
11691
11692 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11693
11694 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11695 to (int *).
11696
11697 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11698
11699 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11700 code.
11701
11702 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11703
11704 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11705
11706 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11707
11708 * gdbserver/linux-low.c: Remove unused include files.
11709
11710 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11711
11712 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11713 (read_inferior_memory): Use it.
11714 (write_inferior_memory): Likewise.
11715
11716 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11717
11718 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11719 grubbing through sys_errlist.
11720
11721 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11722
11723 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11724
11725 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11726 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11727
11728 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11729
11730 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11731 (do_sfunc, set_cmd_sfunc): New functions.
11732
11733 * command.h (struct cmd_list_element): Add field func.
11734 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11735 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11736 * cli/cli-decode.h: Ditto.
11737
11738 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11739 (help_all, help_cmd_list): Ditto.
11740 (find_cmd, complete_on_cmdlist): Ditto.
11741 * top.c (execute_command): Ditto.
11742
11743 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11744 function.sfunc.
11745
11746 * infcmd.c (notice_args_read): Fix function signature.
11747
11748 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11749 * cli/cli-decode.c (add_set_cmd): Ditto.
11750 * utils.c (initialize_utils): Ditto.
11751 * maint.c (_initialize_maint_cmds): Ditto.
11752 * infrun.c (_initialize_infrun): Ditto.
11753 * demangle.c (_initialize_demangler): Ditto.
11754 * remote.c (add_packet_config_cmd): Ditto.
11755 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11756 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11757 * proc-api.c (_initialize_proc_api): Ditto.
11758 * kod.c (_initialize_kod): Ditto.
11759 * valprint.c (_initialize_valprint): Ditto.
11760 * top.c (init_main): Ditto.
11761 * infcmd.c (_initialize_infcmd): Ditto.
11762 * corefile.c (_initialize_core): Ditto.
11763 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11764 * arch-utils.c (initialize_current_architecture): Ditto.
11765 (_initialize_gdbarch_utils): Ditto.
11766 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11767
11768 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11769 * wince.c (_initialize_inftarg): Ditto.
11770 * symfile.c (_initialize_symfile): Ditto.
11771 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11772 * language.c (_initialize_language): Ditto.
11773 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11774
11775 2002-02-04 Michael Snyder <msnyder@redhat.com>
11776
11777 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11778
11779 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11780
11781 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11782 Add rules for building the register data files.
11783
11784 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11785
11786 * regformats/regdat.sh: Add braces to the definition of
11787 expedite_regs_${arch}.
11788
11789 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11790
11791 * regformats/regdef.h (struct reg): Add comment describing the
11792 requirements for offset and size fields.
11793
11794 2002-02-04 Andreas Schwab <schwab@suse.de>
11795
11796 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11797 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11798
11799 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11800
11801 * gdbarch.sh (copyright): Update years in generated header.
11802 (SMASH_TEXT_ADDRESS): Add rule.
11803 * gdbarch.h, gdbarch.c: Re-generate.
11804 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11805 * dbxread.c: Likewise.
11806 * dwarfread.c: Likewise.
11807 * elfread.c: Likewise.
11808 * somread.c: Likewise.
11809
11810 * arm-tdep.c (arm_smash_text_address): New function.
11811 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11812
11813 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11814
11815 Add support for hardware watchpoints on win32 native.
11816 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11817 CONTEXT_DEBUG_REGISTERS.
11818 (dr variable): New variable. Static array containing a local copy
11819 of debug registers.
11820 (debug_registers_changed): New variable. Reflects when debug registers
11821 are changed and need to be written to inferior.
11822 (debug_registers_used): New variable. Reflects when any debug register
11823 was set, used when new threads are created.
11824 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11825 i386-nat code.
11826 (thread_rec): Set dr array if id is the thread of current_event .
11827 (child_continue, child_resume): Change the debug registers for all
11828 threads if debug_registers_changed.
11829 (child_add_thread): Change the debug registers if debug_registers_used.
11830 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11831 Link nm.h to new nm-cygwin.h file.
11832 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11833 of hardware registers.
11834
11835 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11836
11837 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11838 Restore behavour broken by 2002-01-20 Andrew Cagney
11839 <ac131313@redhat.com> IEEE_FLOAT removal.
11840
11841 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11842
11843 * c-valprint.c (c_val_print): Pass a proper valaddr to
11844 cp_print_class_method.
11845 * valops.c (search_struct_method): If there is only one method
11846 and args is NULL, return that method.
11847
11848 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11849
11850 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11851 accessing tag_name directly.
11852
11853 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11854
11855 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11856 of accessing tag_name directly.
11857
11858 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11859
11860 PR gdb/280
11861 * gdbtypes.c (replace_type): New function.
11862 * gdbtypes.h (replace_type): Add prototype.
11863 * stabsread.c (read_type): Use replace_type.
11864
11865 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11866
11867 * Makefile.in (memattr.o): Add missing dependencies rule.
11868
11869 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11870
11871 * breakpoint.c (break_at_finish_command): Really export.
11872 (break_at_finish_at_depth_command): Ditto.
11873 (tbreak_at_finish_command): Ditto.
11874 * hppa-tdep.c: Include completer.h.
11875 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11876 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11877
11878 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11879
11880 * utils.c (do_write): New function.
11881 (error_stream): Rewrite combining the code from error_begin and
11882 verror.
11883 (verror): Rewrite using error_stream.
11884 (error_begin): Delete function.
11885
11886 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11887
11888 * utils.c (error_begin): Make static.
11889 * defs.h (error_begin): Delete declaration.
11890
11891 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11892 (decode_line_1): Use cplusplus_error instead of error_begin,
11893 cplusplus_hint and return_to_top_level.
11894 * coffread.c (coff_symfile_read): Use error instead of error_begin
11895 and return_to_top_level.
11896 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11897
11898 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11899
11900 * language.h (type_error, range_error): Make string parameter
11901 constant.
11902 * language.c (warning_pre_print): Delete extern declaration.
11903 * dwarfread.c (warning_pre_print): Ditto.
11904 * language.c (type_error, range_error): Rewrite to use verror and
11905 vwarning instead of warning_begin.
11906
11907 2002-02-01 Michael Snyder <msnyder@redhat.com>
11908
11909 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11910 (set_ignore_count): Move misplaced comment back where it belongs.
11911
11912 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11913
11914 * command.h (NO_FUNCTION): Delete macro.
11915 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11916 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11917 * tracepoint.c (_initialize_tracepoint): Ditto.
11918 * cli/cli-decode.c (add_set_cmd): Ditto.
11919 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11920
11921 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11922
11923 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11924 Update ``this'' pointer when calling virtual functions.
11925
11926 2002-02-01 Michael Snyder <msnyder@redhat.com>
11927
11928 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11929 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11930
11931 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11932
11933 * regformats/reg-arm.dat: New file.
11934 * regformats/reg-i386.dat: New file.
11935 * regformats/reg-ia64.dat: New file.
11936 * regformats/reg-m68k.dat: New file.
11937 * regformats/reg-mips.dat: New file.
11938 * regformats/reg-ppc.dat: New file.
11939 * regformats/reg-sh.dat: New file.
11940 * regformats/regdef.h: New file.
11941 * regformats/regdat.sh: New file.
11942
11943 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11944
11945 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11946 (arm_frame_args_address, arm_frame_locals_address): New functions.
11947 (arm_frame_num_args): New function.
11948 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11949 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11950 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11951
11952 2002-01-31 Michael Snyder <msnyder@redhat.com>
11953
11954 * breakpoint.c (break_at_finish_command): Export.
11955 (break_at_finish_at_depth_command): Export.
11956 (tbreak_at_finish_command): Export.
11957 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11958 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11959 "txbreak" commands, which are HPPA specific.
11960
11961 * printcmd.c (disassemble_command): Remove an ancient
11962 artifact of an old merge.
11963
11964 * symfile.h (enum overlay_debugging_state):
11965 Define enum constant values for overlay mode.
11966 * symfile.c (overlay_debugging): Use enums instead of literals.
11967 (overlay_is_mapped, overlay_auto_command,
11968 overlay_manual_command): Ditto.
11969
11970 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11971 breakpoint_here_p, breakpoint_inserted_here_p,
11972 breakpoint_thread_match, bpstat_stop_status,
11973 describe_other_breakpoints, check_duplicates, clear_command):
11974 Coding standard fixes.
11975
11976 * target.c (target_xfer_memory): Add spaces, coding standard.
11977 (do_xfer_memory): Add missing line to trust-readonly
11978 code: check bfd SEC_READONLY flag for section.
11979
11980 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11981
11982 * PROBLEMS: Fix typo, 5.1->5.1.1.
11983
11984 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11985
11986 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11987 data symbols, since we search based on textlow and texthigh.
11988 (find_pc_sect_symtab): Likewise.
11989
11990 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11991
11992 * defs.h (vwarning): Declare.
11993 * utils.c (vwarning): New function.
11994 (warning): Call vwarning.
11995 (warning_begin): Delete function.
11996
11997 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11998 the warning message.
11999 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12000 warning_begin.
12001
12002 2002-01-30 Michael Snyder <msnyder@redhat.com>
12003
12004 * NEWS: Mention "set trust-readonly-sections" command.
12005 Mention generate-core-file command.
12006
12007 2002-01-15 Michael Snyder <msnyder@redhat.com>
12008
12009 * target.c: New command, "set trust-readonly-sections on".
12010 (do_xfer_memory): Honor the suggestion to trust readonly sections
12011 by reading them from the object file instead of from the target.
12012 (initialize_targets): Register command "set trust-readonly-sections".
12013
12014 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12015
12016 * parse.c (target_map_name_to_register): Simplify, search regs and
12017 pseudo-regs using a single loop.
12018
12019 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12020
12021 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12022
12023 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12024
12025 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12026 * config/i386/i386v42mp.mh: Add i387-nat.o .
12027 * i386v4-nat.c: Include i387-nat.h.
12028 (supply_fpregset): Use i387_supply_fsave.
12029 (fill_fpregset): Use i387_fill_fsave.
12030
12031 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12032
12033 * arm-tdep.c (arm_call_dummy_words): Define.
12034 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12035 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12036 (CALL_DUMMY_WORDS): Define.
12037 (arm_call_dummy_words): Declare.
12038 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12039 (arm_linux_call_dummy_words): Declare.
12040
12041 2002-01-30 Andreas Schwab <schwab@suse.de>
12042
12043 * m68klinux-nat.c: Fix last change to use regcache_collect
12044 instead of referencing registers[] directly.
12045
12046 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12047
12048 * parse.c (target_map_name_to_register): Delete code wrapped in
12049 #ifdef REGISTER_NAME_ALIAS_HOOK.
12050
12051 2002-01-28 Michael Snyder <msnyder@redhat.com>
12052
12053 * regcache.c (legacy_read_register_gen): Need to be able to
12054 read pseudo-register as well as real register.
12055 (legacy_write_register_gen): Ditto.
12056
12057 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12058
12059 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12060 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12061 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12062 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12063 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12064 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12065 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12066 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12067 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12068 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12069 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12070 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12071 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12072 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12073 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12074 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12075 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12076 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12077 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12078 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12079
12080 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12081
12082 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12083 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12084 (initialize_current_architecture): Update target_byte_order using
12085 information from BFD.
12086 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12087 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12088
12089 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12090
12091 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12092 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12093
12094 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12095 #ifdef INVALID_FLOAT.
12096 * infcmd.c (do_registers_info): Ditto.
12097 * values.c (unpack_double): Ditto. Add comment.
12098
12099 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12100 already commented out.
12101
12102 2002-01-26 Andreas Schwab <schwab@suse.de>
12103
12104 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12105 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12106 registers and add support for PTRACE_GETREGS.
12107
12108 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12109
12110 GDB 5.1.1 released from 5.1 branch.
12111 * NEWS: Add 5.1.1 news.
12112 * README: Sync with 5.1 branch.
12113
12114 2002-01-23 Fred Fish <fnf@redhat.com>
12115
12116 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12117 stabstring on initial malloc. Reallocing will copy it for us,
12118 if necessary.
12119
12120 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12121
12122 * Makefile.in (hpread_h): Delete.
12123 (HFILES_NO_SRCDIR): Remove hpread.h.
12124 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12125 (hpread.o): Update dependencies.
12126 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12127
12128 * hp-psymtab-read.c: Remove file.
12129 * hp-symtab-read.c: Remove file.
12130 * hpread.h: Remove file.
12131
12132 * hpread.c: Merge all contents of hp-psymtab-read.c,
12133 hp-symtab-read.c and hpread.h into this file, as it was prior to
12134 January 1999.
12135
12136 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12137 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12138 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12139 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12140
12141 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12142
12143 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12144 fill_gregset): Call gdbarch_tdep() just once, assign result to
12145 variable and use that, instead of calling the function several
12146 times.
12147
12148 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12149
12150 * configure.host: Accept sparcv9 as alias for sparc64.
12151 * configure.tgt: Likewise.
12152
12153 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12154
12155 * solib-aix5.c (build_so_list_from_mapfile)
12156 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12157 arguments is not reversed.
12158 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12159 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12160
12161 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12162
12163 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12164 modified version of obsolete sh_fetch_pseudo_register.
12165 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12166 (sh4_register_read): New function.
12167 (sh_pseudo_register_write): New function. Renamed and modified
12168 version of obsolete sh_store_pseudo_register.
12169 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12170 (sh4_register_write): New function.
12171 (sh_gdbarch_init): Remove setting of gdbarch function
12172 fetch_pseudo_register and store_pseudo_register. Remove setting of
12173 register_convert_to_raw, register_convert_to_virtual,
12174 register_convertible.
12175 (sh_sh4_register_convertible): Delete. No longer needed. All is
12176 taken care by architecture specific functions
12177 register_read/register_write.
12178 (sh_sh4_register_convert_to_virtual): Make static.
12179 (sh_sh4_register_convert_to_raw): Ditto.
12180
12181 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12182
12183 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12184 (floatformat_is_nan, floatformat_mantissa): Ditto.
12185
12186 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12187 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12188 builtin_type_ieee_double_little,
12189 builtin_type_ieee_double_littlebyte_bigword,
12190 builtin_type_m68881_ext, builtin_type_i960_ext,
12191 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12192 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12193 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12194 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12195
12196 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12197
12198 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12199 parameter. Set frameless flag if it exists and depended of
12200 whether the scanned function is frameless or not.
12201 (xstormy16_skip_prologue): If function is frameless, return
12202 result of xstormy16_scan_prologue().
12203 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12204 call.
12205
12206 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12207
12208 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12209 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12210 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12211 sh_sh4_register_byte, sh_sh4_register_raw_size,
12212 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12213 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12214 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12215 sh_store_pseudo_register, sh_do_pseudo_register): Call
12216 gdbarch_tdep() just once, assign result to variable and use that,
12217 instead of calling the function several times.
12218
12219 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12220
12221 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12222 macros instead of LAST_FPU_CTRL_REGNUM.
12223 (store_register): Likewise.
12224
12225 2002-01-21 Jim Blandy <jimb@redhat.com>
12226
12227 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12228 is up-to-date before running the program, not just when a program
12229 exits.
12230
12231 2002-01-21 Fred Fish <fnf@redhat.com>
12232
12233 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12234 when we have found all instructions we are looking for.
12235
12236 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12237
12238 * arm-tdep.c (arm_register_name): New function.
12239 (arm_registers_names): Make static.
12240 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12241 (arm_register_name): Declare.
12242 (REGISTER_NAME): Use it.
12243
12244 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12245 Kevin Buettner <kevinb@redhat.com>
12246
12247 Convert arm targets to new FRAME interface.
12248 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12249 (arm_frame_find_save_regs): Delete.
12250 (arm_frame_init_saved_regs): New.
12251 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12252 Allocate extra_info as required. Convert all uses of fsr.regs
12253 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12254 to use extra_info.
12255 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12256 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12257 (check_prologue_cache, save_prologue_cache): Likewise.
12258 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12259 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12260 (FRAME_FIND_SAVED_REGS): Delete.
12261 (arm_frame_find_saved_regs): Delete prototype.
12262 (arm_frame_init_saved_regs): New prototype.
12263 (FRAME_INIT_SAVED_REGS): Define.
12264
12265 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12266
12267 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12268
12269 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12270
12271 From Jeff Law <law@redhat.com>:
12272 * infttrace.c: Include <sys/pstat.h>.
12273 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12274 exec file if the ttrace equivalent fails.
12275
12276 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12277
12278 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12279 (closeLogFile): Ditto.
12280
12281 2002-01-20 Michael Chastain <mec@shout.net>
12282
12283 * top.c (print_gdb_version): Bump copyright year to 2002.
12284
12285 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12286
12287 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12288 Zannoni and Eli Zaretskii.
12289
12290 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12291
12292 * buildsym.c: Update copyright years.
12293 * c-typeprint.c: Likewise.
12294 * dwarf2read.c: Likewise.
12295 * f-typeprint.c: Likewise.
12296 * gdbtypes.c: Likewise.
12297 * gdbtypes.h: Likewise.
12298 * hp-symtab-read.c: Likewise.
12299 * hpread.c: Likewise.
12300 * mdebugread.c: Likewise.
12301 * p-typeprint.c: Likewise.
12302
12303 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12304
12305 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12306 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12307 byte-order selectable.
12308 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12309 * arch-utils.c: Ditto.
12310 (set_endian): Ditto.
12311 (set_endian_from_file): Ditto.
12312 * gdbserver/low-sim.c (create_inferior): Ditto.
12313 * gdbarch.sh: Ditto.
12314 * gdbarch.h: Re-generate.
12315 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12316 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12317 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12318 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12319 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12320 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12321 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12322 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12323 macro definition.
12324 * config/mips/tm-wince.h: Remove #undef of macro
12325 TARGET_BYTE_ORDER_SELECTABLE.
12326 * config/sh/tm-wince.h: Ditto.
12327
12328 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12329
12330 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12331 member function fields. Add accessor macro
12332 TYPE_FN_FIELD_ARTIFICIAL.
12333 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12334 * c-typeprint.c (c_type_print_base): Skip artificial member
12335 functions.
12336
12337 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12338
12339 * f-typeprint.c: Delete unused function f_type_print_args.
12340 * p-typeprint.c: Delete unused function pascal_type_print_args.
12341
12342 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12343
12344 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12345 comment. Add ``artificial'' to ``union field_location''.
12346
12347 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12348
12349 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12350 * mdebugread.c (parse_symbol): Likewise.
12351 * stabsread.c (define_symbol): Likewise.
12352 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12353 initializing TYPE_FIELD_BITPOS to n (obsolete).
12354 (hpread_doc_function_type): Likewise.
12355 * hpread.c (hpread_function_type): Likewise.
12356
12357 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12358
12359 * configure.in (host_makefile_frag): Only require a host makefile
12360 fragment when a native build.
12361 * configure: Re-generate.
12362
12363 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12364
12365 * doublest.h (floatformat_from_type): Declare.
12366 * doublest.c (floatformat_from_type): New function.
12367 (convert_typed_floating): Use.
12368
12369 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12370 call to function floatformat_from_type.
12371
12372 * gdbarch.sh (IEEE_FLOAT): Delete.
12373 * gdbarch.h, gdbarch.c: Re-generate.
12374 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12375 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12376 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12377 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12378 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12379 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12380 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12381 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12382 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12383 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12384 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12385 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12386
12387 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12388 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12389 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12390 * sh-tdep.c (sh_gdbarch_init): Ditto.
12391 * mips-tdep.c (mips_gdbarch_init): Ditto.
12392 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12393 * cris-tdep.c (cris_gdbarch_init): Ditto.
12394
12395 2002-01-20 Jiri Smid <smid@suse.cz>
12396
12397 * configure.host, configure.tgt: Support x86-64.
12398 * NEWS: Note new target x86-64.
12399
12400 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12401 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12402 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12403 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12404 x86-64-linux-nat.o): Fix dependencies.
12405
12406 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12407
12408 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12409 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12410 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12411 * config/sparc/xm-sun4os4.h: Delete file.
12412 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12413
12414 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12415
12416 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12417 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12418 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12419 * config/i386/i386lynx.mh (XM_FILE): Delete.
12420 * config/rs6000/xm-rs6000ly.h: Delete file.
12421 * config/sparc/xm-sparclynx.h: Delete file.
12422 * config/m68k/xm-m68klynx.h: Delete file.
12423 * config/i386/xm-i386lynx.h: Delete file.
12424 * config/xm-lynx.h: Delete file.
12425 * config/djgpp/fnchange.lst: Update.
12426
12427 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12428
12429 * alpha-tdep.c (alpha_register_byte): New function.
12430 (alpha_register_raw_size): Ditto.
12431 (alpha_register_virtual_size): Ditto.
12432 (alpha_skip_prologue_internal): Renamed from
12433 alpha_skip_prologue.
12434 (alpha_skip_prologue): New version that calls
12435 alpha_skip_prologue_internal.
12436 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12437 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12438 second argument from alpha_skip_prologue.
12439 (REGISTER_BYTE): Use alpha_register_byte.
12440 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12441 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12442 (FRAMELESS_FUNCTION_INVOCATION): Use
12443 generic_frameless_function_invocation_not.
12444 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12445 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12446
12447 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12448
12449 * config/mips/xm-news-mips.h: Delete file.
12450 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12451
12452 * config/m88k/xm-m88k.h: Delete file.
12453 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12454 * config/m88k/xm-delta88v4.h: Ditto.
12455 * config/m88k/xm-delta88.h: Ditto.
12456
12457 * config/alpha/xm-fbsd.h: Delete file.
12458 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12459
12460 * config/sparc/xm-sparc.h: Delete file.
12461 * Makefile.in (xm-sun4os4.h): Delete dependency.
12462 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12463 * config/sparc/xm-sun4os4.h: Ditto.
12464 * config/sparc/xm-linux.h: Ditto.
12465
12466 * config/i386/xm-windows.h: Delete file.
12467
12468 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12469
12470 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12471 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12472
12473 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12474
12475 * alpha-tdep.c (alpha_call_dummy_words): New.
12476 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12477 (CALL_DUMMY_P): Define.
12478 (CALL_DUMMY_WORDS): Define.
12479 (SIZEOF_CALL_DUMMY_WORDS): Define.
12480
12481 2002-01-19 Per Bothner <per@bothner.com>
12482
12483 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12484 isn't NULL, which can happen with some gcj-3.x-produced code.
12485
12486 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12487
12488 * alpha-tdep.c (alpha_register_virtual_type): New function.
12489 (alpha_init_frame_pc_first): Ditto.
12490 (alpha_fix_call_dummy): Ditto.
12491 (alpha_store_struct_return): Ditto.
12492 (alpha_extract_struct_value_address): Ditto.
12493 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12494 alpha_register_virtual_type.
12495 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12496 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12497 alpha_extract_struct_value_address.
12498 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12499 (INIT_FRAME_PC): Use init_frame_pc_noop.
12500 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12501
12502 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12503
12504 * i386gnu-nat.c: Include "i386-tdep.h".
12505 (fetch_fpregs): Simplify code dealing with uninitialized floating
12506 point states such that it doesn't require FP7_REGNUM.
12507
12508 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12509
12510 * alpha-tdep.c (frame_extra_info): New.
12511 (alpha_find_saved_regs): Make static. Use
12512 frame->extra_info.
12513 (alpha_frame_init_saved_regs): New function.
12514 (alpha_frame_saved_pc): Use frame->extra_info.
12515 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12516 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12517 (init_extra_frame_info): Rename to...
12518 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12519 (alpha_print_extra_frame_info): New function.
12520 (alpha_frame_locals_address): Ditto.
12521 (alpha_frame_args_address): Ditto.
12522 (alpha_pop_frame): Use frame->extra_info.
12523 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12524 alpha_frame_args_address.
12525 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12526 (alpha_find_saved_regs): Remove prototype.
12527 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12528 (EXTRA_FRAME_INFO): Remove.
12529 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12530 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12531
12532 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12533
12534 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12535 (alpha_cannot_fetch_register): Ditto.
12536 (alpha_cannot_store_register): Ditto.
12537 (alpha_register_convertible): Ditto.
12538 (alpha_use_struct_convention): Ditto.
12539 * config/alpha/tm-alpha.h: Update copyright years.
12540 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12541 (INNER_THAN): Use core_addr_lessthan.
12542 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12543 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12544 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12545 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12546 (FRAME_CHAIN): Remove unnecessary cast.
12547
12548 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12549
12550 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12551 obsolete.
12552
12553 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12554
12555 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12556 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12557 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12558 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12559 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12560 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12561 * x86-64-linux-nat.c: Ditto.
12562
12563 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12564
12565 * alpha-tdep.c (alpha_register_name): New function.
12566 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12567 (REGISTER_NAME): Define.
12568
12569 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12570
12571 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12572
12573 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12574
12575 * alpha-tdep.c: Update copyright years.
12576 (alpha_next_pc): New function.
12577 (alpha_software_single_step): Ditto.
12578 * config/alpha/tm-alpha.h: Add prototype for
12579 alpha_software_single_step.
12580
12581 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12582
12583 * alphabsd-nat.c: Update copyright years.
12584 (fill_gregset): Use regcache_collect.
12585 (fill_fpregset): Likewise.
12586 (fetch_inferior_registers): Only fetch integer registers
12587 if requested to do so.
12588 (store_inferior_registers): Only store integer registers
12589 if requested to do so.
12590
12591 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12592
12593 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12594 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12595 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12596 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12597 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12598 * config/arm/linux.mh (XDEPFILES): Delete.
12599 * config/arm/nbsd.mh (XDEPFILES): Delete.
12600 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12601 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12602 * config/i386/i386m3.mh (XDEPFILES): Delete.
12603 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12604 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12605 * config/i386/fbsd.mh (XDEPFILES): Delete.
12606 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12607 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12608 * config/i386/i386v4.mh (XDEPFILES): Delete.
12609 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12610 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12611 * config/i386/i386aix.mh (XDEPFILES): Delete.
12612 * config/i386/go32.mh (XDEPFILES): Delete.
12613 * config/i386/cygwin.mh (XDEPFILES): Delete.
12614 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12615 * config/i386/i386mach.mh (XDEPFILES): Delete.
12616 * config/i386/i386v32.mh (XDEPFILES): Delete.
12617 * config/i386/linux.mh (XDEPFILES): Delete.
12618 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12619 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12620 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12621 * config/i386/i386sco.mh (XDEPFILES): Delete.
12622 * config/i386/i386v.mh (XDEPFILES): Delete.
12623 * config/i386/nbsd.mh (XDEPFILES): Delete.
12624 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12625 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12626 * config/i386/symmetry.mh (XDEPFILES): Delete.
12627 * config/i386/obsd.mh (XDEPFILES): Delete.
12628 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12629 * config/ia64/linux.mh (XDEPFILES): Delete.
12630 * config/ia64/aix.mh (XDEPFILES): Delete.
12631 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12632 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12633 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12634 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12635 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12636 * config/m68k/linux.mh (XDEPFILES): Delete.
12637 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12638 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12639 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12640 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12641 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12642 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12643 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12644 * config/m88k/delta88.mh (XDEPFILES): Delete.
12645 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12646 * config/m88k/m88k.mh (XDEPFILES): Delete.
12647 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12648 * config/mips/linux.mh (XDEPFILES): Delete.
12649 * config/mips/irix6.mh (XDEPFILES): Delete.
12650 * config/mips/irix5.mh (XDEPFILES): Delete.
12651 * config/mips/irix4.mh (XDEPFILES): Delete.
12652 * config/mips/irix3.mh (XDEPFILES): Delete.
12653 * config/mips/decstation.mh (XDEPFILES): Delete.
12654 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12655 (NATDEPFILES): Move core-aout.o to here.
12656 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12657 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12658 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12659 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12660 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12661 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12662 * config/pa/hpux11.mh (XDEPFILES): Delete.
12663 * config/powerpc/aix.mh (XDEPFILES): Delete.
12664 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12665 * config/powerpc/linux.mh (XDEPFILES): Delete.
12666 * config/romp/rtbsd.mh: Rename XDEPFILES.
12667 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12668 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12669 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12670 * config/s390/s390.mh (XDEPFILES): Delete.
12671 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12672 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12673 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12674 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12675 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12676 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12677 * config/sparc/linux.mh (XDEPFILES): Delete.
12678 * config/vax/vaxult.mh (XDEPFILES): Delete.
12679 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12680 * Makefile.in (DEPFILES): Remove XDEPFILES.
12681
12682 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12683
12684 * utils.c (internal_verror): Fix comments, default is yes not no.
12685 Update queries to match. Default to quit and dump core.
12686
12687 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12688
12689 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12690 copyright.
12691 * defs.h, event-top.c, gdbcmd.h: Ditto.
12692 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12693 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12694 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12695 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12696 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12697 * mi/mi-main.c:Ditto.
12698
12699 * stack.c, symfile.c: Update copyright.
12700
12701 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12702
12703 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12704 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12705 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12706 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12707
12708 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12709
12710 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12711 * gdbserver/low-lynx.c (myattach): Likewise.
12712 * gdbserver/low-nbsd.c (myattach): Likewise.
12713 * gdbserver/low-sim.c (myattach): Likewise.
12714 * gdbserver/low-sparc.c (myattach): Likewise.
12715 * gdbserver/low-sun3.c (myattach): Likewise.
12716
12717 * gdbserver/low-linux.c (myattach): New function.
12718
12719 * gdbserver/server.c (attach_inferior): New function.
12720 (main): Handle "--attach".
12721
12722 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12723
12724 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12725 maintainer.
12726
12727 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12728
12729 * c-typeprint.c (is_type_conversion_operator): Add additional
12730 check for non-conversion operators.
12731
12732 2002-01-15 Michael Snyder <msnyder@redhat.com>
12733
12734 * linux-proc.c: Add "info proc" command, a la procfs.c.
12735 (read_mapping): New function, abstract and re-use code.
12736 (linux_find_memory_regions): Use new func read_mapping.
12737 (linux_info_proc_cmd): New function, implement "info proc".
12738 (_initialize_linux_proc): Add new command "info proc".
12739
12740 2002-01-15 Michael Snyder <msnyder@redhat.com>
12741
12742 * symfile.c (generic_load): Use bfd_map_over_sections method
12743 instead of manipulating bfd structure members directly.
12744 (add_section_size_callback): New function, bfd sections callback
12745 used by generic_load.
12746 (load_sections_callback): New function, bfd sections callback
12747 used by generic_load.
12748
12749 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12750
12751 [Based on work by Jim Blandy]
12752 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12753 (builtin_type_vec128): Export.
12754 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12755 types.
12756 (builtin_type_vec128): New builtin type for 128 bit vector
12757 registers.
12758 (build_gdbtypes): Initialize builtin_type_v16qi and
12759 builtin_type_v8hi. Create the vec128 register builtin type
12760 structure.
12761 (build_builtin_type_vec128): New function.
12762 (_initialize_gdbtypes): Register builtin_type_v16qi and
12763 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12764 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12765 AltiVec register to new builtin type.
12766
12767 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12768
12769 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12770 to make_cv_type.
12771
12772 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12773
12774 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12775 CLEAN_UP_REGISTER_VALUE.
12776 * regcache.c (supply_register): Update only call.
12777
12778 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12779
12780 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12781 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12782 a29k-*-vxworks* targets as obsolete.
12783
12784 2002-01-14 Michael Snyder <msnyder@redhat.com>
12785
12786 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12787 until we can resolve portability issues.
12788 * gregset.h: Remove references to fpxregs.
12789 * gcore.c (gcore_command): Initialize note_sec to NULL.
12790
12791 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12792
12793 * signals.c (target_signal_to_name): Rewrite. Only use
12794 signals[].name when in bounds and non-NULL.
12795
12796 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12797
12798 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12799 * signals.c (target_signal_to_name): Verify that SIG is within the
12800 bounds of the signals array.
12801
12802 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12803
12804 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12805
12806 2002-01-13 Keith Seitz <keiths@redhat.com>
12807
12808 * stack.c (print_frame_info_base): Print the frame's pc
12809 only if when print_frame_info_listing_hook is not defined.
12810
12811 2002-01-13 Keith Seitz <keiths@redhat.com>
12812
12813 * varobj.c (varobj_set_value): Make sure that there were no
12814 errors evaluating the object before attempting to set its
12815 value.
12816 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12817 so this offset adjustment is no longer necessary.
12818 (create_child): Don't set the error flag if the child is
12819 a CPLUS_FAKE_CHILD.
12820 (value_of_child): If value_fetch_lazy fails, return NULL
12821 so that callers will be notified that an error occurred.
12822 (c_value_of_variable): Delay check of variable's validity
12823 until later. We actually want all structs and unions to have
12824 the value "{...}".
12825 Do not return "???" for variables which could not be evaluated.
12826 This error condition must be returned to the caller so that it
12827 can get the error condition from gdb.
12828 (cplus_name_of_child): Adjust index for vptr before figuring
12829 out the name of the child.
12830 (cplus_value_of_child): If a child's (real) parent is not valid,
12831 don't even bother trying to give a value for it. Just return
12832 an error. Change all instances in this function.
12833 (cplus_type_of_child): If our parent is one of the "fake"
12834 parents, we need to get at the type of the real parent, and
12835 derive the child's true type using this information.
12836
12837 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12838
12839 From 2002-01-09 John Marshall <johnm@falch.net>:
12840 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12841 sources.redhat.com, and tweak some related URLs which had
12842 suffered from linkrot.
12843
12844 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12845
12846 From Jeff law:
12847 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12848 structures passed in registers.
12849
12850 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12851
12852 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12853 white space which prevented compilation. Reported by DSK
12854 <dsk@student.unsw.edu.au>.
12855
12856 2002-01-11 Michael Snyder <msnyder@redhat.com>
12857
12858 * symfile.c (build_section_addr_info_from_section_tab):
12859 Use bfd access method instead of manipulating bfd directly.
12860 (syms_from_objfile): Ditto.
12861 (simple_overlay_update_1): Ditto.
12862 (simple_overlay_update): Ditto.
12863 (generic_load): Ditto.
12864 (overlay_unmapped_address): FIXME comment, bfd access methods.
12865 (sections_overlap): FIXME comment, bfd access methods.
12866 (pc_in_mapped_range): FIXME comment, bfd access methods.
12867 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12868 (section_is_mapped): FIXME comment, bfd access methods.
12869 (section_is_overlay): FIXME comment, bfd access methods.
12870
12871 * symfile.c (generic_load): Whitespace and long line cleanups.
12872 Remove duplicate variable, change several local variables to
12873 more appropriate data types.
12874 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12875
12876 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12877
12878 From Peter Schauer:
12879 * language.c (longest_local_hex_string_custom): Use phex_nz to
12880 convert NUM to a hex string.
12881
12882 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12883
12884 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12885 the function.
12886 Update Copyright year.
12887
12888 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12889
12890 * language.c (longest_raw_hex_string): Delete unused function.
12891
12892 2002-01-11 Petr Sorfa <petrs@caldera.com>
12893
12894 * MAINTAINERS (write-after-approval): Add myself.
12895 * dwarf2read.c (read_tag_string_type): Handling of
12896 DW_AT_byte_size.
12897 (read_tag_string_type): FORTRAN fix to prevent propagation of
12898 first string size.
12899 (set_cu_language): Handling of DW_LANG_Fortran95
12900
12901 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12902
12903 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12904 GETPID(inferior_ptid).
12905 (store_inferior_registers): Likewise.
12906
12907 2002-01-10 Jason Merrill <jason@redhat.com>
12908
12909 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12910 Fix DW_OP_minus.
12911
12912 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12913
12914 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12915 and bfd/elf32-sh-nbsd.c.
12916
12917 2002-01-10 Michael Snyder <msnyder@redhat.com>
12918
12919 * NEWS: Mention --pid and corefile/proc-id behavior change.
12920
12921 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12922 * gcore.c: Include cli/cli-decode.h instead of command.h.
12923
12924 * main.c (captured_main): Add new command line option "--pid".
12925 If the second command line argument (following the symbol-file)
12926 begins with a digit, try to attach to it before trying to open
12927 it as a corefile.
12928 (print_gdb_help): Document the "--pid" argument.
12929
12930 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12931
12932 * completer.c (command_completer): New function.
12933
12934 * completer.h <command_completer>: Add prototype.
12935
12936 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12937 completer for the "help" command.
12938
12939 2002-01-09 Jason Merrill <jason@redhat.com>
12940
12941 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12942
12943 2002-01-09 Michael Snyder <msnyder@redhat.com>
12944
12945 * i386-linux-nat.c (fill_fpxregset): Make global.
12946 (store_fpxregset): Ditto.
12947
12948 * gregset.h (gdb_fpxregset_t): Define.
12949 (supply_fpxregset): Prototype.
12950 (fill_fpxregset): Prototype.
12951
12952 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12953
12954 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12955
12956 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12957 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12958 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12959
12960 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12961
12962 * MAINTAINERS: Update target maintainer rules so that any
12963 Maintainer can approve a tested patch for a maintenance-only
12964 target.
12965
12966 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12967
12968 * MAINTAINERS (write-after-approval): Add myself.
12969
12970 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12971 IN_SIGTRAMP.
12972
12973 2002-01-08 Michael Snyder <msnyder@redhat.com>
12974
12975 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12976 real name of the executable, rather than the /proc name.
12977
12978 2002-01-03 Michael Snyder <msnyder@redhat.com>
12979
12980 Implement a "generate-core-file" command in gdb, save target state.
12981 * gcore.c: New file. Implement new command 'generate-core-file'.
12982 Save a corefile image of the current state of the inferior.
12983 * linux-proc.c: Add linux-specific code for saving corefiles.
12984 * target.h (struct target_ops): Add new target vectors for saving
12985 corefiles; to_find_memory_regions and to_make_corefile_notes.
12986 (target_find_memory_regions): New macro.
12987 (target_make_corefile_notes): New macro.
12988 * target.c (update_current_target): Inherit new target methods.
12989 (dummy_find_memory_regions): New place-holder method.
12990 (dummy_make_corefile_notes): New place-holder method.
12991 (init_dummy_target): Initialize new dummy target vectors.
12992 * exec.c (exec_set_find_memory_regions): New function.
12993 Allow the exec_ops vector for memory regions to be taken over.
12994 (exec_make_note_section): New function, target vector method.
12995 * defs.h (exec_set_find_memory_regions): Export prototype.
12996 * procfs.c (proc_find_memory_regions): New function, corefile method.
12997 (procfs_make_note_section): New function, corefile method.
12998 (init_procfs_ops): Set new target vector pointers.
12999 (find_memory_regions_callback): New function.
13000 (procfs_do_thread_registers): New function.
13001 (procfs_corefile_thread_callback): New function.
13002 * sol-thread.c (sol_find_memory_regions): New function.
13003 (sol_make_note_section): New function.
13004 (init_sol_thread_ops): Initialize new target vectors.
13005 * inftarg.c (inftarg_set_find_memory_regions): New function.
13006 Allow to_find_memory_regions vector to be taken over.
13007 (inftarg_set_make_corefile_notes): New function.
13008 Allow to_make_corefile_notes vector to be taken over.
13009 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13010 interface layer if not target_has_execution (may be a corefile).
13011 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13012 * config/sparc/sun4sol2.mh: Ditto.
13013 * config/alpha/alpha-linux.mh: Ditto.
13014 * config/arm/linux.mh: Ditto.
13015 * config/i386/x86-64linux.mh: Ditto.
13016 * config/ia64/linux.mh: Ditto.
13017 * config/m68k/linux.mh: Ditto.
13018 * config/mips/linux.mh: Ditto.
13019 * config/powerpc/linux.mh: Ditto.
13020 * config/sparc/linux.mh: Ditto.
13021
13022 2002-01-07 Michael Snyder <msnyder@redhat.com>
13023
13024 * arm-linux-nat.c: Remove references to regcache.c internal data
13025 (registers[] and register_valid[]).
13026
13027 2002-01-07 Michael Snyder <msnyder@redhat.com>
13028
13029 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13030 so that attaching to a pid will automatically read the process's
13031 symbol file and shlibs.
13032 * Makefile.in: Add rule for linux-proc.o.
13033 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13034 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13035 * config/arm/linux.mh: Ditto.
13036 * config/i386/linux.mh: Ditto.
13037 * config/i386/x86-64linux.mh: Ditto.
13038 * config/ia64/linux.mh: Ditto.
13039 * config/m68k/linux.mh: Ditto.
13040 * config/mips/linux.mh: Ditto.
13041 * config/powerpc/linux.mh: Ditto.
13042 * config/sparc/linux.mh: Ditto.
13043
13044 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13045
13046 * win32-nat.c: Add i386-tdep.h dependency.
13047
13048 2002-01-07 Michael Snyder <msnyder@redhat.com>
13049
13050 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13051 instead of bfd_get_arch_size. Don't bail out just because
13052 there's no exec_bfd.
13053
13054 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13055 * p-valprint.c (pascal_object_print_value): Ditto.
13056 * somread.c (som_symtab_read): Ditto.
13057 * symfile.c (simple_free_overlay_region_table): Ditto.
13058 * valops.c (value_assign): Ditto.
13059
13060 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13061 use tilde_expand and strerror for opening save-tracepoints file.
13062
13063 * thread-db.c (thread_db_new_objfile): Indendation fix.
13064
13065 * infptrace.c (GDB_MAX_ALLOCA): New define.
13066 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13067 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13068 can be overridden with whatever value is appropriate to the host).
13069 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13070 alloca to allocate potentially large buffer.
13071 * rs6000-nat.c (child_xfer_memory): Ditto.
13072 * symm-nat.c (child_xfer_memory): Ditto.
13073 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13074
13075 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13076
13077 From Nick Clifton <nickc@redhat.com>
13078 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13079
13080 2002-01-07 Michael Snyder <msnyder@redhat.com>
13081
13082 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13083 Don't use exec_bfd if it's NULL.
13084
13085 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13086
13087 * valops.c (value_arg_coerce): Fix formatting.
13088
13089 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13090
13091 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13092 * gnu-nat.c: Ditto.
13093
13094 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13095
13096 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13097 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13098 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13099 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13100 z8k-coff have not been multi-arched. Update z8k-coff build
13101 status.
13102
13103 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13104
13105 * MAINTAINERS: Mark a29k target as obsolete.
13106 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13107 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13108 comments.
13109 * NEWS: Note that a29k targets are obsolete.
13110 * a29k-tdep.c: Mark as obsolete.
13111 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13112 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13113 a29k-*-vxworks* targets as obsolete.
13114 * remote-adapt.c: Obsolete.
13115 * remote-eb.c: Obsolete.
13116 * remote-mm.c: Obsolete.
13117 * remote-udi.c: Obsolete.
13118 * config/a29k/a29k-udi.mt: Obsolete.
13119 * config/a29k/a29k.mt: Obsolete.
13120 * config/a29k/tm-a29k.h: Obsolete.
13121 * config/a29k/tm-vx29k.h: Obsolete.
13122 * config/a29k/vx29k.mt: Obsolete.
13123
13124 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13125
13126 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13127 with BFD_ENDIAN_BIG.
13128
13129 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13130
13131 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13132 * configure, config.in: Re-generate.
13133 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13134 * defs.h: Do not include <endian.h>.
13135
13136 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13137
13138 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13139 * config.in: Regenerate.
13140 * configure.in: Update copyright years.
13141 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13142 * configure: Regenerate.
13143 * i386bsd-nat.c: Update copyright years.
13144 (fill_gregset): Use regcache_collect.
13145 (fetch_inferior_registers): Only fetch integer registers
13146 if requested to do so. Add support for XMM registers
13147 using PT_GETXMMREGS.
13148 (store_inferior_registers): Only store integer registers
13149 if requested to do so. Add support for XMM registers
13150 using PT_SETXMMREGS.
13151 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13152 (store_inferior_registers): Remove.
13153 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13154 (fetch_elfcore_registers): New function.
13155 (i386nbsd_elfcore_fns): New.
13156 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13157 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13158 i386bsd-nat.o.
13159 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13160 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13161 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13162 * config/i386/tm-nbsd.h: Update copyright years.
13163 (HAVE_SSE_REGS): Define.
13164 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13165 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13166 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13167 (SIGCONTEXT_PC_OFFSET): Remove.
13168 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13169
13170 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13171
13172 * configure.tgt: Remove powerpc-*-macos* target.
13173 * config/m68k/xm-mpw.h: Delete file.
13174 * config/xm-mpw.h: Delete file.
13175 * ser-mac.c: Delete file.
13176 * mpw-make.sed: Delete file.
13177 * mpw-config.in: Delete file.
13178 * mac-xdep.c: Delete file.
13179 * mac-gdb.r: Delete file.
13180 * mac-defs.h: Delete file.
13181 * mac-nat.c: Delete file.
13182 * config/powerpc/macos.mh: Delete file.
13183 * config/powerpc/macos.mt: Delete file.
13184 * config/powerpc/nm-macos.h: Delete file.
13185 * config/powerpc/tm-macos.h: Delete file.
13186 * source.c (openp, open_source_file): Remove obsolete code.
13187 * top.c (gdb_readline): Ditto.
13188 * utils.c (query): Ditto.
13189 * event-top.c (display_gdb_prompt): Ditto.
13190 * Makefile.in (ser-mac.o): Delete obsolete target.
13191 * NEWS: Update.
13192
13193 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13194
13195 * defs.h (BIG_ENDIAN): Delete macro definition.
13196 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13197 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13198 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13199 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13200 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13201 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13202 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13203 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13204 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13205 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13206 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13207 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13208 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13209 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13210 * gdbarch.c: Re-generate.
13211
13212 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13213
13214 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13215 for core files.
13216
13217 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13218
13219 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13220
13221 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13222
13223 * value.h (value_ptr): Delete typedef.
13224
13225 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13226
13227 * i386nbsd-nat.c: Update copyright years.
13228 Include i386-tdep.h.
13229
13230 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13231
13232 * stabsread.c: Update copyright years.
13233
13234 From Debashis Mahata <debashis.mahata@wipro.com>:
13235 (read_struct_fields): Deal with Sun C compiler erroneous stab
13236 output for structs and unions.
13237 Fix PR gdb/269.
13238
13239 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13240
13241 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13242 prototype.
13243
13244 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13245
13246 * cp-abi.c: Fix whitespace.
13247 (baseclass_offset): New wrapper function.
13248 * cp-abi.h (baseclass_offset): Add prototype.
13249 (struct cp_abi_ops): Add baseclass_offset pointer.
13250
13251 * valops.c (vb_match): Move to...
13252 * gnu-v2-abi.c (vb_match): here.
13253 * valops.c (baseclass_offset): Move to...
13254 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13255
13256 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13257
13258 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13259 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13260 * hpacc-abi.c (init_hpacc_ops): Likewise.
13261
13262 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13263
13264 * valops.c (find_overload_match): Accept obj as a
13265 reference parameter. Update it before returning.
13266 * value.h (find_overload_match): Update prototype.
13267 * eval.c (evaluate_subexp_standard): Pass object to
13268 find_overload_match by reference.
13269
13270 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13271
13272 * valarith.c: Replace value_ptr with struct value pointer. Remove
13273 register attribute from value declarations.
13274 * valops.c: Ditto.
13275 * value.h: Ditto.
13276 * scm-lang.c (scm_lookup_name): Ditto.
13277
13278 2002-01-03 Michael Snyder <msnyder@redhat.com>
13279
13280 Abstract the functionality of iterating over mapped memory
13281 regions into a general purpose iterator function.
13282 * procfs.c (iterate_over_mappings): New function, general purpose
13283 iterator for memory sections.
13284 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13285 (solib_mappings_callback): New function, callback for above.
13286 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13287 (info_mappings_callback): New function, callback for above.
13288
13289 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13290
13291 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13292
13293 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13294 * i386-tdep.c: Include "elf-bfd.h".
13295 (process_note_abi_tag_sections): New function.
13296 (i386_gdbarch_init): Add code to recognize various OS/ABI
13297 combinations.
13298
13299 * maint.c (_initialize_maint_cmds): Add missing \ in
13300 string-literal.
13301
13302 For older changes see ChangeLog-2001
13303 \f
13304 Local Variables:
13305 mode: change-log
13306 left-margin: 8
13307 fill-column: 74
13308 version-control: never
13309 End:
This page took 0.298759 seconds and 5 git commands to generate.