2002-11-28 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-28 Andrew Cagney <cagney@redhat.com>
2
3 * frame.h: Update comments on set_current_frame, create_new_frame,
4 flush_cached_frames, reinit_frame_cache, select_frame and
5 selected_frame.
6
7 2002-11-27 Andrew Cagney <cagney@redhat.com>
8
9 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
10 deprecated pc_in_call_dummy function.
11 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
12 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
13 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
14 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
15 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
16
17 2002-11-26 Martin M. Hunt <hunt@redhat.com>
18
19 * Makefile.in: Remove Tix dependencies.
20 * acinclude.m4: Ditto.
21 * aclocal.m4: Ditto.
22 * configure.in: Ditto.
23 * configure: Regenerated.
24
25 2002-11-26 Andrew Cagney <ac131313@redhat.com>
26
27 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
28 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
29 * gdbarch.c: Re-generate.
30
31 2002-11-26 Andrew Cagney <ac131313@redhat.com>
32
33 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
34 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
35 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
36 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
37 pc_in_call_dummy_at_entry_point.
38 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
39 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
40 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
41 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
42 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
43 pc_in_call_dummy_on_stack.
44 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
45 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
46 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
47 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
48 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
49
50 2002-11-26 Andrew Cagney <ac131313@redhat.com>
51
52 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
53 pc_in_call_dummy_before_text_end
54 (deprecated_pc_in_call_dummy_after_text_end): Rename
55 pc_in_call_dummy_after_text_end.
56 (deprecated_pc_in_call_dummy_on_stack): Rename
57 pc_in_call_dummy_on_stack.
58 (deprecated_pc_in_call_dummy_at_entry_point): Rename
59 pc_in_call_dummy_at_entry_point.
60 * m68k-tdep.c (m68k_gdbarch_init): Update.
61 * s390-tdep.c (s390_gdbarch_init): Update.
62 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
63 * vax-tdep.c (vax_gdbarch_init): Update.
64 * sparc-tdep.c (sparc_gdbarch_init): Update.
65 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
66 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
67 * i386-tdep.c (i386_gdbarch_init): Update.
68 * frv-tdep.c (frv_gdbarch_init): Update.
69 * cris-tdep.c (cris_gdbarch_init): Update.
70 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
71 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
72 (deprecated_pc_in_call_dummy_after_text_end)
73 (deprecated_pc_in_call_dummy_on_stack)
74 (deprecated_pc_in_call_dummy_at_entry_point): Update.
75 * alpha-tdep.c (alpha_gdbarch_init): Update.
76
77 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
78
79 * acconfig.h (HAVE_PREAD64): Add.
80 * configure.in: Check for pread64.
81 * config.in: Regenerated.
82 * configure: Regenerated.
83 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
84 * linux-proc.c (linux_proc_xfer_memory): New function.
85 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
86
87 2002-11-25 David Carlton <carlton@math.stanford.edu>
88
89 * dwarf2read.c (scan_partial_symbols): Descend into namespace
90 pdi's with no name.
91
92 2002-11-25 Andrew Cagney <ac131313@redhat.com>
93
94 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
95 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
96
97 2002-11-25 Jim Blandy <jimb@redhat.com>
98
99 * symfile.c (init_objfile_sect_indices): New function.
100 (default_symfile_offsets): Move the section-index-initializing
101 stuff into init_objfile_sect_indices, and call that.
102
103 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
104 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
105
106 * symfile.c (syms_from_objfile): Adjust indentation.
107
108 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
109 || info_verbose isn't true.
110
111 2002-11-24 Andrew Cagney <ac131313@redhat.com>
112
113 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
114 default to get_frame_base.
115 * gdbarch.h, gdbarch.c: Regenerate.
116 * arch-utils.c (default_frame_address): Delete function.
117 * arch-utils.h (default_frame_address): Delete declaration
118
119 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
120
121 * varobj.c (find_frame_addr_in_frame_chain):
122 Use get_frame_base instead of FRAME_FP,
123 obvious fix.
124
125 2002-11-19 Andrew Cagney <ac131313@redhat.com>
126
127 * frame.h (FRAME_FP): Delete macro.
128 (get_frame_base): New function declaration.
129 * frame.c (get_frame_base): New function.
130 (get_frame_id): Use ->frame.
131 (frame_find_by_id): Rewrite to use get_frame_id.
132 * blockframe.c: Use get_frame_base instead of FRAME_FP.
133 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
134 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
135 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
136 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
137 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
138 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
139
140 2002-11-24 Andrew Cagney <ac131313@redhat.com>
141
142 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
143
144 2002-11-24 Andrew Cagney <ac131313@redhat.com>
145
146 * frame.c (set_unwind_by_pc): Revert change below, use
147 PC_IN_CALL_DUMMY.
148 (get_prev_frame): Ditto.
149
150 2002-11-24 Andrew Cagney <ac131313@redhat.com>
151
152 * dummy-frame.c (pc_in_dummy_frame): New function.
153 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
154 (find_dummy_frame): Update comment.
155 (generic_pop_current_frame): Use get_frame_type.
156 * dummy-frame.h (pc_in_dummy_frame): Declare.
157 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
158 (create_new_frame): Use pc_in_dummy_frame.
159 (get_prev_frame): Use pc_in_dummy_frame.
160 (frame_saved_regs_register_unwind): Use get_prev_frame.
161 (deprecated_generic_get_saved_register): Use get_prev_frame.
162
163 2002-11-23 Andrew Cagney <ac131313@redhat.com>
164
165 * blockframe.c (find_frame_addr_in_frame_chain): Move function
166 from here ...
167 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
168 (varobj_create): Note that frame ID should be used.
169 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
170
171 2002-11-23 Andrew Cagney <ac131313@redhat.com>
172
173 * breakpoint.c: Include "gdb_assert.h".
174 (deprecated_frame_in_dummy): Assert that generic dummy frames are
175 not being used.
176 * Makefile.in (breakpoint.o): Update dependencies.
177 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
178 deprecated_frame_in_dummy.
179 * stack.c (print_frame_info_base): Ditto.
180 (frame_info): Ditto.
181 (print_frame_info_base): Ditto. Delete dead code.
182
183 2002-11-23 Andreas Schwab <schwab@suse.de>
184
185 * Makefile.in (m68k_tdep_h): Define.
186 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
187 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
188 * m68k-tdep.c: Move register number enum ...
189 * m68k-tdep.h: ... to this new file and rename the constants from
190 E_* to M68K_*. All uses changed.
191 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
192 * abug-rom.c: Include "m68k-tdep.h". Use
193 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
194 * cpu32bug-rom.c: Likewise.
195 * dbug-rom.c: Likewise.
196 * m68k-tdep.c: Likewise.
197 * m68klinux-nat.c: Likewise.
198 * remote-est.c: Likewise.
199 * rom68k-rom.c: Likewise.
200 * config/m68k/tm-linux.h: Likewise.
201
202 2002-11-23 Andrew Cagney <ac131313@redhat.com>
203
204 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
205 dummy frame initialization code.
206 * mips-tdep.c (mips_gdbarch_init): Ditto.
207
208 2002-11-22 Christopher Faylor <cgf@redhat.com>
209
210 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
211 attach will hang.
212
213 2002-11-22 Andrew Cagney <ac131313@redhat.com>
214
215 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
216 to default_frame_address.
217 * gdbarch.h, gdbarch.c: Re-generate.
218
219 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
220 or frame_locals_address to default_frame_address.
221 * m68k-tdep.c (m68k_gdbarch_init): Update.
222 * i386-tdep.c (i386_gdbarch_init): Update.
223 * frv-tdep.c (frv_gdbarch_init): Update.
224 * sh-tdep.c (sh_gdbarch_init): Update.
225 * v850-tdep.c (v850_gdbarch_init): Update.
226 * sparc-tdep.c (sparc_gdbarch_init): Update.
227 * mips-tdep.c (mips_gdbarch_init): Update.
228 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
229 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
231
232 * cris-tdep.c (cris_frame_args_address): Delete function.
233 (cris_frame_locals_address): Delete function.
234 (cris_gdbarch_init): Do not set frame_args_address or
235 frame_locals_address.
236
237 2002-11-22 Michael Snyder <msnyder@redhat.com>
238
239 * thread-db.c (thread_db_load): Tell the user what's going on
240 if dlopen fails on libthread_db.
241
242 2002-11-23 Andreas Schwab <schwab@suse.de>
243
244 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
245 invariant return values.
246
247 2002-11-22 Andreas Schwab <schwab@suse.de>
248
249 * valops.c (value_slice): Move declaration of `offset' to avoid
250 warning.
251
252 2002-11-22 Christopher Faylor <cgf@redhat.com>
253
254 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
255 (struct so_stuff): Add end_addr field.
256 (register_loaded_dll): Calculate and store end address of loaded dll.
257 (solib_address): New function.
258 (child_solib_loaded_library_pathname): Pass carefully constructed
259 section info to safe_symbol_file_add rather than ignoring it.
260 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
261 DLL is loaded.
262 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
263 (child_create_inferior): Fix a compiler warning.
264 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
265 (solib_address): Declare new function.
266
267 2002-11-22 Andreas Schwab <schwab@suse.de>
268
269 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
270 and FPS registers.
271
272 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
273
274 * maint.c (_initialize_maint_cmds): Fix typo. From
275 Francesco Potorti` <pot@gnu.org>.
276
277 2002-11-21 Andrew Cagney <cagney@redhat.com>
278
279 * mips-tdep.c (mips_dump_tdep): Delete references to
280 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
281 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
282 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
283 * printcmd.c (build_address_symbolic): Delete calls to
284 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
285 (address_info): Ditto.
286 Fix PR gdb/773.
287
288 2002-11-19 Klee Dienes <kdienes@apple.com>
289 Adam Fedor <fedor@gnu.org>
290
291 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
292 the ability to explicitly specify the quote characters and word
293 break characters; if NULL is specified for either, use the old
294 behavior of using the characters used by the completer.
295 (skip_chars): New function. Convenience wrapper around
296 skip_quoted_chars to provide the original skip_chars behavior.
297 * completer.h (skip_quoted_chars): Add prototype.
298
299 2002-11-19 Andrew Cagney <ac131313@redhat.com>
300
301 Problems reported by Paul Eggert.
302 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
303
304 2002-11-19 Andreas Schwab <schwab@suse.de>
305
306 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
307 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
308 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
309 (m68k_linux_frame_saved_pc): Move to ...
310 * m68klinux-tdep.c: ... here. New file.
311 * Makefile.in (m68klinux-tdep.o): Add dependencies.
312 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
313
314 2002-11-19 Adam Fedor <fedor@gnu.org>
315
316 * objc-exp.y: Revert to old skip_quoted usage.
317
318 2002-11-19 Adam Fedor <fedor@gnu.org>
319
320 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
321 (objc_lang_h): Define.
322 (YYFILES): Add objc-exp.tab.c.
323 (local-maintainer-clean): Remove objc-exp.tab.c.
324 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
325
326 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
327
328 * p-exp.y (typecast rule): Add automatic dereference of
329 pascal classes if needed.
330 (THIS): Set current_type.
331 Automatically dereference pascal classes.
332 (typebase rule): Add ^typebase recognition.
333
334 2002-11-18 Adam Fedor <fedor@gnu.org>
335
336 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
337 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
338 (op_name): Handle OP_OBJC_SELF.
339 * Makefile.in (expprint.o): Add additional depends.
340
341 2002-11-18 Adam Fedor <fedor@gnu.org>
342
343 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
344 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
345 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
346 * objc-exp.y: Likewise.
347
348 2002-11-18 Adam Fedor <fedor@gnu.org>
349
350 * gdb/parser-defs.h: (struct objc_class_str): New structure
351 for parsing ObjC classes.
352
353 2002-11-18 Andrew Cagney <ac131313@redhat.com>
354
355 * stack.c (frame_relative_level): Copy function from here ...
356 * frame.c (frame_relative_level): ...to here.
357
358 2002-11-18 Andrew Cagney <ac131313@redhat.com>
359
360 * frame.h (enum frame_type): Define.
361 (get_frame_type): Declare.
362 (struct frame_info): Add field `type'. Delete field
363 signal_handler_caller.
364 (deprecated_set_frame_signal_handler_caller): Declare.
365 * frame.c (get_frame_type): New function.
366 (deprecated_set_frame_type): New function.
367 (create_new_frame): Set the frame's type.
368 (get_prev_frame): Similar.
369 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
370 * s390-tdep.c: Ditto.
371 * m68klinux-nat.c: Ditto.
372 * ns32k-tdep.c: Ditto.
373 * x86-64-linux-tdep.c: Ditto.
374 * vax-tdep.c: Ditto.
375 * rs6000-tdep.c: Ditto.
376 * ppc-linux-tdep.c: Ditto.
377 * i386-interix-tdep.c: Ditto.
378 * mips-tdep.c: Ditto.
379 * m68k-tdep.c: Ditto.
380 * hppa-tdep.c: Ditto.
381 * ia64-tdep.c: Ditto.
382 * cris-tdep.c: Ditto.
383 * arm-tdep.c: Ditto.
384 * alpha-tdep.c: Ditto.
385 * i386-tdep.c: Ditto.
386 * stack.c: Ditto.
387 * ada-lang.c: Ditto.
388 * blockframe.c: Update.
389 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
390 deprecated_set_frame_type instead of signal_handler_caller.
391 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
392 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
393 * breakpoint.h: Delete FIXME suggesting get_frame_type.
394
395 2002-11-18 Klee Dienes <kdienes@apple.com>
396
397 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
398
399 2002-11-18 Klee Dienes <kdienes@apple.com>
400
401 * buildsym.c (pop_context): Add comment.
402
403 2002-11-18 Klee Dienes <kdienes@apple.com>
404
405 * buildsym.h (pop_context): Convert to function, defined in
406 buildsym.c.
407 * buildsym.c: Include gdb_assert.h.
408 (pop_context): Implement as C function. Add check for stack
409 underflow.
410 * dbxread.c (process_one_symbol): Complain and stop processing
411 that symbol if we are already at the top of the context stack for
412 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
413 when processing N_RBRAC.
414
415 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
416
417 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
418 define.
419 (struct target_waitstatus): Add opaque definition.
420 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
421 * exec.c (init_exec_ops): Likewise.
422 * fork-child.c (clone_and_follow_inferior): Remove.
423 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
424 * inferior.h (clone_and_follow_inferior): Remove prototype.
425 * infrun.c (follow_fork_mode_both): Remove.
426 (follow_fork_mode_kind_names): Remove commented out "both".
427 (follow_inferior_fork): Remove follow_fork_mode_both support.
428 * inftarg.c (child_clone_and_follow_inferior): Remove.
429 (child_post_follow_inferior_by_clone): Remove.
430 (init_child_ops): Don't set to_clone_and_follow_inferior
431 or to_post_follow_inferior_by_clone.
432 * target.c (default_clone_and_follow_inferior): Remove.
433 (cleanup_target): Don't set to_clone_and_follow_inferior
434 or to_post_follow_inferior_by_clone.
435 (find_default_clone_and_follow_inferior): Remove.
436 (init_dummy_target): Don't set to_clone_and_follow_inferior.
437 (debug_to_clone_and_follow_inferior): Remove.
438 (debug_to_post_follow_inferior_by_clone): Remove.
439 (setup_target_debug): Don't set to_clone_and_follow_inferior
440 or to_post_follow_inferior_by_clone.
441 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
442 and to_post_follow_inferior_by_clone.
443 (child_clone_and_follow_inferior): Remove prototype.
444 (child_post_follow_inferior_by_clone): Remove prototype.
445 (target_clone_and_follow_inferior): Remove macro.
446 (target_post_follow_inferior_by_clone): Remove macro.
447 (find_default_clone_and_follow_inferior): Remove prototype.
448
449 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
450
451 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
452 inferior_has_vforked, and inferior_has_execd instead of
453 target_has_forked, target_has_vforked, and target_has_execd.
454 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
455 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
456 (CHILD_WAIT): Define.
457 (child_wait): Add prototype.
458 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
459 Add prototype.
460 (hpux_has_vforked): Likewise, from child_has_vforked.
461 (hpux_has_execd): Likewise, from child_has_execd.
462 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
463 (not_same_real_pid, child_wait): New, copied from inftarg.c.
464 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
465 and hpux_has_syscall_event instead of the target hooks.
466 * infrun.c (inferior_has_forked, inferior_has_vforked)
467 (inferior_has_execd): New functions.
468 * inftarg.c (not_same_real_pid): Remove.
469 (child_wait): Remove references to not_same_real_pid,
470 target_has_forked, target_has_vforked, target_has_execd,
471 and target_has_syscall_event.
472 (child_has_forked, child_has_vforked, child_has_execd)
473 (child_has_syscall_event): Remove.
474 (init_child_ops): Remove references to child_has_forked,
475 child_has_vforked, child_has_execd, and child_has_syscall_event.
476 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
477 (hpux_has_vforked): Likewise, from child_has_vforked.
478 (hpux_has_execd): Likewise, from child_has_execd.
479 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
480 * target.c (cleanup_target): Remove references to
481 to_has_forked, to_has_vforked, to_has_execd, and
482 to_has_syscall_event.
483 (update_current_target): Likewise.
484 (setup_target_debug): Likewise.
485 (debug_to_has_forked): Remove.
486 (debug_to_has_vforked): Remove.
487 (debug_to_has_execd): Remove.
488 (debug_to_has_syscall_event): Remove.
489 * target.h (struct target_ops): Remove to_has_forked.
490 to_has_vforked, to_has_execd, and to_has_syscall_event.
491 (child_has_forked, child_has_vforked, child_has_execd)
492 (child_has_syscall_event): Remove prototypes.
493 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
494 prototypes.
495 (target_has_forked, target_has_vforked, target_has_execd)
496 (target_has_syscall_event): Remove macros.
497
498 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
499
500 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
501 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
502 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
503 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
504 * target.c (cleanup_target): Remove reference to
505 to_can_follow_vfork_prior_to_exec.
506 (update_current_target): Likewise.
507 (debug_to_can_follow_vfork_prior_to_exec): Remove.
508 (setup_target_debug): Remove reference to
509 to_can_follow_vfork_prior_to_exec.
510 * target.h (struct target_ops): Remove
511 to_can_follow_vfork_prior_to_exec.
512 (child_can_follow_vfork_prior_to_exec): Remove prototype.
513 (target_can_follow_vfork_prior_to_exec): Remove definition.
514 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
515 define.
516 * infrun.c (follow_vfork_when_exec): Remove.
517 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
518 (follow_exec): Likewise.
519 (handle_inferior_event): Likewise.
520 (keep_going): Likewise.
521
522 2002-11-15 Andrew Cagney <cagney@redhat.com>
523
524 * frame.c (generic_unwind_get_saved_register): Make static.
525 * frame.h (generic_unwind_get_saved_register): Delete declaration.
526 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
527 defaults to generic_unwind_get_saved_register.
528 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
529 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
530 * frv-tdep.c (frv_gdbarch_init): Ditto.
531 * i386-tdep.c (i386_gdbarch_init): Ditto.
532 * s390-tdep.c (s390_gdbarch_init): Ditto.
533 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
534 * v850-tdep.c (v850_gdbarch_init): Ditto.
535 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
536 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
537 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
538
539 2002-11-15 Andrew Cagney <cagney@redhat.com>
540
541 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
542 i386-tdep.c.
543
544 2002-11-15 Andrew Cagney <cagney@redhat.com>
545
546 * frame.h (sigtramp_saved_pc): Delete declaration.
547 * blockframe.c (sigtramp_saved_pc): Delete function.
548 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
549 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
550 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
551 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
552
553 2002-11-15 Andrew Cagney <ac131313@redhat.com>
554
555 * frame.c (frame_pc_unwind): New function.
556 (frame_saved_regs_pc_unwind): New function.
557 (frame_register_unwind): Pass unwind_cache instead of
558 register_unwind_cache.
559 (set_unwind_by_pc): Add unwind_pc parameter, set.
560 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
561 (get_prev_frame): Ditto.
562 * frame.h (frame_pc_unwind_ftype): Declare.
563 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
564 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
565 (frame_pc_unwind): Declare.
566 * dummy-frame.c (dummy_frame_pc_unwind): New function.
567 (struct dummy_frame): Add comment mentioning that values are for
568 previous frame.
569 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
570 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
571 (generic_file_frame_chain_valid): Ditto.
572 * stack.c (frame_info): Ditto.
573
574 2002-11-15 David Carlton <carlton@math.stanford.edu>
575
576 * linespec.c (locate_first_half): New function.
577 (decode_line_1): Move code into locate_first_half.
578
579 2002-11-15 Andrew Cagney <ac131313@redhat.com>
580
581 * complaints.h: Add comment explaining how to eliminate a
582 deprecated_complain call.
583 * complaints.h: Fix spelling errors.
584
585 2002-11-15 David Carlton <carlton@math.stanford.edu>
586
587 * printcmd.c: Remove #include "disasm.h".
588
589 2002-11-14 Andrew Cagney <ac131313@redhat.com>
590
591 * frame.h: Move the most relevant interface functions to the start
592 of the file.
593
594 2002-11-14 Andrew Cagney <ac131313@redhat.com>
595
596 * regcache.h (deprecated_registers): Rename registers.
597 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
598 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
599 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
600 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
601 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
602 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
603 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
604 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
605 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
606 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
607 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
608 * v850ice.c: Update.
609
610 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
611
612 * utils.c (gdb_realpath): Add comment mentioning realpath with a
613 NULL buffer.
614
615 2002-11-13 Andrew Cagney <cagney@redhat.com>
616
617 * regcache.h (deprecated_read_register_bytes): Rename
618 read_register_bytes.
619 (deprecated_write_register_bytes): Rename write_register_bytes.
620 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
621 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
622 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
623 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
624 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
625 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
626 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
627 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
628 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
629 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
630 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
631 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
632 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
633 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
634
635 2002-11-13 Jim Blandy <jimb@redhat.com>
636
637 * findvar.c (read_var_value): Doc fix.
638
639 2002-11-13 Andrew Cagney <cagney@redhat.com>
640
641 * regcache.c (struct regcache): Replace passthough_p with
642 readonly_p.
643 (regcache_xmalloc): Initialize readonly_p.
644 (build_regcache): Initialize readonly_p.
645 (regcache_save): New function.
646 (regcache_restore): New function.
647 (regcache_cpy): Re-implement using regcache_save and
648 regcache_restore.
649 (regcache_raw_read): Update.
650 (regcache_cooked_read): When a read-only cache, checked for cached
651 pseudo register values.
652 (regcache_raw_write): Assert that the cache is not read-only.
653 Remove code handling a non-passthrough cache.
654 * regcache.h (regcache_save): Declare.
655 (regcache_restore): Declare.
656
657 2002-11-13 Andrew Cagney <cagney@redhat.com>
658
659 * regcache.c (struct regcache_descr): Add fields
660 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
661 (init_legacy_regcache_descr): Compute the size of a cooked
662 register cache and then assign that to sizeof_raw_registers. Set
663 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
664 (init_legacy_regcache_descr): Ditto.
665
666 2002-11-13 Andrew Cagney <cagney@redhat.com>
667
668 * regcache.c (register_buffer): Move to near start of file, update
669 description.
670 (regcache_raw_read): Use.
671 (regcache_raw_write): Use.
672 (struct regcache): Rename raw_registers to registers and
673 raw_register_valid_p to register_valid_p.
674 (regcache_xmalloc): Update.
675 (regcache_xfree): Update.
676 (register_buffer): Update.
677 (regcache_cpy): Update.
678 (regcache_cpy_no_passthrough): Update.
679 (regcache_valid_p): Update.
680 (deprecated_grub_regcache_for_registers): Update.
681 (deprecated_grub_regcache_for_register_valid): Update.
682 (set_register_cached): Update.
683 (regcache_raw_write): Update.
684
685 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
686
687 * p-exp.y (name_not_typename): Use copy_name to
688 set current_type variable for fields of THIS.
689
690 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
691
692 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
693 * monitor.c (init_base_monitor_ops): Likewise.
694 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
695 * remote-array.c (init_array_ops): Likewise.
696 * remote-e7000.c (init_e7000_ops): Likewise.
697 * remote-es.c (init_es1800_ops): Likewise.
698 (init_es1800_child_ops): Likewise.
699 * remote-rdp.c (init_remote_rdp_ops): Likewise.
700 * remote-sim.c (init_gdbsim_ops): Likewise.
701 * remote-st.c (init_st2000_ops): Likewise.
702 * sol-thread.c (init_sol_core_ops): Likewise.
703 (init_sol_thread_ops): Likewise.
704 * v850ice.c (init_850ice_ops): Likewise.
705 * win32-nat.c (init_child_ops): Likewise.
706 * wince.c (init_child_ops): Likewise.
707
708 2002-11-12 Andrew Cagney <ac131313@redhat.com>
709
710 * utils.c (gdb_realpath): Make rp a constant pointer.
711
712 2002-11-12 Andrew Cagney <ac131313@redhat.com>
713
714 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
715 a constant buffer; cannonicalize_file_name(); realpath() with a
716 pathconf() defined buffer, xstrdup().
717
718 2002-11-12 Andrew Cagney <ac131313@redhat.com>
719
720 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
721 to hang2.C; hang3.c to hang3.C.
722
723 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
724
725 * findvar.c (read_var_value): Reenable TLS code.
726
727 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
728 Jim Blandy <jimb@redhat.com>
729
730 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
731 * target.c (update_current_target): Add
732 to_get_thread_local_address.
733 * target.h (to_get_thread_local_address): Export.
734 (target_get_thread_local_address): Define.
735 (target_get_thread_local_address_p): Define.
736 * thread-db.c: Include solib-svr4.h.
737 (td_thr_tls_get_addr_p): Define.
738 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
739 (thread_db_get_thread_local_address): New function.
740 (init_thread_db_ops): Initialize to_get_thread_local_address.
741 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
742 * configure: Regenerate.
743 * config.in: Regenerate.
744
745 2002-11-11 David Carlton <carlton@math.stanford.edu>
746
747 * linespec.c (set_flags): New function.
748 (decode_line_1): Move code into set_flags.
749
750 2002-11-11 David Carlton <carlton@math.stanford.edu>
751
752 * linespec.c (decode_line_1): Move chunks of code to separate
753 functions.
754 (initialize_defaults): New function.
755 (decode_indirect): New function.
756
757 2002-11-11 Andrew Cagney <ac131313@redhat.com>
758
759 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
760 instead of void_code_ptr.
761 (sigtramp_saved_pc): Ditto.
762
763 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
764 i386_fp_regnum_p.
765
766 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
767
768 * gdbtypes.h (struct main_type): Move artificial flag out of
769 loc. New member of ``struct field'' named static_kind. Reduce
770 overloaded meaning of bitsize.
771 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
772 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
773 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
774
775 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
776 new fields.
777 (template_to_fixed_record_type, template_to_static_fixed_type)
778 (to_record_with_fixed_variant_part): Likewise.
779 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
780 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
781 * dwarfread.c (struct_type, enum_type): Likewise.
782 * hpread.c (hpread_read_enum_type)
783 (hpread_read_function_type, hpread_read_doc_function_type)
784 (hpread_read_struct_type): Likewise.
785 * mdebugread.c (parse_symbol): Likewise.
786
787 2002-11-10 Andrew Cagney <ac131313@redhat.com>
788
789 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
790 * stack.c (print_frame_info_base): Update.
791 (print_frame_info_base, frame_info): Update.
792 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
793 (sparc_frame_saved_pc): Update.
794 * ada-lang.c (find_printable_frame): Update.
795 * breakpoint.c (deprecated_frame_in_dummy): Update.
796
797 2002-11-09 Mark Kettenis <kettenis@gnu.org>
798
799 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
800 defined.
801 (regmap): Extend to cover all registers.
802 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
803 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
804 definitions.
805 (fetch_register, sore_register): Simplify.
806 (old_fetch_inferior_registers, old_store_inferior_registers):
807 Remove functions.
808 (cannot_fetch_register, cannot_store_register): Change
809 implementation to use regmap array to decide which registers
810 cannot be fetched/stored. This removes $orig_eax from the
811 registers that cannot be fetched/stored.
812 (fetch_inferior_registers): Call fetch_register directly instead
813 of calling old_fetch_inferior_registers.
814 (store_inferior_registers): Call store_register directly instead
815 of calling old_store_inferior_registers.
816 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
817 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
818 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
819
820 2002-11-09 Klee Dienes <kdienes@apple.com>
821
822 * i387-tdep.c (i387_supply_register): When called with NULL as a
823 buffer, mark the register as not provided (to mirror the behavior
824 of supply_register).
825 (i387_supply_fxsave): Ditto.
826 (i387_supply_fsave): Ditto (inherits the behavior from
827 i387_supply_register).
828
829 2002-11-09 Klee Dienes <kdienes@apple.com>
830
831 * blockframe.c (sigtramp_saved_pc): Use
832 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
833 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
834 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
835
836 2002-11-09 Andrew Cagney <ac131313@redhat.com>
837
838 * frame.c (get_prev_frame): Test prev_p to identify a previously
839 unwound frame. Initialize prev_p.
840 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
841 comment.
842
843 2002-11-09 Andrew Cagney <ac131313@redhat.com>
844
845 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
846 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
847 more comments. Zap dead code.
848
849 2002-11-09 Mark Kettenis <kettenis@gnu.org>
850
851 * infcmd.c (print_vector_info, print_float_info): Move code that
852 checks whether the target has any registers and whether there is a
853 selected frame up, such that it is also used if a target provides
854 multi-arch definitions of these functions.
855
856 2002-11-08 Andrew Cagney <ac131313@redhat.com>
857
858 * Makefile.in (DESTDIR): Define.
859 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
860 prefix.
861
862 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
863 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
864
865 2002-11-08 Andrew Cagney <ac131313@redhat.com>
866
867 * i386-linux-tdep.c: Include "reggroups.h".
868 (i386_linux_register_reggroup_p): New function.
869 (i386_linux_init_abi): Set register_reggroup_p to
870 i386_linux_register_reggroup_p.
871 * i386-tdep.h (i386_register_reggroup_p): Declare.
872 * i386-tdep.c: Include "reggroups.h".
873 (i386_init_reggroups): New function.
874 (i386_add_reggroups): New function.
875 (i386_register_reggroup_p): New function.
876 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
877 (_initialize_i386_tdep): Call i386_init_reggroups.
878 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
879 specific reggroups.
880
881 2002-11-09 Mark Kettenis <kettenis@gnu.org>
882
883 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
884 request that's available in *BSD.
885
886 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
887
888 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
889 FDOFF_REGNUM.
890
891 2002-11-08 Andrew Cagney <ac131313@redhat.com>
892
893 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
894 * dummy-frame.c (find_dummy_frame): Rename
895 generic_find_dummy_frame, make static. Return the dummy frame
896 instead of the regcache.
897 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
898 (cached_find_dummy_frame): New function. Use find_dummy_frame.
899 (dummy_frame_register_unwind): Rename
900 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
901 * dummy-frame.h (dummy_frame_register_unwind): Rename
902 generic_call_dummy_register_unwind.
903
904 2002-11-08 Mark Kettenis <kettenis@gnu.org>
905
906 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
907 except the inclusion of "i386/tm-i386.h", to...
908 * config/i386/nm-i386v42mp.h: ...here.
909 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
910
911 2002-11-08 Andrew Cagney <ac131313@redhat.com>
912
913 * Makefile.in (frame.o): Update dependencies.
914 * blockframe.c (current_frame, frame_obstack_alloc)
915 (frame_saved_regs_zalloc, get_current_frame)
916 (set_current_frame, create_new_frame)
917 (set_unwind_by_pc, get_next_frame)
918 (flush_cached_frames, reinit_frame_cache)
919 (frame_saved_regs_register_unwind)
920 (deprecated_generic_get_saved_register)
921 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
922 (_initialize_blockframe): Move frame code from here...
923 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
924 "annotate.h" and "dummy-frame.h".
925 (_initialize_frame): New function.
926
927 2002-11-08 Jim Blandy <jimb@redhat.com>
928
929 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
930 when we finish a function a context.
931 * buildsym.h (outermost_context_p): New macro.
932 (Bug analyzed by David Edelsohn.)
933
934 2002-11-08 Andrew Cagney <ac131313@redhat.com>
935
936 * blockframe.c: Include "dummy-frame.h".
937 (struct dummy_frame, dummy_frame_stack)
938 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
939 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
940 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
941 (generic_save_call_dummy_addr, generic_pop_current_frame)
942 (generic_pop_dummy_frame, generic_fix_call_dummy)
943 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
944 dummy frame code from here...
945 * dummy-frame.c: ...to here. New file.
946 * dummy-frame.h: New file.
947 (generic_call_dummy_register_unwind): Declare.
948 (generic_find_dummy_frame): Declare.
949 * Makefile.in (SFILES): Add dummy-frame.c.
950 (dummy-frame.o): Specify dependencies.
951 (dummy_frame_h): Define.
952 (COMMON_OBS): Add dummy-frame.o.
953 (blockframe.o): Update dependencies.
954
955 2002-11-08 Jim Blandy <jimb@redhat.com>
956
957 * dwarf2read.c (read_func_scope): Restore local_symbols and
958 param_symbols after we finish the function context. (Based on a
959 patch from David Edelsohn.)
960
961 2002-11-08 David Carlton <carlton@math.stanford.edu>
962
963 * linespec.c (symbol_found): New function.
964 (minsym_found): New function.
965 (decode_line_1): Separate out some code into separate functions.
966
967 2002-11-08 Joel Brobecker <brobecker@gnat.com>
968
969 * i386-tdep.c (i386_frameless_signal_p): Make non static for
970 the benefit of the interix target.
971 * i386-tdep.h (i386_frameless_signal_p): Declare.
972
973 2002-11-08 Andrew Cagney <ac131313@redhat.com>
974
975 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
976 declaration that snuck in from change below.
977
978 2002-11-06 Andrew Cagney <cagney@redhat.com>
979
980 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
981 all callers.
982 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
983 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
984 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
985 (i386_mxcsr_regnum_p): new function. Use instead of
986 MXCSR_REGNUM_P.
987 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
988 (i386_sse_regnum_p): Declare.
989 (i386_mxcsr_regnum_p): Declare.
990 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
991 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
992 (IS_FP_REGNUM): Update definition.
993 (IS_FPU_CTRL_REGNUM): Update definition..
994 (IS_SSE_REGNUM): Update definition..
995 * i386v-nat.c (register_u_addr): Update.
996 * go32-nat.c (fetch_register): Update.
997 (store_register): Update.
998
999 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1000
1001 Preparation work to convert the hppa targets to multiarch partial.
1002
1003 * hppa-tdep.c: Add new functions replacing macro bodies from
1004 config/pa/tm-hppa.h. These function will be used to initialize
1005 the gdbarch structure. Import some comments from tm-hppa.h,
1006 and place them where appropriate, to avoid loosing them when
1007 we cleanup this file.
1008 (hppa_reg_struct_has_addr): New function.
1009 (hppa_inner_than): New function.
1010 (hppa_stack_align): New function.
1011 (hppa_pc_requires_run_before_use): New function.
1012 (hppa_instruction_nullified): New function.
1013 (hppa_register_byte): New function.
1014 (hppa_register_virtual_type): New function.
1015 (hppa_store_struct_return): New function.
1016 (hppa_cannot_store_register): New function.
1017 (hppa_frame_args_address): New function.
1018 (hppa_frame_locals_address): New function.
1019 (hppa_smash_text_address): New function.
1020 (hppa_coerce_float_to_double): New function. Requires the inclusion
1021 of "language.h".
1022
1023 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1024
1025 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1026 gdbarch-eligible macro to a call to the new associated function
1027 created in hppa-tdep.c.
1028 (INNER_THAN): Likewise.
1029 (STACK_ALIGN): Likewise.
1030 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1031 (INSTRUCTION_NULLIFIED): Likewise.
1032 (REGISTER_BYTE): Likewise.
1033 (REGISTER_VIRTUAL_TYPE): Likewise.
1034 (STORE_STRUCT_RETURN): Likewise.
1035 (CANNOT_STORE_REGISTER): Likewise.
1036 (FRAME_ARGS_ADDRESS): Likewise.
1037 (FRAME_LOCALS_ADDRESS): Likewise.
1038 (SMASH_TEXT_ADDRESS): Likewise.
1039 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1040 (ABOUT_TO_RETURN): Delete, as no longer used.
1041
1042 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1043
1044 * printcmd.c (disassemble_command): Remove obsolete function.
1045 (_initialize_printcmd): Do not create disassemble command here.
1046 * cli/cli-cmds.c (disassemble_command): New function. Implements
1047 disassemble command.
1048 (init_cli_cmds): Create disassemble command here instead.
1049
1050 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1051
1052 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1053
1054 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1055
1056 * regcache.h (regcache_cooked_read_using_offset_hack)
1057 (regcache_cooked_write_using_offset_hack): Delete declarations.
1058 (register_changed): Delete declaration.
1059 * regcache.c (regcache_cooked_read_using_offset_hack)
1060 (regcache_cooked_write_using_offset_hack): Delete functions.
1061 (cooked_xfer_using_offset_hack): Delete function.
1062 (register_changed): Delete function.
1063
1064 2002-11-07 Jim Blandy <jimb@redhat.com>
1065
1066 * macroscope.c: #include "complaints.h".
1067 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1068 but not in the macro table.
1069 * Makefile.in (macroscope.o): Record dependency.
1070
1071 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1072
1073 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1074
1075 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1076
1077 * regcache.c (deprecated_registers_fetched): Update.
1078 * regcache.h (deprecated_registers_fetched): Rename
1079 registers_fetched.
1080 * remote-vxsparc.c (vx_read_register): Update.
1081 * remote-vxmips.c (vx_read_register): Update.
1082 * remote-vx68.c (vx_read_register): Update.
1083 * irix5-nat.c (fetch_core_registers): Update.
1084 * mipsm3-nat.c (fetch_inferior_registers): Update.
1085 * sun3-nat.c (fetch_inferior_registers): Update.
1086 * symm-nat.c (fetch_inferior_registers): Update.
1087 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1088 (fetch_core_registers): Update.
1089 (fetch_kcore_registers): Update.
1090 * mips-nat.c (fetch_inferior_registers): Update.
1091 * corelow.c (get_core_registers): Update.
1092 * a68v-nat.c (fetch_inferior_registers): Update.
1093
1094 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1095
1096 Put in place the framework necessary for multiarching the hppa targets.
1097 * hppa-tdep.c (hppa_gdbarch_init): New function.
1098 (hppa_dump_tdep): New function.
1099 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1100 tdep structure dumper.
1101 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1102 until the multi-arching conversion has partially been completed.
1103
1104 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1105
1106 * valops.c (value_assign): Merge lval_register case into
1107 lval_reg_frame_relative. Use frame_register and
1108 regcache_cooked_write instead of get_saved_register and
1109 write_register_bytes. After flushing the register cache, try to
1110 re-select the selected frame.
1111
1112 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1113
1114 * regcache.h (deprecated_register_valid): Rename register_valid.
1115 * regcache.c: Update.
1116 * ia64-aix-nat.c: Update.
1117 * i386gnu-nat.c: Update.
1118 * alpha-nat.c: Update.
1119 * sparc-nat.c: Update.
1120 * lynx-nat.c: Update.
1121 * remote-mips.c: Update.
1122
1123 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1124
1125 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1126 to end of file, to be more consistent with the pratice followed
1127 by other targets.
1128
1129 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1130
1131 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1132 (print_float_info): Print registers in float_reggroup.
1133 (print_vector_info): Print registers in vector_reggroup.
1134 (default_print_registers_info): When all, print registers in
1135 all_reggroup. Otherwize, print registers in general_reggroup.
1136 (registers_info): Rewrite. Add support for register groups.
1137 Eliminate a goto.
1138
1139 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1140
1141 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1142 ages.
1143 (symtab_symbol_info): Remove eons old ifdeffed out code.
1144 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1145 command.
1146
1147 2002-11-06 Theodore A. Roth <troth@openavr.org>
1148
1149 * c-exp.y: Add missing semi-colons.
1150 * f-exp.y: Add missing semi-colons.
1151 * m2-exp.y: Add missing semi-colons.
1152 * p-exp.y: Add missing semi-colons.
1153 Add empty action to start rule to avoid a type clash error when
1154 building with bison >= 1.50.
1155
1156 2002-11-06 Jim Blandy <jimb@redhat.com>
1157
1158 * macrotab.h (struct macro_source_file): Doc fix.
1159
1160 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1161
1162 * varobj.c (child_exists, cplus_number_of_children): Change
1163 STREQ macro references to strcmp.
1164 (cplus_name_of_child): Change code to handle the fact that
1165 fields are not necessarily contiguous with regards to their
1166 access control. This is a fix for PR gdb/792.
1167
1168 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1169
1170 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1171 * gdbarch.h, gdbarch.c: Regnerate.
1172 * frame.h (frame_register): Declare.
1173 * frame.c (frame_register): New function.
1174 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1175 GET_SAVED_REGISTER, otherwize call
1176 generic_unwind_get_saved_register.
1177 (frame_register_read): Use frame_register instead of
1178 get_saved_register.
1179
1180 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1181
1182 From Jim Ingham <jingham@apple.com>:
1183 * event-top.c (gdb_disable_readline): New function.
1184 (_initialize_event_loop): Move comment.
1185
1186 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1187
1188 * event-loop.c (start_event_loop): Add comment.
1189 Update copyright.
1190
1191 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1192
1193 * infcmd.c (default_print_registers_info): Do not call
1194 PRINT_REGISTER_HOOK.
1195
1196 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1197
1198 * sparc-tdep.c (sparc_print_register_hook): Make static.
1199 (sparc_print_registers_info): New function.
1200 (sparc_do_registers_info): New function.
1201 (sparclet_print_registers_info): New function.
1202 (sparclet_do_registers_info): New function.
1203 (do_sparc_print_registers_info): New function.
1204 (sparc_print_registers): New static function, clone of infcmd.c's
1205 default_print_registers_info.
1206 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1207 (sparclet_do_registers_info): Declare.
1208 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1209 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1210 Re-define.
1211 (sparc_do_registers_info): Declare.
1212 (PRINT_REGISTER_HOOK): Delete macro.
1213 (sparc_print_register_hook): Delete declaration.
1214
1215 2002-11-05 David Carlton <carlton@math.stanford.edu>
1216
1217 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1218 functions.
1219 (lookup_symbol_aux_local): New function.
1220 (lookup_symbol_aux_symtabs): New function.
1221 (lookup_symbol_aux_psymtabs): New function.
1222
1223 2002-11-05 David Carlton <carlton@math.stanford.edu>
1224
1225 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1226 previous values of 'objfile' and 'block'.
1227
1228 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1229
1230 * values.c (value_change_enclosing_type): Set
1231 enclosing_type field correctly also for the case where
1232 more memory needs to be allocated.
1233
1234 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1235
1236 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1237 of puts_filtered.
1238
1239 * i387-tdep.c (i387_print_float_info): Replace calls to
1240 register_read and deprecated_read_register_gen with calls to
1241 frame_register_read, and make the necessary adjustments to the
1242 surrounding code.
1243
1244 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1245
1246 * gdbarch.sh (register_reggroup_p): Allow default value.
1247 * gdbarch.h, gdbarch.c: Regenerate.
1248
1249 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1250
1251 * regcache.h: Add coment indicating replacements for deprecated
1252 functions.
1253
1254 2002-11-02 Andrew Cagney <cagney@redhat.com>
1255
1256 * reggroups.h, reggroups.c: New files.
1257 * regcache.c: Include "reggroups.h".
1258 (enum regcache_dump_what): Add `regcache_dump_groups'.
1259 (regcache_dump): Contract size of the "Type" column. When
1260 specified, dump the register's groups.
1261 (maintenance_print_register_groups): New function.
1262 (_initialize_regcache): Add command `maint print register-groups'.
1263 * Makefile.in (COMMON_OBS): Add reggroups.o
1264 (SFILES): Add reggroups.c.
1265 (reggroups_h): Define.
1266 (regcache.o, gdbarch.o): Update dependencies.
1267 (reggroups.o): Specify dependencies.
1268 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1269 Add opaque declaration for `struct reggroup' in generated .h file.
1270 Include "reggroups.h" in generated .c file.
1271 gdbarch.h, gdbarch.c: Re-generate.
1272
1273 2002-11-02 Andrew Cagney <cagney@redhat.com>
1274
1275 * regcache.h (deprecated_read_register_gen): Rename
1276 read_register_gen.
1277 (deprecated_write_register_gen): Rename write_register_gen.
1278 * i387-tdep.c: Update.
1279 * x86-64-linux-nat.c: Update
1280 * wince.c: Update.
1281 * thread-db.c: Update.
1282 * win32-nat.c: Update.
1283 * mips-tdep.c: Update.
1284 * d10v-tdep.c: Update.
1285 * cris-tdep.c: Update.
1286 * remote-sim.c: Update.
1287 * remote-rdi.c: Update.
1288 * remote-rdp.c: Update.
1289 * frame.c: Update.
1290 * target.c: Update.
1291 * blockframe.c: Update.
1292 * x86-64-tdep.c: Update.
1293 * xstormy16-tdep.c: Update.
1294 * sh-tdep.c: Update.
1295 * s390-tdep.c: Update.
1296 * rs6000-tdep.c: Update.
1297 * sparc-tdep.c: Update.
1298 * i386-tdep.c: Update.
1299 * dwarf2cfi.c: Update.
1300 * regcache.c: Update.
1301
1302 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1303
1304 New interix-specific files:
1305 * config/i386/nm-interix.h: New file.
1306 * config/i386/interix.mh: New file.
1307 * config/i386/interix.mt: New file.
1308 * i386-interix-nat.c: New file.
1309 * i386-interix-tdep.c: New file.
1310
1311 2002-11-01 Andrew Cagney <cagney@redhat.com>
1312
1313 * frame.h (deprecated_generic_get_saved_register): Rename
1314 generic_get_saved_register.
1315 * blockframe.c (deprecated_generic_get_saved_register): Update.
1316 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1317 (xstormy16_frame_saved_register): Update.
1318 * sh-tdep.c (sh_gdbarch_init): Update.
1319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1320 * ia64-tdep.c (ia64_get_saved_register): Update.
1321 * cris-tdep.c (cris_gdbarch_init): Update.
1322 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1323 * arm-tdep.c (arm_gdbarch_init): Update.
1324
1325 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1326
1327 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1328
1329 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1330
1331 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1332 trampolines in sigaction.
1333
1334 2002-10-31 Andrew Cagney <cagney@redhat.com>
1335
1336 * h8300-tdep.c: Include "gdb_assert.h".
1337 (h8300_print_register): Add gdbarch, file and frame parameters.
1338 Use frame_read_unsigned_register to read the register's value.
1339 Use fprintf_filtered to display output.
1340 (h8300_print_registers_info): Replace h8300_do_registers_info.
1341 (h8300_gdbarch_init): Set print_registers_info.
1342
1343 2002-10-31 Andrew Cagney <cagney@redhat.com>
1344
1345 * frame.c (frame_read_unsigned_register): New function.
1346 (frame_read_signed_register): New function.
1347 * frame.h (frame_read_unsigned_register): Declare.
1348 (frame_read_signed_register): Declare.
1349
1350 2002-10-31 Andrew Cagney <cagney@redhat.com>
1351
1352 * h8500-tdep.c (h8500_print_registers_info): New static function,
1353 clone of infcmd.c's default_print_registers_info.
1354 (h8500_do_registers_info): New funtion.
1355 (h8500_print_register_hook): Rename print_register_hook, make
1356 static.
1357
1358 * config/h8500/tm-h8500.h: Update copyright.
1359 (DEPRECATED_DO_REGISTERS_INFO): Define.
1360 (h8500_do_registers_info: Declare.
1361 (PRINT_REGISTER_HOOK): Delete macro.
1362 (print_register_hook): Delete function.
1363
1364 2002-10-31 Andrew Cagney <cagney@redhat.com>
1365
1366 * z8k-tdep.c (z8k_print_register_hook): Make static.
1367 (z8k_print_registers_info): New static function, clone of
1368 infcmd.c's default_print_registers_info.
1369 (z8k_do_registers_info): New function. Wrap
1370 z8k_print_registers_info.
1371 * config/z8k/tm-z8k.h: Update copyright.
1372 (PRINT_REGISTER_HOOK): Delete macro.
1373 (z8k_print_register_hook): Delete declaration.
1374 (DEPRECATED_DO_REGISTERS_INFO): Define.
1375 (z8k_do_registers_info): Declare.
1376
1377 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1378
1379 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1380 as this is already provided by value.h, and was actually causing
1381 a compilation error because of a conflict in parameter type
1382 declaration due to a missing const keyword.
1383 (low_text_segment_addres): Fix a compilation warning.
1384
1385 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1386
1387 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1388 registers without a name.
1389 (mips_linux_cannot_store_register): Don't store registers without
1390 a name.
1391
1392 2002-10-28 David Carlton <carlton@math.stanford.edu>
1393
1394 * symtab.c (find_addr_symbol): Delete. (It was already commented
1395 out.)
1396 * symtab.h: Delete prototype for find_addr_symbol.
1397
1398 2002-10-26 Andrew Cagney <cagney@redhat.com>
1399
1400 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1401 DO_REGISTERS_INFO.
1402 gdbarch.h, gdbarch.c: Re-generate.
1403 * infcmd.c (default_print_registers_info): Update reference.
1404 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1405 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1406 * sh-tdep.c (sh_gdbarch_init): Ditto.
1407 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1408 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1409
1410 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1411
1412 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1413 cfi_init_extra_frame_info.
1414 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1415 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1416
1417 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1418 target where necessary. Add more comments and remove the ones
1419 that don't provide any useful information.
1420
1421 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1422 deprecated_read_register_dummy with
1423 frame_unwind_unsigned_register.
1424
1425 * i386-tdep.c (i386_extract_struct_value_address): Use
1426 regcache_raw_read_unsigned instead of
1427 regcache_cooked_read_unsigned since we know that the register
1428 we're reading isn't a pseudo register. Rename variable 'val' into
1429 the more descriptive 'addr'.
1430
1431 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1432 (x86_64_push_return_address): Add comment.
1433 (x86_64_pop_frame): Make static.
1434 (examine_argument): Clarify comment.
1435 (x86_64_skip_prologue): Make prolog_expact variable static.
1436
1437 * dwarf2cfi.c: Fix some formatting problems.
1438 (context_cpy, read_encoded_pointer): Clarify comments.
1439
1440 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1441 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1442 i386 target back into x86_64_gdbarch_init. Add some comments and
1443 remove meaningless ones.
1444
1445 2002-10-25 Andrew Cagney <cagney@redhat.com>
1446
1447 * complaints.h (struct deprecated_complaint): Rename `struct
1448 complaint'.
1449 * complaints.c (complain): Update.
1450 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1451 incorrect comment indicating that "symfile.h" was being included
1452 for the `struct complaint' definition.
1453 * remote-vx.c: Update.
1454 * objc-lang.c: Update.
1455 * xcoffread.c: Update.
1456 * hpread.c: Update.
1457 * mdebugread.c: Update.
1458 * stabsread.c: Update.
1459 * dwarf2read.c: Update.
1460 * dwarfread.c: Update.
1461 * elfread.c: Update.
1462 * coffread.c: Update.
1463 * stabsread.h: Update.
1464 * dbxread.c: Update.
1465 * buildsym.c: Update.
1466 * gdbtypes.c: Update.
1467 * macrotab.c: Update.
1468
1469 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1470
1471 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1472 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1473 (x86_64_init_abi): ...new function.
1474
1475 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1476 * i386v-nat.c: Include "i386-tdep.h".
1477
1478 2002-10-25 Andrew Cagney <cagney@redhat.com>
1479
1480 * gdbtypes.c (address_space_name_to_int): Update.
1481 (address_space_int_to_name): Update.
1482 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1483 multi-arch predicate.
1484 (address_class_name_to_type_flags): Ditto.
1485 * gdbarch.h, gdbarch.c: Re-generate.
1486
1487 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1488
1489 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1490
1491 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1492
1493 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1494
1495 * symtab.h (INIT_SAL): Delete macro.
1496 (init_sal): Export.
1497 * symtab.c (init_sal): New function.
1498
1499 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1500 to init_sal function call.
1501 (find_sal_from_funcs_and_line): Ditto.
1502 (all_sals_for_line): Ditto.
1503 * breakpoint.c (create_internal_breakpoint): Ditto.
1504 (create_fork_vfork_event_catchpoint): Ditto.
1505 (create_exec_event_catchpoint): Ditto.
1506 (parse_breakpoint_sals): Ditto.
1507 (watch_command_1): Ditto.
1508 (handle_gnu_4_16_catch_command): Ditto.
1509 (clear_command): Ditto.
1510 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1511 * infcmd.c (run_stack_dummy): Ditto.
1512 * infrun.c (process_event_stop_test): Ditto.
1513 (check_sigtramp2): Ditto.
1514 (step_over_function): Ditto.
1515 * linespec.c (decode_line_2): Ditto.
1516 (decode_line_1): Ditto.
1517 * source.c (line_info): Ditto.
1518 * symtab.c (find_pc_sect_line): Ditto.
1519
1520 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1521
1522 * dwarf2cfi.c (struct context)
1523 (struct context_reg): Moved to dwarf2cfi.h
1524 (context_alloc, frame_state_alloc, context_cpy):
1525 Made extern instead of static, removed prototypes.
1526 * dwarf2cfi.h (struct context)
1527 (struct context_reg): New, moved from dwarf2cfi.c
1528 (context_alloc, frame_state_alloc, context_cpy):
1529 New prototypes.
1530 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1531 Changed from static to extern.
1532 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1533 (LINUX_SIGCONTEXT_FP_OFFSET)
1534 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1535 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1536 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1537 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1538 set_gdbarch_*() calls now use x86-64 specific functions
1539 instead of DWARF2 CFI ones.
1540 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1541 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1542 (x86_64_init_extra_frame_info): New prototypes.
1543
1544 2002-10-23 David Carlton <carlton@math.stanford.edu>
1545
1546 * linespec.c: #include "parser-defs.h".
1547 Delete prototype for find_template_name_end.
1548 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1549
1550 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1551
1552 * NEWS: add recent mi fixes.
1553 * varobj.c (struct varobj): Add new "updated" flag.
1554 (new_variable): Default "updated" flag to 0.
1555 (varobj_set_value): Set "updated" flag to 1 if value
1556 changes.
1557 (varobj_update): Check varobj "updated" flag before
1558 comparing old and refreshed values. Fix for
1559 PR gdb/702.
1560
1561 2002-10-23 David Carlton <carlton@math.stanford.edu>
1562
1563 * parse.c (parse_exp_1): Use BLOCK_START.
1564 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1565 SYMBOL_BLOCK_VALUE.
1566 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1567
1568 2002-10-23 David Carlton <carlton@math.stanford.edu>
1569
1570 * symtab.c: Delete cplusplus_hint.
1571 Delete prototype for find_template_name_end.
1572
1573 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1574
1575 * symtab.h: Update comment.
1576
1577 2002-10-23 Michael Snyder <msnyder@redhat.com>
1578
1579 * printcmd.c (address_info): Restore quotes in output.
1580 * valops.c (value_of_local): Restore quotes in error message.
1581
1582 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1583
1584 * symtab.c (symbol_demangled_name): New function.
1585 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1586 turning most of it into a function.
1587 (symbol_demangled_name): Export.
1588
1589 2002-10-23 Michael Snyder <msnyder@redhat.com>
1590
1591 * valops.c (value_of_local): Restore quotes in error message.
1592
1593 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1594
1595 * symtab.c (symbol_init_language_specific): New function.
1596 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1597 turning most of it into a function.
1598 (symbol_init_language_specific): Export.
1599
1600 2002-10-23 David Carlton <carlton@math.stanford.edu>
1601
1602 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1603 (dwarf_attr_name): Ditto.
1604 (dwarf_type_encoding_name): Ditto.
1605 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1606 (process_die): Handle DW_TAG_namespace,
1607 DW_TAG_imported_declaration, DW_TAG_imported_module.
1608 (read_namespace): New function.
1609
1610 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1611
1612 * configure.in: Define NEW_PROC_API on Interix too.
1613 * configure: Regenerate.
1614
1615 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1616
1617 * configure: Regenerate using the proper version of autoconf.
1618
1619 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1620
1621 * findvar.c (read_var_value): Temporarily disable TLS code, until
1622 complete TLS support is added.
1623
1624 2002-10-21 Jim Blandy <jimb@redhat.com>
1625 Elena Zannoni <ezannoni@redhat.com>
1626
1627 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1628 for thread local storage locations.
1629 (struct symbol): Add objfile field.
1630 (SYMBOL_OBJFILE): Define.
1631 * dwarf2read.c (is_thread_local): New static variable.
1632 (new_symbol): If variable is in thread local fill in address class
1633 and objfile appropriately.
1634 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1635 stack operation.
1636 * printcmd.c (address_info): Print the information for thread
1637 local storage variable.
1638 * findvar.c (read_var_value): In case of thread local variable,
1639 defer to the target vector code to compute address.
1640
1641 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1642
1643 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1644 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1645
1646 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1647
1648 * symtab.h (address_class): Rename
1649 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1650 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1651 * printcmd.c (address_info): Ditto.
1652 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1653
1654 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1655
1656 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1657 DBREG_DRX macro to acces debug registers.
1658
1659 * Makefile.in (i386obsd-tdep.o): New target.
1660
1661 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1662 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1663
1664 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1665 * config/i386/obsd.mt: New file.
1666 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1667 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1668 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1669 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1670 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1671 * i386obsd-tdep.c: New file.
1672
1673 2002-10-19 Adam Fedor <fedor@gnu.org>
1674
1675 * objc-exp.y (name_not_typename): Fix invalid comment.
1676
1677 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1678
1679 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1680 to allocate partial syms and macro byte caches.
1681
1682 2002-10-18 David Carlton <carlton@math.stanford.edu>
1683
1684 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1685
1686 2002-10-18 Adam Fedor <fedor@gnu.org>
1687
1688 * stabsread.c (find_name_end): New function.
1689 (define_symbol): Use it.
1690
1691 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1692
1693 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1694 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1695 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1696 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1697
1698 2002-10-17 David Carlton <carlton@math.stanford.edu>
1699
1700 * symfile.h: Add opaque declaration for struct obstack.
1701 Declare obsavestring to take a const char *.
1702 * symfile.c (obsavestring): Make first argument a const char *.
1703
1704 2002-10-16 Adam Fedor <fedor@gnu.org>
1705
1706 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1707 names when matching breakpoints in current file.
1708
1709 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1710
1711 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1712 (read_tag_pointer_type): Add address class support.
1713 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1714 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1715 New methods.
1716 * gdbarch.h, gdbarch.c: Regenerate.
1717 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1718 (make_type_with_address_space, recursive_type_dump): Add address
1719 class support.
1720 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1721 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1722 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1723
1724 2002-10-16 Klee Dienes <kdienes@apple.com>
1725
1726 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1727 to get the last character of a char[] buffer, not
1728 name[sizeof(vptr_name)-1].
1729
1730 2002-10-14 Adam Fedor <fedor@gnu.org>
1731
1732 * symtab.h: New objc_specific struct.
1733 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1734 (SYMBOL_DEMANGLED_NAME): Likewise.
1735
1736 2002-10-14 Adam Fedor <fedor@gnu.org>
1737
1738 * symfile.c (init_filename_language_table): Add ObjC file extension.
1739
1740 2002-10-14 Adam Fedor <fedor@gnu.org>
1741
1742 * utils.c (puts_filtered_tabular): New function.
1743 (fprintf_symbol_filtered): Get ObjC demangled name.
1744 * defs.h (puts_filtered_tabular): Declared.
1745
1746 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1747
1748 * c-lang.h (c_type_print_varspec_prefix): Delete.
1749 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1750 ``need_post_space'' parameter. Adjust all callers.
1751
1752 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1753
1754 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1755 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1756 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1757 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1758
1759 2002-10-13 Adam Fedor <fedor@gnu.org>
1760
1761 * source.c (print_source_lines): Update comments.
1762
1763 2002-10-13 Adam Fedor <fedor@gnu.org>
1764
1765 * valops.c (value_of_local): New function.
1766 (value_of_this): Use it.
1767 * value.h (value_of_local): Declared.
1768
1769 2002-10-13 Adam Fedor <fedor@gnu.org>
1770
1771 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1772 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1773
1774 2002-10-12 Adam Fedor <fedor@gnu.org>
1775
1776 * language.c (binop_result_type): Add language_objc to case.
1777 (integral_type): Likewise.
1778 (character_type): Likewise.
1779 (string_type): Likewise.
1780 (boolean_type): Likewise.
1781 (structured_type): Likewise.
1782 (binop_type_check): Likewise.
1783
1784 2002-10-11 Adam Fedor <fedor@gnu.org>
1785
1786 * printcmd.c (address_info): Print 'self' for ObjC.
1787
1788 2002-10-11 Adam Fedor <fedor@gnu.org>
1789
1790 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1791 OP_SELF.
1792
1793 2002-10-11 Adam Fedor <fedor@gnu.org>
1794
1795 * language.h (CAST_IS_CONVERSION): Add language_objc.
1796
1797 2002-10-11 Adam Fedor <fedor@gnu.org>
1798
1799 * defs.h (enum language): Add language_objc.
1800
1801 2002-10-11 Klee Dienes <kdienes@apple.com>
1802
1803 * corefile.c (read_memory_typed_address): New function.
1804 * gdbcore.h (read_memory_typed_address): Add prototype.
1805 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1806 to read a value destined for a CORE_ADDR, not read_memory_integer.
1807 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1808 (f77_get_dynamic_lowerbound): Ditto.
1809
1810 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1811
1812 * utils.c (string_to_core_addr): After turning string into
1813 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1814 which will do necessary sign-extension, etc.
1815
1816 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1817
1818 * c-exp.y (THIS): Delete token and grammar rule.
1819 (yylex): Don't return THIS.
1820 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1821 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1822 * demangle.c (cplus_markers): Update comment. Put '$'
1823 first. Remove CPLUS_MARKER.
1824 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1825 * jv-exp.y (THIS): Delete token and grammar rule.
1826 (yylex): Don't return THIS.
1827 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1828 * objc-exp.y (THIS): Delete token and grammar rule.
1829 (yylex): Don't return THIS.
1830 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1831 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1832 (read_member_functions): Likewise for opname.
1833 (read_tilde_fields): Use is_cplus_marker.
1834
1835 * defs.h (CPLUS_MARKER): Don't define.
1836 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1837 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1838 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1839 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1840 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1841
1842 * config/i386/tm-i386v4.h: Delete file.
1843 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1844 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1845 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1846 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1847 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1848 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1849 * config/i386/i386v4.mt (TM_FILE): Likewise.
1850 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1851
1852 2002-10-10 Marko Mlinar <markom@opencores.org>
1853
1854 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1855 accidentially not commited 2002-10-09
1856 * gdbarch.h, gdbarch.c: Re-generate.
1857
1858 2002-10-09 Marko Mlinar <markom@opencores.org>
1859
1860 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1861 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1862 * gdbarch.h, gdbarch.c: Re-generate.
1863
1864 2002-10-08 Petr Sorfa <petrs@caldera.com>
1865
1866 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1867
1868 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1869 so we can work on more than one compilation unit at a time. This
1870 helps prepare GDB to handle inter-CU die references.
1871 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1872 the code to be defined before struct comp_unit_head.
1873 (comp_unit_head): Added new members - offset, cu_head,
1874 begin_die, next and dwarf2_abbrevs.
1875 (dwarf2_abbrevs): Removed single static var; now member of
1876 struct comp_unit_head.
1877 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1878 members.
1879 (psymtab_to_symtab_1): Changed to work with the new
1880 struct comp_unit_head.
1881 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1882 constructs the dwarf2_abbrevs[] inside the cu_header.
1883 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1884 dwarf2_abbrev table to clean up.
1885 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1886 handling of dwarf2_abbrevs inside the cu_header.
1887 (read_partial_die): Now supports the call to the new
1888 dwarf2_lookup_abbrev.
1889 (read_full_die): Now supports the call to the new
1890 dwarf2_lookup_abbrev.
1891
1892 2002-10-06 Christopher Faylor <cgf@redhat.com>
1893
1894 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1895 insure that shell variables, such as "transformed_name" are propagated
1896 to later shell statements in rule.
1897
1898 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1899
1900 * config/i386/nm-i386sco.h: Add protection against
1901 multiple-inclusion. Include "i386/nm-i386v.h".
1902 (REGISTER_U_ADDR): Remove define.
1903 (i386_register_u_addr): Remove prototype.
1904
1905 2002-10-04 Michael Snyder <msnyder@redhat.com>
1906
1907 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1908 before treating it as a single-step event.
1909
1910 2002-10-03 Adam Fedor <fedor@gnu.org>
1911
1912 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1913 (objc_demangle): Remove assignment in if statements, Replace
1914 free with xfree.
1915 (add_msglist): Likewise.
1916 (end_msglist): Likewise.
1917 (complare_selectors): Likewise.
1918 (selectors_info): Likewise.
1919 (compare_classes): Likewise.
1920 (classes_info): Likewise.
1921 (print_object_command): Likewise.
1922 (find_objc_msgcall_submethod): Replace PTR with void *.
1923 * objc-lang.h: Remove check for __STDC__.
1924
1925 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1926
1927 * ui-out.h (ui_out_field_fmt_int): New prototype.
1928 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1929 of field width and alignment.
1930 * stack.c (print_frame_info_base): When printing frame level, use
1931 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1932 PR gdb/192
1933
1934 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1935
1936 * MAINTAINERS: Add self to Write After Approval list.
1937
1938 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1939
1940 * infcmd.c (interrupt_target_command_wrapper): Delete.
1941 (interrupt_target_command): Make non static.
1942 (nofp_registers_info): Make static.
1943 * stack.c (return_command_wrapper): Delete.
1944 (return_command): Make non static.
1945
1946 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1947
1948 * event-top.c (gdb_setup_readline): New function. Code moved from
1949 _initialize_event_loop().
1950 (_initialize_event_loop): Call gdb_setup_readline().
1951
1952 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1953
1954 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1955 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1956 * gdbarch.h, gdbarch.c: Re-generate.
1957
1958 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1959
1960 Fix PR gdb/778
1961 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1962 before recursing.
1963 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1964 of fill_in_vptr_fieldno.
1965
1966 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1967
1968 * inferior.h (registers_info, stepi_command, nexti_command,
1969 continue_command, interrupt_target_command): Export from infcmd.c.
1970 * frame.h (args_info, selected_frame_level_changed_hook,
1971 return_command): Export from stack.c.
1972 * v850ice.c (stepi_command, nexti_command, continue_command): use
1973 prototypes from inferior.h.
1974 * tracepoint.c (registers_info, args_info, locals_info): Use
1975 prototypes from frame.h and inferior.h.
1976 * Makefile.in (mi-main.o): Add dependency on frame.h.
1977
1978 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1979
1980 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1981 value in register 3 adjusted by ppc_gp0_regnum.
1982
1983 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1984
1985 2002-10-02 Marko Mlinar <markom@opencores.org>
1986
1987 * MAINTAINERS: Add myself to the Write After Approval list.
1988
1989 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1990
1991 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1992 of the section for the N64 ABI, fixed.
1993
1994 * config/mips/tm-irix6.h: Include solib.h.
1995
1996 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1997
1998 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1999 GNU operators.
2000
2001 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2002
2003 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2004 and that "mi0" syntax has been removed.
2005
2006 2002-09-30 David Carlton <carlton@math.stanford.edu>
2007
2008 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2009 * ppc-sysv-tdep.c: #include "gdb_string.h".
2010 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2011 pacify GCC.
2012
2013 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2014
2015 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2016 "vrsave"'s register number.
2017
2018 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2019
2020 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2021 use frame_unwind_signed_register to obtain the PC.
2022 (mips_frame_chain): Handle a generic dummy frame.
2023 (mips_init_extra_frame_info): When a generic dummy frame, don't
2024 re-compute the frame base.
2025 (mips_pop_frame): Handle generic dummy frames.
2026 (mips_gdbarch_init): When generic dummy frames, set
2027 use_generic_dummy_frames, push_dummy_frame to
2028 generic_push_dummy_frame, pc_in_call_dummy to
2029 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2030 generic_save_dummy_frame_tos.
2031
2032 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2033
2034 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2035 against TOP when TOP was explictly set.
2036 (generic_push_dummy_frame): Set TOP to zero.
2037
2038 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2039
2040 * event-loop.c (start_event_loop): Rename variable 'result' to
2041 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2042
2043 2002-09-30 Keith Seitz <keiths@redhat.com>
2044
2045 * gdb-events.sh (selected_thread_changed): New event.
2046 * gdb-events.c: Regenerated.
2047 * gdb-events.h: Regenerated.
2048
2049 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2050
2051 * MAINTAINERS: Add self to Write After Approval list.
2052
2053 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2054
2055 * disasm.c: New file.
2056 * disasm.h: New file.
2057 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2058 (compare_lines): Ditto.
2059 (dump_insns): Ditto.
2060 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2061 argument.
2062 (do_assembly_only): Ditto.
2063 (do_disassembly): Renamed to gdb_disassembly and moved to
2064 disasm.c. Sdded uiout argument.
2065 * Makefile.in: Add new files. Reorder SFILES list. Update
2066 dependencies. Include libgdb.a later in the insight executable.
2067
2068 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2069
2070 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2071 bfd/elf64-alpha-fbsd.c.
2072
2073 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2074
2075 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2076 i386gnu-tdep.c.
2077
2078 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2079
2080 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2081 __FUNCTION__.
2082 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2083 function name.
2084 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2085 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2086 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2087 (S_msg_sig_post_reply): Ditto.
2088
2089 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2090
2091 * sh-tdep.c (sh_use_struct_convention): Use definition according
2092 to ABI.
2093 (sh_push_arguments): Store in register with correct endianess.
2094 (sh_default_store_return_value): Ditto.
2095 (sh_gdbarch_init): Set sizeof long double to 8.
2096
2097 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2098
2099 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2100 Fix some whitespace problems.
2101
2102 2002-09-27 David Carlton <carlton@math.stanford.edu>
2103
2104 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2105 (mcore-tdep.o): Ditto.
2106 (ns32k-tdep.o): Ditto.
2107 (ns32knbsd-tdep.o): Ditto.
2108 (sh3-rom.o): Ditto.
2109 (vax-tdep.o): Ditto.
2110 * cris-tdep.c: #include "gdb_string.h"
2111 * mcore-tdep.c: Ditto.
2112 * ns32k-tdep.c: Ditto.
2113 * ns32knbsd-tdep.c: Ditto.
2114 * sh3-rom.c: Ditto.
2115 * vax-tdep.c: Ditto.
2116
2117 2002-09-27 David Carlton <carlton@math.stanford.edu>
2118
2119 * config/djgpp/fnchange.lst: Add entries for
2120 gdb/testsuite/gdb.c++/m-static files.
2121
2122 2002-09-27 Jim Wilson <wilson@redhat.com>
2123
2124 * MAINTAINERS: Add myself to the Write After Approval list.
2125
2126 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2127
2128 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2129
2130
2131 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2132
2133 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2134 frame.
2135
2136 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2137
2138 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2139 (rs6000_struct_return_address): Delete variable.
2140 (rs6000_store_struct_return): Update.
2141 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2142 deprecated_extract_struct_value_address.
2143 (rs6000_frame_align): New function.
2144 (rs6000_gdbarch_init): Set frame_align.
2145
2146 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2147
2148 From Grace Sainsbury <graces@redhat.com>:
2149 * Makefile.in (gdbtk-main.o): New target.
2150 (gdb.o): New target.
2151 (main_h): Define.
2152 (main.o): Update dependencies.
2153 (gdb$(EXEEXT)): Add gdb.o.
2154 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2155 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2156 (SUBDIR_GDBTK_CLEAN): Set.
2157 (install-gdbtk): Install the insight binary.
2158 (uninstall-gdbtk): New target.
2159 (all-gdbtk, clean-gdbtk): New rule.
2160 * top.c (use_windows): Default to zero.
2161 * main.c: Include "main.h".
2162 (main): Delete.
2163 (struct captured_main_args): Delete.
2164 (gdb_main): New function.
2165 * main.h: New file.
2166 * gdb.c: New File.
2167
2168 2002-09-25 Andrew Cagney <cagney@redhat.com>
2169
2170 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2171 (frame_map_regnum_to_name): New function.
2172 (frame_map_name_to_regnum): New function.
2173 * frame.h (frame_map_name_to_regnum): Declare.
2174 (frame_map_regnum_to_name): Declare.
2175 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2176 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2177 * parse.c: Do not include "builtin-regs.h".
2178 (target_map_name_to_register): Delete function.
2179 (write_dollar_variable): Use frame_map_name_to_regnum.
2180 * parser-defs.h (target_map_name_to_register): Delete declaration.
2181 * expprint.c: Include "frame.h".
2182 (print_subexp): Use frame_map_regnum_to_name.
2183 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2184 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2185
2186 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2187
2188 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2189 wasn't saved, and the next innermost frame is a dummy, return the
2190 dummy frame's link register.
2191
2192 2002-09-24 Jim Blandy <jimb@redhat.com>
2193
2194 Fix from Paul Breed:
2195 * main.c (captured_main): Add a `break' after the case for 'b'.
2196
2197 2002-09-24 Keith Seitz <keiths@redhat.com>
2198
2199 * varobj.c (c_type_of_child): Use get_target_type instead
2200 of TYPE_TARGET_TYPE.
2201
2202 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2203
2204 * source.c (get_current_or_default_source_symtab_and_line): Remove
2205 function.
2206 (set_default_source_symtab_and_line): New function. Attempts to
2207 determine a source file to list lines from if one is not currently
2208 defined.
2209 (get_current_source_symtab_and_line): Initialize sal.pc and
2210 sal.end fields.
2211 (set_current_source_symtab_and_line): Mark argument as const.
2212 * source.h: Update declarations and comments.
2213 * linespec.c (decode_line_1): Replace call to removed routine above.
2214 * stack.c (print_frame_info_base): Ditto.
2215 * cli/cli-cmds.c (edit_command): Ditto.
2216 (list_command): Ditto.
2217
2218 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2219
2220 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2221 sal.pc and sal.end fields.
2222 (get_current_or_default_source_symtab_and_line): Ditto.
2223 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2224 so we do not cause a new source symtab to be searched for (reverting an
2225 unintentional change from the 2002-09-20 patch).
2226 * scm-lang.c (scm_unpac): Ditto.
2227
2228 2002-09-21 Andrew Cagney <cagney@redhat.com>
2229
2230 * complaints.c (symfile_explanations): Remove new-line from
2231 ``isolated_message''.
2232 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2233 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2234
2235 2002-09-20 Nick Clifton <nickc@redhat.com>
2236
2237 * NEWS: Announce that V850EA ISA is no longer supported.
2238 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2239
2240 2002-09-20 David Carlton <carlton@math.stanford.edu>
2241
2242 * Makefile.in (c-lang.o): Correct dependencies.
2243 (utils.o): Gather dependencies.
2244 (charset.o): Move.
2245 * c-lang.c: #include "gdb_string.h"
2246
2247 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2248
2249 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2250 * cli/cli-cmds.c (list_command): New function. Implements the new
2251 cli edit command.
2252 (_init_cli_cmds): Add new command definition.
2253 * gdb.1: Document edit command.
2254 * doc/gdb.texinfo: Document edit command.
2255
2256 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2257
2258 * source.c: Make global variables current_source_symtab and
2259 current_source_line static.
2260 (list_command): Moved to cli/cli-cmds.c.
2261 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2262 (get_first_line_listed): New accessor function.
2263 (get_lines_to_list): New accessor function.
2264 (get_current_source_symtab_and_line): New function. Retrieves the
2265 position in the source code that we consider current.
2266 (get_current_or_default_source_symtab_and_line): New function.
2267 Like the above but attempts to determine a default position if one
2268 is not currently defined.
2269 (set_current_source_symtab_and_line): New function. Sets the source
2270 code position considered current and returns the previously set one.
2271 (clear_current_source_symtab_and_line): Reset stored information about
2272 a current source line.
2273 (_initialize_source): Remove registration for the "list" command and
2274 its alias.
2275 * source.h: Add declarations for the new functions above.
2276 * symtab.h: Remove declarations for the global variables mentioned
2277 above.
2278 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2279 obtain current source line.
2280 * linespec.c (decode_line_1): Ditto.
2281 * macroscope.c (default_macro_scope): Ditto.
2282 * scm-lang.c (scm_unpac): Ditto.
2283 * stack.c (print_frame_info_base): Ditto.
2284 * symfile.c (clear_symtab_users): Ditto.
2285 * symtab.c (decode_line_spec): Ditto.
2286 * cli/cli-cmds.c (list_command): Moved here from source.c.
2287 (ambiguous_line_spec): Moved here from source.c.
2288 (_init_cli_cmds): Add definition for "list" and its alias.
2289 * Makefile.in: Update dependencies.
2290
2291 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2292
2293 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2294 with what gcc thinks is correct.
2295
2296 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2297
2298 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2299 multiple register push instruction.
2300
2301 2002-09-19 Jim Blandy <jimb@redhat.com>
2302
2303 Add support for distinct host and target character sets.
2304 * charset.c, charset.h: New files.
2305 * c-exp.y: #include "charset.h".
2306 (yylex): Convert character and string literals to the target
2307 character set, before returning them as the semantic value of the
2308 token.
2309 * c-lang.c: #include "charset.h".
2310 (c_emit_char): Use charset-specific methods to recognize
2311 characters with backslash escape forms, to decide which characters
2312 to print literally and which to print using numeric escape
2313 sequences, and to convert target characters to host characters
2314 before printing.
2315 * utils.c: #include "charset.h".
2316 (no_control_char_error): New function.
2317 (parse_escape): Use charset-specific methods to recognize
2318 backslash escapes, parse `control character' notation, and convert
2319 characters from the host character set to the target character set.
2320 * configure.in: Set the default host character set.
2321 Check where to find iconv, and what its argument types might be.
2322 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2323 * Makefile.in (SFILES): List charset.c.
2324 (COMMON_OBS): List charset.o.
2325 (charset.o): New rule.
2326 (charset_h): New header dependency variable.
2327 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2328 (LIBICONV): New variable, set by configure.
2329 (CLIBS): Include $(LIBICONV) here.
2330 * aclocal.m4, config.in, configure: Regenerated.
2331
2332 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2333
2334 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2335 bison 1.35 warning.
2336
2337 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2338
2339 * gdb_mbuild.sh: New file.
2340
2341 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2342
2343 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2344
2345 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2346
2347 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2348 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2349 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2350 valops.c, value.h: Revert previous change.
2351
2352 2002-09-18 Michael Snyder <msnyder@redhat.com>
2353
2354 Preliminary support for Objective-C:
2355 * defs.h (language_objc): New enum value.
2356 (puts_filtered_tabular): Declaration only, exported from utils.c.
2357 (skip_quoted): Delete, declared in completer.h.
2358 * c-exp.y: Include completer.h.
2359 * p-exp.y: Ditto.
2360 * jv-exp.y: Ditto.
2361 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2362 New operator enum values.
2363 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2364 * language.c (binop_result_type): Handle language_objc case.
2365 (integral_type, character_type, string_type, boolean_type,
2366 structured_type, binop_type_check): Ditto.
2367 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2368 (struct objc_specific): Add to general_symbol_info.
2369 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2370 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2371 * parser-defs.h (struct objc_class_str): New struct type.
2372 (start_msglist, end_msglist, add_msglist): Declaration only,
2373 exported from objc-lang.c.
2374 * value.h (value_of_local, value_nsstring,
2375 call_function_by_hand_expecting_type): Exported from valops.c.
2376 * valops.c (find_function_addr): Export.
2377 (call_function_by_hand_expecting_type): New function.
2378 (value_of_local): New function.
2379 * symfile.c (init_filename_language_table): Add ".m" extension
2380 for Objective-C.
2381 * utils.c (puts_filtered_tabular): New function.
2382 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2383 (set/show demangle): Extend help-string to refer to ObjC.
2384 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2385 * stabsread.c (symbol_reference_defined): Objective-C symbols
2386 may contain colons: make allowances when scanning stabs strings
2387 for colons.
2388 (objc_find_colon): New function.
2389 * printcmd.c (address_info): If language == objc then print
2390 "self" instead of "this".
2391 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2392 OP_NSSTRING, and OP_SELF.
2393 (prefixify_subexp): Ditto.
2394 * source.c (print_source_lines): Mention objc in comment.
2395 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2396 method names.
2397
2398 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2399
2400 * complaints.h: Update copyright.
2401 (struct complaints): Declare.
2402 (struct complaint): Make `message' constant.
2403 (internal_complaint): Declare.
2404 (complaint): Declare.
2405 (complaint_root): Delete declaration.
2406 (symfile_complaints): Delete declaration.
2407 (struct complaints): Add opaque declaration.
2408 (clear_complaints): Add a complaints parameter.
2409 * complaints.c: Update copyright.
2410 (enum complaint_series): Define.
2411 (complaint_root): Delete.
2412 (struct complaints): Define.
2413 (complaint_sentinel, symfile_complaint_book): New variables.
2414 (symfile_explanations, symfile_complaints): New variables.
2415 New variables.
2416 (get_complaints): New function.
2417 (vcomplaint): New function.
2418 (complaint): New function.
2419 (internal_complaint): New function.
2420 (complain): Call vcomplain with symfile_complaint.
2421 (clear_complaints): Rewrite.
2422 (_initialize_complaints): Use add_setshow_command.
2423 * Makefile.in (complaints.o): Update dependencies.
2424 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2425 to call to clear_complaints.
2426 (new_symfile_objfile, reread_symbols): Ditto.
2427 (oldsyms_complaint): Delete.
2428 (empty_symtab_complaint, unknown_option_complaint): Delete.
2429 (free_named_symtabs): Use complaint instead of complain.
2430
2431 2002-09-18 Michael Snyder <msnyder@redhat.com>
2432
2433 Contributed by Apple Computer, Inc. Merged with current sources
2434 by Adam Fedor <fedor@doc.com> [cagney].
2435
2436 * objc-lang.c: First clean-up round: comments, indentation.
2437 * objc-lang.h: Ditto.
2438 * objc-lang.y: Ditto.
2439
2440 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2441
2442 * maint.c (maintenance_internal_error): Print the parameter as the
2443 error message.
2444 (maintenance_internal_warning): New function.
2445 (_initialize_maint_cmds): Add command `maint internal-warning'.
2446
2447 * defs.h (internal_warning, internal_vwarning): Declare.
2448 * utils.c (struct internal_problem): Define.
2449 (internal_vproblem): New function.
2450 (internal_warning): New function.
2451 (internal_vwarning): New function.
2452 (internal_warning_problem, internal_error_problem): New variables.
2453 (internal_verror): Just call internal_vproblem.
2454
2455 2002-09-18 Michael Snyder <msnyder@redhat.com>
2456
2457 * objc-lang.c: New file, support for Objective-C.
2458 Preliminary check-in, not yet integrated into gdb.
2459 * objc-lang.h: New file.
2460 * objc-exp.y: New file.
2461
2462 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2463
2464 * infrun.c (signal_stop_update): Convert definition to ISO C.
2465 (signal_print_update): Ditto.
2466 (signal_pass_update): Ditto.
2467 * inflow.c (terminal_save_ours): Ditto.
2468
2469 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2470 comments.
2471
2472 * config/djgpp/fnchange.lst: Handle name clashes between
2473 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2474 bfd/coff-tic80.c.
2475
2476 * i386-linux-tdep.h: Fix tipo.
2477
2478 2002-09-18 Adam Fedor <fedor@gnu.org>
2479
2480 * MAINTAINERS: Add myself to the Write After Approval list.
2481
2482 2002-09-18 Jim Blandy <jimb@redhat.com>
2483
2484 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2485 texthigh and textlow to reader-specific structs caused
2486 objfile_relocate to miss them. This is fixable, but the work that
2487 the change was supposed to prepare GDB for never got done anyway.
2488
2489 2002-09-18 David Carlton <carlton@math.stanford.edu>
2490
2491 * MAINTAINERS: Alphabetize Write After Approval list.
2492
2493 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2494
2495 Fix PR gdb/709
2496 * values.c (value_static_field): Call read_var_value.
2497
2498 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2499
2500 * valops.c (hand_function_call): Align the initial stack pointer
2501 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2502 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2503 return value.
2504 * mips-tdep.c (mips_frame_align): New function.
2505 (mips_gdbarch_init): Set frame_align.
2506 * gdbarch.sh (FRAME_ALIGN): New method.
2507 * gdbarch.h, gdbarch.c: Re-generate.
2508
2509 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2510
2511 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2512 registers.
2513
2514 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2515
2516 * NEWS: Mention that MIPS $fp behavior changed.
2517 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2518 reference to FP_REGNUM.
2519 (mipsnbsd_cannot_store_register): Ditto.
2520 * mips-linux-nat.c: Update copyright.
2521 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2522 (mips_linux_cannot_store_register): Ditto.
2523 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2524 * config/mips/tm-mips.h: Update copyright.
2525 (FP_REGNUM): Delete macro.
2526 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2527 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2528 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2529 (mips_r3041_reg_names, mips_r3051_reg_names)
2530 (mips_r3081_reg_names): Replace "fp" with "".
2531 Fix PR gdb/480.
2532
2533 2002-09-17 Theodore A. Roth <troth@verinet.com>
2534
2535 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2536 generic_read_register_dummy() (PR gdb/703).
2537 (avr_push_return_address): #if 0 out unused vars.
2538 (avr_gdbarch_init): Enable use of avr_push_return_address().
2539
2540 2002-09-17 Michael Snyder <msnyder@redhat.com>
2541
2542 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2543 RTE will take care of it.
2544
2545 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2546
2547 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2548 invalid, return SP_REGNUM.
2549
2550 2002-09-17 Michael Snyder <msnyder@redhat.com>
2551
2552 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2553 point registers without sign extension.
2554
2555 2002-09-17 Andrew Cagney <cagney@redhat.com>
2556
2557 * blockframe.c (deprecated_read_register_dummy): Rename
2558 generic_read_register_dummy.
2559 * frame.c (frame_unwind_signed_register): New function.
2560 (frame_unwind_unsigned_register): New function.
2561 * frame.h (frame_unwind_signed_register): Declare.
2562 (frame_unwind_unsigned_register): Declare.
2563 (deprecated_read_register_dummy): Rename
2564 generic_read_register_dummy.
2565
2566 * h8300-tdep.c (h8300_frame_chain): Update.
2567 (h8300_frame_saved_pc): Update.
2568 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2569 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2570 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2571 (s390_frame_chain): Update.
2572 * v850-tdep.c (v850_find_callers_reg): Update.
2573 (v850_frame_saved_pc): Update.
2574 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2575 (m32r_find_callers_reg): Update.
2576 (m32r_frame_saved_pc): Update.
2577 * sh-tdep.c (sh_find_callers_reg): Update.
2578 (sh64_get_saved_pr): Update.
2579 (sh_init_extra_frame_info): Update.
2580 (sh_init_extra_frame_info): Update.
2581 (sh64_init_extra_frame_info): Update.
2582 (sh64_init_extra_frame_info): Update.
2583 * mcore-tdep.c (mcore_find_callers_reg): Update.
2584 (mcore_frame_saved_pc): Update.
2585 (mcore_init_extra_frame_info): Update.
2586 * i386-tdep.c (i386_frame_saved_pc): Update.
2587 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2588 (ia64_init_extra_frame_info): Update.
2589 (ia64_init_extra_frame_info): Update.
2590 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2591 * cris-tdep.c (cris_init_extra_frame_info): Update.
2592 * avr-tdep.c (avr_frame_chain): Update.
2593 (avr_init_extra_frame_info): Update.
2594 (avr_frame_saved_pc): Update.
2595 * arm-tdep.c (arm_find_callers_reg): Update.
2596 (arm_init_extra_frame_info): Update.
2597 (arm_frame_saved_pc): Update.
2598
2599 2002-09-17 Tom Tromey <tromey@redhat.com>
2600
2601 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2602 is "'".
2603
2604 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2605
2606 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2607 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2608 NEXT_PROLOGUE_INSN.
2609 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2610 NEXT_PROLOGUE_INSN.
2611
2612 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2613
2614 * osfsolib.c: Remove file, replaced by solib-osf.c.
2615 * Makefile.in: Remove compilation rules for osfsolib.c.
2616
2617 2002-09-16 David Carlton <carlton@math.stanford.edu>
2618
2619 * cp-valprint.c (cp_print_class_method): Correct args to
2620 check_stub_method_group.
2621
2622 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2623
2624 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2625 `set architecture'. Unify naming convention of functions.
2626 (h8300_skip_prologue): Improve prologue analysis.
2627 (h8300_push_arguments): Rewritten to more closely match GCC's
2628 bizarre argument-passing behavior, along with the comment describing
2629 said behavior.
2630 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2631 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2632 sim, remote-e7000.c, remote-hms.c and remote.c
2633
2634 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2635
2636 * i386-tdep.c (gdb_print_insn_i386): Removed.
2637 (i386_print_insn): New function.
2638 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2639 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2640 tm_print_insn_info.
2641
2642 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2643
2644 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2645 zero.
2646
2647 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2648
2649 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2650 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2651 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2652
2653 2002-09-13 Christopher Faylor <cgf@redhat.com>
2654
2655 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2656
2657 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2658
2659 * gdbtypes.c (check_stub_method): Make static.
2660 (check_stub_method_group): New function.
2661 * gdbtypes.h: Update prototypes.
2662 * cp-support.c: New file.
2663 * cp-support.h: New file.
2664
2665 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2666 (update_method_name_from_physname): New function.
2667 (read_member_functions): Correct method names for operators
2668 and v3 constructors/destructors. Separate v2 constructors and
2669 destructors.
2670 * Makefile.in (stabsread.o): Update dependencies.
2671 (SFILES): Add cp-support.c.
2672 (COMMON_OBS): Add cp-support.o.
2673 (cp_support_h, cp-support.o): Add.
2674
2675 * cp-valprint.c (cp_print_class_method): Call
2676 check_stub_method_group instead of check_stub_method. Remove
2677 extraneous QUITs.
2678 * p-valprint.c (pascal_object_print_class_method): Likewise.
2679 * valops.c (search_struct_method): Likewise.
2680 (find_method_list, value_struct_elt_for_reference): Likewise.
2681
2682 2002-09-13 Andrew Cagney <cagney@redhat.com>
2683
2684 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2685 * gdbarch.h, gdbarch.c: Regenerate.
2686
2687 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2688
2689 * frame.c (find_saved_register): Delete function.
2690 * frame.h (find_saved_register): Delete declaration.
2691 Fix PR gdb/631.
2692
2693 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2694
2695 * mips-tdep.c (read_next_frame_reg): Re-hack using
2696 frame_register_unwind.
2697
2698 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2699
2700 * mips-tdep.c (mips_get_saved_register): Re-hack using
2701 frame_register_unwind.
2702
2703 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2704
2705 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2706 vector. Will be useful for Interix.
2707 * gdbarch.h, gdbarch.c: Regenerate.
2708
2709 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2710 name of the malloc function by NAME_OF_MALLOC.
2711
2712 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2713
2714 * value.h (find_function_in_inferior): Add const keyword to
2715 one of the parameters. Allows us to invoke this function with
2716 a const char *.
2717 * valops.c (find_function_in_inferior): Likewise.
2718
2719 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2720
2721 * exec.c (xfer_memory): Fix compilation warning with old versions
2722 of GCC.
2723 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2724
2725 2002-09-12 David Carlton <carlton@math.stanford.edu>
2726
2727 * symtab.h: Run through gdb_indent.h.
2728 Add 2002 to Copyright year list.
2729
2730 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2731
2732 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2733 mach constants.
2734 * MAINTAINERS: Add myself to write after approval list.
2735
2736 2002-09-11 J. Brobecker <brobecker@gnat.com>
2737
2738 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2739
2740 2002-09-11 J. Brobecker <brobecker@gnat.com>
2741
2742 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2743 Interix.
2744
2745 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2746
2747 * procfs.c (do_detach): Clear current signal, not just fault.
2748 Corrects problem with breakpoint trap signal leaking to detached
2749 process on Tru64.
2750
2751 2002-09-10 Michael Snyder <msnyder@redhat.com>
2752
2753 * buildsym.c (finish_block): Protect against null pointer.
2754
2755 2002-09-10 Andrew Cagney <cagney@redhat.com>
2756
2757 * infcmd.c (default_print_registers_info): Send all output to
2758 ``file'' instead of ``gdb_stdout''.
2759
2760 2002-09-10 Michael Snyder <msnyder@redhat.com>
2761
2762 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2763 LONGEST, and use signed register read (addresses are sign-
2764 extended for mips).
2765
2766 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2767
2768 * event-loop.c (gdb_do_one_event): Make public.
2769 * event-loop.h (gdb_do_one_event): Declare.
2770
2771 2002-09-10 Jeff Law <law@redhat.com>
2772
2773 * infttrace.c (child_resume): Simplify and rework to avoid
2774 TT_PROC_CONTINUE.
2775
2776 2002-09-09 Fred Fish <fnf@intrinsity.com>
2777
2778 * printcmd.c (print_scalar_formatted): "len" is the number of
2779 target bytes, NOT the number of target bits.
2780
2781 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2782
2783 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2784 * top.c (init_main): Set rl_terminal_name.
2785
2786 2002-09-08 Aidan Skinner <aidan@velvet.net>
2787
2788 * ada-lang.c (ada_array_bound, ada_type_match,
2789 _initialize_ada_language): Fix K&R definitions.
2790 * ada-tasks.c (get_current_task): Fix K&R definitions.
2791 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2792
2793 2002-09-07 Christopher Faylor <cgf@redhat.com>
2794
2795 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2796 Add XP.
2797
2798 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2799
2800 * i386-tdep.c (i386_register_virtual_type,
2801 i386_register_convertible, i386_register_convert_to_virtual,
2802 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2803 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2804 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2805 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2806 Don't set push_arguments twice.
2807
2808 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2809 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2810 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2811 sigtramp_end to NULL.
2812 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2813 defines.
2814 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2815
2816 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2817 whitespace.
2818
2819 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2820 * gdbarch.h, gdbarch.c: Re-generate.
2821 * blockframe.c (find_pc_sect_partial_function): Convert to use
2822 SIGTRAMP_START_P predicate.
2823
2824 2002-09-05 Michael Snyder <msnyder@redhat.com>
2825
2826 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2827 generic_dummy_frame method and old method. Also distinguish
2828 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2829 (arm_extract_return_value): Use new regcache method.
2830
2831 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2832 adjustment that doesn't conform to the ABI.
2833 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2834 saved regcache, not from current regcache.
2835
2836 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2837
2838 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2839 * README: Update.
2840
2841 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2842
2843 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2844 if arm_apcs_32 is false.
2845
2846 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2847
2848 GDB 5.3 branch created.
2849
2850 2002-09-03 Theodore A. Roth <troth@verinet.com>
2851
2852 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2853 generic_unwind_get_saved_register.
2854
2855 2002-09-03 David Carlton <carlton@math.stanford.edu>
2856
2857 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2858 argument (PR gdb/653). Update call to smash_to_method_type.
2859 (read_structure_scope): Update call to dwarf2_add_member_fn.
2860
2861 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2862
2863 * x86-64-linux-tdep.c: Include gdb_string.h
2864 * x86-64-linux-nat.c: Ditto.
2865
2866 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2867
2868 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2869 when YYDEBUG is set to 1.
2870 * c-exp.y: Likewise.
2871 * f-exp.y: Likewise.
2872 * jv-exp.y: Likewise.
2873 * m2-exp.y: Likewise.
2874 * p-exp.y: Likewise.
2875
2876 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2877
2878 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2879 dependency list.
2880 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2881 solib_svr4_fetch_link_map_offsets to
2882 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2883 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2884 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2885 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2886 solib-svr4.o, and solib-legacy.o.
2887 * config/i386/tm-nbsd.h: Include solib.h.
2888
2889 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2890
2891 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2892 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2893 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2894 comment noting that this needs its own target configuration.
2895 * config/i386/nbsd.mt: New file.
2896 * config/i386/nbsdaout.mt: Remove.
2897 * config/i386/nbsdelf.mt: Ditto.
2898 * config/i386/tm-nbsdaout.h: Ditto.
2899
2900 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2901
2902 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2903 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2904 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2905 tdep->sigtramp_end.
2906 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2907 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2908 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2909
2910 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2911
2912 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2913 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2914 * i386-tdep.h (i386bsd_init_abi): New prototype.
2915 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2916 function declaration.
2917 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2918 for NetBSD-a.out or NetBSD-ELF.
2919 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2920 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2921 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2922 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2923 and nbsd-tdep.h.
2924 (i386nbsd_pc_in_sigtramp): New function.
2925 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2926 i386nbsd_pc_in_sigtramp.
2927 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2928 and i386nbsdelf_init_abi OS ABI handlers.
2929 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2930 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2931
2932 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2933
2934 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2935 registers if the target really has them.
2936
2937 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2938
2939 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2940 than nbsd-tdep.h.
2941
2942 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2943
2944 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2945 list.
2946 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2947 (alphanbsd_skip_sigtramp_frame): New functions.
2948 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2949 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2950 to alphanbsd_sigcontext_addr.
2951
2952 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2953
2954 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2955 list.
2956 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2957 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2958 nbsd_pc_in_sigtramp.
2959 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2960 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2961 * nbsd-tdep.c: Include gdb_string.h.
2962 (nbsd_pc_in_sigtramp): New function.
2963 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2964 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2965 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2966 ppcnbsd_pc_in_sigtramp.
2967 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2968 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2969 shnbsd_pc_in_sigtramp.
2970 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2971 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2972 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2973
2974 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2975
2976 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2977 watchpoints to NULL.
2978 (insert_breakpoints): set val field of watchpoints if NULL.
2979
2980
2981 2002-08-29 Jim Blandy <jimb@redhat.com>
2982
2983 * symtab.c (lookup_symbol_aux): In the cases where we find a
2984 minimal symbol of an appropriate name and use its address to
2985 select a symtab to read and search, use `name' (as passed to us)
2986 as the demangled name when searching the symtab's global and
2987 static blocks, not the minsym's name.
2988
2989 2002-08-29 Keith Seitz <keiths@redhat.com>
2990
2991 * stack.c (print_frame_info_base): Always set current_source_symtab
2992 and current_source_line.
2993
2994 2002-08-29 Donn Terry <donnte@microsoft.com>
2995
2996 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2997
2998 2002-08-28 Keith Seitz <keiths@redhat.com>
2999
3000 * stack.c (select_frame): Add FIXME concerning selected-frame
3001 events.
3002 (select_frame_command): Send selected-frame-level-changed
3003 event notification, but only if the level actually changed.
3004 (up_silently_base): Add selected-frame-level-changed event
3005 notification.
3006 (down_silently_base): Likewise.
3007
3008 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3009
3010 * Makefile.in: Update dependencies for all gdb/*.c files.
3011
3012 2002-08-27 Tom Tromey <tromey@redhat.com>
3013
3014 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3015 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3016 Update dependencies.
3017 * i387-tdep.c: Include gdb_string.h.
3018 * osabi.c: Likewise.
3019 * i386-linux-nat.c: Likewise.
3020 * lin-lwp.c: Likewise.
3021 * ax-gdb.c: Likewise.
3022 * signals/signals.c: Likewise.
3023 * jv-valprint.c: Likewise.
3024 * p-lang.c: Likewise.
3025 * c-valprint.c: Likewise.
3026 * cp-abi.c: Likewise.
3027
3028 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3029
3030 * cli/cli-script.h (copy_command_lines): Export.
3031 * breakpoint.c: Include cli/cli-script.h.
3032 * Makefile.in (breakpoint.o): Update dependencies.
3033
3034 2002-08-26 Michael Snyder <msnyder@redhat.com>
3035
3036 * breakpoint.c (insert_breakpoints): Protect all references
3037 to 'process_warning'. Shorten long lines.
3038
3039 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3040
3041 * cli/cli-script.c (copy_command_lines): New function.
3042 * defs.h (copy_command_lines): Export.
3043 * testsuite/gdb.base/commands.exp: New tests for commands
3044 attached to a temporary breakpoint, and for commands that
3045 delete the breakpoint they are attached to.
3046
3047 2002-08-26 Michael Snyder <msnyder@redhat.com>
3048
3049 * breakpoint.c (bpstat_stop_status): Instead of copying the
3050 pointer to the breakpoint commands struct, make a new copy
3051 of the struct and point to that.
3052 (bpstat_clear): Free the commands struct.
3053 (bpstat_clear_actions): Free the commands struct.
3054 (bpstat_do_actions): Free the command actions. Also execute
3055 the local cleanups, instead of deleting them.
3056 (delete_breakpoint): Leave the commands field of the bpstat
3057 chain alone -- it will be freed later.
3058
3059 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3060
3061 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3062 deleted in 2002-08-20 commit. This function is still used by
3063 ppc-linux-nat.c.
3064
3065 2002-08-26 Keith Seitz <keiths@redhat.com>
3066
3067 * gdb-events.sh: Add selected-frame-level-changed event.
3068 * gdb-events.c: Regenerated.
3069 * gdb-events.h: Regenerated.
3070
3071 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3072
3073 Fix PR gdb/393:
3074 * inflow.c (terminal_save_ours): New function to save terminal
3075 settings.
3076 * inferior.h (terminal_save_ours): Declare.
3077 * target.c (debug_to_terminal_save_ours): New function.
3078 (cleanup_target): Defaults to_terminal_save_ours.
3079 (update_current_target): Inherit to_terminal_save_ours.
3080 (setup_target_debug): Set to_terminal_save_ours.
3081 * target.h (target_terminal_save_ours): New to save terminal settings.
3082 (target_ops): New member to_terminal_save_ours.
3083 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3084 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3085 * inftarg.c (init_child_ops): Likewise.
3086 * m3-nat.c (init_m3_ops): Likewise.
3087 * procfs.c (init_procfs_ops): Likewise.
3088 * wince.c (init_child_ops): Likewise.
3089 * win32-nat.c (init_child_ops): Likewise.
3090 * sol-thread.c (init_sol_thread_ops): Likewise.
3091
3092 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3093
3094 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3095 use regcache_* functions.
3096 (i386_gdbarch_init): Set store_return_value instead of
3097 deprecated_store_return_value.
3098
3099 * regcache.c (regcache_raw_write_signed,
3100 regcache_raw_write_unsigned): New functions.
3101 * regcache.h (regcache_raw_write_signed,
3102 regcache_raw_write_unsigned): New prototypes.
3103
3104 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3105
3106 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3107 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3108 source file dependencies. Cleanup corresponding generator rules.
3109
3110 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3111
3112 * regcache.h (register_offset_hack): Declare.
3113 (regcache_cooked_read_using_offset_hack): Declare.
3114 (regcache_cooked_write_using_offset_hack): Declare.
3115
3116 * regcache.c (register_offset_hack): New function.
3117 (regcache_cooked_read_using_offset_hack): New function.
3118 (regcache_cooked_write_using_offset_hack): New function.
3119 (regcache_dump): Check that the registers, according to their
3120 offset, are packed hard against each other.
3121 (cooked_xfer_using_offset_hack): New function.
3122
3123 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3124
3125 * regcache.c (struct regcache_descr): Add field register_type.
3126 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3127 in as a parameter
3128 (init_regcache_descr): Initialize register_type. Pass the descr
3129 to init_legacy_regcache_descr. Use register_type instead of
3130 REGISTER_VIRTUAL_TYPE.
3131 (register_type): New function.
3132 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3133 * regcache.h (register_type): Declare.
3134
3135 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3136
3137 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3138 instead of deprecated_store_return_value. Fix fallout from
3139 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3140
3141 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3142
3143 * regcache.c (max_register_size): New function.
3144 (init_legacy_regcache_descr): Ensure that max_register_size is
3145 large enough for REGISTER_VIRTUAL_SIZE.
3146 * regcache.h (max_register_size): Declare.
3147
3148 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3149
3150 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3151 store_return_value.
3152 (e500_extract_return_value): Change type of valbuf pointer to
3153 void.
3154
3155 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3156
3157 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3158 workaround.
3159
3160 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3161 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3162 long long) to prevent compiler warning on 64-bit systems.
3163
3164 2002-08-23 Andrew Cagney <cagney@redhat.com>
3165
3166 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3167 (DEPRECATED_STORE_RETURN_VALUE): New method.
3168 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3169 * gdbarch.h, gdbarch.c: Re-generate.
3170
3171 * values.c (set_return_value): Pass current_regcache to
3172 STORE_RETURN_VALUE.
3173 * arch-utils.h (legacy_store_return_value): Declare.
3174 * arch-utils.c (legacy_store_return_value): New function.
3175 (legacy_extract_return_value): Update parameters.
3176
3177 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3178 STORE_RETURN_VALUE.
3179 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3180 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3181 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3182 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3183 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3184 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3185 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3186 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3187 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3188 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3189
3190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3191 * i386-tdep.c (i386_extract_return_value): Update.
3192 * arch-utils.c (legacy_extract_return_value): Update.
3193 * frv-tdep.c (frv_gdbarch_init): Update.
3194 * cris-tdep.c (cris_gdbarch_init): Update.
3195 * d10v-tdep.c (d10v_gdbarch_init): Update.
3196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3197 * m68k-tdep.c (m68k_gdbarch_init): Update.
3198 * mcore-tdep.c (mcore_gdbarch_init): Update.
3199 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3200 * s390-tdep.c (s390_gdbarch_init): Update.
3201 * sparc-tdep.c (sparc_gdbarch_init): Update.
3202 * sh-tdep.c (sh_gdbarch_init): Update.
3203 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3204 * v850-tdep.c (v850_gdbarch_init): Update.
3205 * avr-tdep.c (avr_gdbarch_init): Update.
3206 * ia64-tdep.c (ia64_gdbarch_init): Update.
3207 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3208 * vax-tdep.c (vax_gdbarch_init): Update.
3209 * alpha-tdep.c (alpha_gdbarch_init): Update.
3210 * arm-tdep.c (arm_gdbarch_init): Update.
3211 * mips-tdep.c (mips_gdbarch_init): Update.
3212 * i386-tdep.c (i386_gdbarch_init): Update.
3213
3214 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3215
3216 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3217 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3218
3219 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3220
3221 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3222 problems.
3223
3224 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3225
3226 * infrun.c (handle_inferior_event): Move a comment outside of a
3227 function call, in order to avoid indent reformatting this part
3228 of the code in an unreadable way.
3229
3230 2002-08-23 Grace Sainsbury <graces@redhat.com>
3231
3232 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3233 when breakpoints fail. Move general breakpoint error messages to
3234 insert_breakpoints.
3235 * breakpoint.c (insert_breakpoints): Change warnings when
3236 breakpoints are nto inserted to specify the type. Remove call to
3237 memory_error when hardware breakpoints can't be inserted. Remove
3238 multiple calls to warning so all messages are sent to the user at
3239 once.
3240 (delete_breakpoints): Make insert error messsages more explicit.
3241
3242 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3243
3244 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3245 gdbserver/ChangeLog.
3246
3247 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3248
3249 * i386-tdep.c: Include "objfiles.h".
3250 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3251 skip_trampoline_code.
3252 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3253 (CPLUS_MARKER): Define to '.'.
3254
3255 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3256 member.
3257 (linux_corefile_thread_callback): Increase args->num_notes.
3258 (linux_make_note_section): Initialize thread_args.num_notes, and
3259 use it to determine whether notes for any threads were created.
3260
3261 2002-08-23 Donn Terry <donnte@microsoft.com>
3262
3263 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3264 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3265 and PCUNKILL.
3266 (write_with_trace): Conditionalize out the switch branch handling
3267 PCSHOLD if the corresponding macro is not defined. Likewise for
3268 PRSABORT and PRSTOP.
3269 This change will be needed by the Interix port.
3270
3271 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3272
3273 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3274 write_register wherever possible instead of manipulating the
3275 register bytes directly.
3276 Assign VALUE_CONTENTS to a variable and use that.
3277 The GPR numbers are now dependent on the architecture.
3278
3279 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3280
3281 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3282 ev_offset fields.
3283 (skip_prologue): Add support for BookE/e500 instructions.
3284 (e500_extract_return_value): New function.
3285 (frame_get_saved_regs): Add support for saving ev registers and
3286 pseudo gpr's.
3287 (e500_store_return_value): New function.
3288 (rs6000_gdbarch_init): Move up default intializations of
3289 deprecated_extract_return_value and store_return_value. Overwrite
3290 init of store_return_value with e500 specific version.
3291 Set extract_return_value for e500.
3292
3293 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3294
3295 * blockframe.c (generic_call_dummy_register_unwind): Use
3296 regcache_cooked_read to catch cases in which the variable is
3297 stored in a pseudo register.
3298
3299 2002-08-22 Andrew Cagney <cagney@redhat.com>
3300
3301 * NEWS: Mention that the i960 has been made obsolete.
3302 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3303 i960-tdep.c
3304 (remote-nrom.o): Obsolete target.
3305 (remote-nindy.o, i960-tdep.o): Ditto.
3306 * remote-nrom.c: Make file obsolete.
3307 * remote-nindy.c, remote-vx960.c: Ditto.
3308 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3309 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3310 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3311 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3312 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3313 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3314 i960-*-vxworks* obsolete.
3315 * MAINTAINERS: Note that the i960 is obsolete.
3316
3317 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3318
3319 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3320 detach to allow reinitialization.
3321
3322 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3323
3324 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3325 attempt).
3326
3327 2002-08-22 Jim Blandy <jimb@redhat.com>
3328
3329 * coffread.c (coff_symfile_read): Don't try to read the line
3330 number table from disk if the image file doesn't have a symbol
3331 table; we'll never actually look at the info anyway, and Windows
3332 ships DLL's with bogus file offsets for the line number data.
3333
3334 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3335
3336 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3337 an e500 executable.
3338
3339 2002-08-21 Michael Snyder <msnyder@redhat.com>
3340
3341 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3342 (MSYMBOL_SIZE): Replace macro with function.
3343 (DEFAULT_MIPS_TYPE): Delete unused macro.
3344 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3345 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3346
3347 2002-08-21 Jim Blandy <jimb@redhat.com>
3348
3349 * valops.c (value_cast): Simplify and correct logic for doing a
3350 static cast from a pointer to a base class to a pointer to a
3351 derived class.
3352
3353 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3354
3355 * infcmd.c (default_print_registers_info): Replace
3356 do_registers_info.
3357 (registers_info): Use gdbarch_print_registers_info instead of
3358 DO_REGISTERS_INFO.
3359 * inferior.h (default_print_registers_info): Replace
3360 do_registers_info.
3361 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3362 (DO_REGISTERS_INFO): Change to a predicate function.
3363 * gdbarch.h, gdbarch.c: Regenerate.
3364
3365 2002-08-21 Keith Seitz <keiths@redhat.com>
3366
3367 * gdb-events.sh: Add target-changed event.
3368 * gdb-events.c: Regenerated.
3369 * gdb-events.c: Regenerated.
3370 * valops.c (value_assign): Add target-changed event notification
3371 to inlval_register, lval_memory, and lval_reg_frame_relative.
3372
3373 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3374
3375 * NEWS: Add an entry regarding the improvement of the next/step
3376 operation on Alpha Tru64 multi-processor machines.
3377
3378 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3379
3380 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3381 directores.
3382 * Makefile.in: Update all _h macro definitions.
3383 * Makefile.in (install-gdbtk): Move to install section.
3384 (rdi-share/libangsd.a): Move to end of file.
3385
3386 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3387
3388 * frame.c (frame_register_unwind): When a register, set addrp to
3389 the register's byte.
3390
3391 2002-08-20 Michael Snyder <msnyder@redhat.com>
3392
3393 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3394 used locally, so move them from the target machine header to here.
3395 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3396 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3397 Make static.
3398 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3399
3400 2002-08-20 Andrew Cagney <cagney@redhat.com>
3401
3402 * NEWS: Mention that the Apollo line was made obsolete.
3403 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3404 m68*-hp-hpux* obsolete.
3405 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3406 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3407 * buildsym.c (make_blockvector): Make static.
3408 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3409 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3410 (ALLDEPFILES): Remove dstread.c.
3411 (dstread.o): Obsolete make rule.
3412 * dstread.c: Makefile obsolete.
3413 * dst.h: Ditto.
3414 * config/m68k/hp300hpux.mt: Ditto.
3415 * config/m68k/hp300hpux.mh: Ditto.
3416 * config/m68k/hp300bsd.mt: Ditto.
3417 * config/m68k/hp300bsd.mh: Ditto.
3418 * config/m68k/apollo68b.mt: Ditto.
3419 * config/m68k/apollo68v.mh: Ditto.
3420 * config/m68k/apollo68b.mh: Ditto.
3421
3422 2002-08-20 Michael Snyder <msnyder@redhat.com>
3423
3424 * mips-tdep.c (mips_in_return_stub): Make static.
3425 (mips_gdbarch_init): Set in_solib_return_trampoline.
3426 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3427
3428 2002-08-20 Michael Snyder <msnyder@redhat.com>
3429
3430 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3431 * gdbarch.c, gdbarch.h: Regenerate.
3432 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3433 Add.
3434 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3435
3436 2002-08-20 Michael Snyder <msnyder@redhat.com>
3437
3438 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3439 (mips_gdbarch_init): Set skip_trampoline_code,
3440 in_solib_call_trampoline.
3441 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3442 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3443
3444 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3445
3446 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3447
3448 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3449 vector type for ev registers.
3450 (e500_pseudo_register_read): New function.
3451 (e500_pseudo_register_write): New function.
3452 (e500_dwarf2_reg_to_regnum): New function.
3453 (PPC_UISA_NOFP_SPRS): New macro.
3454 (PPC_EV_REGS): New macro.
3455 (PPC_GPRS_PSEUDO_REGS): New macro.
3456 (registers_e500): New register set for e500.
3457 (variants): Add e500 variant.
3458 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3459 before setting architectural dependent variations. Initialize ev
3460 registers numbers. Add case for e500 architecture. Set the
3461 number of pseudo registers.
3462
3463 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3464
3465 * rs6000-tdep.c: Clean up comments.
3466
3467 2002-08-20 Andrew Cagney <cagney@redhat.com>
3468
3469 * h8300-tdep.c: Re-indent file.
3470
3471 2002-08-20 Jim Blandy <jimb@redhat.com>
3472
3473 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3474 default for this.
3475
3476 2002-08-20 Keith Seitz <keiths@redhat.com>
3477
3478 * breakpoints.c (watch_command_1): Use internal breakpoint
3479 when setting a watchpoint_scope breakpoint.
3480
3481 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3482
3483 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3484 (build_builtin_type_vec64i): Ditto.
3485 (build_builtin_type_vec128): Ditto.
3486 (build_builtin_type_vec128i): Ditto.
3487
3488 2002-08-19 Michael Snyder <msnyder@redhat.com>
3489
3490 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3491 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3492 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3493 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3494 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3495 CALL_DUMMY_ADDRESS): Delete.
3496 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3497 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3498 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3499 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3500 push_return_address.
3501 (mips_register_raw_size, mips_eabi_use_struct_convention,
3502 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3503 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3504 mips_init_extra_frame_info, mips_eabi_push_arguments,
3505 mips_n32n64_push_arguments, mips_push_return_address,
3506 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3507 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3508
3509 2002-08-19 Michael Snyder <msnyder@redhat.com>
3510
3511 * mips-tdep.c (mips_frame_num_args): New function.
3512 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3513 frame_saved_pc, frame_args_address, frame_locals_address,
3514 frame_num_args, and frame_args_skip.
3515 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3516 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3517 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3518 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3519
3520 2002-08-20 Michael Snyder <msnyder@redhat.com>
3521
3522 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3523 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3524 * mips-tdep.c (mips_store_struct_return): New function.
3525 (mips_extract_struct_value_address): New function.
3526 (mips_gdbarch_init): Set store_struct_return and
3527 extract_struct_value_address.
3528
3529 2002-08-20 David Carlton <carlton@math.stanford.edu>
3530
3531 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3532 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3533 (read_file_scope): Check that line_header is nonzero before
3534 decoding macro information.
3535
3536 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3537
3538 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3539 flag the general-purpose registers as floating-point on targets
3540 that don't support the floating-point registers.
3541
3542 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3543
3544 * rs6000-tdep.c (altivec_register_p): Delete.
3545 (rs6000_do_altivec_registers): Delete.
3546 (rs6000_altivec_registers_info): Delete.
3547 (rs6000_do_registers_info): Delete.
3548 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3549 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3550
3551 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3552
3553 * infcmd.c (do_registers_info): Print vector registers in hex
3554 format only.
3555 (print_vector_info): Check that printing registers
3556 makes sense.
3557 (print_float_info): Ditto.
3558
3559 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3560
3561 * mips-tdep.c (mips_gdbarch_init): Update.
3562 (mips_o32_extract_return_value): Rewrite.
3563 (mips_o32_store_return_value): Rewrite.
3564 (mips_o32_xfer_return_value): New function.
3565 (mips_xfer_register): Tweak debug print message. Allow for
3566 buf_offset when dumping the value transfered.
3567
3568 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3569
3570 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3571 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3572 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3573 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3574 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3575
3576 2002-08-14 Michael Snyder <msnyder@redhat.com>
3577
3578 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3579
3580 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3581
3582 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3583 register.
3584 (P): New macro to define a register as a pseudo register.
3585 (R, R4, R8, R16, FR32, R64, R0): Updated.
3586 (struct variant): Add new fields for number of pseudo registers
3587 and number of total registers.
3588 (tot_num_registers): New macro replacing....
3589 (num_registers): ...deleted macro.
3590 (num_registers): New function.
3591 (num_pseudo_registers): New function.
3592 (variants): Update all variants to intialize new fields correctly.
3593 Postpone initialization of number of pseudo regs and real regs.
3594 (init_variants): New function.
3595 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3596 registers offsets.
3597
3598 2002-08-19 David Carlton <carlton@math.stanford.edu>
3599
3600 * valops.c (search_struct_field): Change error message to treat
3601 return value of 0 from value_static_field as meaning that field is
3602 optimized out.
3603 (value_struct_elt_for_reference): Ditto.
3604 * values.c (value_static_field): Treat an unresolved location the
3605 same as a nonexistent symbol. Fix PR gdb/635.
3606 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3607 enclosed. Fix PR gdb/574.
3608 * MAINTAINERS: Add self to Write After Approval list.
3609
3610 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3611
3612 * mips-tdep.c (mips_xfer_register): New function.
3613 (mips_n32n64_extract_return_value): Rewrite.
3614 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3615 instead of deprecated_extract_return_value.
3616
3617 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3618
3619 * rs6000-tdep.c (TDEP): Delete macro.
3620 (branch_dest): Replace use of TDEP macro with its body.
3621 (rs6000_pop_frame): Ditto.
3622 (rs6000_push_arguments): Ditto.
3623 (rs6000_skip_trampoline_code): Ditto.
3624 (rs6000_frame_saved_pc): Ditto.
3625 (rs6000_frame_chain): Ditto.
3626 (rs6000_register_name): Ditto.
3627 (rs6000_register_byte): Ditto.
3628 (rs6000_register_raw_size): Ditto.
3629 (rs6000_register_virtual_type): Ditto.
3630 (rs6000_register_convertible): Ditto.
3631 (rs6000_convert_from_func_ptr_addr): Ditto.
3632
3633 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3634
3635 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3636 conditionally.
3637 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3638 MIPS_LINUX_JB_ELEMENT_SIZE.
3639 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3640 for MAX_REGISTER_RAW_SIZE arrays.
3641 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3642 MIPS_LINUX_JB_ELEMENT_SIZE.
3643
3644 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3645
3646 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3647
3648 2002-08-19 Aidan Skinner <aidan@velvet.net>
3649
3650 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3651 ada-valprint.c ada-tasks.c.
3652 (YYFILES): Add ada-exp.y.
3653 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3654 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3655 (ada-exp.tab.o): New target.
3656
3657 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3658
3659 * regcache.c (regcache_xfer_part): New function.
3660 (regcache_raw_read_part): New function.
3661 (regcache_raw_write_part): New function.
3662 (regcache_cooked_read_part): New function.
3663 (regcache_cooked_write_part): New function.
3664 * regcache.h (regcache_raw_read_part): Declare.
3665 (regcache_raw_write_part): Declare.
3666 (regcache_cooked_read_part): Declare.
3667 (regcache_cooked_write_part): Declare.
3668
3669 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3670
3671 * remote.c (remote_open_1): Add async_p.
3672 (remote_async_open_1): Delete.
3673 (open_remote_target): Delete.
3674 (remote_open, extended_remote_open): Update calls to remote_open_1.
3675 (remote_async_open, extended_remote_async_open): Call
3676 remote_open_1 instead of remote_async_open_1.
3677
3678 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3679
3680 * blockframe.c: Fix a few coding standard violations.
3681
3682 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3683
3684 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3685 here from ...
3686 * config/i386/tm-i386sco5.h: ... here. File removed.
3687 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3688
3689 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3690 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3691 (TM_FILE): Set to tm-i386.h.
3692 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3693 * config/i386/tm-i386v.h: Remove file.
3694 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3695 instead of "i386/tm-i386v.h".
3696 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3697 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3698 "i386/tm-i386v.h".
3699 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3700 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3701 "i386/tm-i386.h".
3702
3703 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3704
3705 * config/i386/nm-i386v.h: Add protection against
3706 multiple-inclusion.
3707 (i386_register_u_addr): Remove prototype.
3708 (register_u_addr): New prototype.
3709 (REGISTER_U_ADDR): Redefine accordingly.
3710 * i386v-nat.c: Improve several comments.
3711 (i386_register_u_addr): Change signature and rename to
3712 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3713 ubase variable.
3714
3715 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3716
3717 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3718 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3719 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3720 deprecated_extract_return_value.
3721 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3722 rename mips_o32o64_push_arguments.
3723 (mips_gdbarch_init): Update.
3724 (mips_extract_return_value): Delete.
3725 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3726 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3727 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3728 (mips_n32n64_extract_return_value): Clone
3729 mips_extract_return_value.
3730 (mips_store_return_value): Delete.
3731 (mips_o32_store_return_value): Clone mips_store_return_value.
3732 (mips_o64_store_return_value): Clone mips_store_return_value.
3733 (mips_eabi_store_return_value): Clone mips_store_return_value.
3734 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3735
3736 2002-08-18 Aidan Skinner <aidan@velvet.net>
3737
3738 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3739 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3740
3741 2002-08-18 Aidan Skinner <aidan@velvet.net>
3742
3743 * ada-lang.c: Run through gdb_indent.sh.
3744 * ada-lang.h: Run through gdb_indent.sh.
3745 * ada-tasks.c: Run through gdb_indent.sh.
3746 * ada-typeprint.c: Run through gdb_indent.sh.
3747 * ada-valprint.c: Run through gdb_indent.sh.
3748
3749 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3750
3751 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3752 ABI.
3753
3754 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3755
3756 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3757
3758 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3759 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3760
3761 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3762 write_register_gen instead of write_register_bytes.
3763
3764 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3765 i[3456]-*-osf1mk* configurations have been made obsolete.
3766 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3767 i[3456]86-*-osf1mk* hosts obsolete.
3768 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3769 targets obsolete.
3770 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3771 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3772 config/i386/i386m3.mt, config/i386/nm-m3.h,
3773 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3774 config/i386/i386mk.mh, config/i386/i386mk.mt,
3775 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3776 obsolete.
3777 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3778 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3779 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3780
3781 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3782
3783 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3784 (hppa_value_returned_from_stack): Declare.
3785 (hppa_extract_return_value): Declare.
3786 * config/pa/hppa.mt: New file.
3787 * configure.tgt: Recognize hppa*-*-*.
3788 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3789
3790 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3791
3792 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3793 comment.
3794
3795 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3796
3797 * top.c (gdb_rl_operate_and_get_next): Make sure
3798 operate-and-get-next functions correctly even when the history
3799 list is completely filled.
3800
3801 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3802
3803 * MAINTAINERS (Target Instruction Set Architectures): Rename
3804 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3805 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3806 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3807 already listed under Host/Native.
3808
3809 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3810 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3811 mips*-*-*.
3812
3813 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3814
3815 * config/ia64/ia64.mt: New file.
3816 * config/alpha/alpha.mt: New file.
3817 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3818 ia64-linux-gnu. Mention that ia64-elf is broken.
3819 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3820
3821 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3822
3823 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3824 generic_func_frame_valid instead of func_frame_valid.
3825
3826 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3827
3828 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3829 procfs appears to be broken when debugging on multi-processor
3830 machines. So enable software single stepping in order to avoid
3831 using the procfs interface to do next/step operations, using
3832 internal breakpoints instead.
3833
3834 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3835 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3836 make this pc address equal to the value it would have if the
3837 system stepping capability was used. Also set a new flag used
3838 to ensure that we don't readjust the PC one more time later.
3839
3840 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3841 address by DECR_PC_AFTER_BREAK when software single step is
3842 in use for this architecture, as this has already been taken
3843 care of in handle_inferior_event().
3844
3845 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3846
3847 * infrun.c (handle_inferior_event): Minor reformatting, to make
3848 a rather long condition expression easier to read.
3849
3850 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3851
3852 * Makefile.in (gdbtk.o): Move to end of file.
3853 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3854 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3855 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3856 (gdbtk-wrapper.o, gdbres.o): Ditto.
3857
3858 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3859
3860 * Makefile.in (copying.o): Separate out compile rule.
3861 (hpux-thread.o, procfs.o, signals.o): Ditto.
3862 (v850ice.o, z8k-tdep.o): Ditto.
3863 (tui-file.o): Move to TUI section.
3864 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3865 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3866
3867 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3868
3869 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3870 skip_trampoline_code, for better namespace-proofing.
3871
3872 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3873
3874 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3875
3876 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3877
3878 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3879
3880 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3881 signal, check whether we hit a breakpoint before checking for a
3882 single step breakpoint. Otherwise, GDB fails to notice that a
3883 breakpoint has been hit when stepping onto a breakpoint.
3884
3885 2002-08-16 Keith Seitz <keiths@redhat.com>
3886
3887 * gdb-events.sh (clear_gdb_event_hooks): New function.
3888 * gdb-events.c: Regenerate.
3889 * gdb-events.h: Regenerate.
3890
3891 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3892
3893 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3894 not_a_sw_breakpoint.
3895 * breakpoint.h (bpstat_stop_status): Add parameter names.
3896
3897 2002-08-16 Grace Sainsbury <graces@redhat.com>
3898
3899 * remote.c (remote_insert_hw_breakpoint)
3900 (remote_remove_hw_breakpoint): Fix calculation of length field
3901 for Z-packet.
3902
3903 2002-08-15 Michael Snyder <msnyder@redhat.com>
3904
3905 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3906 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3907 (supply_fpregset): Ditto.
3908
3909 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3910 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3911 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3912 (TARGET_READ_SP): Delete.
3913 (DO_REGISTERS_INFO): Delete.
3914 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3915 Delete.
3916 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3917 from macros to functions.
3918
3919 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3920 (mips_register_convertible, mips_register_convert_to_virtual,
3921 mips_register_convert_to_raw): Make static.
3922 (mips_read_sp): New function.
3923 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3924 (mips_do_registers_info): Make static.
3925 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3926 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3927 (mips_register_convert_from_type, mips_register_convert_to_type):
3928 New functions.
3929 (mips_gdbarch_init): Set up function_start_offset,
3930 register_virtual_size, pc_in_sigtramp.
3931
3932 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3933
3934 * infcmd.c (vector_info): New function.
3935 (_initialize_infcmd): Add command "info vector".
3936 (print_vector_info): New function.
3937
3938 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3939 * gdbarch.h, gdbarch.c: Regenerate.
3940
3941 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3942
3943 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3944 ``print_all''. Only print vector registers when ``print_all''.
3945
3946 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3947
3948 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3949 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3950
3951 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3952 Add `args' parameter.
3953 * gdbarch.h, gdbarch.c: Regenerate.
3954
3955 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3956
3957 * infcmd.c (float_info): Call print_float_info.
3958 (print_float_info): New function. By default, print the
3959 floating-point registers.
3960
3961 * arch-utils.h (default_print_float_info): Delete declaration.
3962 * arch-utils.c (default_print_float_info): Delete function.
3963
3964 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3965
3966 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3967 out define.
3968
3969 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3970 FRAME.
3971
3972 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3973 * configure.host: Make i[3456]86-*-aix host obsolete.
3974 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3975 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3976 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3977 config/i386/xm-i386aix.h: Make files obsolete.
3978 * i386aix-nat.c: Make file obsolete.
3979 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3980 (i386aix-nat.o): Make target obsolete.
3981
3982 * config/i386/nm-gnu.h: Removed.
3983 * config/i386/nm-i386gnu.h: New file.
3984 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3985 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3986 Moved here from ...
3987 * config/i386/tm-i386gnu.h: ... here. Removed.
3988 * config/i386/xm-i386gnu.h: Removed.
3989 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3990 (NAT_FILE): Set to nm-i386gnu.h.
3991 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3992 * i386-tdep.c: New file.
3993 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3994 (i386gnu-tdep.o): Specify dependencies.
3995
3996 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3997
3998 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3999 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4000 Adjust a few comments to reflect reality a bit closer.
4001 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4002 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4003 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4004 target_insert_watchpoint, target_remove_watchpoint):
4005 Move defines to ...
4006 * config/i386/nm-i386sco5.h: ... here.
4007 (kernel_u_size): Add prototype. Improve a few comments and add
4008 protection against multiple inclusion.
4009
4010 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4011 out define.
4012
4013 * uw-thread.c (SP_ARG0): Define if not already defined.
4014 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4015
4016 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4017
4018 * config/i386/tm-i386.h: Don't include "regcache.h".
4019
4020 * i387-tdep.h (i387_print_float_info): New prototype.
4021 * i387-tdep.c (print_i387_value, print_i387_ext,
4022 print_i387_status_word, print_i387_control_word): Add `struct
4023 ui_file *' argument and use it for output.
4024 (i387_print_float_info): Renamed from i387_float_info. Add
4025 `struct gdbarch *' and `struct ui_file *' arguments and use the
4026 latter for output.
4027 * i386-tdep.c: Include "i387-tdep.h".
4028 (i386_gdbarch_init): Set print_float_info.
4029 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4030 (FLOAT_INFO): Remove define.
4031
4032 2002-08-13 Michael Snyder <msnyder@redhat.com>
4033
4034 * mips-tdep.c (mips_push_arguments): Rename to
4035 mips_eabi_push_arguments, and tune for EABI.
4036 (MIPS_REGS_HAVE_HOME_P): Delete.
4037 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4038 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4039 Delete references to mips_regs_have_home_p.
4040
4041 2002-08-14 Keith Seitz <keiths@redhat.com>
4042
4043 * Makefile.in (install-gdbtk): Create insight plugin directory.
4044 Install plugins.tcl file.
4045
4046 2002-08-14 Keith Seitz <keiths@redhat.com>
4047
4048 * configure.in: Move SUBDIRS to near top of the file so that
4049 --enable options may add things to it.
4050 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4051 * configure: Regenerate.
4052
4053 2002-08-13 Michael Snyder <msnyder@redhat.com>
4054
4055 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4056 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4057 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4058
4059 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4060
4061 * vax-tdep.c (vax_get_saved_register): Delete function.
4062 (vax_gdbarch_init): Update.
4063 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4064 (ns32k_gdbarch_init): Update.
4065 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4066 (alpha_gdbarch_init): Update.
4067
4068 2002-08-13 Andrew Cagney <cagney@redhat.com>
4069
4070 * regcache.c (init_regcache_descr): Overallocate the
4071 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4072 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4073 nr_raw_registers.
4074 (set_register_cached): Add range checking assertions. Use
4075 current_regcache.
4076
4077 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4078
4079 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4080 numbers for MMX registers.
4081
4082 2002-08-13 Andrew Cagney <cagney@redhat.com>
4083
4084 * i386-tdep.c (i386_gdbarch_init): Use
4085 generic_unwind_get_saved_register.
4086
4087 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4088
4089 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4090 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4091 target vector.
4092 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4093 Delete. Add comment regarding this now-deleted target method.
4094
4095 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4096
4097 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4098 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4099 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4100 real PC and the page number (if it's within the memory bank window).
4101 (m68hc11_pseudo_register_write): Likewise when saving.
4102 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4103 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4104 (m68hc11_register_raw_size): And use 32-bit for it.
4105 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4106 16K memory bank is used by the prog; also use the virtual pc.
4107
4108 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4109
4110 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4111 (m68hc11_gdbarch_init): Install it in gdbarch.
4112 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4113 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4114 (MSYMBOL_SIZE): New for documentation.
4115 (insn_return_kind): Enum to specify how a function returns.
4116 (frame_extra_info): Cleanup and record the return mode.
4117 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4118 register in address computation.
4119 (m68hc11_get_return_insn): New to obtain the return instruction used
4120 by the function.
4121 (m68hc11_frame_init_saved_regs): Take into account the return
4122 instruction used by the function for far and interrupt functions.
4123 (m68hc11_init_extra_frame_info): Take into account page register.
4124 (m68hc11_frame_args_address): Adjust according to the return mode.
4125 (show_regs): Print page register only when it's used.
4126
4127 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4128
4129 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4130 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4131 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4132 registers.
4133 (m68hc11_register_raw_size): Likewise.
4134
4135 2002-08-13 Andrew Cagney <cagney@redhat.com>
4136
4137 * i386-tdep.c (i386_register_name): Handle mmx registers.
4138 (mmx_regnum_p): New function.
4139 (i386_mmx_names): New array.
4140 (mmx_num_regs): New variable.
4141 (i386_pseudo_register_read): New function.
4142 (i386_pseudo_register_write): New function.
4143 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4144
4145 * regcache.c (regcache_raw_read_unsigned): New function.
4146 (regcache_raw_read_signed): New function.
4147 * regcache.h (regcache_raw_read_unsigned): Declare.
4148 (regcache_raw_read_signed): Declare.
4149
4150 2002-08-13 Andrew Cagney <cagney@redhat.com>
4151
4152 * regcache.c (regcache_raw_read_as_address): Delete function.
4153 (regcache_cooked_read_signed): New function.
4154 (regcache_cooked_read_unsigned): New function.
4155 * regcache.h (regcache_cooked_read_signed): Declare.
4156 (regcache_cooked_read_unsigned): Declare.
4157 (regcache_raw_read_as_address): Delete declaration.
4158
4159 * blockframe.c (generic_read_register_dummy): Use
4160 regcache_cooked_read_unsigned.
4161 * i386-tdep.c (i386_extract_struct_value_address): Use
4162 regcache_cooked_read_unsigned.
4163
4164 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4165
4166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4167 double sizes according to ELF ABI flags.
4168 (gdbarch_tdep): Record elf_flags.
4169
4170 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4171
4172 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4173 (m6812_prolog): They can appear in 68HC12 function prologue.
4174 (m68hc11_frame_chain): Cleanup.
4175
4176 2002-08-12 Andrew Cagney <cagney@redhat.com>
4177
4178 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4179 declarations.
4180 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4181 (i386_linux_register_raw_size): Delete function.
4182 (i386_linux_init_abi): Update.
4183 * i386-tdep.c (i386_register_raw_size): Delete function.
4184 (i386_register_byte): Delete function.
4185 (i386_gdbarch_init): Update.
4186 (i386_register_size): Delete array.
4187 (i386_register_offset): Delete array.
4188
4189 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4190 (REGISTER_RAW_SIZE): Delete macro.
4191 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4192 (REGISTER_BYTE): Delete macro.
4193
4194 2002-08-11 Aidan Skinner <aidan@velvet.net>
4195
4196 * ada-lang.c (ada_lookup_partial_symbol)
4197 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4198 prototype names so that grep ^func works properly.
4199
4200 * ada-lang.c (ada_array_element_type)
4201 (ada_lookup_partial_symbol): Fix typos in parameter list.
4202
4203 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4204 Fix prototype names so that grep ^func works properly.
4205
4206 2002-08-10 Andrew Cagney <cagney@redhat.com>
4207 Elena Zannoni <ezannoni@redhat.com>
4208 Martin M. Hunt <hunt@redhat.com>
4209
4210 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4211 (build_builtin_type_vec128i): Set the vector bit.
4212 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4213 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4214 (build_builtin_type_vec64): New function.
4215 (build_builtin_type_vec64i): New function.
4216 (build_gdbtypes): Initialize builtin_type_vec64 and
4217 builtin_type_vec64i.
4218
4219 2002-08-09 Andrew Cagney <cagney@redhat.com>
4220
4221 * regcache.c (regcache_dump): Compare the register offset
4222 with REGISTER_BYTE.
4223 * arch-utils.c (generic_register_byte): New function.
4224 * arch-utils.h (generic_register_byte): Declare.
4225 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4226 * gdbarch.h, gdbarch.c: Regenerate.
4227
4228 2002-08-09 Andrew Cagney <cagney@redhat.com>
4229
4230 * regcache.c: Include "gdbcmd.h"
4231 (_initialize_regcache): Add commands "maintenance print
4232 registers", "maintenance print raw-registers" and "maintenance
4233 print cooked-registers".
4234 (enum regcache_dump_what): Define.
4235 (dump_endian_bytes): New function.
4236 (regcache_dump): New function.
4237 (regcache_print): New function.
4238 (maintenance_print_registers): New function.
4239 (maintenance_print_raw_registers): New function.
4240 (maintenance_print_cooked_registers): New function.
4241 * Makefile.in (regcache.o): Update dependencies.
4242
4243 2002-08-09 Michael Snyder <msnyder@redhat.com>
4244
4245 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4246 (mips_push_arguments): Correct some comments. Use paddr_nz
4247 for printing addresses in debug output. Replace static
4248 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4249 (mips_n32n64_push_arguments): New function, cloned from
4250 mips_push_arguments and tuned for the n32/n64 ABI.
4251 (mips_push_register): Buffer needs dynamic allocation.
4252 (mips_print_register): Ditto.
4253 (do_gp_register_row): Ditto.
4254 (mips_store_return_value): Ditto.
4255 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4256
4257 2002-08-09 Don Howard <dhoward@redhat.com>
4258
4259 * memattr.c (mem_info_command): Print special case of upper bound
4260 as max CORE_ADDR + 1.
4261
4262 2002-08-08 Michael Snyder <msnyder@redhat.com>
4263
4264 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4265 returns structs by ref if they're too big to fit in two registers.
4266
4267 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4268
4269 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4270 saved regs value.
4271 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4272 mips_find_saved_regs().
4273 (mips_pop_frame): Likewise.
4274
4275 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4276
4277 * blockframe.c (frame_saved_regs_register_unwind): Revise
4278 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4279 frames are in use.
4280
4281 2002-08-09 Grace Sainsbury <graces@redhat.com>
4282
4283 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4284 T-packets; the 'a' is not taken as a register number.
4285 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4286 (remote_stopped_data_address): New functions; add to target
4287 vector.
4288 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4289 prototypes to match other implementations of this
4290 function. replace integer argument with pointer -- the length
4291 field in the Z-packet is the length of what is pointed to or 1 if
4292 pointer is null. Add to target vector.
4293 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4294 target vector.
4295
4296 From Mark Salter:
4297 * remote.c (remote_wait): Add support to extract optional
4298 watchpoint information from T-packet. Ignore unrecognized
4299 optional info in T-packet.
4300 (remote_async_wait): Ditto.
4301
4302 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4303
4304 * cli/cli-dump.c: Change fopen modes to use binary open modes
4305 as defined in include/fopen-bin.h throughout.
4306
4307 2002-08-08 Michael Snyder <msnyder@redhat.com>
4308
4309 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4310
4311 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4312
4313 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4314 assertion failure by returning early after a warning.
4315
4316 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4317
4318 * mips-tdep.c (mips_find_saved_regs): Make static.
4319 (mips_frame_init_saved_regs): New function.
4320 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4321 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4322 (mips_find_saved_regs): Delete declaration.
4323
4324 2002-08-08 Grace Sainsbury <graces@redhat.com>
4325
4326 * remote.c (remote_wait, remote_async_wait): Change
4327 thread_num from int to ULONGEST.
4328 (unpack_varlen_hex): Change result parameter from
4329 int * to ULONGEST *.
4330
4331 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4332
4333 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4334 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4335 powerpc*-*-*.
4336 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4337
4338 2002-08-08 Andrew Cagney <cagney@redhat.com>
4339
4340 * gcore.c (override_derive_stack_segment): Delete variable.
4341 (preempt_derive_stack_segment): Delete function.
4342 (derive_stack_segment): Delete function.
4343 (default_derive_stack_segment): Renamed to derive_stack_segment.
4344 (override_derive_heap_segment): Delete variable.
4345 (preempt_derive_heap_segment): Delete function.
4346 (derive_heap_segment): Delete function.
4347 (default_derive_heap_segment): Rename to derive_heap_segment.
4348
4349 2002-08-06 Michael Snyder <msnyder@redhat.com>
4350
4351 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4352 * mips-tdep.c (mips_EABI_use_struct_convention,
4353 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4354 New functions. (mips_use_struct_convention): Delete.
4355 (mips_gdbarch_init): set use_gdbarch_convention.
4356
4357 2002-08-06 Michael Snyder <msnyder@redhat.com>
4358
4359 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4360 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4361 mips_o32_reg_struct_has_addr): New functions.
4362 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4363
4364 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4365
4366 * regcache.c (pseudo_register): Delete function.
4367 (fetch_register): Delete function.
4368 (store_register): Delete function.
4369 (regcache_raw_read, legacy_read_register_gen): Use
4370 target_fetch_registers instead of fetch_register.
4371 (legacy_write_register_gen, regcache_raw_write): Use
4372 target_store_register instead of store_register.
4373 (write_register_bytes): Ditto.
4374
4375 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4376 (STORE_PSEUDO_REGISTER): Delete.
4377 * gdbarch.h, gdbarch.c: Regenerate.
4378
4379 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4380
4381 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4382 write dump file binary.
4383
4384 2002-08-05 Michael Snyder <msnyder@redhat.com>
4385
4386 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4387 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4388 (mips_gdbarch_init): Set N32 target to be mips64.
4389
4390 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4391
4392 * frame.c (find_saved_register): Break out of loop once saved
4393 register address is found. Don't mention sparc in loop comment
4394 anymore.
4395
4396 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4397
4398 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4399 mips_default_saved_regsize to 8.
4400
4401 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4402
4403 * gcore.c: Do not include <sys/procfs.h>.
4404 * Makefile.in (gcore.o): Update dependencies.
4405
4406 2002-08-06 Andrew Cagney <cagney@redhat.com>
4407
4408 * configure.tgt: Make arc-*-* obsolete.
4409 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4410 * MAINTAINERS: Make arc-elf obsolete.
4411 * arc-tdep.c: Make file obsolete.
4412 * config/arc/arc.mt: Ditto.
4413 * config/arc/tm-arc.h: Ditto.
4414
4415 2002-08-05 Theodore A. Roth <troth@verinet.com>
4416
4417 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4418
4419 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4420
4421 * mcore-tdep.c (mcore_gdbarch_init): Use
4422 generic_unwind_get_saved_register instead of
4423 generic_get_saved_register.
4424 * v850-tdep.c (v850_gdbarch_init): Ditto.
4425 * frv-tdep.c (frv_gdbarch_init): Ditto.
4426 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4427 * s390-tdep.c (s390_gdbarch_init): Ditto.
4428 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4429 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4430 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4431
4432 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4433
4434 * objfiles.h: Add missing #include "symfile.h"
4435
4436 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4437
4438 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4439
4440 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4441 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4442 of FIELD_BITSIZE.
4443
4444 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4445
4446 * NEWS: Cleanup and nitpick.
4447
4448 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4449
4450 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4451
4452 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4453
4454 * Makefile.in (gdbtk-bp.o): Update dependencies.
4455 (gdbtk-register.o): Ditto.
4456 (gdbtk-varobj.o): Ditto.
4457
4458 2002-08-03 Andrew Cagney <cagney@redhat.com>
4459
4460 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4461 m68hc11_fetch_pseudo_register.
4462 (m68hc11_pseudo_register_write): Replace
4463 m68hc11_store_pseudo_register.
4464 (m68hc11_gdbarch_init): Update.
4465
4466 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4467
4468 * gdbarch.sh: Include "gdb_string.h".
4469 * gdbarch.c: Regenerate.
4470
4471 * regcache.c: Include "gdb_string.h".
4472 * ax-general.c: Ditto.
4473 * varobj.c: Ditto.
4474 * std-regs.c: Ditto.
4475 * fbsd-proc.c: Ditto.
4476 * thread.c: Ditto.
4477
4478 * Makefile.in (regcache.o): Update dependencies.
4479 (thread.o, gdbarch.o): Ditto.
4480 (ax-general.o, gdbarch.o): Ditto.
4481 (varobj.o, std-regs.o): Ditto.
4482 (fbsd-proc.o): Specify dependencies.
4483
4484 2002-08-02 Andrew Cagney <cagney@redhat.com>
4485
4486 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4487 regnum.
4488 (regcache_cooked_write): Ditto.
4489
4490 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4491
4492 * regcache.c (regcache_cooked_read): New function.
4493 (regcache_cooked_write): New function.
4494 (read_register_gen): Rewrite using regcache_cooked_read.
4495 (write_register_gen): Rewrite using regcache_cooked_write.
4496
4497 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4498 Declare.
4499
4500 2002-08-02 Andrew Cagney <cagney@redhat.com>
4501
4502 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4503 Replace the architecture methods register_read and register_write.
4504 * gdbarch.h, gdbarch.c: Regenerate.
4505 * regcache.c (init_regcache_descr): Update.
4506 (read_register_gen): Update.
4507 (write_register_gen): Update.
4508 (supply_register): Update comment.
4509
4510 * sh-tdep.c (sh_gdbarch_init): Update.
4511 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4512 `regcache' and `gdbarch' parameters. Make `buffer' a void
4513 pointer. Update code.
4514 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4515 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4516 void pointer. Update code.
4517 (sh64_register_write): Delete.
4518 (sh4_register_read): Delete.
4519 (sh64_register_read): Delete.
4520 (sh4_register_write): Delete.
4521 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4522 void pointer, `to' parameter a void pointer.
4523 (sh_sh64_register_convert_to_raw): Ditto.
4524
4525 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4526
4527 * mips-tdep.c (mips_register_virtual_type): Use architecture
4528 invariant return values.
4529
4530 2002-08-01 Andrew Cagney <cagney@redhat.com>
4531
4532 * linux-proc.c: Include "gdb_string.h".
4533 * Makefile.in (linux-proc.o): Update dependency list.
4534
4535 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4536
4537 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4538 comment.
4539
4540 2002-08-01 Grace Sainsbury <graces@redhat.com>
4541
4542 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4543 to_insert_watchpoint, to_remove_watchpoint,
4544 to_stopped_by_watchpoint, to_stopped_data_address,
4545 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4546 target vecctor. Define their corresponding macros so they call
4547 them.
4548
4549 * target.c: Add default and debug versions of for
4550 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4551 to_insert_watchpoint, to_remove_watchpoint,
4552 to_stopped_by_watchpoint, to_stopped_data_address,
4553 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4554
4555 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4556
4557 * mips-tdep.c (mips_register_virtual_type): New function.
4558 (mips_gdbarch_init): Register mips_register_virtual_type()
4559 with gdbarch machinery.
4560 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4561 this file instead of tm-bigmips.h.
4562 (MIPS_REGSIZE): Delete this macro.
4563 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4564 multiarch version in mips-tdep.c will be found.
4565
4566 2002-08-01 Andrew Cagney <cagney@redhat.com>
4567
4568 * NEWS: Menion that CHILL has been made obsolete.
4569
4570 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4571 * stabsread.c (read_range_type): Ditto.
4572 * gdbtypes.h: Ditto.
4573 * language.c (binop_type_check): Ditto.
4574 (binop_result_type): Ditto.
4575 (integral_type): Ditto.
4576 (character_type): Ditto.
4577 (string_type): Ditto.
4578 (boolean_type): Ditto.
4579 (structured_type): Ditto.
4580 (lang_bool_type): Ditto.
4581 (binop_type_check): Ditto.
4582 * language.h (_LANG_chill): Ditto.
4583 * dwarfread.c (set_cu_language): Ditto.
4584 * dwarfread.c (CHILL_PRODUCER): Ditto.
4585 * dwarfread.c (handle_producer): Ditto.
4586 * expression.h (enum exp_opcode): Ditto.
4587 * eval.c: Ditto for comments.
4588 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4589 * expprint.c (print_subexp): Ditto.
4590 (print_subexp): Ditto.
4591 * valops.c (value_cast): Ditto.
4592 (search_struct_field): Ditto.
4593 * value.h (COERCE_VARYING_ARRAY): Ditto.
4594 * symfile.c (init_filename_language_table): Ditto.
4595 (add_psymbol_with_dem_name_to_list): Ditto.
4596 * valarith.c (value_binop): Ditto.
4597 (value_neg): Ditto.
4598 * valops.c (value_slice): Ditto.
4599 * symtab.h (union language_specific): Ditto.
4600 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4601 (SYMBOL_DEMANGLED_NAME): Ditto.
4602 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4603 * defs.h (enum language): Ditto.
4604 * symtab.c (got_symtab): Ditto.
4605 * utils.c (fprintf_symbol_filtered): Ditto.
4606
4607 * ch-typeprint.c: Make file obsolete.
4608 * ch-valprint.c: Make file obsolete.
4609 * ch-lang.h: Make file obsolete.
4610 * ch-exp.c: Make file obsolete.
4611 * ch-lang.c: Make file obsolete.
4612
4613 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4614 CHILL_LIB.
4615 (TARGET_FLAGS_TO_PASS): Ditto.
4616 (CHILLFLAGS): Obsolete.
4617 (CHILL): Obsolete.
4618 (CHILL_FOR_TARGET): Obsolete.
4619 (CHILL_LIB): Obsolete.
4620 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4621 ch-valprint.c.
4622 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4623 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4624 ch-lang.o.
4625 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4626 targets.
4627
4628 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4629
4630 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4631 This does not change anything at the moment, but will be helpful
4632 later when full Ada support is integrated.
4633
4634 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4635
4636 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4637 help message.
4638
4639 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4640
4641 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4642 and save it in a local variable. Use variable in later test.
4643
4644 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4645
4646 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4647 test. (Thanks to Daniel Jacobowitz.)
4648
4649 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4650
4651 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4652 (mips_abi_strings): Add "n64".
4653 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4654
4655 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4656
4657 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4658 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4659
4660 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4661
4662 * utils.c (host_pointer_to_address, address_to_host_pointer):
4663 Use gdb_assert() instead of explicit call to internal_error().
4664
4665 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4666
4667 * Makefile.in (rs6000-nat.o): Update dependencies.
4668
4669 From Nicholas Duffek:
4670 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4671 (aix-thread.o): New rule.
4672 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4673 * config/powerpc/aix432.mh: New file.
4674
4675 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4676
4677 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4678 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4679 (fetch_core_registers, ppc_linux_supply_gregset)
4680 (ppc_linux_supply_fpregset): New functions.
4681 (ppc_linux_regset_core_fns): New.
4682 (_initialize_ppc_linux_tdep): Call add_core_fns.
4683 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4684 and ppc_linux_supply_gregset.
4685 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4686 (supply_fpregset): Call ppc_linux_supply_fpregset.
4687 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4688 corelow.o.
4689 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4690
4691 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4692
4693 * symtab.c (lookup_symbol): Demangle before lowercasing.
4694
4695 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4696
4697 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4698 declaration.
4699 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4700 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4701 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4702 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4703 "gdb_string.h".
4704 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4705 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4706 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4707 (avr-tdep.o, mon960-rom.o): Ditto.
4708 (aout_stabs_gnu_h): Define.
4709 (symtab_h): Remove $(gdb_obstack_h).
4710
4711 2002-07-30 Jim Blandy <jimb@redhat.com>
4712
4713 Patch from David Carlton <carlton@math.stanford.edu>:
4714 * gdbinit.in: Move the `dir' commands that add GDB's own source
4715 directory to the search path to the end, so that the `gdb' source
4716 directory will be searched first.
4717
4718 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4719
4720 * gdb_obstack.h: New file.
4721 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4722 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4723 * objfiles.h: Include "gdb_obstack.h".
4724 * Makefile.in (gdb_obstack_h): Define.
4725 (symtab_h): Add $(gdb_obstack_h).
4726 (objfiles_h): Add $(gdb_obstack_h).
4727
4728 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4729 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4730 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4731 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4732 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4733 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4734 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4735 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4736
4737 * Makefile.in (bcache.o): Update dependencies.
4738 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4739 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4740 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4741 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4742 (stabsread.o, symfile.o, symmisc.o): Ditto.
4743 (symtab.o, typeprint.o, macroexp.o): Ditto.
4744 (macrotab.o, mdebugread.o): Ditto.
4745 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4746 (coff_ecoff_h, aout_aout64_h): Define.
4747 (aout_stabs_gnu_h, libaout_h): Define.
4748
4749 2002-07-29 Andrew Cagney <cagney@redhat.com>
4750
4751 * regcache.c (struct regcache_descr): Rename nr_registers to
4752 nr_cooked_registers. Revise comments describing the structure
4753 member fields.
4754 (init_regcache_descr): Update.
4755 (init_legacy_regcache_descr): Update.
4756 (read_register_gen, write_register_gen): When a cooked register in
4757 the raw register range, directly access the value from the raw
4758 register cache.
4759
4760 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4761
4762 * z8k-tdep.c: Do not include "obstack.h".
4763 * h8300-tdep.c, h8500-tdep.c: Ditto.
4764 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4765 * valprint.c, v850-tdep.c: Ditto.
4766 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4767 * mn10200-tdep.c: Ditto.
4768
4769 * Makefile.in (z8k-tdep.o): Update dependencies.
4770 (m68hc11-tdep.o, valprint.o): Ditto.
4771 (v850-tdep.o, d10v-tdep.o): Ditto.
4772 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4773 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4774 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4775 (sh_opc_h, gdb_sim_sh_h): Define.
4776 (elf_sh_h, elf_bfd_h): Define.
4777 (opcode_m68hc11_h): Define.
4778 (OPCODES_SRC, OPCODES_DIR): define.
4779 (OPCODES): Use $(OPCODES_DIR).
4780 (gdb_sim_d10v_h): Rename sim_d10v_h.
4781 (gdb_sim_arm_h): Rename sim_arm_h.
4782
4783 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4784
4785 * utils.c (host_pointer_to_address, address_to_host_pointer):
4786 Change internal_error() message to indicate function responsible
4787 for the error.
4788
4789 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4790
4791 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4792 calls to local_hex_string_custom().
4793
4794 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4795
4796 * irix5-nat.c: Move IRIX shared library support from here...
4797 * solib-irix.c: ...to here. Revised substantially to work with
4798 generic solib framework.
4799
4800 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4801 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4802 * mips-irix-tdep.c: New file.
4803
4804 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4805 (mips-irix-tdep.o, solib-irix.o): New rules.
4806 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4807 solib-irix.o.
4808 * config/mips/irix6.mt (TDEPFILES): Likewise.
4809 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4810
4811 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4812
4813 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4814 disabled (via ``#if 0'') includes.
4815
4816 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4817
4818 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4819 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4820 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4821 Add support for the fpscr register.
4822 * rs6000-nat.c (regmap, fetch_inferior_registers)
4823 (store_inferior_registers, fetch_core_registers): Likewise.
4824
4825 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4826
4827 * rs6000-nat.c (language.h): Include.
4828 (special_regs): Delete this array.
4829 (regmap): New function.
4830 (fetch_register, store_register): Use regmap() to map gdb
4831 register numbers to ptrace register numbers. Also, use
4832 outputs from regmap() to make decisions regarding type of
4833 ptrace() call to make. In particular, don't compare against
4834 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4835 (fetch_inferior_registers, store_inferior_registers): Where
4836 possible, obtain register numbers from tdep struct. Don't
4837 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4838 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4839 (LAST_UISA_SP_REGNUM): Delete.
4840
4841 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4842
4843 * rs6000-nat.c (ppc-tdep.h): Include.
4844 (fetch_registers, store_register, fetch_core_registers): Don't
4845 access registers[] directly. Instead, use supply_register() or
4846 regcache_collect() as appropriate.
4847 (find_toc_address): Format hex address with local_hex_string().
4848
4849 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4850
4851 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4852 bfd/elf32-frv.c.
4853
4854 2002-07-24 Tom Tromey <tromey@redhat.com>
4855
4856 * jv-exp.y: Marked all strings with _().
4857 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4858 internal_error.
4859 (MethodInvocation, CastExpression, parse_number, yyerror,
4860 java_type_from_name, push_expression_name, yylex): Typo fixes.
4861
4862 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4863
4864 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4865 (tee_file_flush, tee_file_write, tee_file_fputs)
4866 (tee_file_isatty): New.
4867 * ui-file.h (tee_file_new): Add prototype.
4868
4869 2002-07-24 Aidan Skinner <aidan@velvet.net>
4870
4871 * ada-lang.c: Change k&r style function definitions to prototyped
4872 form.
4873 * ada-typeprint.c: Change k&r style function definitions to prototyped
4874 form.
4875 * ada-valprint.c: Change k&r style function definitions to prototyped
4876 form.
4877
4878 2002-07-24 Andrew Cagney <cagney@redhat.com>
4879
4880 * README: Remove reference to remote-bug.
4881 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4882 remote-bug.c.
4883 (m88k-nat.o): Delete rule.
4884 (m88k-tdep.o): Delete rule.
4885 (remote-bug.o): Delete rule.
4886 * MAINTAINERS: Mark as obsolete.
4887 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4888 * m88k-tdep.c: Make file obsolete.
4889 * config/m88k/m88k.mh: Ditto.
4890 * config/m88k/delta88v4.mh: Ditto.
4891 * config/m88k/delta88v4.mt: Ditto.
4892 * config/m88k/delta88.mt: Ditto.
4893 * config/m88k/delta88.mh: Ditto.
4894 * remote-bug.c: Ditto.
4895 * config/m88k/tm-delta88.h: Ditto.
4896 * config/m88k/nm-delta88v4.h: Ditto.
4897 * config/m88k/xm-delta88.h: Ditto.
4898 * config/m88k/xm-dgux.h: Ditto.
4899 * config/m88k/tm-m88k.h: Ditto.
4900 * config/m88k/nm-m88k.h: Ditto.
4901 * config/m88k/tm-delta88v4.h: Ditto.
4902 * m88k-nat.c: Ditto.
4903 * cxux-nat.c: Ditto.
4904 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4905 and m88*-*-* obsolete.
4906 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4907 m88*-*-* obsolete.
4908
4909 2002-07-24 Andrew Cagney <cagney@redhat.com>
4910
4911 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4912 constant. Same for local pointer variables.
4913 (extract_signed_integer): Ditto.
4914 * defs.h (extract_unsigned_integer): Update.
4915 (extract_signed_integer): Update.
4916
4917 2002-07-24 Andrew Cagney <cagney@redhat.com>
4918
4919 * regcache.c (regcache_raw_write): Change buf parameter to a
4920 constant void pointer.
4921 (regcache_raw_read): Change buf parameter to a void pointer.
4922 (legacy_write_register_gen): Change myaddr parameter a constant
4923 void pointer.
4924 (supply_register): Change val parameter to a const void pointer.
4925 * regcache.h (regcache_raw_write): Update declaration.
4926 (regcache_raw_read): Update declaration.
4927 (supply_register): Update declaration.
4928
4929 2002-07-24 Tom Tromey <tromey@redhat.com>
4930
4931 * defs.h (gdb_readline_wrapper): Declare.
4932 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4933 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4934 * top.c (gdb_readline_wrapper): New function.
4935 (command_line_input): Use it.
4936
4937 2002-07-24 Andrew Cagney <cagney@redhat.com>
4938
4939 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4940 regcache_read and regcache_write.
4941 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4942 * regcache.c: Update.
4943 * sh-tdep.c (sh64_push_arguments): Update comment.
4944 (sh_pseudo_register_read): Update.
4945 (sh_pseudo_register_write): Update.
4946 (sh4_register_read): Update.
4947 (sh4_register_write): Update.
4948 (sh64_pseudo_register_read): Update.
4949 (sh64_pseudo_register_write): Update.
4950 (sh64_register_read): Update.
4951 (sh64_register_write): Update.
4952 * i386-tdep.c (i386_extract_return_value): Update.
4953 (i386_extract_struct_value_address): Update.
4954 (i386_extract_return_value): Update.
4955 * blockframe.c (generic_read_register_dummy): Update.
4956 (generic_call_dummy_register_unwind): Update
4957 * infrun.c (write_inferior_status_register): Update.
4958
4959 2002-07-23 Jim Blandy <jimb@redhat.com>
4960
4961 * parser-defs.h (expression_context_pc): Make this extern.
4962 (Thanks to Michael Snyder.)
4963
4964 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4965
4966 GDB 5.2.1 released from 5.2 branch.
4967 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4968 * README: Update to mention 5.2.1.
4969
4970 2002-07-23 Mark Salter <msalter@redhat.com>
4971
4972 * remote.c (remote_read_bytes): Fix check for error.
4973
4974 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4975
4976 * aix-thread.c (language.h): Include.
4977 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4978 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4979 Print newlines at end of debug messages.
4980 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4981 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4982
4983 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4984
4985 * aix-thread.c (ppc-tdep.h): Include.
4986 (special_register_p): New function.
4987 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4988 (store_regs_user_thread): Use register number information from
4989 gdbarch_tdep struct instead of hardcoded offsets relative to
4990 FIRST_UISA_SP_REGNUM.
4991 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4992 special_register_p() instead of using FPLAST_REGNUM and
4993 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4994 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4995 will be MQ's register number.
4996
4997 2002-07-22 Michael Snyder <msnyder@redhat.com>
4998
4999 * aix-thread.c (ops): Rename to aix_thread_ops.
5000 (base_ops): Rename to base_target.
5001 (ops_attach): Rename to aix_thread_attach.
5002 (ops_detach): Rename to aix_thread_detach.
5003 (ops_resume): Rename to aix_thread_detach.
5004 (ops_wait): Rename to aix_thread_wait.
5005 (ops_kill): Rename to aix_thread_kill.
5006 (init_ops): Rename to init_aix_thread_ops.
5007 (ops_fetch_register): Rename to aix_thread_fetch_register.
5008 (ops_store_register): Rename to aix_thread_store_register.
5009 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5010 (ops_thread_alive): Rename to aix_thread_thread_alive.
5011 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5012 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5013 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5014 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5015 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5016 (store_regs_lib): Rename to store_regs_user_thread.
5017 (store_regs_kern): Rename to store_regs_kernel_thread.
5018
5019 2002-07-22 Michael Snyder <msnyder@redhat.com>
5020
5021 * aix-thread.c (ops_prepare_to_store): Eliminate.
5022 (init_ops): Don't initialize ops.prepare_to_store.
5023 (store_regs_kern): Pre-fetch register buffers from child,
5024 because some registers may not be in the cache. Copy
5025 regs from register cache only if they are cached.
5026 (store_regs_lib): Copy regs from register cache only
5027 if they are cached.
5028 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5029 fill_gprs64): Ditto.
5030
5031 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5032
5033 * aix-thread.c (gdb_assert.h): Include.
5034 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5035 register sizes (from register cache) match size of buffer holding
5036 register data.
5037 (fill_sprs32): Change parameter types to match those in the ptrace()
5038 buffer.
5039 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5040 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5041
5042 2002-07-22 Michael Snyder <msnyder@redhat.com>
5043
5044 * aix-thread.c (supply_sprs64): Cosmetic change.
5045 (supply_sprs32): Cosmetic change.
5046 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5047 (fill_sprs64): Use regcache_collect instead of read_register.
5048 (store_regs_lib): Use regcache_collect instead of
5049 read_register. Use fill_sprs32 instead of fill_sprs64,
5050 if debugging a 32-bit architecture.
5051 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5052 out of the register cache, instead of passing a pointer into
5053 the register cache directly to ptrace. Use regcache_collect
5054 insteaad of read_register.
5055 (ops_prepare_to_store): Use target_read_registers instead
5056 of read_register_bytes.
5057
5058 2002-07-20 Aidan Skinner <aidan@velvet.net>
5059
5060 * MAINTAINERS: Add self under write after approval.
5061
5062 2002-07-20 Aidan Skinner <aidan@velvet.net>
5063
5064 * ada-tasks.c: Change k&r style function definitions to prototyped
5065 form.
5066
5067 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5068
5069 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5070 * x86-64-tdep.c: Include "objfiles.h".
5071 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5072 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5073
5074 2002-07-17 Michal Ludvig <michal@suse.cz>
5075
5076 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5077 (update_context): Initialise cfa variable.
5078
5079 2002-07-17 Michael Snyder <msnyder@redhat.com>
5080
5081 * aix-thread.c: Shorten some long lines.
5082 Bring comments into line with code spec.
5083
5084 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5085
5086 * infrun.c: Re-indent using gdb_indent.sh.
5087
5088 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5089
5090 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5091 Leave the indentation temporarily untouched, to minimize the diffs.
5092
5093 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5094
5095 * stabsread.c: Make os9k sections of the code obsolete,
5096 for real this time.
5097 * stabsread.h: Make os9k sections of the code obsolete.
5098
5099 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5100
5101 * linux-low.c (regsets_store_inferior_registers): Add free()
5102 at the end of a loop to prevent memory leak.
5103 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5104 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5105 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5106 line a comment.
5107 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5108
5109 2002-07-17 Jim Blandy <jimb@redhat.com>
5110
5111 * macrocmd.c (info_macro_command): Remove newline from error
5112 message.
5113
5114 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5115
5116 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5117 (sh_gdbarch_init): Use it for sh-dsp.
5118
5119 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5120
5121 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5122 64-bit DWARF2 format.
5123
5124 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5125
5126 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5127 <sys/proc.h> when not available.
5128
5129 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5130
5131 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5132 * stabsread.c: Make os9k sections of the code obsolete.
5133 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5134 * config/i386/i386os9k.mt: Make file obsolete.
5135 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5136 (COMMON_OBS): Remove os9kread.o
5137 (SFILES): Remove os9kread.c.
5138 (os9kread.o, remote-os9k.o): Make target obsolete.
5139 * remote-os9k.c: Make file obsolete.
5140 * os9kread.c: Make file obsolete.
5141 * Makefile.in
5142
5143 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5144
5145 * NEWS: Mention that the FR30 has been made obsolete.
5146 * fr30-tdep.c: Make file obsolete.
5147 * config/fr30/tm-fr30.h: Ditto.
5148 * config/fr30/fr30.mt: Ditto.
5149 * configure.tgt: Make fr30-*-elf obsolete.
5150 * MAINTAINERS: Make fr30-elf obsolete.
5151
5152 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5153
5154 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5155 found is not inside a section.
5156
5157 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5158
5159 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5160 strerror().
5161 (pdc_realloc): Use xrealloc() instead of realloc().
5162
5163 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5164
5165 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5166 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5167 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5168 macros.
5169
5170 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5171
5172 * aix-thread.c (ptrace_check): Eliminate goto.
5173 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5174 problem.
5175
5176 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5177
5178 * aix-thread.c (gdbcmd.h): Include.
5179 (DEBUG, DBG, DBG2, dbg): Eliminate.
5180 (debug_aix_thread): New static global.
5181 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5182 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5183 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5184 invocations to DBG and DBG2 macros to test against
5185 ``debug_aix_thread'' and call fprintf_unfiltered().
5186 (_initialize_aix_thread): Add new command "set debug aix-thread".
5187
5188 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5189
5190 From Gerhard Tonn <TON@de.ibm.com>:
5191 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5192 instead of supply_register.
5193
5194 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5195
5196 * dwarf2cfi.c: Include "gdb_assert.h".
5197 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5198 non-NULL.
5199 (update_context): Do not use __func__. Add missing ``break''.
5200 (update_context): Do not use __func__.
5201
5202 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5203
5204 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5205 and its setting. Set gdbarch instruction printing functions
5206 directly. For non-rs6000 case use new function
5207 gdb_print_insn_powerpc.
5208 (gdb_print_insn_powerpc): New function.
5209
5210 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5211
5212 * NEWS: Mention that the d30v has been marked obsolete.
5213 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5214 * configure.tgt: Mark d30v-*-* as obsolete.
5215 * d30v-tdep.c: Mark file as obsolete.
5216 * config/d30v/d30v.mt: Ditto.
5217 * config/d30v/tm-d30v.h: Ditto.
5218
5219 2002-07-13 Aidan Skinner <aidan@velvet.net>
5220
5221 * ada-tasks.c (add_task_entry): replace calls to
5222 malloc() with xmalloc
5223 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5224
5225 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5226 ada_finish_decode_line_1, all_sals_for_line
5227 ada_breakpoint_rewrite): replace calls to free() with xfree()
5228
5229 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5230
5231 From Nicholas Duffek (with minor changes by Martin Hunt,
5232 Louis Hamilton, and Kevin Buettner):
5233 * aix-thread.c: New file.
5234
5235 2002-07-12 Petr Sorfa <petrs@caldera.com>
5236
5237 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5238 complaint for invalid attribute class or form.
5239 (read_func_scope): DW_AT_frame_base
5240 better handling of DW_AT_block*.
5241 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5242 better handling of DW_AT_block*.
5243 (read_common_block): DW_AT_location
5244 better handling of DW_AT_block*.
5245 (read_partial_die): DW_AT_location better handling
5246 of DW_AT_block*.
5247 (new_symbol): DW_AT_external better handling of
5248 DW_AT_block*. Proper initialization of variable
5249 "addr".
5250 (attr_form_is_block): New function that returns true
5251 if the attribute's form is of DW_FORM_block*.
5252
5253 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5254
5255 * valops.c (find_method_list): Remove comment about
5256 removed STATIC_MEMFUNCP argument.
5257 (value_find_oload_method_list): Likewise.
5258
5259 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5260
5261 From Nicholas Duffek:
5262 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5263 target_new_objfile_hook.
5264
5265 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5266
5267 From Nicholas Duffek:
5268 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5269 csect.
5270
5271 2002-07-12 Andrew Cagney <cagney@redhat.com>
5272
5273 * MAINTAINERS: Mention --enable-sim-build-warnings.
5274 (m68hc11-elf): Disable sim build warnings.
5275 (m32r-elf): Mark as broken obsolete candidate.
5276 (x86_64-linux-gnu): Mark as buildable with -Werror.
5277 (arm-elf): Change -w to ``,'' which enables warnings but not
5278 -Werror.
5279
5280 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5281
5282 * bcache.h: Update copyright.
5283 (struct bstring, struct bcache): Move definition to "bcache.c".
5284 Replaced by opaque declaration.
5285 (bcache_xfree): Replace free_bcache.
5286 (bcache_xmalloc, bcache_memory_used): Declare.
5287
5288 * bcache.c: Update copyright.
5289 (struct bstring, struct bcache): Moved to here from "bcache.h".
5290 Update comments.
5291 (bcache_xmalloc, bcache_memory_used): New functions.
5292 (bcache_xfree): Replace function free_bcache.
5293
5294 * Makefile.in (objfiles.o): Add $(bcache_h).
5295 (objfiles_h): Remove $(bcache_h).
5296 (symfile.o): Add $(bcache_h).
5297
5298 * symmisc.c: Update copyright.
5299 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5300 (print_objfile_statistics): Use bcache_memory_used.
5301
5302 * symfile.c: Include "bcache.h".
5303 (reread_symbols): Use bcache_xfree.
5304 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5305 (add_psymbol_to_list): Pass psymbol_cache by value.
5306 (add_psymbol_with_dem_name_to_list): Ditto.
5307
5308 * objfiles.h: Update copyright.
5309 (struct bcache): Declare opaque. Do not include "bcache.h".
5310 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5311 bcache'' pointers.
5312 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5313
5314 * objfiles.c: Include "bcache.h". Update copyright.
5315 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5316 macro_cache.
5317 (free_objfile): Use bcache_xfree.
5318
5319 2002-07-11 Grace Sainsbury <graces@redhat.com>
5320
5321 * monitor.c (monitor_fetch_register): Make name a constant.
5322 (monitor_store_register): Same.
5323
5324 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5325
5326 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5327 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5328 (finish_block) For non-function blocks, hash the symbol table. For
5329 function blocks, mark the symbol table as unhashed.
5330 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5331 (msymbol_hash_iw): Likewise.
5332 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5333 value.
5334 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5335 (lookup_minimal_symbol): Likewise for both.
5336 * symtab.h (struct block): Add `hashtable' flag. Comment the
5337 hashtable.
5338 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5339 (ALL_BLOCK_SYMBOLS): Update.
5340 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5341 (struct symbol): Add `hash_next' pointer.
5342 * symtab.c (lookup_block_symbol): Search using the hash table when
5343 possible.
5344 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5345 (search_symbols, find_addr_symbol): Likewise.
5346
5347 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5348 (read_dst_symtab): Likewise.
5349 * jv-lang.c (get_java_class_symtab): Likewise.
5350 * mdebugread.c: Include "gdb_assert.h".
5351 (shrink_block): Assert that the block being modified is not hashed.
5352 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5353 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5354 symbols.
5355 (dump_symtab): Recognize hashed blocks.
5356 * printcmd.c (print_frame_args): Assert that function blocks do not
5357 have hashed symbol tables.
5358 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5359 (fill_in_ada_prototype, debug_print_block): Likewise.
5360 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5361
5362 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5363
5364 * stack.c (print_frame): Use result of frame_address_in_block()
5365 instead of fi->pc when evaluating symbols.
5366 (backtrace_command_1): Ditto.
5367
5368 2002-07-11 Andrew Cagney <cagney@redhat.com>
5369
5370 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5371 Make static.
5372
5373 * arm-tdep.c (arm_register_name): Make return type constant.
5374
5375 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5376
5377 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5378 prototype.
5379 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5380 * s390-tdep.c (s390_fp_regnum): Ditto.
5381 (s390_read_fp): Ditto.
5382 (s390_pop_frame): Ditto.
5383 (_initialize_s390_tdep): Ditto.
5384 * remote.c (get_remote_state): Ditto.
5385 * procfs.c (mappingflags): Ditto.
5386 * memattr.c (_initialize_mem): Ditto.
5387 * mcore-tdep.c (mcore_pop_frame): Ditto.
5388 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5389 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5390 * language.c (set_case_str): Ditto.
5391 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5392 * frv-tdep.c (new_variant): Ditto.
5393 (frv_stopped_data_address): Ditto.
5394 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5395 (context_alloc): Ditto.
5396 (frame_state_alloc): Ditto.
5397 (unwind_tmp_obstack_init): Ditto.
5398 (unwind_tmp_obstack_free): Ditto.
5399 (cfi_read_fp): Ditto.
5400 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5401 (cris_pop_frame): Ditto.
5402 * c-lang.c (scanning_macro_expansion): Ditto.
5403 (finished_macro_expansion): Ditto.
5404 (c_preprocess_and_parse): Ditto.
5405 * gdbarch.sh: Ditto.
5406 * gdbarch.h, gdbarch.c: Regenerate.
5407 * config/mn10200/tm-mn10200.h: Adjust indentation.
5408 * target.c: Adjust indentation.
5409 * symtab.h: Adjust indentation.
5410 * stabsread.h: Adjust indentation.
5411 * remote-es.c: Adjust indentation.
5412 * os9kread.c: Adjust indentation.
5413
5414 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5415
5416 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5417 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5418
5419 2002-07-10 Grace Sainsbury <graces@redhat.com>
5420
5421 * NEWS: Mention m68k, mcore multi-arching.
5422 * MAINTAINERS: Change status of m68k, mcore to reflect
5423 multi-arching.
5424
5425 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5426
5427 * valops.c (find_overload_match): Free oload_syms.
5428
5429 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5430
5431 Define HAVE_SYS_PROC_H if sys/proc.h exists
5432 * configure.in: Add check for sys/proc.h
5433 * config.in: Regenerate.
5434 * configure: Regenerate.
5435
5436 2002-07-09 Grace Sainsbury <graces@redhat.com>
5437
5438 * config/m68k/tm-m68k.h: Remove macros wrapped in
5439 #if !GDB_MULTI_ARCH.
5440
5441 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5442
5443 * config.in, configure: Regenerate.
5444
5445 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5446
5447 * dwarf2cfi.c: Include "gcore.h".
5448 (execute_stack_op): Fix implementation of the
5449 DW_OP_deref and DW_OP_deref_size operators by letting do their
5450 lookup in the target.
5451
5452 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5453
5454 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5455 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5456 tdep->sc_sp_offset.
5457
5458 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5459
5460 Fix PR gdb/595, gdb/602
5461 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5462 Don't call value_cast, just read the vtable pointer; update comments
5463 to match.
5464
5465 2002-07-05 Grace Sainsbury <graces@redhat.com>
5466
5467 * config/mcore/tm-mcore.h: Remove file.
5468 * config/mcore/mcore.mt: Remove definition of TM_FILE
5469 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5470
5471 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5472
5473 * i386bsd-tdep.c: Include "gdb_string.h".
5474
5475 2002-07-04 Grace Sainsbury <graces@redhat.com>
5476
5477 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5478 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5479 mcore-tdep.
5480 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5481 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5482 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5483 (RETVAL_REGNUM): Move macros from tm-mcore.h
5484 (mcore_reg_struct_has_addr): New function.
5485 (mcore_gdbarch_init): Added initializations for the macros removed
5486 from tm-mcore.h.
5487
5488 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5489
5490 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5491 traditonal string branding within the ELF header.
5492
5493 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5494
5495 * symtab.c (remove_params): New function.
5496 (make_symbol_overload_list): Use it instead of cplus_demangle.
5497 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5498
5499 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5500
5501 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5502
5503 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5504 New variables.
5505 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5506 and tdep->sigtramp_end.
5507 * i386obsd-nat.c: New file.
5508 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5509
5510 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5511 Don't call get_current_frame().
5512
5513 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5514
5515 * i386-nat.c (child_post_startup_inferior): New function
5516 calling i386_cleanup_dregs if
5517 I386_USE_GENERIC_WATCHPOINTS is defined.
5518 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5519 conditional to acknowledge that i386-nat.c has its
5520 own child_post_startup_inferior function.
5521
5522 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5523
5524 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5525 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5526 instead of MAX_REGISTER_RAW_SIZE.
5527 (i386_extract_return_value, i386_extract_struct_value_address):
5528 Convert to use regcache.
5529 (i386_gdbarch_init): Set max_register_raw_size and
5530 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5531 Set extract_return_value and extract_struct_value_address instead
5532 of their deprecated variants.
5533
5534 Convert i386 target to generic dummy frames.
5535 * i386-tdep.c: Include "symfile.h".
5536 (i386_frameless_signal_p): Consider a function to be frameless if
5537 the pc points at the first instruction of the function.
5538 (i386_frame_chain): Handle (generic) call dummies.
5539 (i386_frame_saved_pc): Likewise.
5540 (i386_frame_init_saved_regs): Remove code dealing with call
5541 dummies on the stack.
5542 (i386_push_dummy_frame): Removed.
5543 (i386_call_dummy_words): Removed.
5544 (i386_fix_call_dummy): Removed.
5545 (i386_push_return_address): New function.
5546 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5547 parameter, and don't call get_current_frame.
5548 (i386_pop_frame): New function.
5549 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5550 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5551 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5552 call_dummy_length to 0, set call_dummy_words to NULL, set
5553 sizeof_call_dummy_words to 0, set fix_call_dummy to
5554 generic_fix_call_dummy, set pc_in_call_dummy to
5555 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5556 generic_push_dummy_frame, set push_return_address to
5557 i386_push_return_address and set frame_chain_valid to
5558 generic_file_frame_chain_valid.
5559
5560 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5561
5562 * gdbarch.sh (struct regcache): Add opaque declaration.
5563 (EXTRACT_RETURN_VALUE): New architecture method.
5564 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5565 * gdbarch.h, gdbarch.c: Regenerate.
5566 * arch-utils.c (legacy_extract_return_value): New function.
5567 * arch-utils.h (legacy_extract_return_value): Declare.
5568 * values.c (value_being_returned): Re-enable code handling
5569 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5570 deprecated_grub_regcache_for_registers call to block handling
5571 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5572 (EXTRACT_RETURN_VALUE): Do not define.
5573
5574 2002-07-03 Grace Sainsbury <graces@redhat.com>
5575
5576 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5577 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5578 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5579 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5580 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5581 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5582 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5583 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5584 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5585 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5586 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5587 argument so the function fits the prototype in the architecture
5588 vector.
5589 (mcore_pop_frame): Remove argument so the function fits the
5590 prototype. Use get_current_frame instead of the argument.
5591 (mcore_push_arguments): Change type of struct_return so the
5592 function can be used in the architecture vector.
5593 (mcore_store_struct_return): Add.
5594 (mcore_frame_init_saved_regs): Add.
5595 (mcore_gdbarch_init): Add function calls to replace the macros
5596 removed from tm-mcore.h
5597
5598 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5599
5600 * infcmd.c (print_return_value): Remove compatibility code calling
5601 deprecated_grub_regcache_for_registers.
5602
5603 * values.c: Include "regcache.h".
5604 (value_being_returned): Update. Use
5605 deprecated_grub_regcache_for_registers to extract the register
5606 buffer address.
5607 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5608 ``struct regcache''.
5609 * Makefile.in (values.o): Add dependency on $(regcache_h).
5610
5611 * inferior.h (run_stack_dummy): Change type of second parameter to
5612 a ``struct regcache''.
5613 * valops.c (hand_function_call): Change type of retbuf to ``struct
5614 regcache''. Allocate using regcache_xmalloc, clean using
5615 make_cleanup_regcache_xfree.
5616 * infcmd.c (run_stack_dummy): Update. Use
5617 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5618
5619 * regcache.c (do_regcache_xfree): New function.
5620 (make_cleanup_regcache_xfree): New function.
5621 * regcache.h (make_cleanup_regcache_xfree): Declare.
5622
5623 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5624
5625 * event-top.c (command_line_handler): Don't read past
5626 beginning of buffer.
5627
5628 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5629
5630 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5631 struct frame_id.
5632 (varobj_create): Store frame_id for root.
5633 (varobj_gen_name): Use xasprintf.
5634 (varobj_update): Save and restore frame using get_frame_id() and
5635 frame_find_by_id().
5636 (create_child): Use xasprintf.
5637 (new_root_variable): Initialize frame_id.
5638 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5639 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5640 to prevent memory leak.
5641
5642 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5643
5644 * valops.c (hand_function_call): Move declaration of retbuf to
5645 start of function, allocate using malloc, add a cleanup but before
5646 the inf_status cleanup, cleanup the buffer. Rename local variable
5647 old_chain to inf_status_cleanup.
5648
5649 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5650
5651 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5652
5653 * cli/cli-decode.c (cmd_func_p): New function.
5654 (cmd_func): New function.
5655
5656 * command.h: Add cmd_func() and cmd_func_p().
5657
5658 2002-07-03 Grace Sainsbury <graces@redhat.com>
5659
5660 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5661 (REGISTER_SIZE): Remove.
5662 (MAX_REGISTER_RAW_SIZE): Remove.
5663 (REGISTER_VIRTUAL_TYPE): Remove.
5664 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5665 (REGISTER_NAME): Remove.
5666 (USE_GENERIC_DUMMY_FRAMES): Remove.
5667 (CALL_DUMMY): Remove.
5668 (CALL_DUMMY_START_OFFSET): Remove.
5669 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5670 (CALL_DUMMY_LOCATION): Remove.
5671 (FIX_CALL_DUMMY): Remove.
5672 (CALL_DUMMY_ADDRESS): Remove.
5673 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5674 (SAVE_DUMMY_FRAME_TOS): Remove.
5675 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5676 (mcore_register_virtual_type): New function.
5677 (mcore_register_byte): New function.
5678 (mcore_register_size): New function.
5679 (mcore_register_name): New function.
5680 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5681 macros removed from tm-mcore.h.
5682 (mcore_dump_tdep): Add.
5683 (_initialize_mcore_tdep): Add gdbarch_register call.
5684
5685 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5686
5687 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5688 frameless_look_for_prologue, such that we actually call this
5689 function.
5690
5691 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5692
5693 * frame.h (frame_address_in_block): New function.
5694
5695 * blockframe.c (frame_address_in_block): New function extracted
5696 from get_frame_block().
5697 (get_frame_block): Use frame_address_in_block().
5698 (block_innermost_frame): Use frame_address_in_block() to match
5699 the frame pc address against the block boundaries rather than
5700 the frame pc directly. This prevents a failure when a frame pc
5701 is actually a return-address pointing immediately after the end
5702 of the given block.
5703
5704 2002-07-02 Grace Sainsbury <graces@redhat.com>
5705
5706 * MAINTAINERS: Add self under write after approval.
5707
5708 2002-07-02 Grace Sainsbury <graces@redhat.com>
5709
5710 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5711 used in architecture vector. The default is
5712 m68k_local_breakpoint_from_pc.
5713 (m68k_local_breakpoint_from_pc): Add.
5714 (enum): Add register numbers from tm-m68k.h.
5715 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5716 vector.
5717 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5718 GDB_MULTI_ARCH_PARTIAL.
5719 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5720 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5721 m68k-tdep.c.
5722 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5723 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5724 to enum in m68k-tdep.c
5725
5726 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5727
5728 * solib-osf.c (open_map): Compute the list of shared libraries
5729 loaded by the inferior, rather than the list of libraries loaded
5730 by GDB itself. Otherwise, GDB ends up reading the symbols from
5731 the wrong shared libraries...
5732
5733 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5734
5735 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5736 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5737 macros.
5738 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5739 Remove functions.
5740 (FRAMELESS_SIGNAL): Remove function.
5741 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5742 i386_linux_saved_pc_after_call): Removed.
5743 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5744 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5745 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5746
5747 * i386-tdep.c (i386_frameless_signal_p): New function.
5748 (i386_frame_chain): Deal with frameless signals.
5749 (i386_sigtramp_saved_sp): New function.
5750 (i386_frame_saved_pc): Deal with frameless signals.
5751 (i386_saved_pc_after_call): Make sure the correct value is
5752 returned just after entry into a sigtramp.
5753 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5754 i386fbsd4_sc_sp_offset): New variables.
5755 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5756 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5757 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5758 similiar to what we already did for sc_pc_offset.
5759 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5760 tdep->sc_sp_offset.
5761
5762 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5763
5764 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5765
5766 * config/i386/tm-x86-64linux.h: New.
5767 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5768 definitions.
5769 * config/i386/nm-x86-64.h: Rename to ...
5770 * config/i386/nm-x86-64linux.h: ... this one.
5771 * config/i386/x86-64linux.mh: Reflect the above change.
5772
5773 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5774
5775 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5776 with sigcontext_addr. Add sc_sp_offset.
5777 (i386bsd_sigtramp_saved_pc): Remove prototype.
5778 (i386bsd_sicontext_addr): Add prototype.
5779 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5780 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5781 (i386_svr4_sigtramp_saved_pc): Removed.
5782 (i386_svr4_sigcontext_addr): New function.
5783 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5784 Initialize tdep->sigcontext_addr instead. Initialize
5785 tdep->sc_pc_offset and tdep->sc_sp_offset.
5786 (i386_gdbarch_init): Likewise.
5787 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5788 any more.
5789 (i386bsd_sigtramp_saved_pc): Remove function.
5790 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5791 Initialize tdep->sigcontext_addr instead. Initialize
5792 tdep->sc_pc_offset.
5793 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5794 of tdep->sigtramp_saved_pc.
5795 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5796 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5797 instead.
5798
5799 * i386-tdep.c (i386_frameless_function_invocation,
5800 i386_frame_num_args, i386_frame_init_saved_regs,
5801 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5802 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5803 i386_extract_return_value, i386_store_return_value,
5804 i386_extract_struct_value_address, i386_register_virtual_type,
5805 i386_register_convertible, i386_register_convert_to_virtual,
5806 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5807 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5808 static.
5809
5810 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5811
5812 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5813
5814 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5815 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5816 this macro. Include "value.h".
5817
5818 2002-06-30 Aidan Skinner <aidan@velvet.net>
5819
5820 * ada-exp.tab.c: remove as it's a generated file
5821 * ada-lex.c: remove as it's a generated file
5822
5823 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5824
5825 * config/i386/tm-i386.h (struct frame_info, struct
5826 frame_saved_regs, struct value, struct type): Remove forward
5827 declarations.
5828
5829 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5830 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5831 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5832 (FILL_FPXREGSET): Define.
5833
5834 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5835
5836 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5837 i[3456]86-*-netbsd* case.
5838 * config/i386/tm-obsd.h: Removed.
5839 * config/i386/obsd.mt: Removed.
5840 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5841 core-aout.o.
5842 (MH_CFLAGS): Add -DYYDEBUG=0.
5843
5844 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5845 i386nbsd_sc_pc_offset on OpenBSD too.
5846
5847 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5848 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5849 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5850 define.
5851 * i386bsd-tdep.c: Include "arch-utils.h".
5852 (i386bsd_aout_in_solib_call_trampoline): New function.
5853 (i386bsd_init_abi): Set in_solib_call_trampoline to
5854 i386bsd_aout_in_solib_call_trampoline.
5855 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5856 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5857
5858 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5859
5860 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5861 (struct obstack, struct bcache): Add opaque declarations.
5862 * Makefile.in (macrotab_h): Update
5863
5864 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5865
5866 * blockframe.c (generic_find_dummy_frame): Change return type to
5867 ``struct regcache''.
5868 (struct dummy_frame): Replace field ``registers'' with regcache, a
5869 struct regcache object.
5870 (generic_find_dummy_frame): Update.
5871 (generic_push_dummy_frame): Update. Use regcache_xfree,
5872 regcache_xmalloc and regcache_cpy.
5873 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5874 regcache_xfree.
5875 (deprecated_generic_find_dummy_frame): Update.
5876 (generic_read_register_dummy): Update. Use
5877 regcache_read_as_address.
5878 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5879 (generic_get_saved_register): Update. Use regcache_read.
5880
5881 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5882
5883 * Makefile.in (objfiles_h): Add $(bcache_h).
5884 * objfiles.h: Include "bcache.h".
5885
5886 * Makefile.in (symtab_h): Remove $(bcache_h).
5887 * symtab.h: Do not include "bcache.h".
5888
5889 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5890
5891 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5892 generic_func_frame_chain_valid.
5893
5894 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5895
5896 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5897 * config/i386/tm-fbsd.h: Likewise.
5898
5899 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5900
5901 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5902 generic_unwind_get_saved_register.
5903
5904 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5905
5906 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5907 * regcache.c (supply_register): Add missing argument to
5908 register_buffer call.
5909
5910 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5911
5912 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5913 Solaris /bin/grep does not not like it. From Peter Schauer.
5914
5915 2002-06-26 Tom Tromey <tromey@redhat.com>
5916
5917 * command.h (add_setshow_cmd): Declare.
5918 (add_setshow_cmd_full): Declare.
5919 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5920 returns void. Use add_setshow_cmd_full.
5921 (add_setshow_cmd_full): New function.
5922 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5923 (add_setshow_boolean_cmd): Likewise.
5924
5925 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5926
5927 * config/vax/tm-vax.h: Protect from multiple inclusion.
5928 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5929 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5930 * config/vax/tm-vaxbsd.h: ...here. New file.
5931 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5932
5933 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5934
5935 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5936 (BELIEVE_PCC_PROMOTION): Remove.
5937 (AP_REGNUM): Move to...
5938 * config/vax/nm-vax.h: ...here.
5939 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5940 (vax_breakpoint_from_pc): New function.
5941 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5942 and gdbarch_believe_pcc_promotion.
5943
5944 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5945
5946 * Makefile.in (vax_tdep_h): Define.
5947 (vax-tdep.o): Use $(vax_tdep_h).
5948 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5949 (vax_dump_tdep): New function.
5950 (_initialize_vax_tdep): Register vax_dump_tdep.
5951 * vax-tdep.h: Include osabi.h.
5952 (struct gdbarch_tdep): New.
5953
5954 2002-06-26 Andrew Cagney <cagney@redhat.com>
5955
5956 * frame.h (deprecated_generic_find_dummy_frame): Rename
5957 generic_find_dummy_frame.
5958 * blockframe.c (generic_find_dummy_frame): Make static.
5959 (deprecated_generic_find_dummy_frame): New function.
5960 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5961 generic_find_dummy_frame with deprecated_find_dummy_frame.
5962 (sh64_nofp_frame_init_saved_regs): Ditto.
5963 (sh_fp_frame_init_saved_regs): Ditto.
5964 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5965 (s390_frame_chain): Ditto.
5966 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5967
5968 2002-06-26 Grace Sainsbury <graces@redhat.com>
5969
5970 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5971 gdbarch vector are at the top.
5972 (NUM_REGS): Remove.
5973 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5974 (FRAME_ARGS_ADDRESS): Remove.
5975 (FRAME_LOCALS_ADDRESS): Remove.
5976 (FRAME_NUM_ARGS): Remove.
5977 (FRAME_ARGS_SKIP): Remove.
5978 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5979 (m68k_gdbarch_init): Add gdbarch initializations for macros
5980 undefined in tm-m68k.h
5981
5982 2002-06-26 Grace Sainsbury <graces@redhat.com>
5983
5984 * monitor.h: Add the function regname to monitor_ops
5985 structure. This way NUM_REGS does not have to be a constant.
5986 * monitor.c (monitor_fetch_register): Added support for regname
5987 function. The function is called if the array regnames is NULL.
5988 (monitor_store_register): Same.
5989 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5990 regnames array.
5991 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5992 cpu32bug_cmds.regname to point to new function.
5993 * abug-rom.c (abug_regname): Same as above.
5994 (init_abug_cmds): Same.
5995 * dbug-rom.c (dbug_regname): Same as above.
5996 (init_dbug_cmds): Same.
5997 * remote-est.c (est_regname): Same.
5998 (init_est_cmds): Same.
5999 * rom68k-rom.c (rom68k_regname): Same.
6000 (init_rom68k_cmds): Same.
6001
6002 2002-06-25 Tom Tromey <tromey@redhat.com>
6003
6004 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6005
6006 2002-06-25 Andrew Cagney <cagney@redhat.com>
6007
6008 * infrun.c (stop_registers): Change variable's type to ``struct
6009 regcache'''.
6010 (xmalloc_inferior_status): Delete function.
6011 (free_inferior_status): Delete function.
6012 (normal_stop): Use regcache_cpy.
6013 (struct inferior_status): Change type of fields ``stop_registers''
6014 and ``registers'' to ``struct regcache''.
6015 (write_inferior_status_register): Use regcache_write.
6016 (save_inferior_status): Instead of calling
6017 xmalloc_inferior_status, allocate the inf_status buffer directly.
6018 Use regcache_dup_no_passthrough and regcache_dup to save the
6019 buffers.
6020 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6021 Replace the stop_registers regcache instead of overriding it. Use
6022 regcache_xfree. Instead of calling free_inferior_status, xfree
6023 the buffer directly.
6024 (discard_inferior_status): Use regcache_xfree. Instead of calling
6025 free_inferior_status, xfree the buffer directly.
6026 (build_infrun): Use regcache_xmalloc.
6027 (_initialize_infrun): Delete redundant call to build_infrun.
6028
6029 * Makefile.in (infcmd.o): Add $(regcache_h).
6030
6031 * infcmd.c: Include "regcache.h".
6032 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6033 obtain the address of `stop_registers' register buffer.
6034 (print_return_value): Ditto.
6035
6036 * inferior.h (struct regcache): Add opaque declaration.
6037 (stop_registers): Change variable's declared type to ``struct
6038 regcache''.
6039
6040 2002-06-24 Tom Tromey <tromey@redhat.com>
6041
6042 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6043 * target.c (initialize_targets): Fixed typo in
6044 trust-readonly-sections `show' documentation.
6045
6046 * main.c: Marked all strings with _().
6047
6048 2002-06-24 Don Howard <dhoward@redhat.com>
6049
6050 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6051 that means max CORE_ADDR+1.
6052 (lookup_mem_region): Ditto.
6053 (mem_info_command): Ditto.
6054
6055 2002-06-24 Grace Sainsbury <graces@redhat.com>
6056
6057 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6058 (REGISTER_BYTES_OK): Remove.
6059 (REGISTER_BYTES): Remove.
6060 (STORE_STRUCT_RETURN): Remove.
6061 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6062 (STORE_RETURN_VALUE): Remove.
6063 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6064 (FRAME_CHAIN): Remove.
6065 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6066 (FRAME_SAVED_PC): Remove.
6067 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6068 (m68k_store_struct_return): Add.
6069 (m68k_deprecated_extract_return_value): Add.
6070 (m68k_deprecated_extract_struct_value_address): Add.
6071 (m68k_store_return_value): Add.
6072 (m68k_frame_chain): Add.
6073 (m68k_frameless_function_invocation): Add.
6074 (m68k_frame_saved_pc): Add.
6075 (m68k_gdbarch_init): added set_gdbarch calls for new
6076 functions and deleted macros.
6077
6078 2002-06-23 Tom Tromey <tromey@redhat.com>
6079
6080 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6081 (ALLDEPFILES): Likewise.
6082 (udiheaders): Removed.
6083 (udip2soc.o): Likewise.
6084 (udi2go32.o): Likewise.
6085 (udr.o): Likewise.
6086 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6087
6088 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6089
6090 * infrun.c (_initialize_infrun): Delete unnecessary call to
6091 build_infrun.
6092
6093 * regcache.h: Update comments describing the regcache_cpy family
6094 of functions.
6095 (regcache_save, regcache_restore): Delete declaration.
6096 (regcache_save_no_passthrough): Delete declaration.
6097 (regcache_restore_no_passthrough): Delete declaration.
6098 * regcache.c (regcache_save): Delete function.
6099 (regcache_save_no_passthrough): Delete function.
6100 (regcache_restore): Delete function.
6101 (regcache_restore_no_passthrough): Delete function.
6102
6103 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6104
6105 * config/m68k/tm-m68k.h: Fix typo.
6106 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6107 (m68k_frame_init_saved_regs): Declare.
6108
6109 2002-06-21 Jim Blandy <jimb@redhat.com>
6110
6111 Remove some vestiges of Harris 88k support.
6112 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6113 register numbering quirk.
6114 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6115 odd symbols occurring in Harris 88k ELF targets.
6116
6117 2002-06-21 Tom Tromey <tromey@redhat.com>
6118
6119 * gdb_locale.h: New file.
6120 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6121 (defs_h): Added gdb_locale.h.
6122 * configure, config.in: Rebuilt.
6123 * configure.in (PACKAGE): Define.
6124 * defs.h: Include gdb_locale.h.
6125 * main.c (captured_main): Call setlocale, bindtextdomain,
6126 textdomain.
6127
6128 2002-06-21 Dave Brolley <brolley@redhat.com>
6129
6130 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6131 * config/frv/frv.mt: New file.
6132 * config/frv/tm-frv.h: New file.
6133 * configure.tgt: Support frv-*-*.
6134 * Makefile.in (frv-tdep.o): New target.
6135 * frv-tdep.c: New file.
6136 * NEWS: Mention frv.
6137
6138 2002-06-21 Dave Brolley <brolley@redhat.com>
6139
6140 * MAINTAINERS: Add self to "Write After Approval" list.
6141
6142 2002-06-21 Grace Sainsbury <graces@redhat.com>
6143
6144 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6145 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6146 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6147 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6148 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6149
6150 * m68k-tdep.c: Include arch-utils.h
6151 (m68k_register_raw_size): Add.
6152 (m68k_register_virtual_size): Add.
6153 (m68k_register_virtual_type): Add.
6154 (m68k_register_name): Add.
6155 (m68k_stack_align): Add.
6156 (m68k_register_byte): Add.
6157 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6158 tm-m68k.h.
6159
6160 2002-06-21 Grace Sainsbury <graces@redhat.com>
6161
6162 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6163 m68k_find_saved_regs.
6164 (m68k_pop_frame): Removed saved_regs structure, and replaced
6165 references to it with frame->saved_regs.
6166 (m68k_gdbarch_init): Added function calls to initialize the
6167 gdbarch structure.
6168 (m68k_fix_call_dummy): Add.
6169 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6170 (CALL_DUMMY): Remove.
6171 (CALL_DUMMY_LENGTH): Remove.
6172 (CALL_DUMMY_START_OFFSET): Remove.
6173 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6174 (FIX_CALL_DUMMY): Remove.
6175 (PUSH_DUMMY_FRAME): Remove.
6176 (POP_FRAME): Remove.
6177
6178 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6179
6180 * parse.c (parse_fprintf): New function used to avoid calls to
6181 fprintf in bison parser generated debug code.
6182 * parser-defs.h: Declaration of new parse_fprintf function.
6183 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6184 Set YYDEBUG to 1 by default.
6185 Set YYFPRINTF as parse_fprintf.
6186
6187 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6188
6189 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6190 encoding anymore.
6191 (pointer_encoding, enum ptr_encoding): New.
6192 (execute_cfa_program): Take care about pointer encoding.
6193 (dwarf2_build_frame_info): Only call parse_frame_info for
6194 .debug_frame and .eh_frame.
6195 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6196 fixed augmentation handling, added relative addressing,
6197 ignore duplicate FDEs. Added comments.
6198 * dwarf2cfi.c: Reindented.
6199
6200 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6201
6202 * event-top.c (command_handler): Don't use space_at_cmd_start
6203 unless there is sbrk() on the host. Assign time and space data
6204 to union fields of the appropriate length.
6205
6206 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6207
6208 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6209 x86_64_register_name. Return type changed to 'const char *'.
6210 (x86_64_register_name2nr): Rename to x86_64_register_number.
6211 (x86_64_gdbarch_init): Update to reflect the change.
6212 * x86-64-tdep.h: Ditto.
6213 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6214 (supply_fpregset): Ditto.
6215
6216 2002-06-19 Andrew Cagney <cagney@redhat.com>
6217
6218 * regcache.h: Update copyright.
6219 (struct regcache, struct gdbarch): Add opaque declarations.
6220 (current_regcache): Declare global variable.
6221 (regcache_read, regcache_write): Add gdbarch parameter.
6222 (regcache_save, regcache_save_no_passthrough)
6223 (regcache_restore, regcache_restore_no_passthrough)
6224 (regcache_dup, regcache_dup_no_passthrough)
6225 (regcache_cpy, regcache_cpy_no_passthrough)
6226 (deprecated_grub_regcache_for_registers)
6227 (deprecated_grub_regcache_for_register_valid)
6228 (regcache_valid_p): Add function declarations.
6229
6230 * regcache.c: Update copyright.
6231 (regcache_descr_handle): New global variable.
6232 (struct regcache_descr): Define.
6233 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6234 (regcache_descr, xfree_regcache_descr): New functions.
6235 (struct regcache): Define.
6236 (regcache_xmalloc, regcache_xfree): New functions.
6237 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6238 (regcache_dup, regcache_dup_no_passthrough): New functions.
6239 (regcache_valid_p, regcache_read_as_address): New functions.
6240 (deprecated_grub_regcache_for_registers): New function.
6241 (deprecated_grub_regcache_for_register_valid): New function.
6242 (current_regcache): New global variable.
6243 (register_buffer): Add regcache parameter. Update calls.
6244 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6245 (read_register_gen, write_register_gen): Update register_buffer
6246 call. Test for legacy_p instead of gdbarch_register_read_p or
6247 gdbarch_register_write_p.
6248 (regcache_collect): Update register_buffer call.
6249 (build_regcache): Rewrite. Use deprecated grub functions.
6250 (regcache_save, regcache_save_no_passthrough): New functions.
6251 (regcache_restore, regcache_restore_no_passthrough): New
6252 functions.
6253 (_initialize_regcache): Create the regcache_data_handle. Swap
6254 current_regcache global variable.
6255
6256 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6257 parameter to regcache_read and regcache_write calls.
6258 (sh4_register_read): Ditto.
6259 (sh64_pseudo_register_read): Ditto.
6260 (sh64_register_read): Ditto.
6261 (sh_pseudo_register_write): Ditto.
6262 (sh4_register_write): Ditto.
6263 (sh64_pseudo_register_write): Ditto.
6264 (sh64_register_write): Ditto.
6265
6266 * defs.h (XCALLOC): Define.
6267
6268 2002-06-19 Grace Sainsbury <graces@redhat.com>
6269
6270 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6271 * m68k-tdep.c (m68k_gdbarch_init): Added.
6272 (m68k_dump_tdep): Added.
6273
6274 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6275
6276 * ada-lang.c (fill_in_ada_prototype): Update comment.
6277
6278 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6279
6280 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6281 MIPS_ABI_LAST.
6282 (mips_abi_string, mips_abi_strings): New.
6283 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6284 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6285 tdep->mips_abi_string. Honor mips_abi_string. Default to
6286 O32 if no ABI is found.
6287 (mips_dump_tdep): Use mips_abi_strings.
6288 (mips_abi_update): New function.
6289 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6290 ``set mips abi'' and ``show mips abi''. Check the size of
6291 mips_abi_strings.
6292
6293 2002-06-19 Andrew Cagney <cagney@redhat.com>
6294
6295 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6296 constant.
6297
6298 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6299
6300 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6301 current frame using only the first stack size adjustment. All
6302 subsequent size adjustments are not considered to be part of
6303 the "static" part of the current frame.
6304 Compute the address of the saved registers relative to the
6305 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6306 in use in this frame.
6307
6308 2002-06-18 Don Howard <dhoward@redhat.com>
6309
6310 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6311 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6312 suggesting this solution.
6313
6314 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6315
6316 * config/romp/xm-rtbsd.h: Delete file.
6317 * config/romp/rtbsd.mh: Delete file.
6318
6319 2002-06-18 Keith Seitz <keiths@redhat.com>
6320
6321 * breakpoint.c (condition_command): Post breakpoint_modify
6322 when a condition is added to an existing breakpoint.
6323 (commands_command): Likewise for commands.
6324 (set_ignore_count): Likewise for ignore counts.
6325 If no tty, do not simply return, still need to send event
6326 notification.
6327 (ignore_command): Only print a newline if the command came
6328 from a tty.
6329 Don't call breakpoints_changed, since this is now properly
6330 handled by set_ignore_count.
6331
6332 2002-06-18 Andrew Cagney <cagney@redhat.com>
6333
6334 * MAINTAINERS: Note that cris-elf target can be compiled with
6335 -Werror.
6336 * cris-tdep.c (cris_register_name): Make return type constant.
6337 (cris_breakpoint_from_pc): Ditto.
6338
6339 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6340
6341 * frame.h (struct frame_info): Change type of context to
6342 'struct context'.
6343
6344 2002-06-17 Andrew Cagney <cagney@redhat.com>
6345
6346 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6347 pointer.
6348 * gdbarch.h, gdbarch.c: Regenerate.
6349 * config/mips/tm-mips.h (mips_register_name): Update.
6350 * i386-tdep.h (i386_register_name): Update.
6351 * mips-tdep.c (mips_register_name): Update
6352 * alpha-tdep.c (alpha_register_name): Update.
6353 * arch-utils.c (legacy_register_name): Update.
6354 * arch-utils.h (legacy_register_name): Update.
6355 * avr-tdep.c (avr_register_name): Update.
6356 * ia64-tdep.c (ia64_register_name): Update.
6357 * i386-tdep.c (i386_register_name): Update.
6358 * sparc-tdep.c (sparc32_register_name): Update.
6359 (sparc64_register_name): Update.
6360 (sparclite_register_name): Update.
6361 (sparclet_register_name): Update.
6362 * sh-tdep.c (sh_generic_register_name): Update.
6363 (sh_sh_register_name): Update.
6364 (sh_sh3_register_name): Update.
6365 (sh_sh3e_register_name): Update.
6366 (sh_sh_dsp_register_name): Update.
6367 (sh_sh3_dsp_register_name): Update.
6368 (sh_sh4_register_name): Update.
6369 (sh_sh64_register_name): Update.
6370 * s390-tdep.c (s390_register_name): Update.
6371 * rs6000-tdep.c (rs6000_register_name): Update.
6372 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6373 (ns32k_register_name_32382): Update.
6374 * d10v-tdep.c (d10v_ts2_register_name): Update.
6375 (d10v_ts3_register_name): Update.
6376 * xstormy16-tdep.c (xstormy16_register_name): Update.
6377 * vax-tdep.c (vax_register_name): Update.
6378 * v850-tdep.c (v850_register_name): Update.
6379 * m68hc11-tdep.c (m68hc11_register_name): Update.
6380 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6381 (am33_register_name): Update.
6382
6383 2002-06-17 Grace Sainsbury <graces@redhat.com>
6384
6385 * m68k-tdep.c: Reindented.
6386
6387 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6388
6389 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6390 list of predefined types.
6391
6392 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6393
6394 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6395 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6396 REGISTER_CONVERT_TO_RAW): Remove defines.
6397 (i386_register_virtual_type, i386_register_convertible,
6398 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6399 Remove prototypes.
6400 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6401 macros mentioned above.
6402
6403 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6404 (i386lynx_saved_pc_after_call): Remove prototype.
6405 * i386ly-tdep.c: Include "i386-tdep.h".
6406 (i386lynx_saved_pc_after_call): Make static. Use
6407 read_memory_nobpt instead of read_memory. Use
6408 read_memory_unsigned_integer instead of read_memory_integer.
6409 (i386lynx_init_abi): New function.
6410 (i386lynx_coff_osabi_sniffer): New function.
6411 (_initialize_i386bsd_tdep): New function.
6412
6413 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6414 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6415 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6416 (i386_fix_call_dummy): Remove prototype.
6417 * i386-tdep.c (i386_call_dummy_words): New variable.
6418 (i386_gdbarch_init): Adjust for removal of the
6419 macros mentioned above.
6420
6421 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6422
6423 * command.h (add_setshow_auto_boolean_cmd): Replace
6424 add_set_auto_boolean_cmd.
6425 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6426 add_set_auto_boolean_cmd.
6427 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6428 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6429 mask-address'' command.
6430 (show_mask_address): Add cmd parameter.
6431 * remote.c (add_packet_config_cmd): Update. Change type of
6432 set_func and show_func to cmd_sfunc_ftype.
6433 (_initialize_remote): Update `set remote Z-packet'
6434 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6435 (show_remote_protocol_e_packet_cmd): Ditto.
6436 (show_remote_protocol_E_packet_cmd): Ditto.
6437 (show_remote_protocol_P_packet_cmd): Ditto.
6438 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6439 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6440 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6441 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6442 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6443 (show_remote_protocol_Z_packet_cmd): Ditto.
6444 (show_remote_protocol_binary_download_cmd): Ditto.
6445 (show_remote_cmd): Pass NULL to all of above.
6446
6447 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6448
6449 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6450 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6451 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6452 POP_FRAME): Remove defines.
6453 (i386_push_arguments, i386_store_struct_return,
6454 i386_extract_return_value, i386_store_return_value,
6455 i386_extract_struct_value_address, i386_push_dummy_frame,
6456 i386_pop_frame): Renove prototypes.
6457 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6458 macros mentioned above.
6459
6460 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6461
6462 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6463 add_set_boolean_cmd.
6464 (add_setshow_cmd): New function.
6465 * command.h (add_setshow_boolean_cmd): Replace
6466 add_set_boolean_cmd.
6467 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6468 and ``set rdiromatzero''.
6469 * maint.c (_initialize_maint_cmds): Update commented out code.
6470 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6471 * target.c (initialize_targets): Update `set
6472 trust-readonly-sections'.
6473 * remote.c (_initialize_remote): Update `set remotebreak'.
6474
6475 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6476
6477 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6478 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6479 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6480 fit into multi-arch framework.
6481 (i386_breakpoint_from_pc): New function.
6482 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6483 above.
6484
6485 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6486 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6487 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6488 (i386_frameless_function_invocation, i386_frame_num_args,
6489 i386_frame_init_saved_regs): Remove prototypes.
6490 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6491 macros mentioned above.
6492
6493 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6494
6495 * cli/cli-decode.c (set_cmd_cfunc): Update.
6496 (set_cmd_sfunc): Update.
6497 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6498 (set_cmd_sfunc, set_cmd_cfunc): Update.
6499 * cli/cli-decode.h: Update.
6500
6501 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6502
6503 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6504 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6505
6506 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6507
6508 * defs.h (auto_boolean): Declare enum.
6509 * command.h (cmd_auto_boolean): Delete enum.
6510 * mips-tdep.c (mask_address_var): Update.
6511 (mips_mask_address_p): Update.
6512 (show_mask_address): Update.
6513 * remote.c (struct packet_config): Update.
6514 (update_packet_config): Update.
6515 (show_packet_config_cmd): Update.
6516 (packet_ok): Update.
6517 (add_packet_config_cmd): Update.
6518 (_initialize_remote):
6519 * command.h: Update.
6520 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6521 (do_setshow_command): Update.
6522 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6523 * cli/cli-decode.h: Update.
6524
6525 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6526
6527 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6528 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6529 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6530 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6531 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6532 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6533
6534 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6535 list of DJGPP COFF targets.
6536
6537 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6538 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6539 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6540 (FP0_REGNUM): Remove define.
6541 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6542 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6543 (i386_register_virtual_size): Remove protoype.
6544 * i386-tdep.c (i386_register_virtual_size): Removed.
6545 (i386_extract_return_value, i386_store_return_value): Use
6546 FP0_REGNUM instead of NUM_FREGS to determine whether the
6547 floating-point registers are available.
6548 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6549 Adjust for removal of macros mentioned above.
6550
6551 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6552
6553 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6554 comments.
6555 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6556 Remove prototypes.
6557 (supply_gregset, fill_gregset): Remove use of register keyword and
6558 remove declaration for regmap. Use I386_NUM_GREGS instead of
6559 NUM_REGS and NUM_FREGS.
6560 (FPREGSET_FSAVE_OFFSET): Remove.
6561 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6562 NUM_FREGS to determine whether the floating-point registers are
6563 available.
6564
6565 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6566 gnu_store_registers): Replace usage of NUM_GREGS with
6567 I386_NUM_GREGS.
6568
6569 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6570 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6571 usage of NUM_GREGS with I386_NUM_GREGS.
6572
6573 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6574
6575 * i386bsd-nat.c: Include "i386-tdep.h".
6576 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6577 I386_NUM_GREGS.
6578
6579 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6580 and associated comment. They no longer make any sense, since we
6581 don't use this file anymore on Linux.
6582
6583 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6584 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6585 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6586 elements in these arrays.
6587 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6588 MAX_NUM_REGS.
6589
6590 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6591
6592 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6593 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6594
6595 2002-06-14 Andrew Cagney <cagney@redhat.com>
6596
6597 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6598 EXTRACT_RETURN_VALUE.
6599 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6600 EXTRACT_STRUCT_VALUE_ADDRESS.
6601 * gdbarch.h, gdbarch.c: Regenerate.
6602
6603 * values.c (value_being_returned): Handle
6604 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6605 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6606
6607 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6608 * arm-tdep.c (arm_gdbarch_init): Update.
6609 * avr-tdep.c (avr_gdbarch_init): Update.
6610 * cris-tdep.c (cris_gdbarch_init): Update.
6611 * d10v-tdep.c (d10v_gdbarch_init): Update.
6612 * ia64-tdep.c (ia64_gdbarch_init): Update.
6613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6614 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6615 * s390-tdep.c (s390_gdbarch_init): Update.
6616 * sh-tdep.c (sh_gdbarch_init): Update.
6617 * s390-tdep.c (s390_gdbarch_init): Update.
6618 * sparc-tdep.c (sparc_gdbarch_init): Update.
6619 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6620 * v850-tdep.c (v850_gdbarch_init): Update.
6621 * vax-tdep.c (vax_gdbarch_init): Update.
6622 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6624
6625 * config/arc/tm-arc.h: Update.
6626 * config/d30v/tm-d30v.h: Update.
6627 * config/fr30/tm-fr30.h: Update.
6628 * config/h8300/tm-h8300.h: Update.
6629 * config/h8500/tm-h8500.h: Update.
6630 * config/i386/tm-i386.h: Update.
6631 * config/i386/tm-ptx.h: Update.
6632 * config/i386/tm-symmetry.h: Update.
6633 * config/i960/tm-i960.h: Update.
6634 * config/m32r/tm-m32r.h: Update.
6635 * config/m68k/tm-delta68.h: Update.
6636 * config/m68k/tm-linux.h: Update.
6637 * config/m68k/tm-m68k.h: Update.
6638 * config/m88k/tm-m88k.h: Update.
6639 * config/mcore/tm-mcore.h: Update.
6640 * config/mips/tm-mips.h: Update.
6641 * config/mn10200/tm-mn10200.h: Update.
6642 * config/pa/tm-hppa.h: Update.
6643 * config/pa/tm-hppa64.h: Update.
6644 * config/sparc/tm-sp64.h: Update.
6645 * config/sparc/tm-sparc.h: Update.
6646 * config/sparc/tm-sparclet.h: Update.
6647 * config/z8k/tm-z8k.h: Update.
6648
6649 2002-06-14 Andrew Cagney <cagney@redhat.com>
6650
6651 * Makefile.in (i386_linux_tdep_h): Define.
6652 (i386_tdep_h, i387_tdep_h): Define.
6653 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6654 $(i386_tdep_h) and $(i387_tdep_h).
6655 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6656
6657 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6658
6659 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6660 Already covered by the default.
6661
6662 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6663 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6664 (i386_gdbarch_init): Initialize long_double_format and long_double
6665 bit.
6666
6667 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6668 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6669 Move these to ...
6670 * config/i386/i386sol2.mh: ... here.
6671 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6672 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6673 (SIGCONTEXT_PC_OFFSET): Remove define.
6674 (IN_SIGTRAMP): Remove define.
6675 * i386-sol2-tdep.c: New file.
6676
6677 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6678 * config/i386/tm-i386nw.h: Removed.
6679
6680 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6681 USE_STRUCT_CONVENTION): Remove defines.
6682 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6683 (get_longjmp_target): Remove prototype.
6684 (IN_SIGTRAMP): Remove define.
6685 (i386bsd_in_sigtramp): Remove prototype.
6686 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6687 function. Update comment accordingly
6688 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6689 (FRAME_SAVED_PC): Remove define.
6690 (i386bsd_frame_saved_pc): Remove prototype.
6691 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6692 GET_LONGJMP_TARGET): Remove defines.
6693 (get_longjmp_target): Remove prototype.
6694 (IN_SIGTRAMP): Remove define.
6695 (i386bsd_in_sigtramp): Remove prototype.
6696 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6697 function. Update comment accordingly
6698 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6699 (FRAME_SAVED_PC): Remove define.
6700 (i386bsd_frame_saved_pc): Remove prototype.
6701 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6702 Remove prototype.
6703 (USE_STRUCT_CONVENTION): Remove prototype.
6704 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6705 declaration.
6706 (_initialize_i386bsd_nat): Revise logic to determine some
6707 constants at compile time when compiling a native GDB. Warn if
6708 things don't match up with what we expect.
6709 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6710 Remove variables.
6711 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6712 to use date stored in `struct gdbarch_tdep'.
6713 (i386bsd_sigcontext_offset): Remove varaible.
6714 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6715 stored in `struct gdbarch_tdep'.
6716 (i386bsd_frame_saved_pc): Make static.
6717 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6718 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6719 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6720 i386fbsd4_sc_pc_offset): New variables.
6721 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6722 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6723 functions.
6724 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6725 functions.
6726 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6727 Modify the value of i386fbsd_sigtramp_start and
6728 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6729 i386fbsd_sigtramp_end.
6730 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6731 function.
6732
6733 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6734 define to i386-linux-tdep.h.
6735 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6736 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6737 defines.
6738 (i386_linux_register_name, i386_linux_register_byte,
6739 i386_linux_register_raw_size): Remove prototypes.
6740 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6741 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6742 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6743 TARGET_WRITE_PC): Remove defines.
6744 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6745 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6746 i386_linux_write_pc): Remove prototypes.
6747 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6748 (get_longjmp_target): Remove prototype.
6749 * i386-linux-tdep.h: New file.
6750 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6751 * i386-linux-tdep.c: Include "i386-tdep.h" and
6752 "i386-linux-tdep.h".
6753 (i386_linux_register_name, i386_linux_register_byte,
6754 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6755 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6756 Make static.
6757 (i386_linux_init_abi): New function.
6758 (_initialize_i386_linux_tdep): New function.
6759
6760 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6761 (i386_saved_pc_after_call): Remove prototype.
6762 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6763 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6764 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6765 (i386_register_name, i386_stab_reg_to_regnum,
6766 i386_dwarf_reg_to_regnum): Remove prototypes.
6767 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6768 SIZEOF_SSE_REGS): Remove defines.
6769 (REGISTER_BYTES): Remove define.
6770 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6771 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6772 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6773 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6774 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6775 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6776 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6777 (get_longjmp_target): Remove prototype.
6778 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6779 (sigtramp_saved_pc): Remove define.
6780 (i386v4_sigtramp_saved_pc): Remove prototype.
6781 * config/i386/tm-go32.h (FRAME_CHAIN,
6782 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6783 (i386go32_frame_saved_pc): Remove prototype.
6784 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6785 (get_longjmp_target): Remove prototype.
6786 * i386-tdep.h: Include "osabi.h".
6787 (enum i386_abi): Removed.
6788 (enum struct_return): New enum.
6789 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6790 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6791 sc_pc_offset members.
6792 (i386_gdbarch_register_os_abi): Remove prototype.
6793 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6794 I386_SSE_NUM_REGS): New defines.
6795 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6796 I386_SSE_SIZEOF_REGS): New defines.
6797 (i386_register_name, i386_register_byte, i386_register_raw_size):
6798 New prototypes.
6799 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6800 (i386bsd_sigtramp_saved_pc): New prototype.
6801 * i386-tdep.c: Don't include "elf-bfd.h".
6802 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6803 i386_frame_chain, i386_saved_pc_after_call): Make static.
6804 (i386_frame_saved_pc): Rewrite to call architecture dependent
6805 function to deal with signal handlers. Make static.
6806 (i386go32_frame_saved_pc): Removed.
6807 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6808 Removed.
6809 (i386_get_longjmp_target): New function.
6810 (default_struct_convention, pcc_struct_convention,
6811 reg_struct_convention, valid_conventions, struct_convention): New
6812 variables.
6813 (i386_use_struct_convention): New function.
6814 (i386v4_sigtramp_saved_pc): Renamed to
6815 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6816 (i386_pc_in_sigtramp): New function.
6817 (i386_abi_names): Removed.
6818 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6819 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6820 Removed.
6821 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6822 i386_gdbarch_register_os_abi): Removed.
6823 (struct i386_abi_handler): Removed.
6824 (i386_abi_handler_list): Removed.
6825 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6826 functions.
6827 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6828 i386_nw_init_abi): New functions.
6829 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6830 Use set_gdbarch_xxx() calls instead of relying on macros for a
6831 number of calls.
6832 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6833 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6834 Register the various architecture variants defined in this file.
6835
6836 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6837
6838 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6839 (struct main_type): Remove arg_types member. Update comments for
6840 struct field.
6841 (TYPE_ARG_TYPES): Remove.
6842 (TYPE_FN_FIELD_ARGS): Update.
6843 (smash_to_method_type): Update prototype.
6844
6845 * c-typeprint.c (cp_type_print_method_args): Take method type
6846 instead of argument list. Use new argument layout. Simplify.
6847 (c_type_print_args): Use new argument layout. Simplify.
6848 (c_type_print_base): Update call to cp_type_print_method_args.
6849 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6850 argument; use die->type instead. Update call to
6851 smash_to_method_type.
6852 (read_structure_scope): Update call to dwarf2_add_member_fn.
6853 * gdbtypes.c (allocate_stub_method): Update comment.
6854 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6855 Use new argument layout.
6856 (check_stub_method): Use new argument layout. Don't count
6857 void as an argument.
6858 (print_arg_types): Update comments. Use new argument layout.
6859 (recursive_dump_type): Don't print arg_types member.
6860 * hpread.c (hpread_read_struct_type): Use new argument layout.
6861 (fixup_class_method_type): Likewise.
6862 (hpread_type_lookup): Likewise.
6863 * stabsread.c (read_type): Update calls to read_args and
6864 smash_to_method_type.
6865 (read_args): Use new argument layout. Simplify.
6866 * valops.c (typecmp): Use new argument layout. Update parameters
6867 and comments. Simplify.
6868 (hand_function_call): Use new argument layout.
6869 (search_struct_method): Update call to typecmp.
6870 (find_overload_match): Use new argument layout.
6871
6872 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6873
6874 * NEWS: Mention multithreaded debug support for gdbserver.
6875
6876 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6877
6878 * MAINTAINERS: Mention NEWS.
6879
6880 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6881
6882 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6883 (struct mips_objfile_private, compare_pdr_entries): New.
6884 (non_heuristic_proc_desc): Read the ".pdr" section if it
6885 is present.
6886
6887 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6888
6889 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6890 (arm_debug): New static variable.
6891 (_initialize_arm_tdep): Add ``set debug arm'' command.
6892
6893 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6894
6895 * Makefile.in (sim_arm_h): Define.
6896 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6897 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6898 (arm_register_sim_regno): New function, map an internal REGNUM
6899 onto a simulator register number.
6900 (arm_gdbarch_init): Set register_sim_regno.
6901
6902 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6903
6904 * MAINTAINERS: Add self.
6905
6906 2002-06-11 Jim Blandy <jimb@redhat.com>
6907
6908 * source.c (source_info): Mention whether the symtab has
6909 information about preprocessor macros.
6910
6911 Call the command `info macro', not `show macro'.
6912 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6913 Fix error message.
6914 (_initialize_macrocmd): Register `info_macro_command' in
6915 `infolist', not `showlist'.
6916
6917 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6918
6919 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6920 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6921 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6922 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6923 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6924 unconditionally.
6925 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6926 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6927 (_initialize_mips_tdep): Remove dead code.
6928 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6929 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6930 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6931 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6932 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6933 MIPS_LAST_FP_ARG_REGNUM): Remove.
6934
6935 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6936
6937 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6938 (unwind_tmp_obstack_free, parse_frame_info)
6939 (update_context, cfi_read_fp, cfi_write_fp)
6940 (cfi_frame_chain, cfi_init_extra_frame_info)
6941 (cfi_virtual_frame_pointer): Use the above function.
6942 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6943
6944 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6945
6946 * v850-tdep.c (v850_type_is_scalar): New function.
6947 (v850_use_struct_convention): Match current gcc implementation
6948 as close as possible.
6949 (v850_push_arguments): Fix stack_offset handling. Don't write
6950 struct_addr into register. This is done by v850_store_struct_return.
6951 (v850_extract_return_value): Care for structs.
6952 (v850_store_return_value): Ditto.
6953 (v850_store_struct_return): Actually write address.
6954
6955 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6956
6957 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6958 without debug information too.
6959
6960 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6961
6962 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6963 Make multi-arch pure.
6964 * gdbarch.h, gdbarch.c: Re-generate.
6965 * arm-tdep.c (arm_print_float_info): Update.
6966 * arch-utils.h (default_print_float_info): Update.
6967 * arch-utils.c (default_print_float_info): Update.
6968 * infcmd.c (float_info): Update call.
6969
6970 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6971
6972 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6973 the front of the initialize list.
6974
6975 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6976
6977 * infrun.c (struct inferior_status): Replace fields
6978 selected_frame_address and selected_level with field
6979 selected_frame_id.
6980 (save_inferior_status): Update. Use get_frame_id.
6981 (struct restore_selected_frame_args): Delete.
6982 (restore_selected_frame): Update. Use frame_find_by_id.
6983 (restore_inferior_status): Update.
6984
6985 * breakpoint.h (struct breakpoint): Change type of
6986 watchpoint_frame to frame_id.
6987 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6988 call to get_current_frame.
6989 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6990 get_current_frame.
6991 (watchpoint_check): Use frame_find_by_id.
6992
6993 * frame.h (record_selected_frame): Delete declaration.
6994 * stack.c (record_selected_frame): Delete function.
6995
6996 * frame.h (struct frame_id): Define.
6997 (get_frame_id): Declare.
6998 (frame_find_by_id): Declare.
6999 * frame.c (frame_find_by_id): New function.
7000 (get_frame_id): New function.
7001
7002 2002-06-10 Andrey Volkov <avolkov@transas.com>
7003
7004 * ser-e7kpc.c: Fix duplicated define and call of
7005 _initialize_ser_e7000pc
7006
7007 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7008
7009 * signals/signals.c (target_signal_from_host): Fix #ifdef
7010 SIGRTMIN case.
7011 (do_target_signal_to_host): Likewise.
7012
7013 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7014
7015 * mips-tdep.c (mips_find_abi_section): New function.
7016 (mips_gdbarch_init): Call it.
7017
7018 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7019
7020 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7021 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7022 after Andrew's 2002-06-08 gdbarch change.
7023
7024 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7025
7026 * i386-linux-nat.c (suppy_gregset): Don't supply
7027 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7028 register cache.
7029 (fill_gregset): Don't fetch it under the same circumstances.
7030
7031 2002-06-09 Andrew Cagney <cagney@redhat.com>
7032
7033 * Makefile.in (callback_h): Define.
7034 (remote_sim_h): Update path to remote-sim.h.
7035 (remote-rdp.o): Add $(callback_h).
7036 (remote-sim.o): Use $(callback_h).
7037 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7038 * remote-rdp.c: Include "gdb/callback.h".
7039
7040 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7041
7042 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7043 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7044
7045 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7046
7047 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7048 * rdi-share/serpardr.c: Ditto.
7049 * rdi-share/unixcomm.c: Ditto.
7050 * rdi-share/serdrv.c: Ditto.
7051 * rdi-share/hostchan.h: Ditto.
7052 * rdi-share/hostchan.c: Ditto.
7053 * rdi-share/host.h: Ditto.
7054 * rdi-share/devsw.c: Ditto.
7055
7056 * objfiles.h: Change type of obj_private to void pointer.
7057 * pa64solib.c: Update copyright. Don't include "assert.h", use
7058 strcmp instead of STREQ, use LONGEST, do not use PTR
7059 * somsolib.c: Ditto.
7060
7061 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7062 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7063 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7064
7065 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7066
7067 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7068 (default_get_saved_register): Delete function.
7069 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7070 generic_unwind_get_saved_register.
7071 * gdbarch.h, gdbarch.c: Re-generate.
7072
7073 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7074
7075 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7076 generic_func_frame_chain_valid.
7077 * gdbarch.h, gdbarch.c: Re-generate.
7078 * blockframe.c (generic_func_frame_chain_valid): Only check
7079 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7080 passing FP to PC_IN_CALL_DUMMY.
7081 Fix PR gdb/360.
7082
7083 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7084
7085 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7086 (register_gdbarch_data): Initialize init_p.
7087 (gdbarch_data): Initialize data pointer using the init function.
7088 (init_gdbarch_data): Delete function.
7089 (gdbarch_update_p): Update.
7090 (initialize_non_multiarch): Update.
7091 (struct gdbarch): Add field initialized_p.
7092 * gdbarch.h, gdbarch.c: Re-generate.
7093
7094 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7095
7096 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7097 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7098 better do the things actually here.
7099 * x86-64-tdep.c (x86_64_register_name2nr): New.
7100 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7101 (x86_64_gdbarch_init): Respect the above change.
7102 * x86-64-tdep.h (x86_64_register_name2nr)
7103 (x86_64_register_nr2name): Add prototypes.
7104 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7105
7106 2002-06-06 Michael Snyder <msnyder@redhat.com>
7107
7108 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7109 Delete extra braces and re-indent.
7110 (d10v_store_return_value): Char return values
7111 must be shifted over by one byte in R0.
7112 (d10v_extract_return_value): Delete extra braces, re-indent.
7113
7114 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7115
7116 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7117 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7118 (d10v_integer_to_address): Rewrite.
7119 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7120 the d10v specific functions which take care of converting to the
7121 correct space.
7122
7123 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7124
7125 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7126 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7127
7128 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7129
7130 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7131 includes.
7132 * config/tm-linux.h: Ditto.
7133 * config/alpha/tm-alphalinux.h: Ditto.
7134 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7135 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7136 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7137 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7138 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7139 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7140 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7141 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7142 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7143 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7144 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7145 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7146 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7147 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7148 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7149 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7150 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7151 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7152 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7153 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7154 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7155 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7156 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7157 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7158 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7159 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7160 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7161 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7162 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7163 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7164 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7165 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7166 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7167 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7168 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7169 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7170 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7171
7172 2002-05-04 Aidan Skinner <aidan@velvet.net>
7173
7174 * ada-exp.tab.c: New file
7175 * ada-exp.y: New file
7176 * ada-lang.c: New file
7177 * ada-lang.h: New file
7178 * ada-lex.c: New file
7179 * ada-lex.l: New file
7180 * ada-tasks.c: New file
7181 * ada-typeprint.c: New file
7182 * ada-valprint.c: New file
7183
7184 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7185
7186 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7187 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7188
7189 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7190
7191 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7192 insetead of ppc-linux-tdep.o.
7193 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7194 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7195
7196 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7197
7198 2002-05-07 Christian Groessler <chris@groessler.org>
7199 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7200 bit register contents for little endian hosts.
7201
7202 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7203
7204 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7205 any maintainer.
7206
7207 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7208
7209 * gdbarch.h: Regenerate.
7210
7211 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7212
7213 * MAINTAINERS: Add everyone to write-after-approval list.
7214
7215 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7216
7217 * stack.c (frame_info): Use frame_register_unwind instead of
7218 saved_regs. Mention when the SP is on the stack or in a register.
7219
7220 * frame.h (frame_register_unwind_ftype): Define. Document.
7221 (struct frame_info): Add field register_unwind and
7222 register_unwind_cache.
7223 (frame_register_unwind): Declare.
7224 (generic_unwind_get_saved_register): Declare.
7225
7226 * frame.c (frame_register_unwind): New function.
7227 (generic_unwind_get_saved_register): New function.
7228
7229 * blockframe.c (generic_call_dummy_register_unwind): New function.
7230 (frame_saved_regs_register_unwind): New function.
7231 (set_unwind_by_pc): New function.
7232 (create_new_frame): New function.
7233 (get_prev_frame): New function.
7234
7235 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7236
7237 * a29k-share/: Delete directory.
7238 * remote-vx29k.c: Delete file.
7239
7240 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7241
7242 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7243 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7244
7245 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7246
7247 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7248 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7249 (sparc64nbsd-nat.o)
7250 (sparcnbsd-nat.o)
7251 (sparcnbsd-tdep.o): New dependency lists.
7252 * NEWS: Note new UltraSPARC NetBSD native configuration.
7253 * configure.host (sparc64-*-netbsd*): New host.
7254 * configure.tgt (sparc-*-netbsdelf*)
7255 (sparc-*-netbsd*): Set gdb_target to nbsd.
7256 (sparc64-*-netbsd*): New target.
7257 * sparc64nbsd-nat.c: New file.
7258 * sparcnbsd-nat.c: New file.
7259 * sparcnbsd-tdep.c: New file.
7260 * sparcnbsd-tdep.h: New file.
7261 * config/sparc/nbsd.mt: New file.
7262 * config/sparc/nbsd64.mh: New file.
7263 * config/sparc/nbsd64.mt: New file.
7264 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7265 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7266 (HOST_IPC): Remove.
7267 * config/sparc/nbsdaout.mt: Remove.
7268 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7269 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7270 (HOST_IPC): Remove.
7271 * config/sparc/nbsdelf.mt: Remove.
7272 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7273 sparc-nat.c compatiblity defines.
7274 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7275 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7276 * config/sparc/tm-nbsd64.h: New file.
7277 * config/sparc/tm-nbsdaout.h: Remove.
7278 * config/sparc/xm-nbsd.h: Remove.
7279
7280 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7281
7282 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7283 * sparc-tdep.c: Include osabi.h.
7284 (gdbarch_tdep): Add osabi member.
7285 (_initialize_sparc_tdep): Use gdbarch_register.
7286 (sparc_gdbarch_init): Use generic OS ABI framework.
7287 (sparc_dump_tdep): New function.
7288
7289 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7290
7291 * corefile.c (do_captured_read_memory_integer): Return non-zero
7292 result.
7293 (safe_read_memory_integer): Copy result of memory read when
7294 status is non-zero. Also, add comments.
7295
7296 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7297
7298 * Makefile.in (ppc_tdep_h): Define.
7299 (ppc-linux-nat.o)
7300 (ppc-linux-tdep.o)
7301 (rs6000-tdep.o): Use $(ppc_tdep_h).
7302 (ppc-sysv-tdep.o)
7303 (ppcnbsd-nat.o)
7304 (ppcnbsd-tdep.o): New dependency lists.
7305 * ppc-tdep.h: Use generic OS ABI framework.
7306 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7307 (ppc_linux_init_abi): New functions.
7308 (ppc_sysv_abi_broken_use_struct_convention)
7309 (ppc_sysv_abi_use_struct_convention)
7310 (ppc_sysv_abi_push_arguments): Move to...
7311 * ppc-sysv-tdep.c: ...here.
7312 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7313 * rs6000-tdep.c (process_note_abi_tag_sections)
7314 (get_elfosabi): Remove.
7315 (rs6000_gdbarch_init): Use generic OS ABI framework.
7316 (rs6000_dump_tdep): New function.
7317 (_initialize_rs6000_tdep): Use gdbarch_register.
7318 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7319 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7320 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7321 of ppc-linux-tdep.o.
7322 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7323 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7324 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7325 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7326 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7327 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7328
7329 2002-05-29 Jim Blandy <jimb@redhat.com>
7330
7331 * macroscope.c (default_macro_scope): Put `void' in empty argument
7332 list.
7333
7334 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7335
7336 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7337 * arch-utils.c: Include "sim-regno.h".
7338 * gdbarch.sh: Don't include "sim-regno.h".
7339 * gdbarch.h, gdbarch.c: Regenerate.
7340 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7341 here.
7342 * arch-utils.h (legacy_register_sim_regno): To here.
7343 * remote-sim.c (legacy_register_sim_regno): Move function from
7344 here.
7345 * arch-utils.c (legacy_register_sim_regno): To here.
7346
7347 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7348
7349 * sim-regno.h: New file.
7350 * Makefile.in (sim_regno_h): Define.
7351 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7352 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7353 (legacy_register_sim_regno): New function.
7354 (one2one_register_sim_regno): New function.
7355 (gdbsim_fetch_register): Rewrite.
7356 (gdbsim_store_register): Only store a register when
7357 REGISTER_SIM_REGNO is valid.
7358 * d10v-tdep.c: Include "sim-regno.h".
7359 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7360 (d10v_ts3_register_sim_regno): Ditto.
7361 * gdbarch.sh: Include "sim-regno.h".
7362 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7363 * gdbarch.h, gdbarch.c: Regenerate.
7364 * arch-utils.h (default_register_sim_regno): Delete declaration.
7365 * arch-utils.c (default_register_sim_regno): Delete function.
7366
7367 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7368
7369 * ppcnbsd-nat.c: Rewrite.
7370 * ppcnbsd-tdep.c: New file.
7371 * ppcnbsd-tdep.h: New file.
7372 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7373 solib.o, and solib-svr4.o.
7374 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7375 nbsd-tdep.o, and corelow.o.
7376
7377 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7378
7379 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7380 `tr' and `sed'. Mention that `broken' targets are not expected to
7381 build.
7382
7383 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7384
7385 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7386 Let PC point right after the prologue before looking up symbols.
7387
7388 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7389
7390 * i386-tdep.c (i386_register_virtual_type): Return
7391 builtin_type_vec128i for SSE registers.
7392
7393 * gdbtypes.h (builtin_type_vec128i): Declare.
7394
7395 * gdbtypes.c (build_builtin_type_vec128i): New function.
7396 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7397 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7398 (build_gdbtypes): Initialize new builtin vector types.
7399 (_initialize_gdbtypes): Register new vector types with gdbarch.
7400
7401 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7402
7403 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7404 since it has been multi-arch'd.
7405 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7406 Move Alpha and VAX multi-arch news entries to same section
7407 as other multi-arch news.
7408
7409 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7410
7411 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7412 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7413 static. Rename some register numbers to put them in ns32k-tdep
7414 private namespace.
7415 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7416 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7417 functions.
7418 (_initialize_ns32k_tdep): Use gdbarch_register.
7419 * ns32k-tdep.h: New file.
7420 * ns32knbsd-tdep.c: New file.
7421 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7422 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7423 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7424 REGISTER_BYTES, REGISTER_BYTE): Remove.
7425 * config/ns32k/tm-ns32k.h: New file.
7426 * config/ns32k/tm-umax.h: Remove.
7427
7428 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7429
7430 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7431 ns32k_store_struct_return, ns32k_extract_return_value,
7432 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7433 functions.
7434 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7435 ns32k_saved_pc_after_call.
7436 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7437 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7438 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7439 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7440 ns32k_extract_struct_value_address.
7441
7442 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7443
7444 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7445 ns32k_fix_call_dummy): New.
7446 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7447 ns32k_call_dummy_words.
7448 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7449 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7450 CALL_DUMMY_NARGS): Remove.
7451 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7452
7453 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7454
7455 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7456 ns32k_frame_saved_pc, ns32k_frame_args_address,
7457 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7458 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7459 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7460 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7461 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7462 (BREAKPOINT): Remove..
7463 (FRAME_CHAIN): Define as ns32k_frame_chain.
7464 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7465 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7466 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7467 (FRAME_FIND_SAVED_REGS): Remove.
7468 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7469 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7470 (POP_FRAME): Define as ns32k_pop_frame.
7471
7472 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7473
7474 * ns32k-tdep.c (ns32k_register_byte_32082,
7475 ns32k_register_byte_32382, ns32k_register_raw_size,
7476 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7477 functions.
7478 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7479 ns32k_register_byte_32382.
7480 * config/ns32k/tm-umax.h: Update copyright years.
7481 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7482 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7483 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7484 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7485 (ns32k_get_enter_addr): Fix prototype.
7486
7487 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7488
7489 * ns32k-tdep.c: Update copyright years.
7490 (ns32k_register_name_32082): New function.
7491 (ns32k_register_name_32382): Ditto.
7492 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7493 (REGISTER_NAME): Define as ns32k_register_name_32382.
7494 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7495 (REGISTER_NAME): Define as ns32k_register_name_32082.
7496
7497 2002-05-24 Jim Blandy <jimb@redhat.com>
7498
7499 * dwarf2read.c (free_line_header): Use xfree, not free.
7500
7501 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7502
7503 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7504 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7505
7506 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7507
7508 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7509
7510 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7511
7512 From Ross Alexander at NEC Europe:
7513 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7514
7515 2002-05-23 Michael Snyder <msnyder@redhat.com>
7516
7517 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7518 for input, rather than parse_and_eval_address.
7519
7520 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7521
7522 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7523 * Makefile.in (sim_d10v_h): Update definition.
7524
7525 2002-05-24 Andrew Cagney <cagney@redhat.com>
7526
7527 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7528 change `2002-05-22 Michael Snyder' below.
7529 (d10v_push_arguments): Ditto.
7530 (d10v_extract_return_value): Ditto.
7531
7532 2002-05-23 Jim Blandy <jimb@redhat.com>
7533
7534 * macrotab.c (check_for_redefinition): Don't complain if the new
7535 definition is the same as the previous one. Take more arguments
7536 to allow the comparison.
7537 (macro_define_object, macro_define_function): Pass more arguments
7538 to check_for_redefinition.
7539
7540 2002-05-22 Michael Snyder <msnyder@redhat.com>
7541
7542 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7543 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7544 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7545 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7546 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7547 Add a temp variable to save a call (and a memory read).
7548 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7549 if possible (so that PC_IN_CALL_DUMMY will work).
7550
7551 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7552
7553 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7554
7555 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7556
7557 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7558 fde->cie_ptr.
7559 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7560 (dwarf2_build_frame_info): Add offset to fde->initial_location
7561 so that frames of shared libraries are mapped correctly.
7562 (execute_stack_op): Change type of 'result' from ULONGEST to
7563 CORE_ADDR.
7564
7565 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7566
7567 * config/alpha/tm-nbsd.h: Include solib.h.
7568
7569 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7570
7571 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7572 assumptions about the host's byte order.
7573
7574 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7575
7576 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7577 to dependency list.
7578 * alphanbsd-tdep.c: Include solib-svr4.h.
7579 * shnbsd-tdep.c: Ditto.
7580
7581 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7582
7583 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7584 nbsd-tdep.h to dependency list.
7585 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7586 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7587 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7588 nbsdaout.mh and nbsdelf.mh consistently.
7589 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7590 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7591 nbsdaout.mt and nbsdelf.mh consistently.
7592 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7593 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7594 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7595 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7596 a.out shared library stuff from here...
7597 * config/nm-nbsdaout.h: ...to here.
7598 * config/tm-nbsd.h: Remove.
7599 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7600 * config/arm/nbsd.mh: Remove.
7601 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7602 nbsd-tdep.o.
7603 * config/arm/nbsdaout.mh: New file.
7604 * config/arm/nbsdelf.mh: New file.
7605 * config/arm/nm-nbsdaout.h: New file.
7606 * config/i386/nbsd.mh: Remove.
7607 * config/i386/nbsd.mt: Remove.
7608 * config/i386/nbsdaout.mh: New file.
7609 * config/i386/nbsdaout.mt: New file.
7610 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7611 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7612 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7613 i386_register_u_addr): Remove.
7614 * config/i386/nm-nbsdaout.h: New file.
7615 * config/i386/nm-nbsdelf.h: Remove.
7616 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7617 (USE_STRUCT_CONVENTION): Remove.
7618 * config/i386/tm-nbsdaout.h: New file.
7619 * config/i386/tm-nbsdelf.h: Remove.
7620 * config/m68k/nbsd.mh: Remove.
7621 * config/m68k/nbsd.mt: Remove.
7622 * config/m68k/nbsdaout.mh: New file.
7623 * config/m68k/nbsdaout.mt: New file.
7624 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7625 * config/m68k/nm-nbsdaout.h: New file.
7626 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7627 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7628 * config/ns32k/nbsd.mh: Remove.
7629 * config/ns32k/nbsd.mt: Remove.
7630 * config/ns32k/nbsdaout.mh: New file.
7631 * config/ns32k/nbsdaout.mt: New file.
7632 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7633 * config/ns32k/nm-nbsdaout.h: New file.
7634 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7635 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7636 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7637 (SVR4_SHARED_LIBS): Remove.
7638 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7639 * config/sparc/nbsd.mh: Remove.
7640 * config/sparc/nbsd.mt: Remove.
7641 * config/sparc/nbsdaout.mh: New file.
7642 * config/sparc/nbsdaout.mt: New file.
7643 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7644 * config/sparc/nbsdelf.mt: New file.
7645 * config/sparc/nm-nbsdaout.h: New file.
7646 * config/sparc/nm-nbsdelf.h: Remove.
7647 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7648 * config/sparc/tm-nbsdaout.h: New file.
7649
7650 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7651
7652 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7653 mipsnbsd-tdep.c
7654 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7655
7656 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7657
7658 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7659 shnbsd-nat.c.
7660 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7661
7662 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7663
7664 * NEWS: Note new MIPS NetBSD native configuration.
7665 * configure.host (mips*-*-netbsd*): New host.
7666 * configure.tgt (mips*-*-netbsd*): New target.
7667 * mipsnbsd-nat.c: New file.
7668 * mipsnbsd-tdep.c: New file.
7669 * mipsnbsd-tdep.h: New file.
7670 * config/mips/nbsd.mh: New file.
7671 * config/mips/nbsd.mt: New file.
7672 * config/mips/nm-nbsd.h: New file.
7673 * config/mips/tm-nbsd.h: New file.
7674
7675 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7676
7677 * Makefile.in (SFILES): Add osabi.c.
7678 (COMMON_OBS): Add osabi.o.
7679 (osabi.o): New dependency list.
7680 * osabi.c: New file.
7681 * osabi.h: New file.
7682 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7683
7684 * Makefile.in (alpha_tdep_h): Define and use instead of
7685 alpha-tdep.h.
7686 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7687 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7688 Remove.
7689 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7690 * alpha-tdep.h: Include osabi.h.
7691 (alpha_abi): Remove.
7692 (gdbarch_tdep): Use generic OS ABI framework.
7693 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7694 gdbarch_register_osabi.
7695 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7696 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7697 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7698
7699 * Makefile.in (sh_tdep_h): Add osabi.h.
7700 * sh-tdep.h (sh_osabi): Remove.
7701 (gdbarch_tdep): Use generic OS ABI framework.
7702 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7703 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7704 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7705 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7706
7707 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7708 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7709 gdbarch_register_osabi.
7710 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7711 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7712 (get_elfosabi): Rename to...
7713 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7714 ABI framework support routines.
7715 (arm_gdbarch_init): Use generic OS ABI framework.
7716 (arm_dump_tdep): Likewise.
7717 (_initialize_arm_tdep): Likewise.
7718 * arm-tdep.h: Include osabi.h.
7719 (arm_abi): Remove.
7720 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7721 osabi member.
7722 (arm_gdbarch_register_os_abi): Remove prototype.
7723 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7724 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7725
7726 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7727 * mips-tdep.c: Include osabi.h.
7728 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7729 OS ABI framework.
7730
7731 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7732
7733 * h8300-tdep.c: Fix formatting.
7734
7735 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7736
7737 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7738 printing vector registers.
7739
7740 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7741
7742 From Fernando Nasser:
7743 * remote.c (remote_async_open_1): Re-throw the exception when the
7744 connection fails.
7745 (remote_cisco_open): Ditto.
7746 (remote_open_1): Ditto.
7747
7748 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7749
7750 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7751 (remote_start_remote): Add uiout parameter. Pass through to
7752 remote_start_remote_dummy.
7753 (remote_open_1): Use catch_exception instead of catch_errors.
7754 (remote_async_open_1): Ditto.
7755 (remote_cisco_open): Ditto.
7756
7757 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7758
7759 * remote.c (remote_start_remote): Replace PTR with void pointer.
7760 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7761 static.
7762
7763 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7764
7765 * gdb_indent.sh: Allow the script to be run in the sim directory.
7766
7767 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7768
7769 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7770 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7771
7772 * corelow.c (core_open): Only call set_gdbarch_from_file if
7773 exec_bfd is NULL.
7774
7775 2002-05-17 Andrey Volkov <avolkov@transas.com>
7776
7777 * h8300-tdep.c: Add support of EXR register
7778 * config/h8300/tm-h8300.h: Ditto.
7779
7780 2002-05-17 Andrey Volkov <avolkov@transas.com>
7781
7782 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7783
7784 2002-05-17 Andrey Volkov <avolkov@transas.com>
7785
7786 * h8300-tdep.c: Change literal regnums to REGNO.
7787
7788 2002-05-17 Jim Blandy <jimb@redhat.com>
7789
7790 * NEWS: Note addition of macro support.
7791
7792 Expand preprocessor macros in C expressions.
7793 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7794 (scan_macro_expansion, scanning_macro_expansion,
7795 finished_macro_expansion): New function declarations.
7796 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7797 variable declarations.
7798 * parser-defs.h (expression_context_pc): New declaration.
7799 * parse.c (expression_context_pc): New variable.
7800 (parse_exp_1): Set expression_context_pc, as well as
7801 expression_context_block.
7802 * c-exp.y (yylex): If we're not already reading the result of a
7803 macro expansion, try to macro-expand the next token. When we're
7804 done scanning a macro expansion, switch back to the mainline text.
7805 Commas and `if's in a macro's expansion don't terminate the input.
7806 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7807 (macro_original_text, macro_expanded_text,
7808 expression_macro_lookup_func, expression_macro_lookup_baton): New
7809 variables.
7810 (scan_macro_expansion, scanning_macro_expansion,
7811 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7812 c_preprocess_and_parse): New functions.
7813 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7814 c_preprocess_and_parse, instead of c_parse.
7815 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7816 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7817
7818 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7819
7820 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7821 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7822 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7823
7824 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7825
7826 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7827
7828 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7829
7830 * Makefile.in (sh_tdep_h): Define and use.
7831 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7832 register enum): Move to...
7833 * * sh-tdep.h: ...here.
7834 * sh-tdep.c: Include sh-tdep.h.
7835 * sh3-rom.c: Likewise.
7836 * shnbsd-tdep.c: Likewise.
7837
7838 2002-05-16 Michael Snyder <msnyder@redhat.com>
7839
7840 * arm-tdep.c: Spelling fix in comment.
7841
7842 2002-05-16 Jim Blandy <jimb@redhat.com>
7843
7844 Add commands for manually expanding macros and showing their
7845 definitions.
7846 * macrocmd.c, macroscope.c, macroscope.h: New files.
7847 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7848 (macroscope_h): New variable.
7849 (HFILES_NO_SRCDIR): Add macroscope.h.
7850 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7851 (macroscope.o, macrocmd.o): New rules.
7852
7853 Teach the Dwarf 2 reader to read macro information.
7854 * dwarf2read.c: #include "macrotab.h".
7855 (dwarf_macinfo_buffer): New variable.
7856 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7857 dwarf_macinfo_size.
7858 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7859 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7860 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7861 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7862 dwarf2_macro_spaces_in_definition): New complaints.
7863 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7864 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7865 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7866 the partial symbol table.
7867 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7868 from what's recorded in the partial symbol table.
7869 (read_file_scope): If the compilation unit has a
7870 `DW_AT_macro_info' attribute, read its macro information.
7871 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7872
7873 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7874
7875 Fix PR gdb/546
7876 * ser-tcp.c: Don't include <netinet/udp.h>.
7877
7878 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7879
7880 * MAINTAINERS: Update my email address.
7881
7882 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7883
7884 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7885 include file of the same name.
7886
7887 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7888
7889 * configure.tgt: Mark v850 as multi-arched.
7890 * config/v850/tm-v850.h: Remove file.
7891 * config/v850/v850.mt: Eliminate TM_FILE.
7892
7893 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7894
7895 * v850-tdep.c: Full multi-arch.
7896 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7897 Define GDB_MULTI_ARCH to 2.
7898
7899 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7900
7901 * p-exp.y (current_type): New static variable.
7902 Carries the type of the expression at the position that is parsed.
7903 (push_current_type, pop_current_type): Two new functions. Used
7904 to store/restore current_type in expression on specific tokens.
7905 (search_field): New static variable. Set to one after parsing a point
7906 as at that point only a FIELDNAME token should be searched.
7907 (FIELDNAME): New token. After a point only a token belonging to
7908 current_type type definition is allowed.
7909 (all over token rules): reset and change current_type according
7910 to rules.
7911 (exp '[' rule): insert implicit array index field if
7912 exp is a pascal string type.
7913
7914 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7915
7916 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7917 frame info. Use frame_info's saved_regs instead of matching member
7918 in extra_frame_info throughout.
7919 (v850_frame_init_saved_regs): New function.
7920 (v850_init_extra_frame_info): Move most functionality into
7921 v850_frame_init_saved_regs().
7922 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7923 (v850_frame_find_saved_regs): Remove declaration.
7924 (FRAME_FIND_SAVED_REGS): Remove definition.
7925 (v850_frame_init_saved_regs): Add declaration.
7926 (FRAME_INIT_SAVED_REGS): Add definition.
7927
7928 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7929
7930 * v850-tdep.c: Begin multi-arch'ing v850.
7931 (v850_target_architecture_hook): Remove function.
7932 (v850_gdbarch_init): New function. Add code previously in
7933 v850_target_architecture_hook().
7934 (_initialize_v850_tdep): Don't set target_architecture_hook.
7935 Call register_gdbarch_init() instead.
7936
7937 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7938
7939 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7940 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7941 (fixup_class_method_type): Likewise.
7942
7943 2002-05-15 Jim Blandy <jimb@redhat.com>
7944
7945 Add macro structures to GDB's symbol tables. Nobody puts anything
7946 in them yet.
7947 * symtab.h (struct symtab): New member: `macro_table'.
7948 * buildsym.h (pending_macros): New global variable.
7949 * buildsym.c: #include "macrotab.h".
7950 (buildsym_init): Initialize `pending_macros'.
7951 (end_symtab): If we found macro information while reading a CU's
7952 debugging info, do build a symtab structure for it. Make the
7953 symtab point to the macro information, and clear the
7954 `pending_macros' pointer which held it while we were reading the
7955 debug info.
7956 (really_free_pendings): Free any pending macro table.
7957 * objfiles.h (struct objfile): New member: `macro_cache'.
7958 * objfiles.c (allocate_objfile): Set allocate and free functions
7959 for the macro cache's objstack.
7960 (free_objfile): Empty the macro cache's obstack.
7961 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7962 set new allocate and free functions for it.
7963 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7964 free functions for the macro cache's objstack. (Why is this
7965 function building its own objfile?)
7966 * symmisc.c (print_objfile_statistics): Print statistics on the
7967 macro bcache.
7968 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7969
7970 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7971
7972 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7973 (REGISTER_U_ADDR): Delete definition.
7974 (arm_register_u_addr): Delete declaration.
7975
7976 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7977
7978 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7979 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7980
7981 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7982
7983 * regcache.c (register_valid): Revise comments refering to "Not
7984 available" and "unavailable".
7985 * frame.c (frame_register_read): Ditto.
7986 * findvar.c (value_of_register): Ditto.
7987
7988 2002-05-15 Andrew Cagney <cagney@redhat.com>
7989
7990 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7991 (remote-sim.o): Update dependencies.
7992 (d10v-tdep.o): Specify dependencies.
7993 (sim_d10v_h): Define.
7994
7995 2002-05-14 Jim Blandy <jimb@redhat.com>
7996
7997 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7998 * macrotab.c (macro_lookup_inclusion, find_definition,
7999 new_macro_table): Same.
8000
8001 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8002 not `! strcmp ()'. This is a dubious improvement.
8003 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8004
8005 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8006 although it's not necessary, to avoid a warning.
8007
8008 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8009
8010 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8011 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8012 TYPE_INSTANCE_FLAGS.
8013 (struct main_type): New.
8014 (struct type): Move most members to struct main_type. Change
8015 cv_type and as_type to new type_chain member. Add instance_flags.
8016 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8017 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8018 (finish_cv_type): Remove prototype.
8019 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8020 Set TYPE_CHAIN.
8021 (alloc_type_instance): New function.
8022 (smash_type): New function.
8023 (make_pointer_type, make_reference_type, make_function_type)
8024 (smash_to_member_type, smash_to_method_type): Call smash_type.
8025 (make_qualified_type): New function.
8026 (make_type_with_address_space): Call make_qualified_type.
8027 (make_cv_type): Likewise.
8028 (finish_cv_type): Remove unnecessary function.
8029 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8030 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8031 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8032 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8033 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8034 * hpread.c (hpread_read_struct_type): Likewise.
8035 * stabsread.c (read_struct_type): Likewise.
8036
8037 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8038
8039 * configure.tgt: Add a catch all sh* target, for cases like
8040 sh[2,3,4]-elf and sh-hms.
8041
8042 2002-05-14 Keith Seitz <keiths@redhat.com>
8043
8044 * event-loop.c (create_file_handler): Don't do anything but
8045 update data when we are given a fd which we are already
8046 monitoring.
8047
8048 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8049
8050 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8051 (update_context): Use __func__ in warnings.
8052
8053 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8054
8055 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8056 and tcp_close to net_open and net_close.
8057 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8058 using UDP if requested. Don't try to disable Nagle on UDP
8059 sockets.
8060 * remote.c (remote_serial_open): New function. Warn about UDP.
8061 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8062
8063 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8064
8065 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8066
8067 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8068
8069 * configure.tgt: Remove sh-hms target.
8070 * MAINTAINERS: Don't list sh-hms as a separate target.
8071
8072 2002-05-13 Jim Blandy <jimb@redhat.com>
8073
8074 Add first preprocessor macro-expansion files.
8075 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8076 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8077 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8078 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8079 (COMMON_OBS): Add macrotab.o, macroexp.o.
8080 (macroexp.o, macrotab.o): New rules.
8081
8082 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8083
8084 * config/m88k/tm-m88k.h: Update copyright.
8085 (m88k_target_write_pc): Declare
8086 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8087 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8088 (SHIFT_INST_REGS): Update definition.
8089 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8090 using old definition of TARGET_WRITE_PC.
8091 * regcache.c (generic_target_write_pc): Delete code handling
8092 NNPC_REGNUM.
8093 * gdbarch.sh (NNPC_REGNUM): Delete.
8094 * gdbarch.h, gdbarch.c: Regenerate.
8095
8096 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8097
8098 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8099 builtin reg number.
8100
8101 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8102
8103 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8104 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8105 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8106 access macros.
8107 * c-typeprint.c (cp_type_print_method_args): Likewise.
8108 (c_type_print_args): Likewise.
8109 * d10v-tdep.c (d10v_push_arguments): Likewise.
8110 (d10v_extract_return_value): Likewise.
8111 * expprint.c (print_subexp): Likewise.
8112 * gdbtypes.c (lookup_primitive_typename): Likewise.
8113 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8114 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8115 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8116 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8117 (TYPE_VECTOR): Likewise.
8118 * hpread.c (hpread_read_struct_type)
8119 (fix_static_member_physnames, fixup_class_method_type)
8120 (hpread_type_lookup): Likewise.
8121 * mdebugread.c (parse_symbol, parse_type): Likewise.
8122 * p-lang.c (is_pascal_string_type): Likewise.
8123 * valops.c (hand_function_call): Likewise.
8124 * x86-64-tdep.c (classify_argument): Likewise.
8125
8126 * hpread.c (hpread_read_function_type)
8127 (hpread_read_doc_function_type): Call replace_type.
8128 * dstread.c (create_new_type): Delete.
8129 (decode_dst_structure, process_dst_function): Call alloc_type.
8130 Use type access macros.
8131
8132 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8133
8134 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8135 the're not supported by the current architecture.
8136 (i387_fill_fxsave): Likewise.
8137
8138 2002-05-12 Fred Fish <fnf@redhat.com>
8139
8140 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8141 sect_index_xxx members to index the first slot in section_offsets
8142 if all of the section_offsets are zero.
8143
8144 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8145
8146 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8147 checked in with last change.
8148
8149 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8150
8151 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8152 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8153 config.sub.
8154
8155 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8156
8157 * Makefile.in: Update dependencies.
8158
8159 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8160
8161 * language.c (local_hex_string_custom): Simplify. Do not depend
8162 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8163
8164 * memattr.c (mem_info_command): Replace calls to
8165 longest_local_hex_string and longest_local_hex_string_custom.
8166 * buildsym.c (make_blockvector): Ditto.
8167 * solib.c (info_sharedlibrary_command): Ditto.
8168 * tracepoint.c (tracepoints_info): Ditto.
8169 * symtab.c (print_msymbol_info): Ditto.
8170
8171 * language.c (local_hex_string): Delete.
8172 (local_hex_string_custom): Delete.
8173 (longest_local_hex_string): Rename to local_hex_string.
8174 (longest_local_hex_string_custom): Rename to
8175 local_hex_string_custom.
8176 * language.h (local_hex_string): Change parameter type to LONGEST.
8177 (local_hex_string_custom): Ditto.
8178 (longest_local_hex_string): Delete declaration.
8179 (longest_local_hex_string_custom): Ditto.
8180
8181 * solib.c: Update copyright.
8182 * memattr.c: Update copyright.
8183
8184 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8185
8186 * arch-utils.h (legacy_register_to_value): Declare.
8187 (legacy_value_to_register): Declare.
8188 (legacy_convert_register_p): Declare.
8189 * arch-utils.c (legacy_register_to_value): New function.
8190 (legacy_value_to_register): New function.
8191 (legacy_convert_register_p): New function.
8192
8193 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8194 (VALUE_TO_REGISTER): Define.
8195 (CONVERT_REGISTER_P): Define.
8196 * gdbarch.h, gdbarch.c: Regenerate.
8197
8198 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8199 VALUE_TO_REGISTER.
8200 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8201 CONVERT_REGISTER_P.
8202
8203 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8204 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8205
8206 * Makefile.in: Update dependencies for valops.c.
8207 * valops.c: Include "gdb_assert.h".
8208 (typecmp): Skip THIS parameter to methods.
8209 (find_method_list): Remove static_memfuncp argument,
8210 update callers. Check for stub methods.
8211 (find_value_oload_method_list): Don't set *static_memfuncp.
8212 (find_overload_match): Don't check for stub methods. Assert
8213 that methods are not stubbed. Handle static methods.
8214 (value_find_oload_method_list): Remove static_memfuncp argument.
8215 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8216 to the argument list for static stub methods.
8217 * value.h (value_find_oload_method_list): Update prototype.
8218
8219 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8220
8221 * arch-utils.h (generic_register_size): Declare.
8222 (generic_register_raw_size, generic_register_virtual_size): Delete
8223 declarations.
8224 * arch-utils.c (generic_register_raw_size): Delete.
8225 (generic_register_size): New function.
8226 (generic_register_virtual_size): Delete.
8227
8228 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8229 default generic_register_size.
8230 * gdbarch.h, gdbarch.c: Re-generate.
8231
8232 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8233 register_virtual_size.
8234 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8235 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8236
8237 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8238
8239 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8240 * gdbarch.h, gdbarch.c: Regenerate.
8241 * gnu-v3-abi.c: Update copyright.
8242 (vtable_address_point_offset): Update.
8243 (gnuv3_rtti_type): Update.
8244 (gnuv3_baseclass_offset): Update.
8245 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8246 (init_fetch_link_map_offsets): Update.
8247 * remote.c (get_remote_state): Update.
8248
8249 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8250
8251 * TODO: Remove value_headof/value_from_vtable_info comment.
8252 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8253 * values.c (value_headof, value_from_vtable_info): Delete.
8254 * value.h (value_from_vtable_info): Delete prototype.
8255
8256 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8257
8258 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8259 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8260 $(gdb_regex_h).
8261 (gdb_assert_h): Define.
8262 (gdb_wait_h): Define.
8263 (gdb_regex_h): Define.
8264
8265 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8266
8267 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8268 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8269
8270 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8271
8272 * nbsd-tdep.c: Fix comment.
8273
8274 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8275
8276 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8277 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8278 (nbsd-tdep.o): New dependency list.
8279 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8280 nbsd-tdep.h.
8281 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8282 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8283 * nbsd-tdep.c: New file.
8284 * nbsd-tdep.h: New file.
8285 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8286 nbsd-tdep.h.
8287 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8288 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8289 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8290 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8291
8292 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8293
8294 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8295 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8296 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8297 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8298 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8299 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8300
8301 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8302
8303 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8304 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8305 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8306 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8307 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8308 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8309 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8310
8311 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8312
8313 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8314 fetch_elfcore_registers to...
8315 * i386nbsd-tdep.c: ...here.
8316 (i386nbsd_use_struct_convention): Rename to...
8317 (i386nbsd_aout_use_struct_convention): ...this.
8318 (i386nbsd_supply_reg): New function.
8319 (i386nbsd_fill_reg): New function.
8320 (fetch_core_registers): Use i386nbsd_supply_reg.
8321 (fetch_elfcore_registers): Likewise.
8322 (_initialize_i386nbsd_tdep): New function.
8323 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8324 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8325 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8326 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8327 (i386nbsd_aout_use_struct_convention): ...this.
8328
8329 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8330
8331 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8332 (store_inferior_registers): Use shnbsd_fill_reg.
8333 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8334 sh_nbsd_supply_register): Collapse into...
8335 (shnbsd_supply_reg): ...this.
8336 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8337 (shnbsd_fill_reg): ...this.
8338 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8339 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8340 (fetch_core_registers): Use shnbsd_supply_reg.
8341 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8342 (sh_nbsd_core_fns): Rename to...
8343 (shnbsd_core_fns): ...this.
8344 (sh_nbsd_elfcore_fns): Rename to...
8345 (shnbsd_elfcore_fns): ...this.
8346 (sh_nbsd_init_abi): Rename to...
8347 (shnbsd_init_abi): ...this.
8348 (_initialize_sh_nbsd_tdep): Rename to...
8349 (_initialize_shnbsd_tdep): ...this.
8350 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8351 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8352 sh_nbsd_fill_register): Remove prototypes.
8353 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8354
8355 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8356
8357 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8358 (i387-nat.o): Delete dependency list.
8359 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8360 (x86-64-linux-nat.o): Likewise.
8361 * i387-nat.c: Delete file, moving contents to...
8362 * i387-tdep.c: ...here.
8363 * i387-nat.h: Rename...
8364 * i387-tdep.h: ...to this.
8365 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8366 * i386-linux-nat.c: Likewise.
8367 * i386bsd-nat.c: Likewise.
8368 * i386gnu-nat.c: Likewise.
8369 * i386nbsd-nat.c: Likewise.
8370 * i386v4-nat.c: Likewise.
8371 * x86-64-linux-nat.c: Likewise.
8372 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8373 * config/i386/go32.mh (NATDEPFILES): Likewise.
8374 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8375 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8376 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8377 * config/i386/linux.mh (NATDEPFILES): Likewise.
8378 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8379 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8380 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8381 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8382
8383 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8384
8385 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8386 (alphanbsd-nat.o): Remove dependency list.
8387 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8388 * alphanbsd-nat.c: Delete. Contents moved to...
8389 * alphanbsd-tdep.c: ...here.
8390 (_initialize_alphanbsd_tdep): Register core functions.
8391 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8392
8393 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8394
8395 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8396 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8397 (alphanbsd-nat.o): Likewise.
8398 (alphabsd-tdep.o): New dependency list.
8399 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8400 (fill_gregset): Use alphabsd_fill_reg.
8401 (supply_fpregset): Use alphabsd_supply_fpreg.
8402 (fill_fpregset): Use alphabsd_fill_fpreg.
8403 (fetch_inferior_registers): Use struct reg and struct fpreg
8404 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8405 and alphabsd_supply_fpreg.
8406 (store_inferior_registers): Use struct reg and struct fpreg
8407 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8408 and alphabsd_fill_fpreg.
8409 * alphabsd-tdep.c: New file.
8410 * alphabsd-tdep.h: New file.
8411 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8412 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8413 alphabsd_supply_fpreg.
8414 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8415 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8416
8417 2002-05-11 Eric Christopher <echristo@redhat.com>
8418
8419 * mips-tdep.c (mips_double_register_type): Fix thinko.
8420 (mips_single_register_type): Ditto.
8421 * MAINTAINERS: Add self.
8422
8423 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8424
8425 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8426 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8427 right thing on architectures with different endianness and/or
8428 integer sizes.
8429
8430 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8431
8432 From Christian Limpach <chris@Pin.LU>
8433 * configure.in: Change sed expression which comments out
8434 NATDEPFILES to also comment out continuation lines.
8435 * configure: Regenerate.
8436
8437 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8438
8439 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8440 big patch.
8441
8442 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8443
8444 * sh-tdep.c: Include correct file.
8445
8446 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8447
8448 New support for sh64-elf (sh5) target.
8449
8450 * configure.tgt: For sh64-elf target, default to sh-elf.
8451
8452 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8453 (struct gdbarch_tdep): Add new fields for new registers and ABI
8454 info.
8455
8456 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8457 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8458 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8459 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8460 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8461 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8462 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8463 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8464 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8465 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8466 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8467 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8468 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8469 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8470 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8471 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8472 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8473 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8474 sign_extend, sh64_nofp_frame_init_saved_regs,
8475 sh64_init_extra_frame_info, sh64_get_saved_register,
8476 sh64_extract_struct_value_address, sh64_pop_frame,
8477 sh64_push_arguments, sh64_extract_return_value,
8478 sh64_store_return_value, sh64_show_media_regs,
8479 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8480 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8481 sh_sh64_register_virtual_type,
8482 sh_sh64_register_convert_to_virtual,
8483 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8484 sh64_register_read, sh64_pseudo_register_write,
8485 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8486 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8487 sh64_do_pseudo_register, sh_compact_do_registers_info,
8488 sh64_do_registers_info, sh_gdbarch_init): New functions.
8489
8490 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8491
8492 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8493
8494 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8495
8496 * linespec.c (decode_line_1): Check for a double quote after
8497 a filename correctly.
8498
8499 2002-05-10 Jim Blandy <jimb@redhat.com>
8500
8501 Properly track the size of the current objfile's .debug_line section.
8502 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8503 (DWARF_LINE_SIZE): New macro.
8504 (dwarf2_build_psymtabs_hard): Record the line section's size in
8505 the partial symbol table.
8506 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8507 symbol table.
8508
8509 2002-05-10 Petr Sorfa <petrs@caldera.com>
8510
8511 * ia64-tdep.c: Handle breakpoints on L instruction type
8512 in MLX instruction bundle by moving the breakpoint to
8513 the third slot (X instruction type) as L holds only data.
8514
8515 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8516
8517 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8518 (process_one_symbol): Complain about discarding local symbols
8519 due to a misplaced N_LBRAC entry.
8520
8521 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8522
8523 From Daniel Berlin <dan@cgsoftware.com>
8524 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8525 decrease the depth we are at, in the case of templates.
8526
8527 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8528
8529 * mips-tdep.c (mips_float_register_type): New function.
8530 (mips_double_register_type): New function.
8531 (mips_print_register): Use them.
8532 (do_fp_register_row): Likewise.
8533
8534 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8535
8536 * signals/signals.c (signals): Remove conditional compilation around
8537 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8538 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8539
8540 2002-05-09 Michael Snyder <msnyder@redhat.com>
8541
8542 * remote-rdp.c (remote_rdp_can_run): Remove.
8543
8544 2002-05-09 Tom Tromey <tromey@redhat.com>
8545
8546 * jv-valprint.c (java_val_print): Handle `char' as a special case
8547 of TYPE_CODE_INT.
8548
8549 2002-05-09 Michael Snyder <msnyder@redhat.com>
8550
8551 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8552 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8553 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8554 str r(0123),[sp,#nn].
8555 (arm_skip_prologue): Ditto. Also make disassembly
8556 order-independent by placing it in a loop.
8557
8558 2002-05-06 Michael Snyder <msnyder@redhat.com>
8559
8560 * stabsread.c (read_type): Add recognition for new attribute:
8561 "@V;" means that an array type is actually a vector.
8562 This is analogous to the vector flag that's been added to dwarf2.
8563
8564 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8565
8566 * i386-tdep.h (i386_abi): New enum.
8567 (struct gdbarch_tdep): Replace os_ident member with abi.
8568 (i386_gdbarch_register_os_abi): New prototype.
8569 * i386-tdep.c (i386_abi_names): New array.
8570 (process_note_abi_tag_sections): Removed.
8571 (process_note_sections): New function.
8572 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8573 (struct i386_abi_handler): New struct.
8574 (i386_abi_handler_list): New variable.
8575 (i386_gdbarch_register_os_abi): New function.
8576 (i386_gdbarch_init): Adapt for the changes given above.
8577
8578 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8579
8580 * gregset.h: Say "GNU/Linux".
8581
8582 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8583
8584 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8585 (build_gdbtypes): Build builtin_type_v2_float.
8586 (_initialize_gdbtypes): Register new builtin type.
8587
8588 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8589
8590 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8591 (clear_gdbarch_swap): New function.
8592 (initialize_non_multiarch): Call.
8593 (gdbarch_update_p): Before calling init(), swap out and clear the
8594 existing architecture.
8595 * gdbarch.c: Regenerate.
8596
8597 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8598
8599 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8600 alphanbsd-tdep.c.
8601
8602 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8603
8604 * sh-nbsd-nat.c: Rename to...
8605 * shnbsd-nat.c: ...this.
8606 * sh-nbsd-tdep.c: Rename to...
8607 * shnbsd-tdep.c: ...this.
8608 * sh-nbsd-tdep.h: Rename to...
8609 * shnbsd-tdep.h: ...this.
8610 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8611 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8612
8613 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8614
8615 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8616 concatenation for command help messages.
8617
8618 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8619
8620 * NEWS: Note new sh*-*-netbsdelf* configuration.
8621 * configure.host: Set gdb_host_cpu to sh for all sh*.
8622 (sh*-*-netbsdelf*): New host.
8623 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8624 (sh*-*-netbsdelf*): New target.
8625 * sh-nbsd-nat.c: New file.
8626 * sh-nbsd-tdep.c: New file.
8627 * sh-nbsd-tdep.h: New file.
8628 * config/sh/nbsd.mh: New file.
8629 * config/sh/nbsd.mt: New file.
8630 * config/sh/nm-nbsd.h: New file.
8631 * config/sh/tm-nbsd.h: New file.
8632
8633 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8634
8635 * sh-tdep.c (sh_osabi_names): Declare.
8636 (process_note_abi_tag_sections): New function.
8637 (get_elfosabi): Ditto.
8638 (sh_gdbarch_register_os_abi): Ditto.
8639 (sh_dump_tdep): Ditto.
8640 _initialize_sh_tdep): Use gdbarch_register to register
8641 sh_gdbarch_init and sh_dump_tdep.
8642 * config/sh/tm-sh.h (sh_osabi): Declare.
8643 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8644
8645 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8646
8647 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8648 (thumb_scan_prologue): Ditto.
8649 (arm_find_callers_reg): Ditto.
8650 (arm_frame_chain): Ditto.
8651 (arm_init_extra_frame_info): Ditto.
8652 (arm_frame_saved_pc): Ditto.
8653 (arm_pop_frame): Ditto.
8654 (arm_push_return_address): New function.
8655 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8656 call_dummy_location, call_dummy_breakpoint_offset_p,
8657 call_dummy_breakpoint_offset, call_dummy_p,
8658 call_dummy_stack_adjust_p, call_dummy_words,
8659 sizeof_call_dummy_words, call_dummy_start_offset,
8660 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8661 call_dummy_address, push_return_address and push_dummy_frame for
8662 generic dummy frames.
8663
8664 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8665
8666 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8667 size computation for alloca.
8668 (sh_fp_frame_init_saved_regs): Likewise.
8669
8670 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8671
8672 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8673 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8674 * arm-tdep.c (arm_store_return_value): Use them.
8675 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8676 * remote-rdp.c (remote_rdp_fetch_register): Use
8677 ARM_MAX_REGISTER_RAW_SIZE.
8678 (remote_rdp_store_register): Likewise.
8679
8680 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8681
8682 * dwarf2cfi.c: Code cleanup, removed unused variables,
8683 added default labels to switch {} statements.
8684 * x86-64-tdep.c: Ditto.
8685 * x86-64-linux-nat.c: Ditto.
8686
8687 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8688
8689 * solib.h: Protect against multiple inclusion.
8690
8691 2002-05-06 Jim Blandy <jimb@redhat.com>
8692
8693 Add first preprocessor macro-expansion files.
8694 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8695 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8696 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8697 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8698 (COMMON_OBS): Add macrotab.o, macroexp.o.
8699 (macroexp.o, macrotab.o): New rules.
8700
8701 Separate the job of reading the line number info statement program
8702 header (...expialidocious) out into its own function.
8703 * dwarf2read.c (struct line_head, struct filenames, struct
8704 directories): Replace with...
8705 (struct line_header): New structure, containing the full
8706 contents of the statement program header, including the
8707 include directory and file name tables.
8708 (read_file_scope): If we have line number info, instead of just
8709 calling dwarf_decode_lines to do all the work, call
8710 dwarf_decode_line_header first to get a `struct line_header'
8711 containing the data in the statement program header, and then
8712 pass that to dwarf_decode_lines, which will pick up where that
8713 left off. Be sure to clean up the `struct line_header' object.
8714 (dwarf_decode_line_header, free_line_header, add_include_dir,
8715 add_file_name): New functions.
8716 (dwarf_decode_lines): Move all the code to read the statement
8717 program header into dwarf_decode_line_header. Take the line
8718 header it built as the first argument, instead of the offset to
8719 the compilation unit's line number info. Use the new `struct
8720 line_header' type instead of the old structures. No need to do
8721 cleanups here now, since we don't allocate anything.
8722 (dwarf2_statement_list_fits_in_line_number_section,
8723 dwarf2_line_header_too_long): New complaints.
8724
8725 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8726
8727 * gdbtypes.c (init_vector_type): New function.
8728 (build_builtin_type_vec128): Simplify the representation of SIMD
8729 registers.
8730 (build_gdbtypes): Initialize new builtin vector types.
8731 (_initialize_gdbtypes): Register new vector types with gdbarch.
8732 (builtin_type_v4_float, builtin_type_v4_int32,
8733 builtin_type_v8_int16, builtin_type_v16_int8,
8734 builtin_type_v2_int32, builtin_type_v4_int16,
8735 builtin_type_v8_int8): New (renamed) SIMD types.
8736
8737 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8738
8739 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8740 (i387_fill_fxsave): Likewise.
8741
8742 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8743
8744 * alpha-tdep.c (alpha_extract_return_value): Don't use
8745 non-constant array size in prototype.
8746
8747 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8748
8749 From Brian Taylor <briant at model dot com>:
8750 * ui-out.c (ui_out_field_core_addr): Use the function
8751 longest_local_hex_string_custom'to format addresses > 32 bits
8752 wide.
8753
8754 * ui-out.c (ui_out_field_core_addr): Update comment.
8755
8756 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8757
8758 * stack.c (select_and_print_frame): Make static. Delete the
8759 parameter `level'.
8760 (func_command): Update call.
8761 (select_frame_command): Delete code computing the frame level.
8762 * frame.h (select_and_print_frame): Delete declaration.
8763
8764 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8765
8766 * sparc-tdep.c (sparc_get_saved_register): Comment why
8767 get_prev_frame call is safe.
8768
8769 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8770
8771 * frame.h (select_frame): Delete level parameter.
8772 * stack.c (select_frame): Update. Use frame_relative_level to
8773 obtain the frame's level.
8774 (select_and_print_frame): Update call.
8775 (select_frame_command): Ditto.
8776 (up_silently_base): Ditto.
8777 (down_silently_base): Ditto.
8778 * ocd.c (ocd_start_remote): Ditto.
8779 * remote-rdp.c (remote_rdp_open): Ditto.
8780 * remote-mips.c (mips_initialize): Ditto.
8781 (common_open): Ditto.
8782 * remote-e7000.c (e7000_start_remote): Ditto.
8783 * m3-nat.c (select_thread): Ditto.
8784 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8785 (child_get_current_exception_event): Ditto.
8786 * varobj.c (varobj_create): Ditto.
8787 (varobj_update): Ditto.
8788 (c_value_of_root): Ditto.
8789 * tracepoint.c (finish_tfind_command): Ditto.
8790 * corelow.c (core_open): Ditto.
8791 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8792 * thread.c (info_threads_command): Ditto.
8793 (switch_to_thread): Ditto.
8794 * infrun.c (normal_stop): Ditto.
8795 (restore_selected_frame): Ditto.
8796 (restore_inferior_status): Ditto.
8797 * breakpoint.c (insert_breakpoints): Ditto.
8798 (watchpoint_check): Ditto.
8799 (bpstat_stop_status): Ditto.
8800 (do_enable_breakpoint): Ditto.
8801 * blockframe.c (flush_cached_frames): Ditto.
8802 (reinit_frame_cache): Ditto.
8803
8804 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8805
8806 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8807 maintainer.
8808
8809 2002-05-04 Jim Blandy <jimb@redhat.com>
8810
8811 * gdbtypes.c (replace_type): Doc fix.
8812
8813 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8814
8815 * valprint.c (strcat_longest): Delete commented out function.
8816 Update copyright.
8817
8818 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8819
8820 * MAINTAINERS: Mark a29k as deleted.
8821 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8822 Move new configurations to the top.
8823 * configure.tgt: Remove a29k.
8824 * config/a29k/tm-vx29k.h: Delete.
8825 * config/a29k/vx29k.mt: Delete.
8826 * config/a29k/tm-a29k.h: Delete.
8827 * config/a29k/a29k-udi.mt: Delete.
8828 * config/a29k/a29k.mt: Delete.
8829 * a29k-tdep.c: Delete.
8830 * remote-udi.c: Delete.
8831 * remote-mm.c: Delete.
8832 * remote-eb.c: Delete.
8833 * remote-adapt.c: Delete.
8834 * Makefile.in: Remove obsolete code.
8835 * config/s390/s390x.mt: Ditto.
8836 * config/s390/s390.mt: Ditto.
8837 * config/sparc/sparclynx.mh: Ditto.
8838 * config/sparc/linux.mh: Ditto.
8839 * config/pa/hppaosf.mh: Ditto.
8840 * config/pa/hppabsd.mh: Ditto.
8841 * config/ns32k/nbsd.mt: Ditto.
8842 * config/mips/vr5000.mt: Ditto.
8843 * config/m68k/sun3os4.mh: Ditto.
8844 * config/m68k/nbsd.mt: Ditto.
8845 * config/m68k/m68klynx.mh: Ditto.
8846 * config/m32r/m32r.mt: Ditto.
8847 * config/i386/x86-64linux.mt: Ditto.
8848 * config/i386/nbsdelf.mt: Ditto.
8849 * config/i386/nbsd.mt: Ditto.
8850 * config/i386/i386lynx.mh: Ditto.
8851
8852 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8853
8854 * target.c (debug_print_register): New function. Handle oversize
8855 registers.
8856 (debug_to_fetch_registers): Call.
8857 (debug_to_store_registers): Call.
8858
8859 2002-05-03 Jim Blandy <jimb@redhat.com>
8860
8861 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8862 (read_type): Doc fix.
8863 * gdbtypes.c (replace_type): Doc fix.
8864
8865 * stabsread.c (multiply_defined_struct): New complaint.
8866 (read_struct_type): If the type we were passed isn't empty, or
8867 incomplete, don't read the new struct type into it; complain,
8868 and return the original type unchanged. Take a new `type_code'
8869 argument, which is the type code for the new type.
8870 (read_type): Rather than storing the type's type code here, pass
8871 it as an argument to read_struct_type, and let that take care of
8872 storing it. That way, we don't overwrite the original type code,
8873 so read_struct_type can use it to decide whether we're overwriting
8874 something we shouldn't.
8875 (complain_about_struct_wipeout): New function.
8876
8877 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8878
8879 * gdbarch.sh: Assert that gdbarch is non-NULL.
8880 * gdbarch.c: Regenerate.
8881
8882 2002-05-03 Jason Merrill <jason@redhat.com>
8883
8884 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8885 and return NULL.
8886
8887 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8888
8889 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8890 (x86_64_dwarf2gdb_regno_map_length),
8891 (x86_64_dwarf2_reg_to_regnum): Added.
8892 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8893 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8894 (_initialize_x86_64_tdep): Synced with the change above.
8895 (x86_64_skip_prologue): Reformulated message.
8896
8897 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8898
8899 * f-exp.y: Also use new prev_lexptr variable
8900 to improve error reporting. Based on Michael Snyder
8901 2002-04-24 dated patch to c-exp.y.
8902 * jv-exp.y: Likewise.
8903 * m2-exp.y: Likewise.
8904
8905 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8906
8907 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8908 we are dealing with vectors.
8909
8910 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8911
8912 * config/m68k/tm-nbsd.h: Obvious fix,
8913 correct machine name.
8914
8915 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8916
8917 * p-typeprint.c (pascal_type_print_base): Add support
8918 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8919
8920 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8921
8922 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8923 for fondamental pascal 'char' type.
8924
8925 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8926
8927 * p-lang.h (is_pascal_string_type): Declaration changed,
8928 new sixth argument of type char ** added.
8929 * p-lang.c (is_pascal_string_type): Implementation
8930 changed. Args length_pos, length_size, string_pos, char_size
8931 can now be NULL. New argument arrayname set to the field
8932 name of the char array. Return value set to char array
8933 field index plus one.
8934 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8935 is_pascal_string_type function.
8936
8937 2002-05-02 Andrew Cagney <cagney@redhat.com>
8938
8939 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8940 <cagney@redhat.com> change.
8941 * gdbarch.c: Regenerate.
8942
8943 2002-05-02 Andrew Cagney <cagney@redhat.com>
8944
8945 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8946 before probing for a new one. Detect errorenous gdbarch_init
8947 functions.
8948 * gdbarch.c: Regenerate.
8949
8950 2002-05-01 Andrew Cagney <cagney@redhat.com>
8951
8952 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8953 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8954 * config/v850/tm-v850.h: Ditto. Update copyright.
8955
8956 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8957
8958 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8959 current_gdbarch.
8960
8961 2002-04-30 Michael Snyder <msnyder@redhat.com>
8962
8963 * arm-tdep.c: Whitespace clean-ups.
8964 (arm_skip_prologue): Fix thinko; two lines
8965 should have been removed as part of 4/24 change.
8966
8967 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8968
8969 * rs6000-tdep.c: Added comment describing how fpscr register
8970 numbers were chosen.
8971
8972 2002-04-30 Michael Snyder <msnyder@redhat.com>
8973
8974 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8975
8976 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8977
8978 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8979 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8980 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8981
8982 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8983
8984 From Louis Hamilton <hamilton@redhat.com>:
8985 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8986 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8987 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8988 not bfd-private xcoff data, to determine wordsize.
8989 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8990
8991 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8992
8993 GDB 5.2 released from 5.2 branch.
8994
8995 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8996
8997 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8998 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8999 (x86_64_register_info_table): Added comments with register numbers.
9000
9001 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9002
9003 * rs6000-tdep.c (rs6000_extract_return_value,
9004 rs6000_store_return_value): Handle returning vectors.
9005 (rs6000_gdbarch_init): Use
9006 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9007 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9008 New function.
9009 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9010 vectors.
9011 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9012 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9013
9014 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9015
9016 * hpread.c (hpread_psymtab_to_symtab_1,
9017 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9018 with fprintf_unfiltered (gdb_stderr,...).
9019
9020 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9021
9022 * remote-array.c (printf_monitor, write_monitor,
9023 array_insert_breakpoint, array_remove_breakpoint ):
9024 Replace fprintf (stderr,...
9025 with fprintf_unfiltered (gdb_stderr,....
9026 * remote-es.c: Likewise.
9027 * remote-os9k.c: Likewise.
9028 * remote-st.c: Likewise.
9029
9030 2002-04-28 Andreas Schwab <schwab@suse.de>
9031
9032 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9033 linux-proc.o and gcore.o.
9034
9035 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9036
9037 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9038 code without frame pointers.
9039
9040 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9041
9042 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9043 ON_STACK is needed.
9044
9045 2002-04-26 Ben Elliston <bje@redhat.com>
9046
9047 * target.c (do_xfer_memory): Correct reference to the new option
9048 "trust-readonly-sections".
9049
9050 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9051
9052 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9053 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9054 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9055 vectors.
9056 (read_array_type): Record the fact that this array type is really a
9057 vector (i.e. are passed in by value).
9058
9059 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9060
9061 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9062 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9063 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9064 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9065 * alpha-linux-tdep.c: Include frame.h.
9066 (alpha_linux_sigcontext_addr): New function.
9067 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9068 alpha_linux_sigcontext_addr.
9069 * alpha-osf1-tdep.c: Include gdbcore.h.
9070 (alpha_osf1_sigcontext_addr): New function.
9071 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9072 alpha_osf1_sigcontext_addr.
9073 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9074 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9075
9076 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9077
9078 * stack.c (selected_frame_level):
9079 (select_frame): Do not set selected_frame_level.
9080 * frame.h (selected_frame_level): Delete declaration.
9081
9082 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9083
9084 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9085 convert_from_func_ptr-addr when AIX / PowerOpen.
9086
9087 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9088
9089 * valops.c (hand_function_call): Call
9090 generic_save_call_dummy_addr.
9091 * frame.h (generic_save_call_dummy_addr): Declare.
9092 * blockframe.c (struct dummy_frame): Add fields call_lo and
9093 call_hi.
9094 (generic_find_dummy_frame): Check for PC in range call_lo to
9095 call_hi instead of entry_point_address.
9096 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9097 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9098 (generic_save_call_dummy_addr): New function.
9099
9100 2002-04-24 David S. Miller <davem@redhat.com>
9101
9102 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9103 sparc_skip_prologue.
9104 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9105 information to find prologue when possible.
9106 (sparc_prologue_frameless_p): Call examine_prologue directly.
9107 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9108 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9109 second argument.
9110 (SKIP_PROLOGUE): Likewise.
9111
9112 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9113
9114 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9115 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9116 indicate that the condition it was testing is always true.
9117 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9118 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9119 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9120
9121 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9122
9123 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9124 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9125 tdep->jb_pc and tdep->jb_elt_size.
9126 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9127 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9128 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9129 * alpha-nat.c (get_longjmp_target): Remove.
9130 (JB_ELEMENT_SIZE): Ditto.
9131 (JB_PC): Ditto.
9132 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9133 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9134 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9135 to alpha_get_longjmp_target.
9136 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9137 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9138 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9139
9140 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9141
9142 * README: Update to GDB 5.2.
9143
9144 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9145
9146 * gdbarch.sh (LC_ALL): Set to `c'.
9147
9148 2002-04-25 Theodore A. Roth <troth@verinet.com>
9149
9150 * avr-tdep.c: Ran through gdb_indent.sh.
9151
9152 2002-04-25 Theodore A. Roth <troth@verinet.com>
9153
9154 * MAINTAINERS: Add myself as AVR maintainer.
9155 * NEWS: Note new target avr.
9156
9157 2002-04-25 Theodore A. Roth <troth@verinet.com>
9158
9159 * Makefile.in: Add support for AVR target.
9160 * configure.tgt: Add support for AVR target.
9161 * avr-tdep.c: New file
9162 * config/avr/avr.mt: New file.
9163
9164 2002-04-25 Theodore A. Roth <troth@verinet.com>
9165
9166 * MAINTAINERS: Add myself to write-after-approval.
9167
9168 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9169
9170 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9171 with fprintf_unfiltered (gdb_stderr,....
9172
9173 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9174
9175 Fix PR gdb/508.
9176 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9177
9178 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9179
9180 * p-exp.y: Also use new prev_lexptr variable
9181 to improve error reporting. Based on Michael Snyder
9182 2002-04-24 dated patch to c-exp.y.
9183
9184 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9185
9186 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9187 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9188 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9189 to 0.
9190 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9191 and struct value.
9192 (FUNCTION_START_OFFSET): Remove.
9193 (BREAKPOINT): Ditto.
9194
9195 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9196
9197 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9198 * NEWS: Ditto.
9199
9200 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9201
9202 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9203 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9204 alpha_linux_pc_in_sigtramp.
9205 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9206 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9207 alpha_osf1_pc_in_sigtramp.
9208 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9209 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9210 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9211 alphafbsd_pc_in_sigtramp.
9212 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9213 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9214 alphanbsd_pc_in_sigtramp.
9215 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9216 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9217
9218 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9219
9220 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9221
9222 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9223
9224 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9225 alphanbsd-tdep.c.
9226 (alphanbsd-nat.o): New dependency list.
9227 (alphanbsd-tdep.o): Ditto.
9228 * NEWS: Note new native NetBSD/alpha configuration.
9229 * alphanbsd-nat.c: New file.
9230 * alphanbsd-tdep.c: Ditto.
9231 * configure.host (alpha*-*-netbsd*): New host.
9232 * configure.tgt (alpha*-*-netbsd*): New target.
9233 * config/alpha/nbsd.mh: New file.
9234 * config/alpha/nbsd.mt: Ditto.
9235 * config/alpha/nm-nbsd.h: Ditto.
9236 * config/alpha/tm-nbsd.h: Ditto.
9237
9238 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9239
9240 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9241 (alpha-osf1-tdep.o): New dependency list.
9242 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9243 and skip_sigtramp_frame members.
9244 * alpha-linux-tdep.c: Include gdbcore.h.
9245 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9246 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9247 * alpha-osf1-tdep.c: New file.
9248 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9249 alpha-osf1-dep.c.
9250 (alpha_frame_past_sigtramp_frame): New function.
9251 (alpha_dynamic_sigtramp_offset): Ditto.
9252 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9253 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9254 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9255 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9256 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9257 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9258 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9259 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9260 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9261 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9262 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9263 to find_solib_trampoline_target.
9264 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9265 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9266 (SKIP_TRAMPOLINE_CODE): Remove.
9267 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9268 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9269 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9270 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9271 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9272 (PROC_SIGTRAMP_MAGIC): Ditto.
9273 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9274 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9275 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9276 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9277 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9278
9279 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9280
9281 * NEWS: Note that Alpha targets are now multi-arch.
9282
9283 2002-04-24 Michael Snyder <msnyder@redhat.com>
9284
9285 * parser-defs.h (prev_lexptr): New external variable.
9286 * parse.c (parse_exp_1): Set prev_lexptr to null before
9287 calling the language-specific parser.
9288 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9289 (yyerror): Use prev_lexptr in error reporting.
9290
9291 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9292
9293 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9294 * gregset.h: If FILL_FPXREGSET is defined, provide
9295 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9296 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9297 is defined, call fill_fpxregset.
9298
9299 2002-04-24 Roland McGrath <roland@frob.com>
9300
9301 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9302 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9303 (supply_gregset, supply_fpregset): New functions.
9304
9305 * gnu-nat.c (gnu_find_memory_regions): New function.
9306 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9307 (gnu_xfer_memory): Add a cast.
9308
9309 2002-04-24 Michael Snyder <msnyder@redhat.com>
9310
9311 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9312 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9313 of argument regs ("str r(0123), [r11, #-nn"]).
9314 (arm_skip_prologue): Better handling for frameless functions.
9315 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9316 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9317
9318 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9319
9320 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9321 NUM_PSEUDO_REGS can be used.
9322
9323 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9324
9325 * arch-utils.h: Update copyright.
9326
9327 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9328 * gdbarch.h, gdbarch.c: Re-generate.
9329
9330 * inferior.h (IN_SIGTRAMP): Delete definition.
9331 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9332 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9333
9334 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9335 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9336 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9337 (find_proc_framesize): Ditto.
9338 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9339 (alpha_init_extra_frame_info): Ditto.
9340 * infrun.c (handle_inferior_event): Ditto.
9341 (handle_inferior_event): Ditto.
9342 (check_sigtramp2): Ditto.
9343 * blockframe.c (create_new_frame): Ditto.
9344 (get_prev_frame): Ditto.
9345 * ppc-linux-tdep.c: Update comments.
9346 * i386-linux-tdep.c: Update comments.
9347 * breakpoint.c (bpstat_what): Update comment.
9348
9349 2002-04-24 David S. Miller <davem@redhat.com>
9350
9351 * i960-tdep.c (register_in_window_p): New function.
9352 (i960_find_saved_register): Use it instead of
9353 REGISTER_IN_WINDOW_P.
9354 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9355
9356 * symtab.h (find_stab_function_addr): Kill extern.
9357 * minsyms.c (find_stab_function_addr): Remove from here...
9358 * dbxread.c: ... to here, and mark it static.
9359
9360 2002-04-20 David S. Miller <davem@redhat.com>
9361
9362 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9363 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9364
9365 2002-04-21 David S. Miller <davem@redhat.com>
9366
9367 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9368 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9369 (vx_write_register): Likewise.
9370
9371 2002-04-23 J. Brobecker <brobecker@gnat.com>
9372
9373 * source.c (is_regular_file): New function.
9374 (openp): Check wether file to open is a regular file
9375 to avoid opening directories.
9376
9377 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9378
9379 * findvar.c (extract_signed_integer): Cast printf argument
9380 to suppress format warning.
9381 (extract_unsigned_integer): Likewise.
9382 * infcmd.c (registers_info): Likewise.
9383 * top.c (get_prompt_1): Likewise.
9384 * valops.c (value_assign): Likewise.
9385 * valprint.c (print_decimal): Likewise.
9386
9387 2002-04-22 H.J. Lu (hjl@gnu.org)
9388
9389 * c-exp.y (typebase): Support
9390
9391 [long|long long|short] [signed|unsigned] [int|]
9392
9393 and
9394
9395 signed [long|long long|short] int
9396
9397 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9398
9399 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9400 and vax-tdep.h.
9401 * vax-tdep.h: New file.
9402 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9403 Make several routines static.
9404 (vax_get_saved_register): New function.
9405 (vax_gdbarch_init): New function.
9406 (_initialize_vax_tdep): Register vax_gdbarch_init.
9407 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9408 Remove macros now under the control of gdbarch.
9409
9410 2002-04-22 Michael Snyder <msnyder@redhat.com>
9411
9412 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9413 Some whitespace and coding standards tweaks.
9414
9415 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9416
9417 * vax-tdep.c: Include regcache.h.
9418 (vax_call_dummy_words): New.
9419 (sizeof_vax_call_dummy_words): New.
9420 (vax_fix_call_dummy): New function.
9421 (vax_saved_pc_after_call): Ditto.
9422 * config/vax/tm-vax.h: Don't include regcache.h.
9423 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9424 (CALL_DUMMY): Remove.
9425 (CALL_DUMMY_WORDS): Define.
9426 (SIZEOF_CALL_DUMMY_WORDS): Define.
9427 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9428
9429 2002-04-18 Michael Snyder <msnyder@redhat.com>
9430
9431 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9432
9433 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9434
9435 * vax-tdep.c (vax_frame_chain): New function.
9436 (vax_push_dummy_frame): Ditto.
9437 (vax_pop_frame): Ditto.
9438 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9439 (FRAMELESS_FUNCTION_INVOCATION): Use
9440 generic_frameless_function_invocation_not.
9441 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9442 (POP_FRAME): Use vax_pop_frame.
9443
9444 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9445
9446 * vax-tdep.c (vax_store_struct_return): New function.
9447 (vax_extract_return_value): Ditto.
9448 (vax_store_return_value): Ditto.
9449 (vax_extract_struct_value_address): Ditto.
9450 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9451 vax_store_struct_return.
9452 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9453 (STORE_RETURN_VALUE): Use vax_store_return_value.
9454 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9455
9456 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9457
9458 * vax-tdep.c (vax_frame_saved_pc): New function.
9459 (vax_frame_args_address_correct): Ditto.
9460 (vax_frame_args_address): Ditto.
9461 (vax_frame_locals_address): Ditto.
9462 (vax_frame_num_args): Move code to be in proximity to
9463 other frame-related functions.
9464 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9465 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9466 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9467 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9468 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9469
9470 2002-04-22 H.J. Lu (hjl@gnu.org)
9471
9472 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9473 includedir.
9474
9475 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9476
9477 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9478 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9479 (FRAME_INIT_SAVED_REGS): New macro.
9480
9481 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9482
9483 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9484
9485 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9486
9487 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9488 where needed.
9489 (fetch_osf_core_registers): Likewise.
9490 (supply_gregset): Likewise.
9491
9492 2002-04-22 J. Brobecker <brobecker@gnat.com>
9493
9494 * symfile.h (get_section_index): Define.
9495 * symfile.c (get_section_index): New function.
9496 * mdebugread.c (SC_IS_SBSS): New macro.
9497 (SC_IS_BSS): Return true for the scBss storage class only, as
9498 the scSBss storage class refers to the .sbss section.
9499 (parse_partial_symbols): Discard the symbols which associated
9500 section does not exist.
9501 Make sure to use the .sbss section index for symbols which
9502 storage class is scBss, rather than using the .bss section index.
9503
9504 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9505
9506 * vax-tdep.c: Update copyright years.
9507 (vax_register_name): New function.
9508 (vax_register_byte): Ditto.
9509 (vax_register_raw_size): Ditto.
9510 (vax_register_virtual_size): Ditto.
9511 (vax_register_virtual_type): Ditto.
9512 * config/vax/tm-vax.h: Update copyright years.
9513 (REGISTER_NAMES): Remove.
9514 (REGISTER_NAME): Define.
9515 (REGISTER_BYTE): Use vax_register_byte.
9516 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9517 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9518 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9519
9520 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9521
9522 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9523 declaration
9524 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9525
9526 2002-04-21 David S. Miller <davem@redhat.com>
9527
9528 * arch-utils.c (generic_prologue_frameless_p): Kill
9529 SKIP_PROLOGUE_FRAMELESS_P code.
9530 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9531 references.
9532 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9533 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9534 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9535 references.
9536 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9537 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9538 (sparc_gdbarch_init): Pass it to
9539 set_gdbarch_prologue_frameless_p.
9540
9541 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9542
9543 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9544 (alphabsd-nat.o): New dependency list.
9545
9546 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9547
9548 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9549 alphafbsd-tdep.c.
9550 (alpha-linux-tdep.o): New dependency list.
9551 (alphafbsd-tdep.o): Likewise.
9552
9553 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9554
9555 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9556 to here...
9557 * alpha-tdep.c: ...from here.
9558 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9559
9560 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9561
9562 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9563 prototype from here...
9564 * alpha-tdep.h: ...to here.
9565
9566 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9567
9568 * frame.h (selected_frame_level): Document as deprecated.
9569 (frame_relative_level): Declare.
9570 * stack.c (frame_relative_level): New function.
9571 (selected_frame_level): Document as deprecated.
9572 (select_frame): Do not set the selected_frame_level.
9573
9574 * stack.c (frame_info, record_selected_frame): Update.
9575 (frame_command, current_frame_command): Update.
9576 (up_silently_base, up_command, down_silently_base): Update.
9577 (down_command): Update.
9578 * inflow.c (kill_command): Update.
9579 * tracepoint.c (finish_tfind_command): Update.
9580 * corelow.c (core_open): Update.
9581 * thread.c (info_threads_command): Update.
9582 (do_captured_thread_select): Update.
9583 * infcmd.c (finish_command): Update.
9584 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9585
9586 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9587
9588 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9589
9590 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9591
9592 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9593 type const.
9594
9595 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9596
9597 * alphafbsd-tdep.c: Update copyright years. Include
9598 alpha-tdep.h.
9599 (alphafbsd_use_struct_convention): Make static.
9600 (alphafbsd_init_abi): New function.
9601 (_initialize_alphafbsd_tdep): New function.
9602 * config/alpha/tm-fbsd.h: Update copyright years.
9603 (USE_STRUCT_CONVENTION): Remove.
9604
9605 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9606
9607 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9608 an Alpha ABI variant.
9609 (alpha_abi_handler_list): Declare.
9610 (alpha_gdbarch_register_os_abi): New function.
9611 (alpha_gdbarch_init): Give registered ABI variant handlers a
9612 chance to tweak the gdbarch once we have set up defaults.
9613 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9614
9615 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9616
9617 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9618 to standard_coerce_float_to_double.
9619 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9620
9621 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9622
9623 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9624 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9625 from gdbarch_tdep rather than a constant.
9626 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9627 the default text address for all Alpha Unix ABIs.
9628 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9629 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9630
9631 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9632
9633 * alpha-tdep.h: New file. Includes several Alpha target constants
9634 taken from...
9635 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9636 let gdbarch deal with.
9637 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9638 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9639 to dependency list.
9640 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9641 Alpha target register names.
9642 * alphabsd-nat.c: Likewise.
9643 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9644 Alpha target register names. Make serveral routines static.
9645 (alpha_get_saved_register): New function.
9646 (alpha_abi_names): New.
9647 (process_note_abi_tag_sections): New function.
9648 (get_elfosabi): New function.
9649 (alpha_gdbarch_init): New function.
9650 (alpha_dump_tdep): New function.
9651 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9652
9653 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9654
9655 * frame.c (find_saved_register): Delete #ifdef
9656 HAVE_REGISTER_WINDOWS code.
9657 * config/sparc/tm-sparc.h: Update comments.
9658 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9659
9660 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9661
9662 * i960-tdep.c (i960_find_saved_register): New function.
9663 (i960_get_saved_register): New function.
9664 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9665 (i960_get_saved_register): Declare.
9666 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9667
9668 2002-04-20 David S. Miller <davem@redhat.com>
9669
9670 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9671
9672 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9673
9674 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9675 instead of NUM_PSEUDO_REGS.
9676
9677 2002-04-20 David S. Miller <davem@redhat.com>
9678
9679 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9680 GDB_MULTI_ARCH_PARTIAL
9681 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9682 define, let tm-sp64.h do it.
9683
9684 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9685
9686 * frame.c (find_saved_register): Avoid a NULL pointer
9687 dereference and actually walk the frame list.
9688
9689 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9690
9691 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9692 sorted in most most-recent-used order. Document.
9693 * gdbarch.h, gdbarch.c: Regenerate.
9694
9695 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9696
9697 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9698 instead of ->prev.
9699 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9700 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9701 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9702 instead of ->prev.
9703
9704 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9705
9706 Fix PR gdb/471.
9707 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9708 (build_builtin_type_vec128): Ditto.
9709 (append_composite_type_field): Fix calculation of type length in
9710 union case.
9711
9712 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9713
9714 * config/djgpp/README: Update.
9715
9716 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9717 compiler warnings.
9718
9719 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9720
9721 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9722 (alpha_setup_arbitrary_frame): ...to this.
9723 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9724 for alpha_setup_arbitrary_frame.
9725
9726 2002-04-18 Andrew Cagney <cagney@redhat.com>
9727
9728 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9729 * gdbarch.h, gdbarch.c: Regenerate.
9730
9731 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9732 * target.h (memory_breakpoint_from_pc): Update declaration.
9733 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9734
9735 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9736 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9737 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9738 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9739 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9740 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9741 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9742 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9743 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9744 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9745 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9746 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9747
9748 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9749 const pointer.
9750 * monitor.c (monitor_insert_breakpoint): Ditto.
9751 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9752
9753 * config/mcore/tm-mcore.h: Update copyright.
9754 * mem-break.c: Ditto.
9755 * xstormy16-tdep.c: Ditto.
9756
9757 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9758
9759 * p-exp.y: Add precedence rule for '^' token.
9760 This removes the shift/reduce conflicts.
9761 Remove the comment concerning these shift/reduce conflicts.
9762
9763 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9764
9765 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9766 (registers_powerpc_nofp): New register set for processors
9767 without floating point unit.
9768
9769 2002-04-18 David S. Miller <davem@redhat.com>
9770
9771 * MAINTAINERS: Add myself to write-after-approval.
9772
9773 2002-04-17 Michael Snyder <msnyder@redhat.com>
9774
9775 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9776
9777 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9778
9779 * rs6000-tdep.c (frame_initial_stack_address): Use
9780 frame_register_read to read the alloca_reg.
9781
9782 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9783
9784 * frame.c (find_saved_register): Find saved registers in the next
9785 not prev frame.
9786 Fix PR gdb/365.
9787
9788 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9789
9790 * gdbarch.sh (LANG): Set to ``c''.
9791
9792 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9793
9794 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9795
9796 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9797
9798 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9799 Update copyright.
9800
9801 * hpread.c (hpread_get_lntt): Add declaration.
9802 Also fix PR gdb/391.
9803
9804 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9805
9806 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9807 * aclocal.m4, configure: Re-generate.
9808 Fix PR gdb/391.
9809
9810 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9811
9812 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9813 instead of tm_print_insn.
9814
9815 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9816
9817 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9818
9819 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9820
9821 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9822 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9823 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9824
9825 2002-04-12 Don Howard <dhoward@redhat.com>
9826
9827 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9828 max_user_call_depth.
9829 (init_cmd_lists): Initialize the new value;
9830 * cli/cli-script.c (execute_user_command): Limit the call depth of
9831 user defined commands. This avoids a core-dump when user commands
9832 are infinitly recursive.
9833
9834 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9835
9836 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9837 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9838 from tdep struct instead of DEFAULT_LR_SAVE.
9839 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9840 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9841 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9842
9843 2002-04-12 Michael Snyder <msnyder@redhat.com>
9844
9845 * Remote.c: Spelling fix.
9846 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9847 If no symbol found for "sbrk", try "_sbrk".
9848 (make_output_phdrs): Use bfd_section_name.
9849 (gcore_copy_callback): Use bfd_section_name.
9850 * eval.c: Indentation fix-ups.
9851 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9852 in case it gets applied to an address that is already
9853 in the instruction space.
9854 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9855 * symfile.c: Fix indentation, long lines.
9856 * source.c: White space fix-up.
9857
9858 2002-04-12 Andrew Cagney <cagney@redhat.com>
9859
9860 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9861 * frame.c (frame_register_read): New function. Return non-zero on
9862 success.
9863 (read_relative_register_raw_bytes_for_frame): Delete.
9864 (read_relative_register_raw_bytes): Delete.
9865 * frame.h (frame_register_read): Declare.
9866 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9867 * sh-tdep.c: Ditto.
9868 * infcmd.c (do_registers_info): Ditto.
9869 * hppa-tdep.c: Ditto.
9870 * rs6000-tdep.c: Ditto.
9871 * h8500-tdep.c: Ditto.
9872 * mips-tdep.c: Ditto.
9873 * h8300-tdep.c: Ditto.
9874 * z8k-tdep.c: Ditto.
9875
9876 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9877
9878 From Jimi X <jimix@watson.ibm.com>:
9879 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9880 64-bit SysV ABI.
9881
9882 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9883
9884 From Jimi X <jimix@watson.ibm.com>:
9885 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9886 bfd info.
9887
9888 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9889
9890 From Jimi X <jimix@watson.ibm.com>:
9891 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9892 register sets for these processor variants.
9893
9894 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9895
9896 * regformats/reg-ppc.dat: Support FPSCR.
9897
9898 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9899
9900 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9901 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9902 Add fpscr as an invalid/unfetchable register.
9903 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9904 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9905 (fill_fpregset): Add support for register fpscr.
9906 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9907 (fill_gregset): Account for the fact that register ``mq'' might
9908 not exist.
9909 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9910 (registers_power): Add fpscr to register set at slot 71.
9911 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9912 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9913
9914 2002-04-11 Michael Snyder <msnyder@redhat.com>
9915
9916 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9917 * configure: Regenerate.
9918 * config.in: Regenerate.
9919 * acconfig.h: Add define for _SYSCALL32.
9920 * core-sol2.c: Remove #define _SYSCALL32.
9921 * solib-legacy.c: Remove #define _SYSCALL32.
9922
9923 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9924
9925 * stack.c (select_frame): Cleanup internal error message, do not
9926 use %p.
9927
9928 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9929
9930 * stack.c (select_frame): Check that selected_frame and the
9931 specified level are as expected.
9932 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9933 Update copyright.
9934 * frame.h (struct frame_info): Add field `level'. Update
9935 copyright.
9936 Work-in-progress PR gdb/464.
9937
9938 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9939
9940 * maint.c (maint_print_section_info): Rename print_section_info.
9941 (print_bfd_section_info, print_objfile_section_info): Update.
9942 * inferior.h (struct gdbarch): Add opaque declaration.
9943 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9944 * gdbarch.h: Regenerate.
9945
9946 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9947
9948 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9949 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9950 (kernel_u_size): Added.
9951 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9952 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9953
9954 2002-04-04 Jim Ingham <jingham@apple.com>
9955
9956 * valarith.c (find_size_for_pointer_math): New function, either returns
9957 the size for a pointer's target, returns 1 for void *, or errors for
9958 incomplete types.
9959 (value_add, value_sub): use find_size_for_pointer_math.
9960
9961 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9962
9963 * linux-low.c (linux_look_up_symbols): New hook.
9964 (linux_target_ops): Add linux_look_up_symbols.
9965 * remote-utils.c (decode_address): New function.
9966 (look_up_one_symbol): New function.
9967 * server.c (handle_query): Call target look_up_symbols hook.
9968 * server.h (look_up_one_symbol): Add prototype.
9969 * target.h (struct target_ops): Add look_up_symbols hook.
9970
9971 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9972
9973 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9974 override FP_REGNUM with frame->fp. Update copyright.
9975 * parse.c (num_std_regs, std_regs): Delete.
9976 (target_map_name_to_register): Do not search std_regs. Update
9977 function description.
9978 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9979 declarations. Update copyright.
9980 Fix PR gdb/251.
9981
9982 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9983
9984 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9985 after the last symbol in a block.
9986
9987 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9988
9989 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9990 is non zero as a found symbol.
9991
9992 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9993
9994 * findvar.c: Include "builtin-regs.h".
9995 (value_of_register): Call value_of_builtin_reg when applicable.
9996 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9997 (target_map_name_to_register): Call
9998 builtin_reg_map_name_to_regnum.
9999 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10000 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10001 (builtin_regs_h): Define.
10002 (builtin-regs.o): New target.
10003 (findvar.o): Add $(builtin_regs_h).
10004 * builtin-regs.c, builtin-regs.h: New files.
10005 * std-regs.c: New file.
10006 Partial fix for PR gdb/251.
10007
10008 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10009
10010 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10011 it's no longer required.
10012
10013 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10014
10015 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10016
10017 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10018
10019 From Jimi X <jimix@watson.ibm.com>:
10020 * rs6000-tdep.c (rs6000_software_single_step): Use
10021 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10022 and size. Use target_insert_breakpoint() and
10023 target_remove_breakpoint() to insert and remove breakpoints
10024 instead of explicit memory reads and writes.
10025
10026 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10027
10028 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10029 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10030 ELF_OBJECT_FORMAT ifdef.
10031
10032 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10033
10034 From Jimi X <jimix@watson.ibm.com>:
10035 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10036
10037 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10038
10039 From Jimi X <jimix@watson.ibm.com>:
10040 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10041 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10042
10043 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10044
10045 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10046 s/asprintf/xasprintf/.
10047 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10048
10049 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10050
10051 I believe Jeff Law denies responsability for this one:
10052 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10053 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10054 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10055 Work-around for PR gdb/366.
10056
10057 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10058
10059 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10060 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10061 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10062
10063 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10064
10065 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10066 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10067 information.
10068
10069 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10070
10071 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10072 maintainer.
10073
10074 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10075
10076 * README (Reporting Bugs in GDB): Document the bug web page as the
10077 prefered way of submitting bugs.
10078 Fix PR gdb/402.
10079
10080 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10081
10082 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10083 -1. Update comment.
10084 * gdbarch.h, gdbarch.c: Re-generate.
10085
10086 2002-04-07 Andreas Schwab <schwab@suse.de>
10087
10088 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10089 buffer to regcache_collect.
10090
10091 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10092
10093 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10094 * gdbarch.c, gdbarch.h: Re-generate.
10095
10096 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10097
10098 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10099 declaration. Fix -Werror.
10100
10101 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10102
10103 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10104 * gdbarch.c: Regenerate.
10105
10106 2002-04-05 Michael Snyder <msnyder@redhat.com>
10107
10108 * breakpoint.c (clear_command): Rewrite middle section to
10109 combine two loops with identical control conditions.
10110 Add a cleanup to eliminate a memory leak.
10111 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10112
10113 2002-04-05 H.J. Lu (hjl@gnu.org)
10114
10115 * solib-svr4.c (bkpt_names): Add "__start".
10116
10117 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10118
10119 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10120 as test for 64 bit target.
10121
10122 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10123
10124 * h8500-tdep.c (h8500_write_fp): Delete function.
10125 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10126 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10127 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10129 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10130 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10131 (s390_write_fp):
10132 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10133 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10134 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10135 (d10v_write_fp): Delete function.
10136 * inferior.h (write_fp, generic_target_write_fp): Delete
10137 declarations.
10138 * regcache.c (generic_target_write_fp): Delete function.
10139 (write_fp): Delete function.
10140 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10141 * gdbarch.h, gdbarch.c: Regenerate.
10142 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10143 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10144 (sparc64_write_fp): Delete declaration.
10145 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10146 (h8500_write_fp): Delete declaration.
10147
10148 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10149
10150 * sparc-tdep.c (sparc64_write_fp): Delete.
10151 (sparc_push_dummy_frame): Replace write_fp call with code to store
10152 the FP directly.
10153 (sparc_gdbarch_init): Do not initialize write_fp.
10154
10155 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10156
10157 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10158 clause.
10159
10160 2002-03-29 Jim Blandy <jimb@redhat.com>
10161
10162 * stack.c (get_selected_block): Add new argument `addr_in_block',
10163 used to return the exact code address we used to select the block,
10164 not just the block.
10165 * blockframe.c (get_frame_block, get_current_block): Same.
10166 * frame.h (get_frame_block, get_current_block,
10167 get_selected_block): Update declarations.
10168 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10169 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10170
10171 2002-04-05 Michael Snyder <msnyder@redhat.com>
10172
10173 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10174 warning message.
10175
10176 2002-04-05 J. Brobecker <brobecker@gnat.com>
10177
10178 * utils.c (xfullpath): New function.
10179 * defs.h (xfullpath): Add declaration.
10180 * source.c (openp): Use xfullpath in place of gdb_realpath to
10181 avoid resolving the basename part of filenames when the
10182 associated file is a symbolic link. This fixes a potential
10183 inconsistency between the filenames known to GDB and the
10184 filenames it prints in the annotations.
10185 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10186 to be able to match a filename with either the real filename, or
10187 the name of any symbolic link to this file.
10188 (lookup_partial_symtab): Ditto.
10189
10190 2002-04-04 Michael Snyder <msnyder@redhat.com>
10191
10192 * breakpoint.c: Add support for hardware breakpoints in overlays.
10193 (overlay_events_enabled): New state variable.
10194 (insert_breakpoints): Use overlay_events_enabled to decide
10195 whether to attempt to set a breakpoint at the overlay load addr.
10196 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10197 (remove_breakpoint): Use overlay_events_enabled to decide
10198 whether breakpoints need to be removed from overlay load addr.
10199 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10200 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10201 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10202 disable_overlay_breakpoints): Update overlay_events_enabled.
10203
10204 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10205
10206 * dwarf2read.c (struct function_range): New.
10207 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10208 (check_cu_functions): New.
10209 (read_file_scope): Initialize global function lists.
10210 Call dwarf_decode_line after processing children.
10211 (read_func_scope): Add to global function list.
10212 (dwarf_decode_lines): Call check_cu_functions everywhere
10213 record_line is called. Call record_line with a linenumber
10214 of 0 to mark sequence ends.
10215
10216 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10217
10218 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10219 change sync with glibc.
10220
10221 2002-04-03 Jim Blandy <jimb@redhat.com>
10222
10223 * configure.in: Call AC_C_INLINE.
10224 * configure: Regenerated.
10225
10226 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10227
10228 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10229 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10230
10231 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10232
10233 * NEWS: Mention gcore support on FreeBSD/i386.
10234
10235 * fbsd-proc.c: New file.
10236 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10237 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10238
10239 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10240 while statement.
10241
10242 2002-03-29 Jim Blandy <jimb@redhat.com>
10243
10244 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10245 unescaped newlines in string literals, but newer ones don't. So
10246 escape them.
10247
10248 2002-03-26 Michael Snyder <msnyder@redhat.com>
10249 Andrew Cagney <cagney@redhat.com>
10250
10251 * cli/cli-dump.c: New file. Dump memory to file,
10252 restore file to memory.
10253 * cli/cli-dump.h: New file.
10254 * Makefile.in: Add rules, dependencies for cli-dump.o.
10255 * NEWS: Mention new commands.
10256
10257 2002-03-28 Michael Snyder <msnyder@redhat.com>
10258
10259 * symfile.c (symbol_file_add): Move test for null symbols to later.
10260
10261 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10262
10263 From veksler at il.ibm.com:
10264 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10265 the xstrduped original path.
10266 Fix PR gdb/417.
10267
10268 2002-03-27 Michael Snyder <msnyder@redhat.com>
10269
10270 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10271 * infcmd.c (_initialize_infcmd): Ditto.
10272 * language.c (_initialize_language): Ditto.
10273 * symfile.c (_initialize_symfile): Ditto.
10274 * top.c (_init_main): Ditto.
10275 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10276
10277 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10278
10279 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10280 vector registers handling.
10281 (skip_prologue): Handle new AltiVec instructions. Fill in new
10282 fields of frame data.
10283 (frame_get_saved_regs): Fill in information for AltiVec registers.
10284
10285 2002-03-27 Jim Blandy <jimb@redhat.com>
10286
10287 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10288 a function; leave this macro here to invoke that function.
10289 (symbol_init_mangled_name): Declaration for that function.
10290 * symtab.c (symbol_init_mangled_name): New function.
10291
10292 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10293
10294 * valarith.c: Replace strerror with safe_strerror.
10295 * tracepoint.c: Ditto.
10296 * lin-lwp.c: Ditto.
10297 * go32-nat.c: Ditto.
10298 * inflow.c: Ditto.
10299 * gnu-nat.c: Ditto.
10300
10301 2002-03-27 Andreas Schwab <schwab@suse.de>
10302
10303 * event-top.c (command_line_handler): Remove useless if.
10304
10305 2002-03-27 Andreas Jaeger <aj@suse.de>
10306
10307 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10308 comment.
10309
10310 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10311
10312 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10313 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10314 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10315 (x86_64_linux_dr_get_status, supply_gregset),
10316 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10317 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10318 (x86_64_register_info_table): Add.
10319 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10320 (x86_64_register_raw_size, x86_64_register_virtual_type),
10321 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10322 general x86_64_register_info_table.
10323 (i386_gdbarch_init): gdbarch_register_bytes is now set
10324 dynamicaly during initialization.
10325 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10326 * gdbserver/linux-x86-64-low.c: Ditto.
10327
10328 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10329
10330 * gdbserver/server.c (main): Call target_signal_to_host_p
10331 and target_signal_to_host on signals received from the remote.
10332 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10333 target_signal_from_host on signals sent to the remote.
10334 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10335 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10336
10337 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10338
10339 * signals/signals.c: Include "server.h" in gdbserver build.
10340 (target_signal_from_name): Don't use STREQ.
10341 (_initialize_signals): Likewise. Don't include function in
10342 gdbserver build.
10343
10344 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10345
10346 * signals.c: Moved to...
10347 * signals/signals.c: Here.
10348 * Makefile (signals.o): Update.
10349
10350 2002-03-26 Jeff Law (law@redhat.com)
10351
10352 * somread.c (som_symtab_read): Remove some commented out code and
10353 updated related comments. Do not set the minimal symbol table to
10354 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10355 in a dynamic executable.
10356 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10357 where we are unable to find the minimal symbol for the given
10358 PC value.
10359
10360 2002-03-25 Jeff Law (law@redhat.com)
10361
10362 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10363
10364 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10365
10366 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10367
10368 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10369
10370 * command.h: Update copyright.
10371 (struct cmd_list_element): Replace definition with opaque
10372 declaration.
10373 (enum cmd_types): Document that it will eventually be moved to
10374 cli/cli-decode.h
10375 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10376 (MALLOCED_REPLACEMENT): Delete macro.
10377 * Makefile.in (cli_decode_h): Add $(command_h).
10378 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10379 * top.c: Include "cli/cli-decode.h".
10380 * completer.c: Include "cli/cli-decode.h".
10381 * maint.c: Include "cli/cli-decode.h".
10382 * cli/cli-decode.h: Include "command.h".
10383 (enum command_class): Delete.
10384 (enum cmd_types): Comment out.
10385 (enum cmd_auto_boolean): Delete.
10386 (enum var_types): Delete.
10387
10388 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10389
10390 * cli/cli-decode.c: Include "gdb_assert.h".
10391 (add_set_or_show_cmd): New static function.
10392 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10393 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10394 all fields, such as func, from the set command.
10395
10396 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10397
10398 * MAINTAINERS (sh-elf): Change warning flag to -w.
10399
10400 2002-03-23 Andrew Cagney <cagney@redhat.com>
10401
10402 * defs.h (error): Add printf format attribute.
10403 * thread-db.c (thread_from_lwp): Fix error format string.
10404 * stack.c (parse_frame_specification): Ditto.
10405 * cli/cli-decode.c (undef_cmd_error): Ditto.
10406 * scm-lang.c (scm_lookup_name): Ditto.
10407 * tracepoint.c (trace_error): Ditto.
10408 * remote-utils.c (usage): Ditto.
10409 * remote.c (compare_sections_command): Ditto.
10410 Fix PR gdb/328.
10411
10412 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10413
10414 * gdbtypes.c (append_composite_type_field): New function.
10415 (init_composite_type): New function.
10416 * gdbtypes.h (append_composite_type_field): Declare.
10417 (init_composite_type): Ditto.
10418
10419 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10420
10421 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10422 function.
10423 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10424 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10425 structure returning convention for SYSV ABI case, but not
10426 for GNU/Linux, FreeBSD, or NetBSD.
10427
10428 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10429
10430 * symtab.h (lookup_block_symbol): Add mangled_name argument
10431 to prototype.
10432
10433 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10434 with new mangled_name argument.
10435 * linespec.c (decode_line_1): Likewise.
10436 * valops (value_of_this): Likewise.
10437 * symtab.c (lookup_transparent_type): Likewise.
10438 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10439 (lookup_symbol): If we are given a mangled name, pass it down
10440 to lookup_symbol_aux.
10441 (lookup_block_symbol): If we are given a mangled name to check
10442 against, only return symbols which match it.
10443
10444 2002-03-22 Christopher Faylor <cgf@redhat.com>
10445
10446 * win32-nat.c (child_create_inferior): Check for proper shell to use
10447 here, in case the user changes it on the fly.
10448 (_initialize_inftarg): Remove shell path considerations.
10449
10450 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10451
10452 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10453 for gdbarch_max_register_raw_size and max_register_virtual_size.
10454 Adjust copyright year.
10455
10456 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10457
10458 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10459 in a function to cover the entire beginning of the function
10460 as well if it does not already.
10461
10462 2002-03-21 Tom Rix <trix@redhat.com>
10463
10464 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10465 (rs6000_ptrace64): Renamed from ptrace64.
10466
10467 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10468
10469 * gdbserver/remote-utils.c (remote_open): Don't call
10470 getprotobyname, we're all using TCP here so just use
10471 IPPROTO_TCP.
10472 * gdbserver/gdbreplay.c (remote_open): Ditto.
10473
10474 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10475
10476 * regcache.c (_initialize_regcache): No need to call
10477 build_regcache() at this time; it gets called whenever
10478 the gdbarch changes.
10479
10480 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10481
10482 * sparc-nat.c: Include sys/param.h where possible.
10483
10484 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10485
10486 Fix PR gdb/422.
10487 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10488 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10489 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10490 complex types.
10491 * stabsread.c (rs6000_builtin_type): Likewise.
10492 (read_sun_floating_type): Likewise.
10493
10494 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10495
10496 * stabsread.c (read_member_functions): Remove skip code for duplicate
10497 constructor/destructor methods. Use standard parsing for these
10498 methods and just do not chain them to the list of methods after
10499 parsing.
10500
10501 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10502
10503 * coffread.c: Remove redundant static declarations. Replace
10504 occurrences of `PTR' with `void *'.
10505 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10506 * top.h (quit_cover): Likewise.
10507 * defs.h (catch_errors): Likewise.
10508
10509 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10510
10511 * defs.h (XMALLOC): Define.
10512 * gdb-events.sh (XMALLOC): Delete macro.
10513 * gdb-events.c, gdb-events.h: Regenerate.
10514 * gdbarch.sh (XMALLOC): Delete macro.
10515 * gdbarch.c: Regenerate.
10516 * serial.c (XMALLOC): Delete macro.
10517 * ui-file.c (XMALLOC): Ditto.
10518 * ser-unix.h (XMALLOC): Ditto.
10519 * sh-tdep.c (XMALLOC): Ditto.
10520 * ui-out.c (XMALLOC): Ditto.
10521 * utils.c (XMALLOC): Ditto.
10522 * i386-tdep.c (XMALLOC): Ditto.
10523 * gdb-events.c (XMALLOC): Ditto.
10524 * d10v-tdep.c (XMALLOC): Ditto.
10525 * cli-out.c (XMALLOC): Ditto.
10526
10527 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10528 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10529 * ui-file.c, ui-out.c: Ditto.
10530
10531 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10532
10533 * command.h (struct cmd_list_element): Add field context.
10534 (set_cmd_context, get_cmd_context): Declare.
10535 * cli/cli-decode.h: Ditto.
10536 * cli/cli-decode.c (get_cmd_context): New function.
10537 (set_cmd_context): New function.
10538 (add_cmd): Initialize context.
10539 Part of fixing PR gdb/145 and PR gdb/146.
10540
10541 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10542
10543 * cli/cli-decode.c (cmd_type): New function.
10544 * command.h (cmd_type): Declare.
10545 * infrun.c (set_schedlock_func): Call function cmd_type.
10546 * kod.c (kod_set_os): Call cmd_type.
10547 * cris-tdep.c (cris_version_update): Use function cmd_type.
10548 (cris_mode_update, cris_abi_update): Ditto.
10549
10550 * command.h: (execute_cmd_post_hook): Declare.
10551 (execute_cmd_pre_hook): Declare.
10552 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10553 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10554 functions. Execute pre/post hook while ensuring that afterwords
10555 hook_in is cleared.
10556 * top.c (execute_command): Use execute_cmd_post_hook, and
10557 execute_cmd_pre_hook to execute pre/post commands.
10558 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10559 hook_stop_stub.
10560 (hook_stop_stub): Call execute_cmd_pre_hook.
10561
10562 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10563
10564 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10565 set'' and this leads to a core dump. Move xstrdup of
10566 operating_system to after check that it is not NULL.
10567
10568 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10569
10570 * kod.c (kod_set_os): Remove unnecessary check that
10571 ``command->type'' is set_cmd.
10572
10573 * valprint.c (set_input_radix): Use input_radix.
10574 (set_output_radix): Use output_radix.
10575 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10576 isn't reverted.
10577
10578 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10579
10580 * value.h (struct value): Delete field ``substring_addr''. Change
10581 aligner fields to force_doublest_align, force_longest_align,
10582 force_core_addr_align and force_pointer_aligh.
10583
10584 * value.h (struct value): Fix typo in above change.
10585
10586 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10587
10588 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10589 to fix internal_error from ``maintenance print architecture''.
10590
10591 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10592
10593 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10594 for gcc versions after gcc-2.8.1.
10595
10596 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10597
10598 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10599 for method resolution. Restore adjustment of ``this'' pointer after
10600 calling value_struct_elt, which was accidentally removed during the
10601 HP merge.
10602
10603 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10604
10605 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10606 value_of_register.
10607 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10608 get_saved_register.
10609 * value.h (value_of_register): Update.
10610
10611 2002-03-14 Richard Henderson <rth@redhat.com>
10612
10613 * configure.in: Detect declaration for canonicalize_file_name.
10614 * utils.c (canonicalize_file_name): Declare, if needed.
10615 (gdb_realpath): Prefer realpath if available and usable.
10616 * config.in, configure: Rebuild.
10617
10618 2002-03-14 Richard Henderson <rth@redhat.com>
10619
10620 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10621 a constant array bound.
10622
10623 * MAINTAINERS: Add myself to write-after-approval.
10624
10625 2002-03-14 Michael Snyder <msnyder@redhat.com>
10626
10627 * symfile.c (syms_from_objfile): Return immediately if no syms.
10628 (symbol_file_add): Return immediately if no syms.
10629 (find_sym_fns): Return immediately if no syms.
10630
10631 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10632
10633 * gdbserver/remote-util.c (remote_open): Print remote-side's
10634 IP address when remote debugging over the network.
10635
10636 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10637
10638 * config/sparc/fbsd.mh: Fix copyright.
10639 * config/sparc/fbsd.mt: Likewise.
10640
10641 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10642
10643 * MAINTAINERS: Fix typo in name of gdb warnings option.
10644 (x86-64): Fix formating so that this can be parsed by awk.
10645
10646 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10647
10648 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10649 * defs.h: Include "gdb/signals.h".
10650 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10651
10652 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10653
10654 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10655 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10656 from x86-64-tdep.h
10657
10658 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10659 Don Howard <dhoward@redhat.com>
10660
10661 * mips-tdep.c (ST0_FR): Define.
10662 (mips2_fp_compat): New function, temporarily disabled.
10663 (mips_read_fp_register_single): New function.
10664 (mips_read_fp_register_double): New function.
10665 (mips_print_register): Use them.
10666 (do_fp_register_row): Likewise.
10667
10668 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10669
10670 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10671 approval''.
10672
10673 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10674
10675 * stabsread.c (read_member_functions): Fix is_stub test for
10676 static member functions, improve comment.
10677
10678 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10679
10680 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10681 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10682 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10683 commands that set boolean values.
10684 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10685 (arm_rdi_resume): Always initialize PC.
10686 (arm_rdi_open): Don't use rslt as a boolean.
10687 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10688 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10689 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10690 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10691
10692 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10693
10694 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10695 * configure: Rebuilt.
10696
10697 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10698
10699 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10700 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10701
10702 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10703
10704 * cli/cli-decode.c (set_cmd_completer): New function.
10705 * command.h (set_cmd_completer): Declare.
10706 * cli/cli-decode.h (set_cmd_completer): Ditto.
10707
10708 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10709 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10710 * win32-nat.c (_initialize_inftarg): Ditto.
10711 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10712 * proc-api.c (_initialize_proc_api): Ditto.
10713 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10714 * source.c (_initialize_source): Ditto.
10715 * exec.c (_initialize_exec): Ditto.
10716 * solib.c (_initialize_solib): Ditto.
10717 * top.c (init_main): Ditto.
10718 * tracepoint.c (_initialize_tracepoint): Ditto.
10719 * symfile.c (_initialize_symfile): Ditto.
10720 * printcmd.c (_initialize_printcmd): Ditto.
10721 * infcmd.c (_initialize_infcmd): Ditto.
10722 * corefile.c (_initialize_core): Ditto.
10723
10724 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10725
10726 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10727
10728 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10729
10730 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10731
10732 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10733
10734 * NEWS: Update headings, 5.2 has branched.
10735
10736 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10737
10738 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10739 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10740 (register_addr, REGISTER_RAW_SIZE): Likewise.
10741 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10742 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10743
10744 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10745
10746 * MAINTAINERS (x86-64): Add myself.
10747 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10748 changed value_ptr -> struct value *
10749
10750 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10751
10752 * configure.host (sparc64-*-freebsd): Add.
10753 * configure.tgt: Likewise.
10754 * config/sparc/fbsd.mh: New file.
10755 * config/sparc/fbsd.mt: Likewise.
10756 * config/sparc/nm-fbsd.h: Likewise.
10757 * config/sparc/tm-fbsd.h: Likewise.
10758
10759 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10760
10761 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10762 regformats/reg-s390x.dat.
10763
10764 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10765
10766 * utils.c: Add FIXME explaining true/false problem.
10767
10768 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10769
10770 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10771
10772 2002-02-28 Michael Chastain <mec@shout.net>
10773
10774 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10775
10776 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10777
10778 * gdbserver/linux-s390-low.c: New file.
10779 * regformats/reg-s390.dat: New file.
10780 * regformats/reg-s390x.dat: New file.
10781 * gdbserver/configure.srv: Add S/390.
10782 * gdbserver/Makefile.in: Add S/390.
10783 * configure.tgt: Enable gdbserver for S/390.
10784
10785 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10786
10787 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10788 first line of the doc string for "info dos", except at the end of
10789 the sentence, since the short help stops at the first period.
10790
10791 2002-02-28 Jason Merrill <jason@redhat.com>
10792
10793 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10794
10795 2002-02-27 Fred Fish <fnf@redhat.com>
10796
10797 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10798 comment (dumy -> dummy).
10799
10800 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10801
10802 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10803
10804 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10805
10806 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10807
10808 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10809
10810 * gdbserver/acconfig.h: New file.
10811 * gdbserver/i387-fp.c: New file.
10812 * gdbserver/i387-fp.h: New file.
10813 * gdbserver/linux-x86-64.c: New file.
10814 * regformats/reg-x86-64.dat: New file.
10815 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10816 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10817 * gdbserver/configure.in: Add support for regsets.
10818 * gdbserver/config.in: Regenerate.
10819 * gdbserver/configure: Regenerate.
10820 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10821 * gdbserver/linux-low.h: New file.
10822 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10823 for regsets.
10824 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10825 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10826 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10827 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10828 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10829 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10830 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10831 "i387-fp.h". Add PTRACE_GETREGS and friends.
10832 * gdbserver/regcache.c (supply_register): New function.
10833 (supply_register_by_name): New function.
10834 (collect_register): New function.
10835 (collect_register_by_name): New function.
10836
10837 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10838
10839 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10840 (config.status): Add configure.srv dependency.
10841 (server_h): Add config.h dependency.
10842
10843 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10844
10845 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10846 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10847 * gdbserver/configure.srv: Change i386-*-linux* to use
10848 reg-i386-linux.o.
10849
10850 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10851
10852 * x86-64-tdep.c: Re-indent. Update copyright date.
10853
10854 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10855
10856 From Michal Ludvig <mludvig@suse.cz>:
10857 * x86-64-tdep.c (value.h): Delete.
10858 (gdb_assert.h): Include.
10859 (x86_64_register_convert_to_virtual,
10860 x86_64_register_convert_to_raw ): Add check which lets only
10861 floating-point values to be converted.
10862 (value_push): Delete.
10863 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10864 (i386_gdbarch_init): Number of register_bytes fixed.
10865
10866 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10867
10868 * MAINTAINERS: Add x86-64 target.
10869
10870 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10871
10872 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10873 * osfsolib.c (solib_map_sections): Ditto.
10874 * irix5-nat.c (solib_map_sections): Ditto.
10875 * corelow.c (gdb_check_format): Ditto.
10876 * symfile.c (symfile_bfd_open): Ditto.
10877 * solib.c (solib_map_sections): Ditto.
10878 Fix PR gdb/354.
10879
10880 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10881
10882 * remote.c (_initialize_remote): By default, disable ``e'' and
10883 ``E'' step out-of-range packets.
10884
10885 2002-02-26 Andreas Schwab <schwab@suse.de>
10886
10887 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10888 m68k_linux_frame_saved_pc.
10889 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10890 in_sigtramp.
10891 (SIGCONTEXT_PC_OFFSET): Remove.
10892 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10893 m68k_linux_sigtramp_saved_pc): New functions.
10894 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10895 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10896 (UCONTEXT_PC_OFFSET): Define.
10897 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10898 non-RT and RT signal trampolines.
10899
10900 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10901
10902 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10903 (TARGET_NBPG, STACK_END_ADDR): Delete
10904 (VARIABLES_INSIDE_BLOCK): Delete.
10905
10906 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10907
10908 * utils.c (perror_with_name): Make string parameter constant.
10909 (print_sys_errmsg): Ditto.
10910 (query): Ditto.
10911 * defs.h (perror_with_name): Update.
10912 (print_sys_errmsg): Update.
10913 (query): Update.
10914
10915 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10916
10917 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10918 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10919
10920 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10921
10922 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10923 if it already matches the current architecture from the exec file.
10924 Include arch-utils.h for gdbarch_info_init prototype.
10925 * Makefile.in (rs6000-nat.o): Update dependencies.
10926
10927 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10928
10929 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10930 list of exported variables.
10931
10932 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10933
10934 * gdbserver/configure.srv: New file.
10935 * gdbserver/configure.in: Use configure.srv instead
10936 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10937 from it.
10938 * gdbserver/configure: Regenerated.
10939 * gdbserver/terminal.h: New file.
10940 * gdbserver/Makefile.in: Update for configure changes. Remove
10941 more unneeded include paths.
10942
10943 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10944
10945 From wiz at danbala:
10946 * config/sparc/tm-sp64.h: Fix grammar and typos.
10947 Fix PR gdb/287.
10948
10949 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10950
10951 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10952 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10953 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10954 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10955 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10956 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10957 * s390-tdep.c: Ditto.
10958 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10959 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10960 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10961 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10962 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10963 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10964 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10965 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10966 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10967 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10968 Fix PR gdb/378.
10969
10970 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10971
10972 * lin-thread.c: Delete file.
10973 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10974 to gdb_proc_service.h.
10975 * configure: Re-generate.
10976
10977 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10978 * serial.c (serial_open): Delete check for "ocd".
10979 Fix PR gdb/349.
10980
10981 * Makefile.in (linux-thread.o): Delete target.
10982 * linux-thread.c: Delete file.
10983
10984 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10985 renamed SH files to be consistent.
10986
10987 * symtab.c (sort_search_symbols): Use xfree.
10988
10989 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10990
10991 * arm-linux-tdep.c (arm_linux_init_abi): Register
10992 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10993 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10994 definition with undef, since we don't want the sysvr4 definition.
10995 (SKIP_TRAMPOLINE_CODE): Likewise.
10996
10997 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10998
10999 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11000
11001 * configure.in: (AC_CHECK_FUNCS) Added test for
11002 canonicalize_file_name Regenerated.
11003 * config.in, configure: Regenerated.
11004 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11005 defined use canonicalize_file_name.
11006
11007 2002-02-23 Michael Chastain <mec@shout.net>
11008
11009 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11010
11011 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11012
11013 * README: Remove references to cygnus.com.
11014 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11015 dot com'' form. Remove references to cygnus.com and sourceware.
11016
11017 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11018
11019 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11020 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11021 1003.1-2001 no longer allows "head -1".
11022 * gdb/Makefile.in (version.c): Likewise.
11023 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11024 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11025 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11026
11027 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11028
11029 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11030 * command.h (cmd_cfunc_eq): Declare.
11031 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11032
11033 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11034 ``struct cmd_list_element *''.
11035 * cli/cli-cmds.c (is_complete_command): Update. Use
11036 cmd_cfunc_eq.
11037 * top.c (execute_command): Pass the command to
11038 is_complete_command.
11039 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11040
11041 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11042
11043 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11044 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11045 architecture defines.
11046 * s390-tdep.c (s390_gdbarch_init): Likewise.
11047
11048 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11049
11050 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11051 (arm_linux_push_arguments): Likewise.
11052 (arm_linux_init_abi): Register them. Also register linux-specific
11053 call_dummy_words.
11054 (find_minsym_and_objfile): Use strcmp, not STREQ.
11055 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11056 (arm_linux_call_dummy_words): Delete declaration.
11057 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11058 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11059 declarations.
11060 (LOWEST_PC): Delete.
11061
11062 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11063
11064 * maint.c (print_section_info): Do not prepend `0x' to filepos
11065 output, it will be handled by local_hex_string_custom.
11066
11067 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11068
11069 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11070 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11071 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11072
11073 2002-02-22 Jim Blandy <jimb@redhat.com>
11074
11075 Indicate that the bcache functions don't change the strings
11076 they're passed.
11077 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11078 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11079
11080 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11081
11082 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11083
11084 2002-02-21 Christopher Faylor <cgf@redhat.com>
11085
11086 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11087 find the complete path to a loaded DLL.
11088
11089 2002-02-21 Fred Fish <fnf@redhat.com>
11090
11091 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11092 that marks the end of the range of a function, enter a line number
11093 entry that has a line number of zero and a PC offset that matches
11094 the end of the function. This starts a range of PC's for which no
11095 line number information is known.
11096 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11097 PC's for which no line number info is found (line number is zero)
11098 then we didn't find any valid line information.
11099 * symtab.h: Document use of zero line number entry.
11100
11101 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11102
11103 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11104 (have_ptrace_getvrregs): Define for run time checks.
11105 (gdb_vrregset_t): New type for Altivec register handling.
11106 (fetch_register, store_register): Fetch/store altivec register
11107 when needed.
11108 (fetch_altivec_register, store_altivec_register): New functions.
11109 (supply_vrregset, fill_vrregset): New functions.
11110 (fetch_altivec_registers, store_altivec_registers): New functions.
11111 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11112 registers as well.
11113
11114 2002-02-21 Jiri Smid <smid@suse.cz>
11115
11116 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11117
11118 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11119
11120 * Makefile.in (armnbsd-nat.o): Update dependencies.
11121 * armnbsd-nat.c (supply_gregset): New function. Common code to
11122 supply the integer register set.
11123 (supply_fparegset): New function. Similar for FPA registers.
11124 (fetch_regs, fetch_fp_regs): Use them.
11125 (fetch_core_registers): Likewise.
11126 (fetch_elfcore_registers): New function.
11127 (arm_netbsd_elfcore_fns): New core-file type specification.
11128 (_initialize_arm_netbsd_nat): Register it.
11129
11130 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11131
11132 * armnbsd-nat.c: Include gdbcore.h.
11133 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11134 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11135 'void' to declaration, to shut up ARI.
11136 (fetch_core_registers): Make static. Rewrite using supply_register.
11137 (arm_netbsd_core_fns): New core-file type specification.
11138 (_initialize_arm_netbsd_nat): New function.
11139
11140 2002-02-21 Christopher Faylor <cgf@redhat.com>
11141
11142 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11143 value.
11144
11145 2002-02-20 Christopher Faylor <cgf@redhat.com>
11146
11147 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11148 fails.
11149
11150 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11151
11152 * jv-exp.y (parse_number): Change type of implicit longs
11153 to builtin_type_uint64.
11154
11155 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11156
11157 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11158 to be an integer instead of a `union wait'.
11159
11160 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11161
11162 * mips-linux-nat.c: Call the operating system GNU/Linux.
11163 * mips-linux-tdep.c: Likewise.
11164 * mips-tdep.c: Likewise.
11165
11166 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11167
11168 Fix PR gdb/265.
11169 * jv-exp.y (parse_number): Handle 64-bit integers.
11170
11171 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11172
11173 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11174 AC_STDC_HEADERS to AC_HEADER_STDC.
11175 * gdbserver/configure: Regenerated.
11176
11177 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11178
11179 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11180 is defined.
11181 * sparc-tdep.c (get_longjmp_target): Likewise.
11182
11183 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11184
11185 * News: Add news about ARM and Multi-arch. Mention the new target
11186 arm*-*-netbsd*.
11187
11188 2002-02-19 Jim Blandy <jimb@redhat.com>
11189
11190 * stabsread.c (error_type_complaint): Improve error message.
11191
11192 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11193
11194 * gdbserver/README: Update documentation.
11195 * gdbserver/configure.in: Update configury to match documentation.
11196 * gdbserver/Makefile.in: Likewise.
11197 * gdbserver/configure: Regenerated.
11198 * gdbserver/aclocal.m4: New file, generated by aclocal.
11199 * gdbserver/config.in: New file, generated by autoheader.
11200
11201 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11202
11203 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11204 armnbsd-nat.c.
11205
11206 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11207
11208 * arm-tdep.h (enum arm_float_model): New enum.
11209 (struct gdbarch_tdep): Add fp_model.
11210 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11211 up floating-point conversions until we know the floating-point model
11212 in use by the inferior. Don't complain about being unable to
11213 determine the ABI of the inferior when we don't have one.
11214 (arm_extract_return_value): Support different floating-point models.
11215 (arm_store_return_value): Likewise.
11216 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11217 ARM_FLOAT_SOFT.
11218 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11219
11220 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11221
11222 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11223 of ``current_gdbarch''.
11224
11225 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11226
11227 * armnbsd-nat.c : ANSIfy all function declarations.
11228 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11229 (fetch_inferior_registers): Re-implement in terms of above.
11230 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11231 (store_inferior_registers): Re-implement in terms of above.
11232
11233 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11234
11235 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11236 kernel.
11237 * arm-linux-tdep.c: Likewise.
11238 * config/arm/tm-linux.h: Likewise.
11239
11240 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11241
11242 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11243 * config/arm/nbsd.mt (TM_FILE): Delete.
11244 * config/arm/tm-nbsd.h: Delete.
11245
11246 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11247
11248 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11249 Initialize CALL_DUMMY_LENGTH.
11250
11251 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11252
11253 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11254 function.
11255 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11256 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11257 defines one thing and that is incorrect for this port.
11258 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11259
11260 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11261
11262 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11263
11264 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11265
11266 * win32-nat.c (display_selector): New function. Displays information
11267 about the information returned by GetThreadSelectorEntry API function.
11268 (display_selectors): New function. Displays the infomation of
11269 the selector given as argument, or of CS, DS ans FS selectors
11270 if no argument is given.
11271 ( _initialize_inftarg): Add "w32" as info prefix command.
11272 Add "info w32 selector" as command calling display_selectors.
11273
11274 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11275
11276 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11277 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11278 if not defined.
11279
11280 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11281
11282 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11283
11284 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11285
11286 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11287 (arm_fix_call_dummy): Call it.
11288 (arm_call_dummy_breakpoint_offset): Delete.
11289 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11290 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11291
11292 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11293
11294 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11295 Default to func_frame_chain_valid.
11296 * gdbarch.h, gdbarch.c: Re-generate.
11297 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11298
11299 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11300
11301 * ppc-linux-nat.c: Update copyright.
11302 (fetch_register, store_register): Add tid parameter, don't compute
11303 tid here.
11304 (fetch_ppc_registers, store_ppc_registers): Add tid
11305 parameter. Pass it along to callees.
11306 (fetch_inferior_registers, store_inferior_registers): Compute tid
11307 here, and pass it to calleed functions.
11308 (fill_gregset, supply_fpregset): Clean up formatting.
11309
11310 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11311
11312 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11313 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11314
11315 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11316
11317 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11318 * gdbarch.c gdbarch.h: Regenerate.
11319 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11320 function.
11321 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11322 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11323 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11324
11325 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11326 * arm-tdep.c (arm_get_longjmp_target): New function.
11327 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11328 this to a positive value register arm_get_longjmp_target as the
11329 longjmp handler.
11330 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11331 (arm_linux_init_abi): Set up longjmp description in tdep.
11332 * armnbsd-nat.c (get_longjmp_target): Delete.
11333 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11334 description in tdep.
11335 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11336 (get_longjmp_target): Delete declaration.
11337 (GET_LONGJMP_TARGET): Delete.
11338 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11339 (GET_LONGJMP_TARGET): Delete.
11340
11341 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11342
11343 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11344 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11345 of ``current_gdbarch''.
11346
11347 2002-02-17 Tom Tromey <tromey@redhat.com>
11348
11349 * cli/cli-cmds.c (compare_strings): New function.
11350 (complete_command): Only print each unique item once.
11351 * completer.h (complete_line): Declare.
11352 * completer.c (complete_line): New function.
11353 (line_completion_function): Use it.
11354
11355 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11356
11357 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11358 * gdbarch.h, gdbarch.c: Re-generate.
11359
11360 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11361
11362 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11363
11364 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11365
11366 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11367 * valops.c (value_arg_coerce): Don't take the address of a reference
11368 to convert an argument to a reference.
11369
11370 2002-02-15 Christopher Faylor <cgf@redhat.com>
11371
11372 * win32-nat.c (get_image_name): New function.
11373 (handle_load_dll): Use get_image_name function.
11374 (get_child_debug_event): Avoid registering debug events until possibly
11375 execed process is started.
11376 (child_create_inferior): Allow invocation via shell so that command
11377 line redirection, etc. works ok.
11378 (_initialize_inftarg): Add new command: "set shell" to control whether
11379 a shell is used to start a process.
11380
11381 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11382
11383 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11384 instead of find_register_by_number.
11385 (cannot_store_register): Likewise.
11386
11387 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11388
11389 * dwarf2read.c: Replace fprintf (stderr, ...) by
11390 fprintf_unfiltered (gdb_stderr, ...).
11391
11392 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11393
11394 * gdbserver/gdbserver.1: Document --attach.
11395
11396 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11397
11398 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11399 descriptions.
11400 * arm-tdep.c (arm_default_arm_le_breakpoint)
11401 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11402 (arm_default_thumb_be_breakpoint): New. Initialize them from
11403 traditional breakpoint defines.
11404 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11405 (arm_gdbarch_init): Initialize new breakpoint variables.
11406 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11407 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11408 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11409 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11410 code out to ...
11411 (arm_netbsd_init_abi_common): ... here; new function.
11412 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11413 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11414 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11415 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11416
11417 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11418
11419 * arm-tdep.h (enum arm_abi): New enum.
11420 (struct gdbarch_tdep): New structure.
11421 (LOWEST_PC): Provide a default.
11422 (arm_gdbarch_register_os_abi): Declare new function.
11423 * arm-tdep.c (arm_abi_names): New array.
11424 (process_note_abi_tag_sections): New function.
11425 (get_elfosabi): New function.
11426 (arm_gdbarch_register_os_abi): New function.
11427 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11428 support for that ABI has been built in, then call the appropriate
11429 configuration routine. Use gdbarch_num_regs() to get the number
11430 of registers.
11431 (arm_dump_tdep): New function.
11432 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11433 place-holder functions.
11434 (_initialize_arm_tdep): Register them.
11435 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11436
11437 * armnbsd-tdep.c: New file.
11438 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11439 * config/arm/nbsd.mt (TDEPFILES): Add it.
11440 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11441
11442 * armnbsd-nat.c: Include regcache.h.
11443 * Makefile.in (armnbsd-nat.o): Update dependency list.
11444
11445 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11446
11447 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * gdbserver/Makefile.in: Fix typos in target rules.
11450
11451 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11452
11453 Fix part of PR gdb/267.
11454 * linespec.c (find_methods): Handle constructors specially for now.
11455
11456 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11457
11458 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11459 handling.
11460 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11461 standard_coerce_float_to_double().
11462
11463 2002-02-14 Christopher Faylor <cgf@redhat.com>
11464
11465 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11466 GDBINIT_FILENAME.
11467
11468 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11469
11470 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11471 find_variant_by_name, because it confuses the multiarch
11472 framework. Return NULL if there isn't an architecture with the
11473 user supplied name, instead of forcing a different one without
11474 recording the change with the multiarch machinery.
11475 (find_variant_by_name): Delete.
11476
11477 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11478
11479 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11480 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11481
11482 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11483
11484 * stack.c (print_frame_info_base): When calling
11485 print_frame_info_listing_hook, set current_source_symtab.
11486
11487 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11488
11489 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11490 and remove unused $(INCLUDE_DIR).
11491 Add regcache.c to OBS.
11492 Add generated register protocol files to clean target.
11493 Update dependencies for new objects, obsolete old target code.
11494
11495 * gdbserver/linux-low.c: Remove all platform-specific code to
11496 new files. Remove various dead code. Update to use regcache
11497 functionality.
11498 * gdbserver/remote-utils.c (fromhex): Add return statement
11499 to quiet warning.
11500 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11501 constant.
11502 (input_interrupt): Add integer parameter to match prototype
11503 of a signal handler.
11504 (outreg): Use register_data ().
11505 (prepare_resume_reply): Use gdbserver_expedite_regs.
11506 * gdbserver/server.c (main): Dynamically allocate own_buf because
11507 PBUFSIZ is no longer constant. Use registers_to_string () and
11508 registers_from_string ().
11509 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11510 for error (), fatal (), and warning (). Update definition of
11511 PBUFSIZ to use regcache functionality. Add include guard.
11512 * gdbserver/utils.c (fatal): Add missing ``const''.
11513 (warning): New function.
11514
11515 * regformats/regdat.sh: Include "regcache.h" in generated files.
11516 Provide init_registers () function.
11517 * regformats/regdef.h: Add prototype for set_register_cache ().
11518 Add include guard.
11519
11520 * gdbserver/linux-arm-low.c: New file.
11521 * gdbserver/linux-i386-low.c: New file.
11522 * gdbserver/linux-ia64-low.c: New file.
11523 * gdbserver/linux-m68k-low.c: New file.
11524 * gdbserver/linux-mips-low.c: New file.
11525 * gdbserver/linux-ppc-low.c: New file.
11526 * gdbserver/linux-sh-low.c: New file.
11527
11528 * gdbserver/regcache.c: New file.
11529 * gdbserver/regcache.h: New file.
11530
11531 * gdbserver/low-linux.c: Removed obsolete file.
11532
11533 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11534
11535 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11536 * config/i386/linux.mt: Likewise.
11537 * config/ia64/linux.mt: Likewise.
11538 * config/m68k/linux.mh: Likewise.
11539 * config/powerpc/linux.mh: Likewise.
11540 * config/mips/linux.mt: Likewise.
11541
11542 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11543
11544 * config/i386/i386lynx.mh: Mark gdbserver variables
11545 as (currently) obsolete for this target.
11546 * config/i386/nbsd.mt: Likewise.
11547 * config/i386/nbsdelf.mt: Likewise.
11548 * config/m32r/m32r.mt: Likewise.
11549 * config/m68k/m68klynx.mh: Likewise.
11550 * config/m68k/nbsd.mt: Likewise.
11551 * config/m68k/sun3os4.mh: Likewise.
11552 * config/mips/vr5000.mt: Likewise.
11553 * config/ns32k/nbsd.mt: Likewise.
11554 * config/pa/hppabsd.mh: Likewise.
11555 * config/pa/hppaosf.mh: Likewise.
11556 * config/powerpc/nbsd.mt: Likewise.
11557 * config/rs6000/rs6000lynx.mh: Likewise.
11558 * config/s390/s390.mt: Likewise.
11559 * config/s390/s390x.mt: Likewise.
11560 * config/sparc/sparclynx.mh: Likewise.
11561 * config/sparc/sun4os4.mh: Likewise.
11562 * config/i386/x86-64linux.mt: Likewise.
11563 * config/sparc/linux.mh: Likewise.
11564
11565 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11566
11567 * configure.tgt: Configure gdbserver only for known working
11568 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11569 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11570 SUBDIRS if it is configured. Update comment for ${nativefile}.
11571 * configure: Regenerated.
11572
11573 2002-02-13 Michael Snyder <msnyder@redhat.com>
11574
11575 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11576
11577 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11578 (default_gcore_mach): Just return 0, work around a problem in bfd.
11579 (default_gcore_target): OK to return NULL if exec_bfd is null.
11580 (make_mem_sec): Use a cast, avoid a warning.
11581
11582 * procfs.c (find_memory_regions_callback): Use a cast instead of
11583 calling host_pointer_to_address (which complains if
11584 sizeof (host pointer) != sizeof (target pointer)).
11585 (procfs_make_note_section): Avoid overflow in psargs string.
11586
11587 * procfs.c (procfs_make_note_section): Make the default
11588 implementation return an error.
11589
11590 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11591
11592 * procfs.c (procfs_make_note_section): Provide a default definition
11593 (for alpha-dec-osf4.0f). Fix typos.
11594
11595 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11596
11597 * linux-proc.c: Add include of regcache.h.
11598 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11599
11600 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11601
11602 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11603 * memattr.c (create_mem_region): Disallow useless empty region.
11604 Regions are half-open intervals, so allow [A..B) [B..C) as
11605 non-overlapping.
11606
11607 2002-02-13 Michael Chastain <mec@shout.net>
11608
11609 * defs.h: Kill CONST_PTR.
11610 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11611 * c-lang.c (c_builtin_types): Likewise.
11612 * ch-lang.c (ch_builtin_types): Likewise.
11613 * f-lang.c (f_builtin_types): Likewise.
11614 * language.c (unknown_builtin_types): Likewise.
11615 * m2-lang.c (m2_builtin_types): Likewise.
11616 * p-lang.c (pascal_builtin_types): Likewise.
11617 * scm-lang.c (c_builtin_types): Likewise.
11618
11619 2002-02-13 Keith Seitz <keiths@redhat.com>
11620
11621 * arm-tdep.h (arm_get_next_pc): Add declaration.
11622
11623 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11624
11625 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11626 with other related struct-returning functions.
11627 (arm_extract_struct_value_address): New function.
11628 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11629 initialize float_format, double_format and long_double_format as
11630 appropriate to the endianness of the target.
11631 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11632 (arm_use_struct_convention): Delete declaration.
11633 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11634
11635 2002-02-13 Keith Seitz <keiths@redhat.com>
11636
11637 * defs.h (core_addr_to_string_nz): New function.
11638
11639 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11640
11641 Apply missing bits of 2002-01-15 patch.
11642 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11643 (fill_fpregset): Use i387_fill_fsave.
11644
11645 2002-02-12 Keith Seitz <keiths@redhat.com>
11646
11647 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11648 (core_addr_to_string_nz): New function.
11649
11650 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11651
11652 * arm-linux-nat.c: Really include arm-tdep.h.
11653 * config/arm/tm-linux.h (struct type, struct value): Declare.
11654
11655 2002-02-11 Michael Snyder <msnyder@redhat.com>
11656
11657 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11658 (gcore section): Ifdef for Solaris and Unixware only.
11659 (procfs_do_thread_registers): Unixware needs one lwpstatus
11660 per thread (not one prstatus or pstatus).
11661 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11662 not over all gdb threads. For unixware, call elfcore_write_pstatus
11663 once before iterating over threads.
11664
11665 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11666
11667 * arm-tdep.h: New file.
11668 * arm-tdep.c: Include arm-tdep.h.
11669 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11670 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11671 (arm_print_float_info, arm_register_type, convert_to_extended)
11672 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11673 (arm_extract_return_value, arm_register_name): Make static.
11674 (arm_software_single_step): Similarly. Fix types in declaration.
11675 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11676 (arm_store_return_value, arm_store_struct_return): New functions.
11677 (arm_gdbarch_init): Register the above functions. Also register
11678 call_dummy_start_offset, sizeof_call_dummy_words,
11679 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11680 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11681 max_register_virtual_size, register_size. Set up
11682 prologue_cache.saved_regs here, rather than ...
11683 (_initialize_arm_tdep): ... here.
11684 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11685 declarations.
11686 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11687 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11688 (arm_print_float_info, arm_register_type, convert_to_extended)
11689 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11690 (arm_extract_return_value, arm_register_name): Delete declarations.
11691 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11692 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11693 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11694 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11695 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11696 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11697 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11698 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11699 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11700 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11701 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11702 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11703 interface.
11704 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11705 * remote-rdi.c remote-rdp.c: Likewise.
11706 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11707 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11708 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11709 definition.
11710
11711 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11712 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11713 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11714 from non-ARM_ prefixed definitions.
11715 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11716 all uses of above.
11717 * remote-rdi.c remote-rdp.c: Likewise.
11718 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11719
11720 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11721
11722 * arm-tdep.c (arm_frameless_function_invocation)
11723 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11724 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11725 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11726 (arm_pop_frame, arm_get_next_pc): Make static.
11727 (arm_gdbarch_init): Register above in gdbarch structure.
11728 (arm_read_fp): Renamed from arm_target_read_fp.
11729 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11730 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11731 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11732 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11733 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11734 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11735 (arm_pc_is_thumb_dummy): Delete declarations.
11736 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11737 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11738 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11739 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11740
11741 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11742
11743 * symtab.c (compare_search_syms): New function.
11744 (sort_search_symbols): New function.
11745 (search_symbols): Sort symbols after searching rather than
11746 before.
11747
11748 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11749
11750 * NEWS: Linux -> GNU/Linux.
11751
11752 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11753
11754 * gdbarch.sh: For for level one methods, disallow a definition
11755 when partially multi-arched. Add comments explaining rationale.
11756 * gdbarch.h: Re-generate.
11757
11758 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11759
11760 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11761 multi-arch partial.
11762
11763 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11764
11765 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11766 field. Use diff -u.
11767 * gdbarch.c: Re-generate.
11768
11769 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11770
11771 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11772 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11773 partial.
11774
11775 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11776
11777 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11778 multi-arch partial.
11779 (PUSH_ARGUMENTS): Switch to using predefault.
11780 * gdbarch.c: Regenerate.
11781
11782 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11783
11784 * valops.c (PUSH_ARGUMENTS): Delete definition.
11785 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11786 partial. Default to default_push_arguments.
11787 * gdbarch.h, gdbarch.c: Regenerate.
11788
11789 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11790
11791 * defs.h (throw_exception): Rename return_to_top_level. Update
11792 comments.
11793 * utils.c (error_stream, internal_verror, quit): Ditto.
11794 * top.c (throw_exception, catcher): Ditto.
11795 * sparclet-rom.c (sparclet_load): Ditto.
11796 * remote.c (interrupt_query, minitelnet): Ditto.
11797 * remote-sds.c (interrupt_query): Ditto.
11798 * remote-mips.c (mips_error, mips_kill): Ditto.
11799 * ocd.c (interrupt_query): Ditto.
11800 * monitor.c (monitor_interrupt_query): Ditto.
11801 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11802 * target.h: Update comment.
11803
11804 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11805
11806 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11807
11808 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11809 default_double_format.
11810 * gdbarch.h, gdbarch.c: Re-generate.
11811 * findvar.c (floatformat_unknown): Delete variable definition.
11812 * doublest.h (floatformat_unknown): Delete variable declaration.
11813
11814 2002-02-09 Jim Blandy <jimb@redhat.com>
11815
11816 * stabsread.c (read_type): Add code to parse Sun's syntax for
11817 prototyped function types.
11818
11819 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11820
11821 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11822 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11823
11824 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11825
11826 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11827 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11828 now _initialize_xcoffsolib gets called again and overrides the
11829 commands from solib.c in a native configuration.
11830
11831 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11832
11833 * doublest.c (store_typed_floating): Don't try to return a value.
11834 Fixes PR gdb/290.
11835
11836 2002-02-08 Jim Blandy <jimb@redhat.com>
11837
11838 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11839 is prototyped and has no arguments, print its argument list as
11840 `(void)'.
11841
11842 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11843
11844 * MAINTAINERS (write-after-approval): Add myself.
11845 (paper-trail): I've escaped!
11846
11847 2002-02-08 Christopher Faylor <cgf@redhat.com>
11848
11849 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11850 changes.
11851 (_initialize_check_for_gdb_ini): Ditto.
11852
11853 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11854
11855 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11856 xaprintf -> xasprintf.
11857
11858 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11859
11860 * win32-nat.c: Remove use of printf and sprintf functions.
11861
11862 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11863
11864 * arm-tdep.c (arm_frame_chain_valid): Make static.
11865 (arm_push_arguments): Likewise.
11866 (arm_gdbarch_init): New function.
11867 (_initialize_arm_tdep): Call it.
11868 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11869 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11870 (FRAME_CHAIN_VALID): Delete.
11871 (arm_frame_chain_valid): Delete declaration.
11872 (PUSH_ARGUMENTS): Delete.
11873 (arm_push_arguments): Delete declaration.
11874 (CALL_DUMMY_P): Delete.
11875
11876 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11877 Corinna Vinschen <vinschen@redhat.com>
11878
11879 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11880 on builtin float types.
11881
11882 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11883
11884 * utils.c: Include <curses.h> before "bfd.h".
11885 * tui/tui-hooks.c: Likewise.
11886 * tui/tui.c: Likewise.
11887 * tui/tuiCommand.c: Likewise.
11888 * tui/tuiData.c: Likewise.
11889 * tui/tuiDataWin.c: Likewise.
11890 * tui/tuiDisassem.c: Likewise.
11891 * tui/tuiGeneralWin.c: Likewise.
11892 * tui/tuiIO.c: Likewise.
11893 * tui/tuiLayout.c: Likewise.
11894 * tui/tuiRegs.c: Likewise.
11895 * tui/tuiSource.c: Likewise.
11896 * tui/tuiSourceWin.c: Likewise.
11897 * tui/tuiStack.c: Likewise.
11898 * tui/tuiWin.c: Likewise.
11899
11900 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11901
11902 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11903 to include space for pseudoregs as well. Update loops accordingly.
11904 (sh_fp_frame_init_saved_regs): Ditto.
11905 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11906
11907 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11908
11909 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11910 Add Richard Earnshaw to Arm maintainers.
11911
11912 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11913
11914 * defs.h (warning_begin): Delete declaration.
11915
11916 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11917 Delete macro.
11918
11919 2002-02-07 Michael Snyder <msnyder@redhat.com>
11920
11921 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11922 Logic bug, remove misplaced else.
11923
11924 2002-02-07 Klee Dienes <klee@apple.com>
11925
11926 * fork-inferior.c (fork_inferior): Add '!' to the list of
11927 characters that need to be quoted when building a string for the
11928 shell. Quote '!' specifically with a backslash, since CSH chokes
11929 when trying to evaluate "str!str".
11930
11931 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11932
11933 * rdi-share/host.h: Only provide a typedef for bool if it is not
11934 defined.
11935
11936 2002-02-04 Michael Snyder <msnyder@redhat.com>
11937
11938 * breakpoint.h (enum bptype): Add new overlay event bp type.
11939 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11940
11941 * breakpoint.c (create_internal_breakpoint): New function.
11942 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11943 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11944 (create_thread_event_breakpoint): Ditto.
11945 (create_solib_event_breakpoint): Ditto.
11946 (create_overlay_event_breakpoint): New function.
11947 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11948 (update_breakpoints_after_exec): Delete and re-initialize
11949 overlay event breakpoints after an exec. Add FIXME comment
11950 about longjmp breakpoint.
11951 (print_it_typical): Ignore overlay event breakpoints.
11952 (print_one_breakpoint): Ditto.
11953 (mention): Ditto.
11954 (bpstat_what): Do not stop for overlay event breakpoints.
11955 (delete_breakpoint): Don't delete overlay event breakpoints.
11956 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11957 (breakpoint_re_set): Re-create overlay event breakpoint.
11958
11959 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11960 (overlay_manual_command): Disable overlay breakpoints.
11961 (overlay_off_command): Disable overlay breakpoints.
11962
11963 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11964
11965 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11966 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11967 to here from config/tm-arm.h.
11968 (coff_sym_is_thumb): Make static.
11969 (arm_elf_make_msymbol_special): New function.
11970 (arm_coff_make_msymbol_special): New function.
11971 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11972 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11973 (coff_sym_is_thumb): Delete declaration.
11974 (arm_elf_make_msymbol_special): Declare.
11975 (arm_coff_make_msymbol_special): Declare.
11976 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11977 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11978
11979 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11980
11981 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11982
11983 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11984
11985 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11986 * gdbarch.c gdbarch.h: Regenerate.
11987 * arch-utils.c (default_print_float_info): New function.
11988 * arch-utils.h (default_print_float_info): Prototype it.
11989 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11990 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11991 (PRINT_FLOAT_INFO): Document it.
11992
11993 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11994 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11995 (PRINT_FLOAT_INFO): Define.
11996
11997 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11998
11999 * win32-nat.c (_initialize_check_for_gdb_ini):
12000 Add typecast to sprintf argument to suppress a warning.
12001
12002 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12003
12004 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12005 to allow easier handling of pass state.
12006 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12007 that gives exception name and address.
12008 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12009 and set last_sig value to ourstatus->value.sig. Some missing
12010 exceptions added.
12011 (child_continue): Correctly report continue_status.
12012 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12013 TARGET_SIGNAL_0 (new default value).
12014 (child_resume): consider sig argument passed to decide if
12015 the exception should be passed to debuggee or not.
12016
12017 2002-02-05 Michael Snyder <msnyder@redhat.com>
12018
12019 * regcache.c (fetch_register): Call target_fetch_register
12020 only if we don't call FETCH_PSEUDO_REGISTER.
12021 (store_register): Call target_store_register only if we
12022 don't call STORE_PSEUDO_REGISTER.
12023
12024 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12025
12026 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12027 ELF_MAKE_MSYMBOL_SPECIAL.
12028 * gdbarch.c, gdbarch.h: Regenerate.
12029 * arch-utils.c (default_make_msymbol_special): New function.
12030 * arch-utils.h (default_make_msymbol_special): Export.
12031 * elfread.c (elf_symtab_read): Compile use of
12032 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12033 multiarched.
12034 * coffread.c (coff_symtab_read): Ditto, for
12035 COFF_MAKE_MSYMBOL_SPECIAL.
12036
12037 2002-02-05 Jim Blandy <jimb@redhat.com>
12038
12039 * solib-svr4.c (svr4_truncate_ptr): New function.
12040 (svr4_relocate_section_addresses): Do the address arithmetic with
12041 the appropriate truncation for target addresses, even when
12042 CORE_ADDR is larger than a target address.
12043
12044 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12045
12046 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12047 to (int *).
12048
12049 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12050
12051 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12052 code.
12053
12054 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12055
12056 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12057
12058 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12059
12060 * gdbserver/linux-low.c: Remove unused include files.
12061
12062 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12063
12064 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12065 (read_inferior_memory): Use it.
12066 (write_inferior_memory): Likewise.
12067
12068 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12069
12070 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12071 grubbing through sys_errlist.
12072
12073 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12074
12075 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12076
12077 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12078 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12079
12080 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12081
12082 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12083 (do_sfunc, set_cmd_sfunc): New functions.
12084
12085 * command.h (struct cmd_list_element): Add field func.
12086 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12087 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12088 * cli/cli-decode.h: Ditto.
12089
12090 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12091 (help_all, help_cmd_list): Ditto.
12092 (find_cmd, complete_on_cmdlist): Ditto.
12093 * top.c (execute_command): Ditto.
12094
12095 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12096 function.sfunc.
12097
12098 * infcmd.c (notice_args_read): Fix function signature.
12099
12100 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12101 * cli/cli-decode.c (add_set_cmd): Ditto.
12102 * utils.c (initialize_utils): Ditto.
12103 * maint.c (_initialize_maint_cmds): Ditto.
12104 * infrun.c (_initialize_infrun): Ditto.
12105 * demangle.c (_initialize_demangler): Ditto.
12106 * remote.c (add_packet_config_cmd): Ditto.
12107 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12108 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12109 * proc-api.c (_initialize_proc_api): Ditto.
12110 * kod.c (_initialize_kod): Ditto.
12111 * valprint.c (_initialize_valprint): Ditto.
12112 * top.c (init_main): Ditto.
12113 * infcmd.c (_initialize_infcmd): Ditto.
12114 * corefile.c (_initialize_core): Ditto.
12115 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12116 * arch-utils.c (initialize_current_architecture): Ditto.
12117 (_initialize_gdbarch_utils): Ditto.
12118 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12119
12120 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12121 * wince.c (_initialize_inftarg): Ditto.
12122 * symfile.c (_initialize_symfile): Ditto.
12123 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12124 * language.c (_initialize_language): Ditto.
12125 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12126
12127 2002-02-04 Michael Snyder <msnyder@redhat.com>
12128
12129 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12130
12131 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12132
12133 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12134 Add rules for building the register data files.
12135
12136 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12137
12138 * regformats/regdat.sh: Add braces to the definition of
12139 expedite_regs_${arch}.
12140
12141 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12142
12143 * regformats/regdef.h (struct reg): Add comment describing the
12144 requirements for offset and size fields.
12145
12146 2002-02-04 Andreas Schwab <schwab@suse.de>
12147
12148 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12149 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12150
12151 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12152
12153 * gdbarch.sh (copyright): Update years in generated header.
12154 (SMASH_TEXT_ADDRESS): Add rule.
12155 * gdbarch.h, gdbarch.c: Re-generate.
12156 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12157 * dbxread.c: Likewise.
12158 * dwarfread.c: Likewise.
12159 * elfread.c: Likewise.
12160 * somread.c: Likewise.
12161
12162 * arm-tdep.c (arm_smash_text_address): New function.
12163 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12164
12165 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12166
12167 Add support for hardware watchpoints on win32 native.
12168 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12169 CONTEXT_DEBUG_REGISTERS.
12170 (dr variable): New variable. Static array containing a local copy
12171 of debug registers.
12172 (debug_registers_changed): New variable. Reflects when debug registers
12173 are changed and need to be written to inferior.
12174 (debug_registers_used): New variable. Reflects when any debug register
12175 was set, used when new threads are created.
12176 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12177 i386-nat code.
12178 (thread_rec): Set dr array if id is the thread of current_event .
12179 (child_continue, child_resume): Change the debug registers for all
12180 threads if debug_registers_changed.
12181 (child_add_thread): Change the debug registers if debug_registers_used.
12182 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12183 Link nm.h to new nm-cygwin.h file.
12184 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12185 of hardware registers.
12186
12187 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12188
12189 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12190 Restore behavour broken by 2002-01-20 Andrew Cagney
12191 <ac131313@redhat.com> IEEE_FLOAT removal.
12192
12193 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12194
12195 * c-valprint.c (c_val_print): Pass a proper valaddr to
12196 cp_print_class_method.
12197 * valops.c (search_struct_method): If there is only one method
12198 and args is NULL, return that method.
12199
12200 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12201
12202 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12203 accessing tag_name directly.
12204
12205 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12206
12207 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12208 of accessing tag_name directly.
12209
12210 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12211
12212 PR gdb/280
12213 * gdbtypes.c (replace_type): New function.
12214 * gdbtypes.h (replace_type): Add prototype.
12215 * stabsread.c (read_type): Use replace_type.
12216
12217 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12218
12219 * Makefile.in (memattr.o): Add missing dependencies rule.
12220
12221 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12222
12223 * breakpoint.c (break_at_finish_command): Really export.
12224 (break_at_finish_at_depth_command): Ditto.
12225 (tbreak_at_finish_command): Ditto.
12226 * hppa-tdep.c: Include completer.h.
12227 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12228 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12229
12230 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12231
12232 * utils.c (do_write): New function.
12233 (error_stream): Rewrite combining the code from error_begin and
12234 verror.
12235 (verror): Rewrite using error_stream.
12236 (error_begin): Delete function.
12237
12238 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12239
12240 * utils.c (error_begin): Make static.
12241 * defs.h (error_begin): Delete declaration.
12242
12243 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12244 (decode_line_1): Use cplusplus_error instead of error_begin,
12245 cplusplus_hint and return_to_top_level.
12246 * coffread.c (coff_symfile_read): Use error instead of error_begin
12247 and return_to_top_level.
12248 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12249
12250 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12251
12252 * language.h (type_error, range_error): Make string parameter
12253 constant.
12254 * language.c (warning_pre_print): Delete extern declaration.
12255 * dwarfread.c (warning_pre_print): Ditto.
12256 * language.c (type_error, range_error): Rewrite to use verror and
12257 vwarning instead of warning_begin.
12258
12259 2002-02-01 Michael Snyder <msnyder@redhat.com>
12260
12261 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12262 (set_ignore_count): Move misplaced comment back where it belongs.
12263
12264 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12265
12266 * command.h (NO_FUNCTION): Delete macro.
12267 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12268 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12269 * tracepoint.c (_initialize_tracepoint): Ditto.
12270 * cli/cli-decode.c (add_set_cmd): Ditto.
12271 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12272
12273 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12274
12275 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12276 Update ``this'' pointer when calling virtual functions.
12277
12278 2002-02-01 Michael Snyder <msnyder@redhat.com>
12279
12280 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12281 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12282
12283 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12284
12285 * regformats/reg-arm.dat: New file.
12286 * regformats/reg-i386.dat: New file.
12287 * regformats/reg-ia64.dat: New file.
12288 * regformats/reg-m68k.dat: New file.
12289 * regformats/reg-mips.dat: New file.
12290 * regformats/reg-ppc.dat: New file.
12291 * regformats/reg-sh.dat: New file.
12292 * regformats/regdef.h: New file.
12293 * regformats/regdat.sh: New file.
12294
12295 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12296
12297 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12298 (arm_frame_args_address, arm_frame_locals_address): New functions.
12299 (arm_frame_num_args): New function.
12300 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12301 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12302 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12303
12304 2002-01-31 Michael Snyder <msnyder@redhat.com>
12305
12306 * breakpoint.c (break_at_finish_command): Export.
12307 (break_at_finish_at_depth_command): Export.
12308 (tbreak_at_finish_command): Export.
12309 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12310 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12311 "txbreak" commands, which are HPPA specific.
12312
12313 * printcmd.c (disassemble_command): Remove an ancient
12314 artifact of an old merge.
12315
12316 * symfile.h (enum overlay_debugging_state):
12317 Define enum constant values for overlay mode.
12318 * symfile.c (overlay_debugging): Use enums instead of literals.
12319 (overlay_is_mapped, overlay_auto_command,
12320 overlay_manual_command): Ditto.
12321
12322 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12323 breakpoint_here_p, breakpoint_inserted_here_p,
12324 breakpoint_thread_match, bpstat_stop_status,
12325 describe_other_breakpoints, check_duplicates, clear_command):
12326 Coding standard fixes.
12327
12328 * target.c (target_xfer_memory): Add spaces, coding standard.
12329 (do_xfer_memory): Add missing line to trust-readonly
12330 code: check bfd SEC_READONLY flag for section.
12331
12332 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12333
12334 * PROBLEMS: Fix typo, 5.1->5.1.1.
12335
12336 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12337
12338 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12339 data symbols, since we search based on textlow and texthigh.
12340 (find_pc_sect_symtab): Likewise.
12341
12342 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12343
12344 * defs.h (vwarning): Declare.
12345 * utils.c (vwarning): New function.
12346 (warning): Call vwarning.
12347 (warning_begin): Delete function.
12348
12349 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12350 the warning message.
12351 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12352 warning_begin.
12353
12354 2002-01-30 Michael Snyder <msnyder@redhat.com>
12355
12356 * NEWS: Mention "set trust-readonly-sections" command.
12357 Mention generate-core-file command.
12358
12359 2002-01-15 Michael Snyder <msnyder@redhat.com>
12360
12361 * target.c: New command, "set trust-readonly-sections on".
12362 (do_xfer_memory): Honor the suggestion to trust readonly sections
12363 by reading them from the object file instead of from the target.
12364 (initialize_targets): Register command "set trust-readonly-sections".
12365
12366 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12367
12368 * parse.c (target_map_name_to_register): Simplify, search regs and
12369 pseudo-regs using a single loop.
12370
12371 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12372
12373 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12374
12375 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12376
12377 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12378 * config/i386/i386v42mp.mh: Add i387-nat.o .
12379 * i386v4-nat.c: Include i387-nat.h.
12380 (supply_fpregset): Use i387_supply_fsave.
12381 (fill_fpregset): Use i387_fill_fsave.
12382
12383 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12384
12385 * arm-tdep.c (arm_call_dummy_words): Define.
12386 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12387 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12388 (CALL_DUMMY_WORDS): Define.
12389 (arm_call_dummy_words): Declare.
12390 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12391 (arm_linux_call_dummy_words): Declare.
12392
12393 2002-01-30 Andreas Schwab <schwab@suse.de>
12394
12395 * m68klinux-nat.c: Fix last change to use regcache_collect
12396 instead of referencing registers[] directly.
12397
12398 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12399
12400 * parse.c (target_map_name_to_register): Delete code wrapped in
12401 #ifdef REGISTER_NAME_ALIAS_HOOK.
12402
12403 2002-01-28 Michael Snyder <msnyder@redhat.com>
12404
12405 * regcache.c (legacy_read_register_gen): Need to be able to
12406 read pseudo-register as well as real register.
12407 (legacy_write_register_gen): Ditto.
12408
12409 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12410
12411 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12412 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12413 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12414 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12415 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12416 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12417 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12418 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12419 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12420 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12421 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12422 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12423 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12424 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12425 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12426 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12427 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12428 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12429 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12430 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12431
12432 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12433
12434 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12435 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12436 (initialize_current_architecture): Update target_byte_order using
12437 information from BFD.
12438 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12439 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12440
12441 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12442
12443 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12444 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12445
12446 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12447 #ifdef INVALID_FLOAT.
12448 * infcmd.c (do_registers_info): Ditto.
12449 * values.c (unpack_double): Ditto. Add comment.
12450
12451 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12452 already commented out.
12453
12454 2002-01-26 Andreas Schwab <schwab@suse.de>
12455
12456 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12457 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12458 registers and add support for PTRACE_GETREGS.
12459
12460 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12461
12462 GDB 5.1.1 released from 5.1 branch.
12463 * NEWS: Add 5.1.1 news.
12464 * README: Sync with 5.1 branch.
12465
12466 2002-01-23 Fred Fish <fnf@redhat.com>
12467
12468 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12469 stabstring on initial malloc. Reallocing will copy it for us,
12470 if necessary.
12471
12472 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12473
12474 * Makefile.in (hpread_h): Delete.
12475 (HFILES_NO_SRCDIR): Remove hpread.h.
12476 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12477 (hpread.o): Update dependencies.
12478 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12479
12480 * hp-psymtab-read.c: Remove file.
12481 * hp-symtab-read.c: Remove file.
12482 * hpread.h: Remove file.
12483
12484 * hpread.c: Merge all contents of hp-psymtab-read.c,
12485 hp-symtab-read.c and hpread.h into this file, as it was prior to
12486 January 1999.
12487
12488 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12489 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12490 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12491 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12492
12493 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12494
12495 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12496 fill_gregset): Call gdbarch_tdep() just once, assign result to
12497 variable and use that, instead of calling the function several
12498 times.
12499
12500 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12501
12502 * configure.host: Accept sparcv9 as alias for sparc64.
12503 * configure.tgt: Likewise.
12504
12505 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12506
12507 * solib-aix5.c (build_so_list_from_mapfile)
12508 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12509 arguments is not reversed.
12510 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12511 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12512
12513 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12514
12515 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12516 modified version of obsolete sh_fetch_pseudo_register.
12517 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12518 (sh4_register_read): New function.
12519 (sh_pseudo_register_write): New function. Renamed and modified
12520 version of obsolete sh_store_pseudo_register.
12521 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12522 (sh4_register_write): New function.
12523 (sh_gdbarch_init): Remove setting of gdbarch function
12524 fetch_pseudo_register and store_pseudo_register. Remove setting of
12525 register_convert_to_raw, register_convert_to_virtual,
12526 register_convertible.
12527 (sh_sh4_register_convertible): Delete. No longer needed. All is
12528 taken care by architecture specific functions
12529 register_read/register_write.
12530 (sh_sh4_register_convert_to_virtual): Make static.
12531 (sh_sh4_register_convert_to_raw): Ditto.
12532
12533 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12534
12535 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12536 (floatformat_is_nan, floatformat_mantissa): Ditto.
12537
12538 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12539 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12540 builtin_type_ieee_double_little,
12541 builtin_type_ieee_double_littlebyte_bigword,
12542 builtin_type_m68881_ext, builtin_type_i960_ext,
12543 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12544 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12545 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12546 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12547
12548 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12549
12550 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12551 parameter. Set frameless flag if it exists and depended of
12552 whether the scanned function is frameless or not.
12553 (xstormy16_skip_prologue): If function is frameless, return
12554 result of xstormy16_scan_prologue().
12555 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12556 call.
12557
12558 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12559
12560 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12561 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12562 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12563 sh_sh4_register_byte, sh_sh4_register_raw_size,
12564 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12565 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12566 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12567 sh_store_pseudo_register, sh_do_pseudo_register): Call
12568 gdbarch_tdep() just once, assign result to variable and use that,
12569 instead of calling the function several times.
12570
12571 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12572
12573 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12574 macros instead of LAST_FPU_CTRL_REGNUM.
12575 (store_register): Likewise.
12576
12577 2002-01-21 Jim Blandy <jimb@redhat.com>
12578
12579 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12580 is up-to-date before running the program, not just when a program
12581 exits.
12582
12583 2002-01-21 Fred Fish <fnf@redhat.com>
12584
12585 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12586 when we have found all instructions we are looking for.
12587
12588 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12589
12590 * arm-tdep.c (arm_register_name): New function.
12591 (arm_registers_names): Make static.
12592 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12593 (arm_register_name): Declare.
12594 (REGISTER_NAME): Use it.
12595
12596 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12597 Kevin Buettner <kevinb@redhat.com>
12598
12599 Convert arm targets to new FRAME interface.
12600 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12601 (arm_frame_find_save_regs): Delete.
12602 (arm_frame_init_saved_regs): New.
12603 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12604 Allocate extra_info as required. Convert all uses of fsr.regs
12605 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12606 to use extra_info.
12607 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12608 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12609 (check_prologue_cache, save_prologue_cache): Likewise.
12610 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12611 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12612 (FRAME_FIND_SAVED_REGS): Delete.
12613 (arm_frame_find_saved_regs): Delete prototype.
12614 (arm_frame_init_saved_regs): New prototype.
12615 (FRAME_INIT_SAVED_REGS): Define.
12616
12617 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12618
12619 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12620
12621 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12622
12623 From Jeff Law <law@redhat.com>:
12624 * infttrace.c: Include <sys/pstat.h>.
12625 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12626 exec file if the ttrace equivalent fails.
12627
12628 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12629
12630 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12631 (closeLogFile): Ditto.
12632
12633 2002-01-20 Michael Chastain <mec@shout.net>
12634
12635 * top.c (print_gdb_version): Bump copyright year to 2002.
12636
12637 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12638
12639 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12640 Zannoni and Eli Zaretskii.
12641
12642 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12643
12644 * buildsym.c: Update copyright years.
12645 * c-typeprint.c: Likewise.
12646 * dwarf2read.c: Likewise.
12647 * f-typeprint.c: Likewise.
12648 * gdbtypes.c: Likewise.
12649 * gdbtypes.h: Likewise.
12650 * hp-symtab-read.c: Likewise.
12651 * hpread.c: Likewise.
12652 * mdebugread.c: Likewise.
12653 * p-typeprint.c: Likewise.
12654
12655 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12656
12657 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12658 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12659 byte-order selectable.
12660 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12661 * arch-utils.c: Ditto.
12662 (set_endian): Ditto.
12663 (set_endian_from_file): Ditto.
12664 * gdbserver/low-sim.c (create_inferior): Ditto.
12665 * gdbarch.sh: Ditto.
12666 * gdbarch.h: Re-generate.
12667 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12668 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12669 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12670 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12671 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12672 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12673 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12674 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12675 macro definition.
12676 * config/mips/tm-wince.h: Remove #undef of macro
12677 TARGET_BYTE_ORDER_SELECTABLE.
12678 * config/sh/tm-wince.h: Ditto.
12679
12680 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12681
12682 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12683 member function fields. Add accessor macro
12684 TYPE_FN_FIELD_ARTIFICIAL.
12685 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12686 * c-typeprint.c (c_type_print_base): Skip artificial member
12687 functions.
12688
12689 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12690
12691 * f-typeprint.c: Delete unused function f_type_print_args.
12692 * p-typeprint.c: Delete unused function pascal_type_print_args.
12693
12694 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12695
12696 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12697 comment. Add ``artificial'' to ``union field_location''.
12698
12699 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12700
12701 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12702 * mdebugread.c (parse_symbol): Likewise.
12703 * stabsread.c (define_symbol): Likewise.
12704 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12705 initializing TYPE_FIELD_BITPOS to n (obsolete).
12706 (hpread_doc_function_type): Likewise.
12707 * hpread.c (hpread_function_type): Likewise.
12708
12709 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12710
12711 * configure.in (host_makefile_frag): Only require a host makefile
12712 fragment when a native build.
12713 * configure: Re-generate.
12714
12715 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12716
12717 * doublest.h (floatformat_from_type): Declare.
12718 * doublest.c (floatformat_from_type): New function.
12719 (convert_typed_floating): Use.
12720
12721 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12722 call to function floatformat_from_type.
12723
12724 * gdbarch.sh (IEEE_FLOAT): Delete.
12725 * gdbarch.h, gdbarch.c: Re-generate.
12726 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12727 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12728 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12729 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12730 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12731 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12732 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12733 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12734 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12735 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12736 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12737 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12738
12739 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12740 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12741 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12742 * sh-tdep.c (sh_gdbarch_init): Ditto.
12743 * mips-tdep.c (mips_gdbarch_init): Ditto.
12744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12745 * cris-tdep.c (cris_gdbarch_init): Ditto.
12746
12747 2002-01-20 Jiri Smid <smid@suse.cz>
12748
12749 * configure.host, configure.tgt: Support x86-64.
12750 * NEWS: Note new target x86-64.
12751
12752 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12753 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12754 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12755 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12756 x86-64-linux-nat.o): Fix dependencies.
12757
12758 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12759
12760 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12761 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12762 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12763 * config/sparc/xm-sun4os4.h: Delete file.
12764 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12765
12766 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12767
12768 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12769 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12770 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12771 * config/i386/i386lynx.mh (XM_FILE): Delete.
12772 * config/rs6000/xm-rs6000ly.h: Delete file.
12773 * config/sparc/xm-sparclynx.h: Delete file.
12774 * config/m68k/xm-m68klynx.h: Delete file.
12775 * config/i386/xm-i386lynx.h: Delete file.
12776 * config/xm-lynx.h: Delete file.
12777 * config/djgpp/fnchange.lst: Update.
12778
12779 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12780
12781 * alpha-tdep.c (alpha_register_byte): New function.
12782 (alpha_register_raw_size): Ditto.
12783 (alpha_register_virtual_size): Ditto.
12784 (alpha_skip_prologue_internal): Renamed from
12785 alpha_skip_prologue.
12786 (alpha_skip_prologue): New version that calls
12787 alpha_skip_prologue_internal.
12788 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12789 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12790 second argument from alpha_skip_prologue.
12791 (REGISTER_BYTE): Use alpha_register_byte.
12792 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12793 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12794 (FRAMELESS_FUNCTION_INVOCATION): Use
12795 generic_frameless_function_invocation_not.
12796 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12797 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12798
12799 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12800
12801 * config/mips/xm-news-mips.h: Delete file.
12802 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12803
12804 * config/m88k/xm-m88k.h: Delete file.
12805 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12806 * config/m88k/xm-delta88v4.h: Ditto.
12807 * config/m88k/xm-delta88.h: Ditto.
12808
12809 * config/alpha/xm-fbsd.h: Delete file.
12810 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12811
12812 * config/sparc/xm-sparc.h: Delete file.
12813 * Makefile.in (xm-sun4os4.h): Delete dependency.
12814 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12815 * config/sparc/xm-sun4os4.h: Ditto.
12816 * config/sparc/xm-linux.h: Ditto.
12817
12818 * config/i386/xm-windows.h: Delete file.
12819
12820 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12821
12822 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12823 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12824
12825 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12826
12827 * alpha-tdep.c (alpha_call_dummy_words): New.
12828 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12829 (CALL_DUMMY_P): Define.
12830 (CALL_DUMMY_WORDS): Define.
12831 (SIZEOF_CALL_DUMMY_WORDS): Define.
12832
12833 2002-01-19 Per Bothner <per@bothner.com>
12834
12835 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12836 isn't NULL, which can happen with some gcj-3.x-produced code.
12837
12838 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12839
12840 * alpha-tdep.c (alpha_register_virtual_type): New function.
12841 (alpha_init_frame_pc_first): Ditto.
12842 (alpha_fix_call_dummy): Ditto.
12843 (alpha_store_struct_return): Ditto.
12844 (alpha_extract_struct_value_address): Ditto.
12845 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12846 alpha_register_virtual_type.
12847 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12848 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12849 alpha_extract_struct_value_address.
12850 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12851 (INIT_FRAME_PC): Use init_frame_pc_noop.
12852 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12853
12854 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12855
12856 * i386gnu-nat.c: Include "i386-tdep.h".
12857 (fetch_fpregs): Simplify code dealing with uninitialized floating
12858 point states such that it doesn't require FP7_REGNUM.
12859
12860 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12861
12862 * alpha-tdep.c (frame_extra_info): New.
12863 (alpha_find_saved_regs): Make static. Use
12864 frame->extra_info.
12865 (alpha_frame_init_saved_regs): New function.
12866 (alpha_frame_saved_pc): Use frame->extra_info.
12867 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12868 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12869 (init_extra_frame_info): Rename to...
12870 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12871 (alpha_print_extra_frame_info): New function.
12872 (alpha_frame_locals_address): Ditto.
12873 (alpha_frame_args_address): Ditto.
12874 (alpha_pop_frame): Use frame->extra_info.
12875 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12876 alpha_frame_args_address.
12877 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12878 (alpha_find_saved_regs): Remove prototype.
12879 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12880 (EXTRA_FRAME_INFO): Remove.
12881 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12882 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12883
12884 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12885
12886 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12887 (alpha_cannot_fetch_register): Ditto.
12888 (alpha_cannot_store_register): Ditto.
12889 (alpha_register_convertible): Ditto.
12890 (alpha_use_struct_convention): Ditto.
12891 * config/alpha/tm-alpha.h: Update copyright years.
12892 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12893 (INNER_THAN): Use core_addr_lessthan.
12894 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12895 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12896 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12897 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12898 (FRAME_CHAIN): Remove unnecessary cast.
12899
12900 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12901
12902 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12903 obsolete.
12904
12905 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12906
12907 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12908 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12909 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12910 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12911 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12912 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12913 * x86-64-linux-nat.c: Ditto.
12914
12915 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12916
12917 * alpha-tdep.c (alpha_register_name): New function.
12918 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12919 (REGISTER_NAME): Define.
12920
12921 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12922
12923 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12924
12925 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12926
12927 * alpha-tdep.c: Update copyright years.
12928 (alpha_next_pc): New function.
12929 (alpha_software_single_step): Ditto.
12930 * config/alpha/tm-alpha.h: Add prototype for
12931 alpha_software_single_step.
12932
12933 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12934
12935 * alphabsd-nat.c: Update copyright years.
12936 (fill_gregset): Use regcache_collect.
12937 (fill_fpregset): Likewise.
12938 (fetch_inferior_registers): Only fetch integer registers
12939 if requested to do so.
12940 (store_inferior_registers): Only store integer registers
12941 if requested to do so.
12942
12943 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12944
12945 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12946 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12947 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12948 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12949 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12950 * config/arm/linux.mh (XDEPFILES): Delete.
12951 * config/arm/nbsd.mh (XDEPFILES): Delete.
12952 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12953 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12954 * config/i386/i386m3.mh (XDEPFILES): Delete.
12955 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12956 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12957 * config/i386/fbsd.mh (XDEPFILES): Delete.
12958 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12959 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12960 * config/i386/i386v4.mh (XDEPFILES): Delete.
12961 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12962 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12963 * config/i386/i386aix.mh (XDEPFILES): Delete.
12964 * config/i386/go32.mh (XDEPFILES): Delete.
12965 * config/i386/cygwin.mh (XDEPFILES): Delete.
12966 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12967 * config/i386/i386mach.mh (XDEPFILES): Delete.
12968 * config/i386/i386v32.mh (XDEPFILES): Delete.
12969 * config/i386/linux.mh (XDEPFILES): Delete.
12970 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12971 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12972 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12973 * config/i386/i386sco.mh (XDEPFILES): Delete.
12974 * config/i386/i386v.mh (XDEPFILES): Delete.
12975 * config/i386/nbsd.mh (XDEPFILES): Delete.
12976 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12977 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12978 * config/i386/symmetry.mh (XDEPFILES): Delete.
12979 * config/i386/obsd.mh (XDEPFILES): Delete.
12980 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12981 * config/ia64/linux.mh (XDEPFILES): Delete.
12982 * config/ia64/aix.mh (XDEPFILES): Delete.
12983 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12984 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12985 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12986 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12987 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12988 * config/m68k/linux.mh (XDEPFILES): Delete.
12989 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12990 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12991 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12992 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12993 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12994 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12995 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12996 * config/m88k/delta88.mh (XDEPFILES): Delete.
12997 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12998 * config/m88k/m88k.mh (XDEPFILES): Delete.
12999 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13000 * config/mips/linux.mh (XDEPFILES): Delete.
13001 * config/mips/irix6.mh (XDEPFILES): Delete.
13002 * config/mips/irix5.mh (XDEPFILES): Delete.
13003 * config/mips/irix4.mh (XDEPFILES): Delete.
13004 * config/mips/irix3.mh (XDEPFILES): Delete.
13005 * config/mips/decstation.mh (XDEPFILES): Delete.
13006 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13007 (NATDEPFILES): Move core-aout.o to here.
13008 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13009 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13010 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13011 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13012 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13013 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13014 * config/pa/hpux11.mh (XDEPFILES): Delete.
13015 * config/powerpc/aix.mh (XDEPFILES): Delete.
13016 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13017 * config/powerpc/linux.mh (XDEPFILES): Delete.
13018 * config/romp/rtbsd.mh: Rename XDEPFILES.
13019 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13020 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13021 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13022 * config/s390/s390.mh (XDEPFILES): Delete.
13023 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13024 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13025 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13026 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13027 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13028 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13029 * config/sparc/linux.mh (XDEPFILES): Delete.
13030 * config/vax/vaxult.mh (XDEPFILES): Delete.
13031 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13032 * Makefile.in (DEPFILES): Remove XDEPFILES.
13033
13034 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13035
13036 * utils.c (internal_verror): Fix comments, default is yes not no.
13037 Update queries to match. Default to quit and dump core.
13038
13039 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13040
13041 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13042 copyright.
13043 * defs.h, event-top.c, gdbcmd.h: Ditto.
13044 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13045 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13046 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13047 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13048 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13049 * mi/mi-main.c:Ditto.
13050
13051 * stack.c, symfile.c: Update copyright.
13052
13053 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13054
13055 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13056 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13057 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13058 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13059
13060 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13061
13062 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13063 * gdbserver/low-lynx.c (myattach): Likewise.
13064 * gdbserver/low-nbsd.c (myattach): Likewise.
13065 * gdbserver/low-sim.c (myattach): Likewise.
13066 * gdbserver/low-sparc.c (myattach): Likewise.
13067 * gdbserver/low-sun3.c (myattach): Likewise.
13068
13069 * gdbserver/low-linux.c (myattach): New function.
13070
13071 * gdbserver/server.c (attach_inferior): New function.
13072 (main): Handle "--attach".
13073
13074 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13075
13076 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13077 maintainer.
13078
13079 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13080
13081 * c-typeprint.c (is_type_conversion_operator): Add additional
13082 check for non-conversion operators.
13083
13084 2002-01-15 Michael Snyder <msnyder@redhat.com>
13085
13086 * linux-proc.c: Add "info proc" command, a la procfs.c.
13087 (read_mapping): New function, abstract and re-use code.
13088 (linux_find_memory_regions): Use new func read_mapping.
13089 (linux_info_proc_cmd): New function, implement "info proc".
13090 (_initialize_linux_proc): Add new command "info proc".
13091
13092 2002-01-15 Michael Snyder <msnyder@redhat.com>
13093
13094 * symfile.c (generic_load): Use bfd_map_over_sections method
13095 instead of manipulating bfd structure members directly.
13096 (add_section_size_callback): New function, bfd sections callback
13097 used by generic_load.
13098 (load_sections_callback): New function, bfd sections callback
13099 used by generic_load.
13100
13101 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13102
13103 [Based on work by Jim Blandy]
13104 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13105 (builtin_type_vec128): Export.
13106 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13107 types.
13108 (builtin_type_vec128): New builtin type for 128 bit vector
13109 registers.
13110 (build_gdbtypes): Initialize builtin_type_v16qi and
13111 builtin_type_v8hi. Create the vec128 register builtin type
13112 structure.
13113 (build_builtin_type_vec128): New function.
13114 (_initialize_gdbtypes): Register builtin_type_v16qi and
13115 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13116 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13117 AltiVec register to new builtin type.
13118
13119 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13120
13121 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13122 to make_cv_type.
13123
13124 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13125
13126 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13127 CLEAN_UP_REGISTER_VALUE.
13128 * regcache.c (supply_register): Update only call.
13129
13130 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13131
13132 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13133 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13134 a29k-*-vxworks* targets as obsolete.
13135
13136 2002-01-14 Michael Snyder <msnyder@redhat.com>
13137
13138 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13139 until we can resolve portability issues.
13140 * gregset.h: Remove references to fpxregs.
13141 * gcore.c (gcore_command): Initialize note_sec to NULL.
13142
13143 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13144
13145 * signals.c (target_signal_to_name): Rewrite. Only use
13146 signals[].name when in bounds and non-NULL.
13147
13148 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13149
13150 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13151 * signals.c (target_signal_to_name): Verify that SIG is within the
13152 bounds of the signals array.
13153
13154 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13155
13156 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13157
13158 2002-01-13 Keith Seitz <keiths@redhat.com>
13159
13160 * stack.c (print_frame_info_base): Print the frame's pc
13161 only if when print_frame_info_listing_hook is not defined.
13162
13163 2002-01-13 Keith Seitz <keiths@redhat.com>
13164
13165 * varobj.c (varobj_set_value): Make sure that there were no
13166 errors evaluating the object before attempting to set its
13167 value.
13168 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13169 so this offset adjustment is no longer necessary.
13170 (create_child): Don't set the error flag if the child is
13171 a CPLUS_FAKE_CHILD.
13172 (value_of_child): If value_fetch_lazy fails, return NULL
13173 so that callers will be notified that an error occurred.
13174 (c_value_of_variable): Delay check of variable's validity
13175 until later. We actually want all structs and unions to have
13176 the value "{...}".
13177 Do not return "???" for variables which could not be evaluated.
13178 This error condition must be returned to the caller so that it
13179 can get the error condition from gdb.
13180 (cplus_name_of_child): Adjust index for vptr before figuring
13181 out the name of the child.
13182 (cplus_value_of_child): If a child's (real) parent is not valid,
13183 don't even bother trying to give a value for it. Just return
13184 an error. Change all instances in this function.
13185 (cplus_type_of_child): If our parent is one of the "fake"
13186 parents, we need to get at the type of the real parent, and
13187 derive the child's true type using this information.
13188
13189 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13190
13191 From 2002-01-09 John Marshall <johnm@falch.net>:
13192 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13193 sources.redhat.com, and tweak some related URLs which had
13194 suffered from linkrot.
13195
13196 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13197
13198 From Jeff law:
13199 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13200 structures passed in registers.
13201
13202 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13203
13204 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13205 white space which prevented compilation. Reported by DSK
13206 <dsk@student.unsw.edu.au>.
13207
13208 2002-01-11 Michael Snyder <msnyder@redhat.com>
13209
13210 * symfile.c (build_section_addr_info_from_section_tab):
13211 Use bfd access method instead of manipulating bfd directly.
13212 (syms_from_objfile): Ditto.
13213 (simple_overlay_update_1): Ditto.
13214 (simple_overlay_update): Ditto.
13215 (generic_load): Ditto.
13216 (overlay_unmapped_address): FIXME comment, bfd access methods.
13217 (sections_overlap): FIXME comment, bfd access methods.
13218 (pc_in_mapped_range): FIXME comment, bfd access methods.
13219 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13220 (section_is_mapped): FIXME comment, bfd access methods.
13221 (section_is_overlay): FIXME comment, bfd access methods.
13222
13223 * symfile.c (generic_load): Whitespace and long line cleanups.
13224 Remove duplicate variable, change several local variables to
13225 more appropriate data types.
13226 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13227
13228 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13229
13230 From Peter Schauer:
13231 * language.c (longest_local_hex_string_custom): Use phex_nz to
13232 convert NUM to a hex string.
13233
13234 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13235
13236 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13237 the function.
13238 Update Copyright year.
13239
13240 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13241
13242 * language.c (longest_raw_hex_string): Delete unused function.
13243
13244 2002-01-11 Petr Sorfa <petrs@caldera.com>
13245
13246 * MAINTAINERS (write-after-approval): Add myself.
13247 * dwarf2read.c (read_tag_string_type): Handling of
13248 DW_AT_byte_size.
13249 (read_tag_string_type): FORTRAN fix to prevent propagation of
13250 first string size.
13251 (set_cu_language): Handling of DW_LANG_Fortran95
13252
13253 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13254
13255 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13256 GETPID(inferior_ptid).
13257 (store_inferior_registers): Likewise.
13258
13259 2002-01-10 Jason Merrill <jason@redhat.com>
13260
13261 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13262 Fix DW_OP_minus.
13263
13264 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13265
13266 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13267 and bfd/elf32-sh-nbsd.c.
13268
13269 2002-01-10 Michael Snyder <msnyder@redhat.com>
13270
13271 * NEWS: Mention --pid and corefile/proc-id behavior change.
13272
13273 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13274 * gcore.c: Include cli/cli-decode.h instead of command.h.
13275
13276 * main.c (captured_main): Add new command line option "--pid".
13277 If the second command line argument (following the symbol-file)
13278 begins with a digit, try to attach to it before trying to open
13279 it as a corefile.
13280 (print_gdb_help): Document the "--pid" argument.
13281
13282 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13283
13284 * completer.c (command_completer): New function.
13285
13286 * completer.h <command_completer>: Add prototype.
13287
13288 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13289 completer for the "help" command.
13290
13291 2002-01-09 Jason Merrill <jason@redhat.com>
13292
13293 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13294
13295 2002-01-09 Michael Snyder <msnyder@redhat.com>
13296
13297 * i386-linux-nat.c (fill_fpxregset): Make global.
13298 (store_fpxregset): Ditto.
13299
13300 * gregset.h (gdb_fpxregset_t): Define.
13301 (supply_fpxregset): Prototype.
13302 (fill_fpxregset): Prototype.
13303
13304 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13305
13306 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13307
13308 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13309 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13310 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13311
13312 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13313
13314 * MAINTAINERS: Update target maintainer rules so that any
13315 Maintainer can approve a tested patch for a maintenance-only
13316 target.
13317
13318 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13319
13320 * MAINTAINERS (write-after-approval): Add myself.
13321
13322 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13323 IN_SIGTRAMP.
13324
13325 2002-01-08 Michael Snyder <msnyder@redhat.com>
13326
13327 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13328 real name of the executable, rather than the /proc name.
13329
13330 2002-01-03 Michael Snyder <msnyder@redhat.com>
13331
13332 Implement a "generate-core-file" command in gdb, save target state.
13333 * gcore.c: New file. Implement new command 'generate-core-file'.
13334 Save a corefile image of the current state of the inferior.
13335 * linux-proc.c: Add linux-specific code for saving corefiles.
13336 * target.h (struct target_ops): Add new target vectors for saving
13337 corefiles; to_find_memory_regions and to_make_corefile_notes.
13338 (target_find_memory_regions): New macro.
13339 (target_make_corefile_notes): New macro.
13340 * target.c (update_current_target): Inherit new target methods.
13341 (dummy_find_memory_regions): New place-holder method.
13342 (dummy_make_corefile_notes): New place-holder method.
13343 (init_dummy_target): Initialize new dummy target vectors.
13344 * exec.c (exec_set_find_memory_regions): New function.
13345 Allow the exec_ops vector for memory regions to be taken over.
13346 (exec_make_note_section): New function, target vector method.
13347 * defs.h (exec_set_find_memory_regions): Export prototype.
13348 * procfs.c (proc_find_memory_regions): New function, corefile method.
13349 (procfs_make_note_section): New function, corefile method.
13350 (init_procfs_ops): Set new target vector pointers.
13351 (find_memory_regions_callback): New function.
13352 (procfs_do_thread_registers): New function.
13353 (procfs_corefile_thread_callback): New function.
13354 * sol-thread.c (sol_find_memory_regions): New function.
13355 (sol_make_note_section): New function.
13356 (init_sol_thread_ops): Initialize new target vectors.
13357 * inftarg.c (inftarg_set_find_memory_regions): New function.
13358 Allow to_find_memory_regions vector to be taken over.
13359 (inftarg_set_make_corefile_notes): New function.
13360 Allow to_make_corefile_notes vector to be taken over.
13361 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13362 interface layer if not target_has_execution (may be a corefile).
13363 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13364 * config/sparc/sun4sol2.mh: Ditto.
13365 * config/alpha/alpha-linux.mh: Ditto.
13366 * config/arm/linux.mh: Ditto.
13367 * config/i386/x86-64linux.mh: Ditto.
13368 * config/ia64/linux.mh: Ditto.
13369 * config/m68k/linux.mh: Ditto.
13370 * config/mips/linux.mh: Ditto.
13371 * config/powerpc/linux.mh: Ditto.
13372 * config/sparc/linux.mh: Ditto.
13373
13374 2002-01-07 Michael Snyder <msnyder@redhat.com>
13375
13376 * arm-linux-nat.c: Remove references to regcache.c internal data
13377 (registers[] and register_valid[]).
13378
13379 2002-01-07 Michael Snyder <msnyder@redhat.com>
13380
13381 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13382 so that attaching to a pid will automatically read the process's
13383 symbol file and shlibs.
13384 * Makefile.in: Add rule for linux-proc.o.
13385 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13386 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13387 * config/arm/linux.mh: Ditto.
13388 * config/i386/linux.mh: Ditto.
13389 * config/i386/x86-64linux.mh: Ditto.
13390 * config/ia64/linux.mh: Ditto.
13391 * config/m68k/linux.mh: Ditto.
13392 * config/mips/linux.mh: Ditto.
13393 * config/powerpc/linux.mh: Ditto.
13394 * config/sparc/linux.mh: Ditto.
13395
13396 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13397
13398 * win32-nat.c: Add i386-tdep.h dependency.
13399
13400 2002-01-07 Michael Snyder <msnyder@redhat.com>
13401
13402 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13403 instead of bfd_get_arch_size. Don't bail out just because
13404 there's no exec_bfd.
13405
13406 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13407 * p-valprint.c (pascal_object_print_value): Ditto.
13408 * somread.c (som_symtab_read): Ditto.
13409 * symfile.c (simple_free_overlay_region_table): Ditto.
13410 * valops.c (value_assign): Ditto.
13411
13412 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13413 use tilde_expand and strerror for opening save-tracepoints file.
13414
13415 * thread-db.c (thread_db_new_objfile): Indendation fix.
13416
13417 * infptrace.c (GDB_MAX_ALLOCA): New define.
13418 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13419 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13420 can be overridden with whatever value is appropriate to the host).
13421 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13422 alloca to allocate potentially large buffer.
13423 * rs6000-nat.c (child_xfer_memory): Ditto.
13424 * symm-nat.c (child_xfer_memory): Ditto.
13425 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13426
13427 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13428
13429 From Nick Clifton <nickc@redhat.com>
13430 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13431
13432 2002-01-07 Michael Snyder <msnyder@redhat.com>
13433
13434 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13435 Don't use exec_bfd if it's NULL.
13436
13437 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13438
13439 * valops.c (value_arg_coerce): Fix formatting.
13440
13441 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13442
13443 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13444 * gnu-nat.c: Ditto.
13445
13446 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13447
13448 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13449 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13450 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13451 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13452 z8k-coff have not been multi-arched. Update z8k-coff build
13453 status.
13454
13455 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13456
13457 * MAINTAINERS: Mark a29k target as obsolete.
13458 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13459 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13460 comments.
13461 * NEWS: Note that a29k targets are obsolete.
13462 * a29k-tdep.c: Mark as obsolete.
13463 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13464 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13465 a29k-*-vxworks* targets as obsolete.
13466 * remote-adapt.c: Obsolete.
13467 * remote-eb.c: Obsolete.
13468 * remote-mm.c: Obsolete.
13469 * remote-udi.c: Obsolete.
13470 * config/a29k/a29k-udi.mt: Obsolete.
13471 * config/a29k/a29k.mt: Obsolete.
13472 * config/a29k/tm-a29k.h: Obsolete.
13473 * config/a29k/tm-vx29k.h: Obsolete.
13474 * config/a29k/vx29k.mt: Obsolete.
13475
13476 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13477
13478 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13479 with BFD_ENDIAN_BIG.
13480
13481 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13482
13483 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13484 * configure, config.in: Re-generate.
13485 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13486 * defs.h: Do not include <endian.h>.
13487
13488 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13489
13490 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13491 * config.in: Regenerate.
13492 * configure.in: Update copyright years.
13493 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13494 * configure: Regenerate.
13495 * i386bsd-nat.c: Update copyright years.
13496 (fill_gregset): Use regcache_collect.
13497 (fetch_inferior_registers): Only fetch integer registers
13498 if requested to do so. Add support for XMM registers
13499 using PT_GETXMMREGS.
13500 (store_inferior_registers): Only store integer registers
13501 if requested to do so. Add support for XMM registers
13502 using PT_SETXMMREGS.
13503 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13504 (store_inferior_registers): Remove.
13505 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13506 (fetch_elfcore_registers): New function.
13507 (i386nbsd_elfcore_fns): New.
13508 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13509 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13510 i386bsd-nat.o.
13511 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13512 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13513 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13514 * config/i386/tm-nbsd.h: Update copyright years.
13515 (HAVE_SSE_REGS): Define.
13516 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13517 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13518 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13519 (SIGCONTEXT_PC_OFFSET): Remove.
13520 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13521
13522 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13523
13524 * configure.tgt: Remove powerpc-*-macos* target.
13525 * config/m68k/xm-mpw.h: Delete file.
13526 * config/xm-mpw.h: Delete file.
13527 * ser-mac.c: Delete file.
13528 * mpw-make.sed: Delete file.
13529 * mpw-config.in: Delete file.
13530 * mac-xdep.c: Delete file.
13531 * mac-gdb.r: Delete file.
13532 * mac-defs.h: Delete file.
13533 * mac-nat.c: Delete file.
13534 * config/powerpc/macos.mh: Delete file.
13535 * config/powerpc/macos.mt: Delete file.
13536 * config/powerpc/nm-macos.h: Delete file.
13537 * config/powerpc/tm-macos.h: Delete file.
13538 * source.c (openp, open_source_file): Remove obsolete code.
13539 * top.c (gdb_readline): Ditto.
13540 * utils.c (query): Ditto.
13541 * event-top.c (display_gdb_prompt): Ditto.
13542 * Makefile.in (ser-mac.o): Delete obsolete target.
13543 * NEWS: Update.
13544
13545 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13546
13547 * defs.h (BIG_ENDIAN): Delete macro definition.
13548 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13549 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13550 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13551 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13552 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13553 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13554 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13555 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13556 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13557 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13558 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13559 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13560 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13561 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13562 * gdbarch.c: Re-generate.
13563
13564 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13565
13566 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13567 for core files.
13568
13569 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13570
13571 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13572
13573 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13574
13575 * value.h (value_ptr): Delete typedef.
13576
13577 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13578
13579 * i386nbsd-nat.c: Update copyright years.
13580 Include i386-tdep.h.
13581
13582 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13583
13584 * stabsread.c: Update copyright years.
13585
13586 From Debashis Mahata <debashis.mahata@wipro.com>:
13587 (read_struct_fields): Deal with Sun C compiler erroneous stab
13588 output for structs and unions.
13589 Fix PR gdb/269.
13590
13591 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13592
13593 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13594 prototype.
13595
13596 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13597
13598 * cp-abi.c: Fix whitespace.
13599 (baseclass_offset): New wrapper function.
13600 * cp-abi.h (baseclass_offset): Add prototype.
13601 (struct cp_abi_ops): Add baseclass_offset pointer.
13602
13603 * valops.c (vb_match): Move to...
13604 * gnu-v2-abi.c (vb_match): here.
13605 * valops.c (baseclass_offset): Move to...
13606 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13607
13608 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13609
13610 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13611 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13612 * hpacc-abi.c (init_hpacc_ops): Likewise.
13613
13614 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13615
13616 * valops.c (find_overload_match): Accept obj as a
13617 reference parameter. Update it before returning.
13618 * value.h (find_overload_match): Update prototype.
13619 * eval.c (evaluate_subexp_standard): Pass object to
13620 find_overload_match by reference.
13621
13622 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13623
13624 * valarith.c: Replace value_ptr with struct value pointer. Remove
13625 register attribute from value declarations.
13626 * valops.c: Ditto.
13627 * value.h: Ditto.
13628 * scm-lang.c (scm_lookup_name): Ditto.
13629
13630 2002-01-03 Michael Snyder <msnyder@redhat.com>
13631
13632 Abstract the functionality of iterating over mapped memory
13633 regions into a general purpose iterator function.
13634 * procfs.c (iterate_over_mappings): New function, general purpose
13635 iterator for memory sections.
13636 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13637 (solib_mappings_callback): New function, callback for above.
13638 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13639 (info_mappings_callback): New function, callback for above.
13640
13641 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13642
13643 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13644
13645 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13646 * i386-tdep.c: Include "elf-bfd.h".
13647 (process_note_abi_tag_sections): New function.
13648 (i386_gdbarch_init): Add code to recognize various OS/ABI
13649 combinations.
13650
13651 * maint.c (_initialize_maint_cmds): Add missing \ in
13652 string-literal.
13653
13654 For older changes see ChangeLog-2001
13655 \f
13656 Local Variables:
13657 mode: change-log
13658 left-margin: 8
13659 fill-column: 74
13660 version-control: never
13661 End:
This page took 0.398445 seconds and 5 git commands to generate.