2002-11-24 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2
3 * dummy-frame.c (pc_in_dummy_frame): New function.
4 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
5 (find_dummy_frame): Update comment.
6 (generic_pop_current_frame): Use get_frame_type.
7 * dummy-frame.h (pc_in_dummy_frame): Declare.
8 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
9 (create_new_frame): Use pc_in_dummy_frame.
10 (get_prev_frame): Use pc_in_dummy_frame.
11 (frame_saved_regs_register_unwind): Use get_prev_frame.
12 (deprecated_generic_get_saved_register): Use get_prev_frame.
13
14 2002-11-23 Andrew Cagney <ac131313@redhat.com>
15
16 * blockframe.c (find_frame_addr_in_frame_chain): Move function
17 from here ...
18 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
19 (varobj_create): Note that frame ID should be used.
20 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
21
22 2002-11-23 Andrew Cagney <ac131313@redhat.com>
23
24 * breakpoint.c: Include "gdb_assert.h".
25 (deprecated_frame_in_dummy): Assert that generic dummy frames are
26 not being used.
27 * Makefile.in (breakpoint.o): Update dependencies.
28 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
29 deprecated_frame_in_dummy.
30 * stack.c (print_frame_info_base): Ditto.
31 (frame_info): Ditto.
32 (print_frame_info_base): Ditto. Delete dead code.
33
34 2002-11-23 Andreas Schwab <schwab@suse.de>
35
36 * Makefile.in (m68k_tdep_h): Define.
37 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
38 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
39 * m68k-tdep.c: Move register number enum ...
40 * m68k-tdep.h: ... to this new file and rename the constants from
41 E_* to M68K_*. All uses changed.
42 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
43 * abug-rom.c: Include "m68k-tdep.h". Use
44 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
45 * cpu32bug-rom.c: Likewise.
46 * dbug-rom.c: Likewise.
47 * m68k-tdep.c: Likewise.
48 * m68klinux-nat.c: Likewise.
49 * remote-est.c: Likewise.
50 * rom68k-rom.c: Likewise.
51 * config/m68k/tm-linux.h: Likewise.
52
53 2002-11-23 Andrew Cagney <ac131313@redhat.com>
54
55 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
56 dummy frame initialization code.
57 * mips-tdep.c (mips_gdbarch_init): Ditto.
58
59 2002-11-22 Christopher Faylor <cgf@redhat.com>
60
61 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
62 attach will hang.
63
64 2002-11-22 Andrew Cagney <ac131313@redhat.com>
65
66 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
67 to default_frame_address.
68 * gdbarch.h, gdbarch.c: Re-generate.
69
70 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
71 or frame_locals_address to default_frame_address.
72 * m68k-tdep.c (m68k_gdbarch_init): Update.
73 * i386-tdep.c (i386_gdbarch_init): Update.
74 * frv-tdep.c (frv_gdbarch_init): Update.
75 * sh-tdep.c (sh_gdbarch_init): Update.
76 * v850-tdep.c (v850_gdbarch_init): Update.
77 * sparc-tdep.c (sparc_gdbarch_init): Update.
78 * mips-tdep.c (mips_gdbarch_init): Update.
79 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
80 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
81 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
82
83 * cris-tdep.c (cris_frame_args_address): Delete function.
84 (cris_frame_locals_address): Delete function.
85 (cris_gdbarch_init): Do not set frame_args_address or
86 frame_locals_address.
87
88 2002-11-22 Michael Snyder <msnyder@redhat.com>
89
90 * thread-db.c (thread_db_load): Tell the user what's going on
91 if dlopen fails on libthread_db.
92
93 2002-11-23 Andreas Schwab <schwab@suse.de>
94
95 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
96 invariant return values.
97
98 2002-11-22 Andreas Schwab <schwab@suse.de>
99
100 * valops.c (value_slice): Move declaration of `offset' to avoid
101 warning.
102
103 2002-11-22 Christopher Faylor <cgf@redhat.com>
104
105 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
106 (struct so_stuff): Add end_addr field.
107 (register_loaded_dll): Calculate and store end address of loaded dll.
108 (solib_address): New function.
109 (child_solib_loaded_library_pathname): Pass carefully constructed
110 section info to safe_symbol_file_add rather than ignoring it.
111 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
112 DLL is loaded.
113 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
114 (child_create_inferior): Fix a compiler warning.
115 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
116 (solib_address): Declare new function.
117
118 2002-11-22 Andreas Schwab <schwab@suse.de>
119
120 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
121 and FPS registers.
122
123 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
124
125 * maint.c (_initialize_maint_cmds): Fix typo. From
126 Francesco Potorti` <pot@gnu.org>.
127
128 2002-11-21 Andrew Cagney <cagney@redhat.com>
129
130 * mips-tdep.c (mips_dump_tdep): Delete references to
131 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
132 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
133 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
134 * printcmd.c (build_address_symbolic): Delete calls to
135 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
136 (address_info): Ditto.
137 Fix PR gdb/773.
138
139 2002-11-19 Klee Dienes <kdienes@apple.com>
140 Adam Fedor <fedor@gnu.org>
141
142 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
143 the ability to explicitly specify the quote characters and word
144 break characters; if NULL is specified for either, use the old
145 behavior of using the characters used by the completer.
146 (skip_chars): New function. Convenience wrapper around
147 skip_quoted_chars to provide the original skip_chars behavior.
148 * completer.h (skip_quoted_chars): Add prototype.
149
150 2002-11-19 Andrew Cagney <ac131313@redhat.com>
151
152 Problems reported by Paul Eggert.
153 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
154
155 2002-11-19 Andreas Schwab <schwab@suse.de>
156
157 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
158 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
159 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
160 (m68k_linux_frame_saved_pc): Move to ...
161 * m68klinux-tdep.c: ... here. New file.
162 * Makefile.in (m68klinux-tdep.o): Add dependencies.
163 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
164
165 2002-11-19 Adam Fedor <fedor@gnu.org>
166
167 * objc-exp.y: Revert to old skip_quoted usage.
168
169 2002-11-19 Adam Fedor <fedor@gnu.org>
170
171 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
172 (objc_lang_h): Define.
173 (YYFILES): Add objc-exp.tab.c.
174 (local-maintainer-clean): Remove objc-exp.tab.c.
175 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
176
177 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
178
179 * p-exp.y (typecast rule): Add automatic dereference of
180 pascal classes if needed.
181 (THIS): Set current_type.
182 Automatically dereference pascal classes.
183 (typebase rule): Add ^typebase recognition.
184
185 2002-11-18 Adam Fedor <fedor@gnu.org>
186
187 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
188 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
189 (op_name): Handle OP_OBJC_SELF.
190 * Makefile.in (expprint.o): Add additional depends.
191
192 2002-11-18 Adam Fedor <fedor@gnu.org>
193
194 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
195 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
196 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
197 * objc-exp.y: Likewise.
198
199 2002-11-18 Adam Fedor <fedor@gnu.org>
200
201 * gdb/parser-defs.h: (struct objc_class_str): New structure
202 for parsing ObjC classes.
203
204 2002-11-18 Andrew Cagney <ac131313@redhat.com>
205
206 * stack.c (frame_relative_level): Copy function from here ...
207 * frame.c (frame_relative_level): ...to here.
208
209 2002-11-18 Andrew Cagney <ac131313@redhat.com>
210
211 * frame.h (enum frame_type): Define.
212 (get_frame_type): Declare.
213 (struct frame_info): Add field `type'. Delete field
214 signal_handler_caller.
215 (deprecated_set_frame_signal_handler_caller): Declare.
216 * frame.c (get_frame_type): New function.
217 (deprecated_set_frame_type): New function.
218 (create_new_frame): Set the frame's type.
219 (get_prev_frame): Similar.
220 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
221 * s390-tdep.c: Ditto.
222 * m68klinux-nat.c: Ditto.
223 * ns32k-tdep.c: Ditto.
224 * x86-64-linux-tdep.c: Ditto.
225 * vax-tdep.c: Ditto.
226 * rs6000-tdep.c: Ditto.
227 * ppc-linux-tdep.c: Ditto.
228 * i386-interix-tdep.c: Ditto.
229 * mips-tdep.c: Ditto.
230 * m68k-tdep.c: Ditto.
231 * hppa-tdep.c: Ditto.
232 * ia64-tdep.c: Ditto.
233 * cris-tdep.c: Ditto.
234 * arm-tdep.c: Ditto.
235 * alpha-tdep.c: Ditto.
236 * i386-tdep.c: Ditto.
237 * stack.c: Ditto.
238 * ada-lang.c: Ditto.
239 * blockframe.c: Update.
240 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
241 deprecated_set_frame_type instead of signal_handler_caller.
242 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
243 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
244 * breakpoint.h: Delete FIXME suggesting get_frame_type.
245
246 2002-11-18 Klee Dienes <kdienes@apple.com>
247
248 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
249
250 2002-11-18 Klee Dienes <kdienes@apple.com>
251
252 * buildsym.c (pop_context): Add comment.
253
254 2002-11-18 Klee Dienes <kdienes@apple.com>
255
256 * buildsym.h (pop_context): Convert to function, defined in
257 buildsym.c.
258 * buildsym.c: Include gdb_assert.h.
259 (pop_context): Implement as C function. Add check for stack
260 underflow.
261 * dbxread.c (process_one_symbol): Complain and stop processing
262 that symbol if we are already at the top of the context stack for
263 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
264 when processing N_RBRAC.
265
266 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
267
268 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
269 define.
270 (struct target_waitstatus): Add opaque definition.
271 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
272 * exec.c (init_exec_ops): Likewise.
273 * fork-child.c (clone_and_follow_inferior): Remove.
274 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
275 * inferior.h (clone_and_follow_inferior): Remove prototype.
276 * infrun.c (follow_fork_mode_both): Remove.
277 (follow_fork_mode_kind_names): Remove commented out "both".
278 (follow_inferior_fork): Remove follow_fork_mode_both support.
279 * inftarg.c (child_clone_and_follow_inferior): Remove.
280 (child_post_follow_inferior_by_clone): Remove.
281 (init_child_ops): Don't set to_clone_and_follow_inferior
282 or to_post_follow_inferior_by_clone.
283 * target.c (default_clone_and_follow_inferior): Remove.
284 (cleanup_target): Don't set to_clone_and_follow_inferior
285 or to_post_follow_inferior_by_clone.
286 (find_default_clone_and_follow_inferior): Remove.
287 (init_dummy_target): Don't set to_clone_and_follow_inferior.
288 (debug_to_clone_and_follow_inferior): Remove.
289 (debug_to_post_follow_inferior_by_clone): Remove.
290 (setup_target_debug): Don't set to_clone_and_follow_inferior
291 or to_post_follow_inferior_by_clone.
292 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
293 and to_post_follow_inferior_by_clone.
294 (child_clone_and_follow_inferior): Remove prototype.
295 (child_post_follow_inferior_by_clone): Remove prototype.
296 (target_clone_and_follow_inferior): Remove macro.
297 (target_post_follow_inferior_by_clone): Remove macro.
298 (find_default_clone_and_follow_inferior): Remove prototype.
299
300 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
301
302 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
303 inferior_has_vforked, and inferior_has_execd instead of
304 target_has_forked, target_has_vforked, and target_has_execd.
305 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
306 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
307 (CHILD_WAIT): Define.
308 (child_wait): Add prototype.
309 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
310 Add prototype.
311 (hpux_has_vforked): Likewise, from child_has_vforked.
312 (hpux_has_execd): Likewise, from child_has_execd.
313 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
314 (not_same_real_pid, child_wait): New, copied from inftarg.c.
315 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
316 and hpux_has_syscall_event instead of the target hooks.
317 * infrun.c (inferior_has_forked, inferior_has_vforked)
318 (inferior_has_execd): New functions.
319 * inftarg.c (not_same_real_pid): Remove.
320 (child_wait): Remove references to not_same_real_pid,
321 target_has_forked, target_has_vforked, target_has_execd,
322 and target_has_syscall_event.
323 (child_has_forked, child_has_vforked, child_has_execd)
324 (child_has_syscall_event): Remove.
325 (init_child_ops): Remove references to child_has_forked,
326 child_has_vforked, child_has_execd, and child_has_syscall_event.
327 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
328 (hpux_has_vforked): Likewise, from child_has_vforked.
329 (hpux_has_execd): Likewise, from child_has_execd.
330 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
331 * target.c (cleanup_target): Remove references to
332 to_has_forked, to_has_vforked, to_has_execd, and
333 to_has_syscall_event.
334 (update_current_target): Likewise.
335 (setup_target_debug): Likewise.
336 (debug_to_has_forked): Remove.
337 (debug_to_has_vforked): Remove.
338 (debug_to_has_execd): Remove.
339 (debug_to_has_syscall_event): Remove.
340 * target.h (struct target_ops): Remove to_has_forked.
341 to_has_vforked, to_has_execd, and to_has_syscall_event.
342 (child_has_forked, child_has_vforked, child_has_execd)
343 (child_has_syscall_event): Remove prototypes.
344 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
345 prototypes.
346 (target_has_forked, target_has_vforked, target_has_execd)
347 (target_has_syscall_event): Remove macros.
348
349 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
350
351 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
352 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
353 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
354 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
355 * target.c (cleanup_target): Remove reference to
356 to_can_follow_vfork_prior_to_exec.
357 (update_current_target): Likewise.
358 (debug_to_can_follow_vfork_prior_to_exec): Remove.
359 (setup_target_debug): Remove reference to
360 to_can_follow_vfork_prior_to_exec.
361 * target.h (struct target_ops): Remove
362 to_can_follow_vfork_prior_to_exec.
363 (child_can_follow_vfork_prior_to_exec): Remove prototype.
364 (target_can_follow_vfork_prior_to_exec): Remove definition.
365 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
366 define.
367 * infrun.c (follow_vfork_when_exec): Remove.
368 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
369 (follow_exec): Likewise.
370 (handle_inferior_event): Likewise.
371 (keep_going): Likewise.
372
373 2002-11-15 Andrew Cagney <cagney@redhat.com>
374
375 * frame.c (generic_unwind_get_saved_register): Make static.
376 * frame.h (generic_unwind_get_saved_register): Delete declaration.
377 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
378 defaults to generic_unwind_get_saved_register.
379 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
380 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
381 * frv-tdep.c (frv_gdbarch_init): Ditto.
382 * i386-tdep.c (i386_gdbarch_init): Ditto.
383 * s390-tdep.c (s390_gdbarch_init): Ditto.
384 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
385 * v850-tdep.c (v850_gdbarch_init): Ditto.
386 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
387 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
388 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
389
390 2002-11-15 Andrew Cagney <cagney@redhat.com>
391
392 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
393 i386-tdep.c.
394
395 2002-11-15 Andrew Cagney <cagney@redhat.com>
396
397 * frame.h (sigtramp_saved_pc): Delete declaration.
398 * blockframe.c (sigtramp_saved_pc): Delete function.
399 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
400 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
401 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
402 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
403
404 2002-11-15 Andrew Cagney <ac131313@redhat.com>
405
406 * frame.c (frame_pc_unwind): New function.
407 (frame_saved_regs_pc_unwind): New function.
408 (frame_register_unwind): Pass unwind_cache instead of
409 register_unwind_cache.
410 (set_unwind_by_pc): Add unwind_pc parameter, set.
411 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
412 (get_prev_frame): Ditto.
413 * frame.h (frame_pc_unwind_ftype): Declare.
414 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
415 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
416 (frame_pc_unwind): Declare.
417 * dummy-frame.c (dummy_frame_pc_unwind): New function.
418 (struct dummy_frame): Add comment mentioning that values are for
419 previous frame.
420 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
421 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
422 (generic_file_frame_chain_valid): Ditto.
423 * stack.c (frame_info): Ditto.
424
425 2002-11-15 David Carlton <carlton@math.stanford.edu>
426
427 * linespec.c (locate_first_half): New function.
428 (decode_line_1): Move code into locate_first_half.
429
430 2002-11-15 Andrew Cagney <ac131313@redhat.com>
431
432 * complaints.h: Add comment explaining how to eliminate a
433 deprecated_complain call.
434 * complaints.h: Fix spelling errors.
435
436 2002-11-15 David Carlton <carlton@math.stanford.edu>
437
438 * printcmd.c: Remove #include "disasm.h".
439
440 2002-11-14 Andrew Cagney <ac131313@redhat.com>
441
442 * frame.h: Move the most relevant interface functions to the start
443 of the file.
444
445 2002-11-14 Andrew Cagney <ac131313@redhat.com>
446
447 * regcache.h (deprecated_registers): Rename registers.
448 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
449 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
450 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
451 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
452 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
453 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
454 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
455 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
456 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
457 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
458 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
459 * v850ice.c: Update.
460
461 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
462
463 * utils.c (gdb_realpath): Add comment mentioning realpath with a
464 NULL buffer.
465
466 2002-11-13 Andrew Cagney <cagney@redhat.com>
467
468 * regcache.h (deprecated_read_register_bytes): Rename
469 read_register_bytes.
470 (deprecated_write_register_bytes): Rename write_register_bytes.
471 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
472 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
473 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
474 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
475 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
476 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
477 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
478 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
479 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
480 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
481 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
482 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
483 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
484 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
485
486 2002-11-13 Jim Blandy <jimb@redhat.com>
487
488 * findvar.c (read_var_value): Doc fix.
489
490 2002-11-13 Andrew Cagney <cagney@redhat.com>
491
492 * regcache.c (struct regcache): Replace passthough_p with
493 readonly_p.
494 (regcache_xmalloc): Initialize readonly_p.
495 (build_regcache): Initialize readonly_p.
496 (regcache_save): New function.
497 (regcache_restore): New function.
498 (regcache_cpy): Re-implement using regcache_save and
499 regcache_restore.
500 (regcache_raw_read): Update.
501 (regcache_cooked_read): When a read-only cache, checked for cached
502 pseudo register values.
503 (regcache_raw_write): Assert that the cache is not read-only.
504 Remove code handling a non-passthrough cache.
505 * regcache.h (regcache_save): Declare.
506 (regcache_restore): Declare.
507
508 2002-11-13 Andrew Cagney <cagney@redhat.com>
509
510 * regcache.c (struct regcache_descr): Add fields
511 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
512 (init_legacy_regcache_descr): Compute the size of a cooked
513 register cache and then assign that to sizeof_raw_registers. Set
514 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
515 (init_legacy_regcache_descr): Ditto.
516
517 2002-11-13 Andrew Cagney <cagney@redhat.com>
518
519 * regcache.c (register_buffer): Move to near start of file, update
520 description.
521 (regcache_raw_read): Use.
522 (regcache_raw_write): Use.
523 (struct regcache): Rename raw_registers to registers and
524 raw_register_valid_p to register_valid_p.
525 (regcache_xmalloc): Update.
526 (regcache_xfree): Update.
527 (register_buffer): Update.
528 (regcache_cpy): Update.
529 (regcache_cpy_no_passthrough): Update.
530 (regcache_valid_p): Update.
531 (deprecated_grub_regcache_for_registers): Update.
532 (deprecated_grub_regcache_for_register_valid): Update.
533 (set_register_cached): Update.
534 (regcache_raw_write): Update.
535
536 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
537
538 * p-exp.y (name_not_typename): Use copy_name to
539 set current_type variable for fields of THIS.
540
541 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
542
543 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
544 * monitor.c (init_base_monitor_ops): Likewise.
545 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
546 * remote-array.c (init_array_ops): Likewise.
547 * remote-e7000.c (init_e7000_ops): Likewise.
548 * remote-es.c (init_es1800_ops): Likewise.
549 (init_es1800_child_ops): Likewise.
550 * remote-rdp.c (init_remote_rdp_ops): Likewise.
551 * remote-sim.c (init_gdbsim_ops): Likewise.
552 * remote-st.c (init_st2000_ops): Likewise.
553 * sol-thread.c (init_sol_core_ops): Likewise.
554 (init_sol_thread_ops): Likewise.
555 * v850ice.c (init_850ice_ops): Likewise.
556 * win32-nat.c (init_child_ops): Likewise.
557 * wince.c (init_child_ops): Likewise.
558
559 2002-11-12 Andrew Cagney <ac131313@redhat.com>
560
561 * utils.c (gdb_realpath): Make rp a constant pointer.
562
563 2002-11-12 Andrew Cagney <ac131313@redhat.com>
564
565 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
566 a constant buffer; cannonicalize_file_name(); realpath() with a
567 pathconf() defined buffer, xstrdup().
568
569 2002-11-12 Andrew Cagney <ac131313@redhat.com>
570
571 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
572 to hang2.C; hang3.c to hang3.C.
573
574 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
575
576 * findvar.c (read_var_value): Reenable TLS code.
577
578 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
579 Jim Blandy <jimb@redhat.com>
580
581 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
582 * target.c (update_current_target): Add
583 to_get_thread_local_address.
584 * target.h (to_get_thread_local_address): Export.
585 (target_get_thread_local_address): Define.
586 (target_get_thread_local_address_p): Define.
587 * thread-db.c: Include solib-svr4.h.
588 (td_thr_tls_get_addr_p): Define.
589 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
590 (thread_db_get_thread_local_address): New function.
591 (init_thread_db_ops): Initialize to_get_thread_local_address.
592 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
593 * configure: Regenerate.
594 * config.in: Regenerate.
595
596 2002-11-11 David Carlton <carlton@math.stanford.edu>
597
598 * linespec.c (set_flags): New function.
599 (decode_line_1): Move code into set_flags.
600
601 2002-11-11 David Carlton <carlton@math.stanford.edu>
602
603 * linespec.c (decode_line_1): Move chunks of code to separate
604 functions.
605 (initialize_defaults): New function.
606 (decode_indirect): New function.
607
608 2002-11-11 Andrew Cagney <ac131313@redhat.com>
609
610 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
611 instead of void_code_ptr.
612 (sigtramp_saved_pc): Ditto.
613
614 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
615 i386_fp_regnum_p.
616
617 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
618
619 * gdbtypes.h (struct main_type): Move artificial flag out of
620 loc. New member of ``struct field'' named static_kind. Reduce
621 overloaded meaning of bitsize.
622 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
623 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
624 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
625
626 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
627 new fields.
628 (template_to_fixed_record_type, template_to_static_fixed_type)
629 (to_record_with_fixed_variant_part): Likewise.
630 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
631 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
632 * dwarfread.c (struct_type, enum_type): Likewise.
633 * hpread.c (hpread_read_enum_type)
634 (hpread_read_function_type, hpread_read_doc_function_type)
635 (hpread_read_struct_type): Likewise.
636 * mdebugread.c (parse_symbol): Likewise.
637
638 2002-11-10 Andrew Cagney <ac131313@redhat.com>
639
640 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
641 * stack.c (print_frame_info_base): Update.
642 (print_frame_info_base, frame_info): Update.
643 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
644 (sparc_frame_saved_pc): Update.
645 * ada-lang.c (find_printable_frame): Update.
646 * breakpoint.c (deprecated_frame_in_dummy): Update.
647
648 2002-11-09 Mark Kettenis <kettenis@gnu.org>
649
650 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
651 defined.
652 (regmap): Extend to cover all registers.
653 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
654 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
655 definitions.
656 (fetch_register, sore_register): Simplify.
657 (old_fetch_inferior_registers, old_store_inferior_registers):
658 Remove functions.
659 (cannot_fetch_register, cannot_store_register): Change
660 implementation to use regmap array to decide which registers
661 cannot be fetched/stored. This removes $orig_eax from the
662 registers that cannot be fetched/stored.
663 (fetch_inferior_registers): Call fetch_register directly instead
664 of calling old_fetch_inferior_registers.
665 (store_inferior_registers): Call store_register directly instead
666 of calling old_store_inferior_registers.
667 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
668 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
669 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
670
671 2002-11-09 Klee Dienes <kdienes@apple.com>
672
673 * i387-tdep.c (i387_supply_register): When called with NULL as a
674 buffer, mark the register as not provided (to mirror the behavior
675 of supply_register).
676 (i387_supply_fxsave): Ditto.
677 (i387_supply_fsave): Ditto (inherits the behavior from
678 i387_supply_register).
679
680 2002-11-09 Klee Dienes <kdienes@apple.com>
681
682 * blockframe.c (sigtramp_saved_pc): Use
683 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
684 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
685 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
686
687 2002-11-09 Andrew Cagney <ac131313@redhat.com>
688
689 * frame.c (get_prev_frame): Test prev_p to identify a previously
690 unwound frame. Initialize prev_p.
691 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
692 comment.
693
694 2002-11-09 Andrew Cagney <ac131313@redhat.com>
695
696 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
697 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
698 more comments. Zap dead code.
699
700 2002-11-09 Mark Kettenis <kettenis@gnu.org>
701
702 * infcmd.c (print_vector_info, print_float_info): Move code that
703 checks whether the target has any registers and whether there is a
704 selected frame up, such that it is also used if a target provides
705 multi-arch definitions of these functions.
706
707 2002-11-08 Andrew Cagney <ac131313@redhat.com>
708
709 * Makefile.in (DESTDIR): Define.
710 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
711 prefix.
712
713 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
714 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
715
716 2002-11-08 Andrew Cagney <ac131313@redhat.com>
717
718 * i386-linux-tdep.c: Include "reggroups.h".
719 (i386_linux_register_reggroup_p): New function.
720 (i386_linux_init_abi): Set register_reggroup_p to
721 i386_linux_register_reggroup_p.
722 * i386-tdep.h (i386_register_reggroup_p): Declare.
723 * i386-tdep.c: Include "reggroups.h".
724 (i386_init_reggroups): New function.
725 (i386_add_reggroups): New function.
726 (i386_register_reggroup_p): New function.
727 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
728 (_initialize_i386_tdep): Call i386_init_reggroups.
729 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
730 specific reggroups.
731
732 2002-11-09 Mark Kettenis <kettenis@gnu.org>
733
734 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
735 request that's available in *BSD.
736
737 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
738
739 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
740 FDOFF_REGNUM.
741
742 2002-11-08 Andrew Cagney <ac131313@redhat.com>
743
744 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
745 * dummy-frame.c (find_dummy_frame): Rename
746 generic_find_dummy_frame, make static. Return the dummy frame
747 instead of the regcache.
748 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
749 (cached_find_dummy_frame): New function. Use find_dummy_frame.
750 (dummy_frame_register_unwind): Rename
751 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
752 * dummy-frame.h (dummy_frame_register_unwind): Rename
753 generic_call_dummy_register_unwind.
754
755 2002-11-08 Mark Kettenis <kettenis@gnu.org>
756
757 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
758 except the inclusion of "i386/tm-i386.h", to...
759 * config/i386/nm-i386v42mp.h: ...here.
760 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
761
762 2002-11-08 Andrew Cagney <ac131313@redhat.com>
763
764 * Makefile.in (frame.o): Update dependencies.
765 * blockframe.c (current_frame, frame_obstack_alloc)
766 (frame_saved_regs_zalloc, get_current_frame)
767 (set_current_frame, create_new_frame)
768 (set_unwind_by_pc, get_next_frame)
769 (flush_cached_frames, reinit_frame_cache)
770 (frame_saved_regs_register_unwind)
771 (deprecated_generic_get_saved_register)
772 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
773 (_initialize_blockframe): Move frame code from here...
774 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
775 "annotate.h" and "dummy-frame.h".
776 (_initialize_frame): New function.
777
778 2002-11-08 Jim Blandy <jimb@redhat.com>
779
780 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
781 when we finish a function a context.
782 * buildsym.h (outermost_context_p): New macro.
783 (Bug analyzed by David Edelsohn.)
784
785 2002-11-08 Andrew Cagney <ac131313@redhat.com>
786
787 * blockframe.c: Include "dummy-frame.h".
788 (struct dummy_frame, dummy_frame_stack)
789 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
790 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
791 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
792 (generic_save_call_dummy_addr, generic_pop_current_frame)
793 (generic_pop_dummy_frame, generic_fix_call_dummy)
794 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
795 dummy frame code from here...
796 * dummy-frame.c: ...to here. New file.
797 * dummy-frame.h: New file.
798 (generic_call_dummy_register_unwind): Declare.
799 (generic_find_dummy_frame): Declare.
800 * Makefile.in (SFILES): Add dummy-frame.c.
801 (dummy-frame.o): Specify dependencies.
802 (dummy_frame_h): Define.
803 (COMMON_OBS): Add dummy-frame.o.
804 (blockframe.o): Update dependencies.
805
806 2002-11-08 Jim Blandy <jimb@redhat.com>
807
808 * dwarf2read.c (read_func_scope): Restore local_symbols and
809 param_symbols after we finish the function context. (Based on a
810 patch from David Edelsohn.)
811
812 2002-11-08 David Carlton <carlton@math.stanford.edu>
813
814 * linespec.c (symbol_found): New function.
815 (minsym_found): New function.
816 (decode_line_1): Separate out some code into separate functions.
817
818 2002-11-08 Joel Brobecker <brobecker@gnat.com>
819
820 * i386-tdep.c (i386_frameless_signal_p): Make non static for
821 the benefit of the interix target.
822 * i386-tdep.h (i386_frameless_signal_p): Declare.
823
824 2002-11-08 Andrew Cagney <ac131313@redhat.com>
825
826 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
827 declaration that snuck in from change below.
828
829 2002-11-06 Andrew Cagney <cagney@redhat.com>
830
831 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
832 all callers.
833 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
834 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
835 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
836 (i386_mxcsr_regnum_p): new function. Use instead of
837 MXCSR_REGNUM_P.
838 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
839 (i386_sse_regnum_p): Declare.
840 (i386_mxcsr_regnum_p): Declare.
841 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
842 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
843 (IS_FP_REGNUM): Update definition.
844 (IS_FPU_CTRL_REGNUM): Update definition..
845 (IS_SSE_REGNUM): Update definition..
846 * i386v-nat.c (register_u_addr): Update.
847 * go32-nat.c (fetch_register): Update.
848 (store_register): Update.
849
850 2002-11-07 Joel Brobecker <brobecker@gnat.com>
851
852 Preparation work to convert the hppa targets to multiarch partial.
853
854 * hppa-tdep.c: Add new functions replacing macro bodies from
855 config/pa/tm-hppa.h. These function will be used to initialize
856 the gdbarch structure. Import some comments from tm-hppa.h,
857 and place them where appropriate, to avoid loosing them when
858 we cleanup this file.
859 (hppa_reg_struct_has_addr): New function.
860 (hppa_inner_than): New function.
861 (hppa_stack_align): New function.
862 (hppa_pc_requires_run_before_use): New function.
863 (hppa_instruction_nullified): New function.
864 (hppa_register_byte): New function.
865 (hppa_register_virtual_type): New function.
866 (hppa_store_struct_return): New function.
867 (hppa_cannot_store_register): New function.
868 (hppa_frame_args_address): New function.
869 (hppa_frame_locals_address): New function.
870 (hppa_smash_text_address): New function.
871 (hppa_coerce_float_to_double): New function. Requires the inclusion
872 of "language.h".
873
874 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
875
876 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
877 gdbarch-eligible macro to a call to the new associated function
878 created in hppa-tdep.c.
879 (INNER_THAN): Likewise.
880 (STACK_ALIGN): Likewise.
881 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
882 (INSTRUCTION_NULLIFIED): Likewise.
883 (REGISTER_BYTE): Likewise.
884 (REGISTER_VIRTUAL_TYPE): Likewise.
885 (STORE_STRUCT_RETURN): Likewise.
886 (CANNOT_STORE_REGISTER): Likewise.
887 (FRAME_ARGS_ADDRESS): Likewise.
888 (FRAME_LOCALS_ADDRESS): Likewise.
889 (SMASH_TEXT_ADDRESS): Likewise.
890 (COERCE_FLOAT_TO_DOUBLE): Likewise.
891 (ABOUT_TO_RETURN): Delete, as no longer used.
892
893 2002-11-07 Fernando Nasser <fnasser@redhat.com>
894
895 * printcmd.c (disassemble_command): Remove obsolete function.
896 (_initialize_printcmd): Do not create disassemble command here.
897 * cli/cli-cmds.c (disassemble_command): New function. Implements
898 disassemble command.
899 (init_cli_cmds): Create disassemble command here instead.
900
901 2002-11-07 Andrew Cagney <ac131313@redhat.com>
902
903 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
904
905 2002-11-07 Andrew Cagney <ac131313@redhat.com>
906
907 * regcache.h (regcache_cooked_read_using_offset_hack)
908 (regcache_cooked_write_using_offset_hack): Delete declarations.
909 (register_changed): Delete declaration.
910 * regcache.c (regcache_cooked_read_using_offset_hack)
911 (regcache_cooked_write_using_offset_hack): Delete functions.
912 (cooked_xfer_using_offset_hack): Delete function.
913 (register_changed): Delete function.
914
915 2002-11-07 Jim Blandy <jimb@redhat.com>
916
917 * macroscope.c: #include "complaints.h".
918 (sal_macro_scope): Cope with filenames that appear in the symtabs,
919 but not in the macro table.
920 * Makefile.in (macroscope.o): Record dependency.
921
922 2002-11-07 Joel Brobecker <brobecker@gnat.com>
923
924 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
925
926 2002-11-07 Andrew Cagney <ac131313@redhat.com>
927
928 * regcache.c (deprecated_registers_fetched): Update.
929 * regcache.h (deprecated_registers_fetched): Rename
930 registers_fetched.
931 * remote-vxsparc.c (vx_read_register): Update.
932 * remote-vxmips.c (vx_read_register): Update.
933 * remote-vx68.c (vx_read_register): Update.
934 * irix5-nat.c (fetch_core_registers): Update.
935 * mipsm3-nat.c (fetch_inferior_registers): Update.
936 * sun3-nat.c (fetch_inferior_registers): Update.
937 * symm-nat.c (fetch_inferior_registers): Update.
938 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
939 (fetch_core_registers): Update.
940 (fetch_kcore_registers): Update.
941 * mips-nat.c (fetch_inferior_registers): Update.
942 * corelow.c (get_core_registers): Update.
943 * a68v-nat.c (fetch_inferior_registers): Update.
944
945 2002-11-06 Joel Brobecker <brobecker@gnat.com>
946
947 Put in place the framework necessary for multiarching the hppa targets.
948 * hppa-tdep.c (hppa_gdbarch_init): New function.
949 (hppa_dump_tdep): New function.
950 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
951 tdep structure dumper.
952 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
953 until the multi-arching conversion has partially been completed.
954
955 2002-11-06 Andrew Cagney <ac131313@redhat.com>
956
957 * valops.c (value_assign): Merge lval_register case into
958 lval_reg_frame_relative. Use frame_register and
959 regcache_cooked_write instead of get_saved_register and
960 write_register_bytes. After flushing the register cache, try to
961 re-select the selected frame.
962
963 2002-11-06 Andrew Cagney <ac131313@redhat.com>
964
965 * regcache.h (deprecated_register_valid): Rename register_valid.
966 * regcache.c: Update.
967 * ia64-aix-nat.c: Update.
968 * i386gnu-nat.c: Update.
969 * alpha-nat.c: Update.
970 * sparc-nat.c: Update.
971 * lynx-nat.c: Update.
972 * remote-mips.c: Update.
973
974 2002-11-06 Joel Brobecker <brobecker@gnat.com>
975
976 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
977 to end of file, to be more consistent with the pratice followed
978 by other targets.
979
980 2002-11-06 Andrew Cagney <ac131313@redhat.com>
981
982 * infcmd.c: Include "reggroups.h" and <ctype.h>.
983 (print_float_info): Print registers in float_reggroup.
984 (print_vector_info): Print registers in vector_reggroup.
985 (default_print_registers_info): When all, print registers in
986 all_reggroup. Otherwize, print registers in general_reggroup.
987 (registers_info): Rewrite. Add support for register groups.
988 Eliminate a goto.
989
990 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
991
992 * symtab.c (methods_info): Delete. It has been ifdeffed out for
993 ages.
994 (symtab_symbol_info): Remove eons old ifdeffed out code.
995 (_initialize_symtab): Remove prehistoric disabled 'info methods'
996 command.
997
998 2002-11-06 Theodore A. Roth <troth@openavr.org>
999
1000 * c-exp.y: Add missing semi-colons.
1001 * f-exp.y: Add missing semi-colons.
1002 * m2-exp.y: Add missing semi-colons.
1003 * p-exp.y: Add missing semi-colons.
1004 Add empty action to start rule to avoid a type clash error when
1005 building with bison >= 1.50.
1006
1007 2002-11-06 Jim Blandy <jimb@redhat.com>
1008
1009 * macrotab.h (struct macro_source_file): Doc fix.
1010
1011 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1012
1013 * varobj.c (child_exists, cplus_number_of_children): Change
1014 STREQ macro references to strcmp.
1015 (cplus_name_of_child): Change code to handle the fact that
1016 fields are not necessarily contiguous with regards to their
1017 access control. This is a fix for PR gdb/792.
1018
1019 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1020
1021 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1022 * gdbarch.h, gdbarch.c: Regnerate.
1023 * frame.h (frame_register): Declare.
1024 * frame.c (frame_register): New function.
1025 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1026 GET_SAVED_REGISTER, otherwize call
1027 generic_unwind_get_saved_register.
1028 (frame_register_read): Use frame_register instead of
1029 get_saved_register.
1030
1031 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1032
1033 From Jim Ingham <jingham@apple.com>:
1034 * event-top.c (gdb_disable_readline): New function.
1035 (_initialize_event_loop): Move comment.
1036
1037 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1038
1039 * event-loop.c (start_event_loop): Add comment.
1040 Update copyright.
1041
1042 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1043
1044 * infcmd.c (default_print_registers_info): Do not call
1045 PRINT_REGISTER_HOOK.
1046
1047 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1048
1049 * sparc-tdep.c (sparc_print_register_hook): Make static.
1050 (sparc_print_registers_info): New function.
1051 (sparc_do_registers_info): New function.
1052 (sparclet_print_registers_info): New function.
1053 (sparclet_do_registers_info): New function.
1054 (do_sparc_print_registers_info): New function.
1055 (sparc_print_registers): New static function, clone of infcmd.c's
1056 default_print_registers_info.
1057 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1058 (sparclet_do_registers_info): Declare.
1059 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1060 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1061 Re-define.
1062 (sparc_do_registers_info): Declare.
1063 (PRINT_REGISTER_HOOK): Delete macro.
1064 (sparc_print_register_hook): Delete declaration.
1065
1066 2002-11-05 David Carlton <carlton@math.stanford.edu>
1067
1068 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1069 functions.
1070 (lookup_symbol_aux_local): New function.
1071 (lookup_symbol_aux_symtabs): New function.
1072 (lookup_symbol_aux_psymtabs): New function.
1073
1074 2002-11-05 David Carlton <carlton@math.stanford.edu>
1075
1076 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1077 previous values of 'objfile' and 'block'.
1078
1079 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1080
1081 * values.c (value_change_enclosing_type): Set
1082 enclosing_type field correctly also for the case where
1083 more memory needs to be allocated.
1084
1085 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1086
1087 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1088 of puts_filtered.
1089
1090 * i387-tdep.c (i387_print_float_info): Replace calls to
1091 register_read and deprecated_read_register_gen with calls to
1092 frame_register_read, and make the necessary adjustments to the
1093 surrounding code.
1094
1095 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1096
1097 * gdbarch.sh (register_reggroup_p): Allow default value.
1098 * gdbarch.h, gdbarch.c: Regenerate.
1099
1100 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1101
1102 * regcache.h: Add coment indicating replacements for deprecated
1103 functions.
1104
1105 2002-11-02 Andrew Cagney <cagney@redhat.com>
1106
1107 * reggroups.h, reggroups.c: New files.
1108 * regcache.c: Include "reggroups.h".
1109 (enum regcache_dump_what): Add `regcache_dump_groups'.
1110 (regcache_dump): Contract size of the "Type" column. When
1111 specified, dump the register's groups.
1112 (maintenance_print_register_groups): New function.
1113 (_initialize_regcache): Add command `maint print register-groups'.
1114 * Makefile.in (COMMON_OBS): Add reggroups.o
1115 (SFILES): Add reggroups.c.
1116 (reggroups_h): Define.
1117 (regcache.o, gdbarch.o): Update dependencies.
1118 (reggroups.o): Specify dependencies.
1119 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1120 Add opaque declaration for `struct reggroup' in generated .h file.
1121 Include "reggroups.h" in generated .c file.
1122 gdbarch.h, gdbarch.c: Re-generate.
1123
1124 2002-11-02 Andrew Cagney <cagney@redhat.com>
1125
1126 * regcache.h (deprecated_read_register_gen): Rename
1127 read_register_gen.
1128 (deprecated_write_register_gen): Rename write_register_gen.
1129 * i387-tdep.c: Update.
1130 * x86-64-linux-nat.c: Update
1131 * wince.c: Update.
1132 * thread-db.c: Update.
1133 * win32-nat.c: Update.
1134 * mips-tdep.c: Update.
1135 * d10v-tdep.c: Update.
1136 * cris-tdep.c: Update.
1137 * remote-sim.c: Update.
1138 * remote-rdi.c: Update.
1139 * remote-rdp.c: Update.
1140 * frame.c: Update.
1141 * target.c: Update.
1142 * blockframe.c: Update.
1143 * x86-64-tdep.c: Update.
1144 * xstormy16-tdep.c: Update.
1145 * sh-tdep.c: Update.
1146 * s390-tdep.c: Update.
1147 * rs6000-tdep.c: Update.
1148 * sparc-tdep.c: Update.
1149 * i386-tdep.c: Update.
1150 * dwarf2cfi.c: Update.
1151 * regcache.c: Update.
1152
1153 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1154
1155 New interix-specific files:
1156 * config/i386/nm-interix.h: New file.
1157 * config/i386/interix.mh: New file.
1158 * config/i386/interix.mt: New file.
1159 * i386-interix-nat.c: New file.
1160 * i386-interix-tdep.c: New file.
1161
1162 2002-11-01 Andrew Cagney <cagney@redhat.com>
1163
1164 * frame.h (deprecated_generic_get_saved_register): Rename
1165 generic_get_saved_register.
1166 * blockframe.c (deprecated_generic_get_saved_register): Update.
1167 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1168 (xstormy16_frame_saved_register): Update.
1169 * sh-tdep.c (sh_gdbarch_init): Update.
1170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1171 * ia64-tdep.c (ia64_get_saved_register): Update.
1172 * cris-tdep.c (cris_gdbarch_init): Update.
1173 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1174 * arm-tdep.c (arm_gdbarch_init): Update.
1175
1176 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1177
1178 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1179
1180 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1181
1182 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1183 trampolines in sigaction.
1184
1185 2002-10-31 Andrew Cagney <cagney@redhat.com>
1186
1187 * h8300-tdep.c: Include "gdb_assert.h".
1188 (h8300_print_register): Add gdbarch, file and frame parameters.
1189 Use frame_read_unsigned_register to read the register's value.
1190 Use fprintf_filtered to display output.
1191 (h8300_print_registers_info): Replace h8300_do_registers_info.
1192 (h8300_gdbarch_init): Set print_registers_info.
1193
1194 2002-10-31 Andrew Cagney <cagney@redhat.com>
1195
1196 * frame.c (frame_read_unsigned_register): New function.
1197 (frame_read_signed_register): New function.
1198 * frame.h (frame_read_unsigned_register): Declare.
1199 (frame_read_signed_register): Declare.
1200
1201 2002-10-31 Andrew Cagney <cagney@redhat.com>
1202
1203 * h8500-tdep.c (h8500_print_registers_info): New static function,
1204 clone of infcmd.c's default_print_registers_info.
1205 (h8500_do_registers_info): New funtion.
1206 (h8500_print_register_hook): Rename print_register_hook, make
1207 static.
1208
1209 * config/h8500/tm-h8500.h: Update copyright.
1210 (DEPRECATED_DO_REGISTERS_INFO): Define.
1211 (h8500_do_registers_info: Declare.
1212 (PRINT_REGISTER_HOOK): Delete macro.
1213 (print_register_hook): Delete function.
1214
1215 2002-10-31 Andrew Cagney <cagney@redhat.com>
1216
1217 * z8k-tdep.c (z8k_print_register_hook): Make static.
1218 (z8k_print_registers_info): New static function, clone of
1219 infcmd.c's default_print_registers_info.
1220 (z8k_do_registers_info): New function. Wrap
1221 z8k_print_registers_info.
1222 * config/z8k/tm-z8k.h: Update copyright.
1223 (PRINT_REGISTER_HOOK): Delete macro.
1224 (z8k_print_register_hook): Delete declaration.
1225 (DEPRECATED_DO_REGISTERS_INFO): Define.
1226 (z8k_do_registers_info): Declare.
1227
1228 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1229
1230 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1231 as this is already provided by value.h, and was actually causing
1232 a compilation error because of a conflict in parameter type
1233 declaration due to a missing const keyword.
1234 (low_text_segment_addres): Fix a compilation warning.
1235
1236 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1237
1238 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1239 registers without a name.
1240 (mips_linux_cannot_store_register): Don't store registers without
1241 a name.
1242
1243 2002-10-28 David Carlton <carlton@math.stanford.edu>
1244
1245 * symtab.c (find_addr_symbol): Delete. (It was already commented
1246 out.)
1247 * symtab.h: Delete prototype for find_addr_symbol.
1248
1249 2002-10-26 Andrew Cagney <cagney@redhat.com>
1250
1251 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1252 DO_REGISTERS_INFO.
1253 gdbarch.h, gdbarch.c: Re-generate.
1254 * infcmd.c (default_print_registers_info): Update reference.
1255 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1256 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1257 * sh-tdep.c (sh_gdbarch_init): Ditto.
1258 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1259 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1260
1261 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1262
1263 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1264 cfi_init_extra_frame_info.
1265 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1266 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1267
1268 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1269 target where necessary. Add more comments and remove the ones
1270 that don't provide any useful information.
1271
1272 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1273 deprecated_read_register_dummy with
1274 frame_unwind_unsigned_register.
1275
1276 * i386-tdep.c (i386_extract_struct_value_address): Use
1277 regcache_raw_read_unsigned instead of
1278 regcache_cooked_read_unsigned since we know that the register
1279 we're reading isn't a pseudo register. Rename variable 'val' into
1280 the more descriptive 'addr'.
1281
1282 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1283 (x86_64_push_return_address): Add comment.
1284 (x86_64_pop_frame): Make static.
1285 (examine_argument): Clarify comment.
1286 (x86_64_skip_prologue): Make prolog_expact variable static.
1287
1288 * dwarf2cfi.c: Fix some formatting problems.
1289 (context_cpy, read_encoded_pointer): Clarify comments.
1290
1291 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1292 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1293 i386 target back into x86_64_gdbarch_init. Add some comments and
1294 remove meaningless ones.
1295
1296 2002-10-25 Andrew Cagney <cagney@redhat.com>
1297
1298 * complaints.h (struct deprecated_complaint): Rename `struct
1299 complaint'.
1300 * complaints.c (complain): Update.
1301 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1302 incorrect comment indicating that "symfile.h" was being included
1303 for the `struct complaint' definition.
1304 * remote-vx.c: Update.
1305 * objc-lang.c: Update.
1306 * xcoffread.c: Update.
1307 * hpread.c: Update.
1308 * mdebugread.c: Update.
1309 * stabsread.c: Update.
1310 * dwarf2read.c: Update.
1311 * dwarfread.c: Update.
1312 * elfread.c: Update.
1313 * coffread.c: Update.
1314 * stabsread.h: Update.
1315 * dbxread.c: Update.
1316 * buildsym.c: Update.
1317 * gdbtypes.c: Update.
1318 * macrotab.c: Update.
1319
1320 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1321
1322 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1323 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1324 (x86_64_init_abi): ...new function.
1325
1326 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1327 * i386v-nat.c: Include "i386-tdep.h".
1328
1329 2002-10-25 Andrew Cagney <cagney@redhat.com>
1330
1331 * gdbtypes.c (address_space_name_to_int): Update.
1332 (address_space_int_to_name): Update.
1333 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1334 multi-arch predicate.
1335 (address_class_name_to_type_flags): Ditto.
1336 * gdbarch.h, gdbarch.c: Re-generate.
1337
1338 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1339
1340 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1341
1342 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1343
1344 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1345
1346 * symtab.h (INIT_SAL): Delete macro.
1347 (init_sal): Export.
1348 * symtab.c (init_sal): New function.
1349
1350 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1351 to init_sal function call.
1352 (find_sal_from_funcs_and_line): Ditto.
1353 (all_sals_for_line): Ditto.
1354 * breakpoint.c (create_internal_breakpoint): Ditto.
1355 (create_fork_vfork_event_catchpoint): Ditto.
1356 (create_exec_event_catchpoint): Ditto.
1357 (parse_breakpoint_sals): Ditto.
1358 (watch_command_1): Ditto.
1359 (handle_gnu_4_16_catch_command): Ditto.
1360 (clear_command): Ditto.
1361 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1362 * infcmd.c (run_stack_dummy): Ditto.
1363 * infrun.c (process_event_stop_test): Ditto.
1364 (check_sigtramp2): Ditto.
1365 (step_over_function): Ditto.
1366 * linespec.c (decode_line_2): Ditto.
1367 (decode_line_1): Ditto.
1368 * source.c (line_info): Ditto.
1369 * symtab.c (find_pc_sect_line): Ditto.
1370
1371 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1372
1373 * dwarf2cfi.c (struct context)
1374 (struct context_reg): Moved to dwarf2cfi.h
1375 (context_alloc, frame_state_alloc, context_cpy):
1376 Made extern instead of static, removed prototypes.
1377 * dwarf2cfi.h (struct context)
1378 (struct context_reg): New, moved from dwarf2cfi.c
1379 (context_alloc, frame_state_alloc, context_cpy):
1380 New prototypes.
1381 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1382 Changed from static to extern.
1383 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1384 (LINUX_SIGCONTEXT_FP_OFFSET)
1385 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1386 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1387 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1388 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1389 set_gdbarch_*() calls now use x86-64 specific functions
1390 instead of DWARF2 CFI ones.
1391 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1392 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1393 (x86_64_init_extra_frame_info): New prototypes.
1394
1395 2002-10-23 David Carlton <carlton@math.stanford.edu>
1396
1397 * linespec.c: #include "parser-defs.h".
1398 Delete prototype for find_template_name_end.
1399 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1400
1401 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1402
1403 * NEWS: add recent mi fixes.
1404 * varobj.c (struct varobj): Add new "updated" flag.
1405 (new_variable): Default "updated" flag to 0.
1406 (varobj_set_value): Set "updated" flag to 1 if value
1407 changes.
1408 (varobj_update): Check varobj "updated" flag before
1409 comparing old and refreshed values. Fix for
1410 PR gdb/702.
1411
1412 2002-10-23 David Carlton <carlton@math.stanford.edu>
1413
1414 * parse.c (parse_exp_1): Use BLOCK_START.
1415 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1416 SYMBOL_BLOCK_VALUE.
1417 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1418
1419 2002-10-23 David Carlton <carlton@math.stanford.edu>
1420
1421 * symtab.c: Delete cplusplus_hint.
1422 Delete prototype for find_template_name_end.
1423
1424 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1425
1426 * symtab.h: Update comment.
1427
1428 2002-10-23 Michael Snyder <msnyder@redhat.com>
1429
1430 * printcmd.c (address_info): Restore quotes in output.
1431 * valops.c (value_of_local): Restore quotes in error message.
1432
1433 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1434
1435 * symtab.c (symbol_demangled_name): New function.
1436 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1437 turning most of it into a function.
1438 (symbol_demangled_name): Export.
1439
1440 2002-10-23 Michael Snyder <msnyder@redhat.com>
1441
1442 * valops.c (value_of_local): Restore quotes in error message.
1443
1444 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1445
1446 * symtab.c (symbol_init_language_specific): New function.
1447 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1448 turning most of it into a function.
1449 (symbol_init_language_specific): Export.
1450
1451 2002-10-23 David Carlton <carlton@math.stanford.edu>
1452
1453 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1454 (dwarf_attr_name): Ditto.
1455 (dwarf_type_encoding_name): Ditto.
1456 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1457 (process_die): Handle DW_TAG_namespace,
1458 DW_TAG_imported_declaration, DW_TAG_imported_module.
1459 (read_namespace): New function.
1460
1461 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1462
1463 * configure.in: Define NEW_PROC_API on Interix too.
1464 * configure: Regenerate.
1465
1466 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1467
1468 * configure: Regenerate using the proper version of autoconf.
1469
1470 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1471
1472 * findvar.c (read_var_value): Temporarily disable TLS code, until
1473 complete TLS support is added.
1474
1475 2002-10-21 Jim Blandy <jimb@redhat.com>
1476 Elena Zannoni <ezannoni@redhat.com>
1477
1478 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1479 for thread local storage locations.
1480 (struct symbol): Add objfile field.
1481 (SYMBOL_OBJFILE): Define.
1482 * dwarf2read.c (is_thread_local): New static variable.
1483 (new_symbol): If variable is in thread local fill in address class
1484 and objfile appropriately.
1485 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1486 stack operation.
1487 * printcmd.c (address_info): Print the information for thread
1488 local storage variable.
1489 * findvar.c (read_var_value): In case of thread local variable,
1490 defer to the target vector code to compute address.
1491
1492 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1493
1494 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1495 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1496
1497 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1498
1499 * symtab.h (address_class): Rename
1500 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1501 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1502 * printcmd.c (address_info): Ditto.
1503 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1504
1505 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1506
1507 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1508 DBREG_DRX macro to acces debug registers.
1509
1510 * Makefile.in (i386obsd-tdep.o): New target.
1511
1512 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1513 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1514
1515 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1516 * config/i386/obsd.mt: New file.
1517 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1518 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1519 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1520 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1521 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1522 * i386obsd-tdep.c: New file.
1523
1524 2002-10-19 Adam Fedor <fedor@gnu.org>
1525
1526 * objc-exp.y (name_not_typename): Fix invalid comment.
1527
1528 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1529
1530 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1531 to allocate partial syms and macro byte caches.
1532
1533 2002-10-18 David Carlton <carlton@math.stanford.edu>
1534
1535 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1536
1537 2002-10-18 Adam Fedor <fedor@gnu.org>
1538
1539 * stabsread.c (find_name_end): New function.
1540 (define_symbol): Use it.
1541
1542 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1543
1544 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1545 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1546 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1547 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1548
1549 2002-10-17 David Carlton <carlton@math.stanford.edu>
1550
1551 * symfile.h: Add opaque declaration for struct obstack.
1552 Declare obsavestring to take a const char *.
1553 * symfile.c (obsavestring): Make first argument a const char *.
1554
1555 2002-10-16 Adam Fedor <fedor@gnu.org>
1556
1557 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1558 names when matching breakpoints in current file.
1559
1560 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1561
1562 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1563 (read_tag_pointer_type): Add address class support.
1564 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1565 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1566 New methods.
1567 * gdbarch.h, gdbarch.c: Regenerate.
1568 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1569 (make_type_with_address_space, recursive_type_dump): Add address
1570 class support.
1571 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1572 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1573 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1574
1575 2002-10-16 Klee Dienes <kdienes@apple.com>
1576
1577 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1578 to get the last character of a char[] buffer, not
1579 name[sizeof(vptr_name)-1].
1580
1581 2002-10-14 Adam Fedor <fedor@gnu.org>
1582
1583 * symtab.h: New objc_specific struct.
1584 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1585 (SYMBOL_DEMANGLED_NAME): Likewise.
1586
1587 2002-10-14 Adam Fedor <fedor@gnu.org>
1588
1589 * symfile.c (init_filename_language_table): Add ObjC file extension.
1590
1591 2002-10-14 Adam Fedor <fedor@gnu.org>
1592
1593 * utils.c (puts_filtered_tabular): New function.
1594 (fprintf_symbol_filtered): Get ObjC demangled name.
1595 * defs.h (puts_filtered_tabular): Declared.
1596
1597 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1598
1599 * c-lang.h (c_type_print_varspec_prefix): Delete.
1600 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1601 ``need_post_space'' parameter. Adjust all callers.
1602
1603 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1604
1605 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1606 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1607 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1608 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1609
1610 2002-10-13 Adam Fedor <fedor@gnu.org>
1611
1612 * source.c (print_source_lines): Update comments.
1613
1614 2002-10-13 Adam Fedor <fedor@gnu.org>
1615
1616 * valops.c (value_of_local): New function.
1617 (value_of_this): Use it.
1618 * value.h (value_of_local): Declared.
1619
1620 2002-10-13 Adam Fedor <fedor@gnu.org>
1621
1622 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1623 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1624
1625 2002-10-12 Adam Fedor <fedor@gnu.org>
1626
1627 * language.c (binop_result_type): Add language_objc to case.
1628 (integral_type): Likewise.
1629 (character_type): Likewise.
1630 (string_type): Likewise.
1631 (boolean_type): Likewise.
1632 (structured_type): Likewise.
1633 (binop_type_check): Likewise.
1634
1635 2002-10-11 Adam Fedor <fedor@gnu.org>
1636
1637 * printcmd.c (address_info): Print 'self' for ObjC.
1638
1639 2002-10-11 Adam Fedor <fedor@gnu.org>
1640
1641 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1642 OP_SELF.
1643
1644 2002-10-11 Adam Fedor <fedor@gnu.org>
1645
1646 * language.h (CAST_IS_CONVERSION): Add language_objc.
1647
1648 2002-10-11 Adam Fedor <fedor@gnu.org>
1649
1650 * defs.h (enum language): Add language_objc.
1651
1652 2002-10-11 Klee Dienes <kdienes@apple.com>
1653
1654 * corefile.c (read_memory_typed_address): New function.
1655 * gdbcore.h (read_memory_typed_address): Add prototype.
1656 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1657 to read a value destined for a CORE_ADDR, not read_memory_integer.
1658 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1659 (f77_get_dynamic_lowerbound): Ditto.
1660
1661 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1662
1663 * utils.c (string_to_core_addr): After turning string into
1664 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1665 which will do necessary sign-extension, etc.
1666
1667 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1668
1669 * c-exp.y (THIS): Delete token and grammar rule.
1670 (yylex): Don't return THIS.
1671 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1672 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1673 * demangle.c (cplus_markers): Update comment. Put '$'
1674 first. Remove CPLUS_MARKER.
1675 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1676 * jv-exp.y (THIS): Delete token and grammar rule.
1677 (yylex): Don't return THIS.
1678 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1679 * objc-exp.y (THIS): Delete token and grammar rule.
1680 (yylex): Don't return THIS.
1681 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1682 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1683 (read_member_functions): Likewise for opname.
1684 (read_tilde_fields): Use is_cplus_marker.
1685
1686 * defs.h (CPLUS_MARKER): Don't define.
1687 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1688 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1689 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1690 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1691 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1692
1693 * config/i386/tm-i386v4.h: Delete file.
1694 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1695 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1696 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1697 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1698 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1699 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1700 * config/i386/i386v4.mt (TM_FILE): Likewise.
1701 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1702
1703 2002-10-10 Marko Mlinar <markom@opencores.org>
1704
1705 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1706 accidentially not commited 2002-10-09
1707 * gdbarch.h, gdbarch.c: Re-generate.
1708
1709 2002-10-09 Marko Mlinar <markom@opencores.org>
1710
1711 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1712 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1713 * gdbarch.h, gdbarch.c: Re-generate.
1714
1715 2002-10-08 Petr Sorfa <petrs@caldera.com>
1716
1717 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1718
1719 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1720 so we can work on more than one compilation unit at a time. This
1721 helps prepare GDB to handle inter-CU die references.
1722 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1723 the code to be defined before struct comp_unit_head.
1724 (comp_unit_head): Added new members - offset, cu_head,
1725 begin_die, next and dwarf2_abbrevs.
1726 (dwarf2_abbrevs): Removed single static var; now member of
1727 struct comp_unit_head.
1728 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1729 members.
1730 (psymtab_to_symtab_1): Changed to work with the new
1731 struct comp_unit_head.
1732 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1733 constructs the dwarf2_abbrevs[] inside the cu_header.
1734 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1735 dwarf2_abbrev table to clean up.
1736 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1737 handling of dwarf2_abbrevs inside the cu_header.
1738 (read_partial_die): Now supports the call to the new
1739 dwarf2_lookup_abbrev.
1740 (read_full_die): Now supports the call to the new
1741 dwarf2_lookup_abbrev.
1742
1743 2002-10-06 Christopher Faylor <cgf@redhat.com>
1744
1745 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1746 insure that shell variables, such as "transformed_name" are propagated
1747 to later shell statements in rule.
1748
1749 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1750
1751 * config/i386/nm-i386sco.h: Add protection against
1752 multiple-inclusion. Include "i386/nm-i386v.h".
1753 (REGISTER_U_ADDR): Remove define.
1754 (i386_register_u_addr): Remove prototype.
1755
1756 2002-10-04 Michael Snyder <msnyder@redhat.com>
1757
1758 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1759 before treating it as a single-step event.
1760
1761 2002-10-03 Adam Fedor <fedor@gnu.org>
1762
1763 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1764 (objc_demangle): Remove assignment in if statements, Replace
1765 free with xfree.
1766 (add_msglist): Likewise.
1767 (end_msglist): Likewise.
1768 (complare_selectors): Likewise.
1769 (selectors_info): Likewise.
1770 (compare_classes): Likewise.
1771 (classes_info): Likewise.
1772 (print_object_command): Likewise.
1773 (find_objc_msgcall_submethod): Replace PTR with void *.
1774 * objc-lang.h: Remove check for __STDC__.
1775
1776 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1777
1778 * ui-out.h (ui_out_field_fmt_int): New prototype.
1779 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1780 of field width and alignment.
1781 * stack.c (print_frame_info_base): When printing frame level, use
1782 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1783 PR gdb/192
1784
1785 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1786
1787 * MAINTAINERS: Add self to Write After Approval list.
1788
1789 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1790
1791 * infcmd.c (interrupt_target_command_wrapper): Delete.
1792 (interrupt_target_command): Make non static.
1793 (nofp_registers_info): Make static.
1794 * stack.c (return_command_wrapper): Delete.
1795 (return_command): Make non static.
1796
1797 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1798
1799 * event-top.c (gdb_setup_readline): New function. Code moved from
1800 _initialize_event_loop().
1801 (_initialize_event_loop): Call gdb_setup_readline().
1802
1803 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1804
1805 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1806 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1807 * gdbarch.h, gdbarch.c: Re-generate.
1808
1809 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1810
1811 Fix PR gdb/778
1812 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1813 before recursing.
1814 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1815 of fill_in_vptr_fieldno.
1816
1817 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1818
1819 * inferior.h (registers_info, stepi_command, nexti_command,
1820 continue_command, interrupt_target_command): Export from infcmd.c.
1821 * frame.h (args_info, selected_frame_level_changed_hook,
1822 return_command): Export from stack.c.
1823 * v850ice.c (stepi_command, nexti_command, continue_command): use
1824 prototypes from inferior.h.
1825 * tracepoint.c (registers_info, args_info, locals_info): Use
1826 prototypes from frame.h and inferior.h.
1827 * Makefile.in (mi-main.o): Add dependency on frame.h.
1828
1829 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1830
1831 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1832 value in register 3 adjusted by ppc_gp0_regnum.
1833
1834 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1835
1836 2002-10-02 Marko Mlinar <markom@opencores.org>
1837
1838 * MAINTAINERS: Add myself to the Write After Approval list.
1839
1840 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1841
1842 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1843 of the section for the N64 ABI, fixed.
1844
1845 * config/mips/tm-irix6.h: Include solib.h.
1846
1847 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1848
1849 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1850 GNU operators.
1851
1852 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1853
1854 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1855 and that "mi0" syntax has been removed.
1856
1857 2002-09-30 David Carlton <carlton@math.stanford.edu>
1858
1859 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1860 * ppc-sysv-tdep.c: #include "gdb_string.h".
1861 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1862 pacify GCC.
1863
1864 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1865
1866 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1867 "vrsave"'s register number.
1868
1869 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1870
1871 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1872 use frame_unwind_signed_register to obtain the PC.
1873 (mips_frame_chain): Handle a generic dummy frame.
1874 (mips_init_extra_frame_info): When a generic dummy frame, don't
1875 re-compute the frame base.
1876 (mips_pop_frame): Handle generic dummy frames.
1877 (mips_gdbarch_init): When generic dummy frames, set
1878 use_generic_dummy_frames, push_dummy_frame to
1879 generic_push_dummy_frame, pc_in_call_dummy to
1880 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1881 generic_save_dummy_frame_tos.
1882
1883 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1884
1885 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1886 against TOP when TOP was explictly set.
1887 (generic_push_dummy_frame): Set TOP to zero.
1888
1889 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1890
1891 * event-loop.c (start_event_loop): Rename variable 'result' to
1892 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1893
1894 2002-09-30 Keith Seitz <keiths@redhat.com>
1895
1896 * gdb-events.sh (selected_thread_changed): New event.
1897 * gdb-events.c: Regenerated.
1898 * gdb-events.h: Regenerated.
1899
1900 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1901
1902 * MAINTAINERS: Add self to Write After Approval list.
1903
1904 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1905
1906 * disasm.c: New file.
1907 * disasm.h: New file.
1908 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1909 (compare_lines): Ditto.
1910 (dump_insns): Ditto.
1911 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1912 argument.
1913 (do_assembly_only): Ditto.
1914 (do_disassembly): Renamed to gdb_disassembly and moved to
1915 disasm.c. Sdded uiout argument.
1916 * Makefile.in: Add new files. Reorder SFILES list. Update
1917 dependencies. Include libgdb.a later in the insight executable.
1918
1919 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1920
1921 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1922 bfd/elf64-alpha-fbsd.c.
1923
1924 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1925
1926 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1927 i386gnu-tdep.c.
1928
1929 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1930
1931 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1932 __FUNCTION__.
1933 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1934 function name.
1935 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1936 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1937 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1938 (S_msg_sig_post_reply): Ditto.
1939
1940 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1941
1942 * sh-tdep.c (sh_use_struct_convention): Use definition according
1943 to ABI.
1944 (sh_push_arguments): Store in register with correct endianess.
1945 (sh_default_store_return_value): Ditto.
1946 (sh_gdbarch_init): Set sizeof long double to 8.
1947
1948 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1949
1950 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1951 Fix some whitespace problems.
1952
1953 2002-09-27 David Carlton <carlton@math.stanford.edu>
1954
1955 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1956 (mcore-tdep.o): Ditto.
1957 (ns32k-tdep.o): Ditto.
1958 (ns32knbsd-tdep.o): Ditto.
1959 (sh3-rom.o): Ditto.
1960 (vax-tdep.o): Ditto.
1961 * cris-tdep.c: #include "gdb_string.h"
1962 * mcore-tdep.c: Ditto.
1963 * ns32k-tdep.c: Ditto.
1964 * ns32knbsd-tdep.c: Ditto.
1965 * sh3-rom.c: Ditto.
1966 * vax-tdep.c: Ditto.
1967
1968 2002-09-27 David Carlton <carlton@math.stanford.edu>
1969
1970 * config/djgpp/fnchange.lst: Add entries for
1971 gdb/testsuite/gdb.c++/m-static files.
1972
1973 2002-09-27 Jim Wilson <wilson@redhat.com>
1974
1975 * MAINTAINERS: Add myself to the Write After Approval list.
1976
1977 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1978
1979 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1980
1981
1982 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1983
1984 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1985 frame.
1986
1987 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1988
1989 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1990 (rs6000_struct_return_address): Delete variable.
1991 (rs6000_store_struct_return): Update.
1992 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1993 deprecated_extract_struct_value_address.
1994 (rs6000_frame_align): New function.
1995 (rs6000_gdbarch_init): Set frame_align.
1996
1997 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1998
1999 From Grace Sainsbury <graces@redhat.com>:
2000 * Makefile.in (gdbtk-main.o): New target.
2001 (gdb.o): New target.
2002 (main_h): Define.
2003 (main.o): Update dependencies.
2004 (gdb$(EXEEXT)): Add gdb.o.
2005 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2006 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2007 (SUBDIR_GDBTK_CLEAN): Set.
2008 (install-gdbtk): Install the insight binary.
2009 (uninstall-gdbtk): New target.
2010 (all-gdbtk, clean-gdbtk): New rule.
2011 * top.c (use_windows): Default to zero.
2012 * main.c: Include "main.h".
2013 (main): Delete.
2014 (struct captured_main_args): Delete.
2015 (gdb_main): New function.
2016 * main.h: New file.
2017 * gdb.c: New File.
2018
2019 2002-09-25 Andrew Cagney <cagney@redhat.com>
2020
2021 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2022 (frame_map_regnum_to_name): New function.
2023 (frame_map_name_to_regnum): New function.
2024 * frame.h (frame_map_name_to_regnum): Declare.
2025 (frame_map_regnum_to_name): Declare.
2026 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2027 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2028 * parse.c: Do not include "builtin-regs.h".
2029 (target_map_name_to_register): Delete function.
2030 (write_dollar_variable): Use frame_map_name_to_regnum.
2031 * parser-defs.h (target_map_name_to_register): Delete declaration.
2032 * expprint.c: Include "frame.h".
2033 (print_subexp): Use frame_map_regnum_to_name.
2034 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2035 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2036
2037 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2038
2039 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2040 wasn't saved, and the next innermost frame is a dummy, return the
2041 dummy frame's link register.
2042
2043 2002-09-24 Jim Blandy <jimb@redhat.com>
2044
2045 Fix from Paul Breed:
2046 * main.c (captured_main): Add a `break' after the case for 'b'.
2047
2048 2002-09-24 Keith Seitz <keiths@redhat.com>
2049
2050 * varobj.c (c_type_of_child): Use get_target_type instead
2051 of TYPE_TARGET_TYPE.
2052
2053 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2054
2055 * source.c (get_current_or_default_source_symtab_and_line): Remove
2056 function.
2057 (set_default_source_symtab_and_line): New function. Attempts to
2058 determine a source file to list lines from if one is not currently
2059 defined.
2060 (get_current_source_symtab_and_line): Initialize sal.pc and
2061 sal.end fields.
2062 (set_current_source_symtab_and_line): Mark argument as const.
2063 * source.h: Update declarations and comments.
2064 * linespec.c (decode_line_1): Replace call to removed routine above.
2065 * stack.c (print_frame_info_base): Ditto.
2066 * cli/cli-cmds.c (edit_command): Ditto.
2067 (list_command): Ditto.
2068
2069 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2070
2071 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2072 sal.pc and sal.end fields.
2073 (get_current_or_default_source_symtab_and_line): Ditto.
2074 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2075 so we do not cause a new source symtab to be searched for (reverting an
2076 unintentional change from the 2002-09-20 patch).
2077 * scm-lang.c (scm_unpac): Ditto.
2078
2079 2002-09-21 Andrew Cagney <cagney@redhat.com>
2080
2081 * complaints.c (symfile_explanations): Remove new-line from
2082 ``isolated_message''.
2083 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2084 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2085
2086 2002-09-20 Nick Clifton <nickc@redhat.com>
2087
2088 * NEWS: Announce that V850EA ISA is no longer supported.
2089 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2090
2091 2002-09-20 David Carlton <carlton@math.stanford.edu>
2092
2093 * Makefile.in (c-lang.o): Correct dependencies.
2094 (utils.o): Gather dependencies.
2095 (charset.o): Move.
2096 * c-lang.c: #include "gdb_string.h"
2097
2098 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2099
2100 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2101 * cli/cli-cmds.c (list_command): New function. Implements the new
2102 cli edit command.
2103 (_init_cli_cmds): Add new command definition.
2104 * gdb.1: Document edit command.
2105 * doc/gdb.texinfo: Document edit command.
2106
2107 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2108
2109 * source.c: Make global variables current_source_symtab and
2110 current_source_line static.
2111 (list_command): Moved to cli/cli-cmds.c.
2112 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2113 (get_first_line_listed): New accessor function.
2114 (get_lines_to_list): New accessor function.
2115 (get_current_source_symtab_and_line): New function. Retrieves the
2116 position in the source code that we consider current.
2117 (get_current_or_default_source_symtab_and_line): New function.
2118 Like the above but attempts to determine a default position if one
2119 is not currently defined.
2120 (set_current_source_symtab_and_line): New function. Sets the source
2121 code position considered current and returns the previously set one.
2122 (clear_current_source_symtab_and_line): Reset stored information about
2123 a current source line.
2124 (_initialize_source): Remove registration for the "list" command and
2125 its alias.
2126 * source.h: Add declarations for the new functions above.
2127 * symtab.h: Remove declarations for the global variables mentioned
2128 above.
2129 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2130 obtain current source line.
2131 * linespec.c (decode_line_1): Ditto.
2132 * macroscope.c (default_macro_scope): Ditto.
2133 * scm-lang.c (scm_unpac): Ditto.
2134 * stack.c (print_frame_info_base): Ditto.
2135 * symfile.c (clear_symtab_users): Ditto.
2136 * symtab.c (decode_line_spec): Ditto.
2137 * cli/cli-cmds.c (list_command): Moved here from source.c.
2138 (ambiguous_line_spec): Moved here from source.c.
2139 (_init_cli_cmds): Add definition for "list" and its alias.
2140 * Makefile.in: Update dependencies.
2141
2142 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2143
2144 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2145 with what gcc thinks is correct.
2146
2147 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2148
2149 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2150 multiple register push instruction.
2151
2152 2002-09-19 Jim Blandy <jimb@redhat.com>
2153
2154 Add support for distinct host and target character sets.
2155 * charset.c, charset.h: New files.
2156 * c-exp.y: #include "charset.h".
2157 (yylex): Convert character and string literals to the target
2158 character set, before returning them as the semantic value of the
2159 token.
2160 * c-lang.c: #include "charset.h".
2161 (c_emit_char): Use charset-specific methods to recognize
2162 characters with backslash escape forms, to decide which characters
2163 to print literally and which to print using numeric escape
2164 sequences, and to convert target characters to host characters
2165 before printing.
2166 * utils.c: #include "charset.h".
2167 (no_control_char_error): New function.
2168 (parse_escape): Use charset-specific methods to recognize
2169 backslash escapes, parse `control character' notation, and convert
2170 characters from the host character set to the target character set.
2171 * configure.in: Set the default host character set.
2172 Check where to find iconv, and what its argument types might be.
2173 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2174 * Makefile.in (SFILES): List charset.c.
2175 (COMMON_OBS): List charset.o.
2176 (charset.o): New rule.
2177 (charset_h): New header dependency variable.
2178 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2179 (LIBICONV): New variable, set by configure.
2180 (CLIBS): Include $(LIBICONV) here.
2181 * aclocal.m4, config.in, configure: Regenerated.
2182
2183 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2184
2185 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2186 bison 1.35 warning.
2187
2188 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2189
2190 * gdb_mbuild.sh: New file.
2191
2192 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2193
2194 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2195
2196 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2197
2198 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2199 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2200 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2201 valops.c, value.h: Revert previous change.
2202
2203 2002-09-18 Michael Snyder <msnyder@redhat.com>
2204
2205 Preliminary support for Objective-C:
2206 * defs.h (language_objc): New enum value.
2207 (puts_filtered_tabular): Declaration only, exported from utils.c.
2208 (skip_quoted): Delete, declared in completer.h.
2209 * c-exp.y: Include completer.h.
2210 * p-exp.y: Ditto.
2211 * jv-exp.y: Ditto.
2212 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2213 New operator enum values.
2214 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2215 * language.c (binop_result_type): Handle language_objc case.
2216 (integral_type, character_type, string_type, boolean_type,
2217 structured_type, binop_type_check): Ditto.
2218 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2219 (struct objc_specific): Add to general_symbol_info.
2220 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2221 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2222 * parser-defs.h (struct objc_class_str): New struct type.
2223 (start_msglist, end_msglist, add_msglist): Declaration only,
2224 exported from objc-lang.c.
2225 * value.h (value_of_local, value_nsstring,
2226 call_function_by_hand_expecting_type): Exported from valops.c.
2227 * valops.c (find_function_addr): Export.
2228 (call_function_by_hand_expecting_type): New function.
2229 (value_of_local): New function.
2230 * symfile.c (init_filename_language_table): Add ".m" extension
2231 for Objective-C.
2232 * utils.c (puts_filtered_tabular): New function.
2233 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2234 (set/show demangle): Extend help-string to refer to ObjC.
2235 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2236 * stabsread.c (symbol_reference_defined): Objective-C symbols
2237 may contain colons: make allowances when scanning stabs strings
2238 for colons.
2239 (objc_find_colon): New function.
2240 * printcmd.c (address_info): If language == objc then print
2241 "self" instead of "this".
2242 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2243 OP_NSSTRING, and OP_SELF.
2244 (prefixify_subexp): Ditto.
2245 * source.c (print_source_lines): Mention objc in comment.
2246 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2247 method names.
2248
2249 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2250
2251 * complaints.h: Update copyright.
2252 (struct complaints): Declare.
2253 (struct complaint): Make `message' constant.
2254 (internal_complaint): Declare.
2255 (complaint): Declare.
2256 (complaint_root): Delete declaration.
2257 (symfile_complaints): Delete declaration.
2258 (struct complaints): Add opaque declaration.
2259 (clear_complaints): Add a complaints parameter.
2260 * complaints.c: Update copyright.
2261 (enum complaint_series): Define.
2262 (complaint_root): Delete.
2263 (struct complaints): Define.
2264 (complaint_sentinel, symfile_complaint_book): New variables.
2265 (symfile_explanations, symfile_complaints): New variables.
2266 New variables.
2267 (get_complaints): New function.
2268 (vcomplaint): New function.
2269 (complaint): New function.
2270 (internal_complaint): New function.
2271 (complain): Call vcomplain with symfile_complaint.
2272 (clear_complaints): Rewrite.
2273 (_initialize_complaints): Use add_setshow_command.
2274 * Makefile.in (complaints.o): Update dependencies.
2275 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2276 to call to clear_complaints.
2277 (new_symfile_objfile, reread_symbols): Ditto.
2278 (oldsyms_complaint): Delete.
2279 (empty_symtab_complaint, unknown_option_complaint): Delete.
2280 (free_named_symtabs): Use complaint instead of complain.
2281
2282 2002-09-18 Michael Snyder <msnyder@redhat.com>
2283
2284 Contributed by Apple Computer, Inc. Merged with current sources
2285 by Adam Fedor <fedor@doc.com> [cagney].
2286
2287 * objc-lang.c: First clean-up round: comments, indentation.
2288 * objc-lang.h: Ditto.
2289 * objc-lang.y: Ditto.
2290
2291 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2292
2293 * maint.c (maintenance_internal_error): Print the parameter as the
2294 error message.
2295 (maintenance_internal_warning): New function.
2296 (_initialize_maint_cmds): Add command `maint internal-warning'.
2297
2298 * defs.h (internal_warning, internal_vwarning): Declare.
2299 * utils.c (struct internal_problem): Define.
2300 (internal_vproblem): New function.
2301 (internal_warning): New function.
2302 (internal_vwarning): New function.
2303 (internal_warning_problem, internal_error_problem): New variables.
2304 (internal_verror): Just call internal_vproblem.
2305
2306 2002-09-18 Michael Snyder <msnyder@redhat.com>
2307
2308 * objc-lang.c: New file, support for Objective-C.
2309 Preliminary check-in, not yet integrated into gdb.
2310 * objc-lang.h: New file.
2311 * objc-exp.y: New file.
2312
2313 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2314
2315 * infrun.c (signal_stop_update): Convert definition to ISO C.
2316 (signal_print_update): Ditto.
2317 (signal_pass_update): Ditto.
2318 * inflow.c (terminal_save_ours): Ditto.
2319
2320 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2321 comments.
2322
2323 * config/djgpp/fnchange.lst: Handle name clashes between
2324 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2325 bfd/coff-tic80.c.
2326
2327 * i386-linux-tdep.h: Fix tipo.
2328
2329 2002-09-18 Adam Fedor <fedor@gnu.org>
2330
2331 * MAINTAINERS: Add myself to the Write After Approval list.
2332
2333 2002-09-18 Jim Blandy <jimb@redhat.com>
2334
2335 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2336 texthigh and textlow to reader-specific structs caused
2337 objfile_relocate to miss them. This is fixable, but the work that
2338 the change was supposed to prepare GDB for never got done anyway.
2339
2340 2002-09-18 David Carlton <carlton@math.stanford.edu>
2341
2342 * MAINTAINERS: Alphabetize Write After Approval list.
2343
2344 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2345
2346 Fix PR gdb/709
2347 * values.c (value_static_field): Call read_var_value.
2348
2349 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2350
2351 * valops.c (hand_function_call): Align the initial stack pointer
2352 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2353 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2354 return value.
2355 * mips-tdep.c (mips_frame_align): New function.
2356 (mips_gdbarch_init): Set frame_align.
2357 * gdbarch.sh (FRAME_ALIGN): New method.
2358 * gdbarch.h, gdbarch.c: Re-generate.
2359
2360 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2361
2362 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2363 registers.
2364
2365 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2366
2367 * NEWS: Mention that MIPS $fp behavior changed.
2368 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2369 reference to FP_REGNUM.
2370 (mipsnbsd_cannot_store_register): Ditto.
2371 * mips-linux-nat.c: Update copyright.
2372 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2373 (mips_linux_cannot_store_register): Ditto.
2374 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2375 * config/mips/tm-mips.h: Update copyright.
2376 (FP_REGNUM): Delete macro.
2377 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2378 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2379 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2380 (mips_r3041_reg_names, mips_r3051_reg_names)
2381 (mips_r3081_reg_names): Replace "fp" with "".
2382 Fix PR gdb/480.
2383
2384 2002-09-17 Theodore A. Roth <troth@verinet.com>
2385
2386 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2387 generic_read_register_dummy() (PR gdb/703).
2388 (avr_push_return_address): #if 0 out unused vars.
2389 (avr_gdbarch_init): Enable use of avr_push_return_address().
2390
2391 2002-09-17 Michael Snyder <msnyder@redhat.com>
2392
2393 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2394 RTE will take care of it.
2395
2396 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2397
2398 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2399 invalid, return SP_REGNUM.
2400
2401 2002-09-17 Michael Snyder <msnyder@redhat.com>
2402
2403 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2404 point registers without sign extension.
2405
2406 2002-09-17 Andrew Cagney <cagney@redhat.com>
2407
2408 * blockframe.c (deprecated_read_register_dummy): Rename
2409 generic_read_register_dummy.
2410 * frame.c (frame_unwind_signed_register): New function.
2411 (frame_unwind_unsigned_register): New function.
2412 * frame.h (frame_unwind_signed_register): Declare.
2413 (frame_unwind_unsigned_register): Declare.
2414 (deprecated_read_register_dummy): Rename
2415 generic_read_register_dummy.
2416
2417 * h8300-tdep.c (h8300_frame_chain): Update.
2418 (h8300_frame_saved_pc): Update.
2419 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2420 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2421 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2422 (s390_frame_chain): Update.
2423 * v850-tdep.c (v850_find_callers_reg): Update.
2424 (v850_frame_saved_pc): Update.
2425 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2426 (m32r_find_callers_reg): Update.
2427 (m32r_frame_saved_pc): Update.
2428 * sh-tdep.c (sh_find_callers_reg): Update.
2429 (sh64_get_saved_pr): Update.
2430 (sh_init_extra_frame_info): Update.
2431 (sh_init_extra_frame_info): Update.
2432 (sh64_init_extra_frame_info): Update.
2433 (sh64_init_extra_frame_info): Update.
2434 * mcore-tdep.c (mcore_find_callers_reg): Update.
2435 (mcore_frame_saved_pc): Update.
2436 (mcore_init_extra_frame_info): Update.
2437 * i386-tdep.c (i386_frame_saved_pc): Update.
2438 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2439 (ia64_init_extra_frame_info): Update.
2440 (ia64_init_extra_frame_info): Update.
2441 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2442 * cris-tdep.c (cris_init_extra_frame_info): Update.
2443 * avr-tdep.c (avr_frame_chain): Update.
2444 (avr_init_extra_frame_info): Update.
2445 (avr_frame_saved_pc): Update.
2446 * arm-tdep.c (arm_find_callers_reg): Update.
2447 (arm_init_extra_frame_info): Update.
2448 (arm_frame_saved_pc): Update.
2449
2450 2002-09-17 Tom Tromey <tromey@redhat.com>
2451
2452 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2453 is "'".
2454
2455 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2456
2457 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2458 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2459 NEXT_PROLOGUE_INSN.
2460 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2461 NEXT_PROLOGUE_INSN.
2462
2463 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2464
2465 * osfsolib.c: Remove file, replaced by solib-osf.c.
2466 * Makefile.in: Remove compilation rules for osfsolib.c.
2467
2468 2002-09-16 David Carlton <carlton@math.stanford.edu>
2469
2470 * cp-valprint.c (cp_print_class_method): Correct args to
2471 check_stub_method_group.
2472
2473 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2474
2475 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2476 `set architecture'. Unify naming convention of functions.
2477 (h8300_skip_prologue): Improve prologue analysis.
2478 (h8300_push_arguments): Rewritten to more closely match GCC's
2479 bizarre argument-passing behavior, along with the comment describing
2480 said behavior.
2481 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2482 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2483 sim, remote-e7000.c, remote-hms.c and remote.c
2484
2485 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2486
2487 * i386-tdep.c (gdb_print_insn_i386): Removed.
2488 (i386_print_insn): New function.
2489 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2490 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2491 tm_print_insn_info.
2492
2493 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2494
2495 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2496 zero.
2497
2498 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2499
2500 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2501 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2502 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2503
2504 2002-09-13 Christopher Faylor <cgf@redhat.com>
2505
2506 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2507
2508 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2509
2510 * gdbtypes.c (check_stub_method): Make static.
2511 (check_stub_method_group): New function.
2512 * gdbtypes.h: Update prototypes.
2513 * cp-support.c: New file.
2514 * cp-support.h: New file.
2515
2516 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2517 (update_method_name_from_physname): New function.
2518 (read_member_functions): Correct method names for operators
2519 and v3 constructors/destructors. Separate v2 constructors and
2520 destructors.
2521 * Makefile.in (stabsread.o): Update dependencies.
2522 (SFILES): Add cp-support.c.
2523 (COMMON_OBS): Add cp-support.o.
2524 (cp_support_h, cp-support.o): Add.
2525
2526 * cp-valprint.c (cp_print_class_method): Call
2527 check_stub_method_group instead of check_stub_method. Remove
2528 extraneous QUITs.
2529 * p-valprint.c (pascal_object_print_class_method): Likewise.
2530 * valops.c (search_struct_method): Likewise.
2531 (find_method_list, value_struct_elt_for_reference): Likewise.
2532
2533 2002-09-13 Andrew Cagney <cagney@redhat.com>
2534
2535 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2536 * gdbarch.h, gdbarch.c: Regenerate.
2537
2538 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2539
2540 * frame.c (find_saved_register): Delete function.
2541 * frame.h (find_saved_register): Delete declaration.
2542 Fix PR gdb/631.
2543
2544 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2545
2546 * mips-tdep.c (read_next_frame_reg): Re-hack using
2547 frame_register_unwind.
2548
2549 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2550
2551 * mips-tdep.c (mips_get_saved_register): Re-hack using
2552 frame_register_unwind.
2553
2554 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2555
2556 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2557 vector. Will be useful for Interix.
2558 * gdbarch.h, gdbarch.c: Regenerate.
2559
2560 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2561 name of the malloc function by NAME_OF_MALLOC.
2562
2563 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2564
2565 * value.h (find_function_in_inferior): Add const keyword to
2566 one of the parameters. Allows us to invoke this function with
2567 a const char *.
2568 * valops.c (find_function_in_inferior): Likewise.
2569
2570 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2571
2572 * exec.c (xfer_memory): Fix compilation warning with old versions
2573 of GCC.
2574 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2575
2576 2002-09-12 David Carlton <carlton@math.stanford.edu>
2577
2578 * symtab.h: Run through gdb_indent.h.
2579 Add 2002 to Copyright year list.
2580
2581 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2582
2583 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2584 mach constants.
2585 * MAINTAINERS: Add myself to write after approval list.
2586
2587 2002-09-11 J. Brobecker <brobecker@gnat.com>
2588
2589 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2590
2591 2002-09-11 J. Brobecker <brobecker@gnat.com>
2592
2593 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2594 Interix.
2595
2596 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2597
2598 * procfs.c (do_detach): Clear current signal, not just fault.
2599 Corrects problem with breakpoint trap signal leaking to detached
2600 process on Tru64.
2601
2602 2002-09-10 Michael Snyder <msnyder@redhat.com>
2603
2604 * buildsym.c (finish_block): Protect against null pointer.
2605
2606 2002-09-10 Andrew Cagney <cagney@redhat.com>
2607
2608 * infcmd.c (default_print_registers_info): Send all output to
2609 ``file'' instead of ``gdb_stdout''.
2610
2611 2002-09-10 Michael Snyder <msnyder@redhat.com>
2612
2613 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2614 LONGEST, and use signed register read (addresses are sign-
2615 extended for mips).
2616
2617 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2618
2619 * event-loop.c (gdb_do_one_event): Make public.
2620 * event-loop.h (gdb_do_one_event): Declare.
2621
2622 2002-09-10 Jeff Law <law@redhat.com>
2623
2624 * infttrace.c (child_resume): Simplify and rework to avoid
2625 TT_PROC_CONTINUE.
2626
2627 2002-09-09 Fred Fish <fnf@intrinsity.com>
2628
2629 * printcmd.c (print_scalar_formatted): "len" is the number of
2630 target bytes, NOT the number of target bits.
2631
2632 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2633
2634 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2635 * top.c (init_main): Set rl_terminal_name.
2636
2637 2002-09-08 Aidan Skinner <aidan@velvet.net>
2638
2639 * ada-lang.c (ada_array_bound, ada_type_match,
2640 _initialize_ada_language): Fix K&R definitions.
2641 * ada-tasks.c (get_current_task): Fix K&R definitions.
2642 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2643
2644 2002-09-07 Christopher Faylor <cgf@redhat.com>
2645
2646 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2647 Add XP.
2648
2649 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2650
2651 * i386-tdep.c (i386_register_virtual_type,
2652 i386_register_convertible, i386_register_convert_to_virtual,
2653 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2654 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2655 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2656 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2657 Don't set push_arguments twice.
2658
2659 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2660 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2661 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2662 sigtramp_end to NULL.
2663 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2664 defines.
2665 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2666
2667 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2668 whitespace.
2669
2670 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2671 * gdbarch.h, gdbarch.c: Re-generate.
2672 * blockframe.c (find_pc_sect_partial_function): Convert to use
2673 SIGTRAMP_START_P predicate.
2674
2675 2002-09-05 Michael Snyder <msnyder@redhat.com>
2676
2677 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2678 generic_dummy_frame method and old method. Also distinguish
2679 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2680 (arm_extract_return_value): Use new regcache method.
2681
2682 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2683 adjustment that doesn't conform to the ABI.
2684 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2685 saved regcache, not from current regcache.
2686
2687 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2688
2689 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2690 * README: Update.
2691
2692 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2693
2694 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2695 if arm_apcs_32 is false.
2696
2697 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2698
2699 GDB 5.3 branch created.
2700
2701 2002-09-03 Theodore A. Roth <troth@verinet.com>
2702
2703 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2704 generic_unwind_get_saved_register.
2705
2706 2002-09-03 David Carlton <carlton@math.stanford.edu>
2707
2708 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2709 argument (PR gdb/653). Update call to smash_to_method_type.
2710 (read_structure_scope): Update call to dwarf2_add_member_fn.
2711
2712 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2713
2714 * x86-64-linux-tdep.c: Include gdb_string.h
2715 * x86-64-linux-nat.c: Ditto.
2716
2717 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2718
2719 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2720 when YYDEBUG is set to 1.
2721 * c-exp.y: Likewise.
2722 * f-exp.y: Likewise.
2723 * jv-exp.y: Likewise.
2724 * m2-exp.y: Likewise.
2725 * p-exp.y: Likewise.
2726
2727 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2728
2729 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2730 dependency list.
2731 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2732 solib_svr4_fetch_link_map_offsets to
2733 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2734 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2735 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2736 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2737 solib-svr4.o, and solib-legacy.o.
2738 * config/i386/tm-nbsd.h: Include solib.h.
2739
2740 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2741
2742 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2743 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2744 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2745 comment noting that this needs its own target configuration.
2746 * config/i386/nbsd.mt: New file.
2747 * config/i386/nbsdaout.mt: Remove.
2748 * config/i386/nbsdelf.mt: Ditto.
2749 * config/i386/tm-nbsdaout.h: Ditto.
2750
2751 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2752
2753 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2754 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2755 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2756 tdep->sigtramp_end.
2757 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2758 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2759 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2760
2761 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2762
2763 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2764 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2765 * i386-tdep.h (i386bsd_init_abi): New prototype.
2766 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2767 function declaration.
2768 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2769 for NetBSD-a.out or NetBSD-ELF.
2770 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2771 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2772 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2773 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2774 and nbsd-tdep.h.
2775 (i386nbsd_pc_in_sigtramp): New function.
2776 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2777 i386nbsd_pc_in_sigtramp.
2778 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2779 and i386nbsdelf_init_abi OS ABI handlers.
2780 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2781 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2782
2783 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2784
2785 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2786 registers if the target really has them.
2787
2788 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2789
2790 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2791 than nbsd-tdep.h.
2792
2793 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2794
2795 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2796 list.
2797 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2798 (alphanbsd_skip_sigtramp_frame): New functions.
2799 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2800 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2801 to alphanbsd_sigcontext_addr.
2802
2803 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2804
2805 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2806 list.
2807 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2808 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2809 nbsd_pc_in_sigtramp.
2810 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2811 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2812 * nbsd-tdep.c: Include gdb_string.h.
2813 (nbsd_pc_in_sigtramp): New function.
2814 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2815 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2816 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2817 ppcnbsd_pc_in_sigtramp.
2818 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2819 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2820 shnbsd_pc_in_sigtramp.
2821 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2822 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2823 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2824
2825 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2826
2827 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2828 watchpoints to NULL.
2829 (insert_breakpoints): set val field of watchpoints if NULL.
2830
2831
2832 2002-08-29 Jim Blandy <jimb@redhat.com>
2833
2834 * symtab.c (lookup_symbol_aux): In the cases where we find a
2835 minimal symbol of an appropriate name and use its address to
2836 select a symtab to read and search, use `name' (as passed to us)
2837 as the demangled name when searching the symtab's global and
2838 static blocks, not the minsym's name.
2839
2840 2002-08-29 Keith Seitz <keiths@redhat.com>
2841
2842 * stack.c (print_frame_info_base): Always set current_source_symtab
2843 and current_source_line.
2844
2845 2002-08-29 Donn Terry <donnte@microsoft.com>
2846
2847 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2848
2849 2002-08-28 Keith Seitz <keiths@redhat.com>
2850
2851 * stack.c (select_frame): Add FIXME concerning selected-frame
2852 events.
2853 (select_frame_command): Send selected-frame-level-changed
2854 event notification, but only if the level actually changed.
2855 (up_silently_base): Add selected-frame-level-changed event
2856 notification.
2857 (down_silently_base): Likewise.
2858
2859 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2860
2861 * Makefile.in: Update dependencies for all gdb/*.c files.
2862
2863 2002-08-27 Tom Tromey <tromey@redhat.com>
2864
2865 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2866 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2867 Update dependencies.
2868 * i387-tdep.c: Include gdb_string.h.
2869 * osabi.c: Likewise.
2870 * i386-linux-nat.c: Likewise.
2871 * lin-lwp.c: Likewise.
2872 * ax-gdb.c: Likewise.
2873 * signals/signals.c: Likewise.
2874 * jv-valprint.c: Likewise.
2875 * p-lang.c: Likewise.
2876 * c-valprint.c: Likewise.
2877 * cp-abi.c: Likewise.
2878
2879 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2880
2881 * cli/cli-script.h (copy_command_lines): Export.
2882 * breakpoint.c: Include cli/cli-script.h.
2883 * Makefile.in (breakpoint.o): Update dependencies.
2884
2885 2002-08-26 Michael Snyder <msnyder@redhat.com>
2886
2887 * breakpoint.c (insert_breakpoints): Protect all references
2888 to 'process_warning'. Shorten long lines.
2889
2890 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2891
2892 * cli/cli-script.c (copy_command_lines): New function.
2893 * defs.h (copy_command_lines): Export.
2894 * testsuite/gdb.base/commands.exp: New tests for commands
2895 attached to a temporary breakpoint, and for commands that
2896 delete the breakpoint they are attached to.
2897
2898 2002-08-26 Michael Snyder <msnyder@redhat.com>
2899
2900 * breakpoint.c (bpstat_stop_status): Instead of copying the
2901 pointer to the breakpoint commands struct, make a new copy
2902 of the struct and point to that.
2903 (bpstat_clear): Free the commands struct.
2904 (bpstat_clear_actions): Free the commands struct.
2905 (bpstat_do_actions): Free the command actions. Also execute
2906 the local cleanups, instead of deleting them.
2907 (delete_breakpoint): Leave the commands field of the bpstat
2908 chain alone -- it will be freed later.
2909
2910 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2911
2912 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2913 deleted in 2002-08-20 commit. This function is still used by
2914 ppc-linux-nat.c.
2915
2916 2002-08-26 Keith Seitz <keiths@redhat.com>
2917
2918 * gdb-events.sh: Add selected-frame-level-changed event.
2919 * gdb-events.c: Regenerated.
2920 * gdb-events.h: Regenerated.
2921
2922 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2923
2924 Fix PR gdb/393:
2925 * inflow.c (terminal_save_ours): New function to save terminal
2926 settings.
2927 * inferior.h (terminal_save_ours): Declare.
2928 * target.c (debug_to_terminal_save_ours): New function.
2929 (cleanup_target): Defaults to_terminal_save_ours.
2930 (update_current_target): Inherit to_terminal_save_ours.
2931 (setup_target_debug): Set to_terminal_save_ours.
2932 * target.h (target_terminal_save_ours): New to save terminal settings.
2933 (target_ops): New member to_terminal_save_ours.
2934 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2935 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2936 * inftarg.c (init_child_ops): Likewise.
2937 * m3-nat.c (init_m3_ops): Likewise.
2938 * procfs.c (init_procfs_ops): Likewise.
2939 * wince.c (init_child_ops): Likewise.
2940 * win32-nat.c (init_child_ops): Likewise.
2941 * sol-thread.c (init_sol_thread_ops): Likewise.
2942
2943 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2944
2945 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2946 use regcache_* functions.
2947 (i386_gdbarch_init): Set store_return_value instead of
2948 deprecated_store_return_value.
2949
2950 * regcache.c (regcache_raw_write_signed,
2951 regcache_raw_write_unsigned): New functions.
2952 * regcache.h (regcache_raw_write_signed,
2953 regcache_raw_write_unsigned): New prototypes.
2954
2955 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2956
2957 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2958 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2959 source file dependencies. Cleanup corresponding generator rules.
2960
2961 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2962
2963 * regcache.h (register_offset_hack): Declare.
2964 (regcache_cooked_read_using_offset_hack): Declare.
2965 (regcache_cooked_write_using_offset_hack): Declare.
2966
2967 * regcache.c (register_offset_hack): New function.
2968 (regcache_cooked_read_using_offset_hack): New function.
2969 (regcache_cooked_write_using_offset_hack): New function.
2970 (regcache_dump): Check that the registers, according to their
2971 offset, are packed hard against each other.
2972 (cooked_xfer_using_offset_hack): New function.
2973
2974 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2975
2976 * regcache.c (struct regcache_descr): Add field register_type.
2977 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2978 in as a parameter
2979 (init_regcache_descr): Initialize register_type. Pass the descr
2980 to init_legacy_regcache_descr. Use register_type instead of
2981 REGISTER_VIRTUAL_TYPE.
2982 (register_type): New function.
2983 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2984 * regcache.h (register_type): Declare.
2985
2986 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2987
2988 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2989 instead of deprecated_store_return_value. Fix fallout from
2990 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2991
2992 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2993
2994 * regcache.c (max_register_size): New function.
2995 (init_legacy_regcache_descr): Ensure that max_register_size is
2996 large enough for REGISTER_VIRTUAL_SIZE.
2997 * regcache.h (max_register_size): Declare.
2998
2999 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3000
3001 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3002 store_return_value.
3003 (e500_extract_return_value): Change type of valbuf pointer to
3004 void.
3005
3006 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3007
3008 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3009 workaround.
3010
3011 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3012 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3013 long long) to prevent compiler warning on 64-bit systems.
3014
3015 2002-08-23 Andrew Cagney <cagney@redhat.com>
3016
3017 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3018 (DEPRECATED_STORE_RETURN_VALUE): New method.
3019 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3020 * gdbarch.h, gdbarch.c: Re-generate.
3021
3022 * values.c (set_return_value): Pass current_regcache to
3023 STORE_RETURN_VALUE.
3024 * arch-utils.h (legacy_store_return_value): Declare.
3025 * arch-utils.c (legacy_store_return_value): New function.
3026 (legacy_extract_return_value): Update parameters.
3027
3028 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3029 STORE_RETURN_VALUE.
3030 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3031 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3032 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3033 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3034 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3035 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3036 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3037 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3038 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3039 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3040
3041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3042 * i386-tdep.c (i386_extract_return_value): Update.
3043 * arch-utils.c (legacy_extract_return_value): Update.
3044 * frv-tdep.c (frv_gdbarch_init): Update.
3045 * cris-tdep.c (cris_gdbarch_init): Update.
3046 * d10v-tdep.c (d10v_gdbarch_init): Update.
3047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3048 * m68k-tdep.c (m68k_gdbarch_init): Update.
3049 * mcore-tdep.c (mcore_gdbarch_init): Update.
3050 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3051 * s390-tdep.c (s390_gdbarch_init): Update.
3052 * sparc-tdep.c (sparc_gdbarch_init): Update.
3053 * sh-tdep.c (sh_gdbarch_init): Update.
3054 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3055 * v850-tdep.c (v850_gdbarch_init): Update.
3056 * avr-tdep.c (avr_gdbarch_init): Update.
3057 * ia64-tdep.c (ia64_gdbarch_init): Update.
3058 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3059 * vax-tdep.c (vax_gdbarch_init): Update.
3060 * alpha-tdep.c (alpha_gdbarch_init): Update.
3061 * arm-tdep.c (arm_gdbarch_init): Update.
3062 * mips-tdep.c (mips_gdbarch_init): Update.
3063 * i386-tdep.c (i386_gdbarch_init): Update.
3064
3065 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3066
3067 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3068 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3069
3070 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3071
3072 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3073 problems.
3074
3075 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3076
3077 * infrun.c (handle_inferior_event): Move a comment outside of a
3078 function call, in order to avoid indent reformatting this part
3079 of the code in an unreadable way.
3080
3081 2002-08-23 Grace Sainsbury <graces@redhat.com>
3082
3083 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3084 when breakpoints fail. Move general breakpoint error messages to
3085 insert_breakpoints.
3086 * breakpoint.c (insert_breakpoints): Change warnings when
3087 breakpoints are nto inserted to specify the type. Remove call to
3088 memory_error when hardware breakpoints can't be inserted. Remove
3089 multiple calls to warning so all messages are sent to the user at
3090 once.
3091 (delete_breakpoints): Make insert error messsages more explicit.
3092
3093 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3094
3095 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3096 gdbserver/ChangeLog.
3097
3098 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3099
3100 * i386-tdep.c: Include "objfiles.h".
3101 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3102 skip_trampoline_code.
3103 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3104 (CPLUS_MARKER): Define to '.'.
3105
3106 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3107 member.
3108 (linux_corefile_thread_callback): Increase args->num_notes.
3109 (linux_make_note_section): Initialize thread_args.num_notes, and
3110 use it to determine whether notes for any threads were created.
3111
3112 2002-08-23 Donn Terry <donnte@microsoft.com>
3113
3114 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3115 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3116 and PCUNKILL.
3117 (write_with_trace): Conditionalize out the switch branch handling
3118 PCSHOLD if the corresponding macro is not defined. Likewise for
3119 PRSABORT and PRSTOP.
3120 This change will be needed by the Interix port.
3121
3122 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3123
3124 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3125 write_register wherever possible instead of manipulating the
3126 register bytes directly.
3127 Assign VALUE_CONTENTS to a variable and use that.
3128 The GPR numbers are now dependent on the architecture.
3129
3130 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3131
3132 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3133 ev_offset fields.
3134 (skip_prologue): Add support for BookE/e500 instructions.
3135 (e500_extract_return_value): New function.
3136 (frame_get_saved_regs): Add support for saving ev registers and
3137 pseudo gpr's.
3138 (e500_store_return_value): New function.
3139 (rs6000_gdbarch_init): Move up default intializations of
3140 deprecated_extract_return_value and store_return_value. Overwrite
3141 init of store_return_value with e500 specific version.
3142 Set extract_return_value for e500.
3143
3144 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3145
3146 * blockframe.c (generic_call_dummy_register_unwind): Use
3147 regcache_cooked_read to catch cases in which the variable is
3148 stored in a pseudo register.
3149
3150 2002-08-22 Andrew Cagney <cagney@redhat.com>
3151
3152 * NEWS: Mention that the i960 has been made obsolete.
3153 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3154 i960-tdep.c
3155 (remote-nrom.o): Obsolete target.
3156 (remote-nindy.o, i960-tdep.o): Ditto.
3157 * remote-nrom.c: Make file obsolete.
3158 * remote-nindy.c, remote-vx960.c: Ditto.
3159 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3160 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3161 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3162 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3163 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3164 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3165 i960-*-vxworks* obsolete.
3166 * MAINTAINERS: Note that the i960 is obsolete.
3167
3168 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3169
3170 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3171 detach to allow reinitialization.
3172
3173 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3174
3175 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3176 attempt).
3177
3178 2002-08-22 Jim Blandy <jimb@redhat.com>
3179
3180 * coffread.c (coff_symfile_read): Don't try to read the line
3181 number table from disk if the image file doesn't have a symbol
3182 table; we'll never actually look at the info anyway, and Windows
3183 ships DLL's with bogus file offsets for the line number data.
3184
3185 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3186
3187 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3188 an e500 executable.
3189
3190 2002-08-21 Michael Snyder <msnyder@redhat.com>
3191
3192 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3193 (MSYMBOL_SIZE): Replace macro with function.
3194 (DEFAULT_MIPS_TYPE): Delete unused macro.
3195 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3196 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3197
3198 2002-08-21 Jim Blandy <jimb@redhat.com>
3199
3200 * valops.c (value_cast): Simplify and correct logic for doing a
3201 static cast from a pointer to a base class to a pointer to a
3202 derived class.
3203
3204 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3205
3206 * infcmd.c (default_print_registers_info): Replace
3207 do_registers_info.
3208 (registers_info): Use gdbarch_print_registers_info instead of
3209 DO_REGISTERS_INFO.
3210 * inferior.h (default_print_registers_info): Replace
3211 do_registers_info.
3212 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3213 (DO_REGISTERS_INFO): Change to a predicate function.
3214 * gdbarch.h, gdbarch.c: Regenerate.
3215
3216 2002-08-21 Keith Seitz <keiths@redhat.com>
3217
3218 * gdb-events.sh: Add target-changed event.
3219 * gdb-events.c: Regenerated.
3220 * gdb-events.c: Regenerated.
3221 * valops.c (value_assign): Add target-changed event notification
3222 to inlval_register, lval_memory, and lval_reg_frame_relative.
3223
3224 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3225
3226 * NEWS: Add an entry regarding the improvement of the next/step
3227 operation on Alpha Tru64 multi-processor machines.
3228
3229 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3230
3231 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3232 directores.
3233 * Makefile.in: Update all _h macro definitions.
3234 * Makefile.in (install-gdbtk): Move to install section.
3235 (rdi-share/libangsd.a): Move to end of file.
3236
3237 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3238
3239 * frame.c (frame_register_unwind): When a register, set addrp to
3240 the register's byte.
3241
3242 2002-08-20 Michael Snyder <msnyder@redhat.com>
3243
3244 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3245 used locally, so move them from the target machine header to here.
3246 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3247 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3248 Make static.
3249 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3250
3251 2002-08-20 Andrew Cagney <cagney@redhat.com>
3252
3253 * NEWS: Mention that the Apollo line was made obsolete.
3254 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3255 m68*-hp-hpux* obsolete.
3256 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3257 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3258 * buildsym.c (make_blockvector): Make static.
3259 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3260 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3261 (ALLDEPFILES): Remove dstread.c.
3262 (dstread.o): Obsolete make rule.
3263 * dstread.c: Makefile obsolete.
3264 * dst.h: Ditto.
3265 * config/m68k/hp300hpux.mt: Ditto.
3266 * config/m68k/hp300hpux.mh: Ditto.
3267 * config/m68k/hp300bsd.mt: Ditto.
3268 * config/m68k/hp300bsd.mh: Ditto.
3269 * config/m68k/apollo68b.mt: Ditto.
3270 * config/m68k/apollo68v.mh: Ditto.
3271 * config/m68k/apollo68b.mh: Ditto.
3272
3273 2002-08-20 Michael Snyder <msnyder@redhat.com>
3274
3275 * mips-tdep.c (mips_in_return_stub): Make static.
3276 (mips_gdbarch_init): Set in_solib_return_trampoline.
3277 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3278
3279 2002-08-20 Michael Snyder <msnyder@redhat.com>
3280
3281 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3282 * gdbarch.c, gdbarch.h: Regenerate.
3283 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3284 Add.
3285 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3286
3287 2002-08-20 Michael Snyder <msnyder@redhat.com>
3288
3289 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3290 (mips_gdbarch_init): Set skip_trampoline_code,
3291 in_solib_call_trampoline.
3292 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3293 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3294
3295 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3296
3297 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3298
3299 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3300 vector type for ev registers.
3301 (e500_pseudo_register_read): New function.
3302 (e500_pseudo_register_write): New function.
3303 (e500_dwarf2_reg_to_regnum): New function.
3304 (PPC_UISA_NOFP_SPRS): New macro.
3305 (PPC_EV_REGS): New macro.
3306 (PPC_GPRS_PSEUDO_REGS): New macro.
3307 (registers_e500): New register set for e500.
3308 (variants): Add e500 variant.
3309 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3310 before setting architectural dependent variations. Initialize ev
3311 registers numbers. Add case for e500 architecture. Set the
3312 number of pseudo registers.
3313
3314 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3315
3316 * rs6000-tdep.c: Clean up comments.
3317
3318 2002-08-20 Andrew Cagney <cagney@redhat.com>
3319
3320 * h8300-tdep.c: Re-indent file.
3321
3322 2002-08-20 Jim Blandy <jimb@redhat.com>
3323
3324 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3325 default for this.
3326
3327 2002-08-20 Keith Seitz <keiths@redhat.com>
3328
3329 * breakpoints.c (watch_command_1): Use internal breakpoint
3330 when setting a watchpoint_scope breakpoint.
3331
3332 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3333
3334 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3335 (build_builtin_type_vec64i): Ditto.
3336 (build_builtin_type_vec128): Ditto.
3337 (build_builtin_type_vec128i): Ditto.
3338
3339 2002-08-19 Michael Snyder <msnyder@redhat.com>
3340
3341 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3342 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3343 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3344 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3345 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3346 CALL_DUMMY_ADDRESS): Delete.
3347 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3348 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3349 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3350 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3351 push_return_address.
3352 (mips_register_raw_size, mips_eabi_use_struct_convention,
3353 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3354 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3355 mips_init_extra_frame_info, mips_eabi_push_arguments,
3356 mips_n32n64_push_arguments, mips_push_return_address,
3357 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3358 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3359
3360 2002-08-19 Michael Snyder <msnyder@redhat.com>
3361
3362 * mips-tdep.c (mips_frame_num_args): New function.
3363 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3364 frame_saved_pc, frame_args_address, frame_locals_address,
3365 frame_num_args, and frame_args_skip.
3366 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3367 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3368 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3369 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3370
3371 2002-08-20 Michael Snyder <msnyder@redhat.com>
3372
3373 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3374 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3375 * mips-tdep.c (mips_store_struct_return): New function.
3376 (mips_extract_struct_value_address): New function.
3377 (mips_gdbarch_init): Set store_struct_return and
3378 extract_struct_value_address.
3379
3380 2002-08-20 David Carlton <carlton@math.stanford.edu>
3381
3382 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3383 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3384 (read_file_scope): Check that line_header is nonzero before
3385 decoding macro information.
3386
3387 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3388
3389 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3390 flag the general-purpose registers as floating-point on targets
3391 that don't support the floating-point registers.
3392
3393 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3394
3395 * rs6000-tdep.c (altivec_register_p): Delete.
3396 (rs6000_do_altivec_registers): Delete.
3397 (rs6000_altivec_registers_info): Delete.
3398 (rs6000_do_registers_info): Delete.
3399 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3400 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3401
3402 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3403
3404 * infcmd.c (do_registers_info): Print vector registers in hex
3405 format only.
3406 (print_vector_info): Check that printing registers
3407 makes sense.
3408 (print_float_info): Ditto.
3409
3410 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3411
3412 * mips-tdep.c (mips_gdbarch_init): Update.
3413 (mips_o32_extract_return_value): Rewrite.
3414 (mips_o32_store_return_value): Rewrite.
3415 (mips_o32_xfer_return_value): New function.
3416 (mips_xfer_register): Tweak debug print message. Allow for
3417 buf_offset when dumping the value transfered.
3418
3419 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3420
3421 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3422 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3423 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3424 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3425 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3426
3427 2002-08-14 Michael Snyder <msnyder@redhat.com>
3428
3429 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3430
3431 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3432
3433 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3434 register.
3435 (P): New macro to define a register as a pseudo register.
3436 (R, R4, R8, R16, FR32, R64, R0): Updated.
3437 (struct variant): Add new fields for number of pseudo registers
3438 and number of total registers.
3439 (tot_num_registers): New macro replacing....
3440 (num_registers): ...deleted macro.
3441 (num_registers): New function.
3442 (num_pseudo_registers): New function.
3443 (variants): Update all variants to intialize new fields correctly.
3444 Postpone initialization of number of pseudo regs and real regs.
3445 (init_variants): New function.
3446 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3447 registers offsets.
3448
3449 2002-08-19 David Carlton <carlton@math.stanford.edu>
3450
3451 * valops.c (search_struct_field): Change error message to treat
3452 return value of 0 from value_static_field as meaning that field is
3453 optimized out.
3454 (value_struct_elt_for_reference): Ditto.
3455 * values.c (value_static_field): Treat an unresolved location the
3456 same as a nonexistent symbol. Fix PR gdb/635.
3457 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3458 enclosed. Fix PR gdb/574.
3459 * MAINTAINERS: Add self to Write After Approval list.
3460
3461 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3462
3463 * mips-tdep.c (mips_xfer_register): New function.
3464 (mips_n32n64_extract_return_value): Rewrite.
3465 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3466 instead of deprecated_extract_return_value.
3467
3468 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3469
3470 * rs6000-tdep.c (TDEP): Delete macro.
3471 (branch_dest): Replace use of TDEP macro with its body.
3472 (rs6000_pop_frame): Ditto.
3473 (rs6000_push_arguments): Ditto.
3474 (rs6000_skip_trampoline_code): Ditto.
3475 (rs6000_frame_saved_pc): Ditto.
3476 (rs6000_frame_chain): Ditto.
3477 (rs6000_register_name): Ditto.
3478 (rs6000_register_byte): Ditto.
3479 (rs6000_register_raw_size): Ditto.
3480 (rs6000_register_virtual_type): Ditto.
3481 (rs6000_register_convertible): Ditto.
3482 (rs6000_convert_from_func_ptr_addr): Ditto.
3483
3484 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3485
3486 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3487 conditionally.
3488 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3489 MIPS_LINUX_JB_ELEMENT_SIZE.
3490 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3491 for MAX_REGISTER_RAW_SIZE arrays.
3492 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3493 MIPS_LINUX_JB_ELEMENT_SIZE.
3494
3495 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3496
3497 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3498
3499 2002-08-19 Aidan Skinner <aidan@velvet.net>
3500
3501 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3502 ada-valprint.c ada-tasks.c.
3503 (YYFILES): Add ada-exp.y.
3504 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3505 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3506 (ada-exp.tab.o): New target.
3507
3508 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3509
3510 * regcache.c (regcache_xfer_part): New function.
3511 (regcache_raw_read_part): New function.
3512 (regcache_raw_write_part): New function.
3513 (regcache_cooked_read_part): New function.
3514 (regcache_cooked_write_part): New function.
3515 * regcache.h (regcache_raw_read_part): Declare.
3516 (regcache_raw_write_part): Declare.
3517 (regcache_cooked_read_part): Declare.
3518 (regcache_cooked_write_part): Declare.
3519
3520 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3521
3522 * remote.c (remote_open_1): Add async_p.
3523 (remote_async_open_1): Delete.
3524 (open_remote_target): Delete.
3525 (remote_open, extended_remote_open): Update calls to remote_open_1.
3526 (remote_async_open, extended_remote_async_open): Call
3527 remote_open_1 instead of remote_async_open_1.
3528
3529 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3530
3531 * blockframe.c: Fix a few coding standard violations.
3532
3533 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3534
3535 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3536 here from ...
3537 * config/i386/tm-i386sco5.h: ... here. File removed.
3538 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3539
3540 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3541 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3542 (TM_FILE): Set to tm-i386.h.
3543 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3544 * config/i386/tm-i386v.h: Remove file.
3545 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3546 instead of "i386/tm-i386v.h".
3547 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3548 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3549 "i386/tm-i386v.h".
3550 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3551 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3552 "i386/tm-i386.h".
3553
3554 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3555
3556 * config/i386/nm-i386v.h: Add protection against
3557 multiple-inclusion.
3558 (i386_register_u_addr): Remove prototype.
3559 (register_u_addr): New prototype.
3560 (REGISTER_U_ADDR): Redefine accordingly.
3561 * i386v-nat.c: Improve several comments.
3562 (i386_register_u_addr): Change signature and rename to
3563 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3564 ubase variable.
3565
3566 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3567
3568 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3569 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3570 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3571 deprecated_extract_return_value.
3572 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3573 rename mips_o32o64_push_arguments.
3574 (mips_gdbarch_init): Update.
3575 (mips_extract_return_value): Delete.
3576 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3577 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3578 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3579 (mips_n32n64_extract_return_value): Clone
3580 mips_extract_return_value.
3581 (mips_store_return_value): Delete.
3582 (mips_o32_store_return_value): Clone mips_store_return_value.
3583 (mips_o64_store_return_value): Clone mips_store_return_value.
3584 (mips_eabi_store_return_value): Clone mips_store_return_value.
3585 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3586
3587 2002-08-18 Aidan Skinner <aidan@velvet.net>
3588
3589 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3590 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3591
3592 2002-08-18 Aidan Skinner <aidan@velvet.net>
3593
3594 * ada-lang.c: Run through gdb_indent.sh.
3595 * ada-lang.h: Run through gdb_indent.sh.
3596 * ada-tasks.c: Run through gdb_indent.sh.
3597 * ada-typeprint.c: Run through gdb_indent.sh.
3598 * ada-valprint.c: Run through gdb_indent.sh.
3599
3600 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3601
3602 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3603 ABI.
3604
3605 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3606
3607 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3608
3609 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3610 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3611
3612 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3613 write_register_gen instead of write_register_bytes.
3614
3615 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3616 i[3456]-*-osf1mk* configurations have been made obsolete.
3617 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3618 i[3456]86-*-osf1mk* hosts obsolete.
3619 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3620 targets obsolete.
3621 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3622 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3623 config/i386/i386m3.mt, config/i386/nm-m3.h,
3624 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3625 config/i386/i386mk.mh, config/i386/i386mk.mt,
3626 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3627 obsolete.
3628 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3629 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3630 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3631
3632 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3633
3634 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3635 (hppa_value_returned_from_stack): Declare.
3636 (hppa_extract_return_value): Declare.
3637 * config/pa/hppa.mt: New file.
3638 * configure.tgt: Recognize hppa*-*-*.
3639 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3640
3641 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3642
3643 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3644 comment.
3645
3646 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3647
3648 * top.c (gdb_rl_operate_and_get_next): Make sure
3649 operate-and-get-next functions correctly even when the history
3650 list is completely filled.
3651
3652 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3653
3654 * MAINTAINERS (Target Instruction Set Architectures): Rename
3655 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3656 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3657 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3658 already listed under Host/Native.
3659
3660 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3661 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3662 mips*-*-*.
3663
3664 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3665
3666 * config/ia64/ia64.mt: New file.
3667 * config/alpha/alpha.mt: New file.
3668 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3669 ia64-linux-gnu. Mention that ia64-elf is broken.
3670 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3671
3672 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3673
3674 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3675 generic_func_frame_valid instead of func_frame_valid.
3676
3677 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3678
3679 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3680 procfs appears to be broken when debugging on multi-processor
3681 machines. So enable software single stepping in order to avoid
3682 using the procfs interface to do next/step operations, using
3683 internal breakpoints instead.
3684
3685 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3686 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3687 make this pc address equal to the value it would have if the
3688 system stepping capability was used. Also set a new flag used
3689 to ensure that we don't readjust the PC one more time later.
3690
3691 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3692 address by DECR_PC_AFTER_BREAK when software single step is
3693 in use for this architecture, as this has already been taken
3694 care of in handle_inferior_event().
3695
3696 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3697
3698 * infrun.c (handle_inferior_event): Minor reformatting, to make
3699 a rather long condition expression easier to read.
3700
3701 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3702
3703 * Makefile.in (gdbtk.o): Move to end of file.
3704 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3705 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3706 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3707 (gdbtk-wrapper.o, gdbres.o): Ditto.
3708
3709 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3710
3711 * Makefile.in (copying.o): Separate out compile rule.
3712 (hpux-thread.o, procfs.o, signals.o): Ditto.
3713 (v850ice.o, z8k-tdep.o): Ditto.
3714 (tui-file.o): Move to TUI section.
3715 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3716 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3717
3718 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3719
3720 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3721 skip_trampoline_code, for better namespace-proofing.
3722
3723 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3724
3725 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3726
3727 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3728
3729 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3730
3731 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3732 signal, check whether we hit a breakpoint before checking for a
3733 single step breakpoint. Otherwise, GDB fails to notice that a
3734 breakpoint has been hit when stepping onto a breakpoint.
3735
3736 2002-08-16 Keith Seitz <keiths@redhat.com>
3737
3738 * gdb-events.sh (clear_gdb_event_hooks): New function.
3739 * gdb-events.c: Regenerate.
3740 * gdb-events.h: Regenerate.
3741
3742 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3743
3744 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3745 not_a_sw_breakpoint.
3746 * breakpoint.h (bpstat_stop_status): Add parameter names.
3747
3748 2002-08-16 Grace Sainsbury <graces@redhat.com>
3749
3750 * remote.c (remote_insert_hw_breakpoint)
3751 (remote_remove_hw_breakpoint): Fix calculation of length field
3752 for Z-packet.
3753
3754 2002-08-15 Michael Snyder <msnyder@redhat.com>
3755
3756 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3757 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3758 (supply_fpregset): Ditto.
3759
3760 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3761 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3762 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3763 (TARGET_READ_SP): Delete.
3764 (DO_REGISTERS_INFO): Delete.
3765 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3766 Delete.
3767 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3768 from macros to functions.
3769
3770 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3771 (mips_register_convertible, mips_register_convert_to_virtual,
3772 mips_register_convert_to_raw): Make static.
3773 (mips_read_sp): New function.
3774 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3775 (mips_do_registers_info): Make static.
3776 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3777 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3778 (mips_register_convert_from_type, mips_register_convert_to_type):
3779 New functions.
3780 (mips_gdbarch_init): Set up function_start_offset,
3781 register_virtual_size, pc_in_sigtramp.
3782
3783 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3784
3785 * infcmd.c (vector_info): New function.
3786 (_initialize_infcmd): Add command "info vector".
3787 (print_vector_info): New function.
3788
3789 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3790 * gdbarch.h, gdbarch.c: Regenerate.
3791
3792 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3793
3794 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3795 ``print_all''. Only print vector registers when ``print_all''.
3796
3797 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3798
3799 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3800 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3801
3802 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3803 Add `args' parameter.
3804 * gdbarch.h, gdbarch.c: Regenerate.
3805
3806 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3807
3808 * infcmd.c (float_info): Call print_float_info.
3809 (print_float_info): New function. By default, print the
3810 floating-point registers.
3811
3812 * arch-utils.h (default_print_float_info): Delete declaration.
3813 * arch-utils.c (default_print_float_info): Delete function.
3814
3815 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3816
3817 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3818 out define.
3819
3820 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3821 FRAME.
3822
3823 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3824 * configure.host: Make i[3456]86-*-aix host obsolete.
3825 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3826 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3827 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3828 config/i386/xm-i386aix.h: Make files obsolete.
3829 * i386aix-nat.c: Make file obsolete.
3830 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3831 (i386aix-nat.o): Make target obsolete.
3832
3833 * config/i386/nm-gnu.h: Removed.
3834 * config/i386/nm-i386gnu.h: New file.
3835 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3836 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3837 Moved here from ...
3838 * config/i386/tm-i386gnu.h: ... here. Removed.
3839 * config/i386/xm-i386gnu.h: Removed.
3840 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3841 (NAT_FILE): Set to nm-i386gnu.h.
3842 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3843 * i386-tdep.c: New file.
3844 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3845 (i386gnu-tdep.o): Specify dependencies.
3846
3847 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3848
3849 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3850 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3851 Adjust a few comments to reflect reality a bit closer.
3852 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3853 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3854 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3855 target_insert_watchpoint, target_remove_watchpoint):
3856 Move defines to ...
3857 * config/i386/nm-i386sco5.h: ... here.
3858 (kernel_u_size): Add prototype. Improve a few comments and add
3859 protection against multiple inclusion.
3860
3861 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3862 out define.
3863
3864 * uw-thread.c (SP_ARG0): Define if not already defined.
3865 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3866
3867 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3868
3869 * config/i386/tm-i386.h: Don't include "regcache.h".
3870
3871 * i387-tdep.h (i387_print_float_info): New prototype.
3872 * i387-tdep.c (print_i387_value, print_i387_ext,
3873 print_i387_status_word, print_i387_control_word): Add `struct
3874 ui_file *' argument and use it for output.
3875 (i387_print_float_info): Renamed from i387_float_info. Add
3876 `struct gdbarch *' and `struct ui_file *' arguments and use the
3877 latter for output.
3878 * i386-tdep.c: Include "i387-tdep.h".
3879 (i386_gdbarch_init): Set print_float_info.
3880 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3881 (FLOAT_INFO): Remove define.
3882
3883 2002-08-13 Michael Snyder <msnyder@redhat.com>
3884
3885 * mips-tdep.c (mips_push_arguments): Rename to
3886 mips_eabi_push_arguments, and tune for EABI.
3887 (MIPS_REGS_HAVE_HOME_P): Delete.
3888 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3889 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3890 Delete references to mips_regs_have_home_p.
3891
3892 2002-08-14 Keith Seitz <keiths@redhat.com>
3893
3894 * Makefile.in (install-gdbtk): Create insight plugin directory.
3895 Install plugins.tcl file.
3896
3897 2002-08-14 Keith Seitz <keiths@redhat.com>
3898
3899 * configure.in: Move SUBDIRS to near top of the file so that
3900 --enable options may add things to it.
3901 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3902 * configure: Regenerate.
3903
3904 2002-08-13 Michael Snyder <msnyder@redhat.com>
3905
3906 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3907 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3908 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3909
3910 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3911
3912 * vax-tdep.c (vax_get_saved_register): Delete function.
3913 (vax_gdbarch_init): Update.
3914 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3915 (ns32k_gdbarch_init): Update.
3916 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3917 (alpha_gdbarch_init): Update.
3918
3919 2002-08-13 Andrew Cagney <cagney@redhat.com>
3920
3921 * regcache.c (init_regcache_descr): Overallocate the
3922 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3923 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3924 nr_raw_registers.
3925 (set_register_cached): Add range checking assertions. Use
3926 current_regcache.
3927
3928 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3929
3930 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3931 numbers for MMX registers.
3932
3933 2002-08-13 Andrew Cagney <cagney@redhat.com>
3934
3935 * i386-tdep.c (i386_gdbarch_init): Use
3936 generic_unwind_get_saved_register.
3937
3938 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3939
3940 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3941 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3942 target vector.
3943 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3944 Delete. Add comment regarding this now-deleted target method.
3945
3946 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3947
3948 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3949 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3950 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3951 real PC and the page number (if it's within the memory bank window).
3952 (m68hc11_pseudo_register_write): Likewise when saving.
3953 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3954 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3955 (m68hc11_register_raw_size): And use 32-bit for it.
3956 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3957 16K memory bank is used by the prog; also use the virtual pc.
3958
3959 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3960
3961 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3962 (m68hc11_gdbarch_init): Install it in gdbarch.
3963 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3964 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3965 (MSYMBOL_SIZE): New for documentation.
3966 (insn_return_kind): Enum to specify how a function returns.
3967 (frame_extra_info): Cleanup and record the return mode.
3968 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3969 register in address computation.
3970 (m68hc11_get_return_insn): New to obtain the return instruction used
3971 by the function.
3972 (m68hc11_frame_init_saved_regs): Take into account the return
3973 instruction used by the function for far and interrupt functions.
3974 (m68hc11_init_extra_frame_info): Take into account page register.
3975 (m68hc11_frame_args_address): Adjust according to the return mode.
3976 (show_regs): Print page register only when it's used.
3977
3978 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3979
3980 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3981 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3982 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3983 registers.
3984 (m68hc11_register_raw_size): Likewise.
3985
3986 2002-08-13 Andrew Cagney <cagney@redhat.com>
3987
3988 * i386-tdep.c (i386_register_name): Handle mmx registers.
3989 (mmx_regnum_p): New function.
3990 (i386_mmx_names): New array.
3991 (mmx_num_regs): New variable.
3992 (i386_pseudo_register_read): New function.
3993 (i386_pseudo_register_write): New function.
3994 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3995
3996 * regcache.c (regcache_raw_read_unsigned): New function.
3997 (regcache_raw_read_signed): New function.
3998 * regcache.h (regcache_raw_read_unsigned): Declare.
3999 (regcache_raw_read_signed): Declare.
4000
4001 2002-08-13 Andrew Cagney <cagney@redhat.com>
4002
4003 * regcache.c (regcache_raw_read_as_address): Delete function.
4004 (regcache_cooked_read_signed): New function.
4005 (regcache_cooked_read_unsigned): New function.
4006 * regcache.h (regcache_cooked_read_signed): Declare.
4007 (regcache_cooked_read_unsigned): Declare.
4008 (regcache_raw_read_as_address): Delete declaration.
4009
4010 * blockframe.c (generic_read_register_dummy): Use
4011 regcache_cooked_read_unsigned.
4012 * i386-tdep.c (i386_extract_struct_value_address): Use
4013 regcache_cooked_read_unsigned.
4014
4015 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4016
4017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4018 double sizes according to ELF ABI flags.
4019 (gdbarch_tdep): Record elf_flags.
4020
4021 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4022
4023 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4024 (m6812_prolog): They can appear in 68HC12 function prologue.
4025 (m68hc11_frame_chain): Cleanup.
4026
4027 2002-08-12 Andrew Cagney <cagney@redhat.com>
4028
4029 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4030 declarations.
4031 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4032 (i386_linux_register_raw_size): Delete function.
4033 (i386_linux_init_abi): Update.
4034 * i386-tdep.c (i386_register_raw_size): Delete function.
4035 (i386_register_byte): Delete function.
4036 (i386_gdbarch_init): Update.
4037 (i386_register_size): Delete array.
4038 (i386_register_offset): Delete array.
4039
4040 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4041 (REGISTER_RAW_SIZE): Delete macro.
4042 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4043 (REGISTER_BYTE): Delete macro.
4044
4045 2002-08-11 Aidan Skinner <aidan@velvet.net>
4046
4047 * ada-lang.c (ada_lookup_partial_symbol)
4048 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4049 prototype names so that grep ^func works properly.
4050
4051 * ada-lang.c (ada_array_element_type)
4052 (ada_lookup_partial_symbol): Fix typos in parameter list.
4053
4054 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4055 Fix prototype names so that grep ^func works properly.
4056
4057 2002-08-10 Andrew Cagney <cagney@redhat.com>
4058 Elena Zannoni <ezannoni@redhat.com>
4059 Martin M. Hunt <hunt@redhat.com>
4060
4061 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4062 (build_builtin_type_vec128i): Set the vector bit.
4063 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4064 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4065 (build_builtin_type_vec64): New function.
4066 (build_builtin_type_vec64i): New function.
4067 (build_gdbtypes): Initialize builtin_type_vec64 and
4068 builtin_type_vec64i.
4069
4070 2002-08-09 Andrew Cagney <cagney@redhat.com>
4071
4072 * regcache.c (regcache_dump): Compare the register offset
4073 with REGISTER_BYTE.
4074 * arch-utils.c (generic_register_byte): New function.
4075 * arch-utils.h (generic_register_byte): Declare.
4076 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4077 * gdbarch.h, gdbarch.c: Regenerate.
4078
4079 2002-08-09 Andrew Cagney <cagney@redhat.com>
4080
4081 * regcache.c: Include "gdbcmd.h"
4082 (_initialize_regcache): Add commands "maintenance print
4083 registers", "maintenance print raw-registers" and "maintenance
4084 print cooked-registers".
4085 (enum regcache_dump_what): Define.
4086 (dump_endian_bytes): New function.
4087 (regcache_dump): New function.
4088 (regcache_print): New function.
4089 (maintenance_print_registers): New function.
4090 (maintenance_print_raw_registers): New function.
4091 (maintenance_print_cooked_registers): New function.
4092 * Makefile.in (regcache.o): Update dependencies.
4093
4094 2002-08-09 Michael Snyder <msnyder@redhat.com>
4095
4096 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4097 (mips_push_arguments): Correct some comments. Use paddr_nz
4098 for printing addresses in debug output. Replace static
4099 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4100 (mips_n32n64_push_arguments): New function, cloned from
4101 mips_push_arguments and tuned for the n32/n64 ABI.
4102 (mips_push_register): Buffer needs dynamic allocation.
4103 (mips_print_register): Ditto.
4104 (do_gp_register_row): Ditto.
4105 (mips_store_return_value): Ditto.
4106 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4107
4108 2002-08-09 Don Howard <dhoward@redhat.com>
4109
4110 * memattr.c (mem_info_command): Print special case of upper bound
4111 as max CORE_ADDR + 1.
4112
4113 2002-08-08 Michael Snyder <msnyder@redhat.com>
4114
4115 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4116 returns structs by ref if they're too big to fit in two registers.
4117
4118 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4119
4120 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4121 saved regs value.
4122 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4123 mips_find_saved_regs().
4124 (mips_pop_frame): Likewise.
4125
4126 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4127
4128 * blockframe.c (frame_saved_regs_register_unwind): Revise
4129 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4130 frames are in use.
4131
4132 2002-08-09 Grace Sainsbury <graces@redhat.com>
4133
4134 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4135 T-packets; the 'a' is not taken as a register number.
4136 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4137 (remote_stopped_data_address): New functions; add to target
4138 vector.
4139 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4140 prototypes to match other implementations of this
4141 function. replace integer argument with pointer -- the length
4142 field in the Z-packet is the length of what is pointed to or 1 if
4143 pointer is null. Add to target vector.
4144 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4145 target vector.
4146
4147 From Mark Salter:
4148 * remote.c (remote_wait): Add support to extract optional
4149 watchpoint information from T-packet. Ignore unrecognized
4150 optional info in T-packet.
4151 (remote_async_wait): Ditto.
4152
4153 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4154
4155 * cli/cli-dump.c: Change fopen modes to use binary open modes
4156 as defined in include/fopen-bin.h throughout.
4157
4158 2002-08-08 Michael Snyder <msnyder@redhat.com>
4159
4160 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4161
4162 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4163
4164 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4165 assertion failure by returning early after a warning.
4166
4167 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4168
4169 * mips-tdep.c (mips_find_saved_regs): Make static.
4170 (mips_frame_init_saved_regs): New function.
4171 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4172 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4173 (mips_find_saved_regs): Delete declaration.
4174
4175 2002-08-08 Grace Sainsbury <graces@redhat.com>
4176
4177 * remote.c (remote_wait, remote_async_wait): Change
4178 thread_num from int to ULONGEST.
4179 (unpack_varlen_hex): Change result parameter from
4180 int * to ULONGEST *.
4181
4182 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4183
4184 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4185 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4186 powerpc*-*-*.
4187 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4188
4189 2002-08-08 Andrew Cagney <cagney@redhat.com>
4190
4191 * gcore.c (override_derive_stack_segment): Delete variable.
4192 (preempt_derive_stack_segment): Delete function.
4193 (derive_stack_segment): Delete function.
4194 (default_derive_stack_segment): Renamed to derive_stack_segment.
4195 (override_derive_heap_segment): Delete variable.
4196 (preempt_derive_heap_segment): Delete function.
4197 (derive_heap_segment): Delete function.
4198 (default_derive_heap_segment): Rename to derive_heap_segment.
4199
4200 2002-08-06 Michael Snyder <msnyder@redhat.com>
4201
4202 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4203 * mips-tdep.c (mips_EABI_use_struct_convention,
4204 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4205 New functions. (mips_use_struct_convention): Delete.
4206 (mips_gdbarch_init): set use_gdbarch_convention.
4207
4208 2002-08-06 Michael Snyder <msnyder@redhat.com>
4209
4210 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4211 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4212 mips_o32_reg_struct_has_addr): New functions.
4213 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4214
4215 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4216
4217 * regcache.c (pseudo_register): Delete function.
4218 (fetch_register): Delete function.
4219 (store_register): Delete function.
4220 (regcache_raw_read, legacy_read_register_gen): Use
4221 target_fetch_registers instead of fetch_register.
4222 (legacy_write_register_gen, regcache_raw_write): Use
4223 target_store_register instead of store_register.
4224 (write_register_bytes): Ditto.
4225
4226 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4227 (STORE_PSEUDO_REGISTER): Delete.
4228 * gdbarch.h, gdbarch.c: Regenerate.
4229
4230 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4231
4232 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4233 write dump file binary.
4234
4235 2002-08-05 Michael Snyder <msnyder@redhat.com>
4236
4237 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4238 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4239 (mips_gdbarch_init): Set N32 target to be mips64.
4240
4241 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4242
4243 * frame.c (find_saved_register): Break out of loop once saved
4244 register address is found. Don't mention sparc in loop comment
4245 anymore.
4246
4247 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4248
4249 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4250 mips_default_saved_regsize to 8.
4251
4252 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4253
4254 * gcore.c: Do not include <sys/procfs.h>.
4255 * Makefile.in (gcore.o): Update dependencies.
4256
4257 2002-08-06 Andrew Cagney <cagney@redhat.com>
4258
4259 * configure.tgt: Make arc-*-* obsolete.
4260 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4261 * MAINTAINERS: Make arc-elf obsolete.
4262 * arc-tdep.c: Make file obsolete.
4263 * config/arc/arc.mt: Ditto.
4264 * config/arc/tm-arc.h: Ditto.
4265
4266 2002-08-05 Theodore A. Roth <troth@verinet.com>
4267
4268 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4269
4270 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4271
4272 * mcore-tdep.c (mcore_gdbarch_init): Use
4273 generic_unwind_get_saved_register instead of
4274 generic_get_saved_register.
4275 * v850-tdep.c (v850_gdbarch_init): Ditto.
4276 * frv-tdep.c (frv_gdbarch_init): Ditto.
4277 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4278 * s390-tdep.c (s390_gdbarch_init): Ditto.
4279 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4280 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4281 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4282
4283 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4284
4285 * objfiles.h: Add missing #include "symfile.h"
4286
4287 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4288
4289 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4290
4291 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4292 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4293 of FIELD_BITSIZE.
4294
4295 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4296
4297 * NEWS: Cleanup and nitpick.
4298
4299 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4300
4301 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4302
4303 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4304
4305 * Makefile.in (gdbtk-bp.o): Update dependencies.
4306 (gdbtk-register.o): Ditto.
4307 (gdbtk-varobj.o): Ditto.
4308
4309 2002-08-03 Andrew Cagney <cagney@redhat.com>
4310
4311 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4312 m68hc11_fetch_pseudo_register.
4313 (m68hc11_pseudo_register_write): Replace
4314 m68hc11_store_pseudo_register.
4315 (m68hc11_gdbarch_init): Update.
4316
4317 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4318
4319 * gdbarch.sh: Include "gdb_string.h".
4320 * gdbarch.c: Regenerate.
4321
4322 * regcache.c: Include "gdb_string.h".
4323 * ax-general.c: Ditto.
4324 * varobj.c: Ditto.
4325 * std-regs.c: Ditto.
4326 * fbsd-proc.c: Ditto.
4327 * thread.c: Ditto.
4328
4329 * Makefile.in (regcache.o): Update dependencies.
4330 (thread.o, gdbarch.o): Ditto.
4331 (ax-general.o, gdbarch.o): Ditto.
4332 (varobj.o, std-regs.o): Ditto.
4333 (fbsd-proc.o): Specify dependencies.
4334
4335 2002-08-02 Andrew Cagney <cagney@redhat.com>
4336
4337 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4338 regnum.
4339 (regcache_cooked_write): Ditto.
4340
4341 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4342
4343 * regcache.c (regcache_cooked_read): New function.
4344 (regcache_cooked_write): New function.
4345 (read_register_gen): Rewrite using regcache_cooked_read.
4346 (write_register_gen): Rewrite using regcache_cooked_write.
4347
4348 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4349 Declare.
4350
4351 2002-08-02 Andrew Cagney <cagney@redhat.com>
4352
4353 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4354 Replace the architecture methods register_read and register_write.
4355 * gdbarch.h, gdbarch.c: Regenerate.
4356 * regcache.c (init_regcache_descr): Update.
4357 (read_register_gen): Update.
4358 (write_register_gen): Update.
4359 (supply_register): Update comment.
4360
4361 * sh-tdep.c (sh_gdbarch_init): Update.
4362 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4363 `regcache' and `gdbarch' parameters. Make `buffer' a void
4364 pointer. Update code.
4365 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4366 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4367 void pointer. Update code.
4368 (sh64_register_write): Delete.
4369 (sh4_register_read): Delete.
4370 (sh64_register_read): Delete.
4371 (sh4_register_write): Delete.
4372 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4373 void pointer, `to' parameter a void pointer.
4374 (sh_sh64_register_convert_to_raw): Ditto.
4375
4376 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4377
4378 * mips-tdep.c (mips_register_virtual_type): Use architecture
4379 invariant return values.
4380
4381 2002-08-01 Andrew Cagney <cagney@redhat.com>
4382
4383 * linux-proc.c: Include "gdb_string.h".
4384 * Makefile.in (linux-proc.o): Update dependency list.
4385
4386 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4387
4388 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4389 comment.
4390
4391 2002-08-01 Grace Sainsbury <graces@redhat.com>
4392
4393 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4394 to_insert_watchpoint, to_remove_watchpoint,
4395 to_stopped_by_watchpoint, to_stopped_data_address,
4396 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4397 target vecctor. Define their corresponding macros so they call
4398 them.
4399
4400 * target.c: Add default and debug versions of for
4401 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4402 to_insert_watchpoint, to_remove_watchpoint,
4403 to_stopped_by_watchpoint, to_stopped_data_address,
4404 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4405
4406 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4407
4408 * mips-tdep.c (mips_register_virtual_type): New function.
4409 (mips_gdbarch_init): Register mips_register_virtual_type()
4410 with gdbarch machinery.
4411 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4412 this file instead of tm-bigmips.h.
4413 (MIPS_REGSIZE): Delete this macro.
4414 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4415 multiarch version in mips-tdep.c will be found.
4416
4417 2002-08-01 Andrew Cagney <cagney@redhat.com>
4418
4419 * NEWS: Menion that CHILL has been made obsolete.
4420
4421 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4422 * stabsread.c (read_range_type): Ditto.
4423 * gdbtypes.h: Ditto.
4424 * language.c (binop_type_check): Ditto.
4425 (binop_result_type): Ditto.
4426 (integral_type): Ditto.
4427 (character_type): Ditto.
4428 (string_type): Ditto.
4429 (boolean_type): Ditto.
4430 (structured_type): Ditto.
4431 (lang_bool_type): Ditto.
4432 (binop_type_check): Ditto.
4433 * language.h (_LANG_chill): Ditto.
4434 * dwarfread.c (set_cu_language): Ditto.
4435 * dwarfread.c (CHILL_PRODUCER): Ditto.
4436 * dwarfread.c (handle_producer): Ditto.
4437 * expression.h (enum exp_opcode): Ditto.
4438 * eval.c: Ditto for comments.
4439 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4440 * expprint.c (print_subexp): Ditto.
4441 (print_subexp): Ditto.
4442 * valops.c (value_cast): Ditto.
4443 (search_struct_field): Ditto.
4444 * value.h (COERCE_VARYING_ARRAY): Ditto.
4445 * symfile.c (init_filename_language_table): Ditto.
4446 (add_psymbol_with_dem_name_to_list): Ditto.
4447 * valarith.c (value_binop): Ditto.
4448 (value_neg): Ditto.
4449 * valops.c (value_slice): Ditto.
4450 * symtab.h (union language_specific): Ditto.
4451 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4452 (SYMBOL_DEMANGLED_NAME): Ditto.
4453 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4454 * defs.h (enum language): Ditto.
4455 * symtab.c (got_symtab): Ditto.
4456 * utils.c (fprintf_symbol_filtered): Ditto.
4457
4458 * ch-typeprint.c: Make file obsolete.
4459 * ch-valprint.c: Make file obsolete.
4460 * ch-lang.h: Make file obsolete.
4461 * ch-exp.c: Make file obsolete.
4462 * ch-lang.c: Make file obsolete.
4463
4464 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4465 CHILL_LIB.
4466 (TARGET_FLAGS_TO_PASS): Ditto.
4467 (CHILLFLAGS): Obsolete.
4468 (CHILL): Obsolete.
4469 (CHILL_FOR_TARGET): Obsolete.
4470 (CHILL_LIB): Obsolete.
4471 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4472 ch-valprint.c.
4473 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4474 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4475 ch-lang.o.
4476 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4477 targets.
4478
4479 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4480
4481 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4482 This does not change anything at the moment, but will be helpful
4483 later when full Ada support is integrated.
4484
4485 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4486
4487 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4488 help message.
4489
4490 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4491
4492 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4493 and save it in a local variable. Use variable in later test.
4494
4495 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4496
4497 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4498 test. (Thanks to Daniel Jacobowitz.)
4499
4500 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4501
4502 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4503 (mips_abi_strings): Add "n64".
4504 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4505
4506 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4507
4508 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4509 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4510
4511 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4512
4513 * utils.c (host_pointer_to_address, address_to_host_pointer):
4514 Use gdb_assert() instead of explicit call to internal_error().
4515
4516 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4517
4518 * Makefile.in (rs6000-nat.o): Update dependencies.
4519
4520 From Nicholas Duffek:
4521 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4522 (aix-thread.o): New rule.
4523 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4524 * config/powerpc/aix432.mh: New file.
4525
4526 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4527
4528 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4529 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4530 (fetch_core_registers, ppc_linux_supply_gregset)
4531 (ppc_linux_supply_fpregset): New functions.
4532 (ppc_linux_regset_core_fns): New.
4533 (_initialize_ppc_linux_tdep): Call add_core_fns.
4534 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4535 and ppc_linux_supply_gregset.
4536 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4537 (supply_fpregset): Call ppc_linux_supply_fpregset.
4538 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4539 corelow.o.
4540 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4541
4542 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4543
4544 * symtab.c (lookup_symbol): Demangle before lowercasing.
4545
4546 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4547
4548 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4549 declaration.
4550 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4551 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4552 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4553 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4554 "gdb_string.h".
4555 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4556 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4557 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4558 (avr-tdep.o, mon960-rom.o): Ditto.
4559 (aout_stabs_gnu_h): Define.
4560 (symtab_h): Remove $(gdb_obstack_h).
4561
4562 2002-07-30 Jim Blandy <jimb@redhat.com>
4563
4564 Patch from David Carlton <carlton@math.stanford.edu>:
4565 * gdbinit.in: Move the `dir' commands that add GDB's own source
4566 directory to the search path to the end, so that the `gdb' source
4567 directory will be searched first.
4568
4569 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4570
4571 * gdb_obstack.h: New file.
4572 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4573 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4574 * objfiles.h: Include "gdb_obstack.h".
4575 * Makefile.in (gdb_obstack_h): Define.
4576 (symtab_h): Add $(gdb_obstack_h).
4577 (objfiles_h): Add $(gdb_obstack_h).
4578
4579 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4580 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4581 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4582 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4583 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4584 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4585 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4586 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4587
4588 * Makefile.in (bcache.o): Update dependencies.
4589 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4590 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4591 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4592 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4593 (stabsread.o, symfile.o, symmisc.o): Ditto.
4594 (symtab.o, typeprint.o, macroexp.o): Ditto.
4595 (macrotab.o, mdebugread.o): Ditto.
4596 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4597 (coff_ecoff_h, aout_aout64_h): Define.
4598 (aout_stabs_gnu_h, libaout_h): Define.
4599
4600 2002-07-29 Andrew Cagney <cagney@redhat.com>
4601
4602 * regcache.c (struct regcache_descr): Rename nr_registers to
4603 nr_cooked_registers. Revise comments describing the structure
4604 member fields.
4605 (init_regcache_descr): Update.
4606 (init_legacy_regcache_descr): Update.
4607 (read_register_gen, write_register_gen): When a cooked register in
4608 the raw register range, directly access the value from the raw
4609 register cache.
4610
4611 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4612
4613 * z8k-tdep.c: Do not include "obstack.h".
4614 * h8300-tdep.c, h8500-tdep.c: Ditto.
4615 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4616 * valprint.c, v850-tdep.c: Ditto.
4617 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4618 * mn10200-tdep.c: Ditto.
4619
4620 * Makefile.in (z8k-tdep.o): Update dependencies.
4621 (m68hc11-tdep.o, valprint.o): Ditto.
4622 (v850-tdep.o, d10v-tdep.o): Ditto.
4623 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4624 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4625 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4626 (sh_opc_h, gdb_sim_sh_h): Define.
4627 (elf_sh_h, elf_bfd_h): Define.
4628 (opcode_m68hc11_h): Define.
4629 (OPCODES_SRC, OPCODES_DIR): define.
4630 (OPCODES): Use $(OPCODES_DIR).
4631 (gdb_sim_d10v_h): Rename sim_d10v_h.
4632 (gdb_sim_arm_h): Rename sim_arm_h.
4633
4634 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4635
4636 * utils.c (host_pointer_to_address, address_to_host_pointer):
4637 Change internal_error() message to indicate function responsible
4638 for the error.
4639
4640 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4641
4642 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4643 calls to local_hex_string_custom().
4644
4645 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4646
4647 * irix5-nat.c: Move IRIX shared library support from here...
4648 * solib-irix.c: ...to here. Revised substantially to work with
4649 generic solib framework.
4650
4651 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4652 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4653 * mips-irix-tdep.c: New file.
4654
4655 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4656 (mips-irix-tdep.o, solib-irix.o): New rules.
4657 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4658 solib-irix.o.
4659 * config/mips/irix6.mt (TDEPFILES): Likewise.
4660 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4661
4662 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4663
4664 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4665 disabled (via ``#if 0'') includes.
4666
4667 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4668
4669 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4670 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4671 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4672 Add support for the fpscr register.
4673 * rs6000-nat.c (regmap, fetch_inferior_registers)
4674 (store_inferior_registers, fetch_core_registers): Likewise.
4675
4676 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4677
4678 * rs6000-nat.c (language.h): Include.
4679 (special_regs): Delete this array.
4680 (regmap): New function.
4681 (fetch_register, store_register): Use regmap() to map gdb
4682 register numbers to ptrace register numbers. Also, use
4683 outputs from regmap() to make decisions regarding type of
4684 ptrace() call to make. In particular, don't compare against
4685 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4686 (fetch_inferior_registers, store_inferior_registers): Where
4687 possible, obtain register numbers from tdep struct. Don't
4688 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4689 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4690 (LAST_UISA_SP_REGNUM): Delete.
4691
4692 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4693
4694 * rs6000-nat.c (ppc-tdep.h): Include.
4695 (fetch_registers, store_register, fetch_core_registers): Don't
4696 access registers[] directly. Instead, use supply_register() or
4697 regcache_collect() as appropriate.
4698 (find_toc_address): Format hex address with local_hex_string().
4699
4700 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4701
4702 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4703 bfd/elf32-frv.c.
4704
4705 2002-07-24 Tom Tromey <tromey@redhat.com>
4706
4707 * jv-exp.y: Marked all strings with _().
4708 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4709 internal_error.
4710 (MethodInvocation, CastExpression, parse_number, yyerror,
4711 java_type_from_name, push_expression_name, yylex): Typo fixes.
4712
4713 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4714
4715 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4716 (tee_file_flush, tee_file_write, tee_file_fputs)
4717 (tee_file_isatty): New.
4718 * ui-file.h (tee_file_new): Add prototype.
4719
4720 2002-07-24 Aidan Skinner <aidan@velvet.net>
4721
4722 * ada-lang.c: Change k&r style function definitions to prototyped
4723 form.
4724 * ada-typeprint.c: Change k&r style function definitions to prototyped
4725 form.
4726 * ada-valprint.c: Change k&r style function definitions to prototyped
4727 form.
4728
4729 2002-07-24 Andrew Cagney <cagney@redhat.com>
4730
4731 * README: Remove reference to remote-bug.
4732 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4733 remote-bug.c.
4734 (m88k-nat.o): Delete rule.
4735 (m88k-tdep.o): Delete rule.
4736 (remote-bug.o): Delete rule.
4737 * MAINTAINERS: Mark as obsolete.
4738 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4739 * m88k-tdep.c: Make file obsolete.
4740 * config/m88k/m88k.mh: Ditto.
4741 * config/m88k/delta88v4.mh: Ditto.
4742 * config/m88k/delta88v4.mt: Ditto.
4743 * config/m88k/delta88.mt: Ditto.
4744 * config/m88k/delta88.mh: Ditto.
4745 * remote-bug.c: Ditto.
4746 * config/m88k/tm-delta88.h: Ditto.
4747 * config/m88k/nm-delta88v4.h: Ditto.
4748 * config/m88k/xm-delta88.h: Ditto.
4749 * config/m88k/xm-dgux.h: Ditto.
4750 * config/m88k/tm-m88k.h: Ditto.
4751 * config/m88k/nm-m88k.h: Ditto.
4752 * config/m88k/tm-delta88v4.h: Ditto.
4753 * m88k-nat.c: Ditto.
4754 * cxux-nat.c: Ditto.
4755 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4756 and m88*-*-* obsolete.
4757 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4758 m88*-*-* obsolete.
4759
4760 2002-07-24 Andrew Cagney <cagney@redhat.com>
4761
4762 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4763 constant. Same for local pointer variables.
4764 (extract_signed_integer): Ditto.
4765 * defs.h (extract_unsigned_integer): Update.
4766 (extract_signed_integer): Update.
4767
4768 2002-07-24 Andrew Cagney <cagney@redhat.com>
4769
4770 * regcache.c (regcache_raw_write): Change buf parameter to a
4771 constant void pointer.
4772 (regcache_raw_read): Change buf parameter to a void pointer.
4773 (legacy_write_register_gen): Change myaddr parameter a constant
4774 void pointer.
4775 (supply_register): Change val parameter to a const void pointer.
4776 * regcache.h (regcache_raw_write): Update declaration.
4777 (regcache_raw_read): Update declaration.
4778 (supply_register): Update declaration.
4779
4780 2002-07-24 Tom Tromey <tromey@redhat.com>
4781
4782 * defs.h (gdb_readline_wrapper): Declare.
4783 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4784 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4785 * top.c (gdb_readline_wrapper): New function.
4786 (command_line_input): Use it.
4787
4788 2002-07-24 Andrew Cagney <cagney@redhat.com>
4789
4790 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4791 regcache_read and regcache_write.
4792 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4793 * regcache.c: Update.
4794 * sh-tdep.c (sh64_push_arguments): Update comment.
4795 (sh_pseudo_register_read): Update.
4796 (sh_pseudo_register_write): Update.
4797 (sh4_register_read): Update.
4798 (sh4_register_write): Update.
4799 (sh64_pseudo_register_read): Update.
4800 (sh64_pseudo_register_write): Update.
4801 (sh64_register_read): Update.
4802 (sh64_register_write): Update.
4803 * i386-tdep.c (i386_extract_return_value): Update.
4804 (i386_extract_struct_value_address): Update.
4805 (i386_extract_return_value): Update.
4806 * blockframe.c (generic_read_register_dummy): Update.
4807 (generic_call_dummy_register_unwind): Update
4808 * infrun.c (write_inferior_status_register): Update.
4809
4810 2002-07-23 Jim Blandy <jimb@redhat.com>
4811
4812 * parser-defs.h (expression_context_pc): Make this extern.
4813 (Thanks to Michael Snyder.)
4814
4815 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4816
4817 GDB 5.2.1 released from 5.2 branch.
4818 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4819 * README: Update to mention 5.2.1.
4820
4821 2002-07-23 Mark Salter <msalter@redhat.com>
4822
4823 * remote.c (remote_read_bytes): Fix check for error.
4824
4825 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4826
4827 * aix-thread.c (language.h): Include.
4828 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4829 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4830 Print newlines at end of debug messages.
4831 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4832 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4833
4834 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4835
4836 * aix-thread.c (ppc-tdep.h): Include.
4837 (special_register_p): New function.
4838 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4839 (store_regs_user_thread): Use register number information from
4840 gdbarch_tdep struct instead of hardcoded offsets relative to
4841 FIRST_UISA_SP_REGNUM.
4842 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4843 special_register_p() instead of using FPLAST_REGNUM and
4844 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4845 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4846 will be MQ's register number.
4847
4848 2002-07-22 Michael Snyder <msnyder@redhat.com>
4849
4850 * aix-thread.c (ops): Rename to aix_thread_ops.
4851 (base_ops): Rename to base_target.
4852 (ops_attach): Rename to aix_thread_attach.
4853 (ops_detach): Rename to aix_thread_detach.
4854 (ops_resume): Rename to aix_thread_detach.
4855 (ops_wait): Rename to aix_thread_wait.
4856 (ops_kill): Rename to aix_thread_kill.
4857 (init_ops): Rename to init_aix_thread_ops.
4858 (ops_fetch_register): Rename to aix_thread_fetch_register.
4859 (ops_store_register): Rename to aix_thread_store_register.
4860 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4861 (ops_thread_alive): Rename to aix_thread_thread_alive.
4862 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4863 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4864 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4865 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4866 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4867 (store_regs_lib): Rename to store_regs_user_thread.
4868 (store_regs_kern): Rename to store_regs_kernel_thread.
4869
4870 2002-07-22 Michael Snyder <msnyder@redhat.com>
4871
4872 * aix-thread.c (ops_prepare_to_store): Eliminate.
4873 (init_ops): Don't initialize ops.prepare_to_store.
4874 (store_regs_kern): Pre-fetch register buffers from child,
4875 because some registers may not be in the cache. Copy
4876 regs from register cache only if they are cached.
4877 (store_regs_lib): Copy regs from register cache only
4878 if they are cached.
4879 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4880 fill_gprs64): Ditto.
4881
4882 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4883
4884 * aix-thread.c (gdb_assert.h): Include.
4885 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4886 register sizes (from register cache) match size of buffer holding
4887 register data.
4888 (fill_sprs32): Change parameter types to match those in the ptrace()
4889 buffer.
4890 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4891 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4892
4893 2002-07-22 Michael Snyder <msnyder@redhat.com>
4894
4895 * aix-thread.c (supply_sprs64): Cosmetic change.
4896 (supply_sprs32): Cosmetic change.
4897 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4898 (fill_sprs64): Use regcache_collect instead of read_register.
4899 (store_regs_lib): Use regcache_collect instead of
4900 read_register. Use fill_sprs32 instead of fill_sprs64,
4901 if debugging a 32-bit architecture.
4902 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4903 out of the register cache, instead of passing a pointer into
4904 the register cache directly to ptrace. Use regcache_collect
4905 insteaad of read_register.
4906 (ops_prepare_to_store): Use target_read_registers instead
4907 of read_register_bytes.
4908
4909 2002-07-20 Aidan Skinner <aidan@velvet.net>
4910
4911 * MAINTAINERS: Add self under write after approval.
4912
4913 2002-07-20 Aidan Skinner <aidan@velvet.net>
4914
4915 * ada-tasks.c: Change k&r style function definitions to prototyped
4916 form.
4917
4918 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4919
4920 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4921 * x86-64-tdep.c: Include "objfiles.h".
4922 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4923 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4924
4925 2002-07-17 Michal Ludvig <michal@suse.cz>
4926
4927 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4928 (update_context): Initialise cfa variable.
4929
4930 2002-07-17 Michael Snyder <msnyder@redhat.com>
4931
4932 * aix-thread.c: Shorten some long lines.
4933 Bring comments into line with code spec.
4934
4935 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4936
4937 * infrun.c: Re-indent using gdb_indent.sh.
4938
4939 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4940
4941 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4942 Leave the indentation temporarily untouched, to minimize the diffs.
4943
4944 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4945
4946 * stabsread.c: Make os9k sections of the code obsolete,
4947 for real this time.
4948 * stabsread.h: Make os9k sections of the code obsolete.
4949
4950 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4951
4952 * linux-low.c (regsets_store_inferior_registers): Add free()
4953 at the end of a loop to prevent memory leak.
4954 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4955 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4956 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4957 line a comment.
4958 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4959
4960 2002-07-17 Jim Blandy <jimb@redhat.com>
4961
4962 * macrocmd.c (info_macro_command): Remove newline from error
4963 message.
4964
4965 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4966
4967 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4968 (sh_gdbarch_init): Use it for sh-dsp.
4969
4970 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4971
4972 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4973 64-bit DWARF2 format.
4974
4975 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4976
4977 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4978 <sys/proc.h> when not available.
4979
4980 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4981
4982 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4983 * stabsread.c: Make os9k sections of the code obsolete.
4984 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4985 * config/i386/i386os9k.mt: Make file obsolete.
4986 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4987 (COMMON_OBS): Remove os9kread.o
4988 (SFILES): Remove os9kread.c.
4989 (os9kread.o, remote-os9k.o): Make target obsolete.
4990 * remote-os9k.c: Make file obsolete.
4991 * os9kread.c: Make file obsolete.
4992 * Makefile.in
4993
4994 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4995
4996 * NEWS: Mention that the FR30 has been made obsolete.
4997 * fr30-tdep.c: Make file obsolete.
4998 * config/fr30/tm-fr30.h: Ditto.
4999 * config/fr30/fr30.mt: Ditto.
5000 * configure.tgt: Make fr30-*-elf obsolete.
5001 * MAINTAINERS: Make fr30-elf obsolete.
5002
5003 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5004
5005 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5006 found is not inside a section.
5007
5008 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5009
5010 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5011 strerror().
5012 (pdc_realloc): Use xrealloc() instead of realloc().
5013
5014 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5015
5016 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5017 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5018 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5019 macros.
5020
5021 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5022
5023 * aix-thread.c (ptrace_check): Eliminate goto.
5024 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5025 problem.
5026
5027 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5028
5029 * aix-thread.c (gdbcmd.h): Include.
5030 (DEBUG, DBG, DBG2, dbg): Eliminate.
5031 (debug_aix_thread): New static global.
5032 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5033 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5034 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5035 invocations to DBG and DBG2 macros to test against
5036 ``debug_aix_thread'' and call fprintf_unfiltered().
5037 (_initialize_aix_thread): Add new command "set debug aix-thread".
5038
5039 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5040
5041 From Gerhard Tonn <TON@de.ibm.com>:
5042 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5043 instead of supply_register.
5044
5045 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5046
5047 * dwarf2cfi.c: Include "gdb_assert.h".
5048 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5049 non-NULL.
5050 (update_context): Do not use __func__. Add missing ``break''.
5051 (update_context): Do not use __func__.
5052
5053 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5054
5055 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5056 and its setting. Set gdbarch instruction printing functions
5057 directly. For non-rs6000 case use new function
5058 gdb_print_insn_powerpc.
5059 (gdb_print_insn_powerpc): New function.
5060
5061 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5062
5063 * NEWS: Mention that the d30v has been marked obsolete.
5064 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5065 * configure.tgt: Mark d30v-*-* as obsolete.
5066 * d30v-tdep.c: Mark file as obsolete.
5067 * config/d30v/d30v.mt: Ditto.
5068 * config/d30v/tm-d30v.h: Ditto.
5069
5070 2002-07-13 Aidan Skinner <aidan@velvet.net>
5071
5072 * ada-tasks.c (add_task_entry): replace calls to
5073 malloc() with xmalloc
5074 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5075
5076 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5077 ada_finish_decode_line_1, all_sals_for_line
5078 ada_breakpoint_rewrite): replace calls to free() with xfree()
5079
5080 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5081
5082 From Nicholas Duffek (with minor changes by Martin Hunt,
5083 Louis Hamilton, and Kevin Buettner):
5084 * aix-thread.c: New file.
5085
5086 2002-07-12 Petr Sorfa <petrs@caldera.com>
5087
5088 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5089 complaint for invalid attribute class or form.
5090 (read_func_scope): DW_AT_frame_base
5091 better handling of DW_AT_block*.
5092 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5093 better handling of DW_AT_block*.
5094 (read_common_block): DW_AT_location
5095 better handling of DW_AT_block*.
5096 (read_partial_die): DW_AT_location better handling
5097 of DW_AT_block*.
5098 (new_symbol): DW_AT_external better handling of
5099 DW_AT_block*. Proper initialization of variable
5100 "addr".
5101 (attr_form_is_block): New function that returns true
5102 if the attribute's form is of DW_FORM_block*.
5103
5104 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5105
5106 * valops.c (find_method_list): Remove comment about
5107 removed STATIC_MEMFUNCP argument.
5108 (value_find_oload_method_list): Likewise.
5109
5110 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5111
5112 From Nicholas Duffek:
5113 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5114 target_new_objfile_hook.
5115
5116 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5117
5118 From Nicholas Duffek:
5119 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5120 csect.
5121
5122 2002-07-12 Andrew Cagney <cagney@redhat.com>
5123
5124 * MAINTAINERS: Mention --enable-sim-build-warnings.
5125 (m68hc11-elf): Disable sim build warnings.
5126 (m32r-elf): Mark as broken obsolete candidate.
5127 (x86_64-linux-gnu): Mark as buildable with -Werror.
5128 (arm-elf): Change -w to ``,'' which enables warnings but not
5129 -Werror.
5130
5131 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5132
5133 * bcache.h: Update copyright.
5134 (struct bstring, struct bcache): Move definition to "bcache.c".
5135 Replaced by opaque declaration.
5136 (bcache_xfree): Replace free_bcache.
5137 (bcache_xmalloc, bcache_memory_used): Declare.
5138
5139 * bcache.c: Update copyright.
5140 (struct bstring, struct bcache): Moved to here from "bcache.h".
5141 Update comments.
5142 (bcache_xmalloc, bcache_memory_used): New functions.
5143 (bcache_xfree): Replace function free_bcache.
5144
5145 * Makefile.in (objfiles.o): Add $(bcache_h).
5146 (objfiles_h): Remove $(bcache_h).
5147 (symfile.o): Add $(bcache_h).
5148
5149 * symmisc.c: Update copyright.
5150 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5151 (print_objfile_statistics): Use bcache_memory_used.
5152
5153 * symfile.c: Include "bcache.h".
5154 (reread_symbols): Use bcache_xfree.
5155 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5156 (add_psymbol_to_list): Pass psymbol_cache by value.
5157 (add_psymbol_with_dem_name_to_list): Ditto.
5158
5159 * objfiles.h: Update copyright.
5160 (struct bcache): Declare opaque. Do not include "bcache.h".
5161 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5162 bcache'' pointers.
5163 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5164
5165 * objfiles.c: Include "bcache.h". Update copyright.
5166 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5167 macro_cache.
5168 (free_objfile): Use bcache_xfree.
5169
5170 2002-07-11 Grace Sainsbury <graces@redhat.com>
5171
5172 * monitor.c (monitor_fetch_register): Make name a constant.
5173 (monitor_store_register): Same.
5174
5175 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5176
5177 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5178 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5179 (finish_block) For non-function blocks, hash the symbol table. For
5180 function blocks, mark the symbol table as unhashed.
5181 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5182 (msymbol_hash_iw): Likewise.
5183 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5184 value.
5185 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5186 (lookup_minimal_symbol): Likewise for both.
5187 * symtab.h (struct block): Add `hashtable' flag. Comment the
5188 hashtable.
5189 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5190 (ALL_BLOCK_SYMBOLS): Update.
5191 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5192 (struct symbol): Add `hash_next' pointer.
5193 * symtab.c (lookup_block_symbol): Search using the hash table when
5194 possible.
5195 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5196 (search_symbols, find_addr_symbol): Likewise.
5197
5198 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5199 (read_dst_symtab): Likewise.
5200 * jv-lang.c (get_java_class_symtab): Likewise.
5201 * mdebugread.c: Include "gdb_assert.h".
5202 (shrink_block): Assert that the block being modified is not hashed.
5203 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5204 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5205 symbols.
5206 (dump_symtab): Recognize hashed blocks.
5207 * printcmd.c (print_frame_args): Assert that function blocks do not
5208 have hashed symbol tables.
5209 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5210 (fill_in_ada_prototype, debug_print_block): Likewise.
5211 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5212
5213 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5214
5215 * stack.c (print_frame): Use result of frame_address_in_block()
5216 instead of fi->pc when evaluating symbols.
5217 (backtrace_command_1): Ditto.
5218
5219 2002-07-11 Andrew Cagney <cagney@redhat.com>
5220
5221 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5222 Make static.
5223
5224 * arm-tdep.c (arm_register_name): Make return type constant.
5225
5226 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5227
5228 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5229 prototype.
5230 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5231 * s390-tdep.c (s390_fp_regnum): Ditto.
5232 (s390_read_fp): Ditto.
5233 (s390_pop_frame): Ditto.
5234 (_initialize_s390_tdep): Ditto.
5235 * remote.c (get_remote_state): Ditto.
5236 * procfs.c (mappingflags): Ditto.
5237 * memattr.c (_initialize_mem): Ditto.
5238 * mcore-tdep.c (mcore_pop_frame): Ditto.
5239 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5240 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5241 * language.c (set_case_str): Ditto.
5242 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5243 * frv-tdep.c (new_variant): Ditto.
5244 (frv_stopped_data_address): Ditto.
5245 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5246 (context_alloc): Ditto.
5247 (frame_state_alloc): Ditto.
5248 (unwind_tmp_obstack_init): Ditto.
5249 (unwind_tmp_obstack_free): Ditto.
5250 (cfi_read_fp): Ditto.
5251 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5252 (cris_pop_frame): Ditto.
5253 * c-lang.c (scanning_macro_expansion): Ditto.
5254 (finished_macro_expansion): Ditto.
5255 (c_preprocess_and_parse): Ditto.
5256 * gdbarch.sh: Ditto.
5257 * gdbarch.h, gdbarch.c: Regenerate.
5258 * config/mn10200/tm-mn10200.h: Adjust indentation.
5259 * target.c: Adjust indentation.
5260 * symtab.h: Adjust indentation.
5261 * stabsread.h: Adjust indentation.
5262 * remote-es.c: Adjust indentation.
5263 * os9kread.c: Adjust indentation.
5264
5265 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5266
5267 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5268 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5269
5270 2002-07-10 Grace Sainsbury <graces@redhat.com>
5271
5272 * NEWS: Mention m68k, mcore multi-arching.
5273 * MAINTAINERS: Change status of m68k, mcore to reflect
5274 multi-arching.
5275
5276 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5277
5278 * valops.c (find_overload_match): Free oload_syms.
5279
5280 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5281
5282 Define HAVE_SYS_PROC_H if sys/proc.h exists
5283 * configure.in: Add check for sys/proc.h
5284 * config.in: Regenerate.
5285 * configure: Regenerate.
5286
5287 2002-07-09 Grace Sainsbury <graces@redhat.com>
5288
5289 * config/m68k/tm-m68k.h: Remove macros wrapped in
5290 #if !GDB_MULTI_ARCH.
5291
5292 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5293
5294 * config.in, configure: Regenerate.
5295
5296 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5297
5298 * dwarf2cfi.c: Include "gcore.h".
5299 (execute_stack_op): Fix implementation of the
5300 DW_OP_deref and DW_OP_deref_size operators by letting do their
5301 lookup in the target.
5302
5303 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5304
5305 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5306 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5307 tdep->sc_sp_offset.
5308
5309 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5310
5311 Fix PR gdb/595, gdb/602
5312 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5313 Don't call value_cast, just read the vtable pointer; update comments
5314 to match.
5315
5316 2002-07-05 Grace Sainsbury <graces@redhat.com>
5317
5318 * config/mcore/tm-mcore.h: Remove file.
5319 * config/mcore/mcore.mt: Remove definition of TM_FILE
5320 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5321
5322 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5323
5324 * i386bsd-tdep.c: Include "gdb_string.h".
5325
5326 2002-07-04 Grace Sainsbury <graces@redhat.com>
5327
5328 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5329 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5330 mcore-tdep.
5331 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5332 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5333 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5334 (RETVAL_REGNUM): Move macros from tm-mcore.h
5335 (mcore_reg_struct_has_addr): New function.
5336 (mcore_gdbarch_init): Added initializations for the macros removed
5337 from tm-mcore.h.
5338
5339 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5340
5341 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5342 traditonal string branding within the ELF header.
5343
5344 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5345
5346 * symtab.c (remove_params): New function.
5347 (make_symbol_overload_list): Use it instead of cplus_demangle.
5348 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5349
5350 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5351
5352 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5353
5354 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5355 New variables.
5356 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5357 and tdep->sigtramp_end.
5358 * i386obsd-nat.c: New file.
5359 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5360
5361 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5362 Don't call get_current_frame().
5363
5364 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5365
5366 * i386-nat.c (child_post_startup_inferior): New function
5367 calling i386_cleanup_dregs if
5368 I386_USE_GENERIC_WATCHPOINTS is defined.
5369 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5370 conditional to acknowledge that i386-nat.c has its
5371 own child_post_startup_inferior function.
5372
5373 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5374
5375 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5376 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5377 instead of MAX_REGISTER_RAW_SIZE.
5378 (i386_extract_return_value, i386_extract_struct_value_address):
5379 Convert to use regcache.
5380 (i386_gdbarch_init): Set max_register_raw_size and
5381 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5382 Set extract_return_value and extract_struct_value_address instead
5383 of their deprecated variants.
5384
5385 Convert i386 target to generic dummy frames.
5386 * i386-tdep.c: Include "symfile.h".
5387 (i386_frameless_signal_p): Consider a function to be frameless if
5388 the pc points at the first instruction of the function.
5389 (i386_frame_chain): Handle (generic) call dummies.
5390 (i386_frame_saved_pc): Likewise.
5391 (i386_frame_init_saved_regs): Remove code dealing with call
5392 dummies on the stack.
5393 (i386_push_dummy_frame): Removed.
5394 (i386_call_dummy_words): Removed.
5395 (i386_fix_call_dummy): Removed.
5396 (i386_push_return_address): New function.
5397 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5398 parameter, and don't call get_current_frame.
5399 (i386_pop_frame): New function.
5400 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5401 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5402 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5403 call_dummy_length to 0, set call_dummy_words to NULL, set
5404 sizeof_call_dummy_words to 0, set fix_call_dummy to
5405 generic_fix_call_dummy, set pc_in_call_dummy to
5406 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5407 generic_push_dummy_frame, set push_return_address to
5408 i386_push_return_address and set frame_chain_valid to
5409 generic_file_frame_chain_valid.
5410
5411 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5412
5413 * gdbarch.sh (struct regcache): Add opaque declaration.
5414 (EXTRACT_RETURN_VALUE): New architecture method.
5415 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5416 * gdbarch.h, gdbarch.c: Regenerate.
5417 * arch-utils.c (legacy_extract_return_value): New function.
5418 * arch-utils.h (legacy_extract_return_value): Declare.
5419 * values.c (value_being_returned): Re-enable code handling
5420 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5421 deprecated_grub_regcache_for_registers call to block handling
5422 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5423 (EXTRACT_RETURN_VALUE): Do not define.
5424
5425 2002-07-03 Grace Sainsbury <graces@redhat.com>
5426
5427 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5428 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5429 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5430 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5431 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5432 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5433 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5434 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5435 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5436 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5437 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5438 argument so the function fits the prototype in the architecture
5439 vector.
5440 (mcore_pop_frame): Remove argument so the function fits the
5441 prototype. Use get_current_frame instead of the argument.
5442 (mcore_push_arguments): Change type of struct_return so the
5443 function can be used in the architecture vector.
5444 (mcore_store_struct_return): Add.
5445 (mcore_frame_init_saved_regs): Add.
5446 (mcore_gdbarch_init): Add function calls to replace the macros
5447 removed from tm-mcore.h
5448
5449 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5450
5451 * infcmd.c (print_return_value): Remove compatibility code calling
5452 deprecated_grub_regcache_for_registers.
5453
5454 * values.c: Include "regcache.h".
5455 (value_being_returned): Update. Use
5456 deprecated_grub_regcache_for_registers to extract the register
5457 buffer address.
5458 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5459 ``struct regcache''.
5460 * Makefile.in (values.o): Add dependency on $(regcache_h).
5461
5462 * inferior.h (run_stack_dummy): Change type of second parameter to
5463 a ``struct regcache''.
5464 * valops.c (hand_function_call): Change type of retbuf to ``struct
5465 regcache''. Allocate using regcache_xmalloc, clean using
5466 make_cleanup_regcache_xfree.
5467 * infcmd.c (run_stack_dummy): Update. Use
5468 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5469
5470 * regcache.c (do_regcache_xfree): New function.
5471 (make_cleanup_regcache_xfree): New function.
5472 * regcache.h (make_cleanup_regcache_xfree): Declare.
5473
5474 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5475
5476 * event-top.c (command_line_handler): Don't read past
5477 beginning of buffer.
5478
5479 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5480
5481 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5482 struct frame_id.
5483 (varobj_create): Store frame_id for root.
5484 (varobj_gen_name): Use xasprintf.
5485 (varobj_update): Save and restore frame using get_frame_id() and
5486 frame_find_by_id().
5487 (create_child): Use xasprintf.
5488 (new_root_variable): Initialize frame_id.
5489 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5490 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5491 to prevent memory leak.
5492
5493 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5494
5495 * valops.c (hand_function_call): Move declaration of retbuf to
5496 start of function, allocate using malloc, add a cleanup but before
5497 the inf_status cleanup, cleanup the buffer. Rename local variable
5498 old_chain to inf_status_cleanup.
5499
5500 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5501
5502 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5503
5504 * cli/cli-decode.c (cmd_func_p): New function.
5505 (cmd_func): New function.
5506
5507 * command.h: Add cmd_func() and cmd_func_p().
5508
5509 2002-07-03 Grace Sainsbury <graces@redhat.com>
5510
5511 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5512 (REGISTER_SIZE): Remove.
5513 (MAX_REGISTER_RAW_SIZE): Remove.
5514 (REGISTER_VIRTUAL_TYPE): Remove.
5515 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5516 (REGISTER_NAME): Remove.
5517 (USE_GENERIC_DUMMY_FRAMES): Remove.
5518 (CALL_DUMMY): Remove.
5519 (CALL_DUMMY_START_OFFSET): Remove.
5520 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5521 (CALL_DUMMY_LOCATION): Remove.
5522 (FIX_CALL_DUMMY): Remove.
5523 (CALL_DUMMY_ADDRESS): Remove.
5524 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5525 (SAVE_DUMMY_FRAME_TOS): Remove.
5526 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5527 (mcore_register_virtual_type): New function.
5528 (mcore_register_byte): New function.
5529 (mcore_register_size): New function.
5530 (mcore_register_name): New function.
5531 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5532 macros removed from tm-mcore.h.
5533 (mcore_dump_tdep): Add.
5534 (_initialize_mcore_tdep): Add gdbarch_register call.
5535
5536 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5537
5538 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5539 frameless_look_for_prologue, such that we actually call this
5540 function.
5541
5542 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5543
5544 * frame.h (frame_address_in_block): New function.
5545
5546 * blockframe.c (frame_address_in_block): New function extracted
5547 from get_frame_block().
5548 (get_frame_block): Use frame_address_in_block().
5549 (block_innermost_frame): Use frame_address_in_block() to match
5550 the frame pc address against the block boundaries rather than
5551 the frame pc directly. This prevents a failure when a frame pc
5552 is actually a return-address pointing immediately after the end
5553 of the given block.
5554
5555 2002-07-02 Grace Sainsbury <graces@redhat.com>
5556
5557 * MAINTAINERS: Add self under write after approval.
5558
5559 2002-07-02 Grace Sainsbury <graces@redhat.com>
5560
5561 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5562 used in architecture vector. The default is
5563 m68k_local_breakpoint_from_pc.
5564 (m68k_local_breakpoint_from_pc): Add.
5565 (enum): Add register numbers from tm-m68k.h.
5566 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5567 vector.
5568 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5569 GDB_MULTI_ARCH_PARTIAL.
5570 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5571 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5572 m68k-tdep.c.
5573 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5574 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5575 to enum in m68k-tdep.c
5576
5577 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5578
5579 * solib-osf.c (open_map): Compute the list of shared libraries
5580 loaded by the inferior, rather than the list of libraries loaded
5581 by GDB itself. Otherwise, GDB ends up reading the symbols from
5582 the wrong shared libraries...
5583
5584 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5585
5586 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5587 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5588 macros.
5589 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5590 Remove functions.
5591 (FRAMELESS_SIGNAL): Remove function.
5592 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5593 i386_linux_saved_pc_after_call): Removed.
5594 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5595 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5596 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5597
5598 * i386-tdep.c (i386_frameless_signal_p): New function.
5599 (i386_frame_chain): Deal with frameless signals.
5600 (i386_sigtramp_saved_sp): New function.
5601 (i386_frame_saved_pc): Deal with frameless signals.
5602 (i386_saved_pc_after_call): Make sure the correct value is
5603 returned just after entry into a sigtramp.
5604 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5605 i386fbsd4_sc_sp_offset): New variables.
5606 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5607 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5608 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5609 similiar to what we already did for sc_pc_offset.
5610 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5611 tdep->sc_sp_offset.
5612
5613 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5614
5615 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5616
5617 * config/i386/tm-x86-64linux.h: New.
5618 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5619 definitions.
5620 * config/i386/nm-x86-64.h: Rename to ...
5621 * config/i386/nm-x86-64linux.h: ... this one.
5622 * config/i386/x86-64linux.mh: Reflect the above change.
5623
5624 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5625
5626 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5627 with sigcontext_addr. Add sc_sp_offset.
5628 (i386bsd_sigtramp_saved_pc): Remove prototype.
5629 (i386bsd_sicontext_addr): Add prototype.
5630 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5631 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5632 (i386_svr4_sigtramp_saved_pc): Removed.
5633 (i386_svr4_sigcontext_addr): New function.
5634 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5635 Initialize tdep->sigcontext_addr instead. Initialize
5636 tdep->sc_pc_offset and tdep->sc_sp_offset.
5637 (i386_gdbarch_init): Likewise.
5638 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5639 any more.
5640 (i386bsd_sigtramp_saved_pc): Remove function.
5641 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5642 Initialize tdep->sigcontext_addr instead. Initialize
5643 tdep->sc_pc_offset.
5644 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5645 of tdep->sigtramp_saved_pc.
5646 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5647 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5648 instead.
5649
5650 * i386-tdep.c (i386_frameless_function_invocation,
5651 i386_frame_num_args, i386_frame_init_saved_regs,
5652 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5653 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5654 i386_extract_return_value, i386_store_return_value,
5655 i386_extract_struct_value_address, i386_register_virtual_type,
5656 i386_register_convertible, i386_register_convert_to_virtual,
5657 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5658 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5659 static.
5660
5661 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5662
5663 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5664
5665 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5666 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5667 this macro. Include "value.h".
5668
5669 2002-06-30 Aidan Skinner <aidan@velvet.net>
5670
5671 * ada-exp.tab.c: remove as it's a generated file
5672 * ada-lex.c: remove as it's a generated file
5673
5674 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5675
5676 * config/i386/tm-i386.h (struct frame_info, struct
5677 frame_saved_regs, struct value, struct type): Remove forward
5678 declarations.
5679
5680 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5681 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5682 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5683 (FILL_FPXREGSET): Define.
5684
5685 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5686
5687 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5688 i[3456]86-*-netbsd* case.
5689 * config/i386/tm-obsd.h: Removed.
5690 * config/i386/obsd.mt: Removed.
5691 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5692 core-aout.o.
5693 (MH_CFLAGS): Add -DYYDEBUG=0.
5694
5695 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5696 i386nbsd_sc_pc_offset on OpenBSD too.
5697
5698 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5699 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5700 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5701 define.
5702 * i386bsd-tdep.c: Include "arch-utils.h".
5703 (i386bsd_aout_in_solib_call_trampoline): New function.
5704 (i386bsd_init_abi): Set in_solib_call_trampoline to
5705 i386bsd_aout_in_solib_call_trampoline.
5706 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5707 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5708
5709 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5710
5711 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5712 (struct obstack, struct bcache): Add opaque declarations.
5713 * Makefile.in (macrotab_h): Update
5714
5715 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5716
5717 * blockframe.c (generic_find_dummy_frame): Change return type to
5718 ``struct regcache''.
5719 (struct dummy_frame): Replace field ``registers'' with regcache, a
5720 struct regcache object.
5721 (generic_find_dummy_frame): Update.
5722 (generic_push_dummy_frame): Update. Use regcache_xfree,
5723 regcache_xmalloc and regcache_cpy.
5724 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5725 regcache_xfree.
5726 (deprecated_generic_find_dummy_frame): Update.
5727 (generic_read_register_dummy): Update. Use
5728 regcache_read_as_address.
5729 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5730 (generic_get_saved_register): Update. Use regcache_read.
5731
5732 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5733
5734 * Makefile.in (objfiles_h): Add $(bcache_h).
5735 * objfiles.h: Include "bcache.h".
5736
5737 * Makefile.in (symtab_h): Remove $(bcache_h).
5738 * symtab.h: Do not include "bcache.h".
5739
5740 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5741
5742 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5743 generic_func_frame_chain_valid.
5744
5745 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5746
5747 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5748 * config/i386/tm-fbsd.h: Likewise.
5749
5750 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5751
5752 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5753 generic_unwind_get_saved_register.
5754
5755 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5756
5757 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5758 * regcache.c (supply_register): Add missing argument to
5759 register_buffer call.
5760
5761 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5762
5763 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5764 Solaris /bin/grep does not not like it. From Peter Schauer.
5765
5766 2002-06-26 Tom Tromey <tromey@redhat.com>
5767
5768 * command.h (add_setshow_cmd): Declare.
5769 (add_setshow_cmd_full): Declare.
5770 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5771 returns void. Use add_setshow_cmd_full.
5772 (add_setshow_cmd_full): New function.
5773 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5774 (add_setshow_boolean_cmd): Likewise.
5775
5776 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5777
5778 * config/vax/tm-vax.h: Protect from multiple inclusion.
5779 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5780 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5781 * config/vax/tm-vaxbsd.h: ...here. New file.
5782 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5783
5784 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5785
5786 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5787 (BELIEVE_PCC_PROMOTION): Remove.
5788 (AP_REGNUM): Move to...
5789 * config/vax/nm-vax.h: ...here.
5790 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5791 (vax_breakpoint_from_pc): New function.
5792 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5793 and gdbarch_believe_pcc_promotion.
5794
5795 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5796
5797 * Makefile.in (vax_tdep_h): Define.
5798 (vax-tdep.o): Use $(vax_tdep_h).
5799 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5800 (vax_dump_tdep): New function.
5801 (_initialize_vax_tdep): Register vax_dump_tdep.
5802 * vax-tdep.h: Include osabi.h.
5803 (struct gdbarch_tdep): New.
5804
5805 2002-06-26 Andrew Cagney <cagney@redhat.com>
5806
5807 * frame.h (deprecated_generic_find_dummy_frame): Rename
5808 generic_find_dummy_frame.
5809 * blockframe.c (generic_find_dummy_frame): Make static.
5810 (deprecated_generic_find_dummy_frame): New function.
5811 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5812 generic_find_dummy_frame with deprecated_find_dummy_frame.
5813 (sh64_nofp_frame_init_saved_regs): Ditto.
5814 (sh_fp_frame_init_saved_regs): Ditto.
5815 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5816 (s390_frame_chain): Ditto.
5817 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5818
5819 2002-06-26 Grace Sainsbury <graces@redhat.com>
5820
5821 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5822 gdbarch vector are at the top.
5823 (NUM_REGS): Remove.
5824 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5825 (FRAME_ARGS_ADDRESS): Remove.
5826 (FRAME_LOCALS_ADDRESS): Remove.
5827 (FRAME_NUM_ARGS): Remove.
5828 (FRAME_ARGS_SKIP): Remove.
5829 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5830 (m68k_gdbarch_init): Add gdbarch initializations for macros
5831 undefined in tm-m68k.h
5832
5833 2002-06-26 Grace Sainsbury <graces@redhat.com>
5834
5835 * monitor.h: Add the function regname to monitor_ops
5836 structure. This way NUM_REGS does not have to be a constant.
5837 * monitor.c (monitor_fetch_register): Added support for regname
5838 function. The function is called if the array regnames is NULL.
5839 (monitor_store_register): Same.
5840 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5841 regnames array.
5842 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5843 cpu32bug_cmds.regname to point to new function.
5844 * abug-rom.c (abug_regname): Same as above.
5845 (init_abug_cmds): Same.
5846 * dbug-rom.c (dbug_regname): Same as above.
5847 (init_dbug_cmds): Same.
5848 * remote-est.c (est_regname): Same.
5849 (init_est_cmds): Same.
5850 * rom68k-rom.c (rom68k_regname): Same.
5851 (init_rom68k_cmds): Same.
5852
5853 2002-06-25 Tom Tromey <tromey@redhat.com>
5854
5855 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5856
5857 2002-06-25 Andrew Cagney <cagney@redhat.com>
5858
5859 * infrun.c (stop_registers): Change variable's type to ``struct
5860 regcache'''.
5861 (xmalloc_inferior_status): Delete function.
5862 (free_inferior_status): Delete function.
5863 (normal_stop): Use regcache_cpy.
5864 (struct inferior_status): Change type of fields ``stop_registers''
5865 and ``registers'' to ``struct regcache''.
5866 (write_inferior_status_register): Use regcache_write.
5867 (save_inferior_status): Instead of calling
5868 xmalloc_inferior_status, allocate the inf_status buffer directly.
5869 Use regcache_dup_no_passthrough and regcache_dup to save the
5870 buffers.
5871 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5872 Replace the stop_registers regcache instead of overriding it. Use
5873 regcache_xfree. Instead of calling free_inferior_status, xfree
5874 the buffer directly.
5875 (discard_inferior_status): Use regcache_xfree. Instead of calling
5876 free_inferior_status, xfree the buffer directly.
5877 (build_infrun): Use regcache_xmalloc.
5878 (_initialize_infrun): Delete redundant call to build_infrun.
5879
5880 * Makefile.in (infcmd.o): Add $(regcache_h).
5881
5882 * infcmd.c: Include "regcache.h".
5883 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5884 obtain the address of `stop_registers' register buffer.
5885 (print_return_value): Ditto.
5886
5887 * inferior.h (struct regcache): Add opaque declaration.
5888 (stop_registers): Change variable's declared type to ``struct
5889 regcache''.
5890
5891 2002-06-24 Tom Tromey <tromey@redhat.com>
5892
5893 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5894 * target.c (initialize_targets): Fixed typo in
5895 trust-readonly-sections `show' documentation.
5896
5897 * main.c: Marked all strings with _().
5898
5899 2002-06-24 Don Howard <dhoward@redhat.com>
5900
5901 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5902 that means max CORE_ADDR+1.
5903 (lookup_mem_region): Ditto.
5904 (mem_info_command): Ditto.
5905
5906 2002-06-24 Grace Sainsbury <graces@redhat.com>
5907
5908 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5909 (REGISTER_BYTES_OK): Remove.
5910 (REGISTER_BYTES): Remove.
5911 (STORE_STRUCT_RETURN): Remove.
5912 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5913 (STORE_RETURN_VALUE): Remove.
5914 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5915 (FRAME_CHAIN): Remove.
5916 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5917 (FRAME_SAVED_PC): Remove.
5918 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5919 (m68k_store_struct_return): Add.
5920 (m68k_deprecated_extract_return_value): Add.
5921 (m68k_deprecated_extract_struct_value_address): Add.
5922 (m68k_store_return_value): Add.
5923 (m68k_frame_chain): Add.
5924 (m68k_frameless_function_invocation): Add.
5925 (m68k_frame_saved_pc): Add.
5926 (m68k_gdbarch_init): added set_gdbarch calls for new
5927 functions and deleted macros.
5928
5929 2002-06-23 Tom Tromey <tromey@redhat.com>
5930
5931 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5932 (ALLDEPFILES): Likewise.
5933 (udiheaders): Removed.
5934 (udip2soc.o): Likewise.
5935 (udi2go32.o): Likewise.
5936 (udr.o): Likewise.
5937 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5938
5939 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5940
5941 * infrun.c (_initialize_infrun): Delete unnecessary call to
5942 build_infrun.
5943
5944 * regcache.h: Update comments describing the regcache_cpy family
5945 of functions.
5946 (regcache_save, regcache_restore): Delete declaration.
5947 (regcache_save_no_passthrough): Delete declaration.
5948 (regcache_restore_no_passthrough): Delete declaration.
5949 * regcache.c (regcache_save): Delete function.
5950 (regcache_save_no_passthrough): Delete function.
5951 (regcache_restore): Delete function.
5952 (regcache_restore_no_passthrough): Delete function.
5953
5954 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5955
5956 * config/m68k/tm-m68k.h: Fix typo.
5957 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5958 (m68k_frame_init_saved_regs): Declare.
5959
5960 2002-06-21 Jim Blandy <jimb@redhat.com>
5961
5962 Remove some vestiges of Harris 88k support.
5963 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5964 register numbering quirk.
5965 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5966 odd symbols occurring in Harris 88k ELF targets.
5967
5968 2002-06-21 Tom Tromey <tromey@redhat.com>
5969
5970 * gdb_locale.h: New file.
5971 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5972 (defs_h): Added gdb_locale.h.
5973 * configure, config.in: Rebuilt.
5974 * configure.in (PACKAGE): Define.
5975 * defs.h: Include gdb_locale.h.
5976 * main.c (captured_main): Call setlocale, bindtextdomain,
5977 textdomain.
5978
5979 2002-06-21 Dave Brolley <brolley@redhat.com>
5980
5981 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5982 * config/frv/frv.mt: New file.
5983 * config/frv/tm-frv.h: New file.
5984 * configure.tgt: Support frv-*-*.
5985 * Makefile.in (frv-tdep.o): New target.
5986 * frv-tdep.c: New file.
5987 * NEWS: Mention frv.
5988
5989 2002-06-21 Dave Brolley <brolley@redhat.com>
5990
5991 * MAINTAINERS: Add self to "Write After Approval" list.
5992
5993 2002-06-21 Grace Sainsbury <graces@redhat.com>
5994
5995 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5996 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5997 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5998 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5999 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6000
6001 * m68k-tdep.c: Include arch-utils.h
6002 (m68k_register_raw_size): Add.
6003 (m68k_register_virtual_size): Add.
6004 (m68k_register_virtual_type): Add.
6005 (m68k_register_name): Add.
6006 (m68k_stack_align): Add.
6007 (m68k_register_byte): Add.
6008 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6009 tm-m68k.h.
6010
6011 2002-06-21 Grace Sainsbury <graces@redhat.com>
6012
6013 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6014 m68k_find_saved_regs.
6015 (m68k_pop_frame): Removed saved_regs structure, and replaced
6016 references to it with frame->saved_regs.
6017 (m68k_gdbarch_init): Added function calls to initialize the
6018 gdbarch structure.
6019 (m68k_fix_call_dummy): Add.
6020 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6021 (CALL_DUMMY): Remove.
6022 (CALL_DUMMY_LENGTH): Remove.
6023 (CALL_DUMMY_START_OFFSET): Remove.
6024 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6025 (FIX_CALL_DUMMY): Remove.
6026 (PUSH_DUMMY_FRAME): Remove.
6027 (POP_FRAME): Remove.
6028
6029 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6030
6031 * parse.c (parse_fprintf): New function used to avoid calls to
6032 fprintf in bison parser generated debug code.
6033 * parser-defs.h: Declaration of new parse_fprintf function.
6034 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6035 Set YYDEBUG to 1 by default.
6036 Set YYFPRINTF as parse_fprintf.
6037
6038 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6039
6040 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6041 encoding anymore.
6042 (pointer_encoding, enum ptr_encoding): New.
6043 (execute_cfa_program): Take care about pointer encoding.
6044 (dwarf2_build_frame_info): Only call parse_frame_info for
6045 .debug_frame and .eh_frame.
6046 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6047 fixed augmentation handling, added relative addressing,
6048 ignore duplicate FDEs. Added comments.
6049 * dwarf2cfi.c: Reindented.
6050
6051 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6052
6053 * event-top.c (command_handler): Don't use space_at_cmd_start
6054 unless there is sbrk() on the host. Assign time and space data
6055 to union fields of the appropriate length.
6056
6057 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6058
6059 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6060 x86_64_register_name. Return type changed to 'const char *'.
6061 (x86_64_register_name2nr): Rename to x86_64_register_number.
6062 (x86_64_gdbarch_init): Update to reflect the change.
6063 * x86-64-tdep.h: Ditto.
6064 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6065 (supply_fpregset): Ditto.
6066
6067 2002-06-19 Andrew Cagney <cagney@redhat.com>
6068
6069 * regcache.h: Update copyright.
6070 (struct regcache, struct gdbarch): Add opaque declarations.
6071 (current_regcache): Declare global variable.
6072 (regcache_read, regcache_write): Add gdbarch parameter.
6073 (regcache_save, regcache_save_no_passthrough)
6074 (regcache_restore, regcache_restore_no_passthrough)
6075 (regcache_dup, regcache_dup_no_passthrough)
6076 (regcache_cpy, regcache_cpy_no_passthrough)
6077 (deprecated_grub_regcache_for_registers)
6078 (deprecated_grub_regcache_for_register_valid)
6079 (regcache_valid_p): Add function declarations.
6080
6081 * regcache.c: Update copyright.
6082 (regcache_descr_handle): New global variable.
6083 (struct regcache_descr): Define.
6084 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6085 (regcache_descr, xfree_regcache_descr): New functions.
6086 (struct regcache): Define.
6087 (regcache_xmalloc, regcache_xfree): New functions.
6088 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6089 (regcache_dup, regcache_dup_no_passthrough): New functions.
6090 (regcache_valid_p, regcache_read_as_address): New functions.
6091 (deprecated_grub_regcache_for_registers): New function.
6092 (deprecated_grub_regcache_for_register_valid): New function.
6093 (current_regcache): New global variable.
6094 (register_buffer): Add regcache parameter. Update calls.
6095 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6096 (read_register_gen, write_register_gen): Update register_buffer
6097 call. Test for legacy_p instead of gdbarch_register_read_p or
6098 gdbarch_register_write_p.
6099 (regcache_collect): Update register_buffer call.
6100 (build_regcache): Rewrite. Use deprecated grub functions.
6101 (regcache_save, regcache_save_no_passthrough): New functions.
6102 (regcache_restore, regcache_restore_no_passthrough): New
6103 functions.
6104 (_initialize_regcache): Create the regcache_data_handle. Swap
6105 current_regcache global variable.
6106
6107 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6108 parameter to regcache_read and regcache_write calls.
6109 (sh4_register_read): Ditto.
6110 (sh64_pseudo_register_read): Ditto.
6111 (sh64_register_read): Ditto.
6112 (sh_pseudo_register_write): Ditto.
6113 (sh4_register_write): Ditto.
6114 (sh64_pseudo_register_write): Ditto.
6115 (sh64_register_write): Ditto.
6116
6117 * defs.h (XCALLOC): Define.
6118
6119 2002-06-19 Grace Sainsbury <graces@redhat.com>
6120
6121 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6122 * m68k-tdep.c (m68k_gdbarch_init): Added.
6123 (m68k_dump_tdep): Added.
6124
6125 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6126
6127 * ada-lang.c (fill_in_ada_prototype): Update comment.
6128
6129 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6130
6131 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6132 MIPS_ABI_LAST.
6133 (mips_abi_string, mips_abi_strings): New.
6134 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6135 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6136 tdep->mips_abi_string. Honor mips_abi_string. Default to
6137 O32 if no ABI is found.
6138 (mips_dump_tdep): Use mips_abi_strings.
6139 (mips_abi_update): New function.
6140 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6141 ``set mips abi'' and ``show mips abi''. Check the size of
6142 mips_abi_strings.
6143
6144 2002-06-19 Andrew Cagney <cagney@redhat.com>
6145
6146 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6147 constant.
6148
6149 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6150
6151 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6152 current frame using only the first stack size adjustment. All
6153 subsequent size adjustments are not considered to be part of
6154 the "static" part of the current frame.
6155 Compute the address of the saved registers relative to the
6156 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6157 in use in this frame.
6158
6159 2002-06-18 Don Howard <dhoward@redhat.com>
6160
6161 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6162 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6163 suggesting this solution.
6164
6165 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6166
6167 * config/romp/xm-rtbsd.h: Delete file.
6168 * config/romp/rtbsd.mh: Delete file.
6169
6170 2002-06-18 Keith Seitz <keiths@redhat.com>
6171
6172 * breakpoint.c (condition_command): Post breakpoint_modify
6173 when a condition is added to an existing breakpoint.
6174 (commands_command): Likewise for commands.
6175 (set_ignore_count): Likewise for ignore counts.
6176 If no tty, do not simply return, still need to send event
6177 notification.
6178 (ignore_command): Only print a newline if the command came
6179 from a tty.
6180 Don't call breakpoints_changed, since this is now properly
6181 handled by set_ignore_count.
6182
6183 2002-06-18 Andrew Cagney <cagney@redhat.com>
6184
6185 * MAINTAINERS: Note that cris-elf target can be compiled with
6186 -Werror.
6187 * cris-tdep.c (cris_register_name): Make return type constant.
6188 (cris_breakpoint_from_pc): Ditto.
6189
6190 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6191
6192 * frame.h (struct frame_info): Change type of context to
6193 'struct context'.
6194
6195 2002-06-17 Andrew Cagney <cagney@redhat.com>
6196
6197 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6198 pointer.
6199 * gdbarch.h, gdbarch.c: Regenerate.
6200 * config/mips/tm-mips.h (mips_register_name): Update.
6201 * i386-tdep.h (i386_register_name): Update.
6202 * mips-tdep.c (mips_register_name): Update
6203 * alpha-tdep.c (alpha_register_name): Update.
6204 * arch-utils.c (legacy_register_name): Update.
6205 * arch-utils.h (legacy_register_name): Update.
6206 * avr-tdep.c (avr_register_name): Update.
6207 * ia64-tdep.c (ia64_register_name): Update.
6208 * i386-tdep.c (i386_register_name): Update.
6209 * sparc-tdep.c (sparc32_register_name): Update.
6210 (sparc64_register_name): Update.
6211 (sparclite_register_name): Update.
6212 (sparclet_register_name): Update.
6213 * sh-tdep.c (sh_generic_register_name): Update.
6214 (sh_sh_register_name): Update.
6215 (sh_sh3_register_name): Update.
6216 (sh_sh3e_register_name): Update.
6217 (sh_sh_dsp_register_name): Update.
6218 (sh_sh3_dsp_register_name): Update.
6219 (sh_sh4_register_name): Update.
6220 (sh_sh64_register_name): Update.
6221 * s390-tdep.c (s390_register_name): Update.
6222 * rs6000-tdep.c (rs6000_register_name): Update.
6223 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6224 (ns32k_register_name_32382): Update.
6225 * d10v-tdep.c (d10v_ts2_register_name): Update.
6226 (d10v_ts3_register_name): Update.
6227 * xstormy16-tdep.c (xstormy16_register_name): Update.
6228 * vax-tdep.c (vax_register_name): Update.
6229 * v850-tdep.c (v850_register_name): Update.
6230 * m68hc11-tdep.c (m68hc11_register_name): Update.
6231 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6232 (am33_register_name): Update.
6233
6234 2002-06-17 Grace Sainsbury <graces@redhat.com>
6235
6236 * m68k-tdep.c: Reindented.
6237
6238 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6239
6240 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6241 list of predefined types.
6242
6243 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6244
6245 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6246 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6247 REGISTER_CONVERT_TO_RAW): Remove defines.
6248 (i386_register_virtual_type, i386_register_convertible,
6249 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6250 Remove prototypes.
6251 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6252 macros mentioned above.
6253
6254 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6255 (i386lynx_saved_pc_after_call): Remove prototype.
6256 * i386ly-tdep.c: Include "i386-tdep.h".
6257 (i386lynx_saved_pc_after_call): Make static. Use
6258 read_memory_nobpt instead of read_memory. Use
6259 read_memory_unsigned_integer instead of read_memory_integer.
6260 (i386lynx_init_abi): New function.
6261 (i386lynx_coff_osabi_sniffer): New function.
6262 (_initialize_i386bsd_tdep): New function.
6263
6264 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6265 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6266 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6267 (i386_fix_call_dummy): Remove prototype.
6268 * i386-tdep.c (i386_call_dummy_words): New variable.
6269 (i386_gdbarch_init): Adjust for removal of the
6270 macros mentioned above.
6271
6272 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6273
6274 * command.h (add_setshow_auto_boolean_cmd): Replace
6275 add_set_auto_boolean_cmd.
6276 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6277 add_set_auto_boolean_cmd.
6278 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6279 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6280 mask-address'' command.
6281 (show_mask_address): Add cmd parameter.
6282 * remote.c (add_packet_config_cmd): Update. Change type of
6283 set_func and show_func to cmd_sfunc_ftype.
6284 (_initialize_remote): Update `set remote Z-packet'
6285 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6286 (show_remote_protocol_e_packet_cmd): Ditto.
6287 (show_remote_protocol_E_packet_cmd): Ditto.
6288 (show_remote_protocol_P_packet_cmd): Ditto.
6289 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6290 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6291 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6292 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6293 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6294 (show_remote_protocol_Z_packet_cmd): Ditto.
6295 (show_remote_protocol_binary_download_cmd): Ditto.
6296 (show_remote_cmd): Pass NULL to all of above.
6297
6298 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6299
6300 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6301 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6302 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6303 POP_FRAME): Remove defines.
6304 (i386_push_arguments, i386_store_struct_return,
6305 i386_extract_return_value, i386_store_return_value,
6306 i386_extract_struct_value_address, i386_push_dummy_frame,
6307 i386_pop_frame): Renove prototypes.
6308 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6309 macros mentioned above.
6310
6311 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6312
6313 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6314 add_set_boolean_cmd.
6315 (add_setshow_cmd): New function.
6316 * command.h (add_setshow_boolean_cmd): Replace
6317 add_set_boolean_cmd.
6318 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6319 and ``set rdiromatzero''.
6320 * maint.c (_initialize_maint_cmds): Update commented out code.
6321 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6322 * target.c (initialize_targets): Update `set
6323 trust-readonly-sections'.
6324 * remote.c (_initialize_remote): Update `set remotebreak'.
6325
6326 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6327
6328 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6329 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6330 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6331 fit into multi-arch framework.
6332 (i386_breakpoint_from_pc): New function.
6333 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6334 above.
6335
6336 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6337 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6338 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6339 (i386_frameless_function_invocation, i386_frame_num_args,
6340 i386_frame_init_saved_regs): Remove prototypes.
6341 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6342 macros mentioned above.
6343
6344 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6345
6346 * cli/cli-decode.c (set_cmd_cfunc): Update.
6347 (set_cmd_sfunc): Update.
6348 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6349 (set_cmd_sfunc, set_cmd_cfunc): Update.
6350 * cli/cli-decode.h: Update.
6351
6352 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6353
6354 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6355 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6356
6357 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6358
6359 * defs.h (auto_boolean): Declare enum.
6360 * command.h (cmd_auto_boolean): Delete enum.
6361 * mips-tdep.c (mask_address_var): Update.
6362 (mips_mask_address_p): Update.
6363 (show_mask_address): Update.
6364 * remote.c (struct packet_config): Update.
6365 (update_packet_config): Update.
6366 (show_packet_config_cmd): Update.
6367 (packet_ok): Update.
6368 (add_packet_config_cmd): Update.
6369 (_initialize_remote):
6370 * command.h: Update.
6371 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6372 (do_setshow_command): Update.
6373 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6374 * cli/cli-decode.h: Update.
6375
6376 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6377
6378 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6379 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6380 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6381 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6382 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6383 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6384
6385 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6386 list of DJGPP COFF targets.
6387
6388 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6389 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6390 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6391 (FP0_REGNUM): Remove define.
6392 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6393 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6394 (i386_register_virtual_size): Remove protoype.
6395 * i386-tdep.c (i386_register_virtual_size): Removed.
6396 (i386_extract_return_value, i386_store_return_value): Use
6397 FP0_REGNUM instead of NUM_FREGS to determine whether the
6398 floating-point registers are available.
6399 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6400 Adjust for removal of macros mentioned above.
6401
6402 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6403
6404 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6405 comments.
6406 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6407 Remove prototypes.
6408 (supply_gregset, fill_gregset): Remove use of register keyword and
6409 remove declaration for regmap. Use I386_NUM_GREGS instead of
6410 NUM_REGS and NUM_FREGS.
6411 (FPREGSET_FSAVE_OFFSET): Remove.
6412 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6413 NUM_FREGS to determine whether the floating-point registers are
6414 available.
6415
6416 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6417 gnu_store_registers): Replace usage of NUM_GREGS with
6418 I386_NUM_GREGS.
6419
6420 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6421 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6422 usage of NUM_GREGS with I386_NUM_GREGS.
6423
6424 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6425
6426 * i386bsd-nat.c: Include "i386-tdep.h".
6427 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6428 I386_NUM_GREGS.
6429
6430 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6431 and associated comment. They no longer make any sense, since we
6432 don't use this file anymore on Linux.
6433
6434 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6435 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6436 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6437 elements in these arrays.
6438 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6439 MAX_NUM_REGS.
6440
6441 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6442
6443 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6444 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6445
6446 2002-06-14 Andrew Cagney <cagney@redhat.com>
6447
6448 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6449 EXTRACT_RETURN_VALUE.
6450 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6451 EXTRACT_STRUCT_VALUE_ADDRESS.
6452 * gdbarch.h, gdbarch.c: Regenerate.
6453
6454 * values.c (value_being_returned): Handle
6455 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6456 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6457
6458 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6459 * arm-tdep.c (arm_gdbarch_init): Update.
6460 * avr-tdep.c (avr_gdbarch_init): Update.
6461 * cris-tdep.c (cris_gdbarch_init): Update.
6462 * d10v-tdep.c (d10v_gdbarch_init): Update.
6463 * ia64-tdep.c (ia64_gdbarch_init): Update.
6464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6465 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6466 * s390-tdep.c (s390_gdbarch_init): Update.
6467 * sh-tdep.c (sh_gdbarch_init): Update.
6468 * s390-tdep.c (s390_gdbarch_init): Update.
6469 * sparc-tdep.c (sparc_gdbarch_init): Update.
6470 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6471 * v850-tdep.c (v850_gdbarch_init): Update.
6472 * vax-tdep.c (vax_gdbarch_init): Update.
6473 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6474 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6475
6476 * config/arc/tm-arc.h: Update.
6477 * config/d30v/tm-d30v.h: Update.
6478 * config/fr30/tm-fr30.h: Update.
6479 * config/h8300/tm-h8300.h: Update.
6480 * config/h8500/tm-h8500.h: Update.
6481 * config/i386/tm-i386.h: Update.
6482 * config/i386/tm-ptx.h: Update.
6483 * config/i386/tm-symmetry.h: Update.
6484 * config/i960/tm-i960.h: Update.
6485 * config/m32r/tm-m32r.h: Update.
6486 * config/m68k/tm-delta68.h: Update.
6487 * config/m68k/tm-linux.h: Update.
6488 * config/m68k/tm-m68k.h: Update.
6489 * config/m88k/tm-m88k.h: Update.
6490 * config/mcore/tm-mcore.h: Update.
6491 * config/mips/tm-mips.h: Update.
6492 * config/mn10200/tm-mn10200.h: Update.
6493 * config/pa/tm-hppa.h: Update.
6494 * config/pa/tm-hppa64.h: Update.
6495 * config/sparc/tm-sp64.h: Update.
6496 * config/sparc/tm-sparc.h: Update.
6497 * config/sparc/tm-sparclet.h: Update.
6498 * config/z8k/tm-z8k.h: Update.
6499
6500 2002-06-14 Andrew Cagney <cagney@redhat.com>
6501
6502 * Makefile.in (i386_linux_tdep_h): Define.
6503 (i386_tdep_h, i387_tdep_h): Define.
6504 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6505 $(i386_tdep_h) and $(i387_tdep_h).
6506 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6507
6508 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6509
6510 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6511 Already covered by the default.
6512
6513 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6514 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6515 (i386_gdbarch_init): Initialize long_double_format and long_double
6516 bit.
6517
6518 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6519 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6520 Move these to ...
6521 * config/i386/i386sol2.mh: ... here.
6522 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6523 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6524 (SIGCONTEXT_PC_OFFSET): Remove define.
6525 (IN_SIGTRAMP): Remove define.
6526 * i386-sol2-tdep.c: New file.
6527
6528 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6529 * config/i386/tm-i386nw.h: Removed.
6530
6531 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6532 USE_STRUCT_CONVENTION): Remove defines.
6533 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6534 (get_longjmp_target): Remove prototype.
6535 (IN_SIGTRAMP): Remove define.
6536 (i386bsd_in_sigtramp): Remove prototype.
6537 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6538 function. Update comment accordingly
6539 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6540 (FRAME_SAVED_PC): Remove define.
6541 (i386bsd_frame_saved_pc): Remove prototype.
6542 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6543 GET_LONGJMP_TARGET): Remove defines.
6544 (get_longjmp_target): Remove prototype.
6545 (IN_SIGTRAMP): Remove define.
6546 (i386bsd_in_sigtramp): Remove prototype.
6547 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6548 function. Update comment accordingly
6549 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6550 (FRAME_SAVED_PC): Remove define.
6551 (i386bsd_frame_saved_pc): Remove prototype.
6552 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6553 Remove prototype.
6554 (USE_STRUCT_CONVENTION): Remove prototype.
6555 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6556 declaration.
6557 (_initialize_i386bsd_nat): Revise logic to determine some
6558 constants at compile time when compiling a native GDB. Warn if
6559 things don't match up with what we expect.
6560 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6561 Remove variables.
6562 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6563 to use date stored in `struct gdbarch_tdep'.
6564 (i386bsd_sigcontext_offset): Remove varaible.
6565 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6566 stored in `struct gdbarch_tdep'.
6567 (i386bsd_frame_saved_pc): Make static.
6568 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6569 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6570 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6571 i386fbsd4_sc_pc_offset): New variables.
6572 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6573 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6574 functions.
6575 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6576 functions.
6577 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6578 Modify the value of i386fbsd_sigtramp_start and
6579 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6580 i386fbsd_sigtramp_end.
6581 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6582 function.
6583
6584 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6585 define to i386-linux-tdep.h.
6586 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6587 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6588 defines.
6589 (i386_linux_register_name, i386_linux_register_byte,
6590 i386_linux_register_raw_size): Remove prototypes.
6591 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6592 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6593 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6594 TARGET_WRITE_PC): Remove defines.
6595 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6596 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6597 i386_linux_write_pc): Remove prototypes.
6598 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6599 (get_longjmp_target): Remove prototype.
6600 * i386-linux-tdep.h: New file.
6601 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6602 * i386-linux-tdep.c: Include "i386-tdep.h" and
6603 "i386-linux-tdep.h".
6604 (i386_linux_register_name, i386_linux_register_byte,
6605 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6606 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6607 Make static.
6608 (i386_linux_init_abi): New function.
6609 (_initialize_i386_linux_tdep): New function.
6610
6611 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6612 (i386_saved_pc_after_call): Remove prototype.
6613 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6614 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6615 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6616 (i386_register_name, i386_stab_reg_to_regnum,
6617 i386_dwarf_reg_to_regnum): Remove prototypes.
6618 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6619 SIZEOF_SSE_REGS): Remove defines.
6620 (REGISTER_BYTES): Remove define.
6621 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6622 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6623 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6624 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6625 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6626 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6627 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6628 (get_longjmp_target): Remove prototype.
6629 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6630 (sigtramp_saved_pc): Remove define.
6631 (i386v4_sigtramp_saved_pc): Remove prototype.
6632 * config/i386/tm-go32.h (FRAME_CHAIN,
6633 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6634 (i386go32_frame_saved_pc): Remove prototype.
6635 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6636 (get_longjmp_target): Remove prototype.
6637 * i386-tdep.h: Include "osabi.h".
6638 (enum i386_abi): Removed.
6639 (enum struct_return): New enum.
6640 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6641 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6642 sc_pc_offset members.
6643 (i386_gdbarch_register_os_abi): Remove prototype.
6644 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6645 I386_SSE_NUM_REGS): New defines.
6646 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6647 I386_SSE_SIZEOF_REGS): New defines.
6648 (i386_register_name, i386_register_byte, i386_register_raw_size):
6649 New prototypes.
6650 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6651 (i386bsd_sigtramp_saved_pc): New prototype.
6652 * i386-tdep.c: Don't include "elf-bfd.h".
6653 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6654 i386_frame_chain, i386_saved_pc_after_call): Make static.
6655 (i386_frame_saved_pc): Rewrite to call architecture dependent
6656 function to deal with signal handlers. Make static.
6657 (i386go32_frame_saved_pc): Removed.
6658 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6659 Removed.
6660 (i386_get_longjmp_target): New function.
6661 (default_struct_convention, pcc_struct_convention,
6662 reg_struct_convention, valid_conventions, struct_convention): New
6663 variables.
6664 (i386_use_struct_convention): New function.
6665 (i386v4_sigtramp_saved_pc): Renamed to
6666 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6667 (i386_pc_in_sigtramp): New function.
6668 (i386_abi_names): Removed.
6669 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6670 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6671 Removed.
6672 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6673 i386_gdbarch_register_os_abi): Removed.
6674 (struct i386_abi_handler): Removed.
6675 (i386_abi_handler_list): Removed.
6676 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6677 functions.
6678 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6679 i386_nw_init_abi): New functions.
6680 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6681 Use set_gdbarch_xxx() calls instead of relying on macros for a
6682 number of calls.
6683 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6684 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6685 Register the various architecture variants defined in this file.
6686
6687 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6688
6689 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6690 (struct main_type): Remove arg_types member. Update comments for
6691 struct field.
6692 (TYPE_ARG_TYPES): Remove.
6693 (TYPE_FN_FIELD_ARGS): Update.
6694 (smash_to_method_type): Update prototype.
6695
6696 * c-typeprint.c (cp_type_print_method_args): Take method type
6697 instead of argument list. Use new argument layout. Simplify.
6698 (c_type_print_args): Use new argument layout. Simplify.
6699 (c_type_print_base): Update call to cp_type_print_method_args.
6700 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6701 argument; use die->type instead. Update call to
6702 smash_to_method_type.
6703 (read_structure_scope): Update call to dwarf2_add_member_fn.
6704 * gdbtypes.c (allocate_stub_method): Update comment.
6705 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6706 Use new argument layout.
6707 (check_stub_method): Use new argument layout. Don't count
6708 void as an argument.
6709 (print_arg_types): Update comments. Use new argument layout.
6710 (recursive_dump_type): Don't print arg_types member.
6711 * hpread.c (hpread_read_struct_type): Use new argument layout.
6712 (fixup_class_method_type): Likewise.
6713 (hpread_type_lookup): Likewise.
6714 * stabsread.c (read_type): Update calls to read_args and
6715 smash_to_method_type.
6716 (read_args): Use new argument layout. Simplify.
6717 * valops.c (typecmp): Use new argument layout. Update parameters
6718 and comments. Simplify.
6719 (hand_function_call): Use new argument layout.
6720 (search_struct_method): Update call to typecmp.
6721 (find_overload_match): Use new argument layout.
6722
6723 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6724
6725 * NEWS: Mention multithreaded debug support for gdbserver.
6726
6727 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6728
6729 * MAINTAINERS: Mention NEWS.
6730
6731 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6732
6733 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6734 (struct mips_objfile_private, compare_pdr_entries): New.
6735 (non_heuristic_proc_desc): Read the ".pdr" section if it
6736 is present.
6737
6738 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6739
6740 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6741 (arm_debug): New static variable.
6742 (_initialize_arm_tdep): Add ``set debug arm'' command.
6743
6744 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6745
6746 * Makefile.in (sim_arm_h): Define.
6747 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6748 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6749 (arm_register_sim_regno): New function, map an internal REGNUM
6750 onto a simulator register number.
6751 (arm_gdbarch_init): Set register_sim_regno.
6752
6753 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6754
6755 * MAINTAINERS: Add self.
6756
6757 2002-06-11 Jim Blandy <jimb@redhat.com>
6758
6759 * source.c (source_info): Mention whether the symtab has
6760 information about preprocessor macros.
6761
6762 Call the command `info macro', not `show macro'.
6763 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6764 Fix error message.
6765 (_initialize_macrocmd): Register `info_macro_command' in
6766 `infolist', not `showlist'.
6767
6768 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6769
6770 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6771 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6772 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6773 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6774 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6775 unconditionally.
6776 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6777 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6778 (_initialize_mips_tdep): Remove dead code.
6779 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6780 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6781 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6782 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6783 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6784 MIPS_LAST_FP_ARG_REGNUM): Remove.
6785
6786 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6787
6788 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6789 (unwind_tmp_obstack_free, parse_frame_info)
6790 (update_context, cfi_read_fp, cfi_write_fp)
6791 (cfi_frame_chain, cfi_init_extra_frame_info)
6792 (cfi_virtual_frame_pointer): Use the above function.
6793 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6794
6795 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6796
6797 * v850-tdep.c (v850_type_is_scalar): New function.
6798 (v850_use_struct_convention): Match current gcc implementation
6799 as close as possible.
6800 (v850_push_arguments): Fix stack_offset handling. Don't write
6801 struct_addr into register. This is done by v850_store_struct_return.
6802 (v850_extract_return_value): Care for structs.
6803 (v850_store_return_value): Ditto.
6804 (v850_store_struct_return): Actually write address.
6805
6806 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6807
6808 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6809 without debug information too.
6810
6811 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6812
6813 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6814 Make multi-arch pure.
6815 * gdbarch.h, gdbarch.c: Re-generate.
6816 * arm-tdep.c (arm_print_float_info): Update.
6817 * arch-utils.h (default_print_float_info): Update.
6818 * arch-utils.c (default_print_float_info): Update.
6819 * infcmd.c (float_info): Update call.
6820
6821 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6822
6823 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6824 the front of the initialize list.
6825
6826 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6827
6828 * infrun.c (struct inferior_status): Replace fields
6829 selected_frame_address and selected_level with field
6830 selected_frame_id.
6831 (save_inferior_status): Update. Use get_frame_id.
6832 (struct restore_selected_frame_args): Delete.
6833 (restore_selected_frame): Update. Use frame_find_by_id.
6834 (restore_inferior_status): Update.
6835
6836 * breakpoint.h (struct breakpoint): Change type of
6837 watchpoint_frame to frame_id.
6838 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6839 call to get_current_frame.
6840 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6841 get_current_frame.
6842 (watchpoint_check): Use frame_find_by_id.
6843
6844 * frame.h (record_selected_frame): Delete declaration.
6845 * stack.c (record_selected_frame): Delete function.
6846
6847 * frame.h (struct frame_id): Define.
6848 (get_frame_id): Declare.
6849 (frame_find_by_id): Declare.
6850 * frame.c (frame_find_by_id): New function.
6851 (get_frame_id): New function.
6852
6853 2002-06-10 Andrey Volkov <avolkov@transas.com>
6854
6855 * ser-e7kpc.c: Fix duplicated define and call of
6856 _initialize_ser_e7000pc
6857
6858 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6859
6860 * signals/signals.c (target_signal_from_host): Fix #ifdef
6861 SIGRTMIN case.
6862 (do_target_signal_to_host): Likewise.
6863
6864 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6865
6866 * mips-tdep.c (mips_find_abi_section): New function.
6867 (mips_gdbarch_init): Call it.
6868
6869 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6870
6871 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6872 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6873 after Andrew's 2002-06-08 gdbarch change.
6874
6875 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6876
6877 * i386-linux-nat.c (suppy_gregset): Don't supply
6878 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6879 register cache.
6880 (fill_gregset): Don't fetch it under the same circumstances.
6881
6882 2002-06-09 Andrew Cagney <cagney@redhat.com>
6883
6884 * Makefile.in (callback_h): Define.
6885 (remote_sim_h): Update path to remote-sim.h.
6886 (remote-rdp.o): Add $(callback_h).
6887 (remote-sim.o): Use $(callback_h).
6888 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6889 * remote-rdp.c: Include "gdb/callback.h".
6890
6891 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6892
6893 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6894 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6895
6896 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6897
6898 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6899 * rdi-share/serpardr.c: Ditto.
6900 * rdi-share/unixcomm.c: Ditto.
6901 * rdi-share/serdrv.c: Ditto.
6902 * rdi-share/hostchan.h: Ditto.
6903 * rdi-share/hostchan.c: Ditto.
6904 * rdi-share/host.h: Ditto.
6905 * rdi-share/devsw.c: Ditto.
6906
6907 * objfiles.h: Change type of obj_private to void pointer.
6908 * pa64solib.c: Update copyright. Don't include "assert.h", use
6909 strcmp instead of STREQ, use LONGEST, do not use PTR
6910 * somsolib.c: Ditto.
6911
6912 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6913 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6914 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6915
6916 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6917
6918 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6919 (default_get_saved_register): Delete function.
6920 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6921 generic_unwind_get_saved_register.
6922 * gdbarch.h, gdbarch.c: Re-generate.
6923
6924 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6925
6926 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6927 generic_func_frame_chain_valid.
6928 * gdbarch.h, gdbarch.c: Re-generate.
6929 * blockframe.c (generic_func_frame_chain_valid): Only check
6930 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6931 passing FP to PC_IN_CALL_DUMMY.
6932 Fix PR gdb/360.
6933
6934 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6935
6936 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6937 (register_gdbarch_data): Initialize init_p.
6938 (gdbarch_data): Initialize data pointer using the init function.
6939 (init_gdbarch_data): Delete function.
6940 (gdbarch_update_p): Update.
6941 (initialize_non_multiarch): Update.
6942 (struct gdbarch): Add field initialized_p.
6943 * gdbarch.h, gdbarch.c: Re-generate.
6944
6945 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6946
6947 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6948 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6949 better do the things actually here.
6950 * x86-64-tdep.c (x86_64_register_name2nr): New.
6951 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6952 (x86_64_gdbarch_init): Respect the above change.
6953 * x86-64-tdep.h (x86_64_register_name2nr)
6954 (x86_64_register_nr2name): Add prototypes.
6955 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6956
6957 2002-06-06 Michael Snyder <msnyder@redhat.com>
6958
6959 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6960 Delete extra braces and re-indent.
6961 (d10v_store_return_value): Char return values
6962 must be shifted over by one byte in R0.
6963 (d10v_extract_return_value): Delete extra braces, re-indent.
6964
6965 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6966
6967 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6968 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6969 (d10v_integer_to_address): Rewrite.
6970 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6971 the d10v specific functions which take care of converting to the
6972 correct space.
6973
6974 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6975
6976 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6977 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6978
6979 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6980
6981 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6982 includes.
6983 * config/tm-linux.h: Ditto.
6984 * config/alpha/tm-alphalinux.h: Ditto.
6985 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6986 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6987 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6988 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6989 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6990 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6991 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6992 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6993 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6994 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6995 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6996 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6997 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6998 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6999 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7000 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7001 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7002 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7003 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7004 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7005 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7006 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7007 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7008 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7009 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7010 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7011 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7012 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7013 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7014 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7015 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7016 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7017 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7018 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7019 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7020 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7021 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7022
7023 2002-05-04 Aidan Skinner <aidan@velvet.net>
7024
7025 * ada-exp.tab.c: New file
7026 * ada-exp.y: New file
7027 * ada-lang.c: New file
7028 * ada-lang.h: New file
7029 * ada-lex.c: New file
7030 * ada-lex.l: New file
7031 * ada-tasks.c: New file
7032 * ada-typeprint.c: New file
7033 * ada-valprint.c: New file
7034
7035 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7036
7037 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7038 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7039
7040 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7041
7042 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7043 insetead of ppc-linux-tdep.o.
7044 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7045 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7046
7047 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7048
7049 2002-05-07 Christian Groessler <chris@groessler.org>
7050 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7051 bit register contents for little endian hosts.
7052
7053 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7054
7055 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7056 any maintainer.
7057
7058 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7059
7060 * gdbarch.h: Regenerate.
7061
7062 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7063
7064 * MAINTAINERS: Add everyone to write-after-approval list.
7065
7066 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7067
7068 * stack.c (frame_info): Use frame_register_unwind instead of
7069 saved_regs. Mention when the SP is on the stack or in a register.
7070
7071 * frame.h (frame_register_unwind_ftype): Define. Document.
7072 (struct frame_info): Add field register_unwind and
7073 register_unwind_cache.
7074 (frame_register_unwind): Declare.
7075 (generic_unwind_get_saved_register): Declare.
7076
7077 * frame.c (frame_register_unwind): New function.
7078 (generic_unwind_get_saved_register): New function.
7079
7080 * blockframe.c (generic_call_dummy_register_unwind): New function.
7081 (frame_saved_regs_register_unwind): New function.
7082 (set_unwind_by_pc): New function.
7083 (create_new_frame): New function.
7084 (get_prev_frame): New function.
7085
7086 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7087
7088 * a29k-share/: Delete directory.
7089 * remote-vx29k.c: Delete file.
7090
7091 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7092
7093 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7094 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7095
7096 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7097
7098 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7099 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7100 (sparc64nbsd-nat.o)
7101 (sparcnbsd-nat.o)
7102 (sparcnbsd-tdep.o): New dependency lists.
7103 * NEWS: Note new UltraSPARC NetBSD native configuration.
7104 * configure.host (sparc64-*-netbsd*): New host.
7105 * configure.tgt (sparc-*-netbsdelf*)
7106 (sparc-*-netbsd*): Set gdb_target to nbsd.
7107 (sparc64-*-netbsd*): New target.
7108 * sparc64nbsd-nat.c: New file.
7109 * sparcnbsd-nat.c: New file.
7110 * sparcnbsd-tdep.c: New file.
7111 * sparcnbsd-tdep.h: New file.
7112 * config/sparc/nbsd.mt: New file.
7113 * config/sparc/nbsd64.mh: New file.
7114 * config/sparc/nbsd64.mt: New file.
7115 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7116 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7117 (HOST_IPC): Remove.
7118 * config/sparc/nbsdaout.mt: Remove.
7119 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7120 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7121 (HOST_IPC): Remove.
7122 * config/sparc/nbsdelf.mt: Remove.
7123 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7124 sparc-nat.c compatiblity defines.
7125 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7126 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7127 * config/sparc/tm-nbsd64.h: New file.
7128 * config/sparc/tm-nbsdaout.h: Remove.
7129 * config/sparc/xm-nbsd.h: Remove.
7130
7131 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7132
7133 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7134 * sparc-tdep.c: Include osabi.h.
7135 (gdbarch_tdep): Add osabi member.
7136 (_initialize_sparc_tdep): Use gdbarch_register.
7137 (sparc_gdbarch_init): Use generic OS ABI framework.
7138 (sparc_dump_tdep): New function.
7139
7140 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7141
7142 * corefile.c (do_captured_read_memory_integer): Return non-zero
7143 result.
7144 (safe_read_memory_integer): Copy result of memory read when
7145 status is non-zero. Also, add comments.
7146
7147 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7148
7149 * Makefile.in (ppc_tdep_h): Define.
7150 (ppc-linux-nat.o)
7151 (ppc-linux-tdep.o)
7152 (rs6000-tdep.o): Use $(ppc_tdep_h).
7153 (ppc-sysv-tdep.o)
7154 (ppcnbsd-nat.o)
7155 (ppcnbsd-tdep.o): New dependency lists.
7156 * ppc-tdep.h: Use generic OS ABI framework.
7157 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7158 (ppc_linux_init_abi): New functions.
7159 (ppc_sysv_abi_broken_use_struct_convention)
7160 (ppc_sysv_abi_use_struct_convention)
7161 (ppc_sysv_abi_push_arguments): Move to...
7162 * ppc-sysv-tdep.c: ...here.
7163 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7164 * rs6000-tdep.c (process_note_abi_tag_sections)
7165 (get_elfosabi): Remove.
7166 (rs6000_gdbarch_init): Use generic OS ABI framework.
7167 (rs6000_dump_tdep): New function.
7168 (_initialize_rs6000_tdep): Use gdbarch_register.
7169 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7170 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7171 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7172 of ppc-linux-tdep.o.
7173 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7174 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7175 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7176 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7177 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7178 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7179
7180 2002-05-29 Jim Blandy <jimb@redhat.com>
7181
7182 * macroscope.c (default_macro_scope): Put `void' in empty argument
7183 list.
7184
7185 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7186
7187 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7188 * arch-utils.c: Include "sim-regno.h".
7189 * gdbarch.sh: Don't include "sim-regno.h".
7190 * gdbarch.h, gdbarch.c: Regenerate.
7191 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7192 here.
7193 * arch-utils.h (legacy_register_sim_regno): To here.
7194 * remote-sim.c (legacy_register_sim_regno): Move function from
7195 here.
7196 * arch-utils.c (legacy_register_sim_regno): To here.
7197
7198 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7199
7200 * sim-regno.h: New file.
7201 * Makefile.in (sim_regno_h): Define.
7202 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7203 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7204 (legacy_register_sim_regno): New function.
7205 (one2one_register_sim_regno): New function.
7206 (gdbsim_fetch_register): Rewrite.
7207 (gdbsim_store_register): Only store a register when
7208 REGISTER_SIM_REGNO is valid.
7209 * d10v-tdep.c: Include "sim-regno.h".
7210 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7211 (d10v_ts3_register_sim_regno): Ditto.
7212 * gdbarch.sh: Include "sim-regno.h".
7213 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7214 * gdbarch.h, gdbarch.c: Regenerate.
7215 * arch-utils.h (default_register_sim_regno): Delete declaration.
7216 * arch-utils.c (default_register_sim_regno): Delete function.
7217
7218 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7219
7220 * ppcnbsd-nat.c: Rewrite.
7221 * ppcnbsd-tdep.c: New file.
7222 * ppcnbsd-tdep.h: New file.
7223 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7224 solib.o, and solib-svr4.o.
7225 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7226 nbsd-tdep.o, and corelow.o.
7227
7228 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7229
7230 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7231 `tr' and `sed'. Mention that `broken' targets are not expected to
7232 build.
7233
7234 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7235
7236 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7237 Let PC point right after the prologue before looking up symbols.
7238
7239 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7240
7241 * i386-tdep.c (i386_register_virtual_type): Return
7242 builtin_type_vec128i for SSE registers.
7243
7244 * gdbtypes.h (builtin_type_vec128i): Declare.
7245
7246 * gdbtypes.c (build_builtin_type_vec128i): New function.
7247 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7248 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7249 (build_gdbtypes): Initialize new builtin vector types.
7250 (_initialize_gdbtypes): Register new vector types with gdbarch.
7251
7252 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7253
7254 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7255 since it has been multi-arch'd.
7256 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7257 Move Alpha and VAX multi-arch news entries to same section
7258 as other multi-arch news.
7259
7260 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7261
7262 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7263 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7264 static. Rename some register numbers to put them in ns32k-tdep
7265 private namespace.
7266 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7267 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7268 functions.
7269 (_initialize_ns32k_tdep): Use gdbarch_register.
7270 * ns32k-tdep.h: New file.
7271 * ns32knbsd-tdep.c: New file.
7272 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7273 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7274 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7275 REGISTER_BYTES, REGISTER_BYTE): Remove.
7276 * config/ns32k/tm-ns32k.h: New file.
7277 * config/ns32k/tm-umax.h: Remove.
7278
7279 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7280
7281 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7282 ns32k_store_struct_return, ns32k_extract_return_value,
7283 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7284 functions.
7285 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7286 ns32k_saved_pc_after_call.
7287 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7288 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7289 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7290 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7291 ns32k_extract_struct_value_address.
7292
7293 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7294
7295 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7296 ns32k_fix_call_dummy): New.
7297 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7298 ns32k_call_dummy_words.
7299 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7300 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7301 CALL_DUMMY_NARGS): Remove.
7302 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7303
7304 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7305
7306 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7307 ns32k_frame_saved_pc, ns32k_frame_args_address,
7308 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7309 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7310 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7311 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7312 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7313 (BREAKPOINT): Remove..
7314 (FRAME_CHAIN): Define as ns32k_frame_chain.
7315 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7316 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7317 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7318 (FRAME_FIND_SAVED_REGS): Remove.
7319 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7320 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7321 (POP_FRAME): Define as ns32k_pop_frame.
7322
7323 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7324
7325 * ns32k-tdep.c (ns32k_register_byte_32082,
7326 ns32k_register_byte_32382, ns32k_register_raw_size,
7327 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7328 functions.
7329 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7330 ns32k_register_byte_32382.
7331 * config/ns32k/tm-umax.h: Update copyright years.
7332 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7333 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7334 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7335 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7336 (ns32k_get_enter_addr): Fix prototype.
7337
7338 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7339
7340 * ns32k-tdep.c: Update copyright years.
7341 (ns32k_register_name_32082): New function.
7342 (ns32k_register_name_32382): Ditto.
7343 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7344 (REGISTER_NAME): Define as ns32k_register_name_32382.
7345 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7346 (REGISTER_NAME): Define as ns32k_register_name_32082.
7347
7348 2002-05-24 Jim Blandy <jimb@redhat.com>
7349
7350 * dwarf2read.c (free_line_header): Use xfree, not free.
7351
7352 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7353
7354 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7355 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7356
7357 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7358
7359 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7360
7361 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7362
7363 From Ross Alexander at NEC Europe:
7364 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7365
7366 2002-05-23 Michael Snyder <msnyder@redhat.com>
7367
7368 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7369 for input, rather than parse_and_eval_address.
7370
7371 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7372
7373 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7374 * Makefile.in (sim_d10v_h): Update definition.
7375
7376 2002-05-24 Andrew Cagney <cagney@redhat.com>
7377
7378 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7379 change `2002-05-22 Michael Snyder' below.
7380 (d10v_push_arguments): Ditto.
7381 (d10v_extract_return_value): Ditto.
7382
7383 2002-05-23 Jim Blandy <jimb@redhat.com>
7384
7385 * macrotab.c (check_for_redefinition): Don't complain if the new
7386 definition is the same as the previous one. Take more arguments
7387 to allow the comparison.
7388 (macro_define_object, macro_define_function): Pass more arguments
7389 to check_for_redefinition.
7390
7391 2002-05-22 Michael Snyder <msnyder@redhat.com>
7392
7393 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7394 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7395 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7396 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7397 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7398 Add a temp variable to save a call (and a memory read).
7399 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7400 if possible (so that PC_IN_CALL_DUMMY will work).
7401
7402 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7403
7404 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7405
7406 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7407
7408 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7409 fde->cie_ptr.
7410 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7411 (dwarf2_build_frame_info): Add offset to fde->initial_location
7412 so that frames of shared libraries are mapped correctly.
7413 (execute_stack_op): Change type of 'result' from ULONGEST to
7414 CORE_ADDR.
7415
7416 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7417
7418 * config/alpha/tm-nbsd.h: Include solib.h.
7419
7420 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7421
7422 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7423 assumptions about the host's byte order.
7424
7425 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7426
7427 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7428 to dependency list.
7429 * alphanbsd-tdep.c: Include solib-svr4.h.
7430 * shnbsd-tdep.c: Ditto.
7431
7432 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7433
7434 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7435 nbsd-tdep.h to dependency list.
7436 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7437 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7438 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7439 nbsdaout.mh and nbsdelf.mh consistently.
7440 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7441 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7442 nbsdaout.mt and nbsdelf.mh consistently.
7443 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7444 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7445 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7446 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7447 a.out shared library stuff from here...
7448 * config/nm-nbsdaout.h: ...to here.
7449 * config/tm-nbsd.h: Remove.
7450 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7451 * config/arm/nbsd.mh: Remove.
7452 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7453 nbsd-tdep.o.
7454 * config/arm/nbsdaout.mh: New file.
7455 * config/arm/nbsdelf.mh: New file.
7456 * config/arm/nm-nbsdaout.h: New file.
7457 * config/i386/nbsd.mh: Remove.
7458 * config/i386/nbsd.mt: Remove.
7459 * config/i386/nbsdaout.mh: New file.
7460 * config/i386/nbsdaout.mt: New file.
7461 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7462 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7463 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7464 i386_register_u_addr): Remove.
7465 * config/i386/nm-nbsdaout.h: New file.
7466 * config/i386/nm-nbsdelf.h: Remove.
7467 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7468 (USE_STRUCT_CONVENTION): Remove.
7469 * config/i386/tm-nbsdaout.h: New file.
7470 * config/i386/tm-nbsdelf.h: Remove.
7471 * config/m68k/nbsd.mh: Remove.
7472 * config/m68k/nbsd.mt: Remove.
7473 * config/m68k/nbsdaout.mh: New file.
7474 * config/m68k/nbsdaout.mt: New file.
7475 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7476 * config/m68k/nm-nbsdaout.h: New file.
7477 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7478 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7479 * config/ns32k/nbsd.mh: Remove.
7480 * config/ns32k/nbsd.mt: Remove.
7481 * config/ns32k/nbsdaout.mh: New file.
7482 * config/ns32k/nbsdaout.mt: New file.
7483 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7484 * config/ns32k/nm-nbsdaout.h: New file.
7485 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7486 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7487 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7488 (SVR4_SHARED_LIBS): Remove.
7489 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7490 * config/sparc/nbsd.mh: Remove.
7491 * config/sparc/nbsd.mt: Remove.
7492 * config/sparc/nbsdaout.mh: New file.
7493 * config/sparc/nbsdaout.mt: New file.
7494 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7495 * config/sparc/nbsdelf.mt: New file.
7496 * config/sparc/nm-nbsdaout.h: New file.
7497 * config/sparc/nm-nbsdelf.h: Remove.
7498 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7499 * config/sparc/tm-nbsdaout.h: New file.
7500
7501 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7502
7503 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7504 mipsnbsd-tdep.c
7505 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7506
7507 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7508
7509 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7510 shnbsd-nat.c.
7511 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7512
7513 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7514
7515 * NEWS: Note new MIPS NetBSD native configuration.
7516 * configure.host (mips*-*-netbsd*): New host.
7517 * configure.tgt (mips*-*-netbsd*): New target.
7518 * mipsnbsd-nat.c: New file.
7519 * mipsnbsd-tdep.c: New file.
7520 * mipsnbsd-tdep.h: New file.
7521 * config/mips/nbsd.mh: New file.
7522 * config/mips/nbsd.mt: New file.
7523 * config/mips/nm-nbsd.h: New file.
7524 * config/mips/tm-nbsd.h: New file.
7525
7526 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7527
7528 * Makefile.in (SFILES): Add osabi.c.
7529 (COMMON_OBS): Add osabi.o.
7530 (osabi.o): New dependency list.
7531 * osabi.c: New file.
7532 * osabi.h: New file.
7533 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7534
7535 * Makefile.in (alpha_tdep_h): Define and use instead of
7536 alpha-tdep.h.
7537 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7538 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7539 Remove.
7540 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7541 * alpha-tdep.h: Include osabi.h.
7542 (alpha_abi): Remove.
7543 (gdbarch_tdep): Use generic OS ABI framework.
7544 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7545 gdbarch_register_osabi.
7546 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7547 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7548 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7549
7550 * Makefile.in (sh_tdep_h): Add osabi.h.
7551 * sh-tdep.h (sh_osabi): Remove.
7552 (gdbarch_tdep): Use generic OS ABI framework.
7553 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7554 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7555 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7556 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7557
7558 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7559 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7560 gdbarch_register_osabi.
7561 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7562 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7563 (get_elfosabi): Rename to...
7564 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7565 ABI framework support routines.
7566 (arm_gdbarch_init): Use generic OS ABI framework.
7567 (arm_dump_tdep): Likewise.
7568 (_initialize_arm_tdep): Likewise.
7569 * arm-tdep.h: Include osabi.h.
7570 (arm_abi): Remove.
7571 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7572 osabi member.
7573 (arm_gdbarch_register_os_abi): Remove prototype.
7574 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7575 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7576
7577 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7578 * mips-tdep.c: Include osabi.h.
7579 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7580 OS ABI framework.
7581
7582 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7583
7584 * h8300-tdep.c: Fix formatting.
7585
7586 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7587
7588 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7589 printing vector registers.
7590
7591 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7592
7593 From Fernando Nasser:
7594 * remote.c (remote_async_open_1): Re-throw the exception when the
7595 connection fails.
7596 (remote_cisco_open): Ditto.
7597 (remote_open_1): Ditto.
7598
7599 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7600
7601 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7602 (remote_start_remote): Add uiout parameter. Pass through to
7603 remote_start_remote_dummy.
7604 (remote_open_1): Use catch_exception instead of catch_errors.
7605 (remote_async_open_1): Ditto.
7606 (remote_cisco_open): Ditto.
7607
7608 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7609
7610 * remote.c (remote_start_remote): Replace PTR with void pointer.
7611 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7612 static.
7613
7614 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7615
7616 * gdb_indent.sh: Allow the script to be run in the sim directory.
7617
7618 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7619
7620 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7621 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7622
7623 * corelow.c (core_open): Only call set_gdbarch_from_file if
7624 exec_bfd is NULL.
7625
7626 2002-05-17 Andrey Volkov <avolkov@transas.com>
7627
7628 * h8300-tdep.c: Add support of EXR register
7629 * config/h8300/tm-h8300.h: Ditto.
7630
7631 2002-05-17 Andrey Volkov <avolkov@transas.com>
7632
7633 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7634
7635 2002-05-17 Andrey Volkov <avolkov@transas.com>
7636
7637 * h8300-tdep.c: Change literal regnums to REGNO.
7638
7639 2002-05-17 Jim Blandy <jimb@redhat.com>
7640
7641 * NEWS: Note addition of macro support.
7642
7643 Expand preprocessor macros in C expressions.
7644 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7645 (scan_macro_expansion, scanning_macro_expansion,
7646 finished_macro_expansion): New function declarations.
7647 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7648 variable declarations.
7649 * parser-defs.h (expression_context_pc): New declaration.
7650 * parse.c (expression_context_pc): New variable.
7651 (parse_exp_1): Set expression_context_pc, as well as
7652 expression_context_block.
7653 * c-exp.y (yylex): If we're not already reading the result of a
7654 macro expansion, try to macro-expand the next token. When we're
7655 done scanning a macro expansion, switch back to the mainline text.
7656 Commas and `if's in a macro's expansion don't terminate the input.
7657 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7658 (macro_original_text, macro_expanded_text,
7659 expression_macro_lookup_func, expression_macro_lookup_baton): New
7660 variables.
7661 (scan_macro_expansion, scanning_macro_expansion,
7662 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7663 c_preprocess_and_parse): New functions.
7664 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7665 c_preprocess_and_parse, instead of c_parse.
7666 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7667 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7668
7669 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7670
7671 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7672 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7673 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7674
7675 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7676
7677 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7678
7679 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7680
7681 * Makefile.in (sh_tdep_h): Define and use.
7682 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7683 register enum): Move to...
7684 * * sh-tdep.h: ...here.
7685 * sh-tdep.c: Include sh-tdep.h.
7686 * sh3-rom.c: Likewise.
7687 * shnbsd-tdep.c: Likewise.
7688
7689 2002-05-16 Michael Snyder <msnyder@redhat.com>
7690
7691 * arm-tdep.c: Spelling fix in comment.
7692
7693 2002-05-16 Jim Blandy <jimb@redhat.com>
7694
7695 Add commands for manually expanding macros and showing their
7696 definitions.
7697 * macrocmd.c, macroscope.c, macroscope.h: New files.
7698 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7699 (macroscope_h): New variable.
7700 (HFILES_NO_SRCDIR): Add macroscope.h.
7701 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7702 (macroscope.o, macrocmd.o): New rules.
7703
7704 Teach the Dwarf 2 reader to read macro information.
7705 * dwarf2read.c: #include "macrotab.h".
7706 (dwarf_macinfo_buffer): New variable.
7707 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7708 dwarf_macinfo_size.
7709 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7710 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7711 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7712 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7713 dwarf2_macro_spaces_in_definition): New complaints.
7714 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7715 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7716 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7717 the partial symbol table.
7718 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7719 from what's recorded in the partial symbol table.
7720 (read_file_scope): If the compilation unit has a
7721 `DW_AT_macro_info' attribute, read its macro information.
7722 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7723
7724 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7725
7726 Fix PR gdb/546
7727 * ser-tcp.c: Don't include <netinet/udp.h>.
7728
7729 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7730
7731 * MAINTAINERS: Update my email address.
7732
7733 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7734
7735 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7736 include file of the same name.
7737
7738 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7739
7740 * configure.tgt: Mark v850 as multi-arched.
7741 * config/v850/tm-v850.h: Remove file.
7742 * config/v850/v850.mt: Eliminate TM_FILE.
7743
7744 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7745
7746 * v850-tdep.c: Full multi-arch.
7747 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7748 Define GDB_MULTI_ARCH to 2.
7749
7750 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7751
7752 * p-exp.y (current_type): New static variable.
7753 Carries the type of the expression at the position that is parsed.
7754 (push_current_type, pop_current_type): Two new functions. Used
7755 to store/restore current_type in expression on specific tokens.
7756 (search_field): New static variable. Set to one after parsing a point
7757 as at that point only a FIELDNAME token should be searched.
7758 (FIELDNAME): New token. After a point only a token belonging to
7759 current_type type definition is allowed.
7760 (all over token rules): reset and change current_type according
7761 to rules.
7762 (exp '[' rule): insert implicit array index field if
7763 exp is a pascal string type.
7764
7765 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7766
7767 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7768 frame info. Use frame_info's saved_regs instead of matching member
7769 in extra_frame_info throughout.
7770 (v850_frame_init_saved_regs): New function.
7771 (v850_init_extra_frame_info): Move most functionality into
7772 v850_frame_init_saved_regs().
7773 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7774 (v850_frame_find_saved_regs): Remove declaration.
7775 (FRAME_FIND_SAVED_REGS): Remove definition.
7776 (v850_frame_init_saved_regs): Add declaration.
7777 (FRAME_INIT_SAVED_REGS): Add definition.
7778
7779 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7780
7781 * v850-tdep.c: Begin multi-arch'ing v850.
7782 (v850_target_architecture_hook): Remove function.
7783 (v850_gdbarch_init): New function. Add code previously in
7784 v850_target_architecture_hook().
7785 (_initialize_v850_tdep): Don't set target_architecture_hook.
7786 Call register_gdbarch_init() instead.
7787
7788 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7789
7790 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7791 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7792 (fixup_class_method_type): Likewise.
7793
7794 2002-05-15 Jim Blandy <jimb@redhat.com>
7795
7796 Add macro structures to GDB's symbol tables. Nobody puts anything
7797 in them yet.
7798 * symtab.h (struct symtab): New member: `macro_table'.
7799 * buildsym.h (pending_macros): New global variable.
7800 * buildsym.c: #include "macrotab.h".
7801 (buildsym_init): Initialize `pending_macros'.
7802 (end_symtab): If we found macro information while reading a CU's
7803 debugging info, do build a symtab structure for it. Make the
7804 symtab point to the macro information, and clear the
7805 `pending_macros' pointer which held it while we were reading the
7806 debug info.
7807 (really_free_pendings): Free any pending macro table.
7808 * objfiles.h (struct objfile): New member: `macro_cache'.
7809 * objfiles.c (allocate_objfile): Set allocate and free functions
7810 for the macro cache's objstack.
7811 (free_objfile): Empty the macro cache's obstack.
7812 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7813 set new allocate and free functions for it.
7814 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7815 free functions for the macro cache's objstack. (Why is this
7816 function building its own objfile?)
7817 * symmisc.c (print_objfile_statistics): Print statistics on the
7818 macro bcache.
7819 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7820
7821 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7822
7823 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7824 (REGISTER_U_ADDR): Delete definition.
7825 (arm_register_u_addr): Delete declaration.
7826
7827 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7828
7829 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7830 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7831
7832 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7833
7834 * regcache.c (register_valid): Revise comments refering to "Not
7835 available" and "unavailable".
7836 * frame.c (frame_register_read): Ditto.
7837 * findvar.c (value_of_register): Ditto.
7838
7839 2002-05-15 Andrew Cagney <cagney@redhat.com>
7840
7841 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7842 (remote-sim.o): Update dependencies.
7843 (d10v-tdep.o): Specify dependencies.
7844 (sim_d10v_h): Define.
7845
7846 2002-05-14 Jim Blandy <jimb@redhat.com>
7847
7848 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7849 * macrotab.c (macro_lookup_inclusion, find_definition,
7850 new_macro_table): Same.
7851
7852 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7853 not `! strcmp ()'. This is a dubious improvement.
7854 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7855
7856 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7857 although it's not necessary, to avoid a warning.
7858
7859 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7860
7861 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7862 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7863 TYPE_INSTANCE_FLAGS.
7864 (struct main_type): New.
7865 (struct type): Move most members to struct main_type. Change
7866 cv_type and as_type to new type_chain member. Add instance_flags.
7867 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7868 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7869 (finish_cv_type): Remove prototype.
7870 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7871 Set TYPE_CHAIN.
7872 (alloc_type_instance): New function.
7873 (smash_type): New function.
7874 (make_pointer_type, make_reference_type, make_function_type)
7875 (smash_to_member_type, smash_to_method_type): Call smash_type.
7876 (make_qualified_type): New function.
7877 (make_type_with_address_space): Call make_qualified_type.
7878 (make_cv_type): Likewise.
7879 (finish_cv_type): Remove unnecessary function.
7880 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7881 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7882 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7883 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7884 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7885 * hpread.c (hpread_read_struct_type): Likewise.
7886 * stabsread.c (read_struct_type): Likewise.
7887
7888 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7889
7890 * configure.tgt: Add a catch all sh* target, for cases like
7891 sh[2,3,4]-elf and sh-hms.
7892
7893 2002-05-14 Keith Seitz <keiths@redhat.com>
7894
7895 * event-loop.c (create_file_handler): Don't do anything but
7896 update data when we are given a fd which we are already
7897 monitoring.
7898
7899 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7900
7901 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7902 (update_context): Use __func__ in warnings.
7903
7904 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7905
7906 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7907 and tcp_close to net_open and net_close.
7908 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7909 using UDP if requested. Don't try to disable Nagle on UDP
7910 sockets.
7911 * remote.c (remote_serial_open): New function. Warn about UDP.
7912 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7913
7914 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7915
7916 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7917
7918 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7919
7920 * configure.tgt: Remove sh-hms target.
7921 * MAINTAINERS: Don't list sh-hms as a separate target.
7922
7923 2002-05-13 Jim Blandy <jimb@redhat.com>
7924
7925 Add first preprocessor macro-expansion files.
7926 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7927 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7928 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7929 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7930 (COMMON_OBS): Add macrotab.o, macroexp.o.
7931 (macroexp.o, macrotab.o): New rules.
7932
7933 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7934
7935 * config/m88k/tm-m88k.h: Update copyright.
7936 (m88k_target_write_pc): Declare
7937 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7938 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7939 (SHIFT_INST_REGS): Update definition.
7940 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7941 using old definition of TARGET_WRITE_PC.
7942 * regcache.c (generic_target_write_pc): Delete code handling
7943 NNPC_REGNUM.
7944 * gdbarch.sh (NNPC_REGNUM): Delete.
7945 * gdbarch.h, gdbarch.c: Regenerate.
7946
7947 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7948
7949 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7950 builtin reg number.
7951
7952 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7953
7954 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7955 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7956 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7957 access macros.
7958 * c-typeprint.c (cp_type_print_method_args): Likewise.
7959 (c_type_print_args): Likewise.
7960 * d10v-tdep.c (d10v_push_arguments): Likewise.
7961 (d10v_extract_return_value): Likewise.
7962 * expprint.c (print_subexp): Likewise.
7963 * gdbtypes.c (lookup_primitive_typename): Likewise.
7964 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7965 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7966 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7967 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7968 (TYPE_VECTOR): Likewise.
7969 * hpread.c (hpread_read_struct_type)
7970 (fix_static_member_physnames, fixup_class_method_type)
7971 (hpread_type_lookup): Likewise.
7972 * mdebugread.c (parse_symbol, parse_type): Likewise.
7973 * p-lang.c (is_pascal_string_type): Likewise.
7974 * valops.c (hand_function_call): Likewise.
7975 * x86-64-tdep.c (classify_argument): Likewise.
7976
7977 * hpread.c (hpread_read_function_type)
7978 (hpread_read_doc_function_type): Call replace_type.
7979 * dstread.c (create_new_type): Delete.
7980 (decode_dst_structure, process_dst_function): Call alloc_type.
7981 Use type access macros.
7982
7983 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7984
7985 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7986 the're not supported by the current architecture.
7987 (i387_fill_fxsave): Likewise.
7988
7989 2002-05-12 Fred Fish <fnf@redhat.com>
7990
7991 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7992 sect_index_xxx members to index the first slot in section_offsets
7993 if all of the section_offsets are zero.
7994
7995 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7996
7997 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7998 checked in with last change.
7999
8000 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8001
8002 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8003 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8004 config.sub.
8005
8006 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8007
8008 * Makefile.in: Update dependencies.
8009
8010 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8011
8012 * language.c (local_hex_string_custom): Simplify. Do not depend
8013 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8014
8015 * memattr.c (mem_info_command): Replace calls to
8016 longest_local_hex_string and longest_local_hex_string_custom.
8017 * buildsym.c (make_blockvector): Ditto.
8018 * solib.c (info_sharedlibrary_command): Ditto.
8019 * tracepoint.c (tracepoints_info): Ditto.
8020 * symtab.c (print_msymbol_info): Ditto.
8021
8022 * language.c (local_hex_string): Delete.
8023 (local_hex_string_custom): Delete.
8024 (longest_local_hex_string): Rename to local_hex_string.
8025 (longest_local_hex_string_custom): Rename to
8026 local_hex_string_custom.
8027 * language.h (local_hex_string): Change parameter type to LONGEST.
8028 (local_hex_string_custom): Ditto.
8029 (longest_local_hex_string): Delete declaration.
8030 (longest_local_hex_string_custom): Ditto.
8031
8032 * solib.c: Update copyright.
8033 * memattr.c: Update copyright.
8034
8035 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8036
8037 * arch-utils.h (legacy_register_to_value): Declare.
8038 (legacy_value_to_register): Declare.
8039 (legacy_convert_register_p): Declare.
8040 * arch-utils.c (legacy_register_to_value): New function.
8041 (legacy_value_to_register): New function.
8042 (legacy_convert_register_p): New function.
8043
8044 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8045 (VALUE_TO_REGISTER): Define.
8046 (CONVERT_REGISTER_P): Define.
8047 * gdbarch.h, gdbarch.c: Regenerate.
8048
8049 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8050 VALUE_TO_REGISTER.
8051 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8052 CONVERT_REGISTER_P.
8053
8054 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8055 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8056
8057 * Makefile.in: Update dependencies for valops.c.
8058 * valops.c: Include "gdb_assert.h".
8059 (typecmp): Skip THIS parameter to methods.
8060 (find_method_list): Remove static_memfuncp argument,
8061 update callers. Check for stub methods.
8062 (find_value_oload_method_list): Don't set *static_memfuncp.
8063 (find_overload_match): Don't check for stub methods. Assert
8064 that methods are not stubbed. Handle static methods.
8065 (value_find_oload_method_list): Remove static_memfuncp argument.
8066 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8067 to the argument list for static stub methods.
8068 * value.h (value_find_oload_method_list): Update prototype.
8069
8070 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8071
8072 * arch-utils.h (generic_register_size): Declare.
8073 (generic_register_raw_size, generic_register_virtual_size): Delete
8074 declarations.
8075 * arch-utils.c (generic_register_raw_size): Delete.
8076 (generic_register_size): New function.
8077 (generic_register_virtual_size): Delete.
8078
8079 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8080 default generic_register_size.
8081 * gdbarch.h, gdbarch.c: Re-generate.
8082
8083 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8084 register_virtual_size.
8085 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8086 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8087
8088 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8089
8090 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8091 * gdbarch.h, gdbarch.c: Regenerate.
8092 * gnu-v3-abi.c: Update copyright.
8093 (vtable_address_point_offset): Update.
8094 (gnuv3_rtti_type): Update.
8095 (gnuv3_baseclass_offset): Update.
8096 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8097 (init_fetch_link_map_offsets): Update.
8098 * remote.c (get_remote_state): Update.
8099
8100 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8101
8102 * TODO: Remove value_headof/value_from_vtable_info comment.
8103 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8104 * values.c (value_headof, value_from_vtable_info): Delete.
8105 * value.h (value_from_vtable_info): Delete prototype.
8106
8107 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8108
8109 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8110 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8111 $(gdb_regex_h).
8112 (gdb_assert_h): Define.
8113 (gdb_wait_h): Define.
8114 (gdb_regex_h): Define.
8115
8116 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8117
8118 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8119 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8120
8121 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8122
8123 * nbsd-tdep.c: Fix comment.
8124
8125 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8126
8127 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8128 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8129 (nbsd-tdep.o): New dependency list.
8130 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8131 nbsd-tdep.h.
8132 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8133 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8134 * nbsd-tdep.c: New file.
8135 * nbsd-tdep.h: New file.
8136 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8137 nbsd-tdep.h.
8138 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8139 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8140 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8141 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8142
8143 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8144
8145 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8146 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8147 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8148 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8149 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8150 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8151
8152 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8153
8154 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8155 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8156 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8157 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8158 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8159 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8160 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8161
8162 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8163
8164 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8165 fetch_elfcore_registers to...
8166 * i386nbsd-tdep.c: ...here.
8167 (i386nbsd_use_struct_convention): Rename to...
8168 (i386nbsd_aout_use_struct_convention): ...this.
8169 (i386nbsd_supply_reg): New function.
8170 (i386nbsd_fill_reg): New function.
8171 (fetch_core_registers): Use i386nbsd_supply_reg.
8172 (fetch_elfcore_registers): Likewise.
8173 (_initialize_i386nbsd_tdep): New function.
8174 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8175 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8176 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8177 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8178 (i386nbsd_aout_use_struct_convention): ...this.
8179
8180 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8181
8182 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8183 (store_inferior_registers): Use shnbsd_fill_reg.
8184 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8185 sh_nbsd_supply_register): Collapse into...
8186 (shnbsd_supply_reg): ...this.
8187 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8188 (shnbsd_fill_reg): ...this.
8189 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8190 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8191 (fetch_core_registers): Use shnbsd_supply_reg.
8192 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8193 (sh_nbsd_core_fns): Rename to...
8194 (shnbsd_core_fns): ...this.
8195 (sh_nbsd_elfcore_fns): Rename to...
8196 (shnbsd_elfcore_fns): ...this.
8197 (sh_nbsd_init_abi): Rename to...
8198 (shnbsd_init_abi): ...this.
8199 (_initialize_sh_nbsd_tdep): Rename to...
8200 (_initialize_shnbsd_tdep): ...this.
8201 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8202 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8203 sh_nbsd_fill_register): Remove prototypes.
8204 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8205
8206 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8207
8208 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8209 (i387-nat.o): Delete dependency list.
8210 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8211 (x86-64-linux-nat.o): Likewise.
8212 * i387-nat.c: Delete file, moving contents to...
8213 * i387-tdep.c: ...here.
8214 * i387-nat.h: Rename...
8215 * i387-tdep.h: ...to this.
8216 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8217 * i386-linux-nat.c: Likewise.
8218 * i386bsd-nat.c: Likewise.
8219 * i386gnu-nat.c: Likewise.
8220 * i386nbsd-nat.c: Likewise.
8221 * i386v4-nat.c: Likewise.
8222 * x86-64-linux-nat.c: Likewise.
8223 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8224 * config/i386/go32.mh (NATDEPFILES): Likewise.
8225 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8226 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8227 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8228 * config/i386/linux.mh (NATDEPFILES): Likewise.
8229 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8230 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8231 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8232 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8233
8234 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8235
8236 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8237 (alphanbsd-nat.o): Remove dependency list.
8238 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8239 * alphanbsd-nat.c: Delete. Contents moved to...
8240 * alphanbsd-tdep.c: ...here.
8241 (_initialize_alphanbsd_tdep): Register core functions.
8242 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8243
8244 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8245
8246 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8247 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8248 (alphanbsd-nat.o): Likewise.
8249 (alphabsd-tdep.o): New dependency list.
8250 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8251 (fill_gregset): Use alphabsd_fill_reg.
8252 (supply_fpregset): Use alphabsd_supply_fpreg.
8253 (fill_fpregset): Use alphabsd_fill_fpreg.
8254 (fetch_inferior_registers): Use struct reg and struct fpreg
8255 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8256 and alphabsd_supply_fpreg.
8257 (store_inferior_registers): Use struct reg and struct fpreg
8258 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8259 and alphabsd_fill_fpreg.
8260 * alphabsd-tdep.c: New file.
8261 * alphabsd-tdep.h: New file.
8262 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8263 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8264 alphabsd_supply_fpreg.
8265 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8266 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8267
8268 2002-05-11 Eric Christopher <echristo@redhat.com>
8269
8270 * mips-tdep.c (mips_double_register_type): Fix thinko.
8271 (mips_single_register_type): Ditto.
8272 * MAINTAINERS: Add self.
8273
8274 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8275
8276 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8277 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8278 right thing on architectures with different endianness and/or
8279 integer sizes.
8280
8281 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8282
8283 From Christian Limpach <chris@Pin.LU>
8284 * configure.in: Change sed expression which comments out
8285 NATDEPFILES to also comment out continuation lines.
8286 * configure: Regenerate.
8287
8288 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8289
8290 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8291 big patch.
8292
8293 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8294
8295 * sh-tdep.c: Include correct file.
8296
8297 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8298
8299 New support for sh64-elf (sh5) target.
8300
8301 * configure.tgt: For sh64-elf target, default to sh-elf.
8302
8303 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8304 (struct gdbarch_tdep): Add new fields for new registers and ABI
8305 info.
8306
8307 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8308 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8309 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8310 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8311 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8312 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8313 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8314 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8315 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8316 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8317 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8318 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8319 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8320 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8321 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8322 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8323 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8324 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8325 sign_extend, sh64_nofp_frame_init_saved_regs,
8326 sh64_init_extra_frame_info, sh64_get_saved_register,
8327 sh64_extract_struct_value_address, sh64_pop_frame,
8328 sh64_push_arguments, sh64_extract_return_value,
8329 sh64_store_return_value, sh64_show_media_regs,
8330 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8331 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8332 sh_sh64_register_virtual_type,
8333 sh_sh64_register_convert_to_virtual,
8334 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8335 sh64_register_read, sh64_pseudo_register_write,
8336 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8337 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8338 sh64_do_pseudo_register, sh_compact_do_registers_info,
8339 sh64_do_registers_info, sh_gdbarch_init): New functions.
8340
8341 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8342
8343 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8344
8345 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * linespec.c (decode_line_1): Check for a double quote after
8348 a filename correctly.
8349
8350 2002-05-10 Jim Blandy <jimb@redhat.com>
8351
8352 Properly track the size of the current objfile's .debug_line section.
8353 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8354 (DWARF_LINE_SIZE): New macro.
8355 (dwarf2_build_psymtabs_hard): Record the line section's size in
8356 the partial symbol table.
8357 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8358 symbol table.
8359
8360 2002-05-10 Petr Sorfa <petrs@caldera.com>
8361
8362 * ia64-tdep.c: Handle breakpoints on L instruction type
8363 in MLX instruction bundle by moving the breakpoint to
8364 the third slot (X instruction type) as L holds only data.
8365
8366 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8367
8368 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8369 (process_one_symbol): Complain about discarding local symbols
8370 due to a misplaced N_LBRAC entry.
8371
8372 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8373
8374 From Daniel Berlin <dan@cgsoftware.com>
8375 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8376 decrease the depth we are at, in the case of templates.
8377
8378 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8379
8380 * mips-tdep.c (mips_float_register_type): New function.
8381 (mips_double_register_type): New function.
8382 (mips_print_register): Use them.
8383 (do_fp_register_row): Likewise.
8384
8385 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8386
8387 * signals/signals.c (signals): Remove conditional compilation around
8388 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8389 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8390
8391 2002-05-09 Michael Snyder <msnyder@redhat.com>
8392
8393 * remote-rdp.c (remote_rdp_can_run): Remove.
8394
8395 2002-05-09 Tom Tromey <tromey@redhat.com>
8396
8397 * jv-valprint.c (java_val_print): Handle `char' as a special case
8398 of TYPE_CODE_INT.
8399
8400 2002-05-09 Michael Snyder <msnyder@redhat.com>
8401
8402 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8403 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8404 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8405 str r(0123),[sp,#nn].
8406 (arm_skip_prologue): Ditto. Also make disassembly
8407 order-independent by placing it in a loop.
8408
8409 2002-05-06 Michael Snyder <msnyder@redhat.com>
8410
8411 * stabsread.c (read_type): Add recognition for new attribute:
8412 "@V;" means that an array type is actually a vector.
8413 This is analogous to the vector flag that's been added to dwarf2.
8414
8415 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8416
8417 * i386-tdep.h (i386_abi): New enum.
8418 (struct gdbarch_tdep): Replace os_ident member with abi.
8419 (i386_gdbarch_register_os_abi): New prototype.
8420 * i386-tdep.c (i386_abi_names): New array.
8421 (process_note_abi_tag_sections): Removed.
8422 (process_note_sections): New function.
8423 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8424 (struct i386_abi_handler): New struct.
8425 (i386_abi_handler_list): New variable.
8426 (i386_gdbarch_register_os_abi): New function.
8427 (i386_gdbarch_init): Adapt for the changes given above.
8428
8429 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8430
8431 * gregset.h: Say "GNU/Linux".
8432
8433 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8434
8435 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8436 (build_gdbtypes): Build builtin_type_v2_float.
8437 (_initialize_gdbtypes): Register new builtin type.
8438
8439 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8440
8441 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8442 (clear_gdbarch_swap): New function.
8443 (initialize_non_multiarch): Call.
8444 (gdbarch_update_p): Before calling init(), swap out and clear the
8445 existing architecture.
8446 * gdbarch.c: Regenerate.
8447
8448 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8449
8450 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8451 alphanbsd-tdep.c.
8452
8453 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8454
8455 * sh-nbsd-nat.c: Rename to...
8456 * shnbsd-nat.c: ...this.
8457 * sh-nbsd-tdep.c: Rename to...
8458 * shnbsd-tdep.c: ...this.
8459 * sh-nbsd-tdep.h: Rename to...
8460 * shnbsd-tdep.h: ...this.
8461 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8462 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8463
8464 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8465
8466 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8467 concatenation for command help messages.
8468
8469 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8470
8471 * NEWS: Note new sh*-*-netbsdelf* configuration.
8472 * configure.host: Set gdb_host_cpu to sh for all sh*.
8473 (sh*-*-netbsdelf*): New host.
8474 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8475 (sh*-*-netbsdelf*): New target.
8476 * sh-nbsd-nat.c: New file.
8477 * sh-nbsd-tdep.c: New file.
8478 * sh-nbsd-tdep.h: New file.
8479 * config/sh/nbsd.mh: New file.
8480 * config/sh/nbsd.mt: New file.
8481 * config/sh/nm-nbsd.h: New file.
8482 * config/sh/tm-nbsd.h: New file.
8483
8484 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8485
8486 * sh-tdep.c (sh_osabi_names): Declare.
8487 (process_note_abi_tag_sections): New function.
8488 (get_elfosabi): Ditto.
8489 (sh_gdbarch_register_os_abi): Ditto.
8490 (sh_dump_tdep): Ditto.
8491 _initialize_sh_tdep): Use gdbarch_register to register
8492 sh_gdbarch_init and sh_dump_tdep.
8493 * config/sh/tm-sh.h (sh_osabi): Declare.
8494 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8495
8496 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8497
8498 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8499 (thumb_scan_prologue): Ditto.
8500 (arm_find_callers_reg): Ditto.
8501 (arm_frame_chain): Ditto.
8502 (arm_init_extra_frame_info): Ditto.
8503 (arm_frame_saved_pc): Ditto.
8504 (arm_pop_frame): Ditto.
8505 (arm_push_return_address): New function.
8506 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8507 call_dummy_location, call_dummy_breakpoint_offset_p,
8508 call_dummy_breakpoint_offset, call_dummy_p,
8509 call_dummy_stack_adjust_p, call_dummy_words,
8510 sizeof_call_dummy_words, call_dummy_start_offset,
8511 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8512 call_dummy_address, push_return_address and push_dummy_frame for
8513 generic dummy frames.
8514
8515 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8516
8517 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8518 size computation for alloca.
8519 (sh_fp_frame_init_saved_regs): Likewise.
8520
8521 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8522
8523 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8524 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8525 * arm-tdep.c (arm_store_return_value): Use them.
8526 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8527 * remote-rdp.c (remote_rdp_fetch_register): Use
8528 ARM_MAX_REGISTER_RAW_SIZE.
8529 (remote_rdp_store_register): Likewise.
8530
8531 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8532
8533 * dwarf2cfi.c: Code cleanup, removed unused variables,
8534 added default labels to switch {} statements.
8535 * x86-64-tdep.c: Ditto.
8536 * x86-64-linux-nat.c: Ditto.
8537
8538 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8539
8540 * solib.h: Protect against multiple inclusion.
8541
8542 2002-05-06 Jim Blandy <jimb@redhat.com>
8543
8544 Add first preprocessor macro-expansion files.
8545 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8546 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8547 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8548 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8549 (COMMON_OBS): Add macrotab.o, macroexp.o.
8550 (macroexp.o, macrotab.o): New rules.
8551
8552 Separate the job of reading the line number info statement program
8553 header (...expialidocious) out into its own function.
8554 * dwarf2read.c (struct line_head, struct filenames, struct
8555 directories): Replace with...
8556 (struct line_header): New structure, containing the full
8557 contents of the statement program header, including the
8558 include directory and file name tables.
8559 (read_file_scope): If we have line number info, instead of just
8560 calling dwarf_decode_lines to do all the work, call
8561 dwarf_decode_line_header first to get a `struct line_header'
8562 containing the data in the statement program header, and then
8563 pass that to dwarf_decode_lines, which will pick up where that
8564 left off. Be sure to clean up the `struct line_header' object.
8565 (dwarf_decode_line_header, free_line_header, add_include_dir,
8566 add_file_name): New functions.
8567 (dwarf_decode_lines): Move all the code to read the statement
8568 program header into dwarf_decode_line_header. Take the line
8569 header it built as the first argument, instead of the offset to
8570 the compilation unit's line number info. Use the new `struct
8571 line_header' type instead of the old structures. No need to do
8572 cleanups here now, since we don't allocate anything.
8573 (dwarf2_statement_list_fits_in_line_number_section,
8574 dwarf2_line_header_too_long): New complaints.
8575
8576 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8577
8578 * gdbtypes.c (init_vector_type): New function.
8579 (build_builtin_type_vec128): Simplify the representation of SIMD
8580 registers.
8581 (build_gdbtypes): Initialize new builtin vector types.
8582 (_initialize_gdbtypes): Register new vector types with gdbarch.
8583 (builtin_type_v4_float, builtin_type_v4_int32,
8584 builtin_type_v8_int16, builtin_type_v16_int8,
8585 builtin_type_v2_int32, builtin_type_v4_int16,
8586 builtin_type_v8_int8): New (renamed) SIMD types.
8587
8588 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8589
8590 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8591 (i387_fill_fxsave): Likewise.
8592
8593 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8594
8595 * alpha-tdep.c (alpha_extract_return_value): Don't use
8596 non-constant array size in prototype.
8597
8598 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8599
8600 From Brian Taylor <briant at model dot com>:
8601 * ui-out.c (ui_out_field_core_addr): Use the function
8602 longest_local_hex_string_custom'to format addresses > 32 bits
8603 wide.
8604
8605 * ui-out.c (ui_out_field_core_addr): Update comment.
8606
8607 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8608
8609 * stack.c (select_and_print_frame): Make static. Delete the
8610 parameter `level'.
8611 (func_command): Update call.
8612 (select_frame_command): Delete code computing the frame level.
8613 * frame.h (select_and_print_frame): Delete declaration.
8614
8615 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8616
8617 * sparc-tdep.c (sparc_get_saved_register): Comment why
8618 get_prev_frame call is safe.
8619
8620 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8621
8622 * frame.h (select_frame): Delete level parameter.
8623 * stack.c (select_frame): Update. Use frame_relative_level to
8624 obtain the frame's level.
8625 (select_and_print_frame): Update call.
8626 (select_frame_command): Ditto.
8627 (up_silently_base): Ditto.
8628 (down_silently_base): Ditto.
8629 * ocd.c (ocd_start_remote): Ditto.
8630 * remote-rdp.c (remote_rdp_open): Ditto.
8631 * remote-mips.c (mips_initialize): Ditto.
8632 (common_open): Ditto.
8633 * remote-e7000.c (e7000_start_remote): Ditto.
8634 * m3-nat.c (select_thread): Ditto.
8635 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8636 (child_get_current_exception_event): Ditto.
8637 * varobj.c (varobj_create): Ditto.
8638 (varobj_update): Ditto.
8639 (c_value_of_root): Ditto.
8640 * tracepoint.c (finish_tfind_command): Ditto.
8641 * corelow.c (core_open): Ditto.
8642 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8643 * thread.c (info_threads_command): Ditto.
8644 (switch_to_thread): Ditto.
8645 * infrun.c (normal_stop): Ditto.
8646 (restore_selected_frame): Ditto.
8647 (restore_inferior_status): Ditto.
8648 * breakpoint.c (insert_breakpoints): Ditto.
8649 (watchpoint_check): Ditto.
8650 (bpstat_stop_status): Ditto.
8651 (do_enable_breakpoint): Ditto.
8652 * blockframe.c (flush_cached_frames): Ditto.
8653 (reinit_frame_cache): Ditto.
8654
8655 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8656
8657 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8658 maintainer.
8659
8660 2002-05-04 Jim Blandy <jimb@redhat.com>
8661
8662 * gdbtypes.c (replace_type): Doc fix.
8663
8664 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8665
8666 * valprint.c (strcat_longest): Delete commented out function.
8667 Update copyright.
8668
8669 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8670
8671 * MAINTAINERS: Mark a29k as deleted.
8672 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8673 Move new configurations to the top.
8674 * configure.tgt: Remove a29k.
8675 * config/a29k/tm-vx29k.h: Delete.
8676 * config/a29k/vx29k.mt: Delete.
8677 * config/a29k/tm-a29k.h: Delete.
8678 * config/a29k/a29k-udi.mt: Delete.
8679 * config/a29k/a29k.mt: Delete.
8680 * a29k-tdep.c: Delete.
8681 * remote-udi.c: Delete.
8682 * remote-mm.c: Delete.
8683 * remote-eb.c: Delete.
8684 * remote-adapt.c: Delete.
8685 * Makefile.in: Remove obsolete code.
8686 * config/s390/s390x.mt: Ditto.
8687 * config/s390/s390.mt: Ditto.
8688 * config/sparc/sparclynx.mh: Ditto.
8689 * config/sparc/linux.mh: Ditto.
8690 * config/pa/hppaosf.mh: Ditto.
8691 * config/pa/hppabsd.mh: Ditto.
8692 * config/ns32k/nbsd.mt: Ditto.
8693 * config/mips/vr5000.mt: Ditto.
8694 * config/m68k/sun3os4.mh: Ditto.
8695 * config/m68k/nbsd.mt: Ditto.
8696 * config/m68k/m68klynx.mh: Ditto.
8697 * config/m32r/m32r.mt: Ditto.
8698 * config/i386/x86-64linux.mt: Ditto.
8699 * config/i386/nbsdelf.mt: Ditto.
8700 * config/i386/nbsd.mt: Ditto.
8701 * config/i386/i386lynx.mh: Ditto.
8702
8703 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8704
8705 * target.c (debug_print_register): New function. Handle oversize
8706 registers.
8707 (debug_to_fetch_registers): Call.
8708 (debug_to_store_registers): Call.
8709
8710 2002-05-03 Jim Blandy <jimb@redhat.com>
8711
8712 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8713 (read_type): Doc fix.
8714 * gdbtypes.c (replace_type): Doc fix.
8715
8716 * stabsread.c (multiply_defined_struct): New complaint.
8717 (read_struct_type): If the type we were passed isn't empty, or
8718 incomplete, don't read the new struct type into it; complain,
8719 and return the original type unchanged. Take a new `type_code'
8720 argument, which is the type code for the new type.
8721 (read_type): Rather than storing the type's type code here, pass
8722 it as an argument to read_struct_type, and let that take care of
8723 storing it. That way, we don't overwrite the original type code,
8724 so read_struct_type can use it to decide whether we're overwriting
8725 something we shouldn't.
8726 (complain_about_struct_wipeout): New function.
8727
8728 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8729
8730 * gdbarch.sh: Assert that gdbarch is non-NULL.
8731 * gdbarch.c: Regenerate.
8732
8733 2002-05-03 Jason Merrill <jason@redhat.com>
8734
8735 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8736 and return NULL.
8737
8738 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8739
8740 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8741 (x86_64_dwarf2gdb_regno_map_length),
8742 (x86_64_dwarf2_reg_to_regnum): Added.
8743 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8744 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8745 (_initialize_x86_64_tdep): Synced with the change above.
8746 (x86_64_skip_prologue): Reformulated message.
8747
8748 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8749
8750 * f-exp.y: Also use new prev_lexptr variable
8751 to improve error reporting. Based on Michael Snyder
8752 2002-04-24 dated patch to c-exp.y.
8753 * jv-exp.y: Likewise.
8754 * m2-exp.y: Likewise.
8755
8756 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8757
8758 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8759 we are dealing with vectors.
8760
8761 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8762
8763 * config/m68k/tm-nbsd.h: Obvious fix,
8764 correct machine name.
8765
8766 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8767
8768 * p-typeprint.c (pascal_type_print_base): Add support
8769 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8770
8771 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8772
8773 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8774 for fondamental pascal 'char' type.
8775
8776 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8777
8778 * p-lang.h (is_pascal_string_type): Declaration changed,
8779 new sixth argument of type char ** added.
8780 * p-lang.c (is_pascal_string_type): Implementation
8781 changed. Args length_pos, length_size, string_pos, char_size
8782 can now be NULL. New argument arrayname set to the field
8783 name of the char array. Return value set to char array
8784 field index plus one.
8785 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8786 is_pascal_string_type function.
8787
8788 2002-05-02 Andrew Cagney <cagney@redhat.com>
8789
8790 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8791 <cagney@redhat.com> change.
8792 * gdbarch.c: Regenerate.
8793
8794 2002-05-02 Andrew Cagney <cagney@redhat.com>
8795
8796 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8797 before probing for a new one. Detect errorenous gdbarch_init
8798 functions.
8799 * gdbarch.c: Regenerate.
8800
8801 2002-05-01 Andrew Cagney <cagney@redhat.com>
8802
8803 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8804 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8805 * config/v850/tm-v850.h: Ditto. Update copyright.
8806
8807 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8808
8809 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8810 current_gdbarch.
8811
8812 2002-04-30 Michael Snyder <msnyder@redhat.com>
8813
8814 * arm-tdep.c: Whitespace clean-ups.
8815 (arm_skip_prologue): Fix thinko; two lines
8816 should have been removed as part of 4/24 change.
8817
8818 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8819
8820 * rs6000-tdep.c: Added comment describing how fpscr register
8821 numbers were chosen.
8822
8823 2002-04-30 Michael Snyder <msnyder@redhat.com>
8824
8825 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8826
8827 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8828
8829 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8830 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8831 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8832
8833 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8834
8835 From Louis Hamilton <hamilton@redhat.com>:
8836 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8837 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8838 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8839 not bfd-private xcoff data, to determine wordsize.
8840 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8841
8842 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8843
8844 GDB 5.2 released from 5.2 branch.
8845
8846 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8847
8848 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8849 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8850 (x86_64_register_info_table): Added comments with register numbers.
8851
8852 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8853
8854 * rs6000-tdep.c (rs6000_extract_return_value,
8855 rs6000_store_return_value): Handle returning vectors.
8856 (rs6000_gdbarch_init): Use
8857 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8858 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8859 New function.
8860 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8861 vectors.
8862 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8863 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8864
8865 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8866
8867 * hpread.c (hpread_psymtab_to_symtab_1,
8868 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8869 with fprintf_unfiltered (gdb_stderr,...).
8870
8871 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8872
8873 * remote-array.c (printf_monitor, write_monitor,
8874 array_insert_breakpoint, array_remove_breakpoint ):
8875 Replace fprintf (stderr,...
8876 with fprintf_unfiltered (gdb_stderr,....
8877 * remote-es.c: Likewise.
8878 * remote-os9k.c: Likewise.
8879 * remote-st.c: Likewise.
8880
8881 2002-04-28 Andreas Schwab <schwab@suse.de>
8882
8883 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8884 linux-proc.o and gcore.o.
8885
8886 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8887
8888 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8889 code without frame pointers.
8890
8891 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8892
8893 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8894 ON_STACK is needed.
8895
8896 2002-04-26 Ben Elliston <bje@redhat.com>
8897
8898 * target.c (do_xfer_memory): Correct reference to the new option
8899 "trust-readonly-sections".
8900
8901 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8902
8903 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8904 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8905 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8906 vectors.
8907 (read_array_type): Record the fact that this array type is really a
8908 vector (i.e. are passed in by value).
8909
8910 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8911
8912 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8913 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8914 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8915 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8916 * alpha-linux-tdep.c: Include frame.h.
8917 (alpha_linux_sigcontext_addr): New function.
8918 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8919 alpha_linux_sigcontext_addr.
8920 * alpha-osf1-tdep.c: Include gdbcore.h.
8921 (alpha_osf1_sigcontext_addr): New function.
8922 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8923 alpha_osf1_sigcontext_addr.
8924 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8925 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8926
8927 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8928
8929 * stack.c (selected_frame_level):
8930 (select_frame): Do not set selected_frame_level.
8931 * frame.h (selected_frame_level): Delete declaration.
8932
8933 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8934
8935 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8936 convert_from_func_ptr-addr when AIX / PowerOpen.
8937
8938 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8939
8940 * valops.c (hand_function_call): Call
8941 generic_save_call_dummy_addr.
8942 * frame.h (generic_save_call_dummy_addr): Declare.
8943 * blockframe.c (struct dummy_frame): Add fields call_lo and
8944 call_hi.
8945 (generic_find_dummy_frame): Check for PC in range call_lo to
8946 call_hi instead of entry_point_address.
8947 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8948 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8949 (generic_save_call_dummy_addr): New function.
8950
8951 2002-04-24 David S. Miller <davem@redhat.com>
8952
8953 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8954 sparc_skip_prologue.
8955 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8956 information to find prologue when possible.
8957 (sparc_prologue_frameless_p): Call examine_prologue directly.
8958 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8959 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8960 second argument.
8961 (SKIP_PROLOGUE): Likewise.
8962
8963 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8964
8965 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8966 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8967 indicate that the condition it was testing is always true.
8968 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8969 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8970 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8971
8972 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8973
8974 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8975 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8976 tdep->jb_pc and tdep->jb_elt_size.
8977 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8978 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8979 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8980 * alpha-nat.c (get_longjmp_target): Remove.
8981 (JB_ELEMENT_SIZE): Ditto.
8982 (JB_PC): Ditto.
8983 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8984 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8985 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8986 to alpha_get_longjmp_target.
8987 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8988 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8989 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8990
8991 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8992
8993 * README: Update to GDB 5.2.
8994
8995 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8996
8997 * gdbarch.sh (LC_ALL): Set to `c'.
8998
8999 2002-04-25 Theodore A. Roth <troth@verinet.com>
9000
9001 * avr-tdep.c: Ran through gdb_indent.sh.
9002
9003 2002-04-25 Theodore A. Roth <troth@verinet.com>
9004
9005 * MAINTAINERS: Add myself as AVR maintainer.
9006 * NEWS: Note new target avr.
9007
9008 2002-04-25 Theodore A. Roth <troth@verinet.com>
9009
9010 * Makefile.in: Add support for AVR target.
9011 * configure.tgt: Add support for AVR target.
9012 * avr-tdep.c: New file
9013 * config/avr/avr.mt: New file.
9014
9015 2002-04-25 Theodore A. Roth <troth@verinet.com>
9016
9017 * MAINTAINERS: Add myself to write-after-approval.
9018
9019 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9020
9021 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9022 with fprintf_unfiltered (gdb_stderr,....
9023
9024 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9025
9026 Fix PR gdb/508.
9027 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9028
9029 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9030
9031 * p-exp.y: Also use new prev_lexptr variable
9032 to improve error reporting. Based on Michael Snyder
9033 2002-04-24 dated patch to c-exp.y.
9034
9035 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9036
9037 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9038 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9039 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9040 to 0.
9041 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9042 and struct value.
9043 (FUNCTION_START_OFFSET): Remove.
9044 (BREAKPOINT): Ditto.
9045
9046 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9047
9048 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9049 * NEWS: Ditto.
9050
9051 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9052
9053 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9054 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9055 alpha_linux_pc_in_sigtramp.
9056 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9057 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9058 alpha_osf1_pc_in_sigtramp.
9059 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9060 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9061 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9062 alphafbsd_pc_in_sigtramp.
9063 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9064 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9065 alphanbsd_pc_in_sigtramp.
9066 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9067 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9068
9069 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9070
9071 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9072
9073 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9074
9075 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9076 alphanbsd-tdep.c.
9077 (alphanbsd-nat.o): New dependency list.
9078 (alphanbsd-tdep.o): Ditto.
9079 * NEWS: Note new native NetBSD/alpha configuration.
9080 * alphanbsd-nat.c: New file.
9081 * alphanbsd-tdep.c: Ditto.
9082 * configure.host (alpha*-*-netbsd*): New host.
9083 * configure.tgt (alpha*-*-netbsd*): New target.
9084 * config/alpha/nbsd.mh: New file.
9085 * config/alpha/nbsd.mt: Ditto.
9086 * config/alpha/nm-nbsd.h: Ditto.
9087 * config/alpha/tm-nbsd.h: Ditto.
9088
9089 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9090
9091 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9092 (alpha-osf1-tdep.o): New dependency list.
9093 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9094 and skip_sigtramp_frame members.
9095 * alpha-linux-tdep.c: Include gdbcore.h.
9096 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9097 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9098 * alpha-osf1-tdep.c: New file.
9099 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9100 alpha-osf1-dep.c.
9101 (alpha_frame_past_sigtramp_frame): New function.
9102 (alpha_dynamic_sigtramp_offset): Ditto.
9103 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9104 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9105 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9106 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9107 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9108 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9109 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9110 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9111 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9112 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9113 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9114 to find_solib_trampoline_target.
9115 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9116 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9117 (SKIP_TRAMPOLINE_CODE): Remove.
9118 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9119 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9120 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9121 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9122 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9123 (PROC_SIGTRAMP_MAGIC): Ditto.
9124 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9125 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9126 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9127 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9128 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9129
9130 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9131
9132 * NEWS: Note that Alpha targets are now multi-arch.
9133
9134 2002-04-24 Michael Snyder <msnyder@redhat.com>
9135
9136 * parser-defs.h (prev_lexptr): New external variable.
9137 * parse.c (parse_exp_1): Set prev_lexptr to null before
9138 calling the language-specific parser.
9139 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9140 (yyerror): Use prev_lexptr in error reporting.
9141
9142 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9143
9144 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9145 * gregset.h: If FILL_FPXREGSET is defined, provide
9146 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9147 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9148 is defined, call fill_fpxregset.
9149
9150 2002-04-24 Roland McGrath <roland@frob.com>
9151
9152 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9153 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9154 (supply_gregset, supply_fpregset): New functions.
9155
9156 * gnu-nat.c (gnu_find_memory_regions): New function.
9157 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9158 (gnu_xfer_memory): Add a cast.
9159
9160 2002-04-24 Michael Snyder <msnyder@redhat.com>
9161
9162 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9163 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9164 of argument regs ("str r(0123), [r11, #-nn"]).
9165 (arm_skip_prologue): Better handling for frameless functions.
9166 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9167 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9168
9169 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9170
9171 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9172 NUM_PSEUDO_REGS can be used.
9173
9174 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9175
9176 * arch-utils.h: Update copyright.
9177
9178 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9179 * gdbarch.h, gdbarch.c: Re-generate.
9180
9181 * inferior.h (IN_SIGTRAMP): Delete definition.
9182 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9183 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9184
9185 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9186 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9187 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9188 (find_proc_framesize): Ditto.
9189 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9190 (alpha_init_extra_frame_info): Ditto.
9191 * infrun.c (handle_inferior_event): Ditto.
9192 (handle_inferior_event): Ditto.
9193 (check_sigtramp2): Ditto.
9194 * blockframe.c (create_new_frame): Ditto.
9195 (get_prev_frame): Ditto.
9196 * ppc-linux-tdep.c: Update comments.
9197 * i386-linux-tdep.c: Update comments.
9198 * breakpoint.c (bpstat_what): Update comment.
9199
9200 2002-04-24 David S. Miller <davem@redhat.com>
9201
9202 * i960-tdep.c (register_in_window_p): New function.
9203 (i960_find_saved_register): Use it instead of
9204 REGISTER_IN_WINDOW_P.
9205 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9206
9207 * symtab.h (find_stab_function_addr): Kill extern.
9208 * minsyms.c (find_stab_function_addr): Remove from here...
9209 * dbxread.c: ... to here, and mark it static.
9210
9211 2002-04-20 David S. Miller <davem@redhat.com>
9212
9213 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9214 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9215
9216 2002-04-21 David S. Miller <davem@redhat.com>
9217
9218 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9219 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9220 (vx_write_register): Likewise.
9221
9222 2002-04-23 J. Brobecker <brobecker@gnat.com>
9223
9224 * source.c (is_regular_file): New function.
9225 (openp): Check wether file to open is a regular file
9226 to avoid opening directories.
9227
9228 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9229
9230 * findvar.c (extract_signed_integer): Cast printf argument
9231 to suppress format warning.
9232 (extract_unsigned_integer): Likewise.
9233 * infcmd.c (registers_info): Likewise.
9234 * top.c (get_prompt_1): Likewise.
9235 * valops.c (value_assign): Likewise.
9236 * valprint.c (print_decimal): Likewise.
9237
9238 2002-04-22 H.J. Lu (hjl@gnu.org)
9239
9240 * c-exp.y (typebase): Support
9241
9242 [long|long long|short] [signed|unsigned] [int|]
9243
9244 and
9245
9246 signed [long|long long|short] int
9247
9248 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9249
9250 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9251 and vax-tdep.h.
9252 * vax-tdep.h: New file.
9253 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9254 Make several routines static.
9255 (vax_get_saved_register): New function.
9256 (vax_gdbarch_init): New function.
9257 (_initialize_vax_tdep): Register vax_gdbarch_init.
9258 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9259 Remove macros now under the control of gdbarch.
9260
9261 2002-04-22 Michael Snyder <msnyder@redhat.com>
9262
9263 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9264 Some whitespace and coding standards tweaks.
9265
9266 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9267
9268 * vax-tdep.c: Include regcache.h.
9269 (vax_call_dummy_words): New.
9270 (sizeof_vax_call_dummy_words): New.
9271 (vax_fix_call_dummy): New function.
9272 (vax_saved_pc_after_call): Ditto.
9273 * config/vax/tm-vax.h: Don't include regcache.h.
9274 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9275 (CALL_DUMMY): Remove.
9276 (CALL_DUMMY_WORDS): Define.
9277 (SIZEOF_CALL_DUMMY_WORDS): Define.
9278 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9279
9280 2002-04-18 Michael Snyder <msnyder@redhat.com>
9281
9282 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9283
9284 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9285
9286 * vax-tdep.c (vax_frame_chain): New function.
9287 (vax_push_dummy_frame): Ditto.
9288 (vax_pop_frame): Ditto.
9289 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9290 (FRAMELESS_FUNCTION_INVOCATION): Use
9291 generic_frameless_function_invocation_not.
9292 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9293 (POP_FRAME): Use vax_pop_frame.
9294
9295 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9296
9297 * vax-tdep.c (vax_store_struct_return): New function.
9298 (vax_extract_return_value): Ditto.
9299 (vax_store_return_value): Ditto.
9300 (vax_extract_struct_value_address): Ditto.
9301 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9302 vax_store_struct_return.
9303 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9304 (STORE_RETURN_VALUE): Use vax_store_return_value.
9305 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9306
9307 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9308
9309 * vax-tdep.c (vax_frame_saved_pc): New function.
9310 (vax_frame_args_address_correct): Ditto.
9311 (vax_frame_args_address): Ditto.
9312 (vax_frame_locals_address): Ditto.
9313 (vax_frame_num_args): Move code to be in proximity to
9314 other frame-related functions.
9315 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9316 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9317 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9318 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9319 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9320
9321 2002-04-22 H.J. Lu (hjl@gnu.org)
9322
9323 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9324 includedir.
9325
9326 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9327
9328 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9329 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9330 (FRAME_INIT_SAVED_REGS): New macro.
9331
9332 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9333
9334 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9335
9336 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9337
9338 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9339 where needed.
9340 (fetch_osf_core_registers): Likewise.
9341 (supply_gregset): Likewise.
9342
9343 2002-04-22 J. Brobecker <brobecker@gnat.com>
9344
9345 * symfile.h (get_section_index): Define.
9346 * symfile.c (get_section_index): New function.
9347 * mdebugread.c (SC_IS_SBSS): New macro.
9348 (SC_IS_BSS): Return true for the scBss storage class only, as
9349 the scSBss storage class refers to the .sbss section.
9350 (parse_partial_symbols): Discard the symbols which associated
9351 section does not exist.
9352 Make sure to use the .sbss section index for symbols which
9353 storage class is scBss, rather than using the .bss section index.
9354
9355 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9356
9357 * vax-tdep.c: Update copyright years.
9358 (vax_register_name): New function.
9359 (vax_register_byte): Ditto.
9360 (vax_register_raw_size): Ditto.
9361 (vax_register_virtual_size): Ditto.
9362 (vax_register_virtual_type): Ditto.
9363 * config/vax/tm-vax.h: Update copyright years.
9364 (REGISTER_NAMES): Remove.
9365 (REGISTER_NAME): Define.
9366 (REGISTER_BYTE): Use vax_register_byte.
9367 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9368 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9369 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9370
9371 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9372
9373 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9374 declaration
9375 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9376
9377 2002-04-21 David S. Miller <davem@redhat.com>
9378
9379 * arch-utils.c (generic_prologue_frameless_p): Kill
9380 SKIP_PROLOGUE_FRAMELESS_P code.
9381 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9382 references.
9383 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9384 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9385 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9386 references.
9387 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9388 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9389 (sparc_gdbarch_init): Pass it to
9390 set_gdbarch_prologue_frameless_p.
9391
9392 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9393
9394 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9395 (alphabsd-nat.o): New dependency list.
9396
9397 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9398
9399 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9400 alphafbsd-tdep.c.
9401 (alpha-linux-tdep.o): New dependency list.
9402 (alphafbsd-tdep.o): Likewise.
9403
9404 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9405
9406 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9407 to here...
9408 * alpha-tdep.c: ...from here.
9409 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9410
9411 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9412
9413 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9414 prototype from here...
9415 * alpha-tdep.h: ...to here.
9416
9417 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9418
9419 * frame.h (selected_frame_level): Document as deprecated.
9420 (frame_relative_level): Declare.
9421 * stack.c (frame_relative_level): New function.
9422 (selected_frame_level): Document as deprecated.
9423 (select_frame): Do not set the selected_frame_level.
9424
9425 * stack.c (frame_info, record_selected_frame): Update.
9426 (frame_command, current_frame_command): Update.
9427 (up_silently_base, up_command, down_silently_base): Update.
9428 (down_command): Update.
9429 * inflow.c (kill_command): Update.
9430 * tracepoint.c (finish_tfind_command): Update.
9431 * corelow.c (core_open): Update.
9432 * thread.c (info_threads_command): Update.
9433 (do_captured_thread_select): Update.
9434 * infcmd.c (finish_command): Update.
9435 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9436
9437 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9438
9439 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9440
9441 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9442
9443 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9444 type const.
9445
9446 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9447
9448 * alphafbsd-tdep.c: Update copyright years. Include
9449 alpha-tdep.h.
9450 (alphafbsd_use_struct_convention): Make static.
9451 (alphafbsd_init_abi): New function.
9452 (_initialize_alphafbsd_tdep): New function.
9453 * config/alpha/tm-fbsd.h: Update copyright years.
9454 (USE_STRUCT_CONVENTION): Remove.
9455
9456 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9457
9458 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9459 an Alpha ABI variant.
9460 (alpha_abi_handler_list): Declare.
9461 (alpha_gdbarch_register_os_abi): New function.
9462 (alpha_gdbarch_init): Give registered ABI variant handlers a
9463 chance to tweak the gdbarch once we have set up defaults.
9464 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9465
9466 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9467
9468 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9469 to standard_coerce_float_to_double.
9470 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9471
9472 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9473
9474 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9475 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9476 from gdbarch_tdep rather than a constant.
9477 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9478 the default text address for all Alpha Unix ABIs.
9479 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9480 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9481
9482 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9483
9484 * alpha-tdep.h: New file. Includes several Alpha target constants
9485 taken from...
9486 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9487 let gdbarch deal with.
9488 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9489 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9490 to dependency list.
9491 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9492 Alpha target register names.
9493 * alphabsd-nat.c: Likewise.
9494 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9495 Alpha target register names. Make serveral routines static.
9496 (alpha_get_saved_register): New function.
9497 (alpha_abi_names): New.
9498 (process_note_abi_tag_sections): New function.
9499 (get_elfosabi): New function.
9500 (alpha_gdbarch_init): New function.
9501 (alpha_dump_tdep): New function.
9502 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9503
9504 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9505
9506 * frame.c (find_saved_register): Delete #ifdef
9507 HAVE_REGISTER_WINDOWS code.
9508 * config/sparc/tm-sparc.h: Update comments.
9509 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9510
9511 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9512
9513 * i960-tdep.c (i960_find_saved_register): New function.
9514 (i960_get_saved_register): New function.
9515 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9516 (i960_get_saved_register): Declare.
9517 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9518
9519 2002-04-20 David S. Miller <davem@redhat.com>
9520
9521 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9522
9523 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9524
9525 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9526 instead of NUM_PSEUDO_REGS.
9527
9528 2002-04-20 David S. Miller <davem@redhat.com>
9529
9530 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9531 GDB_MULTI_ARCH_PARTIAL
9532 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9533 define, let tm-sp64.h do it.
9534
9535 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9536
9537 * frame.c (find_saved_register): Avoid a NULL pointer
9538 dereference and actually walk the frame list.
9539
9540 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9541
9542 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9543 sorted in most most-recent-used order. Document.
9544 * gdbarch.h, gdbarch.c: Regenerate.
9545
9546 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9547
9548 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9549 instead of ->prev.
9550 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9551 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9552 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9553 instead of ->prev.
9554
9555 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9556
9557 Fix PR gdb/471.
9558 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9559 (build_builtin_type_vec128): Ditto.
9560 (append_composite_type_field): Fix calculation of type length in
9561 union case.
9562
9563 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9564
9565 * config/djgpp/README: Update.
9566
9567 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9568 compiler warnings.
9569
9570 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9571
9572 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9573 (alpha_setup_arbitrary_frame): ...to this.
9574 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9575 for alpha_setup_arbitrary_frame.
9576
9577 2002-04-18 Andrew Cagney <cagney@redhat.com>
9578
9579 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9580 * gdbarch.h, gdbarch.c: Regenerate.
9581
9582 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9583 * target.h (memory_breakpoint_from_pc): Update declaration.
9584 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9585
9586 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9587 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9588 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9589 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9590 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9591 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9592 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9593 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9594 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9595 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9596 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9597 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9598
9599 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9600 const pointer.
9601 * monitor.c (monitor_insert_breakpoint): Ditto.
9602 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9603
9604 * config/mcore/tm-mcore.h: Update copyright.
9605 * mem-break.c: Ditto.
9606 * xstormy16-tdep.c: Ditto.
9607
9608 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9609
9610 * p-exp.y: Add precedence rule for '^' token.
9611 This removes the shift/reduce conflicts.
9612 Remove the comment concerning these shift/reduce conflicts.
9613
9614 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9615
9616 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9617 (registers_powerpc_nofp): New register set for processors
9618 without floating point unit.
9619
9620 2002-04-18 David S. Miller <davem@redhat.com>
9621
9622 * MAINTAINERS: Add myself to write-after-approval.
9623
9624 2002-04-17 Michael Snyder <msnyder@redhat.com>
9625
9626 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9627
9628 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9629
9630 * rs6000-tdep.c (frame_initial_stack_address): Use
9631 frame_register_read to read the alloca_reg.
9632
9633 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9634
9635 * frame.c (find_saved_register): Find saved registers in the next
9636 not prev frame.
9637 Fix PR gdb/365.
9638
9639 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9640
9641 * gdbarch.sh (LANG): Set to ``c''.
9642
9643 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9644
9645 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9646
9647 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9648
9649 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9650 Update copyright.
9651
9652 * hpread.c (hpread_get_lntt): Add declaration.
9653 Also fix PR gdb/391.
9654
9655 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9656
9657 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9658 * aclocal.m4, configure: Re-generate.
9659 Fix PR gdb/391.
9660
9661 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9662
9663 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9664 instead of tm_print_insn.
9665
9666 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9667
9668 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9669
9670 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9671
9672 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9673 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9674 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9675
9676 2002-04-12 Don Howard <dhoward@redhat.com>
9677
9678 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9679 max_user_call_depth.
9680 (init_cmd_lists): Initialize the new value;
9681 * cli/cli-script.c (execute_user_command): Limit the call depth of
9682 user defined commands. This avoids a core-dump when user commands
9683 are infinitly recursive.
9684
9685 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9686
9687 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9688 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9689 from tdep struct instead of DEFAULT_LR_SAVE.
9690 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9691 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9692 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9693
9694 2002-04-12 Michael Snyder <msnyder@redhat.com>
9695
9696 * Remote.c: Spelling fix.
9697 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9698 If no symbol found for "sbrk", try "_sbrk".
9699 (make_output_phdrs): Use bfd_section_name.
9700 (gcore_copy_callback): Use bfd_section_name.
9701 * eval.c: Indentation fix-ups.
9702 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9703 in case it gets applied to an address that is already
9704 in the instruction space.
9705 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9706 * symfile.c: Fix indentation, long lines.
9707 * source.c: White space fix-up.
9708
9709 2002-04-12 Andrew Cagney <cagney@redhat.com>
9710
9711 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9712 * frame.c (frame_register_read): New function. Return non-zero on
9713 success.
9714 (read_relative_register_raw_bytes_for_frame): Delete.
9715 (read_relative_register_raw_bytes): Delete.
9716 * frame.h (frame_register_read): Declare.
9717 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9718 * sh-tdep.c: Ditto.
9719 * infcmd.c (do_registers_info): Ditto.
9720 * hppa-tdep.c: Ditto.
9721 * rs6000-tdep.c: Ditto.
9722 * h8500-tdep.c: Ditto.
9723 * mips-tdep.c: Ditto.
9724 * h8300-tdep.c: Ditto.
9725 * z8k-tdep.c: Ditto.
9726
9727 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9728
9729 From Jimi X <jimix@watson.ibm.com>:
9730 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9731 64-bit SysV ABI.
9732
9733 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9734
9735 From Jimi X <jimix@watson.ibm.com>:
9736 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9737 bfd info.
9738
9739 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9740
9741 From Jimi X <jimix@watson.ibm.com>:
9742 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9743 register sets for these processor variants.
9744
9745 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9746
9747 * regformats/reg-ppc.dat: Support FPSCR.
9748
9749 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9750
9751 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9752 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9753 Add fpscr as an invalid/unfetchable register.
9754 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9755 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9756 (fill_fpregset): Add support for register fpscr.
9757 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9758 (fill_gregset): Account for the fact that register ``mq'' might
9759 not exist.
9760 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9761 (registers_power): Add fpscr to register set at slot 71.
9762 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9763 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9764
9765 2002-04-11 Michael Snyder <msnyder@redhat.com>
9766
9767 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9768 * configure: Regenerate.
9769 * config.in: Regenerate.
9770 * acconfig.h: Add define for _SYSCALL32.
9771 * core-sol2.c: Remove #define _SYSCALL32.
9772 * solib-legacy.c: Remove #define _SYSCALL32.
9773
9774 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9775
9776 * stack.c (select_frame): Cleanup internal error message, do not
9777 use %p.
9778
9779 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9780
9781 * stack.c (select_frame): Check that selected_frame and the
9782 specified level are as expected.
9783 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9784 Update copyright.
9785 * frame.h (struct frame_info): Add field `level'. Update
9786 copyright.
9787 Work-in-progress PR gdb/464.
9788
9789 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9790
9791 * maint.c (maint_print_section_info): Rename print_section_info.
9792 (print_bfd_section_info, print_objfile_section_info): Update.
9793 * inferior.h (struct gdbarch): Add opaque declaration.
9794 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9795 * gdbarch.h: Regenerate.
9796
9797 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9798
9799 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9800 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9801 (kernel_u_size): Added.
9802 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9803 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9804
9805 2002-04-04 Jim Ingham <jingham@apple.com>
9806
9807 * valarith.c (find_size_for_pointer_math): New function, either returns
9808 the size for a pointer's target, returns 1 for void *, or errors for
9809 incomplete types.
9810 (value_add, value_sub): use find_size_for_pointer_math.
9811
9812 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9813
9814 * linux-low.c (linux_look_up_symbols): New hook.
9815 (linux_target_ops): Add linux_look_up_symbols.
9816 * remote-utils.c (decode_address): New function.
9817 (look_up_one_symbol): New function.
9818 * server.c (handle_query): Call target look_up_symbols hook.
9819 * server.h (look_up_one_symbol): Add prototype.
9820 * target.h (struct target_ops): Add look_up_symbols hook.
9821
9822 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9823
9824 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9825 override FP_REGNUM with frame->fp. Update copyright.
9826 * parse.c (num_std_regs, std_regs): Delete.
9827 (target_map_name_to_register): Do not search std_regs. Update
9828 function description.
9829 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9830 declarations. Update copyright.
9831 Fix PR gdb/251.
9832
9833 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9834
9835 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9836 after the last symbol in a block.
9837
9838 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9839
9840 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9841 is non zero as a found symbol.
9842
9843 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9844
9845 * findvar.c: Include "builtin-regs.h".
9846 (value_of_register): Call value_of_builtin_reg when applicable.
9847 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9848 (target_map_name_to_register): Call
9849 builtin_reg_map_name_to_regnum.
9850 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9851 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9852 (builtin_regs_h): Define.
9853 (builtin-regs.o): New target.
9854 (findvar.o): Add $(builtin_regs_h).
9855 * builtin-regs.c, builtin-regs.h: New files.
9856 * std-regs.c: New file.
9857 Partial fix for PR gdb/251.
9858
9859 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9860
9861 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9862 it's no longer required.
9863
9864 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9865
9866 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9867
9868 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9869
9870 From Jimi X <jimix@watson.ibm.com>:
9871 * rs6000-tdep.c (rs6000_software_single_step): Use
9872 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9873 and size. Use target_insert_breakpoint() and
9874 target_remove_breakpoint() to insert and remove breakpoints
9875 instead of explicit memory reads and writes.
9876
9877 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9878
9879 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9880 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9881 ELF_OBJECT_FORMAT ifdef.
9882
9883 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9884
9885 From Jimi X <jimix@watson.ibm.com>:
9886 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9887
9888 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9889
9890 From Jimi X <jimix@watson.ibm.com>:
9891 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9892 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9893
9894 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9895
9896 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9897 s/asprintf/xasprintf/.
9898 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9899
9900 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9901
9902 I believe Jeff Law denies responsability for this one:
9903 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9904 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9905 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9906 Work-around for PR gdb/366.
9907
9908 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9909
9910 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9911 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9912 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9913
9914 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9915
9916 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9917 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9918 information.
9919
9920 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9921
9922 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9923 maintainer.
9924
9925 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9926
9927 * README (Reporting Bugs in GDB): Document the bug web page as the
9928 prefered way of submitting bugs.
9929 Fix PR gdb/402.
9930
9931 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9932
9933 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9934 -1. Update comment.
9935 * gdbarch.h, gdbarch.c: Re-generate.
9936
9937 2002-04-07 Andreas Schwab <schwab@suse.de>
9938
9939 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9940 buffer to regcache_collect.
9941
9942 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9943
9944 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9945 * gdbarch.c, gdbarch.h: Re-generate.
9946
9947 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9948
9949 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9950 declaration. Fix -Werror.
9951
9952 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9953
9954 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9955 * gdbarch.c: Regenerate.
9956
9957 2002-04-05 Michael Snyder <msnyder@redhat.com>
9958
9959 * breakpoint.c (clear_command): Rewrite middle section to
9960 combine two loops with identical control conditions.
9961 Add a cleanup to eliminate a memory leak.
9962 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9963
9964 2002-04-05 H.J. Lu (hjl@gnu.org)
9965
9966 * solib-svr4.c (bkpt_names): Add "__start".
9967
9968 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9969
9970 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9971 as test for 64 bit target.
9972
9973 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9974
9975 * h8500-tdep.c (h8500_write_fp): Delete function.
9976 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9977 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9978 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9980 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9981 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9982 (s390_write_fp):
9983 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9984 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9985 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9986 (d10v_write_fp): Delete function.
9987 * inferior.h (write_fp, generic_target_write_fp): Delete
9988 declarations.
9989 * regcache.c (generic_target_write_fp): Delete function.
9990 (write_fp): Delete function.
9991 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9992 * gdbarch.h, gdbarch.c: Regenerate.
9993 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9994 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9995 (sparc64_write_fp): Delete declaration.
9996 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9997 (h8500_write_fp): Delete declaration.
9998
9999 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10000
10001 * sparc-tdep.c (sparc64_write_fp): Delete.
10002 (sparc_push_dummy_frame): Replace write_fp call with code to store
10003 the FP directly.
10004 (sparc_gdbarch_init): Do not initialize write_fp.
10005
10006 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10007
10008 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10009 clause.
10010
10011 2002-03-29 Jim Blandy <jimb@redhat.com>
10012
10013 * stack.c (get_selected_block): Add new argument `addr_in_block',
10014 used to return the exact code address we used to select the block,
10015 not just the block.
10016 * blockframe.c (get_frame_block, get_current_block): Same.
10017 * frame.h (get_frame_block, get_current_block,
10018 get_selected_block): Update declarations.
10019 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10020 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10021
10022 2002-04-05 Michael Snyder <msnyder@redhat.com>
10023
10024 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10025 warning message.
10026
10027 2002-04-05 J. Brobecker <brobecker@gnat.com>
10028
10029 * utils.c (xfullpath): New function.
10030 * defs.h (xfullpath): Add declaration.
10031 * source.c (openp): Use xfullpath in place of gdb_realpath to
10032 avoid resolving the basename part of filenames when the
10033 associated file is a symbolic link. This fixes a potential
10034 inconsistency between the filenames known to GDB and the
10035 filenames it prints in the annotations.
10036 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10037 to be able to match a filename with either the real filename, or
10038 the name of any symbolic link to this file.
10039 (lookup_partial_symtab): Ditto.
10040
10041 2002-04-04 Michael Snyder <msnyder@redhat.com>
10042
10043 * breakpoint.c: Add support for hardware breakpoints in overlays.
10044 (overlay_events_enabled): New state variable.
10045 (insert_breakpoints): Use overlay_events_enabled to decide
10046 whether to attempt to set a breakpoint at the overlay load addr.
10047 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10048 (remove_breakpoint): Use overlay_events_enabled to decide
10049 whether breakpoints need to be removed from overlay load addr.
10050 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10051 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10052 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10053 disable_overlay_breakpoints): Update overlay_events_enabled.
10054
10055 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10056
10057 * dwarf2read.c (struct function_range): New.
10058 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10059 (check_cu_functions): New.
10060 (read_file_scope): Initialize global function lists.
10061 Call dwarf_decode_line after processing children.
10062 (read_func_scope): Add to global function list.
10063 (dwarf_decode_lines): Call check_cu_functions everywhere
10064 record_line is called. Call record_line with a linenumber
10065 of 0 to mark sequence ends.
10066
10067 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10068
10069 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10070 change sync with glibc.
10071
10072 2002-04-03 Jim Blandy <jimb@redhat.com>
10073
10074 * configure.in: Call AC_C_INLINE.
10075 * configure: Regenerated.
10076
10077 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10078
10079 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10080 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10081
10082 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10083
10084 * NEWS: Mention gcore support on FreeBSD/i386.
10085
10086 * fbsd-proc.c: New file.
10087 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10088 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10089
10090 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10091 while statement.
10092
10093 2002-03-29 Jim Blandy <jimb@redhat.com>
10094
10095 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10096 unescaped newlines in string literals, but newer ones don't. So
10097 escape them.
10098
10099 2002-03-26 Michael Snyder <msnyder@redhat.com>
10100 Andrew Cagney <cagney@redhat.com>
10101
10102 * cli/cli-dump.c: New file. Dump memory to file,
10103 restore file to memory.
10104 * cli/cli-dump.h: New file.
10105 * Makefile.in: Add rules, dependencies for cli-dump.o.
10106 * NEWS: Mention new commands.
10107
10108 2002-03-28 Michael Snyder <msnyder@redhat.com>
10109
10110 * symfile.c (symbol_file_add): Move test for null symbols to later.
10111
10112 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10113
10114 From veksler at il.ibm.com:
10115 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10116 the xstrduped original path.
10117 Fix PR gdb/417.
10118
10119 2002-03-27 Michael Snyder <msnyder@redhat.com>
10120
10121 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10122 * infcmd.c (_initialize_infcmd): Ditto.
10123 * language.c (_initialize_language): Ditto.
10124 * symfile.c (_initialize_symfile): Ditto.
10125 * top.c (_init_main): Ditto.
10126 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10127
10128 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10129
10130 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10131 vector registers handling.
10132 (skip_prologue): Handle new AltiVec instructions. Fill in new
10133 fields of frame data.
10134 (frame_get_saved_regs): Fill in information for AltiVec registers.
10135
10136 2002-03-27 Jim Blandy <jimb@redhat.com>
10137
10138 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10139 a function; leave this macro here to invoke that function.
10140 (symbol_init_mangled_name): Declaration for that function.
10141 * symtab.c (symbol_init_mangled_name): New function.
10142
10143 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10144
10145 * valarith.c: Replace strerror with safe_strerror.
10146 * tracepoint.c: Ditto.
10147 * lin-lwp.c: Ditto.
10148 * go32-nat.c: Ditto.
10149 * inflow.c: Ditto.
10150 * gnu-nat.c: Ditto.
10151
10152 2002-03-27 Andreas Schwab <schwab@suse.de>
10153
10154 * event-top.c (command_line_handler): Remove useless if.
10155
10156 2002-03-27 Andreas Jaeger <aj@suse.de>
10157
10158 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10159 comment.
10160
10161 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10162
10163 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10164 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10165 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10166 (x86_64_linux_dr_get_status, supply_gregset),
10167 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10168 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10169 (x86_64_register_info_table): Add.
10170 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10171 (x86_64_register_raw_size, x86_64_register_virtual_type),
10172 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10173 general x86_64_register_info_table.
10174 (i386_gdbarch_init): gdbarch_register_bytes is now set
10175 dynamicaly during initialization.
10176 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10177 * gdbserver/linux-x86-64-low.c: Ditto.
10178
10179 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10180
10181 * gdbserver/server.c (main): Call target_signal_to_host_p
10182 and target_signal_to_host on signals received from the remote.
10183 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10184 target_signal_from_host on signals sent to the remote.
10185 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10186 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10187
10188 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10189
10190 * signals/signals.c: Include "server.h" in gdbserver build.
10191 (target_signal_from_name): Don't use STREQ.
10192 (_initialize_signals): Likewise. Don't include function in
10193 gdbserver build.
10194
10195 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10196
10197 * signals.c: Moved to...
10198 * signals/signals.c: Here.
10199 * Makefile (signals.o): Update.
10200
10201 2002-03-26 Jeff Law (law@redhat.com)
10202
10203 * somread.c (som_symtab_read): Remove some commented out code and
10204 updated related comments. Do not set the minimal symbol table to
10205 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10206 in a dynamic executable.
10207 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10208 where we are unable to find the minimal symbol for the given
10209 PC value.
10210
10211 2002-03-25 Jeff Law (law@redhat.com)
10212
10213 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10214
10215 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10216
10217 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10218
10219 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10220
10221 * command.h: Update copyright.
10222 (struct cmd_list_element): Replace definition with opaque
10223 declaration.
10224 (enum cmd_types): Document that it will eventually be moved to
10225 cli/cli-decode.h
10226 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10227 (MALLOCED_REPLACEMENT): Delete macro.
10228 * Makefile.in (cli_decode_h): Add $(command_h).
10229 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10230 * top.c: Include "cli/cli-decode.h".
10231 * completer.c: Include "cli/cli-decode.h".
10232 * maint.c: Include "cli/cli-decode.h".
10233 * cli/cli-decode.h: Include "command.h".
10234 (enum command_class): Delete.
10235 (enum cmd_types): Comment out.
10236 (enum cmd_auto_boolean): Delete.
10237 (enum var_types): Delete.
10238
10239 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10240
10241 * cli/cli-decode.c: Include "gdb_assert.h".
10242 (add_set_or_show_cmd): New static function.
10243 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10244 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10245 all fields, such as func, from the set command.
10246
10247 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10248
10249 * MAINTAINERS (sh-elf): Change warning flag to -w.
10250
10251 2002-03-23 Andrew Cagney <cagney@redhat.com>
10252
10253 * defs.h (error): Add printf format attribute.
10254 * thread-db.c (thread_from_lwp): Fix error format string.
10255 * stack.c (parse_frame_specification): Ditto.
10256 * cli/cli-decode.c (undef_cmd_error): Ditto.
10257 * scm-lang.c (scm_lookup_name): Ditto.
10258 * tracepoint.c (trace_error): Ditto.
10259 * remote-utils.c (usage): Ditto.
10260 * remote.c (compare_sections_command): Ditto.
10261 Fix PR gdb/328.
10262
10263 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10264
10265 * gdbtypes.c (append_composite_type_field): New function.
10266 (init_composite_type): New function.
10267 * gdbtypes.h (append_composite_type_field): Declare.
10268 (init_composite_type): Ditto.
10269
10270 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10271
10272 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10273 function.
10274 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10275 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10276 structure returning convention for SYSV ABI case, but not
10277 for GNU/Linux, FreeBSD, or NetBSD.
10278
10279 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10280
10281 * symtab.h (lookup_block_symbol): Add mangled_name argument
10282 to prototype.
10283
10284 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10285 with new mangled_name argument.
10286 * linespec.c (decode_line_1): Likewise.
10287 * valops (value_of_this): Likewise.
10288 * symtab.c (lookup_transparent_type): Likewise.
10289 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10290 (lookup_symbol): If we are given a mangled name, pass it down
10291 to lookup_symbol_aux.
10292 (lookup_block_symbol): If we are given a mangled name to check
10293 against, only return symbols which match it.
10294
10295 2002-03-22 Christopher Faylor <cgf@redhat.com>
10296
10297 * win32-nat.c (child_create_inferior): Check for proper shell to use
10298 here, in case the user changes it on the fly.
10299 (_initialize_inftarg): Remove shell path considerations.
10300
10301 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10302
10303 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10304 for gdbarch_max_register_raw_size and max_register_virtual_size.
10305 Adjust copyright year.
10306
10307 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10308
10309 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10310 in a function to cover the entire beginning of the function
10311 as well if it does not already.
10312
10313 2002-03-21 Tom Rix <trix@redhat.com>
10314
10315 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10316 (rs6000_ptrace64): Renamed from ptrace64.
10317
10318 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10319
10320 * gdbserver/remote-utils.c (remote_open): Don't call
10321 getprotobyname, we're all using TCP here so just use
10322 IPPROTO_TCP.
10323 * gdbserver/gdbreplay.c (remote_open): Ditto.
10324
10325 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10326
10327 * regcache.c (_initialize_regcache): No need to call
10328 build_regcache() at this time; it gets called whenever
10329 the gdbarch changes.
10330
10331 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10332
10333 * sparc-nat.c: Include sys/param.h where possible.
10334
10335 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10336
10337 Fix PR gdb/422.
10338 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10339 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10340 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10341 complex types.
10342 * stabsread.c (rs6000_builtin_type): Likewise.
10343 (read_sun_floating_type): Likewise.
10344
10345 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10346
10347 * stabsread.c (read_member_functions): Remove skip code for duplicate
10348 constructor/destructor methods. Use standard parsing for these
10349 methods and just do not chain them to the list of methods after
10350 parsing.
10351
10352 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10353
10354 * coffread.c: Remove redundant static declarations. Replace
10355 occurrences of `PTR' with `void *'.
10356 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10357 * top.h (quit_cover): Likewise.
10358 * defs.h (catch_errors): Likewise.
10359
10360 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10361
10362 * defs.h (XMALLOC): Define.
10363 * gdb-events.sh (XMALLOC): Delete macro.
10364 * gdb-events.c, gdb-events.h: Regenerate.
10365 * gdbarch.sh (XMALLOC): Delete macro.
10366 * gdbarch.c: Regenerate.
10367 * serial.c (XMALLOC): Delete macro.
10368 * ui-file.c (XMALLOC): Ditto.
10369 * ser-unix.h (XMALLOC): Ditto.
10370 * sh-tdep.c (XMALLOC): Ditto.
10371 * ui-out.c (XMALLOC): Ditto.
10372 * utils.c (XMALLOC): Ditto.
10373 * i386-tdep.c (XMALLOC): Ditto.
10374 * gdb-events.c (XMALLOC): Ditto.
10375 * d10v-tdep.c (XMALLOC): Ditto.
10376 * cli-out.c (XMALLOC): Ditto.
10377
10378 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10379 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10380 * ui-file.c, ui-out.c: Ditto.
10381
10382 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10383
10384 * command.h (struct cmd_list_element): Add field context.
10385 (set_cmd_context, get_cmd_context): Declare.
10386 * cli/cli-decode.h: Ditto.
10387 * cli/cli-decode.c (get_cmd_context): New function.
10388 (set_cmd_context): New function.
10389 (add_cmd): Initialize context.
10390 Part of fixing PR gdb/145 and PR gdb/146.
10391
10392 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10393
10394 * cli/cli-decode.c (cmd_type): New function.
10395 * command.h (cmd_type): Declare.
10396 * infrun.c (set_schedlock_func): Call function cmd_type.
10397 * kod.c (kod_set_os): Call cmd_type.
10398 * cris-tdep.c (cris_version_update): Use function cmd_type.
10399 (cris_mode_update, cris_abi_update): Ditto.
10400
10401 * command.h: (execute_cmd_post_hook): Declare.
10402 (execute_cmd_pre_hook): Declare.
10403 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10404 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10405 functions. Execute pre/post hook while ensuring that afterwords
10406 hook_in is cleared.
10407 * top.c (execute_command): Use execute_cmd_post_hook, and
10408 execute_cmd_pre_hook to execute pre/post commands.
10409 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10410 hook_stop_stub.
10411 (hook_stop_stub): Call execute_cmd_pre_hook.
10412
10413 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10414
10415 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10416 set'' and this leads to a core dump. Move xstrdup of
10417 operating_system to after check that it is not NULL.
10418
10419 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10420
10421 * kod.c (kod_set_os): Remove unnecessary check that
10422 ``command->type'' is set_cmd.
10423
10424 * valprint.c (set_input_radix): Use input_radix.
10425 (set_output_radix): Use output_radix.
10426 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10427 isn't reverted.
10428
10429 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10430
10431 * value.h (struct value): Delete field ``substring_addr''. Change
10432 aligner fields to force_doublest_align, force_longest_align,
10433 force_core_addr_align and force_pointer_aligh.
10434
10435 * value.h (struct value): Fix typo in above change.
10436
10437 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10438
10439 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10440 to fix internal_error from ``maintenance print architecture''.
10441
10442 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10443
10444 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10445 for gcc versions after gcc-2.8.1.
10446
10447 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10448
10449 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10450 for method resolution. Restore adjustment of ``this'' pointer after
10451 calling value_struct_elt, which was accidentally removed during the
10452 HP merge.
10453
10454 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10455
10456 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10457 value_of_register.
10458 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10459 get_saved_register.
10460 * value.h (value_of_register): Update.
10461
10462 2002-03-14 Richard Henderson <rth@redhat.com>
10463
10464 * configure.in: Detect declaration for canonicalize_file_name.
10465 * utils.c (canonicalize_file_name): Declare, if needed.
10466 (gdb_realpath): Prefer realpath if available and usable.
10467 * config.in, configure: Rebuild.
10468
10469 2002-03-14 Richard Henderson <rth@redhat.com>
10470
10471 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10472 a constant array bound.
10473
10474 * MAINTAINERS: Add myself to write-after-approval.
10475
10476 2002-03-14 Michael Snyder <msnyder@redhat.com>
10477
10478 * symfile.c (syms_from_objfile): Return immediately if no syms.
10479 (symbol_file_add): Return immediately if no syms.
10480 (find_sym_fns): Return immediately if no syms.
10481
10482 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10483
10484 * gdbserver/remote-util.c (remote_open): Print remote-side's
10485 IP address when remote debugging over the network.
10486
10487 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10488
10489 * config/sparc/fbsd.mh: Fix copyright.
10490 * config/sparc/fbsd.mt: Likewise.
10491
10492 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10493
10494 * MAINTAINERS: Fix typo in name of gdb warnings option.
10495 (x86-64): Fix formating so that this can be parsed by awk.
10496
10497 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10498
10499 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10500 * defs.h: Include "gdb/signals.h".
10501 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10502
10503 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10504
10505 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10506 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10507 from x86-64-tdep.h
10508
10509 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10510 Don Howard <dhoward@redhat.com>
10511
10512 * mips-tdep.c (ST0_FR): Define.
10513 (mips2_fp_compat): New function, temporarily disabled.
10514 (mips_read_fp_register_single): New function.
10515 (mips_read_fp_register_double): New function.
10516 (mips_print_register): Use them.
10517 (do_fp_register_row): Likewise.
10518
10519 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10520
10521 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10522 approval''.
10523
10524 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10525
10526 * stabsread.c (read_member_functions): Fix is_stub test for
10527 static member functions, improve comment.
10528
10529 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10530
10531 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10532 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10533 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10534 commands that set boolean values.
10535 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10536 (arm_rdi_resume): Always initialize PC.
10537 (arm_rdi_open): Don't use rslt as a boolean.
10538 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10539 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10540 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10541 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10542
10543 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10544
10545 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10546 * configure: Rebuilt.
10547
10548 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10549
10550 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10551 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10552
10553 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10554
10555 * cli/cli-decode.c (set_cmd_completer): New function.
10556 * command.h (set_cmd_completer): Declare.
10557 * cli/cli-decode.h (set_cmd_completer): Ditto.
10558
10559 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10560 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10561 * win32-nat.c (_initialize_inftarg): Ditto.
10562 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10563 * proc-api.c (_initialize_proc_api): Ditto.
10564 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10565 * source.c (_initialize_source): Ditto.
10566 * exec.c (_initialize_exec): Ditto.
10567 * solib.c (_initialize_solib): Ditto.
10568 * top.c (init_main): Ditto.
10569 * tracepoint.c (_initialize_tracepoint): Ditto.
10570 * symfile.c (_initialize_symfile): Ditto.
10571 * printcmd.c (_initialize_printcmd): Ditto.
10572 * infcmd.c (_initialize_infcmd): Ditto.
10573 * corefile.c (_initialize_core): Ditto.
10574
10575 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10576
10577 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10578
10579 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10580
10581 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10582
10583 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10584
10585 * NEWS: Update headings, 5.2 has branched.
10586
10587 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10588
10589 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10590 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10591 (register_addr, REGISTER_RAW_SIZE): Likewise.
10592 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10593 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10594
10595 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10596
10597 * MAINTAINERS (x86-64): Add myself.
10598 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10599 changed value_ptr -> struct value *
10600
10601 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10602
10603 * configure.host (sparc64-*-freebsd): Add.
10604 * configure.tgt: Likewise.
10605 * config/sparc/fbsd.mh: New file.
10606 * config/sparc/fbsd.mt: Likewise.
10607 * config/sparc/nm-fbsd.h: Likewise.
10608 * config/sparc/tm-fbsd.h: Likewise.
10609
10610 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10611
10612 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10613 regformats/reg-s390x.dat.
10614
10615 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10616
10617 * utils.c: Add FIXME explaining true/false problem.
10618
10619 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10620
10621 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10622
10623 2002-02-28 Michael Chastain <mec@shout.net>
10624
10625 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10626
10627 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10628
10629 * gdbserver/linux-s390-low.c: New file.
10630 * regformats/reg-s390.dat: New file.
10631 * regformats/reg-s390x.dat: New file.
10632 * gdbserver/configure.srv: Add S/390.
10633 * gdbserver/Makefile.in: Add S/390.
10634 * configure.tgt: Enable gdbserver for S/390.
10635
10636 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10637
10638 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10639 first line of the doc string for "info dos", except at the end of
10640 the sentence, since the short help stops at the first period.
10641
10642 2002-02-28 Jason Merrill <jason@redhat.com>
10643
10644 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10645
10646 2002-02-27 Fred Fish <fnf@redhat.com>
10647
10648 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10649 comment (dumy -> dummy).
10650
10651 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10652
10653 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10654
10655 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10656
10657 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10658
10659 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * gdbserver/acconfig.h: New file.
10662 * gdbserver/i387-fp.c: New file.
10663 * gdbserver/i387-fp.h: New file.
10664 * gdbserver/linux-x86-64.c: New file.
10665 * regformats/reg-x86-64.dat: New file.
10666 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10667 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10668 * gdbserver/configure.in: Add support for regsets.
10669 * gdbserver/config.in: Regenerate.
10670 * gdbserver/configure: Regenerate.
10671 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10672 * gdbserver/linux-low.h: New file.
10673 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10674 for regsets.
10675 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10676 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10677 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10678 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10679 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10680 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10681 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10682 "i387-fp.h". Add PTRACE_GETREGS and friends.
10683 * gdbserver/regcache.c (supply_register): New function.
10684 (supply_register_by_name): New function.
10685 (collect_register): New function.
10686 (collect_register_by_name): New function.
10687
10688 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10689
10690 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10691 (config.status): Add configure.srv dependency.
10692 (server_h): Add config.h dependency.
10693
10694 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10695
10696 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10697 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10698 * gdbserver/configure.srv: Change i386-*-linux* to use
10699 reg-i386-linux.o.
10700
10701 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10702
10703 * x86-64-tdep.c: Re-indent. Update copyright date.
10704
10705 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10706
10707 From Michal Ludvig <mludvig@suse.cz>:
10708 * x86-64-tdep.c (value.h): Delete.
10709 (gdb_assert.h): Include.
10710 (x86_64_register_convert_to_virtual,
10711 x86_64_register_convert_to_raw ): Add check which lets only
10712 floating-point values to be converted.
10713 (value_push): Delete.
10714 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10715 (i386_gdbarch_init): Number of register_bytes fixed.
10716
10717 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10718
10719 * MAINTAINERS: Add x86-64 target.
10720
10721 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10722
10723 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10724 * osfsolib.c (solib_map_sections): Ditto.
10725 * irix5-nat.c (solib_map_sections): Ditto.
10726 * corelow.c (gdb_check_format): Ditto.
10727 * symfile.c (symfile_bfd_open): Ditto.
10728 * solib.c (solib_map_sections): Ditto.
10729 Fix PR gdb/354.
10730
10731 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10732
10733 * remote.c (_initialize_remote): By default, disable ``e'' and
10734 ``E'' step out-of-range packets.
10735
10736 2002-02-26 Andreas Schwab <schwab@suse.de>
10737
10738 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10739 m68k_linux_frame_saved_pc.
10740 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10741 in_sigtramp.
10742 (SIGCONTEXT_PC_OFFSET): Remove.
10743 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10744 m68k_linux_sigtramp_saved_pc): New functions.
10745 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10746 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10747 (UCONTEXT_PC_OFFSET): Define.
10748 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10749 non-RT and RT signal trampolines.
10750
10751 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10752
10753 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10754 (TARGET_NBPG, STACK_END_ADDR): Delete
10755 (VARIABLES_INSIDE_BLOCK): Delete.
10756
10757 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10758
10759 * utils.c (perror_with_name): Make string parameter constant.
10760 (print_sys_errmsg): Ditto.
10761 (query): Ditto.
10762 * defs.h (perror_with_name): Update.
10763 (print_sys_errmsg): Update.
10764 (query): Update.
10765
10766 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10767
10768 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10769 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10770
10771 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10772
10773 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10774 if it already matches the current architecture from the exec file.
10775 Include arch-utils.h for gdbarch_info_init prototype.
10776 * Makefile.in (rs6000-nat.o): Update dependencies.
10777
10778 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10779
10780 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10781 list of exported variables.
10782
10783 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10784
10785 * gdbserver/configure.srv: New file.
10786 * gdbserver/configure.in: Use configure.srv instead
10787 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10788 from it.
10789 * gdbserver/configure: Regenerated.
10790 * gdbserver/terminal.h: New file.
10791 * gdbserver/Makefile.in: Update for configure changes. Remove
10792 more unneeded include paths.
10793
10794 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10795
10796 From wiz at danbala:
10797 * config/sparc/tm-sp64.h: Fix grammar and typos.
10798 Fix PR gdb/287.
10799
10800 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10801
10802 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10803 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10804 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10805 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10806 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10807 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10808 * s390-tdep.c: Ditto.
10809 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10810 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10811 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10812 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10813 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10814 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10815 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10816 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10817 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10818 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10819 Fix PR gdb/378.
10820
10821 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10822
10823 * lin-thread.c: Delete file.
10824 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10825 to gdb_proc_service.h.
10826 * configure: Re-generate.
10827
10828 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10829 * serial.c (serial_open): Delete check for "ocd".
10830 Fix PR gdb/349.
10831
10832 * Makefile.in (linux-thread.o): Delete target.
10833 * linux-thread.c: Delete file.
10834
10835 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10836 renamed SH files to be consistent.
10837
10838 * symtab.c (sort_search_symbols): Use xfree.
10839
10840 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10841
10842 * arm-linux-tdep.c (arm_linux_init_abi): Register
10843 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10844 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10845 definition with undef, since we don't want the sysvr4 definition.
10846 (SKIP_TRAMPOLINE_CODE): Likewise.
10847
10848 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10849
10850 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10851
10852 * configure.in: (AC_CHECK_FUNCS) Added test for
10853 canonicalize_file_name Regenerated.
10854 * config.in, configure: Regenerated.
10855 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10856 defined use canonicalize_file_name.
10857
10858 2002-02-23 Michael Chastain <mec@shout.net>
10859
10860 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10861
10862 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10863
10864 * README: Remove references to cygnus.com.
10865 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10866 dot com'' form. Remove references to cygnus.com and sourceware.
10867
10868 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10869
10870 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10871 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10872 1003.1-2001 no longer allows "head -1".
10873 * gdb/Makefile.in (version.c): Likewise.
10874 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10875 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10876 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10877
10878 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10879
10880 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10881 * command.h (cmd_cfunc_eq): Declare.
10882 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10883
10884 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10885 ``struct cmd_list_element *''.
10886 * cli/cli-cmds.c (is_complete_command): Update. Use
10887 cmd_cfunc_eq.
10888 * top.c (execute_command): Pass the command to
10889 is_complete_command.
10890 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10891
10892 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10893
10894 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10895 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10896 architecture defines.
10897 * s390-tdep.c (s390_gdbarch_init): Likewise.
10898
10899 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10900
10901 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10902 (arm_linux_push_arguments): Likewise.
10903 (arm_linux_init_abi): Register them. Also register linux-specific
10904 call_dummy_words.
10905 (find_minsym_and_objfile): Use strcmp, not STREQ.
10906 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10907 (arm_linux_call_dummy_words): Delete declaration.
10908 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10909 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10910 declarations.
10911 (LOWEST_PC): Delete.
10912
10913 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10914
10915 * maint.c (print_section_info): Do not prepend `0x' to filepos
10916 output, it will be handled by local_hex_string_custom.
10917
10918 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10919
10920 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10921 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10922 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10923
10924 2002-02-22 Jim Blandy <jimb@redhat.com>
10925
10926 Indicate that the bcache functions don't change the strings
10927 they're passed.
10928 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10929 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10930
10931 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10932
10933 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10934
10935 2002-02-21 Christopher Faylor <cgf@redhat.com>
10936
10937 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10938 find the complete path to a loaded DLL.
10939
10940 2002-02-21 Fred Fish <fnf@redhat.com>
10941
10942 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10943 that marks the end of the range of a function, enter a line number
10944 entry that has a line number of zero and a PC offset that matches
10945 the end of the function. This starts a range of PC's for which no
10946 line number information is known.
10947 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10948 PC's for which no line number info is found (line number is zero)
10949 then we didn't find any valid line information.
10950 * symtab.h: Document use of zero line number entry.
10951
10952 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10953
10954 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10955 (have_ptrace_getvrregs): Define for run time checks.
10956 (gdb_vrregset_t): New type for Altivec register handling.
10957 (fetch_register, store_register): Fetch/store altivec register
10958 when needed.
10959 (fetch_altivec_register, store_altivec_register): New functions.
10960 (supply_vrregset, fill_vrregset): New functions.
10961 (fetch_altivec_registers, store_altivec_registers): New functions.
10962 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10963 registers as well.
10964
10965 2002-02-21 Jiri Smid <smid@suse.cz>
10966
10967 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10968
10969 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10970
10971 * Makefile.in (armnbsd-nat.o): Update dependencies.
10972 * armnbsd-nat.c (supply_gregset): New function. Common code to
10973 supply the integer register set.
10974 (supply_fparegset): New function. Similar for FPA registers.
10975 (fetch_regs, fetch_fp_regs): Use them.
10976 (fetch_core_registers): Likewise.
10977 (fetch_elfcore_registers): New function.
10978 (arm_netbsd_elfcore_fns): New core-file type specification.
10979 (_initialize_arm_netbsd_nat): Register it.
10980
10981 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10982
10983 * armnbsd-nat.c: Include gdbcore.h.
10984 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10985 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10986 'void' to declaration, to shut up ARI.
10987 (fetch_core_registers): Make static. Rewrite using supply_register.
10988 (arm_netbsd_core_fns): New core-file type specification.
10989 (_initialize_arm_netbsd_nat): New function.
10990
10991 2002-02-21 Christopher Faylor <cgf@redhat.com>
10992
10993 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10994 value.
10995
10996 2002-02-20 Christopher Faylor <cgf@redhat.com>
10997
10998 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10999 fails.
11000
11001 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11002
11003 * jv-exp.y (parse_number): Change type of implicit longs
11004 to builtin_type_uint64.
11005
11006 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11007
11008 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11009 to be an integer instead of a `union wait'.
11010
11011 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11012
11013 * mips-linux-nat.c: Call the operating system GNU/Linux.
11014 * mips-linux-tdep.c: Likewise.
11015 * mips-tdep.c: Likewise.
11016
11017 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11018
11019 Fix PR gdb/265.
11020 * jv-exp.y (parse_number): Handle 64-bit integers.
11021
11022 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11023
11024 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11025 AC_STDC_HEADERS to AC_HEADER_STDC.
11026 * gdbserver/configure: Regenerated.
11027
11028 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11029
11030 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11031 is defined.
11032 * sparc-tdep.c (get_longjmp_target): Likewise.
11033
11034 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11035
11036 * News: Add news about ARM and Multi-arch. Mention the new target
11037 arm*-*-netbsd*.
11038
11039 2002-02-19 Jim Blandy <jimb@redhat.com>
11040
11041 * stabsread.c (error_type_complaint): Improve error message.
11042
11043 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11044
11045 * gdbserver/README: Update documentation.
11046 * gdbserver/configure.in: Update configury to match documentation.
11047 * gdbserver/Makefile.in: Likewise.
11048 * gdbserver/configure: Regenerated.
11049 * gdbserver/aclocal.m4: New file, generated by aclocal.
11050 * gdbserver/config.in: New file, generated by autoheader.
11051
11052 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11053
11054 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11055 armnbsd-nat.c.
11056
11057 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11058
11059 * arm-tdep.h (enum arm_float_model): New enum.
11060 (struct gdbarch_tdep): Add fp_model.
11061 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11062 up floating-point conversions until we know the floating-point model
11063 in use by the inferior. Don't complain about being unable to
11064 determine the ABI of the inferior when we don't have one.
11065 (arm_extract_return_value): Support different floating-point models.
11066 (arm_store_return_value): Likewise.
11067 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11068 ARM_FLOAT_SOFT.
11069 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11070
11071 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11072
11073 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11074 of ``current_gdbarch''.
11075
11076 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11077
11078 * armnbsd-nat.c : ANSIfy all function declarations.
11079 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11080 (fetch_inferior_registers): Re-implement in terms of above.
11081 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11082 (store_inferior_registers): Re-implement in terms of above.
11083
11084 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11085
11086 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11087 kernel.
11088 * arm-linux-tdep.c: Likewise.
11089 * config/arm/tm-linux.h: Likewise.
11090
11091 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11092
11093 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11094 * config/arm/nbsd.mt (TM_FILE): Delete.
11095 * config/arm/tm-nbsd.h: Delete.
11096
11097 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11098
11099 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11100 Initialize CALL_DUMMY_LENGTH.
11101
11102 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11103
11104 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11105 function.
11106 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11107 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11108 defines one thing and that is incorrect for this port.
11109 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11110
11111 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11112
11113 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11114
11115 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11116
11117 * win32-nat.c (display_selector): New function. Displays information
11118 about the information returned by GetThreadSelectorEntry API function.
11119 (display_selectors): New function. Displays the infomation of
11120 the selector given as argument, or of CS, DS ans FS selectors
11121 if no argument is given.
11122 ( _initialize_inftarg): Add "w32" as info prefix command.
11123 Add "info w32 selector" as command calling display_selectors.
11124
11125 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11126
11127 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11128 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11129 if not defined.
11130
11131 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11132
11133 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11134
11135 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11136
11137 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11138 (arm_fix_call_dummy): Call it.
11139 (arm_call_dummy_breakpoint_offset): Delete.
11140 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11141 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11142
11143 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11144
11145 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11146 Default to func_frame_chain_valid.
11147 * gdbarch.h, gdbarch.c: Re-generate.
11148 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11149
11150 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11151
11152 * ppc-linux-nat.c: Update copyright.
11153 (fetch_register, store_register): Add tid parameter, don't compute
11154 tid here.
11155 (fetch_ppc_registers, store_ppc_registers): Add tid
11156 parameter. Pass it along to callees.
11157 (fetch_inferior_registers, store_inferior_registers): Compute tid
11158 here, and pass it to calleed functions.
11159 (fill_gregset, supply_fpregset): Clean up formatting.
11160
11161 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11162
11163 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11164 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11165
11166 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11167
11168 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11169 * gdbarch.c gdbarch.h: Regenerate.
11170 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11171 function.
11172 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11173 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11174 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11175
11176 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11177 * arm-tdep.c (arm_get_longjmp_target): New function.
11178 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11179 this to a positive value register arm_get_longjmp_target as the
11180 longjmp handler.
11181 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11182 (arm_linux_init_abi): Set up longjmp description in tdep.
11183 * armnbsd-nat.c (get_longjmp_target): Delete.
11184 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11185 description in tdep.
11186 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11187 (get_longjmp_target): Delete declaration.
11188 (GET_LONGJMP_TARGET): Delete.
11189 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11190 (GET_LONGJMP_TARGET): Delete.
11191
11192 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11193
11194 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11195 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11196 of ``current_gdbarch''.
11197
11198 2002-02-17 Tom Tromey <tromey@redhat.com>
11199
11200 * cli/cli-cmds.c (compare_strings): New function.
11201 (complete_command): Only print each unique item once.
11202 * completer.h (complete_line): Declare.
11203 * completer.c (complete_line): New function.
11204 (line_completion_function): Use it.
11205
11206 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11207
11208 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11209 * gdbarch.h, gdbarch.c: Re-generate.
11210
11211 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11212
11213 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11214
11215 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11216
11217 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11218 * valops.c (value_arg_coerce): Don't take the address of a reference
11219 to convert an argument to a reference.
11220
11221 2002-02-15 Christopher Faylor <cgf@redhat.com>
11222
11223 * win32-nat.c (get_image_name): New function.
11224 (handle_load_dll): Use get_image_name function.
11225 (get_child_debug_event): Avoid registering debug events until possibly
11226 execed process is started.
11227 (child_create_inferior): Allow invocation via shell so that command
11228 line redirection, etc. works ok.
11229 (_initialize_inftarg): Add new command: "set shell" to control whether
11230 a shell is used to start a process.
11231
11232 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11233
11234 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11235 instead of find_register_by_number.
11236 (cannot_store_register): Likewise.
11237
11238 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11239
11240 * dwarf2read.c: Replace fprintf (stderr, ...) by
11241 fprintf_unfiltered (gdb_stderr, ...).
11242
11243 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11244
11245 * gdbserver/gdbserver.1: Document --attach.
11246
11247 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11248
11249 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11250 descriptions.
11251 * arm-tdep.c (arm_default_arm_le_breakpoint)
11252 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11253 (arm_default_thumb_be_breakpoint): New. Initialize them from
11254 traditional breakpoint defines.
11255 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11256 (arm_gdbarch_init): Initialize new breakpoint variables.
11257 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11258 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11259 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11260 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11261 code out to ...
11262 (arm_netbsd_init_abi_common): ... here; new function.
11263 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11264 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11265 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11266 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11267
11268 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11269
11270 * arm-tdep.h (enum arm_abi): New enum.
11271 (struct gdbarch_tdep): New structure.
11272 (LOWEST_PC): Provide a default.
11273 (arm_gdbarch_register_os_abi): Declare new function.
11274 * arm-tdep.c (arm_abi_names): New array.
11275 (process_note_abi_tag_sections): New function.
11276 (get_elfosabi): New function.
11277 (arm_gdbarch_register_os_abi): New function.
11278 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11279 support for that ABI has been built in, then call the appropriate
11280 configuration routine. Use gdbarch_num_regs() to get the number
11281 of registers.
11282 (arm_dump_tdep): New function.
11283 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11284 place-holder functions.
11285 (_initialize_arm_tdep): Register them.
11286 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11287
11288 * armnbsd-tdep.c: New file.
11289 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11290 * config/arm/nbsd.mt (TDEPFILES): Add it.
11291 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11292
11293 * armnbsd-nat.c: Include regcache.h.
11294 * Makefile.in (armnbsd-nat.o): Update dependency list.
11295
11296 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11297
11298 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11299
11300 * gdbserver/Makefile.in: Fix typos in target rules.
11301
11302 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11303
11304 Fix part of PR gdb/267.
11305 * linespec.c (find_methods): Handle constructors specially for now.
11306
11307 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11308
11309 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11310 handling.
11311 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11312 standard_coerce_float_to_double().
11313
11314 2002-02-14 Christopher Faylor <cgf@redhat.com>
11315
11316 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11317 GDBINIT_FILENAME.
11318
11319 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11320
11321 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11322 find_variant_by_name, because it confuses the multiarch
11323 framework. Return NULL if there isn't an architecture with the
11324 user supplied name, instead of forcing a different one without
11325 recording the change with the multiarch machinery.
11326 (find_variant_by_name): Delete.
11327
11328 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11329
11330 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11331 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11332
11333 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11334
11335 * stack.c (print_frame_info_base): When calling
11336 print_frame_info_listing_hook, set current_source_symtab.
11337
11338 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11339
11340 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11341 and remove unused $(INCLUDE_DIR).
11342 Add regcache.c to OBS.
11343 Add generated register protocol files to clean target.
11344 Update dependencies for new objects, obsolete old target code.
11345
11346 * gdbserver/linux-low.c: Remove all platform-specific code to
11347 new files. Remove various dead code. Update to use regcache
11348 functionality.
11349 * gdbserver/remote-utils.c (fromhex): Add return statement
11350 to quiet warning.
11351 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11352 constant.
11353 (input_interrupt): Add integer parameter to match prototype
11354 of a signal handler.
11355 (outreg): Use register_data ().
11356 (prepare_resume_reply): Use gdbserver_expedite_regs.
11357 * gdbserver/server.c (main): Dynamically allocate own_buf because
11358 PBUFSIZ is no longer constant. Use registers_to_string () and
11359 registers_from_string ().
11360 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11361 for error (), fatal (), and warning (). Update definition of
11362 PBUFSIZ to use regcache functionality. Add include guard.
11363 * gdbserver/utils.c (fatal): Add missing ``const''.
11364 (warning): New function.
11365
11366 * regformats/regdat.sh: Include "regcache.h" in generated files.
11367 Provide init_registers () function.
11368 * regformats/regdef.h: Add prototype for set_register_cache ().
11369 Add include guard.
11370
11371 * gdbserver/linux-arm-low.c: New file.
11372 * gdbserver/linux-i386-low.c: New file.
11373 * gdbserver/linux-ia64-low.c: New file.
11374 * gdbserver/linux-m68k-low.c: New file.
11375 * gdbserver/linux-mips-low.c: New file.
11376 * gdbserver/linux-ppc-low.c: New file.
11377 * gdbserver/linux-sh-low.c: New file.
11378
11379 * gdbserver/regcache.c: New file.
11380 * gdbserver/regcache.h: New file.
11381
11382 * gdbserver/low-linux.c: Removed obsolete file.
11383
11384 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11385
11386 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11387 * config/i386/linux.mt: Likewise.
11388 * config/ia64/linux.mt: Likewise.
11389 * config/m68k/linux.mh: Likewise.
11390 * config/powerpc/linux.mh: Likewise.
11391 * config/mips/linux.mt: Likewise.
11392
11393 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11394
11395 * config/i386/i386lynx.mh: Mark gdbserver variables
11396 as (currently) obsolete for this target.
11397 * config/i386/nbsd.mt: Likewise.
11398 * config/i386/nbsdelf.mt: Likewise.
11399 * config/m32r/m32r.mt: Likewise.
11400 * config/m68k/m68klynx.mh: Likewise.
11401 * config/m68k/nbsd.mt: Likewise.
11402 * config/m68k/sun3os4.mh: Likewise.
11403 * config/mips/vr5000.mt: Likewise.
11404 * config/ns32k/nbsd.mt: Likewise.
11405 * config/pa/hppabsd.mh: Likewise.
11406 * config/pa/hppaosf.mh: Likewise.
11407 * config/powerpc/nbsd.mt: Likewise.
11408 * config/rs6000/rs6000lynx.mh: Likewise.
11409 * config/s390/s390.mt: Likewise.
11410 * config/s390/s390x.mt: Likewise.
11411 * config/sparc/sparclynx.mh: Likewise.
11412 * config/sparc/sun4os4.mh: Likewise.
11413 * config/i386/x86-64linux.mt: Likewise.
11414 * config/sparc/linux.mh: Likewise.
11415
11416 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11417
11418 * configure.tgt: Configure gdbserver only for known working
11419 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11420 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11421 SUBDIRS if it is configured. Update comment for ${nativefile}.
11422 * configure: Regenerated.
11423
11424 2002-02-13 Michael Snyder <msnyder@redhat.com>
11425
11426 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11427
11428 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11429 (default_gcore_mach): Just return 0, work around a problem in bfd.
11430 (default_gcore_target): OK to return NULL if exec_bfd is null.
11431 (make_mem_sec): Use a cast, avoid a warning.
11432
11433 * procfs.c (find_memory_regions_callback): Use a cast instead of
11434 calling host_pointer_to_address (which complains if
11435 sizeof (host pointer) != sizeof (target pointer)).
11436 (procfs_make_note_section): Avoid overflow in psargs string.
11437
11438 * procfs.c (procfs_make_note_section): Make the default
11439 implementation return an error.
11440
11441 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11442
11443 * procfs.c (procfs_make_note_section): Provide a default definition
11444 (for alpha-dec-osf4.0f). Fix typos.
11445
11446 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11447
11448 * linux-proc.c: Add include of regcache.h.
11449 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11450
11451 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11452
11453 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11454 * memattr.c (create_mem_region): Disallow useless empty region.
11455 Regions are half-open intervals, so allow [A..B) [B..C) as
11456 non-overlapping.
11457
11458 2002-02-13 Michael Chastain <mec@shout.net>
11459
11460 * defs.h: Kill CONST_PTR.
11461 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11462 * c-lang.c (c_builtin_types): Likewise.
11463 * ch-lang.c (ch_builtin_types): Likewise.
11464 * f-lang.c (f_builtin_types): Likewise.
11465 * language.c (unknown_builtin_types): Likewise.
11466 * m2-lang.c (m2_builtin_types): Likewise.
11467 * p-lang.c (pascal_builtin_types): Likewise.
11468 * scm-lang.c (c_builtin_types): Likewise.
11469
11470 2002-02-13 Keith Seitz <keiths@redhat.com>
11471
11472 * arm-tdep.h (arm_get_next_pc): Add declaration.
11473
11474 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11475
11476 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11477 with other related struct-returning functions.
11478 (arm_extract_struct_value_address): New function.
11479 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11480 initialize float_format, double_format and long_double_format as
11481 appropriate to the endianness of the target.
11482 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11483 (arm_use_struct_convention): Delete declaration.
11484 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11485
11486 2002-02-13 Keith Seitz <keiths@redhat.com>
11487
11488 * defs.h (core_addr_to_string_nz): New function.
11489
11490 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11491
11492 Apply missing bits of 2002-01-15 patch.
11493 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11494 (fill_fpregset): Use i387_fill_fsave.
11495
11496 2002-02-12 Keith Seitz <keiths@redhat.com>
11497
11498 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11499 (core_addr_to_string_nz): New function.
11500
11501 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11502
11503 * arm-linux-nat.c: Really include arm-tdep.h.
11504 * config/arm/tm-linux.h (struct type, struct value): Declare.
11505
11506 2002-02-11 Michael Snyder <msnyder@redhat.com>
11507
11508 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11509 (gcore section): Ifdef for Solaris and Unixware only.
11510 (procfs_do_thread_registers): Unixware needs one lwpstatus
11511 per thread (not one prstatus or pstatus).
11512 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11513 not over all gdb threads. For unixware, call elfcore_write_pstatus
11514 once before iterating over threads.
11515
11516 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11517
11518 * arm-tdep.h: New file.
11519 * arm-tdep.c: Include arm-tdep.h.
11520 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11521 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11522 (arm_print_float_info, arm_register_type, convert_to_extended)
11523 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11524 (arm_extract_return_value, arm_register_name): Make static.
11525 (arm_software_single_step): Similarly. Fix types in declaration.
11526 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11527 (arm_store_return_value, arm_store_struct_return): New functions.
11528 (arm_gdbarch_init): Register the above functions. Also register
11529 call_dummy_start_offset, sizeof_call_dummy_words,
11530 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11531 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11532 max_register_virtual_size, register_size. Set up
11533 prologue_cache.saved_regs here, rather than ...
11534 (_initialize_arm_tdep): ... here.
11535 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11536 declarations.
11537 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11538 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11539 (arm_print_float_info, arm_register_type, convert_to_extended)
11540 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11541 (arm_extract_return_value, arm_register_name): Delete declarations.
11542 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11543 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11544 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11545 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11546 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11547 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11548 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11549 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11550 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11551 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11552 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11553 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11554 interface.
11555 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11556 * remote-rdi.c remote-rdp.c: Likewise.
11557 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11558 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11559 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11560 definition.
11561
11562 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11563 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11564 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11565 from non-ARM_ prefixed definitions.
11566 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11567 all uses of above.
11568 * remote-rdi.c remote-rdp.c: Likewise.
11569 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11570
11571 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11572
11573 * arm-tdep.c (arm_frameless_function_invocation)
11574 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11575 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11576 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11577 (arm_pop_frame, arm_get_next_pc): Make static.
11578 (arm_gdbarch_init): Register above in gdbarch structure.
11579 (arm_read_fp): Renamed from arm_target_read_fp.
11580 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11581 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11582 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11583 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11584 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11585 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11586 (arm_pc_is_thumb_dummy): Delete declarations.
11587 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11588 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11589 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11590 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11591
11592 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11593
11594 * symtab.c (compare_search_syms): New function.
11595 (sort_search_symbols): New function.
11596 (search_symbols): Sort symbols after searching rather than
11597 before.
11598
11599 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11600
11601 * NEWS: Linux -> GNU/Linux.
11602
11603 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11604
11605 * gdbarch.sh: For for level one methods, disallow a definition
11606 when partially multi-arched. Add comments explaining rationale.
11607 * gdbarch.h: Re-generate.
11608
11609 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11610
11611 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11612 multi-arch partial.
11613
11614 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11615
11616 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11617 field. Use diff -u.
11618 * gdbarch.c: Re-generate.
11619
11620 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11621
11622 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11623 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11624 partial.
11625
11626 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11627
11628 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11629 multi-arch partial.
11630 (PUSH_ARGUMENTS): Switch to using predefault.
11631 * gdbarch.c: Regenerate.
11632
11633 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11634
11635 * valops.c (PUSH_ARGUMENTS): Delete definition.
11636 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11637 partial. Default to default_push_arguments.
11638 * gdbarch.h, gdbarch.c: Regenerate.
11639
11640 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11641
11642 * defs.h (throw_exception): Rename return_to_top_level. Update
11643 comments.
11644 * utils.c (error_stream, internal_verror, quit): Ditto.
11645 * top.c (throw_exception, catcher): Ditto.
11646 * sparclet-rom.c (sparclet_load): Ditto.
11647 * remote.c (interrupt_query, minitelnet): Ditto.
11648 * remote-sds.c (interrupt_query): Ditto.
11649 * remote-mips.c (mips_error, mips_kill): Ditto.
11650 * ocd.c (interrupt_query): Ditto.
11651 * monitor.c (monitor_interrupt_query): Ditto.
11652 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11653 * target.h: Update comment.
11654
11655 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11656
11657 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11658
11659 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11660 default_double_format.
11661 * gdbarch.h, gdbarch.c: Re-generate.
11662 * findvar.c (floatformat_unknown): Delete variable definition.
11663 * doublest.h (floatformat_unknown): Delete variable declaration.
11664
11665 2002-02-09 Jim Blandy <jimb@redhat.com>
11666
11667 * stabsread.c (read_type): Add code to parse Sun's syntax for
11668 prototyped function types.
11669
11670 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11671
11672 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11673 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11674
11675 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11676
11677 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11678 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11679 now _initialize_xcoffsolib gets called again and overrides the
11680 commands from solib.c in a native configuration.
11681
11682 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11683
11684 * doublest.c (store_typed_floating): Don't try to return a value.
11685 Fixes PR gdb/290.
11686
11687 2002-02-08 Jim Blandy <jimb@redhat.com>
11688
11689 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11690 is prototyped and has no arguments, print its argument list as
11691 `(void)'.
11692
11693 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11694
11695 * MAINTAINERS (write-after-approval): Add myself.
11696 (paper-trail): I've escaped!
11697
11698 2002-02-08 Christopher Faylor <cgf@redhat.com>
11699
11700 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11701 changes.
11702 (_initialize_check_for_gdb_ini): Ditto.
11703
11704 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11705
11706 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11707 xaprintf -> xasprintf.
11708
11709 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11710
11711 * win32-nat.c: Remove use of printf and sprintf functions.
11712
11713 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11714
11715 * arm-tdep.c (arm_frame_chain_valid): Make static.
11716 (arm_push_arguments): Likewise.
11717 (arm_gdbarch_init): New function.
11718 (_initialize_arm_tdep): Call it.
11719 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11720 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11721 (FRAME_CHAIN_VALID): Delete.
11722 (arm_frame_chain_valid): Delete declaration.
11723 (PUSH_ARGUMENTS): Delete.
11724 (arm_push_arguments): Delete declaration.
11725 (CALL_DUMMY_P): Delete.
11726
11727 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11728 Corinna Vinschen <vinschen@redhat.com>
11729
11730 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11731 on builtin float types.
11732
11733 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11734
11735 * utils.c: Include <curses.h> before "bfd.h".
11736 * tui/tui-hooks.c: Likewise.
11737 * tui/tui.c: Likewise.
11738 * tui/tuiCommand.c: Likewise.
11739 * tui/tuiData.c: Likewise.
11740 * tui/tuiDataWin.c: Likewise.
11741 * tui/tuiDisassem.c: Likewise.
11742 * tui/tuiGeneralWin.c: Likewise.
11743 * tui/tuiIO.c: Likewise.
11744 * tui/tuiLayout.c: Likewise.
11745 * tui/tuiRegs.c: Likewise.
11746 * tui/tuiSource.c: Likewise.
11747 * tui/tuiSourceWin.c: Likewise.
11748 * tui/tuiStack.c: Likewise.
11749 * tui/tuiWin.c: Likewise.
11750
11751 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11752
11753 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11754 to include space for pseudoregs as well. Update loops accordingly.
11755 (sh_fp_frame_init_saved_regs): Ditto.
11756 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11757
11758 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11759
11760 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11761 Add Richard Earnshaw to Arm maintainers.
11762
11763 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11764
11765 * defs.h (warning_begin): Delete declaration.
11766
11767 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11768 Delete macro.
11769
11770 2002-02-07 Michael Snyder <msnyder@redhat.com>
11771
11772 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11773 Logic bug, remove misplaced else.
11774
11775 2002-02-07 Klee Dienes <klee@apple.com>
11776
11777 * fork-inferior.c (fork_inferior): Add '!' to the list of
11778 characters that need to be quoted when building a string for the
11779 shell. Quote '!' specifically with a backslash, since CSH chokes
11780 when trying to evaluate "str!str".
11781
11782 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11783
11784 * rdi-share/host.h: Only provide a typedef for bool if it is not
11785 defined.
11786
11787 2002-02-04 Michael Snyder <msnyder@redhat.com>
11788
11789 * breakpoint.h (enum bptype): Add new overlay event bp type.
11790 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11791
11792 * breakpoint.c (create_internal_breakpoint): New function.
11793 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11794 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11795 (create_thread_event_breakpoint): Ditto.
11796 (create_solib_event_breakpoint): Ditto.
11797 (create_overlay_event_breakpoint): New function.
11798 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11799 (update_breakpoints_after_exec): Delete and re-initialize
11800 overlay event breakpoints after an exec. Add FIXME comment
11801 about longjmp breakpoint.
11802 (print_it_typical): Ignore overlay event breakpoints.
11803 (print_one_breakpoint): Ditto.
11804 (mention): Ditto.
11805 (bpstat_what): Do not stop for overlay event breakpoints.
11806 (delete_breakpoint): Don't delete overlay event breakpoints.
11807 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11808 (breakpoint_re_set): Re-create overlay event breakpoint.
11809
11810 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11811 (overlay_manual_command): Disable overlay breakpoints.
11812 (overlay_off_command): Disable overlay breakpoints.
11813
11814 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11815
11816 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11817 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11818 to here from config/tm-arm.h.
11819 (coff_sym_is_thumb): Make static.
11820 (arm_elf_make_msymbol_special): New function.
11821 (arm_coff_make_msymbol_special): New function.
11822 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11823 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11824 (coff_sym_is_thumb): Delete declaration.
11825 (arm_elf_make_msymbol_special): Declare.
11826 (arm_coff_make_msymbol_special): Declare.
11827 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11828 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11829
11830 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11831
11832 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11833
11834 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11835
11836 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11837 * gdbarch.c gdbarch.h: Regenerate.
11838 * arch-utils.c (default_print_float_info): New function.
11839 * arch-utils.h (default_print_float_info): Prototype it.
11840 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11841 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11842 (PRINT_FLOAT_INFO): Document it.
11843
11844 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11845 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11846 (PRINT_FLOAT_INFO): Define.
11847
11848 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11849
11850 * win32-nat.c (_initialize_check_for_gdb_ini):
11851 Add typecast to sprintf argument to suppress a warning.
11852
11853 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11854
11855 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11856 to allow easier handling of pass state.
11857 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11858 that gives exception name and address.
11859 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11860 and set last_sig value to ourstatus->value.sig. Some missing
11861 exceptions added.
11862 (child_continue): Correctly report continue_status.
11863 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11864 TARGET_SIGNAL_0 (new default value).
11865 (child_resume): consider sig argument passed to decide if
11866 the exception should be passed to debuggee or not.
11867
11868 2002-02-05 Michael Snyder <msnyder@redhat.com>
11869
11870 * regcache.c (fetch_register): Call target_fetch_register
11871 only if we don't call FETCH_PSEUDO_REGISTER.
11872 (store_register): Call target_store_register only if we
11873 don't call STORE_PSEUDO_REGISTER.
11874
11875 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11876
11877 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11878 ELF_MAKE_MSYMBOL_SPECIAL.
11879 * gdbarch.c, gdbarch.h: Regenerate.
11880 * arch-utils.c (default_make_msymbol_special): New function.
11881 * arch-utils.h (default_make_msymbol_special): Export.
11882 * elfread.c (elf_symtab_read): Compile use of
11883 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11884 multiarched.
11885 * coffread.c (coff_symtab_read): Ditto, for
11886 COFF_MAKE_MSYMBOL_SPECIAL.
11887
11888 2002-02-05 Jim Blandy <jimb@redhat.com>
11889
11890 * solib-svr4.c (svr4_truncate_ptr): New function.
11891 (svr4_relocate_section_addresses): Do the address arithmetic with
11892 the appropriate truncation for target addresses, even when
11893 CORE_ADDR is larger than a target address.
11894
11895 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11896
11897 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11898 to (int *).
11899
11900 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11901
11902 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11903 code.
11904
11905 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11906
11907 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11908
11909 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11910
11911 * gdbserver/linux-low.c: Remove unused include files.
11912
11913 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11914
11915 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11916 (read_inferior_memory): Use it.
11917 (write_inferior_memory): Likewise.
11918
11919 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11920
11921 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11922 grubbing through sys_errlist.
11923
11924 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11925
11926 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11927
11928 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11929 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11930
11931 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11932
11933 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11934 (do_sfunc, set_cmd_sfunc): New functions.
11935
11936 * command.h (struct cmd_list_element): Add field func.
11937 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11938 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11939 * cli/cli-decode.h: Ditto.
11940
11941 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11942 (help_all, help_cmd_list): Ditto.
11943 (find_cmd, complete_on_cmdlist): Ditto.
11944 * top.c (execute_command): Ditto.
11945
11946 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11947 function.sfunc.
11948
11949 * infcmd.c (notice_args_read): Fix function signature.
11950
11951 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11952 * cli/cli-decode.c (add_set_cmd): Ditto.
11953 * utils.c (initialize_utils): Ditto.
11954 * maint.c (_initialize_maint_cmds): Ditto.
11955 * infrun.c (_initialize_infrun): Ditto.
11956 * demangle.c (_initialize_demangler): Ditto.
11957 * remote.c (add_packet_config_cmd): Ditto.
11958 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11959 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11960 * proc-api.c (_initialize_proc_api): Ditto.
11961 * kod.c (_initialize_kod): Ditto.
11962 * valprint.c (_initialize_valprint): Ditto.
11963 * top.c (init_main): Ditto.
11964 * infcmd.c (_initialize_infcmd): Ditto.
11965 * corefile.c (_initialize_core): Ditto.
11966 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11967 * arch-utils.c (initialize_current_architecture): Ditto.
11968 (_initialize_gdbarch_utils): Ditto.
11969 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11970
11971 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11972 * wince.c (_initialize_inftarg): Ditto.
11973 * symfile.c (_initialize_symfile): Ditto.
11974 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11975 * language.c (_initialize_language): Ditto.
11976 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11977
11978 2002-02-04 Michael Snyder <msnyder@redhat.com>
11979
11980 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11981
11982 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11983
11984 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11985 Add rules for building the register data files.
11986
11987 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11988
11989 * regformats/regdat.sh: Add braces to the definition of
11990 expedite_regs_${arch}.
11991
11992 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11993
11994 * regformats/regdef.h (struct reg): Add comment describing the
11995 requirements for offset and size fields.
11996
11997 2002-02-04 Andreas Schwab <schwab@suse.de>
11998
11999 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12000 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12001
12002 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12003
12004 * gdbarch.sh (copyright): Update years in generated header.
12005 (SMASH_TEXT_ADDRESS): Add rule.
12006 * gdbarch.h, gdbarch.c: Re-generate.
12007 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12008 * dbxread.c: Likewise.
12009 * dwarfread.c: Likewise.
12010 * elfread.c: Likewise.
12011 * somread.c: Likewise.
12012
12013 * arm-tdep.c (arm_smash_text_address): New function.
12014 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12015
12016 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12017
12018 Add support for hardware watchpoints on win32 native.
12019 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12020 CONTEXT_DEBUG_REGISTERS.
12021 (dr variable): New variable. Static array containing a local copy
12022 of debug registers.
12023 (debug_registers_changed): New variable. Reflects when debug registers
12024 are changed and need to be written to inferior.
12025 (debug_registers_used): New variable. Reflects when any debug register
12026 was set, used when new threads are created.
12027 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12028 i386-nat code.
12029 (thread_rec): Set dr array if id is the thread of current_event .
12030 (child_continue, child_resume): Change the debug registers for all
12031 threads if debug_registers_changed.
12032 (child_add_thread): Change the debug registers if debug_registers_used.
12033 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12034 Link nm.h to new nm-cygwin.h file.
12035 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12036 of hardware registers.
12037
12038 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12039
12040 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12041 Restore behavour broken by 2002-01-20 Andrew Cagney
12042 <ac131313@redhat.com> IEEE_FLOAT removal.
12043
12044 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12045
12046 * c-valprint.c (c_val_print): Pass a proper valaddr to
12047 cp_print_class_method.
12048 * valops.c (search_struct_method): If there is only one method
12049 and args is NULL, return that method.
12050
12051 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12052
12053 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12054 accessing tag_name directly.
12055
12056 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12057
12058 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12059 of accessing tag_name directly.
12060
12061 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12062
12063 PR gdb/280
12064 * gdbtypes.c (replace_type): New function.
12065 * gdbtypes.h (replace_type): Add prototype.
12066 * stabsread.c (read_type): Use replace_type.
12067
12068 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12069
12070 * Makefile.in (memattr.o): Add missing dependencies rule.
12071
12072 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12073
12074 * breakpoint.c (break_at_finish_command): Really export.
12075 (break_at_finish_at_depth_command): Ditto.
12076 (tbreak_at_finish_command): Ditto.
12077 * hppa-tdep.c: Include completer.h.
12078 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12079 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12080
12081 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12082
12083 * utils.c (do_write): New function.
12084 (error_stream): Rewrite combining the code from error_begin and
12085 verror.
12086 (verror): Rewrite using error_stream.
12087 (error_begin): Delete function.
12088
12089 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12090
12091 * utils.c (error_begin): Make static.
12092 * defs.h (error_begin): Delete declaration.
12093
12094 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12095 (decode_line_1): Use cplusplus_error instead of error_begin,
12096 cplusplus_hint and return_to_top_level.
12097 * coffread.c (coff_symfile_read): Use error instead of error_begin
12098 and return_to_top_level.
12099 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12100
12101 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12102
12103 * language.h (type_error, range_error): Make string parameter
12104 constant.
12105 * language.c (warning_pre_print): Delete extern declaration.
12106 * dwarfread.c (warning_pre_print): Ditto.
12107 * language.c (type_error, range_error): Rewrite to use verror and
12108 vwarning instead of warning_begin.
12109
12110 2002-02-01 Michael Snyder <msnyder@redhat.com>
12111
12112 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12113 (set_ignore_count): Move misplaced comment back where it belongs.
12114
12115 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12116
12117 * command.h (NO_FUNCTION): Delete macro.
12118 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12119 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12120 * tracepoint.c (_initialize_tracepoint): Ditto.
12121 * cli/cli-decode.c (add_set_cmd): Ditto.
12122 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12123
12124 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12125
12126 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12127 Update ``this'' pointer when calling virtual functions.
12128
12129 2002-02-01 Michael Snyder <msnyder@redhat.com>
12130
12131 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12132 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12133
12134 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12135
12136 * regformats/reg-arm.dat: New file.
12137 * regformats/reg-i386.dat: New file.
12138 * regformats/reg-ia64.dat: New file.
12139 * regformats/reg-m68k.dat: New file.
12140 * regformats/reg-mips.dat: New file.
12141 * regformats/reg-ppc.dat: New file.
12142 * regformats/reg-sh.dat: New file.
12143 * regformats/regdef.h: New file.
12144 * regformats/regdat.sh: New file.
12145
12146 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12147
12148 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12149 (arm_frame_args_address, arm_frame_locals_address): New functions.
12150 (arm_frame_num_args): New function.
12151 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12152 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12153 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12154
12155 2002-01-31 Michael Snyder <msnyder@redhat.com>
12156
12157 * breakpoint.c (break_at_finish_command): Export.
12158 (break_at_finish_at_depth_command): Export.
12159 (tbreak_at_finish_command): Export.
12160 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12161 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12162 "txbreak" commands, which are HPPA specific.
12163
12164 * printcmd.c (disassemble_command): Remove an ancient
12165 artifact of an old merge.
12166
12167 * symfile.h (enum overlay_debugging_state):
12168 Define enum constant values for overlay mode.
12169 * symfile.c (overlay_debugging): Use enums instead of literals.
12170 (overlay_is_mapped, overlay_auto_command,
12171 overlay_manual_command): Ditto.
12172
12173 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12174 breakpoint_here_p, breakpoint_inserted_here_p,
12175 breakpoint_thread_match, bpstat_stop_status,
12176 describe_other_breakpoints, check_duplicates, clear_command):
12177 Coding standard fixes.
12178
12179 * target.c (target_xfer_memory): Add spaces, coding standard.
12180 (do_xfer_memory): Add missing line to trust-readonly
12181 code: check bfd SEC_READONLY flag for section.
12182
12183 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12184
12185 * PROBLEMS: Fix typo, 5.1->5.1.1.
12186
12187 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12188
12189 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12190 data symbols, since we search based on textlow and texthigh.
12191 (find_pc_sect_symtab): Likewise.
12192
12193 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12194
12195 * defs.h (vwarning): Declare.
12196 * utils.c (vwarning): New function.
12197 (warning): Call vwarning.
12198 (warning_begin): Delete function.
12199
12200 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12201 the warning message.
12202 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12203 warning_begin.
12204
12205 2002-01-30 Michael Snyder <msnyder@redhat.com>
12206
12207 * NEWS: Mention "set trust-readonly-sections" command.
12208 Mention generate-core-file command.
12209
12210 2002-01-15 Michael Snyder <msnyder@redhat.com>
12211
12212 * target.c: New command, "set trust-readonly-sections on".
12213 (do_xfer_memory): Honor the suggestion to trust readonly sections
12214 by reading them from the object file instead of from the target.
12215 (initialize_targets): Register command "set trust-readonly-sections".
12216
12217 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12218
12219 * parse.c (target_map_name_to_register): Simplify, search regs and
12220 pseudo-regs using a single loop.
12221
12222 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12223
12224 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12225
12226 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12227
12228 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12229 * config/i386/i386v42mp.mh: Add i387-nat.o .
12230 * i386v4-nat.c: Include i387-nat.h.
12231 (supply_fpregset): Use i387_supply_fsave.
12232 (fill_fpregset): Use i387_fill_fsave.
12233
12234 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12235
12236 * arm-tdep.c (arm_call_dummy_words): Define.
12237 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12238 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12239 (CALL_DUMMY_WORDS): Define.
12240 (arm_call_dummy_words): Declare.
12241 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12242 (arm_linux_call_dummy_words): Declare.
12243
12244 2002-01-30 Andreas Schwab <schwab@suse.de>
12245
12246 * m68klinux-nat.c: Fix last change to use regcache_collect
12247 instead of referencing registers[] directly.
12248
12249 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12250
12251 * parse.c (target_map_name_to_register): Delete code wrapped in
12252 #ifdef REGISTER_NAME_ALIAS_HOOK.
12253
12254 2002-01-28 Michael Snyder <msnyder@redhat.com>
12255
12256 * regcache.c (legacy_read_register_gen): Need to be able to
12257 read pseudo-register as well as real register.
12258 (legacy_write_register_gen): Ditto.
12259
12260 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12261
12262 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12263 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12264 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12265 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12266 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12267 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12268 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12269 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12270 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12271 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12272 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12273 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12274 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12275 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12276 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12277 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12278 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12279 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12280 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12281 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12282
12283 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12284
12285 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12286 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12287 (initialize_current_architecture): Update target_byte_order using
12288 information from BFD.
12289 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12290 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12291
12292 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12293
12294 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12295 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12296
12297 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12298 #ifdef INVALID_FLOAT.
12299 * infcmd.c (do_registers_info): Ditto.
12300 * values.c (unpack_double): Ditto. Add comment.
12301
12302 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12303 already commented out.
12304
12305 2002-01-26 Andreas Schwab <schwab@suse.de>
12306
12307 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12308 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12309 registers and add support for PTRACE_GETREGS.
12310
12311 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12312
12313 GDB 5.1.1 released from 5.1 branch.
12314 * NEWS: Add 5.1.1 news.
12315 * README: Sync with 5.1 branch.
12316
12317 2002-01-23 Fred Fish <fnf@redhat.com>
12318
12319 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12320 stabstring on initial malloc. Reallocing will copy it for us,
12321 if necessary.
12322
12323 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12324
12325 * Makefile.in (hpread_h): Delete.
12326 (HFILES_NO_SRCDIR): Remove hpread.h.
12327 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12328 (hpread.o): Update dependencies.
12329 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12330
12331 * hp-psymtab-read.c: Remove file.
12332 * hp-symtab-read.c: Remove file.
12333 * hpread.h: Remove file.
12334
12335 * hpread.c: Merge all contents of hp-psymtab-read.c,
12336 hp-symtab-read.c and hpread.h into this file, as it was prior to
12337 January 1999.
12338
12339 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12340 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12341 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12342 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12343
12344 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12345
12346 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12347 fill_gregset): Call gdbarch_tdep() just once, assign result to
12348 variable and use that, instead of calling the function several
12349 times.
12350
12351 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12352
12353 * configure.host: Accept sparcv9 as alias for sparc64.
12354 * configure.tgt: Likewise.
12355
12356 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12357
12358 * solib-aix5.c (build_so_list_from_mapfile)
12359 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12360 arguments is not reversed.
12361 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12362 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12363
12364 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12365
12366 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12367 modified version of obsolete sh_fetch_pseudo_register.
12368 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12369 (sh4_register_read): New function.
12370 (sh_pseudo_register_write): New function. Renamed and modified
12371 version of obsolete sh_store_pseudo_register.
12372 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12373 (sh4_register_write): New function.
12374 (sh_gdbarch_init): Remove setting of gdbarch function
12375 fetch_pseudo_register and store_pseudo_register. Remove setting of
12376 register_convert_to_raw, register_convert_to_virtual,
12377 register_convertible.
12378 (sh_sh4_register_convertible): Delete. No longer needed. All is
12379 taken care by architecture specific functions
12380 register_read/register_write.
12381 (sh_sh4_register_convert_to_virtual): Make static.
12382 (sh_sh4_register_convert_to_raw): Ditto.
12383
12384 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12385
12386 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12387 (floatformat_is_nan, floatformat_mantissa): Ditto.
12388
12389 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12390 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12391 builtin_type_ieee_double_little,
12392 builtin_type_ieee_double_littlebyte_bigword,
12393 builtin_type_m68881_ext, builtin_type_i960_ext,
12394 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12395 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12396 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12397 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12398
12399 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12400
12401 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12402 parameter. Set frameless flag if it exists and depended of
12403 whether the scanned function is frameless or not.
12404 (xstormy16_skip_prologue): If function is frameless, return
12405 result of xstormy16_scan_prologue().
12406 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12407 call.
12408
12409 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12410
12411 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12412 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12413 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12414 sh_sh4_register_byte, sh_sh4_register_raw_size,
12415 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12416 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12417 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12418 sh_store_pseudo_register, sh_do_pseudo_register): Call
12419 gdbarch_tdep() just once, assign result to variable and use that,
12420 instead of calling the function several times.
12421
12422 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12423
12424 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12425 macros instead of LAST_FPU_CTRL_REGNUM.
12426 (store_register): Likewise.
12427
12428 2002-01-21 Jim Blandy <jimb@redhat.com>
12429
12430 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12431 is up-to-date before running the program, not just when a program
12432 exits.
12433
12434 2002-01-21 Fred Fish <fnf@redhat.com>
12435
12436 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12437 when we have found all instructions we are looking for.
12438
12439 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12440
12441 * arm-tdep.c (arm_register_name): New function.
12442 (arm_registers_names): Make static.
12443 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12444 (arm_register_name): Declare.
12445 (REGISTER_NAME): Use it.
12446
12447 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12448 Kevin Buettner <kevinb@redhat.com>
12449
12450 Convert arm targets to new FRAME interface.
12451 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12452 (arm_frame_find_save_regs): Delete.
12453 (arm_frame_init_saved_regs): New.
12454 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12455 Allocate extra_info as required. Convert all uses of fsr.regs
12456 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12457 to use extra_info.
12458 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12459 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12460 (check_prologue_cache, save_prologue_cache): Likewise.
12461 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12462 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12463 (FRAME_FIND_SAVED_REGS): Delete.
12464 (arm_frame_find_saved_regs): Delete prototype.
12465 (arm_frame_init_saved_regs): New prototype.
12466 (FRAME_INIT_SAVED_REGS): Define.
12467
12468 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12469
12470 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12471
12472 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12473
12474 From Jeff Law <law@redhat.com>:
12475 * infttrace.c: Include <sys/pstat.h>.
12476 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12477 exec file if the ttrace equivalent fails.
12478
12479 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12480
12481 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12482 (closeLogFile): Ditto.
12483
12484 2002-01-20 Michael Chastain <mec@shout.net>
12485
12486 * top.c (print_gdb_version): Bump copyright year to 2002.
12487
12488 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12489
12490 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12491 Zannoni and Eli Zaretskii.
12492
12493 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12494
12495 * buildsym.c: Update copyright years.
12496 * c-typeprint.c: Likewise.
12497 * dwarf2read.c: Likewise.
12498 * f-typeprint.c: Likewise.
12499 * gdbtypes.c: Likewise.
12500 * gdbtypes.h: Likewise.
12501 * hp-symtab-read.c: Likewise.
12502 * hpread.c: Likewise.
12503 * mdebugread.c: Likewise.
12504 * p-typeprint.c: Likewise.
12505
12506 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12507
12508 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12509 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12510 byte-order selectable.
12511 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12512 * arch-utils.c: Ditto.
12513 (set_endian): Ditto.
12514 (set_endian_from_file): Ditto.
12515 * gdbserver/low-sim.c (create_inferior): Ditto.
12516 * gdbarch.sh: Ditto.
12517 * gdbarch.h: Re-generate.
12518 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12519 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12520 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12521 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12522 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12523 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12524 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12525 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12526 macro definition.
12527 * config/mips/tm-wince.h: Remove #undef of macro
12528 TARGET_BYTE_ORDER_SELECTABLE.
12529 * config/sh/tm-wince.h: Ditto.
12530
12531 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12532
12533 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12534 member function fields. Add accessor macro
12535 TYPE_FN_FIELD_ARTIFICIAL.
12536 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12537 * c-typeprint.c (c_type_print_base): Skip artificial member
12538 functions.
12539
12540 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12541
12542 * f-typeprint.c: Delete unused function f_type_print_args.
12543 * p-typeprint.c: Delete unused function pascal_type_print_args.
12544
12545 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12546
12547 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12548 comment. Add ``artificial'' to ``union field_location''.
12549
12550 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12551
12552 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12553 * mdebugread.c (parse_symbol): Likewise.
12554 * stabsread.c (define_symbol): Likewise.
12555 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12556 initializing TYPE_FIELD_BITPOS to n (obsolete).
12557 (hpread_doc_function_type): Likewise.
12558 * hpread.c (hpread_function_type): Likewise.
12559
12560 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12561
12562 * configure.in (host_makefile_frag): Only require a host makefile
12563 fragment when a native build.
12564 * configure: Re-generate.
12565
12566 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12567
12568 * doublest.h (floatformat_from_type): Declare.
12569 * doublest.c (floatformat_from_type): New function.
12570 (convert_typed_floating): Use.
12571
12572 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12573 call to function floatformat_from_type.
12574
12575 * gdbarch.sh (IEEE_FLOAT): Delete.
12576 * gdbarch.h, gdbarch.c: Re-generate.
12577 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12578 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12579 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12580 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12581 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12582 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12583 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12584 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12585 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12586 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12587 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12588 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12589
12590 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12591 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12592 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12593 * sh-tdep.c (sh_gdbarch_init): Ditto.
12594 * mips-tdep.c (mips_gdbarch_init): Ditto.
12595 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12596 * cris-tdep.c (cris_gdbarch_init): Ditto.
12597
12598 2002-01-20 Jiri Smid <smid@suse.cz>
12599
12600 * configure.host, configure.tgt: Support x86-64.
12601 * NEWS: Note new target x86-64.
12602
12603 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12604 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12605 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12606 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12607 x86-64-linux-nat.o): Fix dependencies.
12608
12609 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12610
12611 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12612 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12613 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12614 * config/sparc/xm-sun4os4.h: Delete file.
12615 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12616
12617 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12618
12619 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12620 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12621 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12622 * config/i386/i386lynx.mh (XM_FILE): Delete.
12623 * config/rs6000/xm-rs6000ly.h: Delete file.
12624 * config/sparc/xm-sparclynx.h: Delete file.
12625 * config/m68k/xm-m68klynx.h: Delete file.
12626 * config/i386/xm-i386lynx.h: Delete file.
12627 * config/xm-lynx.h: Delete file.
12628 * config/djgpp/fnchange.lst: Update.
12629
12630 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12631
12632 * alpha-tdep.c (alpha_register_byte): New function.
12633 (alpha_register_raw_size): Ditto.
12634 (alpha_register_virtual_size): Ditto.
12635 (alpha_skip_prologue_internal): Renamed from
12636 alpha_skip_prologue.
12637 (alpha_skip_prologue): New version that calls
12638 alpha_skip_prologue_internal.
12639 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12640 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12641 second argument from alpha_skip_prologue.
12642 (REGISTER_BYTE): Use alpha_register_byte.
12643 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12644 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12645 (FRAMELESS_FUNCTION_INVOCATION): Use
12646 generic_frameless_function_invocation_not.
12647 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12648 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12649
12650 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12651
12652 * config/mips/xm-news-mips.h: Delete file.
12653 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12654
12655 * config/m88k/xm-m88k.h: Delete file.
12656 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12657 * config/m88k/xm-delta88v4.h: Ditto.
12658 * config/m88k/xm-delta88.h: Ditto.
12659
12660 * config/alpha/xm-fbsd.h: Delete file.
12661 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12662
12663 * config/sparc/xm-sparc.h: Delete file.
12664 * Makefile.in (xm-sun4os4.h): Delete dependency.
12665 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12666 * config/sparc/xm-sun4os4.h: Ditto.
12667 * config/sparc/xm-linux.h: Ditto.
12668
12669 * config/i386/xm-windows.h: Delete file.
12670
12671 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12672
12673 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12674 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12675
12676 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12677
12678 * alpha-tdep.c (alpha_call_dummy_words): New.
12679 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12680 (CALL_DUMMY_P): Define.
12681 (CALL_DUMMY_WORDS): Define.
12682 (SIZEOF_CALL_DUMMY_WORDS): Define.
12683
12684 2002-01-19 Per Bothner <per@bothner.com>
12685
12686 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12687 isn't NULL, which can happen with some gcj-3.x-produced code.
12688
12689 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12690
12691 * alpha-tdep.c (alpha_register_virtual_type): New function.
12692 (alpha_init_frame_pc_first): Ditto.
12693 (alpha_fix_call_dummy): Ditto.
12694 (alpha_store_struct_return): Ditto.
12695 (alpha_extract_struct_value_address): Ditto.
12696 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12697 alpha_register_virtual_type.
12698 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12699 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12700 alpha_extract_struct_value_address.
12701 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12702 (INIT_FRAME_PC): Use init_frame_pc_noop.
12703 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12704
12705 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12706
12707 * i386gnu-nat.c: Include "i386-tdep.h".
12708 (fetch_fpregs): Simplify code dealing with uninitialized floating
12709 point states such that it doesn't require FP7_REGNUM.
12710
12711 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12712
12713 * alpha-tdep.c (frame_extra_info): New.
12714 (alpha_find_saved_regs): Make static. Use
12715 frame->extra_info.
12716 (alpha_frame_init_saved_regs): New function.
12717 (alpha_frame_saved_pc): Use frame->extra_info.
12718 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12719 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12720 (init_extra_frame_info): Rename to...
12721 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12722 (alpha_print_extra_frame_info): New function.
12723 (alpha_frame_locals_address): Ditto.
12724 (alpha_frame_args_address): Ditto.
12725 (alpha_pop_frame): Use frame->extra_info.
12726 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12727 alpha_frame_args_address.
12728 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12729 (alpha_find_saved_regs): Remove prototype.
12730 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12731 (EXTRA_FRAME_INFO): Remove.
12732 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12733 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12734
12735 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12736
12737 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12738 (alpha_cannot_fetch_register): Ditto.
12739 (alpha_cannot_store_register): Ditto.
12740 (alpha_register_convertible): Ditto.
12741 (alpha_use_struct_convention): Ditto.
12742 * config/alpha/tm-alpha.h: Update copyright years.
12743 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12744 (INNER_THAN): Use core_addr_lessthan.
12745 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12746 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12747 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12748 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12749 (FRAME_CHAIN): Remove unnecessary cast.
12750
12751 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12752
12753 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12754 obsolete.
12755
12756 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12757
12758 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12759 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12760 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12761 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12762 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12763 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12764 * x86-64-linux-nat.c: Ditto.
12765
12766 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12767
12768 * alpha-tdep.c (alpha_register_name): New function.
12769 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12770 (REGISTER_NAME): Define.
12771
12772 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12773
12774 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12775
12776 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12777
12778 * alpha-tdep.c: Update copyright years.
12779 (alpha_next_pc): New function.
12780 (alpha_software_single_step): Ditto.
12781 * config/alpha/tm-alpha.h: Add prototype for
12782 alpha_software_single_step.
12783
12784 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12785
12786 * alphabsd-nat.c: Update copyright years.
12787 (fill_gregset): Use regcache_collect.
12788 (fill_fpregset): Likewise.
12789 (fetch_inferior_registers): Only fetch integer registers
12790 if requested to do so.
12791 (store_inferior_registers): Only store integer registers
12792 if requested to do so.
12793
12794 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12795
12796 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12797 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12798 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12799 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12800 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12801 * config/arm/linux.mh (XDEPFILES): Delete.
12802 * config/arm/nbsd.mh (XDEPFILES): Delete.
12803 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12804 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12805 * config/i386/i386m3.mh (XDEPFILES): Delete.
12806 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12807 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12808 * config/i386/fbsd.mh (XDEPFILES): Delete.
12809 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12810 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12811 * config/i386/i386v4.mh (XDEPFILES): Delete.
12812 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12813 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12814 * config/i386/i386aix.mh (XDEPFILES): Delete.
12815 * config/i386/go32.mh (XDEPFILES): Delete.
12816 * config/i386/cygwin.mh (XDEPFILES): Delete.
12817 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12818 * config/i386/i386mach.mh (XDEPFILES): Delete.
12819 * config/i386/i386v32.mh (XDEPFILES): Delete.
12820 * config/i386/linux.mh (XDEPFILES): Delete.
12821 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12822 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12823 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12824 * config/i386/i386sco.mh (XDEPFILES): Delete.
12825 * config/i386/i386v.mh (XDEPFILES): Delete.
12826 * config/i386/nbsd.mh (XDEPFILES): Delete.
12827 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12828 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12829 * config/i386/symmetry.mh (XDEPFILES): Delete.
12830 * config/i386/obsd.mh (XDEPFILES): Delete.
12831 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12832 * config/ia64/linux.mh (XDEPFILES): Delete.
12833 * config/ia64/aix.mh (XDEPFILES): Delete.
12834 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12835 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12836 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12837 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12838 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12839 * config/m68k/linux.mh (XDEPFILES): Delete.
12840 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12841 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12842 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12843 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12844 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12845 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12846 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12847 * config/m88k/delta88.mh (XDEPFILES): Delete.
12848 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12849 * config/m88k/m88k.mh (XDEPFILES): Delete.
12850 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12851 * config/mips/linux.mh (XDEPFILES): Delete.
12852 * config/mips/irix6.mh (XDEPFILES): Delete.
12853 * config/mips/irix5.mh (XDEPFILES): Delete.
12854 * config/mips/irix4.mh (XDEPFILES): Delete.
12855 * config/mips/irix3.mh (XDEPFILES): Delete.
12856 * config/mips/decstation.mh (XDEPFILES): Delete.
12857 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12858 (NATDEPFILES): Move core-aout.o to here.
12859 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12860 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12861 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12862 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12863 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12864 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12865 * config/pa/hpux11.mh (XDEPFILES): Delete.
12866 * config/powerpc/aix.mh (XDEPFILES): Delete.
12867 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12868 * config/powerpc/linux.mh (XDEPFILES): Delete.
12869 * config/romp/rtbsd.mh: Rename XDEPFILES.
12870 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12871 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12872 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12873 * config/s390/s390.mh (XDEPFILES): Delete.
12874 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12875 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12876 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12877 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12878 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12879 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12880 * config/sparc/linux.mh (XDEPFILES): Delete.
12881 * config/vax/vaxult.mh (XDEPFILES): Delete.
12882 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12883 * Makefile.in (DEPFILES): Remove XDEPFILES.
12884
12885 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12886
12887 * utils.c (internal_verror): Fix comments, default is yes not no.
12888 Update queries to match. Default to quit and dump core.
12889
12890 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12891
12892 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12893 copyright.
12894 * defs.h, event-top.c, gdbcmd.h: Ditto.
12895 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12896 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12897 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12898 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12899 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12900 * mi/mi-main.c:Ditto.
12901
12902 * stack.c, symfile.c: Update copyright.
12903
12904 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12905
12906 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12907 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12908 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12909 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12910
12911 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12912
12913 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12914 * gdbserver/low-lynx.c (myattach): Likewise.
12915 * gdbserver/low-nbsd.c (myattach): Likewise.
12916 * gdbserver/low-sim.c (myattach): Likewise.
12917 * gdbserver/low-sparc.c (myattach): Likewise.
12918 * gdbserver/low-sun3.c (myattach): Likewise.
12919
12920 * gdbserver/low-linux.c (myattach): New function.
12921
12922 * gdbserver/server.c (attach_inferior): New function.
12923 (main): Handle "--attach".
12924
12925 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12926
12927 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12928 maintainer.
12929
12930 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12931
12932 * c-typeprint.c (is_type_conversion_operator): Add additional
12933 check for non-conversion operators.
12934
12935 2002-01-15 Michael Snyder <msnyder@redhat.com>
12936
12937 * linux-proc.c: Add "info proc" command, a la procfs.c.
12938 (read_mapping): New function, abstract and re-use code.
12939 (linux_find_memory_regions): Use new func read_mapping.
12940 (linux_info_proc_cmd): New function, implement "info proc".
12941 (_initialize_linux_proc): Add new command "info proc".
12942
12943 2002-01-15 Michael Snyder <msnyder@redhat.com>
12944
12945 * symfile.c (generic_load): Use bfd_map_over_sections method
12946 instead of manipulating bfd structure members directly.
12947 (add_section_size_callback): New function, bfd sections callback
12948 used by generic_load.
12949 (load_sections_callback): New function, bfd sections callback
12950 used by generic_load.
12951
12952 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12953
12954 [Based on work by Jim Blandy]
12955 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12956 (builtin_type_vec128): Export.
12957 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12958 types.
12959 (builtin_type_vec128): New builtin type for 128 bit vector
12960 registers.
12961 (build_gdbtypes): Initialize builtin_type_v16qi and
12962 builtin_type_v8hi. Create the vec128 register builtin type
12963 structure.
12964 (build_builtin_type_vec128): New function.
12965 (_initialize_gdbtypes): Register builtin_type_v16qi and
12966 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12967 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12968 AltiVec register to new builtin type.
12969
12970 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12971
12972 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12973 to make_cv_type.
12974
12975 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12976
12977 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12978 CLEAN_UP_REGISTER_VALUE.
12979 * regcache.c (supply_register): Update only call.
12980
12981 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12982
12983 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12984 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12985 a29k-*-vxworks* targets as obsolete.
12986
12987 2002-01-14 Michael Snyder <msnyder@redhat.com>
12988
12989 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12990 until we can resolve portability issues.
12991 * gregset.h: Remove references to fpxregs.
12992 * gcore.c (gcore_command): Initialize note_sec to NULL.
12993
12994 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12995
12996 * signals.c (target_signal_to_name): Rewrite. Only use
12997 signals[].name when in bounds and non-NULL.
12998
12999 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13000
13001 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13002 * signals.c (target_signal_to_name): Verify that SIG is within the
13003 bounds of the signals array.
13004
13005 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13006
13007 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13008
13009 2002-01-13 Keith Seitz <keiths@redhat.com>
13010
13011 * stack.c (print_frame_info_base): Print the frame's pc
13012 only if when print_frame_info_listing_hook is not defined.
13013
13014 2002-01-13 Keith Seitz <keiths@redhat.com>
13015
13016 * varobj.c (varobj_set_value): Make sure that there were no
13017 errors evaluating the object before attempting to set its
13018 value.
13019 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13020 so this offset adjustment is no longer necessary.
13021 (create_child): Don't set the error flag if the child is
13022 a CPLUS_FAKE_CHILD.
13023 (value_of_child): If value_fetch_lazy fails, return NULL
13024 so that callers will be notified that an error occurred.
13025 (c_value_of_variable): Delay check of variable's validity
13026 until later. We actually want all structs and unions to have
13027 the value "{...}".
13028 Do not return "???" for variables which could not be evaluated.
13029 This error condition must be returned to the caller so that it
13030 can get the error condition from gdb.
13031 (cplus_name_of_child): Adjust index for vptr before figuring
13032 out the name of the child.
13033 (cplus_value_of_child): If a child's (real) parent is not valid,
13034 don't even bother trying to give a value for it. Just return
13035 an error. Change all instances in this function.
13036 (cplus_type_of_child): If our parent is one of the "fake"
13037 parents, we need to get at the type of the real parent, and
13038 derive the child's true type using this information.
13039
13040 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13041
13042 From 2002-01-09 John Marshall <johnm@falch.net>:
13043 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13044 sources.redhat.com, and tweak some related URLs which had
13045 suffered from linkrot.
13046
13047 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13048
13049 From Jeff law:
13050 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13051 structures passed in registers.
13052
13053 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13054
13055 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13056 white space which prevented compilation. Reported by DSK
13057 <dsk@student.unsw.edu.au>.
13058
13059 2002-01-11 Michael Snyder <msnyder@redhat.com>
13060
13061 * symfile.c (build_section_addr_info_from_section_tab):
13062 Use bfd access method instead of manipulating bfd directly.
13063 (syms_from_objfile): Ditto.
13064 (simple_overlay_update_1): Ditto.
13065 (simple_overlay_update): Ditto.
13066 (generic_load): Ditto.
13067 (overlay_unmapped_address): FIXME comment, bfd access methods.
13068 (sections_overlap): FIXME comment, bfd access methods.
13069 (pc_in_mapped_range): FIXME comment, bfd access methods.
13070 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13071 (section_is_mapped): FIXME comment, bfd access methods.
13072 (section_is_overlay): FIXME comment, bfd access methods.
13073
13074 * symfile.c (generic_load): Whitespace and long line cleanups.
13075 Remove duplicate variable, change several local variables to
13076 more appropriate data types.
13077 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13078
13079 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13080
13081 From Peter Schauer:
13082 * language.c (longest_local_hex_string_custom): Use phex_nz to
13083 convert NUM to a hex string.
13084
13085 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13086
13087 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13088 the function.
13089 Update Copyright year.
13090
13091 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13092
13093 * language.c (longest_raw_hex_string): Delete unused function.
13094
13095 2002-01-11 Petr Sorfa <petrs@caldera.com>
13096
13097 * MAINTAINERS (write-after-approval): Add myself.
13098 * dwarf2read.c (read_tag_string_type): Handling of
13099 DW_AT_byte_size.
13100 (read_tag_string_type): FORTRAN fix to prevent propagation of
13101 first string size.
13102 (set_cu_language): Handling of DW_LANG_Fortran95
13103
13104 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13105
13106 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13107 GETPID(inferior_ptid).
13108 (store_inferior_registers): Likewise.
13109
13110 2002-01-10 Jason Merrill <jason@redhat.com>
13111
13112 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13113 Fix DW_OP_minus.
13114
13115 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13116
13117 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13118 and bfd/elf32-sh-nbsd.c.
13119
13120 2002-01-10 Michael Snyder <msnyder@redhat.com>
13121
13122 * NEWS: Mention --pid and corefile/proc-id behavior change.
13123
13124 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13125 * gcore.c: Include cli/cli-decode.h instead of command.h.
13126
13127 * main.c (captured_main): Add new command line option "--pid".
13128 If the second command line argument (following the symbol-file)
13129 begins with a digit, try to attach to it before trying to open
13130 it as a corefile.
13131 (print_gdb_help): Document the "--pid" argument.
13132
13133 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13134
13135 * completer.c (command_completer): New function.
13136
13137 * completer.h <command_completer>: Add prototype.
13138
13139 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13140 completer for the "help" command.
13141
13142 2002-01-09 Jason Merrill <jason@redhat.com>
13143
13144 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13145
13146 2002-01-09 Michael Snyder <msnyder@redhat.com>
13147
13148 * i386-linux-nat.c (fill_fpxregset): Make global.
13149 (store_fpxregset): Ditto.
13150
13151 * gregset.h (gdb_fpxregset_t): Define.
13152 (supply_fpxregset): Prototype.
13153 (fill_fpxregset): Prototype.
13154
13155 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13156
13157 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13158
13159 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13160 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13161 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13162
13163 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13164
13165 * MAINTAINERS: Update target maintainer rules so that any
13166 Maintainer can approve a tested patch for a maintenance-only
13167 target.
13168
13169 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13170
13171 * MAINTAINERS (write-after-approval): Add myself.
13172
13173 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13174 IN_SIGTRAMP.
13175
13176 2002-01-08 Michael Snyder <msnyder@redhat.com>
13177
13178 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13179 real name of the executable, rather than the /proc name.
13180
13181 2002-01-03 Michael Snyder <msnyder@redhat.com>
13182
13183 Implement a "generate-core-file" command in gdb, save target state.
13184 * gcore.c: New file. Implement new command 'generate-core-file'.
13185 Save a corefile image of the current state of the inferior.
13186 * linux-proc.c: Add linux-specific code for saving corefiles.
13187 * target.h (struct target_ops): Add new target vectors for saving
13188 corefiles; to_find_memory_regions and to_make_corefile_notes.
13189 (target_find_memory_regions): New macro.
13190 (target_make_corefile_notes): New macro.
13191 * target.c (update_current_target): Inherit new target methods.
13192 (dummy_find_memory_regions): New place-holder method.
13193 (dummy_make_corefile_notes): New place-holder method.
13194 (init_dummy_target): Initialize new dummy target vectors.
13195 * exec.c (exec_set_find_memory_regions): New function.
13196 Allow the exec_ops vector for memory regions to be taken over.
13197 (exec_make_note_section): New function, target vector method.
13198 * defs.h (exec_set_find_memory_regions): Export prototype.
13199 * procfs.c (proc_find_memory_regions): New function, corefile method.
13200 (procfs_make_note_section): New function, corefile method.
13201 (init_procfs_ops): Set new target vector pointers.
13202 (find_memory_regions_callback): New function.
13203 (procfs_do_thread_registers): New function.
13204 (procfs_corefile_thread_callback): New function.
13205 * sol-thread.c (sol_find_memory_regions): New function.
13206 (sol_make_note_section): New function.
13207 (init_sol_thread_ops): Initialize new target vectors.
13208 * inftarg.c (inftarg_set_find_memory_regions): New function.
13209 Allow to_find_memory_regions vector to be taken over.
13210 (inftarg_set_make_corefile_notes): New function.
13211 Allow to_make_corefile_notes vector to be taken over.
13212 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13213 interface layer if not target_has_execution (may be a corefile).
13214 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13215 * config/sparc/sun4sol2.mh: Ditto.
13216 * config/alpha/alpha-linux.mh: Ditto.
13217 * config/arm/linux.mh: Ditto.
13218 * config/i386/x86-64linux.mh: Ditto.
13219 * config/ia64/linux.mh: Ditto.
13220 * config/m68k/linux.mh: Ditto.
13221 * config/mips/linux.mh: Ditto.
13222 * config/powerpc/linux.mh: Ditto.
13223 * config/sparc/linux.mh: Ditto.
13224
13225 2002-01-07 Michael Snyder <msnyder@redhat.com>
13226
13227 * arm-linux-nat.c: Remove references to regcache.c internal data
13228 (registers[] and register_valid[]).
13229
13230 2002-01-07 Michael Snyder <msnyder@redhat.com>
13231
13232 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13233 so that attaching to a pid will automatically read the process's
13234 symbol file and shlibs.
13235 * Makefile.in: Add rule for linux-proc.o.
13236 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13237 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13238 * config/arm/linux.mh: Ditto.
13239 * config/i386/linux.mh: Ditto.
13240 * config/i386/x86-64linux.mh: Ditto.
13241 * config/ia64/linux.mh: Ditto.
13242 * config/m68k/linux.mh: Ditto.
13243 * config/mips/linux.mh: Ditto.
13244 * config/powerpc/linux.mh: Ditto.
13245 * config/sparc/linux.mh: Ditto.
13246
13247 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13248
13249 * win32-nat.c: Add i386-tdep.h dependency.
13250
13251 2002-01-07 Michael Snyder <msnyder@redhat.com>
13252
13253 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13254 instead of bfd_get_arch_size. Don't bail out just because
13255 there's no exec_bfd.
13256
13257 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13258 * p-valprint.c (pascal_object_print_value): Ditto.
13259 * somread.c (som_symtab_read): Ditto.
13260 * symfile.c (simple_free_overlay_region_table): Ditto.
13261 * valops.c (value_assign): Ditto.
13262
13263 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13264 use tilde_expand and strerror for opening save-tracepoints file.
13265
13266 * thread-db.c (thread_db_new_objfile): Indendation fix.
13267
13268 * infptrace.c (GDB_MAX_ALLOCA): New define.
13269 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13270 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13271 can be overridden with whatever value is appropriate to the host).
13272 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13273 alloca to allocate potentially large buffer.
13274 * rs6000-nat.c (child_xfer_memory): Ditto.
13275 * symm-nat.c (child_xfer_memory): Ditto.
13276 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13277
13278 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13279
13280 From Nick Clifton <nickc@redhat.com>
13281 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13282
13283 2002-01-07 Michael Snyder <msnyder@redhat.com>
13284
13285 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13286 Don't use exec_bfd if it's NULL.
13287
13288 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13289
13290 * valops.c (value_arg_coerce): Fix formatting.
13291
13292 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13293
13294 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13295 * gnu-nat.c: Ditto.
13296
13297 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13298
13299 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13300 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13301 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13302 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13303 z8k-coff have not been multi-arched. Update z8k-coff build
13304 status.
13305
13306 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13307
13308 * MAINTAINERS: Mark a29k target as obsolete.
13309 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13310 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13311 comments.
13312 * NEWS: Note that a29k targets are obsolete.
13313 * a29k-tdep.c: Mark as obsolete.
13314 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13315 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13316 a29k-*-vxworks* targets as obsolete.
13317 * remote-adapt.c: Obsolete.
13318 * remote-eb.c: Obsolete.
13319 * remote-mm.c: Obsolete.
13320 * remote-udi.c: Obsolete.
13321 * config/a29k/a29k-udi.mt: Obsolete.
13322 * config/a29k/a29k.mt: Obsolete.
13323 * config/a29k/tm-a29k.h: Obsolete.
13324 * config/a29k/tm-vx29k.h: Obsolete.
13325 * config/a29k/vx29k.mt: Obsolete.
13326
13327 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13328
13329 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13330 with BFD_ENDIAN_BIG.
13331
13332 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13333
13334 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13335 * configure, config.in: Re-generate.
13336 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13337 * defs.h: Do not include <endian.h>.
13338
13339 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13340
13341 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13342 * config.in: Regenerate.
13343 * configure.in: Update copyright years.
13344 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13345 * configure: Regenerate.
13346 * i386bsd-nat.c: Update copyright years.
13347 (fill_gregset): Use regcache_collect.
13348 (fetch_inferior_registers): Only fetch integer registers
13349 if requested to do so. Add support for XMM registers
13350 using PT_GETXMMREGS.
13351 (store_inferior_registers): Only store integer registers
13352 if requested to do so. Add support for XMM registers
13353 using PT_SETXMMREGS.
13354 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13355 (store_inferior_registers): Remove.
13356 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13357 (fetch_elfcore_registers): New function.
13358 (i386nbsd_elfcore_fns): New.
13359 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13360 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13361 i386bsd-nat.o.
13362 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13363 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13364 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13365 * config/i386/tm-nbsd.h: Update copyright years.
13366 (HAVE_SSE_REGS): Define.
13367 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13368 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13369 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13370 (SIGCONTEXT_PC_OFFSET): Remove.
13371 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13372
13373 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13374
13375 * configure.tgt: Remove powerpc-*-macos* target.
13376 * config/m68k/xm-mpw.h: Delete file.
13377 * config/xm-mpw.h: Delete file.
13378 * ser-mac.c: Delete file.
13379 * mpw-make.sed: Delete file.
13380 * mpw-config.in: Delete file.
13381 * mac-xdep.c: Delete file.
13382 * mac-gdb.r: Delete file.
13383 * mac-defs.h: Delete file.
13384 * mac-nat.c: Delete file.
13385 * config/powerpc/macos.mh: Delete file.
13386 * config/powerpc/macos.mt: Delete file.
13387 * config/powerpc/nm-macos.h: Delete file.
13388 * config/powerpc/tm-macos.h: Delete file.
13389 * source.c (openp, open_source_file): Remove obsolete code.
13390 * top.c (gdb_readline): Ditto.
13391 * utils.c (query): Ditto.
13392 * event-top.c (display_gdb_prompt): Ditto.
13393 * Makefile.in (ser-mac.o): Delete obsolete target.
13394 * NEWS: Update.
13395
13396 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13397
13398 * defs.h (BIG_ENDIAN): Delete macro definition.
13399 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13400 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13401 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13402 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13403 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13404 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13405 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13406 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13407 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13408 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13409 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13410 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13411 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13412 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13413 * gdbarch.c: Re-generate.
13414
13415 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13416
13417 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13418 for core files.
13419
13420 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13421
13422 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13423
13424 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13425
13426 * value.h (value_ptr): Delete typedef.
13427
13428 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13429
13430 * i386nbsd-nat.c: Update copyright years.
13431 Include i386-tdep.h.
13432
13433 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13434
13435 * stabsread.c: Update copyright years.
13436
13437 From Debashis Mahata <debashis.mahata@wipro.com>:
13438 (read_struct_fields): Deal with Sun C compiler erroneous stab
13439 output for structs and unions.
13440 Fix PR gdb/269.
13441
13442 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13443
13444 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13445 prototype.
13446
13447 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13448
13449 * cp-abi.c: Fix whitespace.
13450 (baseclass_offset): New wrapper function.
13451 * cp-abi.h (baseclass_offset): Add prototype.
13452 (struct cp_abi_ops): Add baseclass_offset pointer.
13453
13454 * valops.c (vb_match): Move to...
13455 * gnu-v2-abi.c (vb_match): here.
13456 * valops.c (baseclass_offset): Move to...
13457 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13458
13459 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13460
13461 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13462 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13463 * hpacc-abi.c (init_hpacc_ops): Likewise.
13464
13465 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13466
13467 * valops.c (find_overload_match): Accept obj as a
13468 reference parameter. Update it before returning.
13469 * value.h (find_overload_match): Update prototype.
13470 * eval.c (evaluate_subexp_standard): Pass object to
13471 find_overload_match by reference.
13472
13473 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13474
13475 * valarith.c: Replace value_ptr with struct value pointer. Remove
13476 register attribute from value declarations.
13477 * valops.c: Ditto.
13478 * value.h: Ditto.
13479 * scm-lang.c (scm_lookup_name): Ditto.
13480
13481 2002-01-03 Michael Snyder <msnyder@redhat.com>
13482
13483 Abstract the functionality of iterating over mapped memory
13484 regions into a general purpose iterator function.
13485 * procfs.c (iterate_over_mappings): New function, general purpose
13486 iterator for memory sections.
13487 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13488 (solib_mappings_callback): New function, callback for above.
13489 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13490 (info_mappings_callback): New function, callback for above.
13491
13492 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13493
13494 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13495
13496 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13497 * i386-tdep.c: Include "elf-bfd.h".
13498 (process_note_abi_tag_sections): New function.
13499 (i386_gdbarch_init): Add code to recognize various OS/ABI
13500 combinations.
13501
13502 * maint.c (_initialize_maint_cmds): Add missing \ in
13503 string-literal.
13504
13505 For older changes see ChangeLog-2001
13506 \f
13507 Local Variables:
13508 mode: change-log
13509 left-margin: 8
13510 fill-column: 74
13511 version-control: never
13512 End:
This page took 0.284436 seconds and 5 git commands to generate.