2002-11-19 Klee Dienes <kdienes@apple.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-19 Klee Dienes <kdienes@apple.com>
2 Adam Fedor <fedor@gnu.org>
3
4 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
5 the ability to explicitly specify the quote characters and word
6 break characters; if NULL is specified for either, use the old
7 behavior of using the characters used by the completer.
8 (skip_chars): New function. Convenience wrapper around
9 skip_quoted_chars to provide the original skip_chars behavior.
10 * completer.h (skip_quoted_chars): Add prototype.
11
12 2002-11-19 Andrew Cagney <ac131313@redhat.com>
13
14 Problems reported by Paul Eggert.
15 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
16
17 2002-11-19 Andreas Schwab <schwab@suse.de>
18
19 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
20 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
21 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
22 (m68k_linux_frame_saved_pc): Move to ...
23 * m68klinux-tdep.c: ... here. New file.
24 * Makefile.in (m68klinux-tdep.o): Add dependencies.
25 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
26
27 2002-11-19 Adam Fedor <fedor@gnu.org>
28
29 * objc-exp.y: Revert to old skip_quoted usage.
30
31 2002-11-19 Adam Fedor <fedor@gnu.org>
32
33 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
34 (objc_lang_h): Define.
35 (YYFILES): Add objc-exp.tab.c.
36 (local-maintainer-clean): Remove objc-exp.tab.c.
37 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
38
39 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
40
41 * p-exp.y (typecast rule): Add automatic dereference of
42 pascal classes if needed.
43 (THIS): Set current_type.
44 Automatically dereference pascal classes.
45 (typebase rule): Add ^typebase recognition.
46
47 2002-11-18 Adam Fedor <fedor@gnu.org>
48
49 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
50 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
51 (op_name): Handle OP_OBJC_SELF.
52 * Makefile.in (expprint.o): Add additional depends.
53
54 2002-11-18 Adam Fedor <fedor@gnu.org>
55
56 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
57 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
58 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
59 * objc-exp.y: Likewise.
60
61 2002-11-18 Adam Fedor <fedor@gnu.org>
62
63 * gdb/parser-defs.h: (struct objc_class_str): New structure
64 for parsing ObjC classes.
65
66 >>>>>>> 1.3477
67 2002-11-18 Andrew Cagney <ac131313@redhat.com>
68
69 * stack.c (frame_relative_level): Copy function from here ...
70 * frame.c (frame_relative_level): ...to here.
71
72 2002-11-18 Andrew Cagney <ac131313@redhat.com>
73
74 * frame.h (enum frame_type): Define.
75 (get_frame_type): Declare.
76 (struct frame_info): Add field `type'. Delete field
77 signal_handler_caller.
78 (deprecated_set_frame_signal_handler_caller): Declare.
79 * frame.c (get_frame_type): New function.
80 (deprecated_set_frame_type): New function.
81 (create_new_frame): Set the frame's type.
82 (get_prev_frame): Similar.
83 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
84 * s390-tdep.c: Ditto.
85 * m68klinux-nat.c: Ditto.
86 * ns32k-tdep.c: Ditto.
87 * x86-64-linux-tdep.c: Ditto.
88 * vax-tdep.c: Ditto.
89 * rs6000-tdep.c: Ditto.
90 * ppc-linux-tdep.c: Ditto.
91 * i386-interix-tdep.c: Ditto.
92 * mips-tdep.c: Ditto.
93 * m68k-tdep.c: Ditto.
94 * hppa-tdep.c: Ditto.
95 * ia64-tdep.c: Ditto.
96 * cris-tdep.c: Ditto.
97 * arm-tdep.c: Ditto.
98 * alpha-tdep.c: Ditto.
99 * i386-tdep.c: Ditto.
100 * stack.c: Ditto.
101 * ada-lang.c: Ditto.
102 * blockframe.c: Update.
103 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
104 deprecated_set_frame_type instead of signal_handler_caller.
105 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
106 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
107 * breakpoint.h: Delete FIXME suggesting get_frame_type.
108
109 2002-11-18 Klee Dienes <kdienes@apple.com>
110
111 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
112
113 2002-11-18 Klee Dienes <kdienes@apple.com>
114
115 * buildsym.c (pop_context): Add comment.
116
117 2002-11-18 Klee Dienes <kdienes@apple.com>
118
119 * buildsym.h (pop_context): Convert to function, defined in
120 buildsym.c.
121 * buildsym.c: Include gdb_assert.h.
122 (pop_context): Implement as C function. Add check for stack
123 underflow.
124 * dbxread.c (process_one_symbol): Complain and stop processing
125 that symbol if we are already at the top of the context stack for
126 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
127 when processing N_RBRAC.
128
129 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
130
131 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
132 define.
133 (struct target_waitstatus): Add opaque definition.
134 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
135 * exec.c (init_exec_ops): Likewise.
136 * fork-child.c (clone_and_follow_inferior): Remove.
137 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
138 * inferior.h (clone_and_follow_inferior): Remove prototype.
139 * infrun.c (follow_fork_mode_both): Remove.
140 (follow_fork_mode_kind_names): Remove commented out "both".
141 (follow_inferior_fork): Remove follow_fork_mode_both support.
142 * inftarg.c (child_clone_and_follow_inferior): Remove.
143 (child_post_follow_inferior_by_clone): Remove.
144 (init_child_ops): Don't set to_clone_and_follow_inferior
145 or to_post_follow_inferior_by_clone.
146 * target.c (default_clone_and_follow_inferior): Remove.
147 (cleanup_target): Don't set to_clone_and_follow_inferior
148 or to_post_follow_inferior_by_clone.
149 (find_default_clone_and_follow_inferior): Remove.
150 (init_dummy_target): Don't set to_clone_and_follow_inferior.
151 (debug_to_clone_and_follow_inferior): Remove.
152 (debug_to_post_follow_inferior_by_clone): Remove.
153 (setup_target_debug): Don't set to_clone_and_follow_inferior
154 or to_post_follow_inferior_by_clone.
155 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
156 and to_post_follow_inferior_by_clone.
157 (child_clone_and_follow_inferior): Remove prototype.
158 (child_post_follow_inferior_by_clone): Remove prototype.
159 (target_clone_and_follow_inferior): Remove macro.
160 (target_post_follow_inferior_by_clone): Remove macro.
161 (find_default_clone_and_follow_inferior): Remove prototype.
162
163 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
164
165 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
166 inferior_has_vforked, and inferior_has_execd instead of
167 target_has_forked, target_has_vforked, and target_has_execd.
168 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
169 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
170 (CHILD_WAIT): Define.
171 (child_wait): Add prototype.
172 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
173 Add prototype.
174 (hpux_has_vforked): Likewise, from child_has_vforked.
175 (hpux_has_execd): Likewise, from child_has_execd.
176 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
177 (not_same_real_pid, child_wait): New, copied from inftarg.c.
178 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
179 and hpux_has_syscall_event instead of the target hooks.
180 * infrun.c (inferior_has_forked, inferior_has_vforked)
181 (inferior_has_execd): New functions.
182 * inftarg.c (not_same_real_pid): Remove.
183 (child_wait): Remove references to not_same_real_pid,
184 target_has_forked, target_has_vforked, target_has_execd,
185 and target_has_syscall_event.
186 (child_has_forked, child_has_vforked, child_has_execd)
187 (child_has_syscall_event): Remove.
188 (init_child_ops): Remove references to child_has_forked,
189 child_has_vforked, child_has_execd, and child_has_syscall_event.
190 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
191 (hpux_has_vforked): Likewise, from child_has_vforked.
192 (hpux_has_execd): Likewise, from child_has_execd.
193 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
194 * target.c (cleanup_target): Remove references to
195 to_has_forked, to_has_vforked, to_has_execd, and
196 to_has_syscall_event.
197 (update_current_target): Likewise.
198 (setup_target_debug): Likewise.
199 (debug_to_has_forked): Remove.
200 (debug_to_has_vforked): Remove.
201 (debug_to_has_execd): Remove.
202 (debug_to_has_syscall_event): Remove.
203 * target.h (struct target_ops): Remove to_has_forked.
204 to_has_vforked, to_has_execd, and to_has_syscall_event.
205 (child_has_forked, child_has_vforked, child_has_execd)
206 (child_has_syscall_event): Remove prototypes.
207 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
208 prototypes.
209 (target_has_forked, target_has_vforked, target_has_execd)
210 (target_has_syscall_event): Remove macros.
211
212 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
213
214 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
215 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
216 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
217 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
218 * target.c (cleanup_target): Remove reference to
219 to_can_follow_vfork_prior_to_exec.
220 (update_current_target): Likewise.
221 (debug_to_can_follow_vfork_prior_to_exec): Remove.
222 (setup_target_debug): Remove reference to
223 to_can_follow_vfork_prior_to_exec.
224 * target.h (struct target_ops): Remove
225 to_can_follow_vfork_prior_to_exec.
226 (child_can_follow_vfork_prior_to_exec): Remove prototype.
227 (target_can_follow_vfork_prior_to_exec): Remove definition.
228 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
229 define.
230 * infrun.c (follow_vfork_when_exec): Remove.
231 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
232 (follow_exec): Likewise.
233 (handle_inferior_event): Likewise.
234 (keep_going): Likewise.
235
236 2002-11-15 Andrew Cagney <cagney@redhat.com>
237
238 * frame.c (generic_unwind_get_saved_register): Make static.
239 * frame.h (generic_unwind_get_saved_register): Delete declaration.
240 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
241 defaults to generic_unwind_get_saved_register.
242 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
243 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
244 * frv-tdep.c (frv_gdbarch_init): Ditto.
245 * i386-tdep.c (i386_gdbarch_init): Ditto.
246 * s390-tdep.c (s390_gdbarch_init): Ditto.
247 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
248 * v850-tdep.c (v850_gdbarch_init): Ditto.
249 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
250 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
251 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
252
253 2002-11-15 Andrew Cagney <cagney@redhat.com>
254
255 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
256 i386-tdep.c.
257
258 2002-11-15 Andrew Cagney <cagney@redhat.com>
259
260 * frame.h (sigtramp_saved_pc): Delete declaration.
261 * blockframe.c (sigtramp_saved_pc): Delete function.
262 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
263 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
264 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
265 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
266
267 2002-11-15 Andrew Cagney <ac131313@redhat.com>
268
269 * frame.c (frame_pc_unwind): New function.
270 (frame_saved_regs_pc_unwind): New function.
271 (frame_register_unwind): Pass unwind_cache instead of
272 register_unwind_cache.
273 (set_unwind_by_pc): Add unwind_pc parameter, set.
274 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
275 (get_prev_frame): Ditto.
276 * frame.h (frame_pc_unwind_ftype): Declare.
277 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
278 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
279 (frame_pc_unwind): Declare.
280 * dummy-frame.c (dummy_frame_pc_unwind): New function.
281 (struct dummy_frame): Add comment mentioning that values are for
282 previous frame.
283 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
284 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
285 (generic_file_frame_chain_valid): Ditto.
286 * stack.c (frame_info): Ditto.
287
288 2002-11-15 David Carlton <carlton@math.stanford.edu>
289
290 * linespec.c (locate_first_half): New function.
291 (decode_line_1): Move code into locate_first_half.
292
293 2002-11-15 Andrew Cagney <ac131313@redhat.com>
294
295 * complaints.h: Add comment explaining how to eliminate a
296 deprecated_complain call.
297 * complaints.h: Fix spelling errors.
298
299 2002-11-15 David Carlton <carlton@math.stanford.edu>
300
301 * printcmd.c: Remove #include "disasm.h".
302
303 2002-11-14 Andrew Cagney <ac131313@redhat.com>
304
305 * frame.h: Move the most relevant interface functions to the start
306 of the file.
307
308 2002-11-14 Andrew Cagney <ac131313@redhat.com>
309
310 * regcache.h (deprecated_registers): Rename registers.
311 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
312 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
313 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
314 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
315 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
316 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
317 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
318 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
319 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
320 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
321 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
322 * v850ice.c: Update.
323
324 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
325
326 * utils.c (gdb_realpath): Add comment mentioning realpath with a
327 NULL buffer.
328
329 2002-11-13 Andrew Cagney <cagney@redhat.com>
330
331 * regcache.h (deprecated_read_register_bytes): Rename
332 read_register_bytes.
333 (deprecated_write_register_bytes): Rename write_register_bytes.
334 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
335 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
336 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
337 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
338 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
339 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
340 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
341 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
342 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
343 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
344 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
345 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
346 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
347 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
348
349 2002-11-13 Jim Blandy <jimb@redhat.com>
350
351 * findvar.c (read_var_value): Doc fix.
352
353 2002-11-13 Andrew Cagney <cagney@redhat.com>
354
355 * regcache.c (struct regcache): Replace passthough_p with
356 readonly_p.
357 (regcache_xmalloc): Initialize readonly_p.
358 (build_regcache): Initialize readonly_p.
359 (regcache_save): New function.
360 (regcache_restore): New function.
361 (regcache_cpy): Re-implement using regcache_save and
362 regcache_restore.
363 (regcache_raw_read): Update.
364 (regcache_cooked_read): When a read-only cache, checked for cached
365 pseudo register values.
366 (regcache_raw_write): Assert that the cache is not read-only.
367 Remove code handling a non-passthrough cache.
368 * regcache.h (regcache_save): Declare.
369 (regcache_restore): Declare.
370
371 2002-11-13 Andrew Cagney <cagney@redhat.com>
372
373 * regcache.c (struct regcache_descr): Add fields
374 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
375 (init_legacy_regcache_descr): Compute the size of a cooked
376 register cache and then assign that to sizeof_raw_registers. Set
377 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
378 (init_legacy_regcache_descr): Ditto.
379
380 2002-11-13 Andrew Cagney <cagney@redhat.com>
381
382 * regcache.c (register_buffer): Move to near start of file, update
383 description.
384 (regcache_raw_read): Use.
385 (regcache_raw_write): Use.
386 (struct regcache): Rename raw_registers to registers and
387 raw_register_valid_p to register_valid_p.
388 (regcache_xmalloc): Update.
389 (regcache_xfree): Update.
390 (register_buffer): Update.
391 (regcache_cpy): Update.
392 (regcache_cpy_no_passthrough): Update.
393 (regcache_valid_p): Update.
394 (deprecated_grub_regcache_for_registers): Update.
395 (deprecated_grub_regcache_for_register_valid): Update.
396 (set_register_cached): Update.
397 (regcache_raw_write): Update.
398
399 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
400
401 * p-exp.y (name_not_typename): Use copy_name to
402 set current_type variable for fields of THIS.
403
404 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
405
406 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
407 * monitor.c (init_base_monitor_ops): Likewise.
408 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
409 * remote-array.c (init_array_ops): Likewise.
410 * remote-e7000.c (init_e7000_ops): Likewise.
411 * remote-es.c (init_es1800_ops): Likewise.
412 (init_es1800_child_ops): Likewise.
413 * remote-rdp.c (init_remote_rdp_ops): Likewise.
414 * remote-sim.c (init_gdbsim_ops): Likewise.
415 * remote-st.c (init_st2000_ops): Likewise.
416 * sol-thread.c (init_sol_core_ops): Likewise.
417 (init_sol_thread_ops): Likewise.
418 * v850ice.c (init_850ice_ops): Likewise.
419 * win32-nat.c (init_child_ops): Likewise.
420 * wince.c (init_child_ops): Likewise.
421
422 2002-11-12 Andrew Cagney <ac131313@redhat.com>
423
424 * utils.c (gdb_realpath): Make rp a constant pointer.
425
426 2002-11-12 Andrew Cagney <ac131313@redhat.com>
427
428 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
429 a constant buffer; cannonicalize_file_name(); realpath() with a
430 pathconf() defined buffer, xstrdup().
431
432 2002-11-12 Andrew Cagney <ac131313@redhat.com>
433
434 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
435 to hang2.C; hang3.c to hang3.C.
436
437 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
438
439 * findvar.c (read_var_value): Reenable TLS code.
440
441 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
442 Jim Blandy <jimb@redhat.com>
443
444 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
445 * target.c (update_current_target): Add
446 to_get_thread_local_address.
447 * target.h (to_get_thread_local_address): Export.
448 (target_get_thread_local_address): Define.
449 (target_get_thread_local_address_p): Define.
450 * thread-db.c: Include solib-svr4.h.
451 (td_thr_tls_get_addr_p): Define.
452 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
453 (thread_db_get_thread_local_address): New function.
454 (init_thread_db_ops): Initialize to_get_thread_local_address.
455 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
456 * configure: Regenerate.
457 * config.in: Regenerate.
458
459 2002-11-11 David Carlton <carlton@math.stanford.edu>
460
461 * linespec.c (set_flags): New function.
462 (decode_line_1): Move code into set_flags.
463
464 2002-11-11 David Carlton <carlton@math.stanford.edu>
465
466 * linespec.c (decode_line_1): Move chunks of code to separate
467 functions.
468 (initialize_defaults): New function.
469 (decode_indirect): New function.
470
471 2002-11-11 Andrew Cagney <ac131313@redhat.com>
472
473 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
474 instead of void_code_ptr.
475 (sigtramp_saved_pc): Ditto.
476
477 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
478 i386_fp_regnum_p.
479
480 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
481
482 * gdbtypes.h (struct main_type): Move artificial flag out of
483 loc. New member of ``struct field'' named static_kind. Reduce
484 overloaded meaning of bitsize.
485 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
486 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
487 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
488
489 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
490 new fields.
491 (template_to_fixed_record_type, template_to_static_fixed_type)
492 (to_record_with_fixed_variant_part): Likewise.
493 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
494 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
495 * dwarfread.c (struct_type, enum_type): Likewise.
496 * hpread.c (hpread_read_enum_type)
497 (hpread_read_function_type, hpread_read_doc_function_type)
498 (hpread_read_struct_type): Likewise.
499 * mdebugread.c (parse_symbol): Likewise.
500
501 2002-11-10 Andrew Cagney <ac131313@redhat.com>
502
503 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
504 * stack.c (print_frame_info_base): Update.
505 (print_frame_info_base, frame_info): Update.
506 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
507 (sparc_frame_saved_pc): Update.
508 * ada-lang.c (find_printable_frame): Update.
509 * breakpoint.c (deprecated_frame_in_dummy): Update.
510
511 2002-11-09 Mark Kettenis <kettenis@gnu.org>
512
513 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
514 defined.
515 (regmap): Extend to cover all registers.
516 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
517 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
518 definitions.
519 (fetch_register, sore_register): Simplify.
520 (old_fetch_inferior_registers, old_store_inferior_registers):
521 Remove functions.
522 (cannot_fetch_register, cannot_store_register): Change
523 implementation to use regmap array to decide which registers
524 cannot be fetched/stored. This removes $orig_eax from the
525 registers that cannot be fetched/stored.
526 (fetch_inferior_registers): Call fetch_register directly instead
527 of calling old_fetch_inferior_registers.
528 (store_inferior_registers): Call store_register directly instead
529 of calling old_store_inferior_registers.
530 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
531 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
532 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
533
534 2002-11-09 Klee Dienes <kdienes@apple.com>
535
536 * i387-tdep.c (i387_supply_register): When called with NULL as a
537 buffer, mark the register as not provided (to mirror the behavior
538 of supply_register).
539 (i387_supply_fxsave): Ditto.
540 (i387_supply_fsave): Ditto (inherits the behavior from
541 i387_supply_register).
542
543 2002-11-09 Klee Dienes <kdienes@apple.com>
544
545 * blockframe.c (sigtramp_saved_pc): Use
546 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
547 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
548 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
549
550 2002-11-09 Andrew Cagney <ac131313@redhat.com>
551
552 * frame.c (get_prev_frame): Test prev_p to identify a previously
553 unwound frame. Initialize prev_p.
554 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
555 comment.
556
557 2002-11-09 Andrew Cagney <ac131313@redhat.com>
558
559 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
560 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
561 more comments. Zap dead code.
562
563 2002-11-09 Mark Kettenis <kettenis@gnu.org>
564
565 * infcmd.c (print_vector_info, print_float_info): Move code that
566 checks whether the target has any registers and whether there is a
567 selected frame up, such that it is also used if a target provides
568 multi-arch definitions of these functions.
569
570 2002-11-08 Andrew Cagney <ac131313@redhat.com>
571
572 * Makefile.in (DESTDIR): Define.
573 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
574 prefix.
575
576 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
577 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
578
579 2002-11-08 Andrew Cagney <ac131313@redhat.com>
580
581 * i386-linux-tdep.c: Include "reggroups.h".
582 (i386_linux_register_reggroup_p): New function.
583 (i386_linux_init_abi): Set register_reggroup_p to
584 i386_linux_register_reggroup_p.
585 * i386-tdep.h (i386_register_reggroup_p): Declare.
586 * i386-tdep.c: Include "reggroups.h".
587 (i386_init_reggroups): New function.
588 (i386_add_reggroups): New function.
589 (i386_register_reggroup_p): New function.
590 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
591 (_initialize_i386_tdep): Call i386_init_reggroups.
592 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
593 specific reggroups.
594
595 2002-11-09 Mark Kettenis <kettenis@gnu.org>
596
597 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
598 request that's available in *BSD.
599
600 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
601
602 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
603 FDOFF_REGNUM.
604
605 2002-11-08 Andrew Cagney <ac131313@redhat.com>
606
607 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
608 * dummy-frame.c (find_dummy_frame): Rename
609 generic_find_dummy_frame, make static. Return the dummy frame
610 instead of the regcache.
611 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
612 (cached_find_dummy_frame): New function. Use find_dummy_frame.
613 (dummy_frame_register_unwind): Rename
614 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
615 * dummy-frame.h (dummy_frame_register_unwind): Rename
616 generic_call_dummy_register_unwind.
617
618 2002-11-08 Mark Kettenis <kettenis@gnu.org>
619
620 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
621 except the inclusion of "i386/tm-i386.h", to...
622 * config/i386/nm-i386v42mp.h: ...here.
623 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
624
625 2002-11-08 Andrew Cagney <ac131313@redhat.com>
626
627 * Makefile.in (frame.o): Update dependencies.
628 * blockframe.c (current_frame, frame_obstack_alloc)
629 (frame_saved_regs_zalloc, get_current_frame)
630 (set_current_frame, create_new_frame)
631 (set_unwind_by_pc, get_next_frame)
632 (flush_cached_frames, reinit_frame_cache)
633 (frame_saved_regs_register_unwind)
634 (deprecated_generic_get_saved_register)
635 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
636 (_initialize_blockframe): Move frame code from here...
637 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
638 "annotate.h" and "dummy-frame.h".
639 (_initialize_frame): New function.
640
641 2002-11-08 Jim Blandy <jimb@redhat.com>
642
643 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
644 when we finish a function a context.
645 * buildsym.h (outermost_context_p): New macro.
646 (Bug analyzed by David Edelsohn.)
647
648 2002-11-08 Andrew Cagney <ac131313@redhat.com>
649
650 * blockframe.c: Include "dummy-frame.h".
651 (struct dummy_frame, dummy_frame_stack)
652 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
653 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
654 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
655 (generic_save_call_dummy_addr, generic_pop_current_frame)
656 (generic_pop_dummy_frame, generic_fix_call_dummy)
657 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
658 dummy frame code from here...
659 * dummy-frame.c: ...to here. New file.
660 * dummy-frame.h: New file.
661 (generic_call_dummy_register_unwind): Declare.
662 (generic_find_dummy_frame): Declare.
663 * Makefile.in (SFILES): Add dummy-frame.c.
664 (dummy-frame.o): Specify dependencies.
665 (dummy_frame_h): Define.
666 (COMMON_OBS): Add dummy-frame.o.
667 (blockframe.o): Update dependencies.
668
669 2002-11-08 Jim Blandy <jimb@redhat.com>
670
671 * dwarf2read.c (read_func_scope): Restore local_symbols and
672 param_symbols after we finish the function context. (Based on a
673 patch from David Edelsohn.)
674
675 2002-11-08 David Carlton <carlton@math.stanford.edu>
676
677 * linespec.c (symbol_found): New function.
678 (minsym_found): New function.
679 (decode_line_1): Separate out some code into separate functions.
680
681 2002-11-08 Joel Brobecker <brobecker@gnat.com>
682
683 * i386-tdep.c (i386_frameless_signal_p): Make non static for
684 the benefit of the interix target.
685 * i386-tdep.h (i386_frameless_signal_p): Declare.
686
687 2002-11-08 Andrew Cagney <ac131313@redhat.com>
688
689 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
690 declaration that snuck in from change below.
691
692 2002-11-06 Andrew Cagney <cagney@redhat.com>
693
694 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
695 all callers.
696 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
697 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
698 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
699 (i386_mxcsr_regnum_p): new function. Use instead of
700 MXCSR_REGNUM_P.
701 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
702 (i386_sse_regnum_p): Declare.
703 (i386_mxcsr_regnum_p): Declare.
704 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
705 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
706 (IS_FP_REGNUM): Update definition.
707 (IS_FPU_CTRL_REGNUM): Update definition..
708 (IS_SSE_REGNUM): Update definition..
709 * i386v-nat.c (register_u_addr): Update.
710 * go32-nat.c (fetch_register): Update.
711 (store_register): Update.
712
713 2002-11-07 Joel Brobecker <brobecker@gnat.com>
714
715 Preparation work to convert the hppa targets to multiarch partial.
716
717 * hppa-tdep.c: Add new functions replacing macro bodies from
718 config/pa/tm-hppa.h. These function will be used to initialize
719 the gdbarch structure. Import some comments from tm-hppa.h,
720 and place them where appropriate, to avoid loosing them when
721 we cleanup this file.
722 (hppa_reg_struct_has_addr): New function.
723 (hppa_inner_than): New function.
724 (hppa_stack_align): New function.
725 (hppa_pc_requires_run_before_use): New function.
726 (hppa_instruction_nullified): New function.
727 (hppa_register_byte): New function.
728 (hppa_register_virtual_type): New function.
729 (hppa_store_struct_return): New function.
730 (hppa_cannot_store_register): New function.
731 (hppa_frame_args_address): New function.
732 (hppa_frame_locals_address): New function.
733 (hppa_smash_text_address): New function.
734 (hppa_coerce_float_to_double): New function. Requires the inclusion
735 of "language.h".
736
737 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
738
739 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
740 gdbarch-eligible macro to a call to the new associated function
741 created in hppa-tdep.c.
742 (INNER_THAN): Likewise.
743 (STACK_ALIGN): Likewise.
744 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
745 (INSTRUCTION_NULLIFIED): Likewise.
746 (REGISTER_BYTE): Likewise.
747 (REGISTER_VIRTUAL_TYPE): Likewise.
748 (STORE_STRUCT_RETURN): Likewise.
749 (CANNOT_STORE_REGISTER): Likewise.
750 (FRAME_ARGS_ADDRESS): Likewise.
751 (FRAME_LOCALS_ADDRESS): Likewise.
752 (SMASH_TEXT_ADDRESS): Likewise.
753 (COERCE_FLOAT_TO_DOUBLE): Likewise.
754 (ABOUT_TO_RETURN): Delete, as no longer used.
755
756 2002-11-07 Fernando Nasser <fnasser@redhat.com>
757
758 * printcmd.c (disassemble_command): Remove obsolete function.
759 (_initialize_printcmd): Do not create disassemble command here.
760 * cli/cli-cmds.c (disassemble_command): New function. Implements
761 disassemble command.
762 (init_cli_cmds): Create disassemble command here instead.
763
764 2002-11-07 Andrew Cagney <ac131313@redhat.com>
765
766 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
767
768 2002-11-07 Andrew Cagney <ac131313@redhat.com>
769
770 * regcache.h (regcache_cooked_read_using_offset_hack)
771 (regcache_cooked_write_using_offset_hack): Delete declarations.
772 (register_changed): Delete declaration.
773 * regcache.c (regcache_cooked_read_using_offset_hack)
774 (regcache_cooked_write_using_offset_hack): Delete functions.
775 (cooked_xfer_using_offset_hack): Delete function.
776 (register_changed): Delete function.
777
778 2002-11-07 Jim Blandy <jimb@redhat.com>
779
780 * macroscope.c: #include "complaints.h".
781 (sal_macro_scope): Cope with filenames that appear in the symtabs,
782 but not in the macro table.
783 * Makefile.in (macroscope.o): Record dependency.
784
785 2002-11-07 Joel Brobecker <brobecker@gnat.com>
786
787 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
788
789 2002-11-07 Andrew Cagney <ac131313@redhat.com>
790
791 * regcache.c (deprecated_registers_fetched): Update.
792 * regcache.h (deprecated_registers_fetched): Rename
793 registers_fetched.
794 * remote-vxsparc.c (vx_read_register): Update.
795 * remote-vxmips.c (vx_read_register): Update.
796 * remote-vx68.c (vx_read_register): Update.
797 * irix5-nat.c (fetch_core_registers): Update.
798 * mipsm3-nat.c (fetch_inferior_registers): Update.
799 * sun3-nat.c (fetch_inferior_registers): Update.
800 * symm-nat.c (fetch_inferior_registers): Update.
801 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
802 (fetch_core_registers): Update.
803 (fetch_kcore_registers): Update.
804 * mips-nat.c (fetch_inferior_registers): Update.
805 * corelow.c (get_core_registers): Update.
806 * a68v-nat.c (fetch_inferior_registers): Update.
807
808 2002-11-06 Joel Brobecker <brobecker@gnat.com>
809
810 Put in place the framework necessary for multiarching the hppa targets.
811 * hppa-tdep.c (hppa_gdbarch_init): New function.
812 (hppa_dump_tdep): New function.
813 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
814 tdep structure dumper.
815 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
816 until the multi-arching conversion has partially been completed.
817
818 2002-11-06 Andrew Cagney <ac131313@redhat.com>
819
820 * valops.c (value_assign): Merge lval_register case into
821 lval_reg_frame_relative. Use frame_register and
822 regcache_cooked_write instead of get_saved_register and
823 write_register_bytes. After flushing the register cache, try to
824 re-select the selected frame.
825
826 2002-11-06 Andrew Cagney <ac131313@redhat.com>
827
828 * regcache.h (deprecated_register_valid): Rename register_valid.
829 * regcache.c: Update.
830 * ia64-aix-nat.c: Update.
831 * i386gnu-nat.c: Update.
832 * alpha-nat.c: Update.
833 * sparc-nat.c: Update.
834 * lynx-nat.c: Update.
835 * remote-mips.c: Update.
836
837 2002-11-06 Joel Brobecker <brobecker@gnat.com>
838
839 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
840 to end of file, to be more consistent with the pratice followed
841 by other targets.
842
843 2002-11-06 Andrew Cagney <ac131313@redhat.com>
844
845 * infcmd.c: Include "reggroups.h" and <ctype.h>.
846 (print_float_info): Print registers in float_reggroup.
847 (print_vector_info): Print registers in vector_reggroup.
848 (default_print_registers_info): When all, print registers in
849 all_reggroup. Otherwize, print registers in general_reggroup.
850 (registers_info): Rewrite. Add support for register groups.
851 Eliminate a goto.
852
853 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
854
855 * symtab.c (methods_info): Delete. It has been ifdeffed out for
856 ages.
857 (symtab_symbol_info): Remove eons old ifdeffed out code.
858 (_initialize_symtab): Remove prehistoric disabled 'info methods'
859 command.
860
861 2002-11-06 Theodore A. Roth <troth@openavr.org>
862
863 * c-exp.y: Add missing semi-colons.
864 * f-exp.y: Add missing semi-colons.
865 * m2-exp.y: Add missing semi-colons.
866 * p-exp.y: Add missing semi-colons.
867 Add empty action to start rule to avoid a type clash error when
868 building with bison >= 1.50.
869
870 2002-11-06 Jim Blandy <jimb@redhat.com>
871
872 * macrotab.h (struct macro_source_file): Doc fix.
873
874 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
875
876 * varobj.c (child_exists, cplus_number_of_children): Change
877 STREQ macro references to strcmp.
878 (cplus_name_of_child): Change code to handle the fact that
879 fields are not necessarily contiguous with regards to their
880 access control. This is a fix for PR gdb/792.
881
882 2002-11-05 Andrew Cagney <ac131313@redhat.com>
883
884 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
885 * gdbarch.h, gdbarch.c: Regnerate.
886 * frame.h (frame_register): Declare.
887 * frame.c (frame_register): New function.
888 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
889 GET_SAVED_REGISTER, otherwize call
890 generic_unwind_get_saved_register.
891 (frame_register_read): Use frame_register instead of
892 get_saved_register.
893
894 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
895
896 From Jim Ingham <jingham@apple.com>:
897 * event-top.c (gdb_disable_readline): New function.
898 (_initialize_event_loop): Move comment.
899
900 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
901
902 * event-loop.c (start_event_loop): Add comment.
903 Update copyright.
904
905 2002-11-05 Andrew Cagney <ac131313@redhat.com>
906
907 * infcmd.c (default_print_registers_info): Do not call
908 PRINT_REGISTER_HOOK.
909
910 2002-11-05 Andrew Cagney <ac131313@redhat.com>
911
912 * sparc-tdep.c (sparc_print_register_hook): Make static.
913 (sparc_print_registers_info): New function.
914 (sparc_do_registers_info): New function.
915 (sparclet_print_registers_info): New function.
916 (sparclet_do_registers_info): New function.
917 (do_sparc_print_registers_info): New function.
918 (sparc_print_registers): New static function, clone of infcmd.c's
919 default_print_registers_info.
920 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
921 (sparclet_do_registers_info): Declare.
922 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
923 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
924 Re-define.
925 (sparc_do_registers_info): Declare.
926 (PRINT_REGISTER_HOOK): Delete macro.
927 (sparc_print_register_hook): Delete declaration.
928
929 2002-11-05 David Carlton <carlton@math.stanford.edu>
930
931 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
932 functions.
933 (lookup_symbol_aux_local): New function.
934 (lookup_symbol_aux_symtabs): New function.
935 (lookup_symbol_aux_psymtabs): New function.
936
937 2002-11-05 David Carlton <carlton@math.stanford.edu>
938
939 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
940 previous values of 'objfile' and 'block'.
941
942 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
943
944 * values.c (value_change_enclosing_type): Set
945 enclosing_type field correctly also for the case where
946 more memory needs to be allocated.
947
948 2002-11-03 Mark Kettenis <kettenis@gnu.org>
949
950 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
951 of puts_filtered.
952
953 * i387-tdep.c (i387_print_float_info): Replace calls to
954 register_read and deprecated_read_register_gen with calls to
955 frame_register_read, and make the necessary adjustments to the
956 surrounding code.
957
958 2002-11-02 Andrew Cagney <ac131313@redhat.com>
959
960 * gdbarch.sh (register_reggroup_p): Allow default value.
961 * gdbarch.h, gdbarch.c: Regenerate.
962
963 2002-11-02 Andrew Cagney <ac131313@redhat.com>
964
965 * regcache.h: Add coment indicating replacements for deprecated
966 functions.
967
968 2002-11-02 Andrew Cagney <cagney@redhat.com>
969
970 * reggroups.h, reggroups.c: New files.
971 * regcache.c: Include "reggroups.h".
972 (enum regcache_dump_what): Add `regcache_dump_groups'.
973 (regcache_dump): Contract size of the "Type" column. When
974 specified, dump the register's groups.
975 (maintenance_print_register_groups): New function.
976 (_initialize_regcache): Add command `maint print register-groups'.
977 * Makefile.in (COMMON_OBS): Add reggroups.o
978 (SFILES): Add reggroups.c.
979 (reggroups_h): Define.
980 (regcache.o, gdbarch.o): Update dependencies.
981 (reggroups.o): Specify dependencies.
982 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
983 Add opaque declaration for `struct reggroup' in generated .h file.
984 Include "reggroups.h" in generated .c file.
985 gdbarch.h, gdbarch.c: Re-generate.
986
987 2002-11-02 Andrew Cagney <cagney@redhat.com>
988
989 * regcache.h (deprecated_read_register_gen): Rename
990 read_register_gen.
991 (deprecated_write_register_gen): Rename write_register_gen.
992 * i387-tdep.c: Update.
993 * x86-64-linux-nat.c: Update
994 * wince.c: Update.
995 * thread-db.c: Update.
996 * win32-nat.c: Update.
997 * mips-tdep.c: Update.
998 * d10v-tdep.c: Update.
999 * cris-tdep.c: Update.
1000 * remote-sim.c: Update.
1001 * remote-rdi.c: Update.
1002 * remote-rdp.c: Update.
1003 * frame.c: Update.
1004 * target.c: Update.
1005 * blockframe.c: Update.
1006 * x86-64-tdep.c: Update.
1007 * xstormy16-tdep.c: Update.
1008 * sh-tdep.c: Update.
1009 * s390-tdep.c: Update.
1010 * rs6000-tdep.c: Update.
1011 * sparc-tdep.c: Update.
1012 * i386-tdep.c: Update.
1013 * dwarf2cfi.c: Update.
1014 * regcache.c: Update.
1015
1016 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1017
1018 New interix-specific files:
1019 * config/i386/nm-interix.h: New file.
1020 * config/i386/interix.mh: New file.
1021 * config/i386/interix.mt: New file.
1022 * i386-interix-nat.c: New file.
1023 * i386-interix-tdep.c: New file.
1024
1025 2002-11-01 Andrew Cagney <cagney@redhat.com>
1026
1027 * frame.h (deprecated_generic_get_saved_register): Rename
1028 generic_get_saved_register.
1029 * blockframe.c (deprecated_generic_get_saved_register): Update.
1030 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1031 (xstormy16_frame_saved_register): Update.
1032 * sh-tdep.c (sh_gdbarch_init): Update.
1033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1034 * ia64-tdep.c (ia64_get_saved_register): Update.
1035 * cris-tdep.c (cris_gdbarch_init): Update.
1036 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1037 * arm-tdep.c (arm_gdbarch_init): Update.
1038
1039 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1040
1041 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1042
1043 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1044
1045 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1046 trampolines in sigaction.
1047
1048 2002-10-31 Andrew Cagney <cagney@redhat.com>
1049
1050 * h8300-tdep.c: Include "gdb_assert.h".
1051 (h8300_print_register): Add gdbarch, file and frame parameters.
1052 Use frame_read_unsigned_register to read the register's value.
1053 Use fprintf_filtered to display output.
1054 (h8300_print_registers_info): Replace h8300_do_registers_info.
1055 (h8300_gdbarch_init): Set print_registers_info.
1056
1057 2002-10-31 Andrew Cagney <cagney@redhat.com>
1058
1059 * frame.c (frame_read_unsigned_register): New function.
1060 (frame_read_signed_register): New function.
1061 * frame.h (frame_read_unsigned_register): Declare.
1062 (frame_read_signed_register): Declare.
1063
1064 2002-10-31 Andrew Cagney <cagney@redhat.com>
1065
1066 * h8500-tdep.c (h8500_print_registers_info): New static function,
1067 clone of infcmd.c's default_print_registers_info.
1068 (h8500_do_registers_info): New funtion.
1069 (h8500_print_register_hook): Rename print_register_hook, make
1070 static.
1071
1072 * config/h8500/tm-h8500.h: Update copyright.
1073 (DEPRECATED_DO_REGISTERS_INFO): Define.
1074 (h8500_do_registers_info: Declare.
1075 (PRINT_REGISTER_HOOK): Delete macro.
1076 (print_register_hook): Delete function.
1077
1078 2002-10-31 Andrew Cagney <cagney@redhat.com>
1079
1080 * z8k-tdep.c (z8k_print_register_hook): Make static.
1081 (z8k_print_registers_info): New static function, clone of
1082 infcmd.c's default_print_registers_info.
1083 (z8k_do_registers_info): New function. Wrap
1084 z8k_print_registers_info.
1085 * config/z8k/tm-z8k.h: Update copyright.
1086 (PRINT_REGISTER_HOOK): Delete macro.
1087 (z8k_print_register_hook): Delete declaration.
1088 (DEPRECATED_DO_REGISTERS_INFO): Define.
1089 (z8k_do_registers_info): Declare.
1090
1091 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1092
1093 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1094 as this is already provided by value.h, and was actually causing
1095 a compilation error because of a conflict in parameter type
1096 declaration due to a missing const keyword.
1097 (low_text_segment_addres): Fix a compilation warning.
1098
1099 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1100
1101 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1102 registers without a name.
1103 (mips_linux_cannot_store_register): Don't store registers without
1104 a name.
1105
1106 2002-10-28 David Carlton <carlton@math.stanford.edu>
1107
1108 * symtab.c (find_addr_symbol): Delete. (It was already commented
1109 out.)
1110 * symtab.h: Delete prototype for find_addr_symbol.
1111
1112 2002-10-26 Andrew Cagney <cagney@redhat.com>
1113
1114 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1115 DO_REGISTERS_INFO.
1116 gdbarch.h, gdbarch.c: Re-generate.
1117 * infcmd.c (default_print_registers_info): Update reference.
1118 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1119 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1120 * sh-tdep.c (sh_gdbarch_init): Ditto.
1121 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1122 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1123
1124 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1125
1126 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1127 cfi_init_extra_frame_info.
1128 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1129 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1130
1131 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1132 target where necessary. Add more comments and remove the ones
1133 that don't provide any useful information.
1134
1135 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1136 deprecated_read_register_dummy with
1137 frame_unwind_unsigned_register.
1138
1139 * i386-tdep.c (i386_extract_struct_value_address): Use
1140 regcache_raw_read_unsigned instead of
1141 regcache_cooked_read_unsigned since we know that the register
1142 we're reading isn't a pseudo register. Rename variable 'val' into
1143 the more descriptive 'addr'.
1144
1145 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1146 (x86_64_push_return_address): Add comment.
1147 (x86_64_pop_frame): Make static.
1148 (examine_argument): Clarify comment.
1149 (x86_64_skip_prologue): Make prolog_expact variable static.
1150
1151 * dwarf2cfi.c: Fix some formatting problems.
1152 (context_cpy, read_encoded_pointer): Clarify comments.
1153
1154 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1155 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1156 i386 target back into x86_64_gdbarch_init. Add some comments and
1157 remove meaningless ones.
1158
1159 2002-10-25 Andrew Cagney <cagney@redhat.com>
1160
1161 * complaints.h (struct deprecated_complaint): Rename `struct
1162 complaint'.
1163 * complaints.c (complain): Update.
1164 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1165 incorrect comment indicating that "symfile.h" was being included
1166 for the `struct complaint' definition.
1167 * remote-vx.c: Update.
1168 * objc-lang.c: Update.
1169 * xcoffread.c: Update.
1170 * hpread.c: Update.
1171 * mdebugread.c: Update.
1172 * stabsread.c: Update.
1173 * dwarf2read.c: Update.
1174 * dwarfread.c: Update.
1175 * elfread.c: Update.
1176 * coffread.c: Update.
1177 * stabsread.h: Update.
1178 * dbxread.c: Update.
1179 * buildsym.c: Update.
1180 * gdbtypes.c: Update.
1181 * macrotab.c: Update.
1182
1183 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1184
1185 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1186 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1187 (x86_64_init_abi): ...new function.
1188
1189 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1190 * i386v-nat.c: Include "i386-tdep.h".
1191
1192 2002-10-25 Andrew Cagney <cagney@redhat.com>
1193
1194 * gdbtypes.c (address_space_name_to_int): Update.
1195 (address_space_int_to_name): Update.
1196 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1197 multi-arch predicate.
1198 (address_class_name_to_type_flags): Ditto.
1199 * gdbarch.h, gdbarch.c: Re-generate.
1200
1201 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1202
1203 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1204
1205 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1206
1207 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1208
1209 * symtab.h (INIT_SAL): Delete macro.
1210 (init_sal): Export.
1211 * symtab.c (init_sal): New function.
1212
1213 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1214 to init_sal function call.
1215 (find_sal_from_funcs_and_line): Ditto.
1216 (all_sals_for_line): Ditto.
1217 * breakpoint.c (create_internal_breakpoint): Ditto.
1218 (create_fork_vfork_event_catchpoint): Ditto.
1219 (create_exec_event_catchpoint): Ditto.
1220 (parse_breakpoint_sals): Ditto.
1221 (watch_command_1): Ditto.
1222 (handle_gnu_4_16_catch_command): Ditto.
1223 (clear_command): Ditto.
1224 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1225 * infcmd.c (run_stack_dummy): Ditto.
1226 * infrun.c (process_event_stop_test): Ditto.
1227 (check_sigtramp2): Ditto.
1228 (step_over_function): Ditto.
1229 * linespec.c (decode_line_2): Ditto.
1230 (decode_line_1): Ditto.
1231 * source.c (line_info): Ditto.
1232 * symtab.c (find_pc_sect_line): Ditto.
1233
1234 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1235
1236 * dwarf2cfi.c (struct context)
1237 (struct context_reg): Moved to dwarf2cfi.h
1238 (context_alloc, frame_state_alloc, context_cpy):
1239 Made extern instead of static, removed prototypes.
1240 * dwarf2cfi.h (struct context)
1241 (struct context_reg): New, moved from dwarf2cfi.c
1242 (context_alloc, frame_state_alloc, context_cpy):
1243 New prototypes.
1244 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1245 Changed from static to extern.
1246 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1247 (LINUX_SIGCONTEXT_FP_OFFSET)
1248 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1249 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1250 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1251 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1252 set_gdbarch_*() calls now use x86-64 specific functions
1253 instead of DWARF2 CFI ones.
1254 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1255 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1256 (x86_64_init_extra_frame_info): New prototypes.
1257
1258 2002-10-23 David Carlton <carlton@math.stanford.edu>
1259
1260 * linespec.c: #include "parser-defs.h".
1261 Delete prototype for find_template_name_end.
1262 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1263
1264 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1265
1266 * NEWS: add recent mi fixes.
1267 * varobj.c (struct varobj): Add new "updated" flag.
1268 (new_variable): Default "updated" flag to 0.
1269 (varobj_set_value): Set "updated" flag to 1 if value
1270 changes.
1271 (varobj_update): Check varobj "updated" flag before
1272 comparing old and refreshed values. Fix for
1273 PR gdb/702.
1274
1275 2002-10-23 David Carlton <carlton@math.stanford.edu>
1276
1277 * parse.c (parse_exp_1): Use BLOCK_START.
1278 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1279 SYMBOL_BLOCK_VALUE.
1280 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1281
1282 2002-10-23 David Carlton <carlton@math.stanford.edu>
1283
1284 * symtab.c: Delete cplusplus_hint.
1285 Delete prototype for find_template_name_end.
1286
1287 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1288
1289 * symtab.h: Update comment.
1290
1291 2002-10-23 Michael Snyder <msnyder@redhat.com>
1292
1293 * printcmd.c (address_info): Restore quotes in output.
1294 * valops.c (value_of_local): Restore quotes in error message.
1295
1296 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1297
1298 * symtab.c (symbol_demangled_name): New function.
1299 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1300 turning most of it into a function.
1301 (symbol_demangled_name): Export.
1302
1303 2002-10-23 Michael Snyder <msnyder@redhat.com>
1304
1305 * valops.c (value_of_local): Restore quotes in error message.
1306
1307 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1308
1309 * symtab.c (symbol_init_language_specific): New function.
1310 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1311 turning most of it into a function.
1312 (symbol_init_language_specific): Export.
1313
1314 2002-10-23 David Carlton <carlton@math.stanford.edu>
1315
1316 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1317 (dwarf_attr_name): Ditto.
1318 (dwarf_type_encoding_name): Ditto.
1319 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1320 (process_die): Handle DW_TAG_namespace,
1321 DW_TAG_imported_declaration, DW_TAG_imported_module.
1322 (read_namespace): New function.
1323
1324 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1325
1326 * configure.in: Define NEW_PROC_API on Interix too.
1327 * configure: Regenerate.
1328
1329 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1330
1331 * configure: Regenerate using the proper version of autoconf.
1332
1333 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1334
1335 * findvar.c (read_var_value): Temporarily disable TLS code, until
1336 complete TLS support is added.
1337
1338 2002-10-21 Jim Blandy <jimb@redhat.com>
1339 Elena Zannoni <ezannoni@redhat.com>
1340
1341 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1342 for thread local storage locations.
1343 (struct symbol): Add objfile field.
1344 (SYMBOL_OBJFILE): Define.
1345 * dwarf2read.c (is_thread_local): New static variable.
1346 (new_symbol): If variable is in thread local fill in address class
1347 and objfile appropriately.
1348 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1349 stack operation.
1350 * printcmd.c (address_info): Print the information for thread
1351 local storage variable.
1352 * findvar.c (read_var_value): In case of thread local variable,
1353 defer to the target vector code to compute address.
1354
1355 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1356
1357 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1358 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1359
1360 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1361
1362 * symtab.h (address_class): Rename
1363 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1364 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1365 * printcmd.c (address_info): Ditto.
1366 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1367
1368 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1369
1370 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1371 DBREG_DRX macro to acces debug registers.
1372
1373 * Makefile.in (i386obsd-tdep.o): New target.
1374
1375 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1376 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1377
1378 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1379 * config/i386/obsd.mt: New file.
1380 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1381 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1382 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1383 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1384 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1385 * i386obsd-tdep.c: New file.
1386
1387 2002-10-19 Adam Fedor <fedor@gnu.org>
1388
1389 * objc-exp.y (name_not_typename): Fix invalid comment.
1390
1391 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1392
1393 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1394 to allocate partial syms and macro byte caches.
1395
1396 2002-10-18 David Carlton <carlton@math.stanford.edu>
1397
1398 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1399
1400 2002-10-18 Adam Fedor <fedor@gnu.org>
1401
1402 * stabsread.c (find_name_end): New function.
1403 (define_symbol): Use it.
1404
1405 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1406
1407 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1408 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1409 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1410 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1411
1412 2002-10-17 David Carlton <carlton@math.stanford.edu>
1413
1414 * symfile.h: Add opaque declaration for struct obstack.
1415 Declare obsavestring to take a const char *.
1416 * symfile.c (obsavestring): Make first argument a const char *.
1417
1418 2002-10-16 Adam Fedor <fedor@gnu.org>
1419
1420 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1421 names when matching breakpoints in current file.
1422
1423 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1424
1425 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1426 (read_tag_pointer_type): Add address class support.
1427 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1428 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1429 New methods.
1430 * gdbarch.h, gdbarch.c: Regenerate.
1431 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1432 (make_type_with_address_space, recursive_type_dump): Add address
1433 class support.
1434 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1435 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1436 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1437
1438 2002-10-16 Klee Dienes <kdienes@apple.com>
1439
1440 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1441 to get the last character of a char[] buffer, not
1442 name[sizeof(vptr_name)-1].
1443
1444 2002-10-14 Adam Fedor <fedor@gnu.org>
1445
1446 * symtab.h: New objc_specific struct.
1447 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1448 (SYMBOL_DEMANGLED_NAME): Likewise.
1449
1450 2002-10-14 Adam Fedor <fedor@gnu.org>
1451
1452 * symfile.c (init_filename_language_table): Add ObjC file extension.
1453
1454 2002-10-14 Adam Fedor <fedor@gnu.org>
1455
1456 * utils.c (puts_filtered_tabular): New function.
1457 (fprintf_symbol_filtered): Get ObjC demangled name.
1458 * defs.h (puts_filtered_tabular): Declared.
1459
1460 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1461
1462 * c-lang.h (c_type_print_varspec_prefix): Delete.
1463 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1464 ``need_post_space'' parameter. Adjust all callers.
1465
1466 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1467
1468 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1469 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1470 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1471 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1472
1473 2002-10-13 Adam Fedor <fedor@gnu.org>
1474
1475 * source.c (print_source_lines): Update comments.
1476
1477 2002-10-13 Adam Fedor <fedor@gnu.org>
1478
1479 * valops.c (value_of_local): New function.
1480 (value_of_this): Use it.
1481 * value.h (value_of_local): Declared.
1482
1483 2002-10-13 Adam Fedor <fedor@gnu.org>
1484
1485 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1486 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1487
1488 2002-10-12 Adam Fedor <fedor@gnu.org>
1489
1490 * language.c (binop_result_type): Add language_objc to case.
1491 (integral_type): Likewise.
1492 (character_type): Likewise.
1493 (string_type): Likewise.
1494 (boolean_type): Likewise.
1495 (structured_type): Likewise.
1496 (binop_type_check): Likewise.
1497
1498 2002-10-11 Adam Fedor <fedor@gnu.org>
1499
1500 * printcmd.c (address_info): Print 'self' for ObjC.
1501
1502 2002-10-11 Adam Fedor <fedor@gnu.org>
1503
1504 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1505 OP_SELF.
1506
1507 2002-10-11 Adam Fedor <fedor@gnu.org>
1508
1509 * language.h (CAST_IS_CONVERSION): Add language_objc.
1510
1511 2002-10-11 Adam Fedor <fedor@gnu.org>
1512
1513 * defs.h (enum language): Add language_objc.
1514
1515 2002-10-11 Klee Dienes <kdienes@apple.com>
1516
1517 * corefile.c (read_memory_typed_address): New function.
1518 * gdbcore.h (read_memory_typed_address): Add prototype.
1519 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1520 to read a value destined for a CORE_ADDR, not read_memory_integer.
1521 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1522 (f77_get_dynamic_lowerbound): Ditto.
1523
1524 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1525
1526 * utils.c (string_to_core_addr): After turning string into
1527 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1528 which will do necessary sign-extension, etc.
1529
1530 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1531
1532 * c-exp.y (THIS): Delete token and grammar rule.
1533 (yylex): Don't return THIS.
1534 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1535 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1536 * demangle.c (cplus_markers): Update comment. Put '$'
1537 first. Remove CPLUS_MARKER.
1538 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1539 * jv-exp.y (THIS): Delete token and grammar rule.
1540 (yylex): Don't return THIS.
1541 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1542 * objc-exp.y (THIS): Delete token and grammar rule.
1543 (yylex): Don't return THIS.
1544 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1545 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1546 (read_member_functions): Likewise for opname.
1547 (read_tilde_fields): Use is_cplus_marker.
1548
1549 * defs.h (CPLUS_MARKER): Don't define.
1550 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1551 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1552 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1553 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1554 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1555
1556 * config/i386/tm-i386v4.h: Delete file.
1557 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1558 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1559 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1560 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1561 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1562 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1563 * config/i386/i386v4.mt (TM_FILE): Likewise.
1564 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1565
1566 2002-10-10 Marko Mlinar <markom@opencores.org>
1567
1568 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1569 accidentially not commited 2002-10-09
1570 * gdbarch.h, gdbarch.c: Re-generate.
1571
1572 2002-10-09 Marko Mlinar <markom@opencores.org>
1573
1574 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1575 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1576 * gdbarch.h, gdbarch.c: Re-generate.
1577
1578 2002-10-08 Petr Sorfa <petrs@caldera.com>
1579
1580 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1581
1582 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1583 so we can work on more than one compilation unit at a time. This
1584 helps prepare GDB to handle inter-CU die references.
1585 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1586 the code to be defined before struct comp_unit_head.
1587 (comp_unit_head): Added new members - offset, cu_head,
1588 begin_die, next and dwarf2_abbrevs.
1589 (dwarf2_abbrevs): Removed single static var; now member of
1590 struct comp_unit_head.
1591 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1592 members.
1593 (psymtab_to_symtab_1): Changed to work with the new
1594 struct comp_unit_head.
1595 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1596 constructs the dwarf2_abbrevs[] inside the cu_header.
1597 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1598 dwarf2_abbrev table to clean up.
1599 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1600 handling of dwarf2_abbrevs inside the cu_header.
1601 (read_partial_die): Now supports the call to the new
1602 dwarf2_lookup_abbrev.
1603 (read_full_die): Now supports the call to the new
1604 dwarf2_lookup_abbrev.
1605
1606 2002-10-06 Christopher Faylor <cgf@redhat.com>
1607
1608 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1609 insure that shell variables, such as "transformed_name" are propagated
1610 to later shell statements in rule.
1611
1612 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1613
1614 * config/i386/nm-i386sco.h: Add protection against
1615 multiple-inclusion. Include "i386/nm-i386v.h".
1616 (REGISTER_U_ADDR): Remove define.
1617 (i386_register_u_addr): Remove prototype.
1618
1619 2002-10-04 Michael Snyder <msnyder@redhat.com>
1620
1621 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1622 before treating it as a single-step event.
1623
1624 2002-10-03 Adam Fedor <fedor@gnu.org>
1625
1626 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1627 (objc_demangle): Remove assignment in if statements, Replace
1628 free with xfree.
1629 (add_msglist): Likewise.
1630 (end_msglist): Likewise.
1631 (complare_selectors): Likewise.
1632 (selectors_info): Likewise.
1633 (compare_classes): Likewise.
1634 (classes_info): Likewise.
1635 (print_object_command): Likewise.
1636 (find_objc_msgcall_submethod): Replace PTR with void *.
1637 * objc-lang.h: Remove check for __STDC__.
1638
1639 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1640
1641 * ui-out.h (ui_out_field_fmt_int): New prototype.
1642 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1643 of field width and alignment.
1644 * stack.c (print_frame_info_base): When printing frame level, use
1645 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1646 PR gdb/192
1647
1648 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1649
1650 * MAINTAINERS: Add self to Write After Approval list.
1651
1652 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1653
1654 * infcmd.c (interrupt_target_command_wrapper): Delete.
1655 (interrupt_target_command): Make non static.
1656 (nofp_registers_info): Make static.
1657 * stack.c (return_command_wrapper): Delete.
1658 (return_command): Make non static.
1659
1660 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1661
1662 * event-top.c (gdb_setup_readline): New function. Code moved from
1663 _initialize_event_loop().
1664 (_initialize_event_loop): Call gdb_setup_readline().
1665
1666 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1667
1668 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1669 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1670 * gdbarch.h, gdbarch.c: Re-generate.
1671
1672 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1673
1674 Fix PR gdb/778
1675 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1676 before recursing.
1677 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1678 of fill_in_vptr_fieldno.
1679
1680 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1681
1682 * inferior.h (registers_info, stepi_command, nexti_command,
1683 continue_command, interrupt_target_command): Export from infcmd.c.
1684 * frame.h (args_info, selected_frame_level_changed_hook,
1685 return_command): Export from stack.c.
1686 * v850ice.c (stepi_command, nexti_command, continue_command): use
1687 prototypes from inferior.h.
1688 * tracepoint.c (registers_info, args_info, locals_info): Use
1689 prototypes from frame.h and inferior.h.
1690 * Makefile.in (mi-main.o): Add dependency on frame.h.
1691
1692 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1693
1694 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1695 value in register 3 adjusted by ppc_gp0_regnum.
1696
1697 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1698
1699 2002-10-02 Marko Mlinar <markom@opencores.org>
1700
1701 * MAINTAINERS: Add myself to the Write After Approval list.
1702
1703 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1704
1705 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1706 of the section for the N64 ABI, fixed.
1707
1708 * config/mips/tm-irix6.h: Include solib.h.
1709
1710 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1711
1712 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1713 GNU operators.
1714
1715 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1716
1717 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1718 and that "mi0" syntax has been removed.
1719
1720 2002-09-30 David Carlton <carlton@math.stanford.edu>
1721
1722 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1723 * ppc-sysv-tdep.c: #include "gdb_string.h".
1724 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1725 pacify GCC.
1726
1727 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1728
1729 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1730 "vrsave"'s register number.
1731
1732 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1733
1734 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1735 use frame_unwind_signed_register to obtain the PC.
1736 (mips_frame_chain): Handle a generic dummy frame.
1737 (mips_init_extra_frame_info): When a generic dummy frame, don't
1738 re-compute the frame base.
1739 (mips_pop_frame): Handle generic dummy frames.
1740 (mips_gdbarch_init): When generic dummy frames, set
1741 use_generic_dummy_frames, push_dummy_frame to
1742 generic_push_dummy_frame, pc_in_call_dummy to
1743 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1744 generic_save_dummy_frame_tos.
1745
1746 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1747
1748 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1749 against TOP when TOP was explictly set.
1750 (generic_push_dummy_frame): Set TOP to zero.
1751
1752 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1753
1754 * event-loop.c (start_event_loop): Rename variable 'result' to
1755 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1756
1757 2002-09-30 Keith Seitz <keiths@redhat.com>
1758
1759 * gdb-events.sh (selected_thread_changed): New event.
1760 * gdb-events.c: Regenerated.
1761 * gdb-events.h: Regenerated.
1762
1763 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1764
1765 * MAINTAINERS: Add self to Write After Approval list.
1766
1767 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1768
1769 * disasm.c: New file.
1770 * disasm.h: New file.
1771 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1772 (compare_lines): Ditto.
1773 (dump_insns): Ditto.
1774 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1775 argument.
1776 (do_assembly_only): Ditto.
1777 (do_disassembly): Renamed to gdb_disassembly and moved to
1778 disasm.c. Sdded uiout argument.
1779 * Makefile.in: Add new files. Reorder SFILES list. Update
1780 dependencies. Include libgdb.a later in the insight executable.
1781
1782 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1783
1784 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1785 bfd/elf64-alpha-fbsd.c.
1786
1787 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1788
1789 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1790 i386gnu-tdep.c.
1791
1792 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1793
1794 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1795 __FUNCTION__.
1796 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1797 function name.
1798 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1799 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1800 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1801 (S_msg_sig_post_reply): Ditto.
1802
1803 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1804
1805 * sh-tdep.c (sh_use_struct_convention): Use definition according
1806 to ABI.
1807 (sh_push_arguments): Store in register with correct endianess.
1808 (sh_default_store_return_value): Ditto.
1809 (sh_gdbarch_init): Set sizeof long double to 8.
1810
1811 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1812
1813 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1814 Fix some whitespace problems.
1815
1816 2002-09-27 David Carlton <carlton@math.stanford.edu>
1817
1818 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1819 (mcore-tdep.o): Ditto.
1820 (ns32k-tdep.o): Ditto.
1821 (ns32knbsd-tdep.o): Ditto.
1822 (sh3-rom.o): Ditto.
1823 (vax-tdep.o): Ditto.
1824 * cris-tdep.c: #include "gdb_string.h"
1825 * mcore-tdep.c: Ditto.
1826 * ns32k-tdep.c: Ditto.
1827 * ns32knbsd-tdep.c: Ditto.
1828 * sh3-rom.c: Ditto.
1829 * vax-tdep.c: Ditto.
1830
1831 2002-09-27 David Carlton <carlton@math.stanford.edu>
1832
1833 * config/djgpp/fnchange.lst: Add entries for
1834 gdb/testsuite/gdb.c++/m-static files.
1835
1836 2002-09-27 Jim Wilson <wilson@redhat.com>
1837
1838 * MAINTAINERS: Add myself to the Write After Approval list.
1839
1840 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1841
1842 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1843
1844
1845 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1846
1847 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1848 frame.
1849
1850 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1851
1852 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1853 (rs6000_struct_return_address): Delete variable.
1854 (rs6000_store_struct_return): Update.
1855 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1856 deprecated_extract_struct_value_address.
1857 (rs6000_frame_align): New function.
1858 (rs6000_gdbarch_init): Set frame_align.
1859
1860 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1861
1862 From Grace Sainsbury <graces@redhat.com>:
1863 * Makefile.in (gdbtk-main.o): New target.
1864 (gdb.o): New target.
1865 (main_h): Define.
1866 (main.o): Update dependencies.
1867 (gdb$(EXEEXT)): Add gdb.o.
1868 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1869 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1870 (SUBDIR_GDBTK_CLEAN): Set.
1871 (install-gdbtk): Install the insight binary.
1872 (uninstall-gdbtk): New target.
1873 (all-gdbtk, clean-gdbtk): New rule.
1874 * top.c (use_windows): Default to zero.
1875 * main.c: Include "main.h".
1876 (main): Delete.
1877 (struct captured_main_args): Delete.
1878 (gdb_main): New function.
1879 * main.h: New file.
1880 * gdb.c: New File.
1881
1882 2002-09-25 Andrew Cagney <cagney@redhat.com>
1883
1884 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1885 (frame_map_regnum_to_name): New function.
1886 (frame_map_name_to_regnum): New function.
1887 * frame.h (frame_map_name_to_regnum): Declare.
1888 (frame_map_regnum_to_name): Declare.
1889 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1890 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1891 * parse.c: Do not include "builtin-regs.h".
1892 (target_map_name_to_register): Delete function.
1893 (write_dollar_variable): Use frame_map_name_to_regnum.
1894 * parser-defs.h (target_map_name_to_register): Delete declaration.
1895 * expprint.c: Include "frame.h".
1896 (print_subexp): Use frame_map_regnum_to_name.
1897 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1898 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1899
1900 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1901
1902 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1903 wasn't saved, and the next innermost frame is a dummy, return the
1904 dummy frame's link register.
1905
1906 2002-09-24 Jim Blandy <jimb@redhat.com>
1907
1908 Fix from Paul Breed:
1909 * main.c (captured_main): Add a `break' after the case for 'b'.
1910
1911 2002-09-24 Keith Seitz <keiths@redhat.com>
1912
1913 * varobj.c (c_type_of_child): Use get_target_type instead
1914 of TYPE_TARGET_TYPE.
1915
1916 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1917
1918 * source.c (get_current_or_default_source_symtab_and_line): Remove
1919 function.
1920 (set_default_source_symtab_and_line): New function. Attempts to
1921 determine a source file to list lines from if one is not currently
1922 defined.
1923 (get_current_source_symtab_and_line): Initialize sal.pc and
1924 sal.end fields.
1925 (set_current_source_symtab_and_line): Mark argument as const.
1926 * source.h: Update declarations and comments.
1927 * linespec.c (decode_line_1): Replace call to removed routine above.
1928 * stack.c (print_frame_info_base): Ditto.
1929 * cli/cli-cmds.c (edit_command): Ditto.
1930 (list_command): Ditto.
1931
1932 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1933
1934 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1935 sal.pc and sal.end fields.
1936 (get_current_or_default_source_symtab_and_line): Ditto.
1937 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1938 so we do not cause a new source symtab to be searched for (reverting an
1939 unintentional change from the 2002-09-20 patch).
1940 * scm-lang.c (scm_unpac): Ditto.
1941
1942 2002-09-21 Andrew Cagney <cagney@redhat.com>
1943
1944 * complaints.c (symfile_explanations): Remove new-line from
1945 ``isolated_message''.
1946 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1947 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1948
1949 2002-09-20 Nick Clifton <nickc@redhat.com>
1950
1951 * NEWS: Announce that V850EA ISA is no longer supported.
1952 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1953
1954 2002-09-20 David Carlton <carlton@math.stanford.edu>
1955
1956 * Makefile.in (c-lang.o): Correct dependencies.
1957 (utils.o): Gather dependencies.
1958 (charset.o): Move.
1959 * c-lang.c: #include "gdb_string.h"
1960
1961 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1962
1963 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1964 * cli/cli-cmds.c (list_command): New function. Implements the new
1965 cli edit command.
1966 (_init_cli_cmds): Add new command definition.
1967 * gdb.1: Document edit command.
1968 * doc/gdb.texinfo: Document edit command.
1969
1970 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1971
1972 * source.c: Make global variables current_source_symtab and
1973 current_source_line static.
1974 (list_command): Moved to cli/cli-cmds.c.
1975 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1976 (get_first_line_listed): New accessor function.
1977 (get_lines_to_list): New accessor function.
1978 (get_current_source_symtab_and_line): New function. Retrieves the
1979 position in the source code that we consider current.
1980 (get_current_or_default_source_symtab_and_line): New function.
1981 Like the above but attempts to determine a default position if one
1982 is not currently defined.
1983 (set_current_source_symtab_and_line): New function. Sets the source
1984 code position considered current and returns the previously set one.
1985 (clear_current_source_symtab_and_line): Reset stored information about
1986 a current source line.
1987 (_initialize_source): Remove registration for the "list" command and
1988 its alias.
1989 * source.h: Add declarations for the new functions above.
1990 * symtab.h: Remove declarations for the global variables mentioned
1991 above.
1992 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1993 obtain current source line.
1994 * linespec.c (decode_line_1): Ditto.
1995 * macroscope.c (default_macro_scope): Ditto.
1996 * scm-lang.c (scm_unpac): Ditto.
1997 * stack.c (print_frame_info_base): Ditto.
1998 * symfile.c (clear_symtab_users): Ditto.
1999 * symtab.c (decode_line_spec): Ditto.
2000 * cli/cli-cmds.c (list_command): Moved here from source.c.
2001 (ambiguous_line_spec): Moved here from source.c.
2002 (_init_cli_cmds): Add definition for "list" and its alias.
2003 * Makefile.in: Update dependencies.
2004
2005 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2006
2007 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2008 with what gcc thinks is correct.
2009
2010 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2011
2012 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2013 multiple register push instruction.
2014
2015 2002-09-19 Jim Blandy <jimb@redhat.com>
2016
2017 Add support for distinct host and target character sets.
2018 * charset.c, charset.h: New files.
2019 * c-exp.y: #include "charset.h".
2020 (yylex): Convert character and string literals to the target
2021 character set, before returning them as the semantic value of the
2022 token.
2023 * c-lang.c: #include "charset.h".
2024 (c_emit_char): Use charset-specific methods to recognize
2025 characters with backslash escape forms, to decide which characters
2026 to print literally and which to print using numeric escape
2027 sequences, and to convert target characters to host characters
2028 before printing.
2029 * utils.c: #include "charset.h".
2030 (no_control_char_error): New function.
2031 (parse_escape): Use charset-specific methods to recognize
2032 backslash escapes, parse `control character' notation, and convert
2033 characters from the host character set to the target character set.
2034 * configure.in: Set the default host character set.
2035 Check where to find iconv, and what its argument types might be.
2036 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2037 * Makefile.in (SFILES): List charset.c.
2038 (COMMON_OBS): List charset.o.
2039 (charset.o): New rule.
2040 (charset_h): New header dependency variable.
2041 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2042 (LIBICONV): New variable, set by configure.
2043 (CLIBS): Include $(LIBICONV) here.
2044 * aclocal.m4, config.in, configure: Regenerated.
2045
2046 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2047
2048 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2049 bison 1.35 warning.
2050
2051 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2052
2053 * gdb_mbuild.sh: New file.
2054
2055 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2056
2057 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2058
2059 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2060
2061 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2062 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2063 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2064 valops.c, value.h: Revert previous change.
2065
2066 2002-09-18 Michael Snyder <msnyder@redhat.com>
2067
2068 Preliminary support for Objective-C:
2069 * defs.h (language_objc): New enum value.
2070 (puts_filtered_tabular): Declaration only, exported from utils.c.
2071 (skip_quoted): Delete, declared in completer.h.
2072 * c-exp.y: Include completer.h.
2073 * p-exp.y: Ditto.
2074 * jv-exp.y: Ditto.
2075 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2076 New operator enum values.
2077 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2078 * language.c (binop_result_type): Handle language_objc case.
2079 (integral_type, character_type, string_type, boolean_type,
2080 structured_type, binop_type_check): Ditto.
2081 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2082 (struct objc_specific): Add to general_symbol_info.
2083 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2084 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2085 * parser-defs.h (struct objc_class_str): New struct type.
2086 (start_msglist, end_msglist, add_msglist): Declaration only,
2087 exported from objc-lang.c.
2088 * value.h (value_of_local, value_nsstring,
2089 call_function_by_hand_expecting_type): Exported from valops.c.
2090 * valops.c (find_function_addr): Export.
2091 (call_function_by_hand_expecting_type): New function.
2092 (value_of_local): New function.
2093 * symfile.c (init_filename_language_table): Add ".m" extension
2094 for Objective-C.
2095 * utils.c (puts_filtered_tabular): New function.
2096 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2097 (set/show demangle): Extend help-string to refer to ObjC.
2098 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2099 * stabsread.c (symbol_reference_defined): Objective-C symbols
2100 may contain colons: make allowances when scanning stabs strings
2101 for colons.
2102 (objc_find_colon): New function.
2103 * printcmd.c (address_info): If language == objc then print
2104 "self" instead of "this".
2105 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2106 OP_NSSTRING, and OP_SELF.
2107 (prefixify_subexp): Ditto.
2108 * source.c (print_source_lines): Mention objc in comment.
2109 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2110 method names.
2111
2112 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2113
2114 * complaints.h: Update copyright.
2115 (struct complaints): Declare.
2116 (struct complaint): Make `message' constant.
2117 (internal_complaint): Declare.
2118 (complaint): Declare.
2119 (complaint_root): Delete declaration.
2120 (symfile_complaints): Delete declaration.
2121 (struct complaints): Add opaque declaration.
2122 (clear_complaints): Add a complaints parameter.
2123 * complaints.c: Update copyright.
2124 (enum complaint_series): Define.
2125 (complaint_root): Delete.
2126 (struct complaints): Define.
2127 (complaint_sentinel, symfile_complaint_book): New variables.
2128 (symfile_explanations, symfile_complaints): New variables.
2129 New variables.
2130 (get_complaints): New function.
2131 (vcomplaint): New function.
2132 (complaint): New function.
2133 (internal_complaint): New function.
2134 (complain): Call vcomplain with symfile_complaint.
2135 (clear_complaints): Rewrite.
2136 (_initialize_complaints): Use add_setshow_command.
2137 * Makefile.in (complaints.o): Update dependencies.
2138 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2139 to call to clear_complaints.
2140 (new_symfile_objfile, reread_symbols): Ditto.
2141 (oldsyms_complaint): Delete.
2142 (empty_symtab_complaint, unknown_option_complaint): Delete.
2143 (free_named_symtabs): Use complaint instead of complain.
2144
2145 2002-09-18 Michael Snyder <msnyder@redhat.com>
2146
2147 Contributed by Apple Computer, Inc. Merged with current sources
2148 by Adam Fedor <fedor@doc.com> [cagney].
2149
2150 * objc-lang.c: First clean-up round: comments, indentation.
2151 * objc-lang.h: Ditto.
2152 * objc-lang.y: Ditto.
2153
2154 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2155
2156 * maint.c (maintenance_internal_error): Print the parameter as the
2157 error message.
2158 (maintenance_internal_warning): New function.
2159 (_initialize_maint_cmds): Add command `maint internal-warning'.
2160
2161 * defs.h (internal_warning, internal_vwarning): Declare.
2162 * utils.c (struct internal_problem): Define.
2163 (internal_vproblem): New function.
2164 (internal_warning): New function.
2165 (internal_vwarning): New function.
2166 (internal_warning_problem, internal_error_problem): New variables.
2167 (internal_verror): Just call internal_vproblem.
2168
2169 2002-09-18 Michael Snyder <msnyder@redhat.com>
2170
2171 * objc-lang.c: New file, support for Objective-C.
2172 Preliminary check-in, not yet integrated into gdb.
2173 * objc-lang.h: New file.
2174 * objc-exp.y: New file.
2175
2176 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2177
2178 * infrun.c (signal_stop_update): Convert definition to ISO C.
2179 (signal_print_update): Ditto.
2180 (signal_pass_update): Ditto.
2181 * inflow.c (terminal_save_ours): Ditto.
2182
2183 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2184 comments.
2185
2186 * config/djgpp/fnchange.lst: Handle name clashes between
2187 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2188 bfd/coff-tic80.c.
2189
2190 * i386-linux-tdep.h: Fix tipo.
2191
2192 2002-09-18 Adam Fedor <fedor@gnu.org>
2193
2194 * MAINTAINERS: Add myself to the Write After Approval list.
2195
2196 2002-09-18 Jim Blandy <jimb@redhat.com>
2197
2198 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2199 texthigh and textlow to reader-specific structs caused
2200 objfile_relocate to miss them. This is fixable, but the work that
2201 the change was supposed to prepare GDB for never got done anyway.
2202
2203 2002-09-18 David Carlton <carlton@math.stanford.edu>
2204
2205 * MAINTAINERS: Alphabetize Write After Approval list.
2206
2207 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2208
2209 Fix PR gdb/709
2210 * values.c (value_static_field): Call read_var_value.
2211
2212 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2213
2214 * valops.c (hand_function_call): Align the initial stack pointer
2215 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2216 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2217 return value.
2218 * mips-tdep.c (mips_frame_align): New function.
2219 (mips_gdbarch_init): Set frame_align.
2220 * gdbarch.sh (FRAME_ALIGN): New method.
2221 * gdbarch.h, gdbarch.c: Re-generate.
2222
2223 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2224
2225 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2226 registers.
2227
2228 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2229
2230 * NEWS: Mention that MIPS $fp behavior changed.
2231 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2232 reference to FP_REGNUM.
2233 (mipsnbsd_cannot_store_register): Ditto.
2234 * mips-linux-nat.c: Update copyright.
2235 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2236 (mips_linux_cannot_store_register): Ditto.
2237 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2238 * config/mips/tm-mips.h: Update copyright.
2239 (FP_REGNUM): Delete macro.
2240 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2241 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2242 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2243 (mips_r3041_reg_names, mips_r3051_reg_names)
2244 (mips_r3081_reg_names): Replace "fp" with "".
2245 Fix PR gdb/480.
2246
2247 2002-09-17 Theodore A. Roth <troth@verinet.com>
2248
2249 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2250 generic_read_register_dummy() (PR gdb/703).
2251 (avr_push_return_address): #if 0 out unused vars.
2252 (avr_gdbarch_init): Enable use of avr_push_return_address().
2253
2254 2002-09-17 Michael Snyder <msnyder@redhat.com>
2255
2256 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2257 RTE will take care of it.
2258
2259 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2260
2261 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2262 invalid, return SP_REGNUM.
2263
2264 2002-09-17 Michael Snyder <msnyder@redhat.com>
2265
2266 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2267 point registers without sign extension.
2268
2269 2002-09-17 Andrew Cagney <cagney@redhat.com>
2270
2271 * blockframe.c (deprecated_read_register_dummy): Rename
2272 generic_read_register_dummy.
2273 * frame.c (frame_unwind_signed_register): New function.
2274 (frame_unwind_unsigned_register): New function.
2275 * frame.h (frame_unwind_signed_register): Declare.
2276 (frame_unwind_unsigned_register): Declare.
2277 (deprecated_read_register_dummy): Rename
2278 generic_read_register_dummy.
2279
2280 * h8300-tdep.c (h8300_frame_chain): Update.
2281 (h8300_frame_saved_pc): Update.
2282 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2283 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2284 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2285 (s390_frame_chain): Update.
2286 * v850-tdep.c (v850_find_callers_reg): Update.
2287 (v850_frame_saved_pc): Update.
2288 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2289 (m32r_find_callers_reg): Update.
2290 (m32r_frame_saved_pc): Update.
2291 * sh-tdep.c (sh_find_callers_reg): Update.
2292 (sh64_get_saved_pr): Update.
2293 (sh_init_extra_frame_info): Update.
2294 (sh_init_extra_frame_info): Update.
2295 (sh64_init_extra_frame_info): Update.
2296 (sh64_init_extra_frame_info): Update.
2297 * mcore-tdep.c (mcore_find_callers_reg): Update.
2298 (mcore_frame_saved_pc): Update.
2299 (mcore_init_extra_frame_info): Update.
2300 * i386-tdep.c (i386_frame_saved_pc): Update.
2301 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2302 (ia64_init_extra_frame_info): Update.
2303 (ia64_init_extra_frame_info): Update.
2304 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2305 * cris-tdep.c (cris_init_extra_frame_info): Update.
2306 * avr-tdep.c (avr_frame_chain): Update.
2307 (avr_init_extra_frame_info): Update.
2308 (avr_frame_saved_pc): Update.
2309 * arm-tdep.c (arm_find_callers_reg): Update.
2310 (arm_init_extra_frame_info): Update.
2311 (arm_frame_saved_pc): Update.
2312
2313 2002-09-17 Tom Tromey <tromey@redhat.com>
2314
2315 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2316 is "'".
2317
2318 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2319
2320 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2321 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2322 NEXT_PROLOGUE_INSN.
2323 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2324 NEXT_PROLOGUE_INSN.
2325
2326 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2327
2328 * osfsolib.c: Remove file, replaced by solib-osf.c.
2329 * Makefile.in: Remove compilation rules for osfsolib.c.
2330
2331 2002-09-16 David Carlton <carlton@math.stanford.edu>
2332
2333 * cp-valprint.c (cp_print_class_method): Correct args to
2334 check_stub_method_group.
2335
2336 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2337
2338 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2339 `set architecture'. Unify naming convention of functions.
2340 (h8300_skip_prologue): Improve prologue analysis.
2341 (h8300_push_arguments): Rewritten to more closely match GCC's
2342 bizarre argument-passing behavior, along with the comment describing
2343 said behavior.
2344 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2345 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2346 sim, remote-e7000.c, remote-hms.c and remote.c
2347
2348 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2349
2350 * i386-tdep.c (gdb_print_insn_i386): Removed.
2351 (i386_print_insn): New function.
2352 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2353 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2354 tm_print_insn_info.
2355
2356 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2357
2358 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2359 zero.
2360
2361 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2362
2363 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2364 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2365 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2366
2367 2002-09-13 Christopher Faylor <cgf@redhat.com>
2368
2369 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2370
2371 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2372
2373 * gdbtypes.c (check_stub_method): Make static.
2374 (check_stub_method_group): New function.
2375 * gdbtypes.h: Update prototypes.
2376 * cp-support.c: New file.
2377 * cp-support.h: New file.
2378
2379 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2380 (update_method_name_from_physname): New function.
2381 (read_member_functions): Correct method names for operators
2382 and v3 constructors/destructors. Separate v2 constructors and
2383 destructors.
2384 * Makefile.in (stabsread.o): Update dependencies.
2385 (SFILES): Add cp-support.c.
2386 (COMMON_OBS): Add cp-support.o.
2387 (cp_support_h, cp-support.o): Add.
2388
2389 * cp-valprint.c (cp_print_class_method): Call
2390 check_stub_method_group instead of check_stub_method. Remove
2391 extraneous QUITs.
2392 * p-valprint.c (pascal_object_print_class_method): Likewise.
2393 * valops.c (search_struct_method): Likewise.
2394 (find_method_list, value_struct_elt_for_reference): Likewise.
2395
2396 2002-09-13 Andrew Cagney <cagney@redhat.com>
2397
2398 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2399 * gdbarch.h, gdbarch.c: Regenerate.
2400
2401 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2402
2403 * frame.c (find_saved_register): Delete function.
2404 * frame.h (find_saved_register): Delete declaration.
2405 Fix PR gdb/631.
2406
2407 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2408
2409 * mips-tdep.c (read_next_frame_reg): Re-hack using
2410 frame_register_unwind.
2411
2412 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2413
2414 * mips-tdep.c (mips_get_saved_register): Re-hack using
2415 frame_register_unwind.
2416
2417 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2418
2419 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2420 vector. Will be useful for Interix.
2421 * gdbarch.h, gdbarch.c: Regenerate.
2422
2423 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2424 name of the malloc function by NAME_OF_MALLOC.
2425
2426 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2427
2428 * value.h (find_function_in_inferior): Add const keyword to
2429 one of the parameters. Allows us to invoke this function with
2430 a const char *.
2431 * valops.c (find_function_in_inferior): Likewise.
2432
2433 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2434
2435 * exec.c (xfer_memory): Fix compilation warning with old versions
2436 of GCC.
2437 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2438
2439 2002-09-12 David Carlton <carlton@math.stanford.edu>
2440
2441 * symtab.h: Run through gdb_indent.h.
2442 Add 2002 to Copyright year list.
2443
2444 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2445
2446 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2447 mach constants.
2448 * MAINTAINERS: Add myself to write after approval list.
2449
2450 2002-09-11 J. Brobecker <brobecker@gnat.com>
2451
2452 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2453
2454 2002-09-11 J. Brobecker <brobecker@gnat.com>
2455
2456 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2457 Interix.
2458
2459 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2460
2461 * procfs.c (do_detach): Clear current signal, not just fault.
2462 Corrects problem with breakpoint trap signal leaking to detached
2463 process on Tru64.
2464
2465 2002-09-10 Michael Snyder <msnyder@redhat.com>
2466
2467 * buildsym.c (finish_block): Protect against null pointer.
2468
2469 2002-09-10 Andrew Cagney <cagney@redhat.com>
2470
2471 * infcmd.c (default_print_registers_info): Send all output to
2472 ``file'' instead of ``gdb_stdout''.
2473
2474 2002-09-10 Michael Snyder <msnyder@redhat.com>
2475
2476 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2477 LONGEST, and use signed register read (addresses are sign-
2478 extended for mips).
2479
2480 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2481
2482 * event-loop.c (gdb_do_one_event): Make public.
2483 * event-loop.h (gdb_do_one_event): Declare.
2484
2485 2002-09-10 Jeff Law <law@redhat.com>
2486
2487 * infttrace.c (child_resume): Simplify and rework to avoid
2488 TT_PROC_CONTINUE.
2489
2490 2002-09-09 Fred Fish <fnf@intrinsity.com>
2491
2492 * printcmd.c (print_scalar_formatted): "len" is the number of
2493 target bytes, NOT the number of target bits.
2494
2495 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2496
2497 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2498 * top.c (init_main): Set rl_terminal_name.
2499
2500 2002-09-08 Aidan Skinner <aidan@velvet.net>
2501
2502 * ada-lang.c (ada_array_bound, ada_type_match,
2503 _initialize_ada_language): Fix K&R definitions.
2504 * ada-tasks.c (get_current_task): Fix K&R definitions.
2505 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2506
2507 2002-09-07 Christopher Faylor <cgf@redhat.com>
2508
2509 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2510 Add XP.
2511
2512 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2513
2514 * i386-tdep.c (i386_register_virtual_type,
2515 i386_register_convertible, i386_register_convert_to_virtual,
2516 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2517 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2518 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2519 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2520 Don't set push_arguments twice.
2521
2522 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2523 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2524 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2525 sigtramp_end to NULL.
2526 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2527 defines.
2528 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2529
2530 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2531 whitespace.
2532
2533 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2534 * gdbarch.h, gdbarch.c: Re-generate.
2535 * blockframe.c (find_pc_sect_partial_function): Convert to use
2536 SIGTRAMP_START_P predicate.
2537
2538 2002-09-05 Michael Snyder <msnyder@redhat.com>
2539
2540 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2541 generic_dummy_frame method and old method. Also distinguish
2542 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2543 (arm_extract_return_value): Use new regcache method.
2544
2545 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2546 adjustment that doesn't conform to the ABI.
2547 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2548 saved regcache, not from current regcache.
2549
2550 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2551
2552 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2553 * README: Update.
2554
2555 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2556
2557 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2558 if arm_apcs_32 is false.
2559
2560 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2561
2562 GDB 5.3 branch created.
2563
2564 2002-09-03 Theodore A. Roth <troth@verinet.com>
2565
2566 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2567 generic_unwind_get_saved_register.
2568
2569 2002-09-03 David Carlton <carlton@math.stanford.edu>
2570
2571 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2572 argument (PR gdb/653). Update call to smash_to_method_type.
2573 (read_structure_scope): Update call to dwarf2_add_member_fn.
2574
2575 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2576
2577 * x86-64-linux-tdep.c: Include gdb_string.h
2578 * x86-64-linux-nat.c: Ditto.
2579
2580 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2581
2582 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2583 when YYDEBUG is set to 1.
2584 * c-exp.y: Likewise.
2585 * f-exp.y: Likewise.
2586 * jv-exp.y: Likewise.
2587 * m2-exp.y: Likewise.
2588 * p-exp.y: Likewise.
2589
2590 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2591
2592 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2593 dependency list.
2594 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2595 solib_svr4_fetch_link_map_offsets to
2596 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2597 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2598 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2599 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2600 solib-svr4.o, and solib-legacy.o.
2601 * config/i386/tm-nbsd.h: Include solib.h.
2602
2603 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2604
2605 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2606 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2607 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2608 comment noting that this needs its own target configuration.
2609 * config/i386/nbsd.mt: New file.
2610 * config/i386/nbsdaout.mt: Remove.
2611 * config/i386/nbsdelf.mt: Ditto.
2612 * config/i386/tm-nbsdaout.h: Ditto.
2613
2614 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2615
2616 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2617 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2618 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2619 tdep->sigtramp_end.
2620 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2621 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2622 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2623
2624 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2625
2626 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2627 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2628 * i386-tdep.h (i386bsd_init_abi): New prototype.
2629 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2630 function declaration.
2631 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2632 for NetBSD-a.out or NetBSD-ELF.
2633 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2634 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2635 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2636 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2637 and nbsd-tdep.h.
2638 (i386nbsd_pc_in_sigtramp): New function.
2639 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2640 i386nbsd_pc_in_sigtramp.
2641 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2642 and i386nbsdelf_init_abi OS ABI handlers.
2643 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2644 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2645
2646 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2647
2648 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2649 registers if the target really has them.
2650
2651 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2652
2653 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2654 than nbsd-tdep.h.
2655
2656 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2657
2658 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2659 list.
2660 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2661 (alphanbsd_skip_sigtramp_frame): New functions.
2662 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2663 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2664 to alphanbsd_sigcontext_addr.
2665
2666 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2667
2668 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2669 list.
2670 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2671 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2672 nbsd_pc_in_sigtramp.
2673 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2674 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2675 * nbsd-tdep.c: Include gdb_string.h.
2676 (nbsd_pc_in_sigtramp): New function.
2677 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2678 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2679 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2680 ppcnbsd_pc_in_sigtramp.
2681 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2682 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2683 shnbsd_pc_in_sigtramp.
2684 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2685 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2686 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2687
2688 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2689
2690 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2691 watchpoints to NULL.
2692 (insert_breakpoints): set val field of watchpoints if NULL.
2693
2694
2695 2002-08-29 Jim Blandy <jimb@redhat.com>
2696
2697 * symtab.c (lookup_symbol_aux): In the cases where we find a
2698 minimal symbol of an appropriate name and use its address to
2699 select a symtab to read and search, use `name' (as passed to us)
2700 as the demangled name when searching the symtab's global and
2701 static blocks, not the minsym's name.
2702
2703 2002-08-29 Keith Seitz <keiths@redhat.com>
2704
2705 * stack.c (print_frame_info_base): Always set current_source_symtab
2706 and current_source_line.
2707
2708 2002-08-29 Donn Terry <donnte@microsoft.com>
2709
2710 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2711
2712 2002-08-28 Keith Seitz <keiths@redhat.com>
2713
2714 * stack.c (select_frame): Add FIXME concerning selected-frame
2715 events.
2716 (select_frame_command): Send selected-frame-level-changed
2717 event notification, but only if the level actually changed.
2718 (up_silently_base): Add selected-frame-level-changed event
2719 notification.
2720 (down_silently_base): Likewise.
2721
2722 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2723
2724 * Makefile.in: Update dependencies for all gdb/*.c files.
2725
2726 2002-08-27 Tom Tromey <tromey@redhat.com>
2727
2728 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2729 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2730 Update dependencies.
2731 * i387-tdep.c: Include gdb_string.h.
2732 * osabi.c: Likewise.
2733 * i386-linux-nat.c: Likewise.
2734 * lin-lwp.c: Likewise.
2735 * ax-gdb.c: Likewise.
2736 * signals/signals.c: Likewise.
2737 * jv-valprint.c: Likewise.
2738 * p-lang.c: Likewise.
2739 * c-valprint.c: Likewise.
2740 * cp-abi.c: Likewise.
2741
2742 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2743
2744 * cli/cli-script.h (copy_command_lines): Export.
2745 * breakpoint.c: Include cli/cli-script.h.
2746 * Makefile.in (breakpoint.o): Update dependencies.
2747
2748 2002-08-26 Michael Snyder <msnyder@redhat.com>
2749
2750 * breakpoint.c (insert_breakpoints): Protect all references
2751 to 'process_warning'. Shorten long lines.
2752
2753 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2754
2755 * cli/cli-script.c (copy_command_lines): New function.
2756 * defs.h (copy_command_lines): Export.
2757 * testsuite/gdb.base/commands.exp: New tests for commands
2758 attached to a temporary breakpoint, and for commands that
2759 delete the breakpoint they are attached to.
2760
2761 2002-08-26 Michael Snyder <msnyder@redhat.com>
2762
2763 * breakpoint.c (bpstat_stop_status): Instead of copying the
2764 pointer to the breakpoint commands struct, make a new copy
2765 of the struct and point to that.
2766 (bpstat_clear): Free the commands struct.
2767 (bpstat_clear_actions): Free the commands struct.
2768 (bpstat_do_actions): Free the command actions. Also execute
2769 the local cleanups, instead of deleting them.
2770 (delete_breakpoint): Leave the commands field of the bpstat
2771 chain alone -- it will be freed later.
2772
2773 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2774
2775 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2776 deleted in 2002-08-20 commit. This function is still used by
2777 ppc-linux-nat.c.
2778
2779 2002-08-26 Keith Seitz <keiths@redhat.com>
2780
2781 * gdb-events.sh: Add selected-frame-level-changed event.
2782 * gdb-events.c: Regenerated.
2783 * gdb-events.h: Regenerated.
2784
2785 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2786
2787 Fix PR gdb/393:
2788 * inflow.c (terminal_save_ours): New function to save terminal
2789 settings.
2790 * inferior.h (terminal_save_ours): Declare.
2791 * target.c (debug_to_terminal_save_ours): New function.
2792 (cleanup_target): Defaults to_terminal_save_ours.
2793 (update_current_target): Inherit to_terminal_save_ours.
2794 (setup_target_debug): Set to_terminal_save_ours.
2795 * target.h (target_terminal_save_ours): New to save terminal settings.
2796 (target_ops): New member to_terminal_save_ours.
2797 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2798 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2799 * inftarg.c (init_child_ops): Likewise.
2800 * m3-nat.c (init_m3_ops): Likewise.
2801 * procfs.c (init_procfs_ops): Likewise.
2802 * wince.c (init_child_ops): Likewise.
2803 * win32-nat.c (init_child_ops): Likewise.
2804 * sol-thread.c (init_sol_thread_ops): Likewise.
2805
2806 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2807
2808 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2809 use regcache_* functions.
2810 (i386_gdbarch_init): Set store_return_value instead of
2811 deprecated_store_return_value.
2812
2813 * regcache.c (regcache_raw_write_signed,
2814 regcache_raw_write_unsigned): New functions.
2815 * regcache.h (regcache_raw_write_signed,
2816 regcache_raw_write_unsigned): New prototypes.
2817
2818 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2819
2820 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2821 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2822 source file dependencies. Cleanup corresponding generator rules.
2823
2824 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2825
2826 * regcache.h (register_offset_hack): Declare.
2827 (regcache_cooked_read_using_offset_hack): Declare.
2828 (regcache_cooked_write_using_offset_hack): Declare.
2829
2830 * regcache.c (register_offset_hack): New function.
2831 (regcache_cooked_read_using_offset_hack): New function.
2832 (regcache_cooked_write_using_offset_hack): New function.
2833 (regcache_dump): Check that the registers, according to their
2834 offset, are packed hard against each other.
2835 (cooked_xfer_using_offset_hack): New function.
2836
2837 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2838
2839 * regcache.c (struct regcache_descr): Add field register_type.
2840 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2841 in as a parameter
2842 (init_regcache_descr): Initialize register_type. Pass the descr
2843 to init_legacy_regcache_descr. Use register_type instead of
2844 REGISTER_VIRTUAL_TYPE.
2845 (register_type): New function.
2846 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2847 * regcache.h (register_type): Declare.
2848
2849 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2850
2851 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2852 instead of deprecated_store_return_value. Fix fallout from
2853 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2854
2855 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2856
2857 * regcache.c (max_register_size): New function.
2858 (init_legacy_regcache_descr): Ensure that max_register_size is
2859 large enough for REGISTER_VIRTUAL_SIZE.
2860 * regcache.h (max_register_size): Declare.
2861
2862 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2863
2864 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2865 store_return_value.
2866 (e500_extract_return_value): Change type of valbuf pointer to
2867 void.
2868
2869 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2870
2871 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2872 workaround.
2873
2874 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2875 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2876 long long) to prevent compiler warning on 64-bit systems.
2877
2878 2002-08-23 Andrew Cagney <cagney@redhat.com>
2879
2880 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2881 (DEPRECATED_STORE_RETURN_VALUE): New method.
2882 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2883 * gdbarch.h, gdbarch.c: Re-generate.
2884
2885 * values.c (set_return_value): Pass current_regcache to
2886 STORE_RETURN_VALUE.
2887 * arch-utils.h (legacy_store_return_value): Declare.
2888 * arch-utils.c (legacy_store_return_value): New function.
2889 (legacy_extract_return_value): Update parameters.
2890
2891 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2892 STORE_RETURN_VALUE.
2893 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2894 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2895 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2896 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2897 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2898 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2899 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2900 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2901 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2902 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2903
2904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2905 * i386-tdep.c (i386_extract_return_value): Update.
2906 * arch-utils.c (legacy_extract_return_value): Update.
2907 * frv-tdep.c (frv_gdbarch_init): Update.
2908 * cris-tdep.c (cris_gdbarch_init): Update.
2909 * d10v-tdep.c (d10v_gdbarch_init): Update.
2910 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2911 * m68k-tdep.c (m68k_gdbarch_init): Update.
2912 * mcore-tdep.c (mcore_gdbarch_init): Update.
2913 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2914 * s390-tdep.c (s390_gdbarch_init): Update.
2915 * sparc-tdep.c (sparc_gdbarch_init): Update.
2916 * sh-tdep.c (sh_gdbarch_init): Update.
2917 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2918 * v850-tdep.c (v850_gdbarch_init): Update.
2919 * avr-tdep.c (avr_gdbarch_init): Update.
2920 * ia64-tdep.c (ia64_gdbarch_init): Update.
2921 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2922 * vax-tdep.c (vax_gdbarch_init): Update.
2923 * alpha-tdep.c (alpha_gdbarch_init): Update.
2924 * arm-tdep.c (arm_gdbarch_init): Update.
2925 * mips-tdep.c (mips_gdbarch_init): Update.
2926 * i386-tdep.c (i386_gdbarch_init): Update.
2927
2928 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2929
2930 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2931 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2932
2933 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2934
2935 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2936 problems.
2937
2938 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2939
2940 * infrun.c (handle_inferior_event): Move a comment outside of a
2941 function call, in order to avoid indent reformatting this part
2942 of the code in an unreadable way.
2943
2944 2002-08-23 Grace Sainsbury <graces@redhat.com>
2945
2946 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2947 when breakpoints fail. Move general breakpoint error messages to
2948 insert_breakpoints.
2949 * breakpoint.c (insert_breakpoints): Change warnings when
2950 breakpoints are nto inserted to specify the type. Remove call to
2951 memory_error when hardware breakpoints can't be inserted. Remove
2952 multiple calls to warning so all messages are sent to the user at
2953 once.
2954 (delete_breakpoints): Make insert error messsages more explicit.
2955
2956 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2957
2958 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2959 gdbserver/ChangeLog.
2960
2961 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2962
2963 * i386-tdep.c: Include "objfiles.h".
2964 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2965 skip_trampoline_code.
2966 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2967 (CPLUS_MARKER): Define to '.'.
2968
2969 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2970 member.
2971 (linux_corefile_thread_callback): Increase args->num_notes.
2972 (linux_make_note_section): Initialize thread_args.num_notes, and
2973 use it to determine whether notes for any threads were created.
2974
2975 2002-08-23 Donn Terry <donnte@microsoft.com>
2976
2977 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2978 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2979 and PCUNKILL.
2980 (write_with_trace): Conditionalize out the switch branch handling
2981 PCSHOLD if the corresponding macro is not defined. Likewise for
2982 PRSABORT and PRSTOP.
2983 This change will be needed by the Interix port.
2984
2985 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2986
2987 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2988 write_register wherever possible instead of manipulating the
2989 register bytes directly.
2990 Assign VALUE_CONTENTS to a variable and use that.
2991 The GPR numbers are now dependent on the architecture.
2992
2993 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2994
2995 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2996 ev_offset fields.
2997 (skip_prologue): Add support for BookE/e500 instructions.
2998 (e500_extract_return_value): New function.
2999 (frame_get_saved_regs): Add support for saving ev registers and
3000 pseudo gpr's.
3001 (e500_store_return_value): New function.
3002 (rs6000_gdbarch_init): Move up default intializations of
3003 deprecated_extract_return_value and store_return_value. Overwrite
3004 init of store_return_value with e500 specific version.
3005 Set extract_return_value for e500.
3006
3007 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3008
3009 * blockframe.c (generic_call_dummy_register_unwind): Use
3010 regcache_cooked_read to catch cases in which the variable is
3011 stored in a pseudo register.
3012
3013 2002-08-22 Andrew Cagney <cagney@redhat.com>
3014
3015 * NEWS: Mention that the i960 has been made obsolete.
3016 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3017 i960-tdep.c
3018 (remote-nrom.o): Obsolete target.
3019 (remote-nindy.o, i960-tdep.o): Ditto.
3020 * remote-nrom.c: Make file obsolete.
3021 * remote-nindy.c, remote-vx960.c: Ditto.
3022 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3023 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3024 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3025 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3026 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3027 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3028 i960-*-vxworks* obsolete.
3029 * MAINTAINERS: Note that the i960 is obsolete.
3030
3031 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3032
3033 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3034 detach to allow reinitialization.
3035
3036 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3037
3038 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3039 attempt).
3040
3041 2002-08-22 Jim Blandy <jimb@redhat.com>
3042
3043 * coffread.c (coff_symfile_read): Don't try to read the line
3044 number table from disk if the image file doesn't have a symbol
3045 table; we'll never actually look at the info anyway, and Windows
3046 ships DLL's with bogus file offsets for the line number data.
3047
3048 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3049
3050 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3051 an e500 executable.
3052
3053 2002-08-21 Michael Snyder <msnyder@redhat.com>
3054
3055 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3056 (MSYMBOL_SIZE): Replace macro with function.
3057 (DEFAULT_MIPS_TYPE): Delete unused macro.
3058 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3059 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3060
3061 2002-08-21 Jim Blandy <jimb@redhat.com>
3062
3063 * valops.c (value_cast): Simplify and correct logic for doing a
3064 static cast from a pointer to a base class to a pointer to a
3065 derived class.
3066
3067 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3068
3069 * infcmd.c (default_print_registers_info): Replace
3070 do_registers_info.
3071 (registers_info): Use gdbarch_print_registers_info instead of
3072 DO_REGISTERS_INFO.
3073 * inferior.h (default_print_registers_info): Replace
3074 do_registers_info.
3075 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3076 (DO_REGISTERS_INFO): Change to a predicate function.
3077 * gdbarch.h, gdbarch.c: Regenerate.
3078
3079 2002-08-21 Keith Seitz <keiths@redhat.com>
3080
3081 * gdb-events.sh: Add target-changed event.
3082 * gdb-events.c: Regenerated.
3083 * gdb-events.c: Regenerated.
3084 * valops.c (value_assign): Add target-changed event notification
3085 to inlval_register, lval_memory, and lval_reg_frame_relative.
3086
3087 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3088
3089 * NEWS: Add an entry regarding the improvement of the next/step
3090 operation on Alpha Tru64 multi-processor machines.
3091
3092 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3093
3094 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3095 directores.
3096 * Makefile.in: Update all _h macro definitions.
3097 * Makefile.in (install-gdbtk): Move to install section.
3098 (rdi-share/libangsd.a): Move to end of file.
3099
3100 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3101
3102 * frame.c (frame_register_unwind): When a register, set addrp to
3103 the register's byte.
3104
3105 2002-08-20 Michael Snyder <msnyder@redhat.com>
3106
3107 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3108 used locally, so move them from the target machine header to here.
3109 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3110 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3111 Make static.
3112 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3113
3114 2002-08-20 Andrew Cagney <cagney@redhat.com>
3115
3116 * NEWS: Mention that the Apollo line was made obsolete.
3117 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3118 m68*-hp-hpux* obsolete.
3119 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3120 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3121 * buildsym.c (make_blockvector): Make static.
3122 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3123 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3124 (ALLDEPFILES): Remove dstread.c.
3125 (dstread.o): Obsolete make rule.
3126 * dstread.c: Makefile obsolete.
3127 * dst.h: Ditto.
3128 * config/m68k/hp300hpux.mt: Ditto.
3129 * config/m68k/hp300hpux.mh: Ditto.
3130 * config/m68k/hp300bsd.mt: Ditto.
3131 * config/m68k/hp300bsd.mh: Ditto.
3132 * config/m68k/apollo68b.mt: Ditto.
3133 * config/m68k/apollo68v.mh: Ditto.
3134 * config/m68k/apollo68b.mh: Ditto.
3135
3136 2002-08-20 Michael Snyder <msnyder@redhat.com>
3137
3138 * mips-tdep.c (mips_in_return_stub): Make static.
3139 (mips_gdbarch_init): Set in_solib_return_trampoline.
3140 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3141
3142 2002-08-20 Michael Snyder <msnyder@redhat.com>
3143
3144 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3145 * gdbarch.c, gdbarch.h: Regenerate.
3146 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3147 Add.
3148 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3149
3150 2002-08-20 Michael Snyder <msnyder@redhat.com>
3151
3152 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3153 (mips_gdbarch_init): Set skip_trampoline_code,
3154 in_solib_call_trampoline.
3155 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3156 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3157
3158 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3159
3160 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3161
3162 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3163 vector type for ev registers.
3164 (e500_pseudo_register_read): New function.
3165 (e500_pseudo_register_write): New function.
3166 (e500_dwarf2_reg_to_regnum): New function.
3167 (PPC_UISA_NOFP_SPRS): New macro.
3168 (PPC_EV_REGS): New macro.
3169 (PPC_GPRS_PSEUDO_REGS): New macro.
3170 (registers_e500): New register set for e500.
3171 (variants): Add e500 variant.
3172 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3173 before setting architectural dependent variations. Initialize ev
3174 registers numbers. Add case for e500 architecture. Set the
3175 number of pseudo registers.
3176
3177 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3178
3179 * rs6000-tdep.c: Clean up comments.
3180
3181 2002-08-20 Andrew Cagney <cagney@redhat.com>
3182
3183 * h8300-tdep.c: Re-indent file.
3184
3185 2002-08-20 Jim Blandy <jimb@redhat.com>
3186
3187 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3188 default for this.
3189
3190 2002-08-20 Keith Seitz <keiths@redhat.com>
3191
3192 * breakpoints.c (watch_command_1): Use internal breakpoint
3193 when setting a watchpoint_scope breakpoint.
3194
3195 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3196
3197 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3198 (build_builtin_type_vec64i): Ditto.
3199 (build_builtin_type_vec128): Ditto.
3200 (build_builtin_type_vec128i): Ditto.
3201
3202 2002-08-19 Michael Snyder <msnyder@redhat.com>
3203
3204 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3205 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3206 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3207 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3208 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3209 CALL_DUMMY_ADDRESS): Delete.
3210 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3211 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3212 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3213 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3214 push_return_address.
3215 (mips_register_raw_size, mips_eabi_use_struct_convention,
3216 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3217 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3218 mips_init_extra_frame_info, mips_eabi_push_arguments,
3219 mips_n32n64_push_arguments, mips_push_return_address,
3220 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3221 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3222
3223 2002-08-19 Michael Snyder <msnyder@redhat.com>
3224
3225 * mips-tdep.c (mips_frame_num_args): New function.
3226 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3227 frame_saved_pc, frame_args_address, frame_locals_address,
3228 frame_num_args, and frame_args_skip.
3229 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3230 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3231 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3232 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3233
3234 2002-08-20 Michael Snyder <msnyder@redhat.com>
3235
3236 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3237 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3238 * mips-tdep.c (mips_store_struct_return): New function.
3239 (mips_extract_struct_value_address): New function.
3240 (mips_gdbarch_init): Set store_struct_return and
3241 extract_struct_value_address.
3242
3243 2002-08-20 David Carlton <carlton@math.stanford.edu>
3244
3245 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3246 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3247 (read_file_scope): Check that line_header is nonzero before
3248 decoding macro information.
3249
3250 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3251
3252 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3253 flag the general-purpose registers as floating-point on targets
3254 that don't support the floating-point registers.
3255
3256 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3257
3258 * rs6000-tdep.c (altivec_register_p): Delete.
3259 (rs6000_do_altivec_registers): Delete.
3260 (rs6000_altivec_registers_info): Delete.
3261 (rs6000_do_registers_info): Delete.
3262 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3263 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3264
3265 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3266
3267 * infcmd.c (do_registers_info): Print vector registers in hex
3268 format only.
3269 (print_vector_info): Check that printing registers
3270 makes sense.
3271 (print_float_info): Ditto.
3272
3273 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3274
3275 * mips-tdep.c (mips_gdbarch_init): Update.
3276 (mips_o32_extract_return_value): Rewrite.
3277 (mips_o32_store_return_value): Rewrite.
3278 (mips_o32_xfer_return_value): New function.
3279 (mips_xfer_register): Tweak debug print message. Allow for
3280 buf_offset when dumping the value transfered.
3281
3282 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3283
3284 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3285 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3286 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3287 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3288 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3289
3290 2002-08-14 Michael Snyder <msnyder@redhat.com>
3291
3292 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3293
3294 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3295
3296 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3297 register.
3298 (P): New macro to define a register as a pseudo register.
3299 (R, R4, R8, R16, FR32, R64, R0): Updated.
3300 (struct variant): Add new fields for number of pseudo registers
3301 and number of total registers.
3302 (tot_num_registers): New macro replacing....
3303 (num_registers): ...deleted macro.
3304 (num_registers): New function.
3305 (num_pseudo_registers): New function.
3306 (variants): Update all variants to intialize new fields correctly.
3307 Postpone initialization of number of pseudo regs and real regs.
3308 (init_variants): New function.
3309 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3310 registers offsets.
3311
3312 2002-08-19 David Carlton <carlton@math.stanford.edu>
3313
3314 * valops.c (search_struct_field): Change error message to treat
3315 return value of 0 from value_static_field as meaning that field is
3316 optimized out.
3317 (value_struct_elt_for_reference): Ditto.
3318 * values.c (value_static_field): Treat an unresolved location the
3319 same as a nonexistent symbol. Fix PR gdb/635.
3320 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3321 enclosed. Fix PR gdb/574.
3322 * MAINTAINERS: Add self to Write After Approval list.
3323
3324 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3325
3326 * mips-tdep.c (mips_xfer_register): New function.
3327 (mips_n32n64_extract_return_value): Rewrite.
3328 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3329 instead of deprecated_extract_return_value.
3330
3331 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3332
3333 * rs6000-tdep.c (TDEP): Delete macro.
3334 (branch_dest): Replace use of TDEP macro with its body.
3335 (rs6000_pop_frame): Ditto.
3336 (rs6000_push_arguments): Ditto.
3337 (rs6000_skip_trampoline_code): Ditto.
3338 (rs6000_frame_saved_pc): Ditto.
3339 (rs6000_frame_chain): Ditto.
3340 (rs6000_register_name): Ditto.
3341 (rs6000_register_byte): Ditto.
3342 (rs6000_register_raw_size): Ditto.
3343 (rs6000_register_virtual_type): Ditto.
3344 (rs6000_register_convertible): Ditto.
3345 (rs6000_convert_from_func_ptr_addr): Ditto.
3346
3347 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3348
3349 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3350 conditionally.
3351 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3352 MIPS_LINUX_JB_ELEMENT_SIZE.
3353 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3354 for MAX_REGISTER_RAW_SIZE arrays.
3355 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3356 MIPS_LINUX_JB_ELEMENT_SIZE.
3357
3358 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3359
3360 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3361
3362 2002-08-19 Aidan Skinner <aidan@velvet.net>
3363
3364 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3365 ada-valprint.c ada-tasks.c.
3366 (YYFILES): Add ada-exp.y.
3367 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3368 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3369 (ada-exp.tab.o): New target.
3370
3371 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3372
3373 * regcache.c (regcache_xfer_part): New function.
3374 (regcache_raw_read_part): New function.
3375 (regcache_raw_write_part): New function.
3376 (regcache_cooked_read_part): New function.
3377 (regcache_cooked_write_part): New function.
3378 * regcache.h (regcache_raw_read_part): Declare.
3379 (regcache_raw_write_part): Declare.
3380 (regcache_cooked_read_part): Declare.
3381 (regcache_cooked_write_part): Declare.
3382
3383 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3384
3385 * remote.c (remote_open_1): Add async_p.
3386 (remote_async_open_1): Delete.
3387 (open_remote_target): Delete.
3388 (remote_open, extended_remote_open): Update calls to remote_open_1.
3389 (remote_async_open, extended_remote_async_open): Call
3390 remote_open_1 instead of remote_async_open_1.
3391
3392 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3393
3394 * blockframe.c: Fix a few coding standard violations.
3395
3396 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3397
3398 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3399 here from ...
3400 * config/i386/tm-i386sco5.h: ... here. File removed.
3401 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3402
3403 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3404 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3405 (TM_FILE): Set to tm-i386.h.
3406 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3407 * config/i386/tm-i386v.h: Remove file.
3408 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3409 instead of "i386/tm-i386v.h".
3410 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3411 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3412 "i386/tm-i386v.h".
3413 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3414 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3415 "i386/tm-i386.h".
3416
3417 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3418
3419 * config/i386/nm-i386v.h: Add protection against
3420 multiple-inclusion.
3421 (i386_register_u_addr): Remove prototype.
3422 (register_u_addr): New prototype.
3423 (REGISTER_U_ADDR): Redefine accordingly.
3424 * i386v-nat.c: Improve several comments.
3425 (i386_register_u_addr): Change signature and rename to
3426 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3427 ubase variable.
3428
3429 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3430
3431 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3432 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3433 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3434 deprecated_extract_return_value.
3435 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3436 rename mips_o32o64_push_arguments.
3437 (mips_gdbarch_init): Update.
3438 (mips_extract_return_value): Delete.
3439 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3440 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3441 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3442 (mips_n32n64_extract_return_value): Clone
3443 mips_extract_return_value.
3444 (mips_store_return_value): Delete.
3445 (mips_o32_store_return_value): Clone mips_store_return_value.
3446 (mips_o64_store_return_value): Clone mips_store_return_value.
3447 (mips_eabi_store_return_value): Clone mips_store_return_value.
3448 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3449
3450 2002-08-18 Aidan Skinner <aidan@velvet.net>
3451
3452 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3453 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3454
3455 2002-08-18 Aidan Skinner <aidan@velvet.net>
3456
3457 * ada-lang.c: Run through gdb_indent.sh.
3458 * ada-lang.h: Run through gdb_indent.sh.
3459 * ada-tasks.c: Run through gdb_indent.sh.
3460 * ada-typeprint.c: Run through gdb_indent.sh.
3461 * ada-valprint.c: Run through gdb_indent.sh.
3462
3463 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3464
3465 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3466 ABI.
3467
3468 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3469
3470 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3471
3472 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3473 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3474
3475 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3476 write_register_gen instead of write_register_bytes.
3477
3478 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3479 i[3456]-*-osf1mk* configurations have been made obsolete.
3480 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3481 i[3456]86-*-osf1mk* hosts obsolete.
3482 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3483 targets obsolete.
3484 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3485 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3486 config/i386/i386m3.mt, config/i386/nm-m3.h,
3487 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3488 config/i386/i386mk.mh, config/i386/i386mk.mt,
3489 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3490 obsolete.
3491 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3492 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3493 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3494
3495 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3496
3497 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3498 (hppa_value_returned_from_stack): Declare.
3499 (hppa_extract_return_value): Declare.
3500 * config/pa/hppa.mt: New file.
3501 * configure.tgt: Recognize hppa*-*-*.
3502 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3503
3504 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3505
3506 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3507 comment.
3508
3509 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3510
3511 * top.c (gdb_rl_operate_and_get_next): Make sure
3512 operate-and-get-next functions correctly even when the history
3513 list is completely filled.
3514
3515 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3516
3517 * MAINTAINERS (Target Instruction Set Architectures): Rename
3518 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3519 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3520 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3521 already listed under Host/Native.
3522
3523 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3524 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3525 mips*-*-*.
3526
3527 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3528
3529 * config/ia64/ia64.mt: New file.
3530 * config/alpha/alpha.mt: New file.
3531 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3532 ia64-linux-gnu. Mention that ia64-elf is broken.
3533 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3534
3535 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3536
3537 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3538 generic_func_frame_valid instead of func_frame_valid.
3539
3540 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3541
3542 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3543 procfs appears to be broken when debugging on multi-processor
3544 machines. So enable software single stepping in order to avoid
3545 using the procfs interface to do next/step operations, using
3546 internal breakpoints instead.
3547
3548 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3549 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3550 make this pc address equal to the value it would have if the
3551 system stepping capability was used. Also set a new flag used
3552 to ensure that we don't readjust the PC one more time later.
3553
3554 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3555 address by DECR_PC_AFTER_BREAK when software single step is
3556 in use for this architecture, as this has already been taken
3557 care of in handle_inferior_event().
3558
3559 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3560
3561 * infrun.c (handle_inferior_event): Minor reformatting, to make
3562 a rather long condition expression easier to read.
3563
3564 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3565
3566 * Makefile.in (gdbtk.o): Move to end of file.
3567 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3568 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3569 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3570 (gdbtk-wrapper.o, gdbres.o): Ditto.
3571
3572 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3573
3574 * Makefile.in (copying.o): Separate out compile rule.
3575 (hpux-thread.o, procfs.o, signals.o): Ditto.
3576 (v850ice.o, z8k-tdep.o): Ditto.
3577 (tui-file.o): Move to TUI section.
3578 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3579 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3580
3581 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3582
3583 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3584 skip_trampoline_code, for better namespace-proofing.
3585
3586 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3587
3588 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3589
3590 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3591
3592 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3593
3594 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3595 signal, check whether we hit a breakpoint before checking for a
3596 single step breakpoint. Otherwise, GDB fails to notice that a
3597 breakpoint has been hit when stepping onto a breakpoint.
3598
3599 2002-08-16 Keith Seitz <keiths@redhat.com>
3600
3601 * gdb-events.sh (clear_gdb_event_hooks): New function.
3602 * gdb-events.c: Regenerate.
3603 * gdb-events.h: Regenerate.
3604
3605 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3606
3607 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3608 not_a_sw_breakpoint.
3609 * breakpoint.h (bpstat_stop_status): Add parameter names.
3610
3611 2002-08-16 Grace Sainsbury <graces@redhat.com>
3612
3613 * remote.c (remote_insert_hw_breakpoint)
3614 (remote_remove_hw_breakpoint): Fix calculation of length field
3615 for Z-packet.
3616
3617 2002-08-15 Michael Snyder <msnyder@redhat.com>
3618
3619 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3620 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3621 (supply_fpregset): Ditto.
3622
3623 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3624 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3625 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3626 (TARGET_READ_SP): Delete.
3627 (DO_REGISTERS_INFO): Delete.
3628 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3629 Delete.
3630 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3631 from macros to functions.
3632
3633 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3634 (mips_register_convertible, mips_register_convert_to_virtual,
3635 mips_register_convert_to_raw): Make static.
3636 (mips_read_sp): New function.
3637 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3638 (mips_do_registers_info): Make static.
3639 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3640 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3641 (mips_register_convert_from_type, mips_register_convert_to_type):
3642 New functions.
3643 (mips_gdbarch_init): Set up function_start_offset,
3644 register_virtual_size, pc_in_sigtramp.
3645
3646 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3647
3648 * infcmd.c (vector_info): New function.
3649 (_initialize_infcmd): Add command "info vector".
3650 (print_vector_info): New function.
3651
3652 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3653 * gdbarch.h, gdbarch.c: Regenerate.
3654
3655 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3656
3657 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3658 ``print_all''. Only print vector registers when ``print_all''.
3659
3660 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3661
3662 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3663 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3664
3665 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3666 Add `args' parameter.
3667 * gdbarch.h, gdbarch.c: Regenerate.
3668
3669 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3670
3671 * infcmd.c (float_info): Call print_float_info.
3672 (print_float_info): New function. By default, print the
3673 floating-point registers.
3674
3675 * arch-utils.h (default_print_float_info): Delete declaration.
3676 * arch-utils.c (default_print_float_info): Delete function.
3677
3678 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3679
3680 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3681 out define.
3682
3683 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3684 FRAME.
3685
3686 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3687 * configure.host: Make i[3456]86-*-aix host obsolete.
3688 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3689 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3690 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3691 config/i386/xm-i386aix.h: Make files obsolete.
3692 * i386aix-nat.c: Make file obsolete.
3693 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3694 (i386aix-nat.o): Make target obsolete.
3695
3696 * config/i386/nm-gnu.h: Removed.
3697 * config/i386/nm-i386gnu.h: New file.
3698 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3699 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3700 Moved here from ...
3701 * config/i386/tm-i386gnu.h: ... here. Removed.
3702 * config/i386/xm-i386gnu.h: Removed.
3703 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3704 (NAT_FILE): Set to nm-i386gnu.h.
3705 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3706 * i386-tdep.c: New file.
3707 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3708 (i386gnu-tdep.o): Specify dependencies.
3709
3710 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3711
3712 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3713 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3714 Adjust a few comments to reflect reality a bit closer.
3715 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3716 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3717 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3718 target_insert_watchpoint, target_remove_watchpoint):
3719 Move defines to ...
3720 * config/i386/nm-i386sco5.h: ... here.
3721 (kernel_u_size): Add prototype. Improve a few comments and add
3722 protection against multiple inclusion.
3723
3724 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3725 out define.
3726
3727 * uw-thread.c (SP_ARG0): Define if not already defined.
3728 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3729
3730 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3731
3732 * config/i386/tm-i386.h: Don't include "regcache.h".
3733
3734 * i387-tdep.h (i387_print_float_info): New prototype.
3735 * i387-tdep.c (print_i387_value, print_i387_ext,
3736 print_i387_status_word, print_i387_control_word): Add `struct
3737 ui_file *' argument and use it for output.
3738 (i387_print_float_info): Renamed from i387_float_info. Add
3739 `struct gdbarch *' and `struct ui_file *' arguments and use the
3740 latter for output.
3741 * i386-tdep.c: Include "i387-tdep.h".
3742 (i386_gdbarch_init): Set print_float_info.
3743 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3744 (FLOAT_INFO): Remove define.
3745
3746 2002-08-13 Michael Snyder <msnyder@redhat.com>
3747
3748 * mips-tdep.c (mips_push_arguments): Rename to
3749 mips_eabi_push_arguments, and tune for EABI.
3750 (MIPS_REGS_HAVE_HOME_P): Delete.
3751 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3752 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3753 Delete references to mips_regs_have_home_p.
3754
3755 2002-08-14 Keith Seitz <keiths@redhat.com>
3756
3757 * Makefile.in (install-gdbtk): Create insight plugin directory.
3758 Install plugins.tcl file.
3759
3760 2002-08-14 Keith Seitz <keiths@redhat.com>
3761
3762 * configure.in: Move SUBDIRS to near top of the file so that
3763 --enable options may add things to it.
3764 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3765 * configure: Regenerate.
3766
3767 2002-08-13 Michael Snyder <msnyder@redhat.com>
3768
3769 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3770 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3771 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3772
3773 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3774
3775 * vax-tdep.c (vax_get_saved_register): Delete function.
3776 (vax_gdbarch_init): Update.
3777 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3778 (ns32k_gdbarch_init): Update.
3779 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3780 (alpha_gdbarch_init): Update.
3781
3782 2002-08-13 Andrew Cagney <cagney@redhat.com>
3783
3784 * regcache.c (init_regcache_descr): Overallocate the
3785 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3786 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3787 nr_raw_registers.
3788 (set_register_cached): Add range checking assertions. Use
3789 current_regcache.
3790
3791 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3792
3793 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3794 numbers for MMX registers.
3795
3796 2002-08-13 Andrew Cagney <cagney@redhat.com>
3797
3798 * i386-tdep.c (i386_gdbarch_init): Use
3799 generic_unwind_get_saved_register.
3800
3801 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3802
3803 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3804 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3805 target vector.
3806 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3807 Delete. Add comment regarding this now-deleted target method.
3808
3809 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3810
3811 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3812 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3813 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3814 real PC and the page number (if it's within the memory bank window).
3815 (m68hc11_pseudo_register_write): Likewise when saving.
3816 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3817 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3818 (m68hc11_register_raw_size): And use 32-bit for it.
3819 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3820 16K memory bank is used by the prog; also use the virtual pc.
3821
3822 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3823
3824 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3825 (m68hc11_gdbarch_init): Install it in gdbarch.
3826 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3827 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3828 (MSYMBOL_SIZE): New for documentation.
3829 (insn_return_kind): Enum to specify how a function returns.
3830 (frame_extra_info): Cleanup and record the return mode.
3831 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3832 register in address computation.
3833 (m68hc11_get_return_insn): New to obtain the return instruction used
3834 by the function.
3835 (m68hc11_frame_init_saved_regs): Take into account the return
3836 instruction used by the function for far and interrupt functions.
3837 (m68hc11_init_extra_frame_info): Take into account page register.
3838 (m68hc11_frame_args_address): Adjust according to the return mode.
3839 (show_regs): Print page register only when it's used.
3840
3841 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3842
3843 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3844 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3845 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3846 registers.
3847 (m68hc11_register_raw_size): Likewise.
3848
3849 2002-08-13 Andrew Cagney <cagney@redhat.com>
3850
3851 * i386-tdep.c (i386_register_name): Handle mmx registers.
3852 (mmx_regnum_p): New function.
3853 (i386_mmx_names): New array.
3854 (mmx_num_regs): New variable.
3855 (i386_pseudo_register_read): New function.
3856 (i386_pseudo_register_write): New function.
3857 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3858
3859 * regcache.c (regcache_raw_read_unsigned): New function.
3860 (regcache_raw_read_signed): New function.
3861 * regcache.h (regcache_raw_read_unsigned): Declare.
3862 (regcache_raw_read_signed): Declare.
3863
3864 2002-08-13 Andrew Cagney <cagney@redhat.com>
3865
3866 * regcache.c (regcache_raw_read_as_address): Delete function.
3867 (regcache_cooked_read_signed): New function.
3868 (regcache_cooked_read_unsigned): New function.
3869 * regcache.h (regcache_cooked_read_signed): Declare.
3870 (regcache_cooked_read_unsigned): Declare.
3871 (regcache_raw_read_as_address): Delete declaration.
3872
3873 * blockframe.c (generic_read_register_dummy): Use
3874 regcache_cooked_read_unsigned.
3875 * i386-tdep.c (i386_extract_struct_value_address): Use
3876 regcache_cooked_read_unsigned.
3877
3878 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3879
3880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3881 double sizes according to ELF ABI flags.
3882 (gdbarch_tdep): Record elf_flags.
3883
3884 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3885
3886 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3887 (m6812_prolog): They can appear in 68HC12 function prologue.
3888 (m68hc11_frame_chain): Cleanup.
3889
3890 2002-08-12 Andrew Cagney <cagney@redhat.com>
3891
3892 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3893 declarations.
3894 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3895 (i386_linux_register_raw_size): Delete function.
3896 (i386_linux_init_abi): Update.
3897 * i386-tdep.c (i386_register_raw_size): Delete function.
3898 (i386_register_byte): Delete function.
3899 (i386_gdbarch_init): Update.
3900 (i386_register_size): Delete array.
3901 (i386_register_offset): Delete array.
3902
3903 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3904 (REGISTER_RAW_SIZE): Delete macro.
3905 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3906 (REGISTER_BYTE): Delete macro.
3907
3908 2002-08-11 Aidan Skinner <aidan@velvet.net>
3909
3910 * ada-lang.c (ada_lookup_partial_symbol)
3911 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3912 prototype names so that grep ^func works properly.
3913
3914 * ada-lang.c (ada_array_element_type)
3915 (ada_lookup_partial_symbol): Fix typos in parameter list.
3916
3917 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3918 Fix prototype names so that grep ^func works properly.
3919
3920 2002-08-10 Andrew Cagney <cagney@redhat.com>
3921 Elena Zannoni <ezannoni@redhat.com>
3922 Martin M. Hunt <hunt@redhat.com>
3923
3924 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3925 (build_builtin_type_vec128i): Set the vector bit.
3926 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3927 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3928 (build_builtin_type_vec64): New function.
3929 (build_builtin_type_vec64i): New function.
3930 (build_gdbtypes): Initialize builtin_type_vec64 and
3931 builtin_type_vec64i.
3932
3933 2002-08-09 Andrew Cagney <cagney@redhat.com>
3934
3935 * regcache.c (regcache_dump): Compare the register offset
3936 with REGISTER_BYTE.
3937 * arch-utils.c (generic_register_byte): New function.
3938 * arch-utils.h (generic_register_byte): Declare.
3939 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3940 * gdbarch.h, gdbarch.c: Regenerate.
3941
3942 2002-08-09 Andrew Cagney <cagney@redhat.com>
3943
3944 * regcache.c: Include "gdbcmd.h"
3945 (_initialize_regcache): Add commands "maintenance print
3946 registers", "maintenance print raw-registers" and "maintenance
3947 print cooked-registers".
3948 (enum regcache_dump_what): Define.
3949 (dump_endian_bytes): New function.
3950 (regcache_dump): New function.
3951 (regcache_print): New function.
3952 (maintenance_print_registers): New function.
3953 (maintenance_print_raw_registers): New function.
3954 (maintenance_print_cooked_registers): New function.
3955 * Makefile.in (regcache.o): Update dependencies.
3956
3957 2002-08-09 Michael Snyder <msnyder@redhat.com>
3958
3959 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3960 (mips_push_arguments): Correct some comments. Use paddr_nz
3961 for printing addresses in debug output. Replace static
3962 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3963 (mips_n32n64_push_arguments): New function, cloned from
3964 mips_push_arguments and tuned for the n32/n64 ABI.
3965 (mips_push_register): Buffer needs dynamic allocation.
3966 (mips_print_register): Ditto.
3967 (do_gp_register_row): Ditto.
3968 (mips_store_return_value): Ditto.
3969 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3970
3971 2002-08-09 Don Howard <dhoward@redhat.com>
3972
3973 * memattr.c (mem_info_command): Print special case of upper bound
3974 as max CORE_ADDR + 1.
3975
3976 2002-08-08 Michael Snyder <msnyder@redhat.com>
3977
3978 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3979 returns structs by ref if they're too big to fit in two registers.
3980
3981 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3982
3983 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3984 saved regs value.
3985 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3986 mips_find_saved_regs().
3987 (mips_pop_frame): Likewise.
3988
3989 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3990
3991 * blockframe.c (frame_saved_regs_register_unwind): Revise
3992 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3993 frames are in use.
3994
3995 2002-08-09 Grace Sainsbury <graces@redhat.com>
3996
3997 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3998 T-packets; the 'a' is not taken as a register number.
3999 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4000 (remote_stopped_data_address): New functions; add to target
4001 vector.
4002 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4003 prototypes to match other implementations of this
4004 function. replace integer argument with pointer -- the length
4005 field in the Z-packet is the length of what is pointed to or 1 if
4006 pointer is null. Add to target vector.
4007 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4008 target vector.
4009
4010 From Mark Salter:
4011 * remote.c (remote_wait): Add support to extract optional
4012 watchpoint information from T-packet. Ignore unrecognized
4013 optional info in T-packet.
4014 (remote_async_wait): Ditto.
4015
4016 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4017
4018 * cli/cli-dump.c: Change fopen modes to use binary open modes
4019 as defined in include/fopen-bin.h throughout.
4020
4021 2002-08-08 Michael Snyder <msnyder@redhat.com>
4022
4023 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4024
4025 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4026
4027 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4028 assertion failure by returning early after a warning.
4029
4030 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4031
4032 * mips-tdep.c (mips_find_saved_regs): Make static.
4033 (mips_frame_init_saved_regs): New function.
4034 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4035 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4036 (mips_find_saved_regs): Delete declaration.
4037
4038 2002-08-08 Grace Sainsbury <graces@redhat.com>
4039
4040 * remote.c (remote_wait, remote_async_wait): Change
4041 thread_num from int to ULONGEST.
4042 (unpack_varlen_hex): Change result parameter from
4043 int * to ULONGEST *.
4044
4045 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4046
4047 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4048 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4049 powerpc*-*-*.
4050 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4051
4052 2002-08-08 Andrew Cagney <cagney@redhat.com>
4053
4054 * gcore.c (override_derive_stack_segment): Delete variable.
4055 (preempt_derive_stack_segment): Delete function.
4056 (derive_stack_segment): Delete function.
4057 (default_derive_stack_segment): Renamed to derive_stack_segment.
4058 (override_derive_heap_segment): Delete variable.
4059 (preempt_derive_heap_segment): Delete function.
4060 (derive_heap_segment): Delete function.
4061 (default_derive_heap_segment): Rename to derive_heap_segment.
4062
4063 2002-08-06 Michael Snyder <msnyder@redhat.com>
4064
4065 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4066 * mips-tdep.c (mips_EABI_use_struct_convention,
4067 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4068 New functions. (mips_use_struct_convention): Delete.
4069 (mips_gdbarch_init): set use_gdbarch_convention.
4070
4071 2002-08-06 Michael Snyder <msnyder@redhat.com>
4072
4073 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4074 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4075 mips_o32_reg_struct_has_addr): New functions.
4076 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4077
4078 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4079
4080 * regcache.c (pseudo_register): Delete function.
4081 (fetch_register): Delete function.
4082 (store_register): Delete function.
4083 (regcache_raw_read, legacy_read_register_gen): Use
4084 target_fetch_registers instead of fetch_register.
4085 (legacy_write_register_gen, regcache_raw_write): Use
4086 target_store_register instead of store_register.
4087 (write_register_bytes): Ditto.
4088
4089 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4090 (STORE_PSEUDO_REGISTER): Delete.
4091 * gdbarch.h, gdbarch.c: Regenerate.
4092
4093 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4094
4095 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4096 write dump file binary.
4097
4098 2002-08-05 Michael Snyder <msnyder@redhat.com>
4099
4100 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4101 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4102 (mips_gdbarch_init): Set N32 target to be mips64.
4103
4104 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4105
4106 * frame.c (find_saved_register): Break out of loop once saved
4107 register address is found. Don't mention sparc in loop comment
4108 anymore.
4109
4110 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4111
4112 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4113 mips_default_saved_regsize to 8.
4114
4115 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4116
4117 * gcore.c: Do not include <sys/procfs.h>.
4118 * Makefile.in (gcore.o): Update dependencies.
4119
4120 2002-08-06 Andrew Cagney <cagney@redhat.com>
4121
4122 * configure.tgt: Make arc-*-* obsolete.
4123 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4124 * MAINTAINERS: Make arc-elf obsolete.
4125 * arc-tdep.c: Make file obsolete.
4126 * config/arc/arc.mt: Ditto.
4127 * config/arc/tm-arc.h: Ditto.
4128
4129 2002-08-05 Theodore A. Roth <troth@verinet.com>
4130
4131 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4132
4133 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4134
4135 * mcore-tdep.c (mcore_gdbarch_init): Use
4136 generic_unwind_get_saved_register instead of
4137 generic_get_saved_register.
4138 * v850-tdep.c (v850_gdbarch_init): Ditto.
4139 * frv-tdep.c (frv_gdbarch_init): Ditto.
4140 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4141 * s390-tdep.c (s390_gdbarch_init): Ditto.
4142 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4143 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4144 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4145
4146 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4147
4148 * objfiles.h: Add missing #include "symfile.h"
4149
4150 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4151
4152 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4153
4154 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4155 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4156 of FIELD_BITSIZE.
4157
4158 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4159
4160 * NEWS: Cleanup and nitpick.
4161
4162 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4163
4164 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4165
4166 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4167
4168 * Makefile.in (gdbtk-bp.o): Update dependencies.
4169 (gdbtk-register.o): Ditto.
4170 (gdbtk-varobj.o): Ditto.
4171
4172 2002-08-03 Andrew Cagney <cagney@redhat.com>
4173
4174 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4175 m68hc11_fetch_pseudo_register.
4176 (m68hc11_pseudo_register_write): Replace
4177 m68hc11_store_pseudo_register.
4178 (m68hc11_gdbarch_init): Update.
4179
4180 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4181
4182 * gdbarch.sh: Include "gdb_string.h".
4183 * gdbarch.c: Regenerate.
4184
4185 * regcache.c: Include "gdb_string.h".
4186 * ax-general.c: Ditto.
4187 * varobj.c: Ditto.
4188 * std-regs.c: Ditto.
4189 * fbsd-proc.c: Ditto.
4190 * thread.c: Ditto.
4191
4192 * Makefile.in (regcache.o): Update dependencies.
4193 (thread.o, gdbarch.o): Ditto.
4194 (ax-general.o, gdbarch.o): Ditto.
4195 (varobj.o, std-regs.o): Ditto.
4196 (fbsd-proc.o): Specify dependencies.
4197
4198 2002-08-02 Andrew Cagney <cagney@redhat.com>
4199
4200 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4201 regnum.
4202 (regcache_cooked_write): Ditto.
4203
4204 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4205
4206 * regcache.c (regcache_cooked_read): New function.
4207 (regcache_cooked_write): New function.
4208 (read_register_gen): Rewrite using regcache_cooked_read.
4209 (write_register_gen): Rewrite using regcache_cooked_write.
4210
4211 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4212 Declare.
4213
4214 2002-08-02 Andrew Cagney <cagney@redhat.com>
4215
4216 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4217 Replace the architecture methods register_read and register_write.
4218 * gdbarch.h, gdbarch.c: Regenerate.
4219 * regcache.c (init_regcache_descr): Update.
4220 (read_register_gen): Update.
4221 (write_register_gen): Update.
4222 (supply_register): Update comment.
4223
4224 * sh-tdep.c (sh_gdbarch_init): Update.
4225 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4226 `regcache' and `gdbarch' parameters. Make `buffer' a void
4227 pointer. Update code.
4228 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4229 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4230 void pointer. Update code.
4231 (sh64_register_write): Delete.
4232 (sh4_register_read): Delete.
4233 (sh64_register_read): Delete.
4234 (sh4_register_write): Delete.
4235 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4236 void pointer, `to' parameter a void pointer.
4237 (sh_sh64_register_convert_to_raw): Ditto.
4238
4239 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4240
4241 * mips-tdep.c (mips_register_virtual_type): Use architecture
4242 invariant return values.
4243
4244 2002-08-01 Andrew Cagney <cagney@redhat.com>
4245
4246 * linux-proc.c: Include "gdb_string.h".
4247 * Makefile.in (linux-proc.o): Update dependency list.
4248
4249 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4250
4251 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4252 comment.
4253
4254 2002-08-01 Grace Sainsbury <graces@redhat.com>
4255
4256 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4257 to_insert_watchpoint, to_remove_watchpoint,
4258 to_stopped_by_watchpoint, to_stopped_data_address,
4259 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4260 target vecctor. Define their corresponding macros so they call
4261 them.
4262
4263 * target.c: Add default and debug versions of for
4264 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4265 to_insert_watchpoint, to_remove_watchpoint,
4266 to_stopped_by_watchpoint, to_stopped_data_address,
4267 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4268
4269 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4270
4271 * mips-tdep.c (mips_register_virtual_type): New function.
4272 (mips_gdbarch_init): Register mips_register_virtual_type()
4273 with gdbarch machinery.
4274 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4275 this file instead of tm-bigmips.h.
4276 (MIPS_REGSIZE): Delete this macro.
4277 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4278 multiarch version in mips-tdep.c will be found.
4279
4280 2002-08-01 Andrew Cagney <cagney@redhat.com>
4281
4282 * NEWS: Menion that CHILL has been made obsolete.
4283
4284 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4285 * stabsread.c (read_range_type): Ditto.
4286 * gdbtypes.h: Ditto.
4287 * language.c (binop_type_check): Ditto.
4288 (binop_result_type): Ditto.
4289 (integral_type): Ditto.
4290 (character_type): Ditto.
4291 (string_type): Ditto.
4292 (boolean_type): Ditto.
4293 (structured_type): Ditto.
4294 (lang_bool_type): Ditto.
4295 (binop_type_check): Ditto.
4296 * language.h (_LANG_chill): Ditto.
4297 * dwarfread.c (set_cu_language): Ditto.
4298 * dwarfread.c (CHILL_PRODUCER): Ditto.
4299 * dwarfread.c (handle_producer): Ditto.
4300 * expression.h (enum exp_opcode): Ditto.
4301 * eval.c: Ditto for comments.
4302 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4303 * expprint.c (print_subexp): Ditto.
4304 (print_subexp): Ditto.
4305 * valops.c (value_cast): Ditto.
4306 (search_struct_field): Ditto.
4307 * value.h (COERCE_VARYING_ARRAY): Ditto.
4308 * symfile.c (init_filename_language_table): Ditto.
4309 (add_psymbol_with_dem_name_to_list): Ditto.
4310 * valarith.c (value_binop): Ditto.
4311 (value_neg): Ditto.
4312 * valops.c (value_slice): Ditto.
4313 * symtab.h (union language_specific): Ditto.
4314 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4315 (SYMBOL_DEMANGLED_NAME): Ditto.
4316 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4317 * defs.h (enum language): Ditto.
4318 * symtab.c (got_symtab): Ditto.
4319 * utils.c (fprintf_symbol_filtered): Ditto.
4320
4321 * ch-typeprint.c: Make file obsolete.
4322 * ch-valprint.c: Make file obsolete.
4323 * ch-lang.h: Make file obsolete.
4324 * ch-exp.c: Make file obsolete.
4325 * ch-lang.c: Make file obsolete.
4326
4327 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4328 CHILL_LIB.
4329 (TARGET_FLAGS_TO_PASS): Ditto.
4330 (CHILLFLAGS): Obsolete.
4331 (CHILL): Obsolete.
4332 (CHILL_FOR_TARGET): Obsolete.
4333 (CHILL_LIB): Obsolete.
4334 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4335 ch-valprint.c.
4336 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4337 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4338 ch-lang.o.
4339 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4340 targets.
4341
4342 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4343
4344 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4345 This does not change anything at the moment, but will be helpful
4346 later when full Ada support is integrated.
4347
4348 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4349
4350 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4351 help message.
4352
4353 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4354
4355 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4356 and save it in a local variable. Use variable in later test.
4357
4358 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4359
4360 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4361 test. (Thanks to Daniel Jacobowitz.)
4362
4363 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4364
4365 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4366 (mips_abi_strings): Add "n64".
4367 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4368
4369 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4370
4371 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4372 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4373
4374 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4375
4376 * utils.c (host_pointer_to_address, address_to_host_pointer):
4377 Use gdb_assert() instead of explicit call to internal_error().
4378
4379 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4380
4381 * Makefile.in (rs6000-nat.o): Update dependencies.
4382
4383 From Nicholas Duffek:
4384 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4385 (aix-thread.o): New rule.
4386 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4387 * config/powerpc/aix432.mh: New file.
4388
4389 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4390
4391 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4392 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4393 (fetch_core_registers, ppc_linux_supply_gregset)
4394 (ppc_linux_supply_fpregset): New functions.
4395 (ppc_linux_regset_core_fns): New.
4396 (_initialize_ppc_linux_tdep): Call add_core_fns.
4397 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4398 and ppc_linux_supply_gregset.
4399 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4400 (supply_fpregset): Call ppc_linux_supply_fpregset.
4401 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4402 corelow.o.
4403 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4404
4405 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4406
4407 * symtab.c (lookup_symbol): Demangle before lowercasing.
4408
4409 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4410
4411 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4412 declaration.
4413 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4414 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4415 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4416 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4417 "gdb_string.h".
4418 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4419 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4420 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4421 (avr-tdep.o, mon960-rom.o): Ditto.
4422 (aout_stabs_gnu_h): Define.
4423 (symtab_h): Remove $(gdb_obstack_h).
4424
4425 2002-07-30 Jim Blandy <jimb@redhat.com>
4426
4427 Patch from David Carlton <carlton@math.stanford.edu>:
4428 * gdbinit.in: Move the `dir' commands that add GDB's own source
4429 directory to the search path to the end, so that the `gdb' source
4430 directory will be searched first.
4431
4432 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4433
4434 * gdb_obstack.h: New file.
4435 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4436 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4437 * objfiles.h: Include "gdb_obstack.h".
4438 * Makefile.in (gdb_obstack_h): Define.
4439 (symtab_h): Add $(gdb_obstack_h).
4440 (objfiles_h): Add $(gdb_obstack_h).
4441
4442 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4443 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4444 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4445 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4446 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4447 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4448 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4449 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4450
4451 * Makefile.in (bcache.o): Update dependencies.
4452 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4453 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4454 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4455 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4456 (stabsread.o, symfile.o, symmisc.o): Ditto.
4457 (symtab.o, typeprint.o, macroexp.o): Ditto.
4458 (macrotab.o, mdebugread.o): Ditto.
4459 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4460 (coff_ecoff_h, aout_aout64_h): Define.
4461 (aout_stabs_gnu_h, libaout_h): Define.
4462
4463 2002-07-29 Andrew Cagney <cagney@redhat.com>
4464
4465 * regcache.c (struct regcache_descr): Rename nr_registers to
4466 nr_cooked_registers. Revise comments describing the structure
4467 member fields.
4468 (init_regcache_descr): Update.
4469 (init_legacy_regcache_descr): Update.
4470 (read_register_gen, write_register_gen): When a cooked register in
4471 the raw register range, directly access the value from the raw
4472 register cache.
4473
4474 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4475
4476 * z8k-tdep.c: Do not include "obstack.h".
4477 * h8300-tdep.c, h8500-tdep.c: Ditto.
4478 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4479 * valprint.c, v850-tdep.c: Ditto.
4480 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4481 * mn10200-tdep.c: Ditto.
4482
4483 * Makefile.in (z8k-tdep.o): Update dependencies.
4484 (m68hc11-tdep.o, valprint.o): Ditto.
4485 (v850-tdep.o, d10v-tdep.o): Ditto.
4486 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4487 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4488 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4489 (sh_opc_h, gdb_sim_sh_h): Define.
4490 (elf_sh_h, elf_bfd_h): Define.
4491 (opcode_m68hc11_h): Define.
4492 (OPCODES_SRC, OPCODES_DIR): define.
4493 (OPCODES): Use $(OPCODES_DIR).
4494 (gdb_sim_d10v_h): Rename sim_d10v_h.
4495 (gdb_sim_arm_h): Rename sim_arm_h.
4496
4497 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4498
4499 * utils.c (host_pointer_to_address, address_to_host_pointer):
4500 Change internal_error() message to indicate function responsible
4501 for the error.
4502
4503 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4504
4505 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4506 calls to local_hex_string_custom().
4507
4508 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4509
4510 * irix5-nat.c: Move IRIX shared library support from here...
4511 * solib-irix.c: ...to here. Revised substantially to work with
4512 generic solib framework.
4513
4514 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4515 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4516 * mips-irix-tdep.c: New file.
4517
4518 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4519 (mips-irix-tdep.o, solib-irix.o): New rules.
4520 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4521 solib-irix.o.
4522 * config/mips/irix6.mt (TDEPFILES): Likewise.
4523 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4524
4525 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4526
4527 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4528 disabled (via ``#if 0'') includes.
4529
4530 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4531
4532 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4533 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4534 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4535 Add support for the fpscr register.
4536 * rs6000-nat.c (regmap, fetch_inferior_registers)
4537 (store_inferior_registers, fetch_core_registers): Likewise.
4538
4539 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4540
4541 * rs6000-nat.c (language.h): Include.
4542 (special_regs): Delete this array.
4543 (regmap): New function.
4544 (fetch_register, store_register): Use regmap() to map gdb
4545 register numbers to ptrace register numbers. Also, use
4546 outputs from regmap() to make decisions regarding type of
4547 ptrace() call to make. In particular, don't compare against
4548 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4549 (fetch_inferior_registers, store_inferior_registers): Where
4550 possible, obtain register numbers from tdep struct. Don't
4551 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4552 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4553 (LAST_UISA_SP_REGNUM): Delete.
4554
4555 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4556
4557 * rs6000-nat.c (ppc-tdep.h): Include.
4558 (fetch_registers, store_register, fetch_core_registers): Don't
4559 access registers[] directly. Instead, use supply_register() or
4560 regcache_collect() as appropriate.
4561 (find_toc_address): Format hex address with local_hex_string().
4562
4563 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4564
4565 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4566 bfd/elf32-frv.c.
4567
4568 2002-07-24 Tom Tromey <tromey@redhat.com>
4569
4570 * jv-exp.y: Marked all strings with _().
4571 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4572 internal_error.
4573 (MethodInvocation, CastExpression, parse_number, yyerror,
4574 java_type_from_name, push_expression_name, yylex): Typo fixes.
4575
4576 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4577
4578 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4579 (tee_file_flush, tee_file_write, tee_file_fputs)
4580 (tee_file_isatty): New.
4581 * ui-file.h (tee_file_new): Add prototype.
4582
4583 2002-07-24 Aidan Skinner <aidan@velvet.net>
4584
4585 * ada-lang.c: Change k&r style function definitions to prototyped
4586 form.
4587 * ada-typeprint.c: Change k&r style function definitions to prototyped
4588 form.
4589 * ada-valprint.c: Change k&r style function definitions to prototyped
4590 form.
4591
4592 2002-07-24 Andrew Cagney <cagney@redhat.com>
4593
4594 * README: Remove reference to remote-bug.
4595 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4596 remote-bug.c.
4597 (m88k-nat.o): Delete rule.
4598 (m88k-tdep.o): Delete rule.
4599 (remote-bug.o): Delete rule.
4600 * MAINTAINERS: Mark as obsolete.
4601 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4602 * m88k-tdep.c: Make file obsolete.
4603 * config/m88k/m88k.mh: Ditto.
4604 * config/m88k/delta88v4.mh: Ditto.
4605 * config/m88k/delta88v4.mt: Ditto.
4606 * config/m88k/delta88.mt: Ditto.
4607 * config/m88k/delta88.mh: Ditto.
4608 * remote-bug.c: Ditto.
4609 * config/m88k/tm-delta88.h: Ditto.
4610 * config/m88k/nm-delta88v4.h: Ditto.
4611 * config/m88k/xm-delta88.h: Ditto.
4612 * config/m88k/xm-dgux.h: Ditto.
4613 * config/m88k/tm-m88k.h: Ditto.
4614 * config/m88k/nm-m88k.h: Ditto.
4615 * config/m88k/tm-delta88v4.h: Ditto.
4616 * m88k-nat.c: Ditto.
4617 * cxux-nat.c: Ditto.
4618 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4619 and m88*-*-* obsolete.
4620 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4621 m88*-*-* obsolete.
4622
4623 2002-07-24 Andrew Cagney <cagney@redhat.com>
4624
4625 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4626 constant. Same for local pointer variables.
4627 (extract_signed_integer): Ditto.
4628 * defs.h (extract_unsigned_integer): Update.
4629 (extract_signed_integer): Update.
4630
4631 2002-07-24 Andrew Cagney <cagney@redhat.com>
4632
4633 * regcache.c (regcache_raw_write): Change buf parameter to a
4634 constant void pointer.
4635 (regcache_raw_read): Change buf parameter to a void pointer.
4636 (legacy_write_register_gen): Change myaddr parameter a constant
4637 void pointer.
4638 (supply_register): Change val parameter to a const void pointer.
4639 * regcache.h (regcache_raw_write): Update declaration.
4640 (regcache_raw_read): Update declaration.
4641 (supply_register): Update declaration.
4642
4643 2002-07-24 Tom Tromey <tromey@redhat.com>
4644
4645 * defs.h (gdb_readline_wrapper): Declare.
4646 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4647 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4648 * top.c (gdb_readline_wrapper): New function.
4649 (command_line_input): Use it.
4650
4651 2002-07-24 Andrew Cagney <cagney@redhat.com>
4652
4653 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4654 regcache_read and regcache_write.
4655 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4656 * regcache.c: Update.
4657 * sh-tdep.c (sh64_push_arguments): Update comment.
4658 (sh_pseudo_register_read): Update.
4659 (sh_pseudo_register_write): Update.
4660 (sh4_register_read): Update.
4661 (sh4_register_write): Update.
4662 (sh64_pseudo_register_read): Update.
4663 (sh64_pseudo_register_write): Update.
4664 (sh64_register_read): Update.
4665 (sh64_register_write): Update.
4666 * i386-tdep.c (i386_extract_return_value): Update.
4667 (i386_extract_struct_value_address): Update.
4668 (i386_extract_return_value): Update.
4669 * blockframe.c (generic_read_register_dummy): Update.
4670 (generic_call_dummy_register_unwind): Update
4671 * infrun.c (write_inferior_status_register): Update.
4672
4673 2002-07-23 Jim Blandy <jimb@redhat.com>
4674
4675 * parser-defs.h (expression_context_pc): Make this extern.
4676 (Thanks to Michael Snyder.)
4677
4678 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4679
4680 GDB 5.2.1 released from 5.2 branch.
4681 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4682 * README: Update to mention 5.2.1.
4683
4684 2002-07-23 Mark Salter <msalter@redhat.com>
4685
4686 * remote.c (remote_read_bytes): Fix check for error.
4687
4688 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4689
4690 * aix-thread.c (language.h): Include.
4691 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4692 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4693 Print newlines at end of debug messages.
4694 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4695 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4696
4697 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4698
4699 * aix-thread.c (ppc-tdep.h): Include.
4700 (special_register_p): New function.
4701 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4702 (store_regs_user_thread): Use register number information from
4703 gdbarch_tdep struct instead of hardcoded offsets relative to
4704 FIRST_UISA_SP_REGNUM.
4705 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4706 special_register_p() instead of using FPLAST_REGNUM and
4707 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4708 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4709 will be MQ's register number.
4710
4711 2002-07-22 Michael Snyder <msnyder@redhat.com>
4712
4713 * aix-thread.c (ops): Rename to aix_thread_ops.
4714 (base_ops): Rename to base_target.
4715 (ops_attach): Rename to aix_thread_attach.
4716 (ops_detach): Rename to aix_thread_detach.
4717 (ops_resume): Rename to aix_thread_detach.
4718 (ops_wait): Rename to aix_thread_wait.
4719 (ops_kill): Rename to aix_thread_kill.
4720 (init_ops): Rename to init_aix_thread_ops.
4721 (ops_fetch_register): Rename to aix_thread_fetch_register.
4722 (ops_store_register): Rename to aix_thread_store_register.
4723 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4724 (ops_thread_alive): Rename to aix_thread_thread_alive.
4725 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4726 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4727 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4728 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4729 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4730 (store_regs_lib): Rename to store_regs_user_thread.
4731 (store_regs_kern): Rename to store_regs_kernel_thread.
4732
4733 2002-07-22 Michael Snyder <msnyder@redhat.com>
4734
4735 * aix-thread.c (ops_prepare_to_store): Eliminate.
4736 (init_ops): Don't initialize ops.prepare_to_store.
4737 (store_regs_kern): Pre-fetch register buffers from child,
4738 because some registers may not be in the cache. Copy
4739 regs from register cache only if they are cached.
4740 (store_regs_lib): Copy regs from register cache only
4741 if they are cached.
4742 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4743 fill_gprs64): Ditto.
4744
4745 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4746
4747 * aix-thread.c (gdb_assert.h): Include.
4748 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4749 register sizes (from register cache) match size of buffer holding
4750 register data.
4751 (fill_sprs32): Change parameter types to match those in the ptrace()
4752 buffer.
4753 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4754 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4755
4756 2002-07-22 Michael Snyder <msnyder@redhat.com>
4757
4758 * aix-thread.c (supply_sprs64): Cosmetic change.
4759 (supply_sprs32): Cosmetic change.
4760 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4761 (fill_sprs64): Use regcache_collect instead of read_register.
4762 (store_regs_lib): Use regcache_collect instead of
4763 read_register. Use fill_sprs32 instead of fill_sprs64,
4764 if debugging a 32-bit architecture.
4765 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4766 out of the register cache, instead of passing a pointer into
4767 the register cache directly to ptrace. Use regcache_collect
4768 insteaad of read_register.
4769 (ops_prepare_to_store): Use target_read_registers instead
4770 of read_register_bytes.
4771
4772 2002-07-20 Aidan Skinner <aidan@velvet.net>
4773
4774 * MAINTAINERS: Add self under write after approval.
4775
4776 2002-07-20 Aidan Skinner <aidan@velvet.net>
4777
4778 * ada-tasks.c: Change k&r style function definitions to prototyped
4779 form.
4780
4781 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4782
4783 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4784 * x86-64-tdep.c: Include "objfiles.h".
4785 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4786 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4787
4788 2002-07-17 Michal Ludvig <michal@suse.cz>
4789
4790 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4791 (update_context): Initialise cfa variable.
4792
4793 2002-07-17 Michael Snyder <msnyder@redhat.com>
4794
4795 * aix-thread.c: Shorten some long lines.
4796 Bring comments into line with code spec.
4797
4798 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4799
4800 * infrun.c: Re-indent using gdb_indent.sh.
4801
4802 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4803
4804 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4805 Leave the indentation temporarily untouched, to minimize the diffs.
4806
4807 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4808
4809 * stabsread.c: Make os9k sections of the code obsolete,
4810 for real this time.
4811 * stabsread.h: Make os9k sections of the code obsolete.
4812
4813 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4814
4815 * linux-low.c (regsets_store_inferior_registers): Add free()
4816 at the end of a loop to prevent memory leak.
4817 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4818 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4819 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4820 line a comment.
4821 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4822
4823 2002-07-17 Jim Blandy <jimb@redhat.com>
4824
4825 * macrocmd.c (info_macro_command): Remove newline from error
4826 message.
4827
4828 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4829
4830 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4831 (sh_gdbarch_init): Use it for sh-dsp.
4832
4833 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4834
4835 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4836 64-bit DWARF2 format.
4837
4838 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4839
4840 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4841 <sys/proc.h> when not available.
4842
4843 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4844
4845 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4846 * stabsread.c: Make os9k sections of the code obsolete.
4847 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4848 * config/i386/i386os9k.mt: Make file obsolete.
4849 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4850 (COMMON_OBS): Remove os9kread.o
4851 (SFILES): Remove os9kread.c.
4852 (os9kread.o, remote-os9k.o): Make target obsolete.
4853 * remote-os9k.c: Make file obsolete.
4854 * os9kread.c: Make file obsolete.
4855 * Makefile.in
4856
4857 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4858
4859 * NEWS: Mention that the FR30 has been made obsolete.
4860 * fr30-tdep.c: Make file obsolete.
4861 * config/fr30/tm-fr30.h: Ditto.
4862 * config/fr30/fr30.mt: Ditto.
4863 * configure.tgt: Make fr30-*-elf obsolete.
4864 * MAINTAINERS: Make fr30-elf obsolete.
4865
4866 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4867
4868 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4869 found is not inside a section.
4870
4871 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4872
4873 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4874 strerror().
4875 (pdc_realloc): Use xrealloc() instead of realloc().
4876
4877 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4878
4879 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4880 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4881 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4882 macros.
4883
4884 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4885
4886 * aix-thread.c (ptrace_check): Eliminate goto.
4887 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4888 problem.
4889
4890 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4891
4892 * aix-thread.c (gdbcmd.h): Include.
4893 (DEBUG, DBG, DBG2, dbg): Eliminate.
4894 (debug_aix_thread): New static global.
4895 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4896 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4897 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4898 invocations to DBG and DBG2 macros to test against
4899 ``debug_aix_thread'' and call fprintf_unfiltered().
4900 (_initialize_aix_thread): Add new command "set debug aix-thread".
4901
4902 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4903
4904 From Gerhard Tonn <TON@de.ibm.com>:
4905 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4906 instead of supply_register.
4907
4908 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4909
4910 * dwarf2cfi.c: Include "gdb_assert.h".
4911 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4912 non-NULL.
4913 (update_context): Do not use __func__. Add missing ``break''.
4914 (update_context): Do not use __func__.
4915
4916 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4917
4918 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4919 and its setting. Set gdbarch instruction printing functions
4920 directly. For non-rs6000 case use new function
4921 gdb_print_insn_powerpc.
4922 (gdb_print_insn_powerpc): New function.
4923
4924 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4925
4926 * NEWS: Mention that the d30v has been marked obsolete.
4927 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4928 * configure.tgt: Mark d30v-*-* as obsolete.
4929 * d30v-tdep.c: Mark file as obsolete.
4930 * config/d30v/d30v.mt: Ditto.
4931 * config/d30v/tm-d30v.h: Ditto.
4932
4933 2002-07-13 Aidan Skinner <aidan@velvet.net>
4934
4935 * ada-tasks.c (add_task_entry): replace calls to
4936 malloc() with xmalloc
4937 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4938
4939 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4940 ada_finish_decode_line_1, all_sals_for_line
4941 ada_breakpoint_rewrite): replace calls to free() with xfree()
4942
4943 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4944
4945 From Nicholas Duffek (with minor changes by Martin Hunt,
4946 Louis Hamilton, and Kevin Buettner):
4947 * aix-thread.c: New file.
4948
4949 2002-07-12 Petr Sorfa <petrs@caldera.com>
4950
4951 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4952 complaint for invalid attribute class or form.
4953 (read_func_scope): DW_AT_frame_base
4954 better handling of DW_AT_block*.
4955 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4956 better handling of DW_AT_block*.
4957 (read_common_block): DW_AT_location
4958 better handling of DW_AT_block*.
4959 (read_partial_die): DW_AT_location better handling
4960 of DW_AT_block*.
4961 (new_symbol): DW_AT_external better handling of
4962 DW_AT_block*. Proper initialization of variable
4963 "addr".
4964 (attr_form_is_block): New function that returns true
4965 if the attribute's form is of DW_FORM_block*.
4966
4967 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4968
4969 * valops.c (find_method_list): Remove comment about
4970 removed STATIC_MEMFUNCP argument.
4971 (value_find_oload_method_list): Likewise.
4972
4973 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4974
4975 From Nicholas Duffek:
4976 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4977 target_new_objfile_hook.
4978
4979 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4980
4981 From Nicholas Duffek:
4982 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4983 csect.
4984
4985 2002-07-12 Andrew Cagney <cagney@redhat.com>
4986
4987 * MAINTAINERS: Mention --enable-sim-build-warnings.
4988 (m68hc11-elf): Disable sim build warnings.
4989 (m32r-elf): Mark as broken obsolete candidate.
4990 (x86_64-linux-gnu): Mark as buildable with -Werror.
4991 (arm-elf): Change -w to ``,'' which enables warnings but not
4992 -Werror.
4993
4994 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4995
4996 * bcache.h: Update copyright.
4997 (struct bstring, struct bcache): Move definition to "bcache.c".
4998 Replaced by opaque declaration.
4999 (bcache_xfree): Replace free_bcache.
5000 (bcache_xmalloc, bcache_memory_used): Declare.
5001
5002 * bcache.c: Update copyright.
5003 (struct bstring, struct bcache): Moved to here from "bcache.h".
5004 Update comments.
5005 (bcache_xmalloc, bcache_memory_used): New functions.
5006 (bcache_xfree): Replace function free_bcache.
5007
5008 * Makefile.in (objfiles.o): Add $(bcache_h).
5009 (objfiles_h): Remove $(bcache_h).
5010 (symfile.o): Add $(bcache_h).
5011
5012 * symmisc.c: Update copyright.
5013 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5014 (print_objfile_statistics): Use bcache_memory_used.
5015
5016 * symfile.c: Include "bcache.h".
5017 (reread_symbols): Use bcache_xfree.
5018 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5019 (add_psymbol_to_list): Pass psymbol_cache by value.
5020 (add_psymbol_with_dem_name_to_list): Ditto.
5021
5022 * objfiles.h: Update copyright.
5023 (struct bcache): Declare opaque. Do not include "bcache.h".
5024 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5025 bcache'' pointers.
5026 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5027
5028 * objfiles.c: Include "bcache.h". Update copyright.
5029 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5030 macro_cache.
5031 (free_objfile): Use bcache_xfree.
5032
5033 2002-07-11 Grace Sainsbury <graces@redhat.com>
5034
5035 * monitor.c (monitor_fetch_register): Make name a constant.
5036 (monitor_store_register): Same.
5037
5038 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5039
5040 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5041 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5042 (finish_block) For non-function blocks, hash the symbol table. For
5043 function blocks, mark the symbol table as unhashed.
5044 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5045 (msymbol_hash_iw): Likewise.
5046 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5047 value.
5048 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5049 (lookup_minimal_symbol): Likewise for both.
5050 * symtab.h (struct block): Add `hashtable' flag. Comment the
5051 hashtable.
5052 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5053 (ALL_BLOCK_SYMBOLS): Update.
5054 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5055 (struct symbol): Add `hash_next' pointer.
5056 * symtab.c (lookup_block_symbol): Search using the hash table when
5057 possible.
5058 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5059 (search_symbols, find_addr_symbol): Likewise.
5060
5061 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5062 (read_dst_symtab): Likewise.
5063 * jv-lang.c (get_java_class_symtab): Likewise.
5064 * mdebugread.c: Include "gdb_assert.h".
5065 (shrink_block): Assert that the block being modified is not hashed.
5066 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5067 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5068 symbols.
5069 (dump_symtab): Recognize hashed blocks.
5070 * printcmd.c (print_frame_args): Assert that function blocks do not
5071 have hashed symbol tables.
5072 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5073 (fill_in_ada_prototype, debug_print_block): Likewise.
5074 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5075
5076 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5077
5078 * stack.c (print_frame): Use result of frame_address_in_block()
5079 instead of fi->pc when evaluating symbols.
5080 (backtrace_command_1): Ditto.
5081
5082 2002-07-11 Andrew Cagney <cagney@redhat.com>
5083
5084 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5085 Make static.
5086
5087 * arm-tdep.c (arm_register_name): Make return type constant.
5088
5089 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5090
5091 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5092 prototype.
5093 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5094 * s390-tdep.c (s390_fp_regnum): Ditto.
5095 (s390_read_fp): Ditto.
5096 (s390_pop_frame): Ditto.
5097 (_initialize_s390_tdep): Ditto.
5098 * remote.c (get_remote_state): Ditto.
5099 * procfs.c (mappingflags): Ditto.
5100 * memattr.c (_initialize_mem): Ditto.
5101 * mcore-tdep.c (mcore_pop_frame): Ditto.
5102 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5103 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5104 * language.c (set_case_str): Ditto.
5105 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5106 * frv-tdep.c (new_variant): Ditto.
5107 (frv_stopped_data_address): Ditto.
5108 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5109 (context_alloc): Ditto.
5110 (frame_state_alloc): Ditto.
5111 (unwind_tmp_obstack_init): Ditto.
5112 (unwind_tmp_obstack_free): Ditto.
5113 (cfi_read_fp): Ditto.
5114 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5115 (cris_pop_frame): Ditto.
5116 * c-lang.c (scanning_macro_expansion): Ditto.
5117 (finished_macro_expansion): Ditto.
5118 (c_preprocess_and_parse): Ditto.
5119 * gdbarch.sh: Ditto.
5120 * gdbarch.h, gdbarch.c: Regenerate.
5121 * config/mn10200/tm-mn10200.h: Adjust indentation.
5122 * target.c: Adjust indentation.
5123 * symtab.h: Adjust indentation.
5124 * stabsread.h: Adjust indentation.
5125 * remote-es.c: Adjust indentation.
5126 * os9kread.c: Adjust indentation.
5127
5128 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5129
5130 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5131 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5132
5133 2002-07-10 Grace Sainsbury <graces@redhat.com>
5134
5135 * NEWS: Mention m68k, mcore multi-arching.
5136 * MAINTAINERS: Change status of m68k, mcore to reflect
5137 multi-arching.
5138
5139 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5140
5141 * valops.c (find_overload_match): Free oload_syms.
5142
5143 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5144
5145 Define HAVE_SYS_PROC_H if sys/proc.h exists
5146 * configure.in: Add check for sys/proc.h
5147 * config.in: Regenerate.
5148 * configure: Regenerate.
5149
5150 2002-07-09 Grace Sainsbury <graces@redhat.com>
5151
5152 * config/m68k/tm-m68k.h: Remove macros wrapped in
5153 #if !GDB_MULTI_ARCH.
5154
5155 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5156
5157 * config.in, configure: Regenerate.
5158
5159 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5160
5161 * dwarf2cfi.c: Include "gcore.h".
5162 (execute_stack_op): Fix implementation of the
5163 DW_OP_deref and DW_OP_deref_size operators by letting do their
5164 lookup in the target.
5165
5166 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5167
5168 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5169 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5170 tdep->sc_sp_offset.
5171
5172 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5173
5174 Fix PR gdb/595, gdb/602
5175 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5176 Don't call value_cast, just read the vtable pointer; update comments
5177 to match.
5178
5179 2002-07-05 Grace Sainsbury <graces@redhat.com>
5180
5181 * config/mcore/tm-mcore.h: Remove file.
5182 * config/mcore/mcore.mt: Remove definition of TM_FILE
5183 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5184
5185 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5186
5187 * i386bsd-tdep.c: Include "gdb_string.h".
5188
5189 2002-07-04 Grace Sainsbury <graces@redhat.com>
5190
5191 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5192 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5193 mcore-tdep.
5194 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5195 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5196 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5197 (RETVAL_REGNUM): Move macros from tm-mcore.h
5198 (mcore_reg_struct_has_addr): New function.
5199 (mcore_gdbarch_init): Added initializations for the macros removed
5200 from tm-mcore.h.
5201
5202 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5203
5204 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5205 traditonal string branding within the ELF header.
5206
5207 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5208
5209 * symtab.c (remove_params): New function.
5210 (make_symbol_overload_list): Use it instead of cplus_demangle.
5211 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5212
5213 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5214
5215 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5216
5217 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5218 New variables.
5219 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5220 and tdep->sigtramp_end.
5221 * i386obsd-nat.c: New file.
5222 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5223
5224 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5225 Don't call get_current_frame().
5226
5227 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5228
5229 * i386-nat.c (child_post_startup_inferior): New function
5230 calling i386_cleanup_dregs if
5231 I386_USE_GENERIC_WATCHPOINTS is defined.
5232 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5233 conditional to acknowledge that i386-nat.c has its
5234 own child_post_startup_inferior function.
5235
5236 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5237
5238 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5239 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5240 instead of MAX_REGISTER_RAW_SIZE.
5241 (i386_extract_return_value, i386_extract_struct_value_address):
5242 Convert to use regcache.
5243 (i386_gdbarch_init): Set max_register_raw_size and
5244 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5245 Set extract_return_value and extract_struct_value_address instead
5246 of their deprecated variants.
5247
5248 Convert i386 target to generic dummy frames.
5249 * i386-tdep.c: Include "symfile.h".
5250 (i386_frameless_signal_p): Consider a function to be frameless if
5251 the pc points at the first instruction of the function.
5252 (i386_frame_chain): Handle (generic) call dummies.
5253 (i386_frame_saved_pc): Likewise.
5254 (i386_frame_init_saved_regs): Remove code dealing with call
5255 dummies on the stack.
5256 (i386_push_dummy_frame): Removed.
5257 (i386_call_dummy_words): Removed.
5258 (i386_fix_call_dummy): Removed.
5259 (i386_push_return_address): New function.
5260 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5261 parameter, and don't call get_current_frame.
5262 (i386_pop_frame): New function.
5263 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5264 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5265 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5266 call_dummy_length to 0, set call_dummy_words to NULL, set
5267 sizeof_call_dummy_words to 0, set fix_call_dummy to
5268 generic_fix_call_dummy, set pc_in_call_dummy to
5269 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5270 generic_push_dummy_frame, set push_return_address to
5271 i386_push_return_address and set frame_chain_valid to
5272 generic_file_frame_chain_valid.
5273
5274 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5275
5276 * gdbarch.sh (struct regcache): Add opaque declaration.
5277 (EXTRACT_RETURN_VALUE): New architecture method.
5278 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5279 * gdbarch.h, gdbarch.c: Regenerate.
5280 * arch-utils.c (legacy_extract_return_value): New function.
5281 * arch-utils.h (legacy_extract_return_value): Declare.
5282 * values.c (value_being_returned): Re-enable code handling
5283 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5284 deprecated_grub_regcache_for_registers call to block handling
5285 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5286 (EXTRACT_RETURN_VALUE): Do not define.
5287
5288 2002-07-03 Grace Sainsbury <graces@redhat.com>
5289
5290 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5291 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5292 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5293 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5294 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5295 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5296 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5297 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5298 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5299 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5300 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5301 argument so the function fits the prototype in the architecture
5302 vector.
5303 (mcore_pop_frame): Remove argument so the function fits the
5304 prototype. Use get_current_frame instead of the argument.
5305 (mcore_push_arguments): Change type of struct_return so the
5306 function can be used in the architecture vector.
5307 (mcore_store_struct_return): Add.
5308 (mcore_frame_init_saved_regs): Add.
5309 (mcore_gdbarch_init): Add function calls to replace the macros
5310 removed from tm-mcore.h
5311
5312 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5313
5314 * infcmd.c (print_return_value): Remove compatibility code calling
5315 deprecated_grub_regcache_for_registers.
5316
5317 * values.c: Include "regcache.h".
5318 (value_being_returned): Update. Use
5319 deprecated_grub_regcache_for_registers to extract the register
5320 buffer address.
5321 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5322 ``struct regcache''.
5323 * Makefile.in (values.o): Add dependency on $(regcache_h).
5324
5325 * inferior.h (run_stack_dummy): Change type of second parameter to
5326 a ``struct regcache''.
5327 * valops.c (hand_function_call): Change type of retbuf to ``struct
5328 regcache''. Allocate using regcache_xmalloc, clean using
5329 make_cleanup_regcache_xfree.
5330 * infcmd.c (run_stack_dummy): Update. Use
5331 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5332
5333 * regcache.c (do_regcache_xfree): New function.
5334 (make_cleanup_regcache_xfree): New function.
5335 * regcache.h (make_cleanup_regcache_xfree): Declare.
5336
5337 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5338
5339 * event-top.c (command_line_handler): Don't read past
5340 beginning of buffer.
5341
5342 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5343
5344 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5345 struct frame_id.
5346 (varobj_create): Store frame_id for root.
5347 (varobj_gen_name): Use xasprintf.
5348 (varobj_update): Save and restore frame using get_frame_id() and
5349 frame_find_by_id().
5350 (create_child): Use xasprintf.
5351 (new_root_variable): Initialize frame_id.
5352 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5353 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5354 to prevent memory leak.
5355
5356 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5357
5358 * valops.c (hand_function_call): Move declaration of retbuf to
5359 start of function, allocate using malloc, add a cleanup but before
5360 the inf_status cleanup, cleanup the buffer. Rename local variable
5361 old_chain to inf_status_cleanup.
5362
5363 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5364
5365 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5366
5367 * cli/cli-decode.c (cmd_func_p): New function.
5368 (cmd_func): New function.
5369
5370 * command.h: Add cmd_func() and cmd_func_p().
5371
5372 2002-07-03 Grace Sainsbury <graces@redhat.com>
5373
5374 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5375 (REGISTER_SIZE): Remove.
5376 (MAX_REGISTER_RAW_SIZE): Remove.
5377 (REGISTER_VIRTUAL_TYPE): Remove.
5378 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5379 (REGISTER_NAME): Remove.
5380 (USE_GENERIC_DUMMY_FRAMES): Remove.
5381 (CALL_DUMMY): Remove.
5382 (CALL_DUMMY_START_OFFSET): Remove.
5383 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5384 (CALL_DUMMY_LOCATION): Remove.
5385 (FIX_CALL_DUMMY): Remove.
5386 (CALL_DUMMY_ADDRESS): Remove.
5387 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5388 (SAVE_DUMMY_FRAME_TOS): Remove.
5389 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5390 (mcore_register_virtual_type): New function.
5391 (mcore_register_byte): New function.
5392 (mcore_register_size): New function.
5393 (mcore_register_name): New function.
5394 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5395 macros removed from tm-mcore.h.
5396 (mcore_dump_tdep): Add.
5397 (_initialize_mcore_tdep): Add gdbarch_register call.
5398
5399 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5400
5401 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5402 frameless_look_for_prologue, such that we actually call this
5403 function.
5404
5405 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5406
5407 * frame.h (frame_address_in_block): New function.
5408
5409 * blockframe.c (frame_address_in_block): New function extracted
5410 from get_frame_block().
5411 (get_frame_block): Use frame_address_in_block().
5412 (block_innermost_frame): Use frame_address_in_block() to match
5413 the frame pc address against the block boundaries rather than
5414 the frame pc directly. This prevents a failure when a frame pc
5415 is actually a return-address pointing immediately after the end
5416 of the given block.
5417
5418 2002-07-02 Grace Sainsbury <graces@redhat.com>
5419
5420 * MAINTAINERS: Add self under write after approval.
5421
5422 2002-07-02 Grace Sainsbury <graces@redhat.com>
5423
5424 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5425 used in architecture vector. The default is
5426 m68k_local_breakpoint_from_pc.
5427 (m68k_local_breakpoint_from_pc): Add.
5428 (enum): Add register numbers from tm-m68k.h.
5429 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5430 vector.
5431 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5432 GDB_MULTI_ARCH_PARTIAL.
5433 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5434 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5435 m68k-tdep.c.
5436 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5437 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5438 to enum in m68k-tdep.c
5439
5440 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5441
5442 * solib-osf.c (open_map): Compute the list of shared libraries
5443 loaded by the inferior, rather than the list of libraries loaded
5444 by GDB itself. Otherwise, GDB ends up reading the symbols from
5445 the wrong shared libraries...
5446
5447 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5448
5449 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5450 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5451 macros.
5452 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5453 Remove functions.
5454 (FRAMELESS_SIGNAL): Remove function.
5455 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5456 i386_linux_saved_pc_after_call): Removed.
5457 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5458 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5459 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5460
5461 * i386-tdep.c (i386_frameless_signal_p): New function.
5462 (i386_frame_chain): Deal with frameless signals.
5463 (i386_sigtramp_saved_sp): New function.
5464 (i386_frame_saved_pc): Deal with frameless signals.
5465 (i386_saved_pc_after_call): Make sure the correct value is
5466 returned just after entry into a sigtramp.
5467 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5468 i386fbsd4_sc_sp_offset): New variables.
5469 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5470 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5471 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5472 similiar to what we already did for sc_pc_offset.
5473 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5474 tdep->sc_sp_offset.
5475
5476 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5477
5478 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5479
5480 * config/i386/tm-x86-64linux.h: New.
5481 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5482 definitions.
5483 * config/i386/nm-x86-64.h: Rename to ...
5484 * config/i386/nm-x86-64linux.h: ... this one.
5485 * config/i386/x86-64linux.mh: Reflect the above change.
5486
5487 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5488
5489 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5490 with sigcontext_addr. Add sc_sp_offset.
5491 (i386bsd_sigtramp_saved_pc): Remove prototype.
5492 (i386bsd_sicontext_addr): Add prototype.
5493 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5494 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5495 (i386_svr4_sigtramp_saved_pc): Removed.
5496 (i386_svr4_sigcontext_addr): New function.
5497 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5498 Initialize tdep->sigcontext_addr instead. Initialize
5499 tdep->sc_pc_offset and tdep->sc_sp_offset.
5500 (i386_gdbarch_init): Likewise.
5501 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5502 any more.
5503 (i386bsd_sigtramp_saved_pc): Remove function.
5504 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5505 Initialize tdep->sigcontext_addr instead. Initialize
5506 tdep->sc_pc_offset.
5507 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5508 of tdep->sigtramp_saved_pc.
5509 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5510 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5511 instead.
5512
5513 * i386-tdep.c (i386_frameless_function_invocation,
5514 i386_frame_num_args, i386_frame_init_saved_regs,
5515 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5516 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5517 i386_extract_return_value, i386_store_return_value,
5518 i386_extract_struct_value_address, i386_register_virtual_type,
5519 i386_register_convertible, i386_register_convert_to_virtual,
5520 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5521 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5522 static.
5523
5524 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5525
5526 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5527
5528 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5529 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5530 this macro. Include "value.h".
5531
5532 2002-06-30 Aidan Skinner <aidan@velvet.net>
5533
5534 * ada-exp.tab.c: remove as it's a generated file
5535 * ada-lex.c: remove as it's a generated file
5536
5537 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5538
5539 * config/i386/tm-i386.h (struct frame_info, struct
5540 frame_saved_regs, struct value, struct type): Remove forward
5541 declarations.
5542
5543 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5544 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5545 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5546 (FILL_FPXREGSET): Define.
5547
5548 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5549
5550 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5551 i[3456]86-*-netbsd* case.
5552 * config/i386/tm-obsd.h: Removed.
5553 * config/i386/obsd.mt: Removed.
5554 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5555 core-aout.o.
5556 (MH_CFLAGS): Add -DYYDEBUG=0.
5557
5558 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5559 i386nbsd_sc_pc_offset on OpenBSD too.
5560
5561 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5562 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5563 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5564 define.
5565 * i386bsd-tdep.c: Include "arch-utils.h".
5566 (i386bsd_aout_in_solib_call_trampoline): New function.
5567 (i386bsd_init_abi): Set in_solib_call_trampoline to
5568 i386bsd_aout_in_solib_call_trampoline.
5569 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5570 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5571
5572 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5573
5574 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5575 (struct obstack, struct bcache): Add opaque declarations.
5576 * Makefile.in (macrotab_h): Update
5577
5578 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5579
5580 * blockframe.c (generic_find_dummy_frame): Change return type to
5581 ``struct regcache''.
5582 (struct dummy_frame): Replace field ``registers'' with regcache, a
5583 struct regcache object.
5584 (generic_find_dummy_frame): Update.
5585 (generic_push_dummy_frame): Update. Use regcache_xfree,
5586 regcache_xmalloc and regcache_cpy.
5587 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5588 regcache_xfree.
5589 (deprecated_generic_find_dummy_frame): Update.
5590 (generic_read_register_dummy): Update. Use
5591 regcache_read_as_address.
5592 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5593 (generic_get_saved_register): Update. Use regcache_read.
5594
5595 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5596
5597 * Makefile.in (objfiles_h): Add $(bcache_h).
5598 * objfiles.h: Include "bcache.h".
5599
5600 * Makefile.in (symtab_h): Remove $(bcache_h).
5601 * symtab.h: Do not include "bcache.h".
5602
5603 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5604
5605 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5606 generic_func_frame_chain_valid.
5607
5608 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5609
5610 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5611 * config/i386/tm-fbsd.h: Likewise.
5612
5613 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5614
5615 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5616 generic_unwind_get_saved_register.
5617
5618 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5619
5620 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5621 * regcache.c (supply_register): Add missing argument to
5622 register_buffer call.
5623
5624 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5625
5626 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5627 Solaris /bin/grep does not not like it. From Peter Schauer.
5628
5629 2002-06-26 Tom Tromey <tromey@redhat.com>
5630
5631 * command.h (add_setshow_cmd): Declare.
5632 (add_setshow_cmd_full): Declare.
5633 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5634 returns void. Use add_setshow_cmd_full.
5635 (add_setshow_cmd_full): New function.
5636 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5637 (add_setshow_boolean_cmd): Likewise.
5638
5639 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5640
5641 * config/vax/tm-vax.h: Protect from multiple inclusion.
5642 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5643 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5644 * config/vax/tm-vaxbsd.h: ...here. New file.
5645 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5646
5647 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5648
5649 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5650 (BELIEVE_PCC_PROMOTION): Remove.
5651 (AP_REGNUM): Move to...
5652 * config/vax/nm-vax.h: ...here.
5653 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5654 (vax_breakpoint_from_pc): New function.
5655 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5656 and gdbarch_believe_pcc_promotion.
5657
5658 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5659
5660 * Makefile.in (vax_tdep_h): Define.
5661 (vax-tdep.o): Use $(vax_tdep_h).
5662 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5663 (vax_dump_tdep): New function.
5664 (_initialize_vax_tdep): Register vax_dump_tdep.
5665 * vax-tdep.h: Include osabi.h.
5666 (struct gdbarch_tdep): New.
5667
5668 2002-06-26 Andrew Cagney <cagney@redhat.com>
5669
5670 * frame.h (deprecated_generic_find_dummy_frame): Rename
5671 generic_find_dummy_frame.
5672 * blockframe.c (generic_find_dummy_frame): Make static.
5673 (deprecated_generic_find_dummy_frame): New function.
5674 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5675 generic_find_dummy_frame with deprecated_find_dummy_frame.
5676 (sh64_nofp_frame_init_saved_regs): Ditto.
5677 (sh_fp_frame_init_saved_regs): Ditto.
5678 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5679 (s390_frame_chain): Ditto.
5680 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5681
5682 2002-06-26 Grace Sainsbury <graces@redhat.com>
5683
5684 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5685 gdbarch vector are at the top.
5686 (NUM_REGS): Remove.
5687 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5688 (FRAME_ARGS_ADDRESS): Remove.
5689 (FRAME_LOCALS_ADDRESS): Remove.
5690 (FRAME_NUM_ARGS): Remove.
5691 (FRAME_ARGS_SKIP): Remove.
5692 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5693 (m68k_gdbarch_init): Add gdbarch initializations for macros
5694 undefined in tm-m68k.h
5695
5696 2002-06-26 Grace Sainsbury <graces@redhat.com>
5697
5698 * monitor.h: Add the function regname to monitor_ops
5699 structure. This way NUM_REGS does not have to be a constant.
5700 * monitor.c (monitor_fetch_register): Added support for regname
5701 function. The function is called if the array regnames is NULL.
5702 (monitor_store_register): Same.
5703 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5704 regnames array.
5705 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5706 cpu32bug_cmds.regname to point to new function.
5707 * abug-rom.c (abug_regname): Same as above.
5708 (init_abug_cmds): Same.
5709 * dbug-rom.c (dbug_regname): Same as above.
5710 (init_dbug_cmds): Same.
5711 * remote-est.c (est_regname): Same.
5712 (init_est_cmds): Same.
5713 * rom68k-rom.c (rom68k_regname): Same.
5714 (init_rom68k_cmds): Same.
5715
5716 2002-06-25 Tom Tromey <tromey@redhat.com>
5717
5718 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5719
5720 2002-06-25 Andrew Cagney <cagney@redhat.com>
5721
5722 * infrun.c (stop_registers): Change variable's type to ``struct
5723 regcache'''.
5724 (xmalloc_inferior_status): Delete function.
5725 (free_inferior_status): Delete function.
5726 (normal_stop): Use regcache_cpy.
5727 (struct inferior_status): Change type of fields ``stop_registers''
5728 and ``registers'' to ``struct regcache''.
5729 (write_inferior_status_register): Use regcache_write.
5730 (save_inferior_status): Instead of calling
5731 xmalloc_inferior_status, allocate the inf_status buffer directly.
5732 Use regcache_dup_no_passthrough and regcache_dup to save the
5733 buffers.
5734 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5735 Replace the stop_registers regcache instead of overriding it. Use
5736 regcache_xfree. Instead of calling free_inferior_status, xfree
5737 the buffer directly.
5738 (discard_inferior_status): Use regcache_xfree. Instead of calling
5739 free_inferior_status, xfree the buffer directly.
5740 (build_infrun): Use regcache_xmalloc.
5741 (_initialize_infrun): Delete redundant call to build_infrun.
5742
5743 * Makefile.in (infcmd.o): Add $(regcache_h).
5744
5745 * infcmd.c: Include "regcache.h".
5746 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5747 obtain the address of `stop_registers' register buffer.
5748 (print_return_value): Ditto.
5749
5750 * inferior.h (struct regcache): Add opaque declaration.
5751 (stop_registers): Change variable's declared type to ``struct
5752 regcache''.
5753
5754 2002-06-24 Tom Tromey <tromey@redhat.com>
5755
5756 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5757 * target.c (initialize_targets): Fixed typo in
5758 trust-readonly-sections `show' documentation.
5759
5760 * main.c: Marked all strings with _().
5761
5762 2002-06-24 Don Howard <dhoward@redhat.com>
5763
5764 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5765 that means max CORE_ADDR+1.
5766 (lookup_mem_region): Ditto.
5767 (mem_info_command): Ditto.
5768
5769 2002-06-24 Grace Sainsbury <graces@redhat.com>
5770
5771 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5772 (REGISTER_BYTES_OK): Remove.
5773 (REGISTER_BYTES): Remove.
5774 (STORE_STRUCT_RETURN): Remove.
5775 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5776 (STORE_RETURN_VALUE): Remove.
5777 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5778 (FRAME_CHAIN): Remove.
5779 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5780 (FRAME_SAVED_PC): Remove.
5781 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5782 (m68k_store_struct_return): Add.
5783 (m68k_deprecated_extract_return_value): Add.
5784 (m68k_deprecated_extract_struct_value_address): Add.
5785 (m68k_store_return_value): Add.
5786 (m68k_frame_chain): Add.
5787 (m68k_frameless_function_invocation): Add.
5788 (m68k_frame_saved_pc): Add.
5789 (m68k_gdbarch_init): added set_gdbarch calls for new
5790 functions and deleted macros.
5791
5792 2002-06-23 Tom Tromey <tromey@redhat.com>
5793
5794 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5795 (ALLDEPFILES): Likewise.
5796 (udiheaders): Removed.
5797 (udip2soc.o): Likewise.
5798 (udi2go32.o): Likewise.
5799 (udr.o): Likewise.
5800 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5801
5802 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5803
5804 * infrun.c (_initialize_infrun): Delete unnecessary call to
5805 build_infrun.
5806
5807 * regcache.h: Update comments describing the regcache_cpy family
5808 of functions.
5809 (regcache_save, regcache_restore): Delete declaration.
5810 (regcache_save_no_passthrough): Delete declaration.
5811 (regcache_restore_no_passthrough): Delete declaration.
5812 * regcache.c (regcache_save): Delete function.
5813 (regcache_save_no_passthrough): Delete function.
5814 (regcache_restore): Delete function.
5815 (regcache_restore_no_passthrough): Delete function.
5816
5817 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5818
5819 * config/m68k/tm-m68k.h: Fix typo.
5820 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5821 (m68k_frame_init_saved_regs): Declare.
5822
5823 2002-06-21 Jim Blandy <jimb@redhat.com>
5824
5825 Remove some vestiges of Harris 88k support.
5826 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5827 register numbering quirk.
5828 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5829 odd symbols occurring in Harris 88k ELF targets.
5830
5831 2002-06-21 Tom Tromey <tromey@redhat.com>
5832
5833 * gdb_locale.h: New file.
5834 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5835 (defs_h): Added gdb_locale.h.
5836 * configure, config.in: Rebuilt.
5837 * configure.in (PACKAGE): Define.
5838 * defs.h: Include gdb_locale.h.
5839 * main.c (captured_main): Call setlocale, bindtextdomain,
5840 textdomain.
5841
5842 2002-06-21 Dave Brolley <brolley@redhat.com>
5843
5844 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5845 * config/frv/frv.mt: New file.
5846 * config/frv/tm-frv.h: New file.
5847 * configure.tgt: Support frv-*-*.
5848 * Makefile.in (frv-tdep.o): New target.
5849 * frv-tdep.c: New file.
5850 * NEWS: Mention frv.
5851
5852 2002-06-21 Dave Brolley <brolley@redhat.com>
5853
5854 * MAINTAINERS: Add self to "Write After Approval" list.
5855
5856 2002-06-21 Grace Sainsbury <graces@redhat.com>
5857
5858 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5859 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5860 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5861 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5862 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5863
5864 * m68k-tdep.c: Include arch-utils.h
5865 (m68k_register_raw_size): Add.
5866 (m68k_register_virtual_size): Add.
5867 (m68k_register_virtual_type): Add.
5868 (m68k_register_name): Add.
5869 (m68k_stack_align): Add.
5870 (m68k_register_byte): Add.
5871 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5872 tm-m68k.h.
5873
5874 2002-06-21 Grace Sainsbury <graces@redhat.com>
5875
5876 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5877 m68k_find_saved_regs.
5878 (m68k_pop_frame): Removed saved_regs structure, and replaced
5879 references to it with frame->saved_regs.
5880 (m68k_gdbarch_init): Added function calls to initialize the
5881 gdbarch structure.
5882 (m68k_fix_call_dummy): Add.
5883 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5884 (CALL_DUMMY): Remove.
5885 (CALL_DUMMY_LENGTH): Remove.
5886 (CALL_DUMMY_START_OFFSET): Remove.
5887 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5888 (FIX_CALL_DUMMY): Remove.
5889 (PUSH_DUMMY_FRAME): Remove.
5890 (POP_FRAME): Remove.
5891
5892 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5893
5894 * parse.c (parse_fprintf): New function used to avoid calls to
5895 fprintf in bison parser generated debug code.
5896 * parser-defs.h: Declaration of new parse_fprintf function.
5897 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5898 Set YYDEBUG to 1 by default.
5899 Set YYFPRINTF as parse_fprintf.
5900
5901 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5902
5903 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5904 encoding anymore.
5905 (pointer_encoding, enum ptr_encoding): New.
5906 (execute_cfa_program): Take care about pointer encoding.
5907 (dwarf2_build_frame_info): Only call parse_frame_info for
5908 .debug_frame and .eh_frame.
5909 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5910 fixed augmentation handling, added relative addressing,
5911 ignore duplicate FDEs. Added comments.
5912 * dwarf2cfi.c: Reindented.
5913
5914 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5915
5916 * event-top.c (command_handler): Don't use space_at_cmd_start
5917 unless there is sbrk() on the host. Assign time and space data
5918 to union fields of the appropriate length.
5919
5920 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5921
5922 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5923 x86_64_register_name. Return type changed to 'const char *'.
5924 (x86_64_register_name2nr): Rename to x86_64_register_number.
5925 (x86_64_gdbarch_init): Update to reflect the change.
5926 * x86-64-tdep.h: Ditto.
5927 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5928 (supply_fpregset): Ditto.
5929
5930 2002-06-19 Andrew Cagney <cagney@redhat.com>
5931
5932 * regcache.h: Update copyright.
5933 (struct regcache, struct gdbarch): Add opaque declarations.
5934 (current_regcache): Declare global variable.
5935 (regcache_read, regcache_write): Add gdbarch parameter.
5936 (regcache_save, regcache_save_no_passthrough)
5937 (regcache_restore, regcache_restore_no_passthrough)
5938 (regcache_dup, regcache_dup_no_passthrough)
5939 (regcache_cpy, regcache_cpy_no_passthrough)
5940 (deprecated_grub_regcache_for_registers)
5941 (deprecated_grub_regcache_for_register_valid)
5942 (regcache_valid_p): Add function declarations.
5943
5944 * regcache.c: Update copyright.
5945 (regcache_descr_handle): New global variable.
5946 (struct regcache_descr): Define.
5947 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5948 (regcache_descr, xfree_regcache_descr): New functions.
5949 (struct regcache): Define.
5950 (regcache_xmalloc, regcache_xfree): New functions.
5951 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5952 (regcache_dup, regcache_dup_no_passthrough): New functions.
5953 (regcache_valid_p, regcache_read_as_address): New functions.
5954 (deprecated_grub_regcache_for_registers): New function.
5955 (deprecated_grub_regcache_for_register_valid): New function.
5956 (current_regcache): New global variable.
5957 (register_buffer): Add regcache parameter. Update calls.
5958 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5959 (read_register_gen, write_register_gen): Update register_buffer
5960 call. Test for legacy_p instead of gdbarch_register_read_p or
5961 gdbarch_register_write_p.
5962 (regcache_collect): Update register_buffer call.
5963 (build_regcache): Rewrite. Use deprecated grub functions.
5964 (regcache_save, regcache_save_no_passthrough): New functions.
5965 (regcache_restore, regcache_restore_no_passthrough): New
5966 functions.
5967 (_initialize_regcache): Create the regcache_data_handle. Swap
5968 current_regcache global variable.
5969
5970 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5971 parameter to regcache_read and regcache_write calls.
5972 (sh4_register_read): Ditto.
5973 (sh64_pseudo_register_read): Ditto.
5974 (sh64_register_read): Ditto.
5975 (sh_pseudo_register_write): Ditto.
5976 (sh4_register_write): Ditto.
5977 (sh64_pseudo_register_write): Ditto.
5978 (sh64_register_write): Ditto.
5979
5980 * defs.h (XCALLOC): Define.
5981
5982 2002-06-19 Grace Sainsbury <graces@redhat.com>
5983
5984 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5985 * m68k-tdep.c (m68k_gdbarch_init): Added.
5986 (m68k_dump_tdep): Added.
5987
5988 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5989
5990 * ada-lang.c (fill_in_ada_prototype): Update comment.
5991
5992 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5993
5994 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5995 MIPS_ABI_LAST.
5996 (mips_abi_string, mips_abi_strings): New.
5997 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5998 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5999 tdep->mips_abi_string. Honor mips_abi_string. Default to
6000 O32 if no ABI is found.
6001 (mips_dump_tdep): Use mips_abi_strings.
6002 (mips_abi_update): New function.
6003 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6004 ``set mips abi'' and ``show mips abi''. Check the size of
6005 mips_abi_strings.
6006
6007 2002-06-19 Andrew Cagney <cagney@redhat.com>
6008
6009 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6010 constant.
6011
6012 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6013
6014 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6015 current frame using only the first stack size adjustment. All
6016 subsequent size adjustments are not considered to be part of
6017 the "static" part of the current frame.
6018 Compute the address of the saved registers relative to the
6019 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6020 in use in this frame.
6021
6022 2002-06-18 Don Howard <dhoward@redhat.com>
6023
6024 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6025 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6026 suggesting this solution.
6027
6028 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6029
6030 * config/romp/xm-rtbsd.h: Delete file.
6031 * config/romp/rtbsd.mh: Delete file.
6032
6033 2002-06-18 Keith Seitz <keiths@redhat.com>
6034
6035 * breakpoint.c (condition_command): Post breakpoint_modify
6036 when a condition is added to an existing breakpoint.
6037 (commands_command): Likewise for commands.
6038 (set_ignore_count): Likewise for ignore counts.
6039 If no tty, do not simply return, still need to send event
6040 notification.
6041 (ignore_command): Only print a newline if the command came
6042 from a tty.
6043 Don't call breakpoints_changed, since this is now properly
6044 handled by set_ignore_count.
6045
6046 2002-06-18 Andrew Cagney <cagney@redhat.com>
6047
6048 * MAINTAINERS: Note that cris-elf target can be compiled with
6049 -Werror.
6050 * cris-tdep.c (cris_register_name): Make return type constant.
6051 (cris_breakpoint_from_pc): Ditto.
6052
6053 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6054
6055 * frame.h (struct frame_info): Change type of context to
6056 'struct context'.
6057
6058 2002-06-17 Andrew Cagney <cagney@redhat.com>
6059
6060 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6061 pointer.
6062 * gdbarch.h, gdbarch.c: Regenerate.
6063 * config/mips/tm-mips.h (mips_register_name): Update.
6064 * i386-tdep.h (i386_register_name): Update.
6065 * mips-tdep.c (mips_register_name): Update
6066 * alpha-tdep.c (alpha_register_name): Update.
6067 * arch-utils.c (legacy_register_name): Update.
6068 * arch-utils.h (legacy_register_name): Update.
6069 * avr-tdep.c (avr_register_name): Update.
6070 * ia64-tdep.c (ia64_register_name): Update.
6071 * i386-tdep.c (i386_register_name): Update.
6072 * sparc-tdep.c (sparc32_register_name): Update.
6073 (sparc64_register_name): Update.
6074 (sparclite_register_name): Update.
6075 (sparclet_register_name): Update.
6076 * sh-tdep.c (sh_generic_register_name): Update.
6077 (sh_sh_register_name): Update.
6078 (sh_sh3_register_name): Update.
6079 (sh_sh3e_register_name): Update.
6080 (sh_sh_dsp_register_name): Update.
6081 (sh_sh3_dsp_register_name): Update.
6082 (sh_sh4_register_name): Update.
6083 (sh_sh64_register_name): Update.
6084 * s390-tdep.c (s390_register_name): Update.
6085 * rs6000-tdep.c (rs6000_register_name): Update.
6086 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6087 (ns32k_register_name_32382): Update.
6088 * d10v-tdep.c (d10v_ts2_register_name): Update.
6089 (d10v_ts3_register_name): Update.
6090 * xstormy16-tdep.c (xstormy16_register_name): Update.
6091 * vax-tdep.c (vax_register_name): Update.
6092 * v850-tdep.c (v850_register_name): Update.
6093 * m68hc11-tdep.c (m68hc11_register_name): Update.
6094 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6095 (am33_register_name): Update.
6096
6097 2002-06-17 Grace Sainsbury <graces@redhat.com>
6098
6099 * m68k-tdep.c: Reindented.
6100
6101 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6102
6103 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6104 list of predefined types.
6105
6106 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6107
6108 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6109 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6110 REGISTER_CONVERT_TO_RAW): Remove defines.
6111 (i386_register_virtual_type, i386_register_convertible,
6112 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6113 Remove prototypes.
6114 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6115 macros mentioned above.
6116
6117 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6118 (i386lynx_saved_pc_after_call): Remove prototype.
6119 * i386ly-tdep.c: Include "i386-tdep.h".
6120 (i386lynx_saved_pc_after_call): Make static. Use
6121 read_memory_nobpt instead of read_memory. Use
6122 read_memory_unsigned_integer instead of read_memory_integer.
6123 (i386lynx_init_abi): New function.
6124 (i386lynx_coff_osabi_sniffer): New function.
6125 (_initialize_i386bsd_tdep): New function.
6126
6127 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6128 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6129 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6130 (i386_fix_call_dummy): Remove prototype.
6131 * i386-tdep.c (i386_call_dummy_words): New variable.
6132 (i386_gdbarch_init): Adjust for removal of the
6133 macros mentioned above.
6134
6135 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6136
6137 * command.h (add_setshow_auto_boolean_cmd): Replace
6138 add_set_auto_boolean_cmd.
6139 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6140 add_set_auto_boolean_cmd.
6141 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6142 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6143 mask-address'' command.
6144 (show_mask_address): Add cmd parameter.
6145 * remote.c (add_packet_config_cmd): Update. Change type of
6146 set_func and show_func to cmd_sfunc_ftype.
6147 (_initialize_remote): Update `set remote Z-packet'
6148 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6149 (show_remote_protocol_e_packet_cmd): Ditto.
6150 (show_remote_protocol_E_packet_cmd): Ditto.
6151 (show_remote_protocol_P_packet_cmd): Ditto.
6152 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6153 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6154 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6155 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6156 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6157 (show_remote_protocol_Z_packet_cmd): Ditto.
6158 (show_remote_protocol_binary_download_cmd): Ditto.
6159 (show_remote_cmd): Pass NULL to all of above.
6160
6161 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6162
6163 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6164 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6165 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6166 POP_FRAME): Remove defines.
6167 (i386_push_arguments, i386_store_struct_return,
6168 i386_extract_return_value, i386_store_return_value,
6169 i386_extract_struct_value_address, i386_push_dummy_frame,
6170 i386_pop_frame): Renove prototypes.
6171 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6172 macros mentioned above.
6173
6174 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6175
6176 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6177 add_set_boolean_cmd.
6178 (add_setshow_cmd): New function.
6179 * command.h (add_setshow_boolean_cmd): Replace
6180 add_set_boolean_cmd.
6181 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6182 and ``set rdiromatzero''.
6183 * maint.c (_initialize_maint_cmds): Update commented out code.
6184 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6185 * target.c (initialize_targets): Update `set
6186 trust-readonly-sections'.
6187 * remote.c (_initialize_remote): Update `set remotebreak'.
6188
6189 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6190
6191 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6192 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6193 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6194 fit into multi-arch framework.
6195 (i386_breakpoint_from_pc): New function.
6196 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6197 above.
6198
6199 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6200 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6201 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6202 (i386_frameless_function_invocation, i386_frame_num_args,
6203 i386_frame_init_saved_regs): Remove prototypes.
6204 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6205 macros mentioned above.
6206
6207 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6208
6209 * cli/cli-decode.c (set_cmd_cfunc): Update.
6210 (set_cmd_sfunc): Update.
6211 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6212 (set_cmd_sfunc, set_cmd_cfunc): Update.
6213 * cli/cli-decode.h: Update.
6214
6215 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6216
6217 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6218 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6219
6220 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6221
6222 * defs.h (auto_boolean): Declare enum.
6223 * command.h (cmd_auto_boolean): Delete enum.
6224 * mips-tdep.c (mask_address_var): Update.
6225 (mips_mask_address_p): Update.
6226 (show_mask_address): Update.
6227 * remote.c (struct packet_config): Update.
6228 (update_packet_config): Update.
6229 (show_packet_config_cmd): Update.
6230 (packet_ok): Update.
6231 (add_packet_config_cmd): Update.
6232 (_initialize_remote):
6233 * command.h: Update.
6234 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6235 (do_setshow_command): Update.
6236 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6237 * cli/cli-decode.h: Update.
6238
6239 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6240
6241 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6242 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6243 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6244 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6245 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6246 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6247
6248 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6249 list of DJGPP COFF targets.
6250
6251 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6252 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6253 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6254 (FP0_REGNUM): Remove define.
6255 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6256 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6257 (i386_register_virtual_size): Remove protoype.
6258 * i386-tdep.c (i386_register_virtual_size): Removed.
6259 (i386_extract_return_value, i386_store_return_value): Use
6260 FP0_REGNUM instead of NUM_FREGS to determine whether the
6261 floating-point registers are available.
6262 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6263 Adjust for removal of macros mentioned above.
6264
6265 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6266
6267 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6268 comments.
6269 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6270 Remove prototypes.
6271 (supply_gregset, fill_gregset): Remove use of register keyword and
6272 remove declaration for regmap. Use I386_NUM_GREGS instead of
6273 NUM_REGS and NUM_FREGS.
6274 (FPREGSET_FSAVE_OFFSET): Remove.
6275 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6276 NUM_FREGS to determine whether the floating-point registers are
6277 available.
6278
6279 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6280 gnu_store_registers): Replace usage of NUM_GREGS with
6281 I386_NUM_GREGS.
6282
6283 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6284 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6285 usage of NUM_GREGS with I386_NUM_GREGS.
6286
6287 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6288
6289 * i386bsd-nat.c: Include "i386-tdep.h".
6290 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6291 I386_NUM_GREGS.
6292
6293 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6294 and associated comment. They no longer make any sense, since we
6295 don't use this file anymore on Linux.
6296
6297 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6298 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6299 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6300 elements in these arrays.
6301 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6302 MAX_NUM_REGS.
6303
6304 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6305
6306 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6307 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6308
6309 2002-06-14 Andrew Cagney <cagney@redhat.com>
6310
6311 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6312 EXTRACT_RETURN_VALUE.
6313 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6314 EXTRACT_STRUCT_VALUE_ADDRESS.
6315 * gdbarch.h, gdbarch.c: Regenerate.
6316
6317 * values.c (value_being_returned): Handle
6318 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6319 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6320
6321 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6322 * arm-tdep.c (arm_gdbarch_init): Update.
6323 * avr-tdep.c (avr_gdbarch_init): Update.
6324 * cris-tdep.c (cris_gdbarch_init): Update.
6325 * d10v-tdep.c (d10v_gdbarch_init): Update.
6326 * ia64-tdep.c (ia64_gdbarch_init): Update.
6327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6329 * s390-tdep.c (s390_gdbarch_init): Update.
6330 * sh-tdep.c (sh_gdbarch_init): Update.
6331 * s390-tdep.c (s390_gdbarch_init): Update.
6332 * sparc-tdep.c (sparc_gdbarch_init): Update.
6333 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6334 * v850-tdep.c (v850_gdbarch_init): Update.
6335 * vax-tdep.c (vax_gdbarch_init): Update.
6336 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6338
6339 * config/arc/tm-arc.h: Update.
6340 * config/d30v/tm-d30v.h: Update.
6341 * config/fr30/tm-fr30.h: Update.
6342 * config/h8300/tm-h8300.h: Update.
6343 * config/h8500/tm-h8500.h: Update.
6344 * config/i386/tm-i386.h: Update.
6345 * config/i386/tm-ptx.h: Update.
6346 * config/i386/tm-symmetry.h: Update.
6347 * config/i960/tm-i960.h: Update.
6348 * config/m32r/tm-m32r.h: Update.
6349 * config/m68k/tm-delta68.h: Update.
6350 * config/m68k/tm-linux.h: Update.
6351 * config/m68k/tm-m68k.h: Update.
6352 * config/m88k/tm-m88k.h: Update.
6353 * config/mcore/tm-mcore.h: Update.
6354 * config/mips/tm-mips.h: Update.
6355 * config/mn10200/tm-mn10200.h: Update.
6356 * config/pa/tm-hppa.h: Update.
6357 * config/pa/tm-hppa64.h: Update.
6358 * config/sparc/tm-sp64.h: Update.
6359 * config/sparc/tm-sparc.h: Update.
6360 * config/sparc/tm-sparclet.h: Update.
6361 * config/z8k/tm-z8k.h: Update.
6362
6363 2002-06-14 Andrew Cagney <cagney@redhat.com>
6364
6365 * Makefile.in (i386_linux_tdep_h): Define.
6366 (i386_tdep_h, i387_tdep_h): Define.
6367 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6368 $(i386_tdep_h) and $(i387_tdep_h).
6369 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6370
6371 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6372
6373 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6374 Already covered by the default.
6375
6376 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6377 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6378 (i386_gdbarch_init): Initialize long_double_format and long_double
6379 bit.
6380
6381 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6382 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6383 Move these to ...
6384 * config/i386/i386sol2.mh: ... here.
6385 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6386 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6387 (SIGCONTEXT_PC_OFFSET): Remove define.
6388 (IN_SIGTRAMP): Remove define.
6389 * i386-sol2-tdep.c: New file.
6390
6391 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6392 * config/i386/tm-i386nw.h: Removed.
6393
6394 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6395 USE_STRUCT_CONVENTION): Remove defines.
6396 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6397 (get_longjmp_target): Remove prototype.
6398 (IN_SIGTRAMP): Remove define.
6399 (i386bsd_in_sigtramp): Remove prototype.
6400 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6401 function. Update comment accordingly
6402 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6403 (FRAME_SAVED_PC): Remove define.
6404 (i386bsd_frame_saved_pc): Remove prototype.
6405 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6406 GET_LONGJMP_TARGET): Remove defines.
6407 (get_longjmp_target): Remove prototype.
6408 (IN_SIGTRAMP): Remove define.
6409 (i386bsd_in_sigtramp): Remove prototype.
6410 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6411 function. Update comment accordingly
6412 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6413 (FRAME_SAVED_PC): Remove define.
6414 (i386bsd_frame_saved_pc): Remove prototype.
6415 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6416 Remove prototype.
6417 (USE_STRUCT_CONVENTION): Remove prototype.
6418 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6419 declaration.
6420 (_initialize_i386bsd_nat): Revise logic to determine some
6421 constants at compile time when compiling a native GDB. Warn if
6422 things don't match up with what we expect.
6423 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6424 Remove variables.
6425 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6426 to use date stored in `struct gdbarch_tdep'.
6427 (i386bsd_sigcontext_offset): Remove varaible.
6428 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6429 stored in `struct gdbarch_tdep'.
6430 (i386bsd_frame_saved_pc): Make static.
6431 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6432 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6433 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6434 i386fbsd4_sc_pc_offset): New variables.
6435 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6436 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6437 functions.
6438 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6439 functions.
6440 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6441 Modify the value of i386fbsd_sigtramp_start and
6442 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6443 i386fbsd_sigtramp_end.
6444 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6445 function.
6446
6447 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6448 define to i386-linux-tdep.h.
6449 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6450 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6451 defines.
6452 (i386_linux_register_name, i386_linux_register_byte,
6453 i386_linux_register_raw_size): Remove prototypes.
6454 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6455 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6456 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6457 TARGET_WRITE_PC): Remove defines.
6458 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6459 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6460 i386_linux_write_pc): Remove prototypes.
6461 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6462 (get_longjmp_target): Remove prototype.
6463 * i386-linux-tdep.h: New file.
6464 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6465 * i386-linux-tdep.c: Include "i386-tdep.h" and
6466 "i386-linux-tdep.h".
6467 (i386_linux_register_name, i386_linux_register_byte,
6468 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6469 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6470 Make static.
6471 (i386_linux_init_abi): New function.
6472 (_initialize_i386_linux_tdep): New function.
6473
6474 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6475 (i386_saved_pc_after_call): Remove prototype.
6476 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6477 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6478 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6479 (i386_register_name, i386_stab_reg_to_regnum,
6480 i386_dwarf_reg_to_regnum): Remove prototypes.
6481 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6482 SIZEOF_SSE_REGS): Remove defines.
6483 (REGISTER_BYTES): Remove define.
6484 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6485 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6486 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6487 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6488 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6489 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6490 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6491 (get_longjmp_target): Remove prototype.
6492 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6493 (sigtramp_saved_pc): Remove define.
6494 (i386v4_sigtramp_saved_pc): Remove prototype.
6495 * config/i386/tm-go32.h (FRAME_CHAIN,
6496 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6497 (i386go32_frame_saved_pc): Remove prototype.
6498 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6499 (get_longjmp_target): Remove prototype.
6500 * i386-tdep.h: Include "osabi.h".
6501 (enum i386_abi): Removed.
6502 (enum struct_return): New enum.
6503 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6504 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6505 sc_pc_offset members.
6506 (i386_gdbarch_register_os_abi): Remove prototype.
6507 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6508 I386_SSE_NUM_REGS): New defines.
6509 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6510 I386_SSE_SIZEOF_REGS): New defines.
6511 (i386_register_name, i386_register_byte, i386_register_raw_size):
6512 New prototypes.
6513 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6514 (i386bsd_sigtramp_saved_pc): New prototype.
6515 * i386-tdep.c: Don't include "elf-bfd.h".
6516 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6517 i386_frame_chain, i386_saved_pc_after_call): Make static.
6518 (i386_frame_saved_pc): Rewrite to call architecture dependent
6519 function to deal with signal handlers. Make static.
6520 (i386go32_frame_saved_pc): Removed.
6521 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6522 Removed.
6523 (i386_get_longjmp_target): New function.
6524 (default_struct_convention, pcc_struct_convention,
6525 reg_struct_convention, valid_conventions, struct_convention): New
6526 variables.
6527 (i386_use_struct_convention): New function.
6528 (i386v4_sigtramp_saved_pc): Renamed to
6529 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6530 (i386_pc_in_sigtramp): New function.
6531 (i386_abi_names): Removed.
6532 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6533 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6534 Removed.
6535 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6536 i386_gdbarch_register_os_abi): Removed.
6537 (struct i386_abi_handler): Removed.
6538 (i386_abi_handler_list): Removed.
6539 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6540 functions.
6541 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6542 i386_nw_init_abi): New functions.
6543 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6544 Use set_gdbarch_xxx() calls instead of relying on macros for a
6545 number of calls.
6546 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6547 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6548 Register the various architecture variants defined in this file.
6549
6550 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6551
6552 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6553 (struct main_type): Remove arg_types member. Update comments for
6554 struct field.
6555 (TYPE_ARG_TYPES): Remove.
6556 (TYPE_FN_FIELD_ARGS): Update.
6557 (smash_to_method_type): Update prototype.
6558
6559 * c-typeprint.c (cp_type_print_method_args): Take method type
6560 instead of argument list. Use new argument layout. Simplify.
6561 (c_type_print_args): Use new argument layout. Simplify.
6562 (c_type_print_base): Update call to cp_type_print_method_args.
6563 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6564 argument; use die->type instead. Update call to
6565 smash_to_method_type.
6566 (read_structure_scope): Update call to dwarf2_add_member_fn.
6567 * gdbtypes.c (allocate_stub_method): Update comment.
6568 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6569 Use new argument layout.
6570 (check_stub_method): Use new argument layout. Don't count
6571 void as an argument.
6572 (print_arg_types): Update comments. Use new argument layout.
6573 (recursive_dump_type): Don't print arg_types member.
6574 * hpread.c (hpread_read_struct_type): Use new argument layout.
6575 (fixup_class_method_type): Likewise.
6576 (hpread_type_lookup): Likewise.
6577 * stabsread.c (read_type): Update calls to read_args and
6578 smash_to_method_type.
6579 (read_args): Use new argument layout. Simplify.
6580 * valops.c (typecmp): Use new argument layout. Update parameters
6581 and comments. Simplify.
6582 (hand_function_call): Use new argument layout.
6583 (search_struct_method): Update call to typecmp.
6584 (find_overload_match): Use new argument layout.
6585
6586 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6587
6588 * NEWS: Mention multithreaded debug support for gdbserver.
6589
6590 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6591
6592 * MAINTAINERS: Mention NEWS.
6593
6594 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6595
6596 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6597 (struct mips_objfile_private, compare_pdr_entries): New.
6598 (non_heuristic_proc_desc): Read the ".pdr" section if it
6599 is present.
6600
6601 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6602
6603 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6604 (arm_debug): New static variable.
6605 (_initialize_arm_tdep): Add ``set debug arm'' command.
6606
6607 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6608
6609 * Makefile.in (sim_arm_h): Define.
6610 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6611 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6612 (arm_register_sim_regno): New function, map an internal REGNUM
6613 onto a simulator register number.
6614 (arm_gdbarch_init): Set register_sim_regno.
6615
6616 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6617
6618 * MAINTAINERS: Add self.
6619
6620 2002-06-11 Jim Blandy <jimb@redhat.com>
6621
6622 * source.c (source_info): Mention whether the symtab has
6623 information about preprocessor macros.
6624
6625 Call the command `info macro', not `show macro'.
6626 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6627 Fix error message.
6628 (_initialize_macrocmd): Register `info_macro_command' in
6629 `infolist', not `showlist'.
6630
6631 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6632
6633 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6634 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6635 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6636 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6637 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6638 unconditionally.
6639 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6640 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6641 (_initialize_mips_tdep): Remove dead code.
6642 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6643 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6644 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6645 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6646 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6647 MIPS_LAST_FP_ARG_REGNUM): Remove.
6648
6649 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6650
6651 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6652 (unwind_tmp_obstack_free, parse_frame_info)
6653 (update_context, cfi_read_fp, cfi_write_fp)
6654 (cfi_frame_chain, cfi_init_extra_frame_info)
6655 (cfi_virtual_frame_pointer): Use the above function.
6656 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6657
6658 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6659
6660 * v850-tdep.c (v850_type_is_scalar): New function.
6661 (v850_use_struct_convention): Match current gcc implementation
6662 as close as possible.
6663 (v850_push_arguments): Fix stack_offset handling. Don't write
6664 struct_addr into register. This is done by v850_store_struct_return.
6665 (v850_extract_return_value): Care for structs.
6666 (v850_store_return_value): Ditto.
6667 (v850_store_struct_return): Actually write address.
6668
6669 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6670
6671 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6672 without debug information too.
6673
6674 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6675
6676 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6677 Make multi-arch pure.
6678 * gdbarch.h, gdbarch.c: Re-generate.
6679 * arm-tdep.c (arm_print_float_info): Update.
6680 * arch-utils.h (default_print_float_info): Update.
6681 * arch-utils.c (default_print_float_info): Update.
6682 * infcmd.c (float_info): Update call.
6683
6684 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6685
6686 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6687 the front of the initialize list.
6688
6689 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6690
6691 * infrun.c (struct inferior_status): Replace fields
6692 selected_frame_address and selected_level with field
6693 selected_frame_id.
6694 (save_inferior_status): Update. Use get_frame_id.
6695 (struct restore_selected_frame_args): Delete.
6696 (restore_selected_frame): Update. Use frame_find_by_id.
6697 (restore_inferior_status): Update.
6698
6699 * breakpoint.h (struct breakpoint): Change type of
6700 watchpoint_frame to frame_id.
6701 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6702 call to get_current_frame.
6703 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6704 get_current_frame.
6705 (watchpoint_check): Use frame_find_by_id.
6706
6707 * frame.h (record_selected_frame): Delete declaration.
6708 * stack.c (record_selected_frame): Delete function.
6709
6710 * frame.h (struct frame_id): Define.
6711 (get_frame_id): Declare.
6712 (frame_find_by_id): Declare.
6713 * frame.c (frame_find_by_id): New function.
6714 (get_frame_id): New function.
6715
6716 2002-06-10 Andrey Volkov <avolkov@transas.com>
6717
6718 * ser-e7kpc.c: Fix duplicated define and call of
6719 _initialize_ser_e7000pc
6720
6721 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6722
6723 * signals/signals.c (target_signal_from_host): Fix #ifdef
6724 SIGRTMIN case.
6725 (do_target_signal_to_host): Likewise.
6726
6727 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6728
6729 * mips-tdep.c (mips_find_abi_section): New function.
6730 (mips_gdbarch_init): Call it.
6731
6732 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6733
6734 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6735 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6736 after Andrew's 2002-06-08 gdbarch change.
6737
6738 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6739
6740 * i386-linux-nat.c (suppy_gregset): Don't supply
6741 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6742 register cache.
6743 (fill_gregset): Don't fetch it under the same circumstances.
6744
6745 2002-06-09 Andrew Cagney <cagney@redhat.com>
6746
6747 * Makefile.in (callback_h): Define.
6748 (remote_sim_h): Update path to remote-sim.h.
6749 (remote-rdp.o): Add $(callback_h).
6750 (remote-sim.o): Use $(callback_h).
6751 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6752 * remote-rdp.c: Include "gdb/callback.h".
6753
6754 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6755
6756 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6757 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6758
6759 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6760
6761 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6762 * rdi-share/serpardr.c: Ditto.
6763 * rdi-share/unixcomm.c: Ditto.
6764 * rdi-share/serdrv.c: Ditto.
6765 * rdi-share/hostchan.h: Ditto.
6766 * rdi-share/hostchan.c: Ditto.
6767 * rdi-share/host.h: Ditto.
6768 * rdi-share/devsw.c: Ditto.
6769
6770 * objfiles.h: Change type of obj_private to void pointer.
6771 * pa64solib.c: Update copyright. Don't include "assert.h", use
6772 strcmp instead of STREQ, use LONGEST, do not use PTR
6773 * somsolib.c: Ditto.
6774
6775 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6776 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6777 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6778
6779 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6780
6781 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6782 (default_get_saved_register): Delete function.
6783 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6784 generic_unwind_get_saved_register.
6785 * gdbarch.h, gdbarch.c: Re-generate.
6786
6787 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6788
6789 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6790 generic_func_frame_chain_valid.
6791 * gdbarch.h, gdbarch.c: Re-generate.
6792 * blockframe.c (generic_func_frame_chain_valid): Only check
6793 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6794 passing FP to PC_IN_CALL_DUMMY.
6795 Fix PR gdb/360.
6796
6797 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6798
6799 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6800 (register_gdbarch_data): Initialize init_p.
6801 (gdbarch_data): Initialize data pointer using the init function.
6802 (init_gdbarch_data): Delete function.
6803 (gdbarch_update_p): Update.
6804 (initialize_non_multiarch): Update.
6805 (struct gdbarch): Add field initialized_p.
6806 * gdbarch.h, gdbarch.c: Re-generate.
6807
6808 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6809
6810 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6811 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6812 better do the things actually here.
6813 * x86-64-tdep.c (x86_64_register_name2nr): New.
6814 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6815 (x86_64_gdbarch_init): Respect the above change.
6816 * x86-64-tdep.h (x86_64_register_name2nr)
6817 (x86_64_register_nr2name): Add prototypes.
6818 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6819
6820 2002-06-06 Michael Snyder <msnyder@redhat.com>
6821
6822 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6823 Delete extra braces and re-indent.
6824 (d10v_store_return_value): Char return values
6825 must be shifted over by one byte in R0.
6826 (d10v_extract_return_value): Delete extra braces, re-indent.
6827
6828 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6829
6830 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6831 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6832 (d10v_integer_to_address): Rewrite.
6833 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6834 the d10v specific functions which take care of converting to the
6835 correct space.
6836
6837 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6838
6839 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6840 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6841
6842 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6843
6844 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6845 includes.
6846 * config/tm-linux.h: Ditto.
6847 * config/alpha/tm-alphalinux.h: Ditto.
6848 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6849 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6850 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6851 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6852 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6853 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6854 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6855 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6856 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6857 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6858 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6859 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6860 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6861 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6862 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6863 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6864 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6865 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6866 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6867 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6868 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6869 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6870 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6871 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6872 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6873 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6874 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6875 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6876 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6877 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6878 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6879 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6880 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6881 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6882 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6883 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6884 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6885
6886 2002-05-04 Aidan Skinner <aidan@velvet.net>
6887
6888 * ada-exp.tab.c: New file
6889 * ada-exp.y: New file
6890 * ada-lang.c: New file
6891 * ada-lang.h: New file
6892 * ada-lex.c: New file
6893 * ada-lex.l: New file
6894 * ada-tasks.c: New file
6895 * ada-typeprint.c: New file
6896 * ada-valprint.c: New file
6897
6898 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6899
6900 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6901 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6902
6903 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6904
6905 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6906 insetead of ppc-linux-tdep.o.
6907 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6908 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6909
6910 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6911
6912 2002-05-07 Christian Groessler <chris@groessler.org>
6913 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6914 bit register contents for little endian hosts.
6915
6916 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6917
6918 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6919 any maintainer.
6920
6921 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6922
6923 * gdbarch.h: Regenerate.
6924
6925 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6926
6927 * MAINTAINERS: Add everyone to write-after-approval list.
6928
6929 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6930
6931 * stack.c (frame_info): Use frame_register_unwind instead of
6932 saved_regs. Mention when the SP is on the stack or in a register.
6933
6934 * frame.h (frame_register_unwind_ftype): Define. Document.
6935 (struct frame_info): Add field register_unwind and
6936 register_unwind_cache.
6937 (frame_register_unwind): Declare.
6938 (generic_unwind_get_saved_register): Declare.
6939
6940 * frame.c (frame_register_unwind): New function.
6941 (generic_unwind_get_saved_register): New function.
6942
6943 * blockframe.c (generic_call_dummy_register_unwind): New function.
6944 (frame_saved_regs_register_unwind): New function.
6945 (set_unwind_by_pc): New function.
6946 (create_new_frame): New function.
6947 (get_prev_frame): New function.
6948
6949 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6950
6951 * a29k-share/: Delete directory.
6952 * remote-vx29k.c: Delete file.
6953
6954 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6955
6956 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6957 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6958
6959 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6960
6961 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6962 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6963 (sparc64nbsd-nat.o)
6964 (sparcnbsd-nat.o)
6965 (sparcnbsd-tdep.o): New dependency lists.
6966 * NEWS: Note new UltraSPARC NetBSD native configuration.
6967 * configure.host (sparc64-*-netbsd*): New host.
6968 * configure.tgt (sparc-*-netbsdelf*)
6969 (sparc-*-netbsd*): Set gdb_target to nbsd.
6970 (sparc64-*-netbsd*): New target.
6971 * sparc64nbsd-nat.c: New file.
6972 * sparcnbsd-nat.c: New file.
6973 * sparcnbsd-tdep.c: New file.
6974 * sparcnbsd-tdep.h: New file.
6975 * config/sparc/nbsd.mt: New file.
6976 * config/sparc/nbsd64.mh: New file.
6977 * config/sparc/nbsd64.mt: New file.
6978 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6979 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6980 (HOST_IPC): Remove.
6981 * config/sparc/nbsdaout.mt: Remove.
6982 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6983 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6984 (HOST_IPC): Remove.
6985 * config/sparc/nbsdelf.mt: Remove.
6986 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6987 sparc-nat.c compatiblity defines.
6988 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6989 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6990 * config/sparc/tm-nbsd64.h: New file.
6991 * config/sparc/tm-nbsdaout.h: Remove.
6992 * config/sparc/xm-nbsd.h: Remove.
6993
6994 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6995
6996 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6997 * sparc-tdep.c: Include osabi.h.
6998 (gdbarch_tdep): Add osabi member.
6999 (_initialize_sparc_tdep): Use gdbarch_register.
7000 (sparc_gdbarch_init): Use generic OS ABI framework.
7001 (sparc_dump_tdep): New function.
7002
7003 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7004
7005 * corefile.c (do_captured_read_memory_integer): Return non-zero
7006 result.
7007 (safe_read_memory_integer): Copy result of memory read when
7008 status is non-zero. Also, add comments.
7009
7010 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7011
7012 * Makefile.in (ppc_tdep_h): Define.
7013 (ppc-linux-nat.o)
7014 (ppc-linux-tdep.o)
7015 (rs6000-tdep.o): Use $(ppc_tdep_h).
7016 (ppc-sysv-tdep.o)
7017 (ppcnbsd-nat.o)
7018 (ppcnbsd-tdep.o): New dependency lists.
7019 * ppc-tdep.h: Use generic OS ABI framework.
7020 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7021 (ppc_linux_init_abi): New functions.
7022 (ppc_sysv_abi_broken_use_struct_convention)
7023 (ppc_sysv_abi_use_struct_convention)
7024 (ppc_sysv_abi_push_arguments): Move to...
7025 * ppc-sysv-tdep.c: ...here.
7026 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7027 * rs6000-tdep.c (process_note_abi_tag_sections)
7028 (get_elfosabi): Remove.
7029 (rs6000_gdbarch_init): Use generic OS ABI framework.
7030 (rs6000_dump_tdep): New function.
7031 (_initialize_rs6000_tdep): Use gdbarch_register.
7032 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7033 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7034 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7035 of ppc-linux-tdep.o.
7036 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7037 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7038 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7039 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7040 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7041 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7042
7043 2002-05-29 Jim Blandy <jimb@redhat.com>
7044
7045 * macroscope.c (default_macro_scope): Put `void' in empty argument
7046 list.
7047
7048 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7049
7050 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7051 * arch-utils.c: Include "sim-regno.h".
7052 * gdbarch.sh: Don't include "sim-regno.h".
7053 * gdbarch.h, gdbarch.c: Regenerate.
7054 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7055 here.
7056 * arch-utils.h (legacy_register_sim_regno): To here.
7057 * remote-sim.c (legacy_register_sim_regno): Move function from
7058 here.
7059 * arch-utils.c (legacy_register_sim_regno): To here.
7060
7061 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7062
7063 * sim-regno.h: New file.
7064 * Makefile.in (sim_regno_h): Define.
7065 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7066 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7067 (legacy_register_sim_regno): New function.
7068 (one2one_register_sim_regno): New function.
7069 (gdbsim_fetch_register): Rewrite.
7070 (gdbsim_store_register): Only store a register when
7071 REGISTER_SIM_REGNO is valid.
7072 * d10v-tdep.c: Include "sim-regno.h".
7073 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7074 (d10v_ts3_register_sim_regno): Ditto.
7075 * gdbarch.sh: Include "sim-regno.h".
7076 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7077 * gdbarch.h, gdbarch.c: Regenerate.
7078 * arch-utils.h (default_register_sim_regno): Delete declaration.
7079 * arch-utils.c (default_register_sim_regno): Delete function.
7080
7081 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7082
7083 * ppcnbsd-nat.c: Rewrite.
7084 * ppcnbsd-tdep.c: New file.
7085 * ppcnbsd-tdep.h: New file.
7086 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7087 solib.o, and solib-svr4.o.
7088 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7089 nbsd-tdep.o, and corelow.o.
7090
7091 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7092
7093 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7094 `tr' and `sed'. Mention that `broken' targets are not expected to
7095 build.
7096
7097 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7098
7099 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7100 Let PC point right after the prologue before looking up symbols.
7101
7102 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7103
7104 * i386-tdep.c (i386_register_virtual_type): Return
7105 builtin_type_vec128i for SSE registers.
7106
7107 * gdbtypes.h (builtin_type_vec128i): Declare.
7108
7109 * gdbtypes.c (build_builtin_type_vec128i): New function.
7110 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7111 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7112 (build_gdbtypes): Initialize new builtin vector types.
7113 (_initialize_gdbtypes): Register new vector types with gdbarch.
7114
7115 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7116
7117 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7118 since it has been multi-arch'd.
7119 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7120 Move Alpha and VAX multi-arch news entries to same section
7121 as other multi-arch news.
7122
7123 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7124
7125 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7126 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7127 static. Rename some register numbers to put them in ns32k-tdep
7128 private namespace.
7129 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7130 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7131 functions.
7132 (_initialize_ns32k_tdep): Use gdbarch_register.
7133 * ns32k-tdep.h: New file.
7134 * ns32knbsd-tdep.c: New file.
7135 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7136 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7137 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7138 REGISTER_BYTES, REGISTER_BYTE): Remove.
7139 * config/ns32k/tm-ns32k.h: New file.
7140 * config/ns32k/tm-umax.h: Remove.
7141
7142 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7143
7144 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7145 ns32k_store_struct_return, ns32k_extract_return_value,
7146 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7147 functions.
7148 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7149 ns32k_saved_pc_after_call.
7150 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7151 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7152 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7153 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7154 ns32k_extract_struct_value_address.
7155
7156 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7157
7158 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7159 ns32k_fix_call_dummy): New.
7160 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7161 ns32k_call_dummy_words.
7162 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7163 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7164 CALL_DUMMY_NARGS): Remove.
7165 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7166
7167 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7168
7169 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7170 ns32k_frame_saved_pc, ns32k_frame_args_address,
7171 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7172 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7173 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7174 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7175 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7176 (BREAKPOINT): Remove..
7177 (FRAME_CHAIN): Define as ns32k_frame_chain.
7178 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7179 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7180 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7181 (FRAME_FIND_SAVED_REGS): Remove.
7182 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7183 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7184 (POP_FRAME): Define as ns32k_pop_frame.
7185
7186 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7187
7188 * ns32k-tdep.c (ns32k_register_byte_32082,
7189 ns32k_register_byte_32382, ns32k_register_raw_size,
7190 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7191 functions.
7192 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7193 ns32k_register_byte_32382.
7194 * config/ns32k/tm-umax.h: Update copyright years.
7195 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7196 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7197 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7198 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7199 (ns32k_get_enter_addr): Fix prototype.
7200
7201 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7202
7203 * ns32k-tdep.c: Update copyright years.
7204 (ns32k_register_name_32082): New function.
7205 (ns32k_register_name_32382): Ditto.
7206 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7207 (REGISTER_NAME): Define as ns32k_register_name_32382.
7208 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7209 (REGISTER_NAME): Define as ns32k_register_name_32082.
7210
7211 2002-05-24 Jim Blandy <jimb@redhat.com>
7212
7213 * dwarf2read.c (free_line_header): Use xfree, not free.
7214
7215 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7216
7217 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7218 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7219
7220 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7221
7222 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7223
7224 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7225
7226 From Ross Alexander at NEC Europe:
7227 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7228
7229 2002-05-23 Michael Snyder <msnyder@redhat.com>
7230
7231 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7232 for input, rather than parse_and_eval_address.
7233
7234 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7235
7236 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7237 * Makefile.in (sim_d10v_h): Update definition.
7238
7239 2002-05-24 Andrew Cagney <cagney@redhat.com>
7240
7241 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7242 change `2002-05-22 Michael Snyder' below.
7243 (d10v_push_arguments): Ditto.
7244 (d10v_extract_return_value): Ditto.
7245
7246 2002-05-23 Jim Blandy <jimb@redhat.com>
7247
7248 * macrotab.c (check_for_redefinition): Don't complain if the new
7249 definition is the same as the previous one. Take more arguments
7250 to allow the comparison.
7251 (macro_define_object, macro_define_function): Pass more arguments
7252 to check_for_redefinition.
7253
7254 2002-05-22 Michael Snyder <msnyder@redhat.com>
7255
7256 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7257 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7258 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7259 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7260 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7261 Add a temp variable to save a call (and a memory read).
7262 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7263 if possible (so that PC_IN_CALL_DUMMY will work).
7264
7265 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7266
7267 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7268
7269 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7270
7271 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7272 fde->cie_ptr.
7273 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7274 (dwarf2_build_frame_info): Add offset to fde->initial_location
7275 so that frames of shared libraries are mapped correctly.
7276 (execute_stack_op): Change type of 'result' from ULONGEST to
7277 CORE_ADDR.
7278
7279 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7280
7281 * config/alpha/tm-nbsd.h: Include solib.h.
7282
7283 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7284
7285 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7286 assumptions about the host's byte order.
7287
7288 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7289
7290 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7291 to dependency list.
7292 * alphanbsd-tdep.c: Include solib-svr4.h.
7293 * shnbsd-tdep.c: Ditto.
7294
7295 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7296
7297 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7298 nbsd-tdep.h to dependency list.
7299 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7300 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7301 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7302 nbsdaout.mh and nbsdelf.mh consistently.
7303 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7304 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7305 nbsdaout.mt and nbsdelf.mh consistently.
7306 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7307 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7308 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7309 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7310 a.out shared library stuff from here...
7311 * config/nm-nbsdaout.h: ...to here.
7312 * config/tm-nbsd.h: Remove.
7313 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7314 * config/arm/nbsd.mh: Remove.
7315 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7316 nbsd-tdep.o.
7317 * config/arm/nbsdaout.mh: New file.
7318 * config/arm/nbsdelf.mh: New file.
7319 * config/arm/nm-nbsdaout.h: New file.
7320 * config/i386/nbsd.mh: Remove.
7321 * config/i386/nbsd.mt: Remove.
7322 * config/i386/nbsdaout.mh: New file.
7323 * config/i386/nbsdaout.mt: New file.
7324 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7325 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7326 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7327 i386_register_u_addr): Remove.
7328 * config/i386/nm-nbsdaout.h: New file.
7329 * config/i386/nm-nbsdelf.h: Remove.
7330 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7331 (USE_STRUCT_CONVENTION): Remove.
7332 * config/i386/tm-nbsdaout.h: New file.
7333 * config/i386/tm-nbsdelf.h: Remove.
7334 * config/m68k/nbsd.mh: Remove.
7335 * config/m68k/nbsd.mt: Remove.
7336 * config/m68k/nbsdaout.mh: New file.
7337 * config/m68k/nbsdaout.mt: New file.
7338 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7339 * config/m68k/nm-nbsdaout.h: New file.
7340 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7341 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7342 * config/ns32k/nbsd.mh: Remove.
7343 * config/ns32k/nbsd.mt: Remove.
7344 * config/ns32k/nbsdaout.mh: New file.
7345 * config/ns32k/nbsdaout.mt: New file.
7346 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7347 * config/ns32k/nm-nbsdaout.h: New file.
7348 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7349 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7350 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7351 (SVR4_SHARED_LIBS): Remove.
7352 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7353 * config/sparc/nbsd.mh: Remove.
7354 * config/sparc/nbsd.mt: Remove.
7355 * config/sparc/nbsdaout.mh: New file.
7356 * config/sparc/nbsdaout.mt: New file.
7357 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7358 * config/sparc/nbsdelf.mt: New file.
7359 * config/sparc/nm-nbsdaout.h: New file.
7360 * config/sparc/nm-nbsdelf.h: Remove.
7361 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7362 * config/sparc/tm-nbsdaout.h: New file.
7363
7364 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7365
7366 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7367 mipsnbsd-tdep.c
7368 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7369
7370 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7371
7372 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7373 shnbsd-nat.c.
7374 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7375
7376 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7377
7378 * NEWS: Note new MIPS NetBSD native configuration.
7379 * configure.host (mips*-*-netbsd*): New host.
7380 * configure.tgt (mips*-*-netbsd*): New target.
7381 * mipsnbsd-nat.c: New file.
7382 * mipsnbsd-tdep.c: New file.
7383 * mipsnbsd-tdep.h: New file.
7384 * config/mips/nbsd.mh: New file.
7385 * config/mips/nbsd.mt: New file.
7386 * config/mips/nm-nbsd.h: New file.
7387 * config/mips/tm-nbsd.h: New file.
7388
7389 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7390
7391 * Makefile.in (SFILES): Add osabi.c.
7392 (COMMON_OBS): Add osabi.o.
7393 (osabi.o): New dependency list.
7394 * osabi.c: New file.
7395 * osabi.h: New file.
7396 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7397
7398 * Makefile.in (alpha_tdep_h): Define and use instead of
7399 alpha-tdep.h.
7400 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7401 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7402 Remove.
7403 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7404 * alpha-tdep.h: Include osabi.h.
7405 (alpha_abi): Remove.
7406 (gdbarch_tdep): Use generic OS ABI framework.
7407 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7408 gdbarch_register_osabi.
7409 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7410 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7411 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7412
7413 * Makefile.in (sh_tdep_h): Add osabi.h.
7414 * sh-tdep.h (sh_osabi): Remove.
7415 (gdbarch_tdep): Use generic OS ABI framework.
7416 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7417 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7418 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7419 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7420
7421 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7422 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7423 gdbarch_register_osabi.
7424 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7425 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7426 (get_elfosabi): Rename to...
7427 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7428 ABI framework support routines.
7429 (arm_gdbarch_init): Use generic OS ABI framework.
7430 (arm_dump_tdep): Likewise.
7431 (_initialize_arm_tdep): Likewise.
7432 * arm-tdep.h: Include osabi.h.
7433 (arm_abi): Remove.
7434 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7435 osabi member.
7436 (arm_gdbarch_register_os_abi): Remove prototype.
7437 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7438 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7439
7440 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7441 * mips-tdep.c: Include osabi.h.
7442 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7443 OS ABI framework.
7444
7445 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7446
7447 * h8300-tdep.c: Fix formatting.
7448
7449 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7450
7451 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7452 printing vector registers.
7453
7454 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7455
7456 From Fernando Nasser:
7457 * remote.c (remote_async_open_1): Re-throw the exception when the
7458 connection fails.
7459 (remote_cisco_open): Ditto.
7460 (remote_open_1): Ditto.
7461
7462 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7463
7464 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7465 (remote_start_remote): Add uiout parameter. Pass through to
7466 remote_start_remote_dummy.
7467 (remote_open_1): Use catch_exception instead of catch_errors.
7468 (remote_async_open_1): Ditto.
7469 (remote_cisco_open): Ditto.
7470
7471 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7472
7473 * remote.c (remote_start_remote): Replace PTR with void pointer.
7474 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7475 static.
7476
7477 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7478
7479 * gdb_indent.sh: Allow the script to be run in the sim directory.
7480
7481 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7482
7483 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7484 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7485
7486 * corelow.c (core_open): Only call set_gdbarch_from_file if
7487 exec_bfd is NULL.
7488
7489 2002-05-17 Andrey Volkov <avolkov@transas.com>
7490
7491 * h8300-tdep.c: Add support of EXR register
7492 * config/h8300/tm-h8300.h: Ditto.
7493
7494 2002-05-17 Andrey Volkov <avolkov@transas.com>
7495
7496 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7497
7498 2002-05-17 Andrey Volkov <avolkov@transas.com>
7499
7500 * h8300-tdep.c: Change literal regnums to REGNO.
7501
7502 2002-05-17 Jim Blandy <jimb@redhat.com>
7503
7504 * NEWS: Note addition of macro support.
7505
7506 Expand preprocessor macros in C expressions.
7507 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7508 (scan_macro_expansion, scanning_macro_expansion,
7509 finished_macro_expansion): New function declarations.
7510 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7511 variable declarations.
7512 * parser-defs.h (expression_context_pc): New declaration.
7513 * parse.c (expression_context_pc): New variable.
7514 (parse_exp_1): Set expression_context_pc, as well as
7515 expression_context_block.
7516 * c-exp.y (yylex): If we're not already reading the result of a
7517 macro expansion, try to macro-expand the next token. When we're
7518 done scanning a macro expansion, switch back to the mainline text.
7519 Commas and `if's in a macro's expansion don't terminate the input.
7520 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7521 (macro_original_text, macro_expanded_text,
7522 expression_macro_lookup_func, expression_macro_lookup_baton): New
7523 variables.
7524 (scan_macro_expansion, scanning_macro_expansion,
7525 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7526 c_preprocess_and_parse): New functions.
7527 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7528 c_preprocess_and_parse, instead of c_parse.
7529 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7530 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7531
7532 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7533
7534 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7535 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7536 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7537
7538 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7539
7540 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7541
7542 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7543
7544 * Makefile.in (sh_tdep_h): Define and use.
7545 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7546 register enum): Move to...
7547 * * sh-tdep.h: ...here.
7548 * sh-tdep.c: Include sh-tdep.h.
7549 * sh3-rom.c: Likewise.
7550 * shnbsd-tdep.c: Likewise.
7551
7552 2002-05-16 Michael Snyder <msnyder@redhat.com>
7553
7554 * arm-tdep.c: Spelling fix in comment.
7555
7556 2002-05-16 Jim Blandy <jimb@redhat.com>
7557
7558 Add commands for manually expanding macros and showing their
7559 definitions.
7560 * macrocmd.c, macroscope.c, macroscope.h: New files.
7561 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7562 (macroscope_h): New variable.
7563 (HFILES_NO_SRCDIR): Add macroscope.h.
7564 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7565 (macroscope.o, macrocmd.o): New rules.
7566
7567 Teach the Dwarf 2 reader to read macro information.
7568 * dwarf2read.c: #include "macrotab.h".
7569 (dwarf_macinfo_buffer): New variable.
7570 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7571 dwarf_macinfo_size.
7572 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7573 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7574 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7575 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7576 dwarf2_macro_spaces_in_definition): New complaints.
7577 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7578 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7579 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7580 the partial symbol table.
7581 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7582 from what's recorded in the partial symbol table.
7583 (read_file_scope): If the compilation unit has a
7584 `DW_AT_macro_info' attribute, read its macro information.
7585 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7586
7587 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7588
7589 Fix PR gdb/546
7590 * ser-tcp.c: Don't include <netinet/udp.h>.
7591
7592 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7593
7594 * MAINTAINERS: Update my email address.
7595
7596 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7597
7598 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7599 include file of the same name.
7600
7601 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7602
7603 * configure.tgt: Mark v850 as multi-arched.
7604 * config/v850/tm-v850.h: Remove file.
7605 * config/v850/v850.mt: Eliminate TM_FILE.
7606
7607 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7608
7609 * v850-tdep.c: Full multi-arch.
7610 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7611 Define GDB_MULTI_ARCH to 2.
7612
7613 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7614
7615 * p-exp.y (current_type): New static variable.
7616 Carries the type of the expression at the position that is parsed.
7617 (push_current_type, pop_current_type): Two new functions. Used
7618 to store/restore current_type in expression on specific tokens.
7619 (search_field): New static variable. Set to one after parsing a point
7620 as at that point only a FIELDNAME token should be searched.
7621 (FIELDNAME): New token. After a point only a token belonging to
7622 current_type type definition is allowed.
7623 (all over token rules): reset and change current_type according
7624 to rules.
7625 (exp '[' rule): insert implicit array index field if
7626 exp is a pascal string type.
7627
7628 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7629
7630 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7631 frame info. Use frame_info's saved_regs instead of matching member
7632 in extra_frame_info throughout.
7633 (v850_frame_init_saved_regs): New function.
7634 (v850_init_extra_frame_info): Move most functionality into
7635 v850_frame_init_saved_regs().
7636 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7637 (v850_frame_find_saved_regs): Remove declaration.
7638 (FRAME_FIND_SAVED_REGS): Remove definition.
7639 (v850_frame_init_saved_regs): Add declaration.
7640 (FRAME_INIT_SAVED_REGS): Add definition.
7641
7642 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7643
7644 * v850-tdep.c: Begin multi-arch'ing v850.
7645 (v850_target_architecture_hook): Remove function.
7646 (v850_gdbarch_init): New function. Add code previously in
7647 v850_target_architecture_hook().
7648 (_initialize_v850_tdep): Don't set target_architecture_hook.
7649 Call register_gdbarch_init() instead.
7650
7651 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7652
7653 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7654 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7655 (fixup_class_method_type): Likewise.
7656
7657 2002-05-15 Jim Blandy <jimb@redhat.com>
7658
7659 Add macro structures to GDB's symbol tables. Nobody puts anything
7660 in them yet.
7661 * symtab.h (struct symtab): New member: `macro_table'.
7662 * buildsym.h (pending_macros): New global variable.
7663 * buildsym.c: #include "macrotab.h".
7664 (buildsym_init): Initialize `pending_macros'.
7665 (end_symtab): If we found macro information while reading a CU's
7666 debugging info, do build a symtab structure for it. Make the
7667 symtab point to the macro information, and clear the
7668 `pending_macros' pointer which held it while we were reading the
7669 debug info.
7670 (really_free_pendings): Free any pending macro table.
7671 * objfiles.h (struct objfile): New member: `macro_cache'.
7672 * objfiles.c (allocate_objfile): Set allocate and free functions
7673 for the macro cache's objstack.
7674 (free_objfile): Empty the macro cache's obstack.
7675 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7676 set new allocate and free functions for it.
7677 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7678 free functions for the macro cache's objstack. (Why is this
7679 function building its own objfile?)
7680 * symmisc.c (print_objfile_statistics): Print statistics on the
7681 macro bcache.
7682 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7683
7684 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7685
7686 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7687 (REGISTER_U_ADDR): Delete definition.
7688 (arm_register_u_addr): Delete declaration.
7689
7690 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7691
7692 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7693 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7694
7695 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7696
7697 * regcache.c (register_valid): Revise comments refering to "Not
7698 available" and "unavailable".
7699 * frame.c (frame_register_read): Ditto.
7700 * findvar.c (value_of_register): Ditto.
7701
7702 2002-05-15 Andrew Cagney <cagney@redhat.com>
7703
7704 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7705 (remote-sim.o): Update dependencies.
7706 (d10v-tdep.o): Specify dependencies.
7707 (sim_d10v_h): Define.
7708
7709 2002-05-14 Jim Blandy <jimb@redhat.com>
7710
7711 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7712 * macrotab.c (macro_lookup_inclusion, find_definition,
7713 new_macro_table): Same.
7714
7715 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7716 not `! strcmp ()'. This is a dubious improvement.
7717 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7718
7719 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7720 although it's not necessary, to avoid a warning.
7721
7722 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7723
7724 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7725 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7726 TYPE_INSTANCE_FLAGS.
7727 (struct main_type): New.
7728 (struct type): Move most members to struct main_type. Change
7729 cv_type and as_type to new type_chain member. Add instance_flags.
7730 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7731 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7732 (finish_cv_type): Remove prototype.
7733 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7734 Set TYPE_CHAIN.
7735 (alloc_type_instance): New function.
7736 (smash_type): New function.
7737 (make_pointer_type, make_reference_type, make_function_type)
7738 (smash_to_member_type, smash_to_method_type): Call smash_type.
7739 (make_qualified_type): New function.
7740 (make_type_with_address_space): Call make_qualified_type.
7741 (make_cv_type): Likewise.
7742 (finish_cv_type): Remove unnecessary function.
7743 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7744 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7745 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7746 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7747 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7748 * hpread.c (hpread_read_struct_type): Likewise.
7749 * stabsread.c (read_struct_type): Likewise.
7750
7751 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7752
7753 * configure.tgt: Add a catch all sh* target, for cases like
7754 sh[2,3,4]-elf and sh-hms.
7755
7756 2002-05-14 Keith Seitz <keiths@redhat.com>
7757
7758 * event-loop.c (create_file_handler): Don't do anything but
7759 update data when we are given a fd which we are already
7760 monitoring.
7761
7762 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7763
7764 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7765 (update_context): Use __func__ in warnings.
7766
7767 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7768
7769 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7770 and tcp_close to net_open and net_close.
7771 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7772 using UDP if requested. Don't try to disable Nagle on UDP
7773 sockets.
7774 * remote.c (remote_serial_open): New function. Warn about UDP.
7775 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7776
7777 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7778
7779 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7780
7781 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7782
7783 * configure.tgt: Remove sh-hms target.
7784 * MAINTAINERS: Don't list sh-hms as a separate target.
7785
7786 2002-05-13 Jim Blandy <jimb@redhat.com>
7787
7788 Add first preprocessor macro-expansion files.
7789 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7790 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7791 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7792 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7793 (COMMON_OBS): Add macrotab.o, macroexp.o.
7794 (macroexp.o, macrotab.o): New rules.
7795
7796 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7797
7798 * config/m88k/tm-m88k.h: Update copyright.
7799 (m88k_target_write_pc): Declare
7800 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7801 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7802 (SHIFT_INST_REGS): Update definition.
7803 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7804 using old definition of TARGET_WRITE_PC.
7805 * regcache.c (generic_target_write_pc): Delete code handling
7806 NNPC_REGNUM.
7807 * gdbarch.sh (NNPC_REGNUM): Delete.
7808 * gdbarch.h, gdbarch.c: Regenerate.
7809
7810 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7811
7812 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7813 builtin reg number.
7814
7815 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7816
7817 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7818 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7819 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7820 access macros.
7821 * c-typeprint.c (cp_type_print_method_args): Likewise.
7822 (c_type_print_args): Likewise.
7823 * d10v-tdep.c (d10v_push_arguments): Likewise.
7824 (d10v_extract_return_value): Likewise.
7825 * expprint.c (print_subexp): Likewise.
7826 * gdbtypes.c (lookup_primitive_typename): Likewise.
7827 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7828 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7829 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7830 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7831 (TYPE_VECTOR): Likewise.
7832 * hpread.c (hpread_read_struct_type)
7833 (fix_static_member_physnames, fixup_class_method_type)
7834 (hpread_type_lookup): Likewise.
7835 * mdebugread.c (parse_symbol, parse_type): Likewise.
7836 * p-lang.c (is_pascal_string_type): Likewise.
7837 * valops.c (hand_function_call): Likewise.
7838 * x86-64-tdep.c (classify_argument): Likewise.
7839
7840 * hpread.c (hpread_read_function_type)
7841 (hpread_read_doc_function_type): Call replace_type.
7842 * dstread.c (create_new_type): Delete.
7843 (decode_dst_structure, process_dst_function): Call alloc_type.
7844 Use type access macros.
7845
7846 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7847
7848 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7849 the're not supported by the current architecture.
7850 (i387_fill_fxsave): Likewise.
7851
7852 2002-05-12 Fred Fish <fnf@redhat.com>
7853
7854 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7855 sect_index_xxx members to index the first slot in section_offsets
7856 if all of the section_offsets are zero.
7857
7858 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7859
7860 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7861 checked in with last change.
7862
7863 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7864
7865 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7866 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7867 config.sub.
7868
7869 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7870
7871 * Makefile.in: Update dependencies.
7872
7873 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7874
7875 * language.c (local_hex_string_custom): Simplify. Do not depend
7876 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7877
7878 * memattr.c (mem_info_command): Replace calls to
7879 longest_local_hex_string and longest_local_hex_string_custom.
7880 * buildsym.c (make_blockvector): Ditto.
7881 * solib.c (info_sharedlibrary_command): Ditto.
7882 * tracepoint.c (tracepoints_info): Ditto.
7883 * symtab.c (print_msymbol_info): Ditto.
7884
7885 * language.c (local_hex_string): Delete.
7886 (local_hex_string_custom): Delete.
7887 (longest_local_hex_string): Rename to local_hex_string.
7888 (longest_local_hex_string_custom): Rename to
7889 local_hex_string_custom.
7890 * language.h (local_hex_string): Change parameter type to LONGEST.
7891 (local_hex_string_custom): Ditto.
7892 (longest_local_hex_string): Delete declaration.
7893 (longest_local_hex_string_custom): Ditto.
7894
7895 * solib.c: Update copyright.
7896 * memattr.c: Update copyright.
7897
7898 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7899
7900 * arch-utils.h (legacy_register_to_value): Declare.
7901 (legacy_value_to_register): Declare.
7902 (legacy_convert_register_p): Declare.
7903 * arch-utils.c (legacy_register_to_value): New function.
7904 (legacy_value_to_register): New function.
7905 (legacy_convert_register_p): New function.
7906
7907 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7908 (VALUE_TO_REGISTER): Define.
7909 (CONVERT_REGISTER_P): Define.
7910 * gdbarch.h, gdbarch.c: Regenerate.
7911
7912 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7913 VALUE_TO_REGISTER.
7914 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7915 CONVERT_REGISTER_P.
7916
7917 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7918 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7919
7920 * Makefile.in: Update dependencies for valops.c.
7921 * valops.c: Include "gdb_assert.h".
7922 (typecmp): Skip THIS parameter to methods.
7923 (find_method_list): Remove static_memfuncp argument,
7924 update callers. Check for stub methods.
7925 (find_value_oload_method_list): Don't set *static_memfuncp.
7926 (find_overload_match): Don't check for stub methods. Assert
7927 that methods are not stubbed. Handle static methods.
7928 (value_find_oload_method_list): Remove static_memfuncp argument.
7929 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7930 to the argument list for static stub methods.
7931 * value.h (value_find_oload_method_list): Update prototype.
7932
7933 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7934
7935 * arch-utils.h (generic_register_size): Declare.
7936 (generic_register_raw_size, generic_register_virtual_size): Delete
7937 declarations.
7938 * arch-utils.c (generic_register_raw_size): Delete.
7939 (generic_register_size): New function.
7940 (generic_register_virtual_size): Delete.
7941
7942 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7943 default generic_register_size.
7944 * gdbarch.h, gdbarch.c: Re-generate.
7945
7946 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7947 register_virtual_size.
7948 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7949 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7950
7951 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7952
7953 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7954 * gdbarch.h, gdbarch.c: Regenerate.
7955 * gnu-v3-abi.c: Update copyright.
7956 (vtable_address_point_offset): Update.
7957 (gnuv3_rtti_type): Update.
7958 (gnuv3_baseclass_offset): Update.
7959 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7960 (init_fetch_link_map_offsets): Update.
7961 * remote.c (get_remote_state): Update.
7962
7963 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7964
7965 * TODO: Remove value_headof/value_from_vtable_info comment.
7966 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7967 * values.c (value_headof, value_from_vtable_info): Delete.
7968 * value.h (value_from_vtable_info): Delete prototype.
7969
7970 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7971
7972 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7973 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7974 $(gdb_regex_h).
7975 (gdb_assert_h): Define.
7976 (gdb_wait_h): Define.
7977 (gdb_regex_h): Define.
7978
7979 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7980
7981 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7982 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7983
7984 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7985
7986 * nbsd-tdep.c: Fix comment.
7987
7988 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7989
7990 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7991 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7992 (nbsd-tdep.o): New dependency list.
7993 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7994 nbsd-tdep.h.
7995 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7996 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7997 * nbsd-tdep.c: New file.
7998 * nbsd-tdep.h: New file.
7999 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8000 nbsd-tdep.h.
8001 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8002 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8003 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8004 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8005
8006 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8007
8008 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8009 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8010 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8011 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8012 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8013 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8014
8015 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8016
8017 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8018 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8019 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8020 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8021 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8022 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8023 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8024
8025 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8026
8027 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8028 fetch_elfcore_registers to...
8029 * i386nbsd-tdep.c: ...here.
8030 (i386nbsd_use_struct_convention): Rename to...
8031 (i386nbsd_aout_use_struct_convention): ...this.
8032 (i386nbsd_supply_reg): New function.
8033 (i386nbsd_fill_reg): New function.
8034 (fetch_core_registers): Use i386nbsd_supply_reg.
8035 (fetch_elfcore_registers): Likewise.
8036 (_initialize_i386nbsd_tdep): New function.
8037 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8038 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8039 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8040 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8041 (i386nbsd_aout_use_struct_convention): ...this.
8042
8043 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8044
8045 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8046 (store_inferior_registers): Use shnbsd_fill_reg.
8047 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8048 sh_nbsd_supply_register): Collapse into...
8049 (shnbsd_supply_reg): ...this.
8050 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8051 (shnbsd_fill_reg): ...this.
8052 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8053 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8054 (fetch_core_registers): Use shnbsd_supply_reg.
8055 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8056 (sh_nbsd_core_fns): Rename to...
8057 (shnbsd_core_fns): ...this.
8058 (sh_nbsd_elfcore_fns): Rename to...
8059 (shnbsd_elfcore_fns): ...this.
8060 (sh_nbsd_init_abi): Rename to...
8061 (shnbsd_init_abi): ...this.
8062 (_initialize_sh_nbsd_tdep): Rename to...
8063 (_initialize_shnbsd_tdep): ...this.
8064 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8065 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8066 sh_nbsd_fill_register): Remove prototypes.
8067 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8068
8069 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8070
8071 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8072 (i387-nat.o): Delete dependency list.
8073 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8074 (x86-64-linux-nat.o): Likewise.
8075 * i387-nat.c: Delete file, moving contents to...
8076 * i387-tdep.c: ...here.
8077 * i387-nat.h: Rename...
8078 * i387-tdep.h: ...to this.
8079 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8080 * i386-linux-nat.c: Likewise.
8081 * i386bsd-nat.c: Likewise.
8082 * i386gnu-nat.c: Likewise.
8083 * i386nbsd-nat.c: Likewise.
8084 * i386v4-nat.c: Likewise.
8085 * x86-64-linux-nat.c: Likewise.
8086 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8087 * config/i386/go32.mh (NATDEPFILES): Likewise.
8088 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8089 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8090 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8091 * config/i386/linux.mh (NATDEPFILES): Likewise.
8092 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8093 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8094 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8095 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8096
8097 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8098
8099 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8100 (alphanbsd-nat.o): Remove dependency list.
8101 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8102 * alphanbsd-nat.c: Delete. Contents moved to...
8103 * alphanbsd-tdep.c: ...here.
8104 (_initialize_alphanbsd_tdep): Register core functions.
8105 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8106
8107 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8108
8109 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8110 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8111 (alphanbsd-nat.o): Likewise.
8112 (alphabsd-tdep.o): New dependency list.
8113 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8114 (fill_gregset): Use alphabsd_fill_reg.
8115 (supply_fpregset): Use alphabsd_supply_fpreg.
8116 (fill_fpregset): Use alphabsd_fill_fpreg.
8117 (fetch_inferior_registers): Use struct reg and struct fpreg
8118 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8119 and alphabsd_supply_fpreg.
8120 (store_inferior_registers): Use struct reg and struct fpreg
8121 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8122 and alphabsd_fill_fpreg.
8123 * alphabsd-tdep.c: New file.
8124 * alphabsd-tdep.h: New file.
8125 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8126 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8127 alphabsd_supply_fpreg.
8128 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8129 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8130
8131 2002-05-11 Eric Christopher <echristo@redhat.com>
8132
8133 * mips-tdep.c (mips_double_register_type): Fix thinko.
8134 (mips_single_register_type): Ditto.
8135 * MAINTAINERS: Add self.
8136
8137 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8138
8139 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8140 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8141 right thing on architectures with different endianness and/or
8142 integer sizes.
8143
8144 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8145
8146 From Christian Limpach <chris@Pin.LU>
8147 * configure.in: Change sed expression which comments out
8148 NATDEPFILES to also comment out continuation lines.
8149 * configure: Regenerate.
8150
8151 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8152
8153 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8154 big patch.
8155
8156 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8157
8158 * sh-tdep.c: Include correct file.
8159
8160 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8161
8162 New support for sh64-elf (sh5) target.
8163
8164 * configure.tgt: For sh64-elf target, default to sh-elf.
8165
8166 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8167 (struct gdbarch_tdep): Add new fields for new registers and ABI
8168 info.
8169
8170 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8171 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8172 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8173 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8174 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8175 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8176 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8177 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8178 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8179 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8180 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8181 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8182 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8183 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8184 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8185 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8186 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8187 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8188 sign_extend, sh64_nofp_frame_init_saved_regs,
8189 sh64_init_extra_frame_info, sh64_get_saved_register,
8190 sh64_extract_struct_value_address, sh64_pop_frame,
8191 sh64_push_arguments, sh64_extract_return_value,
8192 sh64_store_return_value, sh64_show_media_regs,
8193 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8194 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8195 sh_sh64_register_virtual_type,
8196 sh_sh64_register_convert_to_virtual,
8197 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8198 sh64_register_read, sh64_pseudo_register_write,
8199 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8200 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8201 sh64_do_pseudo_register, sh_compact_do_registers_info,
8202 sh64_do_registers_info, sh_gdbarch_init): New functions.
8203
8204 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8205
8206 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8207
8208 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8209
8210 * linespec.c (decode_line_1): Check for a double quote after
8211 a filename correctly.
8212
8213 2002-05-10 Jim Blandy <jimb@redhat.com>
8214
8215 Properly track the size of the current objfile's .debug_line section.
8216 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8217 (DWARF_LINE_SIZE): New macro.
8218 (dwarf2_build_psymtabs_hard): Record the line section's size in
8219 the partial symbol table.
8220 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8221 symbol table.
8222
8223 2002-05-10 Petr Sorfa <petrs@caldera.com>
8224
8225 * ia64-tdep.c: Handle breakpoints on L instruction type
8226 in MLX instruction bundle by moving the breakpoint to
8227 the third slot (X instruction type) as L holds only data.
8228
8229 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8230
8231 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8232 (process_one_symbol): Complain about discarding local symbols
8233 due to a misplaced N_LBRAC entry.
8234
8235 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8236
8237 From Daniel Berlin <dan@cgsoftware.com>
8238 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8239 decrease the depth we are at, in the case of templates.
8240
8241 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8242
8243 * mips-tdep.c (mips_float_register_type): New function.
8244 (mips_double_register_type): New function.
8245 (mips_print_register): Use them.
8246 (do_fp_register_row): Likewise.
8247
8248 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8249
8250 * signals/signals.c (signals): Remove conditional compilation around
8251 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8252 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8253
8254 2002-05-09 Michael Snyder <msnyder@redhat.com>
8255
8256 * remote-rdp.c (remote_rdp_can_run): Remove.
8257
8258 2002-05-09 Tom Tromey <tromey@redhat.com>
8259
8260 * jv-valprint.c (java_val_print): Handle `char' as a special case
8261 of TYPE_CODE_INT.
8262
8263 2002-05-09 Michael Snyder <msnyder@redhat.com>
8264
8265 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8266 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8267 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8268 str r(0123),[sp,#nn].
8269 (arm_skip_prologue): Ditto. Also make disassembly
8270 order-independent by placing it in a loop.
8271
8272 2002-05-06 Michael Snyder <msnyder@redhat.com>
8273
8274 * stabsread.c (read_type): Add recognition for new attribute:
8275 "@V;" means that an array type is actually a vector.
8276 This is analogous to the vector flag that's been added to dwarf2.
8277
8278 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8279
8280 * i386-tdep.h (i386_abi): New enum.
8281 (struct gdbarch_tdep): Replace os_ident member with abi.
8282 (i386_gdbarch_register_os_abi): New prototype.
8283 * i386-tdep.c (i386_abi_names): New array.
8284 (process_note_abi_tag_sections): Removed.
8285 (process_note_sections): New function.
8286 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8287 (struct i386_abi_handler): New struct.
8288 (i386_abi_handler_list): New variable.
8289 (i386_gdbarch_register_os_abi): New function.
8290 (i386_gdbarch_init): Adapt for the changes given above.
8291
8292 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8293
8294 * gregset.h: Say "GNU/Linux".
8295
8296 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8297
8298 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8299 (build_gdbtypes): Build builtin_type_v2_float.
8300 (_initialize_gdbtypes): Register new builtin type.
8301
8302 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8303
8304 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8305 (clear_gdbarch_swap): New function.
8306 (initialize_non_multiarch): Call.
8307 (gdbarch_update_p): Before calling init(), swap out and clear the
8308 existing architecture.
8309 * gdbarch.c: Regenerate.
8310
8311 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8312
8313 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8314 alphanbsd-tdep.c.
8315
8316 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8317
8318 * sh-nbsd-nat.c: Rename to...
8319 * shnbsd-nat.c: ...this.
8320 * sh-nbsd-tdep.c: Rename to...
8321 * shnbsd-tdep.c: ...this.
8322 * sh-nbsd-tdep.h: Rename to...
8323 * shnbsd-tdep.h: ...this.
8324 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8325 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8326
8327 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8328
8329 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8330 concatenation for command help messages.
8331
8332 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8333
8334 * NEWS: Note new sh*-*-netbsdelf* configuration.
8335 * configure.host: Set gdb_host_cpu to sh for all sh*.
8336 (sh*-*-netbsdelf*): New host.
8337 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8338 (sh*-*-netbsdelf*): New target.
8339 * sh-nbsd-nat.c: New file.
8340 * sh-nbsd-tdep.c: New file.
8341 * sh-nbsd-tdep.h: New file.
8342 * config/sh/nbsd.mh: New file.
8343 * config/sh/nbsd.mt: New file.
8344 * config/sh/nm-nbsd.h: New file.
8345 * config/sh/tm-nbsd.h: New file.
8346
8347 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8348
8349 * sh-tdep.c (sh_osabi_names): Declare.
8350 (process_note_abi_tag_sections): New function.
8351 (get_elfosabi): Ditto.
8352 (sh_gdbarch_register_os_abi): Ditto.
8353 (sh_dump_tdep): Ditto.
8354 _initialize_sh_tdep): Use gdbarch_register to register
8355 sh_gdbarch_init and sh_dump_tdep.
8356 * config/sh/tm-sh.h (sh_osabi): Declare.
8357 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8358
8359 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8360
8361 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8362 (thumb_scan_prologue): Ditto.
8363 (arm_find_callers_reg): Ditto.
8364 (arm_frame_chain): Ditto.
8365 (arm_init_extra_frame_info): Ditto.
8366 (arm_frame_saved_pc): Ditto.
8367 (arm_pop_frame): Ditto.
8368 (arm_push_return_address): New function.
8369 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8370 call_dummy_location, call_dummy_breakpoint_offset_p,
8371 call_dummy_breakpoint_offset, call_dummy_p,
8372 call_dummy_stack_adjust_p, call_dummy_words,
8373 sizeof_call_dummy_words, call_dummy_start_offset,
8374 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8375 call_dummy_address, push_return_address and push_dummy_frame for
8376 generic dummy frames.
8377
8378 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8379
8380 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8381 size computation for alloca.
8382 (sh_fp_frame_init_saved_regs): Likewise.
8383
8384 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8385
8386 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8387 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8388 * arm-tdep.c (arm_store_return_value): Use them.
8389 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8390 * remote-rdp.c (remote_rdp_fetch_register): Use
8391 ARM_MAX_REGISTER_RAW_SIZE.
8392 (remote_rdp_store_register): Likewise.
8393
8394 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8395
8396 * dwarf2cfi.c: Code cleanup, removed unused variables,
8397 added default labels to switch {} statements.
8398 * x86-64-tdep.c: Ditto.
8399 * x86-64-linux-nat.c: Ditto.
8400
8401 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8402
8403 * solib.h: Protect against multiple inclusion.
8404
8405 2002-05-06 Jim Blandy <jimb@redhat.com>
8406
8407 Add first preprocessor macro-expansion files.
8408 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8409 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8410 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8411 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8412 (COMMON_OBS): Add macrotab.o, macroexp.o.
8413 (macroexp.o, macrotab.o): New rules.
8414
8415 Separate the job of reading the line number info statement program
8416 header (...expialidocious) out into its own function.
8417 * dwarf2read.c (struct line_head, struct filenames, struct
8418 directories): Replace with...
8419 (struct line_header): New structure, containing the full
8420 contents of the statement program header, including the
8421 include directory and file name tables.
8422 (read_file_scope): If we have line number info, instead of just
8423 calling dwarf_decode_lines to do all the work, call
8424 dwarf_decode_line_header first to get a `struct line_header'
8425 containing the data in the statement program header, and then
8426 pass that to dwarf_decode_lines, which will pick up where that
8427 left off. Be sure to clean up the `struct line_header' object.
8428 (dwarf_decode_line_header, free_line_header, add_include_dir,
8429 add_file_name): New functions.
8430 (dwarf_decode_lines): Move all the code to read the statement
8431 program header into dwarf_decode_line_header. Take the line
8432 header it built as the first argument, instead of the offset to
8433 the compilation unit's line number info. Use the new `struct
8434 line_header' type instead of the old structures. No need to do
8435 cleanups here now, since we don't allocate anything.
8436 (dwarf2_statement_list_fits_in_line_number_section,
8437 dwarf2_line_header_too_long): New complaints.
8438
8439 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8440
8441 * gdbtypes.c (init_vector_type): New function.
8442 (build_builtin_type_vec128): Simplify the representation of SIMD
8443 registers.
8444 (build_gdbtypes): Initialize new builtin vector types.
8445 (_initialize_gdbtypes): Register new vector types with gdbarch.
8446 (builtin_type_v4_float, builtin_type_v4_int32,
8447 builtin_type_v8_int16, builtin_type_v16_int8,
8448 builtin_type_v2_int32, builtin_type_v4_int16,
8449 builtin_type_v8_int8): New (renamed) SIMD types.
8450
8451 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8452
8453 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8454 (i387_fill_fxsave): Likewise.
8455
8456 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8457
8458 * alpha-tdep.c (alpha_extract_return_value): Don't use
8459 non-constant array size in prototype.
8460
8461 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8462
8463 From Brian Taylor <briant at model dot com>:
8464 * ui-out.c (ui_out_field_core_addr): Use the function
8465 longest_local_hex_string_custom'to format addresses > 32 bits
8466 wide.
8467
8468 * ui-out.c (ui_out_field_core_addr): Update comment.
8469
8470 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8471
8472 * stack.c (select_and_print_frame): Make static. Delete the
8473 parameter `level'.
8474 (func_command): Update call.
8475 (select_frame_command): Delete code computing the frame level.
8476 * frame.h (select_and_print_frame): Delete declaration.
8477
8478 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8479
8480 * sparc-tdep.c (sparc_get_saved_register): Comment why
8481 get_prev_frame call is safe.
8482
8483 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8484
8485 * frame.h (select_frame): Delete level parameter.
8486 * stack.c (select_frame): Update. Use frame_relative_level to
8487 obtain the frame's level.
8488 (select_and_print_frame): Update call.
8489 (select_frame_command): Ditto.
8490 (up_silently_base): Ditto.
8491 (down_silently_base): Ditto.
8492 * ocd.c (ocd_start_remote): Ditto.
8493 * remote-rdp.c (remote_rdp_open): Ditto.
8494 * remote-mips.c (mips_initialize): Ditto.
8495 (common_open): Ditto.
8496 * remote-e7000.c (e7000_start_remote): Ditto.
8497 * m3-nat.c (select_thread): Ditto.
8498 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8499 (child_get_current_exception_event): Ditto.
8500 * varobj.c (varobj_create): Ditto.
8501 (varobj_update): Ditto.
8502 (c_value_of_root): Ditto.
8503 * tracepoint.c (finish_tfind_command): Ditto.
8504 * corelow.c (core_open): Ditto.
8505 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8506 * thread.c (info_threads_command): Ditto.
8507 (switch_to_thread): Ditto.
8508 * infrun.c (normal_stop): Ditto.
8509 (restore_selected_frame): Ditto.
8510 (restore_inferior_status): Ditto.
8511 * breakpoint.c (insert_breakpoints): Ditto.
8512 (watchpoint_check): Ditto.
8513 (bpstat_stop_status): Ditto.
8514 (do_enable_breakpoint): Ditto.
8515 * blockframe.c (flush_cached_frames): Ditto.
8516 (reinit_frame_cache): Ditto.
8517
8518 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8519
8520 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8521 maintainer.
8522
8523 2002-05-04 Jim Blandy <jimb@redhat.com>
8524
8525 * gdbtypes.c (replace_type): Doc fix.
8526
8527 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8528
8529 * valprint.c (strcat_longest): Delete commented out function.
8530 Update copyright.
8531
8532 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8533
8534 * MAINTAINERS: Mark a29k as deleted.
8535 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8536 Move new configurations to the top.
8537 * configure.tgt: Remove a29k.
8538 * config/a29k/tm-vx29k.h: Delete.
8539 * config/a29k/vx29k.mt: Delete.
8540 * config/a29k/tm-a29k.h: Delete.
8541 * config/a29k/a29k-udi.mt: Delete.
8542 * config/a29k/a29k.mt: Delete.
8543 * a29k-tdep.c: Delete.
8544 * remote-udi.c: Delete.
8545 * remote-mm.c: Delete.
8546 * remote-eb.c: Delete.
8547 * remote-adapt.c: Delete.
8548 * Makefile.in: Remove obsolete code.
8549 * config/s390/s390x.mt: Ditto.
8550 * config/s390/s390.mt: Ditto.
8551 * config/sparc/sparclynx.mh: Ditto.
8552 * config/sparc/linux.mh: Ditto.
8553 * config/pa/hppaosf.mh: Ditto.
8554 * config/pa/hppabsd.mh: Ditto.
8555 * config/ns32k/nbsd.mt: Ditto.
8556 * config/mips/vr5000.mt: Ditto.
8557 * config/m68k/sun3os4.mh: Ditto.
8558 * config/m68k/nbsd.mt: Ditto.
8559 * config/m68k/m68klynx.mh: Ditto.
8560 * config/m32r/m32r.mt: Ditto.
8561 * config/i386/x86-64linux.mt: Ditto.
8562 * config/i386/nbsdelf.mt: Ditto.
8563 * config/i386/nbsd.mt: Ditto.
8564 * config/i386/i386lynx.mh: Ditto.
8565
8566 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8567
8568 * target.c (debug_print_register): New function. Handle oversize
8569 registers.
8570 (debug_to_fetch_registers): Call.
8571 (debug_to_store_registers): Call.
8572
8573 2002-05-03 Jim Blandy <jimb@redhat.com>
8574
8575 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8576 (read_type): Doc fix.
8577 * gdbtypes.c (replace_type): Doc fix.
8578
8579 * stabsread.c (multiply_defined_struct): New complaint.
8580 (read_struct_type): If the type we were passed isn't empty, or
8581 incomplete, don't read the new struct type into it; complain,
8582 and return the original type unchanged. Take a new `type_code'
8583 argument, which is the type code for the new type.
8584 (read_type): Rather than storing the type's type code here, pass
8585 it as an argument to read_struct_type, and let that take care of
8586 storing it. That way, we don't overwrite the original type code,
8587 so read_struct_type can use it to decide whether we're overwriting
8588 something we shouldn't.
8589 (complain_about_struct_wipeout): New function.
8590
8591 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8592
8593 * gdbarch.sh: Assert that gdbarch is non-NULL.
8594 * gdbarch.c: Regenerate.
8595
8596 2002-05-03 Jason Merrill <jason@redhat.com>
8597
8598 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8599 and return NULL.
8600
8601 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8602
8603 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8604 (x86_64_dwarf2gdb_regno_map_length),
8605 (x86_64_dwarf2_reg_to_regnum): Added.
8606 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8607 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8608 (_initialize_x86_64_tdep): Synced with the change above.
8609 (x86_64_skip_prologue): Reformulated message.
8610
8611 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8612
8613 * f-exp.y: Also use new prev_lexptr variable
8614 to improve error reporting. Based on Michael Snyder
8615 2002-04-24 dated patch to c-exp.y.
8616 * jv-exp.y: Likewise.
8617 * m2-exp.y: Likewise.
8618
8619 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8620
8621 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8622 we are dealing with vectors.
8623
8624 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8625
8626 * config/m68k/tm-nbsd.h: Obvious fix,
8627 correct machine name.
8628
8629 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8630
8631 * p-typeprint.c (pascal_type_print_base): Add support
8632 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8633
8634 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8635
8636 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8637 for fondamental pascal 'char' type.
8638
8639 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8640
8641 * p-lang.h (is_pascal_string_type): Declaration changed,
8642 new sixth argument of type char ** added.
8643 * p-lang.c (is_pascal_string_type): Implementation
8644 changed. Args length_pos, length_size, string_pos, char_size
8645 can now be NULL. New argument arrayname set to the field
8646 name of the char array. Return value set to char array
8647 field index plus one.
8648 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8649 is_pascal_string_type function.
8650
8651 2002-05-02 Andrew Cagney <cagney@redhat.com>
8652
8653 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8654 <cagney@redhat.com> change.
8655 * gdbarch.c: Regenerate.
8656
8657 2002-05-02 Andrew Cagney <cagney@redhat.com>
8658
8659 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8660 before probing for a new one. Detect errorenous gdbarch_init
8661 functions.
8662 * gdbarch.c: Regenerate.
8663
8664 2002-05-01 Andrew Cagney <cagney@redhat.com>
8665
8666 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8667 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8668 * config/v850/tm-v850.h: Ditto. Update copyright.
8669
8670 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8671
8672 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8673 current_gdbarch.
8674
8675 2002-04-30 Michael Snyder <msnyder@redhat.com>
8676
8677 * arm-tdep.c: Whitespace clean-ups.
8678 (arm_skip_prologue): Fix thinko; two lines
8679 should have been removed as part of 4/24 change.
8680
8681 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8682
8683 * rs6000-tdep.c: Added comment describing how fpscr register
8684 numbers were chosen.
8685
8686 2002-04-30 Michael Snyder <msnyder@redhat.com>
8687
8688 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8689
8690 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8691
8692 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8693 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8694 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8695
8696 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8697
8698 From Louis Hamilton <hamilton@redhat.com>:
8699 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8700 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8701 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8702 not bfd-private xcoff data, to determine wordsize.
8703 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8704
8705 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8706
8707 GDB 5.2 released from 5.2 branch.
8708
8709 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8710
8711 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8712 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8713 (x86_64_register_info_table): Added comments with register numbers.
8714
8715 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8716
8717 * rs6000-tdep.c (rs6000_extract_return_value,
8718 rs6000_store_return_value): Handle returning vectors.
8719 (rs6000_gdbarch_init): Use
8720 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8721 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8722 New function.
8723 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8724 vectors.
8725 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8726 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8727
8728 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8729
8730 * hpread.c (hpread_psymtab_to_symtab_1,
8731 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8732 with fprintf_unfiltered (gdb_stderr,...).
8733
8734 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8735
8736 * remote-array.c (printf_monitor, write_monitor,
8737 array_insert_breakpoint, array_remove_breakpoint ):
8738 Replace fprintf (stderr,...
8739 with fprintf_unfiltered (gdb_stderr,....
8740 * remote-es.c: Likewise.
8741 * remote-os9k.c: Likewise.
8742 * remote-st.c: Likewise.
8743
8744 2002-04-28 Andreas Schwab <schwab@suse.de>
8745
8746 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8747 linux-proc.o and gcore.o.
8748
8749 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8750
8751 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8752 code without frame pointers.
8753
8754 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8755
8756 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8757 ON_STACK is needed.
8758
8759 2002-04-26 Ben Elliston <bje@redhat.com>
8760
8761 * target.c (do_xfer_memory): Correct reference to the new option
8762 "trust-readonly-sections".
8763
8764 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8765
8766 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8767 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8768 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8769 vectors.
8770 (read_array_type): Record the fact that this array type is really a
8771 vector (i.e. are passed in by value).
8772
8773 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8774
8775 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8776 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8777 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8778 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8779 * alpha-linux-tdep.c: Include frame.h.
8780 (alpha_linux_sigcontext_addr): New function.
8781 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8782 alpha_linux_sigcontext_addr.
8783 * alpha-osf1-tdep.c: Include gdbcore.h.
8784 (alpha_osf1_sigcontext_addr): New function.
8785 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8786 alpha_osf1_sigcontext_addr.
8787 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8788 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8789
8790 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8791
8792 * stack.c (selected_frame_level):
8793 (select_frame): Do not set selected_frame_level.
8794 * frame.h (selected_frame_level): Delete declaration.
8795
8796 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8797
8798 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8799 convert_from_func_ptr-addr when AIX / PowerOpen.
8800
8801 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8802
8803 * valops.c (hand_function_call): Call
8804 generic_save_call_dummy_addr.
8805 * frame.h (generic_save_call_dummy_addr): Declare.
8806 * blockframe.c (struct dummy_frame): Add fields call_lo and
8807 call_hi.
8808 (generic_find_dummy_frame): Check for PC in range call_lo to
8809 call_hi instead of entry_point_address.
8810 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8811 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8812 (generic_save_call_dummy_addr): New function.
8813
8814 2002-04-24 David S. Miller <davem@redhat.com>
8815
8816 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8817 sparc_skip_prologue.
8818 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8819 information to find prologue when possible.
8820 (sparc_prologue_frameless_p): Call examine_prologue directly.
8821 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8822 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8823 second argument.
8824 (SKIP_PROLOGUE): Likewise.
8825
8826 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8827
8828 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8829 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8830 indicate that the condition it was testing is always true.
8831 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8832 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8833 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8834
8835 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8836
8837 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8838 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8839 tdep->jb_pc and tdep->jb_elt_size.
8840 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8841 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8842 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8843 * alpha-nat.c (get_longjmp_target): Remove.
8844 (JB_ELEMENT_SIZE): Ditto.
8845 (JB_PC): Ditto.
8846 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8847 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8848 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8849 to alpha_get_longjmp_target.
8850 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8851 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8852 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8853
8854 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8855
8856 * README: Update to GDB 5.2.
8857
8858 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8859
8860 * gdbarch.sh (LC_ALL): Set to `c'.
8861
8862 2002-04-25 Theodore A. Roth <troth@verinet.com>
8863
8864 * avr-tdep.c: Ran through gdb_indent.sh.
8865
8866 2002-04-25 Theodore A. Roth <troth@verinet.com>
8867
8868 * MAINTAINERS: Add myself as AVR maintainer.
8869 * NEWS: Note new target avr.
8870
8871 2002-04-25 Theodore A. Roth <troth@verinet.com>
8872
8873 * Makefile.in: Add support for AVR target.
8874 * configure.tgt: Add support for AVR target.
8875 * avr-tdep.c: New file
8876 * config/avr/avr.mt: New file.
8877
8878 2002-04-25 Theodore A. Roth <troth@verinet.com>
8879
8880 * MAINTAINERS: Add myself to write-after-approval.
8881
8882 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8883
8884 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8885 with fprintf_unfiltered (gdb_stderr,....
8886
8887 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8888
8889 Fix PR gdb/508.
8890 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8891
8892 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8893
8894 * p-exp.y: Also use new prev_lexptr variable
8895 to improve error reporting. Based on Michael Snyder
8896 2002-04-24 dated patch to c-exp.y.
8897
8898 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8899
8900 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8901 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8902 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8903 to 0.
8904 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8905 and struct value.
8906 (FUNCTION_START_OFFSET): Remove.
8907 (BREAKPOINT): Ditto.
8908
8909 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8910
8911 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8912 * NEWS: Ditto.
8913
8914 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8915
8916 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8917 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8918 alpha_linux_pc_in_sigtramp.
8919 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8920 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8921 alpha_osf1_pc_in_sigtramp.
8922 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8923 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8924 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8925 alphafbsd_pc_in_sigtramp.
8926 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8927 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8928 alphanbsd_pc_in_sigtramp.
8929 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8930 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8931
8932 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8933
8934 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8935
8936 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8937
8938 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8939 alphanbsd-tdep.c.
8940 (alphanbsd-nat.o): New dependency list.
8941 (alphanbsd-tdep.o): Ditto.
8942 * NEWS: Note new native NetBSD/alpha configuration.
8943 * alphanbsd-nat.c: New file.
8944 * alphanbsd-tdep.c: Ditto.
8945 * configure.host (alpha*-*-netbsd*): New host.
8946 * configure.tgt (alpha*-*-netbsd*): New target.
8947 * config/alpha/nbsd.mh: New file.
8948 * config/alpha/nbsd.mt: Ditto.
8949 * config/alpha/nm-nbsd.h: Ditto.
8950 * config/alpha/tm-nbsd.h: Ditto.
8951
8952 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8953
8954 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8955 (alpha-osf1-tdep.o): New dependency list.
8956 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8957 and skip_sigtramp_frame members.
8958 * alpha-linux-tdep.c: Include gdbcore.h.
8959 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8960 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8961 * alpha-osf1-tdep.c: New file.
8962 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8963 alpha-osf1-dep.c.
8964 (alpha_frame_past_sigtramp_frame): New function.
8965 (alpha_dynamic_sigtramp_offset): Ditto.
8966 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8967 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8968 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8969 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8970 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8971 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8972 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8973 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8974 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8975 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8976 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8977 to find_solib_trampoline_target.
8978 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8979 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8980 (SKIP_TRAMPOLINE_CODE): Remove.
8981 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8982 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8983 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8984 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8985 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8986 (PROC_SIGTRAMP_MAGIC): Ditto.
8987 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8988 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8989 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8990 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8991 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8992
8993 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8994
8995 * NEWS: Note that Alpha targets are now multi-arch.
8996
8997 2002-04-24 Michael Snyder <msnyder@redhat.com>
8998
8999 * parser-defs.h (prev_lexptr): New external variable.
9000 * parse.c (parse_exp_1): Set prev_lexptr to null before
9001 calling the language-specific parser.
9002 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9003 (yyerror): Use prev_lexptr in error reporting.
9004
9005 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9006
9007 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9008 * gregset.h: If FILL_FPXREGSET is defined, provide
9009 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9010 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9011 is defined, call fill_fpxregset.
9012
9013 2002-04-24 Roland McGrath <roland@frob.com>
9014
9015 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9016 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9017 (supply_gregset, supply_fpregset): New functions.
9018
9019 * gnu-nat.c (gnu_find_memory_regions): New function.
9020 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9021 (gnu_xfer_memory): Add a cast.
9022
9023 2002-04-24 Michael Snyder <msnyder@redhat.com>
9024
9025 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9026 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9027 of argument regs ("str r(0123), [r11, #-nn"]).
9028 (arm_skip_prologue): Better handling for frameless functions.
9029 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9030 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9031
9032 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9033
9034 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9035 NUM_PSEUDO_REGS can be used.
9036
9037 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9038
9039 * arch-utils.h: Update copyright.
9040
9041 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9042 * gdbarch.h, gdbarch.c: Re-generate.
9043
9044 * inferior.h (IN_SIGTRAMP): Delete definition.
9045 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9046 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9047
9048 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9049 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9050 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9051 (find_proc_framesize): Ditto.
9052 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9053 (alpha_init_extra_frame_info): Ditto.
9054 * infrun.c (handle_inferior_event): Ditto.
9055 (handle_inferior_event): Ditto.
9056 (check_sigtramp2): Ditto.
9057 * blockframe.c (create_new_frame): Ditto.
9058 (get_prev_frame): Ditto.
9059 * ppc-linux-tdep.c: Update comments.
9060 * i386-linux-tdep.c: Update comments.
9061 * breakpoint.c (bpstat_what): Update comment.
9062
9063 2002-04-24 David S. Miller <davem@redhat.com>
9064
9065 * i960-tdep.c (register_in_window_p): New function.
9066 (i960_find_saved_register): Use it instead of
9067 REGISTER_IN_WINDOW_P.
9068 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9069
9070 * symtab.h (find_stab_function_addr): Kill extern.
9071 * minsyms.c (find_stab_function_addr): Remove from here...
9072 * dbxread.c: ... to here, and mark it static.
9073
9074 2002-04-20 David S. Miller <davem@redhat.com>
9075
9076 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9077 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9078
9079 2002-04-21 David S. Miller <davem@redhat.com>
9080
9081 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9082 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9083 (vx_write_register): Likewise.
9084
9085 2002-04-23 J. Brobecker <brobecker@gnat.com>
9086
9087 * source.c (is_regular_file): New function.
9088 (openp): Check wether file to open is a regular file
9089 to avoid opening directories.
9090
9091 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9092
9093 * findvar.c (extract_signed_integer): Cast printf argument
9094 to suppress format warning.
9095 (extract_unsigned_integer): Likewise.
9096 * infcmd.c (registers_info): Likewise.
9097 * top.c (get_prompt_1): Likewise.
9098 * valops.c (value_assign): Likewise.
9099 * valprint.c (print_decimal): Likewise.
9100
9101 2002-04-22 H.J. Lu (hjl@gnu.org)
9102
9103 * c-exp.y (typebase): Support
9104
9105 [long|long long|short] [signed|unsigned] [int|]
9106
9107 and
9108
9109 signed [long|long long|short] int
9110
9111 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9112
9113 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9114 and vax-tdep.h.
9115 * vax-tdep.h: New file.
9116 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9117 Make several routines static.
9118 (vax_get_saved_register): New function.
9119 (vax_gdbarch_init): New function.
9120 (_initialize_vax_tdep): Register vax_gdbarch_init.
9121 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9122 Remove macros now under the control of gdbarch.
9123
9124 2002-04-22 Michael Snyder <msnyder@redhat.com>
9125
9126 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9127 Some whitespace and coding standards tweaks.
9128
9129 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9130
9131 * vax-tdep.c: Include regcache.h.
9132 (vax_call_dummy_words): New.
9133 (sizeof_vax_call_dummy_words): New.
9134 (vax_fix_call_dummy): New function.
9135 (vax_saved_pc_after_call): Ditto.
9136 * config/vax/tm-vax.h: Don't include regcache.h.
9137 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9138 (CALL_DUMMY): Remove.
9139 (CALL_DUMMY_WORDS): Define.
9140 (SIZEOF_CALL_DUMMY_WORDS): Define.
9141 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9142
9143 2002-04-18 Michael Snyder <msnyder@redhat.com>
9144
9145 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9146
9147 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9148
9149 * vax-tdep.c (vax_frame_chain): New function.
9150 (vax_push_dummy_frame): Ditto.
9151 (vax_pop_frame): Ditto.
9152 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9153 (FRAMELESS_FUNCTION_INVOCATION): Use
9154 generic_frameless_function_invocation_not.
9155 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9156 (POP_FRAME): Use vax_pop_frame.
9157
9158 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9159
9160 * vax-tdep.c (vax_store_struct_return): New function.
9161 (vax_extract_return_value): Ditto.
9162 (vax_store_return_value): Ditto.
9163 (vax_extract_struct_value_address): Ditto.
9164 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9165 vax_store_struct_return.
9166 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9167 (STORE_RETURN_VALUE): Use vax_store_return_value.
9168 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9169
9170 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9171
9172 * vax-tdep.c (vax_frame_saved_pc): New function.
9173 (vax_frame_args_address_correct): Ditto.
9174 (vax_frame_args_address): Ditto.
9175 (vax_frame_locals_address): Ditto.
9176 (vax_frame_num_args): Move code to be in proximity to
9177 other frame-related functions.
9178 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9179 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9180 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9181 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9182 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9183
9184 2002-04-22 H.J. Lu (hjl@gnu.org)
9185
9186 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9187 includedir.
9188
9189 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9190
9191 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9192 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9193 (FRAME_INIT_SAVED_REGS): New macro.
9194
9195 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9196
9197 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9198
9199 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9200
9201 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9202 where needed.
9203 (fetch_osf_core_registers): Likewise.
9204 (supply_gregset): Likewise.
9205
9206 2002-04-22 J. Brobecker <brobecker@gnat.com>
9207
9208 * symfile.h (get_section_index): Define.
9209 * symfile.c (get_section_index): New function.
9210 * mdebugread.c (SC_IS_SBSS): New macro.
9211 (SC_IS_BSS): Return true for the scBss storage class only, as
9212 the scSBss storage class refers to the .sbss section.
9213 (parse_partial_symbols): Discard the symbols which associated
9214 section does not exist.
9215 Make sure to use the .sbss section index for symbols which
9216 storage class is scBss, rather than using the .bss section index.
9217
9218 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9219
9220 * vax-tdep.c: Update copyright years.
9221 (vax_register_name): New function.
9222 (vax_register_byte): Ditto.
9223 (vax_register_raw_size): Ditto.
9224 (vax_register_virtual_size): Ditto.
9225 (vax_register_virtual_type): Ditto.
9226 * config/vax/tm-vax.h: Update copyright years.
9227 (REGISTER_NAMES): Remove.
9228 (REGISTER_NAME): Define.
9229 (REGISTER_BYTE): Use vax_register_byte.
9230 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9231 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9232 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9233
9234 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9235
9236 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9237 declaration
9238 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9239
9240 2002-04-21 David S. Miller <davem@redhat.com>
9241
9242 * arch-utils.c (generic_prologue_frameless_p): Kill
9243 SKIP_PROLOGUE_FRAMELESS_P code.
9244 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9245 references.
9246 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9247 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9248 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9249 references.
9250 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9251 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9252 (sparc_gdbarch_init): Pass it to
9253 set_gdbarch_prologue_frameless_p.
9254
9255 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9256
9257 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9258 (alphabsd-nat.o): New dependency list.
9259
9260 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9261
9262 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9263 alphafbsd-tdep.c.
9264 (alpha-linux-tdep.o): New dependency list.
9265 (alphafbsd-tdep.o): Likewise.
9266
9267 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9268
9269 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9270 to here...
9271 * alpha-tdep.c: ...from here.
9272 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9273
9274 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9275
9276 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9277 prototype from here...
9278 * alpha-tdep.h: ...to here.
9279
9280 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9281
9282 * frame.h (selected_frame_level): Document as deprecated.
9283 (frame_relative_level): Declare.
9284 * stack.c (frame_relative_level): New function.
9285 (selected_frame_level): Document as deprecated.
9286 (select_frame): Do not set the selected_frame_level.
9287
9288 * stack.c (frame_info, record_selected_frame): Update.
9289 (frame_command, current_frame_command): Update.
9290 (up_silently_base, up_command, down_silently_base): Update.
9291 (down_command): Update.
9292 * inflow.c (kill_command): Update.
9293 * tracepoint.c (finish_tfind_command): Update.
9294 * corelow.c (core_open): Update.
9295 * thread.c (info_threads_command): Update.
9296 (do_captured_thread_select): Update.
9297 * infcmd.c (finish_command): Update.
9298 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9299
9300 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9301
9302 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9303
9304 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9305
9306 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9307 type const.
9308
9309 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9310
9311 * alphafbsd-tdep.c: Update copyright years. Include
9312 alpha-tdep.h.
9313 (alphafbsd_use_struct_convention): Make static.
9314 (alphafbsd_init_abi): New function.
9315 (_initialize_alphafbsd_tdep): New function.
9316 * config/alpha/tm-fbsd.h: Update copyright years.
9317 (USE_STRUCT_CONVENTION): Remove.
9318
9319 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9320
9321 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9322 an Alpha ABI variant.
9323 (alpha_abi_handler_list): Declare.
9324 (alpha_gdbarch_register_os_abi): New function.
9325 (alpha_gdbarch_init): Give registered ABI variant handlers a
9326 chance to tweak the gdbarch once we have set up defaults.
9327 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9328
9329 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9330
9331 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9332 to standard_coerce_float_to_double.
9333 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9334
9335 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9336
9337 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9338 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9339 from gdbarch_tdep rather than a constant.
9340 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9341 the default text address for all Alpha Unix ABIs.
9342 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9343 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9344
9345 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9346
9347 * alpha-tdep.h: New file. Includes several Alpha target constants
9348 taken from...
9349 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9350 let gdbarch deal with.
9351 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9352 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9353 to dependency list.
9354 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9355 Alpha target register names.
9356 * alphabsd-nat.c: Likewise.
9357 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9358 Alpha target register names. Make serveral routines static.
9359 (alpha_get_saved_register): New function.
9360 (alpha_abi_names): New.
9361 (process_note_abi_tag_sections): New function.
9362 (get_elfosabi): New function.
9363 (alpha_gdbarch_init): New function.
9364 (alpha_dump_tdep): New function.
9365 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9366
9367 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9368
9369 * frame.c (find_saved_register): Delete #ifdef
9370 HAVE_REGISTER_WINDOWS code.
9371 * config/sparc/tm-sparc.h: Update comments.
9372 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9373
9374 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9375
9376 * i960-tdep.c (i960_find_saved_register): New function.
9377 (i960_get_saved_register): New function.
9378 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9379 (i960_get_saved_register): Declare.
9380 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9381
9382 2002-04-20 David S. Miller <davem@redhat.com>
9383
9384 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9385
9386 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9387
9388 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9389 instead of NUM_PSEUDO_REGS.
9390
9391 2002-04-20 David S. Miller <davem@redhat.com>
9392
9393 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9394 GDB_MULTI_ARCH_PARTIAL
9395 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9396 define, let tm-sp64.h do it.
9397
9398 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9399
9400 * frame.c (find_saved_register): Avoid a NULL pointer
9401 dereference and actually walk the frame list.
9402
9403 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9404
9405 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9406 sorted in most most-recent-used order. Document.
9407 * gdbarch.h, gdbarch.c: Regenerate.
9408
9409 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9410
9411 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9412 instead of ->prev.
9413 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9414 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9415 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9416 instead of ->prev.
9417
9418 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9419
9420 Fix PR gdb/471.
9421 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9422 (build_builtin_type_vec128): Ditto.
9423 (append_composite_type_field): Fix calculation of type length in
9424 union case.
9425
9426 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9427
9428 * config/djgpp/README: Update.
9429
9430 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9431 compiler warnings.
9432
9433 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9434
9435 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9436 (alpha_setup_arbitrary_frame): ...to this.
9437 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9438 for alpha_setup_arbitrary_frame.
9439
9440 2002-04-18 Andrew Cagney <cagney@redhat.com>
9441
9442 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9443 * gdbarch.h, gdbarch.c: Regenerate.
9444
9445 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9446 * target.h (memory_breakpoint_from_pc): Update declaration.
9447 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9448
9449 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9450 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9451 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9452 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9453 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9454 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9455 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9456 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9457 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9458 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9459 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9460 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9461
9462 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9463 const pointer.
9464 * monitor.c (monitor_insert_breakpoint): Ditto.
9465 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9466
9467 * config/mcore/tm-mcore.h: Update copyright.
9468 * mem-break.c: Ditto.
9469 * xstormy16-tdep.c: Ditto.
9470
9471 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9472
9473 * p-exp.y: Add precedence rule for '^' token.
9474 This removes the shift/reduce conflicts.
9475 Remove the comment concerning these shift/reduce conflicts.
9476
9477 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9478
9479 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9480 (registers_powerpc_nofp): New register set for processors
9481 without floating point unit.
9482
9483 2002-04-18 David S. Miller <davem@redhat.com>
9484
9485 * MAINTAINERS: Add myself to write-after-approval.
9486
9487 2002-04-17 Michael Snyder <msnyder@redhat.com>
9488
9489 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9490
9491 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9492
9493 * rs6000-tdep.c (frame_initial_stack_address): Use
9494 frame_register_read to read the alloca_reg.
9495
9496 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9497
9498 * frame.c (find_saved_register): Find saved registers in the next
9499 not prev frame.
9500 Fix PR gdb/365.
9501
9502 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9503
9504 * gdbarch.sh (LANG): Set to ``c''.
9505
9506 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9507
9508 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9509
9510 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9511
9512 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9513 Update copyright.
9514
9515 * hpread.c (hpread_get_lntt): Add declaration.
9516 Also fix PR gdb/391.
9517
9518 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9519
9520 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9521 * aclocal.m4, configure: Re-generate.
9522 Fix PR gdb/391.
9523
9524 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9525
9526 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9527 instead of tm_print_insn.
9528
9529 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9530
9531 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9532
9533 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9534
9535 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9536 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9537 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9538
9539 2002-04-12 Don Howard <dhoward@redhat.com>
9540
9541 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9542 max_user_call_depth.
9543 (init_cmd_lists): Initialize the new value;
9544 * cli/cli-script.c (execute_user_command): Limit the call depth of
9545 user defined commands. This avoids a core-dump when user commands
9546 are infinitly recursive.
9547
9548 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9549
9550 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9551 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9552 from tdep struct instead of DEFAULT_LR_SAVE.
9553 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9554 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9555 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9556
9557 2002-04-12 Michael Snyder <msnyder@redhat.com>
9558
9559 * Remote.c: Spelling fix.
9560 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9561 If no symbol found for "sbrk", try "_sbrk".
9562 (make_output_phdrs): Use bfd_section_name.
9563 (gcore_copy_callback): Use bfd_section_name.
9564 * eval.c: Indentation fix-ups.
9565 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9566 in case it gets applied to an address that is already
9567 in the instruction space.
9568 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9569 * symfile.c: Fix indentation, long lines.
9570 * source.c: White space fix-up.
9571
9572 2002-04-12 Andrew Cagney <cagney@redhat.com>
9573
9574 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9575 * frame.c (frame_register_read): New function. Return non-zero on
9576 success.
9577 (read_relative_register_raw_bytes_for_frame): Delete.
9578 (read_relative_register_raw_bytes): Delete.
9579 * frame.h (frame_register_read): Declare.
9580 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9581 * sh-tdep.c: Ditto.
9582 * infcmd.c (do_registers_info): Ditto.
9583 * hppa-tdep.c: Ditto.
9584 * rs6000-tdep.c: Ditto.
9585 * h8500-tdep.c: Ditto.
9586 * mips-tdep.c: Ditto.
9587 * h8300-tdep.c: Ditto.
9588 * z8k-tdep.c: Ditto.
9589
9590 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9591
9592 From Jimi X <jimix@watson.ibm.com>:
9593 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9594 64-bit SysV ABI.
9595
9596 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9597
9598 From Jimi X <jimix@watson.ibm.com>:
9599 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9600 bfd info.
9601
9602 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9603
9604 From Jimi X <jimix@watson.ibm.com>:
9605 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9606 register sets for these processor variants.
9607
9608 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9609
9610 * regformats/reg-ppc.dat: Support FPSCR.
9611
9612 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9613
9614 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9615 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9616 Add fpscr as an invalid/unfetchable register.
9617 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9618 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9619 (fill_fpregset): Add support for register fpscr.
9620 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9621 (fill_gregset): Account for the fact that register ``mq'' might
9622 not exist.
9623 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9624 (registers_power): Add fpscr to register set at slot 71.
9625 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9626 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9627
9628 2002-04-11 Michael Snyder <msnyder@redhat.com>
9629
9630 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9631 * configure: Regenerate.
9632 * config.in: Regenerate.
9633 * acconfig.h: Add define for _SYSCALL32.
9634 * core-sol2.c: Remove #define _SYSCALL32.
9635 * solib-legacy.c: Remove #define _SYSCALL32.
9636
9637 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9638
9639 * stack.c (select_frame): Cleanup internal error message, do not
9640 use %p.
9641
9642 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9643
9644 * stack.c (select_frame): Check that selected_frame and the
9645 specified level are as expected.
9646 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9647 Update copyright.
9648 * frame.h (struct frame_info): Add field `level'. Update
9649 copyright.
9650 Work-in-progress PR gdb/464.
9651
9652 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9653
9654 * maint.c (maint_print_section_info): Rename print_section_info.
9655 (print_bfd_section_info, print_objfile_section_info): Update.
9656 * inferior.h (struct gdbarch): Add opaque declaration.
9657 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9658 * gdbarch.h: Regenerate.
9659
9660 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9661
9662 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9663 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9664 (kernel_u_size): Added.
9665 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9666 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9667
9668 2002-04-04 Jim Ingham <jingham@apple.com>
9669
9670 * valarith.c (find_size_for_pointer_math): New function, either returns
9671 the size for a pointer's target, returns 1 for void *, or errors for
9672 incomplete types.
9673 (value_add, value_sub): use find_size_for_pointer_math.
9674
9675 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9676
9677 * linux-low.c (linux_look_up_symbols): New hook.
9678 (linux_target_ops): Add linux_look_up_symbols.
9679 * remote-utils.c (decode_address): New function.
9680 (look_up_one_symbol): New function.
9681 * server.c (handle_query): Call target look_up_symbols hook.
9682 * server.h (look_up_one_symbol): Add prototype.
9683 * target.h (struct target_ops): Add look_up_symbols hook.
9684
9685 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9686
9687 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9688 override FP_REGNUM with frame->fp. Update copyright.
9689 * parse.c (num_std_regs, std_regs): Delete.
9690 (target_map_name_to_register): Do not search std_regs. Update
9691 function description.
9692 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9693 declarations. Update copyright.
9694 Fix PR gdb/251.
9695
9696 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9697
9698 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9699 after the last symbol in a block.
9700
9701 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9702
9703 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9704 is non zero as a found symbol.
9705
9706 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9707
9708 * findvar.c: Include "builtin-regs.h".
9709 (value_of_register): Call value_of_builtin_reg when applicable.
9710 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9711 (target_map_name_to_register): Call
9712 builtin_reg_map_name_to_regnum.
9713 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9714 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9715 (builtin_regs_h): Define.
9716 (builtin-regs.o): New target.
9717 (findvar.o): Add $(builtin_regs_h).
9718 * builtin-regs.c, builtin-regs.h: New files.
9719 * std-regs.c: New file.
9720 Partial fix for PR gdb/251.
9721
9722 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9723
9724 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9725 it's no longer required.
9726
9727 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9728
9729 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9730
9731 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9732
9733 From Jimi X <jimix@watson.ibm.com>:
9734 * rs6000-tdep.c (rs6000_software_single_step): Use
9735 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9736 and size. Use target_insert_breakpoint() and
9737 target_remove_breakpoint() to insert and remove breakpoints
9738 instead of explicit memory reads and writes.
9739
9740 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9741
9742 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9743 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9744 ELF_OBJECT_FORMAT ifdef.
9745
9746 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9747
9748 From Jimi X <jimix@watson.ibm.com>:
9749 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9750
9751 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9752
9753 From Jimi X <jimix@watson.ibm.com>:
9754 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9755 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9756
9757 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9758
9759 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9760 s/asprintf/xasprintf/.
9761 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9762
9763 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9764
9765 I believe Jeff Law denies responsability for this one:
9766 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9767 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9768 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9769 Work-around for PR gdb/366.
9770
9771 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9772
9773 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9774 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9775 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9776
9777 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9778
9779 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9780 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9781 information.
9782
9783 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9784
9785 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9786 maintainer.
9787
9788 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9789
9790 * README (Reporting Bugs in GDB): Document the bug web page as the
9791 prefered way of submitting bugs.
9792 Fix PR gdb/402.
9793
9794 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9795
9796 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9797 -1. Update comment.
9798 * gdbarch.h, gdbarch.c: Re-generate.
9799
9800 2002-04-07 Andreas Schwab <schwab@suse.de>
9801
9802 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9803 buffer to regcache_collect.
9804
9805 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9806
9807 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9808 * gdbarch.c, gdbarch.h: Re-generate.
9809
9810 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9811
9812 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9813 declaration. Fix -Werror.
9814
9815 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9816
9817 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9818 * gdbarch.c: Regenerate.
9819
9820 2002-04-05 Michael Snyder <msnyder@redhat.com>
9821
9822 * breakpoint.c (clear_command): Rewrite middle section to
9823 combine two loops with identical control conditions.
9824 Add a cleanup to eliminate a memory leak.
9825 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9826
9827 2002-04-05 H.J. Lu (hjl@gnu.org)
9828
9829 * solib-svr4.c (bkpt_names): Add "__start".
9830
9831 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9832
9833 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9834 as test for 64 bit target.
9835
9836 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9837
9838 * h8500-tdep.c (h8500_write_fp): Delete function.
9839 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9840 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9841 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9843 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9844 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9845 (s390_write_fp):
9846 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9847 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9848 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9849 (d10v_write_fp): Delete function.
9850 * inferior.h (write_fp, generic_target_write_fp): Delete
9851 declarations.
9852 * regcache.c (generic_target_write_fp): Delete function.
9853 (write_fp): Delete function.
9854 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9855 * gdbarch.h, gdbarch.c: Regenerate.
9856 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9857 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9858 (sparc64_write_fp): Delete declaration.
9859 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9860 (h8500_write_fp): Delete declaration.
9861
9862 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9863
9864 * sparc-tdep.c (sparc64_write_fp): Delete.
9865 (sparc_push_dummy_frame): Replace write_fp call with code to store
9866 the FP directly.
9867 (sparc_gdbarch_init): Do not initialize write_fp.
9868
9869 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9870
9871 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9872 clause.
9873
9874 2002-03-29 Jim Blandy <jimb@redhat.com>
9875
9876 * stack.c (get_selected_block): Add new argument `addr_in_block',
9877 used to return the exact code address we used to select the block,
9878 not just the block.
9879 * blockframe.c (get_frame_block, get_current_block): Same.
9880 * frame.h (get_frame_block, get_current_block,
9881 get_selected_block): Update declarations.
9882 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9883 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9884
9885 2002-04-05 Michael Snyder <msnyder@redhat.com>
9886
9887 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9888 warning message.
9889
9890 2002-04-05 J. Brobecker <brobecker@gnat.com>
9891
9892 * utils.c (xfullpath): New function.
9893 * defs.h (xfullpath): Add declaration.
9894 * source.c (openp): Use xfullpath in place of gdb_realpath to
9895 avoid resolving the basename part of filenames when the
9896 associated file is a symbolic link. This fixes a potential
9897 inconsistency between the filenames known to GDB and the
9898 filenames it prints in the annotations.
9899 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9900 to be able to match a filename with either the real filename, or
9901 the name of any symbolic link to this file.
9902 (lookup_partial_symtab): Ditto.
9903
9904 2002-04-04 Michael Snyder <msnyder@redhat.com>
9905
9906 * breakpoint.c: Add support for hardware breakpoints in overlays.
9907 (overlay_events_enabled): New state variable.
9908 (insert_breakpoints): Use overlay_events_enabled to decide
9909 whether to attempt to set a breakpoint at the overlay load addr.
9910 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9911 (remove_breakpoint): Use overlay_events_enabled to decide
9912 whether breakpoints need to be removed from overlay load addr.
9913 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9914 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9915 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9916 disable_overlay_breakpoints): Update overlay_events_enabled.
9917
9918 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9919
9920 * dwarf2read.c (struct function_range): New.
9921 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9922 (check_cu_functions): New.
9923 (read_file_scope): Initialize global function lists.
9924 Call dwarf_decode_line after processing children.
9925 (read_func_scope): Add to global function list.
9926 (dwarf_decode_lines): Call check_cu_functions everywhere
9927 record_line is called. Call record_line with a linenumber
9928 of 0 to mark sequence ends.
9929
9930 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9931
9932 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9933 change sync with glibc.
9934
9935 2002-04-03 Jim Blandy <jimb@redhat.com>
9936
9937 * configure.in: Call AC_C_INLINE.
9938 * configure: Regenerated.
9939
9940 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9941
9942 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9943 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9944
9945 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9946
9947 * NEWS: Mention gcore support on FreeBSD/i386.
9948
9949 * fbsd-proc.c: New file.
9950 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9951 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9952
9953 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9954 while statement.
9955
9956 2002-03-29 Jim Blandy <jimb@redhat.com>
9957
9958 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9959 unescaped newlines in string literals, but newer ones don't. So
9960 escape them.
9961
9962 2002-03-26 Michael Snyder <msnyder@redhat.com>
9963 Andrew Cagney <cagney@redhat.com>
9964
9965 * cli/cli-dump.c: New file. Dump memory to file,
9966 restore file to memory.
9967 * cli/cli-dump.h: New file.
9968 * Makefile.in: Add rules, dependencies for cli-dump.o.
9969 * NEWS: Mention new commands.
9970
9971 2002-03-28 Michael Snyder <msnyder@redhat.com>
9972
9973 * symfile.c (symbol_file_add): Move test for null symbols to later.
9974
9975 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9976
9977 From veksler at il.ibm.com:
9978 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9979 the xstrduped original path.
9980 Fix PR gdb/417.
9981
9982 2002-03-27 Michael Snyder <msnyder@redhat.com>
9983
9984 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9985 * infcmd.c (_initialize_infcmd): Ditto.
9986 * language.c (_initialize_language): Ditto.
9987 * symfile.c (_initialize_symfile): Ditto.
9988 * top.c (_init_main): Ditto.
9989 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9990
9991 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9992
9993 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9994 vector registers handling.
9995 (skip_prologue): Handle new AltiVec instructions. Fill in new
9996 fields of frame data.
9997 (frame_get_saved_regs): Fill in information for AltiVec registers.
9998
9999 2002-03-27 Jim Blandy <jimb@redhat.com>
10000
10001 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10002 a function; leave this macro here to invoke that function.
10003 (symbol_init_mangled_name): Declaration for that function.
10004 * symtab.c (symbol_init_mangled_name): New function.
10005
10006 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10007
10008 * valarith.c: Replace strerror with safe_strerror.
10009 * tracepoint.c: Ditto.
10010 * lin-lwp.c: Ditto.
10011 * go32-nat.c: Ditto.
10012 * inflow.c: Ditto.
10013 * gnu-nat.c: Ditto.
10014
10015 2002-03-27 Andreas Schwab <schwab@suse.de>
10016
10017 * event-top.c (command_line_handler): Remove useless if.
10018
10019 2002-03-27 Andreas Jaeger <aj@suse.de>
10020
10021 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10022 comment.
10023
10024 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10025
10026 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10027 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10028 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10029 (x86_64_linux_dr_get_status, supply_gregset),
10030 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10031 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10032 (x86_64_register_info_table): Add.
10033 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10034 (x86_64_register_raw_size, x86_64_register_virtual_type),
10035 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10036 general x86_64_register_info_table.
10037 (i386_gdbarch_init): gdbarch_register_bytes is now set
10038 dynamicaly during initialization.
10039 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10040 * gdbserver/linux-x86-64-low.c: Ditto.
10041
10042 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10043
10044 * gdbserver/server.c (main): Call target_signal_to_host_p
10045 and target_signal_to_host on signals received from the remote.
10046 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10047 target_signal_from_host on signals sent to the remote.
10048 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10049 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10050
10051 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10052
10053 * signals/signals.c: Include "server.h" in gdbserver build.
10054 (target_signal_from_name): Don't use STREQ.
10055 (_initialize_signals): Likewise. Don't include function in
10056 gdbserver build.
10057
10058 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10059
10060 * signals.c: Moved to...
10061 * signals/signals.c: Here.
10062 * Makefile (signals.o): Update.
10063
10064 2002-03-26 Jeff Law (law@redhat.com)
10065
10066 * somread.c (som_symtab_read): Remove some commented out code and
10067 updated related comments. Do not set the minimal symbol table to
10068 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10069 in a dynamic executable.
10070 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10071 where we are unable to find the minimal symbol for the given
10072 PC value.
10073
10074 2002-03-25 Jeff Law (law@redhat.com)
10075
10076 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10077
10078 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10079
10080 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10081
10082 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10083
10084 * command.h: Update copyright.
10085 (struct cmd_list_element): Replace definition with opaque
10086 declaration.
10087 (enum cmd_types): Document that it will eventually be moved to
10088 cli/cli-decode.h
10089 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10090 (MALLOCED_REPLACEMENT): Delete macro.
10091 * Makefile.in (cli_decode_h): Add $(command_h).
10092 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10093 * top.c: Include "cli/cli-decode.h".
10094 * completer.c: Include "cli/cli-decode.h".
10095 * maint.c: Include "cli/cli-decode.h".
10096 * cli/cli-decode.h: Include "command.h".
10097 (enum command_class): Delete.
10098 (enum cmd_types): Comment out.
10099 (enum cmd_auto_boolean): Delete.
10100 (enum var_types): Delete.
10101
10102 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10103
10104 * cli/cli-decode.c: Include "gdb_assert.h".
10105 (add_set_or_show_cmd): New static function.
10106 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10107 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10108 all fields, such as func, from the set command.
10109
10110 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10111
10112 * MAINTAINERS (sh-elf): Change warning flag to -w.
10113
10114 2002-03-23 Andrew Cagney <cagney@redhat.com>
10115
10116 * defs.h (error): Add printf format attribute.
10117 * thread-db.c (thread_from_lwp): Fix error format string.
10118 * stack.c (parse_frame_specification): Ditto.
10119 * cli/cli-decode.c (undef_cmd_error): Ditto.
10120 * scm-lang.c (scm_lookup_name): Ditto.
10121 * tracepoint.c (trace_error): Ditto.
10122 * remote-utils.c (usage): Ditto.
10123 * remote.c (compare_sections_command): Ditto.
10124 Fix PR gdb/328.
10125
10126 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10127
10128 * gdbtypes.c (append_composite_type_field): New function.
10129 (init_composite_type): New function.
10130 * gdbtypes.h (append_composite_type_field): Declare.
10131 (init_composite_type): Ditto.
10132
10133 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10134
10135 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10136 function.
10137 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10138 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10139 structure returning convention for SYSV ABI case, but not
10140 for GNU/Linux, FreeBSD, or NetBSD.
10141
10142 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10143
10144 * symtab.h (lookup_block_symbol): Add mangled_name argument
10145 to prototype.
10146
10147 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10148 with new mangled_name argument.
10149 * linespec.c (decode_line_1): Likewise.
10150 * valops (value_of_this): Likewise.
10151 * symtab.c (lookup_transparent_type): Likewise.
10152 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10153 (lookup_symbol): If we are given a mangled name, pass it down
10154 to lookup_symbol_aux.
10155 (lookup_block_symbol): If we are given a mangled name to check
10156 against, only return symbols which match it.
10157
10158 2002-03-22 Christopher Faylor <cgf@redhat.com>
10159
10160 * win32-nat.c (child_create_inferior): Check for proper shell to use
10161 here, in case the user changes it on the fly.
10162 (_initialize_inftarg): Remove shell path considerations.
10163
10164 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10165
10166 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10167 for gdbarch_max_register_raw_size and max_register_virtual_size.
10168 Adjust copyright year.
10169
10170 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10171
10172 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10173 in a function to cover the entire beginning of the function
10174 as well if it does not already.
10175
10176 2002-03-21 Tom Rix <trix@redhat.com>
10177
10178 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10179 (rs6000_ptrace64): Renamed from ptrace64.
10180
10181 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10182
10183 * gdbserver/remote-utils.c (remote_open): Don't call
10184 getprotobyname, we're all using TCP here so just use
10185 IPPROTO_TCP.
10186 * gdbserver/gdbreplay.c (remote_open): Ditto.
10187
10188 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10189
10190 * regcache.c (_initialize_regcache): No need to call
10191 build_regcache() at this time; it gets called whenever
10192 the gdbarch changes.
10193
10194 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10195
10196 * sparc-nat.c: Include sys/param.h where possible.
10197
10198 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10199
10200 Fix PR gdb/422.
10201 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10202 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10203 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10204 complex types.
10205 * stabsread.c (rs6000_builtin_type): Likewise.
10206 (read_sun_floating_type): Likewise.
10207
10208 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10209
10210 * stabsread.c (read_member_functions): Remove skip code for duplicate
10211 constructor/destructor methods. Use standard parsing for these
10212 methods and just do not chain them to the list of methods after
10213 parsing.
10214
10215 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10216
10217 * coffread.c: Remove redundant static declarations. Replace
10218 occurrences of `PTR' with `void *'.
10219 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10220 * top.h (quit_cover): Likewise.
10221 * defs.h (catch_errors): Likewise.
10222
10223 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10224
10225 * defs.h (XMALLOC): Define.
10226 * gdb-events.sh (XMALLOC): Delete macro.
10227 * gdb-events.c, gdb-events.h: Regenerate.
10228 * gdbarch.sh (XMALLOC): Delete macro.
10229 * gdbarch.c: Regenerate.
10230 * serial.c (XMALLOC): Delete macro.
10231 * ui-file.c (XMALLOC): Ditto.
10232 * ser-unix.h (XMALLOC): Ditto.
10233 * sh-tdep.c (XMALLOC): Ditto.
10234 * ui-out.c (XMALLOC): Ditto.
10235 * utils.c (XMALLOC): Ditto.
10236 * i386-tdep.c (XMALLOC): Ditto.
10237 * gdb-events.c (XMALLOC): Ditto.
10238 * d10v-tdep.c (XMALLOC): Ditto.
10239 * cli-out.c (XMALLOC): Ditto.
10240
10241 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10242 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10243 * ui-file.c, ui-out.c: Ditto.
10244
10245 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10246
10247 * command.h (struct cmd_list_element): Add field context.
10248 (set_cmd_context, get_cmd_context): Declare.
10249 * cli/cli-decode.h: Ditto.
10250 * cli/cli-decode.c (get_cmd_context): New function.
10251 (set_cmd_context): New function.
10252 (add_cmd): Initialize context.
10253 Part of fixing PR gdb/145 and PR gdb/146.
10254
10255 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10256
10257 * cli/cli-decode.c (cmd_type): New function.
10258 * command.h (cmd_type): Declare.
10259 * infrun.c (set_schedlock_func): Call function cmd_type.
10260 * kod.c (kod_set_os): Call cmd_type.
10261 * cris-tdep.c (cris_version_update): Use function cmd_type.
10262 (cris_mode_update, cris_abi_update): Ditto.
10263
10264 * command.h: (execute_cmd_post_hook): Declare.
10265 (execute_cmd_pre_hook): Declare.
10266 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10267 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10268 functions. Execute pre/post hook while ensuring that afterwords
10269 hook_in is cleared.
10270 * top.c (execute_command): Use execute_cmd_post_hook, and
10271 execute_cmd_pre_hook to execute pre/post commands.
10272 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10273 hook_stop_stub.
10274 (hook_stop_stub): Call execute_cmd_pre_hook.
10275
10276 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10277
10278 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10279 set'' and this leads to a core dump. Move xstrdup of
10280 operating_system to after check that it is not NULL.
10281
10282 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10283
10284 * kod.c (kod_set_os): Remove unnecessary check that
10285 ``command->type'' is set_cmd.
10286
10287 * valprint.c (set_input_radix): Use input_radix.
10288 (set_output_radix): Use output_radix.
10289 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10290 isn't reverted.
10291
10292 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10293
10294 * value.h (struct value): Delete field ``substring_addr''. Change
10295 aligner fields to force_doublest_align, force_longest_align,
10296 force_core_addr_align and force_pointer_aligh.
10297
10298 * value.h (struct value): Fix typo in above change.
10299
10300 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10301
10302 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10303 to fix internal_error from ``maintenance print architecture''.
10304
10305 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10306
10307 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10308 for gcc versions after gcc-2.8.1.
10309
10310 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10311
10312 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10313 for method resolution. Restore adjustment of ``this'' pointer after
10314 calling value_struct_elt, which was accidentally removed during the
10315 HP merge.
10316
10317 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10318
10319 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10320 value_of_register.
10321 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10322 get_saved_register.
10323 * value.h (value_of_register): Update.
10324
10325 2002-03-14 Richard Henderson <rth@redhat.com>
10326
10327 * configure.in: Detect declaration for canonicalize_file_name.
10328 * utils.c (canonicalize_file_name): Declare, if needed.
10329 (gdb_realpath): Prefer realpath if available and usable.
10330 * config.in, configure: Rebuild.
10331
10332 2002-03-14 Richard Henderson <rth@redhat.com>
10333
10334 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10335 a constant array bound.
10336
10337 * MAINTAINERS: Add myself to write-after-approval.
10338
10339 2002-03-14 Michael Snyder <msnyder@redhat.com>
10340
10341 * symfile.c (syms_from_objfile): Return immediately if no syms.
10342 (symbol_file_add): Return immediately if no syms.
10343 (find_sym_fns): Return immediately if no syms.
10344
10345 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10346
10347 * gdbserver/remote-util.c (remote_open): Print remote-side's
10348 IP address when remote debugging over the network.
10349
10350 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10351
10352 * config/sparc/fbsd.mh: Fix copyright.
10353 * config/sparc/fbsd.mt: Likewise.
10354
10355 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10356
10357 * MAINTAINERS: Fix typo in name of gdb warnings option.
10358 (x86-64): Fix formating so that this can be parsed by awk.
10359
10360 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10361
10362 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10363 * defs.h: Include "gdb/signals.h".
10364 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10365
10366 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10367
10368 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10369 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10370 from x86-64-tdep.h
10371
10372 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10373 Don Howard <dhoward@redhat.com>
10374
10375 * mips-tdep.c (ST0_FR): Define.
10376 (mips2_fp_compat): New function, temporarily disabled.
10377 (mips_read_fp_register_single): New function.
10378 (mips_read_fp_register_double): New function.
10379 (mips_print_register): Use them.
10380 (do_fp_register_row): Likewise.
10381
10382 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10383
10384 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10385 approval''.
10386
10387 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10388
10389 * stabsread.c (read_member_functions): Fix is_stub test for
10390 static member functions, improve comment.
10391
10392 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10393
10394 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10395 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10396 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10397 commands that set boolean values.
10398 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10399 (arm_rdi_resume): Always initialize PC.
10400 (arm_rdi_open): Don't use rslt as a boolean.
10401 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10402 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10403 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10404 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10405
10406 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10407
10408 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10409 * configure: Rebuilt.
10410
10411 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10412
10413 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10414 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10415
10416 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10417
10418 * cli/cli-decode.c (set_cmd_completer): New function.
10419 * command.h (set_cmd_completer): Declare.
10420 * cli/cli-decode.h (set_cmd_completer): Ditto.
10421
10422 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10423 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10424 * win32-nat.c (_initialize_inftarg): Ditto.
10425 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10426 * proc-api.c (_initialize_proc_api): Ditto.
10427 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10428 * source.c (_initialize_source): Ditto.
10429 * exec.c (_initialize_exec): Ditto.
10430 * solib.c (_initialize_solib): Ditto.
10431 * top.c (init_main): Ditto.
10432 * tracepoint.c (_initialize_tracepoint): Ditto.
10433 * symfile.c (_initialize_symfile): Ditto.
10434 * printcmd.c (_initialize_printcmd): Ditto.
10435 * infcmd.c (_initialize_infcmd): Ditto.
10436 * corefile.c (_initialize_core): Ditto.
10437
10438 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10439
10440 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10441
10442 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10443
10444 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10445
10446 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10447
10448 * NEWS: Update headings, 5.2 has branched.
10449
10450 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10451
10452 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10453 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10454 (register_addr, REGISTER_RAW_SIZE): Likewise.
10455 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10456 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10457
10458 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10459
10460 * MAINTAINERS (x86-64): Add myself.
10461 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10462 changed value_ptr -> struct value *
10463
10464 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10465
10466 * configure.host (sparc64-*-freebsd): Add.
10467 * configure.tgt: Likewise.
10468 * config/sparc/fbsd.mh: New file.
10469 * config/sparc/fbsd.mt: Likewise.
10470 * config/sparc/nm-fbsd.h: Likewise.
10471 * config/sparc/tm-fbsd.h: Likewise.
10472
10473 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10474
10475 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10476 regformats/reg-s390x.dat.
10477
10478 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10479
10480 * utils.c: Add FIXME explaining true/false problem.
10481
10482 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10483
10484 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10485
10486 2002-02-28 Michael Chastain <mec@shout.net>
10487
10488 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10489
10490 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10491
10492 * gdbserver/linux-s390-low.c: New file.
10493 * regformats/reg-s390.dat: New file.
10494 * regformats/reg-s390x.dat: New file.
10495 * gdbserver/configure.srv: Add S/390.
10496 * gdbserver/Makefile.in: Add S/390.
10497 * configure.tgt: Enable gdbserver for S/390.
10498
10499 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10500
10501 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10502 first line of the doc string for "info dos", except at the end of
10503 the sentence, since the short help stops at the first period.
10504
10505 2002-02-28 Jason Merrill <jason@redhat.com>
10506
10507 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10508
10509 2002-02-27 Fred Fish <fnf@redhat.com>
10510
10511 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10512 comment (dumy -> dummy).
10513
10514 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10515
10516 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10517
10518 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10519
10520 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10521
10522 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * gdbserver/acconfig.h: New file.
10525 * gdbserver/i387-fp.c: New file.
10526 * gdbserver/i387-fp.h: New file.
10527 * gdbserver/linux-x86-64.c: New file.
10528 * regformats/reg-x86-64.dat: New file.
10529 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10530 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10531 * gdbserver/configure.in: Add support for regsets.
10532 * gdbserver/config.in: Regenerate.
10533 * gdbserver/configure: Regenerate.
10534 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10535 * gdbserver/linux-low.h: New file.
10536 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10537 for regsets.
10538 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10539 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10540 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10541 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10542 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10543 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10544 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10545 "i387-fp.h". Add PTRACE_GETREGS and friends.
10546 * gdbserver/regcache.c (supply_register): New function.
10547 (supply_register_by_name): New function.
10548 (collect_register): New function.
10549 (collect_register_by_name): New function.
10550
10551 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10552
10553 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10554 (config.status): Add configure.srv dependency.
10555 (server_h): Add config.h dependency.
10556
10557 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10558
10559 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10560 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10561 * gdbserver/configure.srv: Change i386-*-linux* to use
10562 reg-i386-linux.o.
10563
10564 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10565
10566 * x86-64-tdep.c: Re-indent. Update copyright date.
10567
10568 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10569
10570 From Michal Ludvig <mludvig@suse.cz>:
10571 * x86-64-tdep.c (value.h): Delete.
10572 (gdb_assert.h): Include.
10573 (x86_64_register_convert_to_virtual,
10574 x86_64_register_convert_to_raw ): Add check which lets only
10575 floating-point values to be converted.
10576 (value_push): Delete.
10577 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10578 (i386_gdbarch_init): Number of register_bytes fixed.
10579
10580 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10581
10582 * MAINTAINERS: Add x86-64 target.
10583
10584 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10585
10586 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10587 * osfsolib.c (solib_map_sections): Ditto.
10588 * irix5-nat.c (solib_map_sections): Ditto.
10589 * corelow.c (gdb_check_format): Ditto.
10590 * symfile.c (symfile_bfd_open): Ditto.
10591 * solib.c (solib_map_sections): Ditto.
10592 Fix PR gdb/354.
10593
10594 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10595
10596 * remote.c (_initialize_remote): By default, disable ``e'' and
10597 ``E'' step out-of-range packets.
10598
10599 2002-02-26 Andreas Schwab <schwab@suse.de>
10600
10601 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10602 m68k_linux_frame_saved_pc.
10603 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10604 in_sigtramp.
10605 (SIGCONTEXT_PC_OFFSET): Remove.
10606 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10607 m68k_linux_sigtramp_saved_pc): New functions.
10608 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10609 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10610 (UCONTEXT_PC_OFFSET): Define.
10611 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10612 non-RT and RT signal trampolines.
10613
10614 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10615
10616 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10617 (TARGET_NBPG, STACK_END_ADDR): Delete
10618 (VARIABLES_INSIDE_BLOCK): Delete.
10619
10620 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10621
10622 * utils.c (perror_with_name): Make string parameter constant.
10623 (print_sys_errmsg): Ditto.
10624 (query): Ditto.
10625 * defs.h (perror_with_name): Update.
10626 (print_sys_errmsg): Update.
10627 (query): Update.
10628
10629 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10630
10631 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10632 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10633
10634 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10635
10636 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10637 if it already matches the current architecture from the exec file.
10638 Include arch-utils.h for gdbarch_info_init prototype.
10639 * Makefile.in (rs6000-nat.o): Update dependencies.
10640
10641 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10642
10643 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10644 list of exported variables.
10645
10646 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10647
10648 * gdbserver/configure.srv: New file.
10649 * gdbserver/configure.in: Use configure.srv instead
10650 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10651 from it.
10652 * gdbserver/configure: Regenerated.
10653 * gdbserver/terminal.h: New file.
10654 * gdbserver/Makefile.in: Update for configure changes. Remove
10655 more unneeded include paths.
10656
10657 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10658
10659 From wiz at danbala:
10660 * config/sparc/tm-sp64.h: Fix grammar and typos.
10661 Fix PR gdb/287.
10662
10663 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10664
10665 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10666 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10667 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10668 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10669 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10670 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10671 * s390-tdep.c: Ditto.
10672 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10673 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10674 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10675 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10676 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10677 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10678 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10679 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10680 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10681 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10682 Fix PR gdb/378.
10683
10684 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10685
10686 * lin-thread.c: Delete file.
10687 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10688 to gdb_proc_service.h.
10689 * configure: Re-generate.
10690
10691 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10692 * serial.c (serial_open): Delete check for "ocd".
10693 Fix PR gdb/349.
10694
10695 * Makefile.in (linux-thread.o): Delete target.
10696 * linux-thread.c: Delete file.
10697
10698 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10699 renamed SH files to be consistent.
10700
10701 * symtab.c (sort_search_symbols): Use xfree.
10702
10703 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10704
10705 * arm-linux-tdep.c (arm_linux_init_abi): Register
10706 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10707 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10708 definition with undef, since we don't want the sysvr4 definition.
10709 (SKIP_TRAMPOLINE_CODE): Likewise.
10710
10711 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10712
10713 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10714
10715 * configure.in: (AC_CHECK_FUNCS) Added test for
10716 canonicalize_file_name Regenerated.
10717 * config.in, configure: Regenerated.
10718 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10719 defined use canonicalize_file_name.
10720
10721 2002-02-23 Michael Chastain <mec@shout.net>
10722
10723 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10724
10725 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10726
10727 * README: Remove references to cygnus.com.
10728 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10729 dot com'' form. Remove references to cygnus.com and sourceware.
10730
10731 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10732
10733 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10734 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10735 1003.1-2001 no longer allows "head -1".
10736 * gdb/Makefile.in (version.c): Likewise.
10737 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10738 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10739 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10740
10741 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10742
10743 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10744 * command.h (cmd_cfunc_eq): Declare.
10745 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10746
10747 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10748 ``struct cmd_list_element *''.
10749 * cli/cli-cmds.c (is_complete_command): Update. Use
10750 cmd_cfunc_eq.
10751 * top.c (execute_command): Pass the command to
10752 is_complete_command.
10753 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10754
10755 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10756
10757 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10758 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10759 architecture defines.
10760 * s390-tdep.c (s390_gdbarch_init): Likewise.
10761
10762 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10763
10764 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10765 (arm_linux_push_arguments): Likewise.
10766 (arm_linux_init_abi): Register them. Also register linux-specific
10767 call_dummy_words.
10768 (find_minsym_and_objfile): Use strcmp, not STREQ.
10769 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10770 (arm_linux_call_dummy_words): Delete declaration.
10771 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10772 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10773 declarations.
10774 (LOWEST_PC): Delete.
10775
10776 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10777
10778 * maint.c (print_section_info): Do not prepend `0x' to filepos
10779 output, it will be handled by local_hex_string_custom.
10780
10781 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10782
10783 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10784 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10785 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10786
10787 2002-02-22 Jim Blandy <jimb@redhat.com>
10788
10789 Indicate that the bcache functions don't change the strings
10790 they're passed.
10791 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10792 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10793
10794 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10795
10796 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10797
10798 2002-02-21 Christopher Faylor <cgf@redhat.com>
10799
10800 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10801 find the complete path to a loaded DLL.
10802
10803 2002-02-21 Fred Fish <fnf@redhat.com>
10804
10805 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10806 that marks the end of the range of a function, enter a line number
10807 entry that has a line number of zero and a PC offset that matches
10808 the end of the function. This starts a range of PC's for which no
10809 line number information is known.
10810 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10811 PC's for which no line number info is found (line number is zero)
10812 then we didn't find any valid line information.
10813 * symtab.h: Document use of zero line number entry.
10814
10815 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10816
10817 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10818 (have_ptrace_getvrregs): Define for run time checks.
10819 (gdb_vrregset_t): New type for Altivec register handling.
10820 (fetch_register, store_register): Fetch/store altivec register
10821 when needed.
10822 (fetch_altivec_register, store_altivec_register): New functions.
10823 (supply_vrregset, fill_vrregset): New functions.
10824 (fetch_altivec_registers, store_altivec_registers): New functions.
10825 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10826 registers as well.
10827
10828 2002-02-21 Jiri Smid <smid@suse.cz>
10829
10830 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10831
10832 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10833
10834 * Makefile.in (armnbsd-nat.o): Update dependencies.
10835 * armnbsd-nat.c (supply_gregset): New function. Common code to
10836 supply the integer register set.
10837 (supply_fparegset): New function. Similar for FPA registers.
10838 (fetch_regs, fetch_fp_regs): Use them.
10839 (fetch_core_registers): Likewise.
10840 (fetch_elfcore_registers): New function.
10841 (arm_netbsd_elfcore_fns): New core-file type specification.
10842 (_initialize_arm_netbsd_nat): Register it.
10843
10844 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10845
10846 * armnbsd-nat.c: Include gdbcore.h.
10847 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10848 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10849 'void' to declaration, to shut up ARI.
10850 (fetch_core_registers): Make static. Rewrite using supply_register.
10851 (arm_netbsd_core_fns): New core-file type specification.
10852 (_initialize_arm_netbsd_nat): New function.
10853
10854 2002-02-21 Christopher Faylor <cgf@redhat.com>
10855
10856 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10857 value.
10858
10859 2002-02-20 Christopher Faylor <cgf@redhat.com>
10860
10861 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10862 fails.
10863
10864 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10865
10866 * jv-exp.y (parse_number): Change type of implicit longs
10867 to builtin_type_uint64.
10868
10869 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10870
10871 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10872 to be an integer instead of a `union wait'.
10873
10874 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * mips-linux-nat.c: Call the operating system GNU/Linux.
10877 * mips-linux-tdep.c: Likewise.
10878 * mips-tdep.c: Likewise.
10879
10880 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10881
10882 Fix PR gdb/265.
10883 * jv-exp.y (parse_number): Handle 64-bit integers.
10884
10885 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10886
10887 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10888 AC_STDC_HEADERS to AC_HEADER_STDC.
10889 * gdbserver/configure: Regenerated.
10890
10891 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10892
10893 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10894 is defined.
10895 * sparc-tdep.c (get_longjmp_target): Likewise.
10896
10897 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10898
10899 * News: Add news about ARM and Multi-arch. Mention the new target
10900 arm*-*-netbsd*.
10901
10902 2002-02-19 Jim Blandy <jimb@redhat.com>
10903
10904 * stabsread.c (error_type_complaint): Improve error message.
10905
10906 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10907
10908 * gdbserver/README: Update documentation.
10909 * gdbserver/configure.in: Update configury to match documentation.
10910 * gdbserver/Makefile.in: Likewise.
10911 * gdbserver/configure: Regenerated.
10912 * gdbserver/aclocal.m4: New file, generated by aclocal.
10913 * gdbserver/config.in: New file, generated by autoheader.
10914
10915 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10916
10917 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10918 armnbsd-nat.c.
10919
10920 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10921
10922 * arm-tdep.h (enum arm_float_model): New enum.
10923 (struct gdbarch_tdep): Add fp_model.
10924 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10925 up floating-point conversions until we know the floating-point model
10926 in use by the inferior. Don't complain about being unable to
10927 determine the ABI of the inferior when we don't have one.
10928 (arm_extract_return_value): Support different floating-point models.
10929 (arm_store_return_value): Likewise.
10930 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10931 ARM_FLOAT_SOFT.
10932 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10933
10934 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10935
10936 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10937 of ``current_gdbarch''.
10938
10939 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10940
10941 * armnbsd-nat.c : ANSIfy all function declarations.
10942 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10943 (fetch_inferior_registers): Re-implement in terms of above.
10944 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10945 (store_inferior_registers): Re-implement in terms of above.
10946
10947 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10948
10949 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10950 kernel.
10951 * arm-linux-tdep.c: Likewise.
10952 * config/arm/tm-linux.h: Likewise.
10953
10954 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10955
10956 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10957 * config/arm/nbsd.mt (TM_FILE): Delete.
10958 * config/arm/tm-nbsd.h: Delete.
10959
10960 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10961
10962 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10963 Initialize CALL_DUMMY_LENGTH.
10964
10965 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10966
10967 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10968 function.
10969 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10970 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10971 defines one thing and that is incorrect for this port.
10972 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10973
10974 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10975
10976 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10977
10978 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10979
10980 * win32-nat.c (display_selector): New function. Displays information
10981 about the information returned by GetThreadSelectorEntry API function.
10982 (display_selectors): New function. Displays the infomation of
10983 the selector given as argument, or of CS, DS ans FS selectors
10984 if no argument is given.
10985 ( _initialize_inftarg): Add "w32" as info prefix command.
10986 Add "info w32 selector" as command calling display_selectors.
10987
10988 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10989
10990 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10991 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10992 if not defined.
10993
10994 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10995
10996 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10997
10998 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10999
11000 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11001 (arm_fix_call_dummy): Call it.
11002 (arm_call_dummy_breakpoint_offset): Delete.
11003 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11004 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11005
11006 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11007
11008 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11009 Default to func_frame_chain_valid.
11010 * gdbarch.h, gdbarch.c: Re-generate.
11011 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11012
11013 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11014
11015 * ppc-linux-nat.c: Update copyright.
11016 (fetch_register, store_register): Add tid parameter, don't compute
11017 tid here.
11018 (fetch_ppc_registers, store_ppc_registers): Add tid
11019 parameter. Pass it along to callees.
11020 (fetch_inferior_registers, store_inferior_registers): Compute tid
11021 here, and pass it to calleed functions.
11022 (fill_gregset, supply_fpregset): Clean up formatting.
11023
11024 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11025
11026 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11027 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11028
11029 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11030
11031 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11032 * gdbarch.c gdbarch.h: Regenerate.
11033 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11034 function.
11035 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11036 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11037 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11038
11039 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11040 * arm-tdep.c (arm_get_longjmp_target): New function.
11041 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11042 this to a positive value register arm_get_longjmp_target as the
11043 longjmp handler.
11044 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11045 (arm_linux_init_abi): Set up longjmp description in tdep.
11046 * armnbsd-nat.c (get_longjmp_target): Delete.
11047 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11048 description in tdep.
11049 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11050 (get_longjmp_target): Delete declaration.
11051 (GET_LONGJMP_TARGET): Delete.
11052 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11053 (GET_LONGJMP_TARGET): Delete.
11054
11055 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11056
11057 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11058 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11059 of ``current_gdbarch''.
11060
11061 2002-02-17 Tom Tromey <tromey@redhat.com>
11062
11063 * cli/cli-cmds.c (compare_strings): New function.
11064 (complete_command): Only print each unique item once.
11065 * completer.h (complete_line): Declare.
11066 * completer.c (complete_line): New function.
11067 (line_completion_function): Use it.
11068
11069 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11070
11071 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11072 * gdbarch.h, gdbarch.c: Re-generate.
11073
11074 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11075
11076 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11077
11078 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11079
11080 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11081 * valops.c (value_arg_coerce): Don't take the address of a reference
11082 to convert an argument to a reference.
11083
11084 2002-02-15 Christopher Faylor <cgf@redhat.com>
11085
11086 * win32-nat.c (get_image_name): New function.
11087 (handle_load_dll): Use get_image_name function.
11088 (get_child_debug_event): Avoid registering debug events until possibly
11089 execed process is started.
11090 (child_create_inferior): Allow invocation via shell so that command
11091 line redirection, etc. works ok.
11092 (_initialize_inftarg): Add new command: "set shell" to control whether
11093 a shell is used to start a process.
11094
11095 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11096
11097 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11098 instead of find_register_by_number.
11099 (cannot_store_register): Likewise.
11100
11101 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11102
11103 * dwarf2read.c: Replace fprintf (stderr, ...) by
11104 fprintf_unfiltered (gdb_stderr, ...).
11105
11106 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11107
11108 * gdbserver/gdbserver.1: Document --attach.
11109
11110 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11111
11112 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11113 descriptions.
11114 * arm-tdep.c (arm_default_arm_le_breakpoint)
11115 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11116 (arm_default_thumb_be_breakpoint): New. Initialize them from
11117 traditional breakpoint defines.
11118 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11119 (arm_gdbarch_init): Initialize new breakpoint variables.
11120 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11121 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11122 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11123 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11124 code out to ...
11125 (arm_netbsd_init_abi_common): ... here; new function.
11126 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11127 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11128 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11129 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11130
11131 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11132
11133 * arm-tdep.h (enum arm_abi): New enum.
11134 (struct gdbarch_tdep): New structure.
11135 (LOWEST_PC): Provide a default.
11136 (arm_gdbarch_register_os_abi): Declare new function.
11137 * arm-tdep.c (arm_abi_names): New array.
11138 (process_note_abi_tag_sections): New function.
11139 (get_elfosabi): New function.
11140 (arm_gdbarch_register_os_abi): New function.
11141 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11142 support for that ABI has been built in, then call the appropriate
11143 configuration routine. Use gdbarch_num_regs() to get the number
11144 of registers.
11145 (arm_dump_tdep): New function.
11146 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11147 place-holder functions.
11148 (_initialize_arm_tdep): Register them.
11149 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11150
11151 * armnbsd-tdep.c: New file.
11152 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11153 * config/arm/nbsd.mt (TDEPFILES): Add it.
11154 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11155
11156 * armnbsd-nat.c: Include regcache.h.
11157 * Makefile.in (armnbsd-nat.o): Update dependency list.
11158
11159 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11160
11161 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11162
11163 * gdbserver/Makefile.in: Fix typos in target rules.
11164
11165 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11166
11167 Fix part of PR gdb/267.
11168 * linespec.c (find_methods): Handle constructors specially for now.
11169
11170 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11171
11172 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11173 handling.
11174 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11175 standard_coerce_float_to_double().
11176
11177 2002-02-14 Christopher Faylor <cgf@redhat.com>
11178
11179 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11180 GDBINIT_FILENAME.
11181
11182 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11183
11184 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11185 find_variant_by_name, because it confuses the multiarch
11186 framework. Return NULL if there isn't an architecture with the
11187 user supplied name, instead of forcing a different one without
11188 recording the change with the multiarch machinery.
11189 (find_variant_by_name): Delete.
11190
11191 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11192
11193 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11194 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11195
11196 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11197
11198 * stack.c (print_frame_info_base): When calling
11199 print_frame_info_listing_hook, set current_source_symtab.
11200
11201 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11202
11203 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11204 and remove unused $(INCLUDE_DIR).
11205 Add regcache.c to OBS.
11206 Add generated register protocol files to clean target.
11207 Update dependencies for new objects, obsolete old target code.
11208
11209 * gdbserver/linux-low.c: Remove all platform-specific code to
11210 new files. Remove various dead code. Update to use regcache
11211 functionality.
11212 * gdbserver/remote-utils.c (fromhex): Add return statement
11213 to quiet warning.
11214 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11215 constant.
11216 (input_interrupt): Add integer parameter to match prototype
11217 of a signal handler.
11218 (outreg): Use register_data ().
11219 (prepare_resume_reply): Use gdbserver_expedite_regs.
11220 * gdbserver/server.c (main): Dynamically allocate own_buf because
11221 PBUFSIZ is no longer constant. Use registers_to_string () and
11222 registers_from_string ().
11223 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11224 for error (), fatal (), and warning (). Update definition of
11225 PBUFSIZ to use regcache functionality. Add include guard.
11226 * gdbserver/utils.c (fatal): Add missing ``const''.
11227 (warning): New function.
11228
11229 * regformats/regdat.sh: Include "regcache.h" in generated files.
11230 Provide init_registers () function.
11231 * regformats/regdef.h: Add prototype for set_register_cache ().
11232 Add include guard.
11233
11234 * gdbserver/linux-arm-low.c: New file.
11235 * gdbserver/linux-i386-low.c: New file.
11236 * gdbserver/linux-ia64-low.c: New file.
11237 * gdbserver/linux-m68k-low.c: New file.
11238 * gdbserver/linux-mips-low.c: New file.
11239 * gdbserver/linux-ppc-low.c: New file.
11240 * gdbserver/linux-sh-low.c: New file.
11241
11242 * gdbserver/regcache.c: New file.
11243 * gdbserver/regcache.h: New file.
11244
11245 * gdbserver/low-linux.c: Removed obsolete file.
11246
11247 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11248
11249 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11250 * config/i386/linux.mt: Likewise.
11251 * config/ia64/linux.mt: Likewise.
11252 * config/m68k/linux.mh: Likewise.
11253 * config/powerpc/linux.mh: Likewise.
11254 * config/mips/linux.mt: Likewise.
11255
11256 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11257
11258 * config/i386/i386lynx.mh: Mark gdbserver variables
11259 as (currently) obsolete for this target.
11260 * config/i386/nbsd.mt: Likewise.
11261 * config/i386/nbsdelf.mt: Likewise.
11262 * config/m32r/m32r.mt: Likewise.
11263 * config/m68k/m68klynx.mh: Likewise.
11264 * config/m68k/nbsd.mt: Likewise.
11265 * config/m68k/sun3os4.mh: Likewise.
11266 * config/mips/vr5000.mt: Likewise.
11267 * config/ns32k/nbsd.mt: Likewise.
11268 * config/pa/hppabsd.mh: Likewise.
11269 * config/pa/hppaosf.mh: Likewise.
11270 * config/powerpc/nbsd.mt: Likewise.
11271 * config/rs6000/rs6000lynx.mh: Likewise.
11272 * config/s390/s390.mt: Likewise.
11273 * config/s390/s390x.mt: Likewise.
11274 * config/sparc/sparclynx.mh: Likewise.
11275 * config/sparc/sun4os4.mh: Likewise.
11276 * config/i386/x86-64linux.mt: Likewise.
11277 * config/sparc/linux.mh: Likewise.
11278
11279 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11280
11281 * configure.tgt: Configure gdbserver only for known working
11282 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11283 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11284 SUBDIRS if it is configured. Update comment for ${nativefile}.
11285 * configure: Regenerated.
11286
11287 2002-02-13 Michael Snyder <msnyder@redhat.com>
11288
11289 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11290
11291 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11292 (default_gcore_mach): Just return 0, work around a problem in bfd.
11293 (default_gcore_target): OK to return NULL if exec_bfd is null.
11294 (make_mem_sec): Use a cast, avoid a warning.
11295
11296 * procfs.c (find_memory_regions_callback): Use a cast instead of
11297 calling host_pointer_to_address (which complains if
11298 sizeof (host pointer) != sizeof (target pointer)).
11299 (procfs_make_note_section): Avoid overflow in psargs string.
11300
11301 * procfs.c (procfs_make_note_section): Make the default
11302 implementation return an error.
11303
11304 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11305
11306 * procfs.c (procfs_make_note_section): Provide a default definition
11307 (for alpha-dec-osf4.0f). Fix typos.
11308
11309 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11310
11311 * linux-proc.c: Add include of regcache.h.
11312 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11313
11314 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11315
11316 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11317 * memattr.c (create_mem_region): Disallow useless empty region.
11318 Regions are half-open intervals, so allow [A..B) [B..C) as
11319 non-overlapping.
11320
11321 2002-02-13 Michael Chastain <mec@shout.net>
11322
11323 * defs.h: Kill CONST_PTR.
11324 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11325 * c-lang.c (c_builtin_types): Likewise.
11326 * ch-lang.c (ch_builtin_types): Likewise.
11327 * f-lang.c (f_builtin_types): Likewise.
11328 * language.c (unknown_builtin_types): Likewise.
11329 * m2-lang.c (m2_builtin_types): Likewise.
11330 * p-lang.c (pascal_builtin_types): Likewise.
11331 * scm-lang.c (c_builtin_types): Likewise.
11332
11333 2002-02-13 Keith Seitz <keiths@redhat.com>
11334
11335 * arm-tdep.h (arm_get_next_pc): Add declaration.
11336
11337 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11338
11339 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11340 with other related struct-returning functions.
11341 (arm_extract_struct_value_address): New function.
11342 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11343 initialize float_format, double_format and long_double_format as
11344 appropriate to the endianness of the target.
11345 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11346 (arm_use_struct_convention): Delete declaration.
11347 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11348
11349 2002-02-13 Keith Seitz <keiths@redhat.com>
11350
11351 * defs.h (core_addr_to_string_nz): New function.
11352
11353 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11354
11355 Apply missing bits of 2002-01-15 patch.
11356 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11357 (fill_fpregset): Use i387_fill_fsave.
11358
11359 2002-02-12 Keith Seitz <keiths@redhat.com>
11360
11361 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11362 (core_addr_to_string_nz): New function.
11363
11364 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11365
11366 * arm-linux-nat.c: Really include arm-tdep.h.
11367 * config/arm/tm-linux.h (struct type, struct value): Declare.
11368
11369 2002-02-11 Michael Snyder <msnyder@redhat.com>
11370
11371 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11372 (gcore section): Ifdef for Solaris and Unixware only.
11373 (procfs_do_thread_registers): Unixware needs one lwpstatus
11374 per thread (not one prstatus or pstatus).
11375 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11376 not over all gdb threads. For unixware, call elfcore_write_pstatus
11377 once before iterating over threads.
11378
11379 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11380
11381 * arm-tdep.h: New file.
11382 * arm-tdep.c: Include arm-tdep.h.
11383 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11384 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11385 (arm_print_float_info, arm_register_type, convert_to_extended)
11386 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11387 (arm_extract_return_value, arm_register_name): Make static.
11388 (arm_software_single_step): Similarly. Fix types in declaration.
11389 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11390 (arm_store_return_value, arm_store_struct_return): New functions.
11391 (arm_gdbarch_init): Register the above functions. Also register
11392 call_dummy_start_offset, sizeof_call_dummy_words,
11393 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11394 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11395 max_register_virtual_size, register_size. Set up
11396 prologue_cache.saved_regs here, rather than ...
11397 (_initialize_arm_tdep): ... here.
11398 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11399 declarations.
11400 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11401 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11402 (arm_print_float_info, arm_register_type, convert_to_extended)
11403 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11404 (arm_extract_return_value, arm_register_name): Delete declarations.
11405 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11406 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11407 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11408 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11409 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11410 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11411 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11412 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11413 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11414 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11415 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11416 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11417 interface.
11418 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11419 * remote-rdi.c remote-rdp.c: Likewise.
11420 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11421 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11422 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11423 definition.
11424
11425 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11426 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11427 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11428 from non-ARM_ prefixed definitions.
11429 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11430 all uses of above.
11431 * remote-rdi.c remote-rdp.c: Likewise.
11432 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11433
11434 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11435
11436 * arm-tdep.c (arm_frameless_function_invocation)
11437 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11438 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11439 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11440 (arm_pop_frame, arm_get_next_pc): Make static.
11441 (arm_gdbarch_init): Register above in gdbarch structure.
11442 (arm_read_fp): Renamed from arm_target_read_fp.
11443 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11444 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11445 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11446 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11447 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11448 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11449 (arm_pc_is_thumb_dummy): Delete declarations.
11450 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11451 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11452 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11453 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11454
11455 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11456
11457 * symtab.c (compare_search_syms): New function.
11458 (sort_search_symbols): New function.
11459 (search_symbols): Sort symbols after searching rather than
11460 before.
11461
11462 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11463
11464 * NEWS: Linux -> GNU/Linux.
11465
11466 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11467
11468 * gdbarch.sh: For for level one methods, disallow a definition
11469 when partially multi-arched. Add comments explaining rationale.
11470 * gdbarch.h: Re-generate.
11471
11472 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11473
11474 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11475 multi-arch partial.
11476
11477 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11478
11479 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11480 field. Use diff -u.
11481 * gdbarch.c: Re-generate.
11482
11483 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11484
11485 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11486 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11487 partial.
11488
11489 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11490
11491 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11492 multi-arch partial.
11493 (PUSH_ARGUMENTS): Switch to using predefault.
11494 * gdbarch.c: Regenerate.
11495
11496 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11497
11498 * valops.c (PUSH_ARGUMENTS): Delete definition.
11499 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11500 partial. Default to default_push_arguments.
11501 * gdbarch.h, gdbarch.c: Regenerate.
11502
11503 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11504
11505 * defs.h (throw_exception): Rename return_to_top_level. Update
11506 comments.
11507 * utils.c (error_stream, internal_verror, quit): Ditto.
11508 * top.c (throw_exception, catcher): Ditto.
11509 * sparclet-rom.c (sparclet_load): Ditto.
11510 * remote.c (interrupt_query, minitelnet): Ditto.
11511 * remote-sds.c (interrupt_query): Ditto.
11512 * remote-mips.c (mips_error, mips_kill): Ditto.
11513 * ocd.c (interrupt_query): Ditto.
11514 * monitor.c (monitor_interrupt_query): Ditto.
11515 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11516 * target.h: Update comment.
11517
11518 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11519
11520 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11521
11522 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11523 default_double_format.
11524 * gdbarch.h, gdbarch.c: Re-generate.
11525 * findvar.c (floatformat_unknown): Delete variable definition.
11526 * doublest.h (floatformat_unknown): Delete variable declaration.
11527
11528 2002-02-09 Jim Blandy <jimb@redhat.com>
11529
11530 * stabsread.c (read_type): Add code to parse Sun's syntax for
11531 prototyped function types.
11532
11533 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11534
11535 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11536 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11537
11538 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11539
11540 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11541 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11542 now _initialize_xcoffsolib gets called again and overrides the
11543 commands from solib.c in a native configuration.
11544
11545 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11546
11547 * doublest.c (store_typed_floating): Don't try to return a value.
11548 Fixes PR gdb/290.
11549
11550 2002-02-08 Jim Blandy <jimb@redhat.com>
11551
11552 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11553 is prototyped and has no arguments, print its argument list as
11554 `(void)'.
11555
11556 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11557
11558 * MAINTAINERS (write-after-approval): Add myself.
11559 (paper-trail): I've escaped!
11560
11561 2002-02-08 Christopher Faylor <cgf@redhat.com>
11562
11563 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11564 changes.
11565 (_initialize_check_for_gdb_ini): Ditto.
11566
11567 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11568
11569 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11570 xaprintf -> xasprintf.
11571
11572 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11573
11574 * win32-nat.c: Remove use of printf and sprintf functions.
11575
11576 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11577
11578 * arm-tdep.c (arm_frame_chain_valid): Make static.
11579 (arm_push_arguments): Likewise.
11580 (arm_gdbarch_init): New function.
11581 (_initialize_arm_tdep): Call it.
11582 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11583 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11584 (FRAME_CHAIN_VALID): Delete.
11585 (arm_frame_chain_valid): Delete declaration.
11586 (PUSH_ARGUMENTS): Delete.
11587 (arm_push_arguments): Delete declaration.
11588 (CALL_DUMMY_P): Delete.
11589
11590 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11591 Corinna Vinschen <vinschen@redhat.com>
11592
11593 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11594 on builtin float types.
11595
11596 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11597
11598 * utils.c: Include <curses.h> before "bfd.h".
11599 * tui/tui-hooks.c: Likewise.
11600 * tui/tui.c: Likewise.
11601 * tui/tuiCommand.c: Likewise.
11602 * tui/tuiData.c: Likewise.
11603 * tui/tuiDataWin.c: Likewise.
11604 * tui/tuiDisassem.c: Likewise.
11605 * tui/tuiGeneralWin.c: Likewise.
11606 * tui/tuiIO.c: Likewise.
11607 * tui/tuiLayout.c: Likewise.
11608 * tui/tuiRegs.c: Likewise.
11609 * tui/tuiSource.c: Likewise.
11610 * tui/tuiSourceWin.c: Likewise.
11611 * tui/tuiStack.c: Likewise.
11612 * tui/tuiWin.c: Likewise.
11613
11614 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11615
11616 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11617 to include space for pseudoregs as well. Update loops accordingly.
11618 (sh_fp_frame_init_saved_regs): Ditto.
11619 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11620
11621 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11622
11623 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11624 Add Richard Earnshaw to Arm maintainers.
11625
11626 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11627
11628 * defs.h (warning_begin): Delete declaration.
11629
11630 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11631 Delete macro.
11632
11633 2002-02-07 Michael Snyder <msnyder@redhat.com>
11634
11635 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11636 Logic bug, remove misplaced else.
11637
11638 2002-02-07 Klee Dienes <klee@apple.com>
11639
11640 * fork-inferior.c (fork_inferior): Add '!' to the list of
11641 characters that need to be quoted when building a string for the
11642 shell. Quote '!' specifically with a backslash, since CSH chokes
11643 when trying to evaluate "str!str".
11644
11645 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11646
11647 * rdi-share/host.h: Only provide a typedef for bool if it is not
11648 defined.
11649
11650 2002-02-04 Michael Snyder <msnyder@redhat.com>
11651
11652 * breakpoint.h (enum bptype): Add new overlay event bp type.
11653 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11654
11655 * breakpoint.c (create_internal_breakpoint): New function.
11656 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11657 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11658 (create_thread_event_breakpoint): Ditto.
11659 (create_solib_event_breakpoint): Ditto.
11660 (create_overlay_event_breakpoint): New function.
11661 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11662 (update_breakpoints_after_exec): Delete and re-initialize
11663 overlay event breakpoints after an exec. Add FIXME comment
11664 about longjmp breakpoint.
11665 (print_it_typical): Ignore overlay event breakpoints.
11666 (print_one_breakpoint): Ditto.
11667 (mention): Ditto.
11668 (bpstat_what): Do not stop for overlay event breakpoints.
11669 (delete_breakpoint): Don't delete overlay event breakpoints.
11670 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11671 (breakpoint_re_set): Re-create overlay event breakpoint.
11672
11673 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11674 (overlay_manual_command): Disable overlay breakpoints.
11675 (overlay_off_command): Disable overlay breakpoints.
11676
11677 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11678
11679 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11680 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11681 to here from config/tm-arm.h.
11682 (coff_sym_is_thumb): Make static.
11683 (arm_elf_make_msymbol_special): New function.
11684 (arm_coff_make_msymbol_special): New function.
11685 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11686 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11687 (coff_sym_is_thumb): Delete declaration.
11688 (arm_elf_make_msymbol_special): Declare.
11689 (arm_coff_make_msymbol_special): Declare.
11690 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11691 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11692
11693 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11694
11695 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11696
11697 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11698
11699 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11700 * gdbarch.c gdbarch.h: Regenerate.
11701 * arch-utils.c (default_print_float_info): New function.
11702 * arch-utils.h (default_print_float_info): Prototype it.
11703 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11704 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11705 (PRINT_FLOAT_INFO): Document it.
11706
11707 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11708 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11709 (PRINT_FLOAT_INFO): Define.
11710
11711 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11712
11713 * win32-nat.c (_initialize_check_for_gdb_ini):
11714 Add typecast to sprintf argument to suppress a warning.
11715
11716 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11717
11718 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11719 to allow easier handling of pass state.
11720 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11721 that gives exception name and address.
11722 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11723 and set last_sig value to ourstatus->value.sig. Some missing
11724 exceptions added.
11725 (child_continue): Correctly report continue_status.
11726 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11727 TARGET_SIGNAL_0 (new default value).
11728 (child_resume): consider sig argument passed to decide if
11729 the exception should be passed to debuggee or not.
11730
11731 2002-02-05 Michael Snyder <msnyder@redhat.com>
11732
11733 * regcache.c (fetch_register): Call target_fetch_register
11734 only if we don't call FETCH_PSEUDO_REGISTER.
11735 (store_register): Call target_store_register only if we
11736 don't call STORE_PSEUDO_REGISTER.
11737
11738 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11739
11740 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11741 ELF_MAKE_MSYMBOL_SPECIAL.
11742 * gdbarch.c, gdbarch.h: Regenerate.
11743 * arch-utils.c (default_make_msymbol_special): New function.
11744 * arch-utils.h (default_make_msymbol_special): Export.
11745 * elfread.c (elf_symtab_read): Compile use of
11746 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11747 multiarched.
11748 * coffread.c (coff_symtab_read): Ditto, for
11749 COFF_MAKE_MSYMBOL_SPECIAL.
11750
11751 2002-02-05 Jim Blandy <jimb@redhat.com>
11752
11753 * solib-svr4.c (svr4_truncate_ptr): New function.
11754 (svr4_relocate_section_addresses): Do the address arithmetic with
11755 the appropriate truncation for target addresses, even when
11756 CORE_ADDR is larger than a target address.
11757
11758 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11759
11760 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11761 to (int *).
11762
11763 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11764
11765 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11766 code.
11767
11768 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11769
11770 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11771
11772 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11773
11774 * gdbserver/linux-low.c: Remove unused include files.
11775
11776 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11777
11778 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11779 (read_inferior_memory): Use it.
11780 (write_inferior_memory): Likewise.
11781
11782 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11783
11784 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11785 grubbing through sys_errlist.
11786
11787 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11788
11789 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11790
11791 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11792 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11793
11794 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11795
11796 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11797 (do_sfunc, set_cmd_sfunc): New functions.
11798
11799 * command.h (struct cmd_list_element): Add field func.
11800 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11801 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11802 * cli/cli-decode.h: Ditto.
11803
11804 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11805 (help_all, help_cmd_list): Ditto.
11806 (find_cmd, complete_on_cmdlist): Ditto.
11807 * top.c (execute_command): Ditto.
11808
11809 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11810 function.sfunc.
11811
11812 * infcmd.c (notice_args_read): Fix function signature.
11813
11814 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11815 * cli/cli-decode.c (add_set_cmd): Ditto.
11816 * utils.c (initialize_utils): Ditto.
11817 * maint.c (_initialize_maint_cmds): Ditto.
11818 * infrun.c (_initialize_infrun): Ditto.
11819 * demangle.c (_initialize_demangler): Ditto.
11820 * remote.c (add_packet_config_cmd): Ditto.
11821 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11822 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11823 * proc-api.c (_initialize_proc_api): Ditto.
11824 * kod.c (_initialize_kod): Ditto.
11825 * valprint.c (_initialize_valprint): Ditto.
11826 * top.c (init_main): Ditto.
11827 * infcmd.c (_initialize_infcmd): Ditto.
11828 * corefile.c (_initialize_core): Ditto.
11829 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11830 * arch-utils.c (initialize_current_architecture): Ditto.
11831 (_initialize_gdbarch_utils): Ditto.
11832 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11833
11834 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11835 * wince.c (_initialize_inftarg): Ditto.
11836 * symfile.c (_initialize_symfile): Ditto.
11837 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11838 * language.c (_initialize_language): Ditto.
11839 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11840
11841 2002-02-04 Michael Snyder <msnyder@redhat.com>
11842
11843 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11844
11845 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11846
11847 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11848 Add rules for building the register data files.
11849
11850 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11851
11852 * regformats/regdat.sh: Add braces to the definition of
11853 expedite_regs_${arch}.
11854
11855 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11856
11857 * regformats/regdef.h (struct reg): Add comment describing the
11858 requirements for offset and size fields.
11859
11860 2002-02-04 Andreas Schwab <schwab@suse.de>
11861
11862 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11863 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11864
11865 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11866
11867 * gdbarch.sh (copyright): Update years in generated header.
11868 (SMASH_TEXT_ADDRESS): Add rule.
11869 * gdbarch.h, gdbarch.c: Re-generate.
11870 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11871 * dbxread.c: Likewise.
11872 * dwarfread.c: Likewise.
11873 * elfread.c: Likewise.
11874 * somread.c: Likewise.
11875
11876 * arm-tdep.c (arm_smash_text_address): New function.
11877 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11878
11879 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11880
11881 Add support for hardware watchpoints on win32 native.
11882 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11883 CONTEXT_DEBUG_REGISTERS.
11884 (dr variable): New variable. Static array containing a local copy
11885 of debug registers.
11886 (debug_registers_changed): New variable. Reflects when debug registers
11887 are changed and need to be written to inferior.
11888 (debug_registers_used): New variable. Reflects when any debug register
11889 was set, used when new threads are created.
11890 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11891 i386-nat code.
11892 (thread_rec): Set dr array if id is the thread of current_event .
11893 (child_continue, child_resume): Change the debug registers for all
11894 threads if debug_registers_changed.
11895 (child_add_thread): Change the debug registers if debug_registers_used.
11896 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11897 Link nm.h to new nm-cygwin.h file.
11898 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11899 of hardware registers.
11900
11901 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11902
11903 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11904 Restore behavour broken by 2002-01-20 Andrew Cagney
11905 <ac131313@redhat.com> IEEE_FLOAT removal.
11906
11907 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11908
11909 * c-valprint.c (c_val_print): Pass a proper valaddr to
11910 cp_print_class_method.
11911 * valops.c (search_struct_method): If there is only one method
11912 and args is NULL, return that method.
11913
11914 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11915
11916 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11917 accessing tag_name directly.
11918
11919 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11920
11921 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11922 of accessing tag_name directly.
11923
11924 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11925
11926 PR gdb/280
11927 * gdbtypes.c (replace_type): New function.
11928 * gdbtypes.h (replace_type): Add prototype.
11929 * stabsread.c (read_type): Use replace_type.
11930
11931 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11932
11933 * Makefile.in (memattr.o): Add missing dependencies rule.
11934
11935 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11936
11937 * breakpoint.c (break_at_finish_command): Really export.
11938 (break_at_finish_at_depth_command): Ditto.
11939 (tbreak_at_finish_command): Ditto.
11940 * hppa-tdep.c: Include completer.h.
11941 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11942 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11943
11944 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11945
11946 * utils.c (do_write): New function.
11947 (error_stream): Rewrite combining the code from error_begin and
11948 verror.
11949 (verror): Rewrite using error_stream.
11950 (error_begin): Delete function.
11951
11952 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11953
11954 * utils.c (error_begin): Make static.
11955 * defs.h (error_begin): Delete declaration.
11956
11957 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11958 (decode_line_1): Use cplusplus_error instead of error_begin,
11959 cplusplus_hint and return_to_top_level.
11960 * coffread.c (coff_symfile_read): Use error instead of error_begin
11961 and return_to_top_level.
11962 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11963
11964 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11965
11966 * language.h (type_error, range_error): Make string parameter
11967 constant.
11968 * language.c (warning_pre_print): Delete extern declaration.
11969 * dwarfread.c (warning_pre_print): Ditto.
11970 * language.c (type_error, range_error): Rewrite to use verror and
11971 vwarning instead of warning_begin.
11972
11973 2002-02-01 Michael Snyder <msnyder@redhat.com>
11974
11975 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11976 (set_ignore_count): Move misplaced comment back where it belongs.
11977
11978 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11979
11980 * command.h (NO_FUNCTION): Delete macro.
11981 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11982 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11983 * tracepoint.c (_initialize_tracepoint): Ditto.
11984 * cli/cli-decode.c (add_set_cmd): Ditto.
11985 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11986
11987 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11988
11989 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11990 Update ``this'' pointer when calling virtual functions.
11991
11992 2002-02-01 Michael Snyder <msnyder@redhat.com>
11993
11994 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11995 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11996
11997 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * regformats/reg-arm.dat: New file.
12000 * regformats/reg-i386.dat: New file.
12001 * regformats/reg-ia64.dat: New file.
12002 * regformats/reg-m68k.dat: New file.
12003 * regformats/reg-mips.dat: New file.
12004 * regformats/reg-ppc.dat: New file.
12005 * regformats/reg-sh.dat: New file.
12006 * regformats/regdef.h: New file.
12007 * regformats/regdat.sh: New file.
12008
12009 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12010
12011 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12012 (arm_frame_args_address, arm_frame_locals_address): New functions.
12013 (arm_frame_num_args): New function.
12014 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12015 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12016 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12017
12018 2002-01-31 Michael Snyder <msnyder@redhat.com>
12019
12020 * breakpoint.c (break_at_finish_command): Export.
12021 (break_at_finish_at_depth_command): Export.
12022 (tbreak_at_finish_command): Export.
12023 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12024 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12025 "txbreak" commands, which are HPPA specific.
12026
12027 * printcmd.c (disassemble_command): Remove an ancient
12028 artifact of an old merge.
12029
12030 * symfile.h (enum overlay_debugging_state):
12031 Define enum constant values for overlay mode.
12032 * symfile.c (overlay_debugging): Use enums instead of literals.
12033 (overlay_is_mapped, overlay_auto_command,
12034 overlay_manual_command): Ditto.
12035
12036 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12037 breakpoint_here_p, breakpoint_inserted_here_p,
12038 breakpoint_thread_match, bpstat_stop_status,
12039 describe_other_breakpoints, check_duplicates, clear_command):
12040 Coding standard fixes.
12041
12042 * target.c (target_xfer_memory): Add spaces, coding standard.
12043 (do_xfer_memory): Add missing line to trust-readonly
12044 code: check bfd SEC_READONLY flag for section.
12045
12046 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12047
12048 * PROBLEMS: Fix typo, 5.1->5.1.1.
12049
12050 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12051
12052 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12053 data symbols, since we search based on textlow and texthigh.
12054 (find_pc_sect_symtab): Likewise.
12055
12056 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12057
12058 * defs.h (vwarning): Declare.
12059 * utils.c (vwarning): New function.
12060 (warning): Call vwarning.
12061 (warning_begin): Delete function.
12062
12063 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12064 the warning message.
12065 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12066 warning_begin.
12067
12068 2002-01-30 Michael Snyder <msnyder@redhat.com>
12069
12070 * NEWS: Mention "set trust-readonly-sections" command.
12071 Mention generate-core-file command.
12072
12073 2002-01-15 Michael Snyder <msnyder@redhat.com>
12074
12075 * target.c: New command, "set trust-readonly-sections on".
12076 (do_xfer_memory): Honor the suggestion to trust readonly sections
12077 by reading them from the object file instead of from the target.
12078 (initialize_targets): Register command "set trust-readonly-sections".
12079
12080 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12081
12082 * parse.c (target_map_name_to_register): Simplify, search regs and
12083 pseudo-regs using a single loop.
12084
12085 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12086
12087 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12088
12089 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12090
12091 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12092 * config/i386/i386v42mp.mh: Add i387-nat.o .
12093 * i386v4-nat.c: Include i387-nat.h.
12094 (supply_fpregset): Use i387_supply_fsave.
12095 (fill_fpregset): Use i387_fill_fsave.
12096
12097 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12098
12099 * arm-tdep.c (arm_call_dummy_words): Define.
12100 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12101 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12102 (CALL_DUMMY_WORDS): Define.
12103 (arm_call_dummy_words): Declare.
12104 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12105 (arm_linux_call_dummy_words): Declare.
12106
12107 2002-01-30 Andreas Schwab <schwab@suse.de>
12108
12109 * m68klinux-nat.c: Fix last change to use regcache_collect
12110 instead of referencing registers[] directly.
12111
12112 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12113
12114 * parse.c (target_map_name_to_register): Delete code wrapped in
12115 #ifdef REGISTER_NAME_ALIAS_HOOK.
12116
12117 2002-01-28 Michael Snyder <msnyder@redhat.com>
12118
12119 * regcache.c (legacy_read_register_gen): Need to be able to
12120 read pseudo-register as well as real register.
12121 (legacy_write_register_gen): Ditto.
12122
12123 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12124
12125 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12126 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12127 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12128 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12129 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12130 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12131 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12132 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12133 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12134 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12135 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12136 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12137 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12138 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12139 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12140 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12141 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12142 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12143 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12144 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12145
12146 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12147
12148 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12149 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12150 (initialize_current_architecture): Update target_byte_order using
12151 information from BFD.
12152 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12153 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12154
12155 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12156
12157 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12158 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12159
12160 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12161 #ifdef INVALID_FLOAT.
12162 * infcmd.c (do_registers_info): Ditto.
12163 * values.c (unpack_double): Ditto. Add comment.
12164
12165 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12166 already commented out.
12167
12168 2002-01-26 Andreas Schwab <schwab@suse.de>
12169
12170 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12171 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12172 registers and add support for PTRACE_GETREGS.
12173
12174 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12175
12176 GDB 5.1.1 released from 5.1 branch.
12177 * NEWS: Add 5.1.1 news.
12178 * README: Sync with 5.1 branch.
12179
12180 2002-01-23 Fred Fish <fnf@redhat.com>
12181
12182 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12183 stabstring on initial malloc. Reallocing will copy it for us,
12184 if necessary.
12185
12186 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12187
12188 * Makefile.in (hpread_h): Delete.
12189 (HFILES_NO_SRCDIR): Remove hpread.h.
12190 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12191 (hpread.o): Update dependencies.
12192 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12193
12194 * hp-psymtab-read.c: Remove file.
12195 * hp-symtab-read.c: Remove file.
12196 * hpread.h: Remove file.
12197
12198 * hpread.c: Merge all contents of hp-psymtab-read.c,
12199 hp-symtab-read.c and hpread.h into this file, as it was prior to
12200 January 1999.
12201
12202 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12203 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12204 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12205 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12206
12207 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12208
12209 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12210 fill_gregset): Call gdbarch_tdep() just once, assign result to
12211 variable and use that, instead of calling the function several
12212 times.
12213
12214 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12215
12216 * configure.host: Accept sparcv9 as alias for sparc64.
12217 * configure.tgt: Likewise.
12218
12219 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12220
12221 * solib-aix5.c (build_so_list_from_mapfile)
12222 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12223 arguments is not reversed.
12224 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12225 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12226
12227 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12228
12229 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12230 modified version of obsolete sh_fetch_pseudo_register.
12231 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12232 (sh4_register_read): New function.
12233 (sh_pseudo_register_write): New function. Renamed and modified
12234 version of obsolete sh_store_pseudo_register.
12235 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12236 (sh4_register_write): New function.
12237 (sh_gdbarch_init): Remove setting of gdbarch function
12238 fetch_pseudo_register and store_pseudo_register. Remove setting of
12239 register_convert_to_raw, register_convert_to_virtual,
12240 register_convertible.
12241 (sh_sh4_register_convertible): Delete. No longer needed. All is
12242 taken care by architecture specific functions
12243 register_read/register_write.
12244 (sh_sh4_register_convert_to_virtual): Make static.
12245 (sh_sh4_register_convert_to_raw): Ditto.
12246
12247 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12248
12249 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12250 (floatformat_is_nan, floatformat_mantissa): Ditto.
12251
12252 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12253 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12254 builtin_type_ieee_double_little,
12255 builtin_type_ieee_double_littlebyte_bigword,
12256 builtin_type_m68881_ext, builtin_type_i960_ext,
12257 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12258 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12259 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12260 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12261
12262 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12263
12264 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12265 parameter. Set frameless flag if it exists and depended of
12266 whether the scanned function is frameless or not.
12267 (xstormy16_skip_prologue): If function is frameless, return
12268 result of xstormy16_scan_prologue().
12269 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12270 call.
12271
12272 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12273
12274 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12275 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12276 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12277 sh_sh4_register_byte, sh_sh4_register_raw_size,
12278 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12279 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12280 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12281 sh_store_pseudo_register, sh_do_pseudo_register): Call
12282 gdbarch_tdep() just once, assign result to variable and use that,
12283 instead of calling the function several times.
12284
12285 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12286
12287 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12288 macros instead of LAST_FPU_CTRL_REGNUM.
12289 (store_register): Likewise.
12290
12291 2002-01-21 Jim Blandy <jimb@redhat.com>
12292
12293 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12294 is up-to-date before running the program, not just when a program
12295 exits.
12296
12297 2002-01-21 Fred Fish <fnf@redhat.com>
12298
12299 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12300 when we have found all instructions we are looking for.
12301
12302 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12303
12304 * arm-tdep.c (arm_register_name): New function.
12305 (arm_registers_names): Make static.
12306 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12307 (arm_register_name): Declare.
12308 (REGISTER_NAME): Use it.
12309
12310 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12311 Kevin Buettner <kevinb@redhat.com>
12312
12313 Convert arm targets to new FRAME interface.
12314 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12315 (arm_frame_find_save_regs): Delete.
12316 (arm_frame_init_saved_regs): New.
12317 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12318 Allocate extra_info as required. Convert all uses of fsr.regs
12319 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12320 to use extra_info.
12321 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12322 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12323 (check_prologue_cache, save_prologue_cache): Likewise.
12324 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12325 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12326 (FRAME_FIND_SAVED_REGS): Delete.
12327 (arm_frame_find_saved_regs): Delete prototype.
12328 (arm_frame_init_saved_regs): New prototype.
12329 (FRAME_INIT_SAVED_REGS): Define.
12330
12331 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12332
12333 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12334
12335 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12336
12337 From Jeff Law <law@redhat.com>:
12338 * infttrace.c: Include <sys/pstat.h>.
12339 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12340 exec file if the ttrace equivalent fails.
12341
12342 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12343
12344 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12345 (closeLogFile): Ditto.
12346
12347 2002-01-20 Michael Chastain <mec@shout.net>
12348
12349 * top.c (print_gdb_version): Bump copyright year to 2002.
12350
12351 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12352
12353 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12354 Zannoni and Eli Zaretskii.
12355
12356 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12357
12358 * buildsym.c: Update copyright years.
12359 * c-typeprint.c: Likewise.
12360 * dwarf2read.c: Likewise.
12361 * f-typeprint.c: Likewise.
12362 * gdbtypes.c: Likewise.
12363 * gdbtypes.h: Likewise.
12364 * hp-symtab-read.c: Likewise.
12365 * hpread.c: Likewise.
12366 * mdebugread.c: Likewise.
12367 * p-typeprint.c: Likewise.
12368
12369 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12370
12371 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12372 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12373 byte-order selectable.
12374 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12375 * arch-utils.c: Ditto.
12376 (set_endian): Ditto.
12377 (set_endian_from_file): Ditto.
12378 * gdbserver/low-sim.c (create_inferior): Ditto.
12379 * gdbarch.sh: Ditto.
12380 * gdbarch.h: Re-generate.
12381 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12382 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12383 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12384 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12385 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12386 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12387 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12388 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12389 macro definition.
12390 * config/mips/tm-wince.h: Remove #undef of macro
12391 TARGET_BYTE_ORDER_SELECTABLE.
12392 * config/sh/tm-wince.h: Ditto.
12393
12394 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12395
12396 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12397 member function fields. Add accessor macro
12398 TYPE_FN_FIELD_ARTIFICIAL.
12399 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12400 * c-typeprint.c (c_type_print_base): Skip artificial member
12401 functions.
12402
12403 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12404
12405 * f-typeprint.c: Delete unused function f_type_print_args.
12406 * p-typeprint.c: Delete unused function pascal_type_print_args.
12407
12408 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12409
12410 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12411 comment. Add ``artificial'' to ``union field_location''.
12412
12413 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12414
12415 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12416 * mdebugread.c (parse_symbol): Likewise.
12417 * stabsread.c (define_symbol): Likewise.
12418 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12419 initializing TYPE_FIELD_BITPOS to n (obsolete).
12420 (hpread_doc_function_type): Likewise.
12421 * hpread.c (hpread_function_type): Likewise.
12422
12423 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12424
12425 * configure.in (host_makefile_frag): Only require a host makefile
12426 fragment when a native build.
12427 * configure: Re-generate.
12428
12429 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12430
12431 * doublest.h (floatformat_from_type): Declare.
12432 * doublest.c (floatformat_from_type): New function.
12433 (convert_typed_floating): Use.
12434
12435 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12436 call to function floatformat_from_type.
12437
12438 * gdbarch.sh (IEEE_FLOAT): Delete.
12439 * gdbarch.h, gdbarch.c: Re-generate.
12440 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12441 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12442 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12443 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12444 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12445 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12446 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12447 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12448 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12449 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12450 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12451 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12452
12453 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12454 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12455 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12456 * sh-tdep.c (sh_gdbarch_init): Ditto.
12457 * mips-tdep.c (mips_gdbarch_init): Ditto.
12458 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12459 * cris-tdep.c (cris_gdbarch_init): Ditto.
12460
12461 2002-01-20 Jiri Smid <smid@suse.cz>
12462
12463 * configure.host, configure.tgt: Support x86-64.
12464 * NEWS: Note new target x86-64.
12465
12466 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12467 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12468 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12469 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12470 x86-64-linux-nat.o): Fix dependencies.
12471
12472 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12473
12474 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12475 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12476 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12477 * config/sparc/xm-sun4os4.h: Delete file.
12478 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12479
12480 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12481
12482 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12483 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12484 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12485 * config/i386/i386lynx.mh (XM_FILE): Delete.
12486 * config/rs6000/xm-rs6000ly.h: Delete file.
12487 * config/sparc/xm-sparclynx.h: Delete file.
12488 * config/m68k/xm-m68klynx.h: Delete file.
12489 * config/i386/xm-i386lynx.h: Delete file.
12490 * config/xm-lynx.h: Delete file.
12491 * config/djgpp/fnchange.lst: Update.
12492
12493 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12494
12495 * alpha-tdep.c (alpha_register_byte): New function.
12496 (alpha_register_raw_size): Ditto.
12497 (alpha_register_virtual_size): Ditto.
12498 (alpha_skip_prologue_internal): Renamed from
12499 alpha_skip_prologue.
12500 (alpha_skip_prologue): New version that calls
12501 alpha_skip_prologue_internal.
12502 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12503 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12504 second argument from alpha_skip_prologue.
12505 (REGISTER_BYTE): Use alpha_register_byte.
12506 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12507 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12508 (FRAMELESS_FUNCTION_INVOCATION): Use
12509 generic_frameless_function_invocation_not.
12510 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12511 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12512
12513 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12514
12515 * config/mips/xm-news-mips.h: Delete file.
12516 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12517
12518 * config/m88k/xm-m88k.h: Delete file.
12519 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12520 * config/m88k/xm-delta88v4.h: Ditto.
12521 * config/m88k/xm-delta88.h: Ditto.
12522
12523 * config/alpha/xm-fbsd.h: Delete file.
12524 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12525
12526 * config/sparc/xm-sparc.h: Delete file.
12527 * Makefile.in (xm-sun4os4.h): Delete dependency.
12528 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12529 * config/sparc/xm-sun4os4.h: Ditto.
12530 * config/sparc/xm-linux.h: Ditto.
12531
12532 * config/i386/xm-windows.h: Delete file.
12533
12534 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12535
12536 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12537 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12538
12539 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12540
12541 * alpha-tdep.c (alpha_call_dummy_words): New.
12542 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12543 (CALL_DUMMY_P): Define.
12544 (CALL_DUMMY_WORDS): Define.
12545 (SIZEOF_CALL_DUMMY_WORDS): Define.
12546
12547 2002-01-19 Per Bothner <per@bothner.com>
12548
12549 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12550 isn't NULL, which can happen with some gcj-3.x-produced code.
12551
12552 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12553
12554 * alpha-tdep.c (alpha_register_virtual_type): New function.
12555 (alpha_init_frame_pc_first): Ditto.
12556 (alpha_fix_call_dummy): Ditto.
12557 (alpha_store_struct_return): Ditto.
12558 (alpha_extract_struct_value_address): Ditto.
12559 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12560 alpha_register_virtual_type.
12561 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12562 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12563 alpha_extract_struct_value_address.
12564 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12565 (INIT_FRAME_PC): Use init_frame_pc_noop.
12566 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12567
12568 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12569
12570 * i386gnu-nat.c: Include "i386-tdep.h".
12571 (fetch_fpregs): Simplify code dealing with uninitialized floating
12572 point states such that it doesn't require FP7_REGNUM.
12573
12574 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12575
12576 * alpha-tdep.c (frame_extra_info): New.
12577 (alpha_find_saved_regs): Make static. Use
12578 frame->extra_info.
12579 (alpha_frame_init_saved_regs): New function.
12580 (alpha_frame_saved_pc): Use frame->extra_info.
12581 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12582 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12583 (init_extra_frame_info): Rename to...
12584 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12585 (alpha_print_extra_frame_info): New function.
12586 (alpha_frame_locals_address): Ditto.
12587 (alpha_frame_args_address): Ditto.
12588 (alpha_pop_frame): Use frame->extra_info.
12589 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12590 alpha_frame_args_address.
12591 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12592 (alpha_find_saved_regs): Remove prototype.
12593 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12594 (EXTRA_FRAME_INFO): Remove.
12595 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12596 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12597
12598 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12599
12600 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12601 (alpha_cannot_fetch_register): Ditto.
12602 (alpha_cannot_store_register): Ditto.
12603 (alpha_register_convertible): Ditto.
12604 (alpha_use_struct_convention): Ditto.
12605 * config/alpha/tm-alpha.h: Update copyright years.
12606 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12607 (INNER_THAN): Use core_addr_lessthan.
12608 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12609 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12610 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12611 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12612 (FRAME_CHAIN): Remove unnecessary cast.
12613
12614 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12615
12616 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12617 obsolete.
12618
12619 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12620
12621 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12622 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12623 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12624 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12625 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12626 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12627 * x86-64-linux-nat.c: Ditto.
12628
12629 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12630
12631 * alpha-tdep.c (alpha_register_name): New function.
12632 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12633 (REGISTER_NAME): Define.
12634
12635 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12636
12637 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12638
12639 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12640
12641 * alpha-tdep.c: Update copyright years.
12642 (alpha_next_pc): New function.
12643 (alpha_software_single_step): Ditto.
12644 * config/alpha/tm-alpha.h: Add prototype for
12645 alpha_software_single_step.
12646
12647 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12648
12649 * alphabsd-nat.c: Update copyright years.
12650 (fill_gregset): Use regcache_collect.
12651 (fill_fpregset): Likewise.
12652 (fetch_inferior_registers): Only fetch integer registers
12653 if requested to do so.
12654 (store_inferior_registers): Only store integer registers
12655 if requested to do so.
12656
12657 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12658
12659 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12660 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12661 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12662 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12663 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12664 * config/arm/linux.mh (XDEPFILES): Delete.
12665 * config/arm/nbsd.mh (XDEPFILES): Delete.
12666 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12667 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12668 * config/i386/i386m3.mh (XDEPFILES): Delete.
12669 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12670 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12671 * config/i386/fbsd.mh (XDEPFILES): Delete.
12672 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12673 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12674 * config/i386/i386v4.mh (XDEPFILES): Delete.
12675 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12676 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12677 * config/i386/i386aix.mh (XDEPFILES): Delete.
12678 * config/i386/go32.mh (XDEPFILES): Delete.
12679 * config/i386/cygwin.mh (XDEPFILES): Delete.
12680 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12681 * config/i386/i386mach.mh (XDEPFILES): Delete.
12682 * config/i386/i386v32.mh (XDEPFILES): Delete.
12683 * config/i386/linux.mh (XDEPFILES): Delete.
12684 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12685 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12686 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12687 * config/i386/i386sco.mh (XDEPFILES): Delete.
12688 * config/i386/i386v.mh (XDEPFILES): Delete.
12689 * config/i386/nbsd.mh (XDEPFILES): Delete.
12690 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12691 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12692 * config/i386/symmetry.mh (XDEPFILES): Delete.
12693 * config/i386/obsd.mh (XDEPFILES): Delete.
12694 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12695 * config/ia64/linux.mh (XDEPFILES): Delete.
12696 * config/ia64/aix.mh (XDEPFILES): Delete.
12697 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12698 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12699 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12700 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12701 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12702 * config/m68k/linux.mh (XDEPFILES): Delete.
12703 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12704 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12705 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12706 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12707 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12708 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12709 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12710 * config/m88k/delta88.mh (XDEPFILES): Delete.
12711 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12712 * config/m88k/m88k.mh (XDEPFILES): Delete.
12713 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12714 * config/mips/linux.mh (XDEPFILES): Delete.
12715 * config/mips/irix6.mh (XDEPFILES): Delete.
12716 * config/mips/irix5.mh (XDEPFILES): Delete.
12717 * config/mips/irix4.mh (XDEPFILES): Delete.
12718 * config/mips/irix3.mh (XDEPFILES): Delete.
12719 * config/mips/decstation.mh (XDEPFILES): Delete.
12720 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12721 (NATDEPFILES): Move core-aout.o to here.
12722 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12723 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12724 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12725 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12726 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12727 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12728 * config/pa/hpux11.mh (XDEPFILES): Delete.
12729 * config/powerpc/aix.mh (XDEPFILES): Delete.
12730 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12731 * config/powerpc/linux.mh (XDEPFILES): Delete.
12732 * config/romp/rtbsd.mh: Rename XDEPFILES.
12733 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12734 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12735 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12736 * config/s390/s390.mh (XDEPFILES): Delete.
12737 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12738 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12739 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12740 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12741 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12742 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12743 * config/sparc/linux.mh (XDEPFILES): Delete.
12744 * config/vax/vaxult.mh (XDEPFILES): Delete.
12745 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12746 * Makefile.in (DEPFILES): Remove XDEPFILES.
12747
12748 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12749
12750 * utils.c (internal_verror): Fix comments, default is yes not no.
12751 Update queries to match. Default to quit and dump core.
12752
12753 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12754
12755 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12756 copyright.
12757 * defs.h, event-top.c, gdbcmd.h: Ditto.
12758 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12759 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12760 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12761 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12762 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12763 * mi/mi-main.c:Ditto.
12764
12765 * stack.c, symfile.c: Update copyright.
12766
12767 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12768
12769 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12770 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12771 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12772 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12773
12774 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12775
12776 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12777 * gdbserver/low-lynx.c (myattach): Likewise.
12778 * gdbserver/low-nbsd.c (myattach): Likewise.
12779 * gdbserver/low-sim.c (myattach): Likewise.
12780 * gdbserver/low-sparc.c (myattach): Likewise.
12781 * gdbserver/low-sun3.c (myattach): Likewise.
12782
12783 * gdbserver/low-linux.c (myattach): New function.
12784
12785 * gdbserver/server.c (attach_inferior): New function.
12786 (main): Handle "--attach".
12787
12788 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12789
12790 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12791 maintainer.
12792
12793 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12794
12795 * c-typeprint.c (is_type_conversion_operator): Add additional
12796 check for non-conversion operators.
12797
12798 2002-01-15 Michael Snyder <msnyder@redhat.com>
12799
12800 * linux-proc.c: Add "info proc" command, a la procfs.c.
12801 (read_mapping): New function, abstract and re-use code.
12802 (linux_find_memory_regions): Use new func read_mapping.
12803 (linux_info_proc_cmd): New function, implement "info proc".
12804 (_initialize_linux_proc): Add new command "info proc".
12805
12806 2002-01-15 Michael Snyder <msnyder@redhat.com>
12807
12808 * symfile.c (generic_load): Use bfd_map_over_sections method
12809 instead of manipulating bfd structure members directly.
12810 (add_section_size_callback): New function, bfd sections callback
12811 used by generic_load.
12812 (load_sections_callback): New function, bfd sections callback
12813 used by generic_load.
12814
12815 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12816
12817 [Based on work by Jim Blandy]
12818 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12819 (builtin_type_vec128): Export.
12820 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12821 types.
12822 (builtin_type_vec128): New builtin type for 128 bit vector
12823 registers.
12824 (build_gdbtypes): Initialize builtin_type_v16qi and
12825 builtin_type_v8hi. Create the vec128 register builtin type
12826 structure.
12827 (build_builtin_type_vec128): New function.
12828 (_initialize_gdbtypes): Register builtin_type_v16qi and
12829 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12830 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12831 AltiVec register to new builtin type.
12832
12833 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12834
12835 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12836 to make_cv_type.
12837
12838 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12839
12840 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12841 CLEAN_UP_REGISTER_VALUE.
12842 * regcache.c (supply_register): Update only call.
12843
12844 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12845
12846 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12847 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12848 a29k-*-vxworks* targets as obsolete.
12849
12850 2002-01-14 Michael Snyder <msnyder@redhat.com>
12851
12852 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12853 until we can resolve portability issues.
12854 * gregset.h: Remove references to fpxregs.
12855 * gcore.c (gcore_command): Initialize note_sec to NULL.
12856
12857 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12858
12859 * signals.c (target_signal_to_name): Rewrite. Only use
12860 signals[].name when in bounds and non-NULL.
12861
12862 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12863
12864 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12865 * signals.c (target_signal_to_name): Verify that SIG is within the
12866 bounds of the signals array.
12867
12868 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12869
12870 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12871
12872 2002-01-13 Keith Seitz <keiths@redhat.com>
12873
12874 * stack.c (print_frame_info_base): Print the frame's pc
12875 only if when print_frame_info_listing_hook is not defined.
12876
12877 2002-01-13 Keith Seitz <keiths@redhat.com>
12878
12879 * varobj.c (varobj_set_value): Make sure that there were no
12880 errors evaluating the object before attempting to set its
12881 value.
12882 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12883 so this offset adjustment is no longer necessary.
12884 (create_child): Don't set the error flag if the child is
12885 a CPLUS_FAKE_CHILD.
12886 (value_of_child): If value_fetch_lazy fails, return NULL
12887 so that callers will be notified that an error occurred.
12888 (c_value_of_variable): Delay check of variable's validity
12889 until later. We actually want all structs and unions to have
12890 the value "{...}".
12891 Do not return "???" for variables which could not be evaluated.
12892 This error condition must be returned to the caller so that it
12893 can get the error condition from gdb.
12894 (cplus_name_of_child): Adjust index for vptr before figuring
12895 out the name of the child.
12896 (cplus_value_of_child): If a child's (real) parent is not valid,
12897 don't even bother trying to give a value for it. Just return
12898 an error. Change all instances in this function.
12899 (cplus_type_of_child): If our parent is one of the "fake"
12900 parents, we need to get at the type of the real parent, and
12901 derive the child's true type using this information.
12902
12903 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12904
12905 From 2002-01-09 John Marshall <johnm@falch.net>:
12906 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12907 sources.redhat.com, and tweak some related URLs which had
12908 suffered from linkrot.
12909
12910 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12911
12912 From Jeff law:
12913 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12914 structures passed in registers.
12915
12916 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12917
12918 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12919 white space which prevented compilation. Reported by DSK
12920 <dsk@student.unsw.edu.au>.
12921
12922 2002-01-11 Michael Snyder <msnyder@redhat.com>
12923
12924 * symfile.c (build_section_addr_info_from_section_tab):
12925 Use bfd access method instead of manipulating bfd directly.
12926 (syms_from_objfile): Ditto.
12927 (simple_overlay_update_1): Ditto.
12928 (simple_overlay_update): Ditto.
12929 (generic_load): Ditto.
12930 (overlay_unmapped_address): FIXME comment, bfd access methods.
12931 (sections_overlap): FIXME comment, bfd access methods.
12932 (pc_in_mapped_range): FIXME comment, bfd access methods.
12933 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12934 (section_is_mapped): FIXME comment, bfd access methods.
12935 (section_is_overlay): FIXME comment, bfd access methods.
12936
12937 * symfile.c (generic_load): Whitespace and long line cleanups.
12938 Remove duplicate variable, change several local variables to
12939 more appropriate data types.
12940 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12941
12942 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12943
12944 From Peter Schauer:
12945 * language.c (longest_local_hex_string_custom): Use phex_nz to
12946 convert NUM to a hex string.
12947
12948 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12949
12950 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12951 the function.
12952 Update Copyright year.
12953
12954 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12955
12956 * language.c (longest_raw_hex_string): Delete unused function.
12957
12958 2002-01-11 Petr Sorfa <petrs@caldera.com>
12959
12960 * MAINTAINERS (write-after-approval): Add myself.
12961 * dwarf2read.c (read_tag_string_type): Handling of
12962 DW_AT_byte_size.
12963 (read_tag_string_type): FORTRAN fix to prevent propagation of
12964 first string size.
12965 (set_cu_language): Handling of DW_LANG_Fortran95
12966
12967 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12968
12969 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12970 GETPID(inferior_ptid).
12971 (store_inferior_registers): Likewise.
12972
12973 2002-01-10 Jason Merrill <jason@redhat.com>
12974
12975 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12976 Fix DW_OP_minus.
12977
12978 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12979
12980 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12981 and bfd/elf32-sh-nbsd.c.
12982
12983 2002-01-10 Michael Snyder <msnyder@redhat.com>
12984
12985 * NEWS: Mention --pid and corefile/proc-id behavior change.
12986
12987 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12988 * gcore.c: Include cli/cli-decode.h instead of command.h.
12989
12990 * main.c (captured_main): Add new command line option "--pid".
12991 If the second command line argument (following the symbol-file)
12992 begins with a digit, try to attach to it before trying to open
12993 it as a corefile.
12994 (print_gdb_help): Document the "--pid" argument.
12995
12996 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12997
12998 * completer.c (command_completer): New function.
12999
13000 * completer.h <command_completer>: Add prototype.
13001
13002 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13003 completer for the "help" command.
13004
13005 2002-01-09 Jason Merrill <jason@redhat.com>
13006
13007 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13008
13009 2002-01-09 Michael Snyder <msnyder@redhat.com>
13010
13011 * i386-linux-nat.c (fill_fpxregset): Make global.
13012 (store_fpxregset): Ditto.
13013
13014 * gregset.h (gdb_fpxregset_t): Define.
13015 (supply_fpxregset): Prototype.
13016 (fill_fpxregset): Prototype.
13017
13018 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13019
13020 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13021
13022 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13023 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13024 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13025
13026 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13027
13028 * MAINTAINERS: Update target maintainer rules so that any
13029 Maintainer can approve a tested patch for a maintenance-only
13030 target.
13031
13032 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13033
13034 * MAINTAINERS (write-after-approval): Add myself.
13035
13036 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13037 IN_SIGTRAMP.
13038
13039 2002-01-08 Michael Snyder <msnyder@redhat.com>
13040
13041 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13042 real name of the executable, rather than the /proc name.
13043
13044 2002-01-03 Michael Snyder <msnyder@redhat.com>
13045
13046 Implement a "generate-core-file" command in gdb, save target state.
13047 * gcore.c: New file. Implement new command 'generate-core-file'.
13048 Save a corefile image of the current state of the inferior.
13049 * linux-proc.c: Add linux-specific code for saving corefiles.
13050 * target.h (struct target_ops): Add new target vectors for saving
13051 corefiles; to_find_memory_regions and to_make_corefile_notes.
13052 (target_find_memory_regions): New macro.
13053 (target_make_corefile_notes): New macro.
13054 * target.c (update_current_target): Inherit new target methods.
13055 (dummy_find_memory_regions): New place-holder method.
13056 (dummy_make_corefile_notes): New place-holder method.
13057 (init_dummy_target): Initialize new dummy target vectors.
13058 * exec.c (exec_set_find_memory_regions): New function.
13059 Allow the exec_ops vector for memory regions to be taken over.
13060 (exec_make_note_section): New function, target vector method.
13061 * defs.h (exec_set_find_memory_regions): Export prototype.
13062 * procfs.c (proc_find_memory_regions): New function, corefile method.
13063 (procfs_make_note_section): New function, corefile method.
13064 (init_procfs_ops): Set new target vector pointers.
13065 (find_memory_regions_callback): New function.
13066 (procfs_do_thread_registers): New function.
13067 (procfs_corefile_thread_callback): New function.
13068 * sol-thread.c (sol_find_memory_regions): New function.
13069 (sol_make_note_section): New function.
13070 (init_sol_thread_ops): Initialize new target vectors.
13071 * inftarg.c (inftarg_set_find_memory_regions): New function.
13072 Allow to_find_memory_regions vector to be taken over.
13073 (inftarg_set_make_corefile_notes): New function.
13074 Allow to_make_corefile_notes vector to be taken over.
13075 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13076 interface layer if not target_has_execution (may be a corefile).
13077 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13078 * config/sparc/sun4sol2.mh: Ditto.
13079 * config/alpha/alpha-linux.mh: Ditto.
13080 * config/arm/linux.mh: Ditto.
13081 * config/i386/x86-64linux.mh: Ditto.
13082 * config/ia64/linux.mh: Ditto.
13083 * config/m68k/linux.mh: Ditto.
13084 * config/mips/linux.mh: Ditto.
13085 * config/powerpc/linux.mh: Ditto.
13086 * config/sparc/linux.mh: Ditto.
13087
13088 2002-01-07 Michael Snyder <msnyder@redhat.com>
13089
13090 * arm-linux-nat.c: Remove references to regcache.c internal data
13091 (registers[] and register_valid[]).
13092
13093 2002-01-07 Michael Snyder <msnyder@redhat.com>
13094
13095 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13096 so that attaching to a pid will automatically read the process's
13097 symbol file and shlibs.
13098 * Makefile.in: Add rule for linux-proc.o.
13099 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13100 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13101 * config/arm/linux.mh: Ditto.
13102 * config/i386/linux.mh: Ditto.
13103 * config/i386/x86-64linux.mh: Ditto.
13104 * config/ia64/linux.mh: Ditto.
13105 * config/m68k/linux.mh: Ditto.
13106 * config/mips/linux.mh: Ditto.
13107 * config/powerpc/linux.mh: Ditto.
13108 * config/sparc/linux.mh: Ditto.
13109
13110 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13111
13112 * win32-nat.c: Add i386-tdep.h dependency.
13113
13114 2002-01-07 Michael Snyder <msnyder@redhat.com>
13115
13116 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13117 instead of bfd_get_arch_size. Don't bail out just because
13118 there's no exec_bfd.
13119
13120 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13121 * p-valprint.c (pascal_object_print_value): Ditto.
13122 * somread.c (som_symtab_read): Ditto.
13123 * symfile.c (simple_free_overlay_region_table): Ditto.
13124 * valops.c (value_assign): Ditto.
13125
13126 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13127 use tilde_expand and strerror for opening save-tracepoints file.
13128
13129 * thread-db.c (thread_db_new_objfile): Indendation fix.
13130
13131 * infptrace.c (GDB_MAX_ALLOCA): New define.
13132 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13133 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13134 can be overridden with whatever value is appropriate to the host).
13135 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13136 alloca to allocate potentially large buffer.
13137 * rs6000-nat.c (child_xfer_memory): Ditto.
13138 * symm-nat.c (child_xfer_memory): Ditto.
13139 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13140
13141 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13142
13143 From Nick Clifton <nickc@redhat.com>
13144 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13145
13146 2002-01-07 Michael Snyder <msnyder@redhat.com>
13147
13148 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13149 Don't use exec_bfd if it's NULL.
13150
13151 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13152
13153 * valops.c (value_arg_coerce): Fix formatting.
13154
13155 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13156
13157 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13158 * gnu-nat.c: Ditto.
13159
13160 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13161
13162 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13163 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13164 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13165 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13166 z8k-coff have not been multi-arched. Update z8k-coff build
13167 status.
13168
13169 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13170
13171 * MAINTAINERS: Mark a29k target as obsolete.
13172 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13173 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13174 comments.
13175 * NEWS: Note that a29k targets are obsolete.
13176 * a29k-tdep.c: Mark as obsolete.
13177 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13178 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13179 a29k-*-vxworks* targets as obsolete.
13180 * remote-adapt.c: Obsolete.
13181 * remote-eb.c: Obsolete.
13182 * remote-mm.c: Obsolete.
13183 * remote-udi.c: Obsolete.
13184 * config/a29k/a29k-udi.mt: Obsolete.
13185 * config/a29k/a29k.mt: Obsolete.
13186 * config/a29k/tm-a29k.h: Obsolete.
13187 * config/a29k/tm-vx29k.h: Obsolete.
13188 * config/a29k/vx29k.mt: Obsolete.
13189
13190 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13191
13192 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13193 with BFD_ENDIAN_BIG.
13194
13195 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13196
13197 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13198 * configure, config.in: Re-generate.
13199 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13200 * defs.h: Do not include <endian.h>.
13201
13202 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13203
13204 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13205 * config.in: Regenerate.
13206 * configure.in: Update copyright years.
13207 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13208 * configure: Regenerate.
13209 * i386bsd-nat.c: Update copyright years.
13210 (fill_gregset): Use regcache_collect.
13211 (fetch_inferior_registers): Only fetch integer registers
13212 if requested to do so. Add support for XMM registers
13213 using PT_GETXMMREGS.
13214 (store_inferior_registers): Only store integer registers
13215 if requested to do so. Add support for XMM registers
13216 using PT_SETXMMREGS.
13217 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13218 (store_inferior_registers): Remove.
13219 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13220 (fetch_elfcore_registers): New function.
13221 (i386nbsd_elfcore_fns): New.
13222 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13223 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13224 i386bsd-nat.o.
13225 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13226 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13227 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13228 * config/i386/tm-nbsd.h: Update copyright years.
13229 (HAVE_SSE_REGS): Define.
13230 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13231 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13232 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13233 (SIGCONTEXT_PC_OFFSET): Remove.
13234 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13235
13236 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13237
13238 * configure.tgt: Remove powerpc-*-macos* target.
13239 * config/m68k/xm-mpw.h: Delete file.
13240 * config/xm-mpw.h: Delete file.
13241 * ser-mac.c: Delete file.
13242 * mpw-make.sed: Delete file.
13243 * mpw-config.in: Delete file.
13244 * mac-xdep.c: Delete file.
13245 * mac-gdb.r: Delete file.
13246 * mac-defs.h: Delete file.
13247 * mac-nat.c: Delete file.
13248 * config/powerpc/macos.mh: Delete file.
13249 * config/powerpc/macos.mt: Delete file.
13250 * config/powerpc/nm-macos.h: Delete file.
13251 * config/powerpc/tm-macos.h: Delete file.
13252 * source.c (openp, open_source_file): Remove obsolete code.
13253 * top.c (gdb_readline): Ditto.
13254 * utils.c (query): Ditto.
13255 * event-top.c (display_gdb_prompt): Ditto.
13256 * Makefile.in (ser-mac.o): Delete obsolete target.
13257 * NEWS: Update.
13258
13259 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13260
13261 * defs.h (BIG_ENDIAN): Delete macro definition.
13262 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13263 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13264 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13265 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13266 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13267 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13268 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13269 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13270 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13271 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13272 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13273 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13274 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13275 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13276 * gdbarch.c: Re-generate.
13277
13278 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13279
13280 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13281 for core files.
13282
13283 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13284
13285 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13286
13287 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13288
13289 * value.h (value_ptr): Delete typedef.
13290
13291 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13292
13293 * i386nbsd-nat.c: Update copyright years.
13294 Include i386-tdep.h.
13295
13296 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13297
13298 * stabsread.c: Update copyright years.
13299
13300 From Debashis Mahata <debashis.mahata@wipro.com>:
13301 (read_struct_fields): Deal with Sun C compiler erroneous stab
13302 output for structs and unions.
13303 Fix PR gdb/269.
13304
13305 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13306
13307 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13308 prototype.
13309
13310 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13311
13312 * cp-abi.c: Fix whitespace.
13313 (baseclass_offset): New wrapper function.
13314 * cp-abi.h (baseclass_offset): Add prototype.
13315 (struct cp_abi_ops): Add baseclass_offset pointer.
13316
13317 * valops.c (vb_match): Move to...
13318 * gnu-v2-abi.c (vb_match): here.
13319 * valops.c (baseclass_offset): Move to...
13320 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13321
13322 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13323
13324 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13325 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13326 * hpacc-abi.c (init_hpacc_ops): Likewise.
13327
13328 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13329
13330 * valops.c (find_overload_match): Accept obj as a
13331 reference parameter. Update it before returning.
13332 * value.h (find_overload_match): Update prototype.
13333 * eval.c (evaluate_subexp_standard): Pass object to
13334 find_overload_match by reference.
13335
13336 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13337
13338 * valarith.c: Replace value_ptr with struct value pointer. Remove
13339 register attribute from value declarations.
13340 * valops.c: Ditto.
13341 * value.h: Ditto.
13342 * scm-lang.c (scm_lookup_name): Ditto.
13343
13344 2002-01-03 Michael Snyder <msnyder@redhat.com>
13345
13346 Abstract the functionality of iterating over mapped memory
13347 regions into a general purpose iterator function.
13348 * procfs.c (iterate_over_mappings): New function, general purpose
13349 iterator for memory sections.
13350 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13351 (solib_mappings_callback): New function, callback for above.
13352 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13353 (info_mappings_callback): New function, callback for above.
13354
13355 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13356
13357 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13358
13359 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13360 * i386-tdep.c: Include "elf-bfd.h".
13361 (process_note_abi_tag_sections): New function.
13362 (i386_gdbarch_init): Add code to recognize various OS/ABI
13363 combinations.
13364
13365 * maint.c (_initialize_maint_cmds): Add missing \ in
13366 string-literal.
13367
13368 For older changes see ChangeLog-2001
13369 \f
13370 Local Variables:
13371 mode: change-log
13372 left-margin: 8
13373 fill-column: 74
13374 version-control: never
13375 End:
This page took 0.323375 seconds and 4 git commands to generate.