2002-11-26 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2
3 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
4 pc_in_call_dummy_before_text_end
5 (deprecated_pc_in_call_dummy_after_text_end): Rename
6 pc_in_call_dummy_after_text_end.
7 (deprecated_pc_in_call_dummy_on_stack): Rename
8 pc_in_call_dummy_on_stack.
9 (deprecated_pc_in_call_dummy_at_entry_point): Rename
10 pc_in_call_dummy_at_entry_point.
11 * m68k-tdep.c (m68k_gdbarch_init): Update.
12 * s390-tdep.c (s390_gdbarch_init): Update.
13 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
14 * vax-tdep.c (vax_gdbarch_init): Update.
15 * sparc-tdep.c (sparc_gdbarch_init): Update.
16 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
17 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
18 * i386-tdep.c (i386_gdbarch_init): Update.
19 * frv-tdep.c (frv_gdbarch_init): Update.
20 * cris-tdep.c (cris_gdbarch_init): Update.
21 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
22 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
23 (deprecated_pc_in_call_dummy_after_text_end)
24 (deprecated_pc_in_call_dummy_on_stack)
25 (deprecated_pc_in_call_dummy_at_entry_point): Update.
26 * alpha-tdep.c (alpha_gdbarch_init): Update.
27
28 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
29
30 * acconfig.h (HAVE_PREAD64): Add.
31 * configure.in: Check for pread64.
32 * config.in: Regenerated.
33 * configure: Regenerated.
34 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
35 * linux-proc.c (linux_proc_xfer_memory): New function.
36 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
37
38 2002-11-25 David Carlton <carlton@math.stanford.edu>
39
40 * dwarf2read.c (scan_partial_symbols): Descend into namespace
41 pdi's with no name.
42
43 2002-11-25 Andrew Cagney <ac131313@redhat.com>
44
45 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
46 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
47
48 2002-11-25 Jim Blandy <jimb@redhat.com>
49
50 * symfile.c (init_objfile_sect_indices): New function.
51 (default_symfile_offsets): Move the section-index-initializing
52 stuff into init_objfile_sect_indices, and call that.
53
54 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
55 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
56
57 * symfile.c (syms_from_objfile): Adjust indentation.
58
59 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
60 || info_verbose isn't true.
61
62 2002-11-24 Andrew Cagney <ac131313@redhat.com>
63
64 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
65 default to get_frame_base.
66 * gdbarch.h, gdbarch.c: Regenerate.
67 * arch-utils.c (default_frame_address): Delete function.
68 * arch-utils.h (default_frame_address): Delete declaration
69
70 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
71
72 * varobj.c (find_frame_addr_in_frame_chain):
73 Use get_frame_base instead of FRAME_FP,
74 obvious fix.
75
76 2002-11-19 Andrew Cagney <ac131313@redhat.com>
77
78 * frame.h (FRAME_FP): Delete macro.
79 (get_frame_base): New function declaration.
80 * frame.c (get_frame_base): New function.
81 (get_frame_id): Use ->frame.
82 (frame_find_by_id): Rewrite to use get_frame_id.
83 * blockframe.c: Use get_frame_base instead of FRAME_FP.
84 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
85 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
86 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
87 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
88 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
89 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
90
91 2002-11-24 Andrew Cagney <ac131313@redhat.com>
92
93 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
94
95 2002-11-24 Andrew Cagney <ac131313@redhat.com>
96
97 * frame.c (set_unwind_by_pc): Revert change below, use
98 PC_IN_CALL_DUMMY.
99 (get_prev_frame): Ditto.
100
101 2002-11-24 Andrew Cagney <ac131313@redhat.com>
102
103 * dummy-frame.c (pc_in_dummy_frame): New function.
104 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
105 (find_dummy_frame): Update comment.
106 (generic_pop_current_frame): Use get_frame_type.
107 * dummy-frame.h (pc_in_dummy_frame): Declare.
108 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
109 (create_new_frame): Use pc_in_dummy_frame.
110 (get_prev_frame): Use pc_in_dummy_frame.
111 (frame_saved_regs_register_unwind): Use get_prev_frame.
112 (deprecated_generic_get_saved_register): Use get_prev_frame.
113
114 2002-11-23 Andrew Cagney <ac131313@redhat.com>
115
116 * blockframe.c (find_frame_addr_in_frame_chain): Move function
117 from here ...
118 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
119 (varobj_create): Note that frame ID should be used.
120 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
121
122 2002-11-23 Andrew Cagney <ac131313@redhat.com>
123
124 * breakpoint.c: Include "gdb_assert.h".
125 (deprecated_frame_in_dummy): Assert that generic dummy frames are
126 not being used.
127 * Makefile.in (breakpoint.o): Update dependencies.
128 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
129 deprecated_frame_in_dummy.
130 * stack.c (print_frame_info_base): Ditto.
131 (frame_info): Ditto.
132 (print_frame_info_base): Ditto. Delete dead code.
133
134 2002-11-23 Andreas Schwab <schwab@suse.de>
135
136 * Makefile.in (m68k_tdep_h): Define.
137 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
138 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
139 * m68k-tdep.c: Move register number enum ...
140 * m68k-tdep.h: ... to this new file and rename the constants from
141 E_* to M68K_*. All uses changed.
142 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
143 * abug-rom.c: Include "m68k-tdep.h". Use
144 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
145 * cpu32bug-rom.c: Likewise.
146 * dbug-rom.c: Likewise.
147 * m68k-tdep.c: Likewise.
148 * m68klinux-nat.c: Likewise.
149 * remote-est.c: Likewise.
150 * rom68k-rom.c: Likewise.
151 * config/m68k/tm-linux.h: Likewise.
152
153 2002-11-23 Andrew Cagney <ac131313@redhat.com>
154
155 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
156 dummy frame initialization code.
157 * mips-tdep.c (mips_gdbarch_init): Ditto.
158
159 2002-11-22 Christopher Faylor <cgf@redhat.com>
160
161 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
162 attach will hang.
163
164 2002-11-22 Andrew Cagney <ac131313@redhat.com>
165
166 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
167 to default_frame_address.
168 * gdbarch.h, gdbarch.c: Re-generate.
169
170 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
171 or frame_locals_address to default_frame_address.
172 * m68k-tdep.c (m68k_gdbarch_init): Update.
173 * i386-tdep.c (i386_gdbarch_init): Update.
174 * frv-tdep.c (frv_gdbarch_init): Update.
175 * sh-tdep.c (sh_gdbarch_init): Update.
176 * v850-tdep.c (v850_gdbarch_init): Update.
177 * sparc-tdep.c (sparc_gdbarch_init): Update.
178 * mips-tdep.c (mips_gdbarch_init): Update.
179 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
180 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
181 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
182
183 * cris-tdep.c (cris_frame_args_address): Delete function.
184 (cris_frame_locals_address): Delete function.
185 (cris_gdbarch_init): Do not set frame_args_address or
186 frame_locals_address.
187
188 2002-11-22 Michael Snyder <msnyder@redhat.com>
189
190 * thread-db.c (thread_db_load): Tell the user what's going on
191 if dlopen fails on libthread_db.
192
193 2002-11-23 Andreas Schwab <schwab@suse.de>
194
195 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
196 invariant return values.
197
198 2002-11-22 Andreas Schwab <schwab@suse.de>
199
200 * valops.c (value_slice): Move declaration of `offset' to avoid
201 warning.
202
203 2002-11-22 Christopher Faylor <cgf@redhat.com>
204
205 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
206 (struct so_stuff): Add end_addr field.
207 (register_loaded_dll): Calculate and store end address of loaded dll.
208 (solib_address): New function.
209 (child_solib_loaded_library_pathname): Pass carefully constructed
210 section info to safe_symbol_file_add rather than ignoring it.
211 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
212 DLL is loaded.
213 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
214 (child_create_inferior): Fix a compiler warning.
215 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
216 (solib_address): Declare new function.
217
218 2002-11-22 Andreas Schwab <schwab@suse.de>
219
220 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
221 and FPS registers.
222
223 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
224
225 * maint.c (_initialize_maint_cmds): Fix typo. From
226 Francesco Potorti` <pot@gnu.org>.
227
228 2002-11-21 Andrew Cagney <cagney@redhat.com>
229
230 * mips-tdep.c (mips_dump_tdep): Delete references to
231 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
232 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
233 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
234 * printcmd.c (build_address_symbolic): Delete calls to
235 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
236 (address_info): Ditto.
237 Fix PR gdb/773.
238
239 2002-11-19 Klee Dienes <kdienes@apple.com>
240 Adam Fedor <fedor@gnu.org>
241
242 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
243 the ability to explicitly specify the quote characters and word
244 break characters; if NULL is specified for either, use the old
245 behavior of using the characters used by the completer.
246 (skip_chars): New function. Convenience wrapper around
247 skip_quoted_chars to provide the original skip_chars behavior.
248 * completer.h (skip_quoted_chars): Add prototype.
249
250 2002-11-19 Andrew Cagney <ac131313@redhat.com>
251
252 Problems reported by Paul Eggert.
253 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
254
255 2002-11-19 Andreas Schwab <schwab@suse.de>
256
257 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
258 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
259 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
260 (m68k_linux_frame_saved_pc): Move to ...
261 * m68klinux-tdep.c: ... here. New file.
262 * Makefile.in (m68klinux-tdep.o): Add dependencies.
263 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
264
265 2002-11-19 Adam Fedor <fedor@gnu.org>
266
267 * objc-exp.y: Revert to old skip_quoted usage.
268
269 2002-11-19 Adam Fedor <fedor@gnu.org>
270
271 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
272 (objc_lang_h): Define.
273 (YYFILES): Add objc-exp.tab.c.
274 (local-maintainer-clean): Remove objc-exp.tab.c.
275 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
276
277 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
278
279 * p-exp.y (typecast rule): Add automatic dereference of
280 pascal classes if needed.
281 (THIS): Set current_type.
282 Automatically dereference pascal classes.
283 (typebase rule): Add ^typebase recognition.
284
285 2002-11-18 Adam Fedor <fedor@gnu.org>
286
287 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
288 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
289 (op_name): Handle OP_OBJC_SELF.
290 * Makefile.in (expprint.o): Add additional depends.
291
292 2002-11-18 Adam Fedor <fedor@gnu.org>
293
294 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
295 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
296 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
297 * objc-exp.y: Likewise.
298
299 2002-11-18 Adam Fedor <fedor@gnu.org>
300
301 * gdb/parser-defs.h: (struct objc_class_str): New structure
302 for parsing ObjC classes.
303
304 2002-11-18 Andrew Cagney <ac131313@redhat.com>
305
306 * stack.c (frame_relative_level): Copy function from here ...
307 * frame.c (frame_relative_level): ...to here.
308
309 2002-11-18 Andrew Cagney <ac131313@redhat.com>
310
311 * frame.h (enum frame_type): Define.
312 (get_frame_type): Declare.
313 (struct frame_info): Add field `type'. Delete field
314 signal_handler_caller.
315 (deprecated_set_frame_signal_handler_caller): Declare.
316 * frame.c (get_frame_type): New function.
317 (deprecated_set_frame_type): New function.
318 (create_new_frame): Set the frame's type.
319 (get_prev_frame): Similar.
320 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
321 * s390-tdep.c: Ditto.
322 * m68klinux-nat.c: Ditto.
323 * ns32k-tdep.c: Ditto.
324 * x86-64-linux-tdep.c: Ditto.
325 * vax-tdep.c: Ditto.
326 * rs6000-tdep.c: Ditto.
327 * ppc-linux-tdep.c: Ditto.
328 * i386-interix-tdep.c: Ditto.
329 * mips-tdep.c: Ditto.
330 * m68k-tdep.c: Ditto.
331 * hppa-tdep.c: Ditto.
332 * ia64-tdep.c: Ditto.
333 * cris-tdep.c: Ditto.
334 * arm-tdep.c: Ditto.
335 * alpha-tdep.c: Ditto.
336 * i386-tdep.c: Ditto.
337 * stack.c: Ditto.
338 * ada-lang.c: Ditto.
339 * blockframe.c: Update.
340 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
341 deprecated_set_frame_type instead of signal_handler_caller.
342 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
343 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
344 * breakpoint.h: Delete FIXME suggesting get_frame_type.
345
346 2002-11-18 Klee Dienes <kdienes@apple.com>
347
348 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
349
350 2002-11-18 Klee Dienes <kdienes@apple.com>
351
352 * buildsym.c (pop_context): Add comment.
353
354 2002-11-18 Klee Dienes <kdienes@apple.com>
355
356 * buildsym.h (pop_context): Convert to function, defined in
357 buildsym.c.
358 * buildsym.c: Include gdb_assert.h.
359 (pop_context): Implement as C function. Add check for stack
360 underflow.
361 * dbxread.c (process_one_symbol): Complain and stop processing
362 that symbol if we are already at the top of the context stack for
363 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
364 when processing N_RBRAC.
365
366 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
367
368 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
369 define.
370 (struct target_waitstatus): Add opaque definition.
371 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
372 * exec.c (init_exec_ops): Likewise.
373 * fork-child.c (clone_and_follow_inferior): Remove.
374 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
375 * inferior.h (clone_and_follow_inferior): Remove prototype.
376 * infrun.c (follow_fork_mode_both): Remove.
377 (follow_fork_mode_kind_names): Remove commented out "both".
378 (follow_inferior_fork): Remove follow_fork_mode_both support.
379 * inftarg.c (child_clone_and_follow_inferior): Remove.
380 (child_post_follow_inferior_by_clone): Remove.
381 (init_child_ops): Don't set to_clone_and_follow_inferior
382 or to_post_follow_inferior_by_clone.
383 * target.c (default_clone_and_follow_inferior): Remove.
384 (cleanup_target): Don't set to_clone_and_follow_inferior
385 or to_post_follow_inferior_by_clone.
386 (find_default_clone_and_follow_inferior): Remove.
387 (init_dummy_target): Don't set to_clone_and_follow_inferior.
388 (debug_to_clone_and_follow_inferior): Remove.
389 (debug_to_post_follow_inferior_by_clone): Remove.
390 (setup_target_debug): Don't set to_clone_and_follow_inferior
391 or to_post_follow_inferior_by_clone.
392 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
393 and to_post_follow_inferior_by_clone.
394 (child_clone_and_follow_inferior): Remove prototype.
395 (child_post_follow_inferior_by_clone): Remove prototype.
396 (target_clone_and_follow_inferior): Remove macro.
397 (target_post_follow_inferior_by_clone): Remove macro.
398 (find_default_clone_and_follow_inferior): Remove prototype.
399
400 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
401
402 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
403 inferior_has_vforked, and inferior_has_execd instead of
404 target_has_forked, target_has_vforked, and target_has_execd.
405 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
406 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
407 (CHILD_WAIT): Define.
408 (child_wait): Add prototype.
409 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
410 Add prototype.
411 (hpux_has_vforked): Likewise, from child_has_vforked.
412 (hpux_has_execd): Likewise, from child_has_execd.
413 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
414 (not_same_real_pid, child_wait): New, copied from inftarg.c.
415 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
416 and hpux_has_syscall_event instead of the target hooks.
417 * infrun.c (inferior_has_forked, inferior_has_vforked)
418 (inferior_has_execd): New functions.
419 * inftarg.c (not_same_real_pid): Remove.
420 (child_wait): Remove references to not_same_real_pid,
421 target_has_forked, target_has_vforked, target_has_execd,
422 and target_has_syscall_event.
423 (child_has_forked, child_has_vforked, child_has_execd)
424 (child_has_syscall_event): Remove.
425 (init_child_ops): Remove references to child_has_forked,
426 child_has_vforked, child_has_execd, and child_has_syscall_event.
427 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
428 (hpux_has_vforked): Likewise, from child_has_vforked.
429 (hpux_has_execd): Likewise, from child_has_execd.
430 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
431 * target.c (cleanup_target): Remove references to
432 to_has_forked, to_has_vforked, to_has_execd, and
433 to_has_syscall_event.
434 (update_current_target): Likewise.
435 (setup_target_debug): Likewise.
436 (debug_to_has_forked): Remove.
437 (debug_to_has_vforked): Remove.
438 (debug_to_has_execd): Remove.
439 (debug_to_has_syscall_event): Remove.
440 * target.h (struct target_ops): Remove to_has_forked.
441 to_has_vforked, to_has_execd, and to_has_syscall_event.
442 (child_has_forked, child_has_vforked, child_has_execd)
443 (child_has_syscall_event): Remove prototypes.
444 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
445 prototypes.
446 (target_has_forked, target_has_vforked, target_has_execd)
447 (target_has_syscall_event): Remove macros.
448
449 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
450
451 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
452 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
453 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
454 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
455 * target.c (cleanup_target): Remove reference to
456 to_can_follow_vfork_prior_to_exec.
457 (update_current_target): Likewise.
458 (debug_to_can_follow_vfork_prior_to_exec): Remove.
459 (setup_target_debug): Remove reference to
460 to_can_follow_vfork_prior_to_exec.
461 * target.h (struct target_ops): Remove
462 to_can_follow_vfork_prior_to_exec.
463 (child_can_follow_vfork_prior_to_exec): Remove prototype.
464 (target_can_follow_vfork_prior_to_exec): Remove definition.
465 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
466 define.
467 * infrun.c (follow_vfork_when_exec): Remove.
468 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
469 (follow_exec): Likewise.
470 (handle_inferior_event): Likewise.
471 (keep_going): Likewise.
472
473 2002-11-15 Andrew Cagney <cagney@redhat.com>
474
475 * frame.c (generic_unwind_get_saved_register): Make static.
476 * frame.h (generic_unwind_get_saved_register): Delete declaration.
477 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
478 defaults to generic_unwind_get_saved_register.
479 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
480 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
481 * frv-tdep.c (frv_gdbarch_init): Ditto.
482 * i386-tdep.c (i386_gdbarch_init): Ditto.
483 * s390-tdep.c (s390_gdbarch_init): Ditto.
484 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
485 * v850-tdep.c (v850_gdbarch_init): Ditto.
486 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
487 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
488 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
489
490 2002-11-15 Andrew Cagney <cagney@redhat.com>
491
492 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
493 i386-tdep.c.
494
495 2002-11-15 Andrew Cagney <cagney@redhat.com>
496
497 * frame.h (sigtramp_saved_pc): Delete declaration.
498 * blockframe.c (sigtramp_saved_pc): Delete function.
499 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
500 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
501 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
502 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
503
504 2002-11-15 Andrew Cagney <ac131313@redhat.com>
505
506 * frame.c (frame_pc_unwind): New function.
507 (frame_saved_regs_pc_unwind): New function.
508 (frame_register_unwind): Pass unwind_cache instead of
509 register_unwind_cache.
510 (set_unwind_by_pc): Add unwind_pc parameter, set.
511 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
512 (get_prev_frame): Ditto.
513 * frame.h (frame_pc_unwind_ftype): Declare.
514 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
515 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
516 (frame_pc_unwind): Declare.
517 * dummy-frame.c (dummy_frame_pc_unwind): New function.
518 (struct dummy_frame): Add comment mentioning that values are for
519 previous frame.
520 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
521 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
522 (generic_file_frame_chain_valid): Ditto.
523 * stack.c (frame_info): Ditto.
524
525 2002-11-15 David Carlton <carlton@math.stanford.edu>
526
527 * linespec.c (locate_first_half): New function.
528 (decode_line_1): Move code into locate_first_half.
529
530 2002-11-15 Andrew Cagney <ac131313@redhat.com>
531
532 * complaints.h: Add comment explaining how to eliminate a
533 deprecated_complain call.
534 * complaints.h: Fix spelling errors.
535
536 2002-11-15 David Carlton <carlton@math.stanford.edu>
537
538 * printcmd.c: Remove #include "disasm.h".
539
540 2002-11-14 Andrew Cagney <ac131313@redhat.com>
541
542 * frame.h: Move the most relevant interface functions to the start
543 of the file.
544
545 2002-11-14 Andrew Cagney <ac131313@redhat.com>
546
547 * regcache.h (deprecated_registers): Rename registers.
548 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
549 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
550 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
551 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
552 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
553 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
554 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
555 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
556 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
557 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
558 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
559 * v850ice.c: Update.
560
561 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
562
563 * utils.c (gdb_realpath): Add comment mentioning realpath with a
564 NULL buffer.
565
566 2002-11-13 Andrew Cagney <cagney@redhat.com>
567
568 * regcache.h (deprecated_read_register_bytes): Rename
569 read_register_bytes.
570 (deprecated_write_register_bytes): Rename write_register_bytes.
571 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
572 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
573 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
574 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
575 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
576 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
577 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
578 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
579 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
580 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
581 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
582 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
583 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
584 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
585
586 2002-11-13 Jim Blandy <jimb@redhat.com>
587
588 * findvar.c (read_var_value): Doc fix.
589
590 2002-11-13 Andrew Cagney <cagney@redhat.com>
591
592 * regcache.c (struct regcache): Replace passthough_p with
593 readonly_p.
594 (regcache_xmalloc): Initialize readonly_p.
595 (build_regcache): Initialize readonly_p.
596 (regcache_save): New function.
597 (regcache_restore): New function.
598 (regcache_cpy): Re-implement using regcache_save and
599 regcache_restore.
600 (regcache_raw_read): Update.
601 (regcache_cooked_read): When a read-only cache, checked for cached
602 pseudo register values.
603 (regcache_raw_write): Assert that the cache is not read-only.
604 Remove code handling a non-passthrough cache.
605 * regcache.h (regcache_save): Declare.
606 (regcache_restore): Declare.
607
608 2002-11-13 Andrew Cagney <cagney@redhat.com>
609
610 * regcache.c (struct regcache_descr): Add fields
611 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
612 (init_legacy_regcache_descr): Compute the size of a cooked
613 register cache and then assign that to sizeof_raw_registers. Set
614 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
615 (init_legacy_regcache_descr): Ditto.
616
617 2002-11-13 Andrew Cagney <cagney@redhat.com>
618
619 * regcache.c (register_buffer): Move to near start of file, update
620 description.
621 (regcache_raw_read): Use.
622 (regcache_raw_write): Use.
623 (struct regcache): Rename raw_registers to registers and
624 raw_register_valid_p to register_valid_p.
625 (regcache_xmalloc): Update.
626 (regcache_xfree): Update.
627 (register_buffer): Update.
628 (regcache_cpy): Update.
629 (regcache_cpy_no_passthrough): Update.
630 (regcache_valid_p): Update.
631 (deprecated_grub_regcache_for_registers): Update.
632 (deprecated_grub_regcache_for_register_valid): Update.
633 (set_register_cached): Update.
634 (regcache_raw_write): Update.
635
636 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
637
638 * p-exp.y (name_not_typename): Use copy_name to
639 set current_type variable for fields of THIS.
640
641 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
642
643 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
644 * monitor.c (init_base_monitor_ops): Likewise.
645 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
646 * remote-array.c (init_array_ops): Likewise.
647 * remote-e7000.c (init_e7000_ops): Likewise.
648 * remote-es.c (init_es1800_ops): Likewise.
649 (init_es1800_child_ops): Likewise.
650 * remote-rdp.c (init_remote_rdp_ops): Likewise.
651 * remote-sim.c (init_gdbsim_ops): Likewise.
652 * remote-st.c (init_st2000_ops): Likewise.
653 * sol-thread.c (init_sol_core_ops): Likewise.
654 (init_sol_thread_ops): Likewise.
655 * v850ice.c (init_850ice_ops): Likewise.
656 * win32-nat.c (init_child_ops): Likewise.
657 * wince.c (init_child_ops): Likewise.
658
659 2002-11-12 Andrew Cagney <ac131313@redhat.com>
660
661 * utils.c (gdb_realpath): Make rp a constant pointer.
662
663 2002-11-12 Andrew Cagney <ac131313@redhat.com>
664
665 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
666 a constant buffer; cannonicalize_file_name(); realpath() with a
667 pathconf() defined buffer, xstrdup().
668
669 2002-11-12 Andrew Cagney <ac131313@redhat.com>
670
671 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
672 to hang2.C; hang3.c to hang3.C.
673
674 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
675
676 * findvar.c (read_var_value): Reenable TLS code.
677
678 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
679 Jim Blandy <jimb@redhat.com>
680
681 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
682 * target.c (update_current_target): Add
683 to_get_thread_local_address.
684 * target.h (to_get_thread_local_address): Export.
685 (target_get_thread_local_address): Define.
686 (target_get_thread_local_address_p): Define.
687 * thread-db.c: Include solib-svr4.h.
688 (td_thr_tls_get_addr_p): Define.
689 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
690 (thread_db_get_thread_local_address): New function.
691 (init_thread_db_ops): Initialize to_get_thread_local_address.
692 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
693 * configure: Regenerate.
694 * config.in: Regenerate.
695
696 2002-11-11 David Carlton <carlton@math.stanford.edu>
697
698 * linespec.c (set_flags): New function.
699 (decode_line_1): Move code into set_flags.
700
701 2002-11-11 David Carlton <carlton@math.stanford.edu>
702
703 * linespec.c (decode_line_1): Move chunks of code to separate
704 functions.
705 (initialize_defaults): New function.
706 (decode_indirect): New function.
707
708 2002-11-11 Andrew Cagney <ac131313@redhat.com>
709
710 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
711 instead of void_code_ptr.
712 (sigtramp_saved_pc): Ditto.
713
714 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
715 i386_fp_regnum_p.
716
717 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
718
719 * gdbtypes.h (struct main_type): Move artificial flag out of
720 loc. New member of ``struct field'' named static_kind. Reduce
721 overloaded meaning of bitsize.
722 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
723 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
724 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
725
726 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
727 new fields.
728 (template_to_fixed_record_type, template_to_static_fixed_type)
729 (to_record_with_fixed_variant_part): Likewise.
730 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
731 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
732 * dwarfread.c (struct_type, enum_type): Likewise.
733 * hpread.c (hpread_read_enum_type)
734 (hpread_read_function_type, hpread_read_doc_function_type)
735 (hpread_read_struct_type): Likewise.
736 * mdebugread.c (parse_symbol): Likewise.
737
738 2002-11-10 Andrew Cagney <ac131313@redhat.com>
739
740 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
741 * stack.c (print_frame_info_base): Update.
742 (print_frame_info_base, frame_info): Update.
743 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
744 (sparc_frame_saved_pc): Update.
745 * ada-lang.c (find_printable_frame): Update.
746 * breakpoint.c (deprecated_frame_in_dummy): Update.
747
748 2002-11-09 Mark Kettenis <kettenis@gnu.org>
749
750 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
751 defined.
752 (regmap): Extend to cover all registers.
753 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
754 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
755 definitions.
756 (fetch_register, sore_register): Simplify.
757 (old_fetch_inferior_registers, old_store_inferior_registers):
758 Remove functions.
759 (cannot_fetch_register, cannot_store_register): Change
760 implementation to use regmap array to decide which registers
761 cannot be fetched/stored. This removes $orig_eax from the
762 registers that cannot be fetched/stored.
763 (fetch_inferior_registers): Call fetch_register directly instead
764 of calling old_fetch_inferior_registers.
765 (store_inferior_registers): Call store_register directly instead
766 of calling old_store_inferior_registers.
767 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
768 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
769 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
770
771 2002-11-09 Klee Dienes <kdienes@apple.com>
772
773 * i387-tdep.c (i387_supply_register): When called with NULL as a
774 buffer, mark the register as not provided (to mirror the behavior
775 of supply_register).
776 (i387_supply_fxsave): Ditto.
777 (i387_supply_fsave): Ditto (inherits the behavior from
778 i387_supply_register).
779
780 2002-11-09 Klee Dienes <kdienes@apple.com>
781
782 * blockframe.c (sigtramp_saved_pc): Use
783 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
784 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
785 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
786
787 2002-11-09 Andrew Cagney <ac131313@redhat.com>
788
789 * frame.c (get_prev_frame): Test prev_p to identify a previously
790 unwound frame. Initialize prev_p.
791 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
792 comment.
793
794 2002-11-09 Andrew Cagney <ac131313@redhat.com>
795
796 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
797 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
798 more comments. Zap dead code.
799
800 2002-11-09 Mark Kettenis <kettenis@gnu.org>
801
802 * infcmd.c (print_vector_info, print_float_info): Move code that
803 checks whether the target has any registers and whether there is a
804 selected frame up, such that it is also used if a target provides
805 multi-arch definitions of these functions.
806
807 2002-11-08 Andrew Cagney <ac131313@redhat.com>
808
809 * Makefile.in (DESTDIR): Define.
810 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
811 prefix.
812
813 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
814 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
815
816 2002-11-08 Andrew Cagney <ac131313@redhat.com>
817
818 * i386-linux-tdep.c: Include "reggroups.h".
819 (i386_linux_register_reggroup_p): New function.
820 (i386_linux_init_abi): Set register_reggroup_p to
821 i386_linux_register_reggroup_p.
822 * i386-tdep.h (i386_register_reggroup_p): Declare.
823 * i386-tdep.c: Include "reggroups.h".
824 (i386_init_reggroups): New function.
825 (i386_add_reggroups): New function.
826 (i386_register_reggroup_p): New function.
827 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
828 (_initialize_i386_tdep): Call i386_init_reggroups.
829 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
830 specific reggroups.
831
832 2002-11-09 Mark Kettenis <kettenis@gnu.org>
833
834 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
835 request that's available in *BSD.
836
837 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
838
839 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
840 FDOFF_REGNUM.
841
842 2002-11-08 Andrew Cagney <ac131313@redhat.com>
843
844 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
845 * dummy-frame.c (find_dummy_frame): Rename
846 generic_find_dummy_frame, make static. Return the dummy frame
847 instead of the regcache.
848 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
849 (cached_find_dummy_frame): New function. Use find_dummy_frame.
850 (dummy_frame_register_unwind): Rename
851 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
852 * dummy-frame.h (dummy_frame_register_unwind): Rename
853 generic_call_dummy_register_unwind.
854
855 2002-11-08 Mark Kettenis <kettenis@gnu.org>
856
857 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
858 except the inclusion of "i386/tm-i386.h", to...
859 * config/i386/nm-i386v42mp.h: ...here.
860 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
861
862 2002-11-08 Andrew Cagney <ac131313@redhat.com>
863
864 * Makefile.in (frame.o): Update dependencies.
865 * blockframe.c (current_frame, frame_obstack_alloc)
866 (frame_saved_regs_zalloc, get_current_frame)
867 (set_current_frame, create_new_frame)
868 (set_unwind_by_pc, get_next_frame)
869 (flush_cached_frames, reinit_frame_cache)
870 (frame_saved_regs_register_unwind)
871 (deprecated_generic_get_saved_register)
872 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
873 (_initialize_blockframe): Move frame code from here...
874 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
875 "annotate.h" and "dummy-frame.h".
876 (_initialize_frame): New function.
877
878 2002-11-08 Jim Blandy <jimb@redhat.com>
879
880 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
881 when we finish a function a context.
882 * buildsym.h (outermost_context_p): New macro.
883 (Bug analyzed by David Edelsohn.)
884
885 2002-11-08 Andrew Cagney <ac131313@redhat.com>
886
887 * blockframe.c: Include "dummy-frame.h".
888 (struct dummy_frame, dummy_frame_stack)
889 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
890 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
891 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
892 (generic_save_call_dummy_addr, generic_pop_current_frame)
893 (generic_pop_dummy_frame, generic_fix_call_dummy)
894 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
895 dummy frame code from here...
896 * dummy-frame.c: ...to here. New file.
897 * dummy-frame.h: New file.
898 (generic_call_dummy_register_unwind): Declare.
899 (generic_find_dummy_frame): Declare.
900 * Makefile.in (SFILES): Add dummy-frame.c.
901 (dummy-frame.o): Specify dependencies.
902 (dummy_frame_h): Define.
903 (COMMON_OBS): Add dummy-frame.o.
904 (blockframe.o): Update dependencies.
905
906 2002-11-08 Jim Blandy <jimb@redhat.com>
907
908 * dwarf2read.c (read_func_scope): Restore local_symbols and
909 param_symbols after we finish the function context. (Based on a
910 patch from David Edelsohn.)
911
912 2002-11-08 David Carlton <carlton@math.stanford.edu>
913
914 * linespec.c (symbol_found): New function.
915 (minsym_found): New function.
916 (decode_line_1): Separate out some code into separate functions.
917
918 2002-11-08 Joel Brobecker <brobecker@gnat.com>
919
920 * i386-tdep.c (i386_frameless_signal_p): Make non static for
921 the benefit of the interix target.
922 * i386-tdep.h (i386_frameless_signal_p): Declare.
923
924 2002-11-08 Andrew Cagney <ac131313@redhat.com>
925
926 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
927 declaration that snuck in from change below.
928
929 2002-11-06 Andrew Cagney <cagney@redhat.com>
930
931 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
932 all callers.
933 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
934 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
935 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
936 (i386_mxcsr_regnum_p): new function. Use instead of
937 MXCSR_REGNUM_P.
938 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
939 (i386_sse_regnum_p): Declare.
940 (i386_mxcsr_regnum_p): Declare.
941 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
942 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
943 (IS_FP_REGNUM): Update definition.
944 (IS_FPU_CTRL_REGNUM): Update definition..
945 (IS_SSE_REGNUM): Update definition..
946 * i386v-nat.c (register_u_addr): Update.
947 * go32-nat.c (fetch_register): Update.
948 (store_register): Update.
949
950 2002-11-07 Joel Brobecker <brobecker@gnat.com>
951
952 Preparation work to convert the hppa targets to multiarch partial.
953
954 * hppa-tdep.c: Add new functions replacing macro bodies from
955 config/pa/tm-hppa.h. These function will be used to initialize
956 the gdbarch structure. Import some comments from tm-hppa.h,
957 and place them where appropriate, to avoid loosing them when
958 we cleanup this file.
959 (hppa_reg_struct_has_addr): New function.
960 (hppa_inner_than): New function.
961 (hppa_stack_align): New function.
962 (hppa_pc_requires_run_before_use): New function.
963 (hppa_instruction_nullified): New function.
964 (hppa_register_byte): New function.
965 (hppa_register_virtual_type): New function.
966 (hppa_store_struct_return): New function.
967 (hppa_cannot_store_register): New function.
968 (hppa_frame_args_address): New function.
969 (hppa_frame_locals_address): New function.
970 (hppa_smash_text_address): New function.
971 (hppa_coerce_float_to_double): New function. Requires the inclusion
972 of "language.h".
973
974 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
975
976 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
977 gdbarch-eligible macro to a call to the new associated function
978 created in hppa-tdep.c.
979 (INNER_THAN): Likewise.
980 (STACK_ALIGN): Likewise.
981 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
982 (INSTRUCTION_NULLIFIED): Likewise.
983 (REGISTER_BYTE): Likewise.
984 (REGISTER_VIRTUAL_TYPE): Likewise.
985 (STORE_STRUCT_RETURN): Likewise.
986 (CANNOT_STORE_REGISTER): Likewise.
987 (FRAME_ARGS_ADDRESS): Likewise.
988 (FRAME_LOCALS_ADDRESS): Likewise.
989 (SMASH_TEXT_ADDRESS): Likewise.
990 (COERCE_FLOAT_TO_DOUBLE): Likewise.
991 (ABOUT_TO_RETURN): Delete, as no longer used.
992
993 2002-11-07 Fernando Nasser <fnasser@redhat.com>
994
995 * printcmd.c (disassemble_command): Remove obsolete function.
996 (_initialize_printcmd): Do not create disassemble command here.
997 * cli/cli-cmds.c (disassemble_command): New function. Implements
998 disassemble command.
999 (init_cli_cmds): Create disassemble command here instead.
1000
1001 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1002
1003 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1004
1005 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1006
1007 * regcache.h (regcache_cooked_read_using_offset_hack)
1008 (regcache_cooked_write_using_offset_hack): Delete declarations.
1009 (register_changed): Delete declaration.
1010 * regcache.c (regcache_cooked_read_using_offset_hack)
1011 (regcache_cooked_write_using_offset_hack): Delete functions.
1012 (cooked_xfer_using_offset_hack): Delete function.
1013 (register_changed): Delete function.
1014
1015 2002-11-07 Jim Blandy <jimb@redhat.com>
1016
1017 * macroscope.c: #include "complaints.h".
1018 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1019 but not in the macro table.
1020 * Makefile.in (macroscope.o): Record dependency.
1021
1022 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1023
1024 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1025
1026 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1027
1028 * regcache.c (deprecated_registers_fetched): Update.
1029 * regcache.h (deprecated_registers_fetched): Rename
1030 registers_fetched.
1031 * remote-vxsparc.c (vx_read_register): Update.
1032 * remote-vxmips.c (vx_read_register): Update.
1033 * remote-vx68.c (vx_read_register): Update.
1034 * irix5-nat.c (fetch_core_registers): Update.
1035 * mipsm3-nat.c (fetch_inferior_registers): Update.
1036 * sun3-nat.c (fetch_inferior_registers): Update.
1037 * symm-nat.c (fetch_inferior_registers): Update.
1038 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1039 (fetch_core_registers): Update.
1040 (fetch_kcore_registers): Update.
1041 * mips-nat.c (fetch_inferior_registers): Update.
1042 * corelow.c (get_core_registers): Update.
1043 * a68v-nat.c (fetch_inferior_registers): Update.
1044
1045 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1046
1047 Put in place the framework necessary for multiarching the hppa targets.
1048 * hppa-tdep.c (hppa_gdbarch_init): New function.
1049 (hppa_dump_tdep): New function.
1050 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1051 tdep structure dumper.
1052 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1053 until the multi-arching conversion has partially been completed.
1054
1055 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1056
1057 * valops.c (value_assign): Merge lval_register case into
1058 lval_reg_frame_relative. Use frame_register and
1059 regcache_cooked_write instead of get_saved_register and
1060 write_register_bytes. After flushing the register cache, try to
1061 re-select the selected frame.
1062
1063 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1064
1065 * regcache.h (deprecated_register_valid): Rename register_valid.
1066 * regcache.c: Update.
1067 * ia64-aix-nat.c: Update.
1068 * i386gnu-nat.c: Update.
1069 * alpha-nat.c: Update.
1070 * sparc-nat.c: Update.
1071 * lynx-nat.c: Update.
1072 * remote-mips.c: Update.
1073
1074 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1075
1076 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1077 to end of file, to be more consistent with the pratice followed
1078 by other targets.
1079
1080 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1081
1082 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1083 (print_float_info): Print registers in float_reggroup.
1084 (print_vector_info): Print registers in vector_reggroup.
1085 (default_print_registers_info): When all, print registers in
1086 all_reggroup. Otherwize, print registers in general_reggroup.
1087 (registers_info): Rewrite. Add support for register groups.
1088 Eliminate a goto.
1089
1090 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1091
1092 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1093 ages.
1094 (symtab_symbol_info): Remove eons old ifdeffed out code.
1095 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1096 command.
1097
1098 2002-11-06 Theodore A. Roth <troth@openavr.org>
1099
1100 * c-exp.y: Add missing semi-colons.
1101 * f-exp.y: Add missing semi-colons.
1102 * m2-exp.y: Add missing semi-colons.
1103 * p-exp.y: Add missing semi-colons.
1104 Add empty action to start rule to avoid a type clash error when
1105 building with bison >= 1.50.
1106
1107 2002-11-06 Jim Blandy <jimb@redhat.com>
1108
1109 * macrotab.h (struct macro_source_file): Doc fix.
1110
1111 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1112
1113 * varobj.c (child_exists, cplus_number_of_children): Change
1114 STREQ macro references to strcmp.
1115 (cplus_name_of_child): Change code to handle the fact that
1116 fields are not necessarily contiguous with regards to their
1117 access control. This is a fix for PR gdb/792.
1118
1119 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1120
1121 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1122 * gdbarch.h, gdbarch.c: Regnerate.
1123 * frame.h (frame_register): Declare.
1124 * frame.c (frame_register): New function.
1125 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1126 GET_SAVED_REGISTER, otherwize call
1127 generic_unwind_get_saved_register.
1128 (frame_register_read): Use frame_register instead of
1129 get_saved_register.
1130
1131 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1132
1133 From Jim Ingham <jingham@apple.com>:
1134 * event-top.c (gdb_disable_readline): New function.
1135 (_initialize_event_loop): Move comment.
1136
1137 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1138
1139 * event-loop.c (start_event_loop): Add comment.
1140 Update copyright.
1141
1142 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1143
1144 * infcmd.c (default_print_registers_info): Do not call
1145 PRINT_REGISTER_HOOK.
1146
1147 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1148
1149 * sparc-tdep.c (sparc_print_register_hook): Make static.
1150 (sparc_print_registers_info): New function.
1151 (sparc_do_registers_info): New function.
1152 (sparclet_print_registers_info): New function.
1153 (sparclet_do_registers_info): New function.
1154 (do_sparc_print_registers_info): New function.
1155 (sparc_print_registers): New static function, clone of infcmd.c's
1156 default_print_registers_info.
1157 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1158 (sparclet_do_registers_info): Declare.
1159 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1160 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1161 Re-define.
1162 (sparc_do_registers_info): Declare.
1163 (PRINT_REGISTER_HOOK): Delete macro.
1164 (sparc_print_register_hook): Delete declaration.
1165
1166 2002-11-05 David Carlton <carlton@math.stanford.edu>
1167
1168 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1169 functions.
1170 (lookup_symbol_aux_local): New function.
1171 (lookup_symbol_aux_symtabs): New function.
1172 (lookup_symbol_aux_psymtabs): New function.
1173
1174 2002-11-05 David Carlton <carlton@math.stanford.edu>
1175
1176 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1177 previous values of 'objfile' and 'block'.
1178
1179 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1180
1181 * values.c (value_change_enclosing_type): Set
1182 enclosing_type field correctly also for the case where
1183 more memory needs to be allocated.
1184
1185 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1186
1187 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1188 of puts_filtered.
1189
1190 * i387-tdep.c (i387_print_float_info): Replace calls to
1191 register_read and deprecated_read_register_gen with calls to
1192 frame_register_read, and make the necessary adjustments to the
1193 surrounding code.
1194
1195 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1196
1197 * gdbarch.sh (register_reggroup_p): Allow default value.
1198 * gdbarch.h, gdbarch.c: Regenerate.
1199
1200 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1201
1202 * regcache.h: Add coment indicating replacements for deprecated
1203 functions.
1204
1205 2002-11-02 Andrew Cagney <cagney@redhat.com>
1206
1207 * reggroups.h, reggroups.c: New files.
1208 * regcache.c: Include "reggroups.h".
1209 (enum regcache_dump_what): Add `regcache_dump_groups'.
1210 (regcache_dump): Contract size of the "Type" column. When
1211 specified, dump the register's groups.
1212 (maintenance_print_register_groups): New function.
1213 (_initialize_regcache): Add command `maint print register-groups'.
1214 * Makefile.in (COMMON_OBS): Add reggroups.o
1215 (SFILES): Add reggroups.c.
1216 (reggroups_h): Define.
1217 (regcache.o, gdbarch.o): Update dependencies.
1218 (reggroups.o): Specify dependencies.
1219 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1220 Add opaque declaration for `struct reggroup' in generated .h file.
1221 Include "reggroups.h" in generated .c file.
1222 gdbarch.h, gdbarch.c: Re-generate.
1223
1224 2002-11-02 Andrew Cagney <cagney@redhat.com>
1225
1226 * regcache.h (deprecated_read_register_gen): Rename
1227 read_register_gen.
1228 (deprecated_write_register_gen): Rename write_register_gen.
1229 * i387-tdep.c: Update.
1230 * x86-64-linux-nat.c: Update
1231 * wince.c: Update.
1232 * thread-db.c: Update.
1233 * win32-nat.c: Update.
1234 * mips-tdep.c: Update.
1235 * d10v-tdep.c: Update.
1236 * cris-tdep.c: Update.
1237 * remote-sim.c: Update.
1238 * remote-rdi.c: Update.
1239 * remote-rdp.c: Update.
1240 * frame.c: Update.
1241 * target.c: Update.
1242 * blockframe.c: Update.
1243 * x86-64-tdep.c: Update.
1244 * xstormy16-tdep.c: Update.
1245 * sh-tdep.c: Update.
1246 * s390-tdep.c: Update.
1247 * rs6000-tdep.c: Update.
1248 * sparc-tdep.c: Update.
1249 * i386-tdep.c: Update.
1250 * dwarf2cfi.c: Update.
1251 * regcache.c: Update.
1252
1253 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1254
1255 New interix-specific files:
1256 * config/i386/nm-interix.h: New file.
1257 * config/i386/interix.mh: New file.
1258 * config/i386/interix.mt: New file.
1259 * i386-interix-nat.c: New file.
1260 * i386-interix-tdep.c: New file.
1261
1262 2002-11-01 Andrew Cagney <cagney@redhat.com>
1263
1264 * frame.h (deprecated_generic_get_saved_register): Rename
1265 generic_get_saved_register.
1266 * blockframe.c (deprecated_generic_get_saved_register): Update.
1267 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1268 (xstormy16_frame_saved_register): Update.
1269 * sh-tdep.c (sh_gdbarch_init): Update.
1270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1271 * ia64-tdep.c (ia64_get_saved_register): Update.
1272 * cris-tdep.c (cris_gdbarch_init): Update.
1273 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1274 * arm-tdep.c (arm_gdbarch_init): Update.
1275
1276 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1277
1278 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1279
1280 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1281
1282 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1283 trampolines in sigaction.
1284
1285 2002-10-31 Andrew Cagney <cagney@redhat.com>
1286
1287 * h8300-tdep.c: Include "gdb_assert.h".
1288 (h8300_print_register): Add gdbarch, file and frame parameters.
1289 Use frame_read_unsigned_register to read the register's value.
1290 Use fprintf_filtered to display output.
1291 (h8300_print_registers_info): Replace h8300_do_registers_info.
1292 (h8300_gdbarch_init): Set print_registers_info.
1293
1294 2002-10-31 Andrew Cagney <cagney@redhat.com>
1295
1296 * frame.c (frame_read_unsigned_register): New function.
1297 (frame_read_signed_register): New function.
1298 * frame.h (frame_read_unsigned_register): Declare.
1299 (frame_read_signed_register): Declare.
1300
1301 2002-10-31 Andrew Cagney <cagney@redhat.com>
1302
1303 * h8500-tdep.c (h8500_print_registers_info): New static function,
1304 clone of infcmd.c's default_print_registers_info.
1305 (h8500_do_registers_info): New funtion.
1306 (h8500_print_register_hook): Rename print_register_hook, make
1307 static.
1308
1309 * config/h8500/tm-h8500.h: Update copyright.
1310 (DEPRECATED_DO_REGISTERS_INFO): Define.
1311 (h8500_do_registers_info: Declare.
1312 (PRINT_REGISTER_HOOK): Delete macro.
1313 (print_register_hook): Delete function.
1314
1315 2002-10-31 Andrew Cagney <cagney@redhat.com>
1316
1317 * z8k-tdep.c (z8k_print_register_hook): Make static.
1318 (z8k_print_registers_info): New static function, clone of
1319 infcmd.c's default_print_registers_info.
1320 (z8k_do_registers_info): New function. Wrap
1321 z8k_print_registers_info.
1322 * config/z8k/tm-z8k.h: Update copyright.
1323 (PRINT_REGISTER_HOOK): Delete macro.
1324 (z8k_print_register_hook): Delete declaration.
1325 (DEPRECATED_DO_REGISTERS_INFO): Define.
1326 (z8k_do_registers_info): Declare.
1327
1328 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1329
1330 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1331 as this is already provided by value.h, and was actually causing
1332 a compilation error because of a conflict in parameter type
1333 declaration due to a missing const keyword.
1334 (low_text_segment_addres): Fix a compilation warning.
1335
1336 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1337
1338 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1339 registers without a name.
1340 (mips_linux_cannot_store_register): Don't store registers without
1341 a name.
1342
1343 2002-10-28 David Carlton <carlton@math.stanford.edu>
1344
1345 * symtab.c (find_addr_symbol): Delete. (It was already commented
1346 out.)
1347 * symtab.h: Delete prototype for find_addr_symbol.
1348
1349 2002-10-26 Andrew Cagney <cagney@redhat.com>
1350
1351 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1352 DO_REGISTERS_INFO.
1353 gdbarch.h, gdbarch.c: Re-generate.
1354 * infcmd.c (default_print_registers_info): Update reference.
1355 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1356 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1357 * sh-tdep.c (sh_gdbarch_init): Ditto.
1358 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1359 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1360
1361 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1362
1363 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1364 cfi_init_extra_frame_info.
1365 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1366 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1367
1368 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1369 target where necessary. Add more comments and remove the ones
1370 that don't provide any useful information.
1371
1372 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1373 deprecated_read_register_dummy with
1374 frame_unwind_unsigned_register.
1375
1376 * i386-tdep.c (i386_extract_struct_value_address): Use
1377 regcache_raw_read_unsigned instead of
1378 regcache_cooked_read_unsigned since we know that the register
1379 we're reading isn't a pseudo register. Rename variable 'val' into
1380 the more descriptive 'addr'.
1381
1382 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1383 (x86_64_push_return_address): Add comment.
1384 (x86_64_pop_frame): Make static.
1385 (examine_argument): Clarify comment.
1386 (x86_64_skip_prologue): Make prolog_expact variable static.
1387
1388 * dwarf2cfi.c: Fix some formatting problems.
1389 (context_cpy, read_encoded_pointer): Clarify comments.
1390
1391 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1392 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1393 i386 target back into x86_64_gdbarch_init. Add some comments and
1394 remove meaningless ones.
1395
1396 2002-10-25 Andrew Cagney <cagney@redhat.com>
1397
1398 * complaints.h (struct deprecated_complaint): Rename `struct
1399 complaint'.
1400 * complaints.c (complain): Update.
1401 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1402 incorrect comment indicating that "symfile.h" was being included
1403 for the `struct complaint' definition.
1404 * remote-vx.c: Update.
1405 * objc-lang.c: Update.
1406 * xcoffread.c: Update.
1407 * hpread.c: Update.
1408 * mdebugread.c: Update.
1409 * stabsread.c: Update.
1410 * dwarf2read.c: Update.
1411 * dwarfread.c: Update.
1412 * elfread.c: Update.
1413 * coffread.c: Update.
1414 * stabsread.h: Update.
1415 * dbxread.c: Update.
1416 * buildsym.c: Update.
1417 * gdbtypes.c: Update.
1418 * macrotab.c: Update.
1419
1420 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1421
1422 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1423 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1424 (x86_64_init_abi): ...new function.
1425
1426 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1427 * i386v-nat.c: Include "i386-tdep.h".
1428
1429 2002-10-25 Andrew Cagney <cagney@redhat.com>
1430
1431 * gdbtypes.c (address_space_name_to_int): Update.
1432 (address_space_int_to_name): Update.
1433 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1434 multi-arch predicate.
1435 (address_class_name_to_type_flags): Ditto.
1436 * gdbarch.h, gdbarch.c: Re-generate.
1437
1438 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1439
1440 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1441
1442 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1443
1444 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1445
1446 * symtab.h (INIT_SAL): Delete macro.
1447 (init_sal): Export.
1448 * symtab.c (init_sal): New function.
1449
1450 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1451 to init_sal function call.
1452 (find_sal_from_funcs_and_line): Ditto.
1453 (all_sals_for_line): Ditto.
1454 * breakpoint.c (create_internal_breakpoint): Ditto.
1455 (create_fork_vfork_event_catchpoint): Ditto.
1456 (create_exec_event_catchpoint): Ditto.
1457 (parse_breakpoint_sals): Ditto.
1458 (watch_command_1): Ditto.
1459 (handle_gnu_4_16_catch_command): Ditto.
1460 (clear_command): Ditto.
1461 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1462 * infcmd.c (run_stack_dummy): Ditto.
1463 * infrun.c (process_event_stop_test): Ditto.
1464 (check_sigtramp2): Ditto.
1465 (step_over_function): Ditto.
1466 * linespec.c (decode_line_2): Ditto.
1467 (decode_line_1): Ditto.
1468 * source.c (line_info): Ditto.
1469 * symtab.c (find_pc_sect_line): Ditto.
1470
1471 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1472
1473 * dwarf2cfi.c (struct context)
1474 (struct context_reg): Moved to dwarf2cfi.h
1475 (context_alloc, frame_state_alloc, context_cpy):
1476 Made extern instead of static, removed prototypes.
1477 * dwarf2cfi.h (struct context)
1478 (struct context_reg): New, moved from dwarf2cfi.c
1479 (context_alloc, frame_state_alloc, context_cpy):
1480 New prototypes.
1481 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1482 Changed from static to extern.
1483 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1484 (LINUX_SIGCONTEXT_FP_OFFSET)
1485 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1486 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1487 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1488 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1489 set_gdbarch_*() calls now use x86-64 specific functions
1490 instead of DWARF2 CFI ones.
1491 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1492 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1493 (x86_64_init_extra_frame_info): New prototypes.
1494
1495 2002-10-23 David Carlton <carlton@math.stanford.edu>
1496
1497 * linespec.c: #include "parser-defs.h".
1498 Delete prototype for find_template_name_end.
1499 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1500
1501 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1502
1503 * NEWS: add recent mi fixes.
1504 * varobj.c (struct varobj): Add new "updated" flag.
1505 (new_variable): Default "updated" flag to 0.
1506 (varobj_set_value): Set "updated" flag to 1 if value
1507 changes.
1508 (varobj_update): Check varobj "updated" flag before
1509 comparing old and refreshed values. Fix for
1510 PR gdb/702.
1511
1512 2002-10-23 David Carlton <carlton@math.stanford.edu>
1513
1514 * parse.c (parse_exp_1): Use BLOCK_START.
1515 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1516 SYMBOL_BLOCK_VALUE.
1517 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1518
1519 2002-10-23 David Carlton <carlton@math.stanford.edu>
1520
1521 * symtab.c: Delete cplusplus_hint.
1522 Delete prototype for find_template_name_end.
1523
1524 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1525
1526 * symtab.h: Update comment.
1527
1528 2002-10-23 Michael Snyder <msnyder@redhat.com>
1529
1530 * printcmd.c (address_info): Restore quotes in output.
1531 * valops.c (value_of_local): Restore quotes in error message.
1532
1533 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1534
1535 * symtab.c (symbol_demangled_name): New function.
1536 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1537 turning most of it into a function.
1538 (symbol_demangled_name): Export.
1539
1540 2002-10-23 Michael Snyder <msnyder@redhat.com>
1541
1542 * valops.c (value_of_local): Restore quotes in error message.
1543
1544 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1545
1546 * symtab.c (symbol_init_language_specific): New function.
1547 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1548 turning most of it into a function.
1549 (symbol_init_language_specific): Export.
1550
1551 2002-10-23 David Carlton <carlton@math.stanford.edu>
1552
1553 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1554 (dwarf_attr_name): Ditto.
1555 (dwarf_type_encoding_name): Ditto.
1556 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1557 (process_die): Handle DW_TAG_namespace,
1558 DW_TAG_imported_declaration, DW_TAG_imported_module.
1559 (read_namespace): New function.
1560
1561 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1562
1563 * configure.in: Define NEW_PROC_API on Interix too.
1564 * configure: Regenerate.
1565
1566 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1567
1568 * configure: Regenerate using the proper version of autoconf.
1569
1570 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1571
1572 * findvar.c (read_var_value): Temporarily disable TLS code, until
1573 complete TLS support is added.
1574
1575 2002-10-21 Jim Blandy <jimb@redhat.com>
1576 Elena Zannoni <ezannoni@redhat.com>
1577
1578 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1579 for thread local storage locations.
1580 (struct symbol): Add objfile field.
1581 (SYMBOL_OBJFILE): Define.
1582 * dwarf2read.c (is_thread_local): New static variable.
1583 (new_symbol): If variable is in thread local fill in address class
1584 and objfile appropriately.
1585 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1586 stack operation.
1587 * printcmd.c (address_info): Print the information for thread
1588 local storage variable.
1589 * findvar.c (read_var_value): In case of thread local variable,
1590 defer to the target vector code to compute address.
1591
1592 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1593
1594 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1595 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1596
1597 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1598
1599 * symtab.h (address_class): Rename
1600 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1601 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1602 * printcmd.c (address_info): Ditto.
1603 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1604
1605 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1606
1607 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1608 DBREG_DRX macro to acces debug registers.
1609
1610 * Makefile.in (i386obsd-tdep.o): New target.
1611
1612 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1613 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1614
1615 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1616 * config/i386/obsd.mt: New file.
1617 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1618 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1619 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1620 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1621 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1622 * i386obsd-tdep.c: New file.
1623
1624 2002-10-19 Adam Fedor <fedor@gnu.org>
1625
1626 * objc-exp.y (name_not_typename): Fix invalid comment.
1627
1628 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1629
1630 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1631 to allocate partial syms and macro byte caches.
1632
1633 2002-10-18 David Carlton <carlton@math.stanford.edu>
1634
1635 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1636
1637 2002-10-18 Adam Fedor <fedor@gnu.org>
1638
1639 * stabsread.c (find_name_end): New function.
1640 (define_symbol): Use it.
1641
1642 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1643
1644 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1645 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1646 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1647 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1648
1649 2002-10-17 David Carlton <carlton@math.stanford.edu>
1650
1651 * symfile.h: Add opaque declaration for struct obstack.
1652 Declare obsavestring to take a const char *.
1653 * symfile.c (obsavestring): Make first argument a const char *.
1654
1655 2002-10-16 Adam Fedor <fedor@gnu.org>
1656
1657 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1658 names when matching breakpoints in current file.
1659
1660 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1661
1662 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1663 (read_tag_pointer_type): Add address class support.
1664 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1665 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1666 New methods.
1667 * gdbarch.h, gdbarch.c: Regenerate.
1668 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1669 (make_type_with_address_space, recursive_type_dump): Add address
1670 class support.
1671 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1672 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1673 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1674
1675 2002-10-16 Klee Dienes <kdienes@apple.com>
1676
1677 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1678 to get the last character of a char[] buffer, not
1679 name[sizeof(vptr_name)-1].
1680
1681 2002-10-14 Adam Fedor <fedor@gnu.org>
1682
1683 * symtab.h: New objc_specific struct.
1684 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1685 (SYMBOL_DEMANGLED_NAME): Likewise.
1686
1687 2002-10-14 Adam Fedor <fedor@gnu.org>
1688
1689 * symfile.c (init_filename_language_table): Add ObjC file extension.
1690
1691 2002-10-14 Adam Fedor <fedor@gnu.org>
1692
1693 * utils.c (puts_filtered_tabular): New function.
1694 (fprintf_symbol_filtered): Get ObjC demangled name.
1695 * defs.h (puts_filtered_tabular): Declared.
1696
1697 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1698
1699 * c-lang.h (c_type_print_varspec_prefix): Delete.
1700 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1701 ``need_post_space'' parameter. Adjust all callers.
1702
1703 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1704
1705 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1706 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1707 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1708 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1709
1710 2002-10-13 Adam Fedor <fedor@gnu.org>
1711
1712 * source.c (print_source_lines): Update comments.
1713
1714 2002-10-13 Adam Fedor <fedor@gnu.org>
1715
1716 * valops.c (value_of_local): New function.
1717 (value_of_this): Use it.
1718 * value.h (value_of_local): Declared.
1719
1720 2002-10-13 Adam Fedor <fedor@gnu.org>
1721
1722 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1723 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1724
1725 2002-10-12 Adam Fedor <fedor@gnu.org>
1726
1727 * language.c (binop_result_type): Add language_objc to case.
1728 (integral_type): Likewise.
1729 (character_type): Likewise.
1730 (string_type): Likewise.
1731 (boolean_type): Likewise.
1732 (structured_type): Likewise.
1733 (binop_type_check): Likewise.
1734
1735 2002-10-11 Adam Fedor <fedor@gnu.org>
1736
1737 * printcmd.c (address_info): Print 'self' for ObjC.
1738
1739 2002-10-11 Adam Fedor <fedor@gnu.org>
1740
1741 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1742 OP_SELF.
1743
1744 2002-10-11 Adam Fedor <fedor@gnu.org>
1745
1746 * language.h (CAST_IS_CONVERSION): Add language_objc.
1747
1748 2002-10-11 Adam Fedor <fedor@gnu.org>
1749
1750 * defs.h (enum language): Add language_objc.
1751
1752 2002-10-11 Klee Dienes <kdienes@apple.com>
1753
1754 * corefile.c (read_memory_typed_address): New function.
1755 * gdbcore.h (read_memory_typed_address): Add prototype.
1756 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1757 to read a value destined for a CORE_ADDR, not read_memory_integer.
1758 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1759 (f77_get_dynamic_lowerbound): Ditto.
1760
1761 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1762
1763 * utils.c (string_to_core_addr): After turning string into
1764 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1765 which will do necessary sign-extension, etc.
1766
1767 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1768
1769 * c-exp.y (THIS): Delete token and grammar rule.
1770 (yylex): Don't return THIS.
1771 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1772 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1773 * demangle.c (cplus_markers): Update comment. Put '$'
1774 first. Remove CPLUS_MARKER.
1775 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1776 * jv-exp.y (THIS): Delete token and grammar rule.
1777 (yylex): Don't return THIS.
1778 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1779 * objc-exp.y (THIS): Delete token and grammar rule.
1780 (yylex): Don't return THIS.
1781 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1782 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1783 (read_member_functions): Likewise for opname.
1784 (read_tilde_fields): Use is_cplus_marker.
1785
1786 * defs.h (CPLUS_MARKER): Don't define.
1787 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1788 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1789 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1790 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1791 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1792
1793 * config/i386/tm-i386v4.h: Delete file.
1794 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1795 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1796 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1797 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1798 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1799 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1800 * config/i386/i386v4.mt (TM_FILE): Likewise.
1801 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1802
1803 2002-10-10 Marko Mlinar <markom@opencores.org>
1804
1805 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1806 accidentially not commited 2002-10-09
1807 * gdbarch.h, gdbarch.c: Re-generate.
1808
1809 2002-10-09 Marko Mlinar <markom@opencores.org>
1810
1811 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1812 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1813 * gdbarch.h, gdbarch.c: Re-generate.
1814
1815 2002-10-08 Petr Sorfa <petrs@caldera.com>
1816
1817 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1818
1819 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1820 so we can work on more than one compilation unit at a time. This
1821 helps prepare GDB to handle inter-CU die references.
1822 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1823 the code to be defined before struct comp_unit_head.
1824 (comp_unit_head): Added new members - offset, cu_head,
1825 begin_die, next and dwarf2_abbrevs.
1826 (dwarf2_abbrevs): Removed single static var; now member of
1827 struct comp_unit_head.
1828 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1829 members.
1830 (psymtab_to_symtab_1): Changed to work with the new
1831 struct comp_unit_head.
1832 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1833 constructs the dwarf2_abbrevs[] inside the cu_header.
1834 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1835 dwarf2_abbrev table to clean up.
1836 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1837 handling of dwarf2_abbrevs inside the cu_header.
1838 (read_partial_die): Now supports the call to the new
1839 dwarf2_lookup_abbrev.
1840 (read_full_die): Now supports the call to the new
1841 dwarf2_lookup_abbrev.
1842
1843 2002-10-06 Christopher Faylor <cgf@redhat.com>
1844
1845 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1846 insure that shell variables, such as "transformed_name" are propagated
1847 to later shell statements in rule.
1848
1849 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1850
1851 * config/i386/nm-i386sco.h: Add protection against
1852 multiple-inclusion. Include "i386/nm-i386v.h".
1853 (REGISTER_U_ADDR): Remove define.
1854 (i386_register_u_addr): Remove prototype.
1855
1856 2002-10-04 Michael Snyder <msnyder@redhat.com>
1857
1858 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1859 before treating it as a single-step event.
1860
1861 2002-10-03 Adam Fedor <fedor@gnu.org>
1862
1863 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1864 (objc_demangle): Remove assignment in if statements, Replace
1865 free with xfree.
1866 (add_msglist): Likewise.
1867 (end_msglist): Likewise.
1868 (complare_selectors): Likewise.
1869 (selectors_info): Likewise.
1870 (compare_classes): Likewise.
1871 (classes_info): Likewise.
1872 (print_object_command): Likewise.
1873 (find_objc_msgcall_submethod): Replace PTR with void *.
1874 * objc-lang.h: Remove check for __STDC__.
1875
1876 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1877
1878 * ui-out.h (ui_out_field_fmt_int): New prototype.
1879 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1880 of field width and alignment.
1881 * stack.c (print_frame_info_base): When printing frame level, use
1882 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1883 PR gdb/192
1884
1885 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1886
1887 * MAINTAINERS: Add self to Write After Approval list.
1888
1889 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1890
1891 * infcmd.c (interrupt_target_command_wrapper): Delete.
1892 (interrupt_target_command): Make non static.
1893 (nofp_registers_info): Make static.
1894 * stack.c (return_command_wrapper): Delete.
1895 (return_command): Make non static.
1896
1897 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1898
1899 * event-top.c (gdb_setup_readline): New function. Code moved from
1900 _initialize_event_loop().
1901 (_initialize_event_loop): Call gdb_setup_readline().
1902
1903 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1904
1905 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1906 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1907 * gdbarch.h, gdbarch.c: Re-generate.
1908
1909 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1910
1911 Fix PR gdb/778
1912 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1913 before recursing.
1914 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1915 of fill_in_vptr_fieldno.
1916
1917 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1918
1919 * inferior.h (registers_info, stepi_command, nexti_command,
1920 continue_command, interrupt_target_command): Export from infcmd.c.
1921 * frame.h (args_info, selected_frame_level_changed_hook,
1922 return_command): Export from stack.c.
1923 * v850ice.c (stepi_command, nexti_command, continue_command): use
1924 prototypes from inferior.h.
1925 * tracepoint.c (registers_info, args_info, locals_info): Use
1926 prototypes from frame.h and inferior.h.
1927 * Makefile.in (mi-main.o): Add dependency on frame.h.
1928
1929 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1930
1931 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1932 value in register 3 adjusted by ppc_gp0_regnum.
1933
1934 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1935
1936 2002-10-02 Marko Mlinar <markom@opencores.org>
1937
1938 * MAINTAINERS: Add myself to the Write After Approval list.
1939
1940 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1941
1942 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1943 of the section for the N64 ABI, fixed.
1944
1945 * config/mips/tm-irix6.h: Include solib.h.
1946
1947 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1948
1949 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1950 GNU operators.
1951
1952 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1953
1954 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1955 and that "mi0" syntax has been removed.
1956
1957 2002-09-30 David Carlton <carlton@math.stanford.edu>
1958
1959 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1960 * ppc-sysv-tdep.c: #include "gdb_string.h".
1961 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1962 pacify GCC.
1963
1964 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1965
1966 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1967 "vrsave"'s register number.
1968
1969 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1970
1971 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1972 use frame_unwind_signed_register to obtain the PC.
1973 (mips_frame_chain): Handle a generic dummy frame.
1974 (mips_init_extra_frame_info): When a generic dummy frame, don't
1975 re-compute the frame base.
1976 (mips_pop_frame): Handle generic dummy frames.
1977 (mips_gdbarch_init): When generic dummy frames, set
1978 use_generic_dummy_frames, push_dummy_frame to
1979 generic_push_dummy_frame, pc_in_call_dummy to
1980 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1981 generic_save_dummy_frame_tos.
1982
1983 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1984
1985 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1986 against TOP when TOP was explictly set.
1987 (generic_push_dummy_frame): Set TOP to zero.
1988
1989 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1990
1991 * event-loop.c (start_event_loop): Rename variable 'result' to
1992 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1993
1994 2002-09-30 Keith Seitz <keiths@redhat.com>
1995
1996 * gdb-events.sh (selected_thread_changed): New event.
1997 * gdb-events.c: Regenerated.
1998 * gdb-events.h: Regenerated.
1999
2000 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2001
2002 * MAINTAINERS: Add self to Write After Approval list.
2003
2004 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2005
2006 * disasm.c: New file.
2007 * disasm.h: New file.
2008 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2009 (compare_lines): Ditto.
2010 (dump_insns): Ditto.
2011 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2012 argument.
2013 (do_assembly_only): Ditto.
2014 (do_disassembly): Renamed to gdb_disassembly and moved to
2015 disasm.c. Sdded uiout argument.
2016 * Makefile.in: Add new files. Reorder SFILES list. Update
2017 dependencies. Include libgdb.a later in the insight executable.
2018
2019 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2020
2021 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2022 bfd/elf64-alpha-fbsd.c.
2023
2024 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2025
2026 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2027 i386gnu-tdep.c.
2028
2029 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2030
2031 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2032 __FUNCTION__.
2033 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2034 function name.
2035 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2036 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2037 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2038 (S_msg_sig_post_reply): Ditto.
2039
2040 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2041
2042 * sh-tdep.c (sh_use_struct_convention): Use definition according
2043 to ABI.
2044 (sh_push_arguments): Store in register with correct endianess.
2045 (sh_default_store_return_value): Ditto.
2046 (sh_gdbarch_init): Set sizeof long double to 8.
2047
2048 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2049
2050 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2051 Fix some whitespace problems.
2052
2053 2002-09-27 David Carlton <carlton@math.stanford.edu>
2054
2055 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2056 (mcore-tdep.o): Ditto.
2057 (ns32k-tdep.o): Ditto.
2058 (ns32knbsd-tdep.o): Ditto.
2059 (sh3-rom.o): Ditto.
2060 (vax-tdep.o): Ditto.
2061 * cris-tdep.c: #include "gdb_string.h"
2062 * mcore-tdep.c: Ditto.
2063 * ns32k-tdep.c: Ditto.
2064 * ns32knbsd-tdep.c: Ditto.
2065 * sh3-rom.c: Ditto.
2066 * vax-tdep.c: Ditto.
2067
2068 2002-09-27 David Carlton <carlton@math.stanford.edu>
2069
2070 * config/djgpp/fnchange.lst: Add entries for
2071 gdb/testsuite/gdb.c++/m-static files.
2072
2073 2002-09-27 Jim Wilson <wilson@redhat.com>
2074
2075 * MAINTAINERS: Add myself to the Write After Approval list.
2076
2077 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2078
2079 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2080
2081
2082 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2083
2084 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2085 frame.
2086
2087 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2088
2089 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2090 (rs6000_struct_return_address): Delete variable.
2091 (rs6000_store_struct_return): Update.
2092 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2093 deprecated_extract_struct_value_address.
2094 (rs6000_frame_align): New function.
2095 (rs6000_gdbarch_init): Set frame_align.
2096
2097 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2098
2099 From Grace Sainsbury <graces@redhat.com>:
2100 * Makefile.in (gdbtk-main.o): New target.
2101 (gdb.o): New target.
2102 (main_h): Define.
2103 (main.o): Update dependencies.
2104 (gdb$(EXEEXT)): Add gdb.o.
2105 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2106 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2107 (SUBDIR_GDBTK_CLEAN): Set.
2108 (install-gdbtk): Install the insight binary.
2109 (uninstall-gdbtk): New target.
2110 (all-gdbtk, clean-gdbtk): New rule.
2111 * top.c (use_windows): Default to zero.
2112 * main.c: Include "main.h".
2113 (main): Delete.
2114 (struct captured_main_args): Delete.
2115 (gdb_main): New function.
2116 * main.h: New file.
2117 * gdb.c: New File.
2118
2119 2002-09-25 Andrew Cagney <cagney@redhat.com>
2120
2121 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2122 (frame_map_regnum_to_name): New function.
2123 (frame_map_name_to_regnum): New function.
2124 * frame.h (frame_map_name_to_regnum): Declare.
2125 (frame_map_regnum_to_name): Declare.
2126 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2127 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2128 * parse.c: Do not include "builtin-regs.h".
2129 (target_map_name_to_register): Delete function.
2130 (write_dollar_variable): Use frame_map_name_to_regnum.
2131 * parser-defs.h (target_map_name_to_register): Delete declaration.
2132 * expprint.c: Include "frame.h".
2133 (print_subexp): Use frame_map_regnum_to_name.
2134 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2135 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2136
2137 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2138
2139 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2140 wasn't saved, and the next innermost frame is a dummy, return the
2141 dummy frame's link register.
2142
2143 2002-09-24 Jim Blandy <jimb@redhat.com>
2144
2145 Fix from Paul Breed:
2146 * main.c (captured_main): Add a `break' after the case for 'b'.
2147
2148 2002-09-24 Keith Seitz <keiths@redhat.com>
2149
2150 * varobj.c (c_type_of_child): Use get_target_type instead
2151 of TYPE_TARGET_TYPE.
2152
2153 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2154
2155 * source.c (get_current_or_default_source_symtab_and_line): Remove
2156 function.
2157 (set_default_source_symtab_and_line): New function. Attempts to
2158 determine a source file to list lines from if one is not currently
2159 defined.
2160 (get_current_source_symtab_and_line): Initialize sal.pc and
2161 sal.end fields.
2162 (set_current_source_symtab_and_line): Mark argument as const.
2163 * source.h: Update declarations and comments.
2164 * linespec.c (decode_line_1): Replace call to removed routine above.
2165 * stack.c (print_frame_info_base): Ditto.
2166 * cli/cli-cmds.c (edit_command): Ditto.
2167 (list_command): Ditto.
2168
2169 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2170
2171 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2172 sal.pc and sal.end fields.
2173 (get_current_or_default_source_symtab_and_line): Ditto.
2174 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2175 so we do not cause a new source symtab to be searched for (reverting an
2176 unintentional change from the 2002-09-20 patch).
2177 * scm-lang.c (scm_unpac): Ditto.
2178
2179 2002-09-21 Andrew Cagney <cagney@redhat.com>
2180
2181 * complaints.c (symfile_explanations): Remove new-line from
2182 ``isolated_message''.
2183 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2184 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2185
2186 2002-09-20 Nick Clifton <nickc@redhat.com>
2187
2188 * NEWS: Announce that V850EA ISA is no longer supported.
2189 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2190
2191 2002-09-20 David Carlton <carlton@math.stanford.edu>
2192
2193 * Makefile.in (c-lang.o): Correct dependencies.
2194 (utils.o): Gather dependencies.
2195 (charset.o): Move.
2196 * c-lang.c: #include "gdb_string.h"
2197
2198 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2199
2200 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2201 * cli/cli-cmds.c (list_command): New function. Implements the new
2202 cli edit command.
2203 (_init_cli_cmds): Add new command definition.
2204 * gdb.1: Document edit command.
2205 * doc/gdb.texinfo: Document edit command.
2206
2207 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2208
2209 * source.c: Make global variables current_source_symtab and
2210 current_source_line static.
2211 (list_command): Moved to cli/cli-cmds.c.
2212 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2213 (get_first_line_listed): New accessor function.
2214 (get_lines_to_list): New accessor function.
2215 (get_current_source_symtab_and_line): New function. Retrieves the
2216 position in the source code that we consider current.
2217 (get_current_or_default_source_symtab_and_line): New function.
2218 Like the above but attempts to determine a default position if one
2219 is not currently defined.
2220 (set_current_source_symtab_and_line): New function. Sets the source
2221 code position considered current and returns the previously set one.
2222 (clear_current_source_symtab_and_line): Reset stored information about
2223 a current source line.
2224 (_initialize_source): Remove registration for the "list" command and
2225 its alias.
2226 * source.h: Add declarations for the new functions above.
2227 * symtab.h: Remove declarations for the global variables mentioned
2228 above.
2229 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2230 obtain current source line.
2231 * linespec.c (decode_line_1): Ditto.
2232 * macroscope.c (default_macro_scope): Ditto.
2233 * scm-lang.c (scm_unpac): Ditto.
2234 * stack.c (print_frame_info_base): Ditto.
2235 * symfile.c (clear_symtab_users): Ditto.
2236 * symtab.c (decode_line_spec): Ditto.
2237 * cli/cli-cmds.c (list_command): Moved here from source.c.
2238 (ambiguous_line_spec): Moved here from source.c.
2239 (_init_cli_cmds): Add definition for "list" and its alias.
2240 * Makefile.in: Update dependencies.
2241
2242 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2243
2244 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2245 with what gcc thinks is correct.
2246
2247 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2248
2249 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2250 multiple register push instruction.
2251
2252 2002-09-19 Jim Blandy <jimb@redhat.com>
2253
2254 Add support for distinct host and target character sets.
2255 * charset.c, charset.h: New files.
2256 * c-exp.y: #include "charset.h".
2257 (yylex): Convert character and string literals to the target
2258 character set, before returning them as the semantic value of the
2259 token.
2260 * c-lang.c: #include "charset.h".
2261 (c_emit_char): Use charset-specific methods to recognize
2262 characters with backslash escape forms, to decide which characters
2263 to print literally and which to print using numeric escape
2264 sequences, and to convert target characters to host characters
2265 before printing.
2266 * utils.c: #include "charset.h".
2267 (no_control_char_error): New function.
2268 (parse_escape): Use charset-specific methods to recognize
2269 backslash escapes, parse `control character' notation, and convert
2270 characters from the host character set to the target character set.
2271 * configure.in: Set the default host character set.
2272 Check where to find iconv, and what its argument types might be.
2273 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2274 * Makefile.in (SFILES): List charset.c.
2275 (COMMON_OBS): List charset.o.
2276 (charset.o): New rule.
2277 (charset_h): New header dependency variable.
2278 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2279 (LIBICONV): New variable, set by configure.
2280 (CLIBS): Include $(LIBICONV) here.
2281 * aclocal.m4, config.in, configure: Regenerated.
2282
2283 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2284
2285 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2286 bison 1.35 warning.
2287
2288 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2289
2290 * gdb_mbuild.sh: New file.
2291
2292 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2293
2294 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2295
2296 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2297
2298 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2299 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2300 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2301 valops.c, value.h: Revert previous change.
2302
2303 2002-09-18 Michael Snyder <msnyder@redhat.com>
2304
2305 Preliminary support for Objective-C:
2306 * defs.h (language_objc): New enum value.
2307 (puts_filtered_tabular): Declaration only, exported from utils.c.
2308 (skip_quoted): Delete, declared in completer.h.
2309 * c-exp.y: Include completer.h.
2310 * p-exp.y: Ditto.
2311 * jv-exp.y: Ditto.
2312 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2313 New operator enum values.
2314 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2315 * language.c (binop_result_type): Handle language_objc case.
2316 (integral_type, character_type, string_type, boolean_type,
2317 structured_type, binop_type_check): Ditto.
2318 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2319 (struct objc_specific): Add to general_symbol_info.
2320 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2321 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2322 * parser-defs.h (struct objc_class_str): New struct type.
2323 (start_msglist, end_msglist, add_msglist): Declaration only,
2324 exported from objc-lang.c.
2325 * value.h (value_of_local, value_nsstring,
2326 call_function_by_hand_expecting_type): Exported from valops.c.
2327 * valops.c (find_function_addr): Export.
2328 (call_function_by_hand_expecting_type): New function.
2329 (value_of_local): New function.
2330 * symfile.c (init_filename_language_table): Add ".m" extension
2331 for Objective-C.
2332 * utils.c (puts_filtered_tabular): New function.
2333 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2334 (set/show demangle): Extend help-string to refer to ObjC.
2335 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2336 * stabsread.c (symbol_reference_defined): Objective-C symbols
2337 may contain colons: make allowances when scanning stabs strings
2338 for colons.
2339 (objc_find_colon): New function.
2340 * printcmd.c (address_info): If language == objc then print
2341 "self" instead of "this".
2342 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2343 OP_NSSTRING, and OP_SELF.
2344 (prefixify_subexp): Ditto.
2345 * source.c (print_source_lines): Mention objc in comment.
2346 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2347 method names.
2348
2349 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2350
2351 * complaints.h: Update copyright.
2352 (struct complaints): Declare.
2353 (struct complaint): Make `message' constant.
2354 (internal_complaint): Declare.
2355 (complaint): Declare.
2356 (complaint_root): Delete declaration.
2357 (symfile_complaints): Delete declaration.
2358 (struct complaints): Add opaque declaration.
2359 (clear_complaints): Add a complaints parameter.
2360 * complaints.c: Update copyright.
2361 (enum complaint_series): Define.
2362 (complaint_root): Delete.
2363 (struct complaints): Define.
2364 (complaint_sentinel, symfile_complaint_book): New variables.
2365 (symfile_explanations, symfile_complaints): New variables.
2366 New variables.
2367 (get_complaints): New function.
2368 (vcomplaint): New function.
2369 (complaint): New function.
2370 (internal_complaint): New function.
2371 (complain): Call vcomplain with symfile_complaint.
2372 (clear_complaints): Rewrite.
2373 (_initialize_complaints): Use add_setshow_command.
2374 * Makefile.in (complaints.o): Update dependencies.
2375 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2376 to call to clear_complaints.
2377 (new_symfile_objfile, reread_symbols): Ditto.
2378 (oldsyms_complaint): Delete.
2379 (empty_symtab_complaint, unknown_option_complaint): Delete.
2380 (free_named_symtabs): Use complaint instead of complain.
2381
2382 2002-09-18 Michael Snyder <msnyder@redhat.com>
2383
2384 Contributed by Apple Computer, Inc. Merged with current sources
2385 by Adam Fedor <fedor@doc.com> [cagney].
2386
2387 * objc-lang.c: First clean-up round: comments, indentation.
2388 * objc-lang.h: Ditto.
2389 * objc-lang.y: Ditto.
2390
2391 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2392
2393 * maint.c (maintenance_internal_error): Print the parameter as the
2394 error message.
2395 (maintenance_internal_warning): New function.
2396 (_initialize_maint_cmds): Add command `maint internal-warning'.
2397
2398 * defs.h (internal_warning, internal_vwarning): Declare.
2399 * utils.c (struct internal_problem): Define.
2400 (internal_vproblem): New function.
2401 (internal_warning): New function.
2402 (internal_vwarning): New function.
2403 (internal_warning_problem, internal_error_problem): New variables.
2404 (internal_verror): Just call internal_vproblem.
2405
2406 2002-09-18 Michael Snyder <msnyder@redhat.com>
2407
2408 * objc-lang.c: New file, support for Objective-C.
2409 Preliminary check-in, not yet integrated into gdb.
2410 * objc-lang.h: New file.
2411 * objc-exp.y: New file.
2412
2413 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2414
2415 * infrun.c (signal_stop_update): Convert definition to ISO C.
2416 (signal_print_update): Ditto.
2417 (signal_pass_update): Ditto.
2418 * inflow.c (terminal_save_ours): Ditto.
2419
2420 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2421 comments.
2422
2423 * config/djgpp/fnchange.lst: Handle name clashes between
2424 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2425 bfd/coff-tic80.c.
2426
2427 * i386-linux-tdep.h: Fix tipo.
2428
2429 2002-09-18 Adam Fedor <fedor@gnu.org>
2430
2431 * MAINTAINERS: Add myself to the Write After Approval list.
2432
2433 2002-09-18 Jim Blandy <jimb@redhat.com>
2434
2435 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2436 texthigh and textlow to reader-specific structs caused
2437 objfile_relocate to miss them. This is fixable, but the work that
2438 the change was supposed to prepare GDB for never got done anyway.
2439
2440 2002-09-18 David Carlton <carlton@math.stanford.edu>
2441
2442 * MAINTAINERS: Alphabetize Write After Approval list.
2443
2444 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2445
2446 Fix PR gdb/709
2447 * values.c (value_static_field): Call read_var_value.
2448
2449 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2450
2451 * valops.c (hand_function_call): Align the initial stack pointer
2452 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2453 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2454 return value.
2455 * mips-tdep.c (mips_frame_align): New function.
2456 (mips_gdbarch_init): Set frame_align.
2457 * gdbarch.sh (FRAME_ALIGN): New method.
2458 * gdbarch.h, gdbarch.c: Re-generate.
2459
2460 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2461
2462 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2463 registers.
2464
2465 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2466
2467 * NEWS: Mention that MIPS $fp behavior changed.
2468 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2469 reference to FP_REGNUM.
2470 (mipsnbsd_cannot_store_register): Ditto.
2471 * mips-linux-nat.c: Update copyright.
2472 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2473 (mips_linux_cannot_store_register): Ditto.
2474 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2475 * config/mips/tm-mips.h: Update copyright.
2476 (FP_REGNUM): Delete macro.
2477 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2478 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2479 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2480 (mips_r3041_reg_names, mips_r3051_reg_names)
2481 (mips_r3081_reg_names): Replace "fp" with "".
2482 Fix PR gdb/480.
2483
2484 2002-09-17 Theodore A. Roth <troth@verinet.com>
2485
2486 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2487 generic_read_register_dummy() (PR gdb/703).
2488 (avr_push_return_address): #if 0 out unused vars.
2489 (avr_gdbarch_init): Enable use of avr_push_return_address().
2490
2491 2002-09-17 Michael Snyder <msnyder@redhat.com>
2492
2493 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2494 RTE will take care of it.
2495
2496 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2497
2498 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2499 invalid, return SP_REGNUM.
2500
2501 2002-09-17 Michael Snyder <msnyder@redhat.com>
2502
2503 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2504 point registers without sign extension.
2505
2506 2002-09-17 Andrew Cagney <cagney@redhat.com>
2507
2508 * blockframe.c (deprecated_read_register_dummy): Rename
2509 generic_read_register_dummy.
2510 * frame.c (frame_unwind_signed_register): New function.
2511 (frame_unwind_unsigned_register): New function.
2512 * frame.h (frame_unwind_signed_register): Declare.
2513 (frame_unwind_unsigned_register): Declare.
2514 (deprecated_read_register_dummy): Rename
2515 generic_read_register_dummy.
2516
2517 * h8300-tdep.c (h8300_frame_chain): Update.
2518 (h8300_frame_saved_pc): Update.
2519 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2520 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2521 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2522 (s390_frame_chain): Update.
2523 * v850-tdep.c (v850_find_callers_reg): Update.
2524 (v850_frame_saved_pc): Update.
2525 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2526 (m32r_find_callers_reg): Update.
2527 (m32r_frame_saved_pc): Update.
2528 * sh-tdep.c (sh_find_callers_reg): Update.
2529 (sh64_get_saved_pr): Update.
2530 (sh_init_extra_frame_info): Update.
2531 (sh_init_extra_frame_info): Update.
2532 (sh64_init_extra_frame_info): Update.
2533 (sh64_init_extra_frame_info): Update.
2534 * mcore-tdep.c (mcore_find_callers_reg): Update.
2535 (mcore_frame_saved_pc): Update.
2536 (mcore_init_extra_frame_info): Update.
2537 * i386-tdep.c (i386_frame_saved_pc): Update.
2538 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2539 (ia64_init_extra_frame_info): Update.
2540 (ia64_init_extra_frame_info): Update.
2541 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2542 * cris-tdep.c (cris_init_extra_frame_info): Update.
2543 * avr-tdep.c (avr_frame_chain): Update.
2544 (avr_init_extra_frame_info): Update.
2545 (avr_frame_saved_pc): Update.
2546 * arm-tdep.c (arm_find_callers_reg): Update.
2547 (arm_init_extra_frame_info): Update.
2548 (arm_frame_saved_pc): Update.
2549
2550 2002-09-17 Tom Tromey <tromey@redhat.com>
2551
2552 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2553 is "'".
2554
2555 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2556
2557 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2558 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2559 NEXT_PROLOGUE_INSN.
2560 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2561 NEXT_PROLOGUE_INSN.
2562
2563 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2564
2565 * osfsolib.c: Remove file, replaced by solib-osf.c.
2566 * Makefile.in: Remove compilation rules for osfsolib.c.
2567
2568 2002-09-16 David Carlton <carlton@math.stanford.edu>
2569
2570 * cp-valprint.c (cp_print_class_method): Correct args to
2571 check_stub_method_group.
2572
2573 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2574
2575 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2576 `set architecture'. Unify naming convention of functions.
2577 (h8300_skip_prologue): Improve prologue analysis.
2578 (h8300_push_arguments): Rewritten to more closely match GCC's
2579 bizarre argument-passing behavior, along with the comment describing
2580 said behavior.
2581 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2582 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2583 sim, remote-e7000.c, remote-hms.c and remote.c
2584
2585 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2586
2587 * i386-tdep.c (gdb_print_insn_i386): Removed.
2588 (i386_print_insn): New function.
2589 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2590 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2591 tm_print_insn_info.
2592
2593 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2594
2595 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2596 zero.
2597
2598 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2599
2600 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2601 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2602 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2603
2604 2002-09-13 Christopher Faylor <cgf@redhat.com>
2605
2606 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2607
2608 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2609
2610 * gdbtypes.c (check_stub_method): Make static.
2611 (check_stub_method_group): New function.
2612 * gdbtypes.h: Update prototypes.
2613 * cp-support.c: New file.
2614 * cp-support.h: New file.
2615
2616 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2617 (update_method_name_from_physname): New function.
2618 (read_member_functions): Correct method names for operators
2619 and v3 constructors/destructors. Separate v2 constructors and
2620 destructors.
2621 * Makefile.in (stabsread.o): Update dependencies.
2622 (SFILES): Add cp-support.c.
2623 (COMMON_OBS): Add cp-support.o.
2624 (cp_support_h, cp-support.o): Add.
2625
2626 * cp-valprint.c (cp_print_class_method): Call
2627 check_stub_method_group instead of check_stub_method. Remove
2628 extraneous QUITs.
2629 * p-valprint.c (pascal_object_print_class_method): Likewise.
2630 * valops.c (search_struct_method): Likewise.
2631 (find_method_list, value_struct_elt_for_reference): Likewise.
2632
2633 2002-09-13 Andrew Cagney <cagney@redhat.com>
2634
2635 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2636 * gdbarch.h, gdbarch.c: Regenerate.
2637
2638 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2639
2640 * frame.c (find_saved_register): Delete function.
2641 * frame.h (find_saved_register): Delete declaration.
2642 Fix PR gdb/631.
2643
2644 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2645
2646 * mips-tdep.c (read_next_frame_reg): Re-hack using
2647 frame_register_unwind.
2648
2649 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2650
2651 * mips-tdep.c (mips_get_saved_register): Re-hack using
2652 frame_register_unwind.
2653
2654 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2655
2656 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2657 vector. Will be useful for Interix.
2658 * gdbarch.h, gdbarch.c: Regenerate.
2659
2660 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2661 name of the malloc function by NAME_OF_MALLOC.
2662
2663 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2664
2665 * value.h (find_function_in_inferior): Add const keyword to
2666 one of the parameters. Allows us to invoke this function with
2667 a const char *.
2668 * valops.c (find_function_in_inferior): Likewise.
2669
2670 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2671
2672 * exec.c (xfer_memory): Fix compilation warning with old versions
2673 of GCC.
2674 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2675
2676 2002-09-12 David Carlton <carlton@math.stanford.edu>
2677
2678 * symtab.h: Run through gdb_indent.h.
2679 Add 2002 to Copyright year list.
2680
2681 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2682
2683 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2684 mach constants.
2685 * MAINTAINERS: Add myself to write after approval list.
2686
2687 2002-09-11 J. Brobecker <brobecker@gnat.com>
2688
2689 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2690
2691 2002-09-11 J. Brobecker <brobecker@gnat.com>
2692
2693 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2694 Interix.
2695
2696 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2697
2698 * procfs.c (do_detach): Clear current signal, not just fault.
2699 Corrects problem with breakpoint trap signal leaking to detached
2700 process on Tru64.
2701
2702 2002-09-10 Michael Snyder <msnyder@redhat.com>
2703
2704 * buildsym.c (finish_block): Protect against null pointer.
2705
2706 2002-09-10 Andrew Cagney <cagney@redhat.com>
2707
2708 * infcmd.c (default_print_registers_info): Send all output to
2709 ``file'' instead of ``gdb_stdout''.
2710
2711 2002-09-10 Michael Snyder <msnyder@redhat.com>
2712
2713 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2714 LONGEST, and use signed register read (addresses are sign-
2715 extended for mips).
2716
2717 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2718
2719 * event-loop.c (gdb_do_one_event): Make public.
2720 * event-loop.h (gdb_do_one_event): Declare.
2721
2722 2002-09-10 Jeff Law <law@redhat.com>
2723
2724 * infttrace.c (child_resume): Simplify and rework to avoid
2725 TT_PROC_CONTINUE.
2726
2727 2002-09-09 Fred Fish <fnf@intrinsity.com>
2728
2729 * printcmd.c (print_scalar_formatted): "len" is the number of
2730 target bytes, NOT the number of target bits.
2731
2732 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2733
2734 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2735 * top.c (init_main): Set rl_terminal_name.
2736
2737 2002-09-08 Aidan Skinner <aidan@velvet.net>
2738
2739 * ada-lang.c (ada_array_bound, ada_type_match,
2740 _initialize_ada_language): Fix K&R definitions.
2741 * ada-tasks.c (get_current_task): Fix K&R definitions.
2742 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2743
2744 2002-09-07 Christopher Faylor <cgf@redhat.com>
2745
2746 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2747 Add XP.
2748
2749 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2750
2751 * i386-tdep.c (i386_register_virtual_type,
2752 i386_register_convertible, i386_register_convert_to_virtual,
2753 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2754 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2755 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2756 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2757 Don't set push_arguments twice.
2758
2759 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2760 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2761 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2762 sigtramp_end to NULL.
2763 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2764 defines.
2765 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2766
2767 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2768 whitespace.
2769
2770 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2771 * gdbarch.h, gdbarch.c: Re-generate.
2772 * blockframe.c (find_pc_sect_partial_function): Convert to use
2773 SIGTRAMP_START_P predicate.
2774
2775 2002-09-05 Michael Snyder <msnyder@redhat.com>
2776
2777 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2778 generic_dummy_frame method and old method. Also distinguish
2779 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2780 (arm_extract_return_value): Use new regcache method.
2781
2782 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2783 adjustment that doesn't conform to the ABI.
2784 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2785 saved regcache, not from current regcache.
2786
2787 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2788
2789 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2790 * README: Update.
2791
2792 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2793
2794 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2795 if arm_apcs_32 is false.
2796
2797 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2798
2799 GDB 5.3 branch created.
2800
2801 2002-09-03 Theodore A. Roth <troth@verinet.com>
2802
2803 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2804 generic_unwind_get_saved_register.
2805
2806 2002-09-03 David Carlton <carlton@math.stanford.edu>
2807
2808 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2809 argument (PR gdb/653). Update call to smash_to_method_type.
2810 (read_structure_scope): Update call to dwarf2_add_member_fn.
2811
2812 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2813
2814 * x86-64-linux-tdep.c: Include gdb_string.h
2815 * x86-64-linux-nat.c: Ditto.
2816
2817 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2818
2819 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2820 when YYDEBUG is set to 1.
2821 * c-exp.y: Likewise.
2822 * f-exp.y: Likewise.
2823 * jv-exp.y: Likewise.
2824 * m2-exp.y: Likewise.
2825 * p-exp.y: Likewise.
2826
2827 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2828
2829 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2830 dependency list.
2831 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2832 solib_svr4_fetch_link_map_offsets to
2833 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2834 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2835 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2836 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2837 solib-svr4.o, and solib-legacy.o.
2838 * config/i386/tm-nbsd.h: Include solib.h.
2839
2840 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2841
2842 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2843 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2844 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2845 comment noting that this needs its own target configuration.
2846 * config/i386/nbsd.mt: New file.
2847 * config/i386/nbsdaout.mt: Remove.
2848 * config/i386/nbsdelf.mt: Ditto.
2849 * config/i386/tm-nbsdaout.h: Ditto.
2850
2851 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2852
2853 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2854 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2855 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2856 tdep->sigtramp_end.
2857 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2858 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2859 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2860
2861 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2862
2863 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2864 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2865 * i386-tdep.h (i386bsd_init_abi): New prototype.
2866 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2867 function declaration.
2868 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2869 for NetBSD-a.out or NetBSD-ELF.
2870 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2871 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2872 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2873 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2874 and nbsd-tdep.h.
2875 (i386nbsd_pc_in_sigtramp): New function.
2876 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2877 i386nbsd_pc_in_sigtramp.
2878 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2879 and i386nbsdelf_init_abi OS ABI handlers.
2880 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2881 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2882
2883 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2884
2885 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2886 registers if the target really has them.
2887
2888 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2889
2890 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2891 than nbsd-tdep.h.
2892
2893 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2894
2895 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2896 list.
2897 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2898 (alphanbsd_skip_sigtramp_frame): New functions.
2899 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2900 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2901 to alphanbsd_sigcontext_addr.
2902
2903 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2904
2905 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2906 list.
2907 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2908 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2909 nbsd_pc_in_sigtramp.
2910 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2911 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2912 * nbsd-tdep.c: Include gdb_string.h.
2913 (nbsd_pc_in_sigtramp): New function.
2914 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2915 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2916 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2917 ppcnbsd_pc_in_sigtramp.
2918 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2919 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2920 shnbsd_pc_in_sigtramp.
2921 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2922 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2923 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2924
2925 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2926
2927 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2928 watchpoints to NULL.
2929 (insert_breakpoints): set val field of watchpoints if NULL.
2930
2931
2932 2002-08-29 Jim Blandy <jimb@redhat.com>
2933
2934 * symtab.c (lookup_symbol_aux): In the cases where we find a
2935 minimal symbol of an appropriate name and use its address to
2936 select a symtab to read and search, use `name' (as passed to us)
2937 as the demangled name when searching the symtab's global and
2938 static blocks, not the minsym's name.
2939
2940 2002-08-29 Keith Seitz <keiths@redhat.com>
2941
2942 * stack.c (print_frame_info_base): Always set current_source_symtab
2943 and current_source_line.
2944
2945 2002-08-29 Donn Terry <donnte@microsoft.com>
2946
2947 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2948
2949 2002-08-28 Keith Seitz <keiths@redhat.com>
2950
2951 * stack.c (select_frame): Add FIXME concerning selected-frame
2952 events.
2953 (select_frame_command): Send selected-frame-level-changed
2954 event notification, but only if the level actually changed.
2955 (up_silently_base): Add selected-frame-level-changed event
2956 notification.
2957 (down_silently_base): Likewise.
2958
2959 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2960
2961 * Makefile.in: Update dependencies for all gdb/*.c files.
2962
2963 2002-08-27 Tom Tromey <tromey@redhat.com>
2964
2965 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2966 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2967 Update dependencies.
2968 * i387-tdep.c: Include gdb_string.h.
2969 * osabi.c: Likewise.
2970 * i386-linux-nat.c: Likewise.
2971 * lin-lwp.c: Likewise.
2972 * ax-gdb.c: Likewise.
2973 * signals/signals.c: Likewise.
2974 * jv-valprint.c: Likewise.
2975 * p-lang.c: Likewise.
2976 * c-valprint.c: Likewise.
2977 * cp-abi.c: Likewise.
2978
2979 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2980
2981 * cli/cli-script.h (copy_command_lines): Export.
2982 * breakpoint.c: Include cli/cli-script.h.
2983 * Makefile.in (breakpoint.o): Update dependencies.
2984
2985 2002-08-26 Michael Snyder <msnyder@redhat.com>
2986
2987 * breakpoint.c (insert_breakpoints): Protect all references
2988 to 'process_warning'. Shorten long lines.
2989
2990 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2991
2992 * cli/cli-script.c (copy_command_lines): New function.
2993 * defs.h (copy_command_lines): Export.
2994 * testsuite/gdb.base/commands.exp: New tests for commands
2995 attached to a temporary breakpoint, and for commands that
2996 delete the breakpoint they are attached to.
2997
2998 2002-08-26 Michael Snyder <msnyder@redhat.com>
2999
3000 * breakpoint.c (bpstat_stop_status): Instead of copying the
3001 pointer to the breakpoint commands struct, make a new copy
3002 of the struct and point to that.
3003 (bpstat_clear): Free the commands struct.
3004 (bpstat_clear_actions): Free the commands struct.
3005 (bpstat_do_actions): Free the command actions. Also execute
3006 the local cleanups, instead of deleting them.
3007 (delete_breakpoint): Leave the commands field of the bpstat
3008 chain alone -- it will be freed later.
3009
3010 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3011
3012 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3013 deleted in 2002-08-20 commit. This function is still used by
3014 ppc-linux-nat.c.
3015
3016 2002-08-26 Keith Seitz <keiths@redhat.com>
3017
3018 * gdb-events.sh: Add selected-frame-level-changed event.
3019 * gdb-events.c: Regenerated.
3020 * gdb-events.h: Regenerated.
3021
3022 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3023
3024 Fix PR gdb/393:
3025 * inflow.c (terminal_save_ours): New function to save terminal
3026 settings.
3027 * inferior.h (terminal_save_ours): Declare.
3028 * target.c (debug_to_terminal_save_ours): New function.
3029 (cleanup_target): Defaults to_terminal_save_ours.
3030 (update_current_target): Inherit to_terminal_save_ours.
3031 (setup_target_debug): Set to_terminal_save_ours.
3032 * target.h (target_terminal_save_ours): New to save terminal settings.
3033 (target_ops): New member to_terminal_save_ours.
3034 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3035 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3036 * inftarg.c (init_child_ops): Likewise.
3037 * m3-nat.c (init_m3_ops): Likewise.
3038 * procfs.c (init_procfs_ops): Likewise.
3039 * wince.c (init_child_ops): Likewise.
3040 * win32-nat.c (init_child_ops): Likewise.
3041 * sol-thread.c (init_sol_thread_ops): Likewise.
3042
3043 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3044
3045 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3046 use regcache_* functions.
3047 (i386_gdbarch_init): Set store_return_value instead of
3048 deprecated_store_return_value.
3049
3050 * regcache.c (regcache_raw_write_signed,
3051 regcache_raw_write_unsigned): New functions.
3052 * regcache.h (regcache_raw_write_signed,
3053 regcache_raw_write_unsigned): New prototypes.
3054
3055 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3056
3057 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3058 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3059 source file dependencies. Cleanup corresponding generator rules.
3060
3061 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3062
3063 * regcache.h (register_offset_hack): Declare.
3064 (regcache_cooked_read_using_offset_hack): Declare.
3065 (regcache_cooked_write_using_offset_hack): Declare.
3066
3067 * regcache.c (register_offset_hack): New function.
3068 (regcache_cooked_read_using_offset_hack): New function.
3069 (regcache_cooked_write_using_offset_hack): New function.
3070 (regcache_dump): Check that the registers, according to their
3071 offset, are packed hard against each other.
3072 (cooked_xfer_using_offset_hack): New function.
3073
3074 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3075
3076 * regcache.c (struct regcache_descr): Add field register_type.
3077 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3078 in as a parameter
3079 (init_regcache_descr): Initialize register_type. Pass the descr
3080 to init_legacy_regcache_descr. Use register_type instead of
3081 REGISTER_VIRTUAL_TYPE.
3082 (register_type): New function.
3083 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3084 * regcache.h (register_type): Declare.
3085
3086 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3087
3088 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3089 instead of deprecated_store_return_value. Fix fallout from
3090 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3091
3092 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3093
3094 * regcache.c (max_register_size): New function.
3095 (init_legacy_regcache_descr): Ensure that max_register_size is
3096 large enough for REGISTER_VIRTUAL_SIZE.
3097 * regcache.h (max_register_size): Declare.
3098
3099 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3100
3101 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3102 store_return_value.
3103 (e500_extract_return_value): Change type of valbuf pointer to
3104 void.
3105
3106 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3107
3108 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3109 workaround.
3110
3111 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3112 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3113 long long) to prevent compiler warning on 64-bit systems.
3114
3115 2002-08-23 Andrew Cagney <cagney@redhat.com>
3116
3117 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3118 (DEPRECATED_STORE_RETURN_VALUE): New method.
3119 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3120 * gdbarch.h, gdbarch.c: Re-generate.
3121
3122 * values.c (set_return_value): Pass current_regcache to
3123 STORE_RETURN_VALUE.
3124 * arch-utils.h (legacy_store_return_value): Declare.
3125 * arch-utils.c (legacy_store_return_value): New function.
3126 (legacy_extract_return_value): Update parameters.
3127
3128 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3129 STORE_RETURN_VALUE.
3130 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3131 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3132 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3133 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3134 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3135 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3136 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3137 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3138 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3139 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3140
3141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3142 * i386-tdep.c (i386_extract_return_value): Update.
3143 * arch-utils.c (legacy_extract_return_value): Update.
3144 * frv-tdep.c (frv_gdbarch_init): Update.
3145 * cris-tdep.c (cris_gdbarch_init): Update.
3146 * d10v-tdep.c (d10v_gdbarch_init): Update.
3147 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3148 * m68k-tdep.c (m68k_gdbarch_init): Update.
3149 * mcore-tdep.c (mcore_gdbarch_init): Update.
3150 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3151 * s390-tdep.c (s390_gdbarch_init): Update.
3152 * sparc-tdep.c (sparc_gdbarch_init): Update.
3153 * sh-tdep.c (sh_gdbarch_init): Update.
3154 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3155 * v850-tdep.c (v850_gdbarch_init): Update.
3156 * avr-tdep.c (avr_gdbarch_init): Update.
3157 * ia64-tdep.c (ia64_gdbarch_init): Update.
3158 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3159 * vax-tdep.c (vax_gdbarch_init): Update.
3160 * alpha-tdep.c (alpha_gdbarch_init): Update.
3161 * arm-tdep.c (arm_gdbarch_init): Update.
3162 * mips-tdep.c (mips_gdbarch_init): Update.
3163 * i386-tdep.c (i386_gdbarch_init): Update.
3164
3165 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3166
3167 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3168 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3169
3170 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3171
3172 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3173 problems.
3174
3175 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3176
3177 * infrun.c (handle_inferior_event): Move a comment outside of a
3178 function call, in order to avoid indent reformatting this part
3179 of the code in an unreadable way.
3180
3181 2002-08-23 Grace Sainsbury <graces@redhat.com>
3182
3183 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3184 when breakpoints fail. Move general breakpoint error messages to
3185 insert_breakpoints.
3186 * breakpoint.c (insert_breakpoints): Change warnings when
3187 breakpoints are nto inserted to specify the type. Remove call to
3188 memory_error when hardware breakpoints can't be inserted. Remove
3189 multiple calls to warning so all messages are sent to the user at
3190 once.
3191 (delete_breakpoints): Make insert error messsages more explicit.
3192
3193 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3194
3195 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3196 gdbserver/ChangeLog.
3197
3198 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3199
3200 * i386-tdep.c: Include "objfiles.h".
3201 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3202 skip_trampoline_code.
3203 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3204 (CPLUS_MARKER): Define to '.'.
3205
3206 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3207 member.
3208 (linux_corefile_thread_callback): Increase args->num_notes.
3209 (linux_make_note_section): Initialize thread_args.num_notes, and
3210 use it to determine whether notes for any threads were created.
3211
3212 2002-08-23 Donn Terry <donnte@microsoft.com>
3213
3214 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3215 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3216 and PCUNKILL.
3217 (write_with_trace): Conditionalize out the switch branch handling
3218 PCSHOLD if the corresponding macro is not defined. Likewise for
3219 PRSABORT and PRSTOP.
3220 This change will be needed by the Interix port.
3221
3222 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3223
3224 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3225 write_register wherever possible instead of manipulating the
3226 register bytes directly.
3227 Assign VALUE_CONTENTS to a variable and use that.
3228 The GPR numbers are now dependent on the architecture.
3229
3230 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3231
3232 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3233 ev_offset fields.
3234 (skip_prologue): Add support for BookE/e500 instructions.
3235 (e500_extract_return_value): New function.
3236 (frame_get_saved_regs): Add support for saving ev registers and
3237 pseudo gpr's.
3238 (e500_store_return_value): New function.
3239 (rs6000_gdbarch_init): Move up default intializations of
3240 deprecated_extract_return_value and store_return_value. Overwrite
3241 init of store_return_value with e500 specific version.
3242 Set extract_return_value for e500.
3243
3244 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3245
3246 * blockframe.c (generic_call_dummy_register_unwind): Use
3247 regcache_cooked_read to catch cases in which the variable is
3248 stored in a pseudo register.
3249
3250 2002-08-22 Andrew Cagney <cagney@redhat.com>
3251
3252 * NEWS: Mention that the i960 has been made obsolete.
3253 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3254 i960-tdep.c
3255 (remote-nrom.o): Obsolete target.
3256 (remote-nindy.o, i960-tdep.o): Ditto.
3257 * remote-nrom.c: Make file obsolete.
3258 * remote-nindy.c, remote-vx960.c: Ditto.
3259 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3260 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3261 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3262 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3263 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3264 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3265 i960-*-vxworks* obsolete.
3266 * MAINTAINERS: Note that the i960 is obsolete.
3267
3268 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3269
3270 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3271 detach to allow reinitialization.
3272
3273 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3274
3275 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3276 attempt).
3277
3278 2002-08-22 Jim Blandy <jimb@redhat.com>
3279
3280 * coffread.c (coff_symfile_read): Don't try to read the line
3281 number table from disk if the image file doesn't have a symbol
3282 table; we'll never actually look at the info anyway, and Windows
3283 ships DLL's with bogus file offsets for the line number data.
3284
3285 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3286
3287 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3288 an e500 executable.
3289
3290 2002-08-21 Michael Snyder <msnyder@redhat.com>
3291
3292 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3293 (MSYMBOL_SIZE): Replace macro with function.
3294 (DEFAULT_MIPS_TYPE): Delete unused macro.
3295 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3296 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3297
3298 2002-08-21 Jim Blandy <jimb@redhat.com>
3299
3300 * valops.c (value_cast): Simplify and correct logic for doing a
3301 static cast from a pointer to a base class to a pointer to a
3302 derived class.
3303
3304 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3305
3306 * infcmd.c (default_print_registers_info): Replace
3307 do_registers_info.
3308 (registers_info): Use gdbarch_print_registers_info instead of
3309 DO_REGISTERS_INFO.
3310 * inferior.h (default_print_registers_info): Replace
3311 do_registers_info.
3312 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3313 (DO_REGISTERS_INFO): Change to a predicate function.
3314 * gdbarch.h, gdbarch.c: Regenerate.
3315
3316 2002-08-21 Keith Seitz <keiths@redhat.com>
3317
3318 * gdb-events.sh: Add target-changed event.
3319 * gdb-events.c: Regenerated.
3320 * gdb-events.c: Regenerated.
3321 * valops.c (value_assign): Add target-changed event notification
3322 to inlval_register, lval_memory, and lval_reg_frame_relative.
3323
3324 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3325
3326 * NEWS: Add an entry regarding the improvement of the next/step
3327 operation on Alpha Tru64 multi-processor machines.
3328
3329 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3330
3331 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3332 directores.
3333 * Makefile.in: Update all _h macro definitions.
3334 * Makefile.in (install-gdbtk): Move to install section.
3335 (rdi-share/libangsd.a): Move to end of file.
3336
3337 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3338
3339 * frame.c (frame_register_unwind): When a register, set addrp to
3340 the register's byte.
3341
3342 2002-08-20 Michael Snyder <msnyder@redhat.com>
3343
3344 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3345 used locally, so move them from the target machine header to here.
3346 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3347 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3348 Make static.
3349 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3350
3351 2002-08-20 Andrew Cagney <cagney@redhat.com>
3352
3353 * NEWS: Mention that the Apollo line was made obsolete.
3354 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3355 m68*-hp-hpux* obsolete.
3356 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3357 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3358 * buildsym.c (make_blockvector): Make static.
3359 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3360 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3361 (ALLDEPFILES): Remove dstread.c.
3362 (dstread.o): Obsolete make rule.
3363 * dstread.c: Makefile obsolete.
3364 * dst.h: Ditto.
3365 * config/m68k/hp300hpux.mt: Ditto.
3366 * config/m68k/hp300hpux.mh: Ditto.
3367 * config/m68k/hp300bsd.mt: Ditto.
3368 * config/m68k/hp300bsd.mh: Ditto.
3369 * config/m68k/apollo68b.mt: Ditto.
3370 * config/m68k/apollo68v.mh: Ditto.
3371 * config/m68k/apollo68b.mh: Ditto.
3372
3373 2002-08-20 Michael Snyder <msnyder@redhat.com>
3374
3375 * mips-tdep.c (mips_in_return_stub): Make static.
3376 (mips_gdbarch_init): Set in_solib_return_trampoline.
3377 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3378
3379 2002-08-20 Michael Snyder <msnyder@redhat.com>
3380
3381 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3382 * gdbarch.c, gdbarch.h: Regenerate.
3383 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3384 Add.
3385 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3386
3387 2002-08-20 Michael Snyder <msnyder@redhat.com>
3388
3389 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3390 (mips_gdbarch_init): Set skip_trampoline_code,
3391 in_solib_call_trampoline.
3392 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3393 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3394
3395 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3396
3397 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3398
3399 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3400 vector type for ev registers.
3401 (e500_pseudo_register_read): New function.
3402 (e500_pseudo_register_write): New function.
3403 (e500_dwarf2_reg_to_regnum): New function.
3404 (PPC_UISA_NOFP_SPRS): New macro.
3405 (PPC_EV_REGS): New macro.
3406 (PPC_GPRS_PSEUDO_REGS): New macro.
3407 (registers_e500): New register set for e500.
3408 (variants): Add e500 variant.
3409 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3410 before setting architectural dependent variations. Initialize ev
3411 registers numbers. Add case for e500 architecture. Set the
3412 number of pseudo registers.
3413
3414 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3415
3416 * rs6000-tdep.c: Clean up comments.
3417
3418 2002-08-20 Andrew Cagney <cagney@redhat.com>
3419
3420 * h8300-tdep.c: Re-indent file.
3421
3422 2002-08-20 Jim Blandy <jimb@redhat.com>
3423
3424 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3425 default for this.
3426
3427 2002-08-20 Keith Seitz <keiths@redhat.com>
3428
3429 * breakpoints.c (watch_command_1): Use internal breakpoint
3430 when setting a watchpoint_scope breakpoint.
3431
3432 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3433
3434 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3435 (build_builtin_type_vec64i): Ditto.
3436 (build_builtin_type_vec128): Ditto.
3437 (build_builtin_type_vec128i): Ditto.
3438
3439 2002-08-19 Michael Snyder <msnyder@redhat.com>
3440
3441 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3442 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3443 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3444 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3445 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3446 CALL_DUMMY_ADDRESS): Delete.
3447 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3448 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3449 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3450 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3451 push_return_address.
3452 (mips_register_raw_size, mips_eabi_use_struct_convention,
3453 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3454 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3455 mips_init_extra_frame_info, mips_eabi_push_arguments,
3456 mips_n32n64_push_arguments, mips_push_return_address,
3457 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3458 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3459
3460 2002-08-19 Michael Snyder <msnyder@redhat.com>
3461
3462 * mips-tdep.c (mips_frame_num_args): New function.
3463 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3464 frame_saved_pc, frame_args_address, frame_locals_address,
3465 frame_num_args, and frame_args_skip.
3466 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3467 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3468 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3469 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3470
3471 2002-08-20 Michael Snyder <msnyder@redhat.com>
3472
3473 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3474 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3475 * mips-tdep.c (mips_store_struct_return): New function.
3476 (mips_extract_struct_value_address): New function.
3477 (mips_gdbarch_init): Set store_struct_return and
3478 extract_struct_value_address.
3479
3480 2002-08-20 David Carlton <carlton@math.stanford.edu>
3481
3482 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3483 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3484 (read_file_scope): Check that line_header is nonzero before
3485 decoding macro information.
3486
3487 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3488
3489 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3490 flag the general-purpose registers as floating-point on targets
3491 that don't support the floating-point registers.
3492
3493 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3494
3495 * rs6000-tdep.c (altivec_register_p): Delete.
3496 (rs6000_do_altivec_registers): Delete.
3497 (rs6000_altivec_registers_info): Delete.
3498 (rs6000_do_registers_info): Delete.
3499 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3500 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3501
3502 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3503
3504 * infcmd.c (do_registers_info): Print vector registers in hex
3505 format only.
3506 (print_vector_info): Check that printing registers
3507 makes sense.
3508 (print_float_info): Ditto.
3509
3510 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3511
3512 * mips-tdep.c (mips_gdbarch_init): Update.
3513 (mips_o32_extract_return_value): Rewrite.
3514 (mips_o32_store_return_value): Rewrite.
3515 (mips_o32_xfer_return_value): New function.
3516 (mips_xfer_register): Tweak debug print message. Allow for
3517 buf_offset when dumping the value transfered.
3518
3519 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3520
3521 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3522 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3523 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3524 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3525 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3526
3527 2002-08-14 Michael Snyder <msnyder@redhat.com>
3528
3529 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3530
3531 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3532
3533 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3534 register.
3535 (P): New macro to define a register as a pseudo register.
3536 (R, R4, R8, R16, FR32, R64, R0): Updated.
3537 (struct variant): Add new fields for number of pseudo registers
3538 and number of total registers.
3539 (tot_num_registers): New macro replacing....
3540 (num_registers): ...deleted macro.
3541 (num_registers): New function.
3542 (num_pseudo_registers): New function.
3543 (variants): Update all variants to intialize new fields correctly.
3544 Postpone initialization of number of pseudo regs and real regs.
3545 (init_variants): New function.
3546 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3547 registers offsets.
3548
3549 2002-08-19 David Carlton <carlton@math.stanford.edu>
3550
3551 * valops.c (search_struct_field): Change error message to treat
3552 return value of 0 from value_static_field as meaning that field is
3553 optimized out.
3554 (value_struct_elt_for_reference): Ditto.
3555 * values.c (value_static_field): Treat an unresolved location the
3556 same as a nonexistent symbol. Fix PR gdb/635.
3557 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3558 enclosed. Fix PR gdb/574.
3559 * MAINTAINERS: Add self to Write After Approval list.
3560
3561 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3562
3563 * mips-tdep.c (mips_xfer_register): New function.
3564 (mips_n32n64_extract_return_value): Rewrite.
3565 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3566 instead of deprecated_extract_return_value.
3567
3568 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3569
3570 * rs6000-tdep.c (TDEP): Delete macro.
3571 (branch_dest): Replace use of TDEP macro with its body.
3572 (rs6000_pop_frame): Ditto.
3573 (rs6000_push_arguments): Ditto.
3574 (rs6000_skip_trampoline_code): Ditto.
3575 (rs6000_frame_saved_pc): Ditto.
3576 (rs6000_frame_chain): Ditto.
3577 (rs6000_register_name): Ditto.
3578 (rs6000_register_byte): Ditto.
3579 (rs6000_register_raw_size): Ditto.
3580 (rs6000_register_virtual_type): Ditto.
3581 (rs6000_register_convertible): Ditto.
3582 (rs6000_convert_from_func_ptr_addr): Ditto.
3583
3584 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3585
3586 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3587 conditionally.
3588 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3589 MIPS_LINUX_JB_ELEMENT_SIZE.
3590 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3591 for MAX_REGISTER_RAW_SIZE arrays.
3592 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3593 MIPS_LINUX_JB_ELEMENT_SIZE.
3594
3595 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3596
3597 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3598
3599 2002-08-19 Aidan Skinner <aidan@velvet.net>
3600
3601 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3602 ada-valprint.c ada-tasks.c.
3603 (YYFILES): Add ada-exp.y.
3604 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3605 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3606 (ada-exp.tab.o): New target.
3607
3608 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3609
3610 * regcache.c (regcache_xfer_part): New function.
3611 (regcache_raw_read_part): New function.
3612 (regcache_raw_write_part): New function.
3613 (regcache_cooked_read_part): New function.
3614 (regcache_cooked_write_part): New function.
3615 * regcache.h (regcache_raw_read_part): Declare.
3616 (regcache_raw_write_part): Declare.
3617 (regcache_cooked_read_part): Declare.
3618 (regcache_cooked_write_part): Declare.
3619
3620 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3621
3622 * remote.c (remote_open_1): Add async_p.
3623 (remote_async_open_1): Delete.
3624 (open_remote_target): Delete.
3625 (remote_open, extended_remote_open): Update calls to remote_open_1.
3626 (remote_async_open, extended_remote_async_open): Call
3627 remote_open_1 instead of remote_async_open_1.
3628
3629 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3630
3631 * blockframe.c: Fix a few coding standard violations.
3632
3633 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3634
3635 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3636 here from ...
3637 * config/i386/tm-i386sco5.h: ... here. File removed.
3638 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3639
3640 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3641 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3642 (TM_FILE): Set to tm-i386.h.
3643 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3644 * config/i386/tm-i386v.h: Remove file.
3645 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3646 instead of "i386/tm-i386v.h".
3647 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3648 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3649 "i386/tm-i386v.h".
3650 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3651 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3652 "i386/tm-i386.h".
3653
3654 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3655
3656 * config/i386/nm-i386v.h: Add protection against
3657 multiple-inclusion.
3658 (i386_register_u_addr): Remove prototype.
3659 (register_u_addr): New prototype.
3660 (REGISTER_U_ADDR): Redefine accordingly.
3661 * i386v-nat.c: Improve several comments.
3662 (i386_register_u_addr): Change signature and rename to
3663 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3664 ubase variable.
3665
3666 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3667
3668 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3669 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3670 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3671 deprecated_extract_return_value.
3672 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3673 rename mips_o32o64_push_arguments.
3674 (mips_gdbarch_init): Update.
3675 (mips_extract_return_value): Delete.
3676 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3677 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3678 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3679 (mips_n32n64_extract_return_value): Clone
3680 mips_extract_return_value.
3681 (mips_store_return_value): Delete.
3682 (mips_o32_store_return_value): Clone mips_store_return_value.
3683 (mips_o64_store_return_value): Clone mips_store_return_value.
3684 (mips_eabi_store_return_value): Clone mips_store_return_value.
3685 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3686
3687 2002-08-18 Aidan Skinner <aidan@velvet.net>
3688
3689 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3690 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3691
3692 2002-08-18 Aidan Skinner <aidan@velvet.net>
3693
3694 * ada-lang.c: Run through gdb_indent.sh.
3695 * ada-lang.h: Run through gdb_indent.sh.
3696 * ada-tasks.c: Run through gdb_indent.sh.
3697 * ada-typeprint.c: Run through gdb_indent.sh.
3698 * ada-valprint.c: Run through gdb_indent.sh.
3699
3700 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3701
3702 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3703 ABI.
3704
3705 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3706
3707 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3708
3709 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3710 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3711
3712 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3713 write_register_gen instead of write_register_bytes.
3714
3715 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3716 i[3456]-*-osf1mk* configurations have been made obsolete.
3717 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3718 i[3456]86-*-osf1mk* hosts obsolete.
3719 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3720 targets obsolete.
3721 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3722 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3723 config/i386/i386m3.mt, config/i386/nm-m3.h,
3724 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3725 config/i386/i386mk.mh, config/i386/i386mk.mt,
3726 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3727 obsolete.
3728 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3729 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3730 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3731
3732 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3733
3734 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3735 (hppa_value_returned_from_stack): Declare.
3736 (hppa_extract_return_value): Declare.
3737 * config/pa/hppa.mt: New file.
3738 * configure.tgt: Recognize hppa*-*-*.
3739 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3740
3741 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3742
3743 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3744 comment.
3745
3746 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3747
3748 * top.c (gdb_rl_operate_and_get_next): Make sure
3749 operate-and-get-next functions correctly even when the history
3750 list is completely filled.
3751
3752 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3753
3754 * MAINTAINERS (Target Instruction Set Architectures): Rename
3755 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3756 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3757 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3758 already listed under Host/Native.
3759
3760 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3761 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3762 mips*-*-*.
3763
3764 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3765
3766 * config/ia64/ia64.mt: New file.
3767 * config/alpha/alpha.mt: New file.
3768 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3769 ia64-linux-gnu. Mention that ia64-elf is broken.
3770 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3771
3772 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3773
3774 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3775 generic_func_frame_valid instead of func_frame_valid.
3776
3777 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3778
3779 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3780 procfs appears to be broken when debugging on multi-processor
3781 machines. So enable software single stepping in order to avoid
3782 using the procfs interface to do next/step operations, using
3783 internal breakpoints instead.
3784
3785 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3786 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3787 make this pc address equal to the value it would have if the
3788 system stepping capability was used. Also set a new flag used
3789 to ensure that we don't readjust the PC one more time later.
3790
3791 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3792 address by DECR_PC_AFTER_BREAK when software single step is
3793 in use for this architecture, as this has already been taken
3794 care of in handle_inferior_event().
3795
3796 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3797
3798 * infrun.c (handle_inferior_event): Minor reformatting, to make
3799 a rather long condition expression easier to read.
3800
3801 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3802
3803 * Makefile.in (gdbtk.o): Move to end of file.
3804 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3805 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3806 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3807 (gdbtk-wrapper.o, gdbres.o): Ditto.
3808
3809 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3810
3811 * Makefile.in (copying.o): Separate out compile rule.
3812 (hpux-thread.o, procfs.o, signals.o): Ditto.
3813 (v850ice.o, z8k-tdep.o): Ditto.
3814 (tui-file.o): Move to TUI section.
3815 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3816 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3817
3818 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3819
3820 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3821 skip_trampoline_code, for better namespace-proofing.
3822
3823 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3824
3825 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3826
3827 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3828
3829 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3830
3831 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3832 signal, check whether we hit a breakpoint before checking for a
3833 single step breakpoint. Otherwise, GDB fails to notice that a
3834 breakpoint has been hit when stepping onto a breakpoint.
3835
3836 2002-08-16 Keith Seitz <keiths@redhat.com>
3837
3838 * gdb-events.sh (clear_gdb_event_hooks): New function.
3839 * gdb-events.c: Regenerate.
3840 * gdb-events.h: Regenerate.
3841
3842 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3843
3844 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3845 not_a_sw_breakpoint.
3846 * breakpoint.h (bpstat_stop_status): Add parameter names.
3847
3848 2002-08-16 Grace Sainsbury <graces@redhat.com>
3849
3850 * remote.c (remote_insert_hw_breakpoint)
3851 (remote_remove_hw_breakpoint): Fix calculation of length field
3852 for Z-packet.
3853
3854 2002-08-15 Michael Snyder <msnyder@redhat.com>
3855
3856 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3857 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3858 (supply_fpregset): Ditto.
3859
3860 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3861 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3862 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3863 (TARGET_READ_SP): Delete.
3864 (DO_REGISTERS_INFO): Delete.
3865 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3866 Delete.
3867 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3868 from macros to functions.
3869
3870 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3871 (mips_register_convertible, mips_register_convert_to_virtual,
3872 mips_register_convert_to_raw): Make static.
3873 (mips_read_sp): New function.
3874 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3875 (mips_do_registers_info): Make static.
3876 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3877 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3878 (mips_register_convert_from_type, mips_register_convert_to_type):
3879 New functions.
3880 (mips_gdbarch_init): Set up function_start_offset,
3881 register_virtual_size, pc_in_sigtramp.
3882
3883 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3884
3885 * infcmd.c (vector_info): New function.
3886 (_initialize_infcmd): Add command "info vector".
3887 (print_vector_info): New function.
3888
3889 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3890 * gdbarch.h, gdbarch.c: Regenerate.
3891
3892 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3893
3894 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3895 ``print_all''. Only print vector registers when ``print_all''.
3896
3897 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3898
3899 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3900 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3901
3902 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3903 Add `args' parameter.
3904 * gdbarch.h, gdbarch.c: Regenerate.
3905
3906 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3907
3908 * infcmd.c (float_info): Call print_float_info.
3909 (print_float_info): New function. By default, print the
3910 floating-point registers.
3911
3912 * arch-utils.h (default_print_float_info): Delete declaration.
3913 * arch-utils.c (default_print_float_info): Delete function.
3914
3915 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3916
3917 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3918 out define.
3919
3920 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3921 FRAME.
3922
3923 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3924 * configure.host: Make i[3456]86-*-aix host obsolete.
3925 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3926 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3927 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3928 config/i386/xm-i386aix.h: Make files obsolete.
3929 * i386aix-nat.c: Make file obsolete.
3930 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3931 (i386aix-nat.o): Make target obsolete.
3932
3933 * config/i386/nm-gnu.h: Removed.
3934 * config/i386/nm-i386gnu.h: New file.
3935 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3936 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3937 Moved here from ...
3938 * config/i386/tm-i386gnu.h: ... here. Removed.
3939 * config/i386/xm-i386gnu.h: Removed.
3940 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3941 (NAT_FILE): Set to nm-i386gnu.h.
3942 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3943 * i386-tdep.c: New file.
3944 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3945 (i386gnu-tdep.o): Specify dependencies.
3946
3947 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3948
3949 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3950 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3951 Adjust a few comments to reflect reality a bit closer.
3952 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3953 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3954 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3955 target_insert_watchpoint, target_remove_watchpoint):
3956 Move defines to ...
3957 * config/i386/nm-i386sco5.h: ... here.
3958 (kernel_u_size): Add prototype. Improve a few comments and add
3959 protection against multiple inclusion.
3960
3961 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3962 out define.
3963
3964 * uw-thread.c (SP_ARG0): Define if not already defined.
3965 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3966
3967 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3968
3969 * config/i386/tm-i386.h: Don't include "regcache.h".
3970
3971 * i387-tdep.h (i387_print_float_info): New prototype.
3972 * i387-tdep.c (print_i387_value, print_i387_ext,
3973 print_i387_status_word, print_i387_control_word): Add `struct
3974 ui_file *' argument and use it for output.
3975 (i387_print_float_info): Renamed from i387_float_info. Add
3976 `struct gdbarch *' and `struct ui_file *' arguments and use the
3977 latter for output.
3978 * i386-tdep.c: Include "i387-tdep.h".
3979 (i386_gdbarch_init): Set print_float_info.
3980 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3981 (FLOAT_INFO): Remove define.
3982
3983 2002-08-13 Michael Snyder <msnyder@redhat.com>
3984
3985 * mips-tdep.c (mips_push_arguments): Rename to
3986 mips_eabi_push_arguments, and tune for EABI.
3987 (MIPS_REGS_HAVE_HOME_P): Delete.
3988 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3989 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3990 Delete references to mips_regs_have_home_p.
3991
3992 2002-08-14 Keith Seitz <keiths@redhat.com>
3993
3994 * Makefile.in (install-gdbtk): Create insight plugin directory.
3995 Install plugins.tcl file.
3996
3997 2002-08-14 Keith Seitz <keiths@redhat.com>
3998
3999 * configure.in: Move SUBDIRS to near top of the file so that
4000 --enable options may add things to it.
4001 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4002 * configure: Regenerate.
4003
4004 2002-08-13 Michael Snyder <msnyder@redhat.com>
4005
4006 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4007 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4008 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4009
4010 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4011
4012 * vax-tdep.c (vax_get_saved_register): Delete function.
4013 (vax_gdbarch_init): Update.
4014 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4015 (ns32k_gdbarch_init): Update.
4016 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4017 (alpha_gdbarch_init): Update.
4018
4019 2002-08-13 Andrew Cagney <cagney@redhat.com>
4020
4021 * regcache.c (init_regcache_descr): Overallocate the
4022 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4023 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4024 nr_raw_registers.
4025 (set_register_cached): Add range checking assertions. Use
4026 current_regcache.
4027
4028 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4029
4030 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4031 numbers for MMX registers.
4032
4033 2002-08-13 Andrew Cagney <cagney@redhat.com>
4034
4035 * i386-tdep.c (i386_gdbarch_init): Use
4036 generic_unwind_get_saved_register.
4037
4038 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4039
4040 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4041 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4042 target vector.
4043 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4044 Delete. Add comment regarding this now-deleted target method.
4045
4046 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4047
4048 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4049 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4050 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4051 real PC and the page number (if it's within the memory bank window).
4052 (m68hc11_pseudo_register_write): Likewise when saving.
4053 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4054 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4055 (m68hc11_register_raw_size): And use 32-bit for it.
4056 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4057 16K memory bank is used by the prog; also use the virtual pc.
4058
4059 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4060
4061 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4062 (m68hc11_gdbarch_init): Install it in gdbarch.
4063 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4064 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4065 (MSYMBOL_SIZE): New for documentation.
4066 (insn_return_kind): Enum to specify how a function returns.
4067 (frame_extra_info): Cleanup and record the return mode.
4068 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4069 register in address computation.
4070 (m68hc11_get_return_insn): New to obtain the return instruction used
4071 by the function.
4072 (m68hc11_frame_init_saved_regs): Take into account the return
4073 instruction used by the function for far and interrupt functions.
4074 (m68hc11_init_extra_frame_info): Take into account page register.
4075 (m68hc11_frame_args_address): Adjust according to the return mode.
4076 (show_regs): Print page register only when it's used.
4077
4078 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4079
4080 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4081 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4082 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4083 registers.
4084 (m68hc11_register_raw_size): Likewise.
4085
4086 2002-08-13 Andrew Cagney <cagney@redhat.com>
4087
4088 * i386-tdep.c (i386_register_name): Handle mmx registers.
4089 (mmx_regnum_p): New function.
4090 (i386_mmx_names): New array.
4091 (mmx_num_regs): New variable.
4092 (i386_pseudo_register_read): New function.
4093 (i386_pseudo_register_write): New function.
4094 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4095
4096 * regcache.c (regcache_raw_read_unsigned): New function.
4097 (regcache_raw_read_signed): New function.
4098 * regcache.h (regcache_raw_read_unsigned): Declare.
4099 (regcache_raw_read_signed): Declare.
4100
4101 2002-08-13 Andrew Cagney <cagney@redhat.com>
4102
4103 * regcache.c (regcache_raw_read_as_address): Delete function.
4104 (regcache_cooked_read_signed): New function.
4105 (regcache_cooked_read_unsigned): New function.
4106 * regcache.h (regcache_cooked_read_signed): Declare.
4107 (regcache_cooked_read_unsigned): Declare.
4108 (regcache_raw_read_as_address): Delete declaration.
4109
4110 * blockframe.c (generic_read_register_dummy): Use
4111 regcache_cooked_read_unsigned.
4112 * i386-tdep.c (i386_extract_struct_value_address): Use
4113 regcache_cooked_read_unsigned.
4114
4115 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4116
4117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4118 double sizes according to ELF ABI flags.
4119 (gdbarch_tdep): Record elf_flags.
4120
4121 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4122
4123 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4124 (m6812_prolog): They can appear in 68HC12 function prologue.
4125 (m68hc11_frame_chain): Cleanup.
4126
4127 2002-08-12 Andrew Cagney <cagney@redhat.com>
4128
4129 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4130 declarations.
4131 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4132 (i386_linux_register_raw_size): Delete function.
4133 (i386_linux_init_abi): Update.
4134 * i386-tdep.c (i386_register_raw_size): Delete function.
4135 (i386_register_byte): Delete function.
4136 (i386_gdbarch_init): Update.
4137 (i386_register_size): Delete array.
4138 (i386_register_offset): Delete array.
4139
4140 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4141 (REGISTER_RAW_SIZE): Delete macro.
4142 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4143 (REGISTER_BYTE): Delete macro.
4144
4145 2002-08-11 Aidan Skinner <aidan@velvet.net>
4146
4147 * ada-lang.c (ada_lookup_partial_symbol)
4148 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4149 prototype names so that grep ^func works properly.
4150
4151 * ada-lang.c (ada_array_element_type)
4152 (ada_lookup_partial_symbol): Fix typos in parameter list.
4153
4154 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4155 Fix prototype names so that grep ^func works properly.
4156
4157 2002-08-10 Andrew Cagney <cagney@redhat.com>
4158 Elena Zannoni <ezannoni@redhat.com>
4159 Martin M. Hunt <hunt@redhat.com>
4160
4161 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4162 (build_builtin_type_vec128i): Set the vector bit.
4163 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4164 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4165 (build_builtin_type_vec64): New function.
4166 (build_builtin_type_vec64i): New function.
4167 (build_gdbtypes): Initialize builtin_type_vec64 and
4168 builtin_type_vec64i.
4169
4170 2002-08-09 Andrew Cagney <cagney@redhat.com>
4171
4172 * regcache.c (regcache_dump): Compare the register offset
4173 with REGISTER_BYTE.
4174 * arch-utils.c (generic_register_byte): New function.
4175 * arch-utils.h (generic_register_byte): Declare.
4176 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4177 * gdbarch.h, gdbarch.c: Regenerate.
4178
4179 2002-08-09 Andrew Cagney <cagney@redhat.com>
4180
4181 * regcache.c: Include "gdbcmd.h"
4182 (_initialize_regcache): Add commands "maintenance print
4183 registers", "maintenance print raw-registers" and "maintenance
4184 print cooked-registers".
4185 (enum regcache_dump_what): Define.
4186 (dump_endian_bytes): New function.
4187 (regcache_dump): New function.
4188 (regcache_print): New function.
4189 (maintenance_print_registers): New function.
4190 (maintenance_print_raw_registers): New function.
4191 (maintenance_print_cooked_registers): New function.
4192 * Makefile.in (regcache.o): Update dependencies.
4193
4194 2002-08-09 Michael Snyder <msnyder@redhat.com>
4195
4196 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4197 (mips_push_arguments): Correct some comments. Use paddr_nz
4198 for printing addresses in debug output. Replace static
4199 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4200 (mips_n32n64_push_arguments): New function, cloned from
4201 mips_push_arguments and tuned for the n32/n64 ABI.
4202 (mips_push_register): Buffer needs dynamic allocation.
4203 (mips_print_register): Ditto.
4204 (do_gp_register_row): Ditto.
4205 (mips_store_return_value): Ditto.
4206 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4207
4208 2002-08-09 Don Howard <dhoward@redhat.com>
4209
4210 * memattr.c (mem_info_command): Print special case of upper bound
4211 as max CORE_ADDR + 1.
4212
4213 2002-08-08 Michael Snyder <msnyder@redhat.com>
4214
4215 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4216 returns structs by ref if they're too big to fit in two registers.
4217
4218 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4219
4220 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4221 saved regs value.
4222 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4223 mips_find_saved_regs().
4224 (mips_pop_frame): Likewise.
4225
4226 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4227
4228 * blockframe.c (frame_saved_regs_register_unwind): Revise
4229 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4230 frames are in use.
4231
4232 2002-08-09 Grace Sainsbury <graces@redhat.com>
4233
4234 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4235 T-packets; the 'a' is not taken as a register number.
4236 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4237 (remote_stopped_data_address): New functions; add to target
4238 vector.
4239 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4240 prototypes to match other implementations of this
4241 function. replace integer argument with pointer -- the length
4242 field in the Z-packet is the length of what is pointed to or 1 if
4243 pointer is null. Add to target vector.
4244 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4245 target vector.
4246
4247 From Mark Salter:
4248 * remote.c (remote_wait): Add support to extract optional
4249 watchpoint information from T-packet. Ignore unrecognized
4250 optional info in T-packet.
4251 (remote_async_wait): Ditto.
4252
4253 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4254
4255 * cli/cli-dump.c: Change fopen modes to use binary open modes
4256 as defined in include/fopen-bin.h throughout.
4257
4258 2002-08-08 Michael Snyder <msnyder@redhat.com>
4259
4260 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4261
4262 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4263
4264 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4265 assertion failure by returning early after a warning.
4266
4267 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4268
4269 * mips-tdep.c (mips_find_saved_regs): Make static.
4270 (mips_frame_init_saved_regs): New function.
4271 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4272 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4273 (mips_find_saved_regs): Delete declaration.
4274
4275 2002-08-08 Grace Sainsbury <graces@redhat.com>
4276
4277 * remote.c (remote_wait, remote_async_wait): Change
4278 thread_num from int to ULONGEST.
4279 (unpack_varlen_hex): Change result parameter from
4280 int * to ULONGEST *.
4281
4282 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4283
4284 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4285 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4286 powerpc*-*-*.
4287 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4288
4289 2002-08-08 Andrew Cagney <cagney@redhat.com>
4290
4291 * gcore.c (override_derive_stack_segment): Delete variable.
4292 (preempt_derive_stack_segment): Delete function.
4293 (derive_stack_segment): Delete function.
4294 (default_derive_stack_segment): Renamed to derive_stack_segment.
4295 (override_derive_heap_segment): Delete variable.
4296 (preempt_derive_heap_segment): Delete function.
4297 (derive_heap_segment): Delete function.
4298 (default_derive_heap_segment): Rename to derive_heap_segment.
4299
4300 2002-08-06 Michael Snyder <msnyder@redhat.com>
4301
4302 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4303 * mips-tdep.c (mips_EABI_use_struct_convention,
4304 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4305 New functions. (mips_use_struct_convention): Delete.
4306 (mips_gdbarch_init): set use_gdbarch_convention.
4307
4308 2002-08-06 Michael Snyder <msnyder@redhat.com>
4309
4310 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4311 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4312 mips_o32_reg_struct_has_addr): New functions.
4313 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4314
4315 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4316
4317 * regcache.c (pseudo_register): Delete function.
4318 (fetch_register): Delete function.
4319 (store_register): Delete function.
4320 (regcache_raw_read, legacy_read_register_gen): Use
4321 target_fetch_registers instead of fetch_register.
4322 (legacy_write_register_gen, regcache_raw_write): Use
4323 target_store_register instead of store_register.
4324 (write_register_bytes): Ditto.
4325
4326 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4327 (STORE_PSEUDO_REGISTER): Delete.
4328 * gdbarch.h, gdbarch.c: Regenerate.
4329
4330 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4331
4332 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4333 write dump file binary.
4334
4335 2002-08-05 Michael Snyder <msnyder@redhat.com>
4336
4337 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4338 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4339 (mips_gdbarch_init): Set N32 target to be mips64.
4340
4341 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4342
4343 * frame.c (find_saved_register): Break out of loop once saved
4344 register address is found. Don't mention sparc in loop comment
4345 anymore.
4346
4347 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4348
4349 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4350 mips_default_saved_regsize to 8.
4351
4352 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4353
4354 * gcore.c: Do not include <sys/procfs.h>.
4355 * Makefile.in (gcore.o): Update dependencies.
4356
4357 2002-08-06 Andrew Cagney <cagney@redhat.com>
4358
4359 * configure.tgt: Make arc-*-* obsolete.
4360 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4361 * MAINTAINERS: Make arc-elf obsolete.
4362 * arc-tdep.c: Make file obsolete.
4363 * config/arc/arc.mt: Ditto.
4364 * config/arc/tm-arc.h: Ditto.
4365
4366 2002-08-05 Theodore A. Roth <troth@verinet.com>
4367
4368 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4369
4370 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4371
4372 * mcore-tdep.c (mcore_gdbarch_init): Use
4373 generic_unwind_get_saved_register instead of
4374 generic_get_saved_register.
4375 * v850-tdep.c (v850_gdbarch_init): Ditto.
4376 * frv-tdep.c (frv_gdbarch_init): Ditto.
4377 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4378 * s390-tdep.c (s390_gdbarch_init): Ditto.
4379 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4380 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4381 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4382
4383 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4384
4385 * objfiles.h: Add missing #include "symfile.h"
4386
4387 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4388
4389 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4390
4391 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4392 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4393 of FIELD_BITSIZE.
4394
4395 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4396
4397 * NEWS: Cleanup and nitpick.
4398
4399 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4400
4401 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4402
4403 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4404
4405 * Makefile.in (gdbtk-bp.o): Update dependencies.
4406 (gdbtk-register.o): Ditto.
4407 (gdbtk-varobj.o): Ditto.
4408
4409 2002-08-03 Andrew Cagney <cagney@redhat.com>
4410
4411 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4412 m68hc11_fetch_pseudo_register.
4413 (m68hc11_pseudo_register_write): Replace
4414 m68hc11_store_pseudo_register.
4415 (m68hc11_gdbarch_init): Update.
4416
4417 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4418
4419 * gdbarch.sh: Include "gdb_string.h".
4420 * gdbarch.c: Regenerate.
4421
4422 * regcache.c: Include "gdb_string.h".
4423 * ax-general.c: Ditto.
4424 * varobj.c: Ditto.
4425 * std-regs.c: Ditto.
4426 * fbsd-proc.c: Ditto.
4427 * thread.c: Ditto.
4428
4429 * Makefile.in (regcache.o): Update dependencies.
4430 (thread.o, gdbarch.o): Ditto.
4431 (ax-general.o, gdbarch.o): Ditto.
4432 (varobj.o, std-regs.o): Ditto.
4433 (fbsd-proc.o): Specify dependencies.
4434
4435 2002-08-02 Andrew Cagney <cagney@redhat.com>
4436
4437 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4438 regnum.
4439 (regcache_cooked_write): Ditto.
4440
4441 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4442
4443 * regcache.c (regcache_cooked_read): New function.
4444 (regcache_cooked_write): New function.
4445 (read_register_gen): Rewrite using regcache_cooked_read.
4446 (write_register_gen): Rewrite using regcache_cooked_write.
4447
4448 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4449 Declare.
4450
4451 2002-08-02 Andrew Cagney <cagney@redhat.com>
4452
4453 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4454 Replace the architecture methods register_read and register_write.
4455 * gdbarch.h, gdbarch.c: Regenerate.
4456 * regcache.c (init_regcache_descr): Update.
4457 (read_register_gen): Update.
4458 (write_register_gen): Update.
4459 (supply_register): Update comment.
4460
4461 * sh-tdep.c (sh_gdbarch_init): Update.
4462 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4463 `regcache' and `gdbarch' parameters. Make `buffer' a void
4464 pointer. Update code.
4465 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4466 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4467 void pointer. Update code.
4468 (sh64_register_write): Delete.
4469 (sh4_register_read): Delete.
4470 (sh64_register_read): Delete.
4471 (sh4_register_write): Delete.
4472 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4473 void pointer, `to' parameter a void pointer.
4474 (sh_sh64_register_convert_to_raw): Ditto.
4475
4476 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4477
4478 * mips-tdep.c (mips_register_virtual_type): Use architecture
4479 invariant return values.
4480
4481 2002-08-01 Andrew Cagney <cagney@redhat.com>
4482
4483 * linux-proc.c: Include "gdb_string.h".
4484 * Makefile.in (linux-proc.o): Update dependency list.
4485
4486 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4487
4488 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4489 comment.
4490
4491 2002-08-01 Grace Sainsbury <graces@redhat.com>
4492
4493 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4494 to_insert_watchpoint, to_remove_watchpoint,
4495 to_stopped_by_watchpoint, to_stopped_data_address,
4496 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4497 target vecctor. Define their corresponding macros so they call
4498 them.
4499
4500 * target.c: Add default and debug versions of for
4501 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4502 to_insert_watchpoint, to_remove_watchpoint,
4503 to_stopped_by_watchpoint, to_stopped_data_address,
4504 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4505
4506 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4507
4508 * mips-tdep.c (mips_register_virtual_type): New function.
4509 (mips_gdbarch_init): Register mips_register_virtual_type()
4510 with gdbarch machinery.
4511 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4512 this file instead of tm-bigmips.h.
4513 (MIPS_REGSIZE): Delete this macro.
4514 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4515 multiarch version in mips-tdep.c will be found.
4516
4517 2002-08-01 Andrew Cagney <cagney@redhat.com>
4518
4519 * NEWS: Menion that CHILL has been made obsolete.
4520
4521 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4522 * stabsread.c (read_range_type): Ditto.
4523 * gdbtypes.h: Ditto.
4524 * language.c (binop_type_check): Ditto.
4525 (binop_result_type): Ditto.
4526 (integral_type): Ditto.
4527 (character_type): Ditto.
4528 (string_type): Ditto.
4529 (boolean_type): Ditto.
4530 (structured_type): Ditto.
4531 (lang_bool_type): Ditto.
4532 (binop_type_check): Ditto.
4533 * language.h (_LANG_chill): Ditto.
4534 * dwarfread.c (set_cu_language): Ditto.
4535 * dwarfread.c (CHILL_PRODUCER): Ditto.
4536 * dwarfread.c (handle_producer): Ditto.
4537 * expression.h (enum exp_opcode): Ditto.
4538 * eval.c: Ditto for comments.
4539 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4540 * expprint.c (print_subexp): Ditto.
4541 (print_subexp): Ditto.
4542 * valops.c (value_cast): Ditto.
4543 (search_struct_field): Ditto.
4544 * value.h (COERCE_VARYING_ARRAY): Ditto.
4545 * symfile.c (init_filename_language_table): Ditto.
4546 (add_psymbol_with_dem_name_to_list): Ditto.
4547 * valarith.c (value_binop): Ditto.
4548 (value_neg): Ditto.
4549 * valops.c (value_slice): Ditto.
4550 * symtab.h (union language_specific): Ditto.
4551 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4552 (SYMBOL_DEMANGLED_NAME): Ditto.
4553 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4554 * defs.h (enum language): Ditto.
4555 * symtab.c (got_symtab): Ditto.
4556 * utils.c (fprintf_symbol_filtered): Ditto.
4557
4558 * ch-typeprint.c: Make file obsolete.
4559 * ch-valprint.c: Make file obsolete.
4560 * ch-lang.h: Make file obsolete.
4561 * ch-exp.c: Make file obsolete.
4562 * ch-lang.c: Make file obsolete.
4563
4564 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4565 CHILL_LIB.
4566 (TARGET_FLAGS_TO_PASS): Ditto.
4567 (CHILLFLAGS): Obsolete.
4568 (CHILL): Obsolete.
4569 (CHILL_FOR_TARGET): Obsolete.
4570 (CHILL_LIB): Obsolete.
4571 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4572 ch-valprint.c.
4573 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4574 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4575 ch-lang.o.
4576 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4577 targets.
4578
4579 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4580
4581 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4582 This does not change anything at the moment, but will be helpful
4583 later when full Ada support is integrated.
4584
4585 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4586
4587 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4588 help message.
4589
4590 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4591
4592 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4593 and save it in a local variable. Use variable in later test.
4594
4595 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4596
4597 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4598 test. (Thanks to Daniel Jacobowitz.)
4599
4600 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4601
4602 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4603 (mips_abi_strings): Add "n64".
4604 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4605
4606 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4607
4608 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4609 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4610
4611 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4612
4613 * utils.c (host_pointer_to_address, address_to_host_pointer):
4614 Use gdb_assert() instead of explicit call to internal_error().
4615
4616 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4617
4618 * Makefile.in (rs6000-nat.o): Update dependencies.
4619
4620 From Nicholas Duffek:
4621 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4622 (aix-thread.o): New rule.
4623 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4624 * config/powerpc/aix432.mh: New file.
4625
4626 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4627
4628 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4629 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4630 (fetch_core_registers, ppc_linux_supply_gregset)
4631 (ppc_linux_supply_fpregset): New functions.
4632 (ppc_linux_regset_core_fns): New.
4633 (_initialize_ppc_linux_tdep): Call add_core_fns.
4634 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4635 and ppc_linux_supply_gregset.
4636 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4637 (supply_fpregset): Call ppc_linux_supply_fpregset.
4638 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4639 corelow.o.
4640 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4641
4642 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4643
4644 * symtab.c (lookup_symbol): Demangle before lowercasing.
4645
4646 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4647
4648 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4649 declaration.
4650 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4651 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4652 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4653 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4654 "gdb_string.h".
4655 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4656 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4657 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4658 (avr-tdep.o, mon960-rom.o): Ditto.
4659 (aout_stabs_gnu_h): Define.
4660 (symtab_h): Remove $(gdb_obstack_h).
4661
4662 2002-07-30 Jim Blandy <jimb@redhat.com>
4663
4664 Patch from David Carlton <carlton@math.stanford.edu>:
4665 * gdbinit.in: Move the `dir' commands that add GDB's own source
4666 directory to the search path to the end, so that the `gdb' source
4667 directory will be searched first.
4668
4669 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4670
4671 * gdb_obstack.h: New file.
4672 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4673 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4674 * objfiles.h: Include "gdb_obstack.h".
4675 * Makefile.in (gdb_obstack_h): Define.
4676 (symtab_h): Add $(gdb_obstack_h).
4677 (objfiles_h): Add $(gdb_obstack_h).
4678
4679 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4680 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4681 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4682 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4683 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4684 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4685 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4686 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4687
4688 * Makefile.in (bcache.o): Update dependencies.
4689 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4690 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4691 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4692 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4693 (stabsread.o, symfile.o, symmisc.o): Ditto.
4694 (symtab.o, typeprint.o, macroexp.o): Ditto.
4695 (macrotab.o, mdebugread.o): Ditto.
4696 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4697 (coff_ecoff_h, aout_aout64_h): Define.
4698 (aout_stabs_gnu_h, libaout_h): Define.
4699
4700 2002-07-29 Andrew Cagney <cagney@redhat.com>
4701
4702 * regcache.c (struct regcache_descr): Rename nr_registers to
4703 nr_cooked_registers. Revise comments describing the structure
4704 member fields.
4705 (init_regcache_descr): Update.
4706 (init_legacy_regcache_descr): Update.
4707 (read_register_gen, write_register_gen): When a cooked register in
4708 the raw register range, directly access the value from the raw
4709 register cache.
4710
4711 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4712
4713 * z8k-tdep.c: Do not include "obstack.h".
4714 * h8300-tdep.c, h8500-tdep.c: Ditto.
4715 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4716 * valprint.c, v850-tdep.c: Ditto.
4717 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4718 * mn10200-tdep.c: Ditto.
4719
4720 * Makefile.in (z8k-tdep.o): Update dependencies.
4721 (m68hc11-tdep.o, valprint.o): Ditto.
4722 (v850-tdep.o, d10v-tdep.o): Ditto.
4723 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4724 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4725 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4726 (sh_opc_h, gdb_sim_sh_h): Define.
4727 (elf_sh_h, elf_bfd_h): Define.
4728 (opcode_m68hc11_h): Define.
4729 (OPCODES_SRC, OPCODES_DIR): define.
4730 (OPCODES): Use $(OPCODES_DIR).
4731 (gdb_sim_d10v_h): Rename sim_d10v_h.
4732 (gdb_sim_arm_h): Rename sim_arm_h.
4733
4734 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4735
4736 * utils.c (host_pointer_to_address, address_to_host_pointer):
4737 Change internal_error() message to indicate function responsible
4738 for the error.
4739
4740 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4741
4742 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4743 calls to local_hex_string_custom().
4744
4745 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4746
4747 * irix5-nat.c: Move IRIX shared library support from here...
4748 * solib-irix.c: ...to here. Revised substantially to work with
4749 generic solib framework.
4750
4751 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4752 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4753 * mips-irix-tdep.c: New file.
4754
4755 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4756 (mips-irix-tdep.o, solib-irix.o): New rules.
4757 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4758 solib-irix.o.
4759 * config/mips/irix6.mt (TDEPFILES): Likewise.
4760 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4761
4762 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4763
4764 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4765 disabled (via ``#if 0'') includes.
4766
4767 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4768
4769 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4770 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4771 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4772 Add support for the fpscr register.
4773 * rs6000-nat.c (regmap, fetch_inferior_registers)
4774 (store_inferior_registers, fetch_core_registers): Likewise.
4775
4776 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4777
4778 * rs6000-nat.c (language.h): Include.
4779 (special_regs): Delete this array.
4780 (regmap): New function.
4781 (fetch_register, store_register): Use regmap() to map gdb
4782 register numbers to ptrace register numbers. Also, use
4783 outputs from regmap() to make decisions regarding type of
4784 ptrace() call to make. In particular, don't compare against
4785 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4786 (fetch_inferior_registers, store_inferior_registers): Where
4787 possible, obtain register numbers from tdep struct. Don't
4788 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4789 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4790 (LAST_UISA_SP_REGNUM): Delete.
4791
4792 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4793
4794 * rs6000-nat.c (ppc-tdep.h): Include.
4795 (fetch_registers, store_register, fetch_core_registers): Don't
4796 access registers[] directly. Instead, use supply_register() or
4797 regcache_collect() as appropriate.
4798 (find_toc_address): Format hex address with local_hex_string().
4799
4800 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4801
4802 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4803 bfd/elf32-frv.c.
4804
4805 2002-07-24 Tom Tromey <tromey@redhat.com>
4806
4807 * jv-exp.y: Marked all strings with _().
4808 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4809 internal_error.
4810 (MethodInvocation, CastExpression, parse_number, yyerror,
4811 java_type_from_name, push_expression_name, yylex): Typo fixes.
4812
4813 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4814
4815 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4816 (tee_file_flush, tee_file_write, tee_file_fputs)
4817 (tee_file_isatty): New.
4818 * ui-file.h (tee_file_new): Add prototype.
4819
4820 2002-07-24 Aidan Skinner <aidan@velvet.net>
4821
4822 * ada-lang.c: Change k&r style function definitions to prototyped
4823 form.
4824 * ada-typeprint.c: Change k&r style function definitions to prototyped
4825 form.
4826 * ada-valprint.c: Change k&r style function definitions to prototyped
4827 form.
4828
4829 2002-07-24 Andrew Cagney <cagney@redhat.com>
4830
4831 * README: Remove reference to remote-bug.
4832 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4833 remote-bug.c.
4834 (m88k-nat.o): Delete rule.
4835 (m88k-tdep.o): Delete rule.
4836 (remote-bug.o): Delete rule.
4837 * MAINTAINERS: Mark as obsolete.
4838 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4839 * m88k-tdep.c: Make file obsolete.
4840 * config/m88k/m88k.mh: Ditto.
4841 * config/m88k/delta88v4.mh: Ditto.
4842 * config/m88k/delta88v4.mt: Ditto.
4843 * config/m88k/delta88.mt: Ditto.
4844 * config/m88k/delta88.mh: Ditto.
4845 * remote-bug.c: Ditto.
4846 * config/m88k/tm-delta88.h: Ditto.
4847 * config/m88k/nm-delta88v4.h: Ditto.
4848 * config/m88k/xm-delta88.h: Ditto.
4849 * config/m88k/xm-dgux.h: Ditto.
4850 * config/m88k/tm-m88k.h: Ditto.
4851 * config/m88k/nm-m88k.h: Ditto.
4852 * config/m88k/tm-delta88v4.h: Ditto.
4853 * m88k-nat.c: Ditto.
4854 * cxux-nat.c: Ditto.
4855 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4856 and m88*-*-* obsolete.
4857 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4858 m88*-*-* obsolete.
4859
4860 2002-07-24 Andrew Cagney <cagney@redhat.com>
4861
4862 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4863 constant. Same for local pointer variables.
4864 (extract_signed_integer): Ditto.
4865 * defs.h (extract_unsigned_integer): Update.
4866 (extract_signed_integer): Update.
4867
4868 2002-07-24 Andrew Cagney <cagney@redhat.com>
4869
4870 * regcache.c (regcache_raw_write): Change buf parameter to a
4871 constant void pointer.
4872 (regcache_raw_read): Change buf parameter to a void pointer.
4873 (legacy_write_register_gen): Change myaddr parameter a constant
4874 void pointer.
4875 (supply_register): Change val parameter to a const void pointer.
4876 * regcache.h (regcache_raw_write): Update declaration.
4877 (regcache_raw_read): Update declaration.
4878 (supply_register): Update declaration.
4879
4880 2002-07-24 Tom Tromey <tromey@redhat.com>
4881
4882 * defs.h (gdb_readline_wrapper): Declare.
4883 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4884 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4885 * top.c (gdb_readline_wrapper): New function.
4886 (command_line_input): Use it.
4887
4888 2002-07-24 Andrew Cagney <cagney@redhat.com>
4889
4890 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4891 regcache_read and regcache_write.
4892 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4893 * regcache.c: Update.
4894 * sh-tdep.c (sh64_push_arguments): Update comment.
4895 (sh_pseudo_register_read): Update.
4896 (sh_pseudo_register_write): Update.
4897 (sh4_register_read): Update.
4898 (sh4_register_write): Update.
4899 (sh64_pseudo_register_read): Update.
4900 (sh64_pseudo_register_write): Update.
4901 (sh64_register_read): Update.
4902 (sh64_register_write): Update.
4903 * i386-tdep.c (i386_extract_return_value): Update.
4904 (i386_extract_struct_value_address): Update.
4905 (i386_extract_return_value): Update.
4906 * blockframe.c (generic_read_register_dummy): Update.
4907 (generic_call_dummy_register_unwind): Update
4908 * infrun.c (write_inferior_status_register): Update.
4909
4910 2002-07-23 Jim Blandy <jimb@redhat.com>
4911
4912 * parser-defs.h (expression_context_pc): Make this extern.
4913 (Thanks to Michael Snyder.)
4914
4915 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4916
4917 GDB 5.2.1 released from 5.2 branch.
4918 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4919 * README: Update to mention 5.2.1.
4920
4921 2002-07-23 Mark Salter <msalter@redhat.com>
4922
4923 * remote.c (remote_read_bytes): Fix check for error.
4924
4925 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4926
4927 * aix-thread.c (language.h): Include.
4928 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4929 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4930 Print newlines at end of debug messages.
4931 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4932 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4933
4934 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4935
4936 * aix-thread.c (ppc-tdep.h): Include.
4937 (special_register_p): New function.
4938 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4939 (store_regs_user_thread): Use register number information from
4940 gdbarch_tdep struct instead of hardcoded offsets relative to
4941 FIRST_UISA_SP_REGNUM.
4942 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4943 special_register_p() instead of using FPLAST_REGNUM and
4944 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4945 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4946 will be MQ's register number.
4947
4948 2002-07-22 Michael Snyder <msnyder@redhat.com>
4949
4950 * aix-thread.c (ops): Rename to aix_thread_ops.
4951 (base_ops): Rename to base_target.
4952 (ops_attach): Rename to aix_thread_attach.
4953 (ops_detach): Rename to aix_thread_detach.
4954 (ops_resume): Rename to aix_thread_detach.
4955 (ops_wait): Rename to aix_thread_wait.
4956 (ops_kill): Rename to aix_thread_kill.
4957 (init_ops): Rename to init_aix_thread_ops.
4958 (ops_fetch_register): Rename to aix_thread_fetch_register.
4959 (ops_store_register): Rename to aix_thread_store_register.
4960 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4961 (ops_thread_alive): Rename to aix_thread_thread_alive.
4962 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4963 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4964 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4965 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4966 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4967 (store_regs_lib): Rename to store_regs_user_thread.
4968 (store_regs_kern): Rename to store_regs_kernel_thread.
4969
4970 2002-07-22 Michael Snyder <msnyder@redhat.com>
4971
4972 * aix-thread.c (ops_prepare_to_store): Eliminate.
4973 (init_ops): Don't initialize ops.prepare_to_store.
4974 (store_regs_kern): Pre-fetch register buffers from child,
4975 because some registers may not be in the cache. Copy
4976 regs from register cache only if they are cached.
4977 (store_regs_lib): Copy regs from register cache only
4978 if they are cached.
4979 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4980 fill_gprs64): Ditto.
4981
4982 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4983
4984 * aix-thread.c (gdb_assert.h): Include.
4985 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4986 register sizes (from register cache) match size of buffer holding
4987 register data.
4988 (fill_sprs32): Change parameter types to match those in the ptrace()
4989 buffer.
4990 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4991 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4992
4993 2002-07-22 Michael Snyder <msnyder@redhat.com>
4994
4995 * aix-thread.c (supply_sprs64): Cosmetic change.
4996 (supply_sprs32): Cosmetic change.
4997 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4998 (fill_sprs64): Use regcache_collect instead of read_register.
4999 (store_regs_lib): Use regcache_collect instead of
5000 read_register. Use fill_sprs32 instead of fill_sprs64,
5001 if debugging a 32-bit architecture.
5002 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5003 out of the register cache, instead of passing a pointer into
5004 the register cache directly to ptrace. Use regcache_collect
5005 insteaad of read_register.
5006 (ops_prepare_to_store): Use target_read_registers instead
5007 of read_register_bytes.
5008
5009 2002-07-20 Aidan Skinner <aidan@velvet.net>
5010
5011 * MAINTAINERS: Add self under write after approval.
5012
5013 2002-07-20 Aidan Skinner <aidan@velvet.net>
5014
5015 * ada-tasks.c: Change k&r style function definitions to prototyped
5016 form.
5017
5018 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5019
5020 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5021 * x86-64-tdep.c: Include "objfiles.h".
5022 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5023 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5024
5025 2002-07-17 Michal Ludvig <michal@suse.cz>
5026
5027 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5028 (update_context): Initialise cfa variable.
5029
5030 2002-07-17 Michael Snyder <msnyder@redhat.com>
5031
5032 * aix-thread.c: Shorten some long lines.
5033 Bring comments into line with code spec.
5034
5035 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5036
5037 * infrun.c: Re-indent using gdb_indent.sh.
5038
5039 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5040
5041 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5042 Leave the indentation temporarily untouched, to minimize the diffs.
5043
5044 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5045
5046 * stabsread.c: Make os9k sections of the code obsolete,
5047 for real this time.
5048 * stabsread.h: Make os9k sections of the code obsolete.
5049
5050 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5051
5052 * linux-low.c (regsets_store_inferior_registers): Add free()
5053 at the end of a loop to prevent memory leak.
5054 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5055 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5056 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5057 line a comment.
5058 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5059
5060 2002-07-17 Jim Blandy <jimb@redhat.com>
5061
5062 * macrocmd.c (info_macro_command): Remove newline from error
5063 message.
5064
5065 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5066
5067 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5068 (sh_gdbarch_init): Use it for sh-dsp.
5069
5070 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5071
5072 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5073 64-bit DWARF2 format.
5074
5075 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5076
5077 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5078 <sys/proc.h> when not available.
5079
5080 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5081
5082 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5083 * stabsread.c: Make os9k sections of the code obsolete.
5084 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5085 * config/i386/i386os9k.mt: Make file obsolete.
5086 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5087 (COMMON_OBS): Remove os9kread.o
5088 (SFILES): Remove os9kread.c.
5089 (os9kread.o, remote-os9k.o): Make target obsolete.
5090 * remote-os9k.c: Make file obsolete.
5091 * os9kread.c: Make file obsolete.
5092 * Makefile.in
5093
5094 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5095
5096 * NEWS: Mention that the FR30 has been made obsolete.
5097 * fr30-tdep.c: Make file obsolete.
5098 * config/fr30/tm-fr30.h: Ditto.
5099 * config/fr30/fr30.mt: Ditto.
5100 * configure.tgt: Make fr30-*-elf obsolete.
5101 * MAINTAINERS: Make fr30-elf obsolete.
5102
5103 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5104
5105 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5106 found is not inside a section.
5107
5108 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5109
5110 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5111 strerror().
5112 (pdc_realloc): Use xrealloc() instead of realloc().
5113
5114 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5115
5116 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5117 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5118 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5119 macros.
5120
5121 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5122
5123 * aix-thread.c (ptrace_check): Eliminate goto.
5124 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5125 problem.
5126
5127 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5128
5129 * aix-thread.c (gdbcmd.h): Include.
5130 (DEBUG, DBG, DBG2, dbg): Eliminate.
5131 (debug_aix_thread): New static global.
5132 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5133 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5134 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5135 invocations to DBG and DBG2 macros to test against
5136 ``debug_aix_thread'' and call fprintf_unfiltered().
5137 (_initialize_aix_thread): Add new command "set debug aix-thread".
5138
5139 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5140
5141 From Gerhard Tonn <TON@de.ibm.com>:
5142 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5143 instead of supply_register.
5144
5145 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5146
5147 * dwarf2cfi.c: Include "gdb_assert.h".
5148 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5149 non-NULL.
5150 (update_context): Do not use __func__. Add missing ``break''.
5151 (update_context): Do not use __func__.
5152
5153 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5154
5155 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5156 and its setting. Set gdbarch instruction printing functions
5157 directly. For non-rs6000 case use new function
5158 gdb_print_insn_powerpc.
5159 (gdb_print_insn_powerpc): New function.
5160
5161 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5162
5163 * NEWS: Mention that the d30v has been marked obsolete.
5164 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5165 * configure.tgt: Mark d30v-*-* as obsolete.
5166 * d30v-tdep.c: Mark file as obsolete.
5167 * config/d30v/d30v.mt: Ditto.
5168 * config/d30v/tm-d30v.h: Ditto.
5169
5170 2002-07-13 Aidan Skinner <aidan@velvet.net>
5171
5172 * ada-tasks.c (add_task_entry): replace calls to
5173 malloc() with xmalloc
5174 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5175
5176 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5177 ada_finish_decode_line_1, all_sals_for_line
5178 ada_breakpoint_rewrite): replace calls to free() with xfree()
5179
5180 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5181
5182 From Nicholas Duffek (with minor changes by Martin Hunt,
5183 Louis Hamilton, and Kevin Buettner):
5184 * aix-thread.c: New file.
5185
5186 2002-07-12 Petr Sorfa <petrs@caldera.com>
5187
5188 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5189 complaint for invalid attribute class or form.
5190 (read_func_scope): DW_AT_frame_base
5191 better handling of DW_AT_block*.
5192 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5193 better handling of DW_AT_block*.
5194 (read_common_block): DW_AT_location
5195 better handling of DW_AT_block*.
5196 (read_partial_die): DW_AT_location better handling
5197 of DW_AT_block*.
5198 (new_symbol): DW_AT_external better handling of
5199 DW_AT_block*. Proper initialization of variable
5200 "addr".
5201 (attr_form_is_block): New function that returns true
5202 if the attribute's form is of DW_FORM_block*.
5203
5204 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5205
5206 * valops.c (find_method_list): Remove comment about
5207 removed STATIC_MEMFUNCP argument.
5208 (value_find_oload_method_list): Likewise.
5209
5210 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5211
5212 From Nicholas Duffek:
5213 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5214 target_new_objfile_hook.
5215
5216 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5217
5218 From Nicholas Duffek:
5219 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5220 csect.
5221
5222 2002-07-12 Andrew Cagney <cagney@redhat.com>
5223
5224 * MAINTAINERS: Mention --enable-sim-build-warnings.
5225 (m68hc11-elf): Disable sim build warnings.
5226 (m32r-elf): Mark as broken obsolete candidate.
5227 (x86_64-linux-gnu): Mark as buildable with -Werror.
5228 (arm-elf): Change -w to ``,'' which enables warnings but not
5229 -Werror.
5230
5231 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5232
5233 * bcache.h: Update copyright.
5234 (struct bstring, struct bcache): Move definition to "bcache.c".
5235 Replaced by opaque declaration.
5236 (bcache_xfree): Replace free_bcache.
5237 (bcache_xmalloc, bcache_memory_used): Declare.
5238
5239 * bcache.c: Update copyright.
5240 (struct bstring, struct bcache): Moved to here from "bcache.h".
5241 Update comments.
5242 (bcache_xmalloc, bcache_memory_used): New functions.
5243 (bcache_xfree): Replace function free_bcache.
5244
5245 * Makefile.in (objfiles.o): Add $(bcache_h).
5246 (objfiles_h): Remove $(bcache_h).
5247 (symfile.o): Add $(bcache_h).
5248
5249 * symmisc.c: Update copyright.
5250 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5251 (print_objfile_statistics): Use bcache_memory_used.
5252
5253 * symfile.c: Include "bcache.h".
5254 (reread_symbols): Use bcache_xfree.
5255 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5256 (add_psymbol_to_list): Pass psymbol_cache by value.
5257 (add_psymbol_with_dem_name_to_list): Ditto.
5258
5259 * objfiles.h: Update copyright.
5260 (struct bcache): Declare opaque. Do not include "bcache.h".
5261 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5262 bcache'' pointers.
5263 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5264
5265 * objfiles.c: Include "bcache.h". Update copyright.
5266 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5267 macro_cache.
5268 (free_objfile): Use bcache_xfree.
5269
5270 2002-07-11 Grace Sainsbury <graces@redhat.com>
5271
5272 * monitor.c (monitor_fetch_register): Make name a constant.
5273 (monitor_store_register): Same.
5274
5275 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5276
5277 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5278 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5279 (finish_block) For non-function blocks, hash the symbol table. For
5280 function blocks, mark the symbol table as unhashed.
5281 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5282 (msymbol_hash_iw): Likewise.
5283 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5284 value.
5285 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5286 (lookup_minimal_symbol): Likewise for both.
5287 * symtab.h (struct block): Add `hashtable' flag. Comment the
5288 hashtable.
5289 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5290 (ALL_BLOCK_SYMBOLS): Update.
5291 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5292 (struct symbol): Add `hash_next' pointer.
5293 * symtab.c (lookup_block_symbol): Search using the hash table when
5294 possible.
5295 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5296 (search_symbols, find_addr_symbol): Likewise.
5297
5298 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5299 (read_dst_symtab): Likewise.
5300 * jv-lang.c (get_java_class_symtab): Likewise.
5301 * mdebugread.c: Include "gdb_assert.h".
5302 (shrink_block): Assert that the block being modified is not hashed.
5303 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5304 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5305 symbols.
5306 (dump_symtab): Recognize hashed blocks.
5307 * printcmd.c (print_frame_args): Assert that function blocks do not
5308 have hashed symbol tables.
5309 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5310 (fill_in_ada_prototype, debug_print_block): Likewise.
5311 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5312
5313 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5314
5315 * stack.c (print_frame): Use result of frame_address_in_block()
5316 instead of fi->pc when evaluating symbols.
5317 (backtrace_command_1): Ditto.
5318
5319 2002-07-11 Andrew Cagney <cagney@redhat.com>
5320
5321 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5322 Make static.
5323
5324 * arm-tdep.c (arm_register_name): Make return type constant.
5325
5326 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5327
5328 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5329 prototype.
5330 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5331 * s390-tdep.c (s390_fp_regnum): Ditto.
5332 (s390_read_fp): Ditto.
5333 (s390_pop_frame): Ditto.
5334 (_initialize_s390_tdep): Ditto.
5335 * remote.c (get_remote_state): Ditto.
5336 * procfs.c (mappingflags): Ditto.
5337 * memattr.c (_initialize_mem): Ditto.
5338 * mcore-tdep.c (mcore_pop_frame): Ditto.
5339 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5340 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5341 * language.c (set_case_str): Ditto.
5342 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5343 * frv-tdep.c (new_variant): Ditto.
5344 (frv_stopped_data_address): Ditto.
5345 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5346 (context_alloc): Ditto.
5347 (frame_state_alloc): Ditto.
5348 (unwind_tmp_obstack_init): Ditto.
5349 (unwind_tmp_obstack_free): Ditto.
5350 (cfi_read_fp): Ditto.
5351 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5352 (cris_pop_frame): Ditto.
5353 * c-lang.c (scanning_macro_expansion): Ditto.
5354 (finished_macro_expansion): Ditto.
5355 (c_preprocess_and_parse): Ditto.
5356 * gdbarch.sh: Ditto.
5357 * gdbarch.h, gdbarch.c: Regenerate.
5358 * config/mn10200/tm-mn10200.h: Adjust indentation.
5359 * target.c: Adjust indentation.
5360 * symtab.h: Adjust indentation.
5361 * stabsread.h: Adjust indentation.
5362 * remote-es.c: Adjust indentation.
5363 * os9kread.c: Adjust indentation.
5364
5365 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5366
5367 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5368 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5369
5370 2002-07-10 Grace Sainsbury <graces@redhat.com>
5371
5372 * NEWS: Mention m68k, mcore multi-arching.
5373 * MAINTAINERS: Change status of m68k, mcore to reflect
5374 multi-arching.
5375
5376 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5377
5378 * valops.c (find_overload_match): Free oload_syms.
5379
5380 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5381
5382 Define HAVE_SYS_PROC_H if sys/proc.h exists
5383 * configure.in: Add check for sys/proc.h
5384 * config.in: Regenerate.
5385 * configure: Regenerate.
5386
5387 2002-07-09 Grace Sainsbury <graces@redhat.com>
5388
5389 * config/m68k/tm-m68k.h: Remove macros wrapped in
5390 #if !GDB_MULTI_ARCH.
5391
5392 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5393
5394 * config.in, configure: Regenerate.
5395
5396 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5397
5398 * dwarf2cfi.c: Include "gcore.h".
5399 (execute_stack_op): Fix implementation of the
5400 DW_OP_deref and DW_OP_deref_size operators by letting do their
5401 lookup in the target.
5402
5403 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5404
5405 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5406 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5407 tdep->sc_sp_offset.
5408
5409 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5410
5411 Fix PR gdb/595, gdb/602
5412 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5413 Don't call value_cast, just read the vtable pointer; update comments
5414 to match.
5415
5416 2002-07-05 Grace Sainsbury <graces@redhat.com>
5417
5418 * config/mcore/tm-mcore.h: Remove file.
5419 * config/mcore/mcore.mt: Remove definition of TM_FILE
5420 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5421
5422 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5423
5424 * i386bsd-tdep.c: Include "gdb_string.h".
5425
5426 2002-07-04 Grace Sainsbury <graces@redhat.com>
5427
5428 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5429 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5430 mcore-tdep.
5431 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5432 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5433 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5434 (RETVAL_REGNUM): Move macros from tm-mcore.h
5435 (mcore_reg_struct_has_addr): New function.
5436 (mcore_gdbarch_init): Added initializations for the macros removed
5437 from tm-mcore.h.
5438
5439 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5440
5441 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5442 traditonal string branding within the ELF header.
5443
5444 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5445
5446 * symtab.c (remove_params): New function.
5447 (make_symbol_overload_list): Use it instead of cplus_demangle.
5448 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5449
5450 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5451
5452 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5453
5454 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5455 New variables.
5456 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5457 and tdep->sigtramp_end.
5458 * i386obsd-nat.c: New file.
5459 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5460
5461 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5462 Don't call get_current_frame().
5463
5464 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5465
5466 * i386-nat.c (child_post_startup_inferior): New function
5467 calling i386_cleanup_dregs if
5468 I386_USE_GENERIC_WATCHPOINTS is defined.
5469 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5470 conditional to acknowledge that i386-nat.c has its
5471 own child_post_startup_inferior function.
5472
5473 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5474
5475 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5476 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5477 instead of MAX_REGISTER_RAW_SIZE.
5478 (i386_extract_return_value, i386_extract_struct_value_address):
5479 Convert to use regcache.
5480 (i386_gdbarch_init): Set max_register_raw_size and
5481 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5482 Set extract_return_value and extract_struct_value_address instead
5483 of their deprecated variants.
5484
5485 Convert i386 target to generic dummy frames.
5486 * i386-tdep.c: Include "symfile.h".
5487 (i386_frameless_signal_p): Consider a function to be frameless if
5488 the pc points at the first instruction of the function.
5489 (i386_frame_chain): Handle (generic) call dummies.
5490 (i386_frame_saved_pc): Likewise.
5491 (i386_frame_init_saved_regs): Remove code dealing with call
5492 dummies on the stack.
5493 (i386_push_dummy_frame): Removed.
5494 (i386_call_dummy_words): Removed.
5495 (i386_fix_call_dummy): Removed.
5496 (i386_push_return_address): New function.
5497 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5498 parameter, and don't call get_current_frame.
5499 (i386_pop_frame): New function.
5500 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5501 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5502 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5503 call_dummy_length to 0, set call_dummy_words to NULL, set
5504 sizeof_call_dummy_words to 0, set fix_call_dummy to
5505 generic_fix_call_dummy, set pc_in_call_dummy to
5506 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5507 generic_push_dummy_frame, set push_return_address to
5508 i386_push_return_address and set frame_chain_valid to
5509 generic_file_frame_chain_valid.
5510
5511 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5512
5513 * gdbarch.sh (struct regcache): Add opaque declaration.
5514 (EXTRACT_RETURN_VALUE): New architecture method.
5515 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5516 * gdbarch.h, gdbarch.c: Regenerate.
5517 * arch-utils.c (legacy_extract_return_value): New function.
5518 * arch-utils.h (legacy_extract_return_value): Declare.
5519 * values.c (value_being_returned): Re-enable code handling
5520 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5521 deprecated_grub_regcache_for_registers call to block handling
5522 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5523 (EXTRACT_RETURN_VALUE): Do not define.
5524
5525 2002-07-03 Grace Sainsbury <graces@redhat.com>
5526
5527 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5528 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5529 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5530 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5531 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5532 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5533 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5534 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5535 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5536 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5537 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5538 argument so the function fits the prototype in the architecture
5539 vector.
5540 (mcore_pop_frame): Remove argument so the function fits the
5541 prototype. Use get_current_frame instead of the argument.
5542 (mcore_push_arguments): Change type of struct_return so the
5543 function can be used in the architecture vector.
5544 (mcore_store_struct_return): Add.
5545 (mcore_frame_init_saved_regs): Add.
5546 (mcore_gdbarch_init): Add function calls to replace the macros
5547 removed from tm-mcore.h
5548
5549 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5550
5551 * infcmd.c (print_return_value): Remove compatibility code calling
5552 deprecated_grub_regcache_for_registers.
5553
5554 * values.c: Include "regcache.h".
5555 (value_being_returned): Update. Use
5556 deprecated_grub_regcache_for_registers to extract the register
5557 buffer address.
5558 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5559 ``struct regcache''.
5560 * Makefile.in (values.o): Add dependency on $(regcache_h).
5561
5562 * inferior.h (run_stack_dummy): Change type of second parameter to
5563 a ``struct regcache''.
5564 * valops.c (hand_function_call): Change type of retbuf to ``struct
5565 regcache''. Allocate using regcache_xmalloc, clean using
5566 make_cleanup_regcache_xfree.
5567 * infcmd.c (run_stack_dummy): Update. Use
5568 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5569
5570 * regcache.c (do_regcache_xfree): New function.
5571 (make_cleanup_regcache_xfree): New function.
5572 * regcache.h (make_cleanup_regcache_xfree): Declare.
5573
5574 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5575
5576 * event-top.c (command_line_handler): Don't read past
5577 beginning of buffer.
5578
5579 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5580
5581 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5582 struct frame_id.
5583 (varobj_create): Store frame_id for root.
5584 (varobj_gen_name): Use xasprintf.
5585 (varobj_update): Save and restore frame using get_frame_id() and
5586 frame_find_by_id().
5587 (create_child): Use xasprintf.
5588 (new_root_variable): Initialize frame_id.
5589 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5590 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5591 to prevent memory leak.
5592
5593 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5594
5595 * valops.c (hand_function_call): Move declaration of retbuf to
5596 start of function, allocate using malloc, add a cleanup but before
5597 the inf_status cleanup, cleanup the buffer. Rename local variable
5598 old_chain to inf_status_cleanup.
5599
5600 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5601
5602 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5603
5604 * cli/cli-decode.c (cmd_func_p): New function.
5605 (cmd_func): New function.
5606
5607 * command.h: Add cmd_func() and cmd_func_p().
5608
5609 2002-07-03 Grace Sainsbury <graces@redhat.com>
5610
5611 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5612 (REGISTER_SIZE): Remove.
5613 (MAX_REGISTER_RAW_SIZE): Remove.
5614 (REGISTER_VIRTUAL_TYPE): Remove.
5615 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5616 (REGISTER_NAME): Remove.
5617 (USE_GENERIC_DUMMY_FRAMES): Remove.
5618 (CALL_DUMMY): Remove.
5619 (CALL_DUMMY_START_OFFSET): Remove.
5620 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5621 (CALL_DUMMY_LOCATION): Remove.
5622 (FIX_CALL_DUMMY): Remove.
5623 (CALL_DUMMY_ADDRESS): Remove.
5624 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5625 (SAVE_DUMMY_FRAME_TOS): Remove.
5626 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5627 (mcore_register_virtual_type): New function.
5628 (mcore_register_byte): New function.
5629 (mcore_register_size): New function.
5630 (mcore_register_name): New function.
5631 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5632 macros removed from tm-mcore.h.
5633 (mcore_dump_tdep): Add.
5634 (_initialize_mcore_tdep): Add gdbarch_register call.
5635
5636 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5637
5638 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5639 frameless_look_for_prologue, such that we actually call this
5640 function.
5641
5642 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5643
5644 * frame.h (frame_address_in_block): New function.
5645
5646 * blockframe.c (frame_address_in_block): New function extracted
5647 from get_frame_block().
5648 (get_frame_block): Use frame_address_in_block().
5649 (block_innermost_frame): Use frame_address_in_block() to match
5650 the frame pc address against the block boundaries rather than
5651 the frame pc directly. This prevents a failure when a frame pc
5652 is actually a return-address pointing immediately after the end
5653 of the given block.
5654
5655 2002-07-02 Grace Sainsbury <graces@redhat.com>
5656
5657 * MAINTAINERS: Add self under write after approval.
5658
5659 2002-07-02 Grace Sainsbury <graces@redhat.com>
5660
5661 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5662 used in architecture vector. The default is
5663 m68k_local_breakpoint_from_pc.
5664 (m68k_local_breakpoint_from_pc): Add.
5665 (enum): Add register numbers from tm-m68k.h.
5666 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5667 vector.
5668 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5669 GDB_MULTI_ARCH_PARTIAL.
5670 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5671 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5672 m68k-tdep.c.
5673 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5674 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5675 to enum in m68k-tdep.c
5676
5677 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5678
5679 * solib-osf.c (open_map): Compute the list of shared libraries
5680 loaded by the inferior, rather than the list of libraries loaded
5681 by GDB itself. Otherwise, GDB ends up reading the symbols from
5682 the wrong shared libraries...
5683
5684 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5685
5686 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5687 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5688 macros.
5689 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5690 Remove functions.
5691 (FRAMELESS_SIGNAL): Remove function.
5692 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5693 i386_linux_saved_pc_after_call): Removed.
5694 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5695 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5696 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5697
5698 * i386-tdep.c (i386_frameless_signal_p): New function.
5699 (i386_frame_chain): Deal with frameless signals.
5700 (i386_sigtramp_saved_sp): New function.
5701 (i386_frame_saved_pc): Deal with frameless signals.
5702 (i386_saved_pc_after_call): Make sure the correct value is
5703 returned just after entry into a sigtramp.
5704 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5705 i386fbsd4_sc_sp_offset): New variables.
5706 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5707 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5708 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5709 similiar to what we already did for sc_pc_offset.
5710 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5711 tdep->sc_sp_offset.
5712
5713 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5714
5715 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5716
5717 * config/i386/tm-x86-64linux.h: New.
5718 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5719 definitions.
5720 * config/i386/nm-x86-64.h: Rename to ...
5721 * config/i386/nm-x86-64linux.h: ... this one.
5722 * config/i386/x86-64linux.mh: Reflect the above change.
5723
5724 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5725
5726 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5727 with sigcontext_addr. Add sc_sp_offset.
5728 (i386bsd_sigtramp_saved_pc): Remove prototype.
5729 (i386bsd_sicontext_addr): Add prototype.
5730 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5731 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5732 (i386_svr4_sigtramp_saved_pc): Removed.
5733 (i386_svr4_sigcontext_addr): New function.
5734 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5735 Initialize tdep->sigcontext_addr instead. Initialize
5736 tdep->sc_pc_offset and tdep->sc_sp_offset.
5737 (i386_gdbarch_init): Likewise.
5738 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5739 any more.
5740 (i386bsd_sigtramp_saved_pc): Remove function.
5741 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5742 Initialize tdep->sigcontext_addr instead. Initialize
5743 tdep->sc_pc_offset.
5744 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5745 of tdep->sigtramp_saved_pc.
5746 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5747 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5748 instead.
5749
5750 * i386-tdep.c (i386_frameless_function_invocation,
5751 i386_frame_num_args, i386_frame_init_saved_regs,
5752 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5753 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5754 i386_extract_return_value, i386_store_return_value,
5755 i386_extract_struct_value_address, i386_register_virtual_type,
5756 i386_register_convertible, i386_register_convert_to_virtual,
5757 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5758 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5759 static.
5760
5761 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5762
5763 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5764
5765 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5766 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5767 this macro. Include "value.h".
5768
5769 2002-06-30 Aidan Skinner <aidan@velvet.net>
5770
5771 * ada-exp.tab.c: remove as it's a generated file
5772 * ada-lex.c: remove as it's a generated file
5773
5774 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5775
5776 * config/i386/tm-i386.h (struct frame_info, struct
5777 frame_saved_regs, struct value, struct type): Remove forward
5778 declarations.
5779
5780 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5781 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5782 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5783 (FILL_FPXREGSET): Define.
5784
5785 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5786
5787 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5788 i[3456]86-*-netbsd* case.
5789 * config/i386/tm-obsd.h: Removed.
5790 * config/i386/obsd.mt: Removed.
5791 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5792 core-aout.o.
5793 (MH_CFLAGS): Add -DYYDEBUG=0.
5794
5795 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5796 i386nbsd_sc_pc_offset on OpenBSD too.
5797
5798 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5799 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5800 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5801 define.
5802 * i386bsd-tdep.c: Include "arch-utils.h".
5803 (i386bsd_aout_in_solib_call_trampoline): New function.
5804 (i386bsd_init_abi): Set in_solib_call_trampoline to
5805 i386bsd_aout_in_solib_call_trampoline.
5806 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5807 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5808
5809 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5810
5811 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5812 (struct obstack, struct bcache): Add opaque declarations.
5813 * Makefile.in (macrotab_h): Update
5814
5815 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5816
5817 * blockframe.c (generic_find_dummy_frame): Change return type to
5818 ``struct regcache''.
5819 (struct dummy_frame): Replace field ``registers'' with regcache, a
5820 struct regcache object.
5821 (generic_find_dummy_frame): Update.
5822 (generic_push_dummy_frame): Update. Use regcache_xfree,
5823 regcache_xmalloc and regcache_cpy.
5824 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5825 regcache_xfree.
5826 (deprecated_generic_find_dummy_frame): Update.
5827 (generic_read_register_dummy): Update. Use
5828 regcache_read_as_address.
5829 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5830 (generic_get_saved_register): Update. Use regcache_read.
5831
5832 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5833
5834 * Makefile.in (objfiles_h): Add $(bcache_h).
5835 * objfiles.h: Include "bcache.h".
5836
5837 * Makefile.in (symtab_h): Remove $(bcache_h).
5838 * symtab.h: Do not include "bcache.h".
5839
5840 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5841
5842 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5843 generic_func_frame_chain_valid.
5844
5845 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5846
5847 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5848 * config/i386/tm-fbsd.h: Likewise.
5849
5850 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5851
5852 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5853 generic_unwind_get_saved_register.
5854
5855 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5856
5857 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5858 * regcache.c (supply_register): Add missing argument to
5859 register_buffer call.
5860
5861 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5862
5863 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5864 Solaris /bin/grep does not not like it. From Peter Schauer.
5865
5866 2002-06-26 Tom Tromey <tromey@redhat.com>
5867
5868 * command.h (add_setshow_cmd): Declare.
5869 (add_setshow_cmd_full): Declare.
5870 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5871 returns void. Use add_setshow_cmd_full.
5872 (add_setshow_cmd_full): New function.
5873 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5874 (add_setshow_boolean_cmd): Likewise.
5875
5876 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5877
5878 * config/vax/tm-vax.h: Protect from multiple inclusion.
5879 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5880 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5881 * config/vax/tm-vaxbsd.h: ...here. New file.
5882 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5883
5884 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5885
5886 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5887 (BELIEVE_PCC_PROMOTION): Remove.
5888 (AP_REGNUM): Move to...
5889 * config/vax/nm-vax.h: ...here.
5890 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5891 (vax_breakpoint_from_pc): New function.
5892 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5893 and gdbarch_believe_pcc_promotion.
5894
5895 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5896
5897 * Makefile.in (vax_tdep_h): Define.
5898 (vax-tdep.o): Use $(vax_tdep_h).
5899 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5900 (vax_dump_tdep): New function.
5901 (_initialize_vax_tdep): Register vax_dump_tdep.
5902 * vax-tdep.h: Include osabi.h.
5903 (struct gdbarch_tdep): New.
5904
5905 2002-06-26 Andrew Cagney <cagney@redhat.com>
5906
5907 * frame.h (deprecated_generic_find_dummy_frame): Rename
5908 generic_find_dummy_frame.
5909 * blockframe.c (generic_find_dummy_frame): Make static.
5910 (deprecated_generic_find_dummy_frame): New function.
5911 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5912 generic_find_dummy_frame with deprecated_find_dummy_frame.
5913 (sh64_nofp_frame_init_saved_regs): Ditto.
5914 (sh_fp_frame_init_saved_regs): Ditto.
5915 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5916 (s390_frame_chain): Ditto.
5917 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5918
5919 2002-06-26 Grace Sainsbury <graces@redhat.com>
5920
5921 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5922 gdbarch vector are at the top.
5923 (NUM_REGS): Remove.
5924 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5925 (FRAME_ARGS_ADDRESS): Remove.
5926 (FRAME_LOCALS_ADDRESS): Remove.
5927 (FRAME_NUM_ARGS): Remove.
5928 (FRAME_ARGS_SKIP): Remove.
5929 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5930 (m68k_gdbarch_init): Add gdbarch initializations for macros
5931 undefined in tm-m68k.h
5932
5933 2002-06-26 Grace Sainsbury <graces@redhat.com>
5934
5935 * monitor.h: Add the function regname to monitor_ops
5936 structure. This way NUM_REGS does not have to be a constant.
5937 * monitor.c (monitor_fetch_register): Added support for regname
5938 function. The function is called if the array regnames is NULL.
5939 (monitor_store_register): Same.
5940 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5941 regnames array.
5942 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5943 cpu32bug_cmds.regname to point to new function.
5944 * abug-rom.c (abug_regname): Same as above.
5945 (init_abug_cmds): Same.
5946 * dbug-rom.c (dbug_regname): Same as above.
5947 (init_dbug_cmds): Same.
5948 * remote-est.c (est_regname): Same.
5949 (init_est_cmds): Same.
5950 * rom68k-rom.c (rom68k_regname): Same.
5951 (init_rom68k_cmds): Same.
5952
5953 2002-06-25 Tom Tromey <tromey@redhat.com>
5954
5955 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5956
5957 2002-06-25 Andrew Cagney <cagney@redhat.com>
5958
5959 * infrun.c (stop_registers): Change variable's type to ``struct
5960 regcache'''.
5961 (xmalloc_inferior_status): Delete function.
5962 (free_inferior_status): Delete function.
5963 (normal_stop): Use regcache_cpy.
5964 (struct inferior_status): Change type of fields ``stop_registers''
5965 and ``registers'' to ``struct regcache''.
5966 (write_inferior_status_register): Use regcache_write.
5967 (save_inferior_status): Instead of calling
5968 xmalloc_inferior_status, allocate the inf_status buffer directly.
5969 Use regcache_dup_no_passthrough and regcache_dup to save the
5970 buffers.
5971 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5972 Replace the stop_registers regcache instead of overriding it. Use
5973 regcache_xfree. Instead of calling free_inferior_status, xfree
5974 the buffer directly.
5975 (discard_inferior_status): Use regcache_xfree. Instead of calling
5976 free_inferior_status, xfree the buffer directly.
5977 (build_infrun): Use regcache_xmalloc.
5978 (_initialize_infrun): Delete redundant call to build_infrun.
5979
5980 * Makefile.in (infcmd.o): Add $(regcache_h).
5981
5982 * infcmd.c: Include "regcache.h".
5983 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5984 obtain the address of `stop_registers' register buffer.
5985 (print_return_value): Ditto.
5986
5987 * inferior.h (struct regcache): Add opaque declaration.
5988 (stop_registers): Change variable's declared type to ``struct
5989 regcache''.
5990
5991 2002-06-24 Tom Tromey <tromey@redhat.com>
5992
5993 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5994 * target.c (initialize_targets): Fixed typo in
5995 trust-readonly-sections `show' documentation.
5996
5997 * main.c: Marked all strings with _().
5998
5999 2002-06-24 Don Howard <dhoward@redhat.com>
6000
6001 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6002 that means max CORE_ADDR+1.
6003 (lookup_mem_region): Ditto.
6004 (mem_info_command): Ditto.
6005
6006 2002-06-24 Grace Sainsbury <graces@redhat.com>
6007
6008 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6009 (REGISTER_BYTES_OK): Remove.
6010 (REGISTER_BYTES): Remove.
6011 (STORE_STRUCT_RETURN): Remove.
6012 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6013 (STORE_RETURN_VALUE): Remove.
6014 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6015 (FRAME_CHAIN): Remove.
6016 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6017 (FRAME_SAVED_PC): Remove.
6018 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6019 (m68k_store_struct_return): Add.
6020 (m68k_deprecated_extract_return_value): Add.
6021 (m68k_deprecated_extract_struct_value_address): Add.
6022 (m68k_store_return_value): Add.
6023 (m68k_frame_chain): Add.
6024 (m68k_frameless_function_invocation): Add.
6025 (m68k_frame_saved_pc): Add.
6026 (m68k_gdbarch_init): added set_gdbarch calls for new
6027 functions and deleted macros.
6028
6029 2002-06-23 Tom Tromey <tromey@redhat.com>
6030
6031 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6032 (ALLDEPFILES): Likewise.
6033 (udiheaders): Removed.
6034 (udip2soc.o): Likewise.
6035 (udi2go32.o): Likewise.
6036 (udr.o): Likewise.
6037 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6038
6039 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6040
6041 * infrun.c (_initialize_infrun): Delete unnecessary call to
6042 build_infrun.
6043
6044 * regcache.h: Update comments describing the regcache_cpy family
6045 of functions.
6046 (regcache_save, regcache_restore): Delete declaration.
6047 (regcache_save_no_passthrough): Delete declaration.
6048 (regcache_restore_no_passthrough): Delete declaration.
6049 * regcache.c (regcache_save): Delete function.
6050 (regcache_save_no_passthrough): Delete function.
6051 (regcache_restore): Delete function.
6052 (regcache_restore_no_passthrough): Delete function.
6053
6054 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6055
6056 * config/m68k/tm-m68k.h: Fix typo.
6057 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6058 (m68k_frame_init_saved_regs): Declare.
6059
6060 2002-06-21 Jim Blandy <jimb@redhat.com>
6061
6062 Remove some vestiges of Harris 88k support.
6063 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6064 register numbering quirk.
6065 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6066 odd symbols occurring in Harris 88k ELF targets.
6067
6068 2002-06-21 Tom Tromey <tromey@redhat.com>
6069
6070 * gdb_locale.h: New file.
6071 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6072 (defs_h): Added gdb_locale.h.
6073 * configure, config.in: Rebuilt.
6074 * configure.in (PACKAGE): Define.
6075 * defs.h: Include gdb_locale.h.
6076 * main.c (captured_main): Call setlocale, bindtextdomain,
6077 textdomain.
6078
6079 2002-06-21 Dave Brolley <brolley@redhat.com>
6080
6081 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6082 * config/frv/frv.mt: New file.
6083 * config/frv/tm-frv.h: New file.
6084 * configure.tgt: Support frv-*-*.
6085 * Makefile.in (frv-tdep.o): New target.
6086 * frv-tdep.c: New file.
6087 * NEWS: Mention frv.
6088
6089 2002-06-21 Dave Brolley <brolley@redhat.com>
6090
6091 * MAINTAINERS: Add self to "Write After Approval" list.
6092
6093 2002-06-21 Grace Sainsbury <graces@redhat.com>
6094
6095 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6096 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6097 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6098 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6099 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6100
6101 * m68k-tdep.c: Include arch-utils.h
6102 (m68k_register_raw_size): Add.
6103 (m68k_register_virtual_size): Add.
6104 (m68k_register_virtual_type): Add.
6105 (m68k_register_name): Add.
6106 (m68k_stack_align): Add.
6107 (m68k_register_byte): Add.
6108 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6109 tm-m68k.h.
6110
6111 2002-06-21 Grace Sainsbury <graces@redhat.com>
6112
6113 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6114 m68k_find_saved_regs.
6115 (m68k_pop_frame): Removed saved_regs structure, and replaced
6116 references to it with frame->saved_regs.
6117 (m68k_gdbarch_init): Added function calls to initialize the
6118 gdbarch structure.
6119 (m68k_fix_call_dummy): Add.
6120 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6121 (CALL_DUMMY): Remove.
6122 (CALL_DUMMY_LENGTH): Remove.
6123 (CALL_DUMMY_START_OFFSET): Remove.
6124 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6125 (FIX_CALL_DUMMY): Remove.
6126 (PUSH_DUMMY_FRAME): Remove.
6127 (POP_FRAME): Remove.
6128
6129 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6130
6131 * parse.c (parse_fprintf): New function used to avoid calls to
6132 fprintf in bison parser generated debug code.
6133 * parser-defs.h: Declaration of new parse_fprintf function.
6134 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6135 Set YYDEBUG to 1 by default.
6136 Set YYFPRINTF as parse_fprintf.
6137
6138 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6139
6140 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6141 encoding anymore.
6142 (pointer_encoding, enum ptr_encoding): New.
6143 (execute_cfa_program): Take care about pointer encoding.
6144 (dwarf2_build_frame_info): Only call parse_frame_info for
6145 .debug_frame and .eh_frame.
6146 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6147 fixed augmentation handling, added relative addressing,
6148 ignore duplicate FDEs. Added comments.
6149 * dwarf2cfi.c: Reindented.
6150
6151 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6152
6153 * event-top.c (command_handler): Don't use space_at_cmd_start
6154 unless there is sbrk() on the host. Assign time and space data
6155 to union fields of the appropriate length.
6156
6157 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6158
6159 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6160 x86_64_register_name. Return type changed to 'const char *'.
6161 (x86_64_register_name2nr): Rename to x86_64_register_number.
6162 (x86_64_gdbarch_init): Update to reflect the change.
6163 * x86-64-tdep.h: Ditto.
6164 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6165 (supply_fpregset): Ditto.
6166
6167 2002-06-19 Andrew Cagney <cagney@redhat.com>
6168
6169 * regcache.h: Update copyright.
6170 (struct regcache, struct gdbarch): Add opaque declarations.
6171 (current_regcache): Declare global variable.
6172 (regcache_read, regcache_write): Add gdbarch parameter.
6173 (regcache_save, regcache_save_no_passthrough)
6174 (regcache_restore, regcache_restore_no_passthrough)
6175 (regcache_dup, regcache_dup_no_passthrough)
6176 (regcache_cpy, regcache_cpy_no_passthrough)
6177 (deprecated_grub_regcache_for_registers)
6178 (deprecated_grub_regcache_for_register_valid)
6179 (regcache_valid_p): Add function declarations.
6180
6181 * regcache.c: Update copyright.
6182 (regcache_descr_handle): New global variable.
6183 (struct regcache_descr): Define.
6184 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6185 (regcache_descr, xfree_regcache_descr): New functions.
6186 (struct regcache): Define.
6187 (regcache_xmalloc, regcache_xfree): New functions.
6188 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6189 (regcache_dup, regcache_dup_no_passthrough): New functions.
6190 (regcache_valid_p, regcache_read_as_address): New functions.
6191 (deprecated_grub_regcache_for_registers): New function.
6192 (deprecated_grub_regcache_for_register_valid): New function.
6193 (current_regcache): New global variable.
6194 (register_buffer): Add regcache parameter. Update calls.
6195 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6196 (read_register_gen, write_register_gen): Update register_buffer
6197 call. Test for legacy_p instead of gdbarch_register_read_p or
6198 gdbarch_register_write_p.
6199 (regcache_collect): Update register_buffer call.
6200 (build_regcache): Rewrite. Use deprecated grub functions.
6201 (regcache_save, regcache_save_no_passthrough): New functions.
6202 (regcache_restore, regcache_restore_no_passthrough): New
6203 functions.
6204 (_initialize_regcache): Create the regcache_data_handle. Swap
6205 current_regcache global variable.
6206
6207 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6208 parameter to regcache_read and regcache_write calls.
6209 (sh4_register_read): Ditto.
6210 (sh64_pseudo_register_read): Ditto.
6211 (sh64_register_read): Ditto.
6212 (sh_pseudo_register_write): Ditto.
6213 (sh4_register_write): Ditto.
6214 (sh64_pseudo_register_write): Ditto.
6215 (sh64_register_write): Ditto.
6216
6217 * defs.h (XCALLOC): Define.
6218
6219 2002-06-19 Grace Sainsbury <graces@redhat.com>
6220
6221 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6222 * m68k-tdep.c (m68k_gdbarch_init): Added.
6223 (m68k_dump_tdep): Added.
6224
6225 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6226
6227 * ada-lang.c (fill_in_ada_prototype): Update comment.
6228
6229 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6230
6231 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6232 MIPS_ABI_LAST.
6233 (mips_abi_string, mips_abi_strings): New.
6234 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6235 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6236 tdep->mips_abi_string. Honor mips_abi_string. Default to
6237 O32 if no ABI is found.
6238 (mips_dump_tdep): Use mips_abi_strings.
6239 (mips_abi_update): New function.
6240 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6241 ``set mips abi'' and ``show mips abi''. Check the size of
6242 mips_abi_strings.
6243
6244 2002-06-19 Andrew Cagney <cagney@redhat.com>
6245
6246 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6247 constant.
6248
6249 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6250
6251 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6252 current frame using only the first stack size adjustment. All
6253 subsequent size adjustments are not considered to be part of
6254 the "static" part of the current frame.
6255 Compute the address of the saved registers relative to the
6256 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6257 in use in this frame.
6258
6259 2002-06-18 Don Howard <dhoward@redhat.com>
6260
6261 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6262 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6263 suggesting this solution.
6264
6265 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6266
6267 * config/romp/xm-rtbsd.h: Delete file.
6268 * config/romp/rtbsd.mh: Delete file.
6269
6270 2002-06-18 Keith Seitz <keiths@redhat.com>
6271
6272 * breakpoint.c (condition_command): Post breakpoint_modify
6273 when a condition is added to an existing breakpoint.
6274 (commands_command): Likewise for commands.
6275 (set_ignore_count): Likewise for ignore counts.
6276 If no tty, do not simply return, still need to send event
6277 notification.
6278 (ignore_command): Only print a newline if the command came
6279 from a tty.
6280 Don't call breakpoints_changed, since this is now properly
6281 handled by set_ignore_count.
6282
6283 2002-06-18 Andrew Cagney <cagney@redhat.com>
6284
6285 * MAINTAINERS: Note that cris-elf target can be compiled with
6286 -Werror.
6287 * cris-tdep.c (cris_register_name): Make return type constant.
6288 (cris_breakpoint_from_pc): Ditto.
6289
6290 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6291
6292 * frame.h (struct frame_info): Change type of context to
6293 'struct context'.
6294
6295 2002-06-17 Andrew Cagney <cagney@redhat.com>
6296
6297 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6298 pointer.
6299 * gdbarch.h, gdbarch.c: Regenerate.
6300 * config/mips/tm-mips.h (mips_register_name): Update.
6301 * i386-tdep.h (i386_register_name): Update.
6302 * mips-tdep.c (mips_register_name): Update
6303 * alpha-tdep.c (alpha_register_name): Update.
6304 * arch-utils.c (legacy_register_name): Update.
6305 * arch-utils.h (legacy_register_name): Update.
6306 * avr-tdep.c (avr_register_name): Update.
6307 * ia64-tdep.c (ia64_register_name): Update.
6308 * i386-tdep.c (i386_register_name): Update.
6309 * sparc-tdep.c (sparc32_register_name): Update.
6310 (sparc64_register_name): Update.
6311 (sparclite_register_name): Update.
6312 (sparclet_register_name): Update.
6313 * sh-tdep.c (sh_generic_register_name): Update.
6314 (sh_sh_register_name): Update.
6315 (sh_sh3_register_name): Update.
6316 (sh_sh3e_register_name): Update.
6317 (sh_sh_dsp_register_name): Update.
6318 (sh_sh3_dsp_register_name): Update.
6319 (sh_sh4_register_name): Update.
6320 (sh_sh64_register_name): Update.
6321 * s390-tdep.c (s390_register_name): Update.
6322 * rs6000-tdep.c (rs6000_register_name): Update.
6323 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6324 (ns32k_register_name_32382): Update.
6325 * d10v-tdep.c (d10v_ts2_register_name): Update.
6326 (d10v_ts3_register_name): Update.
6327 * xstormy16-tdep.c (xstormy16_register_name): Update.
6328 * vax-tdep.c (vax_register_name): Update.
6329 * v850-tdep.c (v850_register_name): Update.
6330 * m68hc11-tdep.c (m68hc11_register_name): Update.
6331 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6332 (am33_register_name): Update.
6333
6334 2002-06-17 Grace Sainsbury <graces@redhat.com>
6335
6336 * m68k-tdep.c: Reindented.
6337
6338 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6339
6340 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6341 list of predefined types.
6342
6343 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6344
6345 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6346 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6347 REGISTER_CONVERT_TO_RAW): Remove defines.
6348 (i386_register_virtual_type, i386_register_convertible,
6349 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6350 Remove prototypes.
6351 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6352 macros mentioned above.
6353
6354 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6355 (i386lynx_saved_pc_after_call): Remove prototype.
6356 * i386ly-tdep.c: Include "i386-tdep.h".
6357 (i386lynx_saved_pc_after_call): Make static. Use
6358 read_memory_nobpt instead of read_memory. Use
6359 read_memory_unsigned_integer instead of read_memory_integer.
6360 (i386lynx_init_abi): New function.
6361 (i386lynx_coff_osabi_sniffer): New function.
6362 (_initialize_i386bsd_tdep): New function.
6363
6364 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6365 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6366 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6367 (i386_fix_call_dummy): Remove prototype.
6368 * i386-tdep.c (i386_call_dummy_words): New variable.
6369 (i386_gdbarch_init): Adjust for removal of the
6370 macros mentioned above.
6371
6372 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6373
6374 * command.h (add_setshow_auto_boolean_cmd): Replace
6375 add_set_auto_boolean_cmd.
6376 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6377 add_set_auto_boolean_cmd.
6378 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6379 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6380 mask-address'' command.
6381 (show_mask_address): Add cmd parameter.
6382 * remote.c (add_packet_config_cmd): Update. Change type of
6383 set_func and show_func to cmd_sfunc_ftype.
6384 (_initialize_remote): Update `set remote Z-packet'
6385 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6386 (show_remote_protocol_e_packet_cmd): Ditto.
6387 (show_remote_protocol_E_packet_cmd): Ditto.
6388 (show_remote_protocol_P_packet_cmd): Ditto.
6389 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6390 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6391 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6392 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6393 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6394 (show_remote_protocol_Z_packet_cmd): Ditto.
6395 (show_remote_protocol_binary_download_cmd): Ditto.
6396 (show_remote_cmd): Pass NULL to all of above.
6397
6398 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6399
6400 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6401 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6402 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6403 POP_FRAME): Remove defines.
6404 (i386_push_arguments, i386_store_struct_return,
6405 i386_extract_return_value, i386_store_return_value,
6406 i386_extract_struct_value_address, i386_push_dummy_frame,
6407 i386_pop_frame): Renove prototypes.
6408 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6409 macros mentioned above.
6410
6411 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6412
6413 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6414 add_set_boolean_cmd.
6415 (add_setshow_cmd): New function.
6416 * command.h (add_setshow_boolean_cmd): Replace
6417 add_set_boolean_cmd.
6418 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6419 and ``set rdiromatzero''.
6420 * maint.c (_initialize_maint_cmds): Update commented out code.
6421 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6422 * target.c (initialize_targets): Update `set
6423 trust-readonly-sections'.
6424 * remote.c (_initialize_remote): Update `set remotebreak'.
6425
6426 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6427
6428 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6429 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6430 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6431 fit into multi-arch framework.
6432 (i386_breakpoint_from_pc): New function.
6433 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6434 above.
6435
6436 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6437 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6438 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6439 (i386_frameless_function_invocation, i386_frame_num_args,
6440 i386_frame_init_saved_regs): Remove prototypes.
6441 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6442 macros mentioned above.
6443
6444 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6445
6446 * cli/cli-decode.c (set_cmd_cfunc): Update.
6447 (set_cmd_sfunc): Update.
6448 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6449 (set_cmd_sfunc, set_cmd_cfunc): Update.
6450 * cli/cli-decode.h: Update.
6451
6452 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6453
6454 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6455 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6456
6457 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6458
6459 * defs.h (auto_boolean): Declare enum.
6460 * command.h (cmd_auto_boolean): Delete enum.
6461 * mips-tdep.c (mask_address_var): Update.
6462 (mips_mask_address_p): Update.
6463 (show_mask_address): Update.
6464 * remote.c (struct packet_config): Update.
6465 (update_packet_config): Update.
6466 (show_packet_config_cmd): Update.
6467 (packet_ok): Update.
6468 (add_packet_config_cmd): Update.
6469 (_initialize_remote):
6470 * command.h: Update.
6471 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6472 (do_setshow_command): Update.
6473 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6474 * cli/cli-decode.h: Update.
6475
6476 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6477
6478 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6479 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6480 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6481 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6482 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6483 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6484
6485 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6486 list of DJGPP COFF targets.
6487
6488 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6489 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6490 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6491 (FP0_REGNUM): Remove define.
6492 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6493 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6494 (i386_register_virtual_size): Remove protoype.
6495 * i386-tdep.c (i386_register_virtual_size): Removed.
6496 (i386_extract_return_value, i386_store_return_value): Use
6497 FP0_REGNUM instead of NUM_FREGS to determine whether the
6498 floating-point registers are available.
6499 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6500 Adjust for removal of macros mentioned above.
6501
6502 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6503
6504 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6505 comments.
6506 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6507 Remove prototypes.
6508 (supply_gregset, fill_gregset): Remove use of register keyword and
6509 remove declaration for regmap. Use I386_NUM_GREGS instead of
6510 NUM_REGS and NUM_FREGS.
6511 (FPREGSET_FSAVE_OFFSET): Remove.
6512 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6513 NUM_FREGS to determine whether the floating-point registers are
6514 available.
6515
6516 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6517 gnu_store_registers): Replace usage of NUM_GREGS with
6518 I386_NUM_GREGS.
6519
6520 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6521 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6522 usage of NUM_GREGS with I386_NUM_GREGS.
6523
6524 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6525
6526 * i386bsd-nat.c: Include "i386-tdep.h".
6527 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6528 I386_NUM_GREGS.
6529
6530 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6531 and associated comment. They no longer make any sense, since we
6532 don't use this file anymore on Linux.
6533
6534 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6535 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6536 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6537 elements in these arrays.
6538 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6539 MAX_NUM_REGS.
6540
6541 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6542
6543 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6544 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6545
6546 2002-06-14 Andrew Cagney <cagney@redhat.com>
6547
6548 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6549 EXTRACT_RETURN_VALUE.
6550 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6551 EXTRACT_STRUCT_VALUE_ADDRESS.
6552 * gdbarch.h, gdbarch.c: Regenerate.
6553
6554 * values.c (value_being_returned): Handle
6555 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6556 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6557
6558 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6559 * arm-tdep.c (arm_gdbarch_init): Update.
6560 * avr-tdep.c (avr_gdbarch_init): Update.
6561 * cris-tdep.c (cris_gdbarch_init): Update.
6562 * d10v-tdep.c (d10v_gdbarch_init): Update.
6563 * ia64-tdep.c (ia64_gdbarch_init): Update.
6564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6565 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6566 * s390-tdep.c (s390_gdbarch_init): Update.
6567 * sh-tdep.c (sh_gdbarch_init): Update.
6568 * s390-tdep.c (s390_gdbarch_init): Update.
6569 * sparc-tdep.c (sparc_gdbarch_init): Update.
6570 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6571 * v850-tdep.c (v850_gdbarch_init): Update.
6572 * vax-tdep.c (vax_gdbarch_init): Update.
6573 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6574 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6575
6576 * config/arc/tm-arc.h: Update.
6577 * config/d30v/tm-d30v.h: Update.
6578 * config/fr30/tm-fr30.h: Update.
6579 * config/h8300/tm-h8300.h: Update.
6580 * config/h8500/tm-h8500.h: Update.
6581 * config/i386/tm-i386.h: Update.
6582 * config/i386/tm-ptx.h: Update.
6583 * config/i386/tm-symmetry.h: Update.
6584 * config/i960/tm-i960.h: Update.
6585 * config/m32r/tm-m32r.h: Update.
6586 * config/m68k/tm-delta68.h: Update.
6587 * config/m68k/tm-linux.h: Update.
6588 * config/m68k/tm-m68k.h: Update.
6589 * config/m88k/tm-m88k.h: Update.
6590 * config/mcore/tm-mcore.h: Update.
6591 * config/mips/tm-mips.h: Update.
6592 * config/mn10200/tm-mn10200.h: Update.
6593 * config/pa/tm-hppa.h: Update.
6594 * config/pa/tm-hppa64.h: Update.
6595 * config/sparc/tm-sp64.h: Update.
6596 * config/sparc/tm-sparc.h: Update.
6597 * config/sparc/tm-sparclet.h: Update.
6598 * config/z8k/tm-z8k.h: Update.
6599
6600 2002-06-14 Andrew Cagney <cagney@redhat.com>
6601
6602 * Makefile.in (i386_linux_tdep_h): Define.
6603 (i386_tdep_h, i387_tdep_h): Define.
6604 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6605 $(i386_tdep_h) and $(i387_tdep_h).
6606 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6607
6608 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6609
6610 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6611 Already covered by the default.
6612
6613 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6614 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6615 (i386_gdbarch_init): Initialize long_double_format and long_double
6616 bit.
6617
6618 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6619 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6620 Move these to ...
6621 * config/i386/i386sol2.mh: ... here.
6622 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6623 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6624 (SIGCONTEXT_PC_OFFSET): Remove define.
6625 (IN_SIGTRAMP): Remove define.
6626 * i386-sol2-tdep.c: New file.
6627
6628 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6629 * config/i386/tm-i386nw.h: Removed.
6630
6631 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6632 USE_STRUCT_CONVENTION): Remove defines.
6633 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6634 (get_longjmp_target): Remove prototype.
6635 (IN_SIGTRAMP): Remove define.
6636 (i386bsd_in_sigtramp): Remove prototype.
6637 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6638 function. Update comment accordingly
6639 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6640 (FRAME_SAVED_PC): Remove define.
6641 (i386bsd_frame_saved_pc): Remove prototype.
6642 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6643 GET_LONGJMP_TARGET): Remove defines.
6644 (get_longjmp_target): Remove prototype.
6645 (IN_SIGTRAMP): Remove define.
6646 (i386bsd_in_sigtramp): Remove prototype.
6647 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6648 function. Update comment accordingly
6649 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6650 (FRAME_SAVED_PC): Remove define.
6651 (i386bsd_frame_saved_pc): Remove prototype.
6652 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6653 Remove prototype.
6654 (USE_STRUCT_CONVENTION): Remove prototype.
6655 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6656 declaration.
6657 (_initialize_i386bsd_nat): Revise logic to determine some
6658 constants at compile time when compiling a native GDB. Warn if
6659 things don't match up with what we expect.
6660 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6661 Remove variables.
6662 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6663 to use date stored in `struct gdbarch_tdep'.
6664 (i386bsd_sigcontext_offset): Remove varaible.
6665 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6666 stored in `struct gdbarch_tdep'.
6667 (i386bsd_frame_saved_pc): Make static.
6668 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6669 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6670 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6671 i386fbsd4_sc_pc_offset): New variables.
6672 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6673 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6674 functions.
6675 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6676 functions.
6677 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6678 Modify the value of i386fbsd_sigtramp_start and
6679 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6680 i386fbsd_sigtramp_end.
6681 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6682 function.
6683
6684 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6685 define to i386-linux-tdep.h.
6686 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6687 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6688 defines.
6689 (i386_linux_register_name, i386_linux_register_byte,
6690 i386_linux_register_raw_size): Remove prototypes.
6691 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6692 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6693 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6694 TARGET_WRITE_PC): Remove defines.
6695 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6696 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6697 i386_linux_write_pc): Remove prototypes.
6698 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6699 (get_longjmp_target): Remove prototype.
6700 * i386-linux-tdep.h: New file.
6701 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6702 * i386-linux-tdep.c: Include "i386-tdep.h" and
6703 "i386-linux-tdep.h".
6704 (i386_linux_register_name, i386_linux_register_byte,
6705 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6706 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6707 Make static.
6708 (i386_linux_init_abi): New function.
6709 (_initialize_i386_linux_tdep): New function.
6710
6711 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6712 (i386_saved_pc_after_call): Remove prototype.
6713 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6714 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6715 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6716 (i386_register_name, i386_stab_reg_to_regnum,
6717 i386_dwarf_reg_to_regnum): Remove prototypes.
6718 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6719 SIZEOF_SSE_REGS): Remove defines.
6720 (REGISTER_BYTES): Remove define.
6721 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6722 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6723 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6724 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6725 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6726 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6727 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6728 (get_longjmp_target): Remove prototype.
6729 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6730 (sigtramp_saved_pc): Remove define.
6731 (i386v4_sigtramp_saved_pc): Remove prototype.
6732 * config/i386/tm-go32.h (FRAME_CHAIN,
6733 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6734 (i386go32_frame_saved_pc): Remove prototype.
6735 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6736 (get_longjmp_target): Remove prototype.
6737 * i386-tdep.h: Include "osabi.h".
6738 (enum i386_abi): Removed.
6739 (enum struct_return): New enum.
6740 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6741 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6742 sc_pc_offset members.
6743 (i386_gdbarch_register_os_abi): Remove prototype.
6744 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6745 I386_SSE_NUM_REGS): New defines.
6746 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6747 I386_SSE_SIZEOF_REGS): New defines.
6748 (i386_register_name, i386_register_byte, i386_register_raw_size):
6749 New prototypes.
6750 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6751 (i386bsd_sigtramp_saved_pc): New prototype.
6752 * i386-tdep.c: Don't include "elf-bfd.h".
6753 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6754 i386_frame_chain, i386_saved_pc_after_call): Make static.
6755 (i386_frame_saved_pc): Rewrite to call architecture dependent
6756 function to deal with signal handlers. Make static.
6757 (i386go32_frame_saved_pc): Removed.
6758 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6759 Removed.
6760 (i386_get_longjmp_target): New function.
6761 (default_struct_convention, pcc_struct_convention,
6762 reg_struct_convention, valid_conventions, struct_convention): New
6763 variables.
6764 (i386_use_struct_convention): New function.
6765 (i386v4_sigtramp_saved_pc): Renamed to
6766 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6767 (i386_pc_in_sigtramp): New function.
6768 (i386_abi_names): Removed.
6769 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6770 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6771 Removed.
6772 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6773 i386_gdbarch_register_os_abi): Removed.
6774 (struct i386_abi_handler): Removed.
6775 (i386_abi_handler_list): Removed.
6776 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6777 functions.
6778 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6779 i386_nw_init_abi): New functions.
6780 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6781 Use set_gdbarch_xxx() calls instead of relying on macros for a
6782 number of calls.
6783 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6784 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6785 Register the various architecture variants defined in this file.
6786
6787 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6788
6789 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6790 (struct main_type): Remove arg_types member. Update comments for
6791 struct field.
6792 (TYPE_ARG_TYPES): Remove.
6793 (TYPE_FN_FIELD_ARGS): Update.
6794 (smash_to_method_type): Update prototype.
6795
6796 * c-typeprint.c (cp_type_print_method_args): Take method type
6797 instead of argument list. Use new argument layout. Simplify.
6798 (c_type_print_args): Use new argument layout. Simplify.
6799 (c_type_print_base): Update call to cp_type_print_method_args.
6800 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6801 argument; use die->type instead. Update call to
6802 smash_to_method_type.
6803 (read_structure_scope): Update call to dwarf2_add_member_fn.
6804 * gdbtypes.c (allocate_stub_method): Update comment.
6805 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6806 Use new argument layout.
6807 (check_stub_method): Use new argument layout. Don't count
6808 void as an argument.
6809 (print_arg_types): Update comments. Use new argument layout.
6810 (recursive_dump_type): Don't print arg_types member.
6811 * hpread.c (hpread_read_struct_type): Use new argument layout.
6812 (fixup_class_method_type): Likewise.
6813 (hpread_type_lookup): Likewise.
6814 * stabsread.c (read_type): Update calls to read_args and
6815 smash_to_method_type.
6816 (read_args): Use new argument layout. Simplify.
6817 * valops.c (typecmp): Use new argument layout. Update parameters
6818 and comments. Simplify.
6819 (hand_function_call): Use new argument layout.
6820 (search_struct_method): Update call to typecmp.
6821 (find_overload_match): Use new argument layout.
6822
6823 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6824
6825 * NEWS: Mention multithreaded debug support for gdbserver.
6826
6827 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6828
6829 * MAINTAINERS: Mention NEWS.
6830
6831 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6832
6833 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6834 (struct mips_objfile_private, compare_pdr_entries): New.
6835 (non_heuristic_proc_desc): Read the ".pdr" section if it
6836 is present.
6837
6838 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6839
6840 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6841 (arm_debug): New static variable.
6842 (_initialize_arm_tdep): Add ``set debug arm'' command.
6843
6844 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6845
6846 * Makefile.in (sim_arm_h): Define.
6847 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6848 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6849 (arm_register_sim_regno): New function, map an internal REGNUM
6850 onto a simulator register number.
6851 (arm_gdbarch_init): Set register_sim_regno.
6852
6853 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6854
6855 * MAINTAINERS: Add self.
6856
6857 2002-06-11 Jim Blandy <jimb@redhat.com>
6858
6859 * source.c (source_info): Mention whether the symtab has
6860 information about preprocessor macros.
6861
6862 Call the command `info macro', not `show macro'.
6863 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6864 Fix error message.
6865 (_initialize_macrocmd): Register `info_macro_command' in
6866 `infolist', not `showlist'.
6867
6868 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6869
6870 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6871 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6872 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6873 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6874 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6875 unconditionally.
6876 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6877 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6878 (_initialize_mips_tdep): Remove dead code.
6879 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6880 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6881 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6882 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6883 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6884 MIPS_LAST_FP_ARG_REGNUM): Remove.
6885
6886 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6887
6888 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6889 (unwind_tmp_obstack_free, parse_frame_info)
6890 (update_context, cfi_read_fp, cfi_write_fp)
6891 (cfi_frame_chain, cfi_init_extra_frame_info)
6892 (cfi_virtual_frame_pointer): Use the above function.
6893 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6894
6895 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6896
6897 * v850-tdep.c (v850_type_is_scalar): New function.
6898 (v850_use_struct_convention): Match current gcc implementation
6899 as close as possible.
6900 (v850_push_arguments): Fix stack_offset handling. Don't write
6901 struct_addr into register. This is done by v850_store_struct_return.
6902 (v850_extract_return_value): Care for structs.
6903 (v850_store_return_value): Ditto.
6904 (v850_store_struct_return): Actually write address.
6905
6906 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6907
6908 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6909 without debug information too.
6910
6911 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6912
6913 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6914 Make multi-arch pure.
6915 * gdbarch.h, gdbarch.c: Re-generate.
6916 * arm-tdep.c (arm_print_float_info): Update.
6917 * arch-utils.h (default_print_float_info): Update.
6918 * arch-utils.c (default_print_float_info): Update.
6919 * infcmd.c (float_info): Update call.
6920
6921 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6922
6923 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6924 the front of the initialize list.
6925
6926 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6927
6928 * infrun.c (struct inferior_status): Replace fields
6929 selected_frame_address and selected_level with field
6930 selected_frame_id.
6931 (save_inferior_status): Update. Use get_frame_id.
6932 (struct restore_selected_frame_args): Delete.
6933 (restore_selected_frame): Update. Use frame_find_by_id.
6934 (restore_inferior_status): Update.
6935
6936 * breakpoint.h (struct breakpoint): Change type of
6937 watchpoint_frame to frame_id.
6938 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6939 call to get_current_frame.
6940 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6941 get_current_frame.
6942 (watchpoint_check): Use frame_find_by_id.
6943
6944 * frame.h (record_selected_frame): Delete declaration.
6945 * stack.c (record_selected_frame): Delete function.
6946
6947 * frame.h (struct frame_id): Define.
6948 (get_frame_id): Declare.
6949 (frame_find_by_id): Declare.
6950 * frame.c (frame_find_by_id): New function.
6951 (get_frame_id): New function.
6952
6953 2002-06-10 Andrey Volkov <avolkov@transas.com>
6954
6955 * ser-e7kpc.c: Fix duplicated define and call of
6956 _initialize_ser_e7000pc
6957
6958 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6959
6960 * signals/signals.c (target_signal_from_host): Fix #ifdef
6961 SIGRTMIN case.
6962 (do_target_signal_to_host): Likewise.
6963
6964 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6965
6966 * mips-tdep.c (mips_find_abi_section): New function.
6967 (mips_gdbarch_init): Call it.
6968
6969 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6970
6971 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6972 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6973 after Andrew's 2002-06-08 gdbarch change.
6974
6975 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6976
6977 * i386-linux-nat.c (suppy_gregset): Don't supply
6978 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6979 register cache.
6980 (fill_gregset): Don't fetch it under the same circumstances.
6981
6982 2002-06-09 Andrew Cagney <cagney@redhat.com>
6983
6984 * Makefile.in (callback_h): Define.
6985 (remote_sim_h): Update path to remote-sim.h.
6986 (remote-rdp.o): Add $(callback_h).
6987 (remote-sim.o): Use $(callback_h).
6988 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6989 * remote-rdp.c: Include "gdb/callback.h".
6990
6991 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6992
6993 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6994 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6995
6996 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6997
6998 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6999 * rdi-share/serpardr.c: Ditto.
7000 * rdi-share/unixcomm.c: Ditto.
7001 * rdi-share/serdrv.c: Ditto.
7002 * rdi-share/hostchan.h: Ditto.
7003 * rdi-share/hostchan.c: Ditto.
7004 * rdi-share/host.h: Ditto.
7005 * rdi-share/devsw.c: Ditto.
7006
7007 * objfiles.h: Change type of obj_private to void pointer.
7008 * pa64solib.c: Update copyright. Don't include "assert.h", use
7009 strcmp instead of STREQ, use LONGEST, do not use PTR
7010 * somsolib.c: Ditto.
7011
7012 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7013 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7014 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7015
7016 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7017
7018 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7019 (default_get_saved_register): Delete function.
7020 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7021 generic_unwind_get_saved_register.
7022 * gdbarch.h, gdbarch.c: Re-generate.
7023
7024 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7025
7026 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7027 generic_func_frame_chain_valid.
7028 * gdbarch.h, gdbarch.c: Re-generate.
7029 * blockframe.c (generic_func_frame_chain_valid): Only check
7030 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7031 passing FP to PC_IN_CALL_DUMMY.
7032 Fix PR gdb/360.
7033
7034 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7035
7036 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7037 (register_gdbarch_data): Initialize init_p.
7038 (gdbarch_data): Initialize data pointer using the init function.
7039 (init_gdbarch_data): Delete function.
7040 (gdbarch_update_p): Update.
7041 (initialize_non_multiarch): Update.
7042 (struct gdbarch): Add field initialized_p.
7043 * gdbarch.h, gdbarch.c: Re-generate.
7044
7045 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7046
7047 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7048 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7049 better do the things actually here.
7050 * x86-64-tdep.c (x86_64_register_name2nr): New.
7051 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7052 (x86_64_gdbarch_init): Respect the above change.
7053 * x86-64-tdep.h (x86_64_register_name2nr)
7054 (x86_64_register_nr2name): Add prototypes.
7055 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7056
7057 2002-06-06 Michael Snyder <msnyder@redhat.com>
7058
7059 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7060 Delete extra braces and re-indent.
7061 (d10v_store_return_value): Char return values
7062 must be shifted over by one byte in R0.
7063 (d10v_extract_return_value): Delete extra braces, re-indent.
7064
7065 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7066
7067 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7068 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7069 (d10v_integer_to_address): Rewrite.
7070 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7071 the d10v specific functions which take care of converting to the
7072 correct space.
7073
7074 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7075
7076 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7077 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7078
7079 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7080
7081 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7082 includes.
7083 * config/tm-linux.h: Ditto.
7084 * config/alpha/tm-alphalinux.h: Ditto.
7085 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7086 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7087 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7088 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7089 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7090 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7091 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7092 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7093 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7094 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7095 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7096 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7097 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7098 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7099 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7100 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7101 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7102 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7103 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7104 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7105 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7106 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7107 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7108 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7109 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7110 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7111 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7112 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7113 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7114 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7115 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7116 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7117 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7118 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7119 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7120 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7121 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7122
7123 2002-05-04 Aidan Skinner <aidan@velvet.net>
7124
7125 * ada-exp.tab.c: New file
7126 * ada-exp.y: New file
7127 * ada-lang.c: New file
7128 * ada-lang.h: New file
7129 * ada-lex.c: New file
7130 * ada-lex.l: New file
7131 * ada-tasks.c: New file
7132 * ada-typeprint.c: New file
7133 * ada-valprint.c: New file
7134
7135 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7136
7137 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7138 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7139
7140 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7141
7142 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7143 insetead of ppc-linux-tdep.o.
7144 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7145 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7146
7147 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7148
7149 2002-05-07 Christian Groessler <chris@groessler.org>
7150 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7151 bit register contents for little endian hosts.
7152
7153 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7154
7155 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7156 any maintainer.
7157
7158 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7159
7160 * gdbarch.h: Regenerate.
7161
7162 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7163
7164 * MAINTAINERS: Add everyone to write-after-approval list.
7165
7166 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7167
7168 * stack.c (frame_info): Use frame_register_unwind instead of
7169 saved_regs. Mention when the SP is on the stack or in a register.
7170
7171 * frame.h (frame_register_unwind_ftype): Define. Document.
7172 (struct frame_info): Add field register_unwind and
7173 register_unwind_cache.
7174 (frame_register_unwind): Declare.
7175 (generic_unwind_get_saved_register): Declare.
7176
7177 * frame.c (frame_register_unwind): New function.
7178 (generic_unwind_get_saved_register): New function.
7179
7180 * blockframe.c (generic_call_dummy_register_unwind): New function.
7181 (frame_saved_regs_register_unwind): New function.
7182 (set_unwind_by_pc): New function.
7183 (create_new_frame): New function.
7184 (get_prev_frame): New function.
7185
7186 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7187
7188 * a29k-share/: Delete directory.
7189 * remote-vx29k.c: Delete file.
7190
7191 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7192
7193 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7194 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7195
7196 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7197
7198 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7199 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7200 (sparc64nbsd-nat.o)
7201 (sparcnbsd-nat.o)
7202 (sparcnbsd-tdep.o): New dependency lists.
7203 * NEWS: Note new UltraSPARC NetBSD native configuration.
7204 * configure.host (sparc64-*-netbsd*): New host.
7205 * configure.tgt (sparc-*-netbsdelf*)
7206 (sparc-*-netbsd*): Set gdb_target to nbsd.
7207 (sparc64-*-netbsd*): New target.
7208 * sparc64nbsd-nat.c: New file.
7209 * sparcnbsd-nat.c: New file.
7210 * sparcnbsd-tdep.c: New file.
7211 * sparcnbsd-tdep.h: New file.
7212 * config/sparc/nbsd.mt: New file.
7213 * config/sparc/nbsd64.mh: New file.
7214 * config/sparc/nbsd64.mt: New file.
7215 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7216 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7217 (HOST_IPC): Remove.
7218 * config/sparc/nbsdaout.mt: Remove.
7219 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7220 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7221 (HOST_IPC): Remove.
7222 * config/sparc/nbsdelf.mt: Remove.
7223 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7224 sparc-nat.c compatiblity defines.
7225 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7226 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7227 * config/sparc/tm-nbsd64.h: New file.
7228 * config/sparc/tm-nbsdaout.h: Remove.
7229 * config/sparc/xm-nbsd.h: Remove.
7230
7231 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7232
7233 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7234 * sparc-tdep.c: Include osabi.h.
7235 (gdbarch_tdep): Add osabi member.
7236 (_initialize_sparc_tdep): Use gdbarch_register.
7237 (sparc_gdbarch_init): Use generic OS ABI framework.
7238 (sparc_dump_tdep): New function.
7239
7240 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7241
7242 * corefile.c (do_captured_read_memory_integer): Return non-zero
7243 result.
7244 (safe_read_memory_integer): Copy result of memory read when
7245 status is non-zero. Also, add comments.
7246
7247 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7248
7249 * Makefile.in (ppc_tdep_h): Define.
7250 (ppc-linux-nat.o)
7251 (ppc-linux-tdep.o)
7252 (rs6000-tdep.o): Use $(ppc_tdep_h).
7253 (ppc-sysv-tdep.o)
7254 (ppcnbsd-nat.o)
7255 (ppcnbsd-tdep.o): New dependency lists.
7256 * ppc-tdep.h: Use generic OS ABI framework.
7257 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7258 (ppc_linux_init_abi): New functions.
7259 (ppc_sysv_abi_broken_use_struct_convention)
7260 (ppc_sysv_abi_use_struct_convention)
7261 (ppc_sysv_abi_push_arguments): Move to...
7262 * ppc-sysv-tdep.c: ...here.
7263 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7264 * rs6000-tdep.c (process_note_abi_tag_sections)
7265 (get_elfosabi): Remove.
7266 (rs6000_gdbarch_init): Use generic OS ABI framework.
7267 (rs6000_dump_tdep): New function.
7268 (_initialize_rs6000_tdep): Use gdbarch_register.
7269 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7270 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7271 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7272 of ppc-linux-tdep.o.
7273 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7274 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7275 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7276 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7277 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7278 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7279
7280 2002-05-29 Jim Blandy <jimb@redhat.com>
7281
7282 * macroscope.c (default_macro_scope): Put `void' in empty argument
7283 list.
7284
7285 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7286
7287 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7288 * arch-utils.c: Include "sim-regno.h".
7289 * gdbarch.sh: Don't include "sim-regno.h".
7290 * gdbarch.h, gdbarch.c: Regenerate.
7291 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7292 here.
7293 * arch-utils.h (legacy_register_sim_regno): To here.
7294 * remote-sim.c (legacy_register_sim_regno): Move function from
7295 here.
7296 * arch-utils.c (legacy_register_sim_regno): To here.
7297
7298 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7299
7300 * sim-regno.h: New file.
7301 * Makefile.in (sim_regno_h): Define.
7302 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7303 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7304 (legacy_register_sim_regno): New function.
7305 (one2one_register_sim_regno): New function.
7306 (gdbsim_fetch_register): Rewrite.
7307 (gdbsim_store_register): Only store a register when
7308 REGISTER_SIM_REGNO is valid.
7309 * d10v-tdep.c: Include "sim-regno.h".
7310 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7311 (d10v_ts3_register_sim_regno): Ditto.
7312 * gdbarch.sh: Include "sim-regno.h".
7313 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7314 * gdbarch.h, gdbarch.c: Regenerate.
7315 * arch-utils.h (default_register_sim_regno): Delete declaration.
7316 * arch-utils.c (default_register_sim_regno): Delete function.
7317
7318 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7319
7320 * ppcnbsd-nat.c: Rewrite.
7321 * ppcnbsd-tdep.c: New file.
7322 * ppcnbsd-tdep.h: New file.
7323 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7324 solib.o, and solib-svr4.o.
7325 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7326 nbsd-tdep.o, and corelow.o.
7327
7328 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7329
7330 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7331 `tr' and `sed'. Mention that `broken' targets are not expected to
7332 build.
7333
7334 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7335
7336 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7337 Let PC point right after the prologue before looking up symbols.
7338
7339 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7340
7341 * i386-tdep.c (i386_register_virtual_type): Return
7342 builtin_type_vec128i for SSE registers.
7343
7344 * gdbtypes.h (builtin_type_vec128i): Declare.
7345
7346 * gdbtypes.c (build_builtin_type_vec128i): New function.
7347 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7348 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7349 (build_gdbtypes): Initialize new builtin vector types.
7350 (_initialize_gdbtypes): Register new vector types with gdbarch.
7351
7352 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7353
7354 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7355 since it has been multi-arch'd.
7356 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7357 Move Alpha and VAX multi-arch news entries to same section
7358 as other multi-arch news.
7359
7360 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7361
7362 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7363 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7364 static. Rename some register numbers to put them in ns32k-tdep
7365 private namespace.
7366 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7367 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7368 functions.
7369 (_initialize_ns32k_tdep): Use gdbarch_register.
7370 * ns32k-tdep.h: New file.
7371 * ns32knbsd-tdep.c: New file.
7372 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7373 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7374 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7375 REGISTER_BYTES, REGISTER_BYTE): Remove.
7376 * config/ns32k/tm-ns32k.h: New file.
7377 * config/ns32k/tm-umax.h: Remove.
7378
7379 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7380
7381 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7382 ns32k_store_struct_return, ns32k_extract_return_value,
7383 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7384 functions.
7385 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7386 ns32k_saved_pc_after_call.
7387 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7388 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7389 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7390 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7391 ns32k_extract_struct_value_address.
7392
7393 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7394
7395 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7396 ns32k_fix_call_dummy): New.
7397 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7398 ns32k_call_dummy_words.
7399 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7400 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7401 CALL_DUMMY_NARGS): Remove.
7402 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7403
7404 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7405
7406 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7407 ns32k_frame_saved_pc, ns32k_frame_args_address,
7408 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7409 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7410 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7411 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7412 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7413 (BREAKPOINT): Remove..
7414 (FRAME_CHAIN): Define as ns32k_frame_chain.
7415 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7416 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7417 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7418 (FRAME_FIND_SAVED_REGS): Remove.
7419 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7420 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7421 (POP_FRAME): Define as ns32k_pop_frame.
7422
7423 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7424
7425 * ns32k-tdep.c (ns32k_register_byte_32082,
7426 ns32k_register_byte_32382, ns32k_register_raw_size,
7427 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7428 functions.
7429 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7430 ns32k_register_byte_32382.
7431 * config/ns32k/tm-umax.h: Update copyright years.
7432 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7433 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7434 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7435 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7436 (ns32k_get_enter_addr): Fix prototype.
7437
7438 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7439
7440 * ns32k-tdep.c: Update copyright years.
7441 (ns32k_register_name_32082): New function.
7442 (ns32k_register_name_32382): Ditto.
7443 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7444 (REGISTER_NAME): Define as ns32k_register_name_32382.
7445 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7446 (REGISTER_NAME): Define as ns32k_register_name_32082.
7447
7448 2002-05-24 Jim Blandy <jimb@redhat.com>
7449
7450 * dwarf2read.c (free_line_header): Use xfree, not free.
7451
7452 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7453
7454 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7455 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7456
7457 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7458
7459 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7460
7461 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7462
7463 From Ross Alexander at NEC Europe:
7464 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7465
7466 2002-05-23 Michael Snyder <msnyder@redhat.com>
7467
7468 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7469 for input, rather than parse_and_eval_address.
7470
7471 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7472
7473 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7474 * Makefile.in (sim_d10v_h): Update definition.
7475
7476 2002-05-24 Andrew Cagney <cagney@redhat.com>
7477
7478 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7479 change `2002-05-22 Michael Snyder' below.
7480 (d10v_push_arguments): Ditto.
7481 (d10v_extract_return_value): Ditto.
7482
7483 2002-05-23 Jim Blandy <jimb@redhat.com>
7484
7485 * macrotab.c (check_for_redefinition): Don't complain if the new
7486 definition is the same as the previous one. Take more arguments
7487 to allow the comparison.
7488 (macro_define_object, macro_define_function): Pass more arguments
7489 to check_for_redefinition.
7490
7491 2002-05-22 Michael Snyder <msnyder@redhat.com>
7492
7493 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7494 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7495 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7496 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7497 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7498 Add a temp variable to save a call (and a memory read).
7499 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7500 if possible (so that PC_IN_CALL_DUMMY will work).
7501
7502 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7503
7504 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7505
7506 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7507
7508 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7509 fde->cie_ptr.
7510 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7511 (dwarf2_build_frame_info): Add offset to fde->initial_location
7512 so that frames of shared libraries are mapped correctly.
7513 (execute_stack_op): Change type of 'result' from ULONGEST to
7514 CORE_ADDR.
7515
7516 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7517
7518 * config/alpha/tm-nbsd.h: Include solib.h.
7519
7520 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7521
7522 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7523 assumptions about the host's byte order.
7524
7525 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7526
7527 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7528 to dependency list.
7529 * alphanbsd-tdep.c: Include solib-svr4.h.
7530 * shnbsd-tdep.c: Ditto.
7531
7532 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7533
7534 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7535 nbsd-tdep.h to dependency list.
7536 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7537 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7538 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7539 nbsdaout.mh and nbsdelf.mh consistently.
7540 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7541 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7542 nbsdaout.mt and nbsdelf.mh consistently.
7543 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7544 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7545 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7546 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7547 a.out shared library stuff from here...
7548 * config/nm-nbsdaout.h: ...to here.
7549 * config/tm-nbsd.h: Remove.
7550 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7551 * config/arm/nbsd.mh: Remove.
7552 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7553 nbsd-tdep.o.
7554 * config/arm/nbsdaout.mh: New file.
7555 * config/arm/nbsdelf.mh: New file.
7556 * config/arm/nm-nbsdaout.h: New file.
7557 * config/i386/nbsd.mh: Remove.
7558 * config/i386/nbsd.mt: Remove.
7559 * config/i386/nbsdaout.mh: New file.
7560 * config/i386/nbsdaout.mt: New file.
7561 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7562 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7563 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7564 i386_register_u_addr): Remove.
7565 * config/i386/nm-nbsdaout.h: New file.
7566 * config/i386/nm-nbsdelf.h: Remove.
7567 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7568 (USE_STRUCT_CONVENTION): Remove.
7569 * config/i386/tm-nbsdaout.h: New file.
7570 * config/i386/tm-nbsdelf.h: Remove.
7571 * config/m68k/nbsd.mh: Remove.
7572 * config/m68k/nbsd.mt: Remove.
7573 * config/m68k/nbsdaout.mh: New file.
7574 * config/m68k/nbsdaout.mt: New file.
7575 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7576 * config/m68k/nm-nbsdaout.h: New file.
7577 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7578 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7579 * config/ns32k/nbsd.mh: Remove.
7580 * config/ns32k/nbsd.mt: Remove.
7581 * config/ns32k/nbsdaout.mh: New file.
7582 * config/ns32k/nbsdaout.mt: New file.
7583 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7584 * config/ns32k/nm-nbsdaout.h: New file.
7585 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7586 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7587 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7588 (SVR4_SHARED_LIBS): Remove.
7589 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7590 * config/sparc/nbsd.mh: Remove.
7591 * config/sparc/nbsd.mt: Remove.
7592 * config/sparc/nbsdaout.mh: New file.
7593 * config/sparc/nbsdaout.mt: New file.
7594 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7595 * config/sparc/nbsdelf.mt: New file.
7596 * config/sparc/nm-nbsdaout.h: New file.
7597 * config/sparc/nm-nbsdelf.h: Remove.
7598 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7599 * config/sparc/tm-nbsdaout.h: New file.
7600
7601 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7602
7603 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7604 mipsnbsd-tdep.c
7605 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7606
7607 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7608
7609 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7610 shnbsd-nat.c.
7611 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7612
7613 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7614
7615 * NEWS: Note new MIPS NetBSD native configuration.
7616 * configure.host (mips*-*-netbsd*): New host.
7617 * configure.tgt (mips*-*-netbsd*): New target.
7618 * mipsnbsd-nat.c: New file.
7619 * mipsnbsd-tdep.c: New file.
7620 * mipsnbsd-tdep.h: New file.
7621 * config/mips/nbsd.mh: New file.
7622 * config/mips/nbsd.mt: New file.
7623 * config/mips/nm-nbsd.h: New file.
7624 * config/mips/tm-nbsd.h: New file.
7625
7626 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7627
7628 * Makefile.in (SFILES): Add osabi.c.
7629 (COMMON_OBS): Add osabi.o.
7630 (osabi.o): New dependency list.
7631 * osabi.c: New file.
7632 * osabi.h: New file.
7633 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7634
7635 * Makefile.in (alpha_tdep_h): Define and use instead of
7636 alpha-tdep.h.
7637 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7638 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7639 Remove.
7640 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7641 * alpha-tdep.h: Include osabi.h.
7642 (alpha_abi): Remove.
7643 (gdbarch_tdep): Use generic OS ABI framework.
7644 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7645 gdbarch_register_osabi.
7646 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7647 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7648 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7649
7650 * Makefile.in (sh_tdep_h): Add osabi.h.
7651 * sh-tdep.h (sh_osabi): Remove.
7652 (gdbarch_tdep): Use generic OS ABI framework.
7653 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7654 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7655 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7656 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7657
7658 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7659 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7660 gdbarch_register_osabi.
7661 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7662 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7663 (get_elfosabi): Rename to...
7664 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7665 ABI framework support routines.
7666 (arm_gdbarch_init): Use generic OS ABI framework.
7667 (arm_dump_tdep): Likewise.
7668 (_initialize_arm_tdep): Likewise.
7669 * arm-tdep.h: Include osabi.h.
7670 (arm_abi): Remove.
7671 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7672 osabi member.
7673 (arm_gdbarch_register_os_abi): Remove prototype.
7674 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7675 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7676
7677 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7678 * mips-tdep.c: Include osabi.h.
7679 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7680 OS ABI framework.
7681
7682 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7683
7684 * h8300-tdep.c: Fix formatting.
7685
7686 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7687
7688 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7689 printing vector registers.
7690
7691 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7692
7693 From Fernando Nasser:
7694 * remote.c (remote_async_open_1): Re-throw the exception when the
7695 connection fails.
7696 (remote_cisco_open): Ditto.
7697 (remote_open_1): Ditto.
7698
7699 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7700
7701 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7702 (remote_start_remote): Add uiout parameter. Pass through to
7703 remote_start_remote_dummy.
7704 (remote_open_1): Use catch_exception instead of catch_errors.
7705 (remote_async_open_1): Ditto.
7706 (remote_cisco_open): Ditto.
7707
7708 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7709
7710 * remote.c (remote_start_remote): Replace PTR with void pointer.
7711 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7712 static.
7713
7714 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7715
7716 * gdb_indent.sh: Allow the script to be run in the sim directory.
7717
7718 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7719
7720 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7721 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7722
7723 * corelow.c (core_open): Only call set_gdbarch_from_file if
7724 exec_bfd is NULL.
7725
7726 2002-05-17 Andrey Volkov <avolkov@transas.com>
7727
7728 * h8300-tdep.c: Add support of EXR register
7729 * config/h8300/tm-h8300.h: Ditto.
7730
7731 2002-05-17 Andrey Volkov <avolkov@transas.com>
7732
7733 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7734
7735 2002-05-17 Andrey Volkov <avolkov@transas.com>
7736
7737 * h8300-tdep.c: Change literal regnums to REGNO.
7738
7739 2002-05-17 Jim Blandy <jimb@redhat.com>
7740
7741 * NEWS: Note addition of macro support.
7742
7743 Expand preprocessor macros in C expressions.
7744 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7745 (scan_macro_expansion, scanning_macro_expansion,
7746 finished_macro_expansion): New function declarations.
7747 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7748 variable declarations.
7749 * parser-defs.h (expression_context_pc): New declaration.
7750 * parse.c (expression_context_pc): New variable.
7751 (parse_exp_1): Set expression_context_pc, as well as
7752 expression_context_block.
7753 * c-exp.y (yylex): If we're not already reading the result of a
7754 macro expansion, try to macro-expand the next token. When we're
7755 done scanning a macro expansion, switch back to the mainline text.
7756 Commas and `if's in a macro's expansion don't terminate the input.
7757 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7758 (macro_original_text, macro_expanded_text,
7759 expression_macro_lookup_func, expression_macro_lookup_baton): New
7760 variables.
7761 (scan_macro_expansion, scanning_macro_expansion,
7762 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7763 c_preprocess_and_parse): New functions.
7764 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7765 c_preprocess_and_parse, instead of c_parse.
7766 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7767 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7768
7769 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7770
7771 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7772 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7773 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7774
7775 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7776
7777 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7778
7779 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7780
7781 * Makefile.in (sh_tdep_h): Define and use.
7782 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7783 register enum): Move to...
7784 * * sh-tdep.h: ...here.
7785 * sh-tdep.c: Include sh-tdep.h.
7786 * sh3-rom.c: Likewise.
7787 * shnbsd-tdep.c: Likewise.
7788
7789 2002-05-16 Michael Snyder <msnyder@redhat.com>
7790
7791 * arm-tdep.c: Spelling fix in comment.
7792
7793 2002-05-16 Jim Blandy <jimb@redhat.com>
7794
7795 Add commands for manually expanding macros and showing their
7796 definitions.
7797 * macrocmd.c, macroscope.c, macroscope.h: New files.
7798 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7799 (macroscope_h): New variable.
7800 (HFILES_NO_SRCDIR): Add macroscope.h.
7801 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7802 (macroscope.o, macrocmd.o): New rules.
7803
7804 Teach the Dwarf 2 reader to read macro information.
7805 * dwarf2read.c: #include "macrotab.h".
7806 (dwarf_macinfo_buffer): New variable.
7807 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7808 dwarf_macinfo_size.
7809 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7810 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7811 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7812 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7813 dwarf2_macro_spaces_in_definition): New complaints.
7814 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7815 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7816 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7817 the partial symbol table.
7818 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7819 from what's recorded in the partial symbol table.
7820 (read_file_scope): If the compilation unit has a
7821 `DW_AT_macro_info' attribute, read its macro information.
7822 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7823
7824 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7825
7826 Fix PR gdb/546
7827 * ser-tcp.c: Don't include <netinet/udp.h>.
7828
7829 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7830
7831 * MAINTAINERS: Update my email address.
7832
7833 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7834
7835 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7836 include file of the same name.
7837
7838 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7839
7840 * configure.tgt: Mark v850 as multi-arched.
7841 * config/v850/tm-v850.h: Remove file.
7842 * config/v850/v850.mt: Eliminate TM_FILE.
7843
7844 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7845
7846 * v850-tdep.c: Full multi-arch.
7847 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7848 Define GDB_MULTI_ARCH to 2.
7849
7850 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7851
7852 * p-exp.y (current_type): New static variable.
7853 Carries the type of the expression at the position that is parsed.
7854 (push_current_type, pop_current_type): Two new functions. Used
7855 to store/restore current_type in expression on specific tokens.
7856 (search_field): New static variable. Set to one after parsing a point
7857 as at that point only a FIELDNAME token should be searched.
7858 (FIELDNAME): New token. After a point only a token belonging to
7859 current_type type definition is allowed.
7860 (all over token rules): reset and change current_type according
7861 to rules.
7862 (exp '[' rule): insert implicit array index field if
7863 exp is a pascal string type.
7864
7865 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7866
7867 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7868 frame info. Use frame_info's saved_regs instead of matching member
7869 in extra_frame_info throughout.
7870 (v850_frame_init_saved_regs): New function.
7871 (v850_init_extra_frame_info): Move most functionality into
7872 v850_frame_init_saved_regs().
7873 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7874 (v850_frame_find_saved_regs): Remove declaration.
7875 (FRAME_FIND_SAVED_REGS): Remove definition.
7876 (v850_frame_init_saved_regs): Add declaration.
7877 (FRAME_INIT_SAVED_REGS): Add definition.
7878
7879 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7880
7881 * v850-tdep.c: Begin multi-arch'ing v850.
7882 (v850_target_architecture_hook): Remove function.
7883 (v850_gdbarch_init): New function. Add code previously in
7884 v850_target_architecture_hook().
7885 (_initialize_v850_tdep): Don't set target_architecture_hook.
7886 Call register_gdbarch_init() instead.
7887
7888 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7889
7890 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7891 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7892 (fixup_class_method_type): Likewise.
7893
7894 2002-05-15 Jim Blandy <jimb@redhat.com>
7895
7896 Add macro structures to GDB's symbol tables. Nobody puts anything
7897 in them yet.
7898 * symtab.h (struct symtab): New member: `macro_table'.
7899 * buildsym.h (pending_macros): New global variable.
7900 * buildsym.c: #include "macrotab.h".
7901 (buildsym_init): Initialize `pending_macros'.
7902 (end_symtab): If we found macro information while reading a CU's
7903 debugging info, do build a symtab structure for it. Make the
7904 symtab point to the macro information, and clear the
7905 `pending_macros' pointer which held it while we were reading the
7906 debug info.
7907 (really_free_pendings): Free any pending macro table.
7908 * objfiles.h (struct objfile): New member: `macro_cache'.
7909 * objfiles.c (allocate_objfile): Set allocate and free functions
7910 for the macro cache's objstack.
7911 (free_objfile): Empty the macro cache's obstack.
7912 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7913 set new allocate and free functions for it.
7914 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7915 free functions for the macro cache's objstack. (Why is this
7916 function building its own objfile?)
7917 * symmisc.c (print_objfile_statistics): Print statistics on the
7918 macro bcache.
7919 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7920
7921 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7922
7923 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7924 (REGISTER_U_ADDR): Delete definition.
7925 (arm_register_u_addr): Delete declaration.
7926
7927 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7928
7929 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7930 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7931
7932 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7933
7934 * regcache.c (register_valid): Revise comments refering to "Not
7935 available" and "unavailable".
7936 * frame.c (frame_register_read): Ditto.
7937 * findvar.c (value_of_register): Ditto.
7938
7939 2002-05-15 Andrew Cagney <cagney@redhat.com>
7940
7941 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7942 (remote-sim.o): Update dependencies.
7943 (d10v-tdep.o): Specify dependencies.
7944 (sim_d10v_h): Define.
7945
7946 2002-05-14 Jim Blandy <jimb@redhat.com>
7947
7948 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7949 * macrotab.c (macro_lookup_inclusion, find_definition,
7950 new_macro_table): Same.
7951
7952 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7953 not `! strcmp ()'. This is a dubious improvement.
7954 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7955
7956 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7957 although it's not necessary, to avoid a warning.
7958
7959 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7960
7961 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7962 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7963 TYPE_INSTANCE_FLAGS.
7964 (struct main_type): New.
7965 (struct type): Move most members to struct main_type. Change
7966 cv_type and as_type to new type_chain member. Add instance_flags.
7967 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7968 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7969 (finish_cv_type): Remove prototype.
7970 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7971 Set TYPE_CHAIN.
7972 (alloc_type_instance): New function.
7973 (smash_type): New function.
7974 (make_pointer_type, make_reference_type, make_function_type)
7975 (smash_to_member_type, smash_to_method_type): Call smash_type.
7976 (make_qualified_type): New function.
7977 (make_type_with_address_space): Call make_qualified_type.
7978 (make_cv_type): Likewise.
7979 (finish_cv_type): Remove unnecessary function.
7980 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7981 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7982 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7983 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7984 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7985 * hpread.c (hpread_read_struct_type): Likewise.
7986 * stabsread.c (read_struct_type): Likewise.
7987
7988 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7989
7990 * configure.tgt: Add a catch all sh* target, for cases like
7991 sh[2,3,4]-elf and sh-hms.
7992
7993 2002-05-14 Keith Seitz <keiths@redhat.com>
7994
7995 * event-loop.c (create_file_handler): Don't do anything but
7996 update data when we are given a fd which we are already
7997 monitoring.
7998
7999 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8000
8001 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8002 (update_context): Use __func__ in warnings.
8003
8004 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8005
8006 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8007 and tcp_close to net_open and net_close.
8008 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8009 using UDP if requested. Don't try to disable Nagle on UDP
8010 sockets.
8011 * remote.c (remote_serial_open): New function. Warn about UDP.
8012 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8013
8014 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8015
8016 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8017
8018 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8019
8020 * configure.tgt: Remove sh-hms target.
8021 * MAINTAINERS: Don't list sh-hms as a separate target.
8022
8023 2002-05-13 Jim Blandy <jimb@redhat.com>
8024
8025 Add first preprocessor macro-expansion files.
8026 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8027 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8028 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8029 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8030 (COMMON_OBS): Add macrotab.o, macroexp.o.
8031 (macroexp.o, macrotab.o): New rules.
8032
8033 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8034
8035 * config/m88k/tm-m88k.h: Update copyright.
8036 (m88k_target_write_pc): Declare
8037 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8038 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8039 (SHIFT_INST_REGS): Update definition.
8040 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8041 using old definition of TARGET_WRITE_PC.
8042 * regcache.c (generic_target_write_pc): Delete code handling
8043 NNPC_REGNUM.
8044 * gdbarch.sh (NNPC_REGNUM): Delete.
8045 * gdbarch.h, gdbarch.c: Regenerate.
8046
8047 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8048
8049 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8050 builtin reg number.
8051
8052 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8053
8054 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8055 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8056 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8057 access macros.
8058 * c-typeprint.c (cp_type_print_method_args): Likewise.
8059 (c_type_print_args): Likewise.
8060 * d10v-tdep.c (d10v_push_arguments): Likewise.
8061 (d10v_extract_return_value): Likewise.
8062 * expprint.c (print_subexp): Likewise.
8063 * gdbtypes.c (lookup_primitive_typename): Likewise.
8064 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8065 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8066 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8067 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8068 (TYPE_VECTOR): Likewise.
8069 * hpread.c (hpread_read_struct_type)
8070 (fix_static_member_physnames, fixup_class_method_type)
8071 (hpread_type_lookup): Likewise.
8072 * mdebugread.c (parse_symbol, parse_type): Likewise.
8073 * p-lang.c (is_pascal_string_type): Likewise.
8074 * valops.c (hand_function_call): Likewise.
8075 * x86-64-tdep.c (classify_argument): Likewise.
8076
8077 * hpread.c (hpread_read_function_type)
8078 (hpread_read_doc_function_type): Call replace_type.
8079 * dstread.c (create_new_type): Delete.
8080 (decode_dst_structure, process_dst_function): Call alloc_type.
8081 Use type access macros.
8082
8083 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8084
8085 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8086 the're not supported by the current architecture.
8087 (i387_fill_fxsave): Likewise.
8088
8089 2002-05-12 Fred Fish <fnf@redhat.com>
8090
8091 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8092 sect_index_xxx members to index the first slot in section_offsets
8093 if all of the section_offsets are zero.
8094
8095 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8096
8097 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8098 checked in with last change.
8099
8100 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8101
8102 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8103 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8104 config.sub.
8105
8106 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8107
8108 * Makefile.in: Update dependencies.
8109
8110 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8111
8112 * language.c (local_hex_string_custom): Simplify. Do not depend
8113 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8114
8115 * memattr.c (mem_info_command): Replace calls to
8116 longest_local_hex_string and longest_local_hex_string_custom.
8117 * buildsym.c (make_blockvector): Ditto.
8118 * solib.c (info_sharedlibrary_command): Ditto.
8119 * tracepoint.c (tracepoints_info): Ditto.
8120 * symtab.c (print_msymbol_info): Ditto.
8121
8122 * language.c (local_hex_string): Delete.
8123 (local_hex_string_custom): Delete.
8124 (longest_local_hex_string): Rename to local_hex_string.
8125 (longest_local_hex_string_custom): Rename to
8126 local_hex_string_custom.
8127 * language.h (local_hex_string): Change parameter type to LONGEST.
8128 (local_hex_string_custom): Ditto.
8129 (longest_local_hex_string): Delete declaration.
8130 (longest_local_hex_string_custom): Ditto.
8131
8132 * solib.c: Update copyright.
8133 * memattr.c: Update copyright.
8134
8135 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8136
8137 * arch-utils.h (legacy_register_to_value): Declare.
8138 (legacy_value_to_register): Declare.
8139 (legacy_convert_register_p): Declare.
8140 * arch-utils.c (legacy_register_to_value): New function.
8141 (legacy_value_to_register): New function.
8142 (legacy_convert_register_p): New function.
8143
8144 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8145 (VALUE_TO_REGISTER): Define.
8146 (CONVERT_REGISTER_P): Define.
8147 * gdbarch.h, gdbarch.c: Regenerate.
8148
8149 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8150 VALUE_TO_REGISTER.
8151 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8152 CONVERT_REGISTER_P.
8153
8154 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8155 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8156
8157 * Makefile.in: Update dependencies for valops.c.
8158 * valops.c: Include "gdb_assert.h".
8159 (typecmp): Skip THIS parameter to methods.
8160 (find_method_list): Remove static_memfuncp argument,
8161 update callers. Check for stub methods.
8162 (find_value_oload_method_list): Don't set *static_memfuncp.
8163 (find_overload_match): Don't check for stub methods. Assert
8164 that methods are not stubbed. Handle static methods.
8165 (value_find_oload_method_list): Remove static_memfuncp argument.
8166 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8167 to the argument list for static stub methods.
8168 * value.h (value_find_oload_method_list): Update prototype.
8169
8170 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8171
8172 * arch-utils.h (generic_register_size): Declare.
8173 (generic_register_raw_size, generic_register_virtual_size): Delete
8174 declarations.
8175 * arch-utils.c (generic_register_raw_size): Delete.
8176 (generic_register_size): New function.
8177 (generic_register_virtual_size): Delete.
8178
8179 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8180 default generic_register_size.
8181 * gdbarch.h, gdbarch.c: Re-generate.
8182
8183 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8184 register_virtual_size.
8185 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8186 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8187
8188 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8189
8190 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8191 * gdbarch.h, gdbarch.c: Regenerate.
8192 * gnu-v3-abi.c: Update copyright.
8193 (vtable_address_point_offset): Update.
8194 (gnuv3_rtti_type): Update.
8195 (gnuv3_baseclass_offset): Update.
8196 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8197 (init_fetch_link_map_offsets): Update.
8198 * remote.c (get_remote_state): Update.
8199
8200 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8201
8202 * TODO: Remove value_headof/value_from_vtable_info comment.
8203 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8204 * values.c (value_headof, value_from_vtable_info): Delete.
8205 * value.h (value_from_vtable_info): Delete prototype.
8206
8207 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8208
8209 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8210 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8211 $(gdb_regex_h).
8212 (gdb_assert_h): Define.
8213 (gdb_wait_h): Define.
8214 (gdb_regex_h): Define.
8215
8216 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8217
8218 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8219 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8220
8221 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8222
8223 * nbsd-tdep.c: Fix comment.
8224
8225 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8226
8227 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8228 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8229 (nbsd-tdep.o): New dependency list.
8230 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8231 nbsd-tdep.h.
8232 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8233 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8234 * nbsd-tdep.c: New file.
8235 * nbsd-tdep.h: New file.
8236 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8237 nbsd-tdep.h.
8238 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8239 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8240 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8241 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8242
8243 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8244
8245 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8246 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8247 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8248 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8249 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8250 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8251
8252 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8253
8254 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8255 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8256 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8257 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8258 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8259 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8260 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8261
8262 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8263
8264 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8265 fetch_elfcore_registers to...
8266 * i386nbsd-tdep.c: ...here.
8267 (i386nbsd_use_struct_convention): Rename to...
8268 (i386nbsd_aout_use_struct_convention): ...this.
8269 (i386nbsd_supply_reg): New function.
8270 (i386nbsd_fill_reg): New function.
8271 (fetch_core_registers): Use i386nbsd_supply_reg.
8272 (fetch_elfcore_registers): Likewise.
8273 (_initialize_i386nbsd_tdep): New function.
8274 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8275 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8276 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8277 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8278 (i386nbsd_aout_use_struct_convention): ...this.
8279
8280 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8281
8282 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8283 (store_inferior_registers): Use shnbsd_fill_reg.
8284 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8285 sh_nbsd_supply_register): Collapse into...
8286 (shnbsd_supply_reg): ...this.
8287 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8288 (shnbsd_fill_reg): ...this.
8289 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8290 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8291 (fetch_core_registers): Use shnbsd_supply_reg.
8292 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8293 (sh_nbsd_core_fns): Rename to...
8294 (shnbsd_core_fns): ...this.
8295 (sh_nbsd_elfcore_fns): Rename to...
8296 (shnbsd_elfcore_fns): ...this.
8297 (sh_nbsd_init_abi): Rename to...
8298 (shnbsd_init_abi): ...this.
8299 (_initialize_sh_nbsd_tdep): Rename to...
8300 (_initialize_shnbsd_tdep): ...this.
8301 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8302 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8303 sh_nbsd_fill_register): Remove prototypes.
8304 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8305
8306 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8307
8308 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8309 (i387-nat.o): Delete dependency list.
8310 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8311 (x86-64-linux-nat.o): Likewise.
8312 * i387-nat.c: Delete file, moving contents to...
8313 * i387-tdep.c: ...here.
8314 * i387-nat.h: Rename...
8315 * i387-tdep.h: ...to this.
8316 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8317 * i386-linux-nat.c: Likewise.
8318 * i386bsd-nat.c: Likewise.
8319 * i386gnu-nat.c: Likewise.
8320 * i386nbsd-nat.c: Likewise.
8321 * i386v4-nat.c: Likewise.
8322 * x86-64-linux-nat.c: Likewise.
8323 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8324 * config/i386/go32.mh (NATDEPFILES): Likewise.
8325 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8326 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8327 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8328 * config/i386/linux.mh (NATDEPFILES): Likewise.
8329 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8330 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8331 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8332 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8333
8334 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8335
8336 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8337 (alphanbsd-nat.o): Remove dependency list.
8338 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8339 * alphanbsd-nat.c: Delete. Contents moved to...
8340 * alphanbsd-tdep.c: ...here.
8341 (_initialize_alphanbsd_tdep): Register core functions.
8342 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8343
8344 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8345
8346 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8347 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8348 (alphanbsd-nat.o): Likewise.
8349 (alphabsd-tdep.o): New dependency list.
8350 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8351 (fill_gregset): Use alphabsd_fill_reg.
8352 (supply_fpregset): Use alphabsd_supply_fpreg.
8353 (fill_fpregset): Use alphabsd_fill_fpreg.
8354 (fetch_inferior_registers): Use struct reg and struct fpreg
8355 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8356 and alphabsd_supply_fpreg.
8357 (store_inferior_registers): Use struct reg and struct fpreg
8358 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8359 and alphabsd_fill_fpreg.
8360 * alphabsd-tdep.c: New file.
8361 * alphabsd-tdep.h: New file.
8362 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8363 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8364 alphabsd_supply_fpreg.
8365 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8366 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8367
8368 2002-05-11 Eric Christopher <echristo@redhat.com>
8369
8370 * mips-tdep.c (mips_double_register_type): Fix thinko.
8371 (mips_single_register_type): Ditto.
8372 * MAINTAINERS: Add self.
8373
8374 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8375
8376 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8377 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8378 right thing on architectures with different endianness and/or
8379 integer sizes.
8380
8381 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8382
8383 From Christian Limpach <chris@Pin.LU>
8384 * configure.in: Change sed expression which comments out
8385 NATDEPFILES to also comment out continuation lines.
8386 * configure: Regenerate.
8387
8388 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8389
8390 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8391 big patch.
8392
8393 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8394
8395 * sh-tdep.c: Include correct file.
8396
8397 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8398
8399 New support for sh64-elf (sh5) target.
8400
8401 * configure.tgt: For sh64-elf target, default to sh-elf.
8402
8403 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8404 (struct gdbarch_tdep): Add new fields for new registers and ABI
8405 info.
8406
8407 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8408 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8409 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8410 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8411 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8412 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8413 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8414 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8415 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8416 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8417 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8418 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8419 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8420 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8421 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8422 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8423 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8424 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8425 sign_extend, sh64_nofp_frame_init_saved_regs,
8426 sh64_init_extra_frame_info, sh64_get_saved_register,
8427 sh64_extract_struct_value_address, sh64_pop_frame,
8428 sh64_push_arguments, sh64_extract_return_value,
8429 sh64_store_return_value, sh64_show_media_regs,
8430 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8431 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8432 sh_sh64_register_virtual_type,
8433 sh_sh64_register_convert_to_virtual,
8434 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8435 sh64_register_read, sh64_pseudo_register_write,
8436 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8437 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8438 sh64_do_pseudo_register, sh_compact_do_registers_info,
8439 sh64_do_registers_info, sh_gdbarch_init): New functions.
8440
8441 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8442
8443 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8444
8445 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8446
8447 * linespec.c (decode_line_1): Check for a double quote after
8448 a filename correctly.
8449
8450 2002-05-10 Jim Blandy <jimb@redhat.com>
8451
8452 Properly track the size of the current objfile's .debug_line section.
8453 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8454 (DWARF_LINE_SIZE): New macro.
8455 (dwarf2_build_psymtabs_hard): Record the line section's size in
8456 the partial symbol table.
8457 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8458 symbol table.
8459
8460 2002-05-10 Petr Sorfa <petrs@caldera.com>
8461
8462 * ia64-tdep.c: Handle breakpoints on L instruction type
8463 in MLX instruction bundle by moving the breakpoint to
8464 the third slot (X instruction type) as L holds only data.
8465
8466 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8467
8468 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8469 (process_one_symbol): Complain about discarding local symbols
8470 due to a misplaced N_LBRAC entry.
8471
8472 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8473
8474 From Daniel Berlin <dan@cgsoftware.com>
8475 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8476 decrease the depth we are at, in the case of templates.
8477
8478 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8479
8480 * mips-tdep.c (mips_float_register_type): New function.
8481 (mips_double_register_type): New function.
8482 (mips_print_register): Use them.
8483 (do_fp_register_row): Likewise.
8484
8485 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8486
8487 * signals/signals.c (signals): Remove conditional compilation around
8488 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8489 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8490
8491 2002-05-09 Michael Snyder <msnyder@redhat.com>
8492
8493 * remote-rdp.c (remote_rdp_can_run): Remove.
8494
8495 2002-05-09 Tom Tromey <tromey@redhat.com>
8496
8497 * jv-valprint.c (java_val_print): Handle `char' as a special case
8498 of TYPE_CODE_INT.
8499
8500 2002-05-09 Michael Snyder <msnyder@redhat.com>
8501
8502 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8503 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8504 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8505 str r(0123),[sp,#nn].
8506 (arm_skip_prologue): Ditto. Also make disassembly
8507 order-independent by placing it in a loop.
8508
8509 2002-05-06 Michael Snyder <msnyder@redhat.com>
8510
8511 * stabsread.c (read_type): Add recognition for new attribute:
8512 "@V;" means that an array type is actually a vector.
8513 This is analogous to the vector flag that's been added to dwarf2.
8514
8515 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8516
8517 * i386-tdep.h (i386_abi): New enum.
8518 (struct gdbarch_tdep): Replace os_ident member with abi.
8519 (i386_gdbarch_register_os_abi): New prototype.
8520 * i386-tdep.c (i386_abi_names): New array.
8521 (process_note_abi_tag_sections): Removed.
8522 (process_note_sections): New function.
8523 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8524 (struct i386_abi_handler): New struct.
8525 (i386_abi_handler_list): New variable.
8526 (i386_gdbarch_register_os_abi): New function.
8527 (i386_gdbarch_init): Adapt for the changes given above.
8528
8529 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8530
8531 * gregset.h: Say "GNU/Linux".
8532
8533 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8534
8535 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8536 (build_gdbtypes): Build builtin_type_v2_float.
8537 (_initialize_gdbtypes): Register new builtin type.
8538
8539 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8540
8541 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8542 (clear_gdbarch_swap): New function.
8543 (initialize_non_multiarch): Call.
8544 (gdbarch_update_p): Before calling init(), swap out and clear the
8545 existing architecture.
8546 * gdbarch.c: Regenerate.
8547
8548 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8549
8550 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8551 alphanbsd-tdep.c.
8552
8553 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8554
8555 * sh-nbsd-nat.c: Rename to...
8556 * shnbsd-nat.c: ...this.
8557 * sh-nbsd-tdep.c: Rename to...
8558 * shnbsd-tdep.c: ...this.
8559 * sh-nbsd-tdep.h: Rename to...
8560 * shnbsd-tdep.h: ...this.
8561 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8562 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8563
8564 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8565
8566 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8567 concatenation for command help messages.
8568
8569 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8570
8571 * NEWS: Note new sh*-*-netbsdelf* configuration.
8572 * configure.host: Set gdb_host_cpu to sh for all sh*.
8573 (sh*-*-netbsdelf*): New host.
8574 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8575 (sh*-*-netbsdelf*): New target.
8576 * sh-nbsd-nat.c: New file.
8577 * sh-nbsd-tdep.c: New file.
8578 * sh-nbsd-tdep.h: New file.
8579 * config/sh/nbsd.mh: New file.
8580 * config/sh/nbsd.mt: New file.
8581 * config/sh/nm-nbsd.h: New file.
8582 * config/sh/tm-nbsd.h: New file.
8583
8584 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8585
8586 * sh-tdep.c (sh_osabi_names): Declare.
8587 (process_note_abi_tag_sections): New function.
8588 (get_elfosabi): Ditto.
8589 (sh_gdbarch_register_os_abi): Ditto.
8590 (sh_dump_tdep): Ditto.
8591 _initialize_sh_tdep): Use gdbarch_register to register
8592 sh_gdbarch_init and sh_dump_tdep.
8593 * config/sh/tm-sh.h (sh_osabi): Declare.
8594 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8595
8596 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8597
8598 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8599 (thumb_scan_prologue): Ditto.
8600 (arm_find_callers_reg): Ditto.
8601 (arm_frame_chain): Ditto.
8602 (arm_init_extra_frame_info): Ditto.
8603 (arm_frame_saved_pc): Ditto.
8604 (arm_pop_frame): Ditto.
8605 (arm_push_return_address): New function.
8606 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8607 call_dummy_location, call_dummy_breakpoint_offset_p,
8608 call_dummy_breakpoint_offset, call_dummy_p,
8609 call_dummy_stack_adjust_p, call_dummy_words,
8610 sizeof_call_dummy_words, call_dummy_start_offset,
8611 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8612 call_dummy_address, push_return_address and push_dummy_frame for
8613 generic dummy frames.
8614
8615 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8616
8617 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8618 size computation for alloca.
8619 (sh_fp_frame_init_saved_regs): Likewise.
8620
8621 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8622
8623 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8624 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8625 * arm-tdep.c (arm_store_return_value): Use them.
8626 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8627 * remote-rdp.c (remote_rdp_fetch_register): Use
8628 ARM_MAX_REGISTER_RAW_SIZE.
8629 (remote_rdp_store_register): Likewise.
8630
8631 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8632
8633 * dwarf2cfi.c: Code cleanup, removed unused variables,
8634 added default labels to switch {} statements.
8635 * x86-64-tdep.c: Ditto.
8636 * x86-64-linux-nat.c: Ditto.
8637
8638 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8639
8640 * solib.h: Protect against multiple inclusion.
8641
8642 2002-05-06 Jim Blandy <jimb@redhat.com>
8643
8644 Add first preprocessor macro-expansion files.
8645 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8646 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8647 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8648 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8649 (COMMON_OBS): Add macrotab.o, macroexp.o.
8650 (macroexp.o, macrotab.o): New rules.
8651
8652 Separate the job of reading the line number info statement program
8653 header (...expialidocious) out into its own function.
8654 * dwarf2read.c (struct line_head, struct filenames, struct
8655 directories): Replace with...
8656 (struct line_header): New structure, containing the full
8657 contents of the statement program header, including the
8658 include directory and file name tables.
8659 (read_file_scope): If we have line number info, instead of just
8660 calling dwarf_decode_lines to do all the work, call
8661 dwarf_decode_line_header first to get a `struct line_header'
8662 containing the data in the statement program header, and then
8663 pass that to dwarf_decode_lines, which will pick up where that
8664 left off. Be sure to clean up the `struct line_header' object.
8665 (dwarf_decode_line_header, free_line_header, add_include_dir,
8666 add_file_name): New functions.
8667 (dwarf_decode_lines): Move all the code to read the statement
8668 program header into dwarf_decode_line_header. Take the line
8669 header it built as the first argument, instead of the offset to
8670 the compilation unit's line number info. Use the new `struct
8671 line_header' type instead of the old structures. No need to do
8672 cleanups here now, since we don't allocate anything.
8673 (dwarf2_statement_list_fits_in_line_number_section,
8674 dwarf2_line_header_too_long): New complaints.
8675
8676 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8677
8678 * gdbtypes.c (init_vector_type): New function.
8679 (build_builtin_type_vec128): Simplify the representation of SIMD
8680 registers.
8681 (build_gdbtypes): Initialize new builtin vector types.
8682 (_initialize_gdbtypes): Register new vector types with gdbarch.
8683 (builtin_type_v4_float, builtin_type_v4_int32,
8684 builtin_type_v8_int16, builtin_type_v16_int8,
8685 builtin_type_v2_int32, builtin_type_v4_int16,
8686 builtin_type_v8_int8): New (renamed) SIMD types.
8687
8688 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8689
8690 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8691 (i387_fill_fxsave): Likewise.
8692
8693 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8694
8695 * alpha-tdep.c (alpha_extract_return_value): Don't use
8696 non-constant array size in prototype.
8697
8698 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8699
8700 From Brian Taylor <briant at model dot com>:
8701 * ui-out.c (ui_out_field_core_addr): Use the function
8702 longest_local_hex_string_custom'to format addresses > 32 bits
8703 wide.
8704
8705 * ui-out.c (ui_out_field_core_addr): Update comment.
8706
8707 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8708
8709 * stack.c (select_and_print_frame): Make static. Delete the
8710 parameter `level'.
8711 (func_command): Update call.
8712 (select_frame_command): Delete code computing the frame level.
8713 * frame.h (select_and_print_frame): Delete declaration.
8714
8715 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8716
8717 * sparc-tdep.c (sparc_get_saved_register): Comment why
8718 get_prev_frame call is safe.
8719
8720 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8721
8722 * frame.h (select_frame): Delete level parameter.
8723 * stack.c (select_frame): Update. Use frame_relative_level to
8724 obtain the frame's level.
8725 (select_and_print_frame): Update call.
8726 (select_frame_command): Ditto.
8727 (up_silently_base): Ditto.
8728 (down_silently_base): Ditto.
8729 * ocd.c (ocd_start_remote): Ditto.
8730 * remote-rdp.c (remote_rdp_open): Ditto.
8731 * remote-mips.c (mips_initialize): Ditto.
8732 (common_open): Ditto.
8733 * remote-e7000.c (e7000_start_remote): Ditto.
8734 * m3-nat.c (select_thread): Ditto.
8735 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8736 (child_get_current_exception_event): Ditto.
8737 * varobj.c (varobj_create): Ditto.
8738 (varobj_update): Ditto.
8739 (c_value_of_root): Ditto.
8740 * tracepoint.c (finish_tfind_command): Ditto.
8741 * corelow.c (core_open): Ditto.
8742 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8743 * thread.c (info_threads_command): Ditto.
8744 (switch_to_thread): Ditto.
8745 * infrun.c (normal_stop): Ditto.
8746 (restore_selected_frame): Ditto.
8747 (restore_inferior_status): Ditto.
8748 * breakpoint.c (insert_breakpoints): Ditto.
8749 (watchpoint_check): Ditto.
8750 (bpstat_stop_status): Ditto.
8751 (do_enable_breakpoint): Ditto.
8752 * blockframe.c (flush_cached_frames): Ditto.
8753 (reinit_frame_cache): Ditto.
8754
8755 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8756
8757 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8758 maintainer.
8759
8760 2002-05-04 Jim Blandy <jimb@redhat.com>
8761
8762 * gdbtypes.c (replace_type): Doc fix.
8763
8764 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8765
8766 * valprint.c (strcat_longest): Delete commented out function.
8767 Update copyright.
8768
8769 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8770
8771 * MAINTAINERS: Mark a29k as deleted.
8772 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8773 Move new configurations to the top.
8774 * configure.tgt: Remove a29k.
8775 * config/a29k/tm-vx29k.h: Delete.
8776 * config/a29k/vx29k.mt: Delete.
8777 * config/a29k/tm-a29k.h: Delete.
8778 * config/a29k/a29k-udi.mt: Delete.
8779 * config/a29k/a29k.mt: Delete.
8780 * a29k-tdep.c: Delete.
8781 * remote-udi.c: Delete.
8782 * remote-mm.c: Delete.
8783 * remote-eb.c: Delete.
8784 * remote-adapt.c: Delete.
8785 * Makefile.in: Remove obsolete code.
8786 * config/s390/s390x.mt: Ditto.
8787 * config/s390/s390.mt: Ditto.
8788 * config/sparc/sparclynx.mh: Ditto.
8789 * config/sparc/linux.mh: Ditto.
8790 * config/pa/hppaosf.mh: Ditto.
8791 * config/pa/hppabsd.mh: Ditto.
8792 * config/ns32k/nbsd.mt: Ditto.
8793 * config/mips/vr5000.mt: Ditto.
8794 * config/m68k/sun3os4.mh: Ditto.
8795 * config/m68k/nbsd.mt: Ditto.
8796 * config/m68k/m68klynx.mh: Ditto.
8797 * config/m32r/m32r.mt: Ditto.
8798 * config/i386/x86-64linux.mt: Ditto.
8799 * config/i386/nbsdelf.mt: Ditto.
8800 * config/i386/nbsd.mt: Ditto.
8801 * config/i386/i386lynx.mh: Ditto.
8802
8803 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8804
8805 * target.c (debug_print_register): New function. Handle oversize
8806 registers.
8807 (debug_to_fetch_registers): Call.
8808 (debug_to_store_registers): Call.
8809
8810 2002-05-03 Jim Blandy <jimb@redhat.com>
8811
8812 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8813 (read_type): Doc fix.
8814 * gdbtypes.c (replace_type): Doc fix.
8815
8816 * stabsread.c (multiply_defined_struct): New complaint.
8817 (read_struct_type): If the type we were passed isn't empty, or
8818 incomplete, don't read the new struct type into it; complain,
8819 and return the original type unchanged. Take a new `type_code'
8820 argument, which is the type code for the new type.
8821 (read_type): Rather than storing the type's type code here, pass
8822 it as an argument to read_struct_type, and let that take care of
8823 storing it. That way, we don't overwrite the original type code,
8824 so read_struct_type can use it to decide whether we're overwriting
8825 something we shouldn't.
8826 (complain_about_struct_wipeout): New function.
8827
8828 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8829
8830 * gdbarch.sh: Assert that gdbarch is non-NULL.
8831 * gdbarch.c: Regenerate.
8832
8833 2002-05-03 Jason Merrill <jason@redhat.com>
8834
8835 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8836 and return NULL.
8837
8838 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8839
8840 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8841 (x86_64_dwarf2gdb_regno_map_length),
8842 (x86_64_dwarf2_reg_to_regnum): Added.
8843 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8844 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8845 (_initialize_x86_64_tdep): Synced with the change above.
8846 (x86_64_skip_prologue): Reformulated message.
8847
8848 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8849
8850 * f-exp.y: Also use new prev_lexptr variable
8851 to improve error reporting. Based on Michael Snyder
8852 2002-04-24 dated patch to c-exp.y.
8853 * jv-exp.y: Likewise.
8854 * m2-exp.y: Likewise.
8855
8856 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8857
8858 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8859 we are dealing with vectors.
8860
8861 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8862
8863 * config/m68k/tm-nbsd.h: Obvious fix,
8864 correct machine name.
8865
8866 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8867
8868 * p-typeprint.c (pascal_type_print_base): Add support
8869 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8870
8871 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8872
8873 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8874 for fondamental pascal 'char' type.
8875
8876 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8877
8878 * p-lang.h (is_pascal_string_type): Declaration changed,
8879 new sixth argument of type char ** added.
8880 * p-lang.c (is_pascal_string_type): Implementation
8881 changed. Args length_pos, length_size, string_pos, char_size
8882 can now be NULL. New argument arrayname set to the field
8883 name of the char array. Return value set to char array
8884 field index plus one.
8885 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8886 is_pascal_string_type function.
8887
8888 2002-05-02 Andrew Cagney <cagney@redhat.com>
8889
8890 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8891 <cagney@redhat.com> change.
8892 * gdbarch.c: Regenerate.
8893
8894 2002-05-02 Andrew Cagney <cagney@redhat.com>
8895
8896 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8897 before probing for a new one. Detect errorenous gdbarch_init
8898 functions.
8899 * gdbarch.c: Regenerate.
8900
8901 2002-05-01 Andrew Cagney <cagney@redhat.com>
8902
8903 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8904 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8905 * config/v850/tm-v850.h: Ditto. Update copyright.
8906
8907 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8908
8909 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8910 current_gdbarch.
8911
8912 2002-04-30 Michael Snyder <msnyder@redhat.com>
8913
8914 * arm-tdep.c: Whitespace clean-ups.
8915 (arm_skip_prologue): Fix thinko; two lines
8916 should have been removed as part of 4/24 change.
8917
8918 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8919
8920 * rs6000-tdep.c: Added comment describing how fpscr register
8921 numbers were chosen.
8922
8923 2002-04-30 Michael Snyder <msnyder@redhat.com>
8924
8925 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8926
8927 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8928
8929 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8930 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8931 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8932
8933 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8934
8935 From Louis Hamilton <hamilton@redhat.com>:
8936 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8937 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8938 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8939 not bfd-private xcoff data, to determine wordsize.
8940 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8941
8942 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8943
8944 GDB 5.2 released from 5.2 branch.
8945
8946 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8947
8948 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8949 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8950 (x86_64_register_info_table): Added comments with register numbers.
8951
8952 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8953
8954 * rs6000-tdep.c (rs6000_extract_return_value,
8955 rs6000_store_return_value): Handle returning vectors.
8956 (rs6000_gdbarch_init): Use
8957 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8958 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8959 New function.
8960 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8961 vectors.
8962 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8963 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8964
8965 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8966
8967 * hpread.c (hpread_psymtab_to_symtab_1,
8968 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8969 with fprintf_unfiltered (gdb_stderr,...).
8970
8971 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8972
8973 * remote-array.c (printf_monitor, write_monitor,
8974 array_insert_breakpoint, array_remove_breakpoint ):
8975 Replace fprintf (stderr,...
8976 with fprintf_unfiltered (gdb_stderr,....
8977 * remote-es.c: Likewise.
8978 * remote-os9k.c: Likewise.
8979 * remote-st.c: Likewise.
8980
8981 2002-04-28 Andreas Schwab <schwab@suse.de>
8982
8983 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8984 linux-proc.o and gcore.o.
8985
8986 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8987
8988 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8989 code without frame pointers.
8990
8991 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8992
8993 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8994 ON_STACK is needed.
8995
8996 2002-04-26 Ben Elliston <bje@redhat.com>
8997
8998 * target.c (do_xfer_memory): Correct reference to the new option
8999 "trust-readonly-sections".
9000
9001 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9002
9003 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9004 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9005 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9006 vectors.
9007 (read_array_type): Record the fact that this array type is really a
9008 vector (i.e. are passed in by value).
9009
9010 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9011
9012 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9013 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9014 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9015 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9016 * alpha-linux-tdep.c: Include frame.h.
9017 (alpha_linux_sigcontext_addr): New function.
9018 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9019 alpha_linux_sigcontext_addr.
9020 * alpha-osf1-tdep.c: Include gdbcore.h.
9021 (alpha_osf1_sigcontext_addr): New function.
9022 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9023 alpha_osf1_sigcontext_addr.
9024 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9025 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9026
9027 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9028
9029 * stack.c (selected_frame_level):
9030 (select_frame): Do not set selected_frame_level.
9031 * frame.h (selected_frame_level): Delete declaration.
9032
9033 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9034
9035 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9036 convert_from_func_ptr-addr when AIX / PowerOpen.
9037
9038 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9039
9040 * valops.c (hand_function_call): Call
9041 generic_save_call_dummy_addr.
9042 * frame.h (generic_save_call_dummy_addr): Declare.
9043 * blockframe.c (struct dummy_frame): Add fields call_lo and
9044 call_hi.
9045 (generic_find_dummy_frame): Check for PC in range call_lo to
9046 call_hi instead of entry_point_address.
9047 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9048 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9049 (generic_save_call_dummy_addr): New function.
9050
9051 2002-04-24 David S. Miller <davem@redhat.com>
9052
9053 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9054 sparc_skip_prologue.
9055 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9056 information to find prologue when possible.
9057 (sparc_prologue_frameless_p): Call examine_prologue directly.
9058 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9059 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9060 second argument.
9061 (SKIP_PROLOGUE): Likewise.
9062
9063 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9064
9065 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9066 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9067 indicate that the condition it was testing is always true.
9068 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9069 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9070 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9071
9072 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9073
9074 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9075 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9076 tdep->jb_pc and tdep->jb_elt_size.
9077 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9078 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9079 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9080 * alpha-nat.c (get_longjmp_target): Remove.
9081 (JB_ELEMENT_SIZE): Ditto.
9082 (JB_PC): Ditto.
9083 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9084 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9085 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9086 to alpha_get_longjmp_target.
9087 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9088 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9089 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9090
9091 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9092
9093 * README: Update to GDB 5.2.
9094
9095 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9096
9097 * gdbarch.sh (LC_ALL): Set to `c'.
9098
9099 2002-04-25 Theodore A. Roth <troth@verinet.com>
9100
9101 * avr-tdep.c: Ran through gdb_indent.sh.
9102
9103 2002-04-25 Theodore A. Roth <troth@verinet.com>
9104
9105 * MAINTAINERS: Add myself as AVR maintainer.
9106 * NEWS: Note new target avr.
9107
9108 2002-04-25 Theodore A. Roth <troth@verinet.com>
9109
9110 * Makefile.in: Add support for AVR target.
9111 * configure.tgt: Add support for AVR target.
9112 * avr-tdep.c: New file
9113 * config/avr/avr.mt: New file.
9114
9115 2002-04-25 Theodore A. Roth <troth@verinet.com>
9116
9117 * MAINTAINERS: Add myself to write-after-approval.
9118
9119 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9120
9121 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9122 with fprintf_unfiltered (gdb_stderr,....
9123
9124 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9125
9126 Fix PR gdb/508.
9127 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9128
9129 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9130
9131 * p-exp.y: Also use new prev_lexptr variable
9132 to improve error reporting. Based on Michael Snyder
9133 2002-04-24 dated patch to c-exp.y.
9134
9135 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9136
9137 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9138 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9139 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9140 to 0.
9141 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9142 and struct value.
9143 (FUNCTION_START_OFFSET): Remove.
9144 (BREAKPOINT): Ditto.
9145
9146 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9147
9148 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9149 * NEWS: Ditto.
9150
9151 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9152
9153 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9154 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9155 alpha_linux_pc_in_sigtramp.
9156 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9157 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9158 alpha_osf1_pc_in_sigtramp.
9159 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9160 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9161 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9162 alphafbsd_pc_in_sigtramp.
9163 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9164 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9165 alphanbsd_pc_in_sigtramp.
9166 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9167 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9168
9169 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9170
9171 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9172
9173 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9174
9175 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9176 alphanbsd-tdep.c.
9177 (alphanbsd-nat.o): New dependency list.
9178 (alphanbsd-tdep.o): Ditto.
9179 * NEWS: Note new native NetBSD/alpha configuration.
9180 * alphanbsd-nat.c: New file.
9181 * alphanbsd-tdep.c: Ditto.
9182 * configure.host (alpha*-*-netbsd*): New host.
9183 * configure.tgt (alpha*-*-netbsd*): New target.
9184 * config/alpha/nbsd.mh: New file.
9185 * config/alpha/nbsd.mt: Ditto.
9186 * config/alpha/nm-nbsd.h: Ditto.
9187 * config/alpha/tm-nbsd.h: Ditto.
9188
9189 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9190
9191 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9192 (alpha-osf1-tdep.o): New dependency list.
9193 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9194 and skip_sigtramp_frame members.
9195 * alpha-linux-tdep.c: Include gdbcore.h.
9196 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9197 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9198 * alpha-osf1-tdep.c: New file.
9199 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9200 alpha-osf1-dep.c.
9201 (alpha_frame_past_sigtramp_frame): New function.
9202 (alpha_dynamic_sigtramp_offset): Ditto.
9203 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9204 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9205 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9206 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9207 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9208 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9209 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9210 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9211 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9212 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9213 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9214 to find_solib_trampoline_target.
9215 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9216 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9217 (SKIP_TRAMPOLINE_CODE): Remove.
9218 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9219 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9220 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9221 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9222 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9223 (PROC_SIGTRAMP_MAGIC): Ditto.
9224 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9225 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9226 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9227 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9228 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9229
9230 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9231
9232 * NEWS: Note that Alpha targets are now multi-arch.
9233
9234 2002-04-24 Michael Snyder <msnyder@redhat.com>
9235
9236 * parser-defs.h (prev_lexptr): New external variable.
9237 * parse.c (parse_exp_1): Set prev_lexptr to null before
9238 calling the language-specific parser.
9239 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9240 (yyerror): Use prev_lexptr in error reporting.
9241
9242 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9243
9244 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9245 * gregset.h: If FILL_FPXREGSET is defined, provide
9246 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9247 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9248 is defined, call fill_fpxregset.
9249
9250 2002-04-24 Roland McGrath <roland@frob.com>
9251
9252 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9253 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9254 (supply_gregset, supply_fpregset): New functions.
9255
9256 * gnu-nat.c (gnu_find_memory_regions): New function.
9257 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9258 (gnu_xfer_memory): Add a cast.
9259
9260 2002-04-24 Michael Snyder <msnyder@redhat.com>
9261
9262 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9263 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9264 of argument regs ("str r(0123), [r11, #-nn"]).
9265 (arm_skip_prologue): Better handling for frameless functions.
9266 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9267 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9268
9269 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9270
9271 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9272 NUM_PSEUDO_REGS can be used.
9273
9274 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9275
9276 * arch-utils.h: Update copyright.
9277
9278 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9279 * gdbarch.h, gdbarch.c: Re-generate.
9280
9281 * inferior.h (IN_SIGTRAMP): Delete definition.
9282 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9283 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9284
9285 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9286 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9287 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9288 (find_proc_framesize): Ditto.
9289 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9290 (alpha_init_extra_frame_info): Ditto.
9291 * infrun.c (handle_inferior_event): Ditto.
9292 (handle_inferior_event): Ditto.
9293 (check_sigtramp2): Ditto.
9294 * blockframe.c (create_new_frame): Ditto.
9295 (get_prev_frame): Ditto.
9296 * ppc-linux-tdep.c: Update comments.
9297 * i386-linux-tdep.c: Update comments.
9298 * breakpoint.c (bpstat_what): Update comment.
9299
9300 2002-04-24 David S. Miller <davem@redhat.com>
9301
9302 * i960-tdep.c (register_in_window_p): New function.
9303 (i960_find_saved_register): Use it instead of
9304 REGISTER_IN_WINDOW_P.
9305 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9306
9307 * symtab.h (find_stab_function_addr): Kill extern.
9308 * minsyms.c (find_stab_function_addr): Remove from here...
9309 * dbxread.c: ... to here, and mark it static.
9310
9311 2002-04-20 David S. Miller <davem@redhat.com>
9312
9313 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9314 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9315
9316 2002-04-21 David S. Miller <davem@redhat.com>
9317
9318 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9319 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9320 (vx_write_register): Likewise.
9321
9322 2002-04-23 J. Brobecker <brobecker@gnat.com>
9323
9324 * source.c (is_regular_file): New function.
9325 (openp): Check wether file to open is a regular file
9326 to avoid opening directories.
9327
9328 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9329
9330 * findvar.c (extract_signed_integer): Cast printf argument
9331 to suppress format warning.
9332 (extract_unsigned_integer): Likewise.
9333 * infcmd.c (registers_info): Likewise.
9334 * top.c (get_prompt_1): Likewise.
9335 * valops.c (value_assign): Likewise.
9336 * valprint.c (print_decimal): Likewise.
9337
9338 2002-04-22 H.J. Lu (hjl@gnu.org)
9339
9340 * c-exp.y (typebase): Support
9341
9342 [long|long long|short] [signed|unsigned] [int|]
9343
9344 and
9345
9346 signed [long|long long|short] int
9347
9348 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9349
9350 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9351 and vax-tdep.h.
9352 * vax-tdep.h: New file.
9353 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9354 Make several routines static.
9355 (vax_get_saved_register): New function.
9356 (vax_gdbarch_init): New function.
9357 (_initialize_vax_tdep): Register vax_gdbarch_init.
9358 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9359 Remove macros now under the control of gdbarch.
9360
9361 2002-04-22 Michael Snyder <msnyder@redhat.com>
9362
9363 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9364 Some whitespace and coding standards tweaks.
9365
9366 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9367
9368 * vax-tdep.c: Include regcache.h.
9369 (vax_call_dummy_words): New.
9370 (sizeof_vax_call_dummy_words): New.
9371 (vax_fix_call_dummy): New function.
9372 (vax_saved_pc_after_call): Ditto.
9373 * config/vax/tm-vax.h: Don't include regcache.h.
9374 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9375 (CALL_DUMMY): Remove.
9376 (CALL_DUMMY_WORDS): Define.
9377 (SIZEOF_CALL_DUMMY_WORDS): Define.
9378 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9379
9380 2002-04-18 Michael Snyder <msnyder@redhat.com>
9381
9382 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9383
9384 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9385
9386 * vax-tdep.c (vax_frame_chain): New function.
9387 (vax_push_dummy_frame): Ditto.
9388 (vax_pop_frame): Ditto.
9389 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9390 (FRAMELESS_FUNCTION_INVOCATION): Use
9391 generic_frameless_function_invocation_not.
9392 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9393 (POP_FRAME): Use vax_pop_frame.
9394
9395 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9396
9397 * vax-tdep.c (vax_store_struct_return): New function.
9398 (vax_extract_return_value): Ditto.
9399 (vax_store_return_value): Ditto.
9400 (vax_extract_struct_value_address): Ditto.
9401 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9402 vax_store_struct_return.
9403 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9404 (STORE_RETURN_VALUE): Use vax_store_return_value.
9405 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9406
9407 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9408
9409 * vax-tdep.c (vax_frame_saved_pc): New function.
9410 (vax_frame_args_address_correct): Ditto.
9411 (vax_frame_args_address): Ditto.
9412 (vax_frame_locals_address): Ditto.
9413 (vax_frame_num_args): Move code to be in proximity to
9414 other frame-related functions.
9415 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9416 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9417 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9418 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9419 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9420
9421 2002-04-22 H.J. Lu (hjl@gnu.org)
9422
9423 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9424 includedir.
9425
9426 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9427
9428 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9429 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9430 (FRAME_INIT_SAVED_REGS): New macro.
9431
9432 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9433
9434 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9435
9436 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9437
9438 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9439 where needed.
9440 (fetch_osf_core_registers): Likewise.
9441 (supply_gregset): Likewise.
9442
9443 2002-04-22 J. Brobecker <brobecker@gnat.com>
9444
9445 * symfile.h (get_section_index): Define.
9446 * symfile.c (get_section_index): New function.
9447 * mdebugread.c (SC_IS_SBSS): New macro.
9448 (SC_IS_BSS): Return true for the scBss storage class only, as
9449 the scSBss storage class refers to the .sbss section.
9450 (parse_partial_symbols): Discard the symbols which associated
9451 section does not exist.
9452 Make sure to use the .sbss section index for symbols which
9453 storage class is scBss, rather than using the .bss section index.
9454
9455 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9456
9457 * vax-tdep.c: Update copyright years.
9458 (vax_register_name): New function.
9459 (vax_register_byte): Ditto.
9460 (vax_register_raw_size): Ditto.
9461 (vax_register_virtual_size): Ditto.
9462 (vax_register_virtual_type): Ditto.
9463 * config/vax/tm-vax.h: Update copyright years.
9464 (REGISTER_NAMES): Remove.
9465 (REGISTER_NAME): Define.
9466 (REGISTER_BYTE): Use vax_register_byte.
9467 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9468 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9469 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9470
9471 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9472
9473 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9474 declaration
9475 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9476
9477 2002-04-21 David S. Miller <davem@redhat.com>
9478
9479 * arch-utils.c (generic_prologue_frameless_p): Kill
9480 SKIP_PROLOGUE_FRAMELESS_P code.
9481 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9482 references.
9483 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9484 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9485 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9486 references.
9487 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9488 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9489 (sparc_gdbarch_init): Pass it to
9490 set_gdbarch_prologue_frameless_p.
9491
9492 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9493
9494 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9495 (alphabsd-nat.o): New dependency list.
9496
9497 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9498
9499 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9500 alphafbsd-tdep.c.
9501 (alpha-linux-tdep.o): New dependency list.
9502 (alphafbsd-tdep.o): Likewise.
9503
9504 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9505
9506 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9507 to here...
9508 * alpha-tdep.c: ...from here.
9509 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9510
9511 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9512
9513 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9514 prototype from here...
9515 * alpha-tdep.h: ...to here.
9516
9517 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9518
9519 * frame.h (selected_frame_level): Document as deprecated.
9520 (frame_relative_level): Declare.
9521 * stack.c (frame_relative_level): New function.
9522 (selected_frame_level): Document as deprecated.
9523 (select_frame): Do not set the selected_frame_level.
9524
9525 * stack.c (frame_info, record_selected_frame): Update.
9526 (frame_command, current_frame_command): Update.
9527 (up_silently_base, up_command, down_silently_base): Update.
9528 (down_command): Update.
9529 * inflow.c (kill_command): Update.
9530 * tracepoint.c (finish_tfind_command): Update.
9531 * corelow.c (core_open): Update.
9532 * thread.c (info_threads_command): Update.
9533 (do_captured_thread_select): Update.
9534 * infcmd.c (finish_command): Update.
9535 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9536
9537 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9538
9539 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9540
9541 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9542
9543 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9544 type const.
9545
9546 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9547
9548 * alphafbsd-tdep.c: Update copyright years. Include
9549 alpha-tdep.h.
9550 (alphafbsd_use_struct_convention): Make static.
9551 (alphafbsd_init_abi): New function.
9552 (_initialize_alphafbsd_tdep): New function.
9553 * config/alpha/tm-fbsd.h: Update copyright years.
9554 (USE_STRUCT_CONVENTION): Remove.
9555
9556 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9557
9558 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9559 an Alpha ABI variant.
9560 (alpha_abi_handler_list): Declare.
9561 (alpha_gdbarch_register_os_abi): New function.
9562 (alpha_gdbarch_init): Give registered ABI variant handlers a
9563 chance to tweak the gdbarch once we have set up defaults.
9564 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9565
9566 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9567
9568 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9569 to standard_coerce_float_to_double.
9570 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9571
9572 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9573
9574 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9575 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9576 from gdbarch_tdep rather than a constant.
9577 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9578 the default text address for all Alpha Unix ABIs.
9579 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9580 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9581
9582 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9583
9584 * alpha-tdep.h: New file. Includes several Alpha target constants
9585 taken from...
9586 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9587 let gdbarch deal with.
9588 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9589 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9590 to dependency list.
9591 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9592 Alpha target register names.
9593 * alphabsd-nat.c: Likewise.
9594 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9595 Alpha target register names. Make serveral routines static.
9596 (alpha_get_saved_register): New function.
9597 (alpha_abi_names): New.
9598 (process_note_abi_tag_sections): New function.
9599 (get_elfosabi): New function.
9600 (alpha_gdbarch_init): New function.
9601 (alpha_dump_tdep): New function.
9602 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9603
9604 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9605
9606 * frame.c (find_saved_register): Delete #ifdef
9607 HAVE_REGISTER_WINDOWS code.
9608 * config/sparc/tm-sparc.h: Update comments.
9609 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9610
9611 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9612
9613 * i960-tdep.c (i960_find_saved_register): New function.
9614 (i960_get_saved_register): New function.
9615 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9616 (i960_get_saved_register): Declare.
9617 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9618
9619 2002-04-20 David S. Miller <davem@redhat.com>
9620
9621 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9622
9623 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9624
9625 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9626 instead of NUM_PSEUDO_REGS.
9627
9628 2002-04-20 David S. Miller <davem@redhat.com>
9629
9630 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9631 GDB_MULTI_ARCH_PARTIAL
9632 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9633 define, let tm-sp64.h do it.
9634
9635 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9636
9637 * frame.c (find_saved_register): Avoid a NULL pointer
9638 dereference and actually walk the frame list.
9639
9640 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9641
9642 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9643 sorted in most most-recent-used order. Document.
9644 * gdbarch.h, gdbarch.c: Regenerate.
9645
9646 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9647
9648 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9649 instead of ->prev.
9650 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9651 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9652 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9653 instead of ->prev.
9654
9655 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9656
9657 Fix PR gdb/471.
9658 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9659 (build_builtin_type_vec128): Ditto.
9660 (append_composite_type_field): Fix calculation of type length in
9661 union case.
9662
9663 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9664
9665 * config/djgpp/README: Update.
9666
9667 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9668 compiler warnings.
9669
9670 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9671
9672 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9673 (alpha_setup_arbitrary_frame): ...to this.
9674 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9675 for alpha_setup_arbitrary_frame.
9676
9677 2002-04-18 Andrew Cagney <cagney@redhat.com>
9678
9679 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9680 * gdbarch.h, gdbarch.c: Regenerate.
9681
9682 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9683 * target.h (memory_breakpoint_from_pc): Update declaration.
9684 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9685
9686 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9687 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9688 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9689 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9690 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9691 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9692 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9693 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9694 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9695 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9696 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9697 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9698
9699 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9700 const pointer.
9701 * monitor.c (monitor_insert_breakpoint): Ditto.
9702 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9703
9704 * config/mcore/tm-mcore.h: Update copyright.
9705 * mem-break.c: Ditto.
9706 * xstormy16-tdep.c: Ditto.
9707
9708 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9709
9710 * p-exp.y: Add precedence rule for '^' token.
9711 This removes the shift/reduce conflicts.
9712 Remove the comment concerning these shift/reduce conflicts.
9713
9714 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9715
9716 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9717 (registers_powerpc_nofp): New register set for processors
9718 without floating point unit.
9719
9720 2002-04-18 David S. Miller <davem@redhat.com>
9721
9722 * MAINTAINERS: Add myself to write-after-approval.
9723
9724 2002-04-17 Michael Snyder <msnyder@redhat.com>
9725
9726 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9727
9728 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9729
9730 * rs6000-tdep.c (frame_initial_stack_address): Use
9731 frame_register_read to read the alloca_reg.
9732
9733 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9734
9735 * frame.c (find_saved_register): Find saved registers in the next
9736 not prev frame.
9737 Fix PR gdb/365.
9738
9739 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9740
9741 * gdbarch.sh (LANG): Set to ``c''.
9742
9743 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9744
9745 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9746
9747 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9748
9749 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9750 Update copyright.
9751
9752 * hpread.c (hpread_get_lntt): Add declaration.
9753 Also fix PR gdb/391.
9754
9755 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9756
9757 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9758 * aclocal.m4, configure: Re-generate.
9759 Fix PR gdb/391.
9760
9761 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9762
9763 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9764 instead of tm_print_insn.
9765
9766 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9767
9768 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9769
9770 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9771
9772 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9773 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9774 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9775
9776 2002-04-12 Don Howard <dhoward@redhat.com>
9777
9778 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9779 max_user_call_depth.
9780 (init_cmd_lists): Initialize the new value;
9781 * cli/cli-script.c (execute_user_command): Limit the call depth of
9782 user defined commands. This avoids a core-dump when user commands
9783 are infinitly recursive.
9784
9785 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9786
9787 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9788 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9789 from tdep struct instead of DEFAULT_LR_SAVE.
9790 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9791 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9792 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9793
9794 2002-04-12 Michael Snyder <msnyder@redhat.com>
9795
9796 * Remote.c: Spelling fix.
9797 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9798 If no symbol found for "sbrk", try "_sbrk".
9799 (make_output_phdrs): Use bfd_section_name.
9800 (gcore_copy_callback): Use bfd_section_name.
9801 * eval.c: Indentation fix-ups.
9802 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9803 in case it gets applied to an address that is already
9804 in the instruction space.
9805 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9806 * symfile.c: Fix indentation, long lines.
9807 * source.c: White space fix-up.
9808
9809 2002-04-12 Andrew Cagney <cagney@redhat.com>
9810
9811 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9812 * frame.c (frame_register_read): New function. Return non-zero on
9813 success.
9814 (read_relative_register_raw_bytes_for_frame): Delete.
9815 (read_relative_register_raw_bytes): Delete.
9816 * frame.h (frame_register_read): Declare.
9817 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9818 * sh-tdep.c: Ditto.
9819 * infcmd.c (do_registers_info): Ditto.
9820 * hppa-tdep.c: Ditto.
9821 * rs6000-tdep.c: Ditto.
9822 * h8500-tdep.c: Ditto.
9823 * mips-tdep.c: Ditto.
9824 * h8300-tdep.c: Ditto.
9825 * z8k-tdep.c: Ditto.
9826
9827 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9828
9829 From Jimi X <jimix@watson.ibm.com>:
9830 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9831 64-bit SysV ABI.
9832
9833 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9834
9835 From Jimi X <jimix@watson.ibm.com>:
9836 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9837 bfd info.
9838
9839 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9840
9841 From Jimi X <jimix@watson.ibm.com>:
9842 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9843 register sets for these processor variants.
9844
9845 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9846
9847 * regformats/reg-ppc.dat: Support FPSCR.
9848
9849 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9850
9851 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9852 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9853 Add fpscr as an invalid/unfetchable register.
9854 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9855 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9856 (fill_fpregset): Add support for register fpscr.
9857 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9858 (fill_gregset): Account for the fact that register ``mq'' might
9859 not exist.
9860 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9861 (registers_power): Add fpscr to register set at slot 71.
9862 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9863 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9864
9865 2002-04-11 Michael Snyder <msnyder@redhat.com>
9866
9867 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9868 * configure: Regenerate.
9869 * config.in: Regenerate.
9870 * acconfig.h: Add define for _SYSCALL32.
9871 * core-sol2.c: Remove #define _SYSCALL32.
9872 * solib-legacy.c: Remove #define _SYSCALL32.
9873
9874 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9875
9876 * stack.c (select_frame): Cleanup internal error message, do not
9877 use %p.
9878
9879 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9880
9881 * stack.c (select_frame): Check that selected_frame and the
9882 specified level are as expected.
9883 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9884 Update copyright.
9885 * frame.h (struct frame_info): Add field `level'. Update
9886 copyright.
9887 Work-in-progress PR gdb/464.
9888
9889 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9890
9891 * maint.c (maint_print_section_info): Rename print_section_info.
9892 (print_bfd_section_info, print_objfile_section_info): Update.
9893 * inferior.h (struct gdbarch): Add opaque declaration.
9894 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9895 * gdbarch.h: Regenerate.
9896
9897 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9898
9899 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9900 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9901 (kernel_u_size): Added.
9902 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9903 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9904
9905 2002-04-04 Jim Ingham <jingham@apple.com>
9906
9907 * valarith.c (find_size_for_pointer_math): New function, either returns
9908 the size for a pointer's target, returns 1 for void *, or errors for
9909 incomplete types.
9910 (value_add, value_sub): use find_size_for_pointer_math.
9911
9912 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9913
9914 * linux-low.c (linux_look_up_symbols): New hook.
9915 (linux_target_ops): Add linux_look_up_symbols.
9916 * remote-utils.c (decode_address): New function.
9917 (look_up_one_symbol): New function.
9918 * server.c (handle_query): Call target look_up_symbols hook.
9919 * server.h (look_up_one_symbol): Add prototype.
9920 * target.h (struct target_ops): Add look_up_symbols hook.
9921
9922 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9923
9924 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9925 override FP_REGNUM with frame->fp. Update copyright.
9926 * parse.c (num_std_regs, std_regs): Delete.
9927 (target_map_name_to_register): Do not search std_regs. Update
9928 function description.
9929 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9930 declarations. Update copyright.
9931 Fix PR gdb/251.
9932
9933 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9934
9935 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9936 after the last symbol in a block.
9937
9938 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9939
9940 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9941 is non zero as a found symbol.
9942
9943 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9944
9945 * findvar.c: Include "builtin-regs.h".
9946 (value_of_register): Call value_of_builtin_reg when applicable.
9947 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9948 (target_map_name_to_register): Call
9949 builtin_reg_map_name_to_regnum.
9950 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9951 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9952 (builtin_regs_h): Define.
9953 (builtin-regs.o): New target.
9954 (findvar.o): Add $(builtin_regs_h).
9955 * builtin-regs.c, builtin-regs.h: New files.
9956 * std-regs.c: New file.
9957 Partial fix for PR gdb/251.
9958
9959 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9960
9961 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9962 it's no longer required.
9963
9964 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9965
9966 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9967
9968 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9969
9970 From Jimi X <jimix@watson.ibm.com>:
9971 * rs6000-tdep.c (rs6000_software_single_step): Use
9972 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9973 and size. Use target_insert_breakpoint() and
9974 target_remove_breakpoint() to insert and remove breakpoints
9975 instead of explicit memory reads and writes.
9976
9977 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9978
9979 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9980 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9981 ELF_OBJECT_FORMAT ifdef.
9982
9983 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9984
9985 From Jimi X <jimix@watson.ibm.com>:
9986 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9987
9988 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9989
9990 From Jimi X <jimix@watson.ibm.com>:
9991 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9992 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9993
9994 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9995
9996 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9997 s/asprintf/xasprintf/.
9998 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9999
10000 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10001
10002 I believe Jeff Law denies responsability for this one:
10003 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10004 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10005 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10006 Work-around for PR gdb/366.
10007
10008 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10009
10010 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10011 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10012 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10013
10014 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10015
10016 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10017 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10018 information.
10019
10020 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10021
10022 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10023 maintainer.
10024
10025 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10026
10027 * README (Reporting Bugs in GDB): Document the bug web page as the
10028 prefered way of submitting bugs.
10029 Fix PR gdb/402.
10030
10031 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10032
10033 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10034 -1. Update comment.
10035 * gdbarch.h, gdbarch.c: Re-generate.
10036
10037 2002-04-07 Andreas Schwab <schwab@suse.de>
10038
10039 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10040 buffer to regcache_collect.
10041
10042 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10043
10044 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10045 * gdbarch.c, gdbarch.h: Re-generate.
10046
10047 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10048
10049 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10050 declaration. Fix -Werror.
10051
10052 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10053
10054 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10055 * gdbarch.c: Regenerate.
10056
10057 2002-04-05 Michael Snyder <msnyder@redhat.com>
10058
10059 * breakpoint.c (clear_command): Rewrite middle section to
10060 combine two loops with identical control conditions.
10061 Add a cleanup to eliminate a memory leak.
10062 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10063
10064 2002-04-05 H.J. Lu (hjl@gnu.org)
10065
10066 * solib-svr4.c (bkpt_names): Add "__start".
10067
10068 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10069
10070 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10071 as test for 64 bit target.
10072
10073 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10074
10075 * h8500-tdep.c (h8500_write_fp): Delete function.
10076 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10077 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10078 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10080 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10081 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10082 (s390_write_fp):
10083 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10084 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10085 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10086 (d10v_write_fp): Delete function.
10087 * inferior.h (write_fp, generic_target_write_fp): Delete
10088 declarations.
10089 * regcache.c (generic_target_write_fp): Delete function.
10090 (write_fp): Delete function.
10091 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10092 * gdbarch.h, gdbarch.c: Regenerate.
10093 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10094 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10095 (sparc64_write_fp): Delete declaration.
10096 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10097 (h8500_write_fp): Delete declaration.
10098
10099 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10100
10101 * sparc-tdep.c (sparc64_write_fp): Delete.
10102 (sparc_push_dummy_frame): Replace write_fp call with code to store
10103 the FP directly.
10104 (sparc_gdbarch_init): Do not initialize write_fp.
10105
10106 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10107
10108 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10109 clause.
10110
10111 2002-03-29 Jim Blandy <jimb@redhat.com>
10112
10113 * stack.c (get_selected_block): Add new argument `addr_in_block',
10114 used to return the exact code address we used to select the block,
10115 not just the block.
10116 * blockframe.c (get_frame_block, get_current_block): Same.
10117 * frame.h (get_frame_block, get_current_block,
10118 get_selected_block): Update declarations.
10119 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10120 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10121
10122 2002-04-05 Michael Snyder <msnyder@redhat.com>
10123
10124 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10125 warning message.
10126
10127 2002-04-05 J. Brobecker <brobecker@gnat.com>
10128
10129 * utils.c (xfullpath): New function.
10130 * defs.h (xfullpath): Add declaration.
10131 * source.c (openp): Use xfullpath in place of gdb_realpath to
10132 avoid resolving the basename part of filenames when the
10133 associated file is a symbolic link. This fixes a potential
10134 inconsistency between the filenames known to GDB and the
10135 filenames it prints in the annotations.
10136 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10137 to be able to match a filename with either the real filename, or
10138 the name of any symbolic link to this file.
10139 (lookup_partial_symtab): Ditto.
10140
10141 2002-04-04 Michael Snyder <msnyder@redhat.com>
10142
10143 * breakpoint.c: Add support for hardware breakpoints in overlays.
10144 (overlay_events_enabled): New state variable.
10145 (insert_breakpoints): Use overlay_events_enabled to decide
10146 whether to attempt to set a breakpoint at the overlay load addr.
10147 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10148 (remove_breakpoint): Use overlay_events_enabled to decide
10149 whether breakpoints need to be removed from overlay load addr.
10150 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10151 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10152 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10153 disable_overlay_breakpoints): Update overlay_events_enabled.
10154
10155 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10156
10157 * dwarf2read.c (struct function_range): New.
10158 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10159 (check_cu_functions): New.
10160 (read_file_scope): Initialize global function lists.
10161 Call dwarf_decode_line after processing children.
10162 (read_func_scope): Add to global function list.
10163 (dwarf_decode_lines): Call check_cu_functions everywhere
10164 record_line is called. Call record_line with a linenumber
10165 of 0 to mark sequence ends.
10166
10167 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10168
10169 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10170 change sync with glibc.
10171
10172 2002-04-03 Jim Blandy <jimb@redhat.com>
10173
10174 * configure.in: Call AC_C_INLINE.
10175 * configure: Regenerated.
10176
10177 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10178
10179 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10180 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10181
10182 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10183
10184 * NEWS: Mention gcore support on FreeBSD/i386.
10185
10186 * fbsd-proc.c: New file.
10187 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10188 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10189
10190 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10191 while statement.
10192
10193 2002-03-29 Jim Blandy <jimb@redhat.com>
10194
10195 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10196 unescaped newlines in string literals, but newer ones don't. So
10197 escape them.
10198
10199 2002-03-26 Michael Snyder <msnyder@redhat.com>
10200 Andrew Cagney <cagney@redhat.com>
10201
10202 * cli/cli-dump.c: New file. Dump memory to file,
10203 restore file to memory.
10204 * cli/cli-dump.h: New file.
10205 * Makefile.in: Add rules, dependencies for cli-dump.o.
10206 * NEWS: Mention new commands.
10207
10208 2002-03-28 Michael Snyder <msnyder@redhat.com>
10209
10210 * symfile.c (symbol_file_add): Move test for null symbols to later.
10211
10212 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10213
10214 From veksler at il.ibm.com:
10215 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10216 the xstrduped original path.
10217 Fix PR gdb/417.
10218
10219 2002-03-27 Michael Snyder <msnyder@redhat.com>
10220
10221 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10222 * infcmd.c (_initialize_infcmd): Ditto.
10223 * language.c (_initialize_language): Ditto.
10224 * symfile.c (_initialize_symfile): Ditto.
10225 * top.c (_init_main): Ditto.
10226 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10227
10228 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10229
10230 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10231 vector registers handling.
10232 (skip_prologue): Handle new AltiVec instructions. Fill in new
10233 fields of frame data.
10234 (frame_get_saved_regs): Fill in information for AltiVec registers.
10235
10236 2002-03-27 Jim Blandy <jimb@redhat.com>
10237
10238 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10239 a function; leave this macro here to invoke that function.
10240 (symbol_init_mangled_name): Declaration for that function.
10241 * symtab.c (symbol_init_mangled_name): New function.
10242
10243 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10244
10245 * valarith.c: Replace strerror with safe_strerror.
10246 * tracepoint.c: Ditto.
10247 * lin-lwp.c: Ditto.
10248 * go32-nat.c: Ditto.
10249 * inflow.c: Ditto.
10250 * gnu-nat.c: Ditto.
10251
10252 2002-03-27 Andreas Schwab <schwab@suse.de>
10253
10254 * event-top.c (command_line_handler): Remove useless if.
10255
10256 2002-03-27 Andreas Jaeger <aj@suse.de>
10257
10258 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10259 comment.
10260
10261 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10262
10263 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10264 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10265 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10266 (x86_64_linux_dr_get_status, supply_gregset),
10267 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10268 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10269 (x86_64_register_info_table): Add.
10270 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10271 (x86_64_register_raw_size, x86_64_register_virtual_type),
10272 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10273 general x86_64_register_info_table.
10274 (i386_gdbarch_init): gdbarch_register_bytes is now set
10275 dynamicaly during initialization.
10276 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10277 * gdbserver/linux-x86-64-low.c: Ditto.
10278
10279 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10280
10281 * gdbserver/server.c (main): Call target_signal_to_host_p
10282 and target_signal_to_host on signals received from the remote.
10283 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10284 target_signal_from_host on signals sent to the remote.
10285 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10286 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10287
10288 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10289
10290 * signals/signals.c: Include "server.h" in gdbserver build.
10291 (target_signal_from_name): Don't use STREQ.
10292 (_initialize_signals): Likewise. Don't include function in
10293 gdbserver build.
10294
10295 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10296
10297 * signals.c: Moved to...
10298 * signals/signals.c: Here.
10299 * Makefile (signals.o): Update.
10300
10301 2002-03-26 Jeff Law (law@redhat.com)
10302
10303 * somread.c (som_symtab_read): Remove some commented out code and
10304 updated related comments. Do not set the minimal symbol table to
10305 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10306 in a dynamic executable.
10307 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10308 where we are unable to find the minimal symbol for the given
10309 PC value.
10310
10311 2002-03-25 Jeff Law (law@redhat.com)
10312
10313 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10314
10315 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10316
10317 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10318
10319 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10320
10321 * command.h: Update copyright.
10322 (struct cmd_list_element): Replace definition with opaque
10323 declaration.
10324 (enum cmd_types): Document that it will eventually be moved to
10325 cli/cli-decode.h
10326 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10327 (MALLOCED_REPLACEMENT): Delete macro.
10328 * Makefile.in (cli_decode_h): Add $(command_h).
10329 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10330 * top.c: Include "cli/cli-decode.h".
10331 * completer.c: Include "cli/cli-decode.h".
10332 * maint.c: Include "cli/cli-decode.h".
10333 * cli/cli-decode.h: Include "command.h".
10334 (enum command_class): Delete.
10335 (enum cmd_types): Comment out.
10336 (enum cmd_auto_boolean): Delete.
10337 (enum var_types): Delete.
10338
10339 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10340
10341 * cli/cli-decode.c: Include "gdb_assert.h".
10342 (add_set_or_show_cmd): New static function.
10343 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10344 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10345 all fields, such as func, from the set command.
10346
10347 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10348
10349 * MAINTAINERS (sh-elf): Change warning flag to -w.
10350
10351 2002-03-23 Andrew Cagney <cagney@redhat.com>
10352
10353 * defs.h (error): Add printf format attribute.
10354 * thread-db.c (thread_from_lwp): Fix error format string.
10355 * stack.c (parse_frame_specification): Ditto.
10356 * cli/cli-decode.c (undef_cmd_error): Ditto.
10357 * scm-lang.c (scm_lookup_name): Ditto.
10358 * tracepoint.c (trace_error): Ditto.
10359 * remote-utils.c (usage): Ditto.
10360 * remote.c (compare_sections_command): Ditto.
10361 Fix PR gdb/328.
10362
10363 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10364
10365 * gdbtypes.c (append_composite_type_field): New function.
10366 (init_composite_type): New function.
10367 * gdbtypes.h (append_composite_type_field): Declare.
10368 (init_composite_type): Ditto.
10369
10370 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10371
10372 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10373 function.
10374 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10375 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10376 structure returning convention for SYSV ABI case, but not
10377 for GNU/Linux, FreeBSD, or NetBSD.
10378
10379 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10380
10381 * symtab.h (lookup_block_symbol): Add mangled_name argument
10382 to prototype.
10383
10384 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10385 with new mangled_name argument.
10386 * linespec.c (decode_line_1): Likewise.
10387 * valops (value_of_this): Likewise.
10388 * symtab.c (lookup_transparent_type): Likewise.
10389 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10390 (lookup_symbol): If we are given a mangled name, pass it down
10391 to lookup_symbol_aux.
10392 (lookup_block_symbol): If we are given a mangled name to check
10393 against, only return symbols which match it.
10394
10395 2002-03-22 Christopher Faylor <cgf@redhat.com>
10396
10397 * win32-nat.c (child_create_inferior): Check for proper shell to use
10398 here, in case the user changes it on the fly.
10399 (_initialize_inftarg): Remove shell path considerations.
10400
10401 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10402
10403 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10404 for gdbarch_max_register_raw_size and max_register_virtual_size.
10405 Adjust copyright year.
10406
10407 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10408
10409 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10410 in a function to cover the entire beginning of the function
10411 as well if it does not already.
10412
10413 2002-03-21 Tom Rix <trix@redhat.com>
10414
10415 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10416 (rs6000_ptrace64): Renamed from ptrace64.
10417
10418 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10419
10420 * gdbserver/remote-utils.c (remote_open): Don't call
10421 getprotobyname, we're all using TCP here so just use
10422 IPPROTO_TCP.
10423 * gdbserver/gdbreplay.c (remote_open): Ditto.
10424
10425 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10426
10427 * regcache.c (_initialize_regcache): No need to call
10428 build_regcache() at this time; it gets called whenever
10429 the gdbarch changes.
10430
10431 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10432
10433 * sparc-nat.c: Include sys/param.h where possible.
10434
10435 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10436
10437 Fix PR gdb/422.
10438 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10439 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10440 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10441 complex types.
10442 * stabsread.c (rs6000_builtin_type): Likewise.
10443 (read_sun_floating_type): Likewise.
10444
10445 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10446
10447 * stabsread.c (read_member_functions): Remove skip code for duplicate
10448 constructor/destructor methods. Use standard parsing for these
10449 methods and just do not chain them to the list of methods after
10450 parsing.
10451
10452 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10453
10454 * coffread.c: Remove redundant static declarations. Replace
10455 occurrences of `PTR' with `void *'.
10456 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10457 * top.h (quit_cover): Likewise.
10458 * defs.h (catch_errors): Likewise.
10459
10460 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10461
10462 * defs.h (XMALLOC): Define.
10463 * gdb-events.sh (XMALLOC): Delete macro.
10464 * gdb-events.c, gdb-events.h: Regenerate.
10465 * gdbarch.sh (XMALLOC): Delete macro.
10466 * gdbarch.c: Regenerate.
10467 * serial.c (XMALLOC): Delete macro.
10468 * ui-file.c (XMALLOC): Ditto.
10469 * ser-unix.h (XMALLOC): Ditto.
10470 * sh-tdep.c (XMALLOC): Ditto.
10471 * ui-out.c (XMALLOC): Ditto.
10472 * utils.c (XMALLOC): Ditto.
10473 * i386-tdep.c (XMALLOC): Ditto.
10474 * gdb-events.c (XMALLOC): Ditto.
10475 * d10v-tdep.c (XMALLOC): Ditto.
10476 * cli-out.c (XMALLOC): Ditto.
10477
10478 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10479 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10480 * ui-file.c, ui-out.c: Ditto.
10481
10482 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10483
10484 * command.h (struct cmd_list_element): Add field context.
10485 (set_cmd_context, get_cmd_context): Declare.
10486 * cli/cli-decode.h: Ditto.
10487 * cli/cli-decode.c (get_cmd_context): New function.
10488 (set_cmd_context): New function.
10489 (add_cmd): Initialize context.
10490 Part of fixing PR gdb/145 and PR gdb/146.
10491
10492 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10493
10494 * cli/cli-decode.c (cmd_type): New function.
10495 * command.h (cmd_type): Declare.
10496 * infrun.c (set_schedlock_func): Call function cmd_type.
10497 * kod.c (kod_set_os): Call cmd_type.
10498 * cris-tdep.c (cris_version_update): Use function cmd_type.
10499 (cris_mode_update, cris_abi_update): Ditto.
10500
10501 * command.h: (execute_cmd_post_hook): Declare.
10502 (execute_cmd_pre_hook): Declare.
10503 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10504 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10505 functions. Execute pre/post hook while ensuring that afterwords
10506 hook_in is cleared.
10507 * top.c (execute_command): Use execute_cmd_post_hook, and
10508 execute_cmd_pre_hook to execute pre/post commands.
10509 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10510 hook_stop_stub.
10511 (hook_stop_stub): Call execute_cmd_pre_hook.
10512
10513 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10514
10515 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10516 set'' and this leads to a core dump. Move xstrdup of
10517 operating_system to after check that it is not NULL.
10518
10519 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10520
10521 * kod.c (kod_set_os): Remove unnecessary check that
10522 ``command->type'' is set_cmd.
10523
10524 * valprint.c (set_input_radix): Use input_radix.
10525 (set_output_radix): Use output_radix.
10526 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10527 isn't reverted.
10528
10529 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10530
10531 * value.h (struct value): Delete field ``substring_addr''. Change
10532 aligner fields to force_doublest_align, force_longest_align,
10533 force_core_addr_align and force_pointer_aligh.
10534
10535 * value.h (struct value): Fix typo in above change.
10536
10537 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10538
10539 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10540 to fix internal_error from ``maintenance print architecture''.
10541
10542 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10543
10544 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10545 for gcc versions after gcc-2.8.1.
10546
10547 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10548
10549 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10550 for method resolution. Restore adjustment of ``this'' pointer after
10551 calling value_struct_elt, which was accidentally removed during the
10552 HP merge.
10553
10554 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10555
10556 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10557 value_of_register.
10558 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10559 get_saved_register.
10560 * value.h (value_of_register): Update.
10561
10562 2002-03-14 Richard Henderson <rth@redhat.com>
10563
10564 * configure.in: Detect declaration for canonicalize_file_name.
10565 * utils.c (canonicalize_file_name): Declare, if needed.
10566 (gdb_realpath): Prefer realpath if available and usable.
10567 * config.in, configure: Rebuild.
10568
10569 2002-03-14 Richard Henderson <rth@redhat.com>
10570
10571 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10572 a constant array bound.
10573
10574 * MAINTAINERS: Add myself to write-after-approval.
10575
10576 2002-03-14 Michael Snyder <msnyder@redhat.com>
10577
10578 * symfile.c (syms_from_objfile): Return immediately if no syms.
10579 (symbol_file_add): Return immediately if no syms.
10580 (find_sym_fns): Return immediately if no syms.
10581
10582 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10583
10584 * gdbserver/remote-util.c (remote_open): Print remote-side's
10585 IP address when remote debugging over the network.
10586
10587 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10588
10589 * config/sparc/fbsd.mh: Fix copyright.
10590 * config/sparc/fbsd.mt: Likewise.
10591
10592 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10593
10594 * MAINTAINERS: Fix typo in name of gdb warnings option.
10595 (x86-64): Fix formating so that this can be parsed by awk.
10596
10597 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10598
10599 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10600 * defs.h: Include "gdb/signals.h".
10601 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10602
10603 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10604
10605 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10606 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10607 from x86-64-tdep.h
10608
10609 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10610 Don Howard <dhoward@redhat.com>
10611
10612 * mips-tdep.c (ST0_FR): Define.
10613 (mips2_fp_compat): New function, temporarily disabled.
10614 (mips_read_fp_register_single): New function.
10615 (mips_read_fp_register_double): New function.
10616 (mips_print_register): Use them.
10617 (do_fp_register_row): Likewise.
10618
10619 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10620
10621 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10622 approval''.
10623
10624 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10625
10626 * stabsread.c (read_member_functions): Fix is_stub test for
10627 static member functions, improve comment.
10628
10629 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10630
10631 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10632 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10633 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10634 commands that set boolean values.
10635 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10636 (arm_rdi_resume): Always initialize PC.
10637 (arm_rdi_open): Don't use rslt as a boolean.
10638 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10639 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10640 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10641 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10642
10643 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10644
10645 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10646 * configure: Rebuilt.
10647
10648 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10649
10650 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10651 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10652
10653 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10654
10655 * cli/cli-decode.c (set_cmd_completer): New function.
10656 * command.h (set_cmd_completer): Declare.
10657 * cli/cli-decode.h (set_cmd_completer): Ditto.
10658
10659 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10660 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10661 * win32-nat.c (_initialize_inftarg): Ditto.
10662 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10663 * proc-api.c (_initialize_proc_api): Ditto.
10664 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10665 * source.c (_initialize_source): Ditto.
10666 * exec.c (_initialize_exec): Ditto.
10667 * solib.c (_initialize_solib): Ditto.
10668 * top.c (init_main): Ditto.
10669 * tracepoint.c (_initialize_tracepoint): Ditto.
10670 * symfile.c (_initialize_symfile): Ditto.
10671 * printcmd.c (_initialize_printcmd): Ditto.
10672 * infcmd.c (_initialize_infcmd): Ditto.
10673 * corefile.c (_initialize_core): Ditto.
10674
10675 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10676
10677 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10678
10679 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10680
10681 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10682
10683 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10684
10685 * NEWS: Update headings, 5.2 has branched.
10686
10687 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10688
10689 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10690 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10691 (register_addr, REGISTER_RAW_SIZE): Likewise.
10692 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10693 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10694
10695 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10696
10697 * MAINTAINERS (x86-64): Add myself.
10698 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10699 changed value_ptr -> struct value *
10700
10701 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10702
10703 * configure.host (sparc64-*-freebsd): Add.
10704 * configure.tgt: Likewise.
10705 * config/sparc/fbsd.mh: New file.
10706 * config/sparc/fbsd.mt: Likewise.
10707 * config/sparc/nm-fbsd.h: Likewise.
10708 * config/sparc/tm-fbsd.h: Likewise.
10709
10710 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10711
10712 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10713 regformats/reg-s390x.dat.
10714
10715 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10716
10717 * utils.c: Add FIXME explaining true/false problem.
10718
10719 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10720
10721 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10722
10723 2002-02-28 Michael Chastain <mec@shout.net>
10724
10725 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10726
10727 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * gdbserver/linux-s390-low.c: New file.
10730 * regformats/reg-s390.dat: New file.
10731 * regformats/reg-s390x.dat: New file.
10732 * gdbserver/configure.srv: Add S/390.
10733 * gdbserver/Makefile.in: Add S/390.
10734 * configure.tgt: Enable gdbserver for S/390.
10735
10736 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10737
10738 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10739 first line of the doc string for "info dos", except at the end of
10740 the sentence, since the short help stops at the first period.
10741
10742 2002-02-28 Jason Merrill <jason@redhat.com>
10743
10744 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10745
10746 2002-02-27 Fred Fish <fnf@redhat.com>
10747
10748 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10749 comment (dumy -> dummy).
10750
10751 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10752
10753 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10754
10755 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10756
10757 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10758
10759 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10760
10761 * gdbserver/acconfig.h: New file.
10762 * gdbserver/i387-fp.c: New file.
10763 * gdbserver/i387-fp.h: New file.
10764 * gdbserver/linux-x86-64.c: New file.
10765 * regformats/reg-x86-64.dat: New file.
10766 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10767 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10768 * gdbserver/configure.in: Add support for regsets.
10769 * gdbserver/config.in: Regenerate.
10770 * gdbserver/configure: Regenerate.
10771 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10772 * gdbserver/linux-low.h: New file.
10773 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10774 for regsets.
10775 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10776 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10777 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10778 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10779 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10780 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10781 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10782 "i387-fp.h". Add PTRACE_GETREGS and friends.
10783 * gdbserver/regcache.c (supply_register): New function.
10784 (supply_register_by_name): New function.
10785 (collect_register): New function.
10786 (collect_register_by_name): New function.
10787
10788 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10789
10790 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10791 (config.status): Add configure.srv dependency.
10792 (server_h): Add config.h dependency.
10793
10794 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10795
10796 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10797 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10798 * gdbserver/configure.srv: Change i386-*-linux* to use
10799 reg-i386-linux.o.
10800
10801 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10802
10803 * x86-64-tdep.c: Re-indent. Update copyright date.
10804
10805 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10806
10807 From Michal Ludvig <mludvig@suse.cz>:
10808 * x86-64-tdep.c (value.h): Delete.
10809 (gdb_assert.h): Include.
10810 (x86_64_register_convert_to_virtual,
10811 x86_64_register_convert_to_raw ): Add check which lets only
10812 floating-point values to be converted.
10813 (value_push): Delete.
10814 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10815 (i386_gdbarch_init): Number of register_bytes fixed.
10816
10817 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10818
10819 * MAINTAINERS: Add x86-64 target.
10820
10821 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10822
10823 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10824 * osfsolib.c (solib_map_sections): Ditto.
10825 * irix5-nat.c (solib_map_sections): Ditto.
10826 * corelow.c (gdb_check_format): Ditto.
10827 * symfile.c (symfile_bfd_open): Ditto.
10828 * solib.c (solib_map_sections): Ditto.
10829 Fix PR gdb/354.
10830
10831 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10832
10833 * remote.c (_initialize_remote): By default, disable ``e'' and
10834 ``E'' step out-of-range packets.
10835
10836 2002-02-26 Andreas Schwab <schwab@suse.de>
10837
10838 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10839 m68k_linux_frame_saved_pc.
10840 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10841 in_sigtramp.
10842 (SIGCONTEXT_PC_OFFSET): Remove.
10843 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10844 m68k_linux_sigtramp_saved_pc): New functions.
10845 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10846 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10847 (UCONTEXT_PC_OFFSET): Define.
10848 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10849 non-RT and RT signal trampolines.
10850
10851 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10852
10853 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10854 (TARGET_NBPG, STACK_END_ADDR): Delete
10855 (VARIABLES_INSIDE_BLOCK): Delete.
10856
10857 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10858
10859 * utils.c (perror_with_name): Make string parameter constant.
10860 (print_sys_errmsg): Ditto.
10861 (query): Ditto.
10862 * defs.h (perror_with_name): Update.
10863 (print_sys_errmsg): Update.
10864 (query): Update.
10865
10866 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10867
10868 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10869 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10870
10871 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10872
10873 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10874 if it already matches the current architecture from the exec file.
10875 Include arch-utils.h for gdbarch_info_init prototype.
10876 * Makefile.in (rs6000-nat.o): Update dependencies.
10877
10878 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10879
10880 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10881 list of exported variables.
10882
10883 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10884
10885 * gdbserver/configure.srv: New file.
10886 * gdbserver/configure.in: Use configure.srv instead
10887 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10888 from it.
10889 * gdbserver/configure: Regenerated.
10890 * gdbserver/terminal.h: New file.
10891 * gdbserver/Makefile.in: Update for configure changes. Remove
10892 more unneeded include paths.
10893
10894 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10895
10896 From wiz at danbala:
10897 * config/sparc/tm-sp64.h: Fix grammar and typos.
10898 Fix PR gdb/287.
10899
10900 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10901
10902 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10903 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10904 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10905 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10906 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10907 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10908 * s390-tdep.c: Ditto.
10909 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10910 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10911 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10912 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10913 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10914 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10915 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10916 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10917 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10918 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10919 Fix PR gdb/378.
10920
10921 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10922
10923 * lin-thread.c: Delete file.
10924 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10925 to gdb_proc_service.h.
10926 * configure: Re-generate.
10927
10928 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10929 * serial.c (serial_open): Delete check for "ocd".
10930 Fix PR gdb/349.
10931
10932 * Makefile.in (linux-thread.o): Delete target.
10933 * linux-thread.c: Delete file.
10934
10935 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10936 renamed SH files to be consistent.
10937
10938 * symtab.c (sort_search_symbols): Use xfree.
10939
10940 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10941
10942 * arm-linux-tdep.c (arm_linux_init_abi): Register
10943 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10944 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10945 definition with undef, since we don't want the sysvr4 definition.
10946 (SKIP_TRAMPOLINE_CODE): Likewise.
10947
10948 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10949
10950 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10951
10952 * configure.in: (AC_CHECK_FUNCS) Added test for
10953 canonicalize_file_name Regenerated.
10954 * config.in, configure: Regenerated.
10955 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10956 defined use canonicalize_file_name.
10957
10958 2002-02-23 Michael Chastain <mec@shout.net>
10959
10960 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10961
10962 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10963
10964 * README: Remove references to cygnus.com.
10965 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10966 dot com'' form. Remove references to cygnus.com and sourceware.
10967
10968 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10969
10970 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10971 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10972 1003.1-2001 no longer allows "head -1".
10973 * gdb/Makefile.in (version.c): Likewise.
10974 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10975 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10976 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10977
10978 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10979
10980 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10981 * command.h (cmd_cfunc_eq): Declare.
10982 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10983
10984 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10985 ``struct cmd_list_element *''.
10986 * cli/cli-cmds.c (is_complete_command): Update. Use
10987 cmd_cfunc_eq.
10988 * top.c (execute_command): Pass the command to
10989 is_complete_command.
10990 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10991
10992 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10993
10994 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10995 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10996 architecture defines.
10997 * s390-tdep.c (s390_gdbarch_init): Likewise.
10998
10999 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11000
11001 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11002 (arm_linux_push_arguments): Likewise.
11003 (arm_linux_init_abi): Register them. Also register linux-specific
11004 call_dummy_words.
11005 (find_minsym_and_objfile): Use strcmp, not STREQ.
11006 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11007 (arm_linux_call_dummy_words): Delete declaration.
11008 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11009 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11010 declarations.
11011 (LOWEST_PC): Delete.
11012
11013 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11014
11015 * maint.c (print_section_info): Do not prepend `0x' to filepos
11016 output, it will be handled by local_hex_string_custom.
11017
11018 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11019
11020 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11021 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11022 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11023
11024 2002-02-22 Jim Blandy <jimb@redhat.com>
11025
11026 Indicate that the bcache functions don't change the strings
11027 they're passed.
11028 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11029 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11030
11031 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11032
11033 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11034
11035 2002-02-21 Christopher Faylor <cgf@redhat.com>
11036
11037 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11038 find the complete path to a loaded DLL.
11039
11040 2002-02-21 Fred Fish <fnf@redhat.com>
11041
11042 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11043 that marks the end of the range of a function, enter a line number
11044 entry that has a line number of zero and a PC offset that matches
11045 the end of the function. This starts a range of PC's for which no
11046 line number information is known.
11047 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11048 PC's for which no line number info is found (line number is zero)
11049 then we didn't find any valid line information.
11050 * symtab.h: Document use of zero line number entry.
11051
11052 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11053
11054 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11055 (have_ptrace_getvrregs): Define for run time checks.
11056 (gdb_vrregset_t): New type for Altivec register handling.
11057 (fetch_register, store_register): Fetch/store altivec register
11058 when needed.
11059 (fetch_altivec_register, store_altivec_register): New functions.
11060 (supply_vrregset, fill_vrregset): New functions.
11061 (fetch_altivec_registers, store_altivec_registers): New functions.
11062 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11063 registers as well.
11064
11065 2002-02-21 Jiri Smid <smid@suse.cz>
11066
11067 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11068
11069 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11070
11071 * Makefile.in (armnbsd-nat.o): Update dependencies.
11072 * armnbsd-nat.c (supply_gregset): New function. Common code to
11073 supply the integer register set.
11074 (supply_fparegset): New function. Similar for FPA registers.
11075 (fetch_regs, fetch_fp_regs): Use them.
11076 (fetch_core_registers): Likewise.
11077 (fetch_elfcore_registers): New function.
11078 (arm_netbsd_elfcore_fns): New core-file type specification.
11079 (_initialize_arm_netbsd_nat): Register it.
11080
11081 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11082
11083 * armnbsd-nat.c: Include gdbcore.h.
11084 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11085 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11086 'void' to declaration, to shut up ARI.
11087 (fetch_core_registers): Make static. Rewrite using supply_register.
11088 (arm_netbsd_core_fns): New core-file type specification.
11089 (_initialize_arm_netbsd_nat): New function.
11090
11091 2002-02-21 Christopher Faylor <cgf@redhat.com>
11092
11093 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11094 value.
11095
11096 2002-02-20 Christopher Faylor <cgf@redhat.com>
11097
11098 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11099 fails.
11100
11101 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11102
11103 * jv-exp.y (parse_number): Change type of implicit longs
11104 to builtin_type_uint64.
11105
11106 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11107
11108 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11109 to be an integer instead of a `union wait'.
11110
11111 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11112
11113 * mips-linux-nat.c: Call the operating system GNU/Linux.
11114 * mips-linux-tdep.c: Likewise.
11115 * mips-tdep.c: Likewise.
11116
11117 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11118
11119 Fix PR gdb/265.
11120 * jv-exp.y (parse_number): Handle 64-bit integers.
11121
11122 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11123
11124 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11125 AC_STDC_HEADERS to AC_HEADER_STDC.
11126 * gdbserver/configure: Regenerated.
11127
11128 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11129
11130 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11131 is defined.
11132 * sparc-tdep.c (get_longjmp_target): Likewise.
11133
11134 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11135
11136 * News: Add news about ARM and Multi-arch. Mention the new target
11137 arm*-*-netbsd*.
11138
11139 2002-02-19 Jim Blandy <jimb@redhat.com>
11140
11141 * stabsread.c (error_type_complaint): Improve error message.
11142
11143 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11144
11145 * gdbserver/README: Update documentation.
11146 * gdbserver/configure.in: Update configury to match documentation.
11147 * gdbserver/Makefile.in: Likewise.
11148 * gdbserver/configure: Regenerated.
11149 * gdbserver/aclocal.m4: New file, generated by aclocal.
11150 * gdbserver/config.in: New file, generated by autoheader.
11151
11152 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11153
11154 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11155 armnbsd-nat.c.
11156
11157 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11158
11159 * arm-tdep.h (enum arm_float_model): New enum.
11160 (struct gdbarch_tdep): Add fp_model.
11161 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11162 up floating-point conversions until we know the floating-point model
11163 in use by the inferior. Don't complain about being unable to
11164 determine the ABI of the inferior when we don't have one.
11165 (arm_extract_return_value): Support different floating-point models.
11166 (arm_store_return_value): Likewise.
11167 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11168 ARM_FLOAT_SOFT.
11169 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11170
11171 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11172
11173 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11174 of ``current_gdbarch''.
11175
11176 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11177
11178 * armnbsd-nat.c : ANSIfy all function declarations.
11179 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11180 (fetch_inferior_registers): Re-implement in terms of above.
11181 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11182 (store_inferior_registers): Re-implement in terms of above.
11183
11184 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11185
11186 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11187 kernel.
11188 * arm-linux-tdep.c: Likewise.
11189 * config/arm/tm-linux.h: Likewise.
11190
11191 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11192
11193 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11194 * config/arm/nbsd.mt (TM_FILE): Delete.
11195 * config/arm/tm-nbsd.h: Delete.
11196
11197 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11198
11199 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11200 Initialize CALL_DUMMY_LENGTH.
11201
11202 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11203
11204 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11205 function.
11206 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11207 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11208 defines one thing and that is incorrect for this port.
11209 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11210
11211 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11212
11213 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11214
11215 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11216
11217 * win32-nat.c (display_selector): New function. Displays information
11218 about the information returned by GetThreadSelectorEntry API function.
11219 (display_selectors): New function. Displays the infomation of
11220 the selector given as argument, or of CS, DS ans FS selectors
11221 if no argument is given.
11222 ( _initialize_inftarg): Add "w32" as info prefix command.
11223 Add "info w32 selector" as command calling display_selectors.
11224
11225 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11226
11227 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11228 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11229 if not defined.
11230
11231 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11232
11233 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11234
11235 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11236
11237 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11238 (arm_fix_call_dummy): Call it.
11239 (arm_call_dummy_breakpoint_offset): Delete.
11240 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11241 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11242
11243 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11244
11245 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11246 Default to func_frame_chain_valid.
11247 * gdbarch.h, gdbarch.c: Re-generate.
11248 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11249
11250 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11251
11252 * ppc-linux-nat.c: Update copyright.
11253 (fetch_register, store_register): Add tid parameter, don't compute
11254 tid here.
11255 (fetch_ppc_registers, store_ppc_registers): Add tid
11256 parameter. Pass it along to callees.
11257 (fetch_inferior_registers, store_inferior_registers): Compute tid
11258 here, and pass it to calleed functions.
11259 (fill_gregset, supply_fpregset): Clean up formatting.
11260
11261 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11262
11263 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11264 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11265
11266 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11267
11268 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11269 * gdbarch.c gdbarch.h: Regenerate.
11270 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11271 function.
11272 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11273 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11274 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11275
11276 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11277 * arm-tdep.c (arm_get_longjmp_target): New function.
11278 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11279 this to a positive value register arm_get_longjmp_target as the
11280 longjmp handler.
11281 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11282 (arm_linux_init_abi): Set up longjmp description in tdep.
11283 * armnbsd-nat.c (get_longjmp_target): Delete.
11284 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11285 description in tdep.
11286 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11287 (get_longjmp_target): Delete declaration.
11288 (GET_LONGJMP_TARGET): Delete.
11289 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11290 (GET_LONGJMP_TARGET): Delete.
11291
11292 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11293
11294 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11295 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11296 of ``current_gdbarch''.
11297
11298 2002-02-17 Tom Tromey <tromey@redhat.com>
11299
11300 * cli/cli-cmds.c (compare_strings): New function.
11301 (complete_command): Only print each unique item once.
11302 * completer.h (complete_line): Declare.
11303 * completer.c (complete_line): New function.
11304 (line_completion_function): Use it.
11305
11306 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11307
11308 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11309 * gdbarch.h, gdbarch.c: Re-generate.
11310
11311 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11312
11313 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11314
11315 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11316
11317 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11318 * valops.c (value_arg_coerce): Don't take the address of a reference
11319 to convert an argument to a reference.
11320
11321 2002-02-15 Christopher Faylor <cgf@redhat.com>
11322
11323 * win32-nat.c (get_image_name): New function.
11324 (handle_load_dll): Use get_image_name function.
11325 (get_child_debug_event): Avoid registering debug events until possibly
11326 execed process is started.
11327 (child_create_inferior): Allow invocation via shell so that command
11328 line redirection, etc. works ok.
11329 (_initialize_inftarg): Add new command: "set shell" to control whether
11330 a shell is used to start a process.
11331
11332 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11333
11334 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11335 instead of find_register_by_number.
11336 (cannot_store_register): Likewise.
11337
11338 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11339
11340 * dwarf2read.c: Replace fprintf (stderr, ...) by
11341 fprintf_unfiltered (gdb_stderr, ...).
11342
11343 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11344
11345 * gdbserver/gdbserver.1: Document --attach.
11346
11347 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11348
11349 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11350 descriptions.
11351 * arm-tdep.c (arm_default_arm_le_breakpoint)
11352 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11353 (arm_default_thumb_be_breakpoint): New. Initialize them from
11354 traditional breakpoint defines.
11355 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11356 (arm_gdbarch_init): Initialize new breakpoint variables.
11357 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11358 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11359 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11360 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11361 code out to ...
11362 (arm_netbsd_init_abi_common): ... here; new function.
11363 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11364 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11365 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11366 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11367
11368 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11369
11370 * arm-tdep.h (enum arm_abi): New enum.
11371 (struct gdbarch_tdep): New structure.
11372 (LOWEST_PC): Provide a default.
11373 (arm_gdbarch_register_os_abi): Declare new function.
11374 * arm-tdep.c (arm_abi_names): New array.
11375 (process_note_abi_tag_sections): New function.
11376 (get_elfosabi): New function.
11377 (arm_gdbarch_register_os_abi): New function.
11378 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11379 support for that ABI has been built in, then call the appropriate
11380 configuration routine. Use gdbarch_num_regs() to get the number
11381 of registers.
11382 (arm_dump_tdep): New function.
11383 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11384 place-holder functions.
11385 (_initialize_arm_tdep): Register them.
11386 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11387
11388 * armnbsd-tdep.c: New file.
11389 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11390 * config/arm/nbsd.mt (TDEPFILES): Add it.
11391 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11392
11393 * armnbsd-nat.c: Include regcache.h.
11394 * Makefile.in (armnbsd-nat.o): Update dependency list.
11395
11396 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11397
11398 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11399
11400 * gdbserver/Makefile.in: Fix typos in target rules.
11401
11402 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11403
11404 Fix part of PR gdb/267.
11405 * linespec.c (find_methods): Handle constructors specially for now.
11406
11407 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11408
11409 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11410 handling.
11411 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11412 standard_coerce_float_to_double().
11413
11414 2002-02-14 Christopher Faylor <cgf@redhat.com>
11415
11416 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11417 GDBINIT_FILENAME.
11418
11419 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11420
11421 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11422 find_variant_by_name, because it confuses the multiarch
11423 framework. Return NULL if there isn't an architecture with the
11424 user supplied name, instead of forcing a different one without
11425 recording the change with the multiarch machinery.
11426 (find_variant_by_name): Delete.
11427
11428 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11429
11430 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11431 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11432
11433 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11434
11435 * stack.c (print_frame_info_base): When calling
11436 print_frame_info_listing_hook, set current_source_symtab.
11437
11438 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11439
11440 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11441 and remove unused $(INCLUDE_DIR).
11442 Add regcache.c to OBS.
11443 Add generated register protocol files to clean target.
11444 Update dependencies for new objects, obsolete old target code.
11445
11446 * gdbserver/linux-low.c: Remove all platform-specific code to
11447 new files. Remove various dead code. Update to use regcache
11448 functionality.
11449 * gdbserver/remote-utils.c (fromhex): Add return statement
11450 to quiet warning.
11451 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11452 constant.
11453 (input_interrupt): Add integer parameter to match prototype
11454 of a signal handler.
11455 (outreg): Use register_data ().
11456 (prepare_resume_reply): Use gdbserver_expedite_regs.
11457 * gdbserver/server.c (main): Dynamically allocate own_buf because
11458 PBUFSIZ is no longer constant. Use registers_to_string () and
11459 registers_from_string ().
11460 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11461 for error (), fatal (), and warning (). Update definition of
11462 PBUFSIZ to use regcache functionality. Add include guard.
11463 * gdbserver/utils.c (fatal): Add missing ``const''.
11464 (warning): New function.
11465
11466 * regformats/regdat.sh: Include "regcache.h" in generated files.
11467 Provide init_registers () function.
11468 * regformats/regdef.h: Add prototype for set_register_cache ().
11469 Add include guard.
11470
11471 * gdbserver/linux-arm-low.c: New file.
11472 * gdbserver/linux-i386-low.c: New file.
11473 * gdbserver/linux-ia64-low.c: New file.
11474 * gdbserver/linux-m68k-low.c: New file.
11475 * gdbserver/linux-mips-low.c: New file.
11476 * gdbserver/linux-ppc-low.c: New file.
11477 * gdbserver/linux-sh-low.c: New file.
11478
11479 * gdbserver/regcache.c: New file.
11480 * gdbserver/regcache.h: New file.
11481
11482 * gdbserver/low-linux.c: Removed obsolete file.
11483
11484 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11485
11486 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11487 * config/i386/linux.mt: Likewise.
11488 * config/ia64/linux.mt: Likewise.
11489 * config/m68k/linux.mh: Likewise.
11490 * config/powerpc/linux.mh: Likewise.
11491 * config/mips/linux.mt: Likewise.
11492
11493 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11494
11495 * config/i386/i386lynx.mh: Mark gdbserver variables
11496 as (currently) obsolete for this target.
11497 * config/i386/nbsd.mt: Likewise.
11498 * config/i386/nbsdelf.mt: Likewise.
11499 * config/m32r/m32r.mt: Likewise.
11500 * config/m68k/m68klynx.mh: Likewise.
11501 * config/m68k/nbsd.mt: Likewise.
11502 * config/m68k/sun3os4.mh: Likewise.
11503 * config/mips/vr5000.mt: Likewise.
11504 * config/ns32k/nbsd.mt: Likewise.
11505 * config/pa/hppabsd.mh: Likewise.
11506 * config/pa/hppaosf.mh: Likewise.
11507 * config/powerpc/nbsd.mt: Likewise.
11508 * config/rs6000/rs6000lynx.mh: Likewise.
11509 * config/s390/s390.mt: Likewise.
11510 * config/s390/s390x.mt: Likewise.
11511 * config/sparc/sparclynx.mh: Likewise.
11512 * config/sparc/sun4os4.mh: Likewise.
11513 * config/i386/x86-64linux.mt: Likewise.
11514 * config/sparc/linux.mh: Likewise.
11515
11516 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11517
11518 * configure.tgt: Configure gdbserver only for known working
11519 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11520 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11521 SUBDIRS if it is configured. Update comment for ${nativefile}.
11522 * configure: Regenerated.
11523
11524 2002-02-13 Michael Snyder <msnyder@redhat.com>
11525
11526 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11527
11528 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11529 (default_gcore_mach): Just return 0, work around a problem in bfd.
11530 (default_gcore_target): OK to return NULL if exec_bfd is null.
11531 (make_mem_sec): Use a cast, avoid a warning.
11532
11533 * procfs.c (find_memory_regions_callback): Use a cast instead of
11534 calling host_pointer_to_address (which complains if
11535 sizeof (host pointer) != sizeof (target pointer)).
11536 (procfs_make_note_section): Avoid overflow in psargs string.
11537
11538 * procfs.c (procfs_make_note_section): Make the default
11539 implementation return an error.
11540
11541 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11542
11543 * procfs.c (procfs_make_note_section): Provide a default definition
11544 (for alpha-dec-osf4.0f). Fix typos.
11545
11546 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11547
11548 * linux-proc.c: Add include of regcache.h.
11549 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11550
11551 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11552
11553 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11554 * memattr.c (create_mem_region): Disallow useless empty region.
11555 Regions are half-open intervals, so allow [A..B) [B..C) as
11556 non-overlapping.
11557
11558 2002-02-13 Michael Chastain <mec@shout.net>
11559
11560 * defs.h: Kill CONST_PTR.
11561 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11562 * c-lang.c (c_builtin_types): Likewise.
11563 * ch-lang.c (ch_builtin_types): Likewise.
11564 * f-lang.c (f_builtin_types): Likewise.
11565 * language.c (unknown_builtin_types): Likewise.
11566 * m2-lang.c (m2_builtin_types): Likewise.
11567 * p-lang.c (pascal_builtin_types): Likewise.
11568 * scm-lang.c (c_builtin_types): Likewise.
11569
11570 2002-02-13 Keith Seitz <keiths@redhat.com>
11571
11572 * arm-tdep.h (arm_get_next_pc): Add declaration.
11573
11574 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11575
11576 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11577 with other related struct-returning functions.
11578 (arm_extract_struct_value_address): New function.
11579 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11580 initialize float_format, double_format and long_double_format as
11581 appropriate to the endianness of the target.
11582 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11583 (arm_use_struct_convention): Delete declaration.
11584 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11585
11586 2002-02-13 Keith Seitz <keiths@redhat.com>
11587
11588 * defs.h (core_addr_to_string_nz): New function.
11589
11590 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11591
11592 Apply missing bits of 2002-01-15 patch.
11593 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11594 (fill_fpregset): Use i387_fill_fsave.
11595
11596 2002-02-12 Keith Seitz <keiths@redhat.com>
11597
11598 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11599 (core_addr_to_string_nz): New function.
11600
11601 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11602
11603 * arm-linux-nat.c: Really include arm-tdep.h.
11604 * config/arm/tm-linux.h (struct type, struct value): Declare.
11605
11606 2002-02-11 Michael Snyder <msnyder@redhat.com>
11607
11608 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11609 (gcore section): Ifdef for Solaris and Unixware only.
11610 (procfs_do_thread_registers): Unixware needs one lwpstatus
11611 per thread (not one prstatus or pstatus).
11612 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11613 not over all gdb threads. For unixware, call elfcore_write_pstatus
11614 once before iterating over threads.
11615
11616 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11617
11618 * arm-tdep.h: New file.
11619 * arm-tdep.c: Include arm-tdep.h.
11620 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11621 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11622 (arm_print_float_info, arm_register_type, convert_to_extended)
11623 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11624 (arm_extract_return_value, arm_register_name): Make static.
11625 (arm_software_single_step): Similarly. Fix types in declaration.
11626 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11627 (arm_store_return_value, arm_store_struct_return): New functions.
11628 (arm_gdbarch_init): Register the above functions. Also register
11629 call_dummy_start_offset, sizeof_call_dummy_words,
11630 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11631 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11632 max_register_virtual_size, register_size. Set up
11633 prologue_cache.saved_regs here, rather than ...
11634 (_initialize_arm_tdep): ... here.
11635 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11636 declarations.
11637 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11638 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11639 (arm_print_float_info, arm_register_type, convert_to_extended)
11640 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11641 (arm_extract_return_value, arm_register_name): Delete declarations.
11642 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11643 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11644 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11645 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11646 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11647 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11648 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11649 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11650 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11651 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11652 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11653 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11654 interface.
11655 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11656 * remote-rdi.c remote-rdp.c: Likewise.
11657 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11658 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11659 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11660 definition.
11661
11662 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11663 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11664 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11665 from non-ARM_ prefixed definitions.
11666 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11667 all uses of above.
11668 * remote-rdi.c remote-rdp.c: Likewise.
11669 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11670
11671 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11672
11673 * arm-tdep.c (arm_frameless_function_invocation)
11674 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11675 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11676 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11677 (arm_pop_frame, arm_get_next_pc): Make static.
11678 (arm_gdbarch_init): Register above in gdbarch structure.
11679 (arm_read_fp): Renamed from arm_target_read_fp.
11680 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11681 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11682 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11683 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11684 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11685 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11686 (arm_pc_is_thumb_dummy): Delete declarations.
11687 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11688 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11689 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11690 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11691
11692 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11693
11694 * symtab.c (compare_search_syms): New function.
11695 (sort_search_symbols): New function.
11696 (search_symbols): Sort symbols after searching rather than
11697 before.
11698
11699 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11700
11701 * NEWS: Linux -> GNU/Linux.
11702
11703 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11704
11705 * gdbarch.sh: For for level one methods, disallow a definition
11706 when partially multi-arched. Add comments explaining rationale.
11707 * gdbarch.h: Re-generate.
11708
11709 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11710
11711 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11712 multi-arch partial.
11713
11714 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11715
11716 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11717 field. Use diff -u.
11718 * gdbarch.c: Re-generate.
11719
11720 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11721
11722 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11723 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11724 partial.
11725
11726 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11727
11728 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11729 multi-arch partial.
11730 (PUSH_ARGUMENTS): Switch to using predefault.
11731 * gdbarch.c: Regenerate.
11732
11733 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11734
11735 * valops.c (PUSH_ARGUMENTS): Delete definition.
11736 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11737 partial. Default to default_push_arguments.
11738 * gdbarch.h, gdbarch.c: Regenerate.
11739
11740 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11741
11742 * defs.h (throw_exception): Rename return_to_top_level. Update
11743 comments.
11744 * utils.c (error_stream, internal_verror, quit): Ditto.
11745 * top.c (throw_exception, catcher): Ditto.
11746 * sparclet-rom.c (sparclet_load): Ditto.
11747 * remote.c (interrupt_query, minitelnet): Ditto.
11748 * remote-sds.c (interrupt_query): Ditto.
11749 * remote-mips.c (mips_error, mips_kill): Ditto.
11750 * ocd.c (interrupt_query): Ditto.
11751 * monitor.c (monitor_interrupt_query): Ditto.
11752 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11753 * target.h: Update comment.
11754
11755 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11756
11757 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11758
11759 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11760 default_double_format.
11761 * gdbarch.h, gdbarch.c: Re-generate.
11762 * findvar.c (floatformat_unknown): Delete variable definition.
11763 * doublest.h (floatformat_unknown): Delete variable declaration.
11764
11765 2002-02-09 Jim Blandy <jimb@redhat.com>
11766
11767 * stabsread.c (read_type): Add code to parse Sun's syntax for
11768 prototyped function types.
11769
11770 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11771
11772 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11773 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11774
11775 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11776
11777 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11778 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11779 now _initialize_xcoffsolib gets called again and overrides the
11780 commands from solib.c in a native configuration.
11781
11782 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11783
11784 * doublest.c (store_typed_floating): Don't try to return a value.
11785 Fixes PR gdb/290.
11786
11787 2002-02-08 Jim Blandy <jimb@redhat.com>
11788
11789 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11790 is prototyped and has no arguments, print its argument list as
11791 `(void)'.
11792
11793 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11794
11795 * MAINTAINERS (write-after-approval): Add myself.
11796 (paper-trail): I've escaped!
11797
11798 2002-02-08 Christopher Faylor <cgf@redhat.com>
11799
11800 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11801 changes.
11802 (_initialize_check_for_gdb_ini): Ditto.
11803
11804 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11805
11806 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11807 xaprintf -> xasprintf.
11808
11809 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11810
11811 * win32-nat.c: Remove use of printf and sprintf functions.
11812
11813 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11814
11815 * arm-tdep.c (arm_frame_chain_valid): Make static.
11816 (arm_push_arguments): Likewise.
11817 (arm_gdbarch_init): New function.
11818 (_initialize_arm_tdep): Call it.
11819 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11820 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11821 (FRAME_CHAIN_VALID): Delete.
11822 (arm_frame_chain_valid): Delete declaration.
11823 (PUSH_ARGUMENTS): Delete.
11824 (arm_push_arguments): Delete declaration.
11825 (CALL_DUMMY_P): Delete.
11826
11827 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11828 Corinna Vinschen <vinschen@redhat.com>
11829
11830 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11831 on builtin float types.
11832
11833 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11834
11835 * utils.c: Include <curses.h> before "bfd.h".
11836 * tui/tui-hooks.c: Likewise.
11837 * tui/tui.c: Likewise.
11838 * tui/tuiCommand.c: Likewise.
11839 * tui/tuiData.c: Likewise.
11840 * tui/tuiDataWin.c: Likewise.
11841 * tui/tuiDisassem.c: Likewise.
11842 * tui/tuiGeneralWin.c: Likewise.
11843 * tui/tuiIO.c: Likewise.
11844 * tui/tuiLayout.c: Likewise.
11845 * tui/tuiRegs.c: Likewise.
11846 * tui/tuiSource.c: Likewise.
11847 * tui/tuiSourceWin.c: Likewise.
11848 * tui/tuiStack.c: Likewise.
11849 * tui/tuiWin.c: Likewise.
11850
11851 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11852
11853 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11854 to include space for pseudoregs as well. Update loops accordingly.
11855 (sh_fp_frame_init_saved_regs): Ditto.
11856 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11857
11858 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11859
11860 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11861 Add Richard Earnshaw to Arm maintainers.
11862
11863 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11864
11865 * defs.h (warning_begin): Delete declaration.
11866
11867 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11868 Delete macro.
11869
11870 2002-02-07 Michael Snyder <msnyder@redhat.com>
11871
11872 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11873 Logic bug, remove misplaced else.
11874
11875 2002-02-07 Klee Dienes <klee@apple.com>
11876
11877 * fork-inferior.c (fork_inferior): Add '!' to the list of
11878 characters that need to be quoted when building a string for the
11879 shell. Quote '!' specifically with a backslash, since CSH chokes
11880 when trying to evaluate "str!str".
11881
11882 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11883
11884 * rdi-share/host.h: Only provide a typedef for bool if it is not
11885 defined.
11886
11887 2002-02-04 Michael Snyder <msnyder@redhat.com>
11888
11889 * breakpoint.h (enum bptype): Add new overlay event bp type.
11890 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11891
11892 * breakpoint.c (create_internal_breakpoint): New function.
11893 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11894 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11895 (create_thread_event_breakpoint): Ditto.
11896 (create_solib_event_breakpoint): Ditto.
11897 (create_overlay_event_breakpoint): New function.
11898 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11899 (update_breakpoints_after_exec): Delete and re-initialize
11900 overlay event breakpoints after an exec. Add FIXME comment
11901 about longjmp breakpoint.
11902 (print_it_typical): Ignore overlay event breakpoints.
11903 (print_one_breakpoint): Ditto.
11904 (mention): Ditto.
11905 (bpstat_what): Do not stop for overlay event breakpoints.
11906 (delete_breakpoint): Don't delete overlay event breakpoints.
11907 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11908 (breakpoint_re_set): Re-create overlay event breakpoint.
11909
11910 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11911 (overlay_manual_command): Disable overlay breakpoints.
11912 (overlay_off_command): Disable overlay breakpoints.
11913
11914 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11915
11916 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11917 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11918 to here from config/tm-arm.h.
11919 (coff_sym_is_thumb): Make static.
11920 (arm_elf_make_msymbol_special): New function.
11921 (arm_coff_make_msymbol_special): New function.
11922 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11923 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11924 (coff_sym_is_thumb): Delete declaration.
11925 (arm_elf_make_msymbol_special): Declare.
11926 (arm_coff_make_msymbol_special): Declare.
11927 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11928 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11929
11930 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11931
11932 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11933
11934 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11935
11936 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11937 * gdbarch.c gdbarch.h: Regenerate.
11938 * arch-utils.c (default_print_float_info): New function.
11939 * arch-utils.h (default_print_float_info): Prototype it.
11940 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11941 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11942 (PRINT_FLOAT_INFO): Document it.
11943
11944 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11945 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11946 (PRINT_FLOAT_INFO): Define.
11947
11948 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11949
11950 * win32-nat.c (_initialize_check_for_gdb_ini):
11951 Add typecast to sprintf argument to suppress a warning.
11952
11953 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11954
11955 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11956 to allow easier handling of pass state.
11957 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11958 that gives exception name and address.
11959 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11960 and set last_sig value to ourstatus->value.sig. Some missing
11961 exceptions added.
11962 (child_continue): Correctly report continue_status.
11963 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11964 TARGET_SIGNAL_0 (new default value).
11965 (child_resume): consider sig argument passed to decide if
11966 the exception should be passed to debuggee or not.
11967
11968 2002-02-05 Michael Snyder <msnyder@redhat.com>
11969
11970 * regcache.c (fetch_register): Call target_fetch_register
11971 only if we don't call FETCH_PSEUDO_REGISTER.
11972 (store_register): Call target_store_register only if we
11973 don't call STORE_PSEUDO_REGISTER.
11974
11975 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11976
11977 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11978 ELF_MAKE_MSYMBOL_SPECIAL.
11979 * gdbarch.c, gdbarch.h: Regenerate.
11980 * arch-utils.c (default_make_msymbol_special): New function.
11981 * arch-utils.h (default_make_msymbol_special): Export.
11982 * elfread.c (elf_symtab_read): Compile use of
11983 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11984 multiarched.
11985 * coffread.c (coff_symtab_read): Ditto, for
11986 COFF_MAKE_MSYMBOL_SPECIAL.
11987
11988 2002-02-05 Jim Blandy <jimb@redhat.com>
11989
11990 * solib-svr4.c (svr4_truncate_ptr): New function.
11991 (svr4_relocate_section_addresses): Do the address arithmetic with
11992 the appropriate truncation for target addresses, even when
11993 CORE_ADDR is larger than a target address.
11994
11995 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11996
11997 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11998 to (int *).
11999
12000 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12001
12002 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12003 code.
12004
12005 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12006
12007 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12008
12009 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12010
12011 * gdbserver/linux-low.c: Remove unused include files.
12012
12013 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12014
12015 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12016 (read_inferior_memory): Use it.
12017 (write_inferior_memory): Likewise.
12018
12019 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12020
12021 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12022 grubbing through sys_errlist.
12023
12024 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12025
12026 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12027
12028 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12029 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12030
12031 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12032
12033 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12034 (do_sfunc, set_cmd_sfunc): New functions.
12035
12036 * command.h (struct cmd_list_element): Add field func.
12037 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12038 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12039 * cli/cli-decode.h: Ditto.
12040
12041 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12042 (help_all, help_cmd_list): Ditto.
12043 (find_cmd, complete_on_cmdlist): Ditto.
12044 * top.c (execute_command): Ditto.
12045
12046 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12047 function.sfunc.
12048
12049 * infcmd.c (notice_args_read): Fix function signature.
12050
12051 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12052 * cli/cli-decode.c (add_set_cmd): Ditto.
12053 * utils.c (initialize_utils): Ditto.
12054 * maint.c (_initialize_maint_cmds): Ditto.
12055 * infrun.c (_initialize_infrun): Ditto.
12056 * demangle.c (_initialize_demangler): Ditto.
12057 * remote.c (add_packet_config_cmd): Ditto.
12058 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12059 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12060 * proc-api.c (_initialize_proc_api): Ditto.
12061 * kod.c (_initialize_kod): Ditto.
12062 * valprint.c (_initialize_valprint): Ditto.
12063 * top.c (init_main): Ditto.
12064 * infcmd.c (_initialize_infcmd): Ditto.
12065 * corefile.c (_initialize_core): Ditto.
12066 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12067 * arch-utils.c (initialize_current_architecture): Ditto.
12068 (_initialize_gdbarch_utils): Ditto.
12069 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12070
12071 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12072 * wince.c (_initialize_inftarg): Ditto.
12073 * symfile.c (_initialize_symfile): Ditto.
12074 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12075 * language.c (_initialize_language): Ditto.
12076 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12077
12078 2002-02-04 Michael Snyder <msnyder@redhat.com>
12079
12080 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12081
12082 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12083
12084 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12085 Add rules for building the register data files.
12086
12087 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12088
12089 * regformats/regdat.sh: Add braces to the definition of
12090 expedite_regs_${arch}.
12091
12092 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12093
12094 * regformats/regdef.h (struct reg): Add comment describing the
12095 requirements for offset and size fields.
12096
12097 2002-02-04 Andreas Schwab <schwab@suse.de>
12098
12099 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12100 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12101
12102 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12103
12104 * gdbarch.sh (copyright): Update years in generated header.
12105 (SMASH_TEXT_ADDRESS): Add rule.
12106 * gdbarch.h, gdbarch.c: Re-generate.
12107 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12108 * dbxread.c: Likewise.
12109 * dwarfread.c: Likewise.
12110 * elfread.c: Likewise.
12111 * somread.c: Likewise.
12112
12113 * arm-tdep.c (arm_smash_text_address): New function.
12114 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12115
12116 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12117
12118 Add support for hardware watchpoints on win32 native.
12119 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12120 CONTEXT_DEBUG_REGISTERS.
12121 (dr variable): New variable. Static array containing a local copy
12122 of debug registers.
12123 (debug_registers_changed): New variable. Reflects when debug registers
12124 are changed and need to be written to inferior.
12125 (debug_registers_used): New variable. Reflects when any debug register
12126 was set, used when new threads are created.
12127 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12128 i386-nat code.
12129 (thread_rec): Set dr array if id is the thread of current_event .
12130 (child_continue, child_resume): Change the debug registers for all
12131 threads if debug_registers_changed.
12132 (child_add_thread): Change the debug registers if debug_registers_used.
12133 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12134 Link nm.h to new nm-cygwin.h file.
12135 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12136 of hardware registers.
12137
12138 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12139
12140 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12141 Restore behavour broken by 2002-01-20 Andrew Cagney
12142 <ac131313@redhat.com> IEEE_FLOAT removal.
12143
12144 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12145
12146 * c-valprint.c (c_val_print): Pass a proper valaddr to
12147 cp_print_class_method.
12148 * valops.c (search_struct_method): If there is only one method
12149 and args is NULL, return that method.
12150
12151 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12152
12153 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12154 accessing tag_name directly.
12155
12156 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12157
12158 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12159 of accessing tag_name directly.
12160
12161 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12162
12163 PR gdb/280
12164 * gdbtypes.c (replace_type): New function.
12165 * gdbtypes.h (replace_type): Add prototype.
12166 * stabsread.c (read_type): Use replace_type.
12167
12168 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12169
12170 * Makefile.in (memattr.o): Add missing dependencies rule.
12171
12172 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12173
12174 * breakpoint.c (break_at_finish_command): Really export.
12175 (break_at_finish_at_depth_command): Ditto.
12176 (tbreak_at_finish_command): Ditto.
12177 * hppa-tdep.c: Include completer.h.
12178 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12179 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12180
12181 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12182
12183 * utils.c (do_write): New function.
12184 (error_stream): Rewrite combining the code from error_begin and
12185 verror.
12186 (verror): Rewrite using error_stream.
12187 (error_begin): Delete function.
12188
12189 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12190
12191 * utils.c (error_begin): Make static.
12192 * defs.h (error_begin): Delete declaration.
12193
12194 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12195 (decode_line_1): Use cplusplus_error instead of error_begin,
12196 cplusplus_hint and return_to_top_level.
12197 * coffread.c (coff_symfile_read): Use error instead of error_begin
12198 and return_to_top_level.
12199 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12200
12201 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12202
12203 * language.h (type_error, range_error): Make string parameter
12204 constant.
12205 * language.c (warning_pre_print): Delete extern declaration.
12206 * dwarfread.c (warning_pre_print): Ditto.
12207 * language.c (type_error, range_error): Rewrite to use verror and
12208 vwarning instead of warning_begin.
12209
12210 2002-02-01 Michael Snyder <msnyder@redhat.com>
12211
12212 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12213 (set_ignore_count): Move misplaced comment back where it belongs.
12214
12215 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12216
12217 * command.h (NO_FUNCTION): Delete macro.
12218 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12219 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12220 * tracepoint.c (_initialize_tracepoint): Ditto.
12221 * cli/cli-decode.c (add_set_cmd): Ditto.
12222 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12223
12224 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12225
12226 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12227 Update ``this'' pointer when calling virtual functions.
12228
12229 2002-02-01 Michael Snyder <msnyder@redhat.com>
12230
12231 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12232 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12233
12234 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12235
12236 * regformats/reg-arm.dat: New file.
12237 * regformats/reg-i386.dat: New file.
12238 * regformats/reg-ia64.dat: New file.
12239 * regformats/reg-m68k.dat: New file.
12240 * regformats/reg-mips.dat: New file.
12241 * regformats/reg-ppc.dat: New file.
12242 * regformats/reg-sh.dat: New file.
12243 * regformats/regdef.h: New file.
12244 * regformats/regdat.sh: New file.
12245
12246 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12247
12248 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12249 (arm_frame_args_address, arm_frame_locals_address): New functions.
12250 (arm_frame_num_args): New function.
12251 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12252 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12253 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12254
12255 2002-01-31 Michael Snyder <msnyder@redhat.com>
12256
12257 * breakpoint.c (break_at_finish_command): Export.
12258 (break_at_finish_at_depth_command): Export.
12259 (tbreak_at_finish_command): Export.
12260 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12261 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12262 "txbreak" commands, which are HPPA specific.
12263
12264 * printcmd.c (disassemble_command): Remove an ancient
12265 artifact of an old merge.
12266
12267 * symfile.h (enum overlay_debugging_state):
12268 Define enum constant values for overlay mode.
12269 * symfile.c (overlay_debugging): Use enums instead of literals.
12270 (overlay_is_mapped, overlay_auto_command,
12271 overlay_manual_command): Ditto.
12272
12273 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12274 breakpoint_here_p, breakpoint_inserted_here_p,
12275 breakpoint_thread_match, bpstat_stop_status,
12276 describe_other_breakpoints, check_duplicates, clear_command):
12277 Coding standard fixes.
12278
12279 * target.c (target_xfer_memory): Add spaces, coding standard.
12280 (do_xfer_memory): Add missing line to trust-readonly
12281 code: check bfd SEC_READONLY flag for section.
12282
12283 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12284
12285 * PROBLEMS: Fix typo, 5.1->5.1.1.
12286
12287 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12288
12289 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12290 data symbols, since we search based on textlow and texthigh.
12291 (find_pc_sect_symtab): Likewise.
12292
12293 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12294
12295 * defs.h (vwarning): Declare.
12296 * utils.c (vwarning): New function.
12297 (warning): Call vwarning.
12298 (warning_begin): Delete function.
12299
12300 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12301 the warning message.
12302 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12303 warning_begin.
12304
12305 2002-01-30 Michael Snyder <msnyder@redhat.com>
12306
12307 * NEWS: Mention "set trust-readonly-sections" command.
12308 Mention generate-core-file command.
12309
12310 2002-01-15 Michael Snyder <msnyder@redhat.com>
12311
12312 * target.c: New command, "set trust-readonly-sections on".
12313 (do_xfer_memory): Honor the suggestion to trust readonly sections
12314 by reading them from the object file instead of from the target.
12315 (initialize_targets): Register command "set trust-readonly-sections".
12316
12317 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12318
12319 * parse.c (target_map_name_to_register): Simplify, search regs and
12320 pseudo-regs using a single loop.
12321
12322 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12323
12324 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12325
12326 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12327
12328 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12329 * config/i386/i386v42mp.mh: Add i387-nat.o .
12330 * i386v4-nat.c: Include i387-nat.h.
12331 (supply_fpregset): Use i387_supply_fsave.
12332 (fill_fpregset): Use i387_fill_fsave.
12333
12334 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12335
12336 * arm-tdep.c (arm_call_dummy_words): Define.
12337 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12338 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12339 (CALL_DUMMY_WORDS): Define.
12340 (arm_call_dummy_words): Declare.
12341 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12342 (arm_linux_call_dummy_words): Declare.
12343
12344 2002-01-30 Andreas Schwab <schwab@suse.de>
12345
12346 * m68klinux-nat.c: Fix last change to use regcache_collect
12347 instead of referencing registers[] directly.
12348
12349 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12350
12351 * parse.c (target_map_name_to_register): Delete code wrapped in
12352 #ifdef REGISTER_NAME_ALIAS_HOOK.
12353
12354 2002-01-28 Michael Snyder <msnyder@redhat.com>
12355
12356 * regcache.c (legacy_read_register_gen): Need to be able to
12357 read pseudo-register as well as real register.
12358 (legacy_write_register_gen): Ditto.
12359
12360 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12361
12362 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12363 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12364 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12365 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12366 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12367 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12368 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12369 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12370 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12371 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12372 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12373 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12374 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12375 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12376 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12377 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12378 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12379 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12380 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12381 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12382
12383 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12384
12385 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12386 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12387 (initialize_current_architecture): Update target_byte_order using
12388 information from BFD.
12389 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12390 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12391
12392 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12393
12394 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12395 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12396
12397 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12398 #ifdef INVALID_FLOAT.
12399 * infcmd.c (do_registers_info): Ditto.
12400 * values.c (unpack_double): Ditto. Add comment.
12401
12402 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12403 already commented out.
12404
12405 2002-01-26 Andreas Schwab <schwab@suse.de>
12406
12407 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12408 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12409 registers and add support for PTRACE_GETREGS.
12410
12411 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12412
12413 GDB 5.1.1 released from 5.1 branch.
12414 * NEWS: Add 5.1.1 news.
12415 * README: Sync with 5.1 branch.
12416
12417 2002-01-23 Fred Fish <fnf@redhat.com>
12418
12419 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12420 stabstring on initial malloc. Reallocing will copy it for us,
12421 if necessary.
12422
12423 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12424
12425 * Makefile.in (hpread_h): Delete.
12426 (HFILES_NO_SRCDIR): Remove hpread.h.
12427 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12428 (hpread.o): Update dependencies.
12429 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12430
12431 * hp-psymtab-read.c: Remove file.
12432 * hp-symtab-read.c: Remove file.
12433 * hpread.h: Remove file.
12434
12435 * hpread.c: Merge all contents of hp-psymtab-read.c,
12436 hp-symtab-read.c and hpread.h into this file, as it was prior to
12437 January 1999.
12438
12439 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12440 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12441 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12442 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12443
12444 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12445
12446 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12447 fill_gregset): Call gdbarch_tdep() just once, assign result to
12448 variable and use that, instead of calling the function several
12449 times.
12450
12451 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12452
12453 * configure.host: Accept sparcv9 as alias for sparc64.
12454 * configure.tgt: Likewise.
12455
12456 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12457
12458 * solib-aix5.c (build_so_list_from_mapfile)
12459 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12460 arguments is not reversed.
12461 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12462 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12463
12464 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12465
12466 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12467 modified version of obsolete sh_fetch_pseudo_register.
12468 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12469 (sh4_register_read): New function.
12470 (sh_pseudo_register_write): New function. Renamed and modified
12471 version of obsolete sh_store_pseudo_register.
12472 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12473 (sh4_register_write): New function.
12474 (sh_gdbarch_init): Remove setting of gdbarch function
12475 fetch_pseudo_register and store_pseudo_register. Remove setting of
12476 register_convert_to_raw, register_convert_to_virtual,
12477 register_convertible.
12478 (sh_sh4_register_convertible): Delete. No longer needed. All is
12479 taken care by architecture specific functions
12480 register_read/register_write.
12481 (sh_sh4_register_convert_to_virtual): Make static.
12482 (sh_sh4_register_convert_to_raw): Ditto.
12483
12484 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12485
12486 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12487 (floatformat_is_nan, floatformat_mantissa): Ditto.
12488
12489 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12490 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12491 builtin_type_ieee_double_little,
12492 builtin_type_ieee_double_littlebyte_bigword,
12493 builtin_type_m68881_ext, builtin_type_i960_ext,
12494 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12495 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12496 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12497 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12498
12499 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12500
12501 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12502 parameter. Set frameless flag if it exists and depended of
12503 whether the scanned function is frameless or not.
12504 (xstormy16_skip_prologue): If function is frameless, return
12505 result of xstormy16_scan_prologue().
12506 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12507 call.
12508
12509 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12510
12511 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12512 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12513 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12514 sh_sh4_register_byte, sh_sh4_register_raw_size,
12515 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12516 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12517 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12518 sh_store_pseudo_register, sh_do_pseudo_register): Call
12519 gdbarch_tdep() just once, assign result to variable and use that,
12520 instead of calling the function several times.
12521
12522 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12523
12524 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12525 macros instead of LAST_FPU_CTRL_REGNUM.
12526 (store_register): Likewise.
12527
12528 2002-01-21 Jim Blandy <jimb@redhat.com>
12529
12530 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12531 is up-to-date before running the program, not just when a program
12532 exits.
12533
12534 2002-01-21 Fred Fish <fnf@redhat.com>
12535
12536 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12537 when we have found all instructions we are looking for.
12538
12539 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12540
12541 * arm-tdep.c (arm_register_name): New function.
12542 (arm_registers_names): Make static.
12543 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12544 (arm_register_name): Declare.
12545 (REGISTER_NAME): Use it.
12546
12547 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12548 Kevin Buettner <kevinb@redhat.com>
12549
12550 Convert arm targets to new FRAME interface.
12551 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12552 (arm_frame_find_save_regs): Delete.
12553 (arm_frame_init_saved_regs): New.
12554 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12555 Allocate extra_info as required. Convert all uses of fsr.regs
12556 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12557 to use extra_info.
12558 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12559 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12560 (check_prologue_cache, save_prologue_cache): Likewise.
12561 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12562 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12563 (FRAME_FIND_SAVED_REGS): Delete.
12564 (arm_frame_find_saved_regs): Delete prototype.
12565 (arm_frame_init_saved_regs): New prototype.
12566 (FRAME_INIT_SAVED_REGS): Define.
12567
12568 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12569
12570 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12571
12572 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12573
12574 From Jeff Law <law@redhat.com>:
12575 * infttrace.c: Include <sys/pstat.h>.
12576 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12577 exec file if the ttrace equivalent fails.
12578
12579 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12580
12581 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12582 (closeLogFile): Ditto.
12583
12584 2002-01-20 Michael Chastain <mec@shout.net>
12585
12586 * top.c (print_gdb_version): Bump copyright year to 2002.
12587
12588 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12589
12590 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12591 Zannoni and Eli Zaretskii.
12592
12593 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12594
12595 * buildsym.c: Update copyright years.
12596 * c-typeprint.c: Likewise.
12597 * dwarf2read.c: Likewise.
12598 * f-typeprint.c: Likewise.
12599 * gdbtypes.c: Likewise.
12600 * gdbtypes.h: Likewise.
12601 * hp-symtab-read.c: Likewise.
12602 * hpread.c: Likewise.
12603 * mdebugread.c: Likewise.
12604 * p-typeprint.c: Likewise.
12605
12606 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12607
12608 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12609 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12610 byte-order selectable.
12611 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12612 * arch-utils.c: Ditto.
12613 (set_endian): Ditto.
12614 (set_endian_from_file): Ditto.
12615 * gdbserver/low-sim.c (create_inferior): Ditto.
12616 * gdbarch.sh: Ditto.
12617 * gdbarch.h: Re-generate.
12618 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12619 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12620 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12621 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12622 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12623 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12624 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12625 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12626 macro definition.
12627 * config/mips/tm-wince.h: Remove #undef of macro
12628 TARGET_BYTE_ORDER_SELECTABLE.
12629 * config/sh/tm-wince.h: Ditto.
12630
12631 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12632
12633 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12634 member function fields. Add accessor macro
12635 TYPE_FN_FIELD_ARTIFICIAL.
12636 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12637 * c-typeprint.c (c_type_print_base): Skip artificial member
12638 functions.
12639
12640 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12641
12642 * f-typeprint.c: Delete unused function f_type_print_args.
12643 * p-typeprint.c: Delete unused function pascal_type_print_args.
12644
12645 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12646
12647 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12648 comment. Add ``artificial'' to ``union field_location''.
12649
12650 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12651
12652 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12653 * mdebugread.c (parse_symbol): Likewise.
12654 * stabsread.c (define_symbol): Likewise.
12655 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12656 initializing TYPE_FIELD_BITPOS to n (obsolete).
12657 (hpread_doc_function_type): Likewise.
12658 * hpread.c (hpread_function_type): Likewise.
12659
12660 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12661
12662 * configure.in (host_makefile_frag): Only require a host makefile
12663 fragment when a native build.
12664 * configure: Re-generate.
12665
12666 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12667
12668 * doublest.h (floatformat_from_type): Declare.
12669 * doublest.c (floatformat_from_type): New function.
12670 (convert_typed_floating): Use.
12671
12672 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12673 call to function floatformat_from_type.
12674
12675 * gdbarch.sh (IEEE_FLOAT): Delete.
12676 * gdbarch.h, gdbarch.c: Re-generate.
12677 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12678 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12679 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12680 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12681 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12682 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12683 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12684 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12685 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12686 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12687 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12688 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12689
12690 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12691 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12692 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12693 * sh-tdep.c (sh_gdbarch_init): Ditto.
12694 * mips-tdep.c (mips_gdbarch_init): Ditto.
12695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12696 * cris-tdep.c (cris_gdbarch_init): Ditto.
12697
12698 2002-01-20 Jiri Smid <smid@suse.cz>
12699
12700 * configure.host, configure.tgt: Support x86-64.
12701 * NEWS: Note new target x86-64.
12702
12703 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12704 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12705 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12706 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12707 x86-64-linux-nat.o): Fix dependencies.
12708
12709 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12710
12711 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12712 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12713 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12714 * config/sparc/xm-sun4os4.h: Delete file.
12715 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12716
12717 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12718
12719 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12720 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12721 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12722 * config/i386/i386lynx.mh (XM_FILE): Delete.
12723 * config/rs6000/xm-rs6000ly.h: Delete file.
12724 * config/sparc/xm-sparclynx.h: Delete file.
12725 * config/m68k/xm-m68klynx.h: Delete file.
12726 * config/i386/xm-i386lynx.h: Delete file.
12727 * config/xm-lynx.h: Delete file.
12728 * config/djgpp/fnchange.lst: Update.
12729
12730 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12731
12732 * alpha-tdep.c (alpha_register_byte): New function.
12733 (alpha_register_raw_size): Ditto.
12734 (alpha_register_virtual_size): Ditto.
12735 (alpha_skip_prologue_internal): Renamed from
12736 alpha_skip_prologue.
12737 (alpha_skip_prologue): New version that calls
12738 alpha_skip_prologue_internal.
12739 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12740 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12741 second argument from alpha_skip_prologue.
12742 (REGISTER_BYTE): Use alpha_register_byte.
12743 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12744 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12745 (FRAMELESS_FUNCTION_INVOCATION): Use
12746 generic_frameless_function_invocation_not.
12747 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12748 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12749
12750 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12751
12752 * config/mips/xm-news-mips.h: Delete file.
12753 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12754
12755 * config/m88k/xm-m88k.h: Delete file.
12756 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12757 * config/m88k/xm-delta88v4.h: Ditto.
12758 * config/m88k/xm-delta88.h: Ditto.
12759
12760 * config/alpha/xm-fbsd.h: Delete file.
12761 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12762
12763 * config/sparc/xm-sparc.h: Delete file.
12764 * Makefile.in (xm-sun4os4.h): Delete dependency.
12765 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12766 * config/sparc/xm-sun4os4.h: Ditto.
12767 * config/sparc/xm-linux.h: Ditto.
12768
12769 * config/i386/xm-windows.h: Delete file.
12770
12771 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12772
12773 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12774 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12775
12776 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12777
12778 * alpha-tdep.c (alpha_call_dummy_words): New.
12779 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12780 (CALL_DUMMY_P): Define.
12781 (CALL_DUMMY_WORDS): Define.
12782 (SIZEOF_CALL_DUMMY_WORDS): Define.
12783
12784 2002-01-19 Per Bothner <per@bothner.com>
12785
12786 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12787 isn't NULL, which can happen with some gcj-3.x-produced code.
12788
12789 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12790
12791 * alpha-tdep.c (alpha_register_virtual_type): New function.
12792 (alpha_init_frame_pc_first): Ditto.
12793 (alpha_fix_call_dummy): Ditto.
12794 (alpha_store_struct_return): Ditto.
12795 (alpha_extract_struct_value_address): Ditto.
12796 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12797 alpha_register_virtual_type.
12798 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12799 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12800 alpha_extract_struct_value_address.
12801 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12802 (INIT_FRAME_PC): Use init_frame_pc_noop.
12803 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12804
12805 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12806
12807 * i386gnu-nat.c: Include "i386-tdep.h".
12808 (fetch_fpregs): Simplify code dealing with uninitialized floating
12809 point states such that it doesn't require FP7_REGNUM.
12810
12811 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12812
12813 * alpha-tdep.c (frame_extra_info): New.
12814 (alpha_find_saved_regs): Make static. Use
12815 frame->extra_info.
12816 (alpha_frame_init_saved_regs): New function.
12817 (alpha_frame_saved_pc): Use frame->extra_info.
12818 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12819 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12820 (init_extra_frame_info): Rename to...
12821 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12822 (alpha_print_extra_frame_info): New function.
12823 (alpha_frame_locals_address): Ditto.
12824 (alpha_frame_args_address): Ditto.
12825 (alpha_pop_frame): Use frame->extra_info.
12826 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12827 alpha_frame_args_address.
12828 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12829 (alpha_find_saved_regs): Remove prototype.
12830 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12831 (EXTRA_FRAME_INFO): Remove.
12832 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12833 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12834
12835 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12836
12837 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12838 (alpha_cannot_fetch_register): Ditto.
12839 (alpha_cannot_store_register): Ditto.
12840 (alpha_register_convertible): Ditto.
12841 (alpha_use_struct_convention): Ditto.
12842 * config/alpha/tm-alpha.h: Update copyright years.
12843 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12844 (INNER_THAN): Use core_addr_lessthan.
12845 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12846 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12847 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12848 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12849 (FRAME_CHAIN): Remove unnecessary cast.
12850
12851 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12852
12853 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12854 obsolete.
12855
12856 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12857
12858 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12859 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12860 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12861 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12862 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12863 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12864 * x86-64-linux-nat.c: Ditto.
12865
12866 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12867
12868 * alpha-tdep.c (alpha_register_name): New function.
12869 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12870 (REGISTER_NAME): Define.
12871
12872 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12873
12874 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12875
12876 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12877
12878 * alpha-tdep.c: Update copyright years.
12879 (alpha_next_pc): New function.
12880 (alpha_software_single_step): Ditto.
12881 * config/alpha/tm-alpha.h: Add prototype for
12882 alpha_software_single_step.
12883
12884 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12885
12886 * alphabsd-nat.c: Update copyright years.
12887 (fill_gregset): Use regcache_collect.
12888 (fill_fpregset): Likewise.
12889 (fetch_inferior_registers): Only fetch integer registers
12890 if requested to do so.
12891 (store_inferior_registers): Only store integer registers
12892 if requested to do so.
12893
12894 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12895
12896 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12897 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12898 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12899 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12900 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12901 * config/arm/linux.mh (XDEPFILES): Delete.
12902 * config/arm/nbsd.mh (XDEPFILES): Delete.
12903 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12904 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12905 * config/i386/i386m3.mh (XDEPFILES): Delete.
12906 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12907 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12908 * config/i386/fbsd.mh (XDEPFILES): Delete.
12909 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12910 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12911 * config/i386/i386v4.mh (XDEPFILES): Delete.
12912 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12913 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12914 * config/i386/i386aix.mh (XDEPFILES): Delete.
12915 * config/i386/go32.mh (XDEPFILES): Delete.
12916 * config/i386/cygwin.mh (XDEPFILES): Delete.
12917 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12918 * config/i386/i386mach.mh (XDEPFILES): Delete.
12919 * config/i386/i386v32.mh (XDEPFILES): Delete.
12920 * config/i386/linux.mh (XDEPFILES): Delete.
12921 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12922 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12923 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12924 * config/i386/i386sco.mh (XDEPFILES): Delete.
12925 * config/i386/i386v.mh (XDEPFILES): Delete.
12926 * config/i386/nbsd.mh (XDEPFILES): Delete.
12927 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12928 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12929 * config/i386/symmetry.mh (XDEPFILES): Delete.
12930 * config/i386/obsd.mh (XDEPFILES): Delete.
12931 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12932 * config/ia64/linux.mh (XDEPFILES): Delete.
12933 * config/ia64/aix.mh (XDEPFILES): Delete.
12934 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12935 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12936 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12937 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12938 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12939 * config/m68k/linux.mh (XDEPFILES): Delete.
12940 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12941 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12942 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12943 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12944 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12945 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12946 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12947 * config/m88k/delta88.mh (XDEPFILES): Delete.
12948 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12949 * config/m88k/m88k.mh (XDEPFILES): Delete.
12950 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12951 * config/mips/linux.mh (XDEPFILES): Delete.
12952 * config/mips/irix6.mh (XDEPFILES): Delete.
12953 * config/mips/irix5.mh (XDEPFILES): Delete.
12954 * config/mips/irix4.mh (XDEPFILES): Delete.
12955 * config/mips/irix3.mh (XDEPFILES): Delete.
12956 * config/mips/decstation.mh (XDEPFILES): Delete.
12957 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12958 (NATDEPFILES): Move core-aout.o to here.
12959 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12960 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12961 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12962 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12963 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12964 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12965 * config/pa/hpux11.mh (XDEPFILES): Delete.
12966 * config/powerpc/aix.mh (XDEPFILES): Delete.
12967 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12968 * config/powerpc/linux.mh (XDEPFILES): Delete.
12969 * config/romp/rtbsd.mh: Rename XDEPFILES.
12970 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12971 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12972 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12973 * config/s390/s390.mh (XDEPFILES): Delete.
12974 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12975 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12976 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12977 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12978 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12979 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12980 * config/sparc/linux.mh (XDEPFILES): Delete.
12981 * config/vax/vaxult.mh (XDEPFILES): Delete.
12982 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12983 * Makefile.in (DEPFILES): Remove XDEPFILES.
12984
12985 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12986
12987 * utils.c (internal_verror): Fix comments, default is yes not no.
12988 Update queries to match. Default to quit and dump core.
12989
12990 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12991
12992 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12993 copyright.
12994 * defs.h, event-top.c, gdbcmd.h: Ditto.
12995 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12996 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12997 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12998 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12999 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13000 * mi/mi-main.c:Ditto.
13001
13002 * stack.c, symfile.c: Update copyright.
13003
13004 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13005
13006 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13007 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13008 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13009 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13010
13011 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13012
13013 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13014 * gdbserver/low-lynx.c (myattach): Likewise.
13015 * gdbserver/low-nbsd.c (myattach): Likewise.
13016 * gdbserver/low-sim.c (myattach): Likewise.
13017 * gdbserver/low-sparc.c (myattach): Likewise.
13018 * gdbserver/low-sun3.c (myattach): Likewise.
13019
13020 * gdbserver/low-linux.c (myattach): New function.
13021
13022 * gdbserver/server.c (attach_inferior): New function.
13023 (main): Handle "--attach".
13024
13025 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13026
13027 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13028 maintainer.
13029
13030 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13031
13032 * c-typeprint.c (is_type_conversion_operator): Add additional
13033 check for non-conversion operators.
13034
13035 2002-01-15 Michael Snyder <msnyder@redhat.com>
13036
13037 * linux-proc.c: Add "info proc" command, a la procfs.c.
13038 (read_mapping): New function, abstract and re-use code.
13039 (linux_find_memory_regions): Use new func read_mapping.
13040 (linux_info_proc_cmd): New function, implement "info proc".
13041 (_initialize_linux_proc): Add new command "info proc".
13042
13043 2002-01-15 Michael Snyder <msnyder@redhat.com>
13044
13045 * symfile.c (generic_load): Use bfd_map_over_sections method
13046 instead of manipulating bfd structure members directly.
13047 (add_section_size_callback): New function, bfd sections callback
13048 used by generic_load.
13049 (load_sections_callback): New function, bfd sections callback
13050 used by generic_load.
13051
13052 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13053
13054 [Based on work by Jim Blandy]
13055 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13056 (builtin_type_vec128): Export.
13057 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13058 types.
13059 (builtin_type_vec128): New builtin type for 128 bit vector
13060 registers.
13061 (build_gdbtypes): Initialize builtin_type_v16qi and
13062 builtin_type_v8hi. Create the vec128 register builtin type
13063 structure.
13064 (build_builtin_type_vec128): New function.
13065 (_initialize_gdbtypes): Register builtin_type_v16qi and
13066 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13067 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13068 AltiVec register to new builtin type.
13069
13070 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13071
13072 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13073 to make_cv_type.
13074
13075 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13076
13077 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13078 CLEAN_UP_REGISTER_VALUE.
13079 * regcache.c (supply_register): Update only call.
13080
13081 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13082
13083 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13084 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13085 a29k-*-vxworks* targets as obsolete.
13086
13087 2002-01-14 Michael Snyder <msnyder@redhat.com>
13088
13089 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13090 until we can resolve portability issues.
13091 * gregset.h: Remove references to fpxregs.
13092 * gcore.c (gcore_command): Initialize note_sec to NULL.
13093
13094 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13095
13096 * signals.c (target_signal_to_name): Rewrite. Only use
13097 signals[].name when in bounds and non-NULL.
13098
13099 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13100
13101 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13102 * signals.c (target_signal_to_name): Verify that SIG is within the
13103 bounds of the signals array.
13104
13105 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13106
13107 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13108
13109 2002-01-13 Keith Seitz <keiths@redhat.com>
13110
13111 * stack.c (print_frame_info_base): Print the frame's pc
13112 only if when print_frame_info_listing_hook is not defined.
13113
13114 2002-01-13 Keith Seitz <keiths@redhat.com>
13115
13116 * varobj.c (varobj_set_value): Make sure that there were no
13117 errors evaluating the object before attempting to set its
13118 value.
13119 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13120 so this offset adjustment is no longer necessary.
13121 (create_child): Don't set the error flag if the child is
13122 a CPLUS_FAKE_CHILD.
13123 (value_of_child): If value_fetch_lazy fails, return NULL
13124 so that callers will be notified that an error occurred.
13125 (c_value_of_variable): Delay check of variable's validity
13126 until later. We actually want all structs and unions to have
13127 the value "{...}".
13128 Do not return "???" for variables which could not be evaluated.
13129 This error condition must be returned to the caller so that it
13130 can get the error condition from gdb.
13131 (cplus_name_of_child): Adjust index for vptr before figuring
13132 out the name of the child.
13133 (cplus_value_of_child): If a child's (real) parent is not valid,
13134 don't even bother trying to give a value for it. Just return
13135 an error. Change all instances in this function.
13136 (cplus_type_of_child): If our parent is one of the "fake"
13137 parents, we need to get at the type of the real parent, and
13138 derive the child's true type using this information.
13139
13140 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13141
13142 From 2002-01-09 John Marshall <johnm@falch.net>:
13143 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13144 sources.redhat.com, and tweak some related URLs which had
13145 suffered from linkrot.
13146
13147 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13148
13149 From Jeff law:
13150 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13151 structures passed in registers.
13152
13153 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13154
13155 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13156 white space which prevented compilation. Reported by DSK
13157 <dsk@student.unsw.edu.au>.
13158
13159 2002-01-11 Michael Snyder <msnyder@redhat.com>
13160
13161 * symfile.c (build_section_addr_info_from_section_tab):
13162 Use bfd access method instead of manipulating bfd directly.
13163 (syms_from_objfile): Ditto.
13164 (simple_overlay_update_1): Ditto.
13165 (simple_overlay_update): Ditto.
13166 (generic_load): Ditto.
13167 (overlay_unmapped_address): FIXME comment, bfd access methods.
13168 (sections_overlap): FIXME comment, bfd access methods.
13169 (pc_in_mapped_range): FIXME comment, bfd access methods.
13170 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13171 (section_is_mapped): FIXME comment, bfd access methods.
13172 (section_is_overlay): FIXME comment, bfd access methods.
13173
13174 * symfile.c (generic_load): Whitespace and long line cleanups.
13175 Remove duplicate variable, change several local variables to
13176 more appropriate data types.
13177 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13178
13179 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13180
13181 From Peter Schauer:
13182 * language.c (longest_local_hex_string_custom): Use phex_nz to
13183 convert NUM to a hex string.
13184
13185 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13186
13187 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13188 the function.
13189 Update Copyright year.
13190
13191 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13192
13193 * language.c (longest_raw_hex_string): Delete unused function.
13194
13195 2002-01-11 Petr Sorfa <petrs@caldera.com>
13196
13197 * MAINTAINERS (write-after-approval): Add myself.
13198 * dwarf2read.c (read_tag_string_type): Handling of
13199 DW_AT_byte_size.
13200 (read_tag_string_type): FORTRAN fix to prevent propagation of
13201 first string size.
13202 (set_cu_language): Handling of DW_LANG_Fortran95
13203
13204 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13205
13206 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13207 GETPID(inferior_ptid).
13208 (store_inferior_registers): Likewise.
13209
13210 2002-01-10 Jason Merrill <jason@redhat.com>
13211
13212 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13213 Fix DW_OP_minus.
13214
13215 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13216
13217 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13218 and bfd/elf32-sh-nbsd.c.
13219
13220 2002-01-10 Michael Snyder <msnyder@redhat.com>
13221
13222 * NEWS: Mention --pid and corefile/proc-id behavior change.
13223
13224 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13225 * gcore.c: Include cli/cli-decode.h instead of command.h.
13226
13227 * main.c (captured_main): Add new command line option "--pid".
13228 If the second command line argument (following the symbol-file)
13229 begins with a digit, try to attach to it before trying to open
13230 it as a corefile.
13231 (print_gdb_help): Document the "--pid" argument.
13232
13233 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13234
13235 * completer.c (command_completer): New function.
13236
13237 * completer.h <command_completer>: Add prototype.
13238
13239 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13240 completer for the "help" command.
13241
13242 2002-01-09 Jason Merrill <jason@redhat.com>
13243
13244 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13245
13246 2002-01-09 Michael Snyder <msnyder@redhat.com>
13247
13248 * i386-linux-nat.c (fill_fpxregset): Make global.
13249 (store_fpxregset): Ditto.
13250
13251 * gregset.h (gdb_fpxregset_t): Define.
13252 (supply_fpxregset): Prototype.
13253 (fill_fpxregset): Prototype.
13254
13255 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13256
13257 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13258
13259 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13260 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13261 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13262
13263 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13264
13265 * MAINTAINERS: Update target maintainer rules so that any
13266 Maintainer can approve a tested patch for a maintenance-only
13267 target.
13268
13269 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13270
13271 * MAINTAINERS (write-after-approval): Add myself.
13272
13273 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13274 IN_SIGTRAMP.
13275
13276 2002-01-08 Michael Snyder <msnyder@redhat.com>
13277
13278 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13279 real name of the executable, rather than the /proc name.
13280
13281 2002-01-03 Michael Snyder <msnyder@redhat.com>
13282
13283 Implement a "generate-core-file" command in gdb, save target state.
13284 * gcore.c: New file. Implement new command 'generate-core-file'.
13285 Save a corefile image of the current state of the inferior.
13286 * linux-proc.c: Add linux-specific code for saving corefiles.
13287 * target.h (struct target_ops): Add new target vectors for saving
13288 corefiles; to_find_memory_regions and to_make_corefile_notes.
13289 (target_find_memory_regions): New macro.
13290 (target_make_corefile_notes): New macro.
13291 * target.c (update_current_target): Inherit new target methods.
13292 (dummy_find_memory_regions): New place-holder method.
13293 (dummy_make_corefile_notes): New place-holder method.
13294 (init_dummy_target): Initialize new dummy target vectors.
13295 * exec.c (exec_set_find_memory_regions): New function.
13296 Allow the exec_ops vector for memory regions to be taken over.
13297 (exec_make_note_section): New function, target vector method.
13298 * defs.h (exec_set_find_memory_regions): Export prototype.
13299 * procfs.c (proc_find_memory_regions): New function, corefile method.
13300 (procfs_make_note_section): New function, corefile method.
13301 (init_procfs_ops): Set new target vector pointers.
13302 (find_memory_regions_callback): New function.
13303 (procfs_do_thread_registers): New function.
13304 (procfs_corefile_thread_callback): New function.
13305 * sol-thread.c (sol_find_memory_regions): New function.
13306 (sol_make_note_section): New function.
13307 (init_sol_thread_ops): Initialize new target vectors.
13308 * inftarg.c (inftarg_set_find_memory_regions): New function.
13309 Allow to_find_memory_regions vector to be taken over.
13310 (inftarg_set_make_corefile_notes): New function.
13311 Allow to_make_corefile_notes vector to be taken over.
13312 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13313 interface layer if not target_has_execution (may be a corefile).
13314 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13315 * config/sparc/sun4sol2.mh: Ditto.
13316 * config/alpha/alpha-linux.mh: Ditto.
13317 * config/arm/linux.mh: Ditto.
13318 * config/i386/x86-64linux.mh: Ditto.
13319 * config/ia64/linux.mh: Ditto.
13320 * config/m68k/linux.mh: Ditto.
13321 * config/mips/linux.mh: Ditto.
13322 * config/powerpc/linux.mh: Ditto.
13323 * config/sparc/linux.mh: Ditto.
13324
13325 2002-01-07 Michael Snyder <msnyder@redhat.com>
13326
13327 * arm-linux-nat.c: Remove references to regcache.c internal data
13328 (registers[] and register_valid[]).
13329
13330 2002-01-07 Michael Snyder <msnyder@redhat.com>
13331
13332 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13333 so that attaching to a pid will automatically read the process's
13334 symbol file and shlibs.
13335 * Makefile.in: Add rule for linux-proc.o.
13336 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13337 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13338 * config/arm/linux.mh: Ditto.
13339 * config/i386/linux.mh: Ditto.
13340 * config/i386/x86-64linux.mh: Ditto.
13341 * config/ia64/linux.mh: Ditto.
13342 * config/m68k/linux.mh: Ditto.
13343 * config/mips/linux.mh: Ditto.
13344 * config/powerpc/linux.mh: Ditto.
13345 * config/sparc/linux.mh: Ditto.
13346
13347 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13348
13349 * win32-nat.c: Add i386-tdep.h dependency.
13350
13351 2002-01-07 Michael Snyder <msnyder@redhat.com>
13352
13353 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13354 instead of bfd_get_arch_size. Don't bail out just because
13355 there's no exec_bfd.
13356
13357 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13358 * p-valprint.c (pascal_object_print_value): Ditto.
13359 * somread.c (som_symtab_read): Ditto.
13360 * symfile.c (simple_free_overlay_region_table): Ditto.
13361 * valops.c (value_assign): Ditto.
13362
13363 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13364 use tilde_expand and strerror for opening save-tracepoints file.
13365
13366 * thread-db.c (thread_db_new_objfile): Indendation fix.
13367
13368 * infptrace.c (GDB_MAX_ALLOCA): New define.
13369 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13370 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13371 can be overridden with whatever value is appropriate to the host).
13372 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13373 alloca to allocate potentially large buffer.
13374 * rs6000-nat.c (child_xfer_memory): Ditto.
13375 * symm-nat.c (child_xfer_memory): Ditto.
13376 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13377
13378 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13379
13380 From Nick Clifton <nickc@redhat.com>
13381 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13382
13383 2002-01-07 Michael Snyder <msnyder@redhat.com>
13384
13385 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13386 Don't use exec_bfd if it's NULL.
13387
13388 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13389
13390 * valops.c (value_arg_coerce): Fix formatting.
13391
13392 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13393
13394 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13395 * gnu-nat.c: Ditto.
13396
13397 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13398
13399 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13400 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13401 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13402 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13403 z8k-coff have not been multi-arched. Update z8k-coff build
13404 status.
13405
13406 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13407
13408 * MAINTAINERS: Mark a29k target as obsolete.
13409 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13410 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13411 comments.
13412 * NEWS: Note that a29k targets are obsolete.
13413 * a29k-tdep.c: Mark as obsolete.
13414 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13415 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13416 a29k-*-vxworks* targets as obsolete.
13417 * remote-adapt.c: Obsolete.
13418 * remote-eb.c: Obsolete.
13419 * remote-mm.c: Obsolete.
13420 * remote-udi.c: Obsolete.
13421 * config/a29k/a29k-udi.mt: Obsolete.
13422 * config/a29k/a29k.mt: Obsolete.
13423 * config/a29k/tm-a29k.h: Obsolete.
13424 * config/a29k/tm-vx29k.h: Obsolete.
13425 * config/a29k/vx29k.mt: Obsolete.
13426
13427 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13428
13429 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13430 with BFD_ENDIAN_BIG.
13431
13432 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13433
13434 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13435 * configure, config.in: Re-generate.
13436 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13437 * defs.h: Do not include <endian.h>.
13438
13439 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13440
13441 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13442 * config.in: Regenerate.
13443 * configure.in: Update copyright years.
13444 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13445 * configure: Regenerate.
13446 * i386bsd-nat.c: Update copyright years.
13447 (fill_gregset): Use regcache_collect.
13448 (fetch_inferior_registers): Only fetch integer registers
13449 if requested to do so. Add support for XMM registers
13450 using PT_GETXMMREGS.
13451 (store_inferior_registers): Only store integer registers
13452 if requested to do so. Add support for XMM registers
13453 using PT_SETXMMREGS.
13454 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13455 (store_inferior_registers): Remove.
13456 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13457 (fetch_elfcore_registers): New function.
13458 (i386nbsd_elfcore_fns): New.
13459 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13460 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13461 i386bsd-nat.o.
13462 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13463 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13464 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13465 * config/i386/tm-nbsd.h: Update copyright years.
13466 (HAVE_SSE_REGS): Define.
13467 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13468 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13469 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13470 (SIGCONTEXT_PC_OFFSET): Remove.
13471 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13472
13473 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13474
13475 * configure.tgt: Remove powerpc-*-macos* target.
13476 * config/m68k/xm-mpw.h: Delete file.
13477 * config/xm-mpw.h: Delete file.
13478 * ser-mac.c: Delete file.
13479 * mpw-make.sed: Delete file.
13480 * mpw-config.in: Delete file.
13481 * mac-xdep.c: Delete file.
13482 * mac-gdb.r: Delete file.
13483 * mac-defs.h: Delete file.
13484 * mac-nat.c: Delete file.
13485 * config/powerpc/macos.mh: Delete file.
13486 * config/powerpc/macos.mt: Delete file.
13487 * config/powerpc/nm-macos.h: Delete file.
13488 * config/powerpc/tm-macos.h: Delete file.
13489 * source.c (openp, open_source_file): Remove obsolete code.
13490 * top.c (gdb_readline): Ditto.
13491 * utils.c (query): Ditto.
13492 * event-top.c (display_gdb_prompt): Ditto.
13493 * Makefile.in (ser-mac.o): Delete obsolete target.
13494 * NEWS: Update.
13495
13496 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13497
13498 * defs.h (BIG_ENDIAN): Delete macro definition.
13499 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13500 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13501 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13502 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13503 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13504 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13505 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13506 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13507 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13508 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13509 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13510 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13511 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13512 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13513 * gdbarch.c: Re-generate.
13514
13515 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13516
13517 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13518 for core files.
13519
13520 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13521
13522 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13523
13524 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13525
13526 * value.h (value_ptr): Delete typedef.
13527
13528 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13529
13530 * i386nbsd-nat.c: Update copyright years.
13531 Include i386-tdep.h.
13532
13533 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13534
13535 * stabsread.c: Update copyright years.
13536
13537 From Debashis Mahata <debashis.mahata@wipro.com>:
13538 (read_struct_fields): Deal with Sun C compiler erroneous stab
13539 output for structs and unions.
13540 Fix PR gdb/269.
13541
13542 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13543
13544 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13545 prototype.
13546
13547 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13548
13549 * cp-abi.c: Fix whitespace.
13550 (baseclass_offset): New wrapper function.
13551 * cp-abi.h (baseclass_offset): Add prototype.
13552 (struct cp_abi_ops): Add baseclass_offset pointer.
13553
13554 * valops.c (vb_match): Move to...
13555 * gnu-v2-abi.c (vb_match): here.
13556 * valops.c (baseclass_offset): Move to...
13557 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13558
13559 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13560
13561 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13562 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13563 * hpacc-abi.c (init_hpacc_ops): Likewise.
13564
13565 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13566
13567 * valops.c (find_overload_match): Accept obj as a
13568 reference parameter. Update it before returning.
13569 * value.h (find_overload_match): Update prototype.
13570 * eval.c (evaluate_subexp_standard): Pass object to
13571 find_overload_match by reference.
13572
13573 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13574
13575 * valarith.c: Replace value_ptr with struct value pointer. Remove
13576 register attribute from value declarations.
13577 * valops.c: Ditto.
13578 * value.h: Ditto.
13579 * scm-lang.c (scm_lookup_name): Ditto.
13580
13581 2002-01-03 Michael Snyder <msnyder@redhat.com>
13582
13583 Abstract the functionality of iterating over mapped memory
13584 regions into a general purpose iterator function.
13585 * procfs.c (iterate_over_mappings): New function, general purpose
13586 iterator for memory sections.
13587 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13588 (solib_mappings_callback): New function, callback for above.
13589 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13590 (info_mappings_callback): New function, callback for above.
13591
13592 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13593
13594 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13595
13596 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13597 * i386-tdep.c: Include "elf-bfd.h".
13598 (process_note_abi_tag_sections): New function.
13599 (i386_gdbarch_init): Add code to recognize various OS/ABI
13600 combinations.
13601
13602 * maint.c (_initialize_maint_cmds): Add missing \ in
13603 string-literal.
13604
13605 For older changes see ChangeLog-2001
13606 \f
13607 Local Variables:
13608 mode: change-log
13609 left-margin: 8
13610 fill-column: 74
13611 version-control: never
13612 End:
This page took 0.316914 seconds and 5 git commands to generate.