* Makefile.in (m68k_tdep_h): Define.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-23 Andreas Schwab <schwab@suse.de>
2
3 * Makefile.in (m68k_tdep_h): Define.
4 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
5 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
6 * m68k-tdep.c: Move register number enum ...
7 * m68k-tdep.h: ... to this new file and rename the constants from
8 E_* to M68K_*. All uses changed.
9 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
10 * abug-rom.c: Include "m68k-tdep.h". Use
11 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
12 * cpu32bug-rom.c: Likewise.
13 * dbug-rom.c: Likewise.
14 * m68k-tdep.c: Likewise.
15 * m68klinux-nat.c: Likewise.
16 * remote-est.c: Likewise.
17 * rom68k-rom.c: Likewise.
18 * config/m68k/tm-linux.h: Likewise.
19
20 2002-11-23 Andrew Cagney <ac131313@redhat.com>
21
22 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
23 dummy frame initialization code.
24 * mips-tdep.c (mips_gdbarch_init): Ditto.
25
26 2002-11-22 Christopher Faylor <cgf@redhat.com>
27
28 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
29 attach will hang.
30
31 2002-11-22 Andrew Cagney <ac131313@redhat.com>
32
33 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
34 to default_frame_address.
35 * gdbarch.h, gdbarch.c: Re-generate.
36
37 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
38 or frame_locals_address to default_frame_address.
39 * m68k-tdep.c (m68k_gdbarch_init): Update.
40 * i386-tdep.c (i386_gdbarch_init): Update.
41 * frv-tdep.c (frv_gdbarch_init): Update.
42 * sh-tdep.c (sh_gdbarch_init): Update.
43 * v850-tdep.c (v850_gdbarch_init): Update.
44 * sparc-tdep.c (sparc_gdbarch_init): Update.
45 * mips-tdep.c (mips_gdbarch_init): Update.
46 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
47 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
48 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
49
50 * cris-tdep.c (cris_frame_args_address): Delete function.
51 (cris_frame_locals_address): Delete function.
52 (cris_gdbarch_init): Do not set frame_args_address or
53 frame_locals_address.
54
55 2002-11-22 Michael Snyder <msnyder@redhat.com>
56
57 * thread-db.c (thread_db_load): Tell the user what's going on
58 if dlopen fails on libthread_db.
59
60 2002-11-23 Andreas Schwab <schwab@suse.de>
61
62 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
63 invariant return values.
64
65 2002-11-22 Andreas Schwab <schwab@suse.de>
66
67 * valops.c (value_slice): Move declaration of `offset' to avoid
68 warning.
69
70 2002-11-22 Christopher Faylor <cgf@redhat.com>
71
72 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
73 (struct so_stuff): Add end_addr field.
74 (register_loaded_dll): Calculate and store end address of loaded dll.
75 (solib_address): New function.
76 (child_solib_loaded_library_pathname): Pass carefully constructed
77 section info to safe_symbol_file_add rather than ignoring it.
78 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
79 DLL is loaded.
80 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
81 (child_create_inferior): Fix a compiler warning.
82 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
83 (solib_address): Declare new function.
84
85 2002-11-22 Andreas Schwab <schwab@suse.de>
86
87 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
88 and FPS registers.
89
90 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
91
92 * maint.c (_initialize_maint_cmds): Fix typo. From
93 Francesco Potorti` <pot@gnu.org>.
94
95 2002-11-21 Andrew Cagney <cagney@redhat.com>
96
97 * mips-tdep.c (mips_dump_tdep): Delete references to
98 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
99 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
100 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
101 * printcmd.c (build_address_symbolic): Delete calls to
102 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
103 (address_info): Ditto.
104 Fix PR gdb/773.
105
106 2002-11-19 Klee Dienes <kdienes@apple.com>
107 Adam Fedor <fedor@gnu.org>
108
109 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
110 the ability to explicitly specify the quote characters and word
111 break characters; if NULL is specified for either, use the old
112 behavior of using the characters used by the completer.
113 (skip_chars): New function. Convenience wrapper around
114 skip_quoted_chars to provide the original skip_chars behavior.
115 * completer.h (skip_quoted_chars): Add prototype.
116
117 2002-11-19 Andrew Cagney <ac131313@redhat.com>
118
119 Problems reported by Paul Eggert.
120 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
121
122 2002-11-19 Andreas Schwab <schwab@suse.de>
123
124 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
125 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
126 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
127 (m68k_linux_frame_saved_pc): Move to ...
128 * m68klinux-tdep.c: ... here. New file.
129 * Makefile.in (m68klinux-tdep.o): Add dependencies.
130 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
131
132 2002-11-19 Adam Fedor <fedor@gnu.org>
133
134 * objc-exp.y: Revert to old skip_quoted usage.
135
136 2002-11-19 Adam Fedor <fedor@gnu.org>
137
138 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
139 (objc_lang_h): Define.
140 (YYFILES): Add objc-exp.tab.c.
141 (local-maintainer-clean): Remove objc-exp.tab.c.
142 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
143
144 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
145
146 * p-exp.y (typecast rule): Add automatic dereference of
147 pascal classes if needed.
148 (THIS): Set current_type.
149 Automatically dereference pascal classes.
150 (typebase rule): Add ^typebase recognition.
151
152 2002-11-18 Adam Fedor <fedor@gnu.org>
153
154 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
155 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
156 (op_name): Handle OP_OBJC_SELF.
157 * Makefile.in (expprint.o): Add additional depends.
158
159 2002-11-18 Adam Fedor <fedor@gnu.org>
160
161 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
162 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
163 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
164 * objc-exp.y: Likewise.
165
166 2002-11-18 Adam Fedor <fedor@gnu.org>
167
168 * gdb/parser-defs.h: (struct objc_class_str): New structure
169 for parsing ObjC classes.
170
171 2002-11-18 Andrew Cagney <ac131313@redhat.com>
172
173 * stack.c (frame_relative_level): Copy function from here ...
174 * frame.c (frame_relative_level): ...to here.
175
176 2002-11-18 Andrew Cagney <ac131313@redhat.com>
177
178 * frame.h (enum frame_type): Define.
179 (get_frame_type): Declare.
180 (struct frame_info): Add field `type'. Delete field
181 signal_handler_caller.
182 (deprecated_set_frame_signal_handler_caller): Declare.
183 * frame.c (get_frame_type): New function.
184 (deprecated_set_frame_type): New function.
185 (create_new_frame): Set the frame's type.
186 (get_prev_frame): Similar.
187 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
188 * s390-tdep.c: Ditto.
189 * m68klinux-nat.c: Ditto.
190 * ns32k-tdep.c: Ditto.
191 * x86-64-linux-tdep.c: Ditto.
192 * vax-tdep.c: Ditto.
193 * rs6000-tdep.c: Ditto.
194 * ppc-linux-tdep.c: Ditto.
195 * i386-interix-tdep.c: Ditto.
196 * mips-tdep.c: Ditto.
197 * m68k-tdep.c: Ditto.
198 * hppa-tdep.c: Ditto.
199 * ia64-tdep.c: Ditto.
200 * cris-tdep.c: Ditto.
201 * arm-tdep.c: Ditto.
202 * alpha-tdep.c: Ditto.
203 * i386-tdep.c: Ditto.
204 * stack.c: Ditto.
205 * ada-lang.c: Ditto.
206 * blockframe.c: Update.
207 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
208 deprecated_set_frame_type instead of signal_handler_caller.
209 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
210 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
211 * breakpoint.h: Delete FIXME suggesting get_frame_type.
212
213 2002-11-18 Klee Dienes <kdienes@apple.com>
214
215 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
216
217 2002-11-18 Klee Dienes <kdienes@apple.com>
218
219 * buildsym.c (pop_context): Add comment.
220
221 2002-11-18 Klee Dienes <kdienes@apple.com>
222
223 * buildsym.h (pop_context): Convert to function, defined in
224 buildsym.c.
225 * buildsym.c: Include gdb_assert.h.
226 (pop_context): Implement as C function. Add check for stack
227 underflow.
228 * dbxread.c (process_one_symbol): Complain and stop processing
229 that symbol if we are already at the top of the context stack for
230 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
231 when processing N_RBRAC.
232
233 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
234
235 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
236 define.
237 (struct target_waitstatus): Add opaque definition.
238 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
239 * exec.c (init_exec_ops): Likewise.
240 * fork-child.c (clone_and_follow_inferior): Remove.
241 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
242 * inferior.h (clone_and_follow_inferior): Remove prototype.
243 * infrun.c (follow_fork_mode_both): Remove.
244 (follow_fork_mode_kind_names): Remove commented out "both".
245 (follow_inferior_fork): Remove follow_fork_mode_both support.
246 * inftarg.c (child_clone_and_follow_inferior): Remove.
247 (child_post_follow_inferior_by_clone): Remove.
248 (init_child_ops): Don't set to_clone_and_follow_inferior
249 or to_post_follow_inferior_by_clone.
250 * target.c (default_clone_and_follow_inferior): Remove.
251 (cleanup_target): Don't set to_clone_and_follow_inferior
252 or to_post_follow_inferior_by_clone.
253 (find_default_clone_and_follow_inferior): Remove.
254 (init_dummy_target): Don't set to_clone_and_follow_inferior.
255 (debug_to_clone_and_follow_inferior): Remove.
256 (debug_to_post_follow_inferior_by_clone): Remove.
257 (setup_target_debug): Don't set to_clone_and_follow_inferior
258 or to_post_follow_inferior_by_clone.
259 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
260 and to_post_follow_inferior_by_clone.
261 (child_clone_and_follow_inferior): Remove prototype.
262 (child_post_follow_inferior_by_clone): Remove prototype.
263 (target_clone_and_follow_inferior): Remove macro.
264 (target_post_follow_inferior_by_clone): Remove macro.
265 (find_default_clone_and_follow_inferior): Remove prototype.
266
267 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
268
269 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
270 inferior_has_vforked, and inferior_has_execd instead of
271 target_has_forked, target_has_vforked, and target_has_execd.
272 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
273 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
274 (CHILD_WAIT): Define.
275 (child_wait): Add prototype.
276 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
277 Add prototype.
278 (hpux_has_vforked): Likewise, from child_has_vforked.
279 (hpux_has_execd): Likewise, from child_has_execd.
280 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
281 (not_same_real_pid, child_wait): New, copied from inftarg.c.
282 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
283 and hpux_has_syscall_event instead of the target hooks.
284 * infrun.c (inferior_has_forked, inferior_has_vforked)
285 (inferior_has_execd): New functions.
286 * inftarg.c (not_same_real_pid): Remove.
287 (child_wait): Remove references to not_same_real_pid,
288 target_has_forked, target_has_vforked, target_has_execd,
289 and target_has_syscall_event.
290 (child_has_forked, child_has_vforked, child_has_execd)
291 (child_has_syscall_event): Remove.
292 (init_child_ops): Remove references to child_has_forked,
293 child_has_vforked, child_has_execd, and child_has_syscall_event.
294 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
295 (hpux_has_vforked): Likewise, from child_has_vforked.
296 (hpux_has_execd): Likewise, from child_has_execd.
297 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
298 * target.c (cleanup_target): Remove references to
299 to_has_forked, to_has_vforked, to_has_execd, and
300 to_has_syscall_event.
301 (update_current_target): Likewise.
302 (setup_target_debug): Likewise.
303 (debug_to_has_forked): Remove.
304 (debug_to_has_vforked): Remove.
305 (debug_to_has_execd): Remove.
306 (debug_to_has_syscall_event): Remove.
307 * target.h (struct target_ops): Remove to_has_forked.
308 to_has_vforked, to_has_execd, and to_has_syscall_event.
309 (child_has_forked, child_has_vforked, child_has_execd)
310 (child_has_syscall_event): Remove prototypes.
311 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
312 prototypes.
313 (target_has_forked, target_has_vforked, target_has_execd)
314 (target_has_syscall_event): Remove macros.
315
316 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
317
318 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
319 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
320 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
321 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
322 * target.c (cleanup_target): Remove reference to
323 to_can_follow_vfork_prior_to_exec.
324 (update_current_target): Likewise.
325 (debug_to_can_follow_vfork_prior_to_exec): Remove.
326 (setup_target_debug): Remove reference to
327 to_can_follow_vfork_prior_to_exec.
328 * target.h (struct target_ops): Remove
329 to_can_follow_vfork_prior_to_exec.
330 (child_can_follow_vfork_prior_to_exec): Remove prototype.
331 (target_can_follow_vfork_prior_to_exec): Remove definition.
332 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
333 define.
334 * infrun.c (follow_vfork_when_exec): Remove.
335 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
336 (follow_exec): Likewise.
337 (handle_inferior_event): Likewise.
338 (keep_going): Likewise.
339
340 2002-11-15 Andrew Cagney <cagney@redhat.com>
341
342 * frame.c (generic_unwind_get_saved_register): Make static.
343 * frame.h (generic_unwind_get_saved_register): Delete declaration.
344 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
345 defaults to generic_unwind_get_saved_register.
346 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
347 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
348 * frv-tdep.c (frv_gdbarch_init): Ditto.
349 * i386-tdep.c (i386_gdbarch_init): Ditto.
350 * s390-tdep.c (s390_gdbarch_init): Ditto.
351 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
352 * v850-tdep.c (v850_gdbarch_init): Ditto.
353 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
354 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
355 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
356
357 2002-11-15 Andrew Cagney <cagney@redhat.com>
358
359 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
360 i386-tdep.c.
361
362 2002-11-15 Andrew Cagney <cagney@redhat.com>
363
364 * frame.h (sigtramp_saved_pc): Delete declaration.
365 * blockframe.c (sigtramp_saved_pc): Delete function.
366 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
367 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
368 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
369 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
370
371 2002-11-15 Andrew Cagney <ac131313@redhat.com>
372
373 * frame.c (frame_pc_unwind): New function.
374 (frame_saved_regs_pc_unwind): New function.
375 (frame_register_unwind): Pass unwind_cache instead of
376 register_unwind_cache.
377 (set_unwind_by_pc): Add unwind_pc parameter, set.
378 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
379 (get_prev_frame): Ditto.
380 * frame.h (frame_pc_unwind_ftype): Declare.
381 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
382 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
383 (frame_pc_unwind): Declare.
384 * dummy-frame.c (dummy_frame_pc_unwind): New function.
385 (struct dummy_frame): Add comment mentioning that values are for
386 previous frame.
387 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
388 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
389 (generic_file_frame_chain_valid): Ditto.
390 * stack.c (frame_info): Ditto.
391
392 2002-11-15 David Carlton <carlton@math.stanford.edu>
393
394 * linespec.c (locate_first_half): New function.
395 (decode_line_1): Move code into locate_first_half.
396
397 2002-11-15 Andrew Cagney <ac131313@redhat.com>
398
399 * complaints.h: Add comment explaining how to eliminate a
400 deprecated_complain call.
401 * complaints.h: Fix spelling errors.
402
403 2002-11-15 David Carlton <carlton@math.stanford.edu>
404
405 * printcmd.c: Remove #include "disasm.h".
406
407 2002-11-14 Andrew Cagney <ac131313@redhat.com>
408
409 * frame.h: Move the most relevant interface functions to the start
410 of the file.
411
412 2002-11-14 Andrew Cagney <ac131313@redhat.com>
413
414 * regcache.h (deprecated_registers): Rename registers.
415 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
416 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
417 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
418 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
419 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
420 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
421 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
422 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
423 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
424 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
425 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
426 * v850ice.c: Update.
427
428 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
429
430 * utils.c (gdb_realpath): Add comment mentioning realpath with a
431 NULL buffer.
432
433 2002-11-13 Andrew Cagney <cagney@redhat.com>
434
435 * regcache.h (deprecated_read_register_bytes): Rename
436 read_register_bytes.
437 (deprecated_write_register_bytes): Rename write_register_bytes.
438 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
439 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
440 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
441 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
442 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
443 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
444 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
445 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
446 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
447 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
448 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
449 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
450 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
451 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
452
453 2002-11-13 Jim Blandy <jimb@redhat.com>
454
455 * findvar.c (read_var_value): Doc fix.
456
457 2002-11-13 Andrew Cagney <cagney@redhat.com>
458
459 * regcache.c (struct regcache): Replace passthough_p with
460 readonly_p.
461 (regcache_xmalloc): Initialize readonly_p.
462 (build_regcache): Initialize readonly_p.
463 (regcache_save): New function.
464 (regcache_restore): New function.
465 (regcache_cpy): Re-implement using regcache_save and
466 regcache_restore.
467 (regcache_raw_read): Update.
468 (regcache_cooked_read): When a read-only cache, checked for cached
469 pseudo register values.
470 (regcache_raw_write): Assert that the cache is not read-only.
471 Remove code handling a non-passthrough cache.
472 * regcache.h (regcache_save): Declare.
473 (regcache_restore): Declare.
474
475 2002-11-13 Andrew Cagney <cagney@redhat.com>
476
477 * regcache.c (struct regcache_descr): Add fields
478 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
479 (init_legacy_regcache_descr): Compute the size of a cooked
480 register cache and then assign that to sizeof_raw_registers. Set
481 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
482 (init_legacy_regcache_descr): Ditto.
483
484 2002-11-13 Andrew Cagney <cagney@redhat.com>
485
486 * regcache.c (register_buffer): Move to near start of file, update
487 description.
488 (regcache_raw_read): Use.
489 (regcache_raw_write): Use.
490 (struct regcache): Rename raw_registers to registers and
491 raw_register_valid_p to register_valid_p.
492 (regcache_xmalloc): Update.
493 (regcache_xfree): Update.
494 (register_buffer): Update.
495 (regcache_cpy): Update.
496 (regcache_cpy_no_passthrough): Update.
497 (regcache_valid_p): Update.
498 (deprecated_grub_regcache_for_registers): Update.
499 (deprecated_grub_regcache_for_register_valid): Update.
500 (set_register_cached): Update.
501 (regcache_raw_write): Update.
502
503 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
504
505 * p-exp.y (name_not_typename): Use copy_name to
506 set current_type variable for fields of THIS.
507
508 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
509
510 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
511 * monitor.c (init_base_monitor_ops): Likewise.
512 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
513 * remote-array.c (init_array_ops): Likewise.
514 * remote-e7000.c (init_e7000_ops): Likewise.
515 * remote-es.c (init_es1800_ops): Likewise.
516 (init_es1800_child_ops): Likewise.
517 * remote-rdp.c (init_remote_rdp_ops): Likewise.
518 * remote-sim.c (init_gdbsim_ops): Likewise.
519 * remote-st.c (init_st2000_ops): Likewise.
520 * sol-thread.c (init_sol_core_ops): Likewise.
521 (init_sol_thread_ops): Likewise.
522 * v850ice.c (init_850ice_ops): Likewise.
523 * win32-nat.c (init_child_ops): Likewise.
524 * wince.c (init_child_ops): Likewise.
525
526 2002-11-12 Andrew Cagney <ac131313@redhat.com>
527
528 * utils.c (gdb_realpath): Make rp a constant pointer.
529
530 2002-11-12 Andrew Cagney <ac131313@redhat.com>
531
532 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
533 a constant buffer; cannonicalize_file_name(); realpath() with a
534 pathconf() defined buffer, xstrdup().
535
536 2002-11-12 Andrew Cagney <ac131313@redhat.com>
537
538 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
539 to hang2.C; hang3.c to hang3.C.
540
541 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
542
543 * findvar.c (read_var_value): Reenable TLS code.
544
545 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
546 Jim Blandy <jimb@redhat.com>
547
548 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
549 * target.c (update_current_target): Add
550 to_get_thread_local_address.
551 * target.h (to_get_thread_local_address): Export.
552 (target_get_thread_local_address): Define.
553 (target_get_thread_local_address_p): Define.
554 * thread-db.c: Include solib-svr4.h.
555 (td_thr_tls_get_addr_p): Define.
556 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
557 (thread_db_get_thread_local_address): New function.
558 (init_thread_db_ops): Initialize to_get_thread_local_address.
559 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
560 * configure: Regenerate.
561 * config.in: Regenerate.
562
563 2002-11-11 David Carlton <carlton@math.stanford.edu>
564
565 * linespec.c (set_flags): New function.
566 (decode_line_1): Move code into set_flags.
567
568 2002-11-11 David Carlton <carlton@math.stanford.edu>
569
570 * linespec.c (decode_line_1): Move chunks of code to separate
571 functions.
572 (initialize_defaults): New function.
573 (decode_indirect): New function.
574
575 2002-11-11 Andrew Cagney <ac131313@redhat.com>
576
577 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
578 instead of void_code_ptr.
579 (sigtramp_saved_pc): Ditto.
580
581 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
582 i386_fp_regnum_p.
583
584 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
585
586 * gdbtypes.h (struct main_type): Move artificial flag out of
587 loc. New member of ``struct field'' named static_kind. Reduce
588 overloaded meaning of bitsize.
589 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
590 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
591 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
592
593 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
594 new fields.
595 (template_to_fixed_record_type, template_to_static_fixed_type)
596 (to_record_with_fixed_variant_part): Likewise.
597 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
598 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
599 * dwarfread.c (struct_type, enum_type): Likewise.
600 * hpread.c (hpread_read_enum_type)
601 (hpread_read_function_type, hpread_read_doc_function_type)
602 (hpread_read_struct_type): Likewise.
603 * mdebugread.c (parse_symbol): Likewise.
604
605 2002-11-10 Andrew Cagney <ac131313@redhat.com>
606
607 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
608 * stack.c (print_frame_info_base): Update.
609 (print_frame_info_base, frame_info): Update.
610 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
611 (sparc_frame_saved_pc): Update.
612 * ada-lang.c (find_printable_frame): Update.
613 * breakpoint.c (deprecated_frame_in_dummy): Update.
614
615 2002-11-09 Mark Kettenis <kettenis@gnu.org>
616
617 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
618 defined.
619 (regmap): Extend to cover all registers.
620 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
621 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
622 definitions.
623 (fetch_register, sore_register): Simplify.
624 (old_fetch_inferior_registers, old_store_inferior_registers):
625 Remove functions.
626 (cannot_fetch_register, cannot_store_register): Change
627 implementation to use regmap array to decide which registers
628 cannot be fetched/stored. This removes $orig_eax from the
629 registers that cannot be fetched/stored.
630 (fetch_inferior_registers): Call fetch_register directly instead
631 of calling old_fetch_inferior_registers.
632 (store_inferior_registers): Call store_register directly instead
633 of calling old_store_inferior_registers.
634 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
635 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
636 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
637
638 2002-11-09 Klee Dienes <kdienes@apple.com>
639
640 * i387-tdep.c (i387_supply_register): When called with NULL as a
641 buffer, mark the register as not provided (to mirror the behavior
642 of supply_register).
643 (i387_supply_fxsave): Ditto.
644 (i387_supply_fsave): Ditto (inherits the behavior from
645 i387_supply_register).
646
647 2002-11-09 Klee Dienes <kdienes@apple.com>
648
649 * blockframe.c (sigtramp_saved_pc): Use
650 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
651 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
652 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
653
654 2002-11-09 Andrew Cagney <ac131313@redhat.com>
655
656 * frame.c (get_prev_frame): Test prev_p to identify a previously
657 unwound frame. Initialize prev_p.
658 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
659 comment.
660
661 2002-11-09 Andrew Cagney <ac131313@redhat.com>
662
663 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
664 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
665 more comments. Zap dead code.
666
667 2002-11-09 Mark Kettenis <kettenis@gnu.org>
668
669 * infcmd.c (print_vector_info, print_float_info): Move code that
670 checks whether the target has any registers and whether there is a
671 selected frame up, such that it is also used if a target provides
672 multi-arch definitions of these functions.
673
674 2002-11-08 Andrew Cagney <ac131313@redhat.com>
675
676 * Makefile.in (DESTDIR): Define.
677 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
678 prefix.
679
680 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
681 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
682
683 2002-11-08 Andrew Cagney <ac131313@redhat.com>
684
685 * i386-linux-tdep.c: Include "reggroups.h".
686 (i386_linux_register_reggroup_p): New function.
687 (i386_linux_init_abi): Set register_reggroup_p to
688 i386_linux_register_reggroup_p.
689 * i386-tdep.h (i386_register_reggroup_p): Declare.
690 * i386-tdep.c: Include "reggroups.h".
691 (i386_init_reggroups): New function.
692 (i386_add_reggroups): New function.
693 (i386_register_reggroup_p): New function.
694 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
695 (_initialize_i386_tdep): Call i386_init_reggroups.
696 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
697 specific reggroups.
698
699 2002-11-09 Mark Kettenis <kettenis@gnu.org>
700
701 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
702 request that's available in *BSD.
703
704 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
705
706 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
707 FDOFF_REGNUM.
708
709 2002-11-08 Andrew Cagney <ac131313@redhat.com>
710
711 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
712 * dummy-frame.c (find_dummy_frame): Rename
713 generic_find_dummy_frame, make static. Return the dummy frame
714 instead of the regcache.
715 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
716 (cached_find_dummy_frame): New function. Use find_dummy_frame.
717 (dummy_frame_register_unwind): Rename
718 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
719 * dummy-frame.h (dummy_frame_register_unwind): Rename
720 generic_call_dummy_register_unwind.
721
722 2002-11-08 Mark Kettenis <kettenis@gnu.org>
723
724 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
725 except the inclusion of "i386/tm-i386.h", to...
726 * config/i386/nm-i386v42mp.h: ...here.
727 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
728
729 2002-11-08 Andrew Cagney <ac131313@redhat.com>
730
731 * Makefile.in (frame.o): Update dependencies.
732 * blockframe.c (current_frame, frame_obstack_alloc)
733 (frame_saved_regs_zalloc, get_current_frame)
734 (set_current_frame, create_new_frame)
735 (set_unwind_by_pc, get_next_frame)
736 (flush_cached_frames, reinit_frame_cache)
737 (frame_saved_regs_register_unwind)
738 (deprecated_generic_get_saved_register)
739 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
740 (_initialize_blockframe): Move frame code from here...
741 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
742 "annotate.h" and "dummy-frame.h".
743 (_initialize_frame): New function.
744
745 2002-11-08 Jim Blandy <jimb@redhat.com>
746
747 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
748 when we finish a function a context.
749 * buildsym.h (outermost_context_p): New macro.
750 (Bug analyzed by David Edelsohn.)
751
752 2002-11-08 Andrew Cagney <ac131313@redhat.com>
753
754 * blockframe.c: Include "dummy-frame.h".
755 (struct dummy_frame, dummy_frame_stack)
756 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
757 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
758 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
759 (generic_save_call_dummy_addr, generic_pop_current_frame)
760 (generic_pop_dummy_frame, generic_fix_call_dummy)
761 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
762 dummy frame code from here...
763 * dummy-frame.c: ...to here. New file.
764 * dummy-frame.h: New file.
765 (generic_call_dummy_register_unwind): Declare.
766 (generic_find_dummy_frame): Declare.
767 * Makefile.in (SFILES): Add dummy-frame.c.
768 (dummy-frame.o): Specify dependencies.
769 (dummy_frame_h): Define.
770 (COMMON_OBS): Add dummy-frame.o.
771 (blockframe.o): Update dependencies.
772
773 2002-11-08 Jim Blandy <jimb@redhat.com>
774
775 * dwarf2read.c (read_func_scope): Restore local_symbols and
776 param_symbols after we finish the function context. (Based on a
777 patch from David Edelsohn.)
778
779 2002-11-08 David Carlton <carlton@math.stanford.edu>
780
781 * linespec.c (symbol_found): New function.
782 (minsym_found): New function.
783 (decode_line_1): Separate out some code into separate functions.
784
785 2002-11-08 Joel Brobecker <brobecker@gnat.com>
786
787 * i386-tdep.c (i386_frameless_signal_p): Make non static for
788 the benefit of the interix target.
789 * i386-tdep.h (i386_frameless_signal_p): Declare.
790
791 2002-11-08 Andrew Cagney <ac131313@redhat.com>
792
793 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
794 declaration that snuck in from change below.
795
796 2002-11-06 Andrew Cagney <cagney@redhat.com>
797
798 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
799 all callers.
800 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
801 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
802 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
803 (i386_mxcsr_regnum_p): new function. Use instead of
804 MXCSR_REGNUM_P.
805 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
806 (i386_sse_regnum_p): Declare.
807 (i386_mxcsr_regnum_p): Declare.
808 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
809 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
810 (IS_FP_REGNUM): Update definition.
811 (IS_FPU_CTRL_REGNUM): Update definition..
812 (IS_SSE_REGNUM): Update definition..
813 * i386v-nat.c (register_u_addr): Update.
814 * go32-nat.c (fetch_register): Update.
815 (store_register): Update.
816
817 2002-11-07 Joel Brobecker <brobecker@gnat.com>
818
819 Preparation work to convert the hppa targets to multiarch partial.
820
821 * hppa-tdep.c: Add new functions replacing macro bodies from
822 config/pa/tm-hppa.h. These function will be used to initialize
823 the gdbarch structure. Import some comments from tm-hppa.h,
824 and place them where appropriate, to avoid loosing them when
825 we cleanup this file.
826 (hppa_reg_struct_has_addr): New function.
827 (hppa_inner_than): New function.
828 (hppa_stack_align): New function.
829 (hppa_pc_requires_run_before_use): New function.
830 (hppa_instruction_nullified): New function.
831 (hppa_register_byte): New function.
832 (hppa_register_virtual_type): New function.
833 (hppa_store_struct_return): New function.
834 (hppa_cannot_store_register): New function.
835 (hppa_frame_args_address): New function.
836 (hppa_frame_locals_address): New function.
837 (hppa_smash_text_address): New function.
838 (hppa_coerce_float_to_double): New function. Requires the inclusion
839 of "language.h".
840
841 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
842
843 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
844 gdbarch-eligible macro to a call to the new associated function
845 created in hppa-tdep.c.
846 (INNER_THAN): Likewise.
847 (STACK_ALIGN): Likewise.
848 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
849 (INSTRUCTION_NULLIFIED): Likewise.
850 (REGISTER_BYTE): Likewise.
851 (REGISTER_VIRTUAL_TYPE): Likewise.
852 (STORE_STRUCT_RETURN): Likewise.
853 (CANNOT_STORE_REGISTER): Likewise.
854 (FRAME_ARGS_ADDRESS): Likewise.
855 (FRAME_LOCALS_ADDRESS): Likewise.
856 (SMASH_TEXT_ADDRESS): Likewise.
857 (COERCE_FLOAT_TO_DOUBLE): Likewise.
858 (ABOUT_TO_RETURN): Delete, as no longer used.
859
860 2002-11-07 Fernando Nasser <fnasser@redhat.com>
861
862 * printcmd.c (disassemble_command): Remove obsolete function.
863 (_initialize_printcmd): Do not create disassemble command here.
864 * cli/cli-cmds.c (disassemble_command): New function. Implements
865 disassemble command.
866 (init_cli_cmds): Create disassemble command here instead.
867
868 2002-11-07 Andrew Cagney <ac131313@redhat.com>
869
870 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
871
872 2002-11-07 Andrew Cagney <ac131313@redhat.com>
873
874 * regcache.h (regcache_cooked_read_using_offset_hack)
875 (regcache_cooked_write_using_offset_hack): Delete declarations.
876 (register_changed): Delete declaration.
877 * regcache.c (regcache_cooked_read_using_offset_hack)
878 (regcache_cooked_write_using_offset_hack): Delete functions.
879 (cooked_xfer_using_offset_hack): Delete function.
880 (register_changed): Delete function.
881
882 2002-11-07 Jim Blandy <jimb@redhat.com>
883
884 * macroscope.c: #include "complaints.h".
885 (sal_macro_scope): Cope with filenames that appear in the symtabs,
886 but not in the macro table.
887 * Makefile.in (macroscope.o): Record dependency.
888
889 2002-11-07 Joel Brobecker <brobecker@gnat.com>
890
891 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
892
893 2002-11-07 Andrew Cagney <ac131313@redhat.com>
894
895 * regcache.c (deprecated_registers_fetched): Update.
896 * regcache.h (deprecated_registers_fetched): Rename
897 registers_fetched.
898 * remote-vxsparc.c (vx_read_register): Update.
899 * remote-vxmips.c (vx_read_register): Update.
900 * remote-vx68.c (vx_read_register): Update.
901 * irix5-nat.c (fetch_core_registers): Update.
902 * mipsm3-nat.c (fetch_inferior_registers): Update.
903 * sun3-nat.c (fetch_inferior_registers): Update.
904 * symm-nat.c (fetch_inferior_registers): Update.
905 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
906 (fetch_core_registers): Update.
907 (fetch_kcore_registers): Update.
908 * mips-nat.c (fetch_inferior_registers): Update.
909 * corelow.c (get_core_registers): Update.
910 * a68v-nat.c (fetch_inferior_registers): Update.
911
912 2002-11-06 Joel Brobecker <brobecker@gnat.com>
913
914 Put in place the framework necessary for multiarching the hppa targets.
915 * hppa-tdep.c (hppa_gdbarch_init): New function.
916 (hppa_dump_tdep): New function.
917 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
918 tdep structure dumper.
919 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
920 until the multi-arching conversion has partially been completed.
921
922 2002-11-06 Andrew Cagney <ac131313@redhat.com>
923
924 * valops.c (value_assign): Merge lval_register case into
925 lval_reg_frame_relative. Use frame_register and
926 regcache_cooked_write instead of get_saved_register and
927 write_register_bytes. After flushing the register cache, try to
928 re-select the selected frame.
929
930 2002-11-06 Andrew Cagney <ac131313@redhat.com>
931
932 * regcache.h (deprecated_register_valid): Rename register_valid.
933 * regcache.c: Update.
934 * ia64-aix-nat.c: Update.
935 * i386gnu-nat.c: Update.
936 * alpha-nat.c: Update.
937 * sparc-nat.c: Update.
938 * lynx-nat.c: Update.
939 * remote-mips.c: Update.
940
941 2002-11-06 Joel Brobecker <brobecker@gnat.com>
942
943 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
944 to end of file, to be more consistent with the pratice followed
945 by other targets.
946
947 2002-11-06 Andrew Cagney <ac131313@redhat.com>
948
949 * infcmd.c: Include "reggroups.h" and <ctype.h>.
950 (print_float_info): Print registers in float_reggroup.
951 (print_vector_info): Print registers in vector_reggroup.
952 (default_print_registers_info): When all, print registers in
953 all_reggroup. Otherwize, print registers in general_reggroup.
954 (registers_info): Rewrite. Add support for register groups.
955 Eliminate a goto.
956
957 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
958
959 * symtab.c (methods_info): Delete. It has been ifdeffed out for
960 ages.
961 (symtab_symbol_info): Remove eons old ifdeffed out code.
962 (_initialize_symtab): Remove prehistoric disabled 'info methods'
963 command.
964
965 2002-11-06 Theodore A. Roth <troth@openavr.org>
966
967 * c-exp.y: Add missing semi-colons.
968 * f-exp.y: Add missing semi-colons.
969 * m2-exp.y: Add missing semi-colons.
970 * p-exp.y: Add missing semi-colons.
971 Add empty action to start rule to avoid a type clash error when
972 building with bison >= 1.50.
973
974 2002-11-06 Jim Blandy <jimb@redhat.com>
975
976 * macrotab.h (struct macro_source_file): Doc fix.
977
978 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
979
980 * varobj.c (child_exists, cplus_number_of_children): Change
981 STREQ macro references to strcmp.
982 (cplus_name_of_child): Change code to handle the fact that
983 fields are not necessarily contiguous with regards to their
984 access control. This is a fix for PR gdb/792.
985
986 2002-11-05 Andrew Cagney <ac131313@redhat.com>
987
988 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
989 * gdbarch.h, gdbarch.c: Regnerate.
990 * frame.h (frame_register): Declare.
991 * frame.c (frame_register): New function.
992 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
993 GET_SAVED_REGISTER, otherwize call
994 generic_unwind_get_saved_register.
995 (frame_register_read): Use frame_register instead of
996 get_saved_register.
997
998 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
999
1000 From Jim Ingham <jingham@apple.com>:
1001 * event-top.c (gdb_disable_readline): New function.
1002 (_initialize_event_loop): Move comment.
1003
1004 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1005
1006 * event-loop.c (start_event_loop): Add comment.
1007 Update copyright.
1008
1009 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1010
1011 * infcmd.c (default_print_registers_info): Do not call
1012 PRINT_REGISTER_HOOK.
1013
1014 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1015
1016 * sparc-tdep.c (sparc_print_register_hook): Make static.
1017 (sparc_print_registers_info): New function.
1018 (sparc_do_registers_info): New function.
1019 (sparclet_print_registers_info): New function.
1020 (sparclet_do_registers_info): New function.
1021 (do_sparc_print_registers_info): New function.
1022 (sparc_print_registers): New static function, clone of infcmd.c's
1023 default_print_registers_info.
1024 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1025 (sparclet_do_registers_info): Declare.
1026 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1027 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1028 Re-define.
1029 (sparc_do_registers_info): Declare.
1030 (PRINT_REGISTER_HOOK): Delete macro.
1031 (sparc_print_register_hook): Delete declaration.
1032
1033 2002-11-05 David Carlton <carlton@math.stanford.edu>
1034
1035 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1036 functions.
1037 (lookup_symbol_aux_local): New function.
1038 (lookup_symbol_aux_symtabs): New function.
1039 (lookup_symbol_aux_psymtabs): New function.
1040
1041 2002-11-05 David Carlton <carlton@math.stanford.edu>
1042
1043 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1044 previous values of 'objfile' and 'block'.
1045
1046 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1047
1048 * values.c (value_change_enclosing_type): Set
1049 enclosing_type field correctly also for the case where
1050 more memory needs to be allocated.
1051
1052 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1053
1054 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1055 of puts_filtered.
1056
1057 * i387-tdep.c (i387_print_float_info): Replace calls to
1058 register_read and deprecated_read_register_gen with calls to
1059 frame_register_read, and make the necessary adjustments to the
1060 surrounding code.
1061
1062 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1063
1064 * gdbarch.sh (register_reggroup_p): Allow default value.
1065 * gdbarch.h, gdbarch.c: Regenerate.
1066
1067 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1068
1069 * regcache.h: Add coment indicating replacements for deprecated
1070 functions.
1071
1072 2002-11-02 Andrew Cagney <cagney@redhat.com>
1073
1074 * reggroups.h, reggroups.c: New files.
1075 * regcache.c: Include "reggroups.h".
1076 (enum regcache_dump_what): Add `regcache_dump_groups'.
1077 (regcache_dump): Contract size of the "Type" column. When
1078 specified, dump the register's groups.
1079 (maintenance_print_register_groups): New function.
1080 (_initialize_regcache): Add command `maint print register-groups'.
1081 * Makefile.in (COMMON_OBS): Add reggroups.o
1082 (SFILES): Add reggroups.c.
1083 (reggroups_h): Define.
1084 (regcache.o, gdbarch.o): Update dependencies.
1085 (reggroups.o): Specify dependencies.
1086 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1087 Add opaque declaration for `struct reggroup' in generated .h file.
1088 Include "reggroups.h" in generated .c file.
1089 gdbarch.h, gdbarch.c: Re-generate.
1090
1091 2002-11-02 Andrew Cagney <cagney@redhat.com>
1092
1093 * regcache.h (deprecated_read_register_gen): Rename
1094 read_register_gen.
1095 (deprecated_write_register_gen): Rename write_register_gen.
1096 * i387-tdep.c: Update.
1097 * x86-64-linux-nat.c: Update
1098 * wince.c: Update.
1099 * thread-db.c: Update.
1100 * win32-nat.c: Update.
1101 * mips-tdep.c: Update.
1102 * d10v-tdep.c: Update.
1103 * cris-tdep.c: Update.
1104 * remote-sim.c: Update.
1105 * remote-rdi.c: Update.
1106 * remote-rdp.c: Update.
1107 * frame.c: Update.
1108 * target.c: Update.
1109 * blockframe.c: Update.
1110 * x86-64-tdep.c: Update.
1111 * xstormy16-tdep.c: Update.
1112 * sh-tdep.c: Update.
1113 * s390-tdep.c: Update.
1114 * rs6000-tdep.c: Update.
1115 * sparc-tdep.c: Update.
1116 * i386-tdep.c: Update.
1117 * dwarf2cfi.c: Update.
1118 * regcache.c: Update.
1119
1120 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1121
1122 New interix-specific files:
1123 * config/i386/nm-interix.h: New file.
1124 * config/i386/interix.mh: New file.
1125 * config/i386/interix.mt: New file.
1126 * i386-interix-nat.c: New file.
1127 * i386-interix-tdep.c: New file.
1128
1129 2002-11-01 Andrew Cagney <cagney@redhat.com>
1130
1131 * frame.h (deprecated_generic_get_saved_register): Rename
1132 generic_get_saved_register.
1133 * blockframe.c (deprecated_generic_get_saved_register): Update.
1134 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1135 (xstormy16_frame_saved_register): Update.
1136 * sh-tdep.c (sh_gdbarch_init): Update.
1137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1138 * ia64-tdep.c (ia64_get_saved_register): Update.
1139 * cris-tdep.c (cris_gdbarch_init): Update.
1140 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1141 * arm-tdep.c (arm_gdbarch_init): Update.
1142
1143 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1144
1145 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1146
1147 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1148
1149 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1150 trampolines in sigaction.
1151
1152 2002-10-31 Andrew Cagney <cagney@redhat.com>
1153
1154 * h8300-tdep.c: Include "gdb_assert.h".
1155 (h8300_print_register): Add gdbarch, file and frame parameters.
1156 Use frame_read_unsigned_register to read the register's value.
1157 Use fprintf_filtered to display output.
1158 (h8300_print_registers_info): Replace h8300_do_registers_info.
1159 (h8300_gdbarch_init): Set print_registers_info.
1160
1161 2002-10-31 Andrew Cagney <cagney@redhat.com>
1162
1163 * frame.c (frame_read_unsigned_register): New function.
1164 (frame_read_signed_register): New function.
1165 * frame.h (frame_read_unsigned_register): Declare.
1166 (frame_read_signed_register): Declare.
1167
1168 2002-10-31 Andrew Cagney <cagney@redhat.com>
1169
1170 * h8500-tdep.c (h8500_print_registers_info): New static function,
1171 clone of infcmd.c's default_print_registers_info.
1172 (h8500_do_registers_info): New funtion.
1173 (h8500_print_register_hook): Rename print_register_hook, make
1174 static.
1175
1176 * config/h8500/tm-h8500.h: Update copyright.
1177 (DEPRECATED_DO_REGISTERS_INFO): Define.
1178 (h8500_do_registers_info: Declare.
1179 (PRINT_REGISTER_HOOK): Delete macro.
1180 (print_register_hook): Delete function.
1181
1182 2002-10-31 Andrew Cagney <cagney@redhat.com>
1183
1184 * z8k-tdep.c (z8k_print_register_hook): Make static.
1185 (z8k_print_registers_info): New static function, clone of
1186 infcmd.c's default_print_registers_info.
1187 (z8k_do_registers_info): New function. Wrap
1188 z8k_print_registers_info.
1189 * config/z8k/tm-z8k.h: Update copyright.
1190 (PRINT_REGISTER_HOOK): Delete macro.
1191 (z8k_print_register_hook): Delete declaration.
1192 (DEPRECATED_DO_REGISTERS_INFO): Define.
1193 (z8k_do_registers_info): Declare.
1194
1195 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1196
1197 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1198 as this is already provided by value.h, and was actually causing
1199 a compilation error because of a conflict in parameter type
1200 declaration due to a missing const keyword.
1201 (low_text_segment_addres): Fix a compilation warning.
1202
1203 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1204
1205 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1206 registers without a name.
1207 (mips_linux_cannot_store_register): Don't store registers without
1208 a name.
1209
1210 2002-10-28 David Carlton <carlton@math.stanford.edu>
1211
1212 * symtab.c (find_addr_symbol): Delete. (It was already commented
1213 out.)
1214 * symtab.h: Delete prototype for find_addr_symbol.
1215
1216 2002-10-26 Andrew Cagney <cagney@redhat.com>
1217
1218 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1219 DO_REGISTERS_INFO.
1220 gdbarch.h, gdbarch.c: Re-generate.
1221 * infcmd.c (default_print_registers_info): Update reference.
1222 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1223 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1224 * sh-tdep.c (sh_gdbarch_init): Ditto.
1225 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1226 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1227
1228 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1229
1230 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1231 cfi_init_extra_frame_info.
1232 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1233 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1234
1235 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1236 target where necessary. Add more comments and remove the ones
1237 that don't provide any useful information.
1238
1239 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1240 deprecated_read_register_dummy with
1241 frame_unwind_unsigned_register.
1242
1243 * i386-tdep.c (i386_extract_struct_value_address): Use
1244 regcache_raw_read_unsigned instead of
1245 regcache_cooked_read_unsigned since we know that the register
1246 we're reading isn't a pseudo register. Rename variable 'val' into
1247 the more descriptive 'addr'.
1248
1249 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1250 (x86_64_push_return_address): Add comment.
1251 (x86_64_pop_frame): Make static.
1252 (examine_argument): Clarify comment.
1253 (x86_64_skip_prologue): Make prolog_expact variable static.
1254
1255 * dwarf2cfi.c: Fix some formatting problems.
1256 (context_cpy, read_encoded_pointer): Clarify comments.
1257
1258 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1259 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1260 i386 target back into x86_64_gdbarch_init. Add some comments and
1261 remove meaningless ones.
1262
1263 2002-10-25 Andrew Cagney <cagney@redhat.com>
1264
1265 * complaints.h (struct deprecated_complaint): Rename `struct
1266 complaint'.
1267 * complaints.c (complain): Update.
1268 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1269 incorrect comment indicating that "symfile.h" was being included
1270 for the `struct complaint' definition.
1271 * remote-vx.c: Update.
1272 * objc-lang.c: Update.
1273 * xcoffread.c: Update.
1274 * hpread.c: Update.
1275 * mdebugread.c: Update.
1276 * stabsread.c: Update.
1277 * dwarf2read.c: Update.
1278 * dwarfread.c: Update.
1279 * elfread.c: Update.
1280 * coffread.c: Update.
1281 * stabsread.h: Update.
1282 * dbxread.c: Update.
1283 * buildsym.c: Update.
1284 * gdbtypes.c: Update.
1285 * macrotab.c: Update.
1286
1287 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1288
1289 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1290 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1291 (x86_64_init_abi): ...new function.
1292
1293 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1294 * i386v-nat.c: Include "i386-tdep.h".
1295
1296 2002-10-25 Andrew Cagney <cagney@redhat.com>
1297
1298 * gdbtypes.c (address_space_name_to_int): Update.
1299 (address_space_int_to_name): Update.
1300 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1301 multi-arch predicate.
1302 (address_class_name_to_type_flags): Ditto.
1303 * gdbarch.h, gdbarch.c: Re-generate.
1304
1305 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1306
1307 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1308
1309 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1310
1311 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1312
1313 * symtab.h (INIT_SAL): Delete macro.
1314 (init_sal): Export.
1315 * symtab.c (init_sal): New function.
1316
1317 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1318 to init_sal function call.
1319 (find_sal_from_funcs_and_line): Ditto.
1320 (all_sals_for_line): Ditto.
1321 * breakpoint.c (create_internal_breakpoint): Ditto.
1322 (create_fork_vfork_event_catchpoint): Ditto.
1323 (create_exec_event_catchpoint): Ditto.
1324 (parse_breakpoint_sals): Ditto.
1325 (watch_command_1): Ditto.
1326 (handle_gnu_4_16_catch_command): Ditto.
1327 (clear_command): Ditto.
1328 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1329 * infcmd.c (run_stack_dummy): Ditto.
1330 * infrun.c (process_event_stop_test): Ditto.
1331 (check_sigtramp2): Ditto.
1332 (step_over_function): Ditto.
1333 * linespec.c (decode_line_2): Ditto.
1334 (decode_line_1): Ditto.
1335 * source.c (line_info): Ditto.
1336 * symtab.c (find_pc_sect_line): Ditto.
1337
1338 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1339
1340 * dwarf2cfi.c (struct context)
1341 (struct context_reg): Moved to dwarf2cfi.h
1342 (context_alloc, frame_state_alloc, context_cpy):
1343 Made extern instead of static, removed prototypes.
1344 * dwarf2cfi.h (struct context)
1345 (struct context_reg): New, moved from dwarf2cfi.c
1346 (context_alloc, frame_state_alloc, context_cpy):
1347 New prototypes.
1348 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1349 Changed from static to extern.
1350 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1351 (LINUX_SIGCONTEXT_FP_OFFSET)
1352 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1353 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1354 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1355 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1356 set_gdbarch_*() calls now use x86-64 specific functions
1357 instead of DWARF2 CFI ones.
1358 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1359 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1360 (x86_64_init_extra_frame_info): New prototypes.
1361
1362 2002-10-23 David Carlton <carlton@math.stanford.edu>
1363
1364 * linespec.c: #include "parser-defs.h".
1365 Delete prototype for find_template_name_end.
1366 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1367
1368 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1369
1370 * NEWS: add recent mi fixes.
1371 * varobj.c (struct varobj): Add new "updated" flag.
1372 (new_variable): Default "updated" flag to 0.
1373 (varobj_set_value): Set "updated" flag to 1 if value
1374 changes.
1375 (varobj_update): Check varobj "updated" flag before
1376 comparing old and refreshed values. Fix for
1377 PR gdb/702.
1378
1379 2002-10-23 David Carlton <carlton@math.stanford.edu>
1380
1381 * parse.c (parse_exp_1): Use BLOCK_START.
1382 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1383 SYMBOL_BLOCK_VALUE.
1384 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1385
1386 2002-10-23 David Carlton <carlton@math.stanford.edu>
1387
1388 * symtab.c: Delete cplusplus_hint.
1389 Delete prototype for find_template_name_end.
1390
1391 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1392
1393 * symtab.h: Update comment.
1394
1395 2002-10-23 Michael Snyder <msnyder@redhat.com>
1396
1397 * printcmd.c (address_info): Restore quotes in output.
1398 * valops.c (value_of_local): Restore quotes in error message.
1399
1400 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1401
1402 * symtab.c (symbol_demangled_name): New function.
1403 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1404 turning most of it into a function.
1405 (symbol_demangled_name): Export.
1406
1407 2002-10-23 Michael Snyder <msnyder@redhat.com>
1408
1409 * valops.c (value_of_local): Restore quotes in error message.
1410
1411 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1412
1413 * symtab.c (symbol_init_language_specific): New function.
1414 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1415 turning most of it into a function.
1416 (symbol_init_language_specific): Export.
1417
1418 2002-10-23 David Carlton <carlton@math.stanford.edu>
1419
1420 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1421 (dwarf_attr_name): Ditto.
1422 (dwarf_type_encoding_name): Ditto.
1423 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1424 (process_die): Handle DW_TAG_namespace,
1425 DW_TAG_imported_declaration, DW_TAG_imported_module.
1426 (read_namespace): New function.
1427
1428 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1429
1430 * configure.in: Define NEW_PROC_API on Interix too.
1431 * configure: Regenerate.
1432
1433 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1434
1435 * configure: Regenerate using the proper version of autoconf.
1436
1437 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1438
1439 * findvar.c (read_var_value): Temporarily disable TLS code, until
1440 complete TLS support is added.
1441
1442 2002-10-21 Jim Blandy <jimb@redhat.com>
1443 Elena Zannoni <ezannoni@redhat.com>
1444
1445 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1446 for thread local storage locations.
1447 (struct symbol): Add objfile field.
1448 (SYMBOL_OBJFILE): Define.
1449 * dwarf2read.c (is_thread_local): New static variable.
1450 (new_symbol): If variable is in thread local fill in address class
1451 and objfile appropriately.
1452 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1453 stack operation.
1454 * printcmd.c (address_info): Print the information for thread
1455 local storage variable.
1456 * findvar.c (read_var_value): In case of thread local variable,
1457 defer to the target vector code to compute address.
1458
1459 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1460
1461 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1462 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1463
1464 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1465
1466 * symtab.h (address_class): Rename
1467 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1468 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1469 * printcmd.c (address_info): Ditto.
1470 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1471
1472 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1473
1474 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1475 DBREG_DRX macro to acces debug registers.
1476
1477 * Makefile.in (i386obsd-tdep.o): New target.
1478
1479 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1480 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1481
1482 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1483 * config/i386/obsd.mt: New file.
1484 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1485 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1486 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1487 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1488 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1489 * i386obsd-tdep.c: New file.
1490
1491 2002-10-19 Adam Fedor <fedor@gnu.org>
1492
1493 * objc-exp.y (name_not_typename): Fix invalid comment.
1494
1495 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1496
1497 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1498 to allocate partial syms and macro byte caches.
1499
1500 2002-10-18 David Carlton <carlton@math.stanford.edu>
1501
1502 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1503
1504 2002-10-18 Adam Fedor <fedor@gnu.org>
1505
1506 * stabsread.c (find_name_end): New function.
1507 (define_symbol): Use it.
1508
1509 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1510
1511 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1512 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1513 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1514 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1515
1516 2002-10-17 David Carlton <carlton@math.stanford.edu>
1517
1518 * symfile.h: Add opaque declaration for struct obstack.
1519 Declare obsavestring to take a const char *.
1520 * symfile.c (obsavestring): Make first argument a const char *.
1521
1522 2002-10-16 Adam Fedor <fedor@gnu.org>
1523
1524 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1525 names when matching breakpoints in current file.
1526
1527 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1528
1529 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1530 (read_tag_pointer_type): Add address class support.
1531 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1532 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1533 New methods.
1534 * gdbarch.h, gdbarch.c: Regenerate.
1535 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1536 (make_type_with_address_space, recursive_type_dump): Add address
1537 class support.
1538 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1539 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1540 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1541
1542 2002-10-16 Klee Dienes <kdienes@apple.com>
1543
1544 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1545 to get the last character of a char[] buffer, not
1546 name[sizeof(vptr_name)-1].
1547
1548 2002-10-14 Adam Fedor <fedor@gnu.org>
1549
1550 * symtab.h: New objc_specific struct.
1551 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1552 (SYMBOL_DEMANGLED_NAME): Likewise.
1553
1554 2002-10-14 Adam Fedor <fedor@gnu.org>
1555
1556 * symfile.c (init_filename_language_table): Add ObjC file extension.
1557
1558 2002-10-14 Adam Fedor <fedor@gnu.org>
1559
1560 * utils.c (puts_filtered_tabular): New function.
1561 (fprintf_symbol_filtered): Get ObjC demangled name.
1562 * defs.h (puts_filtered_tabular): Declared.
1563
1564 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1565
1566 * c-lang.h (c_type_print_varspec_prefix): Delete.
1567 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1568 ``need_post_space'' parameter. Adjust all callers.
1569
1570 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1571
1572 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1573 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1574 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1575 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1576
1577 2002-10-13 Adam Fedor <fedor@gnu.org>
1578
1579 * source.c (print_source_lines): Update comments.
1580
1581 2002-10-13 Adam Fedor <fedor@gnu.org>
1582
1583 * valops.c (value_of_local): New function.
1584 (value_of_this): Use it.
1585 * value.h (value_of_local): Declared.
1586
1587 2002-10-13 Adam Fedor <fedor@gnu.org>
1588
1589 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1590 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1591
1592 2002-10-12 Adam Fedor <fedor@gnu.org>
1593
1594 * language.c (binop_result_type): Add language_objc to case.
1595 (integral_type): Likewise.
1596 (character_type): Likewise.
1597 (string_type): Likewise.
1598 (boolean_type): Likewise.
1599 (structured_type): Likewise.
1600 (binop_type_check): Likewise.
1601
1602 2002-10-11 Adam Fedor <fedor@gnu.org>
1603
1604 * printcmd.c (address_info): Print 'self' for ObjC.
1605
1606 2002-10-11 Adam Fedor <fedor@gnu.org>
1607
1608 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1609 OP_SELF.
1610
1611 2002-10-11 Adam Fedor <fedor@gnu.org>
1612
1613 * language.h (CAST_IS_CONVERSION): Add language_objc.
1614
1615 2002-10-11 Adam Fedor <fedor@gnu.org>
1616
1617 * defs.h (enum language): Add language_objc.
1618
1619 2002-10-11 Klee Dienes <kdienes@apple.com>
1620
1621 * corefile.c (read_memory_typed_address): New function.
1622 * gdbcore.h (read_memory_typed_address): Add prototype.
1623 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1624 to read a value destined for a CORE_ADDR, not read_memory_integer.
1625 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1626 (f77_get_dynamic_lowerbound): Ditto.
1627
1628 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1629
1630 * utils.c (string_to_core_addr): After turning string into
1631 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1632 which will do necessary sign-extension, etc.
1633
1634 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1635
1636 * c-exp.y (THIS): Delete token and grammar rule.
1637 (yylex): Don't return THIS.
1638 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1639 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1640 * demangle.c (cplus_markers): Update comment. Put '$'
1641 first. Remove CPLUS_MARKER.
1642 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1643 * jv-exp.y (THIS): Delete token and grammar rule.
1644 (yylex): Don't return THIS.
1645 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1646 * objc-exp.y (THIS): Delete token and grammar rule.
1647 (yylex): Don't return THIS.
1648 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1649 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1650 (read_member_functions): Likewise for opname.
1651 (read_tilde_fields): Use is_cplus_marker.
1652
1653 * defs.h (CPLUS_MARKER): Don't define.
1654 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1655 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1656 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1657 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1658 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1659
1660 * config/i386/tm-i386v4.h: Delete file.
1661 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1662 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1663 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1664 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1665 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1666 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1667 * config/i386/i386v4.mt (TM_FILE): Likewise.
1668 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1669
1670 2002-10-10 Marko Mlinar <markom@opencores.org>
1671
1672 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1673 accidentially not commited 2002-10-09
1674 * gdbarch.h, gdbarch.c: Re-generate.
1675
1676 2002-10-09 Marko Mlinar <markom@opencores.org>
1677
1678 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1679 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1680 * gdbarch.h, gdbarch.c: Re-generate.
1681
1682 2002-10-08 Petr Sorfa <petrs@caldera.com>
1683
1684 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1685
1686 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1687 so we can work on more than one compilation unit at a time. This
1688 helps prepare GDB to handle inter-CU die references.
1689 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1690 the code to be defined before struct comp_unit_head.
1691 (comp_unit_head): Added new members - offset, cu_head,
1692 begin_die, next and dwarf2_abbrevs.
1693 (dwarf2_abbrevs): Removed single static var; now member of
1694 struct comp_unit_head.
1695 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1696 members.
1697 (psymtab_to_symtab_1): Changed to work with the new
1698 struct comp_unit_head.
1699 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1700 constructs the dwarf2_abbrevs[] inside the cu_header.
1701 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1702 dwarf2_abbrev table to clean up.
1703 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1704 handling of dwarf2_abbrevs inside the cu_header.
1705 (read_partial_die): Now supports the call to the new
1706 dwarf2_lookup_abbrev.
1707 (read_full_die): Now supports the call to the new
1708 dwarf2_lookup_abbrev.
1709
1710 2002-10-06 Christopher Faylor <cgf@redhat.com>
1711
1712 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1713 insure that shell variables, such as "transformed_name" are propagated
1714 to later shell statements in rule.
1715
1716 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1717
1718 * config/i386/nm-i386sco.h: Add protection against
1719 multiple-inclusion. Include "i386/nm-i386v.h".
1720 (REGISTER_U_ADDR): Remove define.
1721 (i386_register_u_addr): Remove prototype.
1722
1723 2002-10-04 Michael Snyder <msnyder@redhat.com>
1724
1725 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1726 before treating it as a single-step event.
1727
1728 2002-10-03 Adam Fedor <fedor@gnu.org>
1729
1730 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1731 (objc_demangle): Remove assignment in if statements, Replace
1732 free with xfree.
1733 (add_msglist): Likewise.
1734 (end_msglist): Likewise.
1735 (complare_selectors): Likewise.
1736 (selectors_info): Likewise.
1737 (compare_classes): Likewise.
1738 (classes_info): Likewise.
1739 (print_object_command): Likewise.
1740 (find_objc_msgcall_submethod): Replace PTR with void *.
1741 * objc-lang.h: Remove check for __STDC__.
1742
1743 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1744
1745 * ui-out.h (ui_out_field_fmt_int): New prototype.
1746 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1747 of field width and alignment.
1748 * stack.c (print_frame_info_base): When printing frame level, use
1749 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1750 PR gdb/192
1751
1752 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1753
1754 * MAINTAINERS: Add self to Write After Approval list.
1755
1756 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1757
1758 * infcmd.c (interrupt_target_command_wrapper): Delete.
1759 (interrupt_target_command): Make non static.
1760 (nofp_registers_info): Make static.
1761 * stack.c (return_command_wrapper): Delete.
1762 (return_command): Make non static.
1763
1764 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1765
1766 * event-top.c (gdb_setup_readline): New function. Code moved from
1767 _initialize_event_loop().
1768 (_initialize_event_loop): Call gdb_setup_readline().
1769
1770 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1771
1772 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1773 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1774 * gdbarch.h, gdbarch.c: Re-generate.
1775
1776 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1777
1778 Fix PR gdb/778
1779 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1780 before recursing.
1781 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1782 of fill_in_vptr_fieldno.
1783
1784 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1785
1786 * inferior.h (registers_info, stepi_command, nexti_command,
1787 continue_command, interrupt_target_command): Export from infcmd.c.
1788 * frame.h (args_info, selected_frame_level_changed_hook,
1789 return_command): Export from stack.c.
1790 * v850ice.c (stepi_command, nexti_command, continue_command): use
1791 prototypes from inferior.h.
1792 * tracepoint.c (registers_info, args_info, locals_info): Use
1793 prototypes from frame.h and inferior.h.
1794 * Makefile.in (mi-main.o): Add dependency on frame.h.
1795
1796 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1797
1798 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1799 value in register 3 adjusted by ppc_gp0_regnum.
1800
1801 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1802
1803 2002-10-02 Marko Mlinar <markom@opencores.org>
1804
1805 * MAINTAINERS: Add myself to the Write After Approval list.
1806
1807 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1808
1809 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1810 of the section for the N64 ABI, fixed.
1811
1812 * config/mips/tm-irix6.h: Include solib.h.
1813
1814 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1815
1816 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1817 GNU operators.
1818
1819 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1820
1821 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1822 and that "mi0" syntax has been removed.
1823
1824 2002-09-30 David Carlton <carlton@math.stanford.edu>
1825
1826 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1827 * ppc-sysv-tdep.c: #include "gdb_string.h".
1828 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1829 pacify GCC.
1830
1831 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1832
1833 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1834 "vrsave"'s register number.
1835
1836 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1837
1838 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1839 use frame_unwind_signed_register to obtain the PC.
1840 (mips_frame_chain): Handle a generic dummy frame.
1841 (mips_init_extra_frame_info): When a generic dummy frame, don't
1842 re-compute the frame base.
1843 (mips_pop_frame): Handle generic dummy frames.
1844 (mips_gdbarch_init): When generic dummy frames, set
1845 use_generic_dummy_frames, push_dummy_frame to
1846 generic_push_dummy_frame, pc_in_call_dummy to
1847 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1848 generic_save_dummy_frame_tos.
1849
1850 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1851
1852 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1853 against TOP when TOP was explictly set.
1854 (generic_push_dummy_frame): Set TOP to zero.
1855
1856 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1857
1858 * event-loop.c (start_event_loop): Rename variable 'result' to
1859 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1860
1861 2002-09-30 Keith Seitz <keiths@redhat.com>
1862
1863 * gdb-events.sh (selected_thread_changed): New event.
1864 * gdb-events.c: Regenerated.
1865 * gdb-events.h: Regenerated.
1866
1867 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1868
1869 * MAINTAINERS: Add self to Write After Approval list.
1870
1871 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1872
1873 * disasm.c: New file.
1874 * disasm.h: New file.
1875 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1876 (compare_lines): Ditto.
1877 (dump_insns): Ditto.
1878 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1879 argument.
1880 (do_assembly_only): Ditto.
1881 (do_disassembly): Renamed to gdb_disassembly and moved to
1882 disasm.c. Sdded uiout argument.
1883 * Makefile.in: Add new files. Reorder SFILES list. Update
1884 dependencies. Include libgdb.a later in the insight executable.
1885
1886 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1887
1888 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1889 bfd/elf64-alpha-fbsd.c.
1890
1891 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1892
1893 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1894 i386gnu-tdep.c.
1895
1896 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1897
1898 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1899 __FUNCTION__.
1900 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1901 function name.
1902 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1903 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1904 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1905 (S_msg_sig_post_reply): Ditto.
1906
1907 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1908
1909 * sh-tdep.c (sh_use_struct_convention): Use definition according
1910 to ABI.
1911 (sh_push_arguments): Store in register with correct endianess.
1912 (sh_default_store_return_value): Ditto.
1913 (sh_gdbarch_init): Set sizeof long double to 8.
1914
1915 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1916
1917 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1918 Fix some whitespace problems.
1919
1920 2002-09-27 David Carlton <carlton@math.stanford.edu>
1921
1922 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1923 (mcore-tdep.o): Ditto.
1924 (ns32k-tdep.o): Ditto.
1925 (ns32knbsd-tdep.o): Ditto.
1926 (sh3-rom.o): Ditto.
1927 (vax-tdep.o): Ditto.
1928 * cris-tdep.c: #include "gdb_string.h"
1929 * mcore-tdep.c: Ditto.
1930 * ns32k-tdep.c: Ditto.
1931 * ns32knbsd-tdep.c: Ditto.
1932 * sh3-rom.c: Ditto.
1933 * vax-tdep.c: Ditto.
1934
1935 2002-09-27 David Carlton <carlton@math.stanford.edu>
1936
1937 * config/djgpp/fnchange.lst: Add entries for
1938 gdb/testsuite/gdb.c++/m-static files.
1939
1940 2002-09-27 Jim Wilson <wilson@redhat.com>
1941
1942 * MAINTAINERS: Add myself to the Write After Approval list.
1943
1944 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1945
1946 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1947
1948
1949 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1950
1951 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1952 frame.
1953
1954 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1955
1956 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1957 (rs6000_struct_return_address): Delete variable.
1958 (rs6000_store_struct_return): Update.
1959 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1960 deprecated_extract_struct_value_address.
1961 (rs6000_frame_align): New function.
1962 (rs6000_gdbarch_init): Set frame_align.
1963
1964 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1965
1966 From Grace Sainsbury <graces@redhat.com>:
1967 * Makefile.in (gdbtk-main.o): New target.
1968 (gdb.o): New target.
1969 (main_h): Define.
1970 (main.o): Update dependencies.
1971 (gdb$(EXEEXT)): Add gdb.o.
1972 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1973 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1974 (SUBDIR_GDBTK_CLEAN): Set.
1975 (install-gdbtk): Install the insight binary.
1976 (uninstall-gdbtk): New target.
1977 (all-gdbtk, clean-gdbtk): New rule.
1978 * top.c (use_windows): Default to zero.
1979 * main.c: Include "main.h".
1980 (main): Delete.
1981 (struct captured_main_args): Delete.
1982 (gdb_main): New function.
1983 * main.h: New file.
1984 * gdb.c: New File.
1985
1986 2002-09-25 Andrew Cagney <cagney@redhat.com>
1987
1988 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1989 (frame_map_regnum_to_name): New function.
1990 (frame_map_name_to_regnum): New function.
1991 * frame.h (frame_map_name_to_regnum): Declare.
1992 (frame_map_regnum_to_name): Declare.
1993 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1994 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1995 * parse.c: Do not include "builtin-regs.h".
1996 (target_map_name_to_register): Delete function.
1997 (write_dollar_variable): Use frame_map_name_to_regnum.
1998 * parser-defs.h (target_map_name_to_register): Delete declaration.
1999 * expprint.c: Include "frame.h".
2000 (print_subexp): Use frame_map_regnum_to_name.
2001 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2002 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2003
2004 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2005
2006 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2007 wasn't saved, and the next innermost frame is a dummy, return the
2008 dummy frame's link register.
2009
2010 2002-09-24 Jim Blandy <jimb@redhat.com>
2011
2012 Fix from Paul Breed:
2013 * main.c (captured_main): Add a `break' after the case for 'b'.
2014
2015 2002-09-24 Keith Seitz <keiths@redhat.com>
2016
2017 * varobj.c (c_type_of_child): Use get_target_type instead
2018 of TYPE_TARGET_TYPE.
2019
2020 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2021
2022 * source.c (get_current_or_default_source_symtab_and_line): Remove
2023 function.
2024 (set_default_source_symtab_and_line): New function. Attempts to
2025 determine a source file to list lines from if one is not currently
2026 defined.
2027 (get_current_source_symtab_and_line): Initialize sal.pc and
2028 sal.end fields.
2029 (set_current_source_symtab_and_line): Mark argument as const.
2030 * source.h: Update declarations and comments.
2031 * linespec.c (decode_line_1): Replace call to removed routine above.
2032 * stack.c (print_frame_info_base): Ditto.
2033 * cli/cli-cmds.c (edit_command): Ditto.
2034 (list_command): Ditto.
2035
2036 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2037
2038 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2039 sal.pc and sal.end fields.
2040 (get_current_or_default_source_symtab_and_line): Ditto.
2041 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2042 so we do not cause a new source symtab to be searched for (reverting an
2043 unintentional change from the 2002-09-20 patch).
2044 * scm-lang.c (scm_unpac): Ditto.
2045
2046 2002-09-21 Andrew Cagney <cagney@redhat.com>
2047
2048 * complaints.c (symfile_explanations): Remove new-line from
2049 ``isolated_message''.
2050 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2051 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2052
2053 2002-09-20 Nick Clifton <nickc@redhat.com>
2054
2055 * NEWS: Announce that V850EA ISA is no longer supported.
2056 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2057
2058 2002-09-20 David Carlton <carlton@math.stanford.edu>
2059
2060 * Makefile.in (c-lang.o): Correct dependencies.
2061 (utils.o): Gather dependencies.
2062 (charset.o): Move.
2063 * c-lang.c: #include "gdb_string.h"
2064
2065 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2066
2067 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2068 * cli/cli-cmds.c (list_command): New function. Implements the new
2069 cli edit command.
2070 (_init_cli_cmds): Add new command definition.
2071 * gdb.1: Document edit command.
2072 * doc/gdb.texinfo: Document edit command.
2073
2074 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2075
2076 * source.c: Make global variables current_source_symtab and
2077 current_source_line static.
2078 (list_command): Moved to cli/cli-cmds.c.
2079 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2080 (get_first_line_listed): New accessor function.
2081 (get_lines_to_list): New accessor function.
2082 (get_current_source_symtab_and_line): New function. Retrieves the
2083 position in the source code that we consider current.
2084 (get_current_or_default_source_symtab_and_line): New function.
2085 Like the above but attempts to determine a default position if one
2086 is not currently defined.
2087 (set_current_source_symtab_and_line): New function. Sets the source
2088 code position considered current and returns the previously set one.
2089 (clear_current_source_symtab_and_line): Reset stored information about
2090 a current source line.
2091 (_initialize_source): Remove registration for the "list" command and
2092 its alias.
2093 * source.h: Add declarations for the new functions above.
2094 * symtab.h: Remove declarations for the global variables mentioned
2095 above.
2096 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2097 obtain current source line.
2098 * linespec.c (decode_line_1): Ditto.
2099 * macroscope.c (default_macro_scope): Ditto.
2100 * scm-lang.c (scm_unpac): Ditto.
2101 * stack.c (print_frame_info_base): Ditto.
2102 * symfile.c (clear_symtab_users): Ditto.
2103 * symtab.c (decode_line_spec): Ditto.
2104 * cli/cli-cmds.c (list_command): Moved here from source.c.
2105 (ambiguous_line_spec): Moved here from source.c.
2106 (_init_cli_cmds): Add definition for "list" and its alias.
2107 * Makefile.in: Update dependencies.
2108
2109 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2110
2111 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2112 with what gcc thinks is correct.
2113
2114 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2115
2116 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2117 multiple register push instruction.
2118
2119 2002-09-19 Jim Blandy <jimb@redhat.com>
2120
2121 Add support for distinct host and target character sets.
2122 * charset.c, charset.h: New files.
2123 * c-exp.y: #include "charset.h".
2124 (yylex): Convert character and string literals to the target
2125 character set, before returning them as the semantic value of the
2126 token.
2127 * c-lang.c: #include "charset.h".
2128 (c_emit_char): Use charset-specific methods to recognize
2129 characters with backslash escape forms, to decide which characters
2130 to print literally and which to print using numeric escape
2131 sequences, and to convert target characters to host characters
2132 before printing.
2133 * utils.c: #include "charset.h".
2134 (no_control_char_error): New function.
2135 (parse_escape): Use charset-specific methods to recognize
2136 backslash escapes, parse `control character' notation, and convert
2137 characters from the host character set to the target character set.
2138 * configure.in: Set the default host character set.
2139 Check where to find iconv, and what its argument types might be.
2140 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2141 * Makefile.in (SFILES): List charset.c.
2142 (COMMON_OBS): List charset.o.
2143 (charset.o): New rule.
2144 (charset_h): New header dependency variable.
2145 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2146 (LIBICONV): New variable, set by configure.
2147 (CLIBS): Include $(LIBICONV) here.
2148 * aclocal.m4, config.in, configure: Regenerated.
2149
2150 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2151
2152 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2153 bison 1.35 warning.
2154
2155 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2156
2157 * gdb_mbuild.sh: New file.
2158
2159 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2160
2161 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2162
2163 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2164
2165 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2166 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2167 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2168 valops.c, value.h: Revert previous change.
2169
2170 2002-09-18 Michael Snyder <msnyder@redhat.com>
2171
2172 Preliminary support for Objective-C:
2173 * defs.h (language_objc): New enum value.
2174 (puts_filtered_tabular): Declaration only, exported from utils.c.
2175 (skip_quoted): Delete, declared in completer.h.
2176 * c-exp.y: Include completer.h.
2177 * p-exp.y: Ditto.
2178 * jv-exp.y: Ditto.
2179 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2180 New operator enum values.
2181 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2182 * language.c (binop_result_type): Handle language_objc case.
2183 (integral_type, character_type, string_type, boolean_type,
2184 structured_type, binop_type_check): Ditto.
2185 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2186 (struct objc_specific): Add to general_symbol_info.
2187 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2188 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2189 * parser-defs.h (struct objc_class_str): New struct type.
2190 (start_msglist, end_msglist, add_msglist): Declaration only,
2191 exported from objc-lang.c.
2192 * value.h (value_of_local, value_nsstring,
2193 call_function_by_hand_expecting_type): Exported from valops.c.
2194 * valops.c (find_function_addr): Export.
2195 (call_function_by_hand_expecting_type): New function.
2196 (value_of_local): New function.
2197 * symfile.c (init_filename_language_table): Add ".m" extension
2198 for Objective-C.
2199 * utils.c (puts_filtered_tabular): New function.
2200 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2201 (set/show demangle): Extend help-string to refer to ObjC.
2202 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2203 * stabsread.c (symbol_reference_defined): Objective-C symbols
2204 may contain colons: make allowances when scanning stabs strings
2205 for colons.
2206 (objc_find_colon): New function.
2207 * printcmd.c (address_info): If language == objc then print
2208 "self" instead of "this".
2209 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2210 OP_NSSTRING, and OP_SELF.
2211 (prefixify_subexp): Ditto.
2212 * source.c (print_source_lines): Mention objc in comment.
2213 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2214 method names.
2215
2216 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2217
2218 * complaints.h: Update copyright.
2219 (struct complaints): Declare.
2220 (struct complaint): Make `message' constant.
2221 (internal_complaint): Declare.
2222 (complaint): Declare.
2223 (complaint_root): Delete declaration.
2224 (symfile_complaints): Delete declaration.
2225 (struct complaints): Add opaque declaration.
2226 (clear_complaints): Add a complaints parameter.
2227 * complaints.c: Update copyright.
2228 (enum complaint_series): Define.
2229 (complaint_root): Delete.
2230 (struct complaints): Define.
2231 (complaint_sentinel, symfile_complaint_book): New variables.
2232 (symfile_explanations, symfile_complaints): New variables.
2233 New variables.
2234 (get_complaints): New function.
2235 (vcomplaint): New function.
2236 (complaint): New function.
2237 (internal_complaint): New function.
2238 (complain): Call vcomplain with symfile_complaint.
2239 (clear_complaints): Rewrite.
2240 (_initialize_complaints): Use add_setshow_command.
2241 * Makefile.in (complaints.o): Update dependencies.
2242 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2243 to call to clear_complaints.
2244 (new_symfile_objfile, reread_symbols): Ditto.
2245 (oldsyms_complaint): Delete.
2246 (empty_symtab_complaint, unknown_option_complaint): Delete.
2247 (free_named_symtabs): Use complaint instead of complain.
2248
2249 2002-09-18 Michael Snyder <msnyder@redhat.com>
2250
2251 Contributed by Apple Computer, Inc. Merged with current sources
2252 by Adam Fedor <fedor@doc.com> [cagney].
2253
2254 * objc-lang.c: First clean-up round: comments, indentation.
2255 * objc-lang.h: Ditto.
2256 * objc-lang.y: Ditto.
2257
2258 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2259
2260 * maint.c (maintenance_internal_error): Print the parameter as the
2261 error message.
2262 (maintenance_internal_warning): New function.
2263 (_initialize_maint_cmds): Add command `maint internal-warning'.
2264
2265 * defs.h (internal_warning, internal_vwarning): Declare.
2266 * utils.c (struct internal_problem): Define.
2267 (internal_vproblem): New function.
2268 (internal_warning): New function.
2269 (internal_vwarning): New function.
2270 (internal_warning_problem, internal_error_problem): New variables.
2271 (internal_verror): Just call internal_vproblem.
2272
2273 2002-09-18 Michael Snyder <msnyder@redhat.com>
2274
2275 * objc-lang.c: New file, support for Objective-C.
2276 Preliminary check-in, not yet integrated into gdb.
2277 * objc-lang.h: New file.
2278 * objc-exp.y: New file.
2279
2280 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2281
2282 * infrun.c (signal_stop_update): Convert definition to ISO C.
2283 (signal_print_update): Ditto.
2284 (signal_pass_update): Ditto.
2285 * inflow.c (terminal_save_ours): Ditto.
2286
2287 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2288 comments.
2289
2290 * config/djgpp/fnchange.lst: Handle name clashes between
2291 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2292 bfd/coff-tic80.c.
2293
2294 * i386-linux-tdep.h: Fix tipo.
2295
2296 2002-09-18 Adam Fedor <fedor@gnu.org>
2297
2298 * MAINTAINERS: Add myself to the Write After Approval list.
2299
2300 2002-09-18 Jim Blandy <jimb@redhat.com>
2301
2302 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2303 texthigh and textlow to reader-specific structs caused
2304 objfile_relocate to miss them. This is fixable, but the work that
2305 the change was supposed to prepare GDB for never got done anyway.
2306
2307 2002-09-18 David Carlton <carlton@math.stanford.edu>
2308
2309 * MAINTAINERS: Alphabetize Write After Approval list.
2310
2311 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2312
2313 Fix PR gdb/709
2314 * values.c (value_static_field): Call read_var_value.
2315
2316 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2317
2318 * valops.c (hand_function_call): Align the initial stack pointer
2319 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2320 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2321 return value.
2322 * mips-tdep.c (mips_frame_align): New function.
2323 (mips_gdbarch_init): Set frame_align.
2324 * gdbarch.sh (FRAME_ALIGN): New method.
2325 * gdbarch.h, gdbarch.c: Re-generate.
2326
2327 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2328
2329 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2330 registers.
2331
2332 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2333
2334 * NEWS: Mention that MIPS $fp behavior changed.
2335 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2336 reference to FP_REGNUM.
2337 (mipsnbsd_cannot_store_register): Ditto.
2338 * mips-linux-nat.c: Update copyright.
2339 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2340 (mips_linux_cannot_store_register): Ditto.
2341 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2342 * config/mips/tm-mips.h: Update copyright.
2343 (FP_REGNUM): Delete macro.
2344 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2345 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2346 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2347 (mips_r3041_reg_names, mips_r3051_reg_names)
2348 (mips_r3081_reg_names): Replace "fp" with "".
2349 Fix PR gdb/480.
2350
2351 2002-09-17 Theodore A. Roth <troth@verinet.com>
2352
2353 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2354 generic_read_register_dummy() (PR gdb/703).
2355 (avr_push_return_address): #if 0 out unused vars.
2356 (avr_gdbarch_init): Enable use of avr_push_return_address().
2357
2358 2002-09-17 Michael Snyder <msnyder@redhat.com>
2359
2360 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2361 RTE will take care of it.
2362
2363 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2364
2365 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2366 invalid, return SP_REGNUM.
2367
2368 2002-09-17 Michael Snyder <msnyder@redhat.com>
2369
2370 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2371 point registers without sign extension.
2372
2373 2002-09-17 Andrew Cagney <cagney@redhat.com>
2374
2375 * blockframe.c (deprecated_read_register_dummy): Rename
2376 generic_read_register_dummy.
2377 * frame.c (frame_unwind_signed_register): New function.
2378 (frame_unwind_unsigned_register): New function.
2379 * frame.h (frame_unwind_signed_register): Declare.
2380 (frame_unwind_unsigned_register): Declare.
2381 (deprecated_read_register_dummy): Rename
2382 generic_read_register_dummy.
2383
2384 * h8300-tdep.c (h8300_frame_chain): Update.
2385 (h8300_frame_saved_pc): Update.
2386 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2387 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2388 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2389 (s390_frame_chain): Update.
2390 * v850-tdep.c (v850_find_callers_reg): Update.
2391 (v850_frame_saved_pc): Update.
2392 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2393 (m32r_find_callers_reg): Update.
2394 (m32r_frame_saved_pc): Update.
2395 * sh-tdep.c (sh_find_callers_reg): Update.
2396 (sh64_get_saved_pr): Update.
2397 (sh_init_extra_frame_info): Update.
2398 (sh_init_extra_frame_info): Update.
2399 (sh64_init_extra_frame_info): Update.
2400 (sh64_init_extra_frame_info): Update.
2401 * mcore-tdep.c (mcore_find_callers_reg): Update.
2402 (mcore_frame_saved_pc): Update.
2403 (mcore_init_extra_frame_info): Update.
2404 * i386-tdep.c (i386_frame_saved_pc): Update.
2405 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2406 (ia64_init_extra_frame_info): Update.
2407 (ia64_init_extra_frame_info): Update.
2408 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2409 * cris-tdep.c (cris_init_extra_frame_info): Update.
2410 * avr-tdep.c (avr_frame_chain): Update.
2411 (avr_init_extra_frame_info): Update.
2412 (avr_frame_saved_pc): Update.
2413 * arm-tdep.c (arm_find_callers_reg): Update.
2414 (arm_init_extra_frame_info): Update.
2415 (arm_frame_saved_pc): Update.
2416
2417 2002-09-17 Tom Tromey <tromey@redhat.com>
2418
2419 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2420 is "'".
2421
2422 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2423
2424 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2425 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2426 NEXT_PROLOGUE_INSN.
2427 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2428 NEXT_PROLOGUE_INSN.
2429
2430 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2431
2432 * osfsolib.c: Remove file, replaced by solib-osf.c.
2433 * Makefile.in: Remove compilation rules for osfsolib.c.
2434
2435 2002-09-16 David Carlton <carlton@math.stanford.edu>
2436
2437 * cp-valprint.c (cp_print_class_method): Correct args to
2438 check_stub_method_group.
2439
2440 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2441
2442 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2443 `set architecture'. Unify naming convention of functions.
2444 (h8300_skip_prologue): Improve prologue analysis.
2445 (h8300_push_arguments): Rewritten to more closely match GCC's
2446 bizarre argument-passing behavior, along with the comment describing
2447 said behavior.
2448 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2449 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2450 sim, remote-e7000.c, remote-hms.c and remote.c
2451
2452 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2453
2454 * i386-tdep.c (gdb_print_insn_i386): Removed.
2455 (i386_print_insn): New function.
2456 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2457 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2458 tm_print_insn_info.
2459
2460 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2461
2462 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2463 zero.
2464
2465 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2466
2467 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2468 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2469 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2470
2471 2002-09-13 Christopher Faylor <cgf@redhat.com>
2472
2473 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2474
2475 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2476
2477 * gdbtypes.c (check_stub_method): Make static.
2478 (check_stub_method_group): New function.
2479 * gdbtypes.h: Update prototypes.
2480 * cp-support.c: New file.
2481 * cp-support.h: New file.
2482
2483 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2484 (update_method_name_from_physname): New function.
2485 (read_member_functions): Correct method names for operators
2486 and v3 constructors/destructors. Separate v2 constructors and
2487 destructors.
2488 * Makefile.in (stabsread.o): Update dependencies.
2489 (SFILES): Add cp-support.c.
2490 (COMMON_OBS): Add cp-support.o.
2491 (cp_support_h, cp-support.o): Add.
2492
2493 * cp-valprint.c (cp_print_class_method): Call
2494 check_stub_method_group instead of check_stub_method. Remove
2495 extraneous QUITs.
2496 * p-valprint.c (pascal_object_print_class_method): Likewise.
2497 * valops.c (search_struct_method): Likewise.
2498 (find_method_list, value_struct_elt_for_reference): Likewise.
2499
2500 2002-09-13 Andrew Cagney <cagney@redhat.com>
2501
2502 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2503 * gdbarch.h, gdbarch.c: Regenerate.
2504
2505 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2506
2507 * frame.c (find_saved_register): Delete function.
2508 * frame.h (find_saved_register): Delete declaration.
2509 Fix PR gdb/631.
2510
2511 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2512
2513 * mips-tdep.c (read_next_frame_reg): Re-hack using
2514 frame_register_unwind.
2515
2516 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2517
2518 * mips-tdep.c (mips_get_saved_register): Re-hack using
2519 frame_register_unwind.
2520
2521 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2522
2523 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2524 vector. Will be useful for Interix.
2525 * gdbarch.h, gdbarch.c: Regenerate.
2526
2527 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2528 name of the malloc function by NAME_OF_MALLOC.
2529
2530 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2531
2532 * value.h (find_function_in_inferior): Add const keyword to
2533 one of the parameters. Allows us to invoke this function with
2534 a const char *.
2535 * valops.c (find_function_in_inferior): Likewise.
2536
2537 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2538
2539 * exec.c (xfer_memory): Fix compilation warning with old versions
2540 of GCC.
2541 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2542
2543 2002-09-12 David Carlton <carlton@math.stanford.edu>
2544
2545 * symtab.h: Run through gdb_indent.h.
2546 Add 2002 to Copyright year list.
2547
2548 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2549
2550 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2551 mach constants.
2552 * MAINTAINERS: Add myself to write after approval list.
2553
2554 2002-09-11 J. Brobecker <brobecker@gnat.com>
2555
2556 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2557
2558 2002-09-11 J. Brobecker <brobecker@gnat.com>
2559
2560 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2561 Interix.
2562
2563 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2564
2565 * procfs.c (do_detach): Clear current signal, not just fault.
2566 Corrects problem with breakpoint trap signal leaking to detached
2567 process on Tru64.
2568
2569 2002-09-10 Michael Snyder <msnyder@redhat.com>
2570
2571 * buildsym.c (finish_block): Protect against null pointer.
2572
2573 2002-09-10 Andrew Cagney <cagney@redhat.com>
2574
2575 * infcmd.c (default_print_registers_info): Send all output to
2576 ``file'' instead of ``gdb_stdout''.
2577
2578 2002-09-10 Michael Snyder <msnyder@redhat.com>
2579
2580 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2581 LONGEST, and use signed register read (addresses are sign-
2582 extended for mips).
2583
2584 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2585
2586 * event-loop.c (gdb_do_one_event): Make public.
2587 * event-loop.h (gdb_do_one_event): Declare.
2588
2589 2002-09-10 Jeff Law <law@redhat.com>
2590
2591 * infttrace.c (child_resume): Simplify and rework to avoid
2592 TT_PROC_CONTINUE.
2593
2594 2002-09-09 Fred Fish <fnf@intrinsity.com>
2595
2596 * printcmd.c (print_scalar_formatted): "len" is the number of
2597 target bytes, NOT the number of target bits.
2598
2599 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2600
2601 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2602 * top.c (init_main): Set rl_terminal_name.
2603
2604 2002-09-08 Aidan Skinner <aidan@velvet.net>
2605
2606 * ada-lang.c (ada_array_bound, ada_type_match,
2607 _initialize_ada_language): Fix K&R definitions.
2608 * ada-tasks.c (get_current_task): Fix K&R definitions.
2609 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2610
2611 2002-09-07 Christopher Faylor <cgf@redhat.com>
2612
2613 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2614 Add XP.
2615
2616 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2617
2618 * i386-tdep.c (i386_register_virtual_type,
2619 i386_register_convertible, i386_register_convert_to_virtual,
2620 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2621 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2622 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2623 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2624 Don't set push_arguments twice.
2625
2626 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2627 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2628 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2629 sigtramp_end to NULL.
2630 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2631 defines.
2632 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2633
2634 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2635 whitespace.
2636
2637 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2638 * gdbarch.h, gdbarch.c: Re-generate.
2639 * blockframe.c (find_pc_sect_partial_function): Convert to use
2640 SIGTRAMP_START_P predicate.
2641
2642 2002-09-05 Michael Snyder <msnyder@redhat.com>
2643
2644 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2645 generic_dummy_frame method and old method. Also distinguish
2646 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2647 (arm_extract_return_value): Use new regcache method.
2648
2649 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2650 adjustment that doesn't conform to the ABI.
2651 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2652 saved regcache, not from current regcache.
2653
2654 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2655
2656 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2657 * README: Update.
2658
2659 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2660
2661 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2662 if arm_apcs_32 is false.
2663
2664 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2665
2666 GDB 5.3 branch created.
2667
2668 2002-09-03 Theodore A. Roth <troth@verinet.com>
2669
2670 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2671 generic_unwind_get_saved_register.
2672
2673 2002-09-03 David Carlton <carlton@math.stanford.edu>
2674
2675 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2676 argument (PR gdb/653). Update call to smash_to_method_type.
2677 (read_structure_scope): Update call to dwarf2_add_member_fn.
2678
2679 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2680
2681 * x86-64-linux-tdep.c: Include gdb_string.h
2682 * x86-64-linux-nat.c: Ditto.
2683
2684 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2685
2686 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2687 when YYDEBUG is set to 1.
2688 * c-exp.y: Likewise.
2689 * f-exp.y: Likewise.
2690 * jv-exp.y: Likewise.
2691 * m2-exp.y: Likewise.
2692 * p-exp.y: Likewise.
2693
2694 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2695
2696 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2697 dependency list.
2698 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2699 solib_svr4_fetch_link_map_offsets to
2700 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2701 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2702 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2703 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2704 solib-svr4.o, and solib-legacy.o.
2705 * config/i386/tm-nbsd.h: Include solib.h.
2706
2707 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2708
2709 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2710 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2711 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2712 comment noting that this needs its own target configuration.
2713 * config/i386/nbsd.mt: New file.
2714 * config/i386/nbsdaout.mt: Remove.
2715 * config/i386/nbsdelf.mt: Ditto.
2716 * config/i386/tm-nbsdaout.h: Ditto.
2717
2718 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2719
2720 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2721 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2722 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2723 tdep->sigtramp_end.
2724 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2725 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2726 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2727
2728 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2729
2730 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2731 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2732 * i386-tdep.h (i386bsd_init_abi): New prototype.
2733 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2734 function declaration.
2735 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2736 for NetBSD-a.out or NetBSD-ELF.
2737 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2738 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2739 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2740 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2741 and nbsd-tdep.h.
2742 (i386nbsd_pc_in_sigtramp): New function.
2743 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2744 i386nbsd_pc_in_sigtramp.
2745 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2746 and i386nbsdelf_init_abi OS ABI handlers.
2747 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2748 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2749
2750 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2751
2752 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2753 registers if the target really has them.
2754
2755 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2756
2757 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2758 than nbsd-tdep.h.
2759
2760 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2761
2762 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2763 list.
2764 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2765 (alphanbsd_skip_sigtramp_frame): New functions.
2766 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2767 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2768 to alphanbsd_sigcontext_addr.
2769
2770 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2771
2772 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2773 list.
2774 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2775 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2776 nbsd_pc_in_sigtramp.
2777 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2778 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2779 * nbsd-tdep.c: Include gdb_string.h.
2780 (nbsd_pc_in_sigtramp): New function.
2781 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2782 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2783 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2784 ppcnbsd_pc_in_sigtramp.
2785 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2786 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2787 shnbsd_pc_in_sigtramp.
2788 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2789 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2790 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2791
2792 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2793
2794 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2795 watchpoints to NULL.
2796 (insert_breakpoints): set val field of watchpoints if NULL.
2797
2798
2799 2002-08-29 Jim Blandy <jimb@redhat.com>
2800
2801 * symtab.c (lookup_symbol_aux): In the cases where we find a
2802 minimal symbol of an appropriate name and use its address to
2803 select a symtab to read and search, use `name' (as passed to us)
2804 as the demangled name when searching the symtab's global and
2805 static blocks, not the minsym's name.
2806
2807 2002-08-29 Keith Seitz <keiths@redhat.com>
2808
2809 * stack.c (print_frame_info_base): Always set current_source_symtab
2810 and current_source_line.
2811
2812 2002-08-29 Donn Terry <donnte@microsoft.com>
2813
2814 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2815
2816 2002-08-28 Keith Seitz <keiths@redhat.com>
2817
2818 * stack.c (select_frame): Add FIXME concerning selected-frame
2819 events.
2820 (select_frame_command): Send selected-frame-level-changed
2821 event notification, but only if the level actually changed.
2822 (up_silently_base): Add selected-frame-level-changed event
2823 notification.
2824 (down_silently_base): Likewise.
2825
2826 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2827
2828 * Makefile.in: Update dependencies for all gdb/*.c files.
2829
2830 2002-08-27 Tom Tromey <tromey@redhat.com>
2831
2832 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2833 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2834 Update dependencies.
2835 * i387-tdep.c: Include gdb_string.h.
2836 * osabi.c: Likewise.
2837 * i386-linux-nat.c: Likewise.
2838 * lin-lwp.c: Likewise.
2839 * ax-gdb.c: Likewise.
2840 * signals/signals.c: Likewise.
2841 * jv-valprint.c: Likewise.
2842 * p-lang.c: Likewise.
2843 * c-valprint.c: Likewise.
2844 * cp-abi.c: Likewise.
2845
2846 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2847
2848 * cli/cli-script.h (copy_command_lines): Export.
2849 * breakpoint.c: Include cli/cli-script.h.
2850 * Makefile.in (breakpoint.o): Update dependencies.
2851
2852 2002-08-26 Michael Snyder <msnyder@redhat.com>
2853
2854 * breakpoint.c (insert_breakpoints): Protect all references
2855 to 'process_warning'. Shorten long lines.
2856
2857 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2858
2859 * cli/cli-script.c (copy_command_lines): New function.
2860 * defs.h (copy_command_lines): Export.
2861 * testsuite/gdb.base/commands.exp: New tests for commands
2862 attached to a temporary breakpoint, and for commands that
2863 delete the breakpoint they are attached to.
2864
2865 2002-08-26 Michael Snyder <msnyder@redhat.com>
2866
2867 * breakpoint.c (bpstat_stop_status): Instead of copying the
2868 pointer to the breakpoint commands struct, make a new copy
2869 of the struct and point to that.
2870 (bpstat_clear): Free the commands struct.
2871 (bpstat_clear_actions): Free the commands struct.
2872 (bpstat_do_actions): Free the command actions. Also execute
2873 the local cleanups, instead of deleting them.
2874 (delete_breakpoint): Leave the commands field of the bpstat
2875 chain alone -- it will be freed later.
2876
2877 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2878
2879 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2880 deleted in 2002-08-20 commit. This function is still used by
2881 ppc-linux-nat.c.
2882
2883 2002-08-26 Keith Seitz <keiths@redhat.com>
2884
2885 * gdb-events.sh: Add selected-frame-level-changed event.
2886 * gdb-events.c: Regenerated.
2887 * gdb-events.h: Regenerated.
2888
2889 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2890
2891 Fix PR gdb/393:
2892 * inflow.c (terminal_save_ours): New function to save terminal
2893 settings.
2894 * inferior.h (terminal_save_ours): Declare.
2895 * target.c (debug_to_terminal_save_ours): New function.
2896 (cleanup_target): Defaults to_terminal_save_ours.
2897 (update_current_target): Inherit to_terminal_save_ours.
2898 (setup_target_debug): Set to_terminal_save_ours.
2899 * target.h (target_terminal_save_ours): New to save terminal settings.
2900 (target_ops): New member to_terminal_save_ours.
2901 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2902 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2903 * inftarg.c (init_child_ops): Likewise.
2904 * m3-nat.c (init_m3_ops): Likewise.
2905 * procfs.c (init_procfs_ops): Likewise.
2906 * wince.c (init_child_ops): Likewise.
2907 * win32-nat.c (init_child_ops): Likewise.
2908 * sol-thread.c (init_sol_thread_ops): Likewise.
2909
2910 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2911
2912 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2913 use regcache_* functions.
2914 (i386_gdbarch_init): Set store_return_value instead of
2915 deprecated_store_return_value.
2916
2917 * regcache.c (regcache_raw_write_signed,
2918 regcache_raw_write_unsigned): New functions.
2919 * regcache.h (regcache_raw_write_signed,
2920 regcache_raw_write_unsigned): New prototypes.
2921
2922 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2923
2924 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2925 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2926 source file dependencies. Cleanup corresponding generator rules.
2927
2928 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2929
2930 * regcache.h (register_offset_hack): Declare.
2931 (regcache_cooked_read_using_offset_hack): Declare.
2932 (regcache_cooked_write_using_offset_hack): Declare.
2933
2934 * regcache.c (register_offset_hack): New function.
2935 (regcache_cooked_read_using_offset_hack): New function.
2936 (regcache_cooked_write_using_offset_hack): New function.
2937 (regcache_dump): Check that the registers, according to their
2938 offset, are packed hard against each other.
2939 (cooked_xfer_using_offset_hack): New function.
2940
2941 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2942
2943 * regcache.c (struct regcache_descr): Add field register_type.
2944 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2945 in as a parameter
2946 (init_regcache_descr): Initialize register_type. Pass the descr
2947 to init_legacy_regcache_descr. Use register_type instead of
2948 REGISTER_VIRTUAL_TYPE.
2949 (register_type): New function.
2950 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2951 * regcache.h (register_type): Declare.
2952
2953 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2954
2955 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2956 instead of deprecated_store_return_value. Fix fallout from
2957 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2958
2959 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2960
2961 * regcache.c (max_register_size): New function.
2962 (init_legacy_regcache_descr): Ensure that max_register_size is
2963 large enough for REGISTER_VIRTUAL_SIZE.
2964 * regcache.h (max_register_size): Declare.
2965
2966 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2967
2968 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2969 store_return_value.
2970 (e500_extract_return_value): Change type of valbuf pointer to
2971 void.
2972
2973 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2974
2975 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2976 workaround.
2977
2978 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2979 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2980 long long) to prevent compiler warning on 64-bit systems.
2981
2982 2002-08-23 Andrew Cagney <cagney@redhat.com>
2983
2984 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2985 (DEPRECATED_STORE_RETURN_VALUE): New method.
2986 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2987 * gdbarch.h, gdbarch.c: Re-generate.
2988
2989 * values.c (set_return_value): Pass current_regcache to
2990 STORE_RETURN_VALUE.
2991 * arch-utils.h (legacy_store_return_value): Declare.
2992 * arch-utils.c (legacy_store_return_value): New function.
2993 (legacy_extract_return_value): Update parameters.
2994
2995 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2996 STORE_RETURN_VALUE.
2997 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2998 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2999 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3000 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3001 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3002 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3003 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3004 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3005 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3006 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3007
3008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3009 * i386-tdep.c (i386_extract_return_value): Update.
3010 * arch-utils.c (legacy_extract_return_value): Update.
3011 * frv-tdep.c (frv_gdbarch_init): Update.
3012 * cris-tdep.c (cris_gdbarch_init): Update.
3013 * d10v-tdep.c (d10v_gdbarch_init): Update.
3014 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3015 * m68k-tdep.c (m68k_gdbarch_init): Update.
3016 * mcore-tdep.c (mcore_gdbarch_init): Update.
3017 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3018 * s390-tdep.c (s390_gdbarch_init): Update.
3019 * sparc-tdep.c (sparc_gdbarch_init): Update.
3020 * sh-tdep.c (sh_gdbarch_init): Update.
3021 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3022 * v850-tdep.c (v850_gdbarch_init): Update.
3023 * avr-tdep.c (avr_gdbarch_init): Update.
3024 * ia64-tdep.c (ia64_gdbarch_init): Update.
3025 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3026 * vax-tdep.c (vax_gdbarch_init): Update.
3027 * alpha-tdep.c (alpha_gdbarch_init): Update.
3028 * arm-tdep.c (arm_gdbarch_init): Update.
3029 * mips-tdep.c (mips_gdbarch_init): Update.
3030 * i386-tdep.c (i386_gdbarch_init): Update.
3031
3032 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3033
3034 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3035 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3036
3037 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3038
3039 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3040 problems.
3041
3042 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3043
3044 * infrun.c (handle_inferior_event): Move a comment outside of a
3045 function call, in order to avoid indent reformatting this part
3046 of the code in an unreadable way.
3047
3048 2002-08-23 Grace Sainsbury <graces@redhat.com>
3049
3050 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3051 when breakpoints fail. Move general breakpoint error messages to
3052 insert_breakpoints.
3053 * breakpoint.c (insert_breakpoints): Change warnings when
3054 breakpoints are nto inserted to specify the type. Remove call to
3055 memory_error when hardware breakpoints can't be inserted. Remove
3056 multiple calls to warning so all messages are sent to the user at
3057 once.
3058 (delete_breakpoints): Make insert error messsages more explicit.
3059
3060 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3061
3062 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3063 gdbserver/ChangeLog.
3064
3065 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3066
3067 * i386-tdep.c: Include "objfiles.h".
3068 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3069 skip_trampoline_code.
3070 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3071 (CPLUS_MARKER): Define to '.'.
3072
3073 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3074 member.
3075 (linux_corefile_thread_callback): Increase args->num_notes.
3076 (linux_make_note_section): Initialize thread_args.num_notes, and
3077 use it to determine whether notes for any threads were created.
3078
3079 2002-08-23 Donn Terry <donnte@microsoft.com>
3080
3081 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3082 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3083 and PCUNKILL.
3084 (write_with_trace): Conditionalize out the switch branch handling
3085 PCSHOLD if the corresponding macro is not defined. Likewise for
3086 PRSABORT and PRSTOP.
3087 This change will be needed by the Interix port.
3088
3089 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3090
3091 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3092 write_register wherever possible instead of manipulating the
3093 register bytes directly.
3094 Assign VALUE_CONTENTS to a variable and use that.
3095 The GPR numbers are now dependent on the architecture.
3096
3097 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3098
3099 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3100 ev_offset fields.
3101 (skip_prologue): Add support for BookE/e500 instructions.
3102 (e500_extract_return_value): New function.
3103 (frame_get_saved_regs): Add support for saving ev registers and
3104 pseudo gpr's.
3105 (e500_store_return_value): New function.
3106 (rs6000_gdbarch_init): Move up default intializations of
3107 deprecated_extract_return_value and store_return_value. Overwrite
3108 init of store_return_value with e500 specific version.
3109 Set extract_return_value for e500.
3110
3111 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3112
3113 * blockframe.c (generic_call_dummy_register_unwind): Use
3114 regcache_cooked_read to catch cases in which the variable is
3115 stored in a pseudo register.
3116
3117 2002-08-22 Andrew Cagney <cagney@redhat.com>
3118
3119 * NEWS: Mention that the i960 has been made obsolete.
3120 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3121 i960-tdep.c
3122 (remote-nrom.o): Obsolete target.
3123 (remote-nindy.o, i960-tdep.o): Ditto.
3124 * remote-nrom.c: Make file obsolete.
3125 * remote-nindy.c, remote-vx960.c: Ditto.
3126 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3127 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3128 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3129 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3130 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3131 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3132 i960-*-vxworks* obsolete.
3133 * MAINTAINERS: Note that the i960 is obsolete.
3134
3135 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3136
3137 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3138 detach to allow reinitialization.
3139
3140 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3141
3142 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3143 attempt).
3144
3145 2002-08-22 Jim Blandy <jimb@redhat.com>
3146
3147 * coffread.c (coff_symfile_read): Don't try to read the line
3148 number table from disk if the image file doesn't have a symbol
3149 table; we'll never actually look at the info anyway, and Windows
3150 ships DLL's with bogus file offsets for the line number data.
3151
3152 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3153
3154 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3155 an e500 executable.
3156
3157 2002-08-21 Michael Snyder <msnyder@redhat.com>
3158
3159 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3160 (MSYMBOL_SIZE): Replace macro with function.
3161 (DEFAULT_MIPS_TYPE): Delete unused macro.
3162 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3163 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3164
3165 2002-08-21 Jim Blandy <jimb@redhat.com>
3166
3167 * valops.c (value_cast): Simplify and correct logic for doing a
3168 static cast from a pointer to a base class to a pointer to a
3169 derived class.
3170
3171 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3172
3173 * infcmd.c (default_print_registers_info): Replace
3174 do_registers_info.
3175 (registers_info): Use gdbarch_print_registers_info instead of
3176 DO_REGISTERS_INFO.
3177 * inferior.h (default_print_registers_info): Replace
3178 do_registers_info.
3179 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3180 (DO_REGISTERS_INFO): Change to a predicate function.
3181 * gdbarch.h, gdbarch.c: Regenerate.
3182
3183 2002-08-21 Keith Seitz <keiths@redhat.com>
3184
3185 * gdb-events.sh: Add target-changed event.
3186 * gdb-events.c: Regenerated.
3187 * gdb-events.c: Regenerated.
3188 * valops.c (value_assign): Add target-changed event notification
3189 to inlval_register, lval_memory, and lval_reg_frame_relative.
3190
3191 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3192
3193 * NEWS: Add an entry regarding the improvement of the next/step
3194 operation on Alpha Tru64 multi-processor machines.
3195
3196 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3197
3198 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3199 directores.
3200 * Makefile.in: Update all _h macro definitions.
3201 * Makefile.in (install-gdbtk): Move to install section.
3202 (rdi-share/libangsd.a): Move to end of file.
3203
3204 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3205
3206 * frame.c (frame_register_unwind): When a register, set addrp to
3207 the register's byte.
3208
3209 2002-08-20 Michael Snyder <msnyder@redhat.com>
3210
3211 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3212 used locally, so move them from the target machine header to here.
3213 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3214 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3215 Make static.
3216 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3217
3218 2002-08-20 Andrew Cagney <cagney@redhat.com>
3219
3220 * NEWS: Mention that the Apollo line was made obsolete.
3221 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3222 m68*-hp-hpux* obsolete.
3223 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3224 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3225 * buildsym.c (make_blockvector): Make static.
3226 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3227 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3228 (ALLDEPFILES): Remove dstread.c.
3229 (dstread.o): Obsolete make rule.
3230 * dstread.c: Makefile obsolete.
3231 * dst.h: Ditto.
3232 * config/m68k/hp300hpux.mt: Ditto.
3233 * config/m68k/hp300hpux.mh: Ditto.
3234 * config/m68k/hp300bsd.mt: Ditto.
3235 * config/m68k/hp300bsd.mh: Ditto.
3236 * config/m68k/apollo68b.mt: Ditto.
3237 * config/m68k/apollo68v.mh: Ditto.
3238 * config/m68k/apollo68b.mh: Ditto.
3239
3240 2002-08-20 Michael Snyder <msnyder@redhat.com>
3241
3242 * mips-tdep.c (mips_in_return_stub): Make static.
3243 (mips_gdbarch_init): Set in_solib_return_trampoline.
3244 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3245
3246 2002-08-20 Michael Snyder <msnyder@redhat.com>
3247
3248 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3249 * gdbarch.c, gdbarch.h: Regenerate.
3250 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3251 Add.
3252 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3253
3254 2002-08-20 Michael Snyder <msnyder@redhat.com>
3255
3256 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3257 (mips_gdbarch_init): Set skip_trampoline_code,
3258 in_solib_call_trampoline.
3259 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3260 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3261
3262 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3263
3264 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3265
3266 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3267 vector type for ev registers.
3268 (e500_pseudo_register_read): New function.
3269 (e500_pseudo_register_write): New function.
3270 (e500_dwarf2_reg_to_regnum): New function.
3271 (PPC_UISA_NOFP_SPRS): New macro.
3272 (PPC_EV_REGS): New macro.
3273 (PPC_GPRS_PSEUDO_REGS): New macro.
3274 (registers_e500): New register set for e500.
3275 (variants): Add e500 variant.
3276 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3277 before setting architectural dependent variations. Initialize ev
3278 registers numbers. Add case for e500 architecture. Set the
3279 number of pseudo registers.
3280
3281 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3282
3283 * rs6000-tdep.c: Clean up comments.
3284
3285 2002-08-20 Andrew Cagney <cagney@redhat.com>
3286
3287 * h8300-tdep.c: Re-indent file.
3288
3289 2002-08-20 Jim Blandy <jimb@redhat.com>
3290
3291 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3292 default for this.
3293
3294 2002-08-20 Keith Seitz <keiths@redhat.com>
3295
3296 * breakpoints.c (watch_command_1): Use internal breakpoint
3297 when setting a watchpoint_scope breakpoint.
3298
3299 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3300
3301 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3302 (build_builtin_type_vec64i): Ditto.
3303 (build_builtin_type_vec128): Ditto.
3304 (build_builtin_type_vec128i): Ditto.
3305
3306 2002-08-19 Michael Snyder <msnyder@redhat.com>
3307
3308 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3309 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3310 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3311 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3312 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3313 CALL_DUMMY_ADDRESS): Delete.
3314 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3315 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3316 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3317 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3318 push_return_address.
3319 (mips_register_raw_size, mips_eabi_use_struct_convention,
3320 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3321 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3322 mips_init_extra_frame_info, mips_eabi_push_arguments,
3323 mips_n32n64_push_arguments, mips_push_return_address,
3324 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3325 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3326
3327 2002-08-19 Michael Snyder <msnyder@redhat.com>
3328
3329 * mips-tdep.c (mips_frame_num_args): New function.
3330 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3331 frame_saved_pc, frame_args_address, frame_locals_address,
3332 frame_num_args, and frame_args_skip.
3333 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3334 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3335 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3336 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3337
3338 2002-08-20 Michael Snyder <msnyder@redhat.com>
3339
3340 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3341 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3342 * mips-tdep.c (mips_store_struct_return): New function.
3343 (mips_extract_struct_value_address): New function.
3344 (mips_gdbarch_init): Set store_struct_return and
3345 extract_struct_value_address.
3346
3347 2002-08-20 David Carlton <carlton@math.stanford.edu>
3348
3349 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3350 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3351 (read_file_scope): Check that line_header is nonzero before
3352 decoding macro information.
3353
3354 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3355
3356 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3357 flag the general-purpose registers as floating-point on targets
3358 that don't support the floating-point registers.
3359
3360 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3361
3362 * rs6000-tdep.c (altivec_register_p): Delete.
3363 (rs6000_do_altivec_registers): Delete.
3364 (rs6000_altivec_registers_info): Delete.
3365 (rs6000_do_registers_info): Delete.
3366 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3367 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3368
3369 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3370
3371 * infcmd.c (do_registers_info): Print vector registers in hex
3372 format only.
3373 (print_vector_info): Check that printing registers
3374 makes sense.
3375 (print_float_info): Ditto.
3376
3377 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3378
3379 * mips-tdep.c (mips_gdbarch_init): Update.
3380 (mips_o32_extract_return_value): Rewrite.
3381 (mips_o32_store_return_value): Rewrite.
3382 (mips_o32_xfer_return_value): New function.
3383 (mips_xfer_register): Tweak debug print message. Allow for
3384 buf_offset when dumping the value transfered.
3385
3386 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3387
3388 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3389 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3390 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3391 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3392 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3393
3394 2002-08-14 Michael Snyder <msnyder@redhat.com>
3395
3396 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3397
3398 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3399
3400 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3401 register.
3402 (P): New macro to define a register as a pseudo register.
3403 (R, R4, R8, R16, FR32, R64, R0): Updated.
3404 (struct variant): Add new fields for number of pseudo registers
3405 and number of total registers.
3406 (tot_num_registers): New macro replacing....
3407 (num_registers): ...deleted macro.
3408 (num_registers): New function.
3409 (num_pseudo_registers): New function.
3410 (variants): Update all variants to intialize new fields correctly.
3411 Postpone initialization of number of pseudo regs and real regs.
3412 (init_variants): New function.
3413 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3414 registers offsets.
3415
3416 2002-08-19 David Carlton <carlton@math.stanford.edu>
3417
3418 * valops.c (search_struct_field): Change error message to treat
3419 return value of 0 from value_static_field as meaning that field is
3420 optimized out.
3421 (value_struct_elt_for_reference): Ditto.
3422 * values.c (value_static_field): Treat an unresolved location the
3423 same as a nonexistent symbol. Fix PR gdb/635.
3424 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3425 enclosed. Fix PR gdb/574.
3426 * MAINTAINERS: Add self to Write After Approval list.
3427
3428 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3429
3430 * mips-tdep.c (mips_xfer_register): New function.
3431 (mips_n32n64_extract_return_value): Rewrite.
3432 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3433 instead of deprecated_extract_return_value.
3434
3435 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3436
3437 * rs6000-tdep.c (TDEP): Delete macro.
3438 (branch_dest): Replace use of TDEP macro with its body.
3439 (rs6000_pop_frame): Ditto.
3440 (rs6000_push_arguments): Ditto.
3441 (rs6000_skip_trampoline_code): Ditto.
3442 (rs6000_frame_saved_pc): Ditto.
3443 (rs6000_frame_chain): Ditto.
3444 (rs6000_register_name): Ditto.
3445 (rs6000_register_byte): Ditto.
3446 (rs6000_register_raw_size): Ditto.
3447 (rs6000_register_virtual_type): Ditto.
3448 (rs6000_register_convertible): Ditto.
3449 (rs6000_convert_from_func_ptr_addr): Ditto.
3450
3451 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3452
3453 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3454 conditionally.
3455 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3456 MIPS_LINUX_JB_ELEMENT_SIZE.
3457 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3458 for MAX_REGISTER_RAW_SIZE arrays.
3459 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3460 MIPS_LINUX_JB_ELEMENT_SIZE.
3461
3462 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3463
3464 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3465
3466 2002-08-19 Aidan Skinner <aidan@velvet.net>
3467
3468 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3469 ada-valprint.c ada-tasks.c.
3470 (YYFILES): Add ada-exp.y.
3471 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3472 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3473 (ada-exp.tab.o): New target.
3474
3475 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3476
3477 * regcache.c (regcache_xfer_part): New function.
3478 (regcache_raw_read_part): New function.
3479 (regcache_raw_write_part): New function.
3480 (regcache_cooked_read_part): New function.
3481 (regcache_cooked_write_part): New function.
3482 * regcache.h (regcache_raw_read_part): Declare.
3483 (regcache_raw_write_part): Declare.
3484 (regcache_cooked_read_part): Declare.
3485 (regcache_cooked_write_part): Declare.
3486
3487 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3488
3489 * remote.c (remote_open_1): Add async_p.
3490 (remote_async_open_1): Delete.
3491 (open_remote_target): Delete.
3492 (remote_open, extended_remote_open): Update calls to remote_open_1.
3493 (remote_async_open, extended_remote_async_open): Call
3494 remote_open_1 instead of remote_async_open_1.
3495
3496 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3497
3498 * blockframe.c: Fix a few coding standard violations.
3499
3500 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3501
3502 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3503 here from ...
3504 * config/i386/tm-i386sco5.h: ... here. File removed.
3505 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3506
3507 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3508 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3509 (TM_FILE): Set to tm-i386.h.
3510 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3511 * config/i386/tm-i386v.h: Remove file.
3512 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3513 instead of "i386/tm-i386v.h".
3514 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3515 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3516 "i386/tm-i386v.h".
3517 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3518 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3519 "i386/tm-i386.h".
3520
3521 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3522
3523 * config/i386/nm-i386v.h: Add protection against
3524 multiple-inclusion.
3525 (i386_register_u_addr): Remove prototype.
3526 (register_u_addr): New prototype.
3527 (REGISTER_U_ADDR): Redefine accordingly.
3528 * i386v-nat.c: Improve several comments.
3529 (i386_register_u_addr): Change signature and rename to
3530 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3531 ubase variable.
3532
3533 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3534
3535 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3536 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3537 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3538 deprecated_extract_return_value.
3539 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3540 rename mips_o32o64_push_arguments.
3541 (mips_gdbarch_init): Update.
3542 (mips_extract_return_value): Delete.
3543 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3544 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3545 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3546 (mips_n32n64_extract_return_value): Clone
3547 mips_extract_return_value.
3548 (mips_store_return_value): Delete.
3549 (mips_o32_store_return_value): Clone mips_store_return_value.
3550 (mips_o64_store_return_value): Clone mips_store_return_value.
3551 (mips_eabi_store_return_value): Clone mips_store_return_value.
3552 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3553
3554 2002-08-18 Aidan Skinner <aidan@velvet.net>
3555
3556 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3557 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3558
3559 2002-08-18 Aidan Skinner <aidan@velvet.net>
3560
3561 * ada-lang.c: Run through gdb_indent.sh.
3562 * ada-lang.h: Run through gdb_indent.sh.
3563 * ada-tasks.c: Run through gdb_indent.sh.
3564 * ada-typeprint.c: Run through gdb_indent.sh.
3565 * ada-valprint.c: Run through gdb_indent.sh.
3566
3567 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3568
3569 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3570 ABI.
3571
3572 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3573
3574 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3575
3576 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3577 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3578
3579 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3580 write_register_gen instead of write_register_bytes.
3581
3582 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3583 i[3456]-*-osf1mk* configurations have been made obsolete.
3584 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3585 i[3456]86-*-osf1mk* hosts obsolete.
3586 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3587 targets obsolete.
3588 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3589 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3590 config/i386/i386m3.mt, config/i386/nm-m3.h,
3591 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3592 config/i386/i386mk.mh, config/i386/i386mk.mt,
3593 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3594 obsolete.
3595 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3596 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3597 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3598
3599 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3600
3601 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3602 (hppa_value_returned_from_stack): Declare.
3603 (hppa_extract_return_value): Declare.
3604 * config/pa/hppa.mt: New file.
3605 * configure.tgt: Recognize hppa*-*-*.
3606 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3607
3608 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3609
3610 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3611 comment.
3612
3613 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3614
3615 * top.c (gdb_rl_operate_and_get_next): Make sure
3616 operate-and-get-next functions correctly even when the history
3617 list is completely filled.
3618
3619 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3620
3621 * MAINTAINERS (Target Instruction Set Architectures): Rename
3622 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3623 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3624 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3625 already listed under Host/Native.
3626
3627 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3628 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3629 mips*-*-*.
3630
3631 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3632
3633 * config/ia64/ia64.mt: New file.
3634 * config/alpha/alpha.mt: New file.
3635 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3636 ia64-linux-gnu. Mention that ia64-elf is broken.
3637 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3638
3639 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3640
3641 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3642 generic_func_frame_valid instead of func_frame_valid.
3643
3644 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3645
3646 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3647 procfs appears to be broken when debugging on multi-processor
3648 machines. So enable software single stepping in order to avoid
3649 using the procfs interface to do next/step operations, using
3650 internal breakpoints instead.
3651
3652 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3653 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3654 make this pc address equal to the value it would have if the
3655 system stepping capability was used. Also set a new flag used
3656 to ensure that we don't readjust the PC one more time later.
3657
3658 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3659 address by DECR_PC_AFTER_BREAK when software single step is
3660 in use for this architecture, as this has already been taken
3661 care of in handle_inferior_event().
3662
3663 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3664
3665 * infrun.c (handle_inferior_event): Minor reformatting, to make
3666 a rather long condition expression easier to read.
3667
3668 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3669
3670 * Makefile.in (gdbtk.o): Move to end of file.
3671 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3672 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3673 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3674 (gdbtk-wrapper.o, gdbres.o): Ditto.
3675
3676 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3677
3678 * Makefile.in (copying.o): Separate out compile rule.
3679 (hpux-thread.o, procfs.o, signals.o): Ditto.
3680 (v850ice.o, z8k-tdep.o): Ditto.
3681 (tui-file.o): Move to TUI section.
3682 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3683 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3684
3685 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3686
3687 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3688 skip_trampoline_code, for better namespace-proofing.
3689
3690 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3691
3692 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3693
3694 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3695
3696 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3697
3698 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3699 signal, check whether we hit a breakpoint before checking for a
3700 single step breakpoint. Otherwise, GDB fails to notice that a
3701 breakpoint has been hit when stepping onto a breakpoint.
3702
3703 2002-08-16 Keith Seitz <keiths@redhat.com>
3704
3705 * gdb-events.sh (clear_gdb_event_hooks): New function.
3706 * gdb-events.c: Regenerate.
3707 * gdb-events.h: Regenerate.
3708
3709 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3710
3711 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3712 not_a_sw_breakpoint.
3713 * breakpoint.h (bpstat_stop_status): Add parameter names.
3714
3715 2002-08-16 Grace Sainsbury <graces@redhat.com>
3716
3717 * remote.c (remote_insert_hw_breakpoint)
3718 (remote_remove_hw_breakpoint): Fix calculation of length field
3719 for Z-packet.
3720
3721 2002-08-15 Michael Snyder <msnyder@redhat.com>
3722
3723 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3724 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3725 (supply_fpregset): Ditto.
3726
3727 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3728 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3729 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3730 (TARGET_READ_SP): Delete.
3731 (DO_REGISTERS_INFO): Delete.
3732 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3733 Delete.
3734 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3735 from macros to functions.
3736
3737 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3738 (mips_register_convertible, mips_register_convert_to_virtual,
3739 mips_register_convert_to_raw): Make static.
3740 (mips_read_sp): New function.
3741 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3742 (mips_do_registers_info): Make static.
3743 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3744 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3745 (mips_register_convert_from_type, mips_register_convert_to_type):
3746 New functions.
3747 (mips_gdbarch_init): Set up function_start_offset,
3748 register_virtual_size, pc_in_sigtramp.
3749
3750 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3751
3752 * infcmd.c (vector_info): New function.
3753 (_initialize_infcmd): Add command "info vector".
3754 (print_vector_info): New function.
3755
3756 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3757 * gdbarch.h, gdbarch.c: Regenerate.
3758
3759 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3760
3761 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3762 ``print_all''. Only print vector registers when ``print_all''.
3763
3764 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3765
3766 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3767 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3768
3769 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3770 Add `args' parameter.
3771 * gdbarch.h, gdbarch.c: Regenerate.
3772
3773 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3774
3775 * infcmd.c (float_info): Call print_float_info.
3776 (print_float_info): New function. By default, print the
3777 floating-point registers.
3778
3779 * arch-utils.h (default_print_float_info): Delete declaration.
3780 * arch-utils.c (default_print_float_info): Delete function.
3781
3782 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3783
3784 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3785 out define.
3786
3787 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3788 FRAME.
3789
3790 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3791 * configure.host: Make i[3456]86-*-aix host obsolete.
3792 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3793 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3794 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3795 config/i386/xm-i386aix.h: Make files obsolete.
3796 * i386aix-nat.c: Make file obsolete.
3797 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3798 (i386aix-nat.o): Make target obsolete.
3799
3800 * config/i386/nm-gnu.h: Removed.
3801 * config/i386/nm-i386gnu.h: New file.
3802 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3803 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3804 Moved here from ...
3805 * config/i386/tm-i386gnu.h: ... here. Removed.
3806 * config/i386/xm-i386gnu.h: Removed.
3807 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3808 (NAT_FILE): Set to nm-i386gnu.h.
3809 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3810 * i386-tdep.c: New file.
3811 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3812 (i386gnu-tdep.o): Specify dependencies.
3813
3814 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3815
3816 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3817 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3818 Adjust a few comments to reflect reality a bit closer.
3819 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3820 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3821 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3822 target_insert_watchpoint, target_remove_watchpoint):
3823 Move defines to ...
3824 * config/i386/nm-i386sco5.h: ... here.
3825 (kernel_u_size): Add prototype. Improve a few comments and add
3826 protection against multiple inclusion.
3827
3828 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3829 out define.
3830
3831 * uw-thread.c (SP_ARG0): Define if not already defined.
3832 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3833
3834 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3835
3836 * config/i386/tm-i386.h: Don't include "regcache.h".
3837
3838 * i387-tdep.h (i387_print_float_info): New prototype.
3839 * i387-tdep.c (print_i387_value, print_i387_ext,
3840 print_i387_status_word, print_i387_control_word): Add `struct
3841 ui_file *' argument and use it for output.
3842 (i387_print_float_info): Renamed from i387_float_info. Add
3843 `struct gdbarch *' and `struct ui_file *' arguments and use the
3844 latter for output.
3845 * i386-tdep.c: Include "i387-tdep.h".
3846 (i386_gdbarch_init): Set print_float_info.
3847 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3848 (FLOAT_INFO): Remove define.
3849
3850 2002-08-13 Michael Snyder <msnyder@redhat.com>
3851
3852 * mips-tdep.c (mips_push_arguments): Rename to
3853 mips_eabi_push_arguments, and tune for EABI.
3854 (MIPS_REGS_HAVE_HOME_P): Delete.
3855 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3856 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3857 Delete references to mips_regs_have_home_p.
3858
3859 2002-08-14 Keith Seitz <keiths@redhat.com>
3860
3861 * Makefile.in (install-gdbtk): Create insight plugin directory.
3862 Install plugins.tcl file.
3863
3864 2002-08-14 Keith Seitz <keiths@redhat.com>
3865
3866 * configure.in: Move SUBDIRS to near top of the file so that
3867 --enable options may add things to it.
3868 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3869 * configure: Regenerate.
3870
3871 2002-08-13 Michael Snyder <msnyder@redhat.com>
3872
3873 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3874 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3875 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3876
3877 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3878
3879 * vax-tdep.c (vax_get_saved_register): Delete function.
3880 (vax_gdbarch_init): Update.
3881 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3882 (ns32k_gdbarch_init): Update.
3883 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3884 (alpha_gdbarch_init): Update.
3885
3886 2002-08-13 Andrew Cagney <cagney@redhat.com>
3887
3888 * regcache.c (init_regcache_descr): Overallocate the
3889 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3890 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3891 nr_raw_registers.
3892 (set_register_cached): Add range checking assertions. Use
3893 current_regcache.
3894
3895 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3896
3897 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3898 numbers for MMX registers.
3899
3900 2002-08-13 Andrew Cagney <cagney@redhat.com>
3901
3902 * i386-tdep.c (i386_gdbarch_init): Use
3903 generic_unwind_get_saved_register.
3904
3905 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3906
3907 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3908 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3909 target vector.
3910 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3911 Delete. Add comment regarding this now-deleted target method.
3912
3913 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3914
3915 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3916 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3917 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3918 real PC and the page number (if it's within the memory bank window).
3919 (m68hc11_pseudo_register_write): Likewise when saving.
3920 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3921 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3922 (m68hc11_register_raw_size): And use 32-bit for it.
3923 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3924 16K memory bank is used by the prog; also use the virtual pc.
3925
3926 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3927
3928 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3929 (m68hc11_gdbarch_init): Install it in gdbarch.
3930 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3931 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3932 (MSYMBOL_SIZE): New for documentation.
3933 (insn_return_kind): Enum to specify how a function returns.
3934 (frame_extra_info): Cleanup and record the return mode.
3935 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3936 register in address computation.
3937 (m68hc11_get_return_insn): New to obtain the return instruction used
3938 by the function.
3939 (m68hc11_frame_init_saved_regs): Take into account the return
3940 instruction used by the function for far and interrupt functions.
3941 (m68hc11_init_extra_frame_info): Take into account page register.
3942 (m68hc11_frame_args_address): Adjust according to the return mode.
3943 (show_regs): Print page register only when it's used.
3944
3945 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3946
3947 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3948 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3949 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3950 registers.
3951 (m68hc11_register_raw_size): Likewise.
3952
3953 2002-08-13 Andrew Cagney <cagney@redhat.com>
3954
3955 * i386-tdep.c (i386_register_name): Handle mmx registers.
3956 (mmx_regnum_p): New function.
3957 (i386_mmx_names): New array.
3958 (mmx_num_regs): New variable.
3959 (i386_pseudo_register_read): New function.
3960 (i386_pseudo_register_write): New function.
3961 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3962
3963 * regcache.c (regcache_raw_read_unsigned): New function.
3964 (regcache_raw_read_signed): New function.
3965 * regcache.h (regcache_raw_read_unsigned): Declare.
3966 (regcache_raw_read_signed): Declare.
3967
3968 2002-08-13 Andrew Cagney <cagney@redhat.com>
3969
3970 * regcache.c (regcache_raw_read_as_address): Delete function.
3971 (regcache_cooked_read_signed): New function.
3972 (regcache_cooked_read_unsigned): New function.
3973 * regcache.h (regcache_cooked_read_signed): Declare.
3974 (regcache_cooked_read_unsigned): Declare.
3975 (regcache_raw_read_as_address): Delete declaration.
3976
3977 * blockframe.c (generic_read_register_dummy): Use
3978 regcache_cooked_read_unsigned.
3979 * i386-tdep.c (i386_extract_struct_value_address): Use
3980 regcache_cooked_read_unsigned.
3981
3982 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3983
3984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3985 double sizes according to ELF ABI flags.
3986 (gdbarch_tdep): Record elf_flags.
3987
3988 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3989
3990 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3991 (m6812_prolog): They can appear in 68HC12 function prologue.
3992 (m68hc11_frame_chain): Cleanup.
3993
3994 2002-08-12 Andrew Cagney <cagney@redhat.com>
3995
3996 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3997 declarations.
3998 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3999 (i386_linux_register_raw_size): Delete function.
4000 (i386_linux_init_abi): Update.
4001 * i386-tdep.c (i386_register_raw_size): Delete function.
4002 (i386_register_byte): Delete function.
4003 (i386_gdbarch_init): Update.
4004 (i386_register_size): Delete array.
4005 (i386_register_offset): Delete array.
4006
4007 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4008 (REGISTER_RAW_SIZE): Delete macro.
4009 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4010 (REGISTER_BYTE): Delete macro.
4011
4012 2002-08-11 Aidan Skinner <aidan@velvet.net>
4013
4014 * ada-lang.c (ada_lookup_partial_symbol)
4015 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4016 prototype names so that grep ^func works properly.
4017
4018 * ada-lang.c (ada_array_element_type)
4019 (ada_lookup_partial_symbol): Fix typos in parameter list.
4020
4021 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4022 Fix prototype names so that grep ^func works properly.
4023
4024 2002-08-10 Andrew Cagney <cagney@redhat.com>
4025 Elena Zannoni <ezannoni@redhat.com>
4026 Martin M. Hunt <hunt@redhat.com>
4027
4028 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4029 (build_builtin_type_vec128i): Set the vector bit.
4030 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4031 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4032 (build_builtin_type_vec64): New function.
4033 (build_builtin_type_vec64i): New function.
4034 (build_gdbtypes): Initialize builtin_type_vec64 and
4035 builtin_type_vec64i.
4036
4037 2002-08-09 Andrew Cagney <cagney@redhat.com>
4038
4039 * regcache.c (regcache_dump): Compare the register offset
4040 with REGISTER_BYTE.
4041 * arch-utils.c (generic_register_byte): New function.
4042 * arch-utils.h (generic_register_byte): Declare.
4043 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4044 * gdbarch.h, gdbarch.c: Regenerate.
4045
4046 2002-08-09 Andrew Cagney <cagney@redhat.com>
4047
4048 * regcache.c: Include "gdbcmd.h"
4049 (_initialize_regcache): Add commands "maintenance print
4050 registers", "maintenance print raw-registers" and "maintenance
4051 print cooked-registers".
4052 (enum regcache_dump_what): Define.
4053 (dump_endian_bytes): New function.
4054 (regcache_dump): New function.
4055 (regcache_print): New function.
4056 (maintenance_print_registers): New function.
4057 (maintenance_print_raw_registers): New function.
4058 (maintenance_print_cooked_registers): New function.
4059 * Makefile.in (regcache.o): Update dependencies.
4060
4061 2002-08-09 Michael Snyder <msnyder@redhat.com>
4062
4063 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4064 (mips_push_arguments): Correct some comments. Use paddr_nz
4065 for printing addresses in debug output. Replace static
4066 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4067 (mips_n32n64_push_arguments): New function, cloned from
4068 mips_push_arguments and tuned for the n32/n64 ABI.
4069 (mips_push_register): Buffer needs dynamic allocation.
4070 (mips_print_register): Ditto.
4071 (do_gp_register_row): Ditto.
4072 (mips_store_return_value): Ditto.
4073 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4074
4075 2002-08-09 Don Howard <dhoward@redhat.com>
4076
4077 * memattr.c (mem_info_command): Print special case of upper bound
4078 as max CORE_ADDR + 1.
4079
4080 2002-08-08 Michael Snyder <msnyder@redhat.com>
4081
4082 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4083 returns structs by ref if they're too big to fit in two registers.
4084
4085 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4086
4087 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4088 saved regs value.
4089 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4090 mips_find_saved_regs().
4091 (mips_pop_frame): Likewise.
4092
4093 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4094
4095 * blockframe.c (frame_saved_regs_register_unwind): Revise
4096 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4097 frames are in use.
4098
4099 2002-08-09 Grace Sainsbury <graces@redhat.com>
4100
4101 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4102 T-packets; the 'a' is not taken as a register number.
4103 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4104 (remote_stopped_data_address): New functions; add to target
4105 vector.
4106 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4107 prototypes to match other implementations of this
4108 function. replace integer argument with pointer -- the length
4109 field in the Z-packet is the length of what is pointed to or 1 if
4110 pointer is null. Add to target vector.
4111 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4112 target vector.
4113
4114 From Mark Salter:
4115 * remote.c (remote_wait): Add support to extract optional
4116 watchpoint information from T-packet. Ignore unrecognized
4117 optional info in T-packet.
4118 (remote_async_wait): Ditto.
4119
4120 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4121
4122 * cli/cli-dump.c: Change fopen modes to use binary open modes
4123 as defined in include/fopen-bin.h throughout.
4124
4125 2002-08-08 Michael Snyder <msnyder@redhat.com>
4126
4127 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4128
4129 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4130
4131 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4132 assertion failure by returning early after a warning.
4133
4134 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4135
4136 * mips-tdep.c (mips_find_saved_regs): Make static.
4137 (mips_frame_init_saved_regs): New function.
4138 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4139 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4140 (mips_find_saved_regs): Delete declaration.
4141
4142 2002-08-08 Grace Sainsbury <graces@redhat.com>
4143
4144 * remote.c (remote_wait, remote_async_wait): Change
4145 thread_num from int to ULONGEST.
4146 (unpack_varlen_hex): Change result parameter from
4147 int * to ULONGEST *.
4148
4149 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4150
4151 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4152 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4153 powerpc*-*-*.
4154 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4155
4156 2002-08-08 Andrew Cagney <cagney@redhat.com>
4157
4158 * gcore.c (override_derive_stack_segment): Delete variable.
4159 (preempt_derive_stack_segment): Delete function.
4160 (derive_stack_segment): Delete function.
4161 (default_derive_stack_segment): Renamed to derive_stack_segment.
4162 (override_derive_heap_segment): Delete variable.
4163 (preempt_derive_heap_segment): Delete function.
4164 (derive_heap_segment): Delete function.
4165 (default_derive_heap_segment): Rename to derive_heap_segment.
4166
4167 2002-08-06 Michael Snyder <msnyder@redhat.com>
4168
4169 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4170 * mips-tdep.c (mips_EABI_use_struct_convention,
4171 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4172 New functions. (mips_use_struct_convention): Delete.
4173 (mips_gdbarch_init): set use_gdbarch_convention.
4174
4175 2002-08-06 Michael Snyder <msnyder@redhat.com>
4176
4177 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4178 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4179 mips_o32_reg_struct_has_addr): New functions.
4180 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4181
4182 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4183
4184 * regcache.c (pseudo_register): Delete function.
4185 (fetch_register): Delete function.
4186 (store_register): Delete function.
4187 (regcache_raw_read, legacy_read_register_gen): Use
4188 target_fetch_registers instead of fetch_register.
4189 (legacy_write_register_gen, regcache_raw_write): Use
4190 target_store_register instead of store_register.
4191 (write_register_bytes): Ditto.
4192
4193 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4194 (STORE_PSEUDO_REGISTER): Delete.
4195 * gdbarch.h, gdbarch.c: Regenerate.
4196
4197 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4198
4199 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4200 write dump file binary.
4201
4202 2002-08-05 Michael Snyder <msnyder@redhat.com>
4203
4204 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4205 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4206 (mips_gdbarch_init): Set N32 target to be mips64.
4207
4208 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4209
4210 * frame.c (find_saved_register): Break out of loop once saved
4211 register address is found. Don't mention sparc in loop comment
4212 anymore.
4213
4214 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4215
4216 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4217 mips_default_saved_regsize to 8.
4218
4219 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4220
4221 * gcore.c: Do not include <sys/procfs.h>.
4222 * Makefile.in (gcore.o): Update dependencies.
4223
4224 2002-08-06 Andrew Cagney <cagney@redhat.com>
4225
4226 * configure.tgt: Make arc-*-* obsolete.
4227 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4228 * MAINTAINERS: Make arc-elf obsolete.
4229 * arc-tdep.c: Make file obsolete.
4230 * config/arc/arc.mt: Ditto.
4231 * config/arc/tm-arc.h: Ditto.
4232
4233 2002-08-05 Theodore A. Roth <troth@verinet.com>
4234
4235 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4236
4237 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4238
4239 * mcore-tdep.c (mcore_gdbarch_init): Use
4240 generic_unwind_get_saved_register instead of
4241 generic_get_saved_register.
4242 * v850-tdep.c (v850_gdbarch_init): Ditto.
4243 * frv-tdep.c (frv_gdbarch_init): Ditto.
4244 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4245 * s390-tdep.c (s390_gdbarch_init): Ditto.
4246 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4247 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4248 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4249
4250 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4251
4252 * objfiles.h: Add missing #include "symfile.h"
4253
4254 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4255
4256 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4257
4258 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4259 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4260 of FIELD_BITSIZE.
4261
4262 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4263
4264 * NEWS: Cleanup and nitpick.
4265
4266 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4267
4268 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4269
4270 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4271
4272 * Makefile.in (gdbtk-bp.o): Update dependencies.
4273 (gdbtk-register.o): Ditto.
4274 (gdbtk-varobj.o): Ditto.
4275
4276 2002-08-03 Andrew Cagney <cagney@redhat.com>
4277
4278 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4279 m68hc11_fetch_pseudo_register.
4280 (m68hc11_pseudo_register_write): Replace
4281 m68hc11_store_pseudo_register.
4282 (m68hc11_gdbarch_init): Update.
4283
4284 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4285
4286 * gdbarch.sh: Include "gdb_string.h".
4287 * gdbarch.c: Regenerate.
4288
4289 * regcache.c: Include "gdb_string.h".
4290 * ax-general.c: Ditto.
4291 * varobj.c: Ditto.
4292 * std-regs.c: Ditto.
4293 * fbsd-proc.c: Ditto.
4294 * thread.c: Ditto.
4295
4296 * Makefile.in (regcache.o): Update dependencies.
4297 (thread.o, gdbarch.o): Ditto.
4298 (ax-general.o, gdbarch.o): Ditto.
4299 (varobj.o, std-regs.o): Ditto.
4300 (fbsd-proc.o): Specify dependencies.
4301
4302 2002-08-02 Andrew Cagney <cagney@redhat.com>
4303
4304 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4305 regnum.
4306 (regcache_cooked_write): Ditto.
4307
4308 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4309
4310 * regcache.c (regcache_cooked_read): New function.
4311 (regcache_cooked_write): New function.
4312 (read_register_gen): Rewrite using regcache_cooked_read.
4313 (write_register_gen): Rewrite using regcache_cooked_write.
4314
4315 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4316 Declare.
4317
4318 2002-08-02 Andrew Cagney <cagney@redhat.com>
4319
4320 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4321 Replace the architecture methods register_read and register_write.
4322 * gdbarch.h, gdbarch.c: Regenerate.
4323 * regcache.c (init_regcache_descr): Update.
4324 (read_register_gen): Update.
4325 (write_register_gen): Update.
4326 (supply_register): Update comment.
4327
4328 * sh-tdep.c (sh_gdbarch_init): Update.
4329 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4330 `regcache' and `gdbarch' parameters. Make `buffer' a void
4331 pointer. Update code.
4332 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4333 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4334 void pointer. Update code.
4335 (sh64_register_write): Delete.
4336 (sh4_register_read): Delete.
4337 (sh64_register_read): Delete.
4338 (sh4_register_write): Delete.
4339 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4340 void pointer, `to' parameter a void pointer.
4341 (sh_sh64_register_convert_to_raw): Ditto.
4342
4343 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4344
4345 * mips-tdep.c (mips_register_virtual_type): Use architecture
4346 invariant return values.
4347
4348 2002-08-01 Andrew Cagney <cagney@redhat.com>
4349
4350 * linux-proc.c: Include "gdb_string.h".
4351 * Makefile.in (linux-proc.o): Update dependency list.
4352
4353 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4354
4355 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4356 comment.
4357
4358 2002-08-01 Grace Sainsbury <graces@redhat.com>
4359
4360 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4361 to_insert_watchpoint, to_remove_watchpoint,
4362 to_stopped_by_watchpoint, to_stopped_data_address,
4363 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4364 target vecctor. Define their corresponding macros so they call
4365 them.
4366
4367 * target.c: Add default and debug versions of for
4368 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4369 to_insert_watchpoint, to_remove_watchpoint,
4370 to_stopped_by_watchpoint, to_stopped_data_address,
4371 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4372
4373 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4374
4375 * mips-tdep.c (mips_register_virtual_type): New function.
4376 (mips_gdbarch_init): Register mips_register_virtual_type()
4377 with gdbarch machinery.
4378 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4379 this file instead of tm-bigmips.h.
4380 (MIPS_REGSIZE): Delete this macro.
4381 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4382 multiarch version in mips-tdep.c will be found.
4383
4384 2002-08-01 Andrew Cagney <cagney@redhat.com>
4385
4386 * NEWS: Menion that CHILL has been made obsolete.
4387
4388 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4389 * stabsread.c (read_range_type): Ditto.
4390 * gdbtypes.h: Ditto.
4391 * language.c (binop_type_check): Ditto.
4392 (binop_result_type): Ditto.
4393 (integral_type): Ditto.
4394 (character_type): Ditto.
4395 (string_type): Ditto.
4396 (boolean_type): Ditto.
4397 (structured_type): Ditto.
4398 (lang_bool_type): Ditto.
4399 (binop_type_check): Ditto.
4400 * language.h (_LANG_chill): Ditto.
4401 * dwarfread.c (set_cu_language): Ditto.
4402 * dwarfread.c (CHILL_PRODUCER): Ditto.
4403 * dwarfread.c (handle_producer): Ditto.
4404 * expression.h (enum exp_opcode): Ditto.
4405 * eval.c: Ditto for comments.
4406 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4407 * expprint.c (print_subexp): Ditto.
4408 (print_subexp): Ditto.
4409 * valops.c (value_cast): Ditto.
4410 (search_struct_field): Ditto.
4411 * value.h (COERCE_VARYING_ARRAY): Ditto.
4412 * symfile.c (init_filename_language_table): Ditto.
4413 (add_psymbol_with_dem_name_to_list): Ditto.
4414 * valarith.c (value_binop): Ditto.
4415 (value_neg): Ditto.
4416 * valops.c (value_slice): Ditto.
4417 * symtab.h (union language_specific): Ditto.
4418 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4419 (SYMBOL_DEMANGLED_NAME): Ditto.
4420 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4421 * defs.h (enum language): Ditto.
4422 * symtab.c (got_symtab): Ditto.
4423 * utils.c (fprintf_symbol_filtered): Ditto.
4424
4425 * ch-typeprint.c: Make file obsolete.
4426 * ch-valprint.c: Make file obsolete.
4427 * ch-lang.h: Make file obsolete.
4428 * ch-exp.c: Make file obsolete.
4429 * ch-lang.c: Make file obsolete.
4430
4431 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4432 CHILL_LIB.
4433 (TARGET_FLAGS_TO_PASS): Ditto.
4434 (CHILLFLAGS): Obsolete.
4435 (CHILL): Obsolete.
4436 (CHILL_FOR_TARGET): Obsolete.
4437 (CHILL_LIB): Obsolete.
4438 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4439 ch-valprint.c.
4440 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4441 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4442 ch-lang.o.
4443 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4444 targets.
4445
4446 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4447
4448 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4449 This does not change anything at the moment, but will be helpful
4450 later when full Ada support is integrated.
4451
4452 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4453
4454 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4455 help message.
4456
4457 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4458
4459 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4460 and save it in a local variable. Use variable in later test.
4461
4462 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4463
4464 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4465 test. (Thanks to Daniel Jacobowitz.)
4466
4467 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4468
4469 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4470 (mips_abi_strings): Add "n64".
4471 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4472
4473 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4474
4475 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4476 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4477
4478 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4479
4480 * utils.c (host_pointer_to_address, address_to_host_pointer):
4481 Use gdb_assert() instead of explicit call to internal_error().
4482
4483 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4484
4485 * Makefile.in (rs6000-nat.o): Update dependencies.
4486
4487 From Nicholas Duffek:
4488 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4489 (aix-thread.o): New rule.
4490 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4491 * config/powerpc/aix432.mh: New file.
4492
4493 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4494
4495 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4496 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4497 (fetch_core_registers, ppc_linux_supply_gregset)
4498 (ppc_linux_supply_fpregset): New functions.
4499 (ppc_linux_regset_core_fns): New.
4500 (_initialize_ppc_linux_tdep): Call add_core_fns.
4501 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4502 and ppc_linux_supply_gregset.
4503 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4504 (supply_fpregset): Call ppc_linux_supply_fpregset.
4505 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4506 corelow.o.
4507 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4508
4509 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4510
4511 * symtab.c (lookup_symbol): Demangle before lowercasing.
4512
4513 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4514
4515 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4516 declaration.
4517 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4518 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4519 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4520 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4521 "gdb_string.h".
4522 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4523 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4524 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4525 (avr-tdep.o, mon960-rom.o): Ditto.
4526 (aout_stabs_gnu_h): Define.
4527 (symtab_h): Remove $(gdb_obstack_h).
4528
4529 2002-07-30 Jim Blandy <jimb@redhat.com>
4530
4531 Patch from David Carlton <carlton@math.stanford.edu>:
4532 * gdbinit.in: Move the `dir' commands that add GDB's own source
4533 directory to the search path to the end, so that the `gdb' source
4534 directory will be searched first.
4535
4536 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4537
4538 * gdb_obstack.h: New file.
4539 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4540 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4541 * objfiles.h: Include "gdb_obstack.h".
4542 * Makefile.in (gdb_obstack_h): Define.
4543 (symtab_h): Add $(gdb_obstack_h).
4544 (objfiles_h): Add $(gdb_obstack_h).
4545
4546 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4547 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4548 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4549 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4550 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4551 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4552 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4553 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4554
4555 * Makefile.in (bcache.o): Update dependencies.
4556 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4557 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4558 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4559 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4560 (stabsread.o, symfile.o, symmisc.o): Ditto.
4561 (symtab.o, typeprint.o, macroexp.o): Ditto.
4562 (macrotab.o, mdebugread.o): Ditto.
4563 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4564 (coff_ecoff_h, aout_aout64_h): Define.
4565 (aout_stabs_gnu_h, libaout_h): Define.
4566
4567 2002-07-29 Andrew Cagney <cagney@redhat.com>
4568
4569 * regcache.c (struct regcache_descr): Rename nr_registers to
4570 nr_cooked_registers. Revise comments describing the structure
4571 member fields.
4572 (init_regcache_descr): Update.
4573 (init_legacy_regcache_descr): Update.
4574 (read_register_gen, write_register_gen): When a cooked register in
4575 the raw register range, directly access the value from the raw
4576 register cache.
4577
4578 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4579
4580 * z8k-tdep.c: Do not include "obstack.h".
4581 * h8300-tdep.c, h8500-tdep.c: Ditto.
4582 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4583 * valprint.c, v850-tdep.c: Ditto.
4584 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4585 * mn10200-tdep.c: Ditto.
4586
4587 * Makefile.in (z8k-tdep.o): Update dependencies.
4588 (m68hc11-tdep.o, valprint.o): Ditto.
4589 (v850-tdep.o, d10v-tdep.o): Ditto.
4590 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4591 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4592 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4593 (sh_opc_h, gdb_sim_sh_h): Define.
4594 (elf_sh_h, elf_bfd_h): Define.
4595 (opcode_m68hc11_h): Define.
4596 (OPCODES_SRC, OPCODES_DIR): define.
4597 (OPCODES): Use $(OPCODES_DIR).
4598 (gdb_sim_d10v_h): Rename sim_d10v_h.
4599 (gdb_sim_arm_h): Rename sim_arm_h.
4600
4601 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4602
4603 * utils.c (host_pointer_to_address, address_to_host_pointer):
4604 Change internal_error() message to indicate function responsible
4605 for the error.
4606
4607 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4608
4609 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4610 calls to local_hex_string_custom().
4611
4612 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4613
4614 * irix5-nat.c: Move IRIX shared library support from here...
4615 * solib-irix.c: ...to here. Revised substantially to work with
4616 generic solib framework.
4617
4618 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4619 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4620 * mips-irix-tdep.c: New file.
4621
4622 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4623 (mips-irix-tdep.o, solib-irix.o): New rules.
4624 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4625 solib-irix.o.
4626 * config/mips/irix6.mt (TDEPFILES): Likewise.
4627 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4628
4629 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4630
4631 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4632 disabled (via ``#if 0'') includes.
4633
4634 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4635
4636 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4637 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4638 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4639 Add support for the fpscr register.
4640 * rs6000-nat.c (regmap, fetch_inferior_registers)
4641 (store_inferior_registers, fetch_core_registers): Likewise.
4642
4643 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4644
4645 * rs6000-nat.c (language.h): Include.
4646 (special_regs): Delete this array.
4647 (regmap): New function.
4648 (fetch_register, store_register): Use regmap() to map gdb
4649 register numbers to ptrace register numbers. Also, use
4650 outputs from regmap() to make decisions regarding type of
4651 ptrace() call to make. In particular, don't compare against
4652 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4653 (fetch_inferior_registers, store_inferior_registers): Where
4654 possible, obtain register numbers from tdep struct. Don't
4655 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4656 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4657 (LAST_UISA_SP_REGNUM): Delete.
4658
4659 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4660
4661 * rs6000-nat.c (ppc-tdep.h): Include.
4662 (fetch_registers, store_register, fetch_core_registers): Don't
4663 access registers[] directly. Instead, use supply_register() or
4664 regcache_collect() as appropriate.
4665 (find_toc_address): Format hex address with local_hex_string().
4666
4667 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4668
4669 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4670 bfd/elf32-frv.c.
4671
4672 2002-07-24 Tom Tromey <tromey@redhat.com>
4673
4674 * jv-exp.y: Marked all strings with _().
4675 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4676 internal_error.
4677 (MethodInvocation, CastExpression, parse_number, yyerror,
4678 java_type_from_name, push_expression_name, yylex): Typo fixes.
4679
4680 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4681
4682 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4683 (tee_file_flush, tee_file_write, tee_file_fputs)
4684 (tee_file_isatty): New.
4685 * ui-file.h (tee_file_new): Add prototype.
4686
4687 2002-07-24 Aidan Skinner <aidan@velvet.net>
4688
4689 * ada-lang.c: Change k&r style function definitions to prototyped
4690 form.
4691 * ada-typeprint.c: Change k&r style function definitions to prototyped
4692 form.
4693 * ada-valprint.c: Change k&r style function definitions to prototyped
4694 form.
4695
4696 2002-07-24 Andrew Cagney <cagney@redhat.com>
4697
4698 * README: Remove reference to remote-bug.
4699 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4700 remote-bug.c.
4701 (m88k-nat.o): Delete rule.
4702 (m88k-tdep.o): Delete rule.
4703 (remote-bug.o): Delete rule.
4704 * MAINTAINERS: Mark as obsolete.
4705 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4706 * m88k-tdep.c: Make file obsolete.
4707 * config/m88k/m88k.mh: Ditto.
4708 * config/m88k/delta88v4.mh: Ditto.
4709 * config/m88k/delta88v4.mt: Ditto.
4710 * config/m88k/delta88.mt: Ditto.
4711 * config/m88k/delta88.mh: Ditto.
4712 * remote-bug.c: Ditto.
4713 * config/m88k/tm-delta88.h: Ditto.
4714 * config/m88k/nm-delta88v4.h: Ditto.
4715 * config/m88k/xm-delta88.h: Ditto.
4716 * config/m88k/xm-dgux.h: Ditto.
4717 * config/m88k/tm-m88k.h: Ditto.
4718 * config/m88k/nm-m88k.h: Ditto.
4719 * config/m88k/tm-delta88v4.h: Ditto.
4720 * m88k-nat.c: Ditto.
4721 * cxux-nat.c: Ditto.
4722 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4723 and m88*-*-* obsolete.
4724 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4725 m88*-*-* obsolete.
4726
4727 2002-07-24 Andrew Cagney <cagney@redhat.com>
4728
4729 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4730 constant. Same for local pointer variables.
4731 (extract_signed_integer): Ditto.
4732 * defs.h (extract_unsigned_integer): Update.
4733 (extract_signed_integer): Update.
4734
4735 2002-07-24 Andrew Cagney <cagney@redhat.com>
4736
4737 * regcache.c (regcache_raw_write): Change buf parameter to a
4738 constant void pointer.
4739 (regcache_raw_read): Change buf parameter to a void pointer.
4740 (legacy_write_register_gen): Change myaddr parameter a constant
4741 void pointer.
4742 (supply_register): Change val parameter to a const void pointer.
4743 * regcache.h (regcache_raw_write): Update declaration.
4744 (regcache_raw_read): Update declaration.
4745 (supply_register): Update declaration.
4746
4747 2002-07-24 Tom Tromey <tromey@redhat.com>
4748
4749 * defs.h (gdb_readline_wrapper): Declare.
4750 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4751 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4752 * top.c (gdb_readline_wrapper): New function.
4753 (command_line_input): Use it.
4754
4755 2002-07-24 Andrew Cagney <cagney@redhat.com>
4756
4757 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4758 regcache_read and regcache_write.
4759 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4760 * regcache.c: Update.
4761 * sh-tdep.c (sh64_push_arguments): Update comment.
4762 (sh_pseudo_register_read): Update.
4763 (sh_pseudo_register_write): Update.
4764 (sh4_register_read): Update.
4765 (sh4_register_write): Update.
4766 (sh64_pseudo_register_read): Update.
4767 (sh64_pseudo_register_write): Update.
4768 (sh64_register_read): Update.
4769 (sh64_register_write): Update.
4770 * i386-tdep.c (i386_extract_return_value): Update.
4771 (i386_extract_struct_value_address): Update.
4772 (i386_extract_return_value): Update.
4773 * blockframe.c (generic_read_register_dummy): Update.
4774 (generic_call_dummy_register_unwind): Update
4775 * infrun.c (write_inferior_status_register): Update.
4776
4777 2002-07-23 Jim Blandy <jimb@redhat.com>
4778
4779 * parser-defs.h (expression_context_pc): Make this extern.
4780 (Thanks to Michael Snyder.)
4781
4782 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4783
4784 GDB 5.2.1 released from 5.2 branch.
4785 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4786 * README: Update to mention 5.2.1.
4787
4788 2002-07-23 Mark Salter <msalter@redhat.com>
4789
4790 * remote.c (remote_read_bytes): Fix check for error.
4791
4792 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4793
4794 * aix-thread.c (language.h): Include.
4795 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4796 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4797 Print newlines at end of debug messages.
4798 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4799 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4800
4801 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4802
4803 * aix-thread.c (ppc-tdep.h): Include.
4804 (special_register_p): New function.
4805 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4806 (store_regs_user_thread): Use register number information from
4807 gdbarch_tdep struct instead of hardcoded offsets relative to
4808 FIRST_UISA_SP_REGNUM.
4809 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4810 special_register_p() instead of using FPLAST_REGNUM and
4811 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4812 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4813 will be MQ's register number.
4814
4815 2002-07-22 Michael Snyder <msnyder@redhat.com>
4816
4817 * aix-thread.c (ops): Rename to aix_thread_ops.
4818 (base_ops): Rename to base_target.
4819 (ops_attach): Rename to aix_thread_attach.
4820 (ops_detach): Rename to aix_thread_detach.
4821 (ops_resume): Rename to aix_thread_detach.
4822 (ops_wait): Rename to aix_thread_wait.
4823 (ops_kill): Rename to aix_thread_kill.
4824 (init_ops): Rename to init_aix_thread_ops.
4825 (ops_fetch_register): Rename to aix_thread_fetch_register.
4826 (ops_store_register): Rename to aix_thread_store_register.
4827 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4828 (ops_thread_alive): Rename to aix_thread_thread_alive.
4829 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4830 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4831 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4832 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4833 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4834 (store_regs_lib): Rename to store_regs_user_thread.
4835 (store_regs_kern): Rename to store_regs_kernel_thread.
4836
4837 2002-07-22 Michael Snyder <msnyder@redhat.com>
4838
4839 * aix-thread.c (ops_prepare_to_store): Eliminate.
4840 (init_ops): Don't initialize ops.prepare_to_store.
4841 (store_regs_kern): Pre-fetch register buffers from child,
4842 because some registers may not be in the cache. Copy
4843 regs from register cache only if they are cached.
4844 (store_regs_lib): Copy regs from register cache only
4845 if they are cached.
4846 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4847 fill_gprs64): Ditto.
4848
4849 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4850
4851 * aix-thread.c (gdb_assert.h): Include.
4852 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4853 register sizes (from register cache) match size of buffer holding
4854 register data.
4855 (fill_sprs32): Change parameter types to match those in the ptrace()
4856 buffer.
4857 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4858 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4859
4860 2002-07-22 Michael Snyder <msnyder@redhat.com>
4861
4862 * aix-thread.c (supply_sprs64): Cosmetic change.
4863 (supply_sprs32): Cosmetic change.
4864 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4865 (fill_sprs64): Use regcache_collect instead of read_register.
4866 (store_regs_lib): Use regcache_collect instead of
4867 read_register. Use fill_sprs32 instead of fill_sprs64,
4868 if debugging a 32-bit architecture.
4869 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4870 out of the register cache, instead of passing a pointer into
4871 the register cache directly to ptrace. Use regcache_collect
4872 insteaad of read_register.
4873 (ops_prepare_to_store): Use target_read_registers instead
4874 of read_register_bytes.
4875
4876 2002-07-20 Aidan Skinner <aidan@velvet.net>
4877
4878 * MAINTAINERS: Add self under write after approval.
4879
4880 2002-07-20 Aidan Skinner <aidan@velvet.net>
4881
4882 * ada-tasks.c: Change k&r style function definitions to prototyped
4883 form.
4884
4885 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4886
4887 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4888 * x86-64-tdep.c: Include "objfiles.h".
4889 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4890 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4891
4892 2002-07-17 Michal Ludvig <michal@suse.cz>
4893
4894 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4895 (update_context): Initialise cfa variable.
4896
4897 2002-07-17 Michael Snyder <msnyder@redhat.com>
4898
4899 * aix-thread.c: Shorten some long lines.
4900 Bring comments into line with code spec.
4901
4902 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4903
4904 * infrun.c: Re-indent using gdb_indent.sh.
4905
4906 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4907
4908 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4909 Leave the indentation temporarily untouched, to minimize the diffs.
4910
4911 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4912
4913 * stabsread.c: Make os9k sections of the code obsolete,
4914 for real this time.
4915 * stabsread.h: Make os9k sections of the code obsolete.
4916
4917 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4918
4919 * linux-low.c (regsets_store_inferior_registers): Add free()
4920 at the end of a loop to prevent memory leak.
4921 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4922 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4923 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4924 line a comment.
4925 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4926
4927 2002-07-17 Jim Blandy <jimb@redhat.com>
4928
4929 * macrocmd.c (info_macro_command): Remove newline from error
4930 message.
4931
4932 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4933
4934 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4935 (sh_gdbarch_init): Use it for sh-dsp.
4936
4937 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4938
4939 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4940 64-bit DWARF2 format.
4941
4942 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4943
4944 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4945 <sys/proc.h> when not available.
4946
4947 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4948
4949 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4950 * stabsread.c: Make os9k sections of the code obsolete.
4951 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4952 * config/i386/i386os9k.mt: Make file obsolete.
4953 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4954 (COMMON_OBS): Remove os9kread.o
4955 (SFILES): Remove os9kread.c.
4956 (os9kread.o, remote-os9k.o): Make target obsolete.
4957 * remote-os9k.c: Make file obsolete.
4958 * os9kread.c: Make file obsolete.
4959 * Makefile.in
4960
4961 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4962
4963 * NEWS: Mention that the FR30 has been made obsolete.
4964 * fr30-tdep.c: Make file obsolete.
4965 * config/fr30/tm-fr30.h: Ditto.
4966 * config/fr30/fr30.mt: Ditto.
4967 * configure.tgt: Make fr30-*-elf obsolete.
4968 * MAINTAINERS: Make fr30-elf obsolete.
4969
4970 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4971
4972 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4973 found is not inside a section.
4974
4975 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4976
4977 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4978 strerror().
4979 (pdc_realloc): Use xrealloc() instead of realloc().
4980
4981 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4982
4983 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4984 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4985 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4986 macros.
4987
4988 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4989
4990 * aix-thread.c (ptrace_check): Eliminate goto.
4991 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4992 problem.
4993
4994 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4995
4996 * aix-thread.c (gdbcmd.h): Include.
4997 (DEBUG, DBG, DBG2, dbg): Eliminate.
4998 (debug_aix_thread): New static global.
4999 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5000 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5001 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5002 invocations to DBG and DBG2 macros to test against
5003 ``debug_aix_thread'' and call fprintf_unfiltered().
5004 (_initialize_aix_thread): Add new command "set debug aix-thread".
5005
5006 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5007
5008 From Gerhard Tonn <TON@de.ibm.com>:
5009 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5010 instead of supply_register.
5011
5012 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5013
5014 * dwarf2cfi.c: Include "gdb_assert.h".
5015 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5016 non-NULL.
5017 (update_context): Do not use __func__. Add missing ``break''.
5018 (update_context): Do not use __func__.
5019
5020 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5021
5022 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5023 and its setting. Set gdbarch instruction printing functions
5024 directly. For non-rs6000 case use new function
5025 gdb_print_insn_powerpc.
5026 (gdb_print_insn_powerpc): New function.
5027
5028 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5029
5030 * NEWS: Mention that the d30v has been marked obsolete.
5031 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5032 * configure.tgt: Mark d30v-*-* as obsolete.
5033 * d30v-tdep.c: Mark file as obsolete.
5034 * config/d30v/d30v.mt: Ditto.
5035 * config/d30v/tm-d30v.h: Ditto.
5036
5037 2002-07-13 Aidan Skinner <aidan@velvet.net>
5038
5039 * ada-tasks.c (add_task_entry): replace calls to
5040 malloc() with xmalloc
5041 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5042
5043 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5044 ada_finish_decode_line_1, all_sals_for_line
5045 ada_breakpoint_rewrite): replace calls to free() with xfree()
5046
5047 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5048
5049 From Nicholas Duffek (with minor changes by Martin Hunt,
5050 Louis Hamilton, and Kevin Buettner):
5051 * aix-thread.c: New file.
5052
5053 2002-07-12 Petr Sorfa <petrs@caldera.com>
5054
5055 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5056 complaint for invalid attribute class or form.
5057 (read_func_scope): DW_AT_frame_base
5058 better handling of DW_AT_block*.
5059 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5060 better handling of DW_AT_block*.
5061 (read_common_block): DW_AT_location
5062 better handling of DW_AT_block*.
5063 (read_partial_die): DW_AT_location better handling
5064 of DW_AT_block*.
5065 (new_symbol): DW_AT_external better handling of
5066 DW_AT_block*. Proper initialization of variable
5067 "addr".
5068 (attr_form_is_block): New function that returns true
5069 if the attribute's form is of DW_FORM_block*.
5070
5071 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5072
5073 * valops.c (find_method_list): Remove comment about
5074 removed STATIC_MEMFUNCP argument.
5075 (value_find_oload_method_list): Likewise.
5076
5077 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5078
5079 From Nicholas Duffek:
5080 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5081 target_new_objfile_hook.
5082
5083 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5084
5085 From Nicholas Duffek:
5086 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5087 csect.
5088
5089 2002-07-12 Andrew Cagney <cagney@redhat.com>
5090
5091 * MAINTAINERS: Mention --enable-sim-build-warnings.
5092 (m68hc11-elf): Disable sim build warnings.
5093 (m32r-elf): Mark as broken obsolete candidate.
5094 (x86_64-linux-gnu): Mark as buildable with -Werror.
5095 (arm-elf): Change -w to ``,'' which enables warnings but not
5096 -Werror.
5097
5098 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5099
5100 * bcache.h: Update copyright.
5101 (struct bstring, struct bcache): Move definition to "bcache.c".
5102 Replaced by opaque declaration.
5103 (bcache_xfree): Replace free_bcache.
5104 (bcache_xmalloc, bcache_memory_used): Declare.
5105
5106 * bcache.c: Update copyright.
5107 (struct bstring, struct bcache): Moved to here from "bcache.h".
5108 Update comments.
5109 (bcache_xmalloc, bcache_memory_used): New functions.
5110 (bcache_xfree): Replace function free_bcache.
5111
5112 * Makefile.in (objfiles.o): Add $(bcache_h).
5113 (objfiles_h): Remove $(bcache_h).
5114 (symfile.o): Add $(bcache_h).
5115
5116 * symmisc.c: Update copyright.
5117 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5118 (print_objfile_statistics): Use bcache_memory_used.
5119
5120 * symfile.c: Include "bcache.h".
5121 (reread_symbols): Use bcache_xfree.
5122 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5123 (add_psymbol_to_list): Pass psymbol_cache by value.
5124 (add_psymbol_with_dem_name_to_list): Ditto.
5125
5126 * objfiles.h: Update copyright.
5127 (struct bcache): Declare opaque. Do not include "bcache.h".
5128 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5129 bcache'' pointers.
5130 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5131
5132 * objfiles.c: Include "bcache.h". Update copyright.
5133 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5134 macro_cache.
5135 (free_objfile): Use bcache_xfree.
5136
5137 2002-07-11 Grace Sainsbury <graces@redhat.com>
5138
5139 * monitor.c (monitor_fetch_register): Make name a constant.
5140 (monitor_store_register): Same.
5141
5142 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5143
5144 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5145 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5146 (finish_block) For non-function blocks, hash the symbol table. For
5147 function blocks, mark the symbol table as unhashed.
5148 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5149 (msymbol_hash_iw): Likewise.
5150 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5151 value.
5152 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5153 (lookup_minimal_symbol): Likewise for both.
5154 * symtab.h (struct block): Add `hashtable' flag. Comment the
5155 hashtable.
5156 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5157 (ALL_BLOCK_SYMBOLS): Update.
5158 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5159 (struct symbol): Add `hash_next' pointer.
5160 * symtab.c (lookup_block_symbol): Search using the hash table when
5161 possible.
5162 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5163 (search_symbols, find_addr_symbol): Likewise.
5164
5165 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5166 (read_dst_symtab): Likewise.
5167 * jv-lang.c (get_java_class_symtab): Likewise.
5168 * mdebugread.c: Include "gdb_assert.h".
5169 (shrink_block): Assert that the block being modified is not hashed.
5170 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5171 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5172 symbols.
5173 (dump_symtab): Recognize hashed blocks.
5174 * printcmd.c (print_frame_args): Assert that function blocks do not
5175 have hashed symbol tables.
5176 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5177 (fill_in_ada_prototype, debug_print_block): Likewise.
5178 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5179
5180 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5181
5182 * stack.c (print_frame): Use result of frame_address_in_block()
5183 instead of fi->pc when evaluating symbols.
5184 (backtrace_command_1): Ditto.
5185
5186 2002-07-11 Andrew Cagney <cagney@redhat.com>
5187
5188 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5189 Make static.
5190
5191 * arm-tdep.c (arm_register_name): Make return type constant.
5192
5193 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5194
5195 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5196 prototype.
5197 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5198 * s390-tdep.c (s390_fp_regnum): Ditto.
5199 (s390_read_fp): Ditto.
5200 (s390_pop_frame): Ditto.
5201 (_initialize_s390_tdep): Ditto.
5202 * remote.c (get_remote_state): Ditto.
5203 * procfs.c (mappingflags): Ditto.
5204 * memattr.c (_initialize_mem): Ditto.
5205 * mcore-tdep.c (mcore_pop_frame): Ditto.
5206 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5207 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5208 * language.c (set_case_str): Ditto.
5209 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5210 * frv-tdep.c (new_variant): Ditto.
5211 (frv_stopped_data_address): Ditto.
5212 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5213 (context_alloc): Ditto.
5214 (frame_state_alloc): Ditto.
5215 (unwind_tmp_obstack_init): Ditto.
5216 (unwind_tmp_obstack_free): Ditto.
5217 (cfi_read_fp): Ditto.
5218 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5219 (cris_pop_frame): Ditto.
5220 * c-lang.c (scanning_macro_expansion): Ditto.
5221 (finished_macro_expansion): Ditto.
5222 (c_preprocess_and_parse): Ditto.
5223 * gdbarch.sh: Ditto.
5224 * gdbarch.h, gdbarch.c: Regenerate.
5225 * config/mn10200/tm-mn10200.h: Adjust indentation.
5226 * target.c: Adjust indentation.
5227 * symtab.h: Adjust indentation.
5228 * stabsread.h: Adjust indentation.
5229 * remote-es.c: Adjust indentation.
5230 * os9kread.c: Adjust indentation.
5231
5232 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5233
5234 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5235 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5236
5237 2002-07-10 Grace Sainsbury <graces@redhat.com>
5238
5239 * NEWS: Mention m68k, mcore multi-arching.
5240 * MAINTAINERS: Change status of m68k, mcore to reflect
5241 multi-arching.
5242
5243 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5244
5245 * valops.c (find_overload_match): Free oload_syms.
5246
5247 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5248
5249 Define HAVE_SYS_PROC_H if sys/proc.h exists
5250 * configure.in: Add check for sys/proc.h
5251 * config.in: Regenerate.
5252 * configure: Regenerate.
5253
5254 2002-07-09 Grace Sainsbury <graces@redhat.com>
5255
5256 * config/m68k/tm-m68k.h: Remove macros wrapped in
5257 #if !GDB_MULTI_ARCH.
5258
5259 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5260
5261 * config.in, configure: Regenerate.
5262
5263 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5264
5265 * dwarf2cfi.c: Include "gcore.h".
5266 (execute_stack_op): Fix implementation of the
5267 DW_OP_deref and DW_OP_deref_size operators by letting do their
5268 lookup in the target.
5269
5270 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5271
5272 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5273 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5274 tdep->sc_sp_offset.
5275
5276 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5277
5278 Fix PR gdb/595, gdb/602
5279 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5280 Don't call value_cast, just read the vtable pointer; update comments
5281 to match.
5282
5283 2002-07-05 Grace Sainsbury <graces@redhat.com>
5284
5285 * config/mcore/tm-mcore.h: Remove file.
5286 * config/mcore/mcore.mt: Remove definition of TM_FILE
5287 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5288
5289 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5290
5291 * i386bsd-tdep.c: Include "gdb_string.h".
5292
5293 2002-07-04 Grace Sainsbury <graces@redhat.com>
5294
5295 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5296 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5297 mcore-tdep.
5298 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5299 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5300 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5301 (RETVAL_REGNUM): Move macros from tm-mcore.h
5302 (mcore_reg_struct_has_addr): New function.
5303 (mcore_gdbarch_init): Added initializations for the macros removed
5304 from tm-mcore.h.
5305
5306 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5307
5308 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5309 traditonal string branding within the ELF header.
5310
5311 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5312
5313 * symtab.c (remove_params): New function.
5314 (make_symbol_overload_list): Use it instead of cplus_demangle.
5315 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5316
5317 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5318
5319 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5320
5321 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5322 New variables.
5323 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5324 and tdep->sigtramp_end.
5325 * i386obsd-nat.c: New file.
5326 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5327
5328 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5329 Don't call get_current_frame().
5330
5331 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5332
5333 * i386-nat.c (child_post_startup_inferior): New function
5334 calling i386_cleanup_dregs if
5335 I386_USE_GENERIC_WATCHPOINTS is defined.
5336 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5337 conditional to acknowledge that i386-nat.c has its
5338 own child_post_startup_inferior function.
5339
5340 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5341
5342 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5343 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5344 instead of MAX_REGISTER_RAW_SIZE.
5345 (i386_extract_return_value, i386_extract_struct_value_address):
5346 Convert to use regcache.
5347 (i386_gdbarch_init): Set max_register_raw_size and
5348 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5349 Set extract_return_value and extract_struct_value_address instead
5350 of their deprecated variants.
5351
5352 Convert i386 target to generic dummy frames.
5353 * i386-tdep.c: Include "symfile.h".
5354 (i386_frameless_signal_p): Consider a function to be frameless if
5355 the pc points at the first instruction of the function.
5356 (i386_frame_chain): Handle (generic) call dummies.
5357 (i386_frame_saved_pc): Likewise.
5358 (i386_frame_init_saved_regs): Remove code dealing with call
5359 dummies on the stack.
5360 (i386_push_dummy_frame): Removed.
5361 (i386_call_dummy_words): Removed.
5362 (i386_fix_call_dummy): Removed.
5363 (i386_push_return_address): New function.
5364 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5365 parameter, and don't call get_current_frame.
5366 (i386_pop_frame): New function.
5367 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5368 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5369 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5370 call_dummy_length to 0, set call_dummy_words to NULL, set
5371 sizeof_call_dummy_words to 0, set fix_call_dummy to
5372 generic_fix_call_dummy, set pc_in_call_dummy to
5373 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5374 generic_push_dummy_frame, set push_return_address to
5375 i386_push_return_address and set frame_chain_valid to
5376 generic_file_frame_chain_valid.
5377
5378 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5379
5380 * gdbarch.sh (struct regcache): Add opaque declaration.
5381 (EXTRACT_RETURN_VALUE): New architecture method.
5382 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5383 * gdbarch.h, gdbarch.c: Regenerate.
5384 * arch-utils.c (legacy_extract_return_value): New function.
5385 * arch-utils.h (legacy_extract_return_value): Declare.
5386 * values.c (value_being_returned): Re-enable code handling
5387 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5388 deprecated_grub_regcache_for_registers call to block handling
5389 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5390 (EXTRACT_RETURN_VALUE): Do not define.
5391
5392 2002-07-03 Grace Sainsbury <graces@redhat.com>
5393
5394 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5395 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5396 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5397 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5398 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5399 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5400 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5401 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5402 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5403 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5404 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5405 argument so the function fits the prototype in the architecture
5406 vector.
5407 (mcore_pop_frame): Remove argument so the function fits the
5408 prototype. Use get_current_frame instead of the argument.
5409 (mcore_push_arguments): Change type of struct_return so the
5410 function can be used in the architecture vector.
5411 (mcore_store_struct_return): Add.
5412 (mcore_frame_init_saved_regs): Add.
5413 (mcore_gdbarch_init): Add function calls to replace the macros
5414 removed from tm-mcore.h
5415
5416 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5417
5418 * infcmd.c (print_return_value): Remove compatibility code calling
5419 deprecated_grub_regcache_for_registers.
5420
5421 * values.c: Include "regcache.h".
5422 (value_being_returned): Update. Use
5423 deprecated_grub_regcache_for_registers to extract the register
5424 buffer address.
5425 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5426 ``struct regcache''.
5427 * Makefile.in (values.o): Add dependency on $(regcache_h).
5428
5429 * inferior.h (run_stack_dummy): Change type of second parameter to
5430 a ``struct regcache''.
5431 * valops.c (hand_function_call): Change type of retbuf to ``struct
5432 regcache''. Allocate using regcache_xmalloc, clean using
5433 make_cleanup_regcache_xfree.
5434 * infcmd.c (run_stack_dummy): Update. Use
5435 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5436
5437 * regcache.c (do_regcache_xfree): New function.
5438 (make_cleanup_regcache_xfree): New function.
5439 * regcache.h (make_cleanup_regcache_xfree): Declare.
5440
5441 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5442
5443 * event-top.c (command_line_handler): Don't read past
5444 beginning of buffer.
5445
5446 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5447
5448 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5449 struct frame_id.
5450 (varobj_create): Store frame_id for root.
5451 (varobj_gen_name): Use xasprintf.
5452 (varobj_update): Save and restore frame using get_frame_id() and
5453 frame_find_by_id().
5454 (create_child): Use xasprintf.
5455 (new_root_variable): Initialize frame_id.
5456 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5457 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5458 to prevent memory leak.
5459
5460 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5461
5462 * valops.c (hand_function_call): Move declaration of retbuf to
5463 start of function, allocate using malloc, add a cleanup but before
5464 the inf_status cleanup, cleanup the buffer. Rename local variable
5465 old_chain to inf_status_cleanup.
5466
5467 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5468
5469 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5470
5471 * cli/cli-decode.c (cmd_func_p): New function.
5472 (cmd_func): New function.
5473
5474 * command.h: Add cmd_func() and cmd_func_p().
5475
5476 2002-07-03 Grace Sainsbury <graces@redhat.com>
5477
5478 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5479 (REGISTER_SIZE): Remove.
5480 (MAX_REGISTER_RAW_SIZE): Remove.
5481 (REGISTER_VIRTUAL_TYPE): Remove.
5482 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5483 (REGISTER_NAME): Remove.
5484 (USE_GENERIC_DUMMY_FRAMES): Remove.
5485 (CALL_DUMMY): Remove.
5486 (CALL_DUMMY_START_OFFSET): Remove.
5487 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5488 (CALL_DUMMY_LOCATION): Remove.
5489 (FIX_CALL_DUMMY): Remove.
5490 (CALL_DUMMY_ADDRESS): Remove.
5491 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5492 (SAVE_DUMMY_FRAME_TOS): Remove.
5493 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5494 (mcore_register_virtual_type): New function.
5495 (mcore_register_byte): New function.
5496 (mcore_register_size): New function.
5497 (mcore_register_name): New function.
5498 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5499 macros removed from tm-mcore.h.
5500 (mcore_dump_tdep): Add.
5501 (_initialize_mcore_tdep): Add gdbarch_register call.
5502
5503 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5504
5505 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5506 frameless_look_for_prologue, such that we actually call this
5507 function.
5508
5509 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5510
5511 * frame.h (frame_address_in_block): New function.
5512
5513 * blockframe.c (frame_address_in_block): New function extracted
5514 from get_frame_block().
5515 (get_frame_block): Use frame_address_in_block().
5516 (block_innermost_frame): Use frame_address_in_block() to match
5517 the frame pc address against the block boundaries rather than
5518 the frame pc directly. This prevents a failure when a frame pc
5519 is actually a return-address pointing immediately after the end
5520 of the given block.
5521
5522 2002-07-02 Grace Sainsbury <graces@redhat.com>
5523
5524 * MAINTAINERS: Add self under write after approval.
5525
5526 2002-07-02 Grace Sainsbury <graces@redhat.com>
5527
5528 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5529 used in architecture vector. The default is
5530 m68k_local_breakpoint_from_pc.
5531 (m68k_local_breakpoint_from_pc): Add.
5532 (enum): Add register numbers from tm-m68k.h.
5533 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5534 vector.
5535 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5536 GDB_MULTI_ARCH_PARTIAL.
5537 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5538 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5539 m68k-tdep.c.
5540 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5541 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5542 to enum in m68k-tdep.c
5543
5544 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5545
5546 * solib-osf.c (open_map): Compute the list of shared libraries
5547 loaded by the inferior, rather than the list of libraries loaded
5548 by GDB itself. Otherwise, GDB ends up reading the symbols from
5549 the wrong shared libraries...
5550
5551 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5552
5553 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5554 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5555 macros.
5556 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5557 Remove functions.
5558 (FRAMELESS_SIGNAL): Remove function.
5559 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5560 i386_linux_saved_pc_after_call): Removed.
5561 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5562 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5563 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5564
5565 * i386-tdep.c (i386_frameless_signal_p): New function.
5566 (i386_frame_chain): Deal with frameless signals.
5567 (i386_sigtramp_saved_sp): New function.
5568 (i386_frame_saved_pc): Deal with frameless signals.
5569 (i386_saved_pc_after_call): Make sure the correct value is
5570 returned just after entry into a sigtramp.
5571 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5572 i386fbsd4_sc_sp_offset): New variables.
5573 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5574 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5575 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5576 similiar to what we already did for sc_pc_offset.
5577 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5578 tdep->sc_sp_offset.
5579
5580 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5581
5582 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5583
5584 * config/i386/tm-x86-64linux.h: New.
5585 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5586 definitions.
5587 * config/i386/nm-x86-64.h: Rename to ...
5588 * config/i386/nm-x86-64linux.h: ... this one.
5589 * config/i386/x86-64linux.mh: Reflect the above change.
5590
5591 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5592
5593 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5594 with sigcontext_addr. Add sc_sp_offset.
5595 (i386bsd_sigtramp_saved_pc): Remove prototype.
5596 (i386bsd_sicontext_addr): Add prototype.
5597 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5598 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5599 (i386_svr4_sigtramp_saved_pc): Removed.
5600 (i386_svr4_sigcontext_addr): New function.
5601 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5602 Initialize tdep->sigcontext_addr instead. Initialize
5603 tdep->sc_pc_offset and tdep->sc_sp_offset.
5604 (i386_gdbarch_init): Likewise.
5605 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5606 any more.
5607 (i386bsd_sigtramp_saved_pc): Remove function.
5608 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5609 Initialize tdep->sigcontext_addr instead. Initialize
5610 tdep->sc_pc_offset.
5611 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5612 of tdep->sigtramp_saved_pc.
5613 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5614 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5615 instead.
5616
5617 * i386-tdep.c (i386_frameless_function_invocation,
5618 i386_frame_num_args, i386_frame_init_saved_regs,
5619 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5620 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5621 i386_extract_return_value, i386_store_return_value,
5622 i386_extract_struct_value_address, i386_register_virtual_type,
5623 i386_register_convertible, i386_register_convert_to_virtual,
5624 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5625 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5626 static.
5627
5628 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5629
5630 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5631
5632 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5633 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5634 this macro. Include "value.h".
5635
5636 2002-06-30 Aidan Skinner <aidan@velvet.net>
5637
5638 * ada-exp.tab.c: remove as it's a generated file
5639 * ada-lex.c: remove as it's a generated file
5640
5641 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5642
5643 * config/i386/tm-i386.h (struct frame_info, struct
5644 frame_saved_regs, struct value, struct type): Remove forward
5645 declarations.
5646
5647 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5648 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5649 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5650 (FILL_FPXREGSET): Define.
5651
5652 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5653
5654 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5655 i[3456]86-*-netbsd* case.
5656 * config/i386/tm-obsd.h: Removed.
5657 * config/i386/obsd.mt: Removed.
5658 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5659 core-aout.o.
5660 (MH_CFLAGS): Add -DYYDEBUG=0.
5661
5662 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5663 i386nbsd_sc_pc_offset on OpenBSD too.
5664
5665 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5666 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5667 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5668 define.
5669 * i386bsd-tdep.c: Include "arch-utils.h".
5670 (i386bsd_aout_in_solib_call_trampoline): New function.
5671 (i386bsd_init_abi): Set in_solib_call_trampoline to
5672 i386bsd_aout_in_solib_call_trampoline.
5673 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5674 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5675
5676 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5677
5678 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5679 (struct obstack, struct bcache): Add opaque declarations.
5680 * Makefile.in (macrotab_h): Update
5681
5682 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5683
5684 * blockframe.c (generic_find_dummy_frame): Change return type to
5685 ``struct regcache''.
5686 (struct dummy_frame): Replace field ``registers'' with regcache, a
5687 struct regcache object.
5688 (generic_find_dummy_frame): Update.
5689 (generic_push_dummy_frame): Update. Use regcache_xfree,
5690 regcache_xmalloc and regcache_cpy.
5691 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5692 regcache_xfree.
5693 (deprecated_generic_find_dummy_frame): Update.
5694 (generic_read_register_dummy): Update. Use
5695 regcache_read_as_address.
5696 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5697 (generic_get_saved_register): Update. Use regcache_read.
5698
5699 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5700
5701 * Makefile.in (objfiles_h): Add $(bcache_h).
5702 * objfiles.h: Include "bcache.h".
5703
5704 * Makefile.in (symtab_h): Remove $(bcache_h).
5705 * symtab.h: Do not include "bcache.h".
5706
5707 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5708
5709 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5710 generic_func_frame_chain_valid.
5711
5712 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5713
5714 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5715 * config/i386/tm-fbsd.h: Likewise.
5716
5717 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5718
5719 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5720 generic_unwind_get_saved_register.
5721
5722 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5723
5724 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5725 * regcache.c (supply_register): Add missing argument to
5726 register_buffer call.
5727
5728 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5729
5730 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5731 Solaris /bin/grep does not not like it. From Peter Schauer.
5732
5733 2002-06-26 Tom Tromey <tromey@redhat.com>
5734
5735 * command.h (add_setshow_cmd): Declare.
5736 (add_setshow_cmd_full): Declare.
5737 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5738 returns void. Use add_setshow_cmd_full.
5739 (add_setshow_cmd_full): New function.
5740 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5741 (add_setshow_boolean_cmd): Likewise.
5742
5743 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5744
5745 * config/vax/tm-vax.h: Protect from multiple inclusion.
5746 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5747 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5748 * config/vax/tm-vaxbsd.h: ...here. New file.
5749 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5750
5751 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5752
5753 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5754 (BELIEVE_PCC_PROMOTION): Remove.
5755 (AP_REGNUM): Move to...
5756 * config/vax/nm-vax.h: ...here.
5757 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5758 (vax_breakpoint_from_pc): New function.
5759 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5760 and gdbarch_believe_pcc_promotion.
5761
5762 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5763
5764 * Makefile.in (vax_tdep_h): Define.
5765 (vax-tdep.o): Use $(vax_tdep_h).
5766 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5767 (vax_dump_tdep): New function.
5768 (_initialize_vax_tdep): Register vax_dump_tdep.
5769 * vax-tdep.h: Include osabi.h.
5770 (struct gdbarch_tdep): New.
5771
5772 2002-06-26 Andrew Cagney <cagney@redhat.com>
5773
5774 * frame.h (deprecated_generic_find_dummy_frame): Rename
5775 generic_find_dummy_frame.
5776 * blockframe.c (generic_find_dummy_frame): Make static.
5777 (deprecated_generic_find_dummy_frame): New function.
5778 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5779 generic_find_dummy_frame with deprecated_find_dummy_frame.
5780 (sh64_nofp_frame_init_saved_regs): Ditto.
5781 (sh_fp_frame_init_saved_regs): Ditto.
5782 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5783 (s390_frame_chain): Ditto.
5784 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5785
5786 2002-06-26 Grace Sainsbury <graces@redhat.com>
5787
5788 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5789 gdbarch vector are at the top.
5790 (NUM_REGS): Remove.
5791 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5792 (FRAME_ARGS_ADDRESS): Remove.
5793 (FRAME_LOCALS_ADDRESS): Remove.
5794 (FRAME_NUM_ARGS): Remove.
5795 (FRAME_ARGS_SKIP): Remove.
5796 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5797 (m68k_gdbarch_init): Add gdbarch initializations for macros
5798 undefined in tm-m68k.h
5799
5800 2002-06-26 Grace Sainsbury <graces@redhat.com>
5801
5802 * monitor.h: Add the function regname to monitor_ops
5803 structure. This way NUM_REGS does not have to be a constant.
5804 * monitor.c (monitor_fetch_register): Added support for regname
5805 function. The function is called if the array regnames is NULL.
5806 (monitor_store_register): Same.
5807 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5808 regnames array.
5809 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5810 cpu32bug_cmds.regname to point to new function.
5811 * abug-rom.c (abug_regname): Same as above.
5812 (init_abug_cmds): Same.
5813 * dbug-rom.c (dbug_regname): Same as above.
5814 (init_dbug_cmds): Same.
5815 * remote-est.c (est_regname): Same.
5816 (init_est_cmds): Same.
5817 * rom68k-rom.c (rom68k_regname): Same.
5818 (init_rom68k_cmds): Same.
5819
5820 2002-06-25 Tom Tromey <tromey@redhat.com>
5821
5822 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5823
5824 2002-06-25 Andrew Cagney <cagney@redhat.com>
5825
5826 * infrun.c (stop_registers): Change variable's type to ``struct
5827 regcache'''.
5828 (xmalloc_inferior_status): Delete function.
5829 (free_inferior_status): Delete function.
5830 (normal_stop): Use regcache_cpy.
5831 (struct inferior_status): Change type of fields ``stop_registers''
5832 and ``registers'' to ``struct regcache''.
5833 (write_inferior_status_register): Use regcache_write.
5834 (save_inferior_status): Instead of calling
5835 xmalloc_inferior_status, allocate the inf_status buffer directly.
5836 Use regcache_dup_no_passthrough and regcache_dup to save the
5837 buffers.
5838 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5839 Replace the stop_registers regcache instead of overriding it. Use
5840 regcache_xfree. Instead of calling free_inferior_status, xfree
5841 the buffer directly.
5842 (discard_inferior_status): Use regcache_xfree. Instead of calling
5843 free_inferior_status, xfree the buffer directly.
5844 (build_infrun): Use regcache_xmalloc.
5845 (_initialize_infrun): Delete redundant call to build_infrun.
5846
5847 * Makefile.in (infcmd.o): Add $(regcache_h).
5848
5849 * infcmd.c: Include "regcache.h".
5850 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5851 obtain the address of `stop_registers' register buffer.
5852 (print_return_value): Ditto.
5853
5854 * inferior.h (struct regcache): Add opaque declaration.
5855 (stop_registers): Change variable's declared type to ``struct
5856 regcache''.
5857
5858 2002-06-24 Tom Tromey <tromey@redhat.com>
5859
5860 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5861 * target.c (initialize_targets): Fixed typo in
5862 trust-readonly-sections `show' documentation.
5863
5864 * main.c: Marked all strings with _().
5865
5866 2002-06-24 Don Howard <dhoward@redhat.com>
5867
5868 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5869 that means max CORE_ADDR+1.
5870 (lookup_mem_region): Ditto.
5871 (mem_info_command): Ditto.
5872
5873 2002-06-24 Grace Sainsbury <graces@redhat.com>
5874
5875 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5876 (REGISTER_BYTES_OK): Remove.
5877 (REGISTER_BYTES): Remove.
5878 (STORE_STRUCT_RETURN): Remove.
5879 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5880 (STORE_RETURN_VALUE): Remove.
5881 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5882 (FRAME_CHAIN): Remove.
5883 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5884 (FRAME_SAVED_PC): Remove.
5885 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5886 (m68k_store_struct_return): Add.
5887 (m68k_deprecated_extract_return_value): Add.
5888 (m68k_deprecated_extract_struct_value_address): Add.
5889 (m68k_store_return_value): Add.
5890 (m68k_frame_chain): Add.
5891 (m68k_frameless_function_invocation): Add.
5892 (m68k_frame_saved_pc): Add.
5893 (m68k_gdbarch_init): added set_gdbarch calls for new
5894 functions and deleted macros.
5895
5896 2002-06-23 Tom Tromey <tromey@redhat.com>
5897
5898 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5899 (ALLDEPFILES): Likewise.
5900 (udiheaders): Removed.
5901 (udip2soc.o): Likewise.
5902 (udi2go32.o): Likewise.
5903 (udr.o): Likewise.
5904 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5905
5906 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5907
5908 * infrun.c (_initialize_infrun): Delete unnecessary call to
5909 build_infrun.
5910
5911 * regcache.h: Update comments describing the regcache_cpy family
5912 of functions.
5913 (regcache_save, regcache_restore): Delete declaration.
5914 (regcache_save_no_passthrough): Delete declaration.
5915 (regcache_restore_no_passthrough): Delete declaration.
5916 * regcache.c (regcache_save): Delete function.
5917 (regcache_save_no_passthrough): Delete function.
5918 (regcache_restore): Delete function.
5919 (regcache_restore_no_passthrough): Delete function.
5920
5921 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5922
5923 * config/m68k/tm-m68k.h: Fix typo.
5924 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5925 (m68k_frame_init_saved_regs): Declare.
5926
5927 2002-06-21 Jim Blandy <jimb@redhat.com>
5928
5929 Remove some vestiges of Harris 88k support.
5930 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5931 register numbering quirk.
5932 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5933 odd symbols occurring in Harris 88k ELF targets.
5934
5935 2002-06-21 Tom Tromey <tromey@redhat.com>
5936
5937 * gdb_locale.h: New file.
5938 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5939 (defs_h): Added gdb_locale.h.
5940 * configure, config.in: Rebuilt.
5941 * configure.in (PACKAGE): Define.
5942 * defs.h: Include gdb_locale.h.
5943 * main.c (captured_main): Call setlocale, bindtextdomain,
5944 textdomain.
5945
5946 2002-06-21 Dave Brolley <brolley@redhat.com>
5947
5948 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5949 * config/frv/frv.mt: New file.
5950 * config/frv/tm-frv.h: New file.
5951 * configure.tgt: Support frv-*-*.
5952 * Makefile.in (frv-tdep.o): New target.
5953 * frv-tdep.c: New file.
5954 * NEWS: Mention frv.
5955
5956 2002-06-21 Dave Brolley <brolley@redhat.com>
5957
5958 * MAINTAINERS: Add self to "Write After Approval" list.
5959
5960 2002-06-21 Grace Sainsbury <graces@redhat.com>
5961
5962 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5963 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5964 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5965 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5966 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5967
5968 * m68k-tdep.c: Include arch-utils.h
5969 (m68k_register_raw_size): Add.
5970 (m68k_register_virtual_size): Add.
5971 (m68k_register_virtual_type): Add.
5972 (m68k_register_name): Add.
5973 (m68k_stack_align): Add.
5974 (m68k_register_byte): Add.
5975 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5976 tm-m68k.h.
5977
5978 2002-06-21 Grace Sainsbury <graces@redhat.com>
5979
5980 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5981 m68k_find_saved_regs.
5982 (m68k_pop_frame): Removed saved_regs structure, and replaced
5983 references to it with frame->saved_regs.
5984 (m68k_gdbarch_init): Added function calls to initialize the
5985 gdbarch structure.
5986 (m68k_fix_call_dummy): Add.
5987 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5988 (CALL_DUMMY): Remove.
5989 (CALL_DUMMY_LENGTH): Remove.
5990 (CALL_DUMMY_START_OFFSET): Remove.
5991 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5992 (FIX_CALL_DUMMY): Remove.
5993 (PUSH_DUMMY_FRAME): Remove.
5994 (POP_FRAME): Remove.
5995
5996 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5997
5998 * parse.c (parse_fprintf): New function used to avoid calls to
5999 fprintf in bison parser generated debug code.
6000 * parser-defs.h: Declaration of new parse_fprintf function.
6001 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6002 Set YYDEBUG to 1 by default.
6003 Set YYFPRINTF as parse_fprintf.
6004
6005 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6006
6007 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6008 encoding anymore.
6009 (pointer_encoding, enum ptr_encoding): New.
6010 (execute_cfa_program): Take care about pointer encoding.
6011 (dwarf2_build_frame_info): Only call parse_frame_info for
6012 .debug_frame and .eh_frame.
6013 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6014 fixed augmentation handling, added relative addressing,
6015 ignore duplicate FDEs. Added comments.
6016 * dwarf2cfi.c: Reindented.
6017
6018 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6019
6020 * event-top.c (command_handler): Don't use space_at_cmd_start
6021 unless there is sbrk() on the host. Assign time and space data
6022 to union fields of the appropriate length.
6023
6024 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6025
6026 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6027 x86_64_register_name. Return type changed to 'const char *'.
6028 (x86_64_register_name2nr): Rename to x86_64_register_number.
6029 (x86_64_gdbarch_init): Update to reflect the change.
6030 * x86-64-tdep.h: Ditto.
6031 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6032 (supply_fpregset): Ditto.
6033
6034 2002-06-19 Andrew Cagney <cagney@redhat.com>
6035
6036 * regcache.h: Update copyright.
6037 (struct regcache, struct gdbarch): Add opaque declarations.
6038 (current_regcache): Declare global variable.
6039 (regcache_read, regcache_write): Add gdbarch parameter.
6040 (regcache_save, regcache_save_no_passthrough)
6041 (regcache_restore, regcache_restore_no_passthrough)
6042 (regcache_dup, regcache_dup_no_passthrough)
6043 (regcache_cpy, regcache_cpy_no_passthrough)
6044 (deprecated_grub_regcache_for_registers)
6045 (deprecated_grub_regcache_for_register_valid)
6046 (regcache_valid_p): Add function declarations.
6047
6048 * regcache.c: Update copyright.
6049 (regcache_descr_handle): New global variable.
6050 (struct regcache_descr): Define.
6051 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6052 (regcache_descr, xfree_regcache_descr): New functions.
6053 (struct regcache): Define.
6054 (regcache_xmalloc, regcache_xfree): New functions.
6055 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6056 (regcache_dup, regcache_dup_no_passthrough): New functions.
6057 (regcache_valid_p, regcache_read_as_address): New functions.
6058 (deprecated_grub_regcache_for_registers): New function.
6059 (deprecated_grub_regcache_for_register_valid): New function.
6060 (current_regcache): New global variable.
6061 (register_buffer): Add regcache parameter. Update calls.
6062 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6063 (read_register_gen, write_register_gen): Update register_buffer
6064 call. Test for legacy_p instead of gdbarch_register_read_p or
6065 gdbarch_register_write_p.
6066 (regcache_collect): Update register_buffer call.
6067 (build_regcache): Rewrite. Use deprecated grub functions.
6068 (regcache_save, regcache_save_no_passthrough): New functions.
6069 (regcache_restore, regcache_restore_no_passthrough): New
6070 functions.
6071 (_initialize_regcache): Create the regcache_data_handle. Swap
6072 current_regcache global variable.
6073
6074 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6075 parameter to regcache_read and regcache_write calls.
6076 (sh4_register_read): Ditto.
6077 (sh64_pseudo_register_read): Ditto.
6078 (sh64_register_read): Ditto.
6079 (sh_pseudo_register_write): Ditto.
6080 (sh4_register_write): Ditto.
6081 (sh64_pseudo_register_write): Ditto.
6082 (sh64_register_write): Ditto.
6083
6084 * defs.h (XCALLOC): Define.
6085
6086 2002-06-19 Grace Sainsbury <graces@redhat.com>
6087
6088 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6089 * m68k-tdep.c (m68k_gdbarch_init): Added.
6090 (m68k_dump_tdep): Added.
6091
6092 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6093
6094 * ada-lang.c (fill_in_ada_prototype): Update comment.
6095
6096 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6097
6098 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6099 MIPS_ABI_LAST.
6100 (mips_abi_string, mips_abi_strings): New.
6101 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6102 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6103 tdep->mips_abi_string. Honor mips_abi_string. Default to
6104 O32 if no ABI is found.
6105 (mips_dump_tdep): Use mips_abi_strings.
6106 (mips_abi_update): New function.
6107 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6108 ``set mips abi'' and ``show mips abi''. Check the size of
6109 mips_abi_strings.
6110
6111 2002-06-19 Andrew Cagney <cagney@redhat.com>
6112
6113 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6114 constant.
6115
6116 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6117
6118 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6119 current frame using only the first stack size adjustment. All
6120 subsequent size adjustments are not considered to be part of
6121 the "static" part of the current frame.
6122 Compute the address of the saved registers relative to the
6123 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6124 in use in this frame.
6125
6126 2002-06-18 Don Howard <dhoward@redhat.com>
6127
6128 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6129 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6130 suggesting this solution.
6131
6132 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6133
6134 * config/romp/xm-rtbsd.h: Delete file.
6135 * config/romp/rtbsd.mh: Delete file.
6136
6137 2002-06-18 Keith Seitz <keiths@redhat.com>
6138
6139 * breakpoint.c (condition_command): Post breakpoint_modify
6140 when a condition is added to an existing breakpoint.
6141 (commands_command): Likewise for commands.
6142 (set_ignore_count): Likewise for ignore counts.
6143 If no tty, do not simply return, still need to send event
6144 notification.
6145 (ignore_command): Only print a newline if the command came
6146 from a tty.
6147 Don't call breakpoints_changed, since this is now properly
6148 handled by set_ignore_count.
6149
6150 2002-06-18 Andrew Cagney <cagney@redhat.com>
6151
6152 * MAINTAINERS: Note that cris-elf target can be compiled with
6153 -Werror.
6154 * cris-tdep.c (cris_register_name): Make return type constant.
6155 (cris_breakpoint_from_pc): Ditto.
6156
6157 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6158
6159 * frame.h (struct frame_info): Change type of context to
6160 'struct context'.
6161
6162 2002-06-17 Andrew Cagney <cagney@redhat.com>
6163
6164 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6165 pointer.
6166 * gdbarch.h, gdbarch.c: Regenerate.
6167 * config/mips/tm-mips.h (mips_register_name): Update.
6168 * i386-tdep.h (i386_register_name): Update.
6169 * mips-tdep.c (mips_register_name): Update
6170 * alpha-tdep.c (alpha_register_name): Update.
6171 * arch-utils.c (legacy_register_name): Update.
6172 * arch-utils.h (legacy_register_name): Update.
6173 * avr-tdep.c (avr_register_name): Update.
6174 * ia64-tdep.c (ia64_register_name): Update.
6175 * i386-tdep.c (i386_register_name): Update.
6176 * sparc-tdep.c (sparc32_register_name): Update.
6177 (sparc64_register_name): Update.
6178 (sparclite_register_name): Update.
6179 (sparclet_register_name): Update.
6180 * sh-tdep.c (sh_generic_register_name): Update.
6181 (sh_sh_register_name): Update.
6182 (sh_sh3_register_name): Update.
6183 (sh_sh3e_register_name): Update.
6184 (sh_sh_dsp_register_name): Update.
6185 (sh_sh3_dsp_register_name): Update.
6186 (sh_sh4_register_name): Update.
6187 (sh_sh64_register_name): Update.
6188 * s390-tdep.c (s390_register_name): Update.
6189 * rs6000-tdep.c (rs6000_register_name): Update.
6190 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6191 (ns32k_register_name_32382): Update.
6192 * d10v-tdep.c (d10v_ts2_register_name): Update.
6193 (d10v_ts3_register_name): Update.
6194 * xstormy16-tdep.c (xstormy16_register_name): Update.
6195 * vax-tdep.c (vax_register_name): Update.
6196 * v850-tdep.c (v850_register_name): Update.
6197 * m68hc11-tdep.c (m68hc11_register_name): Update.
6198 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6199 (am33_register_name): Update.
6200
6201 2002-06-17 Grace Sainsbury <graces@redhat.com>
6202
6203 * m68k-tdep.c: Reindented.
6204
6205 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6206
6207 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6208 list of predefined types.
6209
6210 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6211
6212 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6213 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6214 REGISTER_CONVERT_TO_RAW): Remove defines.
6215 (i386_register_virtual_type, i386_register_convertible,
6216 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6217 Remove prototypes.
6218 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6219 macros mentioned above.
6220
6221 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6222 (i386lynx_saved_pc_after_call): Remove prototype.
6223 * i386ly-tdep.c: Include "i386-tdep.h".
6224 (i386lynx_saved_pc_after_call): Make static. Use
6225 read_memory_nobpt instead of read_memory. Use
6226 read_memory_unsigned_integer instead of read_memory_integer.
6227 (i386lynx_init_abi): New function.
6228 (i386lynx_coff_osabi_sniffer): New function.
6229 (_initialize_i386bsd_tdep): New function.
6230
6231 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6232 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6233 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6234 (i386_fix_call_dummy): Remove prototype.
6235 * i386-tdep.c (i386_call_dummy_words): New variable.
6236 (i386_gdbarch_init): Adjust for removal of the
6237 macros mentioned above.
6238
6239 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6240
6241 * command.h (add_setshow_auto_boolean_cmd): Replace
6242 add_set_auto_boolean_cmd.
6243 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6244 add_set_auto_boolean_cmd.
6245 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6246 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6247 mask-address'' command.
6248 (show_mask_address): Add cmd parameter.
6249 * remote.c (add_packet_config_cmd): Update. Change type of
6250 set_func and show_func to cmd_sfunc_ftype.
6251 (_initialize_remote): Update `set remote Z-packet'
6252 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6253 (show_remote_protocol_e_packet_cmd): Ditto.
6254 (show_remote_protocol_E_packet_cmd): Ditto.
6255 (show_remote_protocol_P_packet_cmd): Ditto.
6256 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6257 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6258 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6259 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6260 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6261 (show_remote_protocol_Z_packet_cmd): Ditto.
6262 (show_remote_protocol_binary_download_cmd): Ditto.
6263 (show_remote_cmd): Pass NULL to all of above.
6264
6265 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6266
6267 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6268 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6269 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6270 POP_FRAME): Remove defines.
6271 (i386_push_arguments, i386_store_struct_return,
6272 i386_extract_return_value, i386_store_return_value,
6273 i386_extract_struct_value_address, i386_push_dummy_frame,
6274 i386_pop_frame): Renove prototypes.
6275 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6276 macros mentioned above.
6277
6278 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6279
6280 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6281 add_set_boolean_cmd.
6282 (add_setshow_cmd): New function.
6283 * command.h (add_setshow_boolean_cmd): Replace
6284 add_set_boolean_cmd.
6285 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6286 and ``set rdiromatzero''.
6287 * maint.c (_initialize_maint_cmds): Update commented out code.
6288 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6289 * target.c (initialize_targets): Update `set
6290 trust-readonly-sections'.
6291 * remote.c (_initialize_remote): Update `set remotebreak'.
6292
6293 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6294
6295 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6296 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6297 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6298 fit into multi-arch framework.
6299 (i386_breakpoint_from_pc): New function.
6300 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6301 above.
6302
6303 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6304 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6305 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6306 (i386_frameless_function_invocation, i386_frame_num_args,
6307 i386_frame_init_saved_regs): Remove 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 (set_cmd_cfunc): Update.
6314 (set_cmd_sfunc): Update.
6315 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6316 (set_cmd_sfunc, set_cmd_cfunc): Update.
6317 * cli/cli-decode.h: Update.
6318
6319 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6320
6321 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6322 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6323
6324 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6325
6326 * defs.h (auto_boolean): Declare enum.
6327 * command.h (cmd_auto_boolean): Delete enum.
6328 * mips-tdep.c (mask_address_var): Update.
6329 (mips_mask_address_p): Update.
6330 (show_mask_address): Update.
6331 * remote.c (struct packet_config): Update.
6332 (update_packet_config): Update.
6333 (show_packet_config_cmd): Update.
6334 (packet_ok): Update.
6335 (add_packet_config_cmd): Update.
6336 (_initialize_remote):
6337 * command.h: Update.
6338 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6339 (do_setshow_command): Update.
6340 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6341 * cli/cli-decode.h: Update.
6342
6343 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6344
6345 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6346 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6347 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6348 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6349 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6350 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6351
6352 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6353 list of DJGPP COFF targets.
6354
6355 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6356 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6357 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6358 (FP0_REGNUM): Remove define.
6359 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6360 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6361 (i386_register_virtual_size): Remove protoype.
6362 * i386-tdep.c (i386_register_virtual_size): Removed.
6363 (i386_extract_return_value, i386_store_return_value): Use
6364 FP0_REGNUM instead of NUM_FREGS to determine whether the
6365 floating-point registers are available.
6366 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6367 Adjust for removal of macros mentioned above.
6368
6369 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6370
6371 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6372 comments.
6373 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6374 Remove prototypes.
6375 (supply_gregset, fill_gregset): Remove use of register keyword and
6376 remove declaration for regmap. Use I386_NUM_GREGS instead of
6377 NUM_REGS and NUM_FREGS.
6378 (FPREGSET_FSAVE_OFFSET): Remove.
6379 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6380 NUM_FREGS to determine whether the floating-point registers are
6381 available.
6382
6383 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6384 gnu_store_registers): Replace usage of NUM_GREGS with
6385 I386_NUM_GREGS.
6386
6387 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6388 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6389 usage of NUM_GREGS with I386_NUM_GREGS.
6390
6391 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6392
6393 * i386bsd-nat.c: Include "i386-tdep.h".
6394 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6395 I386_NUM_GREGS.
6396
6397 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6398 and associated comment. They no longer make any sense, since we
6399 don't use this file anymore on Linux.
6400
6401 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6402 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6403 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6404 elements in these arrays.
6405 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6406 MAX_NUM_REGS.
6407
6408 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6409
6410 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6411 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6412
6413 2002-06-14 Andrew Cagney <cagney@redhat.com>
6414
6415 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6416 EXTRACT_RETURN_VALUE.
6417 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6418 EXTRACT_STRUCT_VALUE_ADDRESS.
6419 * gdbarch.h, gdbarch.c: Regenerate.
6420
6421 * values.c (value_being_returned): Handle
6422 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6423 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6424
6425 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6426 * arm-tdep.c (arm_gdbarch_init): Update.
6427 * avr-tdep.c (avr_gdbarch_init): Update.
6428 * cris-tdep.c (cris_gdbarch_init): Update.
6429 * d10v-tdep.c (d10v_gdbarch_init): Update.
6430 * ia64-tdep.c (ia64_gdbarch_init): Update.
6431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6432 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6433 * s390-tdep.c (s390_gdbarch_init): Update.
6434 * sh-tdep.c (sh_gdbarch_init): Update.
6435 * s390-tdep.c (s390_gdbarch_init): Update.
6436 * sparc-tdep.c (sparc_gdbarch_init): Update.
6437 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6438 * v850-tdep.c (v850_gdbarch_init): Update.
6439 * vax-tdep.c (vax_gdbarch_init): Update.
6440 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6442
6443 * config/arc/tm-arc.h: Update.
6444 * config/d30v/tm-d30v.h: Update.
6445 * config/fr30/tm-fr30.h: Update.
6446 * config/h8300/tm-h8300.h: Update.
6447 * config/h8500/tm-h8500.h: Update.
6448 * config/i386/tm-i386.h: Update.
6449 * config/i386/tm-ptx.h: Update.
6450 * config/i386/tm-symmetry.h: Update.
6451 * config/i960/tm-i960.h: Update.
6452 * config/m32r/tm-m32r.h: Update.
6453 * config/m68k/tm-delta68.h: Update.
6454 * config/m68k/tm-linux.h: Update.
6455 * config/m68k/tm-m68k.h: Update.
6456 * config/m88k/tm-m88k.h: Update.
6457 * config/mcore/tm-mcore.h: Update.
6458 * config/mips/tm-mips.h: Update.
6459 * config/mn10200/tm-mn10200.h: Update.
6460 * config/pa/tm-hppa.h: Update.
6461 * config/pa/tm-hppa64.h: Update.
6462 * config/sparc/tm-sp64.h: Update.
6463 * config/sparc/tm-sparc.h: Update.
6464 * config/sparc/tm-sparclet.h: Update.
6465 * config/z8k/tm-z8k.h: Update.
6466
6467 2002-06-14 Andrew Cagney <cagney@redhat.com>
6468
6469 * Makefile.in (i386_linux_tdep_h): Define.
6470 (i386_tdep_h, i387_tdep_h): Define.
6471 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6472 $(i386_tdep_h) and $(i387_tdep_h).
6473 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6474
6475 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6476
6477 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6478 Already covered by the default.
6479
6480 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6481 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6482 (i386_gdbarch_init): Initialize long_double_format and long_double
6483 bit.
6484
6485 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6486 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6487 Move these to ...
6488 * config/i386/i386sol2.mh: ... here.
6489 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6490 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6491 (SIGCONTEXT_PC_OFFSET): Remove define.
6492 (IN_SIGTRAMP): Remove define.
6493 * i386-sol2-tdep.c: New file.
6494
6495 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6496 * config/i386/tm-i386nw.h: Removed.
6497
6498 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6499 USE_STRUCT_CONVENTION): Remove defines.
6500 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6501 (get_longjmp_target): Remove prototype.
6502 (IN_SIGTRAMP): Remove define.
6503 (i386bsd_in_sigtramp): Remove prototype.
6504 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6505 function. Update comment accordingly
6506 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6507 (FRAME_SAVED_PC): Remove define.
6508 (i386bsd_frame_saved_pc): Remove prototype.
6509 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6510 GET_LONGJMP_TARGET): Remove defines.
6511 (get_longjmp_target): Remove prototype.
6512 (IN_SIGTRAMP): Remove define.
6513 (i386bsd_in_sigtramp): Remove prototype.
6514 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6515 function. Update comment accordingly
6516 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6517 (FRAME_SAVED_PC): Remove define.
6518 (i386bsd_frame_saved_pc): Remove prototype.
6519 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6520 Remove prototype.
6521 (USE_STRUCT_CONVENTION): Remove prototype.
6522 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6523 declaration.
6524 (_initialize_i386bsd_nat): Revise logic to determine some
6525 constants at compile time when compiling a native GDB. Warn if
6526 things don't match up with what we expect.
6527 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6528 Remove variables.
6529 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6530 to use date stored in `struct gdbarch_tdep'.
6531 (i386bsd_sigcontext_offset): Remove varaible.
6532 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6533 stored in `struct gdbarch_tdep'.
6534 (i386bsd_frame_saved_pc): Make static.
6535 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6536 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6537 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6538 i386fbsd4_sc_pc_offset): New variables.
6539 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6540 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6541 functions.
6542 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6543 functions.
6544 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6545 Modify the value of i386fbsd_sigtramp_start and
6546 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6547 i386fbsd_sigtramp_end.
6548 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6549 function.
6550
6551 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6552 define to i386-linux-tdep.h.
6553 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6554 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6555 defines.
6556 (i386_linux_register_name, i386_linux_register_byte,
6557 i386_linux_register_raw_size): Remove prototypes.
6558 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6559 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6560 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6561 TARGET_WRITE_PC): Remove defines.
6562 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6563 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6564 i386_linux_write_pc): Remove prototypes.
6565 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6566 (get_longjmp_target): Remove prototype.
6567 * i386-linux-tdep.h: New file.
6568 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6569 * i386-linux-tdep.c: Include "i386-tdep.h" and
6570 "i386-linux-tdep.h".
6571 (i386_linux_register_name, i386_linux_register_byte,
6572 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6573 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6574 Make static.
6575 (i386_linux_init_abi): New function.
6576 (_initialize_i386_linux_tdep): New function.
6577
6578 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6579 (i386_saved_pc_after_call): Remove prototype.
6580 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6581 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6582 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6583 (i386_register_name, i386_stab_reg_to_regnum,
6584 i386_dwarf_reg_to_regnum): Remove prototypes.
6585 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6586 SIZEOF_SSE_REGS): Remove defines.
6587 (REGISTER_BYTES): Remove define.
6588 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6589 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6590 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6591 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6592 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6593 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6594 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6595 (get_longjmp_target): Remove prototype.
6596 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6597 (sigtramp_saved_pc): Remove define.
6598 (i386v4_sigtramp_saved_pc): Remove prototype.
6599 * config/i386/tm-go32.h (FRAME_CHAIN,
6600 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6601 (i386go32_frame_saved_pc): Remove prototype.
6602 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6603 (get_longjmp_target): Remove prototype.
6604 * i386-tdep.h: Include "osabi.h".
6605 (enum i386_abi): Removed.
6606 (enum struct_return): New enum.
6607 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6608 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6609 sc_pc_offset members.
6610 (i386_gdbarch_register_os_abi): Remove prototype.
6611 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6612 I386_SSE_NUM_REGS): New defines.
6613 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6614 I386_SSE_SIZEOF_REGS): New defines.
6615 (i386_register_name, i386_register_byte, i386_register_raw_size):
6616 New prototypes.
6617 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6618 (i386bsd_sigtramp_saved_pc): New prototype.
6619 * i386-tdep.c: Don't include "elf-bfd.h".
6620 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6621 i386_frame_chain, i386_saved_pc_after_call): Make static.
6622 (i386_frame_saved_pc): Rewrite to call architecture dependent
6623 function to deal with signal handlers. Make static.
6624 (i386go32_frame_saved_pc): Removed.
6625 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6626 Removed.
6627 (i386_get_longjmp_target): New function.
6628 (default_struct_convention, pcc_struct_convention,
6629 reg_struct_convention, valid_conventions, struct_convention): New
6630 variables.
6631 (i386_use_struct_convention): New function.
6632 (i386v4_sigtramp_saved_pc): Renamed to
6633 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6634 (i386_pc_in_sigtramp): New function.
6635 (i386_abi_names): Removed.
6636 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6637 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6638 Removed.
6639 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6640 i386_gdbarch_register_os_abi): Removed.
6641 (struct i386_abi_handler): Removed.
6642 (i386_abi_handler_list): Removed.
6643 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6644 functions.
6645 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6646 i386_nw_init_abi): New functions.
6647 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6648 Use set_gdbarch_xxx() calls instead of relying on macros for a
6649 number of calls.
6650 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6651 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6652 Register the various architecture variants defined in this file.
6653
6654 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6655
6656 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6657 (struct main_type): Remove arg_types member. Update comments for
6658 struct field.
6659 (TYPE_ARG_TYPES): Remove.
6660 (TYPE_FN_FIELD_ARGS): Update.
6661 (smash_to_method_type): Update prototype.
6662
6663 * c-typeprint.c (cp_type_print_method_args): Take method type
6664 instead of argument list. Use new argument layout. Simplify.
6665 (c_type_print_args): Use new argument layout. Simplify.
6666 (c_type_print_base): Update call to cp_type_print_method_args.
6667 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6668 argument; use die->type instead. Update call to
6669 smash_to_method_type.
6670 (read_structure_scope): Update call to dwarf2_add_member_fn.
6671 * gdbtypes.c (allocate_stub_method): Update comment.
6672 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6673 Use new argument layout.
6674 (check_stub_method): Use new argument layout. Don't count
6675 void as an argument.
6676 (print_arg_types): Update comments. Use new argument layout.
6677 (recursive_dump_type): Don't print arg_types member.
6678 * hpread.c (hpread_read_struct_type): Use new argument layout.
6679 (fixup_class_method_type): Likewise.
6680 (hpread_type_lookup): Likewise.
6681 * stabsread.c (read_type): Update calls to read_args and
6682 smash_to_method_type.
6683 (read_args): Use new argument layout. Simplify.
6684 * valops.c (typecmp): Use new argument layout. Update parameters
6685 and comments. Simplify.
6686 (hand_function_call): Use new argument layout.
6687 (search_struct_method): Update call to typecmp.
6688 (find_overload_match): Use new argument layout.
6689
6690 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6691
6692 * NEWS: Mention multithreaded debug support for gdbserver.
6693
6694 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6695
6696 * MAINTAINERS: Mention NEWS.
6697
6698 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6699
6700 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6701 (struct mips_objfile_private, compare_pdr_entries): New.
6702 (non_heuristic_proc_desc): Read the ".pdr" section if it
6703 is present.
6704
6705 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6706
6707 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6708 (arm_debug): New static variable.
6709 (_initialize_arm_tdep): Add ``set debug arm'' command.
6710
6711 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6712
6713 * Makefile.in (sim_arm_h): Define.
6714 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6715 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6716 (arm_register_sim_regno): New function, map an internal REGNUM
6717 onto a simulator register number.
6718 (arm_gdbarch_init): Set register_sim_regno.
6719
6720 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6721
6722 * MAINTAINERS: Add self.
6723
6724 2002-06-11 Jim Blandy <jimb@redhat.com>
6725
6726 * source.c (source_info): Mention whether the symtab has
6727 information about preprocessor macros.
6728
6729 Call the command `info macro', not `show macro'.
6730 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6731 Fix error message.
6732 (_initialize_macrocmd): Register `info_macro_command' in
6733 `infolist', not `showlist'.
6734
6735 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6736
6737 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6738 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6739 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6740 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6741 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6742 unconditionally.
6743 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6744 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6745 (_initialize_mips_tdep): Remove dead code.
6746 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6747 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6748 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6749 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6750 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6751 MIPS_LAST_FP_ARG_REGNUM): Remove.
6752
6753 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6754
6755 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6756 (unwind_tmp_obstack_free, parse_frame_info)
6757 (update_context, cfi_read_fp, cfi_write_fp)
6758 (cfi_frame_chain, cfi_init_extra_frame_info)
6759 (cfi_virtual_frame_pointer): Use the above function.
6760 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6761
6762 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6763
6764 * v850-tdep.c (v850_type_is_scalar): New function.
6765 (v850_use_struct_convention): Match current gcc implementation
6766 as close as possible.
6767 (v850_push_arguments): Fix stack_offset handling. Don't write
6768 struct_addr into register. This is done by v850_store_struct_return.
6769 (v850_extract_return_value): Care for structs.
6770 (v850_store_return_value): Ditto.
6771 (v850_store_struct_return): Actually write address.
6772
6773 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6774
6775 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6776 without debug information too.
6777
6778 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6779
6780 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6781 Make multi-arch pure.
6782 * gdbarch.h, gdbarch.c: Re-generate.
6783 * arm-tdep.c (arm_print_float_info): Update.
6784 * arch-utils.h (default_print_float_info): Update.
6785 * arch-utils.c (default_print_float_info): Update.
6786 * infcmd.c (float_info): Update call.
6787
6788 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6789
6790 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6791 the front of the initialize list.
6792
6793 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6794
6795 * infrun.c (struct inferior_status): Replace fields
6796 selected_frame_address and selected_level with field
6797 selected_frame_id.
6798 (save_inferior_status): Update. Use get_frame_id.
6799 (struct restore_selected_frame_args): Delete.
6800 (restore_selected_frame): Update. Use frame_find_by_id.
6801 (restore_inferior_status): Update.
6802
6803 * breakpoint.h (struct breakpoint): Change type of
6804 watchpoint_frame to frame_id.
6805 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6806 call to get_current_frame.
6807 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6808 get_current_frame.
6809 (watchpoint_check): Use frame_find_by_id.
6810
6811 * frame.h (record_selected_frame): Delete declaration.
6812 * stack.c (record_selected_frame): Delete function.
6813
6814 * frame.h (struct frame_id): Define.
6815 (get_frame_id): Declare.
6816 (frame_find_by_id): Declare.
6817 * frame.c (frame_find_by_id): New function.
6818 (get_frame_id): New function.
6819
6820 2002-06-10 Andrey Volkov <avolkov@transas.com>
6821
6822 * ser-e7kpc.c: Fix duplicated define and call of
6823 _initialize_ser_e7000pc
6824
6825 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6826
6827 * signals/signals.c (target_signal_from_host): Fix #ifdef
6828 SIGRTMIN case.
6829 (do_target_signal_to_host): Likewise.
6830
6831 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6832
6833 * mips-tdep.c (mips_find_abi_section): New function.
6834 (mips_gdbarch_init): Call it.
6835
6836 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6837
6838 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6839 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6840 after Andrew's 2002-06-08 gdbarch change.
6841
6842 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6843
6844 * i386-linux-nat.c (suppy_gregset): Don't supply
6845 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6846 register cache.
6847 (fill_gregset): Don't fetch it under the same circumstances.
6848
6849 2002-06-09 Andrew Cagney <cagney@redhat.com>
6850
6851 * Makefile.in (callback_h): Define.
6852 (remote_sim_h): Update path to remote-sim.h.
6853 (remote-rdp.o): Add $(callback_h).
6854 (remote-sim.o): Use $(callback_h).
6855 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6856 * remote-rdp.c: Include "gdb/callback.h".
6857
6858 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6859
6860 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6861 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6862
6863 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6864
6865 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6866 * rdi-share/serpardr.c: Ditto.
6867 * rdi-share/unixcomm.c: Ditto.
6868 * rdi-share/serdrv.c: Ditto.
6869 * rdi-share/hostchan.h: Ditto.
6870 * rdi-share/hostchan.c: Ditto.
6871 * rdi-share/host.h: Ditto.
6872 * rdi-share/devsw.c: Ditto.
6873
6874 * objfiles.h: Change type of obj_private to void pointer.
6875 * pa64solib.c: Update copyright. Don't include "assert.h", use
6876 strcmp instead of STREQ, use LONGEST, do not use PTR
6877 * somsolib.c: Ditto.
6878
6879 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6880 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6881 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6882
6883 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6884
6885 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6886 (default_get_saved_register): Delete function.
6887 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6888 generic_unwind_get_saved_register.
6889 * gdbarch.h, gdbarch.c: Re-generate.
6890
6891 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6892
6893 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6894 generic_func_frame_chain_valid.
6895 * gdbarch.h, gdbarch.c: Re-generate.
6896 * blockframe.c (generic_func_frame_chain_valid): Only check
6897 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6898 passing FP to PC_IN_CALL_DUMMY.
6899 Fix PR gdb/360.
6900
6901 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6902
6903 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6904 (register_gdbarch_data): Initialize init_p.
6905 (gdbarch_data): Initialize data pointer using the init function.
6906 (init_gdbarch_data): Delete function.
6907 (gdbarch_update_p): Update.
6908 (initialize_non_multiarch): Update.
6909 (struct gdbarch): Add field initialized_p.
6910 * gdbarch.h, gdbarch.c: Re-generate.
6911
6912 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6913
6914 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6915 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6916 better do the things actually here.
6917 * x86-64-tdep.c (x86_64_register_name2nr): New.
6918 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6919 (x86_64_gdbarch_init): Respect the above change.
6920 * x86-64-tdep.h (x86_64_register_name2nr)
6921 (x86_64_register_nr2name): Add prototypes.
6922 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6923
6924 2002-06-06 Michael Snyder <msnyder@redhat.com>
6925
6926 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6927 Delete extra braces and re-indent.
6928 (d10v_store_return_value): Char return values
6929 must be shifted over by one byte in R0.
6930 (d10v_extract_return_value): Delete extra braces, re-indent.
6931
6932 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6933
6934 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6935 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6936 (d10v_integer_to_address): Rewrite.
6937 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6938 the d10v specific functions which take care of converting to the
6939 correct space.
6940
6941 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6942
6943 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6944 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6945
6946 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6947
6948 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6949 includes.
6950 * config/tm-linux.h: Ditto.
6951 * config/alpha/tm-alphalinux.h: Ditto.
6952 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6953 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6954 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6955 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6956 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6957 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6958 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6959 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6960 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6961 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6962 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6963 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6964 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6965 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6966 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6967 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6968 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6969 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6970 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6971 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6972 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6973 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6974 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6975 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6976 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6977 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6978 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6979 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6980 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6981 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6982 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6983 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6984 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6985 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6986 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6987 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6988 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6989
6990 2002-05-04 Aidan Skinner <aidan@velvet.net>
6991
6992 * ada-exp.tab.c: New file
6993 * ada-exp.y: New file
6994 * ada-lang.c: New file
6995 * ada-lang.h: New file
6996 * ada-lex.c: New file
6997 * ada-lex.l: New file
6998 * ada-tasks.c: New file
6999 * ada-typeprint.c: New file
7000 * ada-valprint.c: New file
7001
7002 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7003
7004 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7005 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7006
7007 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7008
7009 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7010 insetead of ppc-linux-tdep.o.
7011 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7012 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7013
7014 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7015
7016 2002-05-07 Christian Groessler <chris@groessler.org>
7017 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7018 bit register contents for little endian hosts.
7019
7020 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7021
7022 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7023 any maintainer.
7024
7025 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7026
7027 * gdbarch.h: Regenerate.
7028
7029 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7030
7031 * MAINTAINERS: Add everyone to write-after-approval list.
7032
7033 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7034
7035 * stack.c (frame_info): Use frame_register_unwind instead of
7036 saved_regs. Mention when the SP is on the stack or in a register.
7037
7038 * frame.h (frame_register_unwind_ftype): Define. Document.
7039 (struct frame_info): Add field register_unwind and
7040 register_unwind_cache.
7041 (frame_register_unwind): Declare.
7042 (generic_unwind_get_saved_register): Declare.
7043
7044 * frame.c (frame_register_unwind): New function.
7045 (generic_unwind_get_saved_register): New function.
7046
7047 * blockframe.c (generic_call_dummy_register_unwind): New function.
7048 (frame_saved_regs_register_unwind): New function.
7049 (set_unwind_by_pc): New function.
7050 (create_new_frame): New function.
7051 (get_prev_frame): New function.
7052
7053 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7054
7055 * a29k-share/: Delete directory.
7056 * remote-vx29k.c: Delete file.
7057
7058 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7059
7060 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7061 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7062
7063 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7064
7065 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7066 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7067 (sparc64nbsd-nat.o)
7068 (sparcnbsd-nat.o)
7069 (sparcnbsd-tdep.o): New dependency lists.
7070 * NEWS: Note new UltraSPARC NetBSD native configuration.
7071 * configure.host (sparc64-*-netbsd*): New host.
7072 * configure.tgt (sparc-*-netbsdelf*)
7073 (sparc-*-netbsd*): Set gdb_target to nbsd.
7074 (sparc64-*-netbsd*): New target.
7075 * sparc64nbsd-nat.c: New file.
7076 * sparcnbsd-nat.c: New file.
7077 * sparcnbsd-tdep.c: New file.
7078 * sparcnbsd-tdep.h: New file.
7079 * config/sparc/nbsd.mt: New file.
7080 * config/sparc/nbsd64.mh: New file.
7081 * config/sparc/nbsd64.mt: New file.
7082 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7083 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7084 (HOST_IPC): Remove.
7085 * config/sparc/nbsdaout.mt: Remove.
7086 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7087 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7088 (HOST_IPC): Remove.
7089 * config/sparc/nbsdelf.mt: Remove.
7090 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7091 sparc-nat.c compatiblity defines.
7092 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7093 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7094 * config/sparc/tm-nbsd64.h: New file.
7095 * config/sparc/tm-nbsdaout.h: Remove.
7096 * config/sparc/xm-nbsd.h: Remove.
7097
7098 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7099
7100 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7101 * sparc-tdep.c: Include osabi.h.
7102 (gdbarch_tdep): Add osabi member.
7103 (_initialize_sparc_tdep): Use gdbarch_register.
7104 (sparc_gdbarch_init): Use generic OS ABI framework.
7105 (sparc_dump_tdep): New function.
7106
7107 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7108
7109 * corefile.c (do_captured_read_memory_integer): Return non-zero
7110 result.
7111 (safe_read_memory_integer): Copy result of memory read when
7112 status is non-zero. Also, add comments.
7113
7114 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7115
7116 * Makefile.in (ppc_tdep_h): Define.
7117 (ppc-linux-nat.o)
7118 (ppc-linux-tdep.o)
7119 (rs6000-tdep.o): Use $(ppc_tdep_h).
7120 (ppc-sysv-tdep.o)
7121 (ppcnbsd-nat.o)
7122 (ppcnbsd-tdep.o): New dependency lists.
7123 * ppc-tdep.h: Use generic OS ABI framework.
7124 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7125 (ppc_linux_init_abi): New functions.
7126 (ppc_sysv_abi_broken_use_struct_convention)
7127 (ppc_sysv_abi_use_struct_convention)
7128 (ppc_sysv_abi_push_arguments): Move to...
7129 * ppc-sysv-tdep.c: ...here.
7130 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7131 * rs6000-tdep.c (process_note_abi_tag_sections)
7132 (get_elfosabi): Remove.
7133 (rs6000_gdbarch_init): Use generic OS ABI framework.
7134 (rs6000_dump_tdep): New function.
7135 (_initialize_rs6000_tdep): Use gdbarch_register.
7136 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7137 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7138 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7139 of ppc-linux-tdep.o.
7140 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7141 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7142 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7143 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7144 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7145 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7146
7147 2002-05-29 Jim Blandy <jimb@redhat.com>
7148
7149 * macroscope.c (default_macro_scope): Put `void' in empty argument
7150 list.
7151
7152 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7153
7154 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7155 * arch-utils.c: Include "sim-regno.h".
7156 * gdbarch.sh: Don't include "sim-regno.h".
7157 * gdbarch.h, gdbarch.c: Regenerate.
7158 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7159 here.
7160 * arch-utils.h (legacy_register_sim_regno): To here.
7161 * remote-sim.c (legacy_register_sim_regno): Move function from
7162 here.
7163 * arch-utils.c (legacy_register_sim_regno): To here.
7164
7165 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7166
7167 * sim-regno.h: New file.
7168 * Makefile.in (sim_regno_h): Define.
7169 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7170 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7171 (legacy_register_sim_regno): New function.
7172 (one2one_register_sim_regno): New function.
7173 (gdbsim_fetch_register): Rewrite.
7174 (gdbsim_store_register): Only store a register when
7175 REGISTER_SIM_REGNO is valid.
7176 * d10v-tdep.c: Include "sim-regno.h".
7177 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7178 (d10v_ts3_register_sim_regno): Ditto.
7179 * gdbarch.sh: Include "sim-regno.h".
7180 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7181 * gdbarch.h, gdbarch.c: Regenerate.
7182 * arch-utils.h (default_register_sim_regno): Delete declaration.
7183 * arch-utils.c (default_register_sim_regno): Delete function.
7184
7185 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7186
7187 * ppcnbsd-nat.c: Rewrite.
7188 * ppcnbsd-tdep.c: New file.
7189 * ppcnbsd-tdep.h: New file.
7190 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7191 solib.o, and solib-svr4.o.
7192 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7193 nbsd-tdep.o, and corelow.o.
7194
7195 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7196
7197 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7198 `tr' and `sed'. Mention that `broken' targets are not expected to
7199 build.
7200
7201 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7202
7203 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7204 Let PC point right after the prologue before looking up symbols.
7205
7206 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7207
7208 * i386-tdep.c (i386_register_virtual_type): Return
7209 builtin_type_vec128i for SSE registers.
7210
7211 * gdbtypes.h (builtin_type_vec128i): Declare.
7212
7213 * gdbtypes.c (build_builtin_type_vec128i): New function.
7214 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7215 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7216 (build_gdbtypes): Initialize new builtin vector types.
7217 (_initialize_gdbtypes): Register new vector types with gdbarch.
7218
7219 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7220
7221 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7222 since it has been multi-arch'd.
7223 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7224 Move Alpha and VAX multi-arch news entries to same section
7225 as other multi-arch news.
7226
7227 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7228
7229 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7230 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7231 static. Rename some register numbers to put them in ns32k-tdep
7232 private namespace.
7233 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7234 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7235 functions.
7236 (_initialize_ns32k_tdep): Use gdbarch_register.
7237 * ns32k-tdep.h: New file.
7238 * ns32knbsd-tdep.c: New file.
7239 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7240 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7241 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7242 REGISTER_BYTES, REGISTER_BYTE): Remove.
7243 * config/ns32k/tm-ns32k.h: New file.
7244 * config/ns32k/tm-umax.h: Remove.
7245
7246 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7247
7248 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7249 ns32k_store_struct_return, ns32k_extract_return_value,
7250 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7251 functions.
7252 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7253 ns32k_saved_pc_after_call.
7254 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7255 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7256 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7257 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7258 ns32k_extract_struct_value_address.
7259
7260 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7261
7262 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7263 ns32k_fix_call_dummy): New.
7264 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7265 ns32k_call_dummy_words.
7266 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7267 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7268 CALL_DUMMY_NARGS): Remove.
7269 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7270
7271 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7272
7273 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7274 ns32k_frame_saved_pc, ns32k_frame_args_address,
7275 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7276 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7277 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7278 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7279 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7280 (BREAKPOINT): Remove..
7281 (FRAME_CHAIN): Define as ns32k_frame_chain.
7282 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7283 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7284 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7285 (FRAME_FIND_SAVED_REGS): Remove.
7286 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7287 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7288 (POP_FRAME): Define as ns32k_pop_frame.
7289
7290 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7291
7292 * ns32k-tdep.c (ns32k_register_byte_32082,
7293 ns32k_register_byte_32382, ns32k_register_raw_size,
7294 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7295 functions.
7296 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7297 ns32k_register_byte_32382.
7298 * config/ns32k/tm-umax.h: Update copyright years.
7299 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7300 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7301 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7302 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7303 (ns32k_get_enter_addr): Fix prototype.
7304
7305 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7306
7307 * ns32k-tdep.c: Update copyright years.
7308 (ns32k_register_name_32082): New function.
7309 (ns32k_register_name_32382): Ditto.
7310 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7311 (REGISTER_NAME): Define as ns32k_register_name_32382.
7312 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7313 (REGISTER_NAME): Define as ns32k_register_name_32082.
7314
7315 2002-05-24 Jim Blandy <jimb@redhat.com>
7316
7317 * dwarf2read.c (free_line_header): Use xfree, not free.
7318
7319 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7320
7321 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7322 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7323
7324 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7325
7326 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7327
7328 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7329
7330 From Ross Alexander at NEC Europe:
7331 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7332
7333 2002-05-23 Michael Snyder <msnyder@redhat.com>
7334
7335 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7336 for input, rather than parse_and_eval_address.
7337
7338 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7339
7340 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7341 * Makefile.in (sim_d10v_h): Update definition.
7342
7343 2002-05-24 Andrew Cagney <cagney@redhat.com>
7344
7345 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7346 change `2002-05-22 Michael Snyder' below.
7347 (d10v_push_arguments): Ditto.
7348 (d10v_extract_return_value): Ditto.
7349
7350 2002-05-23 Jim Blandy <jimb@redhat.com>
7351
7352 * macrotab.c (check_for_redefinition): Don't complain if the new
7353 definition is the same as the previous one. Take more arguments
7354 to allow the comparison.
7355 (macro_define_object, macro_define_function): Pass more arguments
7356 to check_for_redefinition.
7357
7358 2002-05-22 Michael Snyder <msnyder@redhat.com>
7359
7360 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7361 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7362 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7363 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7364 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7365 Add a temp variable to save a call (and a memory read).
7366 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7367 if possible (so that PC_IN_CALL_DUMMY will work).
7368
7369 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7370
7371 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7372
7373 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7374
7375 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7376 fde->cie_ptr.
7377 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7378 (dwarf2_build_frame_info): Add offset to fde->initial_location
7379 so that frames of shared libraries are mapped correctly.
7380 (execute_stack_op): Change type of 'result' from ULONGEST to
7381 CORE_ADDR.
7382
7383 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7384
7385 * config/alpha/tm-nbsd.h: Include solib.h.
7386
7387 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7388
7389 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7390 assumptions about the host's byte order.
7391
7392 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7393
7394 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7395 to dependency list.
7396 * alphanbsd-tdep.c: Include solib-svr4.h.
7397 * shnbsd-tdep.c: Ditto.
7398
7399 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7400
7401 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7402 nbsd-tdep.h to dependency list.
7403 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7404 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7405 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7406 nbsdaout.mh and nbsdelf.mh consistently.
7407 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7408 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7409 nbsdaout.mt and nbsdelf.mh consistently.
7410 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7411 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7412 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7413 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7414 a.out shared library stuff from here...
7415 * config/nm-nbsdaout.h: ...to here.
7416 * config/tm-nbsd.h: Remove.
7417 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7418 * config/arm/nbsd.mh: Remove.
7419 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7420 nbsd-tdep.o.
7421 * config/arm/nbsdaout.mh: New file.
7422 * config/arm/nbsdelf.mh: New file.
7423 * config/arm/nm-nbsdaout.h: New file.
7424 * config/i386/nbsd.mh: Remove.
7425 * config/i386/nbsd.mt: Remove.
7426 * config/i386/nbsdaout.mh: New file.
7427 * config/i386/nbsdaout.mt: New file.
7428 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7429 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7430 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7431 i386_register_u_addr): Remove.
7432 * config/i386/nm-nbsdaout.h: New file.
7433 * config/i386/nm-nbsdelf.h: Remove.
7434 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7435 (USE_STRUCT_CONVENTION): Remove.
7436 * config/i386/tm-nbsdaout.h: New file.
7437 * config/i386/tm-nbsdelf.h: Remove.
7438 * config/m68k/nbsd.mh: Remove.
7439 * config/m68k/nbsd.mt: Remove.
7440 * config/m68k/nbsdaout.mh: New file.
7441 * config/m68k/nbsdaout.mt: New file.
7442 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7443 * config/m68k/nm-nbsdaout.h: New file.
7444 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7445 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7446 * config/ns32k/nbsd.mh: Remove.
7447 * config/ns32k/nbsd.mt: Remove.
7448 * config/ns32k/nbsdaout.mh: New file.
7449 * config/ns32k/nbsdaout.mt: New file.
7450 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7451 * config/ns32k/nm-nbsdaout.h: New file.
7452 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7453 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7454 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7455 (SVR4_SHARED_LIBS): Remove.
7456 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7457 * config/sparc/nbsd.mh: Remove.
7458 * config/sparc/nbsd.mt: Remove.
7459 * config/sparc/nbsdaout.mh: New file.
7460 * config/sparc/nbsdaout.mt: New file.
7461 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7462 * config/sparc/nbsdelf.mt: New file.
7463 * config/sparc/nm-nbsdaout.h: New file.
7464 * config/sparc/nm-nbsdelf.h: Remove.
7465 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7466 * config/sparc/tm-nbsdaout.h: New file.
7467
7468 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7469
7470 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7471 mipsnbsd-tdep.c
7472 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7473
7474 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7475
7476 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7477 shnbsd-nat.c.
7478 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7479
7480 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7481
7482 * NEWS: Note new MIPS NetBSD native configuration.
7483 * configure.host (mips*-*-netbsd*): New host.
7484 * configure.tgt (mips*-*-netbsd*): New target.
7485 * mipsnbsd-nat.c: New file.
7486 * mipsnbsd-tdep.c: New file.
7487 * mipsnbsd-tdep.h: New file.
7488 * config/mips/nbsd.mh: New file.
7489 * config/mips/nbsd.mt: New file.
7490 * config/mips/nm-nbsd.h: New file.
7491 * config/mips/tm-nbsd.h: New file.
7492
7493 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7494
7495 * Makefile.in (SFILES): Add osabi.c.
7496 (COMMON_OBS): Add osabi.o.
7497 (osabi.o): New dependency list.
7498 * osabi.c: New file.
7499 * osabi.h: New file.
7500 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7501
7502 * Makefile.in (alpha_tdep_h): Define and use instead of
7503 alpha-tdep.h.
7504 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7505 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7506 Remove.
7507 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7508 * alpha-tdep.h: Include osabi.h.
7509 (alpha_abi): Remove.
7510 (gdbarch_tdep): Use generic OS ABI framework.
7511 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7512 gdbarch_register_osabi.
7513 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7514 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7515 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7516
7517 * Makefile.in (sh_tdep_h): Add osabi.h.
7518 * sh-tdep.h (sh_osabi): Remove.
7519 (gdbarch_tdep): Use generic OS ABI framework.
7520 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7521 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7522 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7523 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7524
7525 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7526 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7527 gdbarch_register_osabi.
7528 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7529 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7530 (get_elfosabi): Rename to...
7531 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7532 ABI framework support routines.
7533 (arm_gdbarch_init): Use generic OS ABI framework.
7534 (arm_dump_tdep): Likewise.
7535 (_initialize_arm_tdep): Likewise.
7536 * arm-tdep.h: Include osabi.h.
7537 (arm_abi): Remove.
7538 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7539 osabi member.
7540 (arm_gdbarch_register_os_abi): Remove prototype.
7541 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7542 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7543
7544 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7545 * mips-tdep.c: Include osabi.h.
7546 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7547 OS ABI framework.
7548
7549 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7550
7551 * h8300-tdep.c: Fix formatting.
7552
7553 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7554
7555 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7556 printing vector registers.
7557
7558 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7559
7560 From Fernando Nasser:
7561 * remote.c (remote_async_open_1): Re-throw the exception when the
7562 connection fails.
7563 (remote_cisco_open): Ditto.
7564 (remote_open_1): Ditto.
7565
7566 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7567
7568 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7569 (remote_start_remote): Add uiout parameter. Pass through to
7570 remote_start_remote_dummy.
7571 (remote_open_1): Use catch_exception instead of catch_errors.
7572 (remote_async_open_1): Ditto.
7573 (remote_cisco_open): Ditto.
7574
7575 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7576
7577 * remote.c (remote_start_remote): Replace PTR with void pointer.
7578 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7579 static.
7580
7581 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7582
7583 * gdb_indent.sh: Allow the script to be run in the sim directory.
7584
7585 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7586
7587 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7588 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7589
7590 * corelow.c (core_open): Only call set_gdbarch_from_file if
7591 exec_bfd is NULL.
7592
7593 2002-05-17 Andrey Volkov <avolkov@transas.com>
7594
7595 * h8300-tdep.c: Add support of EXR register
7596 * config/h8300/tm-h8300.h: Ditto.
7597
7598 2002-05-17 Andrey Volkov <avolkov@transas.com>
7599
7600 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7601
7602 2002-05-17 Andrey Volkov <avolkov@transas.com>
7603
7604 * h8300-tdep.c: Change literal regnums to REGNO.
7605
7606 2002-05-17 Jim Blandy <jimb@redhat.com>
7607
7608 * NEWS: Note addition of macro support.
7609
7610 Expand preprocessor macros in C expressions.
7611 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7612 (scan_macro_expansion, scanning_macro_expansion,
7613 finished_macro_expansion): New function declarations.
7614 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7615 variable declarations.
7616 * parser-defs.h (expression_context_pc): New declaration.
7617 * parse.c (expression_context_pc): New variable.
7618 (parse_exp_1): Set expression_context_pc, as well as
7619 expression_context_block.
7620 * c-exp.y (yylex): If we're not already reading the result of a
7621 macro expansion, try to macro-expand the next token. When we're
7622 done scanning a macro expansion, switch back to the mainline text.
7623 Commas and `if's in a macro's expansion don't terminate the input.
7624 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7625 (macro_original_text, macro_expanded_text,
7626 expression_macro_lookup_func, expression_macro_lookup_baton): New
7627 variables.
7628 (scan_macro_expansion, scanning_macro_expansion,
7629 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7630 c_preprocess_and_parse): New functions.
7631 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7632 c_preprocess_and_parse, instead of c_parse.
7633 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7634 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7635
7636 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7637
7638 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7639 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7640 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7641
7642 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7643
7644 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7645
7646 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7647
7648 * Makefile.in (sh_tdep_h): Define and use.
7649 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7650 register enum): Move to...
7651 * * sh-tdep.h: ...here.
7652 * sh-tdep.c: Include sh-tdep.h.
7653 * sh3-rom.c: Likewise.
7654 * shnbsd-tdep.c: Likewise.
7655
7656 2002-05-16 Michael Snyder <msnyder@redhat.com>
7657
7658 * arm-tdep.c: Spelling fix in comment.
7659
7660 2002-05-16 Jim Blandy <jimb@redhat.com>
7661
7662 Add commands for manually expanding macros and showing their
7663 definitions.
7664 * macrocmd.c, macroscope.c, macroscope.h: New files.
7665 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7666 (macroscope_h): New variable.
7667 (HFILES_NO_SRCDIR): Add macroscope.h.
7668 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7669 (macroscope.o, macrocmd.o): New rules.
7670
7671 Teach the Dwarf 2 reader to read macro information.
7672 * dwarf2read.c: #include "macrotab.h".
7673 (dwarf_macinfo_buffer): New variable.
7674 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7675 dwarf_macinfo_size.
7676 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7677 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7678 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7679 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7680 dwarf2_macro_spaces_in_definition): New complaints.
7681 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7682 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7683 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7684 the partial symbol table.
7685 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7686 from what's recorded in the partial symbol table.
7687 (read_file_scope): If the compilation unit has a
7688 `DW_AT_macro_info' attribute, read its macro information.
7689 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7690
7691 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7692
7693 Fix PR gdb/546
7694 * ser-tcp.c: Don't include <netinet/udp.h>.
7695
7696 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7697
7698 * MAINTAINERS: Update my email address.
7699
7700 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7701
7702 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7703 include file of the same name.
7704
7705 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7706
7707 * configure.tgt: Mark v850 as multi-arched.
7708 * config/v850/tm-v850.h: Remove file.
7709 * config/v850/v850.mt: Eliminate TM_FILE.
7710
7711 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7712
7713 * v850-tdep.c: Full multi-arch.
7714 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7715 Define GDB_MULTI_ARCH to 2.
7716
7717 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7718
7719 * p-exp.y (current_type): New static variable.
7720 Carries the type of the expression at the position that is parsed.
7721 (push_current_type, pop_current_type): Two new functions. Used
7722 to store/restore current_type in expression on specific tokens.
7723 (search_field): New static variable. Set to one after parsing a point
7724 as at that point only a FIELDNAME token should be searched.
7725 (FIELDNAME): New token. After a point only a token belonging to
7726 current_type type definition is allowed.
7727 (all over token rules): reset and change current_type according
7728 to rules.
7729 (exp '[' rule): insert implicit array index field if
7730 exp is a pascal string type.
7731
7732 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7733
7734 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7735 frame info. Use frame_info's saved_regs instead of matching member
7736 in extra_frame_info throughout.
7737 (v850_frame_init_saved_regs): New function.
7738 (v850_init_extra_frame_info): Move most functionality into
7739 v850_frame_init_saved_regs().
7740 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7741 (v850_frame_find_saved_regs): Remove declaration.
7742 (FRAME_FIND_SAVED_REGS): Remove definition.
7743 (v850_frame_init_saved_regs): Add declaration.
7744 (FRAME_INIT_SAVED_REGS): Add definition.
7745
7746 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7747
7748 * v850-tdep.c: Begin multi-arch'ing v850.
7749 (v850_target_architecture_hook): Remove function.
7750 (v850_gdbarch_init): New function. Add code previously in
7751 v850_target_architecture_hook().
7752 (_initialize_v850_tdep): Don't set target_architecture_hook.
7753 Call register_gdbarch_init() instead.
7754
7755 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7756
7757 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7758 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7759 (fixup_class_method_type): Likewise.
7760
7761 2002-05-15 Jim Blandy <jimb@redhat.com>
7762
7763 Add macro structures to GDB's symbol tables. Nobody puts anything
7764 in them yet.
7765 * symtab.h (struct symtab): New member: `macro_table'.
7766 * buildsym.h (pending_macros): New global variable.
7767 * buildsym.c: #include "macrotab.h".
7768 (buildsym_init): Initialize `pending_macros'.
7769 (end_symtab): If we found macro information while reading a CU's
7770 debugging info, do build a symtab structure for it. Make the
7771 symtab point to the macro information, and clear the
7772 `pending_macros' pointer which held it while we were reading the
7773 debug info.
7774 (really_free_pendings): Free any pending macro table.
7775 * objfiles.h (struct objfile): New member: `macro_cache'.
7776 * objfiles.c (allocate_objfile): Set allocate and free functions
7777 for the macro cache's objstack.
7778 (free_objfile): Empty the macro cache's obstack.
7779 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7780 set new allocate and free functions for it.
7781 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7782 free functions for the macro cache's objstack. (Why is this
7783 function building its own objfile?)
7784 * symmisc.c (print_objfile_statistics): Print statistics on the
7785 macro bcache.
7786 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7787
7788 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7789
7790 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7791 (REGISTER_U_ADDR): Delete definition.
7792 (arm_register_u_addr): Delete declaration.
7793
7794 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7795
7796 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7797 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7798
7799 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7800
7801 * regcache.c (register_valid): Revise comments refering to "Not
7802 available" and "unavailable".
7803 * frame.c (frame_register_read): Ditto.
7804 * findvar.c (value_of_register): Ditto.
7805
7806 2002-05-15 Andrew Cagney <cagney@redhat.com>
7807
7808 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7809 (remote-sim.o): Update dependencies.
7810 (d10v-tdep.o): Specify dependencies.
7811 (sim_d10v_h): Define.
7812
7813 2002-05-14 Jim Blandy <jimb@redhat.com>
7814
7815 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7816 * macrotab.c (macro_lookup_inclusion, find_definition,
7817 new_macro_table): Same.
7818
7819 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7820 not `! strcmp ()'. This is a dubious improvement.
7821 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7822
7823 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7824 although it's not necessary, to avoid a warning.
7825
7826 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7827
7828 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7829 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7830 TYPE_INSTANCE_FLAGS.
7831 (struct main_type): New.
7832 (struct type): Move most members to struct main_type. Change
7833 cv_type and as_type to new type_chain member. Add instance_flags.
7834 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7835 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7836 (finish_cv_type): Remove prototype.
7837 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7838 Set TYPE_CHAIN.
7839 (alloc_type_instance): New function.
7840 (smash_type): New function.
7841 (make_pointer_type, make_reference_type, make_function_type)
7842 (smash_to_member_type, smash_to_method_type): Call smash_type.
7843 (make_qualified_type): New function.
7844 (make_type_with_address_space): Call make_qualified_type.
7845 (make_cv_type): Likewise.
7846 (finish_cv_type): Remove unnecessary function.
7847 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7848 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7849 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7850 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7851 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7852 * hpread.c (hpread_read_struct_type): Likewise.
7853 * stabsread.c (read_struct_type): Likewise.
7854
7855 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7856
7857 * configure.tgt: Add a catch all sh* target, for cases like
7858 sh[2,3,4]-elf and sh-hms.
7859
7860 2002-05-14 Keith Seitz <keiths@redhat.com>
7861
7862 * event-loop.c (create_file_handler): Don't do anything but
7863 update data when we are given a fd which we are already
7864 monitoring.
7865
7866 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7867
7868 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7869 (update_context): Use __func__ in warnings.
7870
7871 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7872
7873 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7874 and tcp_close to net_open and net_close.
7875 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7876 using UDP if requested. Don't try to disable Nagle on UDP
7877 sockets.
7878 * remote.c (remote_serial_open): New function. Warn about UDP.
7879 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7880
7881 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7882
7883 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7884
7885 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7886
7887 * configure.tgt: Remove sh-hms target.
7888 * MAINTAINERS: Don't list sh-hms as a separate target.
7889
7890 2002-05-13 Jim Blandy <jimb@redhat.com>
7891
7892 Add first preprocessor macro-expansion files.
7893 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7894 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7895 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7896 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7897 (COMMON_OBS): Add macrotab.o, macroexp.o.
7898 (macroexp.o, macrotab.o): New rules.
7899
7900 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7901
7902 * config/m88k/tm-m88k.h: Update copyright.
7903 (m88k_target_write_pc): Declare
7904 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7905 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7906 (SHIFT_INST_REGS): Update definition.
7907 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7908 using old definition of TARGET_WRITE_PC.
7909 * regcache.c (generic_target_write_pc): Delete code handling
7910 NNPC_REGNUM.
7911 * gdbarch.sh (NNPC_REGNUM): Delete.
7912 * gdbarch.h, gdbarch.c: Regenerate.
7913
7914 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7915
7916 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7917 builtin reg number.
7918
7919 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7920
7921 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7922 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7923 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7924 access macros.
7925 * c-typeprint.c (cp_type_print_method_args): Likewise.
7926 (c_type_print_args): Likewise.
7927 * d10v-tdep.c (d10v_push_arguments): Likewise.
7928 (d10v_extract_return_value): Likewise.
7929 * expprint.c (print_subexp): Likewise.
7930 * gdbtypes.c (lookup_primitive_typename): Likewise.
7931 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7932 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7933 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7934 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7935 (TYPE_VECTOR): Likewise.
7936 * hpread.c (hpread_read_struct_type)
7937 (fix_static_member_physnames, fixup_class_method_type)
7938 (hpread_type_lookup): Likewise.
7939 * mdebugread.c (parse_symbol, parse_type): Likewise.
7940 * p-lang.c (is_pascal_string_type): Likewise.
7941 * valops.c (hand_function_call): Likewise.
7942 * x86-64-tdep.c (classify_argument): Likewise.
7943
7944 * hpread.c (hpread_read_function_type)
7945 (hpread_read_doc_function_type): Call replace_type.
7946 * dstread.c (create_new_type): Delete.
7947 (decode_dst_structure, process_dst_function): Call alloc_type.
7948 Use type access macros.
7949
7950 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7951
7952 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7953 the're not supported by the current architecture.
7954 (i387_fill_fxsave): Likewise.
7955
7956 2002-05-12 Fred Fish <fnf@redhat.com>
7957
7958 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7959 sect_index_xxx members to index the first slot in section_offsets
7960 if all of the section_offsets are zero.
7961
7962 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7963
7964 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7965 checked in with last change.
7966
7967 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7968
7969 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7970 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7971 config.sub.
7972
7973 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7974
7975 * Makefile.in: Update dependencies.
7976
7977 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7978
7979 * language.c (local_hex_string_custom): Simplify. Do not depend
7980 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7981
7982 * memattr.c (mem_info_command): Replace calls to
7983 longest_local_hex_string and longest_local_hex_string_custom.
7984 * buildsym.c (make_blockvector): Ditto.
7985 * solib.c (info_sharedlibrary_command): Ditto.
7986 * tracepoint.c (tracepoints_info): Ditto.
7987 * symtab.c (print_msymbol_info): Ditto.
7988
7989 * language.c (local_hex_string): Delete.
7990 (local_hex_string_custom): Delete.
7991 (longest_local_hex_string): Rename to local_hex_string.
7992 (longest_local_hex_string_custom): Rename to
7993 local_hex_string_custom.
7994 * language.h (local_hex_string): Change parameter type to LONGEST.
7995 (local_hex_string_custom): Ditto.
7996 (longest_local_hex_string): Delete declaration.
7997 (longest_local_hex_string_custom): Ditto.
7998
7999 * solib.c: Update copyright.
8000 * memattr.c: Update copyright.
8001
8002 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8003
8004 * arch-utils.h (legacy_register_to_value): Declare.
8005 (legacy_value_to_register): Declare.
8006 (legacy_convert_register_p): Declare.
8007 * arch-utils.c (legacy_register_to_value): New function.
8008 (legacy_value_to_register): New function.
8009 (legacy_convert_register_p): New function.
8010
8011 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8012 (VALUE_TO_REGISTER): Define.
8013 (CONVERT_REGISTER_P): Define.
8014 * gdbarch.h, gdbarch.c: Regenerate.
8015
8016 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8017 VALUE_TO_REGISTER.
8018 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8019 CONVERT_REGISTER_P.
8020
8021 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8022 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8023
8024 * Makefile.in: Update dependencies for valops.c.
8025 * valops.c: Include "gdb_assert.h".
8026 (typecmp): Skip THIS parameter to methods.
8027 (find_method_list): Remove static_memfuncp argument,
8028 update callers. Check for stub methods.
8029 (find_value_oload_method_list): Don't set *static_memfuncp.
8030 (find_overload_match): Don't check for stub methods. Assert
8031 that methods are not stubbed. Handle static methods.
8032 (value_find_oload_method_list): Remove static_memfuncp argument.
8033 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8034 to the argument list for static stub methods.
8035 * value.h (value_find_oload_method_list): Update prototype.
8036
8037 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8038
8039 * arch-utils.h (generic_register_size): Declare.
8040 (generic_register_raw_size, generic_register_virtual_size): Delete
8041 declarations.
8042 * arch-utils.c (generic_register_raw_size): Delete.
8043 (generic_register_size): New function.
8044 (generic_register_virtual_size): Delete.
8045
8046 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8047 default generic_register_size.
8048 * gdbarch.h, gdbarch.c: Re-generate.
8049
8050 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8051 register_virtual_size.
8052 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8053 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8054
8055 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8056
8057 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8058 * gdbarch.h, gdbarch.c: Regenerate.
8059 * gnu-v3-abi.c: Update copyright.
8060 (vtable_address_point_offset): Update.
8061 (gnuv3_rtti_type): Update.
8062 (gnuv3_baseclass_offset): Update.
8063 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8064 (init_fetch_link_map_offsets): Update.
8065 * remote.c (get_remote_state): Update.
8066
8067 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8068
8069 * TODO: Remove value_headof/value_from_vtable_info comment.
8070 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8071 * values.c (value_headof, value_from_vtable_info): Delete.
8072 * value.h (value_from_vtable_info): Delete prototype.
8073
8074 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8075
8076 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8077 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8078 $(gdb_regex_h).
8079 (gdb_assert_h): Define.
8080 (gdb_wait_h): Define.
8081 (gdb_regex_h): Define.
8082
8083 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8084
8085 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8086 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8087
8088 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8089
8090 * nbsd-tdep.c: Fix comment.
8091
8092 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8093
8094 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8095 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8096 (nbsd-tdep.o): New dependency list.
8097 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8098 nbsd-tdep.h.
8099 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8100 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8101 * nbsd-tdep.c: New file.
8102 * nbsd-tdep.h: New file.
8103 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8104 nbsd-tdep.h.
8105 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8106 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8107 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8108 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8109
8110 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8111
8112 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8113 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8114 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8115 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8116 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8117 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8118
8119 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8120
8121 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8122 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8123 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8124 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8125 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8126 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8127 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8128
8129 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8130
8131 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8132 fetch_elfcore_registers to...
8133 * i386nbsd-tdep.c: ...here.
8134 (i386nbsd_use_struct_convention): Rename to...
8135 (i386nbsd_aout_use_struct_convention): ...this.
8136 (i386nbsd_supply_reg): New function.
8137 (i386nbsd_fill_reg): New function.
8138 (fetch_core_registers): Use i386nbsd_supply_reg.
8139 (fetch_elfcore_registers): Likewise.
8140 (_initialize_i386nbsd_tdep): New function.
8141 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8142 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8143 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8144 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8145 (i386nbsd_aout_use_struct_convention): ...this.
8146
8147 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8148
8149 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8150 (store_inferior_registers): Use shnbsd_fill_reg.
8151 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8152 sh_nbsd_supply_register): Collapse into...
8153 (shnbsd_supply_reg): ...this.
8154 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8155 (shnbsd_fill_reg): ...this.
8156 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8157 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8158 (fetch_core_registers): Use shnbsd_supply_reg.
8159 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8160 (sh_nbsd_core_fns): Rename to...
8161 (shnbsd_core_fns): ...this.
8162 (sh_nbsd_elfcore_fns): Rename to...
8163 (shnbsd_elfcore_fns): ...this.
8164 (sh_nbsd_init_abi): Rename to...
8165 (shnbsd_init_abi): ...this.
8166 (_initialize_sh_nbsd_tdep): Rename to...
8167 (_initialize_shnbsd_tdep): ...this.
8168 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8169 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8170 sh_nbsd_fill_register): Remove prototypes.
8171 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8172
8173 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8174
8175 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8176 (i387-nat.o): Delete dependency list.
8177 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8178 (x86-64-linux-nat.o): Likewise.
8179 * i387-nat.c: Delete file, moving contents to...
8180 * i387-tdep.c: ...here.
8181 * i387-nat.h: Rename...
8182 * i387-tdep.h: ...to this.
8183 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8184 * i386-linux-nat.c: Likewise.
8185 * i386bsd-nat.c: Likewise.
8186 * i386gnu-nat.c: Likewise.
8187 * i386nbsd-nat.c: Likewise.
8188 * i386v4-nat.c: Likewise.
8189 * x86-64-linux-nat.c: Likewise.
8190 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8191 * config/i386/go32.mh (NATDEPFILES): Likewise.
8192 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8193 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8194 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8195 * config/i386/linux.mh (NATDEPFILES): Likewise.
8196 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8197 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8198 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8199 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8200
8201 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8202
8203 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8204 (alphanbsd-nat.o): Remove dependency list.
8205 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8206 * alphanbsd-nat.c: Delete. Contents moved to...
8207 * alphanbsd-tdep.c: ...here.
8208 (_initialize_alphanbsd_tdep): Register core functions.
8209 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8210
8211 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8212
8213 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8214 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8215 (alphanbsd-nat.o): Likewise.
8216 (alphabsd-tdep.o): New dependency list.
8217 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8218 (fill_gregset): Use alphabsd_fill_reg.
8219 (supply_fpregset): Use alphabsd_supply_fpreg.
8220 (fill_fpregset): Use alphabsd_fill_fpreg.
8221 (fetch_inferior_registers): Use struct reg and struct fpreg
8222 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8223 and alphabsd_supply_fpreg.
8224 (store_inferior_registers): Use struct reg and struct fpreg
8225 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8226 and alphabsd_fill_fpreg.
8227 * alphabsd-tdep.c: New file.
8228 * alphabsd-tdep.h: New file.
8229 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8230 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8231 alphabsd_supply_fpreg.
8232 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8233 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8234
8235 2002-05-11 Eric Christopher <echristo@redhat.com>
8236
8237 * mips-tdep.c (mips_double_register_type): Fix thinko.
8238 (mips_single_register_type): Ditto.
8239 * MAINTAINERS: Add self.
8240
8241 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8242
8243 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8244 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8245 right thing on architectures with different endianness and/or
8246 integer sizes.
8247
8248 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8249
8250 From Christian Limpach <chris@Pin.LU>
8251 * configure.in: Change sed expression which comments out
8252 NATDEPFILES to also comment out continuation lines.
8253 * configure: Regenerate.
8254
8255 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8256
8257 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8258 big patch.
8259
8260 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8261
8262 * sh-tdep.c: Include correct file.
8263
8264 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8265
8266 New support for sh64-elf (sh5) target.
8267
8268 * configure.tgt: For sh64-elf target, default to sh-elf.
8269
8270 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8271 (struct gdbarch_tdep): Add new fields for new registers and ABI
8272 info.
8273
8274 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8275 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8276 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8277 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8278 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8279 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8280 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8281 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8282 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8283 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8284 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8285 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8286 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8287 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8288 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8289 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8290 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8291 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8292 sign_extend, sh64_nofp_frame_init_saved_regs,
8293 sh64_init_extra_frame_info, sh64_get_saved_register,
8294 sh64_extract_struct_value_address, sh64_pop_frame,
8295 sh64_push_arguments, sh64_extract_return_value,
8296 sh64_store_return_value, sh64_show_media_regs,
8297 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8298 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8299 sh_sh64_register_virtual_type,
8300 sh_sh64_register_convert_to_virtual,
8301 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8302 sh64_register_read, sh64_pseudo_register_write,
8303 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8304 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8305 sh64_do_pseudo_register, sh_compact_do_registers_info,
8306 sh64_do_registers_info, sh_gdbarch_init): New functions.
8307
8308 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8309
8310 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8311
8312 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8313
8314 * linespec.c (decode_line_1): Check for a double quote after
8315 a filename correctly.
8316
8317 2002-05-10 Jim Blandy <jimb@redhat.com>
8318
8319 Properly track the size of the current objfile's .debug_line section.
8320 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8321 (DWARF_LINE_SIZE): New macro.
8322 (dwarf2_build_psymtabs_hard): Record the line section's size in
8323 the partial symbol table.
8324 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8325 symbol table.
8326
8327 2002-05-10 Petr Sorfa <petrs@caldera.com>
8328
8329 * ia64-tdep.c: Handle breakpoints on L instruction type
8330 in MLX instruction bundle by moving the breakpoint to
8331 the third slot (X instruction type) as L holds only data.
8332
8333 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8334
8335 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8336 (process_one_symbol): Complain about discarding local symbols
8337 due to a misplaced N_LBRAC entry.
8338
8339 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8340
8341 From Daniel Berlin <dan@cgsoftware.com>
8342 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8343 decrease the depth we are at, in the case of templates.
8344
8345 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * mips-tdep.c (mips_float_register_type): New function.
8348 (mips_double_register_type): New function.
8349 (mips_print_register): Use them.
8350 (do_fp_register_row): Likewise.
8351
8352 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8353
8354 * signals/signals.c (signals): Remove conditional compilation around
8355 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8356 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8357
8358 2002-05-09 Michael Snyder <msnyder@redhat.com>
8359
8360 * remote-rdp.c (remote_rdp_can_run): Remove.
8361
8362 2002-05-09 Tom Tromey <tromey@redhat.com>
8363
8364 * jv-valprint.c (java_val_print): Handle `char' as a special case
8365 of TYPE_CODE_INT.
8366
8367 2002-05-09 Michael Snyder <msnyder@redhat.com>
8368
8369 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8370 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8371 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8372 str r(0123),[sp,#nn].
8373 (arm_skip_prologue): Ditto. Also make disassembly
8374 order-independent by placing it in a loop.
8375
8376 2002-05-06 Michael Snyder <msnyder@redhat.com>
8377
8378 * stabsread.c (read_type): Add recognition for new attribute:
8379 "@V;" means that an array type is actually a vector.
8380 This is analogous to the vector flag that's been added to dwarf2.
8381
8382 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8383
8384 * i386-tdep.h (i386_abi): New enum.
8385 (struct gdbarch_tdep): Replace os_ident member with abi.
8386 (i386_gdbarch_register_os_abi): New prototype.
8387 * i386-tdep.c (i386_abi_names): New array.
8388 (process_note_abi_tag_sections): Removed.
8389 (process_note_sections): New function.
8390 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8391 (struct i386_abi_handler): New struct.
8392 (i386_abi_handler_list): New variable.
8393 (i386_gdbarch_register_os_abi): New function.
8394 (i386_gdbarch_init): Adapt for the changes given above.
8395
8396 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8397
8398 * gregset.h: Say "GNU/Linux".
8399
8400 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8401
8402 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8403 (build_gdbtypes): Build builtin_type_v2_float.
8404 (_initialize_gdbtypes): Register new builtin type.
8405
8406 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8407
8408 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8409 (clear_gdbarch_swap): New function.
8410 (initialize_non_multiarch): Call.
8411 (gdbarch_update_p): Before calling init(), swap out and clear the
8412 existing architecture.
8413 * gdbarch.c: Regenerate.
8414
8415 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8416
8417 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8418 alphanbsd-tdep.c.
8419
8420 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8421
8422 * sh-nbsd-nat.c: Rename to...
8423 * shnbsd-nat.c: ...this.
8424 * sh-nbsd-tdep.c: Rename to...
8425 * shnbsd-tdep.c: ...this.
8426 * sh-nbsd-tdep.h: Rename to...
8427 * shnbsd-tdep.h: ...this.
8428 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8429 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8430
8431 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8432
8433 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8434 concatenation for command help messages.
8435
8436 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8437
8438 * NEWS: Note new sh*-*-netbsdelf* configuration.
8439 * configure.host: Set gdb_host_cpu to sh for all sh*.
8440 (sh*-*-netbsdelf*): New host.
8441 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8442 (sh*-*-netbsdelf*): New target.
8443 * sh-nbsd-nat.c: New file.
8444 * sh-nbsd-tdep.c: New file.
8445 * sh-nbsd-tdep.h: New file.
8446 * config/sh/nbsd.mh: New file.
8447 * config/sh/nbsd.mt: New file.
8448 * config/sh/nm-nbsd.h: New file.
8449 * config/sh/tm-nbsd.h: New file.
8450
8451 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8452
8453 * sh-tdep.c (sh_osabi_names): Declare.
8454 (process_note_abi_tag_sections): New function.
8455 (get_elfosabi): Ditto.
8456 (sh_gdbarch_register_os_abi): Ditto.
8457 (sh_dump_tdep): Ditto.
8458 _initialize_sh_tdep): Use gdbarch_register to register
8459 sh_gdbarch_init and sh_dump_tdep.
8460 * config/sh/tm-sh.h (sh_osabi): Declare.
8461 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8462
8463 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8464
8465 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8466 (thumb_scan_prologue): Ditto.
8467 (arm_find_callers_reg): Ditto.
8468 (arm_frame_chain): Ditto.
8469 (arm_init_extra_frame_info): Ditto.
8470 (arm_frame_saved_pc): Ditto.
8471 (arm_pop_frame): Ditto.
8472 (arm_push_return_address): New function.
8473 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8474 call_dummy_location, call_dummy_breakpoint_offset_p,
8475 call_dummy_breakpoint_offset, call_dummy_p,
8476 call_dummy_stack_adjust_p, call_dummy_words,
8477 sizeof_call_dummy_words, call_dummy_start_offset,
8478 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8479 call_dummy_address, push_return_address and push_dummy_frame for
8480 generic dummy frames.
8481
8482 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8483
8484 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8485 size computation for alloca.
8486 (sh_fp_frame_init_saved_regs): Likewise.
8487
8488 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8489
8490 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8491 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8492 * arm-tdep.c (arm_store_return_value): Use them.
8493 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8494 * remote-rdp.c (remote_rdp_fetch_register): Use
8495 ARM_MAX_REGISTER_RAW_SIZE.
8496 (remote_rdp_store_register): Likewise.
8497
8498 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8499
8500 * dwarf2cfi.c: Code cleanup, removed unused variables,
8501 added default labels to switch {} statements.
8502 * x86-64-tdep.c: Ditto.
8503 * x86-64-linux-nat.c: Ditto.
8504
8505 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8506
8507 * solib.h: Protect against multiple inclusion.
8508
8509 2002-05-06 Jim Blandy <jimb@redhat.com>
8510
8511 Add first preprocessor macro-expansion files.
8512 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8513 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8514 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8515 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8516 (COMMON_OBS): Add macrotab.o, macroexp.o.
8517 (macroexp.o, macrotab.o): New rules.
8518
8519 Separate the job of reading the line number info statement program
8520 header (...expialidocious) out into its own function.
8521 * dwarf2read.c (struct line_head, struct filenames, struct
8522 directories): Replace with...
8523 (struct line_header): New structure, containing the full
8524 contents of the statement program header, including the
8525 include directory and file name tables.
8526 (read_file_scope): If we have line number info, instead of just
8527 calling dwarf_decode_lines to do all the work, call
8528 dwarf_decode_line_header first to get a `struct line_header'
8529 containing the data in the statement program header, and then
8530 pass that to dwarf_decode_lines, which will pick up where that
8531 left off. Be sure to clean up the `struct line_header' object.
8532 (dwarf_decode_line_header, free_line_header, add_include_dir,
8533 add_file_name): New functions.
8534 (dwarf_decode_lines): Move all the code to read the statement
8535 program header into dwarf_decode_line_header. Take the line
8536 header it built as the first argument, instead of the offset to
8537 the compilation unit's line number info. Use the new `struct
8538 line_header' type instead of the old structures. No need to do
8539 cleanups here now, since we don't allocate anything.
8540 (dwarf2_statement_list_fits_in_line_number_section,
8541 dwarf2_line_header_too_long): New complaints.
8542
8543 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8544
8545 * gdbtypes.c (init_vector_type): New function.
8546 (build_builtin_type_vec128): Simplify the representation of SIMD
8547 registers.
8548 (build_gdbtypes): Initialize new builtin vector types.
8549 (_initialize_gdbtypes): Register new vector types with gdbarch.
8550 (builtin_type_v4_float, builtin_type_v4_int32,
8551 builtin_type_v8_int16, builtin_type_v16_int8,
8552 builtin_type_v2_int32, builtin_type_v4_int16,
8553 builtin_type_v8_int8): New (renamed) SIMD types.
8554
8555 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8556
8557 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8558 (i387_fill_fxsave): Likewise.
8559
8560 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8561
8562 * alpha-tdep.c (alpha_extract_return_value): Don't use
8563 non-constant array size in prototype.
8564
8565 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8566
8567 From Brian Taylor <briant at model dot com>:
8568 * ui-out.c (ui_out_field_core_addr): Use the function
8569 longest_local_hex_string_custom'to format addresses > 32 bits
8570 wide.
8571
8572 * ui-out.c (ui_out_field_core_addr): Update comment.
8573
8574 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8575
8576 * stack.c (select_and_print_frame): Make static. Delete the
8577 parameter `level'.
8578 (func_command): Update call.
8579 (select_frame_command): Delete code computing the frame level.
8580 * frame.h (select_and_print_frame): Delete declaration.
8581
8582 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8583
8584 * sparc-tdep.c (sparc_get_saved_register): Comment why
8585 get_prev_frame call is safe.
8586
8587 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8588
8589 * frame.h (select_frame): Delete level parameter.
8590 * stack.c (select_frame): Update. Use frame_relative_level to
8591 obtain the frame's level.
8592 (select_and_print_frame): Update call.
8593 (select_frame_command): Ditto.
8594 (up_silently_base): Ditto.
8595 (down_silently_base): Ditto.
8596 * ocd.c (ocd_start_remote): Ditto.
8597 * remote-rdp.c (remote_rdp_open): Ditto.
8598 * remote-mips.c (mips_initialize): Ditto.
8599 (common_open): Ditto.
8600 * remote-e7000.c (e7000_start_remote): Ditto.
8601 * m3-nat.c (select_thread): Ditto.
8602 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8603 (child_get_current_exception_event): Ditto.
8604 * varobj.c (varobj_create): Ditto.
8605 (varobj_update): Ditto.
8606 (c_value_of_root): Ditto.
8607 * tracepoint.c (finish_tfind_command): Ditto.
8608 * corelow.c (core_open): Ditto.
8609 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8610 * thread.c (info_threads_command): Ditto.
8611 (switch_to_thread): Ditto.
8612 * infrun.c (normal_stop): Ditto.
8613 (restore_selected_frame): Ditto.
8614 (restore_inferior_status): Ditto.
8615 * breakpoint.c (insert_breakpoints): Ditto.
8616 (watchpoint_check): Ditto.
8617 (bpstat_stop_status): Ditto.
8618 (do_enable_breakpoint): Ditto.
8619 * blockframe.c (flush_cached_frames): Ditto.
8620 (reinit_frame_cache): Ditto.
8621
8622 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8623
8624 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8625 maintainer.
8626
8627 2002-05-04 Jim Blandy <jimb@redhat.com>
8628
8629 * gdbtypes.c (replace_type): Doc fix.
8630
8631 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8632
8633 * valprint.c (strcat_longest): Delete commented out function.
8634 Update copyright.
8635
8636 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8637
8638 * MAINTAINERS: Mark a29k as deleted.
8639 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8640 Move new configurations to the top.
8641 * configure.tgt: Remove a29k.
8642 * config/a29k/tm-vx29k.h: Delete.
8643 * config/a29k/vx29k.mt: Delete.
8644 * config/a29k/tm-a29k.h: Delete.
8645 * config/a29k/a29k-udi.mt: Delete.
8646 * config/a29k/a29k.mt: Delete.
8647 * a29k-tdep.c: Delete.
8648 * remote-udi.c: Delete.
8649 * remote-mm.c: Delete.
8650 * remote-eb.c: Delete.
8651 * remote-adapt.c: Delete.
8652 * Makefile.in: Remove obsolete code.
8653 * config/s390/s390x.mt: Ditto.
8654 * config/s390/s390.mt: Ditto.
8655 * config/sparc/sparclynx.mh: Ditto.
8656 * config/sparc/linux.mh: Ditto.
8657 * config/pa/hppaosf.mh: Ditto.
8658 * config/pa/hppabsd.mh: Ditto.
8659 * config/ns32k/nbsd.mt: Ditto.
8660 * config/mips/vr5000.mt: Ditto.
8661 * config/m68k/sun3os4.mh: Ditto.
8662 * config/m68k/nbsd.mt: Ditto.
8663 * config/m68k/m68klynx.mh: Ditto.
8664 * config/m32r/m32r.mt: Ditto.
8665 * config/i386/x86-64linux.mt: Ditto.
8666 * config/i386/nbsdelf.mt: Ditto.
8667 * config/i386/nbsd.mt: Ditto.
8668 * config/i386/i386lynx.mh: Ditto.
8669
8670 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8671
8672 * target.c (debug_print_register): New function. Handle oversize
8673 registers.
8674 (debug_to_fetch_registers): Call.
8675 (debug_to_store_registers): Call.
8676
8677 2002-05-03 Jim Blandy <jimb@redhat.com>
8678
8679 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8680 (read_type): Doc fix.
8681 * gdbtypes.c (replace_type): Doc fix.
8682
8683 * stabsread.c (multiply_defined_struct): New complaint.
8684 (read_struct_type): If the type we were passed isn't empty, or
8685 incomplete, don't read the new struct type into it; complain,
8686 and return the original type unchanged. Take a new `type_code'
8687 argument, which is the type code for the new type.
8688 (read_type): Rather than storing the type's type code here, pass
8689 it as an argument to read_struct_type, and let that take care of
8690 storing it. That way, we don't overwrite the original type code,
8691 so read_struct_type can use it to decide whether we're overwriting
8692 something we shouldn't.
8693 (complain_about_struct_wipeout): New function.
8694
8695 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8696
8697 * gdbarch.sh: Assert that gdbarch is non-NULL.
8698 * gdbarch.c: Regenerate.
8699
8700 2002-05-03 Jason Merrill <jason@redhat.com>
8701
8702 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8703 and return NULL.
8704
8705 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8706
8707 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8708 (x86_64_dwarf2gdb_regno_map_length),
8709 (x86_64_dwarf2_reg_to_regnum): Added.
8710 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8711 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8712 (_initialize_x86_64_tdep): Synced with the change above.
8713 (x86_64_skip_prologue): Reformulated message.
8714
8715 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8716
8717 * f-exp.y: Also use new prev_lexptr variable
8718 to improve error reporting. Based on Michael Snyder
8719 2002-04-24 dated patch to c-exp.y.
8720 * jv-exp.y: Likewise.
8721 * m2-exp.y: Likewise.
8722
8723 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8724
8725 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8726 we are dealing with vectors.
8727
8728 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8729
8730 * config/m68k/tm-nbsd.h: Obvious fix,
8731 correct machine name.
8732
8733 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8734
8735 * p-typeprint.c (pascal_type_print_base): Add support
8736 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8737
8738 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8739
8740 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8741 for fondamental pascal 'char' type.
8742
8743 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8744
8745 * p-lang.h (is_pascal_string_type): Declaration changed,
8746 new sixth argument of type char ** added.
8747 * p-lang.c (is_pascal_string_type): Implementation
8748 changed. Args length_pos, length_size, string_pos, char_size
8749 can now be NULL. New argument arrayname set to the field
8750 name of the char array. Return value set to char array
8751 field index plus one.
8752 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8753 is_pascal_string_type function.
8754
8755 2002-05-02 Andrew Cagney <cagney@redhat.com>
8756
8757 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8758 <cagney@redhat.com> change.
8759 * gdbarch.c: Regenerate.
8760
8761 2002-05-02 Andrew Cagney <cagney@redhat.com>
8762
8763 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8764 before probing for a new one. Detect errorenous gdbarch_init
8765 functions.
8766 * gdbarch.c: Regenerate.
8767
8768 2002-05-01 Andrew Cagney <cagney@redhat.com>
8769
8770 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8771 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8772 * config/v850/tm-v850.h: Ditto. Update copyright.
8773
8774 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8775
8776 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8777 current_gdbarch.
8778
8779 2002-04-30 Michael Snyder <msnyder@redhat.com>
8780
8781 * arm-tdep.c: Whitespace clean-ups.
8782 (arm_skip_prologue): Fix thinko; two lines
8783 should have been removed as part of 4/24 change.
8784
8785 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8786
8787 * rs6000-tdep.c: Added comment describing how fpscr register
8788 numbers were chosen.
8789
8790 2002-04-30 Michael Snyder <msnyder@redhat.com>
8791
8792 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8793
8794 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8795
8796 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8797 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8798 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8799
8800 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8801
8802 From Louis Hamilton <hamilton@redhat.com>:
8803 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8804 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8805 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8806 not bfd-private xcoff data, to determine wordsize.
8807 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8808
8809 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8810
8811 GDB 5.2 released from 5.2 branch.
8812
8813 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8814
8815 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8816 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8817 (x86_64_register_info_table): Added comments with register numbers.
8818
8819 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8820
8821 * rs6000-tdep.c (rs6000_extract_return_value,
8822 rs6000_store_return_value): Handle returning vectors.
8823 (rs6000_gdbarch_init): Use
8824 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8825 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8826 New function.
8827 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8828 vectors.
8829 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8830 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8831
8832 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8833
8834 * hpread.c (hpread_psymtab_to_symtab_1,
8835 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8836 with fprintf_unfiltered (gdb_stderr,...).
8837
8838 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8839
8840 * remote-array.c (printf_monitor, write_monitor,
8841 array_insert_breakpoint, array_remove_breakpoint ):
8842 Replace fprintf (stderr,...
8843 with fprintf_unfiltered (gdb_stderr,....
8844 * remote-es.c: Likewise.
8845 * remote-os9k.c: Likewise.
8846 * remote-st.c: Likewise.
8847
8848 2002-04-28 Andreas Schwab <schwab@suse.de>
8849
8850 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8851 linux-proc.o and gcore.o.
8852
8853 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8854
8855 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8856 code without frame pointers.
8857
8858 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8859
8860 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8861 ON_STACK is needed.
8862
8863 2002-04-26 Ben Elliston <bje@redhat.com>
8864
8865 * target.c (do_xfer_memory): Correct reference to the new option
8866 "trust-readonly-sections".
8867
8868 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8869
8870 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8871 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8872 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8873 vectors.
8874 (read_array_type): Record the fact that this array type is really a
8875 vector (i.e. are passed in by value).
8876
8877 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8878
8879 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8880 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8881 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8882 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8883 * alpha-linux-tdep.c: Include frame.h.
8884 (alpha_linux_sigcontext_addr): New function.
8885 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8886 alpha_linux_sigcontext_addr.
8887 * alpha-osf1-tdep.c: Include gdbcore.h.
8888 (alpha_osf1_sigcontext_addr): New function.
8889 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8890 alpha_osf1_sigcontext_addr.
8891 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8892 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8893
8894 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8895
8896 * stack.c (selected_frame_level):
8897 (select_frame): Do not set selected_frame_level.
8898 * frame.h (selected_frame_level): Delete declaration.
8899
8900 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8901
8902 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8903 convert_from_func_ptr-addr when AIX / PowerOpen.
8904
8905 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8906
8907 * valops.c (hand_function_call): Call
8908 generic_save_call_dummy_addr.
8909 * frame.h (generic_save_call_dummy_addr): Declare.
8910 * blockframe.c (struct dummy_frame): Add fields call_lo and
8911 call_hi.
8912 (generic_find_dummy_frame): Check for PC in range call_lo to
8913 call_hi instead of entry_point_address.
8914 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8915 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8916 (generic_save_call_dummy_addr): New function.
8917
8918 2002-04-24 David S. Miller <davem@redhat.com>
8919
8920 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8921 sparc_skip_prologue.
8922 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8923 information to find prologue when possible.
8924 (sparc_prologue_frameless_p): Call examine_prologue directly.
8925 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8926 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8927 second argument.
8928 (SKIP_PROLOGUE): Likewise.
8929
8930 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8931
8932 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8933 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8934 indicate that the condition it was testing is always true.
8935 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8936 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8937 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8938
8939 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8940
8941 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8942 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8943 tdep->jb_pc and tdep->jb_elt_size.
8944 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8945 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8946 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8947 * alpha-nat.c (get_longjmp_target): Remove.
8948 (JB_ELEMENT_SIZE): Ditto.
8949 (JB_PC): Ditto.
8950 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8951 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8952 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8953 to alpha_get_longjmp_target.
8954 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8955 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8956 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8957
8958 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8959
8960 * README: Update to GDB 5.2.
8961
8962 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8963
8964 * gdbarch.sh (LC_ALL): Set to `c'.
8965
8966 2002-04-25 Theodore A. Roth <troth@verinet.com>
8967
8968 * avr-tdep.c: Ran through gdb_indent.sh.
8969
8970 2002-04-25 Theodore A. Roth <troth@verinet.com>
8971
8972 * MAINTAINERS: Add myself as AVR maintainer.
8973 * NEWS: Note new target avr.
8974
8975 2002-04-25 Theodore A. Roth <troth@verinet.com>
8976
8977 * Makefile.in: Add support for AVR target.
8978 * configure.tgt: Add support for AVR target.
8979 * avr-tdep.c: New file
8980 * config/avr/avr.mt: New file.
8981
8982 2002-04-25 Theodore A. Roth <troth@verinet.com>
8983
8984 * MAINTAINERS: Add myself to write-after-approval.
8985
8986 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8987
8988 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8989 with fprintf_unfiltered (gdb_stderr,....
8990
8991 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8992
8993 Fix PR gdb/508.
8994 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8995
8996 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8997
8998 * p-exp.y: Also use new prev_lexptr variable
8999 to improve error reporting. Based on Michael Snyder
9000 2002-04-24 dated patch to c-exp.y.
9001
9002 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9003
9004 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9005 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9006 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9007 to 0.
9008 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9009 and struct value.
9010 (FUNCTION_START_OFFSET): Remove.
9011 (BREAKPOINT): Ditto.
9012
9013 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9014
9015 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9016 * NEWS: Ditto.
9017
9018 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9019
9020 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9021 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9022 alpha_linux_pc_in_sigtramp.
9023 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9024 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9025 alpha_osf1_pc_in_sigtramp.
9026 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9027 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9028 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9029 alphafbsd_pc_in_sigtramp.
9030 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9031 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9032 alphanbsd_pc_in_sigtramp.
9033 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9034 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9035
9036 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9037
9038 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9039
9040 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9041
9042 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9043 alphanbsd-tdep.c.
9044 (alphanbsd-nat.o): New dependency list.
9045 (alphanbsd-tdep.o): Ditto.
9046 * NEWS: Note new native NetBSD/alpha configuration.
9047 * alphanbsd-nat.c: New file.
9048 * alphanbsd-tdep.c: Ditto.
9049 * configure.host (alpha*-*-netbsd*): New host.
9050 * configure.tgt (alpha*-*-netbsd*): New target.
9051 * config/alpha/nbsd.mh: New file.
9052 * config/alpha/nbsd.mt: Ditto.
9053 * config/alpha/nm-nbsd.h: Ditto.
9054 * config/alpha/tm-nbsd.h: Ditto.
9055
9056 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9057
9058 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9059 (alpha-osf1-tdep.o): New dependency list.
9060 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9061 and skip_sigtramp_frame members.
9062 * alpha-linux-tdep.c: Include gdbcore.h.
9063 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9064 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9065 * alpha-osf1-tdep.c: New file.
9066 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9067 alpha-osf1-dep.c.
9068 (alpha_frame_past_sigtramp_frame): New function.
9069 (alpha_dynamic_sigtramp_offset): Ditto.
9070 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9071 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9072 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9073 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9074 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9075 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9076 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9077 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9078 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9079 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9080 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9081 to find_solib_trampoline_target.
9082 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9083 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9084 (SKIP_TRAMPOLINE_CODE): Remove.
9085 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9086 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9087 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9088 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9089 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9090 (PROC_SIGTRAMP_MAGIC): Ditto.
9091 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9092 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9093 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9094 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9095 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9096
9097 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9098
9099 * NEWS: Note that Alpha targets are now multi-arch.
9100
9101 2002-04-24 Michael Snyder <msnyder@redhat.com>
9102
9103 * parser-defs.h (prev_lexptr): New external variable.
9104 * parse.c (parse_exp_1): Set prev_lexptr to null before
9105 calling the language-specific parser.
9106 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9107 (yyerror): Use prev_lexptr in error reporting.
9108
9109 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9110
9111 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9112 * gregset.h: If FILL_FPXREGSET is defined, provide
9113 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9114 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9115 is defined, call fill_fpxregset.
9116
9117 2002-04-24 Roland McGrath <roland@frob.com>
9118
9119 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9120 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9121 (supply_gregset, supply_fpregset): New functions.
9122
9123 * gnu-nat.c (gnu_find_memory_regions): New function.
9124 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9125 (gnu_xfer_memory): Add a cast.
9126
9127 2002-04-24 Michael Snyder <msnyder@redhat.com>
9128
9129 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9130 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9131 of argument regs ("str r(0123), [r11, #-nn"]).
9132 (arm_skip_prologue): Better handling for frameless functions.
9133 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9134 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9135
9136 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9137
9138 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9139 NUM_PSEUDO_REGS can be used.
9140
9141 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9142
9143 * arch-utils.h: Update copyright.
9144
9145 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9146 * gdbarch.h, gdbarch.c: Re-generate.
9147
9148 * inferior.h (IN_SIGTRAMP): Delete definition.
9149 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9150 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9151
9152 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9153 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9154 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9155 (find_proc_framesize): Ditto.
9156 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9157 (alpha_init_extra_frame_info): Ditto.
9158 * infrun.c (handle_inferior_event): Ditto.
9159 (handle_inferior_event): Ditto.
9160 (check_sigtramp2): Ditto.
9161 * blockframe.c (create_new_frame): Ditto.
9162 (get_prev_frame): Ditto.
9163 * ppc-linux-tdep.c: Update comments.
9164 * i386-linux-tdep.c: Update comments.
9165 * breakpoint.c (bpstat_what): Update comment.
9166
9167 2002-04-24 David S. Miller <davem@redhat.com>
9168
9169 * i960-tdep.c (register_in_window_p): New function.
9170 (i960_find_saved_register): Use it instead of
9171 REGISTER_IN_WINDOW_P.
9172 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9173
9174 * symtab.h (find_stab_function_addr): Kill extern.
9175 * minsyms.c (find_stab_function_addr): Remove from here...
9176 * dbxread.c: ... to here, and mark it static.
9177
9178 2002-04-20 David S. Miller <davem@redhat.com>
9179
9180 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9181 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9182
9183 2002-04-21 David S. Miller <davem@redhat.com>
9184
9185 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9186 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9187 (vx_write_register): Likewise.
9188
9189 2002-04-23 J. Brobecker <brobecker@gnat.com>
9190
9191 * source.c (is_regular_file): New function.
9192 (openp): Check wether file to open is a regular file
9193 to avoid opening directories.
9194
9195 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9196
9197 * findvar.c (extract_signed_integer): Cast printf argument
9198 to suppress format warning.
9199 (extract_unsigned_integer): Likewise.
9200 * infcmd.c (registers_info): Likewise.
9201 * top.c (get_prompt_1): Likewise.
9202 * valops.c (value_assign): Likewise.
9203 * valprint.c (print_decimal): Likewise.
9204
9205 2002-04-22 H.J. Lu (hjl@gnu.org)
9206
9207 * c-exp.y (typebase): Support
9208
9209 [long|long long|short] [signed|unsigned] [int|]
9210
9211 and
9212
9213 signed [long|long long|short] int
9214
9215 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9216
9217 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9218 and vax-tdep.h.
9219 * vax-tdep.h: New file.
9220 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9221 Make several routines static.
9222 (vax_get_saved_register): New function.
9223 (vax_gdbarch_init): New function.
9224 (_initialize_vax_tdep): Register vax_gdbarch_init.
9225 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9226 Remove macros now under the control of gdbarch.
9227
9228 2002-04-22 Michael Snyder <msnyder@redhat.com>
9229
9230 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9231 Some whitespace and coding standards tweaks.
9232
9233 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9234
9235 * vax-tdep.c: Include regcache.h.
9236 (vax_call_dummy_words): New.
9237 (sizeof_vax_call_dummy_words): New.
9238 (vax_fix_call_dummy): New function.
9239 (vax_saved_pc_after_call): Ditto.
9240 * config/vax/tm-vax.h: Don't include regcache.h.
9241 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9242 (CALL_DUMMY): Remove.
9243 (CALL_DUMMY_WORDS): Define.
9244 (SIZEOF_CALL_DUMMY_WORDS): Define.
9245 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9246
9247 2002-04-18 Michael Snyder <msnyder@redhat.com>
9248
9249 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9250
9251 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9252
9253 * vax-tdep.c (vax_frame_chain): New function.
9254 (vax_push_dummy_frame): Ditto.
9255 (vax_pop_frame): Ditto.
9256 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9257 (FRAMELESS_FUNCTION_INVOCATION): Use
9258 generic_frameless_function_invocation_not.
9259 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9260 (POP_FRAME): Use vax_pop_frame.
9261
9262 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9263
9264 * vax-tdep.c (vax_store_struct_return): New function.
9265 (vax_extract_return_value): Ditto.
9266 (vax_store_return_value): Ditto.
9267 (vax_extract_struct_value_address): Ditto.
9268 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9269 vax_store_struct_return.
9270 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9271 (STORE_RETURN_VALUE): Use vax_store_return_value.
9272 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9273
9274 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9275
9276 * vax-tdep.c (vax_frame_saved_pc): New function.
9277 (vax_frame_args_address_correct): Ditto.
9278 (vax_frame_args_address): Ditto.
9279 (vax_frame_locals_address): Ditto.
9280 (vax_frame_num_args): Move code to be in proximity to
9281 other frame-related functions.
9282 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9283 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9284 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9285 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9286 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9287
9288 2002-04-22 H.J. Lu (hjl@gnu.org)
9289
9290 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9291 includedir.
9292
9293 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9294
9295 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9296 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9297 (FRAME_INIT_SAVED_REGS): New macro.
9298
9299 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9300
9301 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9302
9303 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9304
9305 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9306 where needed.
9307 (fetch_osf_core_registers): Likewise.
9308 (supply_gregset): Likewise.
9309
9310 2002-04-22 J. Brobecker <brobecker@gnat.com>
9311
9312 * symfile.h (get_section_index): Define.
9313 * symfile.c (get_section_index): New function.
9314 * mdebugread.c (SC_IS_SBSS): New macro.
9315 (SC_IS_BSS): Return true for the scBss storage class only, as
9316 the scSBss storage class refers to the .sbss section.
9317 (parse_partial_symbols): Discard the symbols which associated
9318 section does not exist.
9319 Make sure to use the .sbss section index for symbols which
9320 storage class is scBss, rather than using the .bss section index.
9321
9322 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9323
9324 * vax-tdep.c: Update copyright years.
9325 (vax_register_name): New function.
9326 (vax_register_byte): Ditto.
9327 (vax_register_raw_size): Ditto.
9328 (vax_register_virtual_size): Ditto.
9329 (vax_register_virtual_type): Ditto.
9330 * config/vax/tm-vax.h: Update copyright years.
9331 (REGISTER_NAMES): Remove.
9332 (REGISTER_NAME): Define.
9333 (REGISTER_BYTE): Use vax_register_byte.
9334 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9335 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9336 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9337
9338 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9339
9340 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9341 declaration
9342 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9343
9344 2002-04-21 David S. Miller <davem@redhat.com>
9345
9346 * arch-utils.c (generic_prologue_frameless_p): Kill
9347 SKIP_PROLOGUE_FRAMELESS_P code.
9348 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9349 references.
9350 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9351 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9352 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9353 references.
9354 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9355 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9356 (sparc_gdbarch_init): Pass it to
9357 set_gdbarch_prologue_frameless_p.
9358
9359 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9360
9361 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9362 (alphabsd-nat.o): New dependency list.
9363
9364 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9365
9366 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9367 alphafbsd-tdep.c.
9368 (alpha-linux-tdep.o): New dependency list.
9369 (alphafbsd-tdep.o): Likewise.
9370
9371 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9372
9373 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9374 to here...
9375 * alpha-tdep.c: ...from here.
9376 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9377
9378 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9379
9380 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9381 prototype from here...
9382 * alpha-tdep.h: ...to here.
9383
9384 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9385
9386 * frame.h (selected_frame_level): Document as deprecated.
9387 (frame_relative_level): Declare.
9388 * stack.c (frame_relative_level): New function.
9389 (selected_frame_level): Document as deprecated.
9390 (select_frame): Do not set the selected_frame_level.
9391
9392 * stack.c (frame_info, record_selected_frame): Update.
9393 (frame_command, current_frame_command): Update.
9394 (up_silently_base, up_command, down_silently_base): Update.
9395 (down_command): Update.
9396 * inflow.c (kill_command): Update.
9397 * tracepoint.c (finish_tfind_command): Update.
9398 * corelow.c (core_open): Update.
9399 * thread.c (info_threads_command): Update.
9400 (do_captured_thread_select): Update.
9401 * infcmd.c (finish_command): Update.
9402 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9403
9404 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9405
9406 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9407
9408 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9409
9410 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9411 type const.
9412
9413 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9414
9415 * alphafbsd-tdep.c: Update copyright years. Include
9416 alpha-tdep.h.
9417 (alphafbsd_use_struct_convention): Make static.
9418 (alphafbsd_init_abi): New function.
9419 (_initialize_alphafbsd_tdep): New function.
9420 * config/alpha/tm-fbsd.h: Update copyright years.
9421 (USE_STRUCT_CONVENTION): Remove.
9422
9423 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9424
9425 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9426 an Alpha ABI variant.
9427 (alpha_abi_handler_list): Declare.
9428 (alpha_gdbarch_register_os_abi): New function.
9429 (alpha_gdbarch_init): Give registered ABI variant handlers a
9430 chance to tweak the gdbarch once we have set up defaults.
9431 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9432
9433 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9434
9435 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9436 to standard_coerce_float_to_double.
9437 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9438
9439 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9440
9441 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9442 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9443 from gdbarch_tdep rather than a constant.
9444 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9445 the default text address for all Alpha Unix ABIs.
9446 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9447 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9448
9449 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9450
9451 * alpha-tdep.h: New file. Includes several Alpha target constants
9452 taken from...
9453 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9454 let gdbarch deal with.
9455 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9456 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9457 to dependency list.
9458 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9459 Alpha target register names.
9460 * alphabsd-nat.c: Likewise.
9461 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9462 Alpha target register names. Make serveral routines static.
9463 (alpha_get_saved_register): New function.
9464 (alpha_abi_names): New.
9465 (process_note_abi_tag_sections): New function.
9466 (get_elfosabi): New function.
9467 (alpha_gdbarch_init): New function.
9468 (alpha_dump_tdep): New function.
9469 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9470
9471 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9472
9473 * frame.c (find_saved_register): Delete #ifdef
9474 HAVE_REGISTER_WINDOWS code.
9475 * config/sparc/tm-sparc.h: Update comments.
9476 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9477
9478 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9479
9480 * i960-tdep.c (i960_find_saved_register): New function.
9481 (i960_get_saved_register): New function.
9482 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9483 (i960_get_saved_register): Declare.
9484 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9485
9486 2002-04-20 David S. Miller <davem@redhat.com>
9487
9488 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9489
9490 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9491
9492 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9493 instead of NUM_PSEUDO_REGS.
9494
9495 2002-04-20 David S. Miller <davem@redhat.com>
9496
9497 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9498 GDB_MULTI_ARCH_PARTIAL
9499 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9500 define, let tm-sp64.h do it.
9501
9502 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9503
9504 * frame.c (find_saved_register): Avoid a NULL pointer
9505 dereference and actually walk the frame list.
9506
9507 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9508
9509 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9510 sorted in most most-recent-used order. Document.
9511 * gdbarch.h, gdbarch.c: Regenerate.
9512
9513 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9514
9515 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9516 instead of ->prev.
9517 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9518 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9519 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9520 instead of ->prev.
9521
9522 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9523
9524 Fix PR gdb/471.
9525 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9526 (build_builtin_type_vec128): Ditto.
9527 (append_composite_type_field): Fix calculation of type length in
9528 union case.
9529
9530 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9531
9532 * config/djgpp/README: Update.
9533
9534 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9535 compiler warnings.
9536
9537 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9538
9539 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9540 (alpha_setup_arbitrary_frame): ...to this.
9541 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9542 for alpha_setup_arbitrary_frame.
9543
9544 2002-04-18 Andrew Cagney <cagney@redhat.com>
9545
9546 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9547 * gdbarch.h, gdbarch.c: Regenerate.
9548
9549 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9550 * target.h (memory_breakpoint_from_pc): Update declaration.
9551 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9552
9553 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9554 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9555 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9556 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9557 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9558 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9559 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9560 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9561 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9562 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9563 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9564 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9565
9566 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9567 const pointer.
9568 * monitor.c (monitor_insert_breakpoint): Ditto.
9569 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9570
9571 * config/mcore/tm-mcore.h: Update copyright.
9572 * mem-break.c: Ditto.
9573 * xstormy16-tdep.c: Ditto.
9574
9575 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9576
9577 * p-exp.y: Add precedence rule for '^' token.
9578 This removes the shift/reduce conflicts.
9579 Remove the comment concerning these shift/reduce conflicts.
9580
9581 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9582
9583 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9584 (registers_powerpc_nofp): New register set for processors
9585 without floating point unit.
9586
9587 2002-04-18 David S. Miller <davem@redhat.com>
9588
9589 * MAINTAINERS: Add myself to write-after-approval.
9590
9591 2002-04-17 Michael Snyder <msnyder@redhat.com>
9592
9593 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9594
9595 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9596
9597 * rs6000-tdep.c (frame_initial_stack_address): Use
9598 frame_register_read to read the alloca_reg.
9599
9600 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9601
9602 * frame.c (find_saved_register): Find saved registers in the next
9603 not prev frame.
9604 Fix PR gdb/365.
9605
9606 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9607
9608 * gdbarch.sh (LANG): Set to ``c''.
9609
9610 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9611
9612 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9613
9614 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9615
9616 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9617 Update copyright.
9618
9619 * hpread.c (hpread_get_lntt): Add declaration.
9620 Also fix PR gdb/391.
9621
9622 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9623
9624 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9625 * aclocal.m4, configure: Re-generate.
9626 Fix PR gdb/391.
9627
9628 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9629
9630 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9631 instead of tm_print_insn.
9632
9633 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9634
9635 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9636
9637 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9638
9639 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9640 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9641 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9642
9643 2002-04-12 Don Howard <dhoward@redhat.com>
9644
9645 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9646 max_user_call_depth.
9647 (init_cmd_lists): Initialize the new value;
9648 * cli/cli-script.c (execute_user_command): Limit the call depth of
9649 user defined commands. This avoids a core-dump when user commands
9650 are infinitly recursive.
9651
9652 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9653
9654 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9655 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9656 from tdep struct instead of DEFAULT_LR_SAVE.
9657 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9658 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9659 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9660
9661 2002-04-12 Michael Snyder <msnyder@redhat.com>
9662
9663 * Remote.c: Spelling fix.
9664 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9665 If no symbol found for "sbrk", try "_sbrk".
9666 (make_output_phdrs): Use bfd_section_name.
9667 (gcore_copy_callback): Use bfd_section_name.
9668 * eval.c: Indentation fix-ups.
9669 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9670 in case it gets applied to an address that is already
9671 in the instruction space.
9672 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9673 * symfile.c: Fix indentation, long lines.
9674 * source.c: White space fix-up.
9675
9676 2002-04-12 Andrew Cagney <cagney@redhat.com>
9677
9678 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9679 * frame.c (frame_register_read): New function. Return non-zero on
9680 success.
9681 (read_relative_register_raw_bytes_for_frame): Delete.
9682 (read_relative_register_raw_bytes): Delete.
9683 * frame.h (frame_register_read): Declare.
9684 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9685 * sh-tdep.c: Ditto.
9686 * infcmd.c (do_registers_info): Ditto.
9687 * hppa-tdep.c: Ditto.
9688 * rs6000-tdep.c: Ditto.
9689 * h8500-tdep.c: Ditto.
9690 * mips-tdep.c: Ditto.
9691 * h8300-tdep.c: Ditto.
9692 * z8k-tdep.c: Ditto.
9693
9694 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9695
9696 From Jimi X <jimix@watson.ibm.com>:
9697 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9698 64-bit SysV ABI.
9699
9700 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9701
9702 From Jimi X <jimix@watson.ibm.com>:
9703 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9704 bfd info.
9705
9706 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9707
9708 From Jimi X <jimix@watson.ibm.com>:
9709 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9710 register sets for these processor variants.
9711
9712 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9713
9714 * regformats/reg-ppc.dat: Support FPSCR.
9715
9716 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9717
9718 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9719 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9720 Add fpscr as an invalid/unfetchable register.
9721 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9722 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9723 (fill_fpregset): Add support for register fpscr.
9724 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9725 (fill_gregset): Account for the fact that register ``mq'' might
9726 not exist.
9727 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9728 (registers_power): Add fpscr to register set at slot 71.
9729 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9730 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9731
9732 2002-04-11 Michael Snyder <msnyder@redhat.com>
9733
9734 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9735 * configure: Regenerate.
9736 * config.in: Regenerate.
9737 * acconfig.h: Add define for _SYSCALL32.
9738 * core-sol2.c: Remove #define _SYSCALL32.
9739 * solib-legacy.c: Remove #define _SYSCALL32.
9740
9741 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9742
9743 * stack.c (select_frame): Cleanup internal error message, do not
9744 use %p.
9745
9746 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9747
9748 * stack.c (select_frame): Check that selected_frame and the
9749 specified level are as expected.
9750 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9751 Update copyright.
9752 * frame.h (struct frame_info): Add field `level'. Update
9753 copyright.
9754 Work-in-progress PR gdb/464.
9755
9756 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9757
9758 * maint.c (maint_print_section_info): Rename print_section_info.
9759 (print_bfd_section_info, print_objfile_section_info): Update.
9760 * inferior.h (struct gdbarch): Add opaque declaration.
9761 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9762 * gdbarch.h: Regenerate.
9763
9764 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9765
9766 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9767 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9768 (kernel_u_size): Added.
9769 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9770 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9771
9772 2002-04-04 Jim Ingham <jingham@apple.com>
9773
9774 * valarith.c (find_size_for_pointer_math): New function, either returns
9775 the size for a pointer's target, returns 1 for void *, or errors for
9776 incomplete types.
9777 (value_add, value_sub): use find_size_for_pointer_math.
9778
9779 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9780
9781 * linux-low.c (linux_look_up_symbols): New hook.
9782 (linux_target_ops): Add linux_look_up_symbols.
9783 * remote-utils.c (decode_address): New function.
9784 (look_up_one_symbol): New function.
9785 * server.c (handle_query): Call target look_up_symbols hook.
9786 * server.h (look_up_one_symbol): Add prototype.
9787 * target.h (struct target_ops): Add look_up_symbols hook.
9788
9789 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9790
9791 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9792 override FP_REGNUM with frame->fp. Update copyright.
9793 * parse.c (num_std_regs, std_regs): Delete.
9794 (target_map_name_to_register): Do not search std_regs. Update
9795 function description.
9796 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9797 declarations. Update copyright.
9798 Fix PR gdb/251.
9799
9800 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9801
9802 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9803 after the last symbol in a block.
9804
9805 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9806
9807 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9808 is non zero as a found symbol.
9809
9810 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9811
9812 * findvar.c: Include "builtin-regs.h".
9813 (value_of_register): Call value_of_builtin_reg when applicable.
9814 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9815 (target_map_name_to_register): Call
9816 builtin_reg_map_name_to_regnum.
9817 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9818 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9819 (builtin_regs_h): Define.
9820 (builtin-regs.o): New target.
9821 (findvar.o): Add $(builtin_regs_h).
9822 * builtin-regs.c, builtin-regs.h: New files.
9823 * std-regs.c: New file.
9824 Partial fix for PR gdb/251.
9825
9826 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9827
9828 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9829 it's no longer required.
9830
9831 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9832
9833 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9834
9835 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9836
9837 From Jimi X <jimix@watson.ibm.com>:
9838 * rs6000-tdep.c (rs6000_software_single_step): Use
9839 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9840 and size. Use target_insert_breakpoint() and
9841 target_remove_breakpoint() to insert and remove breakpoints
9842 instead of explicit memory reads and writes.
9843
9844 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9845
9846 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9847 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9848 ELF_OBJECT_FORMAT ifdef.
9849
9850 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9851
9852 From Jimi X <jimix@watson.ibm.com>:
9853 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9854
9855 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9856
9857 From Jimi X <jimix@watson.ibm.com>:
9858 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9859 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9860
9861 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9862
9863 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9864 s/asprintf/xasprintf/.
9865 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9866
9867 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9868
9869 I believe Jeff Law denies responsability for this one:
9870 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9871 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9872 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9873 Work-around for PR gdb/366.
9874
9875 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9876
9877 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9878 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9879 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9880
9881 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9882
9883 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9884 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9885 information.
9886
9887 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9888
9889 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9890 maintainer.
9891
9892 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9893
9894 * README (Reporting Bugs in GDB): Document the bug web page as the
9895 prefered way of submitting bugs.
9896 Fix PR gdb/402.
9897
9898 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9899
9900 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9901 -1. Update comment.
9902 * gdbarch.h, gdbarch.c: Re-generate.
9903
9904 2002-04-07 Andreas Schwab <schwab@suse.de>
9905
9906 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9907 buffer to regcache_collect.
9908
9909 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9910
9911 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9912 * gdbarch.c, gdbarch.h: Re-generate.
9913
9914 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9915
9916 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9917 declaration. Fix -Werror.
9918
9919 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9920
9921 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9922 * gdbarch.c: Regenerate.
9923
9924 2002-04-05 Michael Snyder <msnyder@redhat.com>
9925
9926 * breakpoint.c (clear_command): Rewrite middle section to
9927 combine two loops with identical control conditions.
9928 Add a cleanup to eliminate a memory leak.
9929 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9930
9931 2002-04-05 H.J. Lu (hjl@gnu.org)
9932
9933 * solib-svr4.c (bkpt_names): Add "__start".
9934
9935 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9936
9937 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9938 as test for 64 bit target.
9939
9940 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9941
9942 * h8500-tdep.c (h8500_write_fp): Delete function.
9943 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9944 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9945 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9947 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9948 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9949 (s390_write_fp):
9950 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9951 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9952 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9953 (d10v_write_fp): Delete function.
9954 * inferior.h (write_fp, generic_target_write_fp): Delete
9955 declarations.
9956 * regcache.c (generic_target_write_fp): Delete function.
9957 (write_fp): Delete function.
9958 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9959 * gdbarch.h, gdbarch.c: Regenerate.
9960 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9961 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9962 (sparc64_write_fp): Delete declaration.
9963 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9964 (h8500_write_fp): Delete declaration.
9965
9966 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9967
9968 * sparc-tdep.c (sparc64_write_fp): Delete.
9969 (sparc_push_dummy_frame): Replace write_fp call with code to store
9970 the FP directly.
9971 (sparc_gdbarch_init): Do not initialize write_fp.
9972
9973 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9974
9975 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9976 clause.
9977
9978 2002-03-29 Jim Blandy <jimb@redhat.com>
9979
9980 * stack.c (get_selected_block): Add new argument `addr_in_block',
9981 used to return the exact code address we used to select the block,
9982 not just the block.
9983 * blockframe.c (get_frame_block, get_current_block): Same.
9984 * frame.h (get_frame_block, get_current_block,
9985 get_selected_block): Update declarations.
9986 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9987 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9988
9989 2002-04-05 Michael Snyder <msnyder@redhat.com>
9990
9991 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9992 warning message.
9993
9994 2002-04-05 J. Brobecker <brobecker@gnat.com>
9995
9996 * utils.c (xfullpath): New function.
9997 * defs.h (xfullpath): Add declaration.
9998 * source.c (openp): Use xfullpath in place of gdb_realpath to
9999 avoid resolving the basename part of filenames when the
10000 associated file is a symbolic link. This fixes a potential
10001 inconsistency between the filenames known to GDB and the
10002 filenames it prints in the annotations.
10003 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10004 to be able to match a filename with either the real filename, or
10005 the name of any symbolic link to this file.
10006 (lookup_partial_symtab): Ditto.
10007
10008 2002-04-04 Michael Snyder <msnyder@redhat.com>
10009
10010 * breakpoint.c: Add support for hardware breakpoints in overlays.
10011 (overlay_events_enabled): New state variable.
10012 (insert_breakpoints): Use overlay_events_enabled to decide
10013 whether to attempt to set a breakpoint at the overlay load addr.
10014 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10015 (remove_breakpoint): Use overlay_events_enabled to decide
10016 whether breakpoints need to be removed from overlay load addr.
10017 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10018 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10019 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10020 disable_overlay_breakpoints): Update overlay_events_enabled.
10021
10022 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10023
10024 * dwarf2read.c (struct function_range): New.
10025 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10026 (check_cu_functions): New.
10027 (read_file_scope): Initialize global function lists.
10028 Call dwarf_decode_line after processing children.
10029 (read_func_scope): Add to global function list.
10030 (dwarf_decode_lines): Call check_cu_functions everywhere
10031 record_line is called. Call record_line with a linenumber
10032 of 0 to mark sequence ends.
10033
10034 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10035
10036 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10037 change sync with glibc.
10038
10039 2002-04-03 Jim Blandy <jimb@redhat.com>
10040
10041 * configure.in: Call AC_C_INLINE.
10042 * configure: Regenerated.
10043
10044 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10045
10046 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10047 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10048
10049 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10050
10051 * NEWS: Mention gcore support on FreeBSD/i386.
10052
10053 * fbsd-proc.c: New file.
10054 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10055 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10056
10057 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10058 while statement.
10059
10060 2002-03-29 Jim Blandy <jimb@redhat.com>
10061
10062 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10063 unescaped newlines in string literals, but newer ones don't. So
10064 escape them.
10065
10066 2002-03-26 Michael Snyder <msnyder@redhat.com>
10067 Andrew Cagney <cagney@redhat.com>
10068
10069 * cli/cli-dump.c: New file. Dump memory to file,
10070 restore file to memory.
10071 * cli/cli-dump.h: New file.
10072 * Makefile.in: Add rules, dependencies for cli-dump.o.
10073 * NEWS: Mention new commands.
10074
10075 2002-03-28 Michael Snyder <msnyder@redhat.com>
10076
10077 * symfile.c (symbol_file_add): Move test for null symbols to later.
10078
10079 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10080
10081 From veksler at il.ibm.com:
10082 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10083 the xstrduped original path.
10084 Fix PR gdb/417.
10085
10086 2002-03-27 Michael Snyder <msnyder@redhat.com>
10087
10088 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10089 * infcmd.c (_initialize_infcmd): Ditto.
10090 * language.c (_initialize_language): Ditto.
10091 * symfile.c (_initialize_symfile): Ditto.
10092 * top.c (_init_main): Ditto.
10093 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10094
10095 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10096
10097 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10098 vector registers handling.
10099 (skip_prologue): Handle new AltiVec instructions. Fill in new
10100 fields of frame data.
10101 (frame_get_saved_regs): Fill in information for AltiVec registers.
10102
10103 2002-03-27 Jim Blandy <jimb@redhat.com>
10104
10105 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10106 a function; leave this macro here to invoke that function.
10107 (symbol_init_mangled_name): Declaration for that function.
10108 * symtab.c (symbol_init_mangled_name): New function.
10109
10110 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10111
10112 * valarith.c: Replace strerror with safe_strerror.
10113 * tracepoint.c: Ditto.
10114 * lin-lwp.c: Ditto.
10115 * go32-nat.c: Ditto.
10116 * inflow.c: Ditto.
10117 * gnu-nat.c: Ditto.
10118
10119 2002-03-27 Andreas Schwab <schwab@suse.de>
10120
10121 * event-top.c (command_line_handler): Remove useless if.
10122
10123 2002-03-27 Andreas Jaeger <aj@suse.de>
10124
10125 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10126 comment.
10127
10128 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10129
10130 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10131 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10132 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10133 (x86_64_linux_dr_get_status, supply_gregset),
10134 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10135 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10136 (x86_64_register_info_table): Add.
10137 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10138 (x86_64_register_raw_size, x86_64_register_virtual_type),
10139 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10140 general x86_64_register_info_table.
10141 (i386_gdbarch_init): gdbarch_register_bytes is now set
10142 dynamicaly during initialization.
10143 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10144 * gdbserver/linux-x86-64-low.c: Ditto.
10145
10146 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10147
10148 * gdbserver/server.c (main): Call target_signal_to_host_p
10149 and target_signal_to_host on signals received from the remote.
10150 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10151 target_signal_from_host on signals sent to the remote.
10152 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10153 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10154
10155 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10156
10157 * signals/signals.c: Include "server.h" in gdbserver build.
10158 (target_signal_from_name): Don't use STREQ.
10159 (_initialize_signals): Likewise. Don't include function in
10160 gdbserver build.
10161
10162 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10163
10164 * signals.c: Moved to...
10165 * signals/signals.c: Here.
10166 * Makefile (signals.o): Update.
10167
10168 2002-03-26 Jeff Law (law@redhat.com)
10169
10170 * somread.c (som_symtab_read): Remove some commented out code and
10171 updated related comments. Do not set the minimal symbol table to
10172 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10173 in a dynamic executable.
10174 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10175 where we are unable to find the minimal symbol for the given
10176 PC value.
10177
10178 2002-03-25 Jeff Law (law@redhat.com)
10179
10180 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10181
10182 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10183
10184 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10185
10186 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10187
10188 * command.h: Update copyright.
10189 (struct cmd_list_element): Replace definition with opaque
10190 declaration.
10191 (enum cmd_types): Document that it will eventually be moved to
10192 cli/cli-decode.h
10193 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10194 (MALLOCED_REPLACEMENT): Delete macro.
10195 * Makefile.in (cli_decode_h): Add $(command_h).
10196 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10197 * top.c: Include "cli/cli-decode.h".
10198 * completer.c: Include "cli/cli-decode.h".
10199 * maint.c: Include "cli/cli-decode.h".
10200 * cli/cli-decode.h: Include "command.h".
10201 (enum command_class): Delete.
10202 (enum cmd_types): Comment out.
10203 (enum cmd_auto_boolean): Delete.
10204 (enum var_types): Delete.
10205
10206 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10207
10208 * cli/cli-decode.c: Include "gdb_assert.h".
10209 (add_set_or_show_cmd): New static function.
10210 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10211 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10212 all fields, such as func, from the set command.
10213
10214 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10215
10216 * MAINTAINERS (sh-elf): Change warning flag to -w.
10217
10218 2002-03-23 Andrew Cagney <cagney@redhat.com>
10219
10220 * defs.h (error): Add printf format attribute.
10221 * thread-db.c (thread_from_lwp): Fix error format string.
10222 * stack.c (parse_frame_specification): Ditto.
10223 * cli/cli-decode.c (undef_cmd_error): Ditto.
10224 * scm-lang.c (scm_lookup_name): Ditto.
10225 * tracepoint.c (trace_error): Ditto.
10226 * remote-utils.c (usage): Ditto.
10227 * remote.c (compare_sections_command): Ditto.
10228 Fix PR gdb/328.
10229
10230 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10231
10232 * gdbtypes.c (append_composite_type_field): New function.
10233 (init_composite_type): New function.
10234 * gdbtypes.h (append_composite_type_field): Declare.
10235 (init_composite_type): Ditto.
10236
10237 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10238
10239 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10240 function.
10241 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10242 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10243 structure returning convention for SYSV ABI case, but not
10244 for GNU/Linux, FreeBSD, or NetBSD.
10245
10246 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10247
10248 * symtab.h (lookup_block_symbol): Add mangled_name argument
10249 to prototype.
10250
10251 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10252 with new mangled_name argument.
10253 * linespec.c (decode_line_1): Likewise.
10254 * valops (value_of_this): Likewise.
10255 * symtab.c (lookup_transparent_type): Likewise.
10256 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10257 (lookup_symbol): If we are given a mangled name, pass it down
10258 to lookup_symbol_aux.
10259 (lookup_block_symbol): If we are given a mangled name to check
10260 against, only return symbols which match it.
10261
10262 2002-03-22 Christopher Faylor <cgf@redhat.com>
10263
10264 * win32-nat.c (child_create_inferior): Check for proper shell to use
10265 here, in case the user changes it on the fly.
10266 (_initialize_inftarg): Remove shell path considerations.
10267
10268 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10269
10270 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10271 for gdbarch_max_register_raw_size and max_register_virtual_size.
10272 Adjust copyright year.
10273
10274 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10275
10276 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10277 in a function to cover the entire beginning of the function
10278 as well if it does not already.
10279
10280 2002-03-21 Tom Rix <trix@redhat.com>
10281
10282 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10283 (rs6000_ptrace64): Renamed from ptrace64.
10284
10285 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10286
10287 * gdbserver/remote-utils.c (remote_open): Don't call
10288 getprotobyname, we're all using TCP here so just use
10289 IPPROTO_TCP.
10290 * gdbserver/gdbreplay.c (remote_open): Ditto.
10291
10292 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10293
10294 * regcache.c (_initialize_regcache): No need to call
10295 build_regcache() at this time; it gets called whenever
10296 the gdbarch changes.
10297
10298 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10299
10300 * sparc-nat.c: Include sys/param.h where possible.
10301
10302 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10303
10304 Fix PR gdb/422.
10305 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10306 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10307 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10308 complex types.
10309 * stabsread.c (rs6000_builtin_type): Likewise.
10310 (read_sun_floating_type): Likewise.
10311
10312 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10313
10314 * stabsread.c (read_member_functions): Remove skip code for duplicate
10315 constructor/destructor methods. Use standard parsing for these
10316 methods and just do not chain them to the list of methods after
10317 parsing.
10318
10319 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10320
10321 * coffread.c: Remove redundant static declarations. Replace
10322 occurrences of `PTR' with `void *'.
10323 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10324 * top.h (quit_cover): Likewise.
10325 * defs.h (catch_errors): Likewise.
10326
10327 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10328
10329 * defs.h (XMALLOC): Define.
10330 * gdb-events.sh (XMALLOC): Delete macro.
10331 * gdb-events.c, gdb-events.h: Regenerate.
10332 * gdbarch.sh (XMALLOC): Delete macro.
10333 * gdbarch.c: Regenerate.
10334 * serial.c (XMALLOC): Delete macro.
10335 * ui-file.c (XMALLOC): Ditto.
10336 * ser-unix.h (XMALLOC): Ditto.
10337 * sh-tdep.c (XMALLOC): Ditto.
10338 * ui-out.c (XMALLOC): Ditto.
10339 * utils.c (XMALLOC): Ditto.
10340 * i386-tdep.c (XMALLOC): Ditto.
10341 * gdb-events.c (XMALLOC): Ditto.
10342 * d10v-tdep.c (XMALLOC): Ditto.
10343 * cli-out.c (XMALLOC): Ditto.
10344
10345 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10346 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10347 * ui-file.c, ui-out.c: Ditto.
10348
10349 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10350
10351 * command.h (struct cmd_list_element): Add field context.
10352 (set_cmd_context, get_cmd_context): Declare.
10353 * cli/cli-decode.h: Ditto.
10354 * cli/cli-decode.c (get_cmd_context): New function.
10355 (set_cmd_context): New function.
10356 (add_cmd): Initialize context.
10357 Part of fixing PR gdb/145 and PR gdb/146.
10358
10359 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10360
10361 * cli/cli-decode.c (cmd_type): New function.
10362 * command.h (cmd_type): Declare.
10363 * infrun.c (set_schedlock_func): Call function cmd_type.
10364 * kod.c (kod_set_os): Call cmd_type.
10365 * cris-tdep.c (cris_version_update): Use function cmd_type.
10366 (cris_mode_update, cris_abi_update): Ditto.
10367
10368 * command.h: (execute_cmd_post_hook): Declare.
10369 (execute_cmd_pre_hook): Declare.
10370 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10371 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10372 functions. Execute pre/post hook while ensuring that afterwords
10373 hook_in is cleared.
10374 * top.c (execute_command): Use execute_cmd_post_hook, and
10375 execute_cmd_pre_hook to execute pre/post commands.
10376 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10377 hook_stop_stub.
10378 (hook_stop_stub): Call execute_cmd_pre_hook.
10379
10380 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10381
10382 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10383 set'' and this leads to a core dump. Move xstrdup of
10384 operating_system to after check that it is not NULL.
10385
10386 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10387
10388 * kod.c (kod_set_os): Remove unnecessary check that
10389 ``command->type'' is set_cmd.
10390
10391 * valprint.c (set_input_radix): Use input_radix.
10392 (set_output_radix): Use output_radix.
10393 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10394 isn't reverted.
10395
10396 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10397
10398 * value.h (struct value): Delete field ``substring_addr''. Change
10399 aligner fields to force_doublest_align, force_longest_align,
10400 force_core_addr_align and force_pointer_aligh.
10401
10402 * value.h (struct value): Fix typo in above change.
10403
10404 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10405
10406 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10407 to fix internal_error from ``maintenance print architecture''.
10408
10409 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10410
10411 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10412 for gcc versions after gcc-2.8.1.
10413
10414 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10415
10416 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10417 for method resolution. Restore adjustment of ``this'' pointer after
10418 calling value_struct_elt, which was accidentally removed during the
10419 HP merge.
10420
10421 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10422
10423 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10424 value_of_register.
10425 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10426 get_saved_register.
10427 * value.h (value_of_register): Update.
10428
10429 2002-03-14 Richard Henderson <rth@redhat.com>
10430
10431 * configure.in: Detect declaration for canonicalize_file_name.
10432 * utils.c (canonicalize_file_name): Declare, if needed.
10433 (gdb_realpath): Prefer realpath if available and usable.
10434 * config.in, configure: Rebuild.
10435
10436 2002-03-14 Richard Henderson <rth@redhat.com>
10437
10438 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10439 a constant array bound.
10440
10441 * MAINTAINERS: Add myself to write-after-approval.
10442
10443 2002-03-14 Michael Snyder <msnyder@redhat.com>
10444
10445 * symfile.c (syms_from_objfile): Return immediately if no syms.
10446 (symbol_file_add): Return immediately if no syms.
10447 (find_sym_fns): Return immediately if no syms.
10448
10449 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10450
10451 * gdbserver/remote-util.c (remote_open): Print remote-side's
10452 IP address when remote debugging over the network.
10453
10454 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10455
10456 * config/sparc/fbsd.mh: Fix copyright.
10457 * config/sparc/fbsd.mt: Likewise.
10458
10459 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10460
10461 * MAINTAINERS: Fix typo in name of gdb warnings option.
10462 (x86-64): Fix formating so that this can be parsed by awk.
10463
10464 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10465
10466 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10467 * defs.h: Include "gdb/signals.h".
10468 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10469
10470 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10471
10472 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10473 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10474 from x86-64-tdep.h
10475
10476 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10477 Don Howard <dhoward@redhat.com>
10478
10479 * mips-tdep.c (ST0_FR): Define.
10480 (mips2_fp_compat): New function, temporarily disabled.
10481 (mips_read_fp_register_single): New function.
10482 (mips_read_fp_register_double): New function.
10483 (mips_print_register): Use them.
10484 (do_fp_register_row): Likewise.
10485
10486 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10487
10488 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10489 approval''.
10490
10491 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10492
10493 * stabsread.c (read_member_functions): Fix is_stub test for
10494 static member functions, improve comment.
10495
10496 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10497
10498 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10499 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10500 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10501 commands that set boolean values.
10502 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10503 (arm_rdi_resume): Always initialize PC.
10504 (arm_rdi_open): Don't use rslt as a boolean.
10505 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10506 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10507 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10508 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10509
10510 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10511
10512 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10513 * configure: Rebuilt.
10514
10515 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10516
10517 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10518 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10519
10520 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10521
10522 * cli/cli-decode.c (set_cmd_completer): New function.
10523 * command.h (set_cmd_completer): Declare.
10524 * cli/cli-decode.h (set_cmd_completer): Ditto.
10525
10526 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10527 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10528 * win32-nat.c (_initialize_inftarg): Ditto.
10529 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10530 * proc-api.c (_initialize_proc_api): Ditto.
10531 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10532 * source.c (_initialize_source): Ditto.
10533 * exec.c (_initialize_exec): Ditto.
10534 * solib.c (_initialize_solib): Ditto.
10535 * top.c (init_main): Ditto.
10536 * tracepoint.c (_initialize_tracepoint): Ditto.
10537 * symfile.c (_initialize_symfile): Ditto.
10538 * printcmd.c (_initialize_printcmd): Ditto.
10539 * infcmd.c (_initialize_infcmd): Ditto.
10540 * corefile.c (_initialize_core): Ditto.
10541
10542 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10543
10544 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10545
10546 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10547
10548 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10549
10550 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10551
10552 * NEWS: Update headings, 5.2 has branched.
10553
10554 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10555
10556 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10557 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10558 (register_addr, REGISTER_RAW_SIZE): Likewise.
10559 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10560 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10561
10562 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10563
10564 * MAINTAINERS (x86-64): Add myself.
10565 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10566 changed value_ptr -> struct value *
10567
10568 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10569
10570 * configure.host (sparc64-*-freebsd): Add.
10571 * configure.tgt: Likewise.
10572 * config/sparc/fbsd.mh: New file.
10573 * config/sparc/fbsd.mt: Likewise.
10574 * config/sparc/nm-fbsd.h: Likewise.
10575 * config/sparc/tm-fbsd.h: Likewise.
10576
10577 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10578
10579 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10580 regformats/reg-s390x.dat.
10581
10582 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10583
10584 * utils.c: Add FIXME explaining true/false problem.
10585
10586 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10587
10588 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10589
10590 2002-02-28 Michael Chastain <mec@shout.net>
10591
10592 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10593
10594 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10595
10596 * gdbserver/linux-s390-low.c: New file.
10597 * regformats/reg-s390.dat: New file.
10598 * regformats/reg-s390x.dat: New file.
10599 * gdbserver/configure.srv: Add S/390.
10600 * gdbserver/Makefile.in: Add S/390.
10601 * configure.tgt: Enable gdbserver for S/390.
10602
10603 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10604
10605 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10606 first line of the doc string for "info dos", except at the end of
10607 the sentence, since the short help stops at the first period.
10608
10609 2002-02-28 Jason Merrill <jason@redhat.com>
10610
10611 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10612
10613 2002-02-27 Fred Fish <fnf@redhat.com>
10614
10615 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10616 comment (dumy -> dummy).
10617
10618 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10619
10620 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10621
10622 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10623
10624 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10625
10626 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10627
10628 * gdbserver/acconfig.h: New file.
10629 * gdbserver/i387-fp.c: New file.
10630 * gdbserver/i387-fp.h: New file.
10631 * gdbserver/linux-x86-64.c: New file.
10632 * regformats/reg-x86-64.dat: New file.
10633 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10634 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10635 * gdbserver/configure.in: Add support for regsets.
10636 * gdbserver/config.in: Regenerate.
10637 * gdbserver/configure: Regenerate.
10638 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10639 * gdbserver/linux-low.h: New file.
10640 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10641 for regsets.
10642 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10643 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10644 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10645 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10646 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10647 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10648 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10649 "i387-fp.h". Add PTRACE_GETREGS and friends.
10650 * gdbserver/regcache.c (supply_register): New function.
10651 (supply_register_by_name): New function.
10652 (collect_register): New function.
10653 (collect_register_by_name): New function.
10654
10655 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10656
10657 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10658 (config.status): Add configure.srv dependency.
10659 (server_h): Add config.h dependency.
10660
10661 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10662
10663 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10664 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10665 * gdbserver/configure.srv: Change i386-*-linux* to use
10666 reg-i386-linux.o.
10667
10668 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10669
10670 * x86-64-tdep.c: Re-indent. Update copyright date.
10671
10672 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10673
10674 From Michal Ludvig <mludvig@suse.cz>:
10675 * x86-64-tdep.c (value.h): Delete.
10676 (gdb_assert.h): Include.
10677 (x86_64_register_convert_to_virtual,
10678 x86_64_register_convert_to_raw ): Add check which lets only
10679 floating-point values to be converted.
10680 (value_push): Delete.
10681 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10682 (i386_gdbarch_init): Number of register_bytes fixed.
10683
10684 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10685
10686 * MAINTAINERS: Add x86-64 target.
10687
10688 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10689
10690 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10691 * osfsolib.c (solib_map_sections): Ditto.
10692 * irix5-nat.c (solib_map_sections): Ditto.
10693 * corelow.c (gdb_check_format): Ditto.
10694 * symfile.c (symfile_bfd_open): Ditto.
10695 * solib.c (solib_map_sections): Ditto.
10696 Fix PR gdb/354.
10697
10698 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10699
10700 * remote.c (_initialize_remote): By default, disable ``e'' and
10701 ``E'' step out-of-range packets.
10702
10703 2002-02-26 Andreas Schwab <schwab@suse.de>
10704
10705 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10706 m68k_linux_frame_saved_pc.
10707 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10708 in_sigtramp.
10709 (SIGCONTEXT_PC_OFFSET): Remove.
10710 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10711 m68k_linux_sigtramp_saved_pc): New functions.
10712 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10713 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10714 (UCONTEXT_PC_OFFSET): Define.
10715 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10716 non-RT and RT signal trampolines.
10717
10718 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10719
10720 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10721 (TARGET_NBPG, STACK_END_ADDR): Delete
10722 (VARIABLES_INSIDE_BLOCK): Delete.
10723
10724 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10725
10726 * utils.c (perror_with_name): Make string parameter constant.
10727 (print_sys_errmsg): Ditto.
10728 (query): Ditto.
10729 * defs.h (perror_with_name): Update.
10730 (print_sys_errmsg): Update.
10731 (query): Update.
10732
10733 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10734
10735 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10736 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10737
10738 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10739
10740 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10741 if it already matches the current architecture from the exec file.
10742 Include arch-utils.h for gdbarch_info_init prototype.
10743 * Makefile.in (rs6000-nat.o): Update dependencies.
10744
10745 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10746
10747 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10748 list of exported variables.
10749
10750 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10751
10752 * gdbserver/configure.srv: New file.
10753 * gdbserver/configure.in: Use configure.srv instead
10754 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10755 from it.
10756 * gdbserver/configure: Regenerated.
10757 * gdbserver/terminal.h: New file.
10758 * gdbserver/Makefile.in: Update for configure changes. Remove
10759 more unneeded include paths.
10760
10761 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10762
10763 From wiz at danbala:
10764 * config/sparc/tm-sp64.h: Fix grammar and typos.
10765 Fix PR gdb/287.
10766
10767 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10768
10769 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10770 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10771 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10772 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10773 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10774 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10775 * s390-tdep.c: Ditto.
10776 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10777 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10778 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10779 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10780 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10781 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10782 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10783 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10784 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10785 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10786 Fix PR gdb/378.
10787
10788 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10789
10790 * lin-thread.c: Delete file.
10791 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10792 to gdb_proc_service.h.
10793 * configure: Re-generate.
10794
10795 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10796 * serial.c (serial_open): Delete check for "ocd".
10797 Fix PR gdb/349.
10798
10799 * Makefile.in (linux-thread.o): Delete target.
10800 * linux-thread.c: Delete file.
10801
10802 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10803 renamed SH files to be consistent.
10804
10805 * symtab.c (sort_search_symbols): Use xfree.
10806
10807 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10808
10809 * arm-linux-tdep.c (arm_linux_init_abi): Register
10810 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10811 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10812 definition with undef, since we don't want the sysvr4 definition.
10813 (SKIP_TRAMPOLINE_CODE): Likewise.
10814
10815 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10816
10817 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10818
10819 * configure.in: (AC_CHECK_FUNCS) Added test for
10820 canonicalize_file_name Regenerated.
10821 * config.in, configure: Regenerated.
10822 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10823 defined use canonicalize_file_name.
10824
10825 2002-02-23 Michael Chastain <mec@shout.net>
10826
10827 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10828
10829 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10830
10831 * README: Remove references to cygnus.com.
10832 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10833 dot com'' form. Remove references to cygnus.com and sourceware.
10834
10835 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10836
10837 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10838 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10839 1003.1-2001 no longer allows "head -1".
10840 * gdb/Makefile.in (version.c): Likewise.
10841 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10842 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10843 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10844
10845 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10846
10847 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10848 * command.h (cmd_cfunc_eq): Declare.
10849 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10850
10851 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10852 ``struct cmd_list_element *''.
10853 * cli/cli-cmds.c (is_complete_command): Update. Use
10854 cmd_cfunc_eq.
10855 * top.c (execute_command): Pass the command to
10856 is_complete_command.
10857 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10858
10859 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10860
10861 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10862 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10863 architecture defines.
10864 * s390-tdep.c (s390_gdbarch_init): Likewise.
10865
10866 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10867
10868 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10869 (arm_linux_push_arguments): Likewise.
10870 (arm_linux_init_abi): Register them. Also register linux-specific
10871 call_dummy_words.
10872 (find_minsym_and_objfile): Use strcmp, not STREQ.
10873 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10874 (arm_linux_call_dummy_words): Delete declaration.
10875 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10876 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10877 declarations.
10878 (LOWEST_PC): Delete.
10879
10880 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10881
10882 * maint.c (print_section_info): Do not prepend `0x' to filepos
10883 output, it will be handled by local_hex_string_custom.
10884
10885 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10886
10887 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10888 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10889 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10890
10891 2002-02-22 Jim Blandy <jimb@redhat.com>
10892
10893 Indicate that the bcache functions don't change the strings
10894 they're passed.
10895 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10896 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10897
10898 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10899
10900 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10901
10902 2002-02-21 Christopher Faylor <cgf@redhat.com>
10903
10904 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10905 find the complete path to a loaded DLL.
10906
10907 2002-02-21 Fred Fish <fnf@redhat.com>
10908
10909 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10910 that marks the end of the range of a function, enter a line number
10911 entry that has a line number of zero and a PC offset that matches
10912 the end of the function. This starts a range of PC's for which no
10913 line number information is known.
10914 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10915 PC's for which no line number info is found (line number is zero)
10916 then we didn't find any valid line information.
10917 * symtab.h: Document use of zero line number entry.
10918
10919 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10920
10921 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10922 (have_ptrace_getvrregs): Define for run time checks.
10923 (gdb_vrregset_t): New type for Altivec register handling.
10924 (fetch_register, store_register): Fetch/store altivec register
10925 when needed.
10926 (fetch_altivec_register, store_altivec_register): New functions.
10927 (supply_vrregset, fill_vrregset): New functions.
10928 (fetch_altivec_registers, store_altivec_registers): New functions.
10929 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10930 registers as well.
10931
10932 2002-02-21 Jiri Smid <smid@suse.cz>
10933
10934 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10935
10936 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10937
10938 * Makefile.in (armnbsd-nat.o): Update dependencies.
10939 * armnbsd-nat.c (supply_gregset): New function. Common code to
10940 supply the integer register set.
10941 (supply_fparegset): New function. Similar for FPA registers.
10942 (fetch_regs, fetch_fp_regs): Use them.
10943 (fetch_core_registers): Likewise.
10944 (fetch_elfcore_registers): New function.
10945 (arm_netbsd_elfcore_fns): New core-file type specification.
10946 (_initialize_arm_netbsd_nat): Register it.
10947
10948 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10949
10950 * armnbsd-nat.c: Include gdbcore.h.
10951 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10952 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10953 'void' to declaration, to shut up ARI.
10954 (fetch_core_registers): Make static. Rewrite using supply_register.
10955 (arm_netbsd_core_fns): New core-file type specification.
10956 (_initialize_arm_netbsd_nat): New function.
10957
10958 2002-02-21 Christopher Faylor <cgf@redhat.com>
10959
10960 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10961 value.
10962
10963 2002-02-20 Christopher Faylor <cgf@redhat.com>
10964
10965 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10966 fails.
10967
10968 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10969
10970 * jv-exp.y (parse_number): Change type of implicit longs
10971 to builtin_type_uint64.
10972
10973 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10974
10975 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10976 to be an integer instead of a `union wait'.
10977
10978 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10979
10980 * mips-linux-nat.c: Call the operating system GNU/Linux.
10981 * mips-linux-tdep.c: Likewise.
10982 * mips-tdep.c: Likewise.
10983
10984 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10985
10986 Fix PR gdb/265.
10987 * jv-exp.y (parse_number): Handle 64-bit integers.
10988
10989 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10990
10991 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10992 AC_STDC_HEADERS to AC_HEADER_STDC.
10993 * gdbserver/configure: Regenerated.
10994
10995 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10996
10997 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10998 is defined.
10999 * sparc-tdep.c (get_longjmp_target): Likewise.
11000
11001 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11002
11003 * News: Add news about ARM and Multi-arch. Mention the new target
11004 arm*-*-netbsd*.
11005
11006 2002-02-19 Jim Blandy <jimb@redhat.com>
11007
11008 * stabsread.c (error_type_complaint): Improve error message.
11009
11010 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11011
11012 * gdbserver/README: Update documentation.
11013 * gdbserver/configure.in: Update configury to match documentation.
11014 * gdbserver/Makefile.in: Likewise.
11015 * gdbserver/configure: Regenerated.
11016 * gdbserver/aclocal.m4: New file, generated by aclocal.
11017 * gdbserver/config.in: New file, generated by autoheader.
11018
11019 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11020
11021 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11022 armnbsd-nat.c.
11023
11024 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11025
11026 * arm-tdep.h (enum arm_float_model): New enum.
11027 (struct gdbarch_tdep): Add fp_model.
11028 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11029 up floating-point conversions until we know the floating-point model
11030 in use by the inferior. Don't complain about being unable to
11031 determine the ABI of the inferior when we don't have one.
11032 (arm_extract_return_value): Support different floating-point models.
11033 (arm_store_return_value): Likewise.
11034 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11035 ARM_FLOAT_SOFT.
11036 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11037
11038 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11039
11040 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11041 of ``current_gdbarch''.
11042
11043 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11044
11045 * armnbsd-nat.c : ANSIfy all function declarations.
11046 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11047 (fetch_inferior_registers): Re-implement in terms of above.
11048 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11049 (store_inferior_registers): Re-implement in terms of above.
11050
11051 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11052
11053 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11054 kernel.
11055 * arm-linux-tdep.c: Likewise.
11056 * config/arm/tm-linux.h: Likewise.
11057
11058 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11059
11060 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11061 * config/arm/nbsd.mt (TM_FILE): Delete.
11062 * config/arm/tm-nbsd.h: Delete.
11063
11064 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11065
11066 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11067 Initialize CALL_DUMMY_LENGTH.
11068
11069 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11070
11071 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11072 function.
11073 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11074 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11075 defines one thing and that is incorrect for this port.
11076 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11077
11078 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11079
11080 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11081
11082 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11083
11084 * win32-nat.c (display_selector): New function. Displays information
11085 about the information returned by GetThreadSelectorEntry API function.
11086 (display_selectors): New function. Displays the infomation of
11087 the selector given as argument, or of CS, DS ans FS selectors
11088 if no argument is given.
11089 ( _initialize_inftarg): Add "w32" as info prefix command.
11090 Add "info w32 selector" as command calling display_selectors.
11091
11092 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11093
11094 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11095 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11096 if not defined.
11097
11098 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11099
11100 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11101
11102 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11103
11104 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11105 (arm_fix_call_dummy): Call it.
11106 (arm_call_dummy_breakpoint_offset): Delete.
11107 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11108 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11109
11110 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11111
11112 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11113 Default to func_frame_chain_valid.
11114 * gdbarch.h, gdbarch.c: Re-generate.
11115 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11116
11117 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11118
11119 * ppc-linux-nat.c: Update copyright.
11120 (fetch_register, store_register): Add tid parameter, don't compute
11121 tid here.
11122 (fetch_ppc_registers, store_ppc_registers): Add tid
11123 parameter. Pass it along to callees.
11124 (fetch_inferior_registers, store_inferior_registers): Compute tid
11125 here, and pass it to calleed functions.
11126 (fill_gregset, supply_fpregset): Clean up formatting.
11127
11128 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11129
11130 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11131 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11132
11133 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11134
11135 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11136 * gdbarch.c gdbarch.h: Regenerate.
11137 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11138 function.
11139 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11140 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11141 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11142
11143 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11144 * arm-tdep.c (arm_get_longjmp_target): New function.
11145 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11146 this to a positive value register arm_get_longjmp_target as the
11147 longjmp handler.
11148 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11149 (arm_linux_init_abi): Set up longjmp description in tdep.
11150 * armnbsd-nat.c (get_longjmp_target): Delete.
11151 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11152 description in tdep.
11153 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11154 (get_longjmp_target): Delete declaration.
11155 (GET_LONGJMP_TARGET): Delete.
11156 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11157 (GET_LONGJMP_TARGET): Delete.
11158
11159 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11160
11161 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11162 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11163 of ``current_gdbarch''.
11164
11165 2002-02-17 Tom Tromey <tromey@redhat.com>
11166
11167 * cli/cli-cmds.c (compare_strings): New function.
11168 (complete_command): Only print each unique item once.
11169 * completer.h (complete_line): Declare.
11170 * completer.c (complete_line): New function.
11171 (line_completion_function): Use it.
11172
11173 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11174
11175 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11176 * gdbarch.h, gdbarch.c: Re-generate.
11177
11178 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11179
11180 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11181
11182 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11183
11184 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11185 * valops.c (value_arg_coerce): Don't take the address of a reference
11186 to convert an argument to a reference.
11187
11188 2002-02-15 Christopher Faylor <cgf@redhat.com>
11189
11190 * win32-nat.c (get_image_name): New function.
11191 (handle_load_dll): Use get_image_name function.
11192 (get_child_debug_event): Avoid registering debug events until possibly
11193 execed process is started.
11194 (child_create_inferior): Allow invocation via shell so that command
11195 line redirection, etc. works ok.
11196 (_initialize_inftarg): Add new command: "set shell" to control whether
11197 a shell is used to start a process.
11198
11199 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11200
11201 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11202 instead of find_register_by_number.
11203 (cannot_store_register): Likewise.
11204
11205 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11206
11207 * dwarf2read.c: Replace fprintf (stderr, ...) by
11208 fprintf_unfiltered (gdb_stderr, ...).
11209
11210 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11211
11212 * gdbserver/gdbserver.1: Document --attach.
11213
11214 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11215
11216 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11217 descriptions.
11218 * arm-tdep.c (arm_default_arm_le_breakpoint)
11219 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11220 (arm_default_thumb_be_breakpoint): New. Initialize them from
11221 traditional breakpoint defines.
11222 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11223 (arm_gdbarch_init): Initialize new breakpoint variables.
11224 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11225 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11226 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11227 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11228 code out to ...
11229 (arm_netbsd_init_abi_common): ... here; new function.
11230 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11231 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11232 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11233 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11234
11235 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11236
11237 * arm-tdep.h (enum arm_abi): New enum.
11238 (struct gdbarch_tdep): New structure.
11239 (LOWEST_PC): Provide a default.
11240 (arm_gdbarch_register_os_abi): Declare new function.
11241 * arm-tdep.c (arm_abi_names): New array.
11242 (process_note_abi_tag_sections): New function.
11243 (get_elfosabi): New function.
11244 (arm_gdbarch_register_os_abi): New function.
11245 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11246 support for that ABI has been built in, then call the appropriate
11247 configuration routine. Use gdbarch_num_regs() to get the number
11248 of registers.
11249 (arm_dump_tdep): New function.
11250 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11251 place-holder functions.
11252 (_initialize_arm_tdep): Register them.
11253 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11254
11255 * armnbsd-tdep.c: New file.
11256 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11257 * config/arm/nbsd.mt (TDEPFILES): Add it.
11258 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11259
11260 * armnbsd-nat.c: Include regcache.h.
11261 * Makefile.in (armnbsd-nat.o): Update dependency list.
11262
11263 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11264
11265 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11266
11267 * gdbserver/Makefile.in: Fix typos in target rules.
11268
11269 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11270
11271 Fix part of PR gdb/267.
11272 * linespec.c (find_methods): Handle constructors specially for now.
11273
11274 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11275
11276 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11277 handling.
11278 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11279 standard_coerce_float_to_double().
11280
11281 2002-02-14 Christopher Faylor <cgf@redhat.com>
11282
11283 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11284 GDBINIT_FILENAME.
11285
11286 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11287
11288 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11289 find_variant_by_name, because it confuses the multiarch
11290 framework. Return NULL if there isn't an architecture with the
11291 user supplied name, instead of forcing a different one without
11292 recording the change with the multiarch machinery.
11293 (find_variant_by_name): Delete.
11294
11295 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11296
11297 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11298 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11299
11300 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11301
11302 * stack.c (print_frame_info_base): When calling
11303 print_frame_info_listing_hook, set current_source_symtab.
11304
11305 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11306
11307 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11308 and remove unused $(INCLUDE_DIR).
11309 Add regcache.c to OBS.
11310 Add generated register protocol files to clean target.
11311 Update dependencies for new objects, obsolete old target code.
11312
11313 * gdbserver/linux-low.c: Remove all platform-specific code to
11314 new files. Remove various dead code. Update to use regcache
11315 functionality.
11316 * gdbserver/remote-utils.c (fromhex): Add return statement
11317 to quiet warning.
11318 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11319 constant.
11320 (input_interrupt): Add integer parameter to match prototype
11321 of a signal handler.
11322 (outreg): Use register_data ().
11323 (prepare_resume_reply): Use gdbserver_expedite_regs.
11324 * gdbserver/server.c (main): Dynamically allocate own_buf because
11325 PBUFSIZ is no longer constant. Use registers_to_string () and
11326 registers_from_string ().
11327 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11328 for error (), fatal (), and warning (). Update definition of
11329 PBUFSIZ to use regcache functionality. Add include guard.
11330 * gdbserver/utils.c (fatal): Add missing ``const''.
11331 (warning): New function.
11332
11333 * regformats/regdat.sh: Include "regcache.h" in generated files.
11334 Provide init_registers () function.
11335 * regformats/regdef.h: Add prototype for set_register_cache ().
11336 Add include guard.
11337
11338 * gdbserver/linux-arm-low.c: New file.
11339 * gdbserver/linux-i386-low.c: New file.
11340 * gdbserver/linux-ia64-low.c: New file.
11341 * gdbserver/linux-m68k-low.c: New file.
11342 * gdbserver/linux-mips-low.c: New file.
11343 * gdbserver/linux-ppc-low.c: New file.
11344 * gdbserver/linux-sh-low.c: New file.
11345
11346 * gdbserver/regcache.c: New file.
11347 * gdbserver/regcache.h: New file.
11348
11349 * gdbserver/low-linux.c: Removed obsolete file.
11350
11351 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11352
11353 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11354 * config/i386/linux.mt: Likewise.
11355 * config/ia64/linux.mt: Likewise.
11356 * config/m68k/linux.mh: Likewise.
11357 * config/powerpc/linux.mh: Likewise.
11358 * config/mips/linux.mt: Likewise.
11359
11360 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11361
11362 * config/i386/i386lynx.mh: Mark gdbserver variables
11363 as (currently) obsolete for this target.
11364 * config/i386/nbsd.mt: Likewise.
11365 * config/i386/nbsdelf.mt: Likewise.
11366 * config/m32r/m32r.mt: Likewise.
11367 * config/m68k/m68klynx.mh: Likewise.
11368 * config/m68k/nbsd.mt: Likewise.
11369 * config/m68k/sun3os4.mh: Likewise.
11370 * config/mips/vr5000.mt: Likewise.
11371 * config/ns32k/nbsd.mt: Likewise.
11372 * config/pa/hppabsd.mh: Likewise.
11373 * config/pa/hppaosf.mh: Likewise.
11374 * config/powerpc/nbsd.mt: Likewise.
11375 * config/rs6000/rs6000lynx.mh: Likewise.
11376 * config/s390/s390.mt: Likewise.
11377 * config/s390/s390x.mt: Likewise.
11378 * config/sparc/sparclynx.mh: Likewise.
11379 * config/sparc/sun4os4.mh: Likewise.
11380 * config/i386/x86-64linux.mt: Likewise.
11381 * config/sparc/linux.mh: Likewise.
11382
11383 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11384
11385 * configure.tgt: Configure gdbserver only for known working
11386 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11387 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11388 SUBDIRS if it is configured. Update comment for ${nativefile}.
11389 * configure: Regenerated.
11390
11391 2002-02-13 Michael Snyder <msnyder@redhat.com>
11392
11393 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11394
11395 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11396 (default_gcore_mach): Just return 0, work around a problem in bfd.
11397 (default_gcore_target): OK to return NULL if exec_bfd is null.
11398 (make_mem_sec): Use a cast, avoid a warning.
11399
11400 * procfs.c (find_memory_regions_callback): Use a cast instead of
11401 calling host_pointer_to_address (which complains if
11402 sizeof (host pointer) != sizeof (target pointer)).
11403 (procfs_make_note_section): Avoid overflow in psargs string.
11404
11405 * procfs.c (procfs_make_note_section): Make the default
11406 implementation return an error.
11407
11408 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11409
11410 * procfs.c (procfs_make_note_section): Provide a default definition
11411 (for alpha-dec-osf4.0f). Fix typos.
11412
11413 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11414
11415 * linux-proc.c: Add include of regcache.h.
11416 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11417
11418 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11419
11420 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11421 * memattr.c (create_mem_region): Disallow useless empty region.
11422 Regions are half-open intervals, so allow [A..B) [B..C) as
11423 non-overlapping.
11424
11425 2002-02-13 Michael Chastain <mec@shout.net>
11426
11427 * defs.h: Kill CONST_PTR.
11428 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11429 * c-lang.c (c_builtin_types): Likewise.
11430 * ch-lang.c (ch_builtin_types): Likewise.
11431 * f-lang.c (f_builtin_types): Likewise.
11432 * language.c (unknown_builtin_types): Likewise.
11433 * m2-lang.c (m2_builtin_types): Likewise.
11434 * p-lang.c (pascal_builtin_types): Likewise.
11435 * scm-lang.c (c_builtin_types): Likewise.
11436
11437 2002-02-13 Keith Seitz <keiths@redhat.com>
11438
11439 * arm-tdep.h (arm_get_next_pc): Add declaration.
11440
11441 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11442
11443 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11444 with other related struct-returning functions.
11445 (arm_extract_struct_value_address): New function.
11446 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11447 initialize float_format, double_format and long_double_format as
11448 appropriate to the endianness of the target.
11449 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11450 (arm_use_struct_convention): Delete declaration.
11451 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11452
11453 2002-02-13 Keith Seitz <keiths@redhat.com>
11454
11455 * defs.h (core_addr_to_string_nz): New function.
11456
11457 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11458
11459 Apply missing bits of 2002-01-15 patch.
11460 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11461 (fill_fpregset): Use i387_fill_fsave.
11462
11463 2002-02-12 Keith Seitz <keiths@redhat.com>
11464
11465 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11466 (core_addr_to_string_nz): New function.
11467
11468 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11469
11470 * arm-linux-nat.c: Really include arm-tdep.h.
11471 * config/arm/tm-linux.h (struct type, struct value): Declare.
11472
11473 2002-02-11 Michael Snyder <msnyder@redhat.com>
11474
11475 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11476 (gcore section): Ifdef for Solaris and Unixware only.
11477 (procfs_do_thread_registers): Unixware needs one lwpstatus
11478 per thread (not one prstatus or pstatus).
11479 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11480 not over all gdb threads. For unixware, call elfcore_write_pstatus
11481 once before iterating over threads.
11482
11483 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11484
11485 * arm-tdep.h: New file.
11486 * arm-tdep.c: Include arm-tdep.h.
11487 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11488 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11489 (arm_print_float_info, arm_register_type, convert_to_extended)
11490 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11491 (arm_extract_return_value, arm_register_name): Make static.
11492 (arm_software_single_step): Similarly. Fix types in declaration.
11493 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11494 (arm_store_return_value, arm_store_struct_return): New functions.
11495 (arm_gdbarch_init): Register the above functions. Also register
11496 call_dummy_start_offset, sizeof_call_dummy_words,
11497 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11498 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11499 max_register_virtual_size, register_size. Set up
11500 prologue_cache.saved_regs here, rather than ...
11501 (_initialize_arm_tdep): ... here.
11502 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11503 declarations.
11504 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11505 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11506 (arm_print_float_info, arm_register_type, convert_to_extended)
11507 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11508 (arm_extract_return_value, arm_register_name): Delete declarations.
11509 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11510 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11511 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11512 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11513 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11514 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11515 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11516 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11517 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11518 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11519 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11520 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11521 interface.
11522 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11523 * remote-rdi.c remote-rdp.c: Likewise.
11524 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11525 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11526 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11527 definition.
11528
11529 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11530 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11531 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11532 from non-ARM_ prefixed definitions.
11533 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11534 all uses of above.
11535 * remote-rdi.c remote-rdp.c: Likewise.
11536 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11537
11538 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11539
11540 * arm-tdep.c (arm_frameless_function_invocation)
11541 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11542 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11543 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11544 (arm_pop_frame, arm_get_next_pc): Make static.
11545 (arm_gdbarch_init): Register above in gdbarch structure.
11546 (arm_read_fp): Renamed from arm_target_read_fp.
11547 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11548 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11549 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11550 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11551 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11552 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11553 (arm_pc_is_thumb_dummy): Delete declarations.
11554 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11555 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11556 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11557 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11558
11559 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11560
11561 * symtab.c (compare_search_syms): New function.
11562 (sort_search_symbols): New function.
11563 (search_symbols): Sort symbols after searching rather than
11564 before.
11565
11566 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11567
11568 * NEWS: Linux -> GNU/Linux.
11569
11570 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11571
11572 * gdbarch.sh: For for level one methods, disallow a definition
11573 when partially multi-arched. Add comments explaining rationale.
11574 * gdbarch.h: Re-generate.
11575
11576 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11577
11578 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11579 multi-arch partial.
11580
11581 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11582
11583 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11584 field. Use diff -u.
11585 * gdbarch.c: Re-generate.
11586
11587 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11588
11589 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11590 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11591 partial.
11592
11593 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11594
11595 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11596 multi-arch partial.
11597 (PUSH_ARGUMENTS): Switch to using predefault.
11598 * gdbarch.c: Regenerate.
11599
11600 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11601
11602 * valops.c (PUSH_ARGUMENTS): Delete definition.
11603 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11604 partial. Default to default_push_arguments.
11605 * gdbarch.h, gdbarch.c: Regenerate.
11606
11607 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11608
11609 * defs.h (throw_exception): Rename return_to_top_level. Update
11610 comments.
11611 * utils.c (error_stream, internal_verror, quit): Ditto.
11612 * top.c (throw_exception, catcher): Ditto.
11613 * sparclet-rom.c (sparclet_load): Ditto.
11614 * remote.c (interrupt_query, minitelnet): Ditto.
11615 * remote-sds.c (interrupt_query): Ditto.
11616 * remote-mips.c (mips_error, mips_kill): Ditto.
11617 * ocd.c (interrupt_query): Ditto.
11618 * monitor.c (monitor_interrupt_query): Ditto.
11619 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11620 * target.h: Update comment.
11621
11622 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11623
11624 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11625
11626 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11627 default_double_format.
11628 * gdbarch.h, gdbarch.c: Re-generate.
11629 * findvar.c (floatformat_unknown): Delete variable definition.
11630 * doublest.h (floatformat_unknown): Delete variable declaration.
11631
11632 2002-02-09 Jim Blandy <jimb@redhat.com>
11633
11634 * stabsread.c (read_type): Add code to parse Sun's syntax for
11635 prototyped function types.
11636
11637 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11638
11639 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11640 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11641
11642 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11643
11644 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11645 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11646 now _initialize_xcoffsolib gets called again and overrides the
11647 commands from solib.c in a native configuration.
11648
11649 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11650
11651 * doublest.c (store_typed_floating): Don't try to return a value.
11652 Fixes PR gdb/290.
11653
11654 2002-02-08 Jim Blandy <jimb@redhat.com>
11655
11656 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11657 is prototyped and has no arguments, print its argument list as
11658 `(void)'.
11659
11660 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11661
11662 * MAINTAINERS (write-after-approval): Add myself.
11663 (paper-trail): I've escaped!
11664
11665 2002-02-08 Christopher Faylor <cgf@redhat.com>
11666
11667 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11668 changes.
11669 (_initialize_check_for_gdb_ini): Ditto.
11670
11671 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11672
11673 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11674 xaprintf -> xasprintf.
11675
11676 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11677
11678 * win32-nat.c: Remove use of printf and sprintf functions.
11679
11680 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11681
11682 * arm-tdep.c (arm_frame_chain_valid): Make static.
11683 (arm_push_arguments): Likewise.
11684 (arm_gdbarch_init): New function.
11685 (_initialize_arm_tdep): Call it.
11686 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11687 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11688 (FRAME_CHAIN_VALID): Delete.
11689 (arm_frame_chain_valid): Delete declaration.
11690 (PUSH_ARGUMENTS): Delete.
11691 (arm_push_arguments): Delete declaration.
11692 (CALL_DUMMY_P): Delete.
11693
11694 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11695 Corinna Vinschen <vinschen@redhat.com>
11696
11697 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11698 on builtin float types.
11699
11700 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11701
11702 * utils.c: Include <curses.h> before "bfd.h".
11703 * tui/tui-hooks.c: Likewise.
11704 * tui/tui.c: Likewise.
11705 * tui/tuiCommand.c: Likewise.
11706 * tui/tuiData.c: Likewise.
11707 * tui/tuiDataWin.c: Likewise.
11708 * tui/tuiDisassem.c: Likewise.
11709 * tui/tuiGeneralWin.c: Likewise.
11710 * tui/tuiIO.c: Likewise.
11711 * tui/tuiLayout.c: Likewise.
11712 * tui/tuiRegs.c: Likewise.
11713 * tui/tuiSource.c: Likewise.
11714 * tui/tuiSourceWin.c: Likewise.
11715 * tui/tuiStack.c: Likewise.
11716 * tui/tuiWin.c: Likewise.
11717
11718 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11719
11720 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11721 to include space for pseudoregs as well. Update loops accordingly.
11722 (sh_fp_frame_init_saved_regs): Ditto.
11723 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11724
11725 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11726
11727 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11728 Add Richard Earnshaw to Arm maintainers.
11729
11730 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11731
11732 * defs.h (warning_begin): Delete declaration.
11733
11734 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11735 Delete macro.
11736
11737 2002-02-07 Michael Snyder <msnyder@redhat.com>
11738
11739 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11740 Logic bug, remove misplaced else.
11741
11742 2002-02-07 Klee Dienes <klee@apple.com>
11743
11744 * fork-inferior.c (fork_inferior): Add '!' to the list of
11745 characters that need to be quoted when building a string for the
11746 shell. Quote '!' specifically with a backslash, since CSH chokes
11747 when trying to evaluate "str!str".
11748
11749 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11750
11751 * rdi-share/host.h: Only provide a typedef for bool if it is not
11752 defined.
11753
11754 2002-02-04 Michael Snyder <msnyder@redhat.com>
11755
11756 * breakpoint.h (enum bptype): Add new overlay event bp type.
11757 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11758
11759 * breakpoint.c (create_internal_breakpoint): New function.
11760 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11761 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11762 (create_thread_event_breakpoint): Ditto.
11763 (create_solib_event_breakpoint): Ditto.
11764 (create_overlay_event_breakpoint): New function.
11765 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11766 (update_breakpoints_after_exec): Delete and re-initialize
11767 overlay event breakpoints after an exec. Add FIXME comment
11768 about longjmp breakpoint.
11769 (print_it_typical): Ignore overlay event breakpoints.
11770 (print_one_breakpoint): Ditto.
11771 (mention): Ditto.
11772 (bpstat_what): Do not stop for overlay event breakpoints.
11773 (delete_breakpoint): Don't delete overlay event breakpoints.
11774 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11775 (breakpoint_re_set): Re-create overlay event breakpoint.
11776
11777 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11778 (overlay_manual_command): Disable overlay breakpoints.
11779 (overlay_off_command): Disable overlay breakpoints.
11780
11781 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11782
11783 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11784 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11785 to here from config/tm-arm.h.
11786 (coff_sym_is_thumb): Make static.
11787 (arm_elf_make_msymbol_special): New function.
11788 (arm_coff_make_msymbol_special): New function.
11789 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11790 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11791 (coff_sym_is_thumb): Delete declaration.
11792 (arm_elf_make_msymbol_special): Declare.
11793 (arm_coff_make_msymbol_special): Declare.
11794 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11795 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11796
11797 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11798
11799 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11800
11801 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11802
11803 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11804 * gdbarch.c gdbarch.h: Regenerate.
11805 * arch-utils.c (default_print_float_info): New function.
11806 * arch-utils.h (default_print_float_info): Prototype it.
11807 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11808 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11809 (PRINT_FLOAT_INFO): Document it.
11810
11811 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11812 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11813 (PRINT_FLOAT_INFO): Define.
11814
11815 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11816
11817 * win32-nat.c (_initialize_check_for_gdb_ini):
11818 Add typecast to sprintf argument to suppress a warning.
11819
11820 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11821
11822 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11823 to allow easier handling of pass state.
11824 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11825 that gives exception name and address.
11826 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11827 and set last_sig value to ourstatus->value.sig. Some missing
11828 exceptions added.
11829 (child_continue): Correctly report continue_status.
11830 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11831 TARGET_SIGNAL_0 (new default value).
11832 (child_resume): consider sig argument passed to decide if
11833 the exception should be passed to debuggee or not.
11834
11835 2002-02-05 Michael Snyder <msnyder@redhat.com>
11836
11837 * regcache.c (fetch_register): Call target_fetch_register
11838 only if we don't call FETCH_PSEUDO_REGISTER.
11839 (store_register): Call target_store_register only if we
11840 don't call STORE_PSEUDO_REGISTER.
11841
11842 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11843
11844 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11845 ELF_MAKE_MSYMBOL_SPECIAL.
11846 * gdbarch.c, gdbarch.h: Regenerate.
11847 * arch-utils.c (default_make_msymbol_special): New function.
11848 * arch-utils.h (default_make_msymbol_special): Export.
11849 * elfread.c (elf_symtab_read): Compile use of
11850 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11851 multiarched.
11852 * coffread.c (coff_symtab_read): Ditto, for
11853 COFF_MAKE_MSYMBOL_SPECIAL.
11854
11855 2002-02-05 Jim Blandy <jimb@redhat.com>
11856
11857 * solib-svr4.c (svr4_truncate_ptr): New function.
11858 (svr4_relocate_section_addresses): Do the address arithmetic with
11859 the appropriate truncation for target addresses, even when
11860 CORE_ADDR is larger than a target address.
11861
11862 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11863
11864 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11865 to (int *).
11866
11867 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11868
11869 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11870 code.
11871
11872 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11873
11874 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11875
11876 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11877
11878 * gdbserver/linux-low.c: Remove unused include files.
11879
11880 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11881
11882 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11883 (read_inferior_memory): Use it.
11884 (write_inferior_memory): Likewise.
11885
11886 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11887
11888 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11889 grubbing through sys_errlist.
11890
11891 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11892
11893 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11894
11895 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11896 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11897
11898 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11899
11900 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11901 (do_sfunc, set_cmd_sfunc): New functions.
11902
11903 * command.h (struct cmd_list_element): Add field func.
11904 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11905 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11906 * cli/cli-decode.h: Ditto.
11907
11908 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11909 (help_all, help_cmd_list): Ditto.
11910 (find_cmd, complete_on_cmdlist): Ditto.
11911 * top.c (execute_command): Ditto.
11912
11913 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11914 function.sfunc.
11915
11916 * infcmd.c (notice_args_read): Fix function signature.
11917
11918 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11919 * cli/cli-decode.c (add_set_cmd): Ditto.
11920 * utils.c (initialize_utils): Ditto.
11921 * maint.c (_initialize_maint_cmds): Ditto.
11922 * infrun.c (_initialize_infrun): Ditto.
11923 * demangle.c (_initialize_demangler): Ditto.
11924 * remote.c (add_packet_config_cmd): Ditto.
11925 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11926 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11927 * proc-api.c (_initialize_proc_api): Ditto.
11928 * kod.c (_initialize_kod): Ditto.
11929 * valprint.c (_initialize_valprint): Ditto.
11930 * top.c (init_main): Ditto.
11931 * infcmd.c (_initialize_infcmd): Ditto.
11932 * corefile.c (_initialize_core): Ditto.
11933 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11934 * arch-utils.c (initialize_current_architecture): Ditto.
11935 (_initialize_gdbarch_utils): Ditto.
11936 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11937
11938 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11939 * wince.c (_initialize_inftarg): Ditto.
11940 * symfile.c (_initialize_symfile): Ditto.
11941 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11942 * language.c (_initialize_language): Ditto.
11943 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11944
11945 2002-02-04 Michael Snyder <msnyder@redhat.com>
11946
11947 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11948
11949 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11950
11951 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11952 Add rules for building the register data files.
11953
11954 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11955
11956 * regformats/regdat.sh: Add braces to the definition of
11957 expedite_regs_${arch}.
11958
11959 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11960
11961 * regformats/regdef.h (struct reg): Add comment describing the
11962 requirements for offset and size fields.
11963
11964 2002-02-04 Andreas Schwab <schwab@suse.de>
11965
11966 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11967 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11968
11969 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11970
11971 * gdbarch.sh (copyright): Update years in generated header.
11972 (SMASH_TEXT_ADDRESS): Add rule.
11973 * gdbarch.h, gdbarch.c: Re-generate.
11974 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11975 * dbxread.c: Likewise.
11976 * dwarfread.c: Likewise.
11977 * elfread.c: Likewise.
11978 * somread.c: Likewise.
11979
11980 * arm-tdep.c (arm_smash_text_address): New function.
11981 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11982
11983 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11984
11985 Add support for hardware watchpoints on win32 native.
11986 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11987 CONTEXT_DEBUG_REGISTERS.
11988 (dr variable): New variable. Static array containing a local copy
11989 of debug registers.
11990 (debug_registers_changed): New variable. Reflects when debug registers
11991 are changed and need to be written to inferior.
11992 (debug_registers_used): New variable. Reflects when any debug register
11993 was set, used when new threads are created.
11994 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11995 i386-nat code.
11996 (thread_rec): Set dr array if id is the thread of current_event .
11997 (child_continue, child_resume): Change the debug registers for all
11998 threads if debug_registers_changed.
11999 (child_add_thread): Change the debug registers if debug_registers_used.
12000 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12001 Link nm.h to new nm-cygwin.h file.
12002 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12003 of hardware registers.
12004
12005 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12006
12007 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12008 Restore behavour broken by 2002-01-20 Andrew Cagney
12009 <ac131313@redhat.com> IEEE_FLOAT removal.
12010
12011 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12012
12013 * c-valprint.c (c_val_print): Pass a proper valaddr to
12014 cp_print_class_method.
12015 * valops.c (search_struct_method): If there is only one method
12016 and args is NULL, return that method.
12017
12018 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12019
12020 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12021 accessing tag_name directly.
12022
12023 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12024
12025 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12026 of accessing tag_name directly.
12027
12028 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12029
12030 PR gdb/280
12031 * gdbtypes.c (replace_type): New function.
12032 * gdbtypes.h (replace_type): Add prototype.
12033 * stabsread.c (read_type): Use replace_type.
12034
12035 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12036
12037 * Makefile.in (memattr.o): Add missing dependencies rule.
12038
12039 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12040
12041 * breakpoint.c (break_at_finish_command): Really export.
12042 (break_at_finish_at_depth_command): Ditto.
12043 (tbreak_at_finish_command): Ditto.
12044 * hppa-tdep.c: Include completer.h.
12045 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12046 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12047
12048 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12049
12050 * utils.c (do_write): New function.
12051 (error_stream): Rewrite combining the code from error_begin and
12052 verror.
12053 (verror): Rewrite using error_stream.
12054 (error_begin): Delete function.
12055
12056 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12057
12058 * utils.c (error_begin): Make static.
12059 * defs.h (error_begin): Delete declaration.
12060
12061 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12062 (decode_line_1): Use cplusplus_error instead of error_begin,
12063 cplusplus_hint and return_to_top_level.
12064 * coffread.c (coff_symfile_read): Use error instead of error_begin
12065 and return_to_top_level.
12066 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12067
12068 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12069
12070 * language.h (type_error, range_error): Make string parameter
12071 constant.
12072 * language.c (warning_pre_print): Delete extern declaration.
12073 * dwarfread.c (warning_pre_print): Ditto.
12074 * language.c (type_error, range_error): Rewrite to use verror and
12075 vwarning instead of warning_begin.
12076
12077 2002-02-01 Michael Snyder <msnyder@redhat.com>
12078
12079 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12080 (set_ignore_count): Move misplaced comment back where it belongs.
12081
12082 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12083
12084 * command.h (NO_FUNCTION): Delete macro.
12085 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12086 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12087 * tracepoint.c (_initialize_tracepoint): Ditto.
12088 * cli/cli-decode.c (add_set_cmd): Ditto.
12089 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12090
12091 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12092
12093 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12094 Update ``this'' pointer when calling virtual functions.
12095
12096 2002-02-01 Michael Snyder <msnyder@redhat.com>
12097
12098 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12099 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12100
12101 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12102
12103 * regformats/reg-arm.dat: New file.
12104 * regformats/reg-i386.dat: New file.
12105 * regformats/reg-ia64.dat: New file.
12106 * regformats/reg-m68k.dat: New file.
12107 * regformats/reg-mips.dat: New file.
12108 * regformats/reg-ppc.dat: New file.
12109 * regformats/reg-sh.dat: New file.
12110 * regformats/regdef.h: New file.
12111 * regformats/regdat.sh: New file.
12112
12113 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12114
12115 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12116 (arm_frame_args_address, arm_frame_locals_address): New functions.
12117 (arm_frame_num_args): New function.
12118 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12119 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12120 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12121
12122 2002-01-31 Michael Snyder <msnyder@redhat.com>
12123
12124 * breakpoint.c (break_at_finish_command): Export.
12125 (break_at_finish_at_depth_command): Export.
12126 (tbreak_at_finish_command): Export.
12127 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12128 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12129 "txbreak" commands, which are HPPA specific.
12130
12131 * printcmd.c (disassemble_command): Remove an ancient
12132 artifact of an old merge.
12133
12134 * symfile.h (enum overlay_debugging_state):
12135 Define enum constant values for overlay mode.
12136 * symfile.c (overlay_debugging): Use enums instead of literals.
12137 (overlay_is_mapped, overlay_auto_command,
12138 overlay_manual_command): Ditto.
12139
12140 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12141 breakpoint_here_p, breakpoint_inserted_here_p,
12142 breakpoint_thread_match, bpstat_stop_status,
12143 describe_other_breakpoints, check_duplicates, clear_command):
12144 Coding standard fixes.
12145
12146 * target.c (target_xfer_memory): Add spaces, coding standard.
12147 (do_xfer_memory): Add missing line to trust-readonly
12148 code: check bfd SEC_READONLY flag for section.
12149
12150 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12151
12152 * PROBLEMS: Fix typo, 5.1->5.1.1.
12153
12154 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12155
12156 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12157 data symbols, since we search based on textlow and texthigh.
12158 (find_pc_sect_symtab): Likewise.
12159
12160 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12161
12162 * defs.h (vwarning): Declare.
12163 * utils.c (vwarning): New function.
12164 (warning): Call vwarning.
12165 (warning_begin): Delete function.
12166
12167 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12168 the warning message.
12169 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12170 warning_begin.
12171
12172 2002-01-30 Michael Snyder <msnyder@redhat.com>
12173
12174 * NEWS: Mention "set trust-readonly-sections" command.
12175 Mention generate-core-file command.
12176
12177 2002-01-15 Michael Snyder <msnyder@redhat.com>
12178
12179 * target.c: New command, "set trust-readonly-sections on".
12180 (do_xfer_memory): Honor the suggestion to trust readonly sections
12181 by reading them from the object file instead of from the target.
12182 (initialize_targets): Register command "set trust-readonly-sections".
12183
12184 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12185
12186 * parse.c (target_map_name_to_register): Simplify, search regs and
12187 pseudo-regs using a single loop.
12188
12189 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12190
12191 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12192
12193 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12194
12195 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12196 * config/i386/i386v42mp.mh: Add i387-nat.o .
12197 * i386v4-nat.c: Include i387-nat.h.
12198 (supply_fpregset): Use i387_supply_fsave.
12199 (fill_fpregset): Use i387_fill_fsave.
12200
12201 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12202
12203 * arm-tdep.c (arm_call_dummy_words): Define.
12204 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12205 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12206 (CALL_DUMMY_WORDS): Define.
12207 (arm_call_dummy_words): Declare.
12208 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12209 (arm_linux_call_dummy_words): Declare.
12210
12211 2002-01-30 Andreas Schwab <schwab@suse.de>
12212
12213 * m68klinux-nat.c: Fix last change to use regcache_collect
12214 instead of referencing registers[] directly.
12215
12216 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12217
12218 * parse.c (target_map_name_to_register): Delete code wrapped in
12219 #ifdef REGISTER_NAME_ALIAS_HOOK.
12220
12221 2002-01-28 Michael Snyder <msnyder@redhat.com>
12222
12223 * regcache.c (legacy_read_register_gen): Need to be able to
12224 read pseudo-register as well as real register.
12225 (legacy_write_register_gen): Ditto.
12226
12227 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12228
12229 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12230 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12231 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12232 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12233 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12234 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12235 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12236 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12237 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12238 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12239 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12240 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12241 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12242 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12243 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12244 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12245 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12246 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12247 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12248 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12249
12250 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12251
12252 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12253 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12254 (initialize_current_architecture): Update target_byte_order using
12255 information from BFD.
12256 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12257 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12258
12259 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12260
12261 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12262 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12263
12264 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12265 #ifdef INVALID_FLOAT.
12266 * infcmd.c (do_registers_info): Ditto.
12267 * values.c (unpack_double): Ditto. Add comment.
12268
12269 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12270 already commented out.
12271
12272 2002-01-26 Andreas Schwab <schwab@suse.de>
12273
12274 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12275 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12276 registers and add support for PTRACE_GETREGS.
12277
12278 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12279
12280 GDB 5.1.1 released from 5.1 branch.
12281 * NEWS: Add 5.1.1 news.
12282 * README: Sync with 5.1 branch.
12283
12284 2002-01-23 Fred Fish <fnf@redhat.com>
12285
12286 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12287 stabstring on initial malloc. Reallocing will copy it for us,
12288 if necessary.
12289
12290 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12291
12292 * Makefile.in (hpread_h): Delete.
12293 (HFILES_NO_SRCDIR): Remove hpread.h.
12294 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12295 (hpread.o): Update dependencies.
12296 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12297
12298 * hp-psymtab-read.c: Remove file.
12299 * hp-symtab-read.c: Remove file.
12300 * hpread.h: Remove file.
12301
12302 * hpread.c: Merge all contents of hp-psymtab-read.c,
12303 hp-symtab-read.c and hpread.h into this file, as it was prior to
12304 January 1999.
12305
12306 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12307 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12308 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12309 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12310
12311 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12312
12313 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12314 fill_gregset): Call gdbarch_tdep() just once, assign result to
12315 variable and use that, instead of calling the function several
12316 times.
12317
12318 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12319
12320 * configure.host: Accept sparcv9 as alias for sparc64.
12321 * configure.tgt: Likewise.
12322
12323 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12324
12325 * solib-aix5.c (build_so_list_from_mapfile)
12326 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12327 arguments is not reversed.
12328 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12329 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12330
12331 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12332
12333 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12334 modified version of obsolete sh_fetch_pseudo_register.
12335 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12336 (sh4_register_read): New function.
12337 (sh_pseudo_register_write): New function. Renamed and modified
12338 version of obsolete sh_store_pseudo_register.
12339 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12340 (sh4_register_write): New function.
12341 (sh_gdbarch_init): Remove setting of gdbarch function
12342 fetch_pseudo_register and store_pseudo_register. Remove setting of
12343 register_convert_to_raw, register_convert_to_virtual,
12344 register_convertible.
12345 (sh_sh4_register_convertible): Delete. No longer needed. All is
12346 taken care by architecture specific functions
12347 register_read/register_write.
12348 (sh_sh4_register_convert_to_virtual): Make static.
12349 (sh_sh4_register_convert_to_raw): Ditto.
12350
12351 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12352
12353 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12354 (floatformat_is_nan, floatformat_mantissa): Ditto.
12355
12356 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12357 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12358 builtin_type_ieee_double_little,
12359 builtin_type_ieee_double_littlebyte_bigword,
12360 builtin_type_m68881_ext, builtin_type_i960_ext,
12361 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12362 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12363 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12364 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12365
12366 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12367
12368 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12369 parameter. Set frameless flag if it exists and depended of
12370 whether the scanned function is frameless or not.
12371 (xstormy16_skip_prologue): If function is frameless, return
12372 result of xstormy16_scan_prologue().
12373 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12374 call.
12375
12376 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12377
12378 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12379 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12380 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12381 sh_sh4_register_byte, sh_sh4_register_raw_size,
12382 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12383 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12384 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12385 sh_store_pseudo_register, sh_do_pseudo_register): Call
12386 gdbarch_tdep() just once, assign result to variable and use that,
12387 instead of calling the function several times.
12388
12389 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12390
12391 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12392 macros instead of LAST_FPU_CTRL_REGNUM.
12393 (store_register): Likewise.
12394
12395 2002-01-21 Jim Blandy <jimb@redhat.com>
12396
12397 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12398 is up-to-date before running the program, not just when a program
12399 exits.
12400
12401 2002-01-21 Fred Fish <fnf@redhat.com>
12402
12403 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12404 when we have found all instructions we are looking for.
12405
12406 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12407
12408 * arm-tdep.c (arm_register_name): New function.
12409 (arm_registers_names): Make static.
12410 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12411 (arm_register_name): Declare.
12412 (REGISTER_NAME): Use it.
12413
12414 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12415 Kevin Buettner <kevinb@redhat.com>
12416
12417 Convert arm targets to new FRAME interface.
12418 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12419 (arm_frame_find_save_regs): Delete.
12420 (arm_frame_init_saved_regs): New.
12421 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12422 Allocate extra_info as required. Convert all uses of fsr.regs
12423 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12424 to use extra_info.
12425 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12426 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12427 (check_prologue_cache, save_prologue_cache): Likewise.
12428 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12429 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12430 (FRAME_FIND_SAVED_REGS): Delete.
12431 (arm_frame_find_saved_regs): Delete prototype.
12432 (arm_frame_init_saved_regs): New prototype.
12433 (FRAME_INIT_SAVED_REGS): Define.
12434
12435 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12436
12437 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12438
12439 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12440
12441 From Jeff Law <law@redhat.com>:
12442 * infttrace.c: Include <sys/pstat.h>.
12443 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12444 exec file if the ttrace equivalent fails.
12445
12446 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12447
12448 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12449 (closeLogFile): Ditto.
12450
12451 2002-01-20 Michael Chastain <mec@shout.net>
12452
12453 * top.c (print_gdb_version): Bump copyright year to 2002.
12454
12455 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12456
12457 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12458 Zannoni and Eli Zaretskii.
12459
12460 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12461
12462 * buildsym.c: Update copyright years.
12463 * c-typeprint.c: Likewise.
12464 * dwarf2read.c: Likewise.
12465 * f-typeprint.c: Likewise.
12466 * gdbtypes.c: Likewise.
12467 * gdbtypes.h: Likewise.
12468 * hp-symtab-read.c: Likewise.
12469 * hpread.c: Likewise.
12470 * mdebugread.c: Likewise.
12471 * p-typeprint.c: Likewise.
12472
12473 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12474
12475 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12476 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12477 byte-order selectable.
12478 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12479 * arch-utils.c: Ditto.
12480 (set_endian): Ditto.
12481 (set_endian_from_file): Ditto.
12482 * gdbserver/low-sim.c (create_inferior): Ditto.
12483 * gdbarch.sh: Ditto.
12484 * gdbarch.h: Re-generate.
12485 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12486 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12487 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12488 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12489 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12490 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12491 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12492 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12493 macro definition.
12494 * config/mips/tm-wince.h: Remove #undef of macro
12495 TARGET_BYTE_ORDER_SELECTABLE.
12496 * config/sh/tm-wince.h: Ditto.
12497
12498 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12499
12500 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12501 member function fields. Add accessor macro
12502 TYPE_FN_FIELD_ARTIFICIAL.
12503 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12504 * c-typeprint.c (c_type_print_base): Skip artificial member
12505 functions.
12506
12507 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12508
12509 * f-typeprint.c: Delete unused function f_type_print_args.
12510 * p-typeprint.c: Delete unused function pascal_type_print_args.
12511
12512 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12513
12514 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12515 comment. Add ``artificial'' to ``union field_location''.
12516
12517 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12518
12519 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12520 * mdebugread.c (parse_symbol): Likewise.
12521 * stabsread.c (define_symbol): Likewise.
12522 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12523 initializing TYPE_FIELD_BITPOS to n (obsolete).
12524 (hpread_doc_function_type): Likewise.
12525 * hpread.c (hpread_function_type): Likewise.
12526
12527 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12528
12529 * configure.in (host_makefile_frag): Only require a host makefile
12530 fragment when a native build.
12531 * configure: Re-generate.
12532
12533 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12534
12535 * doublest.h (floatformat_from_type): Declare.
12536 * doublest.c (floatformat_from_type): New function.
12537 (convert_typed_floating): Use.
12538
12539 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12540 call to function floatformat_from_type.
12541
12542 * gdbarch.sh (IEEE_FLOAT): Delete.
12543 * gdbarch.h, gdbarch.c: Re-generate.
12544 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12545 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12546 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12547 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12548 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12549 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12550 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12551 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12552 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12553 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12554 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12555 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12556
12557 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12558 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12559 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12560 * sh-tdep.c (sh_gdbarch_init): Ditto.
12561 * mips-tdep.c (mips_gdbarch_init): Ditto.
12562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12563 * cris-tdep.c (cris_gdbarch_init): Ditto.
12564
12565 2002-01-20 Jiri Smid <smid@suse.cz>
12566
12567 * configure.host, configure.tgt: Support x86-64.
12568 * NEWS: Note new target x86-64.
12569
12570 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12571 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12572 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12573 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12574 x86-64-linux-nat.o): Fix dependencies.
12575
12576 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12577
12578 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12579 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12580 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12581 * config/sparc/xm-sun4os4.h: Delete file.
12582 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12583
12584 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12585
12586 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12587 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12588 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12589 * config/i386/i386lynx.mh (XM_FILE): Delete.
12590 * config/rs6000/xm-rs6000ly.h: Delete file.
12591 * config/sparc/xm-sparclynx.h: Delete file.
12592 * config/m68k/xm-m68klynx.h: Delete file.
12593 * config/i386/xm-i386lynx.h: Delete file.
12594 * config/xm-lynx.h: Delete file.
12595 * config/djgpp/fnchange.lst: Update.
12596
12597 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12598
12599 * alpha-tdep.c (alpha_register_byte): New function.
12600 (alpha_register_raw_size): Ditto.
12601 (alpha_register_virtual_size): Ditto.
12602 (alpha_skip_prologue_internal): Renamed from
12603 alpha_skip_prologue.
12604 (alpha_skip_prologue): New version that calls
12605 alpha_skip_prologue_internal.
12606 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12607 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12608 second argument from alpha_skip_prologue.
12609 (REGISTER_BYTE): Use alpha_register_byte.
12610 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12611 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12612 (FRAMELESS_FUNCTION_INVOCATION): Use
12613 generic_frameless_function_invocation_not.
12614 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12615 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12616
12617 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12618
12619 * config/mips/xm-news-mips.h: Delete file.
12620 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12621
12622 * config/m88k/xm-m88k.h: Delete file.
12623 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12624 * config/m88k/xm-delta88v4.h: Ditto.
12625 * config/m88k/xm-delta88.h: Ditto.
12626
12627 * config/alpha/xm-fbsd.h: Delete file.
12628 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12629
12630 * config/sparc/xm-sparc.h: Delete file.
12631 * Makefile.in (xm-sun4os4.h): Delete dependency.
12632 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12633 * config/sparc/xm-sun4os4.h: Ditto.
12634 * config/sparc/xm-linux.h: Ditto.
12635
12636 * config/i386/xm-windows.h: Delete file.
12637
12638 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12639
12640 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12641 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12642
12643 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12644
12645 * alpha-tdep.c (alpha_call_dummy_words): New.
12646 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12647 (CALL_DUMMY_P): Define.
12648 (CALL_DUMMY_WORDS): Define.
12649 (SIZEOF_CALL_DUMMY_WORDS): Define.
12650
12651 2002-01-19 Per Bothner <per@bothner.com>
12652
12653 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12654 isn't NULL, which can happen with some gcj-3.x-produced code.
12655
12656 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12657
12658 * alpha-tdep.c (alpha_register_virtual_type): New function.
12659 (alpha_init_frame_pc_first): Ditto.
12660 (alpha_fix_call_dummy): Ditto.
12661 (alpha_store_struct_return): Ditto.
12662 (alpha_extract_struct_value_address): Ditto.
12663 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12664 alpha_register_virtual_type.
12665 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12666 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12667 alpha_extract_struct_value_address.
12668 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12669 (INIT_FRAME_PC): Use init_frame_pc_noop.
12670 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12671
12672 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12673
12674 * i386gnu-nat.c: Include "i386-tdep.h".
12675 (fetch_fpregs): Simplify code dealing with uninitialized floating
12676 point states such that it doesn't require FP7_REGNUM.
12677
12678 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12679
12680 * alpha-tdep.c (frame_extra_info): New.
12681 (alpha_find_saved_regs): Make static. Use
12682 frame->extra_info.
12683 (alpha_frame_init_saved_regs): New function.
12684 (alpha_frame_saved_pc): Use frame->extra_info.
12685 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12686 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12687 (init_extra_frame_info): Rename to...
12688 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12689 (alpha_print_extra_frame_info): New function.
12690 (alpha_frame_locals_address): Ditto.
12691 (alpha_frame_args_address): Ditto.
12692 (alpha_pop_frame): Use frame->extra_info.
12693 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12694 alpha_frame_args_address.
12695 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12696 (alpha_find_saved_regs): Remove prototype.
12697 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12698 (EXTRA_FRAME_INFO): Remove.
12699 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12700 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12701
12702 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12703
12704 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12705 (alpha_cannot_fetch_register): Ditto.
12706 (alpha_cannot_store_register): Ditto.
12707 (alpha_register_convertible): Ditto.
12708 (alpha_use_struct_convention): Ditto.
12709 * config/alpha/tm-alpha.h: Update copyright years.
12710 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12711 (INNER_THAN): Use core_addr_lessthan.
12712 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12713 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12714 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12715 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12716 (FRAME_CHAIN): Remove unnecessary cast.
12717
12718 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12719
12720 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12721 obsolete.
12722
12723 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12724
12725 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12726 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12727 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12728 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12729 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12730 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12731 * x86-64-linux-nat.c: Ditto.
12732
12733 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12734
12735 * alpha-tdep.c (alpha_register_name): New function.
12736 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12737 (REGISTER_NAME): Define.
12738
12739 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12740
12741 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12742
12743 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12744
12745 * alpha-tdep.c: Update copyright years.
12746 (alpha_next_pc): New function.
12747 (alpha_software_single_step): Ditto.
12748 * config/alpha/tm-alpha.h: Add prototype for
12749 alpha_software_single_step.
12750
12751 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12752
12753 * alphabsd-nat.c: Update copyright years.
12754 (fill_gregset): Use regcache_collect.
12755 (fill_fpregset): Likewise.
12756 (fetch_inferior_registers): Only fetch integer registers
12757 if requested to do so.
12758 (store_inferior_registers): Only store integer registers
12759 if requested to do so.
12760
12761 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12762
12763 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12764 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12765 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12766 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12767 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12768 * config/arm/linux.mh (XDEPFILES): Delete.
12769 * config/arm/nbsd.mh (XDEPFILES): Delete.
12770 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12771 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12772 * config/i386/i386m3.mh (XDEPFILES): Delete.
12773 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12774 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12775 * config/i386/fbsd.mh (XDEPFILES): Delete.
12776 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12777 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12778 * config/i386/i386v4.mh (XDEPFILES): Delete.
12779 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12780 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12781 * config/i386/i386aix.mh (XDEPFILES): Delete.
12782 * config/i386/go32.mh (XDEPFILES): Delete.
12783 * config/i386/cygwin.mh (XDEPFILES): Delete.
12784 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12785 * config/i386/i386mach.mh (XDEPFILES): Delete.
12786 * config/i386/i386v32.mh (XDEPFILES): Delete.
12787 * config/i386/linux.mh (XDEPFILES): Delete.
12788 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12789 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12790 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12791 * config/i386/i386sco.mh (XDEPFILES): Delete.
12792 * config/i386/i386v.mh (XDEPFILES): Delete.
12793 * config/i386/nbsd.mh (XDEPFILES): Delete.
12794 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12795 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12796 * config/i386/symmetry.mh (XDEPFILES): Delete.
12797 * config/i386/obsd.mh (XDEPFILES): Delete.
12798 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12799 * config/ia64/linux.mh (XDEPFILES): Delete.
12800 * config/ia64/aix.mh (XDEPFILES): Delete.
12801 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12802 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12803 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12804 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12805 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12806 * config/m68k/linux.mh (XDEPFILES): Delete.
12807 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12808 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12809 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12810 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12811 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12812 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12813 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12814 * config/m88k/delta88.mh (XDEPFILES): Delete.
12815 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12816 * config/m88k/m88k.mh (XDEPFILES): Delete.
12817 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12818 * config/mips/linux.mh (XDEPFILES): Delete.
12819 * config/mips/irix6.mh (XDEPFILES): Delete.
12820 * config/mips/irix5.mh (XDEPFILES): Delete.
12821 * config/mips/irix4.mh (XDEPFILES): Delete.
12822 * config/mips/irix3.mh (XDEPFILES): Delete.
12823 * config/mips/decstation.mh (XDEPFILES): Delete.
12824 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12825 (NATDEPFILES): Move core-aout.o to here.
12826 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12827 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12828 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12829 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12830 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12831 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12832 * config/pa/hpux11.mh (XDEPFILES): Delete.
12833 * config/powerpc/aix.mh (XDEPFILES): Delete.
12834 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12835 * config/powerpc/linux.mh (XDEPFILES): Delete.
12836 * config/romp/rtbsd.mh: Rename XDEPFILES.
12837 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12838 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12839 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12840 * config/s390/s390.mh (XDEPFILES): Delete.
12841 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12842 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12843 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12844 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12845 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12846 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12847 * config/sparc/linux.mh (XDEPFILES): Delete.
12848 * config/vax/vaxult.mh (XDEPFILES): Delete.
12849 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12850 * Makefile.in (DEPFILES): Remove XDEPFILES.
12851
12852 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12853
12854 * utils.c (internal_verror): Fix comments, default is yes not no.
12855 Update queries to match. Default to quit and dump core.
12856
12857 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12858
12859 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12860 copyright.
12861 * defs.h, event-top.c, gdbcmd.h: Ditto.
12862 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12863 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12864 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12865 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12866 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12867 * mi/mi-main.c:Ditto.
12868
12869 * stack.c, symfile.c: Update copyright.
12870
12871 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12872
12873 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12874 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12875 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12876 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12877
12878 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12879
12880 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12881 * gdbserver/low-lynx.c (myattach): Likewise.
12882 * gdbserver/low-nbsd.c (myattach): Likewise.
12883 * gdbserver/low-sim.c (myattach): Likewise.
12884 * gdbserver/low-sparc.c (myattach): Likewise.
12885 * gdbserver/low-sun3.c (myattach): Likewise.
12886
12887 * gdbserver/low-linux.c (myattach): New function.
12888
12889 * gdbserver/server.c (attach_inferior): New function.
12890 (main): Handle "--attach".
12891
12892 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12893
12894 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12895 maintainer.
12896
12897 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12898
12899 * c-typeprint.c (is_type_conversion_operator): Add additional
12900 check for non-conversion operators.
12901
12902 2002-01-15 Michael Snyder <msnyder@redhat.com>
12903
12904 * linux-proc.c: Add "info proc" command, a la procfs.c.
12905 (read_mapping): New function, abstract and re-use code.
12906 (linux_find_memory_regions): Use new func read_mapping.
12907 (linux_info_proc_cmd): New function, implement "info proc".
12908 (_initialize_linux_proc): Add new command "info proc".
12909
12910 2002-01-15 Michael Snyder <msnyder@redhat.com>
12911
12912 * symfile.c (generic_load): Use bfd_map_over_sections method
12913 instead of manipulating bfd structure members directly.
12914 (add_section_size_callback): New function, bfd sections callback
12915 used by generic_load.
12916 (load_sections_callback): New function, bfd sections callback
12917 used by generic_load.
12918
12919 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12920
12921 [Based on work by Jim Blandy]
12922 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12923 (builtin_type_vec128): Export.
12924 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12925 types.
12926 (builtin_type_vec128): New builtin type for 128 bit vector
12927 registers.
12928 (build_gdbtypes): Initialize builtin_type_v16qi and
12929 builtin_type_v8hi. Create the vec128 register builtin type
12930 structure.
12931 (build_builtin_type_vec128): New function.
12932 (_initialize_gdbtypes): Register builtin_type_v16qi and
12933 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12934 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12935 AltiVec register to new builtin type.
12936
12937 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12938
12939 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12940 to make_cv_type.
12941
12942 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12943
12944 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12945 CLEAN_UP_REGISTER_VALUE.
12946 * regcache.c (supply_register): Update only call.
12947
12948 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12949
12950 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12951 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12952 a29k-*-vxworks* targets as obsolete.
12953
12954 2002-01-14 Michael Snyder <msnyder@redhat.com>
12955
12956 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12957 until we can resolve portability issues.
12958 * gregset.h: Remove references to fpxregs.
12959 * gcore.c (gcore_command): Initialize note_sec to NULL.
12960
12961 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12962
12963 * signals.c (target_signal_to_name): Rewrite. Only use
12964 signals[].name when in bounds and non-NULL.
12965
12966 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12967
12968 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12969 * signals.c (target_signal_to_name): Verify that SIG is within the
12970 bounds of the signals array.
12971
12972 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12973
12974 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12975
12976 2002-01-13 Keith Seitz <keiths@redhat.com>
12977
12978 * stack.c (print_frame_info_base): Print the frame's pc
12979 only if when print_frame_info_listing_hook is not defined.
12980
12981 2002-01-13 Keith Seitz <keiths@redhat.com>
12982
12983 * varobj.c (varobj_set_value): Make sure that there were no
12984 errors evaluating the object before attempting to set its
12985 value.
12986 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12987 so this offset adjustment is no longer necessary.
12988 (create_child): Don't set the error flag if the child is
12989 a CPLUS_FAKE_CHILD.
12990 (value_of_child): If value_fetch_lazy fails, return NULL
12991 so that callers will be notified that an error occurred.
12992 (c_value_of_variable): Delay check of variable's validity
12993 until later. We actually want all structs and unions to have
12994 the value "{...}".
12995 Do not return "???" for variables which could not be evaluated.
12996 This error condition must be returned to the caller so that it
12997 can get the error condition from gdb.
12998 (cplus_name_of_child): Adjust index for vptr before figuring
12999 out the name of the child.
13000 (cplus_value_of_child): If a child's (real) parent is not valid,
13001 don't even bother trying to give a value for it. Just return
13002 an error. Change all instances in this function.
13003 (cplus_type_of_child): If our parent is one of the "fake"
13004 parents, we need to get at the type of the real parent, and
13005 derive the child's true type using this information.
13006
13007 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13008
13009 From 2002-01-09 John Marshall <johnm@falch.net>:
13010 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13011 sources.redhat.com, and tweak some related URLs which had
13012 suffered from linkrot.
13013
13014 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13015
13016 From Jeff law:
13017 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13018 structures passed in registers.
13019
13020 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13021
13022 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13023 white space which prevented compilation. Reported by DSK
13024 <dsk@student.unsw.edu.au>.
13025
13026 2002-01-11 Michael Snyder <msnyder@redhat.com>
13027
13028 * symfile.c (build_section_addr_info_from_section_tab):
13029 Use bfd access method instead of manipulating bfd directly.
13030 (syms_from_objfile): Ditto.
13031 (simple_overlay_update_1): Ditto.
13032 (simple_overlay_update): Ditto.
13033 (generic_load): Ditto.
13034 (overlay_unmapped_address): FIXME comment, bfd access methods.
13035 (sections_overlap): FIXME comment, bfd access methods.
13036 (pc_in_mapped_range): FIXME comment, bfd access methods.
13037 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13038 (section_is_mapped): FIXME comment, bfd access methods.
13039 (section_is_overlay): FIXME comment, bfd access methods.
13040
13041 * symfile.c (generic_load): Whitespace and long line cleanups.
13042 Remove duplicate variable, change several local variables to
13043 more appropriate data types.
13044 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13045
13046 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13047
13048 From Peter Schauer:
13049 * language.c (longest_local_hex_string_custom): Use phex_nz to
13050 convert NUM to a hex string.
13051
13052 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13053
13054 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13055 the function.
13056 Update Copyright year.
13057
13058 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13059
13060 * language.c (longest_raw_hex_string): Delete unused function.
13061
13062 2002-01-11 Petr Sorfa <petrs@caldera.com>
13063
13064 * MAINTAINERS (write-after-approval): Add myself.
13065 * dwarf2read.c (read_tag_string_type): Handling of
13066 DW_AT_byte_size.
13067 (read_tag_string_type): FORTRAN fix to prevent propagation of
13068 first string size.
13069 (set_cu_language): Handling of DW_LANG_Fortran95
13070
13071 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13072
13073 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13074 GETPID(inferior_ptid).
13075 (store_inferior_registers): Likewise.
13076
13077 2002-01-10 Jason Merrill <jason@redhat.com>
13078
13079 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13080 Fix DW_OP_minus.
13081
13082 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13083
13084 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13085 and bfd/elf32-sh-nbsd.c.
13086
13087 2002-01-10 Michael Snyder <msnyder@redhat.com>
13088
13089 * NEWS: Mention --pid and corefile/proc-id behavior change.
13090
13091 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13092 * gcore.c: Include cli/cli-decode.h instead of command.h.
13093
13094 * main.c (captured_main): Add new command line option "--pid".
13095 If the second command line argument (following the symbol-file)
13096 begins with a digit, try to attach to it before trying to open
13097 it as a corefile.
13098 (print_gdb_help): Document the "--pid" argument.
13099
13100 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13101
13102 * completer.c (command_completer): New function.
13103
13104 * completer.h <command_completer>: Add prototype.
13105
13106 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13107 completer for the "help" command.
13108
13109 2002-01-09 Jason Merrill <jason@redhat.com>
13110
13111 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13112
13113 2002-01-09 Michael Snyder <msnyder@redhat.com>
13114
13115 * i386-linux-nat.c (fill_fpxregset): Make global.
13116 (store_fpxregset): Ditto.
13117
13118 * gregset.h (gdb_fpxregset_t): Define.
13119 (supply_fpxregset): Prototype.
13120 (fill_fpxregset): Prototype.
13121
13122 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13123
13124 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13125
13126 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13127 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13128 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13129
13130 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13131
13132 * MAINTAINERS: Update target maintainer rules so that any
13133 Maintainer can approve a tested patch for a maintenance-only
13134 target.
13135
13136 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13137
13138 * MAINTAINERS (write-after-approval): Add myself.
13139
13140 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13141 IN_SIGTRAMP.
13142
13143 2002-01-08 Michael Snyder <msnyder@redhat.com>
13144
13145 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13146 real name of the executable, rather than the /proc name.
13147
13148 2002-01-03 Michael Snyder <msnyder@redhat.com>
13149
13150 Implement a "generate-core-file" command in gdb, save target state.
13151 * gcore.c: New file. Implement new command 'generate-core-file'.
13152 Save a corefile image of the current state of the inferior.
13153 * linux-proc.c: Add linux-specific code for saving corefiles.
13154 * target.h (struct target_ops): Add new target vectors for saving
13155 corefiles; to_find_memory_regions and to_make_corefile_notes.
13156 (target_find_memory_regions): New macro.
13157 (target_make_corefile_notes): New macro.
13158 * target.c (update_current_target): Inherit new target methods.
13159 (dummy_find_memory_regions): New place-holder method.
13160 (dummy_make_corefile_notes): New place-holder method.
13161 (init_dummy_target): Initialize new dummy target vectors.
13162 * exec.c (exec_set_find_memory_regions): New function.
13163 Allow the exec_ops vector for memory regions to be taken over.
13164 (exec_make_note_section): New function, target vector method.
13165 * defs.h (exec_set_find_memory_regions): Export prototype.
13166 * procfs.c (proc_find_memory_regions): New function, corefile method.
13167 (procfs_make_note_section): New function, corefile method.
13168 (init_procfs_ops): Set new target vector pointers.
13169 (find_memory_regions_callback): New function.
13170 (procfs_do_thread_registers): New function.
13171 (procfs_corefile_thread_callback): New function.
13172 * sol-thread.c (sol_find_memory_regions): New function.
13173 (sol_make_note_section): New function.
13174 (init_sol_thread_ops): Initialize new target vectors.
13175 * inftarg.c (inftarg_set_find_memory_regions): New function.
13176 Allow to_find_memory_regions vector to be taken over.
13177 (inftarg_set_make_corefile_notes): New function.
13178 Allow to_make_corefile_notes vector to be taken over.
13179 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13180 interface layer if not target_has_execution (may be a corefile).
13181 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13182 * config/sparc/sun4sol2.mh: Ditto.
13183 * config/alpha/alpha-linux.mh: Ditto.
13184 * config/arm/linux.mh: Ditto.
13185 * config/i386/x86-64linux.mh: Ditto.
13186 * config/ia64/linux.mh: Ditto.
13187 * config/m68k/linux.mh: Ditto.
13188 * config/mips/linux.mh: Ditto.
13189 * config/powerpc/linux.mh: Ditto.
13190 * config/sparc/linux.mh: Ditto.
13191
13192 2002-01-07 Michael Snyder <msnyder@redhat.com>
13193
13194 * arm-linux-nat.c: Remove references to regcache.c internal data
13195 (registers[] and register_valid[]).
13196
13197 2002-01-07 Michael Snyder <msnyder@redhat.com>
13198
13199 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13200 so that attaching to a pid will automatically read the process's
13201 symbol file and shlibs.
13202 * Makefile.in: Add rule for linux-proc.o.
13203 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13204 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13205 * config/arm/linux.mh: Ditto.
13206 * config/i386/linux.mh: Ditto.
13207 * config/i386/x86-64linux.mh: Ditto.
13208 * config/ia64/linux.mh: Ditto.
13209 * config/m68k/linux.mh: Ditto.
13210 * config/mips/linux.mh: Ditto.
13211 * config/powerpc/linux.mh: Ditto.
13212 * config/sparc/linux.mh: Ditto.
13213
13214 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13215
13216 * win32-nat.c: Add i386-tdep.h dependency.
13217
13218 2002-01-07 Michael Snyder <msnyder@redhat.com>
13219
13220 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13221 instead of bfd_get_arch_size. Don't bail out just because
13222 there's no exec_bfd.
13223
13224 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13225 * p-valprint.c (pascal_object_print_value): Ditto.
13226 * somread.c (som_symtab_read): Ditto.
13227 * symfile.c (simple_free_overlay_region_table): Ditto.
13228 * valops.c (value_assign): Ditto.
13229
13230 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13231 use tilde_expand and strerror for opening save-tracepoints file.
13232
13233 * thread-db.c (thread_db_new_objfile): Indendation fix.
13234
13235 * infptrace.c (GDB_MAX_ALLOCA): New define.
13236 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13237 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13238 can be overridden with whatever value is appropriate to the host).
13239 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13240 alloca to allocate potentially large buffer.
13241 * rs6000-nat.c (child_xfer_memory): Ditto.
13242 * symm-nat.c (child_xfer_memory): Ditto.
13243 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13244
13245 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13246
13247 From Nick Clifton <nickc@redhat.com>
13248 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13249
13250 2002-01-07 Michael Snyder <msnyder@redhat.com>
13251
13252 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13253 Don't use exec_bfd if it's NULL.
13254
13255 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13256
13257 * valops.c (value_arg_coerce): Fix formatting.
13258
13259 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13260
13261 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13262 * gnu-nat.c: Ditto.
13263
13264 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13265
13266 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13267 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13268 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13269 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13270 z8k-coff have not been multi-arched. Update z8k-coff build
13271 status.
13272
13273 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13274
13275 * MAINTAINERS: Mark a29k target as obsolete.
13276 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13277 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13278 comments.
13279 * NEWS: Note that a29k targets are obsolete.
13280 * a29k-tdep.c: Mark as obsolete.
13281 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13282 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13283 a29k-*-vxworks* targets as obsolete.
13284 * remote-adapt.c: Obsolete.
13285 * remote-eb.c: Obsolete.
13286 * remote-mm.c: Obsolete.
13287 * remote-udi.c: Obsolete.
13288 * config/a29k/a29k-udi.mt: Obsolete.
13289 * config/a29k/a29k.mt: Obsolete.
13290 * config/a29k/tm-a29k.h: Obsolete.
13291 * config/a29k/tm-vx29k.h: Obsolete.
13292 * config/a29k/vx29k.mt: Obsolete.
13293
13294 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13295
13296 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13297 with BFD_ENDIAN_BIG.
13298
13299 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13300
13301 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13302 * configure, config.in: Re-generate.
13303 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13304 * defs.h: Do not include <endian.h>.
13305
13306 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13307
13308 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13309 * config.in: Regenerate.
13310 * configure.in: Update copyright years.
13311 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13312 * configure: Regenerate.
13313 * i386bsd-nat.c: Update copyright years.
13314 (fill_gregset): Use regcache_collect.
13315 (fetch_inferior_registers): Only fetch integer registers
13316 if requested to do so. Add support for XMM registers
13317 using PT_GETXMMREGS.
13318 (store_inferior_registers): Only store integer registers
13319 if requested to do so. Add support for XMM registers
13320 using PT_SETXMMREGS.
13321 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13322 (store_inferior_registers): Remove.
13323 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13324 (fetch_elfcore_registers): New function.
13325 (i386nbsd_elfcore_fns): New.
13326 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13327 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13328 i386bsd-nat.o.
13329 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13330 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13331 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13332 * config/i386/tm-nbsd.h: Update copyright years.
13333 (HAVE_SSE_REGS): Define.
13334 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13335 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13336 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13337 (SIGCONTEXT_PC_OFFSET): Remove.
13338 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13339
13340 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13341
13342 * configure.tgt: Remove powerpc-*-macos* target.
13343 * config/m68k/xm-mpw.h: Delete file.
13344 * config/xm-mpw.h: Delete file.
13345 * ser-mac.c: Delete file.
13346 * mpw-make.sed: Delete file.
13347 * mpw-config.in: Delete file.
13348 * mac-xdep.c: Delete file.
13349 * mac-gdb.r: Delete file.
13350 * mac-defs.h: Delete file.
13351 * mac-nat.c: Delete file.
13352 * config/powerpc/macos.mh: Delete file.
13353 * config/powerpc/macos.mt: Delete file.
13354 * config/powerpc/nm-macos.h: Delete file.
13355 * config/powerpc/tm-macos.h: Delete file.
13356 * source.c (openp, open_source_file): Remove obsolete code.
13357 * top.c (gdb_readline): Ditto.
13358 * utils.c (query): Ditto.
13359 * event-top.c (display_gdb_prompt): Ditto.
13360 * Makefile.in (ser-mac.o): Delete obsolete target.
13361 * NEWS: Update.
13362
13363 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13364
13365 * defs.h (BIG_ENDIAN): Delete macro definition.
13366 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13367 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13368 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13369 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13370 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13371 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13372 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13373 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13374 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13375 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13376 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13377 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13378 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13379 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13380 * gdbarch.c: Re-generate.
13381
13382 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13383
13384 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13385 for core files.
13386
13387 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13388
13389 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13390
13391 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13392
13393 * value.h (value_ptr): Delete typedef.
13394
13395 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13396
13397 * i386nbsd-nat.c: Update copyright years.
13398 Include i386-tdep.h.
13399
13400 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13401
13402 * stabsread.c: Update copyright years.
13403
13404 From Debashis Mahata <debashis.mahata@wipro.com>:
13405 (read_struct_fields): Deal with Sun C compiler erroneous stab
13406 output for structs and unions.
13407 Fix PR gdb/269.
13408
13409 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13410
13411 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13412 prototype.
13413
13414 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13415
13416 * cp-abi.c: Fix whitespace.
13417 (baseclass_offset): New wrapper function.
13418 * cp-abi.h (baseclass_offset): Add prototype.
13419 (struct cp_abi_ops): Add baseclass_offset pointer.
13420
13421 * valops.c (vb_match): Move to...
13422 * gnu-v2-abi.c (vb_match): here.
13423 * valops.c (baseclass_offset): Move to...
13424 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13425
13426 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13427
13428 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13429 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13430 * hpacc-abi.c (init_hpacc_ops): Likewise.
13431
13432 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13433
13434 * valops.c (find_overload_match): Accept obj as a
13435 reference parameter. Update it before returning.
13436 * value.h (find_overload_match): Update prototype.
13437 * eval.c (evaluate_subexp_standard): Pass object to
13438 find_overload_match by reference.
13439
13440 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13441
13442 * valarith.c: Replace value_ptr with struct value pointer. Remove
13443 register attribute from value declarations.
13444 * valops.c: Ditto.
13445 * value.h: Ditto.
13446 * scm-lang.c (scm_lookup_name): Ditto.
13447
13448 2002-01-03 Michael Snyder <msnyder@redhat.com>
13449
13450 Abstract the functionality of iterating over mapped memory
13451 regions into a general purpose iterator function.
13452 * procfs.c (iterate_over_mappings): New function, general purpose
13453 iterator for memory sections.
13454 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13455 (solib_mappings_callback): New function, callback for above.
13456 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13457 (info_mappings_callback): New function, callback for above.
13458
13459 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13460
13461 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13462
13463 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13464 * i386-tdep.c: Include "elf-bfd.h".
13465 (process_note_abi_tag_sections): New function.
13466 (i386_gdbarch_init): Add code to recognize various OS/ABI
13467 combinations.
13468
13469 * maint.c (_initialize_maint_cmds): Add missing \ in
13470 string-literal.
13471
13472 For older changes see ChangeLog-2001
13473 \f
13474 Local Variables:
13475 mode: change-log
13476 left-margin: 8
13477 fill-column: 74
13478 version-control: never
13479 End:
This page took 0.320143 seconds and 5 git commands to generate.