* symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-25 Jim Blandy <jimb@redhat.com>
2
3 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
4 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
5
6 * symfile.c (syms_from_objfile): Adjust indentation.
7
8 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
9 || info_verbose isn't true.
10
11 2002-11-24 Andrew Cagney <ac131313@redhat.com>
12
13 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
14 default to get_frame_base.
15 * gdbarch.h, gdbarch.c: Regenerate.
16 * arch-utils.c (default_frame_address): Delete function.
17 * arch-utils.h (default_frame_address): Delete declaration
18
19 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
20
21 * varobj.c (find_frame_addr_in_frame_chain):
22 Use get_frame_base instead of FRAME_FP,
23 obvious fix.
24
25 2002-11-19 Andrew Cagney <ac131313@redhat.com>
26
27 * frame.h (FRAME_FP): Delete macro.
28 (get_frame_base): New function declaration.
29 * frame.c (get_frame_base): New function.
30 (get_frame_id): Use ->frame.
31 (frame_find_by_id): Rewrite to use get_frame_id.
32 * blockframe.c: Use get_frame_base instead of FRAME_FP.
33 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
34 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
35 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
36 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
37 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
38 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
39
40 2002-11-24 Andrew Cagney <ac131313@redhat.com>
41
42 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
43
44 2002-11-24 Andrew Cagney <ac131313@redhat.com>
45
46 * frame.c (set_unwind_by_pc): Revert change below, use
47 PC_IN_CALL_DUMMY.
48 (get_prev_frame): Ditto.
49
50 2002-11-24 Andrew Cagney <ac131313@redhat.com>
51
52 * dummy-frame.c (pc_in_dummy_frame): New function.
53 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
54 (find_dummy_frame): Update comment.
55 (generic_pop_current_frame): Use get_frame_type.
56 * dummy-frame.h (pc_in_dummy_frame): Declare.
57 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
58 (create_new_frame): Use pc_in_dummy_frame.
59 (get_prev_frame): Use pc_in_dummy_frame.
60 (frame_saved_regs_register_unwind): Use get_prev_frame.
61 (deprecated_generic_get_saved_register): Use get_prev_frame.
62
63 2002-11-23 Andrew Cagney <ac131313@redhat.com>
64
65 * blockframe.c (find_frame_addr_in_frame_chain): Move function
66 from here ...
67 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
68 (varobj_create): Note that frame ID should be used.
69 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
70
71 2002-11-23 Andrew Cagney <ac131313@redhat.com>
72
73 * breakpoint.c: Include "gdb_assert.h".
74 (deprecated_frame_in_dummy): Assert that generic dummy frames are
75 not being used.
76 * Makefile.in (breakpoint.o): Update dependencies.
77 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
78 deprecated_frame_in_dummy.
79 * stack.c (print_frame_info_base): Ditto.
80 (frame_info): Ditto.
81 (print_frame_info_base): Ditto. Delete dead code.
82
83 2002-11-23 Andreas Schwab <schwab@suse.de>
84
85 * Makefile.in (m68k_tdep_h): Define.
86 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
87 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
88 * m68k-tdep.c: Move register number enum ...
89 * m68k-tdep.h: ... to this new file and rename the constants from
90 E_* to M68K_*. All uses changed.
91 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
92 * abug-rom.c: Include "m68k-tdep.h". Use
93 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
94 * cpu32bug-rom.c: Likewise.
95 * dbug-rom.c: Likewise.
96 * m68k-tdep.c: Likewise.
97 * m68klinux-nat.c: Likewise.
98 * remote-est.c: Likewise.
99 * rom68k-rom.c: Likewise.
100 * config/m68k/tm-linux.h: Likewise.
101
102 2002-11-23 Andrew Cagney <ac131313@redhat.com>
103
104 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
105 dummy frame initialization code.
106 * mips-tdep.c (mips_gdbarch_init): Ditto.
107
108 2002-11-22 Christopher Faylor <cgf@redhat.com>
109
110 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
111 attach will hang.
112
113 2002-11-22 Andrew Cagney <ac131313@redhat.com>
114
115 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
116 to default_frame_address.
117 * gdbarch.h, gdbarch.c: Re-generate.
118
119 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
120 or frame_locals_address to default_frame_address.
121 * m68k-tdep.c (m68k_gdbarch_init): Update.
122 * i386-tdep.c (i386_gdbarch_init): Update.
123 * frv-tdep.c (frv_gdbarch_init): Update.
124 * sh-tdep.c (sh_gdbarch_init): Update.
125 * v850-tdep.c (v850_gdbarch_init): Update.
126 * sparc-tdep.c (sparc_gdbarch_init): Update.
127 * mips-tdep.c (mips_gdbarch_init): Update.
128 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
129 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
131
132 * cris-tdep.c (cris_frame_args_address): Delete function.
133 (cris_frame_locals_address): Delete function.
134 (cris_gdbarch_init): Do not set frame_args_address or
135 frame_locals_address.
136
137 2002-11-22 Michael Snyder <msnyder@redhat.com>
138
139 * thread-db.c (thread_db_load): Tell the user what's going on
140 if dlopen fails on libthread_db.
141
142 2002-11-23 Andreas Schwab <schwab@suse.de>
143
144 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
145 invariant return values.
146
147 2002-11-22 Andreas Schwab <schwab@suse.de>
148
149 * valops.c (value_slice): Move declaration of `offset' to avoid
150 warning.
151
152 2002-11-22 Christopher Faylor <cgf@redhat.com>
153
154 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
155 (struct so_stuff): Add end_addr field.
156 (register_loaded_dll): Calculate and store end address of loaded dll.
157 (solib_address): New function.
158 (child_solib_loaded_library_pathname): Pass carefully constructed
159 section info to safe_symbol_file_add rather than ignoring it.
160 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
161 DLL is loaded.
162 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
163 (child_create_inferior): Fix a compiler warning.
164 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
165 (solib_address): Declare new function.
166
167 2002-11-22 Andreas Schwab <schwab@suse.de>
168
169 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
170 and FPS registers.
171
172 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
173
174 * maint.c (_initialize_maint_cmds): Fix typo. From
175 Francesco Potorti` <pot@gnu.org>.
176
177 2002-11-21 Andrew Cagney <cagney@redhat.com>
178
179 * mips-tdep.c (mips_dump_tdep): Delete references to
180 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
181 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
182 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
183 * printcmd.c (build_address_symbolic): Delete calls to
184 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
185 (address_info): Ditto.
186 Fix PR gdb/773.
187
188 2002-11-19 Klee Dienes <kdienes@apple.com>
189 Adam Fedor <fedor@gnu.org>
190
191 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
192 the ability to explicitly specify the quote characters and word
193 break characters; if NULL is specified for either, use the old
194 behavior of using the characters used by the completer.
195 (skip_chars): New function. Convenience wrapper around
196 skip_quoted_chars to provide the original skip_chars behavior.
197 * completer.h (skip_quoted_chars): Add prototype.
198
199 2002-11-19 Andrew Cagney <ac131313@redhat.com>
200
201 Problems reported by Paul Eggert.
202 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
203
204 2002-11-19 Andreas Schwab <schwab@suse.de>
205
206 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
207 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
208 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
209 (m68k_linux_frame_saved_pc): Move to ...
210 * m68klinux-tdep.c: ... here. New file.
211 * Makefile.in (m68klinux-tdep.o): Add dependencies.
212 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
213
214 2002-11-19 Adam Fedor <fedor@gnu.org>
215
216 * objc-exp.y: Revert to old skip_quoted usage.
217
218 2002-11-19 Adam Fedor <fedor@gnu.org>
219
220 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
221 (objc_lang_h): Define.
222 (YYFILES): Add objc-exp.tab.c.
223 (local-maintainer-clean): Remove objc-exp.tab.c.
224 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
225
226 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
227
228 * p-exp.y (typecast rule): Add automatic dereference of
229 pascal classes if needed.
230 (THIS): Set current_type.
231 Automatically dereference pascal classes.
232 (typebase rule): Add ^typebase recognition.
233
234 2002-11-18 Adam Fedor <fedor@gnu.org>
235
236 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
237 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
238 (op_name): Handle OP_OBJC_SELF.
239 * Makefile.in (expprint.o): Add additional depends.
240
241 2002-11-18 Adam Fedor <fedor@gnu.org>
242
243 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
244 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
245 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
246 * objc-exp.y: Likewise.
247
248 2002-11-18 Adam Fedor <fedor@gnu.org>
249
250 * gdb/parser-defs.h: (struct objc_class_str): New structure
251 for parsing ObjC classes.
252
253 2002-11-18 Andrew Cagney <ac131313@redhat.com>
254
255 * stack.c (frame_relative_level): Copy function from here ...
256 * frame.c (frame_relative_level): ...to here.
257
258 2002-11-18 Andrew Cagney <ac131313@redhat.com>
259
260 * frame.h (enum frame_type): Define.
261 (get_frame_type): Declare.
262 (struct frame_info): Add field `type'. Delete field
263 signal_handler_caller.
264 (deprecated_set_frame_signal_handler_caller): Declare.
265 * frame.c (get_frame_type): New function.
266 (deprecated_set_frame_type): New function.
267 (create_new_frame): Set the frame's type.
268 (get_prev_frame): Similar.
269 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
270 * s390-tdep.c: Ditto.
271 * m68klinux-nat.c: Ditto.
272 * ns32k-tdep.c: Ditto.
273 * x86-64-linux-tdep.c: Ditto.
274 * vax-tdep.c: Ditto.
275 * rs6000-tdep.c: Ditto.
276 * ppc-linux-tdep.c: Ditto.
277 * i386-interix-tdep.c: Ditto.
278 * mips-tdep.c: Ditto.
279 * m68k-tdep.c: Ditto.
280 * hppa-tdep.c: Ditto.
281 * ia64-tdep.c: Ditto.
282 * cris-tdep.c: Ditto.
283 * arm-tdep.c: Ditto.
284 * alpha-tdep.c: Ditto.
285 * i386-tdep.c: Ditto.
286 * stack.c: Ditto.
287 * ada-lang.c: Ditto.
288 * blockframe.c: Update.
289 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
290 deprecated_set_frame_type instead of signal_handler_caller.
291 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
292 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
293 * breakpoint.h: Delete FIXME suggesting get_frame_type.
294
295 2002-11-18 Klee Dienes <kdienes@apple.com>
296
297 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
298
299 2002-11-18 Klee Dienes <kdienes@apple.com>
300
301 * buildsym.c (pop_context): Add comment.
302
303 2002-11-18 Klee Dienes <kdienes@apple.com>
304
305 * buildsym.h (pop_context): Convert to function, defined in
306 buildsym.c.
307 * buildsym.c: Include gdb_assert.h.
308 (pop_context): Implement as C function. Add check for stack
309 underflow.
310 * dbxread.c (process_one_symbol): Complain and stop processing
311 that symbol if we are already at the top of the context stack for
312 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
313 when processing N_RBRAC.
314
315 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
316
317 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
318 define.
319 (struct target_waitstatus): Add opaque definition.
320 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
321 * exec.c (init_exec_ops): Likewise.
322 * fork-child.c (clone_and_follow_inferior): Remove.
323 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
324 * inferior.h (clone_and_follow_inferior): Remove prototype.
325 * infrun.c (follow_fork_mode_both): Remove.
326 (follow_fork_mode_kind_names): Remove commented out "both".
327 (follow_inferior_fork): Remove follow_fork_mode_both support.
328 * inftarg.c (child_clone_and_follow_inferior): Remove.
329 (child_post_follow_inferior_by_clone): Remove.
330 (init_child_ops): Don't set to_clone_and_follow_inferior
331 or to_post_follow_inferior_by_clone.
332 * target.c (default_clone_and_follow_inferior): Remove.
333 (cleanup_target): Don't set to_clone_and_follow_inferior
334 or to_post_follow_inferior_by_clone.
335 (find_default_clone_and_follow_inferior): Remove.
336 (init_dummy_target): Don't set to_clone_and_follow_inferior.
337 (debug_to_clone_and_follow_inferior): Remove.
338 (debug_to_post_follow_inferior_by_clone): Remove.
339 (setup_target_debug): Don't set to_clone_and_follow_inferior
340 or to_post_follow_inferior_by_clone.
341 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
342 and to_post_follow_inferior_by_clone.
343 (child_clone_and_follow_inferior): Remove prototype.
344 (child_post_follow_inferior_by_clone): Remove prototype.
345 (target_clone_and_follow_inferior): Remove macro.
346 (target_post_follow_inferior_by_clone): Remove macro.
347 (find_default_clone_and_follow_inferior): Remove prototype.
348
349 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
350
351 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
352 inferior_has_vforked, and inferior_has_execd instead of
353 target_has_forked, target_has_vforked, and target_has_execd.
354 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
355 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
356 (CHILD_WAIT): Define.
357 (child_wait): Add prototype.
358 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
359 Add prototype.
360 (hpux_has_vforked): Likewise, from child_has_vforked.
361 (hpux_has_execd): Likewise, from child_has_execd.
362 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
363 (not_same_real_pid, child_wait): New, copied from inftarg.c.
364 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
365 and hpux_has_syscall_event instead of the target hooks.
366 * infrun.c (inferior_has_forked, inferior_has_vforked)
367 (inferior_has_execd): New functions.
368 * inftarg.c (not_same_real_pid): Remove.
369 (child_wait): Remove references to not_same_real_pid,
370 target_has_forked, target_has_vforked, target_has_execd,
371 and target_has_syscall_event.
372 (child_has_forked, child_has_vforked, child_has_execd)
373 (child_has_syscall_event): Remove.
374 (init_child_ops): Remove references to child_has_forked,
375 child_has_vforked, child_has_execd, and child_has_syscall_event.
376 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
377 (hpux_has_vforked): Likewise, from child_has_vforked.
378 (hpux_has_execd): Likewise, from child_has_execd.
379 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
380 * target.c (cleanup_target): Remove references to
381 to_has_forked, to_has_vforked, to_has_execd, and
382 to_has_syscall_event.
383 (update_current_target): Likewise.
384 (setup_target_debug): Likewise.
385 (debug_to_has_forked): Remove.
386 (debug_to_has_vforked): Remove.
387 (debug_to_has_execd): Remove.
388 (debug_to_has_syscall_event): Remove.
389 * target.h (struct target_ops): Remove to_has_forked.
390 to_has_vforked, to_has_execd, and to_has_syscall_event.
391 (child_has_forked, child_has_vforked, child_has_execd)
392 (child_has_syscall_event): Remove prototypes.
393 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
394 prototypes.
395 (target_has_forked, target_has_vforked, target_has_execd)
396 (target_has_syscall_event): Remove macros.
397
398 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
399
400 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
401 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
402 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
403 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
404 * target.c (cleanup_target): Remove reference to
405 to_can_follow_vfork_prior_to_exec.
406 (update_current_target): Likewise.
407 (debug_to_can_follow_vfork_prior_to_exec): Remove.
408 (setup_target_debug): Remove reference to
409 to_can_follow_vfork_prior_to_exec.
410 * target.h (struct target_ops): Remove
411 to_can_follow_vfork_prior_to_exec.
412 (child_can_follow_vfork_prior_to_exec): Remove prototype.
413 (target_can_follow_vfork_prior_to_exec): Remove definition.
414 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
415 define.
416 * infrun.c (follow_vfork_when_exec): Remove.
417 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
418 (follow_exec): Likewise.
419 (handle_inferior_event): Likewise.
420 (keep_going): Likewise.
421
422 2002-11-15 Andrew Cagney <cagney@redhat.com>
423
424 * frame.c (generic_unwind_get_saved_register): Make static.
425 * frame.h (generic_unwind_get_saved_register): Delete declaration.
426 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
427 defaults to generic_unwind_get_saved_register.
428 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
429 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
430 * frv-tdep.c (frv_gdbarch_init): Ditto.
431 * i386-tdep.c (i386_gdbarch_init): Ditto.
432 * s390-tdep.c (s390_gdbarch_init): Ditto.
433 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
434 * v850-tdep.c (v850_gdbarch_init): Ditto.
435 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
436 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
437 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
438
439 2002-11-15 Andrew Cagney <cagney@redhat.com>
440
441 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
442 i386-tdep.c.
443
444 2002-11-15 Andrew Cagney <cagney@redhat.com>
445
446 * frame.h (sigtramp_saved_pc): Delete declaration.
447 * blockframe.c (sigtramp_saved_pc): Delete function.
448 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
449 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
450 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
451 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
452
453 2002-11-15 Andrew Cagney <ac131313@redhat.com>
454
455 * frame.c (frame_pc_unwind): New function.
456 (frame_saved_regs_pc_unwind): New function.
457 (frame_register_unwind): Pass unwind_cache instead of
458 register_unwind_cache.
459 (set_unwind_by_pc): Add unwind_pc parameter, set.
460 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
461 (get_prev_frame): Ditto.
462 * frame.h (frame_pc_unwind_ftype): Declare.
463 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
464 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
465 (frame_pc_unwind): Declare.
466 * dummy-frame.c (dummy_frame_pc_unwind): New function.
467 (struct dummy_frame): Add comment mentioning that values are for
468 previous frame.
469 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
470 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
471 (generic_file_frame_chain_valid): Ditto.
472 * stack.c (frame_info): Ditto.
473
474 2002-11-15 David Carlton <carlton@math.stanford.edu>
475
476 * linespec.c (locate_first_half): New function.
477 (decode_line_1): Move code into locate_first_half.
478
479 2002-11-15 Andrew Cagney <ac131313@redhat.com>
480
481 * complaints.h: Add comment explaining how to eliminate a
482 deprecated_complain call.
483 * complaints.h: Fix spelling errors.
484
485 2002-11-15 David Carlton <carlton@math.stanford.edu>
486
487 * printcmd.c: Remove #include "disasm.h".
488
489 2002-11-14 Andrew Cagney <ac131313@redhat.com>
490
491 * frame.h: Move the most relevant interface functions to the start
492 of the file.
493
494 2002-11-14 Andrew Cagney <ac131313@redhat.com>
495
496 * regcache.h (deprecated_registers): Rename registers.
497 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
498 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
499 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
500 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
501 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
502 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
503 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
504 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
505 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
506 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
507 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
508 * v850ice.c: Update.
509
510 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
511
512 * utils.c (gdb_realpath): Add comment mentioning realpath with a
513 NULL buffer.
514
515 2002-11-13 Andrew Cagney <cagney@redhat.com>
516
517 * regcache.h (deprecated_read_register_bytes): Rename
518 read_register_bytes.
519 (deprecated_write_register_bytes): Rename write_register_bytes.
520 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
521 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
522 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
523 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
524 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
525 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
526 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
527 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
528 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
529 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
530 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
531 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
532 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
533 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
534
535 2002-11-13 Jim Blandy <jimb@redhat.com>
536
537 * findvar.c (read_var_value): Doc fix.
538
539 2002-11-13 Andrew Cagney <cagney@redhat.com>
540
541 * regcache.c (struct regcache): Replace passthough_p with
542 readonly_p.
543 (regcache_xmalloc): Initialize readonly_p.
544 (build_regcache): Initialize readonly_p.
545 (regcache_save): New function.
546 (regcache_restore): New function.
547 (regcache_cpy): Re-implement using regcache_save and
548 regcache_restore.
549 (regcache_raw_read): Update.
550 (regcache_cooked_read): When a read-only cache, checked for cached
551 pseudo register values.
552 (regcache_raw_write): Assert that the cache is not read-only.
553 Remove code handling a non-passthrough cache.
554 * regcache.h (regcache_save): Declare.
555 (regcache_restore): Declare.
556
557 2002-11-13 Andrew Cagney <cagney@redhat.com>
558
559 * regcache.c (struct regcache_descr): Add fields
560 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
561 (init_legacy_regcache_descr): Compute the size of a cooked
562 register cache and then assign that to sizeof_raw_registers. Set
563 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
564 (init_legacy_regcache_descr): Ditto.
565
566 2002-11-13 Andrew Cagney <cagney@redhat.com>
567
568 * regcache.c (register_buffer): Move to near start of file, update
569 description.
570 (regcache_raw_read): Use.
571 (regcache_raw_write): Use.
572 (struct regcache): Rename raw_registers to registers and
573 raw_register_valid_p to register_valid_p.
574 (regcache_xmalloc): Update.
575 (regcache_xfree): Update.
576 (register_buffer): Update.
577 (regcache_cpy): Update.
578 (regcache_cpy_no_passthrough): Update.
579 (regcache_valid_p): Update.
580 (deprecated_grub_regcache_for_registers): Update.
581 (deprecated_grub_regcache_for_register_valid): Update.
582 (set_register_cached): Update.
583 (regcache_raw_write): Update.
584
585 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
586
587 * p-exp.y (name_not_typename): Use copy_name to
588 set current_type variable for fields of THIS.
589
590 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
591
592 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
593 * monitor.c (init_base_monitor_ops): Likewise.
594 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
595 * remote-array.c (init_array_ops): Likewise.
596 * remote-e7000.c (init_e7000_ops): Likewise.
597 * remote-es.c (init_es1800_ops): Likewise.
598 (init_es1800_child_ops): Likewise.
599 * remote-rdp.c (init_remote_rdp_ops): Likewise.
600 * remote-sim.c (init_gdbsim_ops): Likewise.
601 * remote-st.c (init_st2000_ops): Likewise.
602 * sol-thread.c (init_sol_core_ops): Likewise.
603 (init_sol_thread_ops): Likewise.
604 * v850ice.c (init_850ice_ops): Likewise.
605 * win32-nat.c (init_child_ops): Likewise.
606 * wince.c (init_child_ops): Likewise.
607
608 2002-11-12 Andrew Cagney <ac131313@redhat.com>
609
610 * utils.c (gdb_realpath): Make rp a constant pointer.
611
612 2002-11-12 Andrew Cagney <ac131313@redhat.com>
613
614 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
615 a constant buffer; cannonicalize_file_name(); realpath() with a
616 pathconf() defined buffer, xstrdup().
617
618 2002-11-12 Andrew Cagney <ac131313@redhat.com>
619
620 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
621 to hang2.C; hang3.c to hang3.C.
622
623 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
624
625 * findvar.c (read_var_value): Reenable TLS code.
626
627 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
628 Jim Blandy <jimb@redhat.com>
629
630 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
631 * target.c (update_current_target): Add
632 to_get_thread_local_address.
633 * target.h (to_get_thread_local_address): Export.
634 (target_get_thread_local_address): Define.
635 (target_get_thread_local_address_p): Define.
636 * thread-db.c: Include solib-svr4.h.
637 (td_thr_tls_get_addr_p): Define.
638 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
639 (thread_db_get_thread_local_address): New function.
640 (init_thread_db_ops): Initialize to_get_thread_local_address.
641 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
642 * configure: Regenerate.
643 * config.in: Regenerate.
644
645 2002-11-11 David Carlton <carlton@math.stanford.edu>
646
647 * linespec.c (set_flags): New function.
648 (decode_line_1): Move code into set_flags.
649
650 2002-11-11 David Carlton <carlton@math.stanford.edu>
651
652 * linespec.c (decode_line_1): Move chunks of code to separate
653 functions.
654 (initialize_defaults): New function.
655 (decode_indirect): New function.
656
657 2002-11-11 Andrew Cagney <ac131313@redhat.com>
658
659 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
660 instead of void_code_ptr.
661 (sigtramp_saved_pc): Ditto.
662
663 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
664 i386_fp_regnum_p.
665
666 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
667
668 * gdbtypes.h (struct main_type): Move artificial flag out of
669 loc. New member of ``struct field'' named static_kind. Reduce
670 overloaded meaning of bitsize.
671 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
672 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
673 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
674
675 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
676 new fields.
677 (template_to_fixed_record_type, template_to_static_fixed_type)
678 (to_record_with_fixed_variant_part): Likewise.
679 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
680 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
681 * dwarfread.c (struct_type, enum_type): Likewise.
682 * hpread.c (hpread_read_enum_type)
683 (hpread_read_function_type, hpread_read_doc_function_type)
684 (hpread_read_struct_type): Likewise.
685 * mdebugread.c (parse_symbol): Likewise.
686
687 2002-11-10 Andrew Cagney <ac131313@redhat.com>
688
689 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
690 * stack.c (print_frame_info_base): Update.
691 (print_frame_info_base, frame_info): Update.
692 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
693 (sparc_frame_saved_pc): Update.
694 * ada-lang.c (find_printable_frame): Update.
695 * breakpoint.c (deprecated_frame_in_dummy): Update.
696
697 2002-11-09 Mark Kettenis <kettenis@gnu.org>
698
699 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
700 defined.
701 (regmap): Extend to cover all registers.
702 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
703 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
704 definitions.
705 (fetch_register, sore_register): Simplify.
706 (old_fetch_inferior_registers, old_store_inferior_registers):
707 Remove functions.
708 (cannot_fetch_register, cannot_store_register): Change
709 implementation to use regmap array to decide which registers
710 cannot be fetched/stored. This removes $orig_eax from the
711 registers that cannot be fetched/stored.
712 (fetch_inferior_registers): Call fetch_register directly instead
713 of calling old_fetch_inferior_registers.
714 (store_inferior_registers): Call store_register directly instead
715 of calling old_store_inferior_registers.
716 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
717 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
718 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
719
720 2002-11-09 Klee Dienes <kdienes@apple.com>
721
722 * i387-tdep.c (i387_supply_register): When called with NULL as a
723 buffer, mark the register as not provided (to mirror the behavior
724 of supply_register).
725 (i387_supply_fxsave): Ditto.
726 (i387_supply_fsave): Ditto (inherits the behavior from
727 i387_supply_register).
728
729 2002-11-09 Klee Dienes <kdienes@apple.com>
730
731 * blockframe.c (sigtramp_saved_pc): Use
732 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
733 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
734 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
735
736 2002-11-09 Andrew Cagney <ac131313@redhat.com>
737
738 * frame.c (get_prev_frame): Test prev_p to identify a previously
739 unwound frame. Initialize prev_p.
740 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
741 comment.
742
743 2002-11-09 Andrew Cagney <ac131313@redhat.com>
744
745 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
746 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
747 more comments. Zap dead code.
748
749 2002-11-09 Mark Kettenis <kettenis@gnu.org>
750
751 * infcmd.c (print_vector_info, print_float_info): Move code that
752 checks whether the target has any registers and whether there is a
753 selected frame up, such that it is also used if a target provides
754 multi-arch definitions of these functions.
755
756 2002-11-08 Andrew Cagney <ac131313@redhat.com>
757
758 * Makefile.in (DESTDIR): Define.
759 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
760 prefix.
761
762 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
763 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
764
765 2002-11-08 Andrew Cagney <ac131313@redhat.com>
766
767 * i386-linux-tdep.c: Include "reggroups.h".
768 (i386_linux_register_reggroup_p): New function.
769 (i386_linux_init_abi): Set register_reggroup_p to
770 i386_linux_register_reggroup_p.
771 * i386-tdep.h (i386_register_reggroup_p): Declare.
772 * i386-tdep.c: Include "reggroups.h".
773 (i386_init_reggroups): New function.
774 (i386_add_reggroups): New function.
775 (i386_register_reggroup_p): New function.
776 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
777 (_initialize_i386_tdep): Call i386_init_reggroups.
778 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
779 specific reggroups.
780
781 2002-11-09 Mark Kettenis <kettenis@gnu.org>
782
783 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
784 request that's available in *BSD.
785
786 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
787
788 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
789 FDOFF_REGNUM.
790
791 2002-11-08 Andrew Cagney <ac131313@redhat.com>
792
793 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
794 * dummy-frame.c (find_dummy_frame): Rename
795 generic_find_dummy_frame, make static. Return the dummy frame
796 instead of the regcache.
797 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
798 (cached_find_dummy_frame): New function. Use find_dummy_frame.
799 (dummy_frame_register_unwind): Rename
800 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
801 * dummy-frame.h (dummy_frame_register_unwind): Rename
802 generic_call_dummy_register_unwind.
803
804 2002-11-08 Mark Kettenis <kettenis@gnu.org>
805
806 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
807 except the inclusion of "i386/tm-i386.h", to...
808 * config/i386/nm-i386v42mp.h: ...here.
809 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
810
811 2002-11-08 Andrew Cagney <ac131313@redhat.com>
812
813 * Makefile.in (frame.o): Update dependencies.
814 * blockframe.c (current_frame, frame_obstack_alloc)
815 (frame_saved_regs_zalloc, get_current_frame)
816 (set_current_frame, create_new_frame)
817 (set_unwind_by_pc, get_next_frame)
818 (flush_cached_frames, reinit_frame_cache)
819 (frame_saved_regs_register_unwind)
820 (deprecated_generic_get_saved_register)
821 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
822 (_initialize_blockframe): Move frame code from here...
823 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
824 "annotate.h" and "dummy-frame.h".
825 (_initialize_frame): New function.
826
827 2002-11-08 Jim Blandy <jimb@redhat.com>
828
829 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
830 when we finish a function a context.
831 * buildsym.h (outermost_context_p): New macro.
832 (Bug analyzed by David Edelsohn.)
833
834 2002-11-08 Andrew Cagney <ac131313@redhat.com>
835
836 * blockframe.c: Include "dummy-frame.h".
837 (struct dummy_frame, dummy_frame_stack)
838 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
839 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
840 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
841 (generic_save_call_dummy_addr, generic_pop_current_frame)
842 (generic_pop_dummy_frame, generic_fix_call_dummy)
843 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
844 dummy frame code from here...
845 * dummy-frame.c: ...to here. New file.
846 * dummy-frame.h: New file.
847 (generic_call_dummy_register_unwind): Declare.
848 (generic_find_dummy_frame): Declare.
849 * Makefile.in (SFILES): Add dummy-frame.c.
850 (dummy-frame.o): Specify dependencies.
851 (dummy_frame_h): Define.
852 (COMMON_OBS): Add dummy-frame.o.
853 (blockframe.o): Update dependencies.
854
855 2002-11-08 Jim Blandy <jimb@redhat.com>
856
857 * dwarf2read.c (read_func_scope): Restore local_symbols and
858 param_symbols after we finish the function context. (Based on a
859 patch from David Edelsohn.)
860
861 2002-11-08 David Carlton <carlton@math.stanford.edu>
862
863 * linespec.c (symbol_found): New function.
864 (minsym_found): New function.
865 (decode_line_1): Separate out some code into separate functions.
866
867 2002-11-08 Joel Brobecker <brobecker@gnat.com>
868
869 * i386-tdep.c (i386_frameless_signal_p): Make non static for
870 the benefit of the interix target.
871 * i386-tdep.h (i386_frameless_signal_p): Declare.
872
873 2002-11-08 Andrew Cagney <ac131313@redhat.com>
874
875 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
876 declaration that snuck in from change below.
877
878 2002-11-06 Andrew Cagney <cagney@redhat.com>
879
880 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
881 all callers.
882 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
883 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
884 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
885 (i386_mxcsr_regnum_p): new function. Use instead of
886 MXCSR_REGNUM_P.
887 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
888 (i386_sse_regnum_p): Declare.
889 (i386_mxcsr_regnum_p): Declare.
890 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
891 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
892 (IS_FP_REGNUM): Update definition.
893 (IS_FPU_CTRL_REGNUM): Update definition..
894 (IS_SSE_REGNUM): Update definition..
895 * i386v-nat.c (register_u_addr): Update.
896 * go32-nat.c (fetch_register): Update.
897 (store_register): Update.
898
899 2002-11-07 Joel Brobecker <brobecker@gnat.com>
900
901 Preparation work to convert the hppa targets to multiarch partial.
902
903 * hppa-tdep.c: Add new functions replacing macro bodies from
904 config/pa/tm-hppa.h. These function will be used to initialize
905 the gdbarch structure. Import some comments from tm-hppa.h,
906 and place them where appropriate, to avoid loosing them when
907 we cleanup this file.
908 (hppa_reg_struct_has_addr): New function.
909 (hppa_inner_than): New function.
910 (hppa_stack_align): New function.
911 (hppa_pc_requires_run_before_use): New function.
912 (hppa_instruction_nullified): New function.
913 (hppa_register_byte): New function.
914 (hppa_register_virtual_type): New function.
915 (hppa_store_struct_return): New function.
916 (hppa_cannot_store_register): New function.
917 (hppa_frame_args_address): New function.
918 (hppa_frame_locals_address): New function.
919 (hppa_smash_text_address): New function.
920 (hppa_coerce_float_to_double): New function. Requires the inclusion
921 of "language.h".
922
923 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
924
925 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
926 gdbarch-eligible macro to a call to the new associated function
927 created in hppa-tdep.c.
928 (INNER_THAN): Likewise.
929 (STACK_ALIGN): Likewise.
930 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
931 (INSTRUCTION_NULLIFIED): Likewise.
932 (REGISTER_BYTE): Likewise.
933 (REGISTER_VIRTUAL_TYPE): Likewise.
934 (STORE_STRUCT_RETURN): Likewise.
935 (CANNOT_STORE_REGISTER): Likewise.
936 (FRAME_ARGS_ADDRESS): Likewise.
937 (FRAME_LOCALS_ADDRESS): Likewise.
938 (SMASH_TEXT_ADDRESS): Likewise.
939 (COERCE_FLOAT_TO_DOUBLE): Likewise.
940 (ABOUT_TO_RETURN): Delete, as no longer used.
941
942 2002-11-07 Fernando Nasser <fnasser@redhat.com>
943
944 * printcmd.c (disassemble_command): Remove obsolete function.
945 (_initialize_printcmd): Do not create disassemble command here.
946 * cli/cli-cmds.c (disassemble_command): New function. Implements
947 disassemble command.
948 (init_cli_cmds): Create disassemble command here instead.
949
950 2002-11-07 Andrew Cagney <ac131313@redhat.com>
951
952 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
953
954 2002-11-07 Andrew Cagney <ac131313@redhat.com>
955
956 * regcache.h (regcache_cooked_read_using_offset_hack)
957 (regcache_cooked_write_using_offset_hack): Delete declarations.
958 (register_changed): Delete declaration.
959 * regcache.c (regcache_cooked_read_using_offset_hack)
960 (regcache_cooked_write_using_offset_hack): Delete functions.
961 (cooked_xfer_using_offset_hack): Delete function.
962 (register_changed): Delete function.
963
964 2002-11-07 Jim Blandy <jimb@redhat.com>
965
966 * macroscope.c: #include "complaints.h".
967 (sal_macro_scope): Cope with filenames that appear in the symtabs,
968 but not in the macro table.
969 * Makefile.in (macroscope.o): Record dependency.
970
971 2002-11-07 Joel Brobecker <brobecker@gnat.com>
972
973 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
974
975 2002-11-07 Andrew Cagney <ac131313@redhat.com>
976
977 * regcache.c (deprecated_registers_fetched): Update.
978 * regcache.h (deprecated_registers_fetched): Rename
979 registers_fetched.
980 * remote-vxsparc.c (vx_read_register): Update.
981 * remote-vxmips.c (vx_read_register): Update.
982 * remote-vx68.c (vx_read_register): Update.
983 * irix5-nat.c (fetch_core_registers): Update.
984 * mipsm3-nat.c (fetch_inferior_registers): Update.
985 * sun3-nat.c (fetch_inferior_registers): Update.
986 * symm-nat.c (fetch_inferior_registers): Update.
987 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
988 (fetch_core_registers): Update.
989 (fetch_kcore_registers): Update.
990 * mips-nat.c (fetch_inferior_registers): Update.
991 * corelow.c (get_core_registers): Update.
992 * a68v-nat.c (fetch_inferior_registers): Update.
993
994 2002-11-06 Joel Brobecker <brobecker@gnat.com>
995
996 Put in place the framework necessary for multiarching the hppa targets.
997 * hppa-tdep.c (hppa_gdbarch_init): New function.
998 (hppa_dump_tdep): New function.
999 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1000 tdep structure dumper.
1001 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1002 until the multi-arching conversion has partially been completed.
1003
1004 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1005
1006 * valops.c (value_assign): Merge lval_register case into
1007 lval_reg_frame_relative. Use frame_register and
1008 regcache_cooked_write instead of get_saved_register and
1009 write_register_bytes. After flushing the register cache, try to
1010 re-select the selected frame.
1011
1012 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1013
1014 * regcache.h (deprecated_register_valid): Rename register_valid.
1015 * regcache.c: Update.
1016 * ia64-aix-nat.c: Update.
1017 * i386gnu-nat.c: Update.
1018 * alpha-nat.c: Update.
1019 * sparc-nat.c: Update.
1020 * lynx-nat.c: Update.
1021 * remote-mips.c: Update.
1022
1023 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1024
1025 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1026 to end of file, to be more consistent with the pratice followed
1027 by other targets.
1028
1029 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1030
1031 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1032 (print_float_info): Print registers in float_reggroup.
1033 (print_vector_info): Print registers in vector_reggroup.
1034 (default_print_registers_info): When all, print registers in
1035 all_reggroup. Otherwize, print registers in general_reggroup.
1036 (registers_info): Rewrite. Add support for register groups.
1037 Eliminate a goto.
1038
1039 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1040
1041 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1042 ages.
1043 (symtab_symbol_info): Remove eons old ifdeffed out code.
1044 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1045 command.
1046
1047 2002-11-06 Theodore A. Roth <troth@openavr.org>
1048
1049 * c-exp.y: Add missing semi-colons.
1050 * f-exp.y: Add missing semi-colons.
1051 * m2-exp.y: Add missing semi-colons.
1052 * p-exp.y: Add missing semi-colons.
1053 Add empty action to start rule to avoid a type clash error when
1054 building with bison >= 1.50.
1055
1056 2002-11-06 Jim Blandy <jimb@redhat.com>
1057
1058 * macrotab.h (struct macro_source_file): Doc fix.
1059
1060 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1061
1062 * varobj.c (child_exists, cplus_number_of_children): Change
1063 STREQ macro references to strcmp.
1064 (cplus_name_of_child): Change code to handle the fact that
1065 fields are not necessarily contiguous with regards to their
1066 access control. This is a fix for PR gdb/792.
1067
1068 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1069
1070 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1071 * gdbarch.h, gdbarch.c: Regnerate.
1072 * frame.h (frame_register): Declare.
1073 * frame.c (frame_register): New function.
1074 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1075 GET_SAVED_REGISTER, otherwize call
1076 generic_unwind_get_saved_register.
1077 (frame_register_read): Use frame_register instead of
1078 get_saved_register.
1079
1080 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1081
1082 From Jim Ingham <jingham@apple.com>:
1083 * event-top.c (gdb_disable_readline): New function.
1084 (_initialize_event_loop): Move comment.
1085
1086 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1087
1088 * event-loop.c (start_event_loop): Add comment.
1089 Update copyright.
1090
1091 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1092
1093 * infcmd.c (default_print_registers_info): Do not call
1094 PRINT_REGISTER_HOOK.
1095
1096 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1097
1098 * sparc-tdep.c (sparc_print_register_hook): Make static.
1099 (sparc_print_registers_info): New function.
1100 (sparc_do_registers_info): New function.
1101 (sparclet_print_registers_info): New function.
1102 (sparclet_do_registers_info): New function.
1103 (do_sparc_print_registers_info): New function.
1104 (sparc_print_registers): New static function, clone of infcmd.c's
1105 default_print_registers_info.
1106 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1107 (sparclet_do_registers_info): Declare.
1108 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1109 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1110 Re-define.
1111 (sparc_do_registers_info): Declare.
1112 (PRINT_REGISTER_HOOK): Delete macro.
1113 (sparc_print_register_hook): Delete declaration.
1114
1115 2002-11-05 David Carlton <carlton@math.stanford.edu>
1116
1117 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1118 functions.
1119 (lookup_symbol_aux_local): New function.
1120 (lookup_symbol_aux_symtabs): New function.
1121 (lookup_symbol_aux_psymtabs): New function.
1122
1123 2002-11-05 David Carlton <carlton@math.stanford.edu>
1124
1125 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1126 previous values of 'objfile' and 'block'.
1127
1128 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1129
1130 * values.c (value_change_enclosing_type): Set
1131 enclosing_type field correctly also for the case where
1132 more memory needs to be allocated.
1133
1134 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1135
1136 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1137 of puts_filtered.
1138
1139 * i387-tdep.c (i387_print_float_info): Replace calls to
1140 register_read and deprecated_read_register_gen with calls to
1141 frame_register_read, and make the necessary adjustments to the
1142 surrounding code.
1143
1144 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1145
1146 * gdbarch.sh (register_reggroup_p): Allow default value.
1147 * gdbarch.h, gdbarch.c: Regenerate.
1148
1149 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1150
1151 * regcache.h: Add coment indicating replacements for deprecated
1152 functions.
1153
1154 2002-11-02 Andrew Cagney <cagney@redhat.com>
1155
1156 * reggroups.h, reggroups.c: New files.
1157 * regcache.c: Include "reggroups.h".
1158 (enum regcache_dump_what): Add `regcache_dump_groups'.
1159 (regcache_dump): Contract size of the "Type" column. When
1160 specified, dump the register's groups.
1161 (maintenance_print_register_groups): New function.
1162 (_initialize_regcache): Add command `maint print register-groups'.
1163 * Makefile.in (COMMON_OBS): Add reggroups.o
1164 (SFILES): Add reggroups.c.
1165 (reggroups_h): Define.
1166 (regcache.o, gdbarch.o): Update dependencies.
1167 (reggroups.o): Specify dependencies.
1168 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1169 Add opaque declaration for `struct reggroup' in generated .h file.
1170 Include "reggroups.h" in generated .c file.
1171 gdbarch.h, gdbarch.c: Re-generate.
1172
1173 2002-11-02 Andrew Cagney <cagney@redhat.com>
1174
1175 * regcache.h (deprecated_read_register_gen): Rename
1176 read_register_gen.
1177 (deprecated_write_register_gen): Rename write_register_gen.
1178 * i387-tdep.c: Update.
1179 * x86-64-linux-nat.c: Update
1180 * wince.c: Update.
1181 * thread-db.c: Update.
1182 * win32-nat.c: Update.
1183 * mips-tdep.c: Update.
1184 * d10v-tdep.c: Update.
1185 * cris-tdep.c: Update.
1186 * remote-sim.c: Update.
1187 * remote-rdi.c: Update.
1188 * remote-rdp.c: Update.
1189 * frame.c: Update.
1190 * target.c: Update.
1191 * blockframe.c: Update.
1192 * x86-64-tdep.c: Update.
1193 * xstormy16-tdep.c: Update.
1194 * sh-tdep.c: Update.
1195 * s390-tdep.c: Update.
1196 * rs6000-tdep.c: Update.
1197 * sparc-tdep.c: Update.
1198 * i386-tdep.c: Update.
1199 * dwarf2cfi.c: Update.
1200 * regcache.c: Update.
1201
1202 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1203
1204 New interix-specific files:
1205 * config/i386/nm-interix.h: New file.
1206 * config/i386/interix.mh: New file.
1207 * config/i386/interix.mt: New file.
1208 * i386-interix-nat.c: New file.
1209 * i386-interix-tdep.c: New file.
1210
1211 2002-11-01 Andrew Cagney <cagney@redhat.com>
1212
1213 * frame.h (deprecated_generic_get_saved_register): Rename
1214 generic_get_saved_register.
1215 * blockframe.c (deprecated_generic_get_saved_register): Update.
1216 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1217 (xstormy16_frame_saved_register): Update.
1218 * sh-tdep.c (sh_gdbarch_init): Update.
1219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1220 * ia64-tdep.c (ia64_get_saved_register): Update.
1221 * cris-tdep.c (cris_gdbarch_init): Update.
1222 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1223 * arm-tdep.c (arm_gdbarch_init): Update.
1224
1225 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1226
1227 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1228
1229 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1230
1231 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1232 trampolines in sigaction.
1233
1234 2002-10-31 Andrew Cagney <cagney@redhat.com>
1235
1236 * h8300-tdep.c: Include "gdb_assert.h".
1237 (h8300_print_register): Add gdbarch, file and frame parameters.
1238 Use frame_read_unsigned_register to read the register's value.
1239 Use fprintf_filtered to display output.
1240 (h8300_print_registers_info): Replace h8300_do_registers_info.
1241 (h8300_gdbarch_init): Set print_registers_info.
1242
1243 2002-10-31 Andrew Cagney <cagney@redhat.com>
1244
1245 * frame.c (frame_read_unsigned_register): New function.
1246 (frame_read_signed_register): New function.
1247 * frame.h (frame_read_unsigned_register): Declare.
1248 (frame_read_signed_register): Declare.
1249
1250 2002-10-31 Andrew Cagney <cagney@redhat.com>
1251
1252 * h8500-tdep.c (h8500_print_registers_info): New static function,
1253 clone of infcmd.c's default_print_registers_info.
1254 (h8500_do_registers_info): New funtion.
1255 (h8500_print_register_hook): Rename print_register_hook, make
1256 static.
1257
1258 * config/h8500/tm-h8500.h: Update copyright.
1259 (DEPRECATED_DO_REGISTERS_INFO): Define.
1260 (h8500_do_registers_info: Declare.
1261 (PRINT_REGISTER_HOOK): Delete macro.
1262 (print_register_hook): Delete function.
1263
1264 2002-10-31 Andrew Cagney <cagney@redhat.com>
1265
1266 * z8k-tdep.c (z8k_print_register_hook): Make static.
1267 (z8k_print_registers_info): New static function, clone of
1268 infcmd.c's default_print_registers_info.
1269 (z8k_do_registers_info): New function. Wrap
1270 z8k_print_registers_info.
1271 * config/z8k/tm-z8k.h: Update copyright.
1272 (PRINT_REGISTER_HOOK): Delete macro.
1273 (z8k_print_register_hook): Delete declaration.
1274 (DEPRECATED_DO_REGISTERS_INFO): Define.
1275 (z8k_do_registers_info): Declare.
1276
1277 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1278
1279 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1280 as this is already provided by value.h, and was actually causing
1281 a compilation error because of a conflict in parameter type
1282 declaration due to a missing const keyword.
1283 (low_text_segment_addres): Fix a compilation warning.
1284
1285 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1286
1287 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1288 registers without a name.
1289 (mips_linux_cannot_store_register): Don't store registers without
1290 a name.
1291
1292 2002-10-28 David Carlton <carlton@math.stanford.edu>
1293
1294 * symtab.c (find_addr_symbol): Delete. (It was already commented
1295 out.)
1296 * symtab.h: Delete prototype for find_addr_symbol.
1297
1298 2002-10-26 Andrew Cagney <cagney@redhat.com>
1299
1300 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1301 DO_REGISTERS_INFO.
1302 gdbarch.h, gdbarch.c: Re-generate.
1303 * infcmd.c (default_print_registers_info): Update reference.
1304 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1305 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1306 * sh-tdep.c (sh_gdbarch_init): Ditto.
1307 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1308 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1309
1310 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1311
1312 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1313 cfi_init_extra_frame_info.
1314 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1315 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1316
1317 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1318 target where necessary. Add more comments and remove the ones
1319 that don't provide any useful information.
1320
1321 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1322 deprecated_read_register_dummy with
1323 frame_unwind_unsigned_register.
1324
1325 * i386-tdep.c (i386_extract_struct_value_address): Use
1326 regcache_raw_read_unsigned instead of
1327 regcache_cooked_read_unsigned since we know that the register
1328 we're reading isn't a pseudo register. Rename variable 'val' into
1329 the more descriptive 'addr'.
1330
1331 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1332 (x86_64_push_return_address): Add comment.
1333 (x86_64_pop_frame): Make static.
1334 (examine_argument): Clarify comment.
1335 (x86_64_skip_prologue): Make prolog_expact variable static.
1336
1337 * dwarf2cfi.c: Fix some formatting problems.
1338 (context_cpy, read_encoded_pointer): Clarify comments.
1339
1340 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1341 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1342 i386 target back into x86_64_gdbarch_init. Add some comments and
1343 remove meaningless ones.
1344
1345 2002-10-25 Andrew Cagney <cagney@redhat.com>
1346
1347 * complaints.h (struct deprecated_complaint): Rename `struct
1348 complaint'.
1349 * complaints.c (complain): Update.
1350 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1351 incorrect comment indicating that "symfile.h" was being included
1352 for the `struct complaint' definition.
1353 * remote-vx.c: Update.
1354 * objc-lang.c: Update.
1355 * xcoffread.c: Update.
1356 * hpread.c: Update.
1357 * mdebugread.c: Update.
1358 * stabsread.c: Update.
1359 * dwarf2read.c: Update.
1360 * dwarfread.c: Update.
1361 * elfread.c: Update.
1362 * coffread.c: Update.
1363 * stabsread.h: Update.
1364 * dbxread.c: Update.
1365 * buildsym.c: Update.
1366 * gdbtypes.c: Update.
1367 * macrotab.c: Update.
1368
1369 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1370
1371 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1372 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1373 (x86_64_init_abi): ...new function.
1374
1375 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1376 * i386v-nat.c: Include "i386-tdep.h".
1377
1378 2002-10-25 Andrew Cagney <cagney@redhat.com>
1379
1380 * gdbtypes.c (address_space_name_to_int): Update.
1381 (address_space_int_to_name): Update.
1382 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1383 multi-arch predicate.
1384 (address_class_name_to_type_flags): Ditto.
1385 * gdbarch.h, gdbarch.c: Re-generate.
1386
1387 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1388
1389 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1390
1391 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1392
1393 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1394
1395 * symtab.h (INIT_SAL): Delete macro.
1396 (init_sal): Export.
1397 * symtab.c (init_sal): New function.
1398
1399 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1400 to init_sal function call.
1401 (find_sal_from_funcs_and_line): Ditto.
1402 (all_sals_for_line): Ditto.
1403 * breakpoint.c (create_internal_breakpoint): Ditto.
1404 (create_fork_vfork_event_catchpoint): Ditto.
1405 (create_exec_event_catchpoint): Ditto.
1406 (parse_breakpoint_sals): Ditto.
1407 (watch_command_1): Ditto.
1408 (handle_gnu_4_16_catch_command): Ditto.
1409 (clear_command): Ditto.
1410 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1411 * infcmd.c (run_stack_dummy): Ditto.
1412 * infrun.c (process_event_stop_test): Ditto.
1413 (check_sigtramp2): Ditto.
1414 (step_over_function): Ditto.
1415 * linespec.c (decode_line_2): Ditto.
1416 (decode_line_1): Ditto.
1417 * source.c (line_info): Ditto.
1418 * symtab.c (find_pc_sect_line): Ditto.
1419
1420 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1421
1422 * dwarf2cfi.c (struct context)
1423 (struct context_reg): Moved to dwarf2cfi.h
1424 (context_alloc, frame_state_alloc, context_cpy):
1425 Made extern instead of static, removed prototypes.
1426 * dwarf2cfi.h (struct context)
1427 (struct context_reg): New, moved from dwarf2cfi.c
1428 (context_alloc, frame_state_alloc, context_cpy):
1429 New prototypes.
1430 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1431 Changed from static to extern.
1432 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1433 (LINUX_SIGCONTEXT_FP_OFFSET)
1434 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1435 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1436 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1437 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1438 set_gdbarch_*() calls now use x86-64 specific functions
1439 instead of DWARF2 CFI ones.
1440 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1441 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1442 (x86_64_init_extra_frame_info): New prototypes.
1443
1444 2002-10-23 David Carlton <carlton@math.stanford.edu>
1445
1446 * linespec.c: #include "parser-defs.h".
1447 Delete prototype for find_template_name_end.
1448 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1449
1450 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1451
1452 * NEWS: add recent mi fixes.
1453 * varobj.c (struct varobj): Add new "updated" flag.
1454 (new_variable): Default "updated" flag to 0.
1455 (varobj_set_value): Set "updated" flag to 1 if value
1456 changes.
1457 (varobj_update): Check varobj "updated" flag before
1458 comparing old and refreshed values. Fix for
1459 PR gdb/702.
1460
1461 2002-10-23 David Carlton <carlton@math.stanford.edu>
1462
1463 * parse.c (parse_exp_1): Use BLOCK_START.
1464 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1465 SYMBOL_BLOCK_VALUE.
1466 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1467
1468 2002-10-23 David Carlton <carlton@math.stanford.edu>
1469
1470 * symtab.c: Delete cplusplus_hint.
1471 Delete prototype for find_template_name_end.
1472
1473 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1474
1475 * symtab.h: Update comment.
1476
1477 2002-10-23 Michael Snyder <msnyder@redhat.com>
1478
1479 * printcmd.c (address_info): Restore quotes in output.
1480 * valops.c (value_of_local): Restore quotes in error message.
1481
1482 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1483
1484 * symtab.c (symbol_demangled_name): New function.
1485 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1486 turning most of it into a function.
1487 (symbol_demangled_name): Export.
1488
1489 2002-10-23 Michael Snyder <msnyder@redhat.com>
1490
1491 * valops.c (value_of_local): Restore quotes in error message.
1492
1493 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1494
1495 * symtab.c (symbol_init_language_specific): New function.
1496 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1497 turning most of it into a function.
1498 (symbol_init_language_specific): Export.
1499
1500 2002-10-23 David Carlton <carlton@math.stanford.edu>
1501
1502 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1503 (dwarf_attr_name): Ditto.
1504 (dwarf_type_encoding_name): Ditto.
1505 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1506 (process_die): Handle DW_TAG_namespace,
1507 DW_TAG_imported_declaration, DW_TAG_imported_module.
1508 (read_namespace): New function.
1509
1510 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1511
1512 * configure.in: Define NEW_PROC_API on Interix too.
1513 * configure: Regenerate.
1514
1515 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1516
1517 * configure: Regenerate using the proper version of autoconf.
1518
1519 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1520
1521 * findvar.c (read_var_value): Temporarily disable TLS code, until
1522 complete TLS support is added.
1523
1524 2002-10-21 Jim Blandy <jimb@redhat.com>
1525 Elena Zannoni <ezannoni@redhat.com>
1526
1527 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1528 for thread local storage locations.
1529 (struct symbol): Add objfile field.
1530 (SYMBOL_OBJFILE): Define.
1531 * dwarf2read.c (is_thread_local): New static variable.
1532 (new_symbol): If variable is in thread local fill in address class
1533 and objfile appropriately.
1534 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1535 stack operation.
1536 * printcmd.c (address_info): Print the information for thread
1537 local storage variable.
1538 * findvar.c (read_var_value): In case of thread local variable,
1539 defer to the target vector code to compute address.
1540
1541 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1542
1543 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1544 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1545
1546 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1547
1548 * symtab.h (address_class): Rename
1549 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1550 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1551 * printcmd.c (address_info): Ditto.
1552 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1553
1554 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1555
1556 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1557 DBREG_DRX macro to acces debug registers.
1558
1559 * Makefile.in (i386obsd-tdep.o): New target.
1560
1561 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1562 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1563
1564 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1565 * config/i386/obsd.mt: New file.
1566 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1567 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1568 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1569 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1570 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1571 * i386obsd-tdep.c: New file.
1572
1573 2002-10-19 Adam Fedor <fedor@gnu.org>
1574
1575 * objc-exp.y (name_not_typename): Fix invalid comment.
1576
1577 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1578
1579 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1580 to allocate partial syms and macro byte caches.
1581
1582 2002-10-18 David Carlton <carlton@math.stanford.edu>
1583
1584 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1585
1586 2002-10-18 Adam Fedor <fedor@gnu.org>
1587
1588 * stabsread.c (find_name_end): New function.
1589 (define_symbol): Use it.
1590
1591 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1592
1593 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1594 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1595 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1596 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1597
1598 2002-10-17 David Carlton <carlton@math.stanford.edu>
1599
1600 * symfile.h: Add opaque declaration for struct obstack.
1601 Declare obsavestring to take a const char *.
1602 * symfile.c (obsavestring): Make first argument a const char *.
1603
1604 2002-10-16 Adam Fedor <fedor@gnu.org>
1605
1606 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1607 names when matching breakpoints in current file.
1608
1609 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1610
1611 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1612 (read_tag_pointer_type): Add address class support.
1613 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1614 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1615 New methods.
1616 * gdbarch.h, gdbarch.c: Regenerate.
1617 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1618 (make_type_with_address_space, recursive_type_dump): Add address
1619 class support.
1620 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1621 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1622 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1623
1624 2002-10-16 Klee Dienes <kdienes@apple.com>
1625
1626 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1627 to get the last character of a char[] buffer, not
1628 name[sizeof(vptr_name)-1].
1629
1630 2002-10-14 Adam Fedor <fedor@gnu.org>
1631
1632 * symtab.h: New objc_specific struct.
1633 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1634 (SYMBOL_DEMANGLED_NAME): Likewise.
1635
1636 2002-10-14 Adam Fedor <fedor@gnu.org>
1637
1638 * symfile.c (init_filename_language_table): Add ObjC file extension.
1639
1640 2002-10-14 Adam Fedor <fedor@gnu.org>
1641
1642 * utils.c (puts_filtered_tabular): New function.
1643 (fprintf_symbol_filtered): Get ObjC demangled name.
1644 * defs.h (puts_filtered_tabular): Declared.
1645
1646 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1647
1648 * c-lang.h (c_type_print_varspec_prefix): Delete.
1649 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1650 ``need_post_space'' parameter. Adjust all callers.
1651
1652 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1653
1654 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1655 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1656 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1657 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1658
1659 2002-10-13 Adam Fedor <fedor@gnu.org>
1660
1661 * source.c (print_source_lines): Update comments.
1662
1663 2002-10-13 Adam Fedor <fedor@gnu.org>
1664
1665 * valops.c (value_of_local): New function.
1666 (value_of_this): Use it.
1667 * value.h (value_of_local): Declared.
1668
1669 2002-10-13 Adam Fedor <fedor@gnu.org>
1670
1671 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1672 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1673
1674 2002-10-12 Adam Fedor <fedor@gnu.org>
1675
1676 * language.c (binop_result_type): Add language_objc to case.
1677 (integral_type): Likewise.
1678 (character_type): Likewise.
1679 (string_type): Likewise.
1680 (boolean_type): Likewise.
1681 (structured_type): Likewise.
1682 (binop_type_check): Likewise.
1683
1684 2002-10-11 Adam Fedor <fedor@gnu.org>
1685
1686 * printcmd.c (address_info): Print 'self' for ObjC.
1687
1688 2002-10-11 Adam Fedor <fedor@gnu.org>
1689
1690 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1691 OP_SELF.
1692
1693 2002-10-11 Adam Fedor <fedor@gnu.org>
1694
1695 * language.h (CAST_IS_CONVERSION): Add language_objc.
1696
1697 2002-10-11 Adam Fedor <fedor@gnu.org>
1698
1699 * defs.h (enum language): Add language_objc.
1700
1701 2002-10-11 Klee Dienes <kdienes@apple.com>
1702
1703 * corefile.c (read_memory_typed_address): New function.
1704 * gdbcore.h (read_memory_typed_address): Add prototype.
1705 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1706 to read a value destined for a CORE_ADDR, not read_memory_integer.
1707 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1708 (f77_get_dynamic_lowerbound): Ditto.
1709
1710 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1711
1712 * utils.c (string_to_core_addr): After turning string into
1713 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1714 which will do necessary sign-extension, etc.
1715
1716 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1717
1718 * c-exp.y (THIS): Delete token and grammar rule.
1719 (yylex): Don't return THIS.
1720 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1721 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1722 * demangle.c (cplus_markers): Update comment. Put '$'
1723 first. Remove CPLUS_MARKER.
1724 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1725 * jv-exp.y (THIS): Delete token and grammar rule.
1726 (yylex): Don't return THIS.
1727 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1728 * objc-exp.y (THIS): Delete token and grammar rule.
1729 (yylex): Don't return THIS.
1730 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1731 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1732 (read_member_functions): Likewise for opname.
1733 (read_tilde_fields): Use is_cplus_marker.
1734
1735 * defs.h (CPLUS_MARKER): Don't define.
1736 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1737 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1738 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1739 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1740 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1741
1742 * config/i386/tm-i386v4.h: Delete file.
1743 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1744 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1745 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1746 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1747 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1748 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1749 * config/i386/i386v4.mt (TM_FILE): Likewise.
1750 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1751
1752 2002-10-10 Marko Mlinar <markom@opencores.org>
1753
1754 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1755 accidentially not commited 2002-10-09
1756 * gdbarch.h, gdbarch.c: Re-generate.
1757
1758 2002-10-09 Marko Mlinar <markom@opencores.org>
1759
1760 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1761 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1762 * gdbarch.h, gdbarch.c: Re-generate.
1763
1764 2002-10-08 Petr Sorfa <petrs@caldera.com>
1765
1766 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1767
1768 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1769 so we can work on more than one compilation unit at a time. This
1770 helps prepare GDB to handle inter-CU die references.
1771 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1772 the code to be defined before struct comp_unit_head.
1773 (comp_unit_head): Added new members - offset, cu_head,
1774 begin_die, next and dwarf2_abbrevs.
1775 (dwarf2_abbrevs): Removed single static var; now member of
1776 struct comp_unit_head.
1777 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1778 members.
1779 (psymtab_to_symtab_1): Changed to work with the new
1780 struct comp_unit_head.
1781 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1782 constructs the dwarf2_abbrevs[] inside the cu_header.
1783 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1784 dwarf2_abbrev table to clean up.
1785 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1786 handling of dwarf2_abbrevs inside the cu_header.
1787 (read_partial_die): Now supports the call to the new
1788 dwarf2_lookup_abbrev.
1789 (read_full_die): Now supports the call to the new
1790 dwarf2_lookup_abbrev.
1791
1792 2002-10-06 Christopher Faylor <cgf@redhat.com>
1793
1794 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1795 insure that shell variables, such as "transformed_name" are propagated
1796 to later shell statements in rule.
1797
1798 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1799
1800 * config/i386/nm-i386sco.h: Add protection against
1801 multiple-inclusion. Include "i386/nm-i386v.h".
1802 (REGISTER_U_ADDR): Remove define.
1803 (i386_register_u_addr): Remove prototype.
1804
1805 2002-10-04 Michael Snyder <msnyder@redhat.com>
1806
1807 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1808 before treating it as a single-step event.
1809
1810 2002-10-03 Adam Fedor <fedor@gnu.org>
1811
1812 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1813 (objc_demangle): Remove assignment in if statements, Replace
1814 free with xfree.
1815 (add_msglist): Likewise.
1816 (end_msglist): Likewise.
1817 (complare_selectors): Likewise.
1818 (selectors_info): Likewise.
1819 (compare_classes): Likewise.
1820 (classes_info): Likewise.
1821 (print_object_command): Likewise.
1822 (find_objc_msgcall_submethod): Replace PTR with void *.
1823 * objc-lang.h: Remove check for __STDC__.
1824
1825 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1826
1827 * ui-out.h (ui_out_field_fmt_int): New prototype.
1828 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1829 of field width and alignment.
1830 * stack.c (print_frame_info_base): When printing frame level, use
1831 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1832 PR gdb/192
1833
1834 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1835
1836 * MAINTAINERS: Add self to Write After Approval list.
1837
1838 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1839
1840 * infcmd.c (interrupt_target_command_wrapper): Delete.
1841 (interrupt_target_command): Make non static.
1842 (nofp_registers_info): Make static.
1843 * stack.c (return_command_wrapper): Delete.
1844 (return_command): Make non static.
1845
1846 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1847
1848 * event-top.c (gdb_setup_readline): New function. Code moved from
1849 _initialize_event_loop().
1850 (_initialize_event_loop): Call gdb_setup_readline().
1851
1852 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1853
1854 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1855 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1856 * gdbarch.h, gdbarch.c: Re-generate.
1857
1858 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1859
1860 Fix PR gdb/778
1861 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1862 before recursing.
1863 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1864 of fill_in_vptr_fieldno.
1865
1866 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1867
1868 * inferior.h (registers_info, stepi_command, nexti_command,
1869 continue_command, interrupt_target_command): Export from infcmd.c.
1870 * frame.h (args_info, selected_frame_level_changed_hook,
1871 return_command): Export from stack.c.
1872 * v850ice.c (stepi_command, nexti_command, continue_command): use
1873 prototypes from inferior.h.
1874 * tracepoint.c (registers_info, args_info, locals_info): Use
1875 prototypes from frame.h and inferior.h.
1876 * Makefile.in (mi-main.o): Add dependency on frame.h.
1877
1878 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1879
1880 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1881 value in register 3 adjusted by ppc_gp0_regnum.
1882
1883 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1884
1885 2002-10-02 Marko Mlinar <markom@opencores.org>
1886
1887 * MAINTAINERS: Add myself to the Write After Approval list.
1888
1889 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1890
1891 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1892 of the section for the N64 ABI, fixed.
1893
1894 * config/mips/tm-irix6.h: Include solib.h.
1895
1896 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1897
1898 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1899 GNU operators.
1900
1901 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1902
1903 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1904 and that "mi0" syntax has been removed.
1905
1906 2002-09-30 David Carlton <carlton@math.stanford.edu>
1907
1908 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1909 * ppc-sysv-tdep.c: #include "gdb_string.h".
1910 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1911 pacify GCC.
1912
1913 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1914
1915 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1916 "vrsave"'s register number.
1917
1918 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1919
1920 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1921 use frame_unwind_signed_register to obtain the PC.
1922 (mips_frame_chain): Handle a generic dummy frame.
1923 (mips_init_extra_frame_info): When a generic dummy frame, don't
1924 re-compute the frame base.
1925 (mips_pop_frame): Handle generic dummy frames.
1926 (mips_gdbarch_init): When generic dummy frames, set
1927 use_generic_dummy_frames, push_dummy_frame to
1928 generic_push_dummy_frame, pc_in_call_dummy to
1929 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1930 generic_save_dummy_frame_tos.
1931
1932 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1933
1934 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1935 against TOP when TOP was explictly set.
1936 (generic_push_dummy_frame): Set TOP to zero.
1937
1938 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1939
1940 * event-loop.c (start_event_loop): Rename variable 'result' to
1941 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1942
1943 2002-09-30 Keith Seitz <keiths@redhat.com>
1944
1945 * gdb-events.sh (selected_thread_changed): New event.
1946 * gdb-events.c: Regenerated.
1947 * gdb-events.h: Regenerated.
1948
1949 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1950
1951 * MAINTAINERS: Add self to Write After Approval list.
1952
1953 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1954
1955 * disasm.c: New file.
1956 * disasm.h: New file.
1957 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1958 (compare_lines): Ditto.
1959 (dump_insns): Ditto.
1960 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1961 argument.
1962 (do_assembly_only): Ditto.
1963 (do_disassembly): Renamed to gdb_disassembly and moved to
1964 disasm.c. Sdded uiout argument.
1965 * Makefile.in: Add new files. Reorder SFILES list. Update
1966 dependencies. Include libgdb.a later in the insight executable.
1967
1968 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1969
1970 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1971 bfd/elf64-alpha-fbsd.c.
1972
1973 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1974
1975 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1976 i386gnu-tdep.c.
1977
1978 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1979
1980 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1981 __FUNCTION__.
1982 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1983 function name.
1984 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1985 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1986 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1987 (S_msg_sig_post_reply): Ditto.
1988
1989 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1990
1991 * sh-tdep.c (sh_use_struct_convention): Use definition according
1992 to ABI.
1993 (sh_push_arguments): Store in register with correct endianess.
1994 (sh_default_store_return_value): Ditto.
1995 (sh_gdbarch_init): Set sizeof long double to 8.
1996
1997 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1998
1999 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2000 Fix some whitespace problems.
2001
2002 2002-09-27 David Carlton <carlton@math.stanford.edu>
2003
2004 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2005 (mcore-tdep.o): Ditto.
2006 (ns32k-tdep.o): Ditto.
2007 (ns32knbsd-tdep.o): Ditto.
2008 (sh3-rom.o): Ditto.
2009 (vax-tdep.o): Ditto.
2010 * cris-tdep.c: #include "gdb_string.h"
2011 * mcore-tdep.c: Ditto.
2012 * ns32k-tdep.c: Ditto.
2013 * ns32knbsd-tdep.c: Ditto.
2014 * sh3-rom.c: Ditto.
2015 * vax-tdep.c: Ditto.
2016
2017 2002-09-27 David Carlton <carlton@math.stanford.edu>
2018
2019 * config/djgpp/fnchange.lst: Add entries for
2020 gdb/testsuite/gdb.c++/m-static files.
2021
2022 2002-09-27 Jim Wilson <wilson@redhat.com>
2023
2024 * MAINTAINERS: Add myself to the Write After Approval list.
2025
2026 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2027
2028 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2029
2030
2031 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2032
2033 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2034 frame.
2035
2036 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2037
2038 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2039 (rs6000_struct_return_address): Delete variable.
2040 (rs6000_store_struct_return): Update.
2041 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2042 deprecated_extract_struct_value_address.
2043 (rs6000_frame_align): New function.
2044 (rs6000_gdbarch_init): Set frame_align.
2045
2046 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2047
2048 From Grace Sainsbury <graces@redhat.com>:
2049 * Makefile.in (gdbtk-main.o): New target.
2050 (gdb.o): New target.
2051 (main_h): Define.
2052 (main.o): Update dependencies.
2053 (gdb$(EXEEXT)): Add gdb.o.
2054 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2055 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2056 (SUBDIR_GDBTK_CLEAN): Set.
2057 (install-gdbtk): Install the insight binary.
2058 (uninstall-gdbtk): New target.
2059 (all-gdbtk, clean-gdbtk): New rule.
2060 * top.c (use_windows): Default to zero.
2061 * main.c: Include "main.h".
2062 (main): Delete.
2063 (struct captured_main_args): Delete.
2064 (gdb_main): New function.
2065 * main.h: New file.
2066 * gdb.c: New File.
2067
2068 2002-09-25 Andrew Cagney <cagney@redhat.com>
2069
2070 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2071 (frame_map_regnum_to_name): New function.
2072 (frame_map_name_to_regnum): New function.
2073 * frame.h (frame_map_name_to_regnum): Declare.
2074 (frame_map_regnum_to_name): Declare.
2075 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2076 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2077 * parse.c: Do not include "builtin-regs.h".
2078 (target_map_name_to_register): Delete function.
2079 (write_dollar_variable): Use frame_map_name_to_regnum.
2080 * parser-defs.h (target_map_name_to_register): Delete declaration.
2081 * expprint.c: Include "frame.h".
2082 (print_subexp): Use frame_map_regnum_to_name.
2083 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2084 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2085
2086 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2087
2088 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2089 wasn't saved, and the next innermost frame is a dummy, return the
2090 dummy frame's link register.
2091
2092 2002-09-24 Jim Blandy <jimb@redhat.com>
2093
2094 Fix from Paul Breed:
2095 * main.c (captured_main): Add a `break' after the case for 'b'.
2096
2097 2002-09-24 Keith Seitz <keiths@redhat.com>
2098
2099 * varobj.c (c_type_of_child): Use get_target_type instead
2100 of TYPE_TARGET_TYPE.
2101
2102 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2103
2104 * source.c (get_current_or_default_source_symtab_and_line): Remove
2105 function.
2106 (set_default_source_symtab_and_line): New function. Attempts to
2107 determine a source file to list lines from if one is not currently
2108 defined.
2109 (get_current_source_symtab_and_line): Initialize sal.pc and
2110 sal.end fields.
2111 (set_current_source_symtab_and_line): Mark argument as const.
2112 * source.h: Update declarations and comments.
2113 * linespec.c (decode_line_1): Replace call to removed routine above.
2114 * stack.c (print_frame_info_base): Ditto.
2115 * cli/cli-cmds.c (edit_command): Ditto.
2116 (list_command): Ditto.
2117
2118 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2119
2120 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2121 sal.pc and sal.end fields.
2122 (get_current_or_default_source_symtab_and_line): Ditto.
2123 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2124 so we do not cause a new source symtab to be searched for (reverting an
2125 unintentional change from the 2002-09-20 patch).
2126 * scm-lang.c (scm_unpac): Ditto.
2127
2128 2002-09-21 Andrew Cagney <cagney@redhat.com>
2129
2130 * complaints.c (symfile_explanations): Remove new-line from
2131 ``isolated_message''.
2132 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2133 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2134
2135 2002-09-20 Nick Clifton <nickc@redhat.com>
2136
2137 * NEWS: Announce that V850EA ISA is no longer supported.
2138 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2139
2140 2002-09-20 David Carlton <carlton@math.stanford.edu>
2141
2142 * Makefile.in (c-lang.o): Correct dependencies.
2143 (utils.o): Gather dependencies.
2144 (charset.o): Move.
2145 * c-lang.c: #include "gdb_string.h"
2146
2147 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2148
2149 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2150 * cli/cli-cmds.c (list_command): New function. Implements the new
2151 cli edit command.
2152 (_init_cli_cmds): Add new command definition.
2153 * gdb.1: Document edit command.
2154 * doc/gdb.texinfo: Document edit command.
2155
2156 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2157
2158 * source.c: Make global variables current_source_symtab and
2159 current_source_line static.
2160 (list_command): Moved to cli/cli-cmds.c.
2161 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2162 (get_first_line_listed): New accessor function.
2163 (get_lines_to_list): New accessor function.
2164 (get_current_source_symtab_and_line): New function. Retrieves the
2165 position in the source code that we consider current.
2166 (get_current_or_default_source_symtab_and_line): New function.
2167 Like the above but attempts to determine a default position if one
2168 is not currently defined.
2169 (set_current_source_symtab_and_line): New function. Sets the source
2170 code position considered current and returns the previously set one.
2171 (clear_current_source_symtab_and_line): Reset stored information about
2172 a current source line.
2173 (_initialize_source): Remove registration for the "list" command and
2174 its alias.
2175 * source.h: Add declarations for the new functions above.
2176 * symtab.h: Remove declarations for the global variables mentioned
2177 above.
2178 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2179 obtain current source line.
2180 * linespec.c (decode_line_1): Ditto.
2181 * macroscope.c (default_macro_scope): Ditto.
2182 * scm-lang.c (scm_unpac): Ditto.
2183 * stack.c (print_frame_info_base): Ditto.
2184 * symfile.c (clear_symtab_users): Ditto.
2185 * symtab.c (decode_line_spec): Ditto.
2186 * cli/cli-cmds.c (list_command): Moved here from source.c.
2187 (ambiguous_line_spec): Moved here from source.c.
2188 (_init_cli_cmds): Add definition for "list" and its alias.
2189 * Makefile.in: Update dependencies.
2190
2191 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2192
2193 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2194 with what gcc thinks is correct.
2195
2196 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2197
2198 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2199 multiple register push instruction.
2200
2201 2002-09-19 Jim Blandy <jimb@redhat.com>
2202
2203 Add support for distinct host and target character sets.
2204 * charset.c, charset.h: New files.
2205 * c-exp.y: #include "charset.h".
2206 (yylex): Convert character and string literals to the target
2207 character set, before returning them as the semantic value of the
2208 token.
2209 * c-lang.c: #include "charset.h".
2210 (c_emit_char): Use charset-specific methods to recognize
2211 characters with backslash escape forms, to decide which characters
2212 to print literally and which to print using numeric escape
2213 sequences, and to convert target characters to host characters
2214 before printing.
2215 * utils.c: #include "charset.h".
2216 (no_control_char_error): New function.
2217 (parse_escape): Use charset-specific methods to recognize
2218 backslash escapes, parse `control character' notation, and convert
2219 characters from the host character set to the target character set.
2220 * configure.in: Set the default host character set.
2221 Check where to find iconv, and what its argument types might be.
2222 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2223 * Makefile.in (SFILES): List charset.c.
2224 (COMMON_OBS): List charset.o.
2225 (charset.o): New rule.
2226 (charset_h): New header dependency variable.
2227 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2228 (LIBICONV): New variable, set by configure.
2229 (CLIBS): Include $(LIBICONV) here.
2230 * aclocal.m4, config.in, configure: Regenerated.
2231
2232 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2233
2234 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2235 bison 1.35 warning.
2236
2237 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2238
2239 * gdb_mbuild.sh: New file.
2240
2241 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2242
2243 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2244
2245 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2246
2247 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2248 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2249 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2250 valops.c, value.h: Revert previous change.
2251
2252 2002-09-18 Michael Snyder <msnyder@redhat.com>
2253
2254 Preliminary support for Objective-C:
2255 * defs.h (language_objc): New enum value.
2256 (puts_filtered_tabular): Declaration only, exported from utils.c.
2257 (skip_quoted): Delete, declared in completer.h.
2258 * c-exp.y: Include completer.h.
2259 * p-exp.y: Ditto.
2260 * jv-exp.y: Ditto.
2261 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2262 New operator enum values.
2263 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2264 * language.c (binop_result_type): Handle language_objc case.
2265 (integral_type, character_type, string_type, boolean_type,
2266 structured_type, binop_type_check): Ditto.
2267 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2268 (struct objc_specific): Add to general_symbol_info.
2269 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2270 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2271 * parser-defs.h (struct objc_class_str): New struct type.
2272 (start_msglist, end_msglist, add_msglist): Declaration only,
2273 exported from objc-lang.c.
2274 * value.h (value_of_local, value_nsstring,
2275 call_function_by_hand_expecting_type): Exported from valops.c.
2276 * valops.c (find_function_addr): Export.
2277 (call_function_by_hand_expecting_type): New function.
2278 (value_of_local): New function.
2279 * symfile.c (init_filename_language_table): Add ".m" extension
2280 for Objective-C.
2281 * utils.c (puts_filtered_tabular): New function.
2282 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2283 (set/show demangle): Extend help-string to refer to ObjC.
2284 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2285 * stabsread.c (symbol_reference_defined): Objective-C symbols
2286 may contain colons: make allowances when scanning stabs strings
2287 for colons.
2288 (objc_find_colon): New function.
2289 * printcmd.c (address_info): If language == objc then print
2290 "self" instead of "this".
2291 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2292 OP_NSSTRING, and OP_SELF.
2293 (prefixify_subexp): Ditto.
2294 * source.c (print_source_lines): Mention objc in comment.
2295 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2296 method names.
2297
2298 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2299
2300 * complaints.h: Update copyright.
2301 (struct complaints): Declare.
2302 (struct complaint): Make `message' constant.
2303 (internal_complaint): Declare.
2304 (complaint): Declare.
2305 (complaint_root): Delete declaration.
2306 (symfile_complaints): Delete declaration.
2307 (struct complaints): Add opaque declaration.
2308 (clear_complaints): Add a complaints parameter.
2309 * complaints.c: Update copyright.
2310 (enum complaint_series): Define.
2311 (complaint_root): Delete.
2312 (struct complaints): Define.
2313 (complaint_sentinel, symfile_complaint_book): New variables.
2314 (symfile_explanations, symfile_complaints): New variables.
2315 New variables.
2316 (get_complaints): New function.
2317 (vcomplaint): New function.
2318 (complaint): New function.
2319 (internal_complaint): New function.
2320 (complain): Call vcomplain with symfile_complaint.
2321 (clear_complaints): Rewrite.
2322 (_initialize_complaints): Use add_setshow_command.
2323 * Makefile.in (complaints.o): Update dependencies.
2324 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2325 to call to clear_complaints.
2326 (new_symfile_objfile, reread_symbols): Ditto.
2327 (oldsyms_complaint): Delete.
2328 (empty_symtab_complaint, unknown_option_complaint): Delete.
2329 (free_named_symtabs): Use complaint instead of complain.
2330
2331 2002-09-18 Michael Snyder <msnyder@redhat.com>
2332
2333 Contributed by Apple Computer, Inc. Merged with current sources
2334 by Adam Fedor <fedor@doc.com> [cagney].
2335
2336 * objc-lang.c: First clean-up round: comments, indentation.
2337 * objc-lang.h: Ditto.
2338 * objc-lang.y: Ditto.
2339
2340 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2341
2342 * maint.c (maintenance_internal_error): Print the parameter as the
2343 error message.
2344 (maintenance_internal_warning): New function.
2345 (_initialize_maint_cmds): Add command `maint internal-warning'.
2346
2347 * defs.h (internal_warning, internal_vwarning): Declare.
2348 * utils.c (struct internal_problem): Define.
2349 (internal_vproblem): New function.
2350 (internal_warning): New function.
2351 (internal_vwarning): New function.
2352 (internal_warning_problem, internal_error_problem): New variables.
2353 (internal_verror): Just call internal_vproblem.
2354
2355 2002-09-18 Michael Snyder <msnyder@redhat.com>
2356
2357 * objc-lang.c: New file, support for Objective-C.
2358 Preliminary check-in, not yet integrated into gdb.
2359 * objc-lang.h: New file.
2360 * objc-exp.y: New file.
2361
2362 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2363
2364 * infrun.c (signal_stop_update): Convert definition to ISO C.
2365 (signal_print_update): Ditto.
2366 (signal_pass_update): Ditto.
2367 * inflow.c (terminal_save_ours): Ditto.
2368
2369 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2370 comments.
2371
2372 * config/djgpp/fnchange.lst: Handle name clashes between
2373 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2374 bfd/coff-tic80.c.
2375
2376 * i386-linux-tdep.h: Fix tipo.
2377
2378 2002-09-18 Adam Fedor <fedor@gnu.org>
2379
2380 * MAINTAINERS: Add myself to the Write After Approval list.
2381
2382 2002-09-18 Jim Blandy <jimb@redhat.com>
2383
2384 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2385 texthigh and textlow to reader-specific structs caused
2386 objfile_relocate to miss them. This is fixable, but the work that
2387 the change was supposed to prepare GDB for never got done anyway.
2388
2389 2002-09-18 David Carlton <carlton@math.stanford.edu>
2390
2391 * MAINTAINERS: Alphabetize Write After Approval list.
2392
2393 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2394
2395 Fix PR gdb/709
2396 * values.c (value_static_field): Call read_var_value.
2397
2398 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2399
2400 * valops.c (hand_function_call): Align the initial stack pointer
2401 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2402 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2403 return value.
2404 * mips-tdep.c (mips_frame_align): New function.
2405 (mips_gdbarch_init): Set frame_align.
2406 * gdbarch.sh (FRAME_ALIGN): New method.
2407 * gdbarch.h, gdbarch.c: Re-generate.
2408
2409 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2410
2411 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2412 registers.
2413
2414 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2415
2416 * NEWS: Mention that MIPS $fp behavior changed.
2417 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2418 reference to FP_REGNUM.
2419 (mipsnbsd_cannot_store_register): Ditto.
2420 * mips-linux-nat.c: Update copyright.
2421 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2422 (mips_linux_cannot_store_register): Ditto.
2423 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2424 * config/mips/tm-mips.h: Update copyright.
2425 (FP_REGNUM): Delete macro.
2426 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2427 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2428 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2429 (mips_r3041_reg_names, mips_r3051_reg_names)
2430 (mips_r3081_reg_names): Replace "fp" with "".
2431 Fix PR gdb/480.
2432
2433 2002-09-17 Theodore A. Roth <troth@verinet.com>
2434
2435 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2436 generic_read_register_dummy() (PR gdb/703).
2437 (avr_push_return_address): #if 0 out unused vars.
2438 (avr_gdbarch_init): Enable use of avr_push_return_address().
2439
2440 2002-09-17 Michael Snyder <msnyder@redhat.com>
2441
2442 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2443 RTE will take care of it.
2444
2445 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2446
2447 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2448 invalid, return SP_REGNUM.
2449
2450 2002-09-17 Michael Snyder <msnyder@redhat.com>
2451
2452 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2453 point registers without sign extension.
2454
2455 2002-09-17 Andrew Cagney <cagney@redhat.com>
2456
2457 * blockframe.c (deprecated_read_register_dummy): Rename
2458 generic_read_register_dummy.
2459 * frame.c (frame_unwind_signed_register): New function.
2460 (frame_unwind_unsigned_register): New function.
2461 * frame.h (frame_unwind_signed_register): Declare.
2462 (frame_unwind_unsigned_register): Declare.
2463 (deprecated_read_register_dummy): Rename
2464 generic_read_register_dummy.
2465
2466 * h8300-tdep.c (h8300_frame_chain): Update.
2467 (h8300_frame_saved_pc): Update.
2468 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2469 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2470 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2471 (s390_frame_chain): Update.
2472 * v850-tdep.c (v850_find_callers_reg): Update.
2473 (v850_frame_saved_pc): Update.
2474 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2475 (m32r_find_callers_reg): Update.
2476 (m32r_frame_saved_pc): Update.
2477 * sh-tdep.c (sh_find_callers_reg): Update.
2478 (sh64_get_saved_pr): Update.
2479 (sh_init_extra_frame_info): Update.
2480 (sh_init_extra_frame_info): Update.
2481 (sh64_init_extra_frame_info): Update.
2482 (sh64_init_extra_frame_info): Update.
2483 * mcore-tdep.c (mcore_find_callers_reg): Update.
2484 (mcore_frame_saved_pc): Update.
2485 (mcore_init_extra_frame_info): Update.
2486 * i386-tdep.c (i386_frame_saved_pc): Update.
2487 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2488 (ia64_init_extra_frame_info): Update.
2489 (ia64_init_extra_frame_info): Update.
2490 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2491 * cris-tdep.c (cris_init_extra_frame_info): Update.
2492 * avr-tdep.c (avr_frame_chain): Update.
2493 (avr_init_extra_frame_info): Update.
2494 (avr_frame_saved_pc): Update.
2495 * arm-tdep.c (arm_find_callers_reg): Update.
2496 (arm_init_extra_frame_info): Update.
2497 (arm_frame_saved_pc): Update.
2498
2499 2002-09-17 Tom Tromey <tromey@redhat.com>
2500
2501 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2502 is "'".
2503
2504 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2505
2506 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2507 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2508 NEXT_PROLOGUE_INSN.
2509 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2510 NEXT_PROLOGUE_INSN.
2511
2512 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2513
2514 * osfsolib.c: Remove file, replaced by solib-osf.c.
2515 * Makefile.in: Remove compilation rules for osfsolib.c.
2516
2517 2002-09-16 David Carlton <carlton@math.stanford.edu>
2518
2519 * cp-valprint.c (cp_print_class_method): Correct args to
2520 check_stub_method_group.
2521
2522 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2523
2524 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2525 `set architecture'. Unify naming convention of functions.
2526 (h8300_skip_prologue): Improve prologue analysis.
2527 (h8300_push_arguments): Rewritten to more closely match GCC's
2528 bizarre argument-passing behavior, along with the comment describing
2529 said behavior.
2530 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2531 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2532 sim, remote-e7000.c, remote-hms.c and remote.c
2533
2534 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2535
2536 * i386-tdep.c (gdb_print_insn_i386): Removed.
2537 (i386_print_insn): New function.
2538 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2539 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2540 tm_print_insn_info.
2541
2542 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2543
2544 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2545 zero.
2546
2547 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2548
2549 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2550 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2551 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2552
2553 2002-09-13 Christopher Faylor <cgf@redhat.com>
2554
2555 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2556
2557 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2558
2559 * gdbtypes.c (check_stub_method): Make static.
2560 (check_stub_method_group): New function.
2561 * gdbtypes.h: Update prototypes.
2562 * cp-support.c: New file.
2563 * cp-support.h: New file.
2564
2565 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2566 (update_method_name_from_physname): New function.
2567 (read_member_functions): Correct method names for operators
2568 and v3 constructors/destructors. Separate v2 constructors and
2569 destructors.
2570 * Makefile.in (stabsread.o): Update dependencies.
2571 (SFILES): Add cp-support.c.
2572 (COMMON_OBS): Add cp-support.o.
2573 (cp_support_h, cp-support.o): Add.
2574
2575 * cp-valprint.c (cp_print_class_method): Call
2576 check_stub_method_group instead of check_stub_method. Remove
2577 extraneous QUITs.
2578 * p-valprint.c (pascal_object_print_class_method): Likewise.
2579 * valops.c (search_struct_method): Likewise.
2580 (find_method_list, value_struct_elt_for_reference): Likewise.
2581
2582 2002-09-13 Andrew Cagney <cagney@redhat.com>
2583
2584 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2585 * gdbarch.h, gdbarch.c: Regenerate.
2586
2587 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2588
2589 * frame.c (find_saved_register): Delete function.
2590 * frame.h (find_saved_register): Delete declaration.
2591 Fix PR gdb/631.
2592
2593 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2594
2595 * mips-tdep.c (read_next_frame_reg): Re-hack using
2596 frame_register_unwind.
2597
2598 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2599
2600 * mips-tdep.c (mips_get_saved_register): Re-hack using
2601 frame_register_unwind.
2602
2603 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2604
2605 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2606 vector. Will be useful for Interix.
2607 * gdbarch.h, gdbarch.c: Regenerate.
2608
2609 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2610 name of the malloc function by NAME_OF_MALLOC.
2611
2612 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2613
2614 * value.h (find_function_in_inferior): Add const keyword to
2615 one of the parameters. Allows us to invoke this function with
2616 a const char *.
2617 * valops.c (find_function_in_inferior): Likewise.
2618
2619 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2620
2621 * exec.c (xfer_memory): Fix compilation warning with old versions
2622 of GCC.
2623 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2624
2625 2002-09-12 David Carlton <carlton@math.stanford.edu>
2626
2627 * symtab.h: Run through gdb_indent.h.
2628 Add 2002 to Copyright year list.
2629
2630 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2631
2632 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2633 mach constants.
2634 * MAINTAINERS: Add myself to write after approval list.
2635
2636 2002-09-11 J. Brobecker <brobecker@gnat.com>
2637
2638 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2639
2640 2002-09-11 J. Brobecker <brobecker@gnat.com>
2641
2642 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2643 Interix.
2644
2645 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2646
2647 * procfs.c (do_detach): Clear current signal, not just fault.
2648 Corrects problem with breakpoint trap signal leaking to detached
2649 process on Tru64.
2650
2651 2002-09-10 Michael Snyder <msnyder@redhat.com>
2652
2653 * buildsym.c (finish_block): Protect against null pointer.
2654
2655 2002-09-10 Andrew Cagney <cagney@redhat.com>
2656
2657 * infcmd.c (default_print_registers_info): Send all output to
2658 ``file'' instead of ``gdb_stdout''.
2659
2660 2002-09-10 Michael Snyder <msnyder@redhat.com>
2661
2662 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2663 LONGEST, and use signed register read (addresses are sign-
2664 extended for mips).
2665
2666 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2667
2668 * event-loop.c (gdb_do_one_event): Make public.
2669 * event-loop.h (gdb_do_one_event): Declare.
2670
2671 2002-09-10 Jeff Law <law@redhat.com>
2672
2673 * infttrace.c (child_resume): Simplify and rework to avoid
2674 TT_PROC_CONTINUE.
2675
2676 2002-09-09 Fred Fish <fnf@intrinsity.com>
2677
2678 * printcmd.c (print_scalar_formatted): "len" is the number of
2679 target bytes, NOT the number of target bits.
2680
2681 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2682
2683 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2684 * top.c (init_main): Set rl_terminal_name.
2685
2686 2002-09-08 Aidan Skinner <aidan@velvet.net>
2687
2688 * ada-lang.c (ada_array_bound, ada_type_match,
2689 _initialize_ada_language): Fix K&R definitions.
2690 * ada-tasks.c (get_current_task): Fix K&R definitions.
2691 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2692
2693 2002-09-07 Christopher Faylor <cgf@redhat.com>
2694
2695 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2696 Add XP.
2697
2698 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2699
2700 * i386-tdep.c (i386_register_virtual_type,
2701 i386_register_convertible, i386_register_convert_to_virtual,
2702 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2703 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2704 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2705 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2706 Don't set push_arguments twice.
2707
2708 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2709 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2710 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2711 sigtramp_end to NULL.
2712 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2713 defines.
2714 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2715
2716 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2717 whitespace.
2718
2719 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2720 * gdbarch.h, gdbarch.c: Re-generate.
2721 * blockframe.c (find_pc_sect_partial_function): Convert to use
2722 SIGTRAMP_START_P predicate.
2723
2724 2002-09-05 Michael Snyder <msnyder@redhat.com>
2725
2726 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2727 generic_dummy_frame method and old method. Also distinguish
2728 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2729 (arm_extract_return_value): Use new regcache method.
2730
2731 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2732 adjustment that doesn't conform to the ABI.
2733 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2734 saved regcache, not from current regcache.
2735
2736 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2737
2738 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2739 * README: Update.
2740
2741 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2742
2743 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2744 if arm_apcs_32 is false.
2745
2746 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2747
2748 GDB 5.3 branch created.
2749
2750 2002-09-03 Theodore A. Roth <troth@verinet.com>
2751
2752 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2753 generic_unwind_get_saved_register.
2754
2755 2002-09-03 David Carlton <carlton@math.stanford.edu>
2756
2757 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2758 argument (PR gdb/653). Update call to smash_to_method_type.
2759 (read_structure_scope): Update call to dwarf2_add_member_fn.
2760
2761 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2762
2763 * x86-64-linux-tdep.c: Include gdb_string.h
2764 * x86-64-linux-nat.c: Ditto.
2765
2766 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2767
2768 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2769 when YYDEBUG is set to 1.
2770 * c-exp.y: Likewise.
2771 * f-exp.y: Likewise.
2772 * jv-exp.y: Likewise.
2773 * m2-exp.y: Likewise.
2774 * p-exp.y: Likewise.
2775
2776 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2777
2778 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2779 dependency list.
2780 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2781 solib_svr4_fetch_link_map_offsets to
2782 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2783 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2784 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2785 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2786 solib-svr4.o, and solib-legacy.o.
2787 * config/i386/tm-nbsd.h: Include solib.h.
2788
2789 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2790
2791 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2792 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2793 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2794 comment noting that this needs its own target configuration.
2795 * config/i386/nbsd.mt: New file.
2796 * config/i386/nbsdaout.mt: Remove.
2797 * config/i386/nbsdelf.mt: Ditto.
2798 * config/i386/tm-nbsdaout.h: Ditto.
2799
2800 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2801
2802 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2803 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2804 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2805 tdep->sigtramp_end.
2806 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2807 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2808 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2809
2810 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2811
2812 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2813 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2814 * i386-tdep.h (i386bsd_init_abi): New prototype.
2815 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2816 function declaration.
2817 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2818 for NetBSD-a.out or NetBSD-ELF.
2819 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2820 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2821 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2822 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2823 and nbsd-tdep.h.
2824 (i386nbsd_pc_in_sigtramp): New function.
2825 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2826 i386nbsd_pc_in_sigtramp.
2827 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2828 and i386nbsdelf_init_abi OS ABI handlers.
2829 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2830 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2831
2832 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2833
2834 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2835 registers if the target really has them.
2836
2837 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2838
2839 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2840 than nbsd-tdep.h.
2841
2842 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2843
2844 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2845 list.
2846 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2847 (alphanbsd_skip_sigtramp_frame): New functions.
2848 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2849 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2850 to alphanbsd_sigcontext_addr.
2851
2852 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2853
2854 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2855 list.
2856 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2857 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2858 nbsd_pc_in_sigtramp.
2859 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2860 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2861 * nbsd-tdep.c: Include gdb_string.h.
2862 (nbsd_pc_in_sigtramp): New function.
2863 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2864 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2865 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2866 ppcnbsd_pc_in_sigtramp.
2867 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2868 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2869 shnbsd_pc_in_sigtramp.
2870 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2871 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2872 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2873
2874 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2875
2876 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2877 watchpoints to NULL.
2878 (insert_breakpoints): set val field of watchpoints if NULL.
2879
2880
2881 2002-08-29 Jim Blandy <jimb@redhat.com>
2882
2883 * symtab.c (lookup_symbol_aux): In the cases where we find a
2884 minimal symbol of an appropriate name and use its address to
2885 select a symtab to read and search, use `name' (as passed to us)
2886 as the demangled name when searching the symtab's global and
2887 static blocks, not the minsym's name.
2888
2889 2002-08-29 Keith Seitz <keiths@redhat.com>
2890
2891 * stack.c (print_frame_info_base): Always set current_source_symtab
2892 and current_source_line.
2893
2894 2002-08-29 Donn Terry <donnte@microsoft.com>
2895
2896 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2897
2898 2002-08-28 Keith Seitz <keiths@redhat.com>
2899
2900 * stack.c (select_frame): Add FIXME concerning selected-frame
2901 events.
2902 (select_frame_command): Send selected-frame-level-changed
2903 event notification, but only if the level actually changed.
2904 (up_silently_base): Add selected-frame-level-changed event
2905 notification.
2906 (down_silently_base): Likewise.
2907
2908 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2909
2910 * Makefile.in: Update dependencies for all gdb/*.c files.
2911
2912 2002-08-27 Tom Tromey <tromey@redhat.com>
2913
2914 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2915 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2916 Update dependencies.
2917 * i387-tdep.c: Include gdb_string.h.
2918 * osabi.c: Likewise.
2919 * i386-linux-nat.c: Likewise.
2920 * lin-lwp.c: Likewise.
2921 * ax-gdb.c: Likewise.
2922 * signals/signals.c: Likewise.
2923 * jv-valprint.c: Likewise.
2924 * p-lang.c: Likewise.
2925 * c-valprint.c: Likewise.
2926 * cp-abi.c: Likewise.
2927
2928 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2929
2930 * cli/cli-script.h (copy_command_lines): Export.
2931 * breakpoint.c: Include cli/cli-script.h.
2932 * Makefile.in (breakpoint.o): Update dependencies.
2933
2934 2002-08-26 Michael Snyder <msnyder@redhat.com>
2935
2936 * breakpoint.c (insert_breakpoints): Protect all references
2937 to 'process_warning'. Shorten long lines.
2938
2939 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2940
2941 * cli/cli-script.c (copy_command_lines): New function.
2942 * defs.h (copy_command_lines): Export.
2943 * testsuite/gdb.base/commands.exp: New tests for commands
2944 attached to a temporary breakpoint, and for commands that
2945 delete the breakpoint they are attached to.
2946
2947 2002-08-26 Michael Snyder <msnyder@redhat.com>
2948
2949 * breakpoint.c (bpstat_stop_status): Instead of copying the
2950 pointer to the breakpoint commands struct, make a new copy
2951 of the struct and point to that.
2952 (bpstat_clear): Free the commands struct.
2953 (bpstat_clear_actions): Free the commands struct.
2954 (bpstat_do_actions): Free the command actions. Also execute
2955 the local cleanups, instead of deleting them.
2956 (delete_breakpoint): Leave the commands field of the bpstat
2957 chain alone -- it will be freed later.
2958
2959 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2960
2961 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2962 deleted in 2002-08-20 commit. This function is still used by
2963 ppc-linux-nat.c.
2964
2965 2002-08-26 Keith Seitz <keiths@redhat.com>
2966
2967 * gdb-events.sh: Add selected-frame-level-changed event.
2968 * gdb-events.c: Regenerated.
2969 * gdb-events.h: Regenerated.
2970
2971 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2972
2973 Fix PR gdb/393:
2974 * inflow.c (terminal_save_ours): New function to save terminal
2975 settings.
2976 * inferior.h (terminal_save_ours): Declare.
2977 * target.c (debug_to_terminal_save_ours): New function.
2978 (cleanup_target): Defaults to_terminal_save_ours.
2979 (update_current_target): Inherit to_terminal_save_ours.
2980 (setup_target_debug): Set to_terminal_save_ours.
2981 * target.h (target_terminal_save_ours): New to save terminal settings.
2982 (target_ops): New member to_terminal_save_ours.
2983 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2984 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2985 * inftarg.c (init_child_ops): Likewise.
2986 * m3-nat.c (init_m3_ops): Likewise.
2987 * procfs.c (init_procfs_ops): Likewise.
2988 * wince.c (init_child_ops): Likewise.
2989 * win32-nat.c (init_child_ops): Likewise.
2990 * sol-thread.c (init_sol_thread_ops): Likewise.
2991
2992 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2993
2994 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2995 use regcache_* functions.
2996 (i386_gdbarch_init): Set store_return_value instead of
2997 deprecated_store_return_value.
2998
2999 * regcache.c (regcache_raw_write_signed,
3000 regcache_raw_write_unsigned): New functions.
3001 * regcache.h (regcache_raw_write_signed,
3002 regcache_raw_write_unsigned): New prototypes.
3003
3004 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3005
3006 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3007 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3008 source file dependencies. Cleanup corresponding generator rules.
3009
3010 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3011
3012 * regcache.h (register_offset_hack): Declare.
3013 (regcache_cooked_read_using_offset_hack): Declare.
3014 (regcache_cooked_write_using_offset_hack): Declare.
3015
3016 * regcache.c (register_offset_hack): New function.
3017 (regcache_cooked_read_using_offset_hack): New function.
3018 (regcache_cooked_write_using_offset_hack): New function.
3019 (regcache_dump): Check that the registers, according to their
3020 offset, are packed hard against each other.
3021 (cooked_xfer_using_offset_hack): New function.
3022
3023 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3024
3025 * regcache.c (struct regcache_descr): Add field register_type.
3026 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3027 in as a parameter
3028 (init_regcache_descr): Initialize register_type. Pass the descr
3029 to init_legacy_regcache_descr. Use register_type instead of
3030 REGISTER_VIRTUAL_TYPE.
3031 (register_type): New function.
3032 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3033 * regcache.h (register_type): Declare.
3034
3035 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3036
3037 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3038 instead of deprecated_store_return_value. Fix fallout from
3039 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3040
3041 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3042
3043 * regcache.c (max_register_size): New function.
3044 (init_legacy_regcache_descr): Ensure that max_register_size is
3045 large enough for REGISTER_VIRTUAL_SIZE.
3046 * regcache.h (max_register_size): Declare.
3047
3048 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3049
3050 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3051 store_return_value.
3052 (e500_extract_return_value): Change type of valbuf pointer to
3053 void.
3054
3055 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3056
3057 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3058 workaround.
3059
3060 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3061 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3062 long long) to prevent compiler warning on 64-bit systems.
3063
3064 2002-08-23 Andrew Cagney <cagney@redhat.com>
3065
3066 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3067 (DEPRECATED_STORE_RETURN_VALUE): New method.
3068 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3069 * gdbarch.h, gdbarch.c: Re-generate.
3070
3071 * values.c (set_return_value): Pass current_regcache to
3072 STORE_RETURN_VALUE.
3073 * arch-utils.h (legacy_store_return_value): Declare.
3074 * arch-utils.c (legacy_store_return_value): New function.
3075 (legacy_extract_return_value): Update parameters.
3076
3077 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3078 STORE_RETURN_VALUE.
3079 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3080 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3081 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3082 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3083 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3084 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3085 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3086 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3087 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3088 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3089
3090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3091 * i386-tdep.c (i386_extract_return_value): Update.
3092 * arch-utils.c (legacy_extract_return_value): Update.
3093 * frv-tdep.c (frv_gdbarch_init): Update.
3094 * cris-tdep.c (cris_gdbarch_init): Update.
3095 * d10v-tdep.c (d10v_gdbarch_init): Update.
3096 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3097 * m68k-tdep.c (m68k_gdbarch_init): Update.
3098 * mcore-tdep.c (mcore_gdbarch_init): Update.
3099 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3100 * s390-tdep.c (s390_gdbarch_init): Update.
3101 * sparc-tdep.c (sparc_gdbarch_init): Update.
3102 * sh-tdep.c (sh_gdbarch_init): Update.
3103 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3104 * v850-tdep.c (v850_gdbarch_init): Update.
3105 * avr-tdep.c (avr_gdbarch_init): Update.
3106 * ia64-tdep.c (ia64_gdbarch_init): Update.
3107 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3108 * vax-tdep.c (vax_gdbarch_init): Update.
3109 * alpha-tdep.c (alpha_gdbarch_init): Update.
3110 * arm-tdep.c (arm_gdbarch_init): Update.
3111 * mips-tdep.c (mips_gdbarch_init): Update.
3112 * i386-tdep.c (i386_gdbarch_init): Update.
3113
3114 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3115
3116 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3117 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3118
3119 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3120
3121 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3122 problems.
3123
3124 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3125
3126 * infrun.c (handle_inferior_event): Move a comment outside of a
3127 function call, in order to avoid indent reformatting this part
3128 of the code in an unreadable way.
3129
3130 2002-08-23 Grace Sainsbury <graces@redhat.com>
3131
3132 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3133 when breakpoints fail. Move general breakpoint error messages to
3134 insert_breakpoints.
3135 * breakpoint.c (insert_breakpoints): Change warnings when
3136 breakpoints are nto inserted to specify the type. Remove call to
3137 memory_error when hardware breakpoints can't be inserted. Remove
3138 multiple calls to warning so all messages are sent to the user at
3139 once.
3140 (delete_breakpoints): Make insert error messsages more explicit.
3141
3142 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3143
3144 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3145 gdbserver/ChangeLog.
3146
3147 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3148
3149 * i386-tdep.c: Include "objfiles.h".
3150 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3151 skip_trampoline_code.
3152 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3153 (CPLUS_MARKER): Define to '.'.
3154
3155 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3156 member.
3157 (linux_corefile_thread_callback): Increase args->num_notes.
3158 (linux_make_note_section): Initialize thread_args.num_notes, and
3159 use it to determine whether notes for any threads were created.
3160
3161 2002-08-23 Donn Terry <donnte@microsoft.com>
3162
3163 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3164 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3165 and PCUNKILL.
3166 (write_with_trace): Conditionalize out the switch branch handling
3167 PCSHOLD if the corresponding macro is not defined. Likewise for
3168 PRSABORT and PRSTOP.
3169 This change will be needed by the Interix port.
3170
3171 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3172
3173 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3174 write_register wherever possible instead of manipulating the
3175 register bytes directly.
3176 Assign VALUE_CONTENTS to a variable and use that.
3177 The GPR numbers are now dependent on the architecture.
3178
3179 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3180
3181 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3182 ev_offset fields.
3183 (skip_prologue): Add support for BookE/e500 instructions.
3184 (e500_extract_return_value): New function.
3185 (frame_get_saved_regs): Add support for saving ev registers and
3186 pseudo gpr's.
3187 (e500_store_return_value): New function.
3188 (rs6000_gdbarch_init): Move up default intializations of
3189 deprecated_extract_return_value and store_return_value. Overwrite
3190 init of store_return_value with e500 specific version.
3191 Set extract_return_value for e500.
3192
3193 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3194
3195 * blockframe.c (generic_call_dummy_register_unwind): Use
3196 regcache_cooked_read to catch cases in which the variable is
3197 stored in a pseudo register.
3198
3199 2002-08-22 Andrew Cagney <cagney@redhat.com>
3200
3201 * NEWS: Mention that the i960 has been made obsolete.
3202 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3203 i960-tdep.c
3204 (remote-nrom.o): Obsolete target.
3205 (remote-nindy.o, i960-tdep.o): Ditto.
3206 * remote-nrom.c: Make file obsolete.
3207 * remote-nindy.c, remote-vx960.c: Ditto.
3208 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3209 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3210 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3211 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3212 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3213 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3214 i960-*-vxworks* obsolete.
3215 * MAINTAINERS: Note that the i960 is obsolete.
3216
3217 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3218
3219 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3220 detach to allow reinitialization.
3221
3222 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3223
3224 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3225 attempt).
3226
3227 2002-08-22 Jim Blandy <jimb@redhat.com>
3228
3229 * coffread.c (coff_symfile_read): Don't try to read the line
3230 number table from disk if the image file doesn't have a symbol
3231 table; we'll never actually look at the info anyway, and Windows
3232 ships DLL's with bogus file offsets for the line number data.
3233
3234 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3235
3236 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3237 an e500 executable.
3238
3239 2002-08-21 Michael Snyder <msnyder@redhat.com>
3240
3241 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3242 (MSYMBOL_SIZE): Replace macro with function.
3243 (DEFAULT_MIPS_TYPE): Delete unused macro.
3244 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3245 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3246
3247 2002-08-21 Jim Blandy <jimb@redhat.com>
3248
3249 * valops.c (value_cast): Simplify and correct logic for doing a
3250 static cast from a pointer to a base class to a pointer to a
3251 derived class.
3252
3253 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3254
3255 * infcmd.c (default_print_registers_info): Replace
3256 do_registers_info.
3257 (registers_info): Use gdbarch_print_registers_info instead of
3258 DO_REGISTERS_INFO.
3259 * inferior.h (default_print_registers_info): Replace
3260 do_registers_info.
3261 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3262 (DO_REGISTERS_INFO): Change to a predicate function.
3263 * gdbarch.h, gdbarch.c: Regenerate.
3264
3265 2002-08-21 Keith Seitz <keiths@redhat.com>
3266
3267 * gdb-events.sh: Add target-changed event.
3268 * gdb-events.c: Regenerated.
3269 * gdb-events.c: Regenerated.
3270 * valops.c (value_assign): Add target-changed event notification
3271 to inlval_register, lval_memory, and lval_reg_frame_relative.
3272
3273 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3274
3275 * NEWS: Add an entry regarding the improvement of the next/step
3276 operation on Alpha Tru64 multi-processor machines.
3277
3278 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3279
3280 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3281 directores.
3282 * Makefile.in: Update all _h macro definitions.
3283 * Makefile.in (install-gdbtk): Move to install section.
3284 (rdi-share/libangsd.a): Move to end of file.
3285
3286 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3287
3288 * frame.c (frame_register_unwind): When a register, set addrp to
3289 the register's byte.
3290
3291 2002-08-20 Michael Snyder <msnyder@redhat.com>
3292
3293 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3294 used locally, so move them from the target machine header to here.
3295 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3296 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3297 Make static.
3298 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3299
3300 2002-08-20 Andrew Cagney <cagney@redhat.com>
3301
3302 * NEWS: Mention that the Apollo line was made obsolete.
3303 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3304 m68*-hp-hpux* obsolete.
3305 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3306 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3307 * buildsym.c (make_blockvector): Make static.
3308 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3309 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3310 (ALLDEPFILES): Remove dstread.c.
3311 (dstread.o): Obsolete make rule.
3312 * dstread.c: Makefile obsolete.
3313 * dst.h: Ditto.
3314 * config/m68k/hp300hpux.mt: Ditto.
3315 * config/m68k/hp300hpux.mh: Ditto.
3316 * config/m68k/hp300bsd.mt: Ditto.
3317 * config/m68k/hp300bsd.mh: Ditto.
3318 * config/m68k/apollo68b.mt: Ditto.
3319 * config/m68k/apollo68v.mh: Ditto.
3320 * config/m68k/apollo68b.mh: Ditto.
3321
3322 2002-08-20 Michael Snyder <msnyder@redhat.com>
3323
3324 * mips-tdep.c (mips_in_return_stub): Make static.
3325 (mips_gdbarch_init): Set in_solib_return_trampoline.
3326 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3327
3328 2002-08-20 Michael Snyder <msnyder@redhat.com>
3329
3330 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3331 * gdbarch.c, gdbarch.h: Regenerate.
3332 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3333 Add.
3334 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3335
3336 2002-08-20 Michael Snyder <msnyder@redhat.com>
3337
3338 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3339 (mips_gdbarch_init): Set skip_trampoline_code,
3340 in_solib_call_trampoline.
3341 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3342 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3343
3344 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3345
3346 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3347
3348 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3349 vector type for ev registers.
3350 (e500_pseudo_register_read): New function.
3351 (e500_pseudo_register_write): New function.
3352 (e500_dwarf2_reg_to_regnum): New function.
3353 (PPC_UISA_NOFP_SPRS): New macro.
3354 (PPC_EV_REGS): New macro.
3355 (PPC_GPRS_PSEUDO_REGS): New macro.
3356 (registers_e500): New register set for e500.
3357 (variants): Add e500 variant.
3358 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3359 before setting architectural dependent variations. Initialize ev
3360 registers numbers. Add case for e500 architecture. Set the
3361 number of pseudo registers.
3362
3363 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3364
3365 * rs6000-tdep.c: Clean up comments.
3366
3367 2002-08-20 Andrew Cagney <cagney@redhat.com>
3368
3369 * h8300-tdep.c: Re-indent file.
3370
3371 2002-08-20 Jim Blandy <jimb@redhat.com>
3372
3373 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3374 default for this.
3375
3376 2002-08-20 Keith Seitz <keiths@redhat.com>
3377
3378 * breakpoints.c (watch_command_1): Use internal breakpoint
3379 when setting a watchpoint_scope breakpoint.
3380
3381 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3382
3383 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3384 (build_builtin_type_vec64i): Ditto.
3385 (build_builtin_type_vec128): Ditto.
3386 (build_builtin_type_vec128i): Ditto.
3387
3388 2002-08-19 Michael Snyder <msnyder@redhat.com>
3389
3390 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3391 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3392 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3393 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3394 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3395 CALL_DUMMY_ADDRESS): Delete.
3396 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3397 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3398 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3399 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3400 push_return_address.
3401 (mips_register_raw_size, mips_eabi_use_struct_convention,
3402 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3403 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3404 mips_init_extra_frame_info, mips_eabi_push_arguments,
3405 mips_n32n64_push_arguments, mips_push_return_address,
3406 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3407 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3408
3409 2002-08-19 Michael Snyder <msnyder@redhat.com>
3410
3411 * mips-tdep.c (mips_frame_num_args): New function.
3412 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3413 frame_saved_pc, frame_args_address, frame_locals_address,
3414 frame_num_args, and frame_args_skip.
3415 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3416 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3417 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3418 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3419
3420 2002-08-20 Michael Snyder <msnyder@redhat.com>
3421
3422 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3423 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3424 * mips-tdep.c (mips_store_struct_return): New function.
3425 (mips_extract_struct_value_address): New function.
3426 (mips_gdbarch_init): Set store_struct_return and
3427 extract_struct_value_address.
3428
3429 2002-08-20 David Carlton <carlton@math.stanford.edu>
3430
3431 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3432 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3433 (read_file_scope): Check that line_header is nonzero before
3434 decoding macro information.
3435
3436 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3437
3438 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3439 flag the general-purpose registers as floating-point on targets
3440 that don't support the floating-point registers.
3441
3442 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3443
3444 * rs6000-tdep.c (altivec_register_p): Delete.
3445 (rs6000_do_altivec_registers): Delete.
3446 (rs6000_altivec_registers_info): Delete.
3447 (rs6000_do_registers_info): Delete.
3448 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3449 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3450
3451 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3452
3453 * infcmd.c (do_registers_info): Print vector registers in hex
3454 format only.
3455 (print_vector_info): Check that printing registers
3456 makes sense.
3457 (print_float_info): Ditto.
3458
3459 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3460
3461 * mips-tdep.c (mips_gdbarch_init): Update.
3462 (mips_o32_extract_return_value): Rewrite.
3463 (mips_o32_store_return_value): Rewrite.
3464 (mips_o32_xfer_return_value): New function.
3465 (mips_xfer_register): Tweak debug print message. Allow for
3466 buf_offset when dumping the value transfered.
3467
3468 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3469
3470 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3471 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3472 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3473 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3474 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3475
3476 2002-08-14 Michael Snyder <msnyder@redhat.com>
3477
3478 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3479
3480 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3481
3482 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3483 register.
3484 (P): New macro to define a register as a pseudo register.
3485 (R, R4, R8, R16, FR32, R64, R0): Updated.
3486 (struct variant): Add new fields for number of pseudo registers
3487 and number of total registers.
3488 (tot_num_registers): New macro replacing....
3489 (num_registers): ...deleted macro.
3490 (num_registers): New function.
3491 (num_pseudo_registers): New function.
3492 (variants): Update all variants to intialize new fields correctly.
3493 Postpone initialization of number of pseudo regs and real regs.
3494 (init_variants): New function.
3495 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3496 registers offsets.
3497
3498 2002-08-19 David Carlton <carlton@math.stanford.edu>
3499
3500 * valops.c (search_struct_field): Change error message to treat
3501 return value of 0 from value_static_field as meaning that field is
3502 optimized out.
3503 (value_struct_elt_for_reference): Ditto.
3504 * values.c (value_static_field): Treat an unresolved location the
3505 same as a nonexistent symbol. Fix PR gdb/635.
3506 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3507 enclosed. Fix PR gdb/574.
3508 * MAINTAINERS: Add self to Write After Approval list.
3509
3510 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3511
3512 * mips-tdep.c (mips_xfer_register): New function.
3513 (mips_n32n64_extract_return_value): Rewrite.
3514 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3515 instead of deprecated_extract_return_value.
3516
3517 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3518
3519 * rs6000-tdep.c (TDEP): Delete macro.
3520 (branch_dest): Replace use of TDEP macro with its body.
3521 (rs6000_pop_frame): Ditto.
3522 (rs6000_push_arguments): Ditto.
3523 (rs6000_skip_trampoline_code): Ditto.
3524 (rs6000_frame_saved_pc): Ditto.
3525 (rs6000_frame_chain): Ditto.
3526 (rs6000_register_name): Ditto.
3527 (rs6000_register_byte): Ditto.
3528 (rs6000_register_raw_size): Ditto.
3529 (rs6000_register_virtual_type): Ditto.
3530 (rs6000_register_convertible): Ditto.
3531 (rs6000_convert_from_func_ptr_addr): Ditto.
3532
3533 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3534
3535 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3536 conditionally.
3537 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3538 MIPS_LINUX_JB_ELEMENT_SIZE.
3539 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3540 for MAX_REGISTER_RAW_SIZE arrays.
3541 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3542 MIPS_LINUX_JB_ELEMENT_SIZE.
3543
3544 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3545
3546 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3547
3548 2002-08-19 Aidan Skinner <aidan@velvet.net>
3549
3550 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3551 ada-valprint.c ada-tasks.c.
3552 (YYFILES): Add ada-exp.y.
3553 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3554 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3555 (ada-exp.tab.o): New target.
3556
3557 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3558
3559 * regcache.c (regcache_xfer_part): New function.
3560 (regcache_raw_read_part): New function.
3561 (regcache_raw_write_part): New function.
3562 (regcache_cooked_read_part): New function.
3563 (regcache_cooked_write_part): New function.
3564 * regcache.h (regcache_raw_read_part): Declare.
3565 (regcache_raw_write_part): Declare.
3566 (regcache_cooked_read_part): Declare.
3567 (regcache_cooked_write_part): Declare.
3568
3569 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3570
3571 * remote.c (remote_open_1): Add async_p.
3572 (remote_async_open_1): Delete.
3573 (open_remote_target): Delete.
3574 (remote_open, extended_remote_open): Update calls to remote_open_1.
3575 (remote_async_open, extended_remote_async_open): Call
3576 remote_open_1 instead of remote_async_open_1.
3577
3578 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3579
3580 * blockframe.c: Fix a few coding standard violations.
3581
3582 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3583
3584 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3585 here from ...
3586 * config/i386/tm-i386sco5.h: ... here. File removed.
3587 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3588
3589 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3590 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3591 (TM_FILE): Set to tm-i386.h.
3592 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3593 * config/i386/tm-i386v.h: Remove file.
3594 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3595 instead of "i386/tm-i386v.h".
3596 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3597 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3598 "i386/tm-i386v.h".
3599 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3600 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3601 "i386/tm-i386.h".
3602
3603 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3604
3605 * config/i386/nm-i386v.h: Add protection against
3606 multiple-inclusion.
3607 (i386_register_u_addr): Remove prototype.
3608 (register_u_addr): New prototype.
3609 (REGISTER_U_ADDR): Redefine accordingly.
3610 * i386v-nat.c: Improve several comments.
3611 (i386_register_u_addr): Change signature and rename to
3612 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3613 ubase variable.
3614
3615 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3616
3617 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3618 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3619 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3620 deprecated_extract_return_value.
3621 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3622 rename mips_o32o64_push_arguments.
3623 (mips_gdbarch_init): Update.
3624 (mips_extract_return_value): Delete.
3625 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3626 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3627 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3628 (mips_n32n64_extract_return_value): Clone
3629 mips_extract_return_value.
3630 (mips_store_return_value): Delete.
3631 (mips_o32_store_return_value): Clone mips_store_return_value.
3632 (mips_o64_store_return_value): Clone mips_store_return_value.
3633 (mips_eabi_store_return_value): Clone mips_store_return_value.
3634 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3635
3636 2002-08-18 Aidan Skinner <aidan@velvet.net>
3637
3638 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3639 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3640
3641 2002-08-18 Aidan Skinner <aidan@velvet.net>
3642
3643 * ada-lang.c: Run through gdb_indent.sh.
3644 * ada-lang.h: Run through gdb_indent.sh.
3645 * ada-tasks.c: Run through gdb_indent.sh.
3646 * ada-typeprint.c: Run through gdb_indent.sh.
3647 * ada-valprint.c: Run through gdb_indent.sh.
3648
3649 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3650
3651 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3652 ABI.
3653
3654 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3655
3656 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3657
3658 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3659 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3660
3661 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3662 write_register_gen instead of write_register_bytes.
3663
3664 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3665 i[3456]-*-osf1mk* configurations have been made obsolete.
3666 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3667 i[3456]86-*-osf1mk* hosts obsolete.
3668 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3669 targets obsolete.
3670 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3671 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3672 config/i386/i386m3.mt, config/i386/nm-m3.h,
3673 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3674 config/i386/i386mk.mh, config/i386/i386mk.mt,
3675 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3676 obsolete.
3677 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3678 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3679 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3680
3681 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3682
3683 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3684 (hppa_value_returned_from_stack): Declare.
3685 (hppa_extract_return_value): Declare.
3686 * config/pa/hppa.mt: New file.
3687 * configure.tgt: Recognize hppa*-*-*.
3688 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3689
3690 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3691
3692 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3693 comment.
3694
3695 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3696
3697 * top.c (gdb_rl_operate_and_get_next): Make sure
3698 operate-and-get-next functions correctly even when the history
3699 list is completely filled.
3700
3701 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3702
3703 * MAINTAINERS (Target Instruction Set Architectures): Rename
3704 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3705 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3706 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3707 already listed under Host/Native.
3708
3709 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3710 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3711 mips*-*-*.
3712
3713 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3714
3715 * config/ia64/ia64.mt: New file.
3716 * config/alpha/alpha.mt: New file.
3717 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3718 ia64-linux-gnu. Mention that ia64-elf is broken.
3719 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3720
3721 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3722
3723 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3724 generic_func_frame_valid instead of func_frame_valid.
3725
3726 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3727
3728 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3729 procfs appears to be broken when debugging on multi-processor
3730 machines. So enable software single stepping in order to avoid
3731 using the procfs interface to do next/step operations, using
3732 internal breakpoints instead.
3733
3734 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3735 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3736 make this pc address equal to the value it would have if the
3737 system stepping capability was used. Also set a new flag used
3738 to ensure that we don't readjust the PC one more time later.
3739
3740 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3741 address by DECR_PC_AFTER_BREAK when software single step is
3742 in use for this architecture, as this has already been taken
3743 care of in handle_inferior_event().
3744
3745 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3746
3747 * infrun.c (handle_inferior_event): Minor reformatting, to make
3748 a rather long condition expression easier to read.
3749
3750 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3751
3752 * Makefile.in (gdbtk.o): Move to end of file.
3753 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3754 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3755 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3756 (gdbtk-wrapper.o, gdbres.o): Ditto.
3757
3758 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3759
3760 * Makefile.in (copying.o): Separate out compile rule.
3761 (hpux-thread.o, procfs.o, signals.o): Ditto.
3762 (v850ice.o, z8k-tdep.o): Ditto.
3763 (tui-file.o): Move to TUI section.
3764 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3765 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3766
3767 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3768
3769 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3770 skip_trampoline_code, for better namespace-proofing.
3771
3772 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3773
3774 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3775
3776 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3777
3778 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3779
3780 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3781 signal, check whether we hit a breakpoint before checking for a
3782 single step breakpoint. Otherwise, GDB fails to notice that a
3783 breakpoint has been hit when stepping onto a breakpoint.
3784
3785 2002-08-16 Keith Seitz <keiths@redhat.com>
3786
3787 * gdb-events.sh (clear_gdb_event_hooks): New function.
3788 * gdb-events.c: Regenerate.
3789 * gdb-events.h: Regenerate.
3790
3791 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3792
3793 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3794 not_a_sw_breakpoint.
3795 * breakpoint.h (bpstat_stop_status): Add parameter names.
3796
3797 2002-08-16 Grace Sainsbury <graces@redhat.com>
3798
3799 * remote.c (remote_insert_hw_breakpoint)
3800 (remote_remove_hw_breakpoint): Fix calculation of length field
3801 for Z-packet.
3802
3803 2002-08-15 Michael Snyder <msnyder@redhat.com>
3804
3805 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3806 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3807 (supply_fpregset): Ditto.
3808
3809 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3810 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3811 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3812 (TARGET_READ_SP): Delete.
3813 (DO_REGISTERS_INFO): Delete.
3814 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3815 Delete.
3816 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3817 from macros to functions.
3818
3819 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3820 (mips_register_convertible, mips_register_convert_to_virtual,
3821 mips_register_convert_to_raw): Make static.
3822 (mips_read_sp): New function.
3823 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3824 (mips_do_registers_info): Make static.
3825 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3826 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3827 (mips_register_convert_from_type, mips_register_convert_to_type):
3828 New functions.
3829 (mips_gdbarch_init): Set up function_start_offset,
3830 register_virtual_size, pc_in_sigtramp.
3831
3832 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3833
3834 * infcmd.c (vector_info): New function.
3835 (_initialize_infcmd): Add command "info vector".
3836 (print_vector_info): New function.
3837
3838 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3839 * gdbarch.h, gdbarch.c: Regenerate.
3840
3841 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3842
3843 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3844 ``print_all''. Only print vector registers when ``print_all''.
3845
3846 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3847
3848 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3849 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3850
3851 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3852 Add `args' parameter.
3853 * gdbarch.h, gdbarch.c: Regenerate.
3854
3855 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3856
3857 * infcmd.c (float_info): Call print_float_info.
3858 (print_float_info): New function. By default, print the
3859 floating-point registers.
3860
3861 * arch-utils.h (default_print_float_info): Delete declaration.
3862 * arch-utils.c (default_print_float_info): Delete function.
3863
3864 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3865
3866 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3867 out define.
3868
3869 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3870 FRAME.
3871
3872 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3873 * configure.host: Make i[3456]86-*-aix host obsolete.
3874 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3875 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3876 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3877 config/i386/xm-i386aix.h: Make files obsolete.
3878 * i386aix-nat.c: Make file obsolete.
3879 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3880 (i386aix-nat.o): Make target obsolete.
3881
3882 * config/i386/nm-gnu.h: Removed.
3883 * config/i386/nm-i386gnu.h: New file.
3884 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3885 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3886 Moved here from ...
3887 * config/i386/tm-i386gnu.h: ... here. Removed.
3888 * config/i386/xm-i386gnu.h: Removed.
3889 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3890 (NAT_FILE): Set to nm-i386gnu.h.
3891 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3892 * i386-tdep.c: New file.
3893 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3894 (i386gnu-tdep.o): Specify dependencies.
3895
3896 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3897
3898 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3899 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3900 Adjust a few comments to reflect reality a bit closer.
3901 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3902 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3903 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3904 target_insert_watchpoint, target_remove_watchpoint):
3905 Move defines to ...
3906 * config/i386/nm-i386sco5.h: ... here.
3907 (kernel_u_size): Add prototype. Improve a few comments and add
3908 protection against multiple inclusion.
3909
3910 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3911 out define.
3912
3913 * uw-thread.c (SP_ARG0): Define if not already defined.
3914 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3915
3916 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3917
3918 * config/i386/tm-i386.h: Don't include "regcache.h".
3919
3920 * i387-tdep.h (i387_print_float_info): New prototype.
3921 * i387-tdep.c (print_i387_value, print_i387_ext,
3922 print_i387_status_word, print_i387_control_word): Add `struct
3923 ui_file *' argument and use it for output.
3924 (i387_print_float_info): Renamed from i387_float_info. Add
3925 `struct gdbarch *' and `struct ui_file *' arguments and use the
3926 latter for output.
3927 * i386-tdep.c: Include "i387-tdep.h".
3928 (i386_gdbarch_init): Set print_float_info.
3929 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3930 (FLOAT_INFO): Remove define.
3931
3932 2002-08-13 Michael Snyder <msnyder@redhat.com>
3933
3934 * mips-tdep.c (mips_push_arguments): Rename to
3935 mips_eabi_push_arguments, and tune for EABI.
3936 (MIPS_REGS_HAVE_HOME_P): Delete.
3937 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3938 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3939 Delete references to mips_regs_have_home_p.
3940
3941 2002-08-14 Keith Seitz <keiths@redhat.com>
3942
3943 * Makefile.in (install-gdbtk): Create insight plugin directory.
3944 Install plugins.tcl file.
3945
3946 2002-08-14 Keith Seitz <keiths@redhat.com>
3947
3948 * configure.in: Move SUBDIRS to near top of the file so that
3949 --enable options may add things to it.
3950 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3951 * configure: Regenerate.
3952
3953 2002-08-13 Michael Snyder <msnyder@redhat.com>
3954
3955 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3956 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3957 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3958
3959 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3960
3961 * vax-tdep.c (vax_get_saved_register): Delete function.
3962 (vax_gdbarch_init): Update.
3963 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3964 (ns32k_gdbarch_init): Update.
3965 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3966 (alpha_gdbarch_init): Update.
3967
3968 2002-08-13 Andrew Cagney <cagney@redhat.com>
3969
3970 * regcache.c (init_regcache_descr): Overallocate the
3971 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3972 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3973 nr_raw_registers.
3974 (set_register_cached): Add range checking assertions. Use
3975 current_regcache.
3976
3977 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3978
3979 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3980 numbers for MMX registers.
3981
3982 2002-08-13 Andrew Cagney <cagney@redhat.com>
3983
3984 * i386-tdep.c (i386_gdbarch_init): Use
3985 generic_unwind_get_saved_register.
3986
3987 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3988
3989 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3990 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3991 target vector.
3992 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3993 Delete. Add comment regarding this now-deleted target method.
3994
3995 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3996
3997 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3998 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3999 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4000 real PC and the page number (if it's within the memory bank window).
4001 (m68hc11_pseudo_register_write): Likewise when saving.
4002 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4003 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4004 (m68hc11_register_raw_size): And use 32-bit for it.
4005 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4006 16K memory bank is used by the prog; also use the virtual pc.
4007
4008 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4009
4010 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4011 (m68hc11_gdbarch_init): Install it in gdbarch.
4012 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4013 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4014 (MSYMBOL_SIZE): New for documentation.
4015 (insn_return_kind): Enum to specify how a function returns.
4016 (frame_extra_info): Cleanup and record the return mode.
4017 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4018 register in address computation.
4019 (m68hc11_get_return_insn): New to obtain the return instruction used
4020 by the function.
4021 (m68hc11_frame_init_saved_regs): Take into account the return
4022 instruction used by the function for far and interrupt functions.
4023 (m68hc11_init_extra_frame_info): Take into account page register.
4024 (m68hc11_frame_args_address): Adjust according to the return mode.
4025 (show_regs): Print page register only when it's used.
4026
4027 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4028
4029 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4030 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4031 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4032 registers.
4033 (m68hc11_register_raw_size): Likewise.
4034
4035 2002-08-13 Andrew Cagney <cagney@redhat.com>
4036
4037 * i386-tdep.c (i386_register_name): Handle mmx registers.
4038 (mmx_regnum_p): New function.
4039 (i386_mmx_names): New array.
4040 (mmx_num_regs): New variable.
4041 (i386_pseudo_register_read): New function.
4042 (i386_pseudo_register_write): New function.
4043 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4044
4045 * regcache.c (regcache_raw_read_unsigned): New function.
4046 (regcache_raw_read_signed): New function.
4047 * regcache.h (regcache_raw_read_unsigned): Declare.
4048 (regcache_raw_read_signed): Declare.
4049
4050 2002-08-13 Andrew Cagney <cagney@redhat.com>
4051
4052 * regcache.c (regcache_raw_read_as_address): Delete function.
4053 (regcache_cooked_read_signed): New function.
4054 (regcache_cooked_read_unsigned): New function.
4055 * regcache.h (regcache_cooked_read_signed): Declare.
4056 (regcache_cooked_read_unsigned): Declare.
4057 (regcache_raw_read_as_address): Delete declaration.
4058
4059 * blockframe.c (generic_read_register_dummy): Use
4060 regcache_cooked_read_unsigned.
4061 * i386-tdep.c (i386_extract_struct_value_address): Use
4062 regcache_cooked_read_unsigned.
4063
4064 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4065
4066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4067 double sizes according to ELF ABI flags.
4068 (gdbarch_tdep): Record elf_flags.
4069
4070 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4071
4072 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4073 (m6812_prolog): They can appear in 68HC12 function prologue.
4074 (m68hc11_frame_chain): Cleanup.
4075
4076 2002-08-12 Andrew Cagney <cagney@redhat.com>
4077
4078 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4079 declarations.
4080 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4081 (i386_linux_register_raw_size): Delete function.
4082 (i386_linux_init_abi): Update.
4083 * i386-tdep.c (i386_register_raw_size): Delete function.
4084 (i386_register_byte): Delete function.
4085 (i386_gdbarch_init): Update.
4086 (i386_register_size): Delete array.
4087 (i386_register_offset): Delete array.
4088
4089 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4090 (REGISTER_RAW_SIZE): Delete macro.
4091 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4092 (REGISTER_BYTE): Delete macro.
4093
4094 2002-08-11 Aidan Skinner <aidan@velvet.net>
4095
4096 * ada-lang.c (ada_lookup_partial_symbol)
4097 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4098 prototype names so that grep ^func works properly.
4099
4100 * ada-lang.c (ada_array_element_type)
4101 (ada_lookup_partial_symbol): Fix typos in parameter list.
4102
4103 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4104 Fix prototype names so that grep ^func works properly.
4105
4106 2002-08-10 Andrew Cagney <cagney@redhat.com>
4107 Elena Zannoni <ezannoni@redhat.com>
4108 Martin M. Hunt <hunt@redhat.com>
4109
4110 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4111 (build_builtin_type_vec128i): Set the vector bit.
4112 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4113 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4114 (build_builtin_type_vec64): New function.
4115 (build_builtin_type_vec64i): New function.
4116 (build_gdbtypes): Initialize builtin_type_vec64 and
4117 builtin_type_vec64i.
4118
4119 2002-08-09 Andrew Cagney <cagney@redhat.com>
4120
4121 * regcache.c (regcache_dump): Compare the register offset
4122 with REGISTER_BYTE.
4123 * arch-utils.c (generic_register_byte): New function.
4124 * arch-utils.h (generic_register_byte): Declare.
4125 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4126 * gdbarch.h, gdbarch.c: Regenerate.
4127
4128 2002-08-09 Andrew Cagney <cagney@redhat.com>
4129
4130 * regcache.c: Include "gdbcmd.h"
4131 (_initialize_regcache): Add commands "maintenance print
4132 registers", "maintenance print raw-registers" and "maintenance
4133 print cooked-registers".
4134 (enum regcache_dump_what): Define.
4135 (dump_endian_bytes): New function.
4136 (regcache_dump): New function.
4137 (regcache_print): New function.
4138 (maintenance_print_registers): New function.
4139 (maintenance_print_raw_registers): New function.
4140 (maintenance_print_cooked_registers): New function.
4141 * Makefile.in (regcache.o): Update dependencies.
4142
4143 2002-08-09 Michael Snyder <msnyder@redhat.com>
4144
4145 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4146 (mips_push_arguments): Correct some comments. Use paddr_nz
4147 for printing addresses in debug output. Replace static
4148 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4149 (mips_n32n64_push_arguments): New function, cloned from
4150 mips_push_arguments and tuned for the n32/n64 ABI.
4151 (mips_push_register): Buffer needs dynamic allocation.
4152 (mips_print_register): Ditto.
4153 (do_gp_register_row): Ditto.
4154 (mips_store_return_value): Ditto.
4155 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4156
4157 2002-08-09 Don Howard <dhoward@redhat.com>
4158
4159 * memattr.c (mem_info_command): Print special case of upper bound
4160 as max CORE_ADDR + 1.
4161
4162 2002-08-08 Michael Snyder <msnyder@redhat.com>
4163
4164 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4165 returns structs by ref if they're too big to fit in two registers.
4166
4167 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4168
4169 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4170 saved regs value.
4171 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4172 mips_find_saved_regs().
4173 (mips_pop_frame): Likewise.
4174
4175 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4176
4177 * blockframe.c (frame_saved_regs_register_unwind): Revise
4178 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4179 frames are in use.
4180
4181 2002-08-09 Grace Sainsbury <graces@redhat.com>
4182
4183 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4184 T-packets; the 'a' is not taken as a register number.
4185 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4186 (remote_stopped_data_address): New functions; add to target
4187 vector.
4188 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4189 prototypes to match other implementations of this
4190 function. replace integer argument with pointer -- the length
4191 field in the Z-packet is the length of what is pointed to or 1 if
4192 pointer is null. Add to target vector.
4193 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4194 target vector.
4195
4196 From Mark Salter:
4197 * remote.c (remote_wait): Add support to extract optional
4198 watchpoint information from T-packet. Ignore unrecognized
4199 optional info in T-packet.
4200 (remote_async_wait): Ditto.
4201
4202 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4203
4204 * cli/cli-dump.c: Change fopen modes to use binary open modes
4205 as defined in include/fopen-bin.h throughout.
4206
4207 2002-08-08 Michael Snyder <msnyder@redhat.com>
4208
4209 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4210
4211 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4212
4213 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4214 assertion failure by returning early after a warning.
4215
4216 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4217
4218 * mips-tdep.c (mips_find_saved_regs): Make static.
4219 (mips_frame_init_saved_regs): New function.
4220 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4221 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4222 (mips_find_saved_regs): Delete declaration.
4223
4224 2002-08-08 Grace Sainsbury <graces@redhat.com>
4225
4226 * remote.c (remote_wait, remote_async_wait): Change
4227 thread_num from int to ULONGEST.
4228 (unpack_varlen_hex): Change result parameter from
4229 int * to ULONGEST *.
4230
4231 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4232
4233 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4234 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4235 powerpc*-*-*.
4236 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4237
4238 2002-08-08 Andrew Cagney <cagney@redhat.com>
4239
4240 * gcore.c (override_derive_stack_segment): Delete variable.
4241 (preempt_derive_stack_segment): Delete function.
4242 (derive_stack_segment): Delete function.
4243 (default_derive_stack_segment): Renamed to derive_stack_segment.
4244 (override_derive_heap_segment): Delete variable.
4245 (preempt_derive_heap_segment): Delete function.
4246 (derive_heap_segment): Delete function.
4247 (default_derive_heap_segment): Rename to derive_heap_segment.
4248
4249 2002-08-06 Michael Snyder <msnyder@redhat.com>
4250
4251 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4252 * mips-tdep.c (mips_EABI_use_struct_convention,
4253 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4254 New functions. (mips_use_struct_convention): Delete.
4255 (mips_gdbarch_init): set use_gdbarch_convention.
4256
4257 2002-08-06 Michael Snyder <msnyder@redhat.com>
4258
4259 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4260 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4261 mips_o32_reg_struct_has_addr): New functions.
4262 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4263
4264 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4265
4266 * regcache.c (pseudo_register): Delete function.
4267 (fetch_register): Delete function.
4268 (store_register): Delete function.
4269 (regcache_raw_read, legacy_read_register_gen): Use
4270 target_fetch_registers instead of fetch_register.
4271 (legacy_write_register_gen, regcache_raw_write): Use
4272 target_store_register instead of store_register.
4273 (write_register_bytes): Ditto.
4274
4275 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4276 (STORE_PSEUDO_REGISTER): Delete.
4277 * gdbarch.h, gdbarch.c: Regenerate.
4278
4279 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4280
4281 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4282 write dump file binary.
4283
4284 2002-08-05 Michael Snyder <msnyder@redhat.com>
4285
4286 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4287 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4288 (mips_gdbarch_init): Set N32 target to be mips64.
4289
4290 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4291
4292 * frame.c (find_saved_register): Break out of loop once saved
4293 register address is found. Don't mention sparc in loop comment
4294 anymore.
4295
4296 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4297
4298 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4299 mips_default_saved_regsize to 8.
4300
4301 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4302
4303 * gcore.c: Do not include <sys/procfs.h>.
4304 * Makefile.in (gcore.o): Update dependencies.
4305
4306 2002-08-06 Andrew Cagney <cagney@redhat.com>
4307
4308 * configure.tgt: Make arc-*-* obsolete.
4309 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4310 * MAINTAINERS: Make arc-elf obsolete.
4311 * arc-tdep.c: Make file obsolete.
4312 * config/arc/arc.mt: Ditto.
4313 * config/arc/tm-arc.h: Ditto.
4314
4315 2002-08-05 Theodore A. Roth <troth@verinet.com>
4316
4317 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4318
4319 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4320
4321 * mcore-tdep.c (mcore_gdbarch_init): Use
4322 generic_unwind_get_saved_register instead of
4323 generic_get_saved_register.
4324 * v850-tdep.c (v850_gdbarch_init): Ditto.
4325 * frv-tdep.c (frv_gdbarch_init): Ditto.
4326 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4327 * s390-tdep.c (s390_gdbarch_init): Ditto.
4328 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4329 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4330 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4331
4332 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4333
4334 * objfiles.h: Add missing #include "symfile.h"
4335
4336 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4337
4338 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4339
4340 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4341 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4342 of FIELD_BITSIZE.
4343
4344 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4345
4346 * NEWS: Cleanup and nitpick.
4347
4348 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4349
4350 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4351
4352 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4353
4354 * Makefile.in (gdbtk-bp.o): Update dependencies.
4355 (gdbtk-register.o): Ditto.
4356 (gdbtk-varobj.o): Ditto.
4357
4358 2002-08-03 Andrew Cagney <cagney@redhat.com>
4359
4360 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4361 m68hc11_fetch_pseudo_register.
4362 (m68hc11_pseudo_register_write): Replace
4363 m68hc11_store_pseudo_register.
4364 (m68hc11_gdbarch_init): Update.
4365
4366 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4367
4368 * gdbarch.sh: Include "gdb_string.h".
4369 * gdbarch.c: Regenerate.
4370
4371 * regcache.c: Include "gdb_string.h".
4372 * ax-general.c: Ditto.
4373 * varobj.c: Ditto.
4374 * std-regs.c: Ditto.
4375 * fbsd-proc.c: Ditto.
4376 * thread.c: Ditto.
4377
4378 * Makefile.in (regcache.o): Update dependencies.
4379 (thread.o, gdbarch.o): Ditto.
4380 (ax-general.o, gdbarch.o): Ditto.
4381 (varobj.o, std-regs.o): Ditto.
4382 (fbsd-proc.o): Specify dependencies.
4383
4384 2002-08-02 Andrew Cagney <cagney@redhat.com>
4385
4386 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4387 regnum.
4388 (regcache_cooked_write): Ditto.
4389
4390 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4391
4392 * regcache.c (regcache_cooked_read): New function.
4393 (regcache_cooked_write): New function.
4394 (read_register_gen): Rewrite using regcache_cooked_read.
4395 (write_register_gen): Rewrite using regcache_cooked_write.
4396
4397 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4398 Declare.
4399
4400 2002-08-02 Andrew Cagney <cagney@redhat.com>
4401
4402 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4403 Replace the architecture methods register_read and register_write.
4404 * gdbarch.h, gdbarch.c: Regenerate.
4405 * regcache.c (init_regcache_descr): Update.
4406 (read_register_gen): Update.
4407 (write_register_gen): Update.
4408 (supply_register): Update comment.
4409
4410 * sh-tdep.c (sh_gdbarch_init): Update.
4411 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4412 `regcache' and `gdbarch' parameters. Make `buffer' a void
4413 pointer. Update code.
4414 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4415 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4416 void pointer. Update code.
4417 (sh64_register_write): Delete.
4418 (sh4_register_read): Delete.
4419 (sh64_register_read): Delete.
4420 (sh4_register_write): Delete.
4421 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4422 void pointer, `to' parameter a void pointer.
4423 (sh_sh64_register_convert_to_raw): Ditto.
4424
4425 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4426
4427 * mips-tdep.c (mips_register_virtual_type): Use architecture
4428 invariant return values.
4429
4430 2002-08-01 Andrew Cagney <cagney@redhat.com>
4431
4432 * linux-proc.c: Include "gdb_string.h".
4433 * Makefile.in (linux-proc.o): Update dependency list.
4434
4435 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4436
4437 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4438 comment.
4439
4440 2002-08-01 Grace Sainsbury <graces@redhat.com>
4441
4442 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4443 to_insert_watchpoint, to_remove_watchpoint,
4444 to_stopped_by_watchpoint, to_stopped_data_address,
4445 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4446 target vecctor. Define their corresponding macros so they call
4447 them.
4448
4449 * target.c: Add default and debug versions of for
4450 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4451 to_insert_watchpoint, to_remove_watchpoint,
4452 to_stopped_by_watchpoint, to_stopped_data_address,
4453 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4454
4455 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4456
4457 * mips-tdep.c (mips_register_virtual_type): New function.
4458 (mips_gdbarch_init): Register mips_register_virtual_type()
4459 with gdbarch machinery.
4460 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4461 this file instead of tm-bigmips.h.
4462 (MIPS_REGSIZE): Delete this macro.
4463 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4464 multiarch version in mips-tdep.c will be found.
4465
4466 2002-08-01 Andrew Cagney <cagney@redhat.com>
4467
4468 * NEWS: Menion that CHILL has been made obsolete.
4469
4470 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4471 * stabsread.c (read_range_type): Ditto.
4472 * gdbtypes.h: Ditto.
4473 * language.c (binop_type_check): Ditto.
4474 (binop_result_type): Ditto.
4475 (integral_type): Ditto.
4476 (character_type): Ditto.
4477 (string_type): Ditto.
4478 (boolean_type): Ditto.
4479 (structured_type): Ditto.
4480 (lang_bool_type): Ditto.
4481 (binop_type_check): Ditto.
4482 * language.h (_LANG_chill): Ditto.
4483 * dwarfread.c (set_cu_language): Ditto.
4484 * dwarfread.c (CHILL_PRODUCER): Ditto.
4485 * dwarfread.c (handle_producer): Ditto.
4486 * expression.h (enum exp_opcode): Ditto.
4487 * eval.c: Ditto for comments.
4488 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4489 * expprint.c (print_subexp): Ditto.
4490 (print_subexp): Ditto.
4491 * valops.c (value_cast): Ditto.
4492 (search_struct_field): Ditto.
4493 * value.h (COERCE_VARYING_ARRAY): Ditto.
4494 * symfile.c (init_filename_language_table): Ditto.
4495 (add_psymbol_with_dem_name_to_list): Ditto.
4496 * valarith.c (value_binop): Ditto.
4497 (value_neg): Ditto.
4498 * valops.c (value_slice): Ditto.
4499 * symtab.h (union language_specific): Ditto.
4500 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4501 (SYMBOL_DEMANGLED_NAME): Ditto.
4502 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4503 * defs.h (enum language): Ditto.
4504 * symtab.c (got_symtab): Ditto.
4505 * utils.c (fprintf_symbol_filtered): Ditto.
4506
4507 * ch-typeprint.c: Make file obsolete.
4508 * ch-valprint.c: Make file obsolete.
4509 * ch-lang.h: Make file obsolete.
4510 * ch-exp.c: Make file obsolete.
4511 * ch-lang.c: Make file obsolete.
4512
4513 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4514 CHILL_LIB.
4515 (TARGET_FLAGS_TO_PASS): Ditto.
4516 (CHILLFLAGS): Obsolete.
4517 (CHILL): Obsolete.
4518 (CHILL_FOR_TARGET): Obsolete.
4519 (CHILL_LIB): Obsolete.
4520 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4521 ch-valprint.c.
4522 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4523 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4524 ch-lang.o.
4525 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4526 targets.
4527
4528 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4529
4530 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4531 This does not change anything at the moment, but will be helpful
4532 later when full Ada support is integrated.
4533
4534 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4535
4536 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4537 help message.
4538
4539 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4540
4541 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4542 and save it in a local variable. Use variable in later test.
4543
4544 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4545
4546 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4547 test. (Thanks to Daniel Jacobowitz.)
4548
4549 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4550
4551 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4552 (mips_abi_strings): Add "n64".
4553 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4554
4555 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4556
4557 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4558 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4559
4560 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4561
4562 * utils.c (host_pointer_to_address, address_to_host_pointer):
4563 Use gdb_assert() instead of explicit call to internal_error().
4564
4565 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4566
4567 * Makefile.in (rs6000-nat.o): Update dependencies.
4568
4569 From Nicholas Duffek:
4570 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4571 (aix-thread.o): New rule.
4572 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4573 * config/powerpc/aix432.mh: New file.
4574
4575 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4576
4577 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4578 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4579 (fetch_core_registers, ppc_linux_supply_gregset)
4580 (ppc_linux_supply_fpregset): New functions.
4581 (ppc_linux_regset_core_fns): New.
4582 (_initialize_ppc_linux_tdep): Call add_core_fns.
4583 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4584 and ppc_linux_supply_gregset.
4585 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4586 (supply_fpregset): Call ppc_linux_supply_fpregset.
4587 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4588 corelow.o.
4589 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4590
4591 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4592
4593 * symtab.c (lookup_symbol): Demangle before lowercasing.
4594
4595 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4596
4597 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4598 declaration.
4599 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4600 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4601 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4602 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4603 "gdb_string.h".
4604 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4605 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4606 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4607 (avr-tdep.o, mon960-rom.o): Ditto.
4608 (aout_stabs_gnu_h): Define.
4609 (symtab_h): Remove $(gdb_obstack_h).
4610
4611 2002-07-30 Jim Blandy <jimb@redhat.com>
4612
4613 Patch from David Carlton <carlton@math.stanford.edu>:
4614 * gdbinit.in: Move the `dir' commands that add GDB's own source
4615 directory to the search path to the end, so that the `gdb' source
4616 directory will be searched first.
4617
4618 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4619
4620 * gdb_obstack.h: New file.
4621 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4622 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4623 * objfiles.h: Include "gdb_obstack.h".
4624 * Makefile.in (gdb_obstack_h): Define.
4625 (symtab_h): Add $(gdb_obstack_h).
4626 (objfiles_h): Add $(gdb_obstack_h).
4627
4628 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4629 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4630 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4631 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4632 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4633 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4634 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4635 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4636
4637 * Makefile.in (bcache.o): Update dependencies.
4638 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4639 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4640 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4641 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4642 (stabsread.o, symfile.o, symmisc.o): Ditto.
4643 (symtab.o, typeprint.o, macroexp.o): Ditto.
4644 (macrotab.o, mdebugread.o): Ditto.
4645 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4646 (coff_ecoff_h, aout_aout64_h): Define.
4647 (aout_stabs_gnu_h, libaout_h): Define.
4648
4649 2002-07-29 Andrew Cagney <cagney@redhat.com>
4650
4651 * regcache.c (struct regcache_descr): Rename nr_registers to
4652 nr_cooked_registers. Revise comments describing the structure
4653 member fields.
4654 (init_regcache_descr): Update.
4655 (init_legacy_regcache_descr): Update.
4656 (read_register_gen, write_register_gen): When a cooked register in
4657 the raw register range, directly access the value from the raw
4658 register cache.
4659
4660 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4661
4662 * z8k-tdep.c: Do not include "obstack.h".
4663 * h8300-tdep.c, h8500-tdep.c: Ditto.
4664 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4665 * valprint.c, v850-tdep.c: Ditto.
4666 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4667 * mn10200-tdep.c: Ditto.
4668
4669 * Makefile.in (z8k-tdep.o): Update dependencies.
4670 (m68hc11-tdep.o, valprint.o): Ditto.
4671 (v850-tdep.o, d10v-tdep.o): Ditto.
4672 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4673 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4674 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4675 (sh_opc_h, gdb_sim_sh_h): Define.
4676 (elf_sh_h, elf_bfd_h): Define.
4677 (opcode_m68hc11_h): Define.
4678 (OPCODES_SRC, OPCODES_DIR): define.
4679 (OPCODES): Use $(OPCODES_DIR).
4680 (gdb_sim_d10v_h): Rename sim_d10v_h.
4681 (gdb_sim_arm_h): Rename sim_arm_h.
4682
4683 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4684
4685 * utils.c (host_pointer_to_address, address_to_host_pointer):
4686 Change internal_error() message to indicate function responsible
4687 for the error.
4688
4689 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4690
4691 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4692 calls to local_hex_string_custom().
4693
4694 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4695
4696 * irix5-nat.c: Move IRIX shared library support from here...
4697 * solib-irix.c: ...to here. Revised substantially to work with
4698 generic solib framework.
4699
4700 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4701 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4702 * mips-irix-tdep.c: New file.
4703
4704 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4705 (mips-irix-tdep.o, solib-irix.o): New rules.
4706 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4707 solib-irix.o.
4708 * config/mips/irix6.mt (TDEPFILES): Likewise.
4709 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4710
4711 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4712
4713 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4714 disabled (via ``#if 0'') includes.
4715
4716 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4717
4718 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4719 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4720 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4721 Add support for the fpscr register.
4722 * rs6000-nat.c (regmap, fetch_inferior_registers)
4723 (store_inferior_registers, fetch_core_registers): Likewise.
4724
4725 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4726
4727 * rs6000-nat.c (language.h): Include.
4728 (special_regs): Delete this array.
4729 (regmap): New function.
4730 (fetch_register, store_register): Use regmap() to map gdb
4731 register numbers to ptrace register numbers. Also, use
4732 outputs from regmap() to make decisions regarding type of
4733 ptrace() call to make. In particular, don't compare against
4734 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4735 (fetch_inferior_registers, store_inferior_registers): Where
4736 possible, obtain register numbers from tdep struct. Don't
4737 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4738 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4739 (LAST_UISA_SP_REGNUM): Delete.
4740
4741 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4742
4743 * rs6000-nat.c (ppc-tdep.h): Include.
4744 (fetch_registers, store_register, fetch_core_registers): Don't
4745 access registers[] directly. Instead, use supply_register() or
4746 regcache_collect() as appropriate.
4747 (find_toc_address): Format hex address with local_hex_string().
4748
4749 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4750
4751 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4752 bfd/elf32-frv.c.
4753
4754 2002-07-24 Tom Tromey <tromey@redhat.com>
4755
4756 * jv-exp.y: Marked all strings with _().
4757 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4758 internal_error.
4759 (MethodInvocation, CastExpression, parse_number, yyerror,
4760 java_type_from_name, push_expression_name, yylex): Typo fixes.
4761
4762 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4763
4764 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4765 (tee_file_flush, tee_file_write, tee_file_fputs)
4766 (tee_file_isatty): New.
4767 * ui-file.h (tee_file_new): Add prototype.
4768
4769 2002-07-24 Aidan Skinner <aidan@velvet.net>
4770
4771 * ada-lang.c: Change k&r style function definitions to prototyped
4772 form.
4773 * ada-typeprint.c: Change k&r style function definitions to prototyped
4774 form.
4775 * ada-valprint.c: Change k&r style function definitions to prototyped
4776 form.
4777
4778 2002-07-24 Andrew Cagney <cagney@redhat.com>
4779
4780 * README: Remove reference to remote-bug.
4781 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4782 remote-bug.c.
4783 (m88k-nat.o): Delete rule.
4784 (m88k-tdep.o): Delete rule.
4785 (remote-bug.o): Delete rule.
4786 * MAINTAINERS: Mark as obsolete.
4787 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4788 * m88k-tdep.c: Make file obsolete.
4789 * config/m88k/m88k.mh: Ditto.
4790 * config/m88k/delta88v4.mh: Ditto.
4791 * config/m88k/delta88v4.mt: Ditto.
4792 * config/m88k/delta88.mt: Ditto.
4793 * config/m88k/delta88.mh: Ditto.
4794 * remote-bug.c: Ditto.
4795 * config/m88k/tm-delta88.h: Ditto.
4796 * config/m88k/nm-delta88v4.h: Ditto.
4797 * config/m88k/xm-delta88.h: Ditto.
4798 * config/m88k/xm-dgux.h: Ditto.
4799 * config/m88k/tm-m88k.h: Ditto.
4800 * config/m88k/nm-m88k.h: Ditto.
4801 * config/m88k/tm-delta88v4.h: Ditto.
4802 * m88k-nat.c: Ditto.
4803 * cxux-nat.c: Ditto.
4804 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4805 and m88*-*-* obsolete.
4806 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4807 m88*-*-* obsolete.
4808
4809 2002-07-24 Andrew Cagney <cagney@redhat.com>
4810
4811 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4812 constant. Same for local pointer variables.
4813 (extract_signed_integer): Ditto.
4814 * defs.h (extract_unsigned_integer): Update.
4815 (extract_signed_integer): Update.
4816
4817 2002-07-24 Andrew Cagney <cagney@redhat.com>
4818
4819 * regcache.c (regcache_raw_write): Change buf parameter to a
4820 constant void pointer.
4821 (regcache_raw_read): Change buf parameter to a void pointer.
4822 (legacy_write_register_gen): Change myaddr parameter a constant
4823 void pointer.
4824 (supply_register): Change val parameter to a const void pointer.
4825 * regcache.h (regcache_raw_write): Update declaration.
4826 (regcache_raw_read): Update declaration.
4827 (supply_register): Update declaration.
4828
4829 2002-07-24 Tom Tromey <tromey@redhat.com>
4830
4831 * defs.h (gdb_readline_wrapper): Declare.
4832 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4833 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4834 * top.c (gdb_readline_wrapper): New function.
4835 (command_line_input): Use it.
4836
4837 2002-07-24 Andrew Cagney <cagney@redhat.com>
4838
4839 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4840 regcache_read and regcache_write.
4841 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4842 * regcache.c: Update.
4843 * sh-tdep.c (sh64_push_arguments): Update comment.
4844 (sh_pseudo_register_read): Update.
4845 (sh_pseudo_register_write): Update.
4846 (sh4_register_read): Update.
4847 (sh4_register_write): Update.
4848 (sh64_pseudo_register_read): Update.
4849 (sh64_pseudo_register_write): Update.
4850 (sh64_register_read): Update.
4851 (sh64_register_write): Update.
4852 * i386-tdep.c (i386_extract_return_value): Update.
4853 (i386_extract_struct_value_address): Update.
4854 (i386_extract_return_value): Update.
4855 * blockframe.c (generic_read_register_dummy): Update.
4856 (generic_call_dummy_register_unwind): Update
4857 * infrun.c (write_inferior_status_register): Update.
4858
4859 2002-07-23 Jim Blandy <jimb@redhat.com>
4860
4861 * parser-defs.h (expression_context_pc): Make this extern.
4862 (Thanks to Michael Snyder.)
4863
4864 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4865
4866 GDB 5.2.1 released from 5.2 branch.
4867 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4868 * README: Update to mention 5.2.1.
4869
4870 2002-07-23 Mark Salter <msalter@redhat.com>
4871
4872 * remote.c (remote_read_bytes): Fix check for error.
4873
4874 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4875
4876 * aix-thread.c (language.h): Include.
4877 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4878 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4879 Print newlines at end of debug messages.
4880 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4881 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4882
4883 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4884
4885 * aix-thread.c (ppc-tdep.h): Include.
4886 (special_register_p): New function.
4887 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4888 (store_regs_user_thread): Use register number information from
4889 gdbarch_tdep struct instead of hardcoded offsets relative to
4890 FIRST_UISA_SP_REGNUM.
4891 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4892 special_register_p() instead of using FPLAST_REGNUM and
4893 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4894 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4895 will be MQ's register number.
4896
4897 2002-07-22 Michael Snyder <msnyder@redhat.com>
4898
4899 * aix-thread.c (ops): Rename to aix_thread_ops.
4900 (base_ops): Rename to base_target.
4901 (ops_attach): Rename to aix_thread_attach.
4902 (ops_detach): Rename to aix_thread_detach.
4903 (ops_resume): Rename to aix_thread_detach.
4904 (ops_wait): Rename to aix_thread_wait.
4905 (ops_kill): Rename to aix_thread_kill.
4906 (init_ops): Rename to init_aix_thread_ops.
4907 (ops_fetch_register): Rename to aix_thread_fetch_register.
4908 (ops_store_register): Rename to aix_thread_store_register.
4909 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4910 (ops_thread_alive): Rename to aix_thread_thread_alive.
4911 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4912 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4913 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4914 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4915 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4916 (store_regs_lib): Rename to store_regs_user_thread.
4917 (store_regs_kern): Rename to store_regs_kernel_thread.
4918
4919 2002-07-22 Michael Snyder <msnyder@redhat.com>
4920
4921 * aix-thread.c (ops_prepare_to_store): Eliminate.
4922 (init_ops): Don't initialize ops.prepare_to_store.
4923 (store_regs_kern): Pre-fetch register buffers from child,
4924 because some registers may not be in the cache. Copy
4925 regs from register cache only if they are cached.
4926 (store_regs_lib): Copy regs from register cache only
4927 if they are cached.
4928 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4929 fill_gprs64): Ditto.
4930
4931 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4932
4933 * aix-thread.c (gdb_assert.h): Include.
4934 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4935 register sizes (from register cache) match size of buffer holding
4936 register data.
4937 (fill_sprs32): Change parameter types to match those in the ptrace()
4938 buffer.
4939 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4940 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4941
4942 2002-07-22 Michael Snyder <msnyder@redhat.com>
4943
4944 * aix-thread.c (supply_sprs64): Cosmetic change.
4945 (supply_sprs32): Cosmetic change.
4946 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4947 (fill_sprs64): Use regcache_collect instead of read_register.
4948 (store_regs_lib): Use regcache_collect instead of
4949 read_register. Use fill_sprs32 instead of fill_sprs64,
4950 if debugging a 32-bit architecture.
4951 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4952 out of the register cache, instead of passing a pointer into
4953 the register cache directly to ptrace. Use regcache_collect
4954 insteaad of read_register.
4955 (ops_prepare_to_store): Use target_read_registers instead
4956 of read_register_bytes.
4957
4958 2002-07-20 Aidan Skinner <aidan@velvet.net>
4959
4960 * MAINTAINERS: Add self under write after approval.
4961
4962 2002-07-20 Aidan Skinner <aidan@velvet.net>
4963
4964 * ada-tasks.c: Change k&r style function definitions to prototyped
4965 form.
4966
4967 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4968
4969 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4970 * x86-64-tdep.c: Include "objfiles.h".
4971 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4972 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4973
4974 2002-07-17 Michal Ludvig <michal@suse.cz>
4975
4976 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4977 (update_context): Initialise cfa variable.
4978
4979 2002-07-17 Michael Snyder <msnyder@redhat.com>
4980
4981 * aix-thread.c: Shorten some long lines.
4982 Bring comments into line with code spec.
4983
4984 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4985
4986 * infrun.c: Re-indent using gdb_indent.sh.
4987
4988 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4989
4990 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4991 Leave the indentation temporarily untouched, to minimize the diffs.
4992
4993 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4994
4995 * stabsread.c: Make os9k sections of the code obsolete,
4996 for real this time.
4997 * stabsread.h: Make os9k sections of the code obsolete.
4998
4999 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5000
5001 * linux-low.c (regsets_store_inferior_registers): Add free()
5002 at the end of a loop to prevent memory leak.
5003 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5004 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5005 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5006 line a comment.
5007 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5008
5009 2002-07-17 Jim Blandy <jimb@redhat.com>
5010
5011 * macrocmd.c (info_macro_command): Remove newline from error
5012 message.
5013
5014 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5015
5016 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5017 (sh_gdbarch_init): Use it for sh-dsp.
5018
5019 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5020
5021 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5022 64-bit DWARF2 format.
5023
5024 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5025
5026 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5027 <sys/proc.h> when not available.
5028
5029 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5030
5031 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5032 * stabsread.c: Make os9k sections of the code obsolete.
5033 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5034 * config/i386/i386os9k.mt: Make file obsolete.
5035 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5036 (COMMON_OBS): Remove os9kread.o
5037 (SFILES): Remove os9kread.c.
5038 (os9kread.o, remote-os9k.o): Make target obsolete.
5039 * remote-os9k.c: Make file obsolete.
5040 * os9kread.c: Make file obsolete.
5041 * Makefile.in
5042
5043 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5044
5045 * NEWS: Mention that the FR30 has been made obsolete.
5046 * fr30-tdep.c: Make file obsolete.
5047 * config/fr30/tm-fr30.h: Ditto.
5048 * config/fr30/fr30.mt: Ditto.
5049 * configure.tgt: Make fr30-*-elf obsolete.
5050 * MAINTAINERS: Make fr30-elf obsolete.
5051
5052 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5053
5054 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5055 found is not inside a section.
5056
5057 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5058
5059 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5060 strerror().
5061 (pdc_realloc): Use xrealloc() instead of realloc().
5062
5063 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5064
5065 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5066 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5067 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5068 macros.
5069
5070 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5071
5072 * aix-thread.c (ptrace_check): Eliminate goto.
5073 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5074 problem.
5075
5076 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5077
5078 * aix-thread.c (gdbcmd.h): Include.
5079 (DEBUG, DBG, DBG2, dbg): Eliminate.
5080 (debug_aix_thread): New static global.
5081 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5082 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5083 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5084 invocations to DBG and DBG2 macros to test against
5085 ``debug_aix_thread'' and call fprintf_unfiltered().
5086 (_initialize_aix_thread): Add new command "set debug aix-thread".
5087
5088 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5089
5090 From Gerhard Tonn <TON@de.ibm.com>:
5091 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5092 instead of supply_register.
5093
5094 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5095
5096 * dwarf2cfi.c: Include "gdb_assert.h".
5097 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5098 non-NULL.
5099 (update_context): Do not use __func__. Add missing ``break''.
5100 (update_context): Do not use __func__.
5101
5102 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5103
5104 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5105 and its setting. Set gdbarch instruction printing functions
5106 directly. For non-rs6000 case use new function
5107 gdb_print_insn_powerpc.
5108 (gdb_print_insn_powerpc): New function.
5109
5110 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5111
5112 * NEWS: Mention that the d30v has been marked obsolete.
5113 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5114 * configure.tgt: Mark d30v-*-* as obsolete.
5115 * d30v-tdep.c: Mark file as obsolete.
5116 * config/d30v/d30v.mt: Ditto.
5117 * config/d30v/tm-d30v.h: Ditto.
5118
5119 2002-07-13 Aidan Skinner <aidan@velvet.net>
5120
5121 * ada-tasks.c (add_task_entry): replace calls to
5122 malloc() with xmalloc
5123 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5124
5125 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5126 ada_finish_decode_line_1, all_sals_for_line
5127 ada_breakpoint_rewrite): replace calls to free() with xfree()
5128
5129 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5130
5131 From Nicholas Duffek (with minor changes by Martin Hunt,
5132 Louis Hamilton, and Kevin Buettner):
5133 * aix-thread.c: New file.
5134
5135 2002-07-12 Petr Sorfa <petrs@caldera.com>
5136
5137 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5138 complaint for invalid attribute class or form.
5139 (read_func_scope): DW_AT_frame_base
5140 better handling of DW_AT_block*.
5141 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5142 better handling of DW_AT_block*.
5143 (read_common_block): DW_AT_location
5144 better handling of DW_AT_block*.
5145 (read_partial_die): DW_AT_location better handling
5146 of DW_AT_block*.
5147 (new_symbol): DW_AT_external better handling of
5148 DW_AT_block*. Proper initialization of variable
5149 "addr".
5150 (attr_form_is_block): New function that returns true
5151 if the attribute's form is of DW_FORM_block*.
5152
5153 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5154
5155 * valops.c (find_method_list): Remove comment about
5156 removed STATIC_MEMFUNCP argument.
5157 (value_find_oload_method_list): Likewise.
5158
5159 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5160
5161 From Nicholas Duffek:
5162 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5163 target_new_objfile_hook.
5164
5165 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5166
5167 From Nicholas Duffek:
5168 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5169 csect.
5170
5171 2002-07-12 Andrew Cagney <cagney@redhat.com>
5172
5173 * MAINTAINERS: Mention --enable-sim-build-warnings.
5174 (m68hc11-elf): Disable sim build warnings.
5175 (m32r-elf): Mark as broken obsolete candidate.
5176 (x86_64-linux-gnu): Mark as buildable with -Werror.
5177 (arm-elf): Change -w to ``,'' which enables warnings but not
5178 -Werror.
5179
5180 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5181
5182 * bcache.h: Update copyright.
5183 (struct bstring, struct bcache): Move definition to "bcache.c".
5184 Replaced by opaque declaration.
5185 (bcache_xfree): Replace free_bcache.
5186 (bcache_xmalloc, bcache_memory_used): Declare.
5187
5188 * bcache.c: Update copyright.
5189 (struct bstring, struct bcache): Moved to here from "bcache.h".
5190 Update comments.
5191 (bcache_xmalloc, bcache_memory_used): New functions.
5192 (bcache_xfree): Replace function free_bcache.
5193
5194 * Makefile.in (objfiles.o): Add $(bcache_h).
5195 (objfiles_h): Remove $(bcache_h).
5196 (symfile.o): Add $(bcache_h).
5197
5198 * symmisc.c: Update copyright.
5199 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5200 (print_objfile_statistics): Use bcache_memory_used.
5201
5202 * symfile.c: Include "bcache.h".
5203 (reread_symbols): Use bcache_xfree.
5204 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5205 (add_psymbol_to_list): Pass psymbol_cache by value.
5206 (add_psymbol_with_dem_name_to_list): Ditto.
5207
5208 * objfiles.h: Update copyright.
5209 (struct bcache): Declare opaque. Do not include "bcache.h".
5210 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5211 bcache'' pointers.
5212 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5213
5214 * objfiles.c: Include "bcache.h". Update copyright.
5215 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5216 macro_cache.
5217 (free_objfile): Use bcache_xfree.
5218
5219 2002-07-11 Grace Sainsbury <graces@redhat.com>
5220
5221 * monitor.c (monitor_fetch_register): Make name a constant.
5222 (monitor_store_register): Same.
5223
5224 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5225
5226 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5227 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5228 (finish_block) For non-function blocks, hash the symbol table. For
5229 function blocks, mark the symbol table as unhashed.
5230 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5231 (msymbol_hash_iw): Likewise.
5232 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5233 value.
5234 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5235 (lookup_minimal_symbol): Likewise for both.
5236 * symtab.h (struct block): Add `hashtable' flag. Comment the
5237 hashtable.
5238 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5239 (ALL_BLOCK_SYMBOLS): Update.
5240 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5241 (struct symbol): Add `hash_next' pointer.
5242 * symtab.c (lookup_block_symbol): Search using the hash table when
5243 possible.
5244 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5245 (search_symbols, find_addr_symbol): Likewise.
5246
5247 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5248 (read_dst_symtab): Likewise.
5249 * jv-lang.c (get_java_class_symtab): Likewise.
5250 * mdebugread.c: Include "gdb_assert.h".
5251 (shrink_block): Assert that the block being modified is not hashed.
5252 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5253 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5254 symbols.
5255 (dump_symtab): Recognize hashed blocks.
5256 * printcmd.c (print_frame_args): Assert that function blocks do not
5257 have hashed symbol tables.
5258 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5259 (fill_in_ada_prototype, debug_print_block): Likewise.
5260 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5261
5262 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5263
5264 * stack.c (print_frame): Use result of frame_address_in_block()
5265 instead of fi->pc when evaluating symbols.
5266 (backtrace_command_1): Ditto.
5267
5268 2002-07-11 Andrew Cagney <cagney@redhat.com>
5269
5270 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5271 Make static.
5272
5273 * arm-tdep.c (arm_register_name): Make return type constant.
5274
5275 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5276
5277 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5278 prototype.
5279 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5280 * s390-tdep.c (s390_fp_regnum): Ditto.
5281 (s390_read_fp): Ditto.
5282 (s390_pop_frame): Ditto.
5283 (_initialize_s390_tdep): Ditto.
5284 * remote.c (get_remote_state): Ditto.
5285 * procfs.c (mappingflags): Ditto.
5286 * memattr.c (_initialize_mem): Ditto.
5287 * mcore-tdep.c (mcore_pop_frame): Ditto.
5288 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5289 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5290 * language.c (set_case_str): Ditto.
5291 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5292 * frv-tdep.c (new_variant): Ditto.
5293 (frv_stopped_data_address): Ditto.
5294 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5295 (context_alloc): Ditto.
5296 (frame_state_alloc): Ditto.
5297 (unwind_tmp_obstack_init): Ditto.
5298 (unwind_tmp_obstack_free): Ditto.
5299 (cfi_read_fp): Ditto.
5300 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5301 (cris_pop_frame): Ditto.
5302 * c-lang.c (scanning_macro_expansion): Ditto.
5303 (finished_macro_expansion): Ditto.
5304 (c_preprocess_and_parse): Ditto.
5305 * gdbarch.sh: Ditto.
5306 * gdbarch.h, gdbarch.c: Regenerate.
5307 * config/mn10200/tm-mn10200.h: Adjust indentation.
5308 * target.c: Adjust indentation.
5309 * symtab.h: Adjust indentation.
5310 * stabsread.h: Adjust indentation.
5311 * remote-es.c: Adjust indentation.
5312 * os9kread.c: Adjust indentation.
5313
5314 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5315
5316 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5317 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5318
5319 2002-07-10 Grace Sainsbury <graces@redhat.com>
5320
5321 * NEWS: Mention m68k, mcore multi-arching.
5322 * MAINTAINERS: Change status of m68k, mcore to reflect
5323 multi-arching.
5324
5325 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5326
5327 * valops.c (find_overload_match): Free oload_syms.
5328
5329 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5330
5331 Define HAVE_SYS_PROC_H if sys/proc.h exists
5332 * configure.in: Add check for sys/proc.h
5333 * config.in: Regenerate.
5334 * configure: Regenerate.
5335
5336 2002-07-09 Grace Sainsbury <graces@redhat.com>
5337
5338 * config/m68k/tm-m68k.h: Remove macros wrapped in
5339 #if !GDB_MULTI_ARCH.
5340
5341 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5342
5343 * config.in, configure: Regenerate.
5344
5345 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5346
5347 * dwarf2cfi.c: Include "gcore.h".
5348 (execute_stack_op): Fix implementation of the
5349 DW_OP_deref and DW_OP_deref_size operators by letting do their
5350 lookup in the target.
5351
5352 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5353
5354 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5355 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5356 tdep->sc_sp_offset.
5357
5358 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5359
5360 Fix PR gdb/595, gdb/602
5361 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5362 Don't call value_cast, just read the vtable pointer; update comments
5363 to match.
5364
5365 2002-07-05 Grace Sainsbury <graces@redhat.com>
5366
5367 * config/mcore/tm-mcore.h: Remove file.
5368 * config/mcore/mcore.mt: Remove definition of TM_FILE
5369 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5370
5371 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5372
5373 * i386bsd-tdep.c: Include "gdb_string.h".
5374
5375 2002-07-04 Grace Sainsbury <graces@redhat.com>
5376
5377 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5378 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5379 mcore-tdep.
5380 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5381 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5382 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5383 (RETVAL_REGNUM): Move macros from tm-mcore.h
5384 (mcore_reg_struct_has_addr): New function.
5385 (mcore_gdbarch_init): Added initializations for the macros removed
5386 from tm-mcore.h.
5387
5388 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5389
5390 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5391 traditonal string branding within the ELF header.
5392
5393 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5394
5395 * symtab.c (remove_params): New function.
5396 (make_symbol_overload_list): Use it instead of cplus_demangle.
5397 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5398
5399 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5400
5401 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5402
5403 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5404 New variables.
5405 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5406 and tdep->sigtramp_end.
5407 * i386obsd-nat.c: New file.
5408 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5409
5410 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5411 Don't call get_current_frame().
5412
5413 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5414
5415 * i386-nat.c (child_post_startup_inferior): New function
5416 calling i386_cleanup_dregs if
5417 I386_USE_GENERIC_WATCHPOINTS is defined.
5418 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5419 conditional to acknowledge that i386-nat.c has its
5420 own child_post_startup_inferior function.
5421
5422 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5423
5424 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5425 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5426 instead of MAX_REGISTER_RAW_SIZE.
5427 (i386_extract_return_value, i386_extract_struct_value_address):
5428 Convert to use regcache.
5429 (i386_gdbarch_init): Set max_register_raw_size and
5430 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5431 Set extract_return_value and extract_struct_value_address instead
5432 of their deprecated variants.
5433
5434 Convert i386 target to generic dummy frames.
5435 * i386-tdep.c: Include "symfile.h".
5436 (i386_frameless_signal_p): Consider a function to be frameless if
5437 the pc points at the first instruction of the function.
5438 (i386_frame_chain): Handle (generic) call dummies.
5439 (i386_frame_saved_pc): Likewise.
5440 (i386_frame_init_saved_regs): Remove code dealing with call
5441 dummies on the stack.
5442 (i386_push_dummy_frame): Removed.
5443 (i386_call_dummy_words): Removed.
5444 (i386_fix_call_dummy): Removed.
5445 (i386_push_return_address): New function.
5446 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5447 parameter, and don't call get_current_frame.
5448 (i386_pop_frame): New function.
5449 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5450 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5451 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5452 call_dummy_length to 0, set call_dummy_words to NULL, set
5453 sizeof_call_dummy_words to 0, set fix_call_dummy to
5454 generic_fix_call_dummy, set pc_in_call_dummy to
5455 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5456 generic_push_dummy_frame, set push_return_address to
5457 i386_push_return_address and set frame_chain_valid to
5458 generic_file_frame_chain_valid.
5459
5460 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5461
5462 * gdbarch.sh (struct regcache): Add opaque declaration.
5463 (EXTRACT_RETURN_VALUE): New architecture method.
5464 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5465 * gdbarch.h, gdbarch.c: Regenerate.
5466 * arch-utils.c (legacy_extract_return_value): New function.
5467 * arch-utils.h (legacy_extract_return_value): Declare.
5468 * values.c (value_being_returned): Re-enable code handling
5469 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5470 deprecated_grub_regcache_for_registers call to block handling
5471 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5472 (EXTRACT_RETURN_VALUE): Do not define.
5473
5474 2002-07-03 Grace Sainsbury <graces@redhat.com>
5475
5476 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5477 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5478 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5479 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5480 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5481 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5482 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5483 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5484 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5485 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5486 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5487 argument so the function fits the prototype in the architecture
5488 vector.
5489 (mcore_pop_frame): Remove argument so the function fits the
5490 prototype. Use get_current_frame instead of the argument.
5491 (mcore_push_arguments): Change type of struct_return so the
5492 function can be used in the architecture vector.
5493 (mcore_store_struct_return): Add.
5494 (mcore_frame_init_saved_regs): Add.
5495 (mcore_gdbarch_init): Add function calls to replace the macros
5496 removed from tm-mcore.h
5497
5498 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5499
5500 * infcmd.c (print_return_value): Remove compatibility code calling
5501 deprecated_grub_regcache_for_registers.
5502
5503 * values.c: Include "regcache.h".
5504 (value_being_returned): Update. Use
5505 deprecated_grub_regcache_for_registers to extract the register
5506 buffer address.
5507 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5508 ``struct regcache''.
5509 * Makefile.in (values.o): Add dependency on $(regcache_h).
5510
5511 * inferior.h (run_stack_dummy): Change type of second parameter to
5512 a ``struct regcache''.
5513 * valops.c (hand_function_call): Change type of retbuf to ``struct
5514 regcache''. Allocate using regcache_xmalloc, clean using
5515 make_cleanup_regcache_xfree.
5516 * infcmd.c (run_stack_dummy): Update. Use
5517 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5518
5519 * regcache.c (do_regcache_xfree): New function.
5520 (make_cleanup_regcache_xfree): New function.
5521 * regcache.h (make_cleanup_regcache_xfree): Declare.
5522
5523 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5524
5525 * event-top.c (command_line_handler): Don't read past
5526 beginning of buffer.
5527
5528 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5529
5530 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5531 struct frame_id.
5532 (varobj_create): Store frame_id for root.
5533 (varobj_gen_name): Use xasprintf.
5534 (varobj_update): Save and restore frame using get_frame_id() and
5535 frame_find_by_id().
5536 (create_child): Use xasprintf.
5537 (new_root_variable): Initialize frame_id.
5538 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5539 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5540 to prevent memory leak.
5541
5542 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5543
5544 * valops.c (hand_function_call): Move declaration of retbuf to
5545 start of function, allocate using malloc, add a cleanup but before
5546 the inf_status cleanup, cleanup the buffer. Rename local variable
5547 old_chain to inf_status_cleanup.
5548
5549 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5550
5551 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5552
5553 * cli/cli-decode.c (cmd_func_p): New function.
5554 (cmd_func): New function.
5555
5556 * command.h: Add cmd_func() and cmd_func_p().
5557
5558 2002-07-03 Grace Sainsbury <graces@redhat.com>
5559
5560 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5561 (REGISTER_SIZE): Remove.
5562 (MAX_REGISTER_RAW_SIZE): Remove.
5563 (REGISTER_VIRTUAL_TYPE): Remove.
5564 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5565 (REGISTER_NAME): Remove.
5566 (USE_GENERIC_DUMMY_FRAMES): Remove.
5567 (CALL_DUMMY): Remove.
5568 (CALL_DUMMY_START_OFFSET): Remove.
5569 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5570 (CALL_DUMMY_LOCATION): Remove.
5571 (FIX_CALL_DUMMY): Remove.
5572 (CALL_DUMMY_ADDRESS): Remove.
5573 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5574 (SAVE_DUMMY_FRAME_TOS): Remove.
5575 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5576 (mcore_register_virtual_type): New function.
5577 (mcore_register_byte): New function.
5578 (mcore_register_size): New function.
5579 (mcore_register_name): New function.
5580 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5581 macros removed from tm-mcore.h.
5582 (mcore_dump_tdep): Add.
5583 (_initialize_mcore_tdep): Add gdbarch_register call.
5584
5585 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5586
5587 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5588 frameless_look_for_prologue, such that we actually call this
5589 function.
5590
5591 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5592
5593 * frame.h (frame_address_in_block): New function.
5594
5595 * blockframe.c (frame_address_in_block): New function extracted
5596 from get_frame_block().
5597 (get_frame_block): Use frame_address_in_block().
5598 (block_innermost_frame): Use frame_address_in_block() to match
5599 the frame pc address against the block boundaries rather than
5600 the frame pc directly. This prevents a failure when a frame pc
5601 is actually a return-address pointing immediately after the end
5602 of the given block.
5603
5604 2002-07-02 Grace Sainsbury <graces@redhat.com>
5605
5606 * MAINTAINERS: Add self under write after approval.
5607
5608 2002-07-02 Grace Sainsbury <graces@redhat.com>
5609
5610 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5611 used in architecture vector. The default is
5612 m68k_local_breakpoint_from_pc.
5613 (m68k_local_breakpoint_from_pc): Add.
5614 (enum): Add register numbers from tm-m68k.h.
5615 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5616 vector.
5617 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5618 GDB_MULTI_ARCH_PARTIAL.
5619 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5620 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5621 m68k-tdep.c.
5622 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5623 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5624 to enum in m68k-tdep.c
5625
5626 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5627
5628 * solib-osf.c (open_map): Compute the list of shared libraries
5629 loaded by the inferior, rather than the list of libraries loaded
5630 by GDB itself. Otherwise, GDB ends up reading the symbols from
5631 the wrong shared libraries...
5632
5633 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5634
5635 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5636 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5637 macros.
5638 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5639 Remove functions.
5640 (FRAMELESS_SIGNAL): Remove function.
5641 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5642 i386_linux_saved_pc_after_call): Removed.
5643 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5644 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5645 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5646
5647 * i386-tdep.c (i386_frameless_signal_p): New function.
5648 (i386_frame_chain): Deal with frameless signals.
5649 (i386_sigtramp_saved_sp): New function.
5650 (i386_frame_saved_pc): Deal with frameless signals.
5651 (i386_saved_pc_after_call): Make sure the correct value is
5652 returned just after entry into a sigtramp.
5653 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5654 i386fbsd4_sc_sp_offset): New variables.
5655 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5656 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5657 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5658 similiar to what we already did for sc_pc_offset.
5659 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5660 tdep->sc_sp_offset.
5661
5662 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5663
5664 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5665
5666 * config/i386/tm-x86-64linux.h: New.
5667 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5668 definitions.
5669 * config/i386/nm-x86-64.h: Rename to ...
5670 * config/i386/nm-x86-64linux.h: ... this one.
5671 * config/i386/x86-64linux.mh: Reflect the above change.
5672
5673 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5674
5675 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5676 with sigcontext_addr. Add sc_sp_offset.
5677 (i386bsd_sigtramp_saved_pc): Remove prototype.
5678 (i386bsd_sicontext_addr): Add prototype.
5679 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5680 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5681 (i386_svr4_sigtramp_saved_pc): Removed.
5682 (i386_svr4_sigcontext_addr): New function.
5683 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5684 Initialize tdep->sigcontext_addr instead. Initialize
5685 tdep->sc_pc_offset and tdep->sc_sp_offset.
5686 (i386_gdbarch_init): Likewise.
5687 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5688 any more.
5689 (i386bsd_sigtramp_saved_pc): Remove function.
5690 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5691 Initialize tdep->sigcontext_addr instead. Initialize
5692 tdep->sc_pc_offset.
5693 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5694 of tdep->sigtramp_saved_pc.
5695 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5696 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5697 instead.
5698
5699 * i386-tdep.c (i386_frameless_function_invocation,
5700 i386_frame_num_args, i386_frame_init_saved_regs,
5701 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5702 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5703 i386_extract_return_value, i386_store_return_value,
5704 i386_extract_struct_value_address, i386_register_virtual_type,
5705 i386_register_convertible, i386_register_convert_to_virtual,
5706 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5707 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5708 static.
5709
5710 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5711
5712 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5713
5714 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5715 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5716 this macro. Include "value.h".
5717
5718 2002-06-30 Aidan Skinner <aidan@velvet.net>
5719
5720 * ada-exp.tab.c: remove as it's a generated file
5721 * ada-lex.c: remove as it's a generated file
5722
5723 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5724
5725 * config/i386/tm-i386.h (struct frame_info, struct
5726 frame_saved_regs, struct value, struct type): Remove forward
5727 declarations.
5728
5729 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5730 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5731 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5732 (FILL_FPXREGSET): Define.
5733
5734 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5735
5736 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5737 i[3456]86-*-netbsd* case.
5738 * config/i386/tm-obsd.h: Removed.
5739 * config/i386/obsd.mt: Removed.
5740 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5741 core-aout.o.
5742 (MH_CFLAGS): Add -DYYDEBUG=0.
5743
5744 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5745 i386nbsd_sc_pc_offset on OpenBSD too.
5746
5747 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5748 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5749 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5750 define.
5751 * i386bsd-tdep.c: Include "arch-utils.h".
5752 (i386bsd_aout_in_solib_call_trampoline): New function.
5753 (i386bsd_init_abi): Set in_solib_call_trampoline to
5754 i386bsd_aout_in_solib_call_trampoline.
5755 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5756 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5757
5758 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5759
5760 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5761 (struct obstack, struct bcache): Add opaque declarations.
5762 * Makefile.in (macrotab_h): Update
5763
5764 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5765
5766 * blockframe.c (generic_find_dummy_frame): Change return type to
5767 ``struct regcache''.
5768 (struct dummy_frame): Replace field ``registers'' with regcache, a
5769 struct regcache object.
5770 (generic_find_dummy_frame): Update.
5771 (generic_push_dummy_frame): Update. Use regcache_xfree,
5772 regcache_xmalloc and regcache_cpy.
5773 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5774 regcache_xfree.
5775 (deprecated_generic_find_dummy_frame): Update.
5776 (generic_read_register_dummy): Update. Use
5777 regcache_read_as_address.
5778 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5779 (generic_get_saved_register): Update. Use regcache_read.
5780
5781 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5782
5783 * Makefile.in (objfiles_h): Add $(bcache_h).
5784 * objfiles.h: Include "bcache.h".
5785
5786 * Makefile.in (symtab_h): Remove $(bcache_h).
5787 * symtab.h: Do not include "bcache.h".
5788
5789 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5790
5791 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5792 generic_func_frame_chain_valid.
5793
5794 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5795
5796 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5797 * config/i386/tm-fbsd.h: Likewise.
5798
5799 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5800
5801 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5802 generic_unwind_get_saved_register.
5803
5804 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5805
5806 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5807 * regcache.c (supply_register): Add missing argument to
5808 register_buffer call.
5809
5810 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5811
5812 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5813 Solaris /bin/grep does not not like it. From Peter Schauer.
5814
5815 2002-06-26 Tom Tromey <tromey@redhat.com>
5816
5817 * command.h (add_setshow_cmd): Declare.
5818 (add_setshow_cmd_full): Declare.
5819 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5820 returns void. Use add_setshow_cmd_full.
5821 (add_setshow_cmd_full): New function.
5822 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5823 (add_setshow_boolean_cmd): Likewise.
5824
5825 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5826
5827 * config/vax/tm-vax.h: Protect from multiple inclusion.
5828 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5829 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5830 * config/vax/tm-vaxbsd.h: ...here. New file.
5831 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5832
5833 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5834
5835 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5836 (BELIEVE_PCC_PROMOTION): Remove.
5837 (AP_REGNUM): Move to...
5838 * config/vax/nm-vax.h: ...here.
5839 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5840 (vax_breakpoint_from_pc): New function.
5841 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5842 and gdbarch_believe_pcc_promotion.
5843
5844 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5845
5846 * Makefile.in (vax_tdep_h): Define.
5847 (vax-tdep.o): Use $(vax_tdep_h).
5848 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5849 (vax_dump_tdep): New function.
5850 (_initialize_vax_tdep): Register vax_dump_tdep.
5851 * vax-tdep.h: Include osabi.h.
5852 (struct gdbarch_tdep): New.
5853
5854 2002-06-26 Andrew Cagney <cagney@redhat.com>
5855
5856 * frame.h (deprecated_generic_find_dummy_frame): Rename
5857 generic_find_dummy_frame.
5858 * blockframe.c (generic_find_dummy_frame): Make static.
5859 (deprecated_generic_find_dummy_frame): New function.
5860 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5861 generic_find_dummy_frame with deprecated_find_dummy_frame.
5862 (sh64_nofp_frame_init_saved_regs): Ditto.
5863 (sh_fp_frame_init_saved_regs): Ditto.
5864 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5865 (s390_frame_chain): Ditto.
5866 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5867
5868 2002-06-26 Grace Sainsbury <graces@redhat.com>
5869
5870 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5871 gdbarch vector are at the top.
5872 (NUM_REGS): Remove.
5873 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5874 (FRAME_ARGS_ADDRESS): Remove.
5875 (FRAME_LOCALS_ADDRESS): Remove.
5876 (FRAME_NUM_ARGS): Remove.
5877 (FRAME_ARGS_SKIP): Remove.
5878 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5879 (m68k_gdbarch_init): Add gdbarch initializations for macros
5880 undefined in tm-m68k.h
5881
5882 2002-06-26 Grace Sainsbury <graces@redhat.com>
5883
5884 * monitor.h: Add the function regname to monitor_ops
5885 structure. This way NUM_REGS does not have to be a constant.
5886 * monitor.c (monitor_fetch_register): Added support for regname
5887 function. The function is called if the array regnames is NULL.
5888 (monitor_store_register): Same.
5889 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5890 regnames array.
5891 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5892 cpu32bug_cmds.regname to point to new function.
5893 * abug-rom.c (abug_regname): Same as above.
5894 (init_abug_cmds): Same.
5895 * dbug-rom.c (dbug_regname): Same as above.
5896 (init_dbug_cmds): Same.
5897 * remote-est.c (est_regname): Same.
5898 (init_est_cmds): Same.
5899 * rom68k-rom.c (rom68k_regname): Same.
5900 (init_rom68k_cmds): Same.
5901
5902 2002-06-25 Tom Tromey <tromey@redhat.com>
5903
5904 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5905
5906 2002-06-25 Andrew Cagney <cagney@redhat.com>
5907
5908 * infrun.c (stop_registers): Change variable's type to ``struct
5909 regcache'''.
5910 (xmalloc_inferior_status): Delete function.
5911 (free_inferior_status): Delete function.
5912 (normal_stop): Use regcache_cpy.
5913 (struct inferior_status): Change type of fields ``stop_registers''
5914 and ``registers'' to ``struct regcache''.
5915 (write_inferior_status_register): Use regcache_write.
5916 (save_inferior_status): Instead of calling
5917 xmalloc_inferior_status, allocate the inf_status buffer directly.
5918 Use regcache_dup_no_passthrough and regcache_dup to save the
5919 buffers.
5920 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5921 Replace the stop_registers regcache instead of overriding it. Use
5922 regcache_xfree. Instead of calling free_inferior_status, xfree
5923 the buffer directly.
5924 (discard_inferior_status): Use regcache_xfree. Instead of calling
5925 free_inferior_status, xfree the buffer directly.
5926 (build_infrun): Use regcache_xmalloc.
5927 (_initialize_infrun): Delete redundant call to build_infrun.
5928
5929 * Makefile.in (infcmd.o): Add $(regcache_h).
5930
5931 * infcmd.c: Include "regcache.h".
5932 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5933 obtain the address of `stop_registers' register buffer.
5934 (print_return_value): Ditto.
5935
5936 * inferior.h (struct regcache): Add opaque declaration.
5937 (stop_registers): Change variable's declared type to ``struct
5938 regcache''.
5939
5940 2002-06-24 Tom Tromey <tromey@redhat.com>
5941
5942 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5943 * target.c (initialize_targets): Fixed typo in
5944 trust-readonly-sections `show' documentation.
5945
5946 * main.c: Marked all strings with _().
5947
5948 2002-06-24 Don Howard <dhoward@redhat.com>
5949
5950 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5951 that means max CORE_ADDR+1.
5952 (lookup_mem_region): Ditto.
5953 (mem_info_command): Ditto.
5954
5955 2002-06-24 Grace Sainsbury <graces@redhat.com>
5956
5957 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5958 (REGISTER_BYTES_OK): Remove.
5959 (REGISTER_BYTES): Remove.
5960 (STORE_STRUCT_RETURN): Remove.
5961 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5962 (STORE_RETURN_VALUE): Remove.
5963 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5964 (FRAME_CHAIN): Remove.
5965 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5966 (FRAME_SAVED_PC): Remove.
5967 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5968 (m68k_store_struct_return): Add.
5969 (m68k_deprecated_extract_return_value): Add.
5970 (m68k_deprecated_extract_struct_value_address): Add.
5971 (m68k_store_return_value): Add.
5972 (m68k_frame_chain): Add.
5973 (m68k_frameless_function_invocation): Add.
5974 (m68k_frame_saved_pc): Add.
5975 (m68k_gdbarch_init): added set_gdbarch calls for new
5976 functions and deleted macros.
5977
5978 2002-06-23 Tom Tromey <tromey@redhat.com>
5979
5980 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5981 (ALLDEPFILES): Likewise.
5982 (udiheaders): Removed.
5983 (udip2soc.o): Likewise.
5984 (udi2go32.o): Likewise.
5985 (udr.o): Likewise.
5986 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5987
5988 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5989
5990 * infrun.c (_initialize_infrun): Delete unnecessary call to
5991 build_infrun.
5992
5993 * regcache.h: Update comments describing the regcache_cpy family
5994 of functions.
5995 (regcache_save, regcache_restore): Delete declaration.
5996 (regcache_save_no_passthrough): Delete declaration.
5997 (regcache_restore_no_passthrough): Delete declaration.
5998 * regcache.c (regcache_save): Delete function.
5999 (regcache_save_no_passthrough): Delete function.
6000 (regcache_restore): Delete function.
6001 (regcache_restore_no_passthrough): Delete function.
6002
6003 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6004
6005 * config/m68k/tm-m68k.h: Fix typo.
6006 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6007 (m68k_frame_init_saved_regs): Declare.
6008
6009 2002-06-21 Jim Blandy <jimb@redhat.com>
6010
6011 Remove some vestiges of Harris 88k support.
6012 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6013 register numbering quirk.
6014 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6015 odd symbols occurring in Harris 88k ELF targets.
6016
6017 2002-06-21 Tom Tromey <tromey@redhat.com>
6018
6019 * gdb_locale.h: New file.
6020 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6021 (defs_h): Added gdb_locale.h.
6022 * configure, config.in: Rebuilt.
6023 * configure.in (PACKAGE): Define.
6024 * defs.h: Include gdb_locale.h.
6025 * main.c (captured_main): Call setlocale, bindtextdomain,
6026 textdomain.
6027
6028 2002-06-21 Dave Brolley <brolley@redhat.com>
6029
6030 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6031 * config/frv/frv.mt: New file.
6032 * config/frv/tm-frv.h: New file.
6033 * configure.tgt: Support frv-*-*.
6034 * Makefile.in (frv-tdep.o): New target.
6035 * frv-tdep.c: New file.
6036 * NEWS: Mention frv.
6037
6038 2002-06-21 Dave Brolley <brolley@redhat.com>
6039
6040 * MAINTAINERS: Add self to "Write After Approval" list.
6041
6042 2002-06-21 Grace Sainsbury <graces@redhat.com>
6043
6044 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6045 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6046 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6047 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6048 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6049
6050 * m68k-tdep.c: Include arch-utils.h
6051 (m68k_register_raw_size): Add.
6052 (m68k_register_virtual_size): Add.
6053 (m68k_register_virtual_type): Add.
6054 (m68k_register_name): Add.
6055 (m68k_stack_align): Add.
6056 (m68k_register_byte): Add.
6057 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6058 tm-m68k.h.
6059
6060 2002-06-21 Grace Sainsbury <graces@redhat.com>
6061
6062 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6063 m68k_find_saved_regs.
6064 (m68k_pop_frame): Removed saved_regs structure, and replaced
6065 references to it with frame->saved_regs.
6066 (m68k_gdbarch_init): Added function calls to initialize the
6067 gdbarch structure.
6068 (m68k_fix_call_dummy): Add.
6069 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6070 (CALL_DUMMY): Remove.
6071 (CALL_DUMMY_LENGTH): Remove.
6072 (CALL_DUMMY_START_OFFSET): Remove.
6073 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6074 (FIX_CALL_DUMMY): Remove.
6075 (PUSH_DUMMY_FRAME): Remove.
6076 (POP_FRAME): Remove.
6077
6078 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6079
6080 * parse.c (parse_fprintf): New function used to avoid calls to
6081 fprintf in bison parser generated debug code.
6082 * parser-defs.h: Declaration of new parse_fprintf function.
6083 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6084 Set YYDEBUG to 1 by default.
6085 Set YYFPRINTF as parse_fprintf.
6086
6087 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6088
6089 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6090 encoding anymore.
6091 (pointer_encoding, enum ptr_encoding): New.
6092 (execute_cfa_program): Take care about pointer encoding.
6093 (dwarf2_build_frame_info): Only call parse_frame_info for
6094 .debug_frame and .eh_frame.
6095 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6096 fixed augmentation handling, added relative addressing,
6097 ignore duplicate FDEs. Added comments.
6098 * dwarf2cfi.c: Reindented.
6099
6100 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6101
6102 * event-top.c (command_handler): Don't use space_at_cmd_start
6103 unless there is sbrk() on the host. Assign time and space data
6104 to union fields of the appropriate length.
6105
6106 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6107
6108 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6109 x86_64_register_name. Return type changed to 'const char *'.
6110 (x86_64_register_name2nr): Rename to x86_64_register_number.
6111 (x86_64_gdbarch_init): Update to reflect the change.
6112 * x86-64-tdep.h: Ditto.
6113 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6114 (supply_fpregset): Ditto.
6115
6116 2002-06-19 Andrew Cagney <cagney@redhat.com>
6117
6118 * regcache.h: Update copyright.
6119 (struct regcache, struct gdbarch): Add opaque declarations.
6120 (current_regcache): Declare global variable.
6121 (regcache_read, regcache_write): Add gdbarch parameter.
6122 (regcache_save, regcache_save_no_passthrough)
6123 (regcache_restore, regcache_restore_no_passthrough)
6124 (regcache_dup, regcache_dup_no_passthrough)
6125 (regcache_cpy, regcache_cpy_no_passthrough)
6126 (deprecated_grub_regcache_for_registers)
6127 (deprecated_grub_regcache_for_register_valid)
6128 (regcache_valid_p): Add function declarations.
6129
6130 * regcache.c: Update copyright.
6131 (regcache_descr_handle): New global variable.
6132 (struct regcache_descr): Define.
6133 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6134 (regcache_descr, xfree_regcache_descr): New functions.
6135 (struct regcache): Define.
6136 (regcache_xmalloc, regcache_xfree): New functions.
6137 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6138 (regcache_dup, regcache_dup_no_passthrough): New functions.
6139 (regcache_valid_p, regcache_read_as_address): New functions.
6140 (deprecated_grub_regcache_for_registers): New function.
6141 (deprecated_grub_regcache_for_register_valid): New function.
6142 (current_regcache): New global variable.
6143 (register_buffer): Add regcache parameter. Update calls.
6144 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6145 (read_register_gen, write_register_gen): Update register_buffer
6146 call. Test for legacy_p instead of gdbarch_register_read_p or
6147 gdbarch_register_write_p.
6148 (regcache_collect): Update register_buffer call.
6149 (build_regcache): Rewrite. Use deprecated grub functions.
6150 (regcache_save, regcache_save_no_passthrough): New functions.
6151 (regcache_restore, regcache_restore_no_passthrough): New
6152 functions.
6153 (_initialize_regcache): Create the regcache_data_handle. Swap
6154 current_regcache global variable.
6155
6156 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6157 parameter to regcache_read and regcache_write calls.
6158 (sh4_register_read): Ditto.
6159 (sh64_pseudo_register_read): Ditto.
6160 (sh64_register_read): Ditto.
6161 (sh_pseudo_register_write): Ditto.
6162 (sh4_register_write): Ditto.
6163 (sh64_pseudo_register_write): Ditto.
6164 (sh64_register_write): Ditto.
6165
6166 * defs.h (XCALLOC): Define.
6167
6168 2002-06-19 Grace Sainsbury <graces@redhat.com>
6169
6170 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6171 * m68k-tdep.c (m68k_gdbarch_init): Added.
6172 (m68k_dump_tdep): Added.
6173
6174 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6175
6176 * ada-lang.c (fill_in_ada_prototype): Update comment.
6177
6178 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6179
6180 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6181 MIPS_ABI_LAST.
6182 (mips_abi_string, mips_abi_strings): New.
6183 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6184 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6185 tdep->mips_abi_string. Honor mips_abi_string. Default to
6186 O32 if no ABI is found.
6187 (mips_dump_tdep): Use mips_abi_strings.
6188 (mips_abi_update): New function.
6189 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6190 ``set mips abi'' and ``show mips abi''. Check the size of
6191 mips_abi_strings.
6192
6193 2002-06-19 Andrew Cagney <cagney@redhat.com>
6194
6195 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6196 constant.
6197
6198 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6199
6200 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6201 current frame using only the first stack size adjustment. All
6202 subsequent size adjustments are not considered to be part of
6203 the "static" part of the current frame.
6204 Compute the address of the saved registers relative to the
6205 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6206 in use in this frame.
6207
6208 2002-06-18 Don Howard <dhoward@redhat.com>
6209
6210 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6211 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6212 suggesting this solution.
6213
6214 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6215
6216 * config/romp/xm-rtbsd.h: Delete file.
6217 * config/romp/rtbsd.mh: Delete file.
6218
6219 2002-06-18 Keith Seitz <keiths@redhat.com>
6220
6221 * breakpoint.c (condition_command): Post breakpoint_modify
6222 when a condition is added to an existing breakpoint.
6223 (commands_command): Likewise for commands.
6224 (set_ignore_count): Likewise for ignore counts.
6225 If no tty, do not simply return, still need to send event
6226 notification.
6227 (ignore_command): Only print a newline if the command came
6228 from a tty.
6229 Don't call breakpoints_changed, since this is now properly
6230 handled by set_ignore_count.
6231
6232 2002-06-18 Andrew Cagney <cagney@redhat.com>
6233
6234 * MAINTAINERS: Note that cris-elf target can be compiled with
6235 -Werror.
6236 * cris-tdep.c (cris_register_name): Make return type constant.
6237 (cris_breakpoint_from_pc): Ditto.
6238
6239 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6240
6241 * frame.h (struct frame_info): Change type of context to
6242 'struct context'.
6243
6244 2002-06-17 Andrew Cagney <cagney@redhat.com>
6245
6246 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6247 pointer.
6248 * gdbarch.h, gdbarch.c: Regenerate.
6249 * config/mips/tm-mips.h (mips_register_name): Update.
6250 * i386-tdep.h (i386_register_name): Update.
6251 * mips-tdep.c (mips_register_name): Update
6252 * alpha-tdep.c (alpha_register_name): Update.
6253 * arch-utils.c (legacy_register_name): Update.
6254 * arch-utils.h (legacy_register_name): Update.
6255 * avr-tdep.c (avr_register_name): Update.
6256 * ia64-tdep.c (ia64_register_name): Update.
6257 * i386-tdep.c (i386_register_name): Update.
6258 * sparc-tdep.c (sparc32_register_name): Update.
6259 (sparc64_register_name): Update.
6260 (sparclite_register_name): Update.
6261 (sparclet_register_name): Update.
6262 * sh-tdep.c (sh_generic_register_name): Update.
6263 (sh_sh_register_name): Update.
6264 (sh_sh3_register_name): Update.
6265 (sh_sh3e_register_name): Update.
6266 (sh_sh_dsp_register_name): Update.
6267 (sh_sh3_dsp_register_name): Update.
6268 (sh_sh4_register_name): Update.
6269 (sh_sh64_register_name): Update.
6270 * s390-tdep.c (s390_register_name): Update.
6271 * rs6000-tdep.c (rs6000_register_name): Update.
6272 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6273 (ns32k_register_name_32382): Update.
6274 * d10v-tdep.c (d10v_ts2_register_name): Update.
6275 (d10v_ts3_register_name): Update.
6276 * xstormy16-tdep.c (xstormy16_register_name): Update.
6277 * vax-tdep.c (vax_register_name): Update.
6278 * v850-tdep.c (v850_register_name): Update.
6279 * m68hc11-tdep.c (m68hc11_register_name): Update.
6280 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6281 (am33_register_name): Update.
6282
6283 2002-06-17 Grace Sainsbury <graces@redhat.com>
6284
6285 * m68k-tdep.c: Reindented.
6286
6287 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6288
6289 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6290 list of predefined types.
6291
6292 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6293
6294 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6295 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6296 REGISTER_CONVERT_TO_RAW): Remove defines.
6297 (i386_register_virtual_type, i386_register_convertible,
6298 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6299 Remove prototypes.
6300 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6301 macros mentioned above.
6302
6303 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6304 (i386lynx_saved_pc_after_call): Remove prototype.
6305 * i386ly-tdep.c: Include "i386-tdep.h".
6306 (i386lynx_saved_pc_after_call): Make static. Use
6307 read_memory_nobpt instead of read_memory. Use
6308 read_memory_unsigned_integer instead of read_memory_integer.
6309 (i386lynx_init_abi): New function.
6310 (i386lynx_coff_osabi_sniffer): New function.
6311 (_initialize_i386bsd_tdep): New function.
6312
6313 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6314 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6315 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6316 (i386_fix_call_dummy): Remove prototype.
6317 * i386-tdep.c (i386_call_dummy_words): New variable.
6318 (i386_gdbarch_init): Adjust for removal of the
6319 macros mentioned above.
6320
6321 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6322
6323 * command.h (add_setshow_auto_boolean_cmd): Replace
6324 add_set_auto_boolean_cmd.
6325 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6326 add_set_auto_boolean_cmd.
6327 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6328 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6329 mask-address'' command.
6330 (show_mask_address): Add cmd parameter.
6331 * remote.c (add_packet_config_cmd): Update. Change type of
6332 set_func and show_func to cmd_sfunc_ftype.
6333 (_initialize_remote): Update `set remote Z-packet'
6334 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6335 (show_remote_protocol_e_packet_cmd): Ditto.
6336 (show_remote_protocol_E_packet_cmd): Ditto.
6337 (show_remote_protocol_P_packet_cmd): Ditto.
6338 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6339 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6340 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6341 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6342 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6343 (show_remote_protocol_Z_packet_cmd): Ditto.
6344 (show_remote_protocol_binary_download_cmd): Ditto.
6345 (show_remote_cmd): Pass NULL to all of above.
6346
6347 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6348
6349 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6350 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6351 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6352 POP_FRAME): Remove defines.
6353 (i386_push_arguments, i386_store_struct_return,
6354 i386_extract_return_value, i386_store_return_value,
6355 i386_extract_struct_value_address, i386_push_dummy_frame,
6356 i386_pop_frame): Renove prototypes.
6357 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6358 macros mentioned above.
6359
6360 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6361
6362 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6363 add_set_boolean_cmd.
6364 (add_setshow_cmd): New function.
6365 * command.h (add_setshow_boolean_cmd): Replace
6366 add_set_boolean_cmd.
6367 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6368 and ``set rdiromatzero''.
6369 * maint.c (_initialize_maint_cmds): Update commented out code.
6370 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6371 * target.c (initialize_targets): Update `set
6372 trust-readonly-sections'.
6373 * remote.c (_initialize_remote): Update `set remotebreak'.
6374
6375 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6376
6377 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6378 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6379 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6380 fit into multi-arch framework.
6381 (i386_breakpoint_from_pc): New function.
6382 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6383 above.
6384
6385 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6386 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6387 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6388 (i386_frameless_function_invocation, i386_frame_num_args,
6389 i386_frame_init_saved_regs): Remove prototypes.
6390 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6391 macros mentioned above.
6392
6393 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6394
6395 * cli/cli-decode.c (set_cmd_cfunc): Update.
6396 (set_cmd_sfunc): Update.
6397 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6398 (set_cmd_sfunc, set_cmd_cfunc): Update.
6399 * cli/cli-decode.h: Update.
6400
6401 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6402
6403 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6404 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6405
6406 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6407
6408 * defs.h (auto_boolean): Declare enum.
6409 * command.h (cmd_auto_boolean): Delete enum.
6410 * mips-tdep.c (mask_address_var): Update.
6411 (mips_mask_address_p): Update.
6412 (show_mask_address): Update.
6413 * remote.c (struct packet_config): Update.
6414 (update_packet_config): Update.
6415 (show_packet_config_cmd): Update.
6416 (packet_ok): Update.
6417 (add_packet_config_cmd): Update.
6418 (_initialize_remote):
6419 * command.h: Update.
6420 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6421 (do_setshow_command): Update.
6422 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6423 * cli/cli-decode.h: Update.
6424
6425 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6426
6427 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6428 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6429 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6430 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6431 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6432 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6433
6434 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6435 list of DJGPP COFF targets.
6436
6437 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6438 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6439 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6440 (FP0_REGNUM): Remove define.
6441 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6442 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6443 (i386_register_virtual_size): Remove protoype.
6444 * i386-tdep.c (i386_register_virtual_size): Removed.
6445 (i386_extract_return_value, i386_store_return_value): Use
6446 FP0_REGNUM instead of NUM_FREGS to determine whether the
6447 floating-point registers are available.
6448 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6449 Adjust for removal of macros mentioned above.
6450
6451 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6452
6453 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6454 comments.
6455 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6456 Remove prototypes.
6457 (supply_gregset, fill_gregset): Remove use of register keyword and
6458 remove declaration for regmap. Use I386_NUM_GREGS instead of
6459 NUM_REGS and NUM_FREGS.
6460 (FPREGSET_FSAVE_OFFSET): Remove.
6461 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6462 NUM_FREGS to determine whether the floating-point registers are
6463 available.
6464
6465 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6466 gnu_store_registers): Replace usage of NUM_GREGS with
6467 I386_NUM_GREGS.
6468
6469 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6470 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6471 usage of NUM_GREGS with I386_NUM_GREGS.
6472
6473 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6474
6475 * i386bsd-nat.c: Include "i386-tdep.h".
6476 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6477 I386_NUM_GREGS.
6478
6479 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6480 and associated comment. They no longer make any sense, since we
6481 don't use this file anymore on Linux.
6482
6483 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6484 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6485 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6486 elements in these arrays.
6487 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6488 MAX_NUM_REGS.
6489
6490 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6491
6492 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6493 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6494
6495 2002-06-14 Andrew Cagney <cagney@redhat.com>
6496
6497 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6498 EXTRACT_RETURN_VALUE.
6499 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6500 EXTRACT_STRUCT_VALUE_ADDRESS.
6501 * gdbarch.h, gdbarch.c: Regenerate.
6502
6503 * values.c (value_being_returned): Handle
6504 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6505 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6506
6507 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6508 * arm-tdep.c (arm_gdbarch_init): Update.
6509 * avr-tdep.c (avr_gdbarch_init): Update.
6510 * cris-tdep.c (cris_gdbarch_init): Update.
6511 * d10v-tdep.c (d10v_gdbarch_init): Update.
6512 * ia64-tdep.c (ia64_gdbarch_init): Update.
6513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6514 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6515 * s390-tdep.c (s390_gdbarch_init): Update.
6516 * sh-tdep.c (sh_gdbarch_init): Update.
6517 * s390-tdep.c (s390_gdbarch_init): Update.
6518 * sparc-tdep.c (sparc_gdbarch_init): Update.
6519 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6520 * v850-tdep.c (v850_gdbarch_init): Update.
6521 * vax-tdep.c (vax_gdbarch_init): Update.
6522 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6524
6525 * config/arc/tm-arc.h: Update.
6526 * config/d30v/tm-d30v.h: Update.
6527 * config/fr30/tm-fr30.h: Update.
6528 * config/h8300/tm-h8300.h: Update.
6529 * config/h8500/tm-h8500.h: Update.
6530 * config/i386/tm-i386.h: Update.
6531 * config/i386/tm-ptx.h: Update.
6532 * config/i386/tm-symmetry.h: Update.
6533 * config/i960/tm-i960.h: Update.
6534 * config/m32r/tm-m32r.h: Update.
6535 * config/m68k/tm-delta68.h: Update.
6536 * config/m68k/tm-linux.h: Update.
6537 * config/m68k/tm-m68k.h: Update.
6538 * config/m88k/tm-m88k.h: Update.
6539 * config/mcore/tm-mcore.h: Update.
6540 * config/mips/tm-mips.h: Update.
6541 * config/mn10200/tm-mn10200.h: Update.
6542 * config/pa/tm-hppa.h: Update.
6543 * config/pa/tm-hppa64.h: Update.
6544 * config/sparc/tm-sp64.h: Update.
6545 * config/sparc/tm-sparc.h: Update.
6546 * config/sparc/tm-sparclet.h: Update.
6547 * config/z8k/tm-z8k.h: Update.
6548
6549 2002-06-14 Andrew Cagney <cagney@redhat.com>
6550
6551 * Makefile.in (i386_linux_tdep_h): Define.
6552 (i386_tdep_h, i387_tdep_h): Define.
6553 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6554 $(i386_tdep_h) and $(i387_tdep_h).
6555 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6556
6557 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6558
6559 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6560 Already covered by the default.
6561
6562 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6563 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6564 (i386_gdbarch_init): Initialize long_double_format and long_double
6565 bit.
6566
6567 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6568 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6569 Move these to ...
6570 * config/i386/i386sol2.mh: ... here.
6571 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6572 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6573 (SIGCONTEXT_PC_OFFSET): Remove define.
6574 (IN_SIGTRAMP): Remove define.
6575 * i386-sol2-tdep.c: New file.
6576
6577 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6578 * config/i386/tm-i386nw.h: Removed.
6579
6580 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6581 USE_STRUCT_CONVENTION): Remove defines.
6582 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6583 (get_longjmp_target): Remove prototype.
6584 (IN_SIGTRAMP): Remove define.
6585 (i386bsd_in_sigtramp): Remove prototype.
6586 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6587 function. Update comment accordingly
6588 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6589 (FRAME_SAVED_PC): Remove define.
6590 (i386bsd_frame_saved_pc): Remove prototype.
6591 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6592 GET_LONGJMP_TARGET): Remove defines.
6593 (get_longjmp_target): Remove prototype.
6594 (IN_SIGTRAMP): Remove define.
6595 (i386bsd_in_sigtramp): Remove prototype.
6596 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6597 function. Update comment accordingly
6598 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6599 (FRAME_SAVED_PC): Remove define.
6600 (i386bsd_frame_saved_pc): Remove prototype.
6601 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6602 Remove prototype.
6603 (USE_STRUCT_CONVENTION): Remove prototype.
6604 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6605 declaration.
6606 (_initialize_i386bsd_nat): Revise logic to determine some
6607 constants at compile time when compiling a native GDB. Warn if
6608 things don't match up with what we expect.
6609 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6610 Remove variables.
6611 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6612 to use date stored in `struct gdbarch_tdep'.
6613 (i386bsd_sigcontext_offset): Remove varaible.
6614 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6615 stored in `struct gdbarch_tdep'.
6616 (i386bsd_frame_saved_pc): Make static.
6617 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6618 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6619 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6620 i386fbsd4_sc_pc_offset): New variables.
6621 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6622 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6623 functions.
6624 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6625 functions.
6626 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6627 Modify the value of i386fbsd_sigtramp_start and
6628 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6629 i386fbsd_sigtramp_end.
6630 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6631 function.
6632
6633 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6634 define to i386-linux-tdep.h.
6635 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6636 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6637 defines.
6638 (i386_linux_register_name, i386_linux_register_byte,
6639 i386_linux_register_raw_size): Remove prototypes.
6640 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6641 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6642 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6643 TARGET_WRITE_PC): Remove defines.
6644 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6645 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6646 i386_linux_write_pc): Remove prototypes.
6647 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6648 (get_longjmp_target): Remove prototype.
6649 * i386-linux-tdep.h: New file.
6650 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6651 * i386-linux-tdep.c: Include "i386-tdep.h" and
6652 "i386-linux-tdep.h".
6653 (i386_linux_register_name, i386_linux_register_byte,
6654 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6655 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6656 Make static.
6657 (i386_linux_init_abi): New function.
6658 (_initialize_i386_linux_tdep): New function.
6659
6660 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6661 (i386_saved_pc_after_call): Remove prototype.
6662 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6663 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6664 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6665 (i386_register_name, i386_stab_reg_to_regnum,
6666 i386_dwarf_reg_to_regnum): Remove prototypes.
6667 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6668 SIZEOF_SSE_REGS): Remove defines.
6669 (REGISTER_BYTES): Remove define.
6670 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6671 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6672 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6673 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6674 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6675 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6676 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6677 (get_longjmp_target): Remove prototype.
6678 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6679 (sigtramp_saved_pc): Remove define.
6680 (i386v4_sigtramp_saved_pc): Remove prototype.
6681 * config/i386/tm-go32.h (FRAME_CHAIN,
6682 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6683 (i386go32_frame_saved_pc): Remove prototype.
6684 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6685 (get_longjmp_target): Remove prototype.
6686 * i386-tdep.h: Include "osabi.h".
6687 (enum i386_abi): Removed.
6688 (enum struct_return): New enum.
6689 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6690 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6691 sc_pc_offset members.
6692 (i386_gdbarch_register_os_abi): Remove prototype.
6693 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6694 I386_SSE_NUM_REGS): New defines.
6695 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6696 I386_SSE_SIZEOF_REGS): New defines.
6697 (i386_register_name, i386_register_byte, i386_register_raw_size):
6698 New prototypes.
6699 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6700 (i386bsd_sigtramp_saved_pc): New prototype.
6701 * i386-tdep.c: Don't include "elf-bfd.h".
6702 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6703 i386_frame_chain, i386_saved_pc_after_call): Make static.
6704 (i386_frame_saved_pc): Rewrite to call architecture dependent
6705 function to deal with signal handlers. Make static.
6706 (i386go32_frame_saved_pc): Removed.
6707 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6708 Removed.
6709 (i386_get_longjmp_target): New function.
6710 (default_struct_convention, pcc_struct_convention,
6711 reg_struct_convention, valid_conventions, struct_convention): New
6712 variables.
6713 (i386_use_struct_convention): New function.
6714 (i386v4_sigtramp_saved_pc): Renamed to
6715 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6716 (i386_pc_in_sigtramp): New function.
6717 (i386_abi_names): Removed.
6718 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6719 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6720 Removed.
6721 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6722 i386_gdbarch_register_os_abi): Removed.
6723 (struct i386_abi_handler): Removed.
6724 (i386_abi_handler_list): Removed.
6725 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6726 functions.
6727 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6728 i386_nw_init_abi): New functions.
6729 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6730 Use set_gdbarch_xxx() calls instead of relying on macros for a
6731 number of calls.
6732 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6733 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6734 Register the various architecture variants defined in this file.
6735
6736 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6737
6738 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6739 (struct main_type): Remove arg_types member. Update comments for
6740 struct field.
6741 (TYPE_ARG_TYPES): Remove.
6742 (TYPE_FN_FIELD_ARGS): Update.
6743 (smash_to_method_type): Update prototype.
6744
6745 * c-typeprint.c (cp_type_print_method_args): Take method type
6746 instead of argument list. Use new argument layout. Simplify.
6747 (c_type_print_args): Use new argument layout. Simplify.
6748 (c_type_print_base): Update call to cp_type_print_method_args.
6749 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6750 argument; use die->type instead. Update call to
6751 smash_to_method_type.
6752 (read_structure_scope): Update call to dwarf2_add_member_fn.
6753 * gdbtypes.c (allocate_stub_method): Update comment.
6754 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6755 Use new argument layout.
6756 (check_stub_method): Use new argument layout. Don't count
6757 void as an argument.
6758 (print_arg_types): Update comments. Use new argument layout.
6759 (recursive_dump_type): Don't print arg_types member.
6760 * hpread.c (hpread_read_struct_type): Use new argument layout.
6761 (fixup_class_method_type): Likewise.
6762 (hpread_type_lookup): Likewise.
6763 * stabsread.c (read_type): Update calls to read_args and
6764 smash_to_method_type.
6765 (read_args): Use new argument layout. Simplify.
6766 * valops.c (typecmp): Use new argument layout. Update parameters
6767 and comments. Simplify.
6768 (hand_function_call): Use new argument layout.
6769 (search_struct_method): Update call to typecmp.
6770 (find_overload_match): Use new argument layout.
6771
6772 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6773
6774 * NEWS: Mention multithreaded debug support for gdbserver.
6775
6776 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6777
6778 * MAINTAINERS: Mention NEWS.
6779
6780 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6781
6782 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6783 (struct mips_objfile_private, compare_pdr_entries): New.
6784 (non_heuristic_proc_desc): Read the ".pdr" section if it
6785 is present.
6786
6787 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6788
6789 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6790 (arm_debug): New static variable.
6791 (_initialize_arm_tdep): Add ``set debug arm'' command.
6792
6793 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6794
6795 * Makefile.in (sim_arm_h): Define.
6796 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6797 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6798 (arm_register_sim_regno): New function, map an internal REGNUM
6799 onto a simulator register number.
6800 (arm_gdbarch_init): Set register_sim_regno.
6801
6802 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6803
6804 * MAINTAINERS: Add self.
6805
6806 2002-06-11 Jim Blandy <jimb@redhat.com>
6807
6808 * source.c (source_info): Mention whether the symtab has
6809 information about preprocessor macros.
6810
6811 Call the command `info macro', not `show macro'.
6812 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6813 Fix error message.
6814 (_initialize_macrocmd): Register `info_macro_command' in
6815 `infolist', not `showlist'.
6816
6817 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6818
6819 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6820 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6821 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6822 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6823 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6824 unconditionally.
6825 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6826 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6827 (_initialize_mips_tdep): Remove dead code.
6828 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6829 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6830 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6831 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6832 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6833 MIPS_LAST_FP_ARG_REGNUM): Remove.
6834
6835 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6836
6837 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6838 (unwind_tmp_obstack_free, parse_frame_info)
6839 (update_context, cfi_read_fp, cfi_write_fp)
6840 (cfi_frame_chain, cfi_init_extra_frame_info)
6841 (cfi_virtual_frame_pointer): Use the above function.
6842 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6843
6844 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6845
6846 * v850-tdep.c (v850_type_is_scalar): New function.
6847 (v850_use_struct_convention): Match current gcc implementation
6848 as close as possible.
6849 (v850_push_arguments): Fix stack_offset handling. Don't write
6850 struct_addr into register. This is done by v850_store_struct_return.
6851 (v850_extract_return_value): Care for structs.
6852 (v850_store_return_value): Ditto.
6853 (v850_store_struct_return): Actually write address.
6854
6855 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6856
6857 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6858 without debug information too.
6859
6860 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6861
6862 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6863 Make multi-arch pure.
6864 * gdbarch.h, gdbarch.c: Re-generate.
6865 * arm-tdep.c (arm_print_float_info): Update.
6866 * arch-utils.h (default_print_float_info): Update.
6867 * arch-utils.c (default_print_float_info): Update.
6868 * infcmd.c (float_info): Update call.
6869
6870 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6871
6872 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6873 the front of the initialize list.
6874
6875 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6876
6877 * infrun.c (struct inferior_status): Replace fields
6878 selected_frame_address and selected_level with field
6879 selected_frame_id.
6880 (save_inferior_status): Update. Use get_frame_id.
6881 (struct restore_selected_frame_args): Delete.
6882 (restore_selected_frame): Update. Use frame_find_by_id.
6883 (restore_inferior_status): Update.
6884
6885 * breakpoint.h (struct breakpoint): Change type of
6886 watchpoint_frame to frame_id.
6887 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6888 call to get_current_frame.
6889 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6890 get_current_frame.
6891 (watchpoint_check): Use frame_find_by_id.
6892
6893 * frame.h (record_selected_frame): Delete declaration.
6894 * stack.c (record_selected_frame): Delete function.
6895
6896 * frame.h (struct frame_id): Define.
6897 (get_frame_id): Declare.
6898 (frame_find_by_id): Declare.
6899 * frame.c (frame_find_by_id): New function.
6900 (get_frame_id): New function.
6901
6902 2002-06-10 Andrey Volkov <avolkov@transas.com>
6903
6904 * ser-e7kpc.c: Fix duplicated define and call of
6905 _initialize_ser_e7000pc
6906
6907 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6908
6909 * signals/signals.c (target_signal_from_host): Fix #ifdef
6910 SIGRTMIN case.
6911 (do_target_signal_to_host): Likewise.
6912
6913 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6914
6915 * mips-tdep.c (mips_find_abi_section): New function.
6916 (mips_gdbarch_init): Call it.
6917
6918 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6919
6920 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6921 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6922 after Andrew's 2002-06-08 gdbarch change.
6923
6924 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6925
6926 * i386-linux-nat.c (suppy_gregset): Don't supply
6927 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6928 register cache.
6929 (fill_gregset): Don't fetch it under the same circumstances.
6930
6931 2002-06-09 Andrew Cagney <cagney@redhat.com>
6932
6933 * Makefile.in (callback_h): Define.
6934 (remote_sim_h): Update path to remote-sim.h.
6935 (remote-rdp.o): Add $(callback_h).
6936 (remote-sim.o): Use $(callback_h).
6937 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6938 * remote-rdp.c: Include "gdb/callback.h".
6939
6940 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6941
6942 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6943 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6944
6945 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6946
6947 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6948 * rdi-share/serpardr.c: Ditto.
6949 * rdi-share/unixcomm.c: Ditto.
6950 * rdi-share/serdrv.c: Ditto.
6951 * rdi-share/hostchan.h: Ditto.
6952 * rdi-share/hostchan.c: Ditto.
6953 * rdi-share/host.h: Ditto.
6954 * rdi-share/devsw.c: Ditto.
6955
6956 * objfiles.h: Change type of obj_private to void pointer.
6957 * pa64solib.c: Update copyright. Don't include "assert.h", use
6958 strcmp instead of STREQ, use LONGEST, do not use PTR
6959 * somsolib.c: Ditto.
6960
6961 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6962 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6963 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6964
6965 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6966
6967 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6968 (default_get_saved_register): Delete function.
6969 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6970 generic_unwind_get_saved_register.
6971 * gdbarch.h, gdbarch.c: Re-generate.
6972
6973 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6974
6975 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6976 generic_func_frame_chain_valid.
6977 * gdbarch.h, gdbarch.c: Re-generate.
6978 * blockframe.c (generic_func_frame_chain_valid): Only check
6979 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6980 passing FP to PC_IN_CALL_DUMMY.
6981 Fix PR gdb/360.
6982
6983 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6984
6985 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6986 (register_gdbarch_data): Initialize init_p.
6987 (gdbarch_data): Initialize data pointer using the init function.
6988 (init_gdbarch_data): Delete function.
6989 (gdbarch_update_p): Update.
6990 (initialize_non_multiarch): Update.
6991 (struct gdbarch): Add field initialized_p.
6992 * gdbarch.h, gdbarch.c: Re-generate.
6993
6994 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6995
6996 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6997 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6998 better do the things actually here.
6999 * x86-64-tdep.c (x86_64_register_name2nr): New.
7000 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7001 (x86_64_gdbarch_init): Respect the above change.
7002 * x86-64-tdep.h (x86_64_register_name2nr)
7003 (x86_64_register_nr2name): Add prototypes.
7004 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7005
7006 2002-06-06 Michael Snyder <msnyder@redhat.com>
7007
7008 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7009 Delete extra braces and re-indent.
7010 (d10v_store_return_value): Char return values
7011 must be shifted over by one byte in R0.
7012 (d10v_extract_return_value): Delete extra braces, re-indent.
7013
7014 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7015
7016 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7017 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7018 (d10v_integer_to_address): Rewrite.
7019 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7020 the d10v specific functions which take care of converting to the
7021 correct space.
7022
7023 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7024
7025 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7026 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7027
7028 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7029
7030 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7031 includes.
7032 * config/tm-linux.h: Ditto.
7033 * config/alpha/tm-alphalinux.h: Ditto.
7034 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7035 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7036 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7037 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7038 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7039 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7040 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7041 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7042 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7043 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7044 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7045 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7046 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7047 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7048 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7049 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7050 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7051 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7052 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7053 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7054 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7055 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7056 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7057 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7058 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7059 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7060 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7061 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7062 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7063 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7064 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7065 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7066 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7067 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7068 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7069 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7070 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7071
7072 2002-05-04 Aidan Skinner <aidan@velvet.net>
7073
7074 * ada-exp.tab.c: New file
7075 * ada-exp.y: New file
7076 * ada-lang.c: New file
7077 * ada-lang.h: New file
7078 * ada-lex.c: New file
7079 * ada-lex.l: New file
7080 * ada-tasks.c: New file
7081 * ada-typeprint.c: New file
7082 * ada-valprint.c: New file
7083
7084 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7085
7086 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7087 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7088
7089 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7090
7091 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7092 insetead of ppc-linux-tdep.o.
7093 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7094 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7095
7096 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7097
7098 2002-05-07 Christian Groessler <chris@groessler.org>
7099 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7100 bit register contents for little endian hosts.
7101
7102 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7103
7104 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7105 any maintainer.
7106
7107 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7108
7109 * gdbarch.h: Regenerate.
7110
7111 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7112
7113 * MAINTAINERS: Add everyone to write-after-approval list.
7114
7115 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7116
7117 * stack.c (frame_info): Use frame_register_unwind instead of
7118 saved_regs. Mention when the SP is on the stack or in a register.
7119
7120 * frame.h (frame_register_unwind_ftype): Define. Document.
7121 (struct frame_info): Add field register_unwind and
7122 register_unwind_cache.
7123 (frame_register_unwind): Declare.
7124 (generic_unwind_get_saved_register): Declare.
7125
7126 * frame.c (frame_register_unwind): New function.
7127 (generic_unwind_get_saved_register): New function.
7128
7129 * blockframe.c (generic_call_dummy_register_unwind): New function.
7130 (frame_saved_regs_register_unwind): New function.
7131 (set_unwind_by_pc): New function.
7132 (create_new_frame): New function.
7133 (get_prev_frame): New function.
7134
7135 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7136
7137 * a29k-share/: Delete directory.
7138 * remote-vx29k.c: Delete file.
7139
7140 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7141
7142 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7143 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7144
7145 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7146
7147 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7148 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7149 (sparc64nbsd-nat.o)
7150 (sparcnbsd-nat.o)
7151 (sparcnbsd-tdep.o): New dependency lists.
7152 * NEWS: Note new UltraSPARC NetBSD native configuration.
7153 * configure.host (sparc64-*-netbsd*): New host.
7154 * configure.tgt (sparc-*-netbsdelf*)
7155 (sparc-*-netbsd*): Set gdb_target to nbsd.
7156 (sparc64-*-netbsd*): New target.
7157 * sparc64nbsd-nat.c: New file.
7158 * sparcnbsd-nat.c: New file.
7159 * sparcnbsd-tdep.c: New file.
7160 * sparcnbsd-tdep.h: New file.
7161 * config/sparc/nbsd.mt: New file.
7162 * config/sparc/nbsd64.mh: New file.
7163 * config/sparc/nbsd64.mt: New file.
7164 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7165 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7166 (HOST_IPC): Remove.
7167 * config/sparc/nbsdaout.mt: Remove.
7168 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7169 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7170 (HOST_IPC): Remove.
7171 * config/sparc/nbsdelf.mt: Remove.
7172 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7173 sparc-nat.c compatiblity defines.
7174 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7175 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7176 * config/sparc/tm-nbsd64.h: New file.
7177 * config/sparc/tm-nbsdaout.h: Remove.
7178 * config/sparc/xm-nbsd.h: Remove.
7179
7180 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7181
7182 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7183 * sparc-tdep.c: Include osabi.h.
7184 (gdbarch_tdep): Add osabi member.
7185 (_initialize_sparc_tdep): Use gdbarch_register.
7186 (sparc_gdbarch_init): Use generic OS ABI framework.
7187 (sparc_dump_tdep): New function.
7188
7189 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7190
7191 * corefile.c (do_captured_read_memory_integer): Return non-zero
7192 result.
7193 (safe_read_memory_integer): Copy result of memory read when
7194 status is non-zero. Also, add comments.
7195
7196 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7197
7198 * Makefile.in (ppc_tdep_h): Define.
7199 (ppc-linux-nat.o)
7200 (ppc-linux-tdep.o)
7201 (rs6000-tdep.o): Use $(ppc_tdep_h).
7202 (ppc-sysv-tdep.o)
7203 (ppcnbsd-nat.o)
7204 (ppcnbsd-tdep.o): New dependency lists.
7205 * ppc-tdep.h: Use generic OS ABI framework.
7206 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7207 (ppc_linux_init_abi): New functions.
7208 (ppc_sysv_abi_broken_use_struct_convention)
7209 (ppc_sysv_abi_use_struct_convention)
7210 (ppc_sysv_abi_push_arguments): Move to...
7211 * ppc-sysv-tdep.c: ...here.
7212 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7213 * rs6000-tdep.c (process_note_abi_tag_sections)
7214 (get_elfosabi): Remove.
7215 (rs6000_gdbarch_init): Use generic OS ABI framework.
7216 (rs6000_dump_tdep): New function.
7217 (_initialize_rs6000_tdep): Use gdbarch_register.
7218 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7219 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7220 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7221 of ppc-linux-tdep.o.
7222 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7223 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7224 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7225 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7226 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7227 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7228
7229 2002-05-29 Jim Blandy <jimb@redhat.com>
7230
7231 * macroscope.c (default_macro_scope): Put `void' in empty argument
7232 list.
7233
7234 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7235
7236 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7237 * arch-utils.c: Include "sim-regno.h".
7238 * gdbarch.sh: Don't include "sim-regno.h".
7239 * gdbarch.h, gdbarch.c: Regenerate.
7240 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7241 here.
7242 * arch-utils.h (legacy_register_sim_regno): To here.
7243 * remote-sim.c (legacy_register_sim_regno): Move function from
7244 here.
7245 * arch-utils.c (legacy_register_sim_regno): To here.
7246
7247 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7248
7249 * sim-regno.h: New file.
7250 * Makefile.in (sim_regno_h): Define.
7251 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7252 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7253 (legacy_register_sim_regno): New function.
7254 (one2one_register_sim_regno): New function.
7255 (gdbsim_fetch_register): Rewrite.
7256 (gdbsim_store_register): Only store a register when
7257 REGISTER_SIM_REGNO is valid.
7258 * d10v-tdep.c: Include "sim-regno.h".
7259 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7260 (d10v_ts3_register_sim_regno): Ditto.
7261 * gdbarch.sh: Include "sim-regno.h".
7262 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7263 * gdbarch.h, gdbarch.c: Regenerate.
7264 * arch-utils.h (default_register_sim_regno): Delete declaration.
7265 * arch-utils.c (default_register_sim_regno): Delete function.
7266
7267 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7268
7269 * ppcnbsd-nat.c: Rewrite.
7270 * ppcnbsd-tdep.c: New file.
7271 * ppcnbsd-tdep.h: New file.
7272 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7273 solib.o, and solib-svr4.o.
7274 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7275 nbsd-tdep.o, and corelow.o.
7276
7277 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7278
7279 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7280 `tr' and `sed'. Mention that `broken' targets are not expected to
7281 build.
7282
7283 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7284
7285 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7286 Let PC point right after the prologue before looking up symbols.
7287
7288 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7289
7290 * i386-tdep.c (i386_register_virtual_type): Return
7291 builtin_type_vec128i for SSE registers.
7292
7293 * gdbtypes.h (builtin_type_vec128i): Declare.
7294
7295 * gdbtypes.c (build_builtin_type_vec128i): New function.
7296 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7297 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7298 (build_gdbtypes): Initialize new builtin vector types.
7299 (_initialize_gdbtypes): Register new vector types with gdbarch.
7300
7301 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7302
7303 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7304 since it has been multi-arch'd.
7305 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7306 Move Alpha and VAX multi-arch news entries to same section
7307 as other multi-arch news.
7308
7309 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7310
7311 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7312 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7313 static. Rename some register numbers to put them in ns32k-tdep
7314 private namespace.
7315 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7316 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7317 functions.
7318 (_initialize_ns32k_tdep): Use gdbarch_register.
7319 * ns32k-tdep.h: New file.
7320 * ns32knbsd-tdep.c: New file.
7321 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7322 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7323 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7324 REGISTER_BYTES, REGISTER_BYTE): Remove.
7325 * config/ns32k/tm-ns32k.h: New file.
7326 * config/ns32k/tm-umax.h: Remove.
7327
7328 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7329
7330 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7331 ns32k_store_struct_return, ns32k_extract_return_value,
7332 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7333 functions.
7334 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7335 ns32k_saved_pc_after_call.
7336 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7337 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7338 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7339 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7340 ns32k_extract_struct_value_address.
7341
7342 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7343
7344 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7345 ns32k_fix_call_dummy): New.
7346 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7347 ns32k_call_dummy_words.
7348 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7349 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7350 CALL_DUMMY_NARGS): Remove.
7351 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7352
7353 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7354
7355 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7356 ns32k_frame_saved_pc, ns32k_frame_args_address,
7357 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7358 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7359 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7360 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7361 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7362 (BREAKPOINT): Remove..
7363 (FRAME_CHAIN): Define as ns32k_frame_chain.
7364 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7365 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7366 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7367 (FRAME_FIND_SAVED_REGS): Remove.
7368 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7369 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7370 (POP_FRAME): Define as ns32k_pop_frame.
7371
7372 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7373
7374 * ns32k-tdep.c (ns32k_register_byte_32082,
7375 ns32k_register_byte_32382, ns32k_register_raw_size,
7376 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7377 functions.
7378 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7379 ns32k_register_byte_32382.
7380 * config/ns32k/tm-umax.h: Update copyright years.
7381 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7382 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7383 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7384 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7385 (ns32k_get_enter_addr): Fix prototype.
7386
7387 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7388
7389 * ns32k-tdep.c: Update copyright years.
7390 (ns32k_register_name_32082): New function.
7391 (ns32k_register_name_32382): Ditto.
7392 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7393 (REGISTER_NAME): Define as ns32k_register_name_32382.
7394 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7395 (REGISTER_NAME): Define as ns32k_register_name_32082.
7396
7397 2002-05-24 Jim Blandy <jimb@redhat.com>
7398
7399 * dwarf2read.c (free_line_header): Use xfree, not free.
7400
7401 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7402
7403 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7404 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7405
7406 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7407
7408 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7409
7410 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7411
7412 From Ross Alexander at NEC Europe:
7413 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7414
7415 2002-05-23 Michael Snyder <msnyder@redhat.com>
7416
7417 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7418 for input, rather than parse_and_eval_address.
7419
7420 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7421
7422 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7423 * Makefile.in (sim_d10v_h): Update definition.
7424
7425 2002-05-24 Andrew Cagney <cagney@redhat.com>
7426
7427 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7428 change `2002-05-22 Michael Snyder' below.
7429 (d10v_push_arguments): Ditto.
7430 (d10v_extract_return_value): Ditto.
7431
7432 2002-05-23 Jim Blandy <jimb@redhat.com>
7433
7434 * macrotab.c (check_for_redefinition): Don't complain if the new
7435 definition is the same as the previous one. Take more arguments
7436 to allow the comparison.
7437 (macro_define_object, macro_define_function): Pass more arguments
7438 to check_for_redefinition.
7439
7440 2002-05-22 Michael Snyder <msnyder@redhat.com>
7441
7442 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7443 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7444 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7445 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7446 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7447 Add a temp variable to save a call (and a memory read).
7448 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7449 if possible (so that PC_IN_CALL_DUMMY will work).
7450
7451 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7452
7453 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7454
7455 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7456
7457 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7458 fde->cie_ptr.
7459 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7460 (dwarf2_build_frame_info): Add offset to fde->initial_location
7461 so that frames of shared libraries are mapped correctly.
7462 (execute_stack_op): Change type of 'result' from ULONGEST to
7463 CORE_ADDR.
7464
7465 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7466
7467 * config/alpha/tm-nbsd.h: Include solib.h.
7468
7469 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7470
7471 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7472 assumptions about the host's byte order.
7473
7474 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7475
7476 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7477 to dependency list.
7478 * alphanbsd-tdep.c: Include solib-svr4.h.
7479 * shnbsd-tdep.c: Ditto.
7480
7481 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7482
7483 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7484 nbsd-tdep.h to dependency list.
7485 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7486 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7487 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7488 nbsdaout.mh and nbsdelf.mh consistently.
7489 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7490 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7491 nbsdaout.mt and nbsdelf.mh consistently.
7492 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7493 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7494 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7495 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7496 a.out shared library stuff from here...
7497 * config/nm-nbsdaout.h: ...to here.
7498 * config/tm-nbsd.h: Remove.
7499 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7500 * config/arm/nbsd.mh: Remove.
7501 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7502 nbsd-tdep.o.
7503 * config/arm/nbsdaout.mh: New file.
7504 * config/arm/nbsdelf.mh: New file.
7505 * config/arm/nm-nbsdaout.h: New file.
7506 * config/i386/nbsd.mh: Remove.
7507 * config/i386/nbsd.mt: Remove.
7508 * config/i386/nbsdaout.mh: New file.
7509 * config/i386/nbsdaout.mt: New file.
7510 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7511 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7512 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7513 i386_register_u_addr): Remove.
7514 * config/i386/nm-nbsdaout.h: New file.
7515 * config/i386/nm-nbsdelf.h: Remove.
7516 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7517 (USE_STRUCT_CONVENTION): Remove.
7518 * config/i386/tm-nbsdaout.h: New file.
7519 * config/i386/tm-nbsdelf.h: Remove.
7520 * config/m68k/nbsd.mh: Remove.
7521 * config/m68k/nbsd.mt: Remove.
7522 * config/m68k/nbsdaout.mh: New file.
7523 * config/m68k/nbsdaout.mt: New file.
7524 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7525 * config/m68k/nm-nbsdaout.h: New file.
7526 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7527 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7528 * config/ns32k/nbsd.mh: Remove.
7529 * config/ns32k/nbsd.mt: Remove.
7530 * config/ns32k/nbsdaout.mh: New file.
7531 * config/ns32k/nbsdaout.mt: New file.
7532 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7533 * config/ns32k/nm-nbsdaout.h: New file.
7534 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7535 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7536 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7537 (SVR4_SHARED_LIBS): Remove.
7538 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7539 * config/sparc/nbsd.mh: Remove.
7540 * config/sparc/nbsd.mt: Remove.
7541 * config/sparc/nbsdaout.mh: New file.
7542 * config/sparc/nbsdaout.mt: New file.
7543 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7544 * config/sparc/nbsdelf.mt: New file.
7545 * config/sparc/nm-nbsdaout.h: New file.
7546 * config/sparc/nm-nbsdelf.h: Remove.
7547 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7548 * config/sparc/tm-nbsdaout.h: New file.
7549
7550 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7551
7552 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7553 mipsnbsd-tdep.c
7554 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7555
7556 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7557
7558 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7559 shnbsd-nat.c.
7560 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7561
7562 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7563
7564 * NEWS: Note new MIPS NetBSD native configuration.
7565 * configure.host (mips*-*-netbsd*): New host.
7566 * configure.tgt (mips*-*-netbsd*): New target.
7567 * mipsnbsd-nat.c: New file.
7568 * mipsnbsd-tdep.c: New file.
7569 * mipsnbsd-tdep.h: New file.
7570 * config/mips/nbsd.mh: New file.
7571 * config/mips/nbsd.mt: New file.
7572 * config/mips/nm-nbsd.h: New file.
7573 * config/mips/tm-nbsd.h: New file.
7574
7575 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7576
7577 * Makefile.in (SFILES): Add osabi.c.
7578 (COMMON_OBS): Add osabi.o.
7579 (osabi.o): New dependency list.
7580 * osabi.c: New file.
7581 * osabi.h: New file.
7582 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7583
7584 * Makefile.in (alpha_tdep_h): Define and use instead of
7585 alpha-tdep.h.
7586 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7587 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7588 Remove.
7589 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7590 * alpha-tdep.h: Include osabi.h.
7591 (alpha_abi): Remove.
7592 (gdbarch_tdep): Use generic OS ABI framework.
7593 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7594 gdbarch_register_osabi.
7595 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7596 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7597 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7598
7599 * Makefile.in (sh_tdep_h): Add osabi.h.
7600 * sh-tdep.h (sh_osabi): Remove.
7601 (gdbarch_tdep): Use generic OS ABI framework.
7602 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7603 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7604 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7605 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7606
7607 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7608 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7609 gdbarch_register_osabi.
7610 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7611 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7612 (get_elfosabi): Rename to...
7613 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7614 ABI framework support routines.
7615 (arm_gdbarch_init): Use generic OS ABI framework.
7616 (arm_dump_tdep): Likewise.
7617 (_initialize_arm_tdep): Likewise.
7618 * arm-tdep.h: Include osabi.h.
7619 (arm_abi): Remove.
7620 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7621 osabi member.
7622 (arm_gdbarch_register_os_abi): Remove prototype.
7623 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7624 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7625
7626 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7627 * mips-tdep.c: Include osabi.h.
7628 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7629 OS ABI framework.
7630
7631 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7632
7633 * h8300-tdep.c: Fix formatting.
7634
7635 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7636
7637 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7638 printing vector registers.
7639
7640 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7641
7642 From Fernando Nasser:
7643 * remote.c (remote_async_open_1): Re-throw the exception when the
7644 connection fails.
7645 (remote_cisco_open): Ditto.
7646 (remote_open_1): Ditto.
7647
7648 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7649
7650 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7651 (remote_start_remote): Add uiout parameter. Pass through to
7652 remote_start_remote_dummy.
7653 (remote_open_1): Use catch_exception instead of catch_errors.
7654 (remote_async_open_1): Ditto.
7655 (remote_cisco_open): Ditto.
7656
7657 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7658
7659 * remote.c (remote_start_remote): Replace PTR with void pointer.
7660 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7661 static.
7662
7663 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7664
7665 * gdb_indent.sh: Allow the script to be run in the sim directory.
7666
7667 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7668
7669 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7670 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7671
7672 * corelow.c (core_open): Only call set_gdbarch_from_file if
7673 exec_bfd is NULL.
7674
7675 2002-05-17 Andrey Volkov <avolkov@transas.com>
7676
7677 * h8300-tdep.c: Add support of EXR register
7678 * config/h8300/tm-h8300.h: Ditto.
7679
7680 2002-05-17 Andrey Volkov <avolkov@transas.com>
7681
7682 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7683
7684 2002-05-17 Andrey Volkov <avolkov@transas.com>
7685
7686 * h8300-tdep.c: Change literal regnums to REGNO.
7687
7688 2002-05-17 Jim Blandy <jimb@redhat.com>
7689
7690 * NEWS: Note addition of macro support.
7691
7692 Expand preprocessor macros in C expressions.
7693 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7694 (scan_macro_expansion, scanning_macro_expansion,
7695 finished_macro_expansion): New function declarations.
7696 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7697 variable declarations.
7698 * parser-defs.h (expression_context_pc): New declaration.
7699 * parse.c (expression_context_pc): New variable.
7700 (parse_exp_1): Set expression_context_pc, as well as
7701 expression_context_block.
7702 * c-exp.y (yylex): If we're not already reading the result of a
7703 macro expansion, try to macro-expand the next token. When we're
7704 done scanning a macro expansion, switch back to the mainline text.
7705 Commas and `if's in a macro's expansion don't terminate the input.
7706 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7707 (macro_original_text, macro_expanded_text,
7708 expression_macro_lookup_func, expression_macro_lookup_baton): New
7709 variables.
7710 (scan_macro_expansion, scanning_macro_expansion,
7711 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7712 c_preprocess_and_parse): New functions.
7713 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7714 c_preprocess_and_parse, instead of c_parse.
7715 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7716 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7717
7718 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7719
7720 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7721 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7722 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7723
7724 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7725
7726 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7727
7728 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7729
7730 * Makefile.in (sh_tdep_h): Define and use.
7731 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7732 register enum): Move to...
7733 * * sh-tdep.h: ...here.
7734 * sh-tdep.c: Include sh-tdep.h.
7735 * sh3-rom.c: Likewise.
7736 * shnbsd-tdep.c: Likewise.
7737
7738 2002-05-16 Michael Snyder <msnyder@redhat.com>
7739
7740 * arm-tdep.c: Spelling fix in comment.
7741
7742 2002-05-16 Jim Blandy <jimb@redhat.com>
7743
7744 Add commands for manually expanding macros and showing their
7745 definitions.
7746 * macrocmd.c, macroscope.c, macroscope.h: New files.
7747 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7748 (macroscope_h): New variable.
7749 (HFILES_NO_SRCDIR): Add macroscope.h.
7750 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7751 (macroscope.o, macrocmd.o): New rules.
7752
7753 Teach the Dwarf 2 reader to read macro information.
7754 * dwarf2read.c: #include "macrotab.h".
7755 (dwarf_macinfo_buffer): New variable.
7756 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7757 dwarf_macinfo_size.
7758 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7759 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7760 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7761 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7762 dwarf2_macro_spaces_in_definition): New complaints.
7763 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7764 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7765 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7766 the partial symbol table.
7767 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7768 from what's recorded in the partial symbol table.
7769 (read_file_scope): If the compilation unit has a
7770 `DW_AT_macro_info' attribute, read its macro information.
7771 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7772
7773 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7774
7775 Fix PR gdb/546
7776 * ser-tcp.c: Don't include <netinet/udp.h>.
7777
7778 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7779
7780 * MAINTAINERS: Update my email address.
7781
7782 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7783
7784 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7785 include file of the same name.
7786
7787 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7788
7789 * configure.tgt: Mark v850 as multi-arched.
7790 * config/v850/tm-v850.h: Remove file.
7791 * config/v850/v850.mt: Eliminate TM_FILE.
7792
7793 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7794
7795 * v850-tdep.c: Full multi-arch.
7796 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7797 Define GDB_MULTI_ARCH to 2.
7798
7799 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7800
7801 * p-exp.y (current_type): New static variable.
7802 Carries the type of the expression at the position that is parsed.
7803 (push_current_type, pop_current_type): Two new functions. Used
7804 to store/restore current_type in expression on specific tokens.
7805 (search_field): New static variable. Set to one after parsing a point
7806 as at that point only a FIELDNAME token should be searched.
7807 (FIELDNAME): New token. After a point only a token belonging to
7808 current_type type definition is allowed.
7809 (all over token rules): reset and change current_type according
7810 to rules.
7811 (exp '[' rule): insert implicit array index field if
7812 exp is a pascal string type.
7813
7814 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7815
7816 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7817 frame info. Use frame_info's saved_regs instead of matching member
7818 in extra_frame_info throughout.
7819 (v850_frame_init_saved_regs): New function.
7820 (v850_init_extra_frame_info): Move most functionality into
7821 v850_frame_init_saved_regs().
7822 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7823 (v850_frame_find_saved_regs): Remove declaration.
7824 (FRAME_FIND_SAVED_REGS): Remove definition.
7825 (v850_frame_init_saved_regs): Add declaration.
7826 (FRAME_INIT_SAVED_REGS): Add definition.
7827
7828 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7829
7830 * v850-tdep.c: Begin multi-arch'ing v850.
7831 (v850_target_architecture_hook): Remove function.
7832 (v850_gdbarch_init): New function. Add code previously in
7833 v850_target_architecture_hook().
7834 (_initialize_v850_tdep): Don't set target_architecture_hook.
7835 Call register_gdbarch_init() instead.
7836
7837 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7838
7839 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7840 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7841 (fixup_class_method_type): Likewise.
7842
7843 2002-05-15 Jim Blandy <jimb@redhat.com>
7844
7845 Add macro structures to GDB's symbol tables. Nobody puts anything
7846 in them yet.
7847 * symtab.h (struct symtab): New member: `macro_table'.
7848 * buildsym.h (pending_macros): New global variable.
7849 * buildsym.c: #include "macrotab.h".
7850 (buildsym_init): Initialize `pending_macros'.
7851 (end_symtab): If we found macro information while reading a CU's
7852 debugging info, do build a symtab structure for it. Make the
7853 symtab point to the macro information, and clear the
7854 `pending_macros' pointer which held it while we were reading the
7855 debug info.
7856 (really_free_pendings): Free any pending macro table.
7857 * objfiles.h (struct objfile): New member: `macro_cache'.
7858 * objfiles.c (allocate_objfile): Set allocate and free functions
7859 for the macro cache's objstack.
7860 (free_objfile): Empty the macro cache's obstack.
7861 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7862 set new allocate and free functions for it.
7863 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7864 free functions for the macro cache's objstack. (Why is this
7865 function building its own objfile?)
7866 * symmisc.c (print_objfile_statistics): Print statistics on the
7867 macro bcache.
7868 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7869
7870 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7871
7872 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7873 (REGISTER_U_ADDR): Delete definition.
7874 (arm_register_u_addr): Delete declaration.
7875
7876 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7877
7878 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7879 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7880
7881 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7882
7883 * regcache.c (register_valid): Revise comments refering to "Not
7884 available" and "unavailable".
7885 * frame.c (frame_register_read): Ditto.
7886 * findvar.c (value_of_register): Ditto.
7887
7888 2002-05-15 Andrew Cagney <cagney@redhat.com>
7889
7890 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7891 (remote-sim.o): Update dependencies.
7892 (d10v-tdep.o): Specify dependencies.
7893 (sim_d10v_h): Define.
7894
7895 2002-05-14 Jim Blandy <jimb@redhat.com>
7896
7897 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7898 * macrotab.c (macro_lookup_inclusion, find_definition,
7899 new_macro_table): Same.
7900
7901 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7902 not `! strcmp ()'. This is a dubious improvement.
7903 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7904
7905 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7906 although it's not necessary, to avoid a warning.
7907
7908 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7909
7910 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7911 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7912 TYPE_INSTANCE_FLAGS.
7913 (struct main_type): New.
7914 (struct type): Move most members to struct main_type. Change
7915 cv_type and as_type to new type_chain member. Add instance_flags.
7916 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7917 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7918 (finish_cv_type): Remove prototype.
7919 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7920 Set TYPE_CHAIN.
7921 (alloc_type_instance): New function.
7922 (smash_type): New function.
7923 (make_pointer_type, make_reference_type, make_function_type)
7924 (smash_to_member_type, smash_to_method_type): Call smash_type.
7925 (make_qualified_type): New function.
7926 (make_type_with_address_space): Call make_qualified_type.
7927 (make_cv_type): Likewise.
7928 (finish_cv_type): Remove unnecessary function.
7929 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7930 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7931 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7932 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7933 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7934 * hpread.c (hpread_read_struct_type): Likewise.
7935 * stabsread.c (read_struct_type): Likewise.
7936
7937 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7938
7939 * configure.tgt: Add a catch all sh* target, for cases like
7940 sh[2,3,4]-elf and sh-hms.
7941
7942 2002-05-14 Keith Seitz <keiths@redhat.com>
7943
7944 * event-loop.c (create_file_handler): Don't do anything but
7945 update data when we are given a fd which we are already
7946 monitoring.
7947
7948 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7949
7950 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7951 (update_context): Use __func__ in warnings.
7952
7953 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7954
7955 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7956 and tcp_close to net_open and net_close.
7957 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7958 using UDP if requested. Don't try to disable Nagle on UDP
7959 sockets.
7960 * remote.c (remote_serial_open): New function. Warn about UDP.
7961 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7962
7963 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7964
7965 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7966
7967 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7968
7969 * configure.tgt: Remove sh-hms target.
7970 * MAINTAINERS: Don't list sh-hms as a separate target.
7971
7972 2002-05-13 Jim Blandy <jimb@redhat.com>
7973
7974 Add first preprocessor macro-expansion files.
7975 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7976 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7977 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7978 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7979 (COMMON_OBS): Add macrotab.o, macroexp.o.
7980 (macroexp.o, macrotab.o): New rules.
7981
7982 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7983
7984 * config/m88k/tm-m88k.h: Update copyright.
7985 (m88k_target_write_pc): Declare
7986 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7987 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7988 (SHIFT_INST_REGS): Update definition.
7989 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7990 using old definition of TARGET_WRITE_PC.
7991 * regcache.c (generic_target_write_pc): Delete code handling
7992 NNPC_REGNUM.
7993 * gdbarch.sh (NNPC_REGNUM): Delete.
7994 * gdbarch.h, gdbarch.c: Regenerate.
7995
7996 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7997
7998 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7999 builtin reg number.
8000
8001 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8002
8003 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8004 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8005 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8006 access macros.
8007 * c-typeprint.c (cp_type_print_method_args): Likewise.
8008 (c_type_print_args): Likewise.
8009 * d10v-tdep.c (d10v_push_arguments): Likewise.
8010 (d10v_extract_return_value): Likewise.
8011 * expprint.c (print_subexp): Likewise.
8012 * gdbtypes.c (lookup_primitive_typename): Likewise.
8013 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8014 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8015 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8016 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8017 (TYPE_VECTOR): Likewise.
8018 * hpread.c (hpread_read_struct_type)
8019 (fix_static_member_physnames, fixup_class_method_type)
8020 (hpread_type_lookup): Likewise.
8021 * mdebugread.c (parse_symbol, parse_type): Likewise.
8022 * p-lang.c (is_pascal_string_type): Likewise.
8023 * valops.c (hand_function_call): Likewise.
8024 * x86-64-tdep.c (classify_argument): Likewise.
8025
8026 * hpread.c (hpread_read_function_type)
8027 (hpread_read_doc_function_type): Call replace_type.
8028 * dstread.c (create_new_type): Delete.
8029 (decode_dst_structure, process_dst_function): Call alloc_type.
8030 Use type access macros.
8031
8032 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8033
8034 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8035 the're not supported by the current architecture.
8036 (i387_fill_fxsave): Likewise.
8037
8038 2002-05-12 Fred Fish <fnf@redhat.com>
8039
8040 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8041 sect_index_xxx members to index the first slot in section_offsets
8042 if all of the section_offsets are zero.
8043
8044 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8045
8046 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8047 checked in with last change.
8048
8049 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8050
8051 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8052 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8053 config.sub.
8054
8055 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8056
8057 * Makefile.in: Update dependencies.
8058
8059 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8060
8061 * language.c (local_hex_string_custom): Simplify. Do not depend
8062 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8063
8064 * memattr.c (mem_info_command): Replace calls to
8065 longest_local_hex_string and longest_local_hex_string_custom.
8066 * buildsym.c (make_blockvector): Ditto.
8067 * solib.c (info_sharedlibrary_command): Ditto.
8068 * tracepoint.c (tracepoints_info): Ditto.
8069 * symtab.c (print_msymbol_info): Ditto.
8070
8071 * language.c (local_hex_string): Delete.
8072 (local_hex_string_custom): Delete.
8073 (longest_local_hex_string): Rename to local_hex_string.
8074 (longest_local_hex_string_custom): Rename to
8075 local_hex_string_custom.
8076 * language.h (local_hex_string): Change parameter type to LONGEST.
8077 (local_hex_string_custom): Ditto.
8078 (longest_local_hex_string): Delete declaration.
8079 (longest_local_hex_string_custom): Ditto.
8080
8081 * solib.c: Update copyright.
8082 * memattr.c: Update copyright.
8083
8084 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8085
8086 * arch-utils.h (legacy_register_to_value): Declare.
8087 (legacy_value_to_register): Declare.
8088 (legacy_convert_register_p): Declare.
8089 * arch-utils.c (legacy_register_to_value): New function.
8090 (legacy_value_to_register): New function.
8091 (legacy_convert_register_p): New function.
8092
8093 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8094 (VALUE_TO_REGISTER): Define.
8095 (CONVERT_REGISTER_P): Define.
8096 * gdbarch.h, gdbarch.c: Regenerate.
8097
8098 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8099 VALUE_TO_REGISTER.
8100 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8101 CONVERT_REGISTER_P.
8102
8103 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8104 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8105
8106 * Makefile.in: Update dependencies for valops.c.
8107 * valops.c: Include "gdb_assert.h".
8108 (typecmp): Skip THIS parameter to methods.
8109 (find_method_list): Remove static_memfuncp argument,
8110 update callers. Check for stub methods.
8111 (find_value_oload_method_list): Don't set *static_memfuncp.
8112 (find_overload_match): Don't check for stub methods. Assert
8113 that methods are not stubbed. Handle static methods.
8114 (value_find_oload_method_list): Remove static_memfuncp argument.
8115 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8116 to the argument list for static stub methods.
8117 * value.h (value_find_oload_method_list): Update prototype.
8118
8119 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8120
8121 * arch-utils.h (generic_register_size): Declare.
8122 (generic_register_raw_size, generic_register_virtual_size): Delete
8123 declarations.
8124 * arch-utils.c (generic_register_raw_size): Delete.
8125 (generic_register_size): New function.
8126 (generic_register_virtual_size): Delete.
8127
8128 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8129 default generic_register_size.
8130 * gdbarch.h, gdbarch.c: Re-generate.
8131
8132 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8133 register_virtual_size.
8134 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8135 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8136
8137 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8138
8139 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8140 * gdbarch.h, gdbarch.c: Regenerate.
8141 * gnu-v3-abi.c: Update copyright.
8142 (vtable_address_point_offset): Update.
8143 (gnuv3_rtti_type): Update.
8144 (gnuv3_baseclass_offset): Update.
8145 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8146 (init_fetch_link_map_offsets): Update.
8147 * remote.c (get_remote_state): Update.
8148
8149 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8150
8151 * TODO: Remove value_headof/value_from_vtable_info comment.
8152 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8153 * values.c (value_headof, value_from_vtable_info): Delete.
8154 * value.h (value_from_vtable_info): Delete prototype.
8155
8156 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8157
8158 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8159 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8160 $(gdb_regex_h).
8161 (gdb_assert_h): Define.
8162 (gdb_wait_h): Define.
8163 (gdb_regex_h): Define.
8164
8165 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8166
8167 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8168 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8169
8170 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8171
8172 * nbsd-tdep.c: Fix comment.
8173
8174 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8175
8176 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8177 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8178 (nbsd-tdep.o): New dependency list.
8179 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8180 nbsd-tdep.h.
8181 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8182 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8183 * nbsd-tdep.c: New file.
8184 * nbsd-tdep.h: New file.
8185 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8186 nbsd-tdep.h.
8187 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8188 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8189 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8190 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8191
8192 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8193
8194 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8195 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8196 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8197 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8198 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8199 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8200
8201 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8202
8203 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8204 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8205 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8206 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8207 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8208 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8209 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8210
8211 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8212
8213 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8214 fetch_elfcore_registers to...
8215 * i386nbsd-tdep.c: ...here.
8216 (i386nbsd_use_struct_convention): Rename to...
8217 (i386nbsd_aout_use_struct_convention): ...this.
8218 (i386nbsd_supply_reg): New function.
8219 (i386nbsd_fill_reg): New function.
8220 (fetch_core_registers): Use i386nbsd_supply_reg.
8221 (fetch_elfcore_registers): Likewise.
8222 (_initialize_i386nbsd_tdep): New function.
8223 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8224 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8225 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8226 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8227 (i386nbsd_aout_use_struct_convention): ...this.
8228
8229 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8230
8231 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8232 (store_inferior_registers): Use shnbsd_fill_reg.
8233 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8234 sh_nbsd_supply_register): Collapse into...
8235 (shnbsd_supply_reg): ...this.
8236 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8237 (shnbsd_fill_reg): ...this.
8238 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8239 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8240 (fetch_core_registers): Use shnbsd_supply_reg.
8241 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8242 (sh_nbsd_core_fns): Rename to...
8243 (shnbsd_core_fns): ...this.
8244 (sh_nbsd_elfcore_fns): Rename to...
8245 (shnbsd_elfcore_fns): ...this.
8246 (sh_nbsd_init_abi): Rename to...
8247 (shnbsd_init_abi): ...this.
8248 (_initialize_sh_nbsd_tdep): Rename to...
8249 (_initialize_shnbsd_tdep): ...this.
8250 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8251 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8252 sh_nbsd_fill_register): Remove prototypes.
8253 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8254
8255 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8256
8257 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8258 (i387-nat.o): Delete dependency list.
8259 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8260 (x86-64-linux-nat.o): Likewise.
8261 * i387-nat.c: Delete file, moving contents to...
8262 * i387-tdep.c: ...here.
8263 * i387-nat.h: Rename...
8264 * i387-tdep.h: ...to this.
8265 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8266 * i386-linux-nat.c: Likewise.
8267 * i386bsd-nat.c: Likewise.
8268 * i386gnu-nat.c: Likewise.
8269 * i386nbsd-nat.c: Likewise.
8270 * i386v4-nat.c: Likewise.
8271 * x86-64-linux-nat.c: Likewise.
8272 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8273 * config/i386/go32.mh (NATDEPFILES): Likewise.
8274 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8275 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8276 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8277 * config/i386/linux.mh (NATDEPFILES): Likewise.
8278 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8279 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8280 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8281 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8282
8283 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8284
8285 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8286 (alphanbsd-nat.o): Remove dependency list.
8287 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8288 * alphanbsd-nat.c: Delete. Contents moved to...
8289 * alphanbsd-tdep.c: ...here.
8290 (_initialize_alphanbsd_tdep): Register core functions.
8291 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8292
8293 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8294
8295 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8296 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8297 (alphanbsd-nat.o): Likewise.
8298 (alphabsd-tdep.o): New dependency list.
8299 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8300 (fill_gregset): Use alphabsd_fill_reg.
8301 (supply_fpregset): Use alphabsd_supply_fpreg.
8302 (fill_fpregset): Use alphabsd_fill_fpreg.
8303 (fetch_inferior_registers): Use struct reg and struct fpreg
8304 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8305 and alphabsd_supply_fpreg.
8306 (store_inferior_registers): Use struct reg and struct fpreg
8307 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8308 and alphabsd_fill_fpreg.
8309 * alphabsd-tdep.c: New file.
8310 * alphabsd-tdep.h: New file.
8311 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8312 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8313 alphabsd_supply_fpreg.
8314 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8315 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8316
8317 2002-05-11 Eric Christopher <echristo@redhat.com>
8318
8319 * mips-tdep.c (mips_double_register_type): Fix thinko.
8320 (mips_single_register_type): Ditto.
8321 * MAINTAINERS: Add self.
8322
8323 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8324
8325 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8326 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8327 right thing on architectures with different endianness and/or
8328 integer sizes.
8329
8330 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8331
8332 From Christian Limpach <chris@Pin.LU>
8333 * configure.in: Change sed expression which comments out
8334 NATDEPFILES to also comment out continuation lines.
8335 * configure: Regenerate.
8336
8337 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8338
8339 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8340 big patch.
8341
8342 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8343
8344 * sh-tdep.c: Include correct file.
8345
8346 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8347
8348 New support for sh64-elf (sh5) target.
8349
8350 * configure.tgt: For sh64-elf target, default to sh-elf.
8351
8352 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8353 (struct gdbarch_tdep): Add new fields for new registers and ABI
8354 info.
8355
8356 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8357 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8358 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8359 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8360 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8361 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8362 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8363 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8364 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8365 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8366 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8367 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8368 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8369 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8370 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8371 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8372 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8373 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8374 sign_extend, sh64_nofp_frame_init_saved_regs,
8375 sh64_init_extra_frame_info, sh64_get_saved_register,
8376 sh64_extract_struct_value_address, sh64_pop_frame,
8377 sh64_push_arguments, sh64_extract_return_value,
8378 sh64_store_return_value, sh64_show_media_regs,
8379 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8380 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8381 sh_sh64_register_virtual_type,
8382 sh_sh64_register_convert_to_virtual,
8383 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8384 sh64_register_read, sh64_pseudo_register_write,
8385 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8386 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8387 sh64_do_pseudo_register, sh_compact_do_registers_info,
8388 sh64_do_registers_info, sh_gdbarch_init): New functions.
8389
8390 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8391
8392 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8393
8394 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8395
8396 * linespec.c (decode_line_1): Check for a double quote after
8397 a filename correctly.
8398
8399 2002-05-10 Jim Blandy <jimb@redhat.com>
8400
8401 Properly track the size of the current objfile's .debug_line section.
8402 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8403 (DWARF_LINE_SIZE): New macro.
8404 (dwarf2_build_psymtabs_hard): Record the line section's size in
8405 the partial symbol table.
8406 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8407 symbol table.
8408
8409 2002-05-10 Petr Sorfa <petrs@caldera.com>
8410
8411 * ia64-tdep.c: Handle breakpoints on L instruction type
8412 in MLX instruction bundle by moving the breakpoint to
8413 the third slot (X instruction type) as L holds only data.
8414
8415 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8416
8417 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8418 (process_one_symbol): Complain about discarding local symbols
8419 due to a misplaced N_LBRAC entry.
8420
8421 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8422
8423 From Daniel Berlin <dan@cgsoftware.com>
8424 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8425 decrease the depth we are at, in the case of templates.
8426
8427 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8428
8429 * mips-tdep.c (mips_float_register_type): New function.
8430 (mips_double_register_type): New function.
8431 (mips_print_register): Use them.
8432 (do_fp_register_row): Likewise.
8433
8434 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8435
8436 * signals/signals.c (signals): Remove conditional compilation around
8437 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8438 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8439
8440 2002-05-09 Michael Snyder <msnyder@redhat.com>
8441
8442 * remote-rdp.c (remote_rdp_can_run): Remove.
8443
8444 2002-05-09 Tom Tromey <tromey@redhat.com>
8445
8446 * jv-valprint.c (java_val_print): Handle `char' as a special case
8447 of TYPE_CODE_INT.
8448
8449 2002-05-09 Michael Snyder <msnyder@redhat.com>
8450
8451 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8452 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8453 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8454 str r(0123),[sp,#nn].
8455 (arm_skip_prologue): Ditto. Also make disassembly
8456 order-independent by placing it in a loop.
8457
8458 2002-05-06 Michael Snyder <msnyder@redhat.com>
8459
8460 * stabsread.c (read_type): Add recognition for new attribute:
8461 "@V;" means that an array type is actually a vector.
8462 This is analogous to the vector flag that's been added to dwarf2.
8463
8464 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8465
8466 * i386-tdep.h (i386_abi): New enum.
8467 (struct gdbarch_tdep): Replace os_ident member with abi.
8468 (i386_gdbarch_register_os_abi): New prototype.
8469 * i386-tdep.c (i386_abi_names): New array.
8470 (process_note_abi_tag_sections): Removed.
8471 (process_note_sections): New function.
8472 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8473 (struct i386_abi_handler): New struct.
8474 (i386_abi_handler_list): New variable.
8475 (i386_gdbarch_register_os_abi): New function.
8476 (i386_gdbarch_init): Adapt for the changes given above.
8477
8478 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8479
8480 * gregset.h: Say "GNU/Linux".
8481
8482 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8483
8484 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8485 (build_gdbtypes): Build builtin_type_v2_float.
8486 (_initialize_gdbtypes): Register new builtin type.
8487
8488 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8489
8490 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8491 (clear_gdbarch_swap): New function.
8492 (initialize_non_multiarch): Call.
8493 (gdbarch_update_p): Before calling init(), swap out and clear the
8494 existing architecture.
8495 * gdbarch.c: Regenerate.
8496
8497 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8498
8499 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8500 alphanbsd-tdep.c.
8501
8502 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8503
8504 * sh-nbsd-nat.c: Rename to...
8505 * shnbsd-nat.c: ...this.
8506 * sh-nbsd-tdep.c: Rename to...
8507 * shnbsd-tdep.c: ...this.
8508 * sh-nbsd-tdep.h: Rename to...
8509 * shnbsd-tdep.h: ...this.
8510 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8511 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8512
8513 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8514
8515 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8516 concatenation for command help messages.
8517
8518 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8519
8520 * NEWS: Note new sh*-*-netbsdelf* configuration.
8521 * configure.host: Set gdb_host_cpu to sh for all sh*.
8522 (sh*-*-netbsdelf*): New host.
8523 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8524 (sh*-*-netbsdelf*): New target.
8525 * sh-nbsd-nat.c: New file.
8526 * sh-nbsd-tdep.c: New file.
8527 * sh-nbsd-tdep.h: New file.
8528 * config/sh/nbsd.mh: New file.
8529 * config/sh/nbsd.mt: New file.
8530 * config/sh/nm-nbsd.h: New file.
8531 * config/sh/tm-nbsd.h: New file.
8532
8533 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8534
8535 * sh-tdep.c (sh_osabi_names): Declare.
8536 (process_note_abi_tag_sections): New function.
8537 (get_elfosabi): Ditto.
8538 (sh_gdbarch_register_os_abi): Ditto.
8539 (sh_dump_tdep): Ditto.
8540 _initialize_sh_tdep): Use gdbarch_register to register
8541 sh_gdbarch_init and sh_dump_tdep.
8542 * config/sh/tm-sh.h (sh_osabi): Declare.
8543 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8544
8545 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8546
8547 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8548 (thumb_scan_prologue): Ditto.
8549 (arm_find_callers_reg): Ditto.
8550 (arm_frame_chain): Ditto.
8551 (arm_init_extra_frame_info): Ditto.
8552 (arm_frame_saved_pc): Ditto.
8553 (arm_pop_frame): Ditto.
8554 (arm_push_return_address): New function.
8555 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8556 call_dummy_location, call_dummy_breakpoint_offset_p,
8557 call_dummy_breakpoint_offset, call_dummy_p,
8558 call_dummy_stack_adjust_p, call_dummy_words,
8559 sizeof_call_dummy_words, call_dummy_start_offset,
8560 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8561 call_dummy_address, push_return_address and push_dummy_frame for
8562 generic dummy frames.
8563
8564 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8565
8566 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8567 size computation for alloca.
8568 (sh_fp_frame_init_saved_regs): Likewise.
8569
8570 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8571
8572 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8573 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8574 * arm-tdep.c (arm_store_return_value): Use them.
8575 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8576 * remote-rdp.c (remote_rdp_fetch_register): Use
8577 ARM_MAX_REGISTER_RAW_SIZE.
8578 (remote_rdp_store_register): Likewise.
8579
8580 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8581
8582 * dwarf2cfi.c: Code cleanup, removed unused variables,
8583 added default labels to switch {} statements.
8584 * x86-64-tdep.c: Ditto.
8585 * x86-64-linux-nat.c: Ditto.
8586
8587 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8588
8589 * solib.h: Protect against multiple inclusion.
8590
8591 2002-05-06 Jim Blandy <jimb@redhat.com>
8592
8593 Add first preprocessor macro-expansion files.
8594 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8595 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8596 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8597 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8598 (COMMON_OBS): Add macrotab.o, macroexp.o.
8599 (macroexp.o, macrotab.o): New rules.
8600
8601 Separate the job of reading the line number info statement program
8602 header (...expialidocious) out into its own function.
8603 * dwarf2read.c (struct line_head, struct filenames, struct
8604 directories): Replace with...
8605 (struct line_header): New structure, containing the full
8606 contents of the statement program header, including the
8607 include directory and file name tables.
8608 (read_file_scope): If we have line number info, instead of just
8609 calling dwarf_decode_lines to do all the work, call
8610 dwarf_decode_line_header first to get a `struct line_header'
8611 containing the data in the statement program header, and then
8612 pass that to dwarf_decode_lines, which will pick up where that
8613 left off. Be sure to clean up the `struct line_header' object.
8614 (dwarf_decode_line_header, free_line_header, add_include_dir,
8615 add_file_name): New functions.
8616 (dwarf_decode_lines): Move all the code to read the statement
8617 program header into dwarf_decode_line_header. Take the line
8618 header it built as the first argument, instead of the offset to
8619 the compilation unit's line number info. Use the new `struct
8620 line_header' type instead of the old structures. No need to do
8621 cleanups here now, since we don't allocate anything.
8622 (dwarf2_statement_list_fits_in_line_number_section,
8623 dwarf2_line_header_too_long): New complaints.
8624
8625 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8626
8627 * gdbtypes.c (init_vector_type): New function.
8628 (build_builtin_type_vec128): Simplify the representation of SIMD
8629 registers.
8630 (build_gdbtypes): Initialize new builtin vector types.
8631 (_initialize_gdbtypes): Register new vector types with gdbarch.
8632 (builtin_type_v4_float, builtin_type_v4_int32,
8633 builtin_type_v8_int16, builtin_type_v16_int8,
8634 builtin_type_v2_int32, builtin_type_v4_int16,
8635 builtin_type_v8_int8): New (renamed) SIMD types.
8636
8637 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8638
8639 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8640 (i387_fill_fxsave): Likewise.
8641
8642 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8643
8644 * alpha-tdep.c (alpha_extract_return_value): Don't use
8645 non-constant array size in prototype.
8646
8647 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8648
8649 From Brian Taylor <briant at model dot com>:
8650 * ui-out.c (ui_out_field_core_addr): Use the function
8651 longest_local_hex_string_custom'to format addresses > 32 bits
8652 wide.
8653
8654 * ui-out.c (ui_out_field_core_addr): Update comment.
8655
8656 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8657
8658 * stack.c (select_and_print_frame): Make static. Delete the
8659 parameter `level'.
8660 (func_command): Update call.
8661 (select_frame_command): Delete code computing the frame level.
8662 * frame.h (select_and_print_frame): Delete declaration.
8663
8664 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8665
8666 * sparc-tdep.c (sparc_get_saved_register): Comment why
8667 get_prev_frame call is safe.
8668
8669 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8670
8671 * frame.h (select_frame): Delete level parameter.
8672 * stack.c (select_frame): Update. Use frame_relative_level to
8673 obtain the frame's level.
8674 (select_and_print_frame): Update call.
8675 (select_frame_command): Ditto.
8676 (up_silently_base): Ditto.
8677 (down_silently_base): Ditto.
8678 * ocd.c (ocd_start_remote): Ditto.
8679 * remote-rdp.c (remote_rdp_open): Ditto.
8680 * remote-mips.c (mips_initialize): Ditto.
8681 (common_open): Ditto.
8682 * remote-e7000.c (e7000_start_remote): Ditto.
8683 * m3-nat.c (select_thread): Ditto.
8684 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8685 (child_get_current_exception_event): Ditto.
8686 * varobj.c (varobj_create): Ditto.
8687 (varobj_update): Ditto.
8688 (c_value_of_root): Ditto.
8689 * tracepoint.c (finish_tfind_command): Ditto.
8690 * corelow.c (core_open): Ditto.
8691 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8692 * thread.c (info_threads_command): Ditto.
8693 (switch_to_thread): Ditto.
8694 * infrun.c (normal_stop): Ditto.
8695 (restore_selected_frame): Ditto.
8696 (restore_inferior_status): Ditto.
8697 * breakpoint.c (insert_breakpoints): Ditto.
8698 (watchpoint_check): Ditto.
8699 (bpstat_stop_status): Ditto.
8700 (do_enable_breakpoint): Ditto.
8701 * blockframe.c (flush_cached_frames): Ditto.
8702 (reinit_frame_cache): Ditto.
8703
8704 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8705
8706 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8707 maintainer.
8708
8709 2002-05-04 Jim Blandy <jimb@redhat.com>
8710
8711 * gdbtypes.c (replace_type): Doc fix.
8712
8713 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8714
8715 * valprint.c (strcat_longest): Delete commented out function.
8716 Update copyright.
8717
8718 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8719
8720 * MAINTAINERS: Mark a29k as deleted.
8721 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8722 Move new configurations to the top.
8723 * configure.tgt: Remove a29k.
8724 * config/a29k/tm-vx29k.h: Delete.
8725 * config/a29k/vx29k.mt: Delete.
8726 * config/a29k/tm-a29k.h: Delete.
8727 * config/a29k/a29k-udi.mt: Delete.
8728 * config/a29k/a29k.mt: Delete.
8729 * a29k-tdep.c: Delete.
8730 * remote-udi.c: Delete.
8731 * remote-mm.c: Delete.
8732 * remote-eb.c: Delete.
8733 * remote-adapt.c: Delete.
8734 * Makefile.in: Remove obsolete code.
8735 * config/s390/s390x.mt: Ditto.
8736 * config/s390/s390.mt: Ditto.
8737 * config/sparc/sparclynx.mh: Ditto.
8738 * config/sparc/linux.mh: Ditto.
8739 * config/pa/hppaosf.mh: Ditto.
8740 * config/pa/hppabsd.mh: Ditto.
8741 * config/ns32k/nbsd.mt: Ditto.
8742 * config/mips/vr5000.mt: Ditto.
8743 * config/m68k/sun3os4.mh: Ditto.
8744 * config/m68k/nbsd.mt: Ditto.
8745 * config/m68k/m68klynx.mh: Ditto.
8746 * config/m32r/m32r.mt: Ditto.
8747 * config/i386/x86-64linux.mt: Ditto.
8748 * config/i386/nbsdelf.mt: Ditto.
8749 * config/i386/nbsd.mt: Ditto.
8750 * config/i386/i386lynx.mh: Ditto.
8751
8752 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8753
8754 * target.c (debug_print_register): New function. Handle oversize
8755 registers.
8756 (debug_to_fetch_registers): Call.
8757 (debug_to_store_registers): Call.
8758
8759 2002-05-03 Jim Blandy <jimb@redhat.com>
8760
8761 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8762 (read_type): Doc fix.
8763 * gdbtypes.c (replace_type): Doc fix.
8764
8765 * stabsread.c (multiply_defined_struct): New complaint.
8766 (read_struct_type): If the type we were passed isn't empty, or
8767 incomplete, don't read the new struct type into it; complain,
8768 and return the original type unchanged. Take a new `type_code'
8769 argument, which is the type code for the new type.
8770 (read_type): Rather than storing the type's type code here, pass
8771 it as an argument to read_struct_type, and let that take care of
8772 storing it. That way, we don't overwrite the original type code,
8773 so read_struct_type can use it to decide whether we're overwriting
8774 something we shouldn't.
8775 (complain_about_struct_wipeout): New function.
8776
8777 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8778
8779 * gdbarch.sh: Assert that gdbarch is non-NULL.
8780 * gdbarch.c: Regenerate.
8781
8782 2002-05-03 Jason Merrill <jason@redhat.com>
8783
8784 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8785 and return NULL.
8786
8787 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8788
8789 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8790 (x86_64_dwarf2gdb_regno_map_length),
8791 (x86_64_dwarf2_reg_to_regnum): Added.
8792 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8793 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8794 (_initialize_x86_64_tdep): Synced with the change above.
8795 (x86_64_skip_prologue): Reformulated message.
8796
8797 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8798
8799 * f-exp.y: Also use new prev_lexptr variable
8800 to improve error reporting. Based on Michael Snyder
8801 2002-04-24 dated patch to c-exp.y.
8802 * jv-exp.y: Likewise.
8803 * m2-exp.y: Likewise.
8804
8805 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8806
8807 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8808 we are dealing with vectors.
8809
8810 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8811
8812 * config/m68k/tm-nbsd.h: Obvious fix,
8813 correct machine name.
8814
8815 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8816
8817 * p-typeprint.c (pascal_type_print_base): Add support
8818 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8819
8820 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8821
8822 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8823 for fondamental pascal 'char' type.
8824
8825 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8826
8827 * p-lang.h (is_pascal_string_type): Declaration changed,
8828 new sixth argument of type char ** added.
8829 * p-lang.c (is_pascal_string_type): Implementation
8830 changed. Args length_pos, length_size, string_pos, char_size
8831 can now be NULL. New argument arrayname set to the field
8832 name of the char array. Return value set to char array
8833 field index plus one.
8834 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8835 is_pascal_string_type function.
8836
8837 2002-05-02 Andrew Cagney <cagney@redhat.com>
8838
8839 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8840 <cagney@redhat.com> change.
8841 * gdbarch.c: Regenerate.
8842
8843 2002-05-02 Andrew Cagney <cagney@redhat.com>
8844
8845 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8846 before probing for a new one. Detect errorenous gdbarch_init
8847 functions.
8848 * gdbarch.c: Regenerate.
8849
8850 2002-05-01 Andrew Cagney <cagney@redhat.com>
8851
8852 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8853 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8854 * config/v850/tm-v850.h: Ditto. Update copyright.
8855
8856 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8857
8858 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8859 current_gdbarch.
8860
8861 2002-04-30 Michael Snyder <msnyder@redhat.com>
8862
8863 * arm-tdep.c: Whitespace clean-ups.
8864 (arm_skip_prologue): Fix thinko; two lines
8865 should have been removed as part of 4/24 change.
8866
8867 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8868
8869 * rs6000-tdep.c: Added comment describing how fpscr register
8870 numbers were chosen.
8871
8872 2002-04-30 Michael Snyder <msnyder@redhat.com>
8873
8874 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8875
8876 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8877
8878 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8879 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8880 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8881
8882 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8883
8884 From Louis Hamilton <hamilton@redhat.com>:
8885 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8886 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8887 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8888 not bfd-private xcoff data, to determine wordsize.
8889 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8890
8891 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8892
8893 GDB 5.2 released from 5.2 branch.
8894
8895 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8896
8897 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8898 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8899 (x86_64_register_info_table): Added comments with register numbers.
8900
8901 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8902
8903 * rs6000-tdep.c (rs6000_extract_return_value,
8904 rs6000_store_return_value): Handle returning vectors.
8905 (rs6000_gdbarch_init): Use
8906 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8907 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8908 New function.
8909 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8910 vectors.
8911 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8912 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8913
8914 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8915
8916 * hpread.c (hpread_psymtab_to_symtab_1,
8917 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8918 with fprintf_unfiltered (gdb_stderr,...).
8919
8920 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8921
8922 * remote-array.c (printf_monitor, write_monitor,
8923 array_insert_breakpoint, array_remove_breakpoint ):
8924 Replace fprintf (stderr,...
8925 with fprintf_unfiltered (gdb_stderr,....
8926 * remote-es.c: Likewise.
8927 * remote-os9k.c: Likewise.
8928 * remote-st.c: Likewise.
8929
8930 2002-04-28 Andreas Schwab <schwab@suse.de>
8931
8932 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8933 linux-proc.o and gcore.o.
8934
8935 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8936
8937 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8938 code without frame pointers.
8939
8940 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8941
8942 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8943 ON_STACK is needed.
8944
8945 2002-04-26 Ben Elliston <bje@redhat.com>
8946
8947 * target.c (do_xfer_memory): Correct reference to the new option
8948 "trust-readonly-sections".
8949
8950 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8951
8952 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8953 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8954 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8955 vectors.
8956 (read_array_type): Record the fact that this array type is really a
8957 vector (i.e. are passed in by value).
8958
8959 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8960
8961 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8962 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8963 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8964 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8965 * alpha-linux-tdep.c: Include frame.h.
8966 (alpha_linux_sigcontext_addr): New function.
8967 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8968 alpha_linux_sigcontext_addr.
8969 * alpha-osf1-tdep.c: Include gdbcore.h.
8970 (alpha_osf1_sigcontext_addr): New function.
8971 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8972 alpha_osf1_sigcontext_addr.
8973 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8974 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8975
8976 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8977
8978 * stack.c (selected_frame_level):
8979 (select_frame): Do not set selected_frame_level.
8980 * frame.h (selected_frame_level): Delete declaration.
8981
8982 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8983
8984 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8985 convert_from_func_ptr-addr when AIX / PowerOpen.
8986
8987 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8988
8989 * valops.c (hand_function_call): Call
8990 generic_save_call_dummy_addr.
8991 * frame.h (generic_save_call_dummy_addr): Declare.
8992 * blockframe.c (struct dummy_frame): Add fields call_lo and
8993 call_hi.
8994 (generic_find_dummy_frame): Check for PC in range call_lo to
8995 call_hi instead of entry_point_address.
8996 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8997 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8998 (generic_save_call_dummy_addr): New function.
8999
9000 2002-04-24 David S. Miller <davem@redhat.com>
9001
9002 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9003 sparc_skip_prologue.
9004 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9005 information to find prologue when possible.
9006 (sparc_prologue_frameless_p): Call examine_prologue directly.
9007 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9008 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9009 second argument.
9010 (SKIP_PROLOGUE): Likewise.
9011
9012 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9013
9014 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9015 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9016 indicate that the condition it was testing is always true.
9017 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9018 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9019 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9020
9021 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9022
9023 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9024 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9025 tdep->jb_pc and tdep->jb_elt_size.
9026 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9027 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9028 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9029 * alpha-nat.c (get_longjmp_target): Remove.
9030 (JB_ELEMENT_SIZE): Ditto.
9031 (JB_PC): Ditto.
9032 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9033 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9034 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9035 to alpha_get_longjmp_target.
9036 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9037 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9038 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9039
9040 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9041
9042 * README: Update to GDB 5.2.
9043
9044 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9045
9046 * gdbarch.sh (LC_ALL): Set to `c'.
9047
9048 2002-04-25 Theodore A. Roth <troth@verinet.com>
9049
9050 * avr-tdep.c: Ran through gdb_indent.sh.
9051
9052 2002-04-25 Theodore A. Roth <troth@verinet.com>
9053
9054 * MAINTAINERS: Add myself as AVR maintainer.
9055 * NEWS: Note new target avr.
9056
9057 2002-04-25 Theodore A. Roth <troth@verinet.com>
9058
9059 * Makefile.in: Add support for AVR target.
9060 * configure.tgt: Add support for AVR target.
9061 * avr-tdep.c: New file
9062 * config/avr/avr.mt: New file.
9063
9064 2002-04-25 Theodore A. Roth <troth@verinet.com>
9065
9066 * MAINTAINERS: Add myself to write-after-approval.
9067
9068 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9069
9070 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9071 with fprintf_unfiltered (gdb_stderr,....
9072
9073 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9074
9075 Fix PR gdb/508.
9076 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9077
9078 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9079
9080 * p-exp.y: Also use new prev_lexptr variable
9081 to improve error reporting. Based on Michael Snyder
9082 2002-04-24 dated patch to c-exp.y.
9083
9084 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9085
9086 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9087 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9088 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9089 to 0.
9090 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9091 and struct value.
9092 (FUNCTION_START_OFFSET): Remove.
9093 (BREAKPOINT): Ditto.
9094
9095 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9096
9097 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9098 * NEWS: Ditto.
9099
9100 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9101
9102 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9103 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9104 alpha_linux_pc_in_sigtramp.
9105 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9106 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9107 alpha_osf1_pc_in_sigtramp.
9108 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9109 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9110 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9111 alphafbsd_pc_in_sigtramp.
9112 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9113 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9114 alphanbsd_pc_in_sigtramp.
9115 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9116 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9117
9118 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9119
9120 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9121
9122 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9123
9124 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9125 alphanbsd-tdep.c.
9126 (alphanbsd-nat.o): New dependency list.
9127 (alphanbsd-tdep.o): Ditto.
9128 * NEWS: Note new native NetBSD/alpha configuration.
9129 * alphanbsd-nat.c: New file.
9130 * alphanbsd-tdep.c: Ditto.
9131 * configure.host (alpha*-*-netbsd*): New host.
9132 * configure.tgt (alpha*-*-netbsd*): New target.
9133 * config/alpha/nbsd.mh: New file.
9134 * config/alpha/nbsd.mt: Ditto.
9135 * config/alpha/nm-nbsd.h: Ditto.
9136 * config/alpha/tm-nbsd.h: Ditto.
9137
9138 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9139
9140 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9141 (alpha-osf1-tdep.o): New dependency list.
9142 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9143 and skip_sigtramp_frame members.
9144 * alpha-linux-tdep.c: Include gdbcore.h.
9145 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9146 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9147 * alpha-osf1-tdep.c: New file.
9148 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9149 alpha-osf1-dep.c.
9150 (alpha_frame_past_sigtramp_frame): New function.
9151 (alpha_dynamic_sigtramp_offset): Ditto.
9152 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9153 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9154 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9155 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9156 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9157 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9158 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9159 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9160 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9161 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9162 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9163 to find_solib_trampoline_target.
9164 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9165 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9166 (SKIP_TRAMPOLINE_CODE): Remove.
9167 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9168 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9169 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9170 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9171 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9172 (PROC_SIGTRAMP_MAGIC): Ditto.
9173 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9174 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9175 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9176 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9177 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9178
9179 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9180
9181 * NEWS: Note that Alpha targets are now multi-arch.
9182
9183 2002-04-24 Michael Snyder <msnyder@redhat.com>
9184
9185 * parser-defs.h (prev_lexptr): New external variable.
9186 * parse.c (parse_exp_1): Set prev_lexptr to null before
9187 calling the language-specific parser.
9188 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9189 (yyerror): Use prev_lexptr in error reporting.
9190
9191 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9192
9193 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9194 * gregset.h: If FILL_FPXREGSET is defined, provide
9195 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9196 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9197 is defined, call fill_fpxregset.
9198
9199 2002-04-24 Roland McGrath <roland@frob.com>
9200
9201 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9202 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9203 (supply_gregset, supply_fpregset): New functions.
9204
9205 * gnu-nat.c (gnu_find_memory_regions): New function.
9206 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9207 (gnu_xfer_memory): Add a cast.
9208
9209 2002-04-24 Michael Snyder <msnyder@redhat.com>
9210
9211 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9212 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9213 of argument regs ("str r(0123), [r11, #-nn"]).
9214 (arm_skip_prologue): Better handling for frameless functions.
9215 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9216 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9217
9218 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9219
9220 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9221 NUM_PSEUDO_REGS can be used.
9222
9223 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9224
9225 * arch-utils.h: Update copyright.
9226
9227 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9228 * gdbarch.h, gdbarch.c: Re-generate.
9229
9230 * inferior.h (IN_SIGTRAMP): Delete definition.
9231 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9232 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9233
9234 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9235 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9236 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9237 (find_proc_framesize): Ditto.
9238 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9239 (alpha_init_extra_frame_info): Ditto.
9240 * infrun.c (handle_inferior_event): Ditto.
9241 (handle_inferior_event): Ditto.
9242 (check_sigtramp2): Ditto.
9243 * blockframe.c (create_new_frame): Ditto.
9244 (get_prev_frame): Ditto.
9245 * ppc-linux-tdep.c: Update comments.
9246 * i386-linux-tdep.c: Update comments.
9247 * breakpoint.c (bpstat_what): Update comment.
9248
9249 2002-04-24 David S. Miller <davem@redhat.com>
9250
9251 * i960-tdep.c (register_in_window_p): New function.
9252 (i960_find_saved_register): Use it instead of
9253 REGISTER_IN_WINDOW_P.
9254 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9255
9256 * symtab.h (find_stab_function_addr): Kill extern.
9257 * minsyms.c (find_stab_function_addr): Remove from here...
9258 * dbxread.c: ... to here, and mark it static.
9259
9260 2002-04-20 David S. Miller <davem@redhat.com>
9261
9262 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9263 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9264
9265 2002-04-21 David S. Miller <davem@redhat.com>
9266
9267 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9268 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9269 (vx_write_register): Likewise.
9270
9271 2002-04-23 J. Brobecker <brobecker@gnat.com>
9272
9273 * source.c (is_regular_file): New function.
9274 (openp): Check wether file to open is a regular file
9275 to avoid opening directories.
9276
9277 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9278
9279 * findvar.c (extract_signed_integer): Cast printf argument
9280 to suppress format warning.
9281 (extract_unsigned_integer): Likewise.
9282 * infcmd.c (registers_info): Likewise.
9283 * top.c (get_prompt_1): Likewise.
9284 * valops.c (value_assign): Likewise.
9285 * valprint.c (print_decimal): Likewise.
9286
9287 2002-04-22 H.J. Lu (hjl@gnu.org)
9288
9289 * c-exp.y (typebase): Support
9290
9291 [long|long long|short] [signed|unsigned] [int|]
9292
9293 and
9294
9295 signed [long|long long|short] int
9296
9297 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9298
9299 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9300 and vax-tdep.h.
9301 * vax-tdep.h: New file.
9302 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9303 Make several routines static.
9304 (vax_get_saved_register): New function.
9305 (vax_gdbarch_init): New function.
9306 (_initialize_vax_tdep): Register vax_gdbarch_init.
9307 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9308 Remove macros now under the control of gdbarch.
9309
9310 2002-04-22 Michael Snyder <msnyder@redhat.com>
9311
9312 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9313 Some whitespace and coding standards tweaks.
9314
9315 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9316
9317 * vax-tdep.c: Include regcache.h.
9318 (vax_call_dummy_words): New.
9319 (sizeof_vax_call_dummy_words): New.
9320 (vax_fix_call_dummy): New function.
9321 (vax_saved_pc_after_call): Ditto.
9322 * config/vax/tm-vax.h: Don't include regcache.h.
9323 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9324 (CALL_DUMMY): Remove.
9325 (CALL_DUMMY_WORDS): Define.
9326 (SIZEOF_CALL_DUMMY_WORDS): Define.
9327 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9328
9329 2002-04-18 Michael Snyder <msnyder@redhat.com>
9330
9331 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9332
9333 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9334
9335 * vax-tdep.c (vax_frame_chain): New function.
9336 (vax_push_dummy_frame): Ditto.
9337 (vax_pop_frame): Ditto.
9338 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9339 (FRAMELESS_FUNCTION_INVOCATION): Use
9340 generic_frameless_function_invocation_not.
9341 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9342 (POP_FRAME): Use vax_pop_frame.
9343
9344 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9345
9346 * vax-tdep.c (vax_store_struct_return): New function.
9347 (vax_extract_return_value): Ditto.
9348 (vax_store_return_value): Ditto.
9349 (vax_extract_struct_value_address): Ditto.
9350 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9351 vax_store_struct_return.
9352 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9353 (STORE_RETURN_VALUE): Use vax_store_return_value.
9354 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9355
9356 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9357
9358 * vax-tdep.c (vax_frame_saved_pc): New function.
9359 (vax_frame_args_address_correct): Ditto.
9360 (vax_frame_args_address): Ditto.
9361 (vax_frame_locals_address): Ditto.
9362 (vax_frame_num_args): Move code to be in proximity to
9363 other frame-related functions.
9364 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9365 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9366 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9367 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9368 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9369
9370 2002-04-22 H.J. Lu (hjl@gnu.org)
9371
9372 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9373 includedir.
9374
9375 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9376
9377 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9378 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9379 (FRAME_INIT_SAVED_REGS): New macro.
9380
9381 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9382
9383 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9384
9385 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9386
9387 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9388 where needed.
9389 (fetch_osf_core_registers): Likewise.
9390 (supply_gregset): Likewise.
9391
9392 2002-04-22 J. Brobecker <brobecker@gnat.com>
9393
9394 * symfile.h (get_section_index): Define.
9395 * symfile.c (get_section_index): New function.
9396 * mdebugread.c (SC_IS_SBSS): New macro.
9397 (SC_IS_BSS): Return true for the scBss storage class only, as
9398 the scSBss storage class refers to the .sbss section.
9399 (parse_partial_symbols): Discard the symbols which associated
9400 section does not exist.
9401 Make sure to use the .sbss section index for symbols which
9402 storage class is scBss, rather than using the .bss section index.
9403
9404 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9405
9406 * vax-tdep.c: Update copyright years.
9407 (vax_register_name): New function.
9408 (vax_register_byte): Ditto.
9409 (vax_register_raw_size): Ditto.
9410 (vax_register_virtual_size): Ditto.
9411 (vax_register_virtual_type): Ditto.
9412 * config/vax/tm-vax.h: Update copyright years.
9413 (REGISTER_NAMES): Remove.
9414 (REGISTER_NAME): Define.
9415 (REGISTER_BYTE): Use vax_register_byte.
9416 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9417 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9418 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9419
9420 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9421
9422 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9423 declaration
9424 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9425
9426 2002-04-21 David S. Miller <davem@redhat.com>
9427
9428 * arch-utils.c (generic_prologue_frameless_p): Kill
9429 SKIP_PROLOGUE_FRAMELESS_P code.
9430 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9431 references.
9432 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9433 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9434 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9435 references.
9436 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9437 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9438 (sparc_gdbarch_init): Pass it to
9439 set_gdbarch_prologue_frameless_p.
9440
9441 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9442
9443 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9444 (alphabsd-nat.o): New dependency list.
9445
9446 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9447
9448 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9449 alphafbsd-tdep.c.
9450 (alpha-linux-tdep.o): New dependency list.
9451 (alphafbsd-tdep.o): Likewise.
9452
9453 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9454
9455 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9456 to here...
9457 * alpha-tdep.c: ...from here.
9458 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9459
9460 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9461
9462 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9463 prototype from here...
9464 * alpha-tdep.h: ...to here.
9465
9466 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9467
9468 * frame.h (selected_frame_level): Document as deprecated.
9469 (frame_relative_level): Declare.
9470 * stack.c (frame_relative_level): New function.
9471 (selected_frame_level): Document as deprecated.
9472 (select_frame): Do not set the selected_frame_level.
9473
9474 * stack.c (frame_info, record_selected_frame): Update.
9475 (frame_command, current_frame_command): Update.
9476 (up_silently_base, up_command, down_silently_base): Update.
9477 (down_command): Update.
9478 * inflow.c (kill_command): Update.
9479 * tracepoint.c (finish_tfind_command): Update.
9480 * corelow.c (core_open): Update.
9481 * thread.c (info_threads_command): Update.
9482 (do_captured_thread_select): Update.
9483 * infcmd.c (finish_command): Update.
9484 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9485
9486 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9487
9488 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9489
9490 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9491
9492 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9493 type const.
9494
9495 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9496
9497 * alphafbsd-tdep.c: Update copyright years. Include
9498 alpha-tdep.h.
9499 (alphafbsd_use_struct_convention): Make static.
9500 (alphafbsd_init_abi): New function.
9501 (_initialize_alphafbsd_tdep): New function.
9502 * config/alpha/tm-fbsd.h: Update copyright years.
9503 (USE_STRUCT_CONVENTION): Remove.
9504
9505 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9506
9507 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9508 an Alpha ABI variant.
9509 (alpha_abi_handler_list): Declare.
9510 (alpha_gdbarch_register_os_abi): New function.
9511 (alpha_gdbarch_init): Give registered ABI variant handlers a
9512 chance to tweak the gdbarch once we have set up defaults.
9513 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9514
9515 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9516
9517 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9518 to standard_coerce_float_to_double.
9519 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9520
9521 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9522
9523 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9524 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9525 from gdbarch_tdep rather than a constant.
9526 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9527 the default text address for all Alpha Unix ABIs.
9528 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9529 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9530
9531 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9532
9533 * alpha-tdep.h: New file. Includes several Alpha target constants
9534 taken from...
9535 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9536 let gdbarch deal with.
9537 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9538 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9539 to dependency list.
9540 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9541 Alpha target register names.
9542 * alphabsd-nat.c: Likewise.
9543 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9544 Alpha target register names. Make serveral routines static.
9545 (alpha_get_saved_register): New function.
9546 (alpha_abi_names): New.
9547 (process_note_abi_tag_sections): New function.
9548 (get_elfosabi): New function.
9549 (alpha_gdbarch_init): New function.
9550 (alpha_dump_tdep): New function.
9551 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9552
9553 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9554
9555 * frame.c (find_saved_register): Delete #ifdef
9556 HAVE_REGISTER_WINDOWS code.
9557 * config/sparc/tm-sparc.h: Update comments.
9558 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9559
9560 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9561
9562 * i960-tdep.c (i960_find_saved_register): New function.
9563 (i960_get_saved_register): New function.
9564 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9565 (i960_get_saved_register): Declare.
9566 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9567
9568 2002-04-20 David S. Miller <davem@redhat.com>
9569
9570 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9571
9572 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9573
9574 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9575 instead of NUM_PSEUDO_REGS.
9576
9577 2002-04-20 David S. Miller <davem@redhat.com>
9578
9579 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9580 GDB_MULTI_ARCH_PARTIAL
9581 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9582 define, let tm-sp64.h do it.
9583
9584 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9585
9586 * frame.c (find_saved_register): Avoid a NULL pointer
9587 dereference and actually walk the frame list.
9588
9589 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9590
9591 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9592 sorted in most most-recent-used order. Document.
9593 * gdbarch.h, gdbarch.c: Regenerate.
9594
9595 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9596
9597 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9598 instead of ->prev.
9599 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9600 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9601 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9602 instead of ->prev.
9603
9604 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9605
9606 Fix PR gdb/471.
9607 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9608 (build_builtin_type_vec128): Ditto.
9609 (append_composite_type_field): Fix calculation of type length in
9610 union case.
9611
9612 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9613
9614 * config/djgpp/README: Update.
9615
9616 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9617 compiler warnings.
9618
9619 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9620
9621 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9622 (alpha_setup_arbitrary_frame): ...to this.
9623 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9624 for alpha_setup_arbitrary_frame.
9625
9626 2002-04-18 Andrew Cagney <cagney@redhat.com>
9627
9628 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9629 * gdbarch.h, gdbarch.c: Regenerate.
9630
9631 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9632 * target.h (memory_breakpoint_from_pc): Update declaration.
9633 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9634
9635 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9636 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9637 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9638 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9639 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9640 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9641 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9642 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9643 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9644 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9645 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9646 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9647
9648 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9649 const pointer.
9650 * monitor.c (monitor_insert_breakpoint): Ditto.
9651 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9652
9653 * config/mcore/tm-mcore.h: Update copyright.
9654 * mem-break.c: Ditto.
9655 * xstormy16-tdep.c: Ditto.
9656
9657 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9658
9659 * p-exp.y: Add precedence rule for '^' token.
9660 This removes the shift/reduce conflicts.
9661 Remove the comment concerning these shift/reduce conflicts.
9662
9663 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9664
9665 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9666 (registers_powerpc_nofp): New register set for processors
9667 without floating point unit.
9668
9669 2002-04-18 David S. Miller <davem@redhat.com>
9670
9671 * MAINTAINERS: Add myself to write-after-approval.
9672
9673 2002-04-17 Michael Snyder <msnyder@redhat.com>
9674
9675 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9676
9677 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9678
9679 * rs6000-tdep.c (frame_initial_stack_address): Use
9680 frame_register_read to read the alloca_reg.
9681
9682 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9683
9684 * frame.c (find_saved_register): Find saved registers in the next
9685 not prev frame.
9686 Fix PR gdb/365.
9687
9688 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9689
9690 * gdbarch.sh (LANG): Set to ``c''.
9691
9692 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9693
9694 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9695
9696 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9697
9698 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9699 Update copyright.
9700
9701 * hpread.c (hpread_get_lntt): Add declaration.
9702 Also fix PR gdb/391.
9703
9704 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9705
9706 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9707 * aclocal.m4, configure: Re-generate.
9708 Fix PR gdb/391.
9709
9710 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9711
9712 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9713 instead of tm_print_insn.
9714
9715 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9716
9717 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9718
9719 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9720
9721 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9722 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9723 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9724
9725 2002-04-12 Don Howard <dhoward@redhat.com>
9726
9727 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9728 max_user_call_depth.
9729 (init_cmd_lists): Initialize the new value;
9730 * cli/cli-script.c (execute_user_command): Limit the call depth of
9731 user defined commands. This avoids a core-dump when user commands
9732 are infinitly recursive.
9733
9734 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9735
9736 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9737 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9738 from tdep struct instead of DEFAULT_LR_SAVE.
9739 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9740 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9741 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9742
9743 2002-04-12 Michael Snyder <msnyder@redhat.com>
9744
9745 * Remote.c: Spelling fix.
9746 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9747 If no symbol found for "sbrk", try "_sbrk".
9748 (make_output_phdrs): Use bfd_section_name.
9749 (gcore_copy_callback): Use bfd_section_name.
9750 * eval.c: Indentation fix-ups.
9751 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9752 in case it gets applied to an address that is already
9753 in the instruction space.
9754 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9755 * symfile.c: Fix indentation, long lines.
9756 * source.c: White space fix-up.
9757
9758 2002-04-12 Andrew Cagney <cagney@redhat.com>
9759
9760 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9761 * frame.c (frame_register_read): New function. Return non-zero on
9762 success.
9763 (read_relative_register_raw_bytes_for_frame): Delete.
9764 (read_relative_register_raw_bytes): Delete.
9765 * frame.h (frame_register_read): Declare.
9766 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9767 * sh-tdep.c: Ditto.
9768 * infcmd.c (do_registers_info): Ditto.
9769 * hppa-tdep.c: Ditto.
9770 * rs6000-tdep.c: Ditto.
9771 * h8500-tdep.c: Ditto.
9772 * mips-tdep.c: Ditto.
9773 * h8300-tdep.c: Ditto.
9774 * z8k-tdep.c: Ditto.
9775
9776 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9777
9778 From Jimi X <jimix@watson.ibm.com>:
9779 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9780 64-bit SysV ABI.
9781
9782 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9783
9784 From Jimi X <jimix@watson.ibm.com>:
9785 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9786 bfd info.
9787
9788 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9789
9790 From Jimi X <jimix@watson.ibm.com>:
9791 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9792 register sets for these processor variants.
9793
9794 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9795
9796 * regformats/reg-ppc.dat: Support FPSCR.
9797
9798 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9799
9800 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9801 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9802 Add fpscr as an invalid/unfetchable register.
9803 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9804 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9805 (fill_fpregset): Add support for register fpscr.
9806 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9807 (fill_gregset): Account for the fact that register ``mq'' might
9808 not exist.
9809 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9810 (registers_power): Add fpscr to register set at slot 71.
9811 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9812 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9813
9814 2002-04-11 Michael Snyder <msnyder@redhat.com>
9815
9816 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9817 * configure: Regenerate.
9818 * config.in: Regenerate.
9819 * acconfig.h: Add define for _SYSCALL32.
9820 * core-sol2.c: Remove #define _SYSCALL32.
9821 * solib-legacy.c: Remove #define _SYSCALL32.
9822
9823 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9824
9825 * stack.c (select_frame): Cleanup internal error message, do not
9826 use %p.
9827
9828 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9829
9830 * stack.c (select_frame): Check that selected_frame and the
9831 specified level are as expected.
9832 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9833 Update copyright.
9834 * frame.h (struct frame_info): Add field `level'. Update
9835 copyright.
9836 Work-in-progress PR gdb/464.
9837
9838 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9839
9840 * maint.c (maint_print_section_info): Rename print_section_info.
9841 (print_bfd_section_info, print_objfile_section_info): Update.
9842 * inferior.h (struct gdbarch): Add opaque declaration.
9843 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9844 * gdbarch.h: Regenerate.
9845
9846 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9847
9848 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9849 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9850 (kernel_u_size): Added.
9851 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9852 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9853
9854 2002-04-04 Jim Ingham <jingham@apple.com>
9855
9856 * valarith.c (find_size_for_pointer_math): New function, either returns
9857 the size for a pointer's target, returns 1 for void *, or errors for
9858 incomplete types.
9859 (value_add, value_sub): use find_size_for_pointer_math.
9860
9861 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9862
9863 * linux-low.c (linux_look_up_symbols): New hook.
9864 (linux_target_ops): Add linux_look_up_symbols.
9865 * remote-utils.c (decode_address): New function.
9866 (look_up_one_symbol): New function.
9867 * server.c (handle_query): Call target look_up_symbols hook.
9868 * server.h (look_up_one_symbol): Add prototype.
9869 * target.h (struct target_ops): Add look_up_symbols hook.
9870
9871 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9872
9873 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9874 override FP_REGNUM with frame->fp. Update copyright.
9875 * parse.c (num_std_regs, std_regs): Delete.
9876 (target_map_name_to_register): Do not search std_regs. Update
9877 function description.
9878 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9879 declarations. Update copyright.
9880 Fix PR gdb/251.
9881
9882 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9883
9884 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9885 after the last symbol in a block.
9886
9887 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9888
9889 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9890 is non zero as a found symbol.
9891
9892 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9893
9894 * findvar.c: Include "builtin-regs.h".
9895 (value_of_register): Call value_of_builtin_reg when applicable.
9896 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9897 (target_map_name_to_register): Call
9898 builtin_reg_map_name_to_regnum.
9899 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9900 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9901 (builtin_regs_h): Define.
9902 (builtin-regs.o): New target.
9903 (findvar.o): Add $(builtin_regs_h).
9904 * builtin-regs.c, builtin-regs.h: New files.
9905 * std-regs.c: New file.
9906 Partial fix for PR gdb/251.
9907
9908 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9909
9910 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9911 it's no longer required.
9912
9913 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9914
9915 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9916
9917 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9918
9919 From Jimi X <jimix@watson.ibm.com>:
9920 * rs6000-tdep.c (rs6000_software_single_step): Use
9921 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9922 and size. Use target_insert_breakpoint() and
9923 target_remove_breakpoint() to insert and remove breakpoints
9924 instead of explicit memory reads and writes.
9925
9926 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9927
9928 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9929 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9930 ELF_OBJECT_FORMAT ifdef.
9931
9932 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9933
9934 From Jimi X <jimix@watson.ibm.com>:
9935 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9936
9937 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9938
9939 From Jimi X <jimix@watson.ibm.com>:
9940 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9941 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9942
9943 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9944
9945 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9946 s/asprintf/xasprintf/.
9947 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9948
9949 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9950
9951 I believe Jeff Law denies responsability for this one:
9952 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9953 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9954 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9955 Work-around for PR gdb/366.
9956
9957 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9958
9959 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9960 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9961 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9962
9963 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9964
9965 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9966 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9967 information.
9968
9969 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9970
9971 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9972 maintainer.
9973
9974 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9975
9976 * README (Reporting Bugs in GDB): Document the bug web page as the
9977 prefered way of submitting bugs.
9978 Fix PR gdb/402.
9979
9980 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9981
9982 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9983 -1. Update comment.
9984 * gdbarch.h, gdbarch.c: Re-generate.
9985
9986 2002-04-07 Andreas Schwab <schwab@suse.de>
9987
9988 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9989 buffer to regcache_collect.
9990
9991 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9992
9993 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9994 * gdbarch.c, gdbarch.h: Re-generate.
9995
9996 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9997
9998 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9999 declaration. Fix -Werror.
10000
10001 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10002
10003 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10004 * gdbarch.c: Regenerate.
10005
10006 2002-04-05 Michael Snyder <msnyder@redhat.com>
10007
10008 * breakpoint.c (clear_command): Rewrite middle section to
10009 combine two loops with identical control conditions.
10010 Add a cleanup to eliminate a memory leak.
10011 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10012
10013 2002-04-05 H.J. Lu (hjl@gnu.org)
10014
10015 * solib-svr4.c (bkpt_names): Add "__start".
10016
10017 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10018
10019 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10020 as test for 64 bit target.
10021
10022 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10023
10024 * h8500-tdep.c (h8500_write_fp): Delete function.
10025 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10026 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10027 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10029 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10030 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10031 (s390_write_fp):
10032 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10033 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10034 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10035 (d10v_write_fp): Delete function.
10036 * inferior.h (write_fp, generic_target_write_fp): Delete
10037 declarations.
10038 * regcache.c (generic_target_write_fp): Delete function.
10039 (write_fp): Delete function.
10040 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10041 * gdbarch.h, gdbarch.c: Regenerate.
10042 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10043 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10044 (sparc64_write_fp): Delete declaration.
10045 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10046 (h8500_write_fp): Delete declaration.
10047
10048 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10049
10050 * sparc-tdep.c (sparc64_write_fp): Delete.
10051 (sparc_push_dummy_frame): Replace write_fp call with code to store
10052 the FP directly.
10053 (sparc_gdbarch_init): Do not initialize write_fp.
10054
10055 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10056
10057 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10058 clause.
10059
10060 2002-03-29 Jim Blandy <jimb@redhat.com>
10061
10062 * stack.c (get_selected_block): Add new argument `addr_in_block',
10063 used to return the exact code address we used to select the block,
10064 not just the block.
10065 * blockframe.c (get_frame_block, get_current_block): Same.
10066 * frame.h (get_frame_block, get_current_block,
10067 get_selected_block): Update declarations.
10068 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10069 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10070
10071 2002-04-05 Michael Snyder <msnyder@redhat.com>
10072
10073 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10074 warning message.
10075
10076 2002-04-05 J. Brobecker <brobecker@gnat.com>
10077
10078 * utils.c (xfullpath): New function.
10079 * defs.h (xfullpath): Add declaration.
10080 * source.c (openp): Use xfullpath in place of gdb_realpath to
10081 avoid resolving the basename part of filenames when the
10082 associated file is a symbolic link. This fixes a potential
10083 inconsistency between the filenames known to GDB and the
10084 filenames it prints in the annotations.
10085 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10086 to be able to match a filename with either the real filename, or
10087 the name of any symbolic link to this file.
10088 (lookup_partial_symtab): Ditto.
10089
10090 2002-04-04 Michael Snyder <msnyder@redhat.com>
10091
10092 * breakpoint.c: Add support for hardware breakpoints in overlays.
10093 (overlay_events_enabled): New state variable.
10094 (insert_breakpoints): Use overlay_events_enabled to decide
10095 whether to attempt to set a breakpoint at the overlay load addr.
10096 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10097 (remove_breakpoint): Use overlay_events_enabled to decide
10098 whether breakpoints need to be removed from overlay load addr.
10099 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10100 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10101 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10102 disable_overlay_breakpoints): Update overlay_events_enabled.
10103
10104 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * dwarf2read.c (struct function_range): New.
10107 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10108 (check_cu_functions): New.
10109 (read_file_scope): Initialize global function lists.
10110 Call dwarf_decode_line after processing children.
10111 (read_func_scope): Add to global function list.
10112 (dwarf_decode_lines): Call check_cu_functions everywhere
10113 record_line is called. Call record_line with a linenumber
10114 of 0 to mark sequence ends.
10115
10116 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10117
10118 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10119 change sync with glibc.
10120
10121 2002-04-03 Jim Blandy <jimb@redhat.com>
10122
10123 * configure.in: Call AC_C_INLINE.
10124 * configure: Regenerated.
10125
10126 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10127
10128 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10129 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10130
10131 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10132
10133 * NEWS: Mention gcore support on FreeBSD/i386.
10134
10135 * fbsd-proc.c: New file.
10136 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10137 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10138
10139 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10140 while statement.
10141
10142 2002-03-29 Jim Blandy <jimb@redhat.com>
10143
10144 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10145 unescaped newlines in string literals, but newer ones don't. So
10146 escape them.
10147
10148 2002-03-26 Michael Snyder <msnyder@redhat.com>
10149 Andrew Cagney <cagney@redhat.com>
10150
10151 * cli/cli-dump.c: New file. Dump memory to file,
10152 restore file to memory.
10153 * cli/cli-dump.h: New file.
10154 * Makefile.in: Add rules, dependencies for cli-dump.o.
10155 * NEWS: Mention new commands.
10156
10157 2002-03-28 Michael Snyder <msnyder@redhat.com>
10158
10159 * symfile.c (symbol_file_add): Move test for null symbols to later.
10160
10161 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10162
10163 From veksler at il.ibm.com:
10164 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10165 the xstrduped original path.
10166 Fix PR gdb/417.
10167
10168 2002-03-27 Michael Snyder <msnyder@redhat.com>
10169
10170 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10171 * infcmd.c (_initialize_infcmd): Ditto.
10172 * language.c (_initialize_language): Ditto.
10173 * symfile.c (_initialize_symfile): Ditto.
10174 * top.c (_init_main): Ditto.
10175 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10176
10177 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10178
10179 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10180 vector registers handling.
10181 (skip_prologue): Handle new AltiVec instructions. Fill in new
10182 fields of frame data.
10183 (frame_get_saved_regs): Fill in information for AltiVec registers.
10184
10185 2002-03-27 Jim Blandy <jimb@redhat.com>
10186
10187 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10188 a function; leave this macro here to invoke that function.
10189 (symbol_init_mangled_name): Declaration for that function.
10190 * symtab.c (symbol_init_mangled_name): New function.
10191
10192 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10193
10194 * valarith.c: Replace strerror with safe_strerror.
10195 * tracepoint.c: Ditto.
10196 * lin-lwp.c: Ditto.
10197 * go32-nat.c: Ditto.
10198 * inflow.c: Ditto.
10199 * gnu-nat.c: Ditto.
10200
10201 2002-03-27 Andreas Schwab <schwab@suse.de>
10202
10203 * event-top.c (command_line_handler): Remove useless if.
10204
10205 2002-03-27 Andreas Jaeger <aj@suse.de>
10206
10207 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10208 comment.
10209
10210 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10211
10212 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10213 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10214 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10215 (x86_64_linux_dr_get_status, supply_gregset),
10216 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10217 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10218 (x86_64_register_info_table): Add.
10219 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10220 (x86_64_register_raw_size, x86_64_register_virtual_type),
10221 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10222 general x86_64_register_info_table.
10223 (i386_gdbarch_init): gdbarch_register_bytes is now set
10224 dynamicaly during initialization.
10225 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10226 * gdbserver/linux-x86-64-low.c: Ditto.
10227
10228 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10229
10230 * gdbserver/server.c (main): Call target_signal_to_host_p
10231 and target_signal_to_host on signals received from the remote.
10232 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10233 target_signal_from_host on signals sent to the remote.
10234 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10235 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10236
10237 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10238
10239 * signals/signals.c: Include "server.h" in gdbserver build.
10240 (target_signal_from_name): Don't use STREQ.
10241 (_initialize_signals): Likewise. Don't include function in
10242 gdbserver build.
10243
10244 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10245
10246 * signals.c: Moved to...
10247 * signals/signals.c: Here.
10248 * Makefile (signals.o): Update.
10249
10250 2002-03-26 Jeff Law (law@redhat.com)
10251
10252 * somread.c (som_symtab_read): Remove some commented out code and
10253 updated related comments. Do not set the minimal symbol table to
10254 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10255 in a dynamic executable.
10256 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10257 where we are unable to find the minimal symbol for the given
10258 PC value.
10259
10260 2002-03-25 Jeff Law (law@redhat.com)
10261
10262 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10263
10264 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10265
10266 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10267
10268 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10269
10270 * command.h: Update copyright.
10271 (struct cmd_list_element): Replace definition with opaque
10272 declaration.
10273 (enum cmd_types): Document that it will eventually be moved to
10274 cli/cli-decode.h
10275 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10276 (MALLOCED_REPLACEMENT): Delete macro.
10277 * Makefile.in (cli_decode_h): Add $(command_h).
10278 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10279 * top.c: Include "cli/cli-decode.h".
10280 * completer.c: Include "cli/cli-decode.h".
10281 * maint.c: Include "cli/cli-decode.h".
10282 * cli/cli-decode.h: Include "command.h".
10283 (enum command_class): Delete.
10284 (enum cmd_types): Comment out.
10285 (enum cmd_auto_boolean): Delete.
10286 (enum var_types): Delete.
10287
10288 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10289
10290 * cli/cli-decode.c: Include "gdb_assert.h".
10291 (add_set_or_show_cmd): New static function.
10292 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10293 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10294 all fields, such as func, from the set command.
10295
10296 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10297
10298 * MAINTAINERS (sh-elf): Change warning flag to -w.
10299
10300 2002-03-23 Andrew Cagney <cagney@redhat.com>
10301
10302 * defs.h (error): Add printf format attribute.
10303 * thread-db.c (thread_from_lwp): Fix error format string.
10304 * stack.c (parse_frame_specification): Ditto.
10305 * cli/cli-decode.c (undef_cmd_error): Ditto.
10306 * scm-lang.c (scm_lookup_name): Ditto.
10307 * tracepoint.c (trace_error): Ditto.
10308 * remote-utils.c (usage): Ditto.
10309 * remote.c (compare_sections_command): Ditto.
10310 Fix PR gdb/328.
10311
10312 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10313
10314 * gdbtypes.c (append_composite_type_field): New function.
10315 (init_composite_type): New function.
10316 * gdbtypes.h (append_composite_type_field): Declare.
10317 (init_composite_type): Ditto.
10318
10319 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10320
10321 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10322 function.
10323 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10324 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10325 structure returning convention for SYSV ABI case, but not
10326 for GNU/Linux, FreeBSD, or NetBSD.
10327
10328 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10329
10330 * symtab.h (lookup_block_symbol): Add mangled_name argument
10331 to prototype.
10332
10333 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10334 with new mangled_name argument.
10335 * linespec.c (decode_line_1): Likewise.
10336 * valops (value_of_this): Likewise.
10337 * symtab.c (lookup_transparent_type): Likewise.
10338 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10339 (lookup_symbol): If we are given a mangled name, pass it down
10340 to lookup_symbol_aux.
10341 (lookup_block_symbol): If we are given a mangled name to check
10342 against, only return symbols which match it.
10343
10344 2002-03-22 Christopher Faylor <cgf@redhat.com>
10345
10346 * win32-nat.c (child_create_inferior): Check for proper shell to use
10347 here, in case the user changes it on the fly.
10348 (_initialize_inftarg): Remove shell path considerations.
10349
10350 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10351
10352 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10353 for gdbarch_max_register_raw_size and max_register_virtual_size.
10354 Adjust copyright year.
10355
10356 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10357
10358 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10359 in a function to cover the entire beginning of the function
10360 as well if it does not already.
10361
10362 2002-03-21 Tom Rix <trix@redhat.com>
10363
10364 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10365 (rs6000_ptrace64): Renamed from ptrace64.
10366
10367 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10368
10369 * gdbserver/remote-utils.c (remote_open): Don't call
10370 getprotobyname, we're all using TCP here so just use
10371 IPPROTO_TCP.
10372 * gdbserver/gdbreplay.c (remote_open): Ditto.
10373
10374 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10375
10376 * regcache.c (_initialize_regcache): No need to call
10377 build_regcache() at this time; it gets called whenever
10378 the gdbarch changes.
10379
10380 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10381
10382 * sparc-nat.c: Include sys/param.h where possible.
10383
10384 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10385
10386 Fix PR gdb/422.
10387 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10388 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10389 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10390 complex types.
10391 * stabsread.c (rs6000_builtin_type): Likewise.
10392 (read_sun_floating_type): Likewise.
10393
10394 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10395
10396 * stabsread.c (read_member_functions): Remove skip code for duplicate
10397 constructor/destructor methods. Use standard parsing for these
10398 methods and just do not chain them to the list of methods after
10399 parsing.
10400
10401 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10402
10403 * coffread.c: Remove redundant static declarations. Replace
10404 occurrences of `PTR' with `void *'.
10405 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10406 * top.h (quit_cover): Likewise.
10407 * defs.h (catch_errors): Likewise.
10408
10409 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10410
10411 * defs.h (XMALLOC): Define.
10412 * gdb-events.sh (XMALLOC): Delete macro.
10413 * gdb-events.c, gdb-events.h: Regenerate.
10414 * gdbarch.sh (XMALLOC): Delete macro.
10415 * gdbarch.c: Regenerate.
10416 * serial.c (XMALLOC): Delete macro.
10417 * ui-file.c (XMALLOC): Ditto.
10418 * ser-unix.h (XMALLOC): Ditto.
10419 * sh-tdep.c (XMALLOC): Ditto.
10420 * ui-out.c (XMALLOC): Ditto.
10421 * utils.c (XMALLOC): Ditto.
10422 * i386-tdep.c (XMALLOC): Ditto.
10423 * gdb-events.c (XMALLOC): Ditto.
10424 * d10v-tdep.c (XMALLOC): Ditto.
10425 * cli-out.c (XMALLOC): Ditto.
10426
10427 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10428 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10429 * ui-file.c, ui-out.c: Ditto.
10430
10431 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10432
10433 * command.h (struct cmd_list_element): Add field context.
10434 (set_cmd_context, get_cmd_context): Declare.
10435 * cli/cli-decode.h: Ditto.
10436 * cli/cli-decode.c (get_cmd_context): New function.
10437 (set_cmd_context): New function.
10438 (add_cmd): Initialize context.
10439 Part of fixing PR gdb/145 and PR gdb/146.
10440
10441 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10442
10443 * cli/cli-decode.c (cmd_type): New function.
10444 * command.h (cmd_type): Declare.
10445 * infrun.c (set_schedlock_func): Call function cmd_type.
10446 * kod.c (kod_set_os): Call cmd_type.
10447 * cris-tdep.c (cris_version_update): Use function cmd_type.
10448 (cris_mode_update, cris_abi_update): Ditto.
10449
10450 * command.h: (execute_cmd_post_hook): Declare.
10451 (execute_cmd_pre_hook): Declare.
10452 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10453 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10454 functions. Execute pre/post hook while ensuring that afterwords
10455 hook_in is cleared.
10456 * top.c (execute_command): Use execute_cmd_post_hook, and
10457 execute_cmd_pre_hook to execute pre/post commands.
10458 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10459 hook_stop_stub.
10460 (hook_stop_stub): Call execute_cmd_pre_hook.
10461
10462 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10463
10464 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10465 set'' and this leads to a core dump. Move xstrdup of
10466 operating_system to after check that it is not NULL.
10467
10468 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10469
10470 * kod.c (kod_set_os): Remove unnecessary check that
10471 ``command->type'' is set_cmd.
10472
10473 * valprint.c (set_input_radix): Use input_radix.
10474 (set_output_radix): Use output_radix.
10475 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10476 isn't reverted.
10477
10478 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10479
10480 * value.h (struct value): Delete field ``substring_addr''. Change
10481 aligner fields to force_doublest_align, force_longest_align,
10482 force_core_addr_align and force_pointer_aligh.
10483
10484 * value.h (struct value): Fix typo in above change.
10485
10486 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10487
10488 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10489 to fix internal_error from ``maintenance print architecture''.
10490
10491 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10492
10493 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10494 for gcc versions after gcc-2.8.1.
10495
10496 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10497
10498 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10499 for method resolution. Restore adjustment of ``this'' pointer after
10500 calling value_struct_elt, which was accidentally removed during the
10501 HP merge.
10502
10503 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10504
10505 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10506 value_of_register.
10507 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10508 get_saved_register.
10509 * value.h (value_of_register): Update.
10510
10511 2002-03-14 Richard Henderson <rth@redhat.com>
10512
10513 * configure.in: Detect declaration for canonicalize_file_name.
10514 * utils.c (canonicalize_file_name): Declare, if needed.
10515 (gdb_realpath): Prefer realpath if available and usable.
10516 * config.in, configure: Rebuild.
10517
10518 2002-03-14 Richard Henderson <rth@redhat.com>
10519
10520 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10521 a constant array bound.
10522
10523 * MAINTAINERS: Add myself to write-after-approval.
10524
10525 2002-03-14 Michael Snyder <msnyder@redhat.com>
10526
10527 * symfile.c (syms_from_objfile): Return immediately if no syms.
10528 (symbol_file_add): Return immediately if no syms.
10529 (find_sym_fns): Return immediately if no syms.
10530
10531 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10532
10533 * gdbserver/remote-util.c (remote_open): Print remote-side's
10534 IP address when remote debugging over the network.
10535
10536 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10537
10538 * config/sparc/fbsd.mh: Fix copyright.
10539 * config/sparc/fbsd.mt: Likewise.
10540
10541 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10542
10543 * MAINTAINERS: Fix typo in name of gdb warnings option.
10544 (x86-64): Fix formating so that this can be parsed by awk.
10545
10546 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10547
10548 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10549 * defs.h: Include "gdb/signals.h".
10550 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10551
10552 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10553
10554 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10555 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10556 from x86-64-tdep.h
10557
10558 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10559 Don Howard <dhoward@redhat.com>
10560
10561 * mips-tdep.c (ST0_FR): Define.
10562 (mips2_fp_compat): New function, temporarily disabled.
10563 (mips_read_fp_register_single): New function.
10564 (mips_read_fp_register_double): New function.
10565 (mips_print_register): Use them.
10566 (do_fp_register_row): Likewise.
10567
10568 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10569
10570 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10571 approval''.
10572
10573 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10574
10575 * stabsread.c (read_member_functions): Fix is_stub test for
10576 static member functions, improve comment.
10577
10578 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10579
10580 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10581 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10582 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10583 commands that set boolean values.
10584 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10585 (arm_rdi_resume): Always initialize PC.
10586 (arm_rdi_open): Don't use rslt as a boolean.
10587 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10588 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10589 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10590 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10591
10592 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10593
10594 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10595 * configure: Rebuilt.
10596
10597 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10598
10599 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10600 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10601
10602 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10603
10604 * cli/cli-decode.c (set_cmd_completer): New function.
10605 * command.h (set_cmd_completer): Declare.
10606 * cli/cli-decode.h (set_cmd_completer): Ditto.
10607
10608 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10609 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10610 * win32-nat.c (_initialize_inftarg): Ditto.
10611 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10612 * proc-api.c (_initialize_proc_api): Ditto.
10613 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10614 * source.c (_initialize_source): Ditto.
10615 * exec.c (_initialize_exec): Ditto.
10616 * solib.c (_initialize_solib): Ditto.
10617 * top.c (init_main): Ditto.
10618 * tracepoint.c (_initialize_tracepoint): Ditto.
10619 * symfile.c (_initialize_symfile): Ditto.
10620 * printcmd.c (_initialize_printcmd): Ditto.
10621 * infcmd.c (_initialize_infcmd): Ditto.
10622 * corefile.c (_initialize_core): Ditto.
10623
10624 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10625
10626 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10627
10628 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10629
10630 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10631
10632 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10633
10634 * NEWS: Update headings, 5.2 has branched.
10635
10636 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10639 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10640 (register_addr, REGISTER_RAW_SIZE): Likewise.
10641 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10642 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10643
10644 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10645
10646 * MAINTAINERS (x86-64): Add myself.
10647 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10648 changed value_ptr -> struct value *
10649
10650 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10651
10652 * configure.host (sparc64-*-freebsd): Add.
10653 * configure.tgt: Likewise.
10654 * config/sparc/fbsd.mh: New file.
10655 * config/sparc/fbsd.mt: Likewise.
10656 * config/sparc/nm-fbsd.h: Likewise.
10657 * config/sparc/tm-fbsd.h: Likewise.
10658
10659 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10662 regformats/reg-s390x.dat.
10663
10664 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10665
10666 * utils.c: Add FIXME explaining true/false problem.
10667
10668 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10669
10670 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10671
10672 2002-02-28 Michael Chastain <mec@shout.net>
10673
10674 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10675
10676 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10677
10678 * gdbserver/linux-s390-low.c: New file.
10679 * regformats/reg-s390.dat: New file.
10680 * regformats/reg-s390x.dat: New file.
10681 * gdbserver/configure.srv: Add S/390.
10682 * gdbserver/Makefile.in: Add S/390.
10683 * configure.tgt: Enable gdbserver for S/390.
10684
10685 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10686
10687 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10688 first line of the doc string for "info dos", except at the end of
10689 the sentence, since the short help stops at the first period.
10690
10691 2002-02-28 Jason Merrill <jason@redhat.com>
10692
10693 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10694
10695 2002-02-27 Fred Fish <fnf@redhat.com>
10696
10697 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10698 comment (dumy -> dummy).
10699
10700 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10701
10702 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10703
10704 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10705
10706 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10707
10708 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10709
10710 * gdbserver/acconfig.h: New file.
10711 * gdbserver/i387-fp.c: New file.
10712 * gdbserver/i387-fp.h: New file.
10713 * gdbserver/linux-x86-64.c: New file.
10714 * regformats/reg-x86-64.dat: New file.
10715 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10716 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10717 * gdbserver/configure.in: Add support for regsets.
10718 * gdbserver/config.in: Regenerate.
10719 * gdbserver/configure: Regenerate.
10720 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10721 * gdbserver/linux-low.h: New file.
10722 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10723 for regsets.
10724 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10725 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10726 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10727 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10728 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10729 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10730 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10731 "i387-fp.h". Add PTRACE_GETREGS and friends.
10732 * gdbserver/regcache.c (supply_register): New function.
10733 (supply_register_by_name): New function.
10734 (collect_register): New function.
10735 (collect_register_by_name): New function.
10736
10737 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10738
10739 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10740 (config.status): Add configure.srv dependency.
10741 (server_h): Add config.h dependency.
10742
10743 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10744
10745 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10746 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10747 * gdbserver/configure.srv: Change i386-*-linux* to use
10748 reg-i386-linux.o.
10749
10750 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10751
10752 * x86-64-tdep.c: Re-indent. Update copyright date.
10753
10754 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10755
10756 From Michal Ludvig <mludvig@suse.cz>:
10757 * x86-64-tdep.c (value.h): Delete.
10758 (gdb_assert.h): Include.
10759 (x86_64_register_convert_to_virtual,
10760 x86_64_register_convert_to_raw ): Add check which lets only
10761 floating-point values to be converted.
10762 (value_push): Delete.
10763 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10764 (i386_gdbarch_init): Number of register_bytes fixed.
10765
10766 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10767
10768 * MAINTAINERS: Add x86-64 target.
10769
10770 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10771
10772 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10773 * osfsolib.c (solib_map_sections): Ditto.
10774 * irix5-nat.c (solib_map_sections): Ditto.
10775 * corelow.c (gdb_check_format): Ditto.
10776 * symfile.c (symfile_bfd_open): Ditto.
10777 * solib.c (solib_map_sections): Ditto.
10778 Fix PR gdb/354.
10779
10780 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10781
10782 * remote.c (_initialize_remote): By default, disable ``e'' and
10783 ``E'' step out-of-range packets.
10784
10785 2002-02-26 Andreas Schwab <schwab@suse.de>
10786
10787 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10788 m68k_linux_frame_saved_pc.
10789 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10790 in_sigtramp.
10791 (SIGCONTEXT_PC_OFFSET): Remove.
10792 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10793 m68k_linux_sigtramp_saved_pc): New functions.
10794 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10795 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10796 (UCONTEXT_PC_OFFSET): Define.
10797 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10798 non-RT and RT signal trampolines.
10799
10800 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10801
10802 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10803 (TARGET_NBPG, STACK_END_ADDR): Delete
10804 (VARIABLES_INSIDE_BLOCK): Delete.
10805
10806 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10807
10808 * utils.c (perror_with_name): Make string parameter constant.
10809 (print_sys_errmsg): Ditto.
10810 (query): Ditto.
10811 * defs.h (perror_with_name): Update.
10812 (print_sys_errmsg): Update.
10813 (query): Update.
10814
10815 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10816
10817 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10818 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10819
10820 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10821
10822 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10823 if it already matches the current architecture from the exec file.
10824 Include arch-utils.h for gdbarch_info_init prototype.
10825 * Makefile.in (rs6000-nat.o): Update dependencies.
10826
10827 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10828
10829 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10830 list of exported variables.
10831
10832 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10833
10834 * gdbserver/configure.srv: New file.
10835 * gdbserver/configure.in: Use configure.srv instead
10836 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10837 from it.
10838 * gdbserver/configure: Regenerated.
10839 * gdbserver/terminal.h: New file.
10840 * gdbserver/Makefile.in: Update for configure changes. Remove
10841 more unneeded include paths.
10842
10843 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10844
10845 From wiz at danbala:
10846 * config/sparc/tm-sp64.h: Fix grammar and typos.
10847 Fix PR gdb/287.
10848
10849 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10850
10851 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10852 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10853 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10854 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10855 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10856 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10857 * s390-tdep.c: Ditto.
10858 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10859 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10860 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10861 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10862 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10863 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10864 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10865 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10866 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10867 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10868 Fix PR gdb/378.
10869
10870 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10871
10872 * lin-thread.c: Delete file.
10873 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10874 to gdb_proc_service.h.
10875 * configure: Re-generate.
10876
10877 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10878 * serial.c (serial_open): Delete check for "ocd".
10879 Fix PR gdb/349.
10880
10881 * Makefile.in (linux-thread.o): Delete target.
10882 * linux-thread.c: Delete file.
10883
10884 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10885 renamed SH files to be consistent.
10886
10887 * symtab.c (sort_search_symbols): Use xfree.
10888
10889 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10890
10891 * arm-linux-tdep.c (arm_linux_init_abi): Register
10892 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10893 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10894 definition with undef, since we don't want the sysvr4 definition.
10895 (SKIP_TRAMPOLINE_CODE): Likewise.
10896
10897 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10898
10899 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10900
10901 * configure.in: (AC_CHECK_FUNCS) Added test for
10902 canonicalize_file_name Regenerated.
10903 * config.in, configure: Regenerated.
10904 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10905 defined use canonicalize_file_name.
10906
10907 2002-02-23 Michael Chastain <mec@shout.net>
10908
10909 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10910
10911 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10912
10913 * README: Remove references to cygnus.com.
10914 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10915 dot com'' form. Remove references to cygnus.com and sourceware.
10916
10917 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10918
10919 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10920 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10921 1003.1-2001 no longer allows "head -1".
10922 * gdb/Makefile.in (version.c): Likewise.
10923 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10924 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10925 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10926
10927 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10928
10929 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10930 * command.h (cmd_cfunc_eq): Declare.
10931 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10932
10933 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10934 ``struct cmd_list_element *''.
10935 * cli/cli-cmds.c (is_complete_command): Update. Use
10936 cmd_cfunc_eq.
10937 * top.c (execute_command): Pass the command to
10938 is_complete_command.
10939 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10940
10941 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10942
10943 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10944 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10945 architecture defines.
10946 * s390-tdep.c (s390_gdbarch_init): Likewise.
10947
10948 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10949
10950 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10951 (arm_linux_push_arguments): Likewise.
10952 (arm_linux_init_abi): Register them. Also register linux-specific
10953 call_dummy_words.
10954 (find_minsym_and_objfile): Use strcmp, not STREQ.
10955 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10956 (arm_linux_call_dummy_words): Delete declaration.
10957 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10958 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10959 declarations.
10960 (LOWEST_PC): Delete.
10961
10962 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10963
10964 * maint.c (print_section_info): Do not prepend `0x' to filepos
10965 output, it will be handled by local_hex_string_custom.
10966
10967 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10968
10969 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10970 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10971 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10972
10973 2002-02-22 Jim Blandy <jimb@redhat.com>
10974
10975 Indicate that the bcache functions don't change the strings
10976 they're passed.
10977 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10978 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10979
10980 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10981
10982 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10983
10984 2002-02-21 Christopher Faylor <cgf@redhat.com>
10985
10986 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10987 find the complete path to a loaded DLL.
10988
10989 2002-02-21 Fred Fish <fnf@redhat.com>
10990
10991 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10992 that marks the end of the range of a function, enter a line number
10993 entry that has a line number of zero and a PC offset that matches
10994 the end of the function. This starts a range of PC's for which no
10995 line number information is known.
10996 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10997 PC's for which no line number info is found (line number is zero)
10998 then we didn't find any valid line information.
10999 * symtab.h: Document use of zero line number entry.
11000
11001 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11002
11003 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11004 (have_ptrace_getvrregs): Define for run time checks.
11005 (gdb_vrregset_t): New type for Altivec register handling.
11006 (fetch_register, store_register): Fetch/store altivec register
11007 when needed.
11008 (fetch_altivec_register, store_altivec_register): New functions.
11009 (supply_vrregset, fill_vrregset): New functions.
11010 (fetch_altivec_registers, store_altivec_registers): New functions.
11011 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11012 registers as well.
11013
11014 2002-02-21 Jiri Smid <smid@suse.cz>
11015
11016 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11017
11018 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11019
11020 * Makefile.in (armnbsd-nat.o): Update dependencies.
11021 * armnbsd-nat.c (supply_gregset): New function. Common code to
11022 supply the integer register set.
11023 (supply_fparegset): New function. Similar for FPA registers.
11024 (fetch_regs, fetch_fp_regs): Use them.
11025 (fetch_core_registers): Likewise.
11026 (fetch_elfcore_registers): New function.
11027 (arm_netbsd_elfcore_fns): New core-file type specification.
11028 (_initialize_arm_netbsd_nat): Register it.
11029
11030 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11031
11032 * armnbsd-nat.c: Include gdbcore.h.
11033 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11034 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11035 'void' to declaration, to shut up ARI.
11036 (fetch_core_registers): Make static. Rewrite using supply_register.
11037 (arm_netbsd_core_fns): New core-file type specification.
11038 (_initialize_arm_netbsd_nat): New function.
11039
11040 2002-02-21 Christopher Faylor <cgf@redhat.com>
11041
11042 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11043 value.
11044
11045 2002-02-20 Christopher Faylor <cgf@redhat.com>
11046
11047 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11048 fails.
11049
11050 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11051
11052 * jv-exp.y (parse_number): Change type of implicit longs
11053 to builtin_type_uint64.
11054
11055 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11056
11057 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11058 to be an integer instead of a `union wait'.
11059
11060 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11061
11062 * mips-linux-nat.c: Call the operating system GNU/Linux.
11063 * mips-linux-tdep.c: Likewise.
11064 * mips-tdep.c: Likewise.
11065
11066 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11067
11068 Fix PR gdb/265.
11069 * jv-exp.y (parse_number): Handle 64-bit integers.
11070
11071 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11072
11073 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11074 AC_STDC_HEADERS to AC_HEADER_STDC.
11075 * gdbserver/configure: Regenerated.
11076
11077 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11078
11079 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11080 is defined.
11081 * sparc-tdep.c (get_longjmp_target): Likewise.
11082
11083 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11084
11085 * News: Add news about ARM and Multi-arch. Mention the new target
11086 arm*-*-netbsd*.
11087
11088 2002-02-19 Jim Blandy <jimb@redhat.com>
11089
11090 * stabsread.c (error_type_complaint): Improve error message.
11091
11092 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11093
11094 * gdbserver/README: Update documentation.
11095 * gdbserver/configure.in: Update configury to match documentation.
11096 * gdbserver/Makefile.in: Likewise.
11097 * gdbserver/configure: Regenerated.
11098 * gdbserver/aclocal.m4: New file, generated by aclocal.
11099 * gdbserver/config.in: New file, generated by autoheader.
11100
11101 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11102
11103 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11104 armnbsd-nat.c.
11105
11106 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11107
11108 * arm-tdep.h (enum arm_float_model): New enum.
11109 (struct gdbarch_tdep): Add fp_model.
11110 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11111 up floating-point conversions until we know the floating-point model
11112 in use by the inferior. Don't complain about being unable to
11113 determine the ABI of the inferior when we don't have one.
11114 (arm_extract_return_value): Support different floating-point models.
11115 (arm_store_return_value): Likewise.
11116 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11117 ARM_FLOAT_SOFT.
11118 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11119
11120 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11121
11122 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11123 of ``current_gdbarch''.
11124
11125 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11126
11127 * armnbsd-nat.c : ANSIfy all function declarations.
11128 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11129 (fetch_inferior_registers): Re-implement in terms of above.
11130 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11131 (store_inferior_registers): Re-implement in terms of above.
11132
11133 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11134
11135 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11136 kernel.
11137 * arm-linux-tdep.c: Likewise.
11138 * config/arm/tm-linux.h: Likewise.
11139
11140 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11141
11142 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11143 * config/arm/nbsd.mt (TM_FILE): Delete.
11144 * config/arm/tm-nbsd.h: Delete.
11145
11146 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11147
11148 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11149 Initialize CALL_DUMMY_LENGTH.
11150
11151 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11152
11153 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11154 function.
11155 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11156 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11157 defines one thing and that is incorrect for this port.
11158 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11159
11160 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11161
11162 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11163
11164 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11165
11166 * win32-nat.c (display_selector): New function. Displays information
11167 about the information returned by GetThreadSelectorEntry API function.
11168 (display_selectors): New function. Displays the infomation of
11169 the selector given as argument, or of CS, DS ans FS selectors
11170 if no argument is given.
11171 ( _initialize_inftarg): Add "w32" as info prefix command.
11172 Add "info w32 selector" as command calling display_selectors.
11173
11174 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11175
11176 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11177 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11178 if not defined.
11179
11180 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11181
11182 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11183
11184 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11185
11186 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11187 (arm_fix_call_dummy): Call it.
11188 (arm_call_dummy_breakpoint_offset): Delete.
11189 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11190 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11191
11192 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11193
11194 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11195 Default to func_frame_chain_valid.
11196 * gdbarch.h, gdbarch.c: Re-generate.
11197 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11198
11199 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11200
11201 * ppc-linux-nat.c: Update copyright.
11202 (fetch_register, store_register): Add tid parameter, don't compute
11203 tid here.
11204 (fetch_ppc_registers, store_ppc_registers): Add tid
11205 parameter. Pass it along to callees.
11206 (fetch_inferior_registers, store_inferior_registers): Compute tid
11207 here, and pass it to calleed functions.
11208 (fill_gregset, supply_fpregset): Clean up formatting.
11209
11210 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11211
11212 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11213 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11214
11215 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11216
11217 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11218 * gdbarch.c gdbarch.h: Regenerate.
11219 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11220 function.
11221 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11222 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11223 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11224
11225 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11226 * arm-tdep.c (arm_get_longjmp_target): New function.
11227 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11228 this to a positive value register arm_get_longjmp_target as the
11229 longjmp handler.
11230 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11231 (arm_linux_init_abi): Set up longjmp description in tdep.
11232 * armnbsd-nat.c (get_longjmp_target): Delete.
11233 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11234 description in tdep.
11235 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11236 (get_longjmp_target): Delete declaration.
11237 (GET_LONGJMP_TARGET): Delete.
11238 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11239 (GET_LONGJMP_TARGET): Delete.
11240
11241 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11242
11243 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11244 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11245 of ``current_gdbarch''.
11246
11247 2002-02-17 Tom Tromey <tromey@redhat.com>
11248
11249 * cli/cli-cmds.c (compare_strings): New function.
11250 (complete_command): Only print each unique item once.
11251 * completer.h (complete_line): Declare.
11252 * completer.c (complete_line): New function.
11253 (line_completion_function): Use it.
11254
11255 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11256
11257 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11258 * gdbarch.h, gdbarch.c: Re-generate.
11259
11260 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11261
11262 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11263
11264 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11265
11266 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11267 * valops.c (value_arg_coerce): Don't take the address of a reference
11268 to convert an argument to a reference.
11269
11270 2002-02-15 Christopher Faylor <cgf@redhat.com>
11271
11272 * win32-nat.c (get_image_name): New function.
11273 (handle_load_dll): Use get_image_name function.
11274 (get_child_debug_event): Avoid registering debug events until possibly
11275 execed process is started.
11276 (child_create_inferior): Allow invocation via shell so that command
11277 line redirection, etc. works ok.
11278 (_initialize_inftarg): Add new command: "set shell" to control whether
11279 a shell is used to start a process.
11280
11281 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11282
11283 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11284 instead of find_register_by_number.
11285 (cannot_store_register): Likewise.
11286
11287 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11288
11289 * dwarf2read.c: Replace fprintf (stderr, ...) by
11290 fprintf_unfiltered (gdb_stderr, ...).
11291
11292 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * gdbserver/gdbserver.1: Document --attach.
11295
11296 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11297
11298 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11299 descriptions.
11300 * arm-tdep.c (arm_default_arm_le_breakpoint)
11301 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11302 (arm_default_thumb_be_breakpoint): New. Initialize them from
11303 traditional breakpoint defines.
11304 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11305 (arm_gdbarch_init): Initialize new breakpoint variables.
11306 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11307 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11308 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11309 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11310 code out to ...
11311 (arm_netbsd_init_abi_common): ... here; new function.
11312 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11313 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11314 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11315 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11316
11317 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11318
11319 * arm-tdep.h (enum arm_abi): New enum.
11320 (struct gdbarch_tdep): New structure.
11321 (LOWEST_PC): Provide a default.
11322 (arm_gdbarch_register_os_abi): Declare new function.
11323 * arm-tdep.c (arm_abi_names): New array.
11324 (process_note_abi_tag_sections): New function.
11325 (get_elfosabi): New function.
11326 (arm_gdbarch_register_os_abi): New function.
11327 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11328 support for that ABI has been built in, then call the appropriate
11329 configuration routine. Use gdbarch_num_regs() to get the number
11330 of registers.
11331 (arm_dump_tdep): New function.
11332 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11333 place-holder functions.
11334 (_initialize_arm_tdep): Register them.
11335 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11336
11337 * armnbsd-tdep.c: New file.
11338 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11339 * config/arm/nbsd.mt (TDEPFILES): Add it.
11340 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11341
11342 * armnbsd-nat.c: Include regcache.h.
11343 * Makefile.in (armnbsd-nat.o): Update dependency list.
11344
11345 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11346
11347 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11348
11349 * gdbserver/Makefile.in: Fix typos in target rules.
11350
11351 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11352
11353 Fix part of PR gdb/267.
11354 * linespec.c (find_methods): Handle constructors specially for now.
11355
11356 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11357
11358 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11359 handling.
11360 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11361 standard_coerce_float_to_double().
11362
11363 2002-02-14 Christopher Faylor <cgf@redhat.com>
11364
11365 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11366 GDBINIT_FILENAME.
11367
11368 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11369
11370 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11371 find_variant_by_name, because it confuses the multiarch
11372 framework. Return NULL if there isn't an architecture with the
11373 user supplied name, instead of forcing a different one without
11374 recording the change with the multiarch machinery.
11375 (find_variant_by_name): Delete.
11376
11377 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11378
11379 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11380 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11381
11382 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11383
11384 * stack.c (print_frame_info_base): When calling
11385 print_frame_info_listing_hook, set current_source_symtab.
11386
11387 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11388
11389 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11390 and remove unused $(INCLUDE_DIR).
11391 Add regcache.c to OBS.
11392 Add generated register protocol files to clean target.
11393 Update dependencies for new objects, obsolete old target code.
11394
11395 * gdbserver/linux-low.c: Remove all platform-specific code to
11396 new files. Remove various dead code. Update to use regcache
11397 functionality.
11398 * gdbserver/remote-utils.c (fromhex): Add return statement
11399 to quiet warning.
11400 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11401 constant.
11402 (input_interrupt): Add integer parameter to match prototype
11403 of a signal handler.
11404 (outreg): Use register_data ().
11405 (prepare_resume_reply): Use gdbserver_expedite_regs.
11406 * gdbserver/server.c (main): Dynamically allocate own_buf because
11407 PBUFSIZ is no longer constant. Use registers_to_string () and
11408 registers_from_string ().
11409 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11410 for error (), fatal (), and warning (). Update definition of
11411 PBUFSIZ to use regcache functionality. Add include guard.
11412 * gdbserver/utils.c (fatal): Add missing ``const''.
11413 (warning): New function.
11414
11415 * regformats/regdat.sh: Include "regcache.h" in generated files.
11416 Provide init_registers () function.
11417 * regformats/regdef.h: Add prototype for set_register_cache ().
11418 Add include guard.
11419
11420 * gdbserver/linux-arm-low.c: New file.
11421 * gdbserver/linux-i386-low.c: New file.
11422 * gdbserver/linux-ia64-low.c: New file.
11423 * gdbserver/linux-m68k-low.c: New file.
11424 * gdbserver/linux-mips-low.c: New file.
11425 * gdbserver/linux-ppc-low.c: New file.
11426 * gdbserver/linux-sh-low.c: New file.
11427
11428 * gdbserver/regcache.c: New file.
11429 * gdbserver/regcache.h: New file.
11430
11431 * gdbserver/low-linux.c: Removed obsolete file.
11432
11433 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11434
11435 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11436 * config/i386/linux.mt: Likewise.
11437 * config/ia64/linux.mt: Likewise.
11438 * config/m68k/linux.mh: Likewise.
11439 * config/powerpc/linux.mh: Likewise.
11440 * config/mips/linux.mt: Likewise.
11441
11442 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11443
11444 * config/i386/i386lynx.mh: Mark gdbserver variables
11445 as (currently) obsolete for this target.
11446 * config/i386/nbsd.mt: Likewise.
11447 * config/i386/nbsdelf.mt: Likewise.
11448 * config/m32r/m32r.mt: Likewise.
11449 * config/m68k/m68klynx.mh: Likewise.
11450 * config/m68k/nbsd.mt: Likewise.
11451 * config/m68k/sun3os4.mh: Likewise.
11452 * config/mips/vr5000.mt: Likewise.
11453 * config/ns32k/nbsd.mt: Likewise.
11454 * config/pa/hppabsd.mh: Likewise.
11455 * config/pa/hppaosf.mh: Likewise.
11456 * config/powerpc/nbsd.mt: Likewise.
11457 * config/rs6000/rs6000lynx.mh: Likewise.
11458 * config/s390/s390.mt: Likewise.
11459 * config/s390/s390x.mt: Likewise.
11460 * config/sparc/sparclynx.mh: Likewise.
11461 * config/sparc/sun4os4.mh: Likewise.
11462 * config/i386/x86-64linux.mt: Likewise.
11463 * config/sparc/linux.mh: Likewise.
11464
11465 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11466
11467 * configure.tgt: Configure gdbserver only for known working
11468 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11469 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11470 SUBDIRS if it is configured. Update comment for ${nativefile}.
11471 * configure: Regenerated.
11472
11473 2002-02-13 Michael Snyder <msnyder@redhat.com>
11474
11475 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11476
11477 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11478 (default_gcore_mach): Just return 0, work around a problem in bfd.
11479 (default_gcore_target): OK to return NULL if exec_bfd is null.
11480 (make_mem_sec): Use a cast, avoid a warning.
11481
11482 * procfs.c (find_memory_regions_callback): Use a cast instead of
11483 calling host_pointer_to_address (which complains if
11484 sizeof (host pointer) != sizeof (target pointer)).
11485 (procfs_make_note_section): Avoid overflow in psargs string.
11486
11487 * procfs.c (procfs_make_note_section): Make the default
11488 implementation return an error.
11489
11490 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11491
11492 * procfs.c (procfs_make_note_section): Provide a default definition
11493 (for alpha-dec-osf4.0f). Fix typos.
11494
11495 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11496
11497 * linux-proc.c: Add include of regcache.h.
11498 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11499
11500 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11501
11502 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11503 * memattr.c (create_mem_region): Disallow useless empty region.
11504 Regions are half-open intervals, so allow [A..B) [B..C) as
11505 non-overlapping.
11506
11507 2002-02-13 Michael Chastain <mec@shout.net>
11508
11509 * defs.h: Kill CONST_PTR.
11510 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11511 * c-lang.c (c_builtin_types): Likewise.
11512 * ch-lang.c (ch_builtin_types): Likewise.
11513 * f-lang.c (f_builtin_types): Likewise.
11514 * language.c (unknown_builtin_types): Likewise.
11515 * m2-lang.c (m2_builtin_types): Likewise.
11516 * p-lang.c (pascal_builtin_types): Likewise.
11517 * scm-lang.c (c_builtin_types): Likewise.
11518
11519 2002-02-13 Keith Seitz <keiths@redhat.com>
11520
11521 * arm-tdep.h (arm_get_next_pc): Add declaration.
11522
11523 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11524
11525 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11526 with other related struct-returning functions.
11527 (arm_extract_struct_value_address): New function.
11528 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11529 initialize float_format, double_format and long_double_format as
11530 appropriate to the endianness of the target.
11531 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11532 (arm_use_struct_convention): Delete declaration.
11533 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11534
11535 2002-02-13 Keith Seitz <keiths@redhat.com>
11536
11537 * defs.h (core_addr_to_string_nz): New function.
11538
11539 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11540
11541 Apply missing bits of 2002-01-15 patch.
11542 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11543 (fill_fpregset): Use i387_fill_fsave.
11544
11545 2002-02-12 Keith Seitz <keiths@redhat.com>
11546
11547 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11548 (core_addr_to_string_nz): New function.
11549
11550 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11551
11552 * arm-linux-nat.c: Really include arm-tdep.h.
11553 * config/arm/tm-linux.h (struct type, struct value): Declare.
11554
11555 2002-02-11 Michael Snyder <msnyder@redhat.com>
11556
11557 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11558 (gcore section): Ifdef for Solaris and Unixware only.
11559 (procfs_do_thread_registers): Unixware needs one lwpstatus
11560 per thread (not one prstatus or pstatus).
11561 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11562 not over all gdb threads. For unixware, call elfcore_write_pstatus
11563 once before iterating over threads.
11564
11565 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11566
11567 * arm-tdep.h: New file.
11568 * arm-tdep.c: Include arm-tdep.h.
11569 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11570 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11571 (arm_print_float_info, arm_register_type, convert_to_extended)
11572 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11573 (arm_extract_return_value, arm_register_name): Make static.
11574 (arm_software_single_step): Similarly. Fix types in declaration.
11575 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11576 (arm_store_return_value, arm_store_struct_return): New functions.
11577 (arm_gdbarch_init): Register the above functions. Also register
11578 call_dummy_start_offset, sizeof_call_dummy_words,
11579 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11580 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11581 max_register_virtual_size, register_size. Set up
11582 prologue_cache.saved_regs here, rather than ...
11583 (_initialize_arm_tdep): ... here.
11584 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11585 declarations.
11586 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11587 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11588 (arm_print_float_info, arm_register_type, convert_to_extended)
11589 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11590 (arm_extract_return_value, arm_register_name): Delete declarations.
11591 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11592 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11593 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11594 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11595 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11596 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11597 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11598 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11599 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11600 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11601 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11602 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11603 interface.
11604 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11605 * remote-rdi.c remote-rdp.c: Likewise.
11606 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11607 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11608 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11609 definition.
11610
11611 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11612 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11613 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11614 from non-ARM_ prefixed definitions.
11615 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11616 all uses of above.
11617 * remote-rdi.c remote-rdp.c: Likewise.
11618 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11619
11620 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11621
11622 * arm-tdep.c (arm_frameless_function_invocation)
11623 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11624 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11625 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11626 (arm_pop_frame, arm_get_next_pc): Make static.
11627 (arm_gdbarch_init): Register above in gdbarch structure.
11628 (arm_read_fp): Renamed from arm_target_read_fp.
11629 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11630 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11631 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11632 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11633 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11634 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11635 (arm_pc_is_thumb_dummy): Delete declarations.
11636 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11637 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11638 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11639 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11640
11641 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11642
11643 * symtab.c (compare_search_syms): New function.
11644 (sort_search_symbols): New function.
11645 (search_symbols): Sort symbols after searching rather than
11646 before.
11647
11648 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11649
11650 * NEWS: Linux -> GNU/Linux.
11651
11652 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11653
11654 * gdbarch.sh: For for level one methods, disallow a definition
11655 when partially multi-arched. Add comments explaining rationale.
11656 * gdbarch.h: Re-generate.
11657
11658 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11659
11660 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11661 multi-arch partial.
11662
11663 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11664
11665 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11666 field. Use diff -u.
11667 * gdbarch.c: Re-generate.
11668
11669 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11670
11671 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11672 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11673 partial.
11674
11675 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11676
11677 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11678 multi-arch partial.
11679 (PUSH_ARGUMENTS): Switch to using predefault.
11680 * gdbarch.c: Regenerate.
11681
11682 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11683
11684 * valops.c (PUSH_ARGUMENTS): Delete definition.
11685 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11686 partial. Default to default_push_arguments.
11687 * gdbarch.h, gdbarch.c: Regenerate.
11688
11689 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11690
11691 * defs.h (throw_exception): Rename return_to_top_level. Update
11692 comments.
11693 * utils.c (error_stream, internal_verror, quit): Ditto.
11694 * top.c (throw_exception, catcher): Ditto.
11695 * sparclet-rom.c (sparclet_load): Ditto.
11696 * remote.c (interrupt_query, minitelnet): Ditto.
11697 * remote-sds.c (interrupt_query): Ditto.
11698 * remote-mips.c (mips_error, mips_kill): Ditto.
11699 * ocd.c (interrupt_query): Ditto.
11700 * monitor.c (monitor_interrupt_query): Ditto.
11701 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11702 * target.h: Update comment.
11703
11704 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11705
11706 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11707
11708 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11709 default_double_format.
11710 * gdbarch.h, gdbarch.c: Re-generate.
11711 * findvar.c (floatformat_unknown): Delete variable definition.
11712 * doublest.h (floatformat_unknown): Delete variable declaration.
11713
11714 2002-02-09 Jim Blandy <jimb@redhat.com>
11715
11716 * stabsread.c (read_type): Add code to parse Sun's syntax for
11717 prototyped function types.
11718
11719 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11720
11721 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11722 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11723
11724 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11725
11726 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11727 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11728 now _initialize_xcoffsolib gets called again and overrides the
11729 commands from solib.c in a native configuration.
11730
11731 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11732
11733 * doublest.c (store_typed_floating): Don't try to return a value.
11734 Fixes PR gdb/290.
11735
11736 2002-02-08 Jim Blandy <jimb@redhat.com>
11737
11738 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11739 is prototyped and has no arguments, print its argument list as
11740 `(void)'.
11741
11742 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11743
11744 * MAINTAINERS (write-after-approval): Add myself.
11745 (paper-trail): I've escaped!
11746
11747 2002-02-08 Christopher Faylor <cgf@redhat.com>
11748
11749 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11750 changes.
11751 (_initialize_check_for_gdb_ini): Ditto.
11752
11753 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11754
11755 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11756 xaprintf -> xasprintf.
11757
11758 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11759
11760 * win32-nat.c: Remove use of printf and sprintf functions.
11761
11762 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11763
11764 * arm-tdep.c (arm_frame_chain_valid): Make static.
11765 (arm_push_arguments): Likewise.
11766 (arm_gdbarch_init): New function.
11767 (_initialize_arm_tdep): Call it.
11768 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11769 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11770 (FRAME_CHAIN_VALID): Delete.
11771 (arm_frame_chain_valid): Delete declaration.
11772 (PUSH_ARGUMENTS): Delete.
11773 (arm_push_arguments): Delete declaration.
11774 (CALL_DUMMY_P): Delete.
11775
11776 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11777 Corinna Vinschen <vinschen@redhat.com>
11778
11779 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11780 on builtin float types.
11781
11782 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11783
11784 * utils.c: Include <curses.h> before "bfd.h".
11785 * tui/tui-hooks.c: Likewise.
11786 * tui/tui.c: Likewise.
11787 * tui/tuiCommand.c: Likewise.
11788 * tui/tuiData.c: Likewise.
11789 * tui/tuiDataWin.c: Likewise.
11790 * tui/tuiDisassem.c: Likewise.
11791 * tui/tuiGeneralWin.c: Likewise.
11792 * tui/tuiIO.c: Likewise.
11793 * tui/tuiLayout.c: Likewise.
11794 * tui/tuiRegs.c: Likewise.
11795 * tui/tuiSource.c: Likewise.
11796 * tui/tuiSourceWin.c: Likewise.
11797 * tui/tuiStack.c: Likewise.
11798 * tui/tuiWin.c: Likewise.
11799
11800 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11801
11802 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11803 to include space for pseudoregs as well. Update loops accordingly.
11804 (sh_fp_frame_init_saved_regs): Ditto.
11805 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11806
11807 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11808
11809 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11810 Add Richard Earnshaw to Arm maintainers.
11811
11812 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11813
11814 * defs.h (warning_begin): Delete declaration.
11815
11816 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11817 Delete macro.
11818
11819 2002-02-07 Michael Snyder <msnyder@redhat.com>
11820
11821 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11822 Logic bug, remove misplaced else.
11823
11824 2002-02-07 Klee Dienes <klee@apple.com>
11825
11826 * fork-inferior.c (fork_inferior): Add '!' to the list of
11827 characters that need to be quoted when building a string for the
11828 shell. Quote '!' specifically with a backslash, since CSH chokes
11829 when trying to evaluate "str!str".
11830
11831 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11832
11833 * rdi-share/host.h: Only provide a typedef for bool if it is not
11834 defined.
11835
11836 2002-02-04 Michael Snyder <msnyder@redhat.com>
11837
11838 * breakpoint.h (enum bptype): Add new overlay event bp type.
11839 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11840
11841 * breakpoint.c (create_internal_breakpoint): New function.
11842 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11843 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11844 (create_thread_event_breakpoint): Ditto.
11845 (create_solib_event_breakpoint): Ditto.
11846 (create_overlay_event_breakpoint): New function.
11847 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11848 (update_breakpoints_after_exec): Delete and re-initialize
11849 overlay event breakpoints after an exec. Add FIXME comment
11850 about longjmp breakpoint.
11851 (print_it_typical): Ignore overlay event breakpoints.
11852 (print_one_breakpoint): Ditto.
11853 (mention): Ditto.
11854 (bpstat_what): Do not stop for overlay event breakpoints.
11855 (delete_breakpoint): Don't delete overlay event breakpoints.
11856 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11857 (breakpoint_re_set): Re-create overlay event breakpoint.
11858
11859 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11860 (overlay_manual_command): Disable overlay breakpoints.
11861 (overlay_off_command): Disable overlay breakpoints.
11862
11863 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11864
11865 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11866 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11867 to here from config/tm-arm.h.
11868 (coff_sym_is_thumb): Make static.
11869 (arm_elf_make_msymbol_special): New function.
11870 (arm_coff_make_msymbol_special): New function.
11871 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11872 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11873 (coff_sym_is_thumb): Delete declaration.
11874 (arm_elf_make_msymbol_special): Declare.
11875 (arm_coff_make_msymbol_special): Declare.
11876 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11877 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11878
11879 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11880
11881 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11882
11883 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11884
11885 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11886 * gdbarch.c gdbarch.h: Regenerate.
11887 * arch-utils.c (default_print_float_info): New function.
11888 * arch-utils.h (default_print_float_info): Prototype it.
11889 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11890 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11891 (PRINT_FLOAT_INFO): Document it.
11892
11893 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11894 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11895 (PRINT_FLOAT_INFO): Define.
11896
11897 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11898
11899 * win32-nat.c (_initialize_check_for_gdb_ini):
11900 Add typecast to sprintf argument to suppress a warning.
11901
11902 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11903
11904 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11905 to allow easier handling of pass state.
11906 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11907 that gives exception name and address.
11908 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11909 and set last_sig value to ourstatus->value.sig. Some missing
11910 exceptions added.
11911 (child_continue): Correctly report continue_status.
11912 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11913 TARGET_SIGNAL_0 (new default value).
11914 (child_resume): consider sig argument passed to decide if
11915 the exception should be passed to debuggee or not.
11916
11917 2002-02-05 Michael Snyder <msnyder@redhat.com>
11918
11919 * regcache.c (fetch_register): Call target_fetch_register
11920 only if we don't call FETCH_PSEUDO_REGISTER.
11921 (store_register): Call target_store_register only if we
11922 don't call STORE_PSEUDO_REGISTER.
11923
11924 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11925
11926 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11927 ELF_MAKE_MSYMBOL_SPECIAL.
11928 * gdbarch.c, gdbarch.h: Regenerate.
11929 * arch-utils.c (default_make_msymbol_special): New function.
11930 * arch-utils.h (default_make_msymbol_special): Export.
11931 * elfread.c (elf_symtab_read): Compile use of
11932 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11933 multiarched.
11934 * coffread.c (coff_symtab_read): Ditto, for
11935 COFF_MAKE_MSYMBOL_SPECIAL.
11936
11937 2002-02-05 Jim Blandy <jimb@redhat.com>
11938
11939 * solib-svr4.c (svr4_truncate_ptr): New function.
11940 (svr4_relocate_section_addresses): Do the address arithmetic with
11941 the appropriate truncation for target addresses, even when
11942 CORE_ADDR is larger than a target address.
11943
11944 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11945
11946 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11947 to (int *).
11948
11949 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11950
11951 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11952 code.
11953
11954 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11955
11956 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11957
11958 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11959
11960 * gdbserver/linux-low.c: Remove unused include files.
11961
11962 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11963
11964 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11965 (read_inferior_memory): Use it.
11966 (write_inferior_memory): Likewise.
11967
11968 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11971 grubbing through sys_errlist.
11972
11973 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11974
11975 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11976
11977 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11978 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11979
11980 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11981
11982 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11983 (do_sfunc, set_cmd_sfunc): New functions.
11984
11985 * command.h (struct cmd_list_element): Add field func.
11986 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11987 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11988 * cli/cli-decode.h: Ditto.
11989
11990 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11991 (help_all, help_cmd_list): Ditto.
11992 (find_cmd, complete_on_cmdlist): Ditto.
11993 * top.c (execute_command): Ditto.
11994
11995 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11996 function.sfunc.
11997
11998 * infcmd.c (notice_args_read): Fix function signature.
11999
12000 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12001 * cli/cli-decode.c (add_set_cmd): Ditto.
12002 * utils.c (initialize_utils): Ditto.
12003 * maint.c (_initialize_maint_cmds): Ditto.
12004 * infrun.c (_initialize_infrun): Ditto.
12005 * demangle.c (_initialize_demangler): Ditto.
12006 * remote.c (add_packet_config_cmd): Ditto.
12007 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12008 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12009 * proc-api.c (_initialize_proc_api): Ditto.
12010 * kod.c (_initialize_kod): Ditto.
12011 * valprint.c (_initialize_valprint): Ditto.
12012 * top.c (init_main): Ditto.
12013 * infcmd.c (_initialize_infcmd): Ditto.
12014 * corefile.c (_initialize_core): Ditto.
12015 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12016 * arch-utils.c (initialize_current_architecture): Ditto.
12017 (_initialize_gdbarch_utils): Ditto.
12018 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12019
12020 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12021 * wince.c (_initialize_inftarg): Ditto.
12022 * symfile.c (_initialize_symfile): Ditto.
12023 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12024 * language.c (_initialize_language): Ditto.
12025 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12026
12027 2002-02-04 Michael Snyder <msnyder@redhat.com>
12028
12029 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12030
12031 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12032
12033 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12034 Add rules for building the register data files.
12035
12036 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * regformats/regdat.sh: Add braces to the definition of
12039 expedite_regs_${arch}.
12040
12041 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12042
12043 * regformats/regdef.h (struct reg): Add comment describing the
12044 requirements for offset and size fields.
12045
12046 2002-02-04 Andreas Schwab <schwab@suse.de>
12047
12048 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12049 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12050
12051 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12052
12053 * gdbarch.sh (copyright): Update years in generated header.
12054 (SMASH_TEXT_ADDRESS): Add rule.
12055 * gdbarch.h, gdbarch.c: Re-generate.
12056 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12057 * dbxread.c: Likewise.
12058 * dwarfread.c: Likewise.
12059 * elfread.c: Likewise.
12060 * somread.c: Likewise.
12061
12062 * arm-tdep.c (arm_smash_text_address): New function.
12063 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12064
12065 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12066
12067 Add support for hardware watchpoints on win32 native.
12068 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12069 CONTEXT_DEBUG_REGISTERS.
12070 (dr variable): New variable. Static array containing a local copy
12071 of debug registers.
12072 (debug_registers_changed): New variable. Reflects when debug registers
12073 are changed and need to be written to inferior.
12074 (debug_registers_used): New variable. Reflects when any debug register
12075 was set, used when new threads are created.
12076 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12077 i386-nat code.
12078 (thread_rec): Set dr array if id is the thread of current_event .
12079 (child_continue, child_resume): Change the debug registers for all
12080 threads if debug_registers_changed.
12081 (child_add_thread): Change the debug registers if debug_registers_used.
12082 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12083 Link nm.h to new nm-cygwin.h file.
12084 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12085 of hardware registers.
12086
12087 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12088
12089 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12090 Restore behavour broken by 2002-01-20 Andrew Cagney
12091 <ac131313@redhat.com> IEEE_FLOAT removal.
12092
12093 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12094
12095 * c-valprint.c (c_val_print): Pass a proper valaddr to
12096 cp_print_class_method.
12097 * valops.c (search_struct_method): If there is only one method
12098 and args is NULL, return that method.
12099
12100 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12101
12102 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12103 accessing tag_name directly.
12104
12105 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12106
12107 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12108 of accessing tag_name directly.
12109
12110 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12111
12112 PR gdb/280
12113 * gdbtypes.c (replace_type): New function.
12114 * gdbtypes.h (replace_type): Add prototype.
12115 * stabsread.c (read_type): Use replace_type.
12116
12117 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12118
12119 * Makefile.in (memattr.o): Add missing dependencies rule.
12120
12121 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12122
12123 * breakpoint.c (break_at_finish_command): Really export.
12124 (break_at_finish_at_depth_command): Ditto.
12125 (tbreak_at_finish_command): Ditto.
12126 * hppa-tdep.c: Include completer.h.
12127 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12128 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12129
12130 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12131
12132 * utils.c (do_write): New function.
12133 (error_stream): Rewrite combining the code from error_begin and
12134 verror.
12135 (verror): Rewrite using error_stream.
12136 (error_begin): Delete function.
12137
12138 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12139
12140 * utils.c (error_begin): Make static.
12141 * defs.h (error_begin): Delete declaration.
12142
12143 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12144 (decode_line_1): Use cplusplus_error instead of error_begin,
12145 cplusplus_hint and return_to_top_level.
12146 * coffread.c (coff_symfile_read): Use error instead of error_begin
12147 and return_to_top_level.
12148 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12149
12150 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12151
12152 * language.h (type_error, range_error): Make string parameter
12153 constant.
12154 * language.c (warning_pre_print): Delete extern declaration.
12155 * dwarfread.c (warning_pre_print): Ditto.
12156 * language.c (type_error, range_error): Rewrite to use verror and
12157 vwarning instead of warning_begin.
12158
12159 2002-02-01 Michael Snyder <msnyder@redhat.com>
12160
12161 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12162 (set_ignore_count): Move misplaced comment back where it belongs.
12163
12164 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12165
12166 * command.h (NO_FUNCTION): Delete macro.
12167 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12168 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12169 * tracepoint.c (_initialize_tracepoint): Ditto.
12170 * cli/cli-decode.c (add_set_cmd): Ditto.
12171 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12172
12173 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12174
12175 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12176 Update ``this'' pointer when calling virtual functions.
12177
12178 2002-02-01 Michael Snyder <msnyder@redhat.com>
12179
12180 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12181 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12182
12183 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12184
12185 * regformats/reg-arm.dat: New file.
12186 * regformats/reg-i386.dat: New file.
12187 * regformats/reg-ia64.dat: New file.
12188 * regformats/reg-m68k.dat: New file.
12189 * regformats/reg-mips.dat: New file.
12190 * regformats/reg-ppc.dat: New file.
12191 * regformats/reg-sh.dat: New file.
12192 * regformats/regdef.h: New file.
12193 * regformats/regdat.sh: New file.
12194
12195 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12196
12197 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12198 (arm_frame_args_address, arm_frame_locals_address): New functions.
12199 (arm_frame_num_args): New function.
12200 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12201 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12202 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12203
12204 2002-01-31 Michael Snyder <msnyder@redhat.com>
12205
12206 * breakpoint.c (break_at_finish_command): Export.
12207 (break_at_finish_at_depth_command): Export.
12208 (tbreak_at_finish_command): Export.
12209 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12210 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12211 "txbreak" commands, which are HPPA specific.
12212
12213 * printcmd.c (disassemble_command): Remove an ancient
12214 artifact of an old merge.
12215
12216 * symfile.h (enum overlay_debugging_state):
12217 Define enum constant values for overlay mode.
12218 * symfile.c (overlay_debugging): Use enums instead of literals.
12219 (overlay_is_mapped, overlay_auto_command,
12220 overlay_manual_command): Ditto.
12221
12222 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12223 breakpoint_here_p, breakpoint_inserted_here_p,
12224 breakpoint_thread_match, bpstat_stop_status,
12225 describe_other_breakpoints, check_duplicates, clear_command):
12226 Coding standard fixes.
12227
12228 * target.c (target_xfer_memory): Add spaces, coding standard.
12229 (do_xfer_memory): Add missing line to trust-readonly
12230 code: check bfd SEC_READONLY flag for section.
12231
12232 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12233
12234 * PROBLEMS: Fix typo, 5.1->5.1.1.
12235
12236 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12237
12238 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12239 data symbols, since we search based on textlow and texthigh.
12240 (find_pc_sect_symtab): Likewise.
12241
12242 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12243
12244 * defs.h (vwarning): Declare.
12245 * utils.c (vwarning): New function.
12246 (warning): Call vwarning.
12247 (warning_begin): Delete function.
12248
12249 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12250 the warning message.
12251 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12252 warning_begin.
12253
12254 2002-01-30 Michael Snyder <msnyder@redhat.com>
12255
12256 * NEWS: Mention "set trust-readonly-sections" command.
12257 Mention generate-core-file command.
12258
12259 2002-01-15 Michael Snyder <msnyder@redhat.com>
12260
12261 * target.c: New command, "set trust-readonly-sections on".
12262 (do_xfer_memory): Honor the suggestion to trust readonly sections
12263 by reading them from the object file instead of from the target.
12264 (initialize_targets): Register command "set trust-readonly-sections".
12265
12266 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12267
12268 * parse.c (target_map_name_to_register): Simplify, search regs and
12269 pseudo-regs using a single loop.
12270
12271 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12272
12273 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12274
12275 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12276
12277 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12278 * config/i386/i386v42mp.mh: Add i387-nat.o .
12279 * i386v4-nat.c: Include i387-nat.h.
12280 (supply_fpregset): Use i387_supply_fsave.
12281 (fill_fpregset): Use i387_fill_fsave.
12282
12283 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12284
12285 * arm-tdep.c (arm_call_dummy_words): Define.
12286 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12287 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12288 (CALL_DUMMY_WORDS): Define.
12289 (arm_call_dummy_words): Declare.
12290 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12291 (arm_linux_call_dummy_words): Declare.
12292
12293 2002-01-30 Andreas Schwab <schwab@suse.de>
12294
12295 * m68klinux-nat.c: Fix last change to use regcache_collect
12296 instead of referencing registers[] directly.
12297
12298 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12299
12300 * parse.c (target_map_name_to_register): Delete code wrapped in
12301 #ifdef REGISTER_NAME_ALIAS_HOOK.
12302
12303 2002-01-28 Michael Snyder <msnyder@redhat.com>
12304
12305 * regcache.c (legacy_read_register_gen): Need to be able to
12306 read pseudo-register as well as real register.
12307 (legacy_write_register_gen): Ditto.
12308
12309 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12310
12311 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12312 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12313 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12314 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12315 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12316 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12317 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12318 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12319 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12320 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12321 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12322 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12323 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12324 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12325 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12326 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12327 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12328 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12329 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12330 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12331
12332 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12333
12334 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12335 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12336 (initialize_current_architecture): Update target_byte_order using
12337 information from BFD.
12338 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12339 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12340
12341 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12342
12343 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12344 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12345
12346 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12347 #ifdef INVALID_FLOAT.
12348 * infcmd.c (do_registers_info): Ditto.
12349 * values.c (unpack_double): Ditto. Add comment.
12350
12351 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12352 already commented out.
12353
12354 2002-01-26 Andreas Schwab <schwab@suse.de>
12355
12356 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12357 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12358 registers and add support for PTRACE_GETREGS.
12359
12360 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12361
12362 GDB 5.1.1 released from 5.1 branch.
12363 * NEWS: Add 5.1.1 news.
12364 * README: Sync with 5.1 branch.
12365
12366 2002-01-23 Fred Fish <fnf@redhat.com>
12367
12368 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12369 stabstring on initial malloc. Reallocing will copy it for us,
12370 if necessary.
12371
12372 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12373
12374 * Makefile.in (hpread_h): Delete.
12375 (HFILES_NO_SRCDIR): Remove hpread.h.
12376 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12377 (hpread.o): Update dependencies.
12378 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12379
12380 * hp-psymtab-read.c: Remove file.
12381 * hp-symtab-read.c: Remove file.
12382 * hpread.h: Remove file.
12383
12384 * hpread.c: Merge all contents of hp-psymtab-read.c,
12385 hp-symtab-read.c and hpread.h into this file, as it was prior to
12386 January 1999.
12387
12388 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12389 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12390 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12391 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12392
12393 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12394
12395 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12396 fill_gregset): Call gdbarch_tdep() just once, assign result to
12397 variable and use that, instead of calling the function several
12398 times.
12399
12400 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12401
12402 * configure.host: Accept sparcv9 as alias for sparc64.
12403 * configure.tgt: Likewise.
12404
12405 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12406
12407 * solib-aix5.c (build_so_list_from_mapfile)
12408 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12409 arguments is not reversed.
12410 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12411 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12412
12413 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12414
12415 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12416 modified version of obsolete sh_fetch_pseudo_register.
12417 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12418 (sh4_register_read): New function.
12419 (sh_pseudo_register_write): New function. Renamed and modified
12420 version of obsolete sh_store_pseudo_register.
12421 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12422 (sh4_register_write): New function.
12423 (sh_gdbarch_init): Remove setting of gdbarch function
12424 fetch_pseudo_register and store_pseudo_register. Remove setting of
12425 register_convert_to_raw, register_convert_to_virtual,
12426 register_convertible.
12427 (sh_sh4_register_convertible): Delete. No longer needed. All is
12428 taken care by architecture specific functions
12429 register_read/register_write.
12430 (sh_sh4_register_convert_to_virtual): Make static.
12431 (sh_sh4_register_convert_to_raw): Ditto.
12432
12433 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12434
12435 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12436 (floatformat_is_nan, floatformat_mantissa): Ditto.
12437
12438 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12439 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12440 builtin_type_ieee_double_little,
12441 builtin_type_ieee_double_littlebyte_bigword,
12442 builtin_type_m68881_ext, builtin_type_i960_ext,
12443 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12444 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12445 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12446 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12447
12448 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12449
12450 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12451 parameter. Set frameless flag if it exists and depended of
12452 whether the scanned function is frameless or not.
12453 (xstormy16_skip_prologue): If function is frameless, return
12454 result of xstormy16_scan_prologue().
12455 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12456 call.
12457
12458 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12459
12460 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12461 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12462 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12463 sh_sh4_register_byte, sh_sh4_register_raw_size,
12464 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12465 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12466 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12467 sh_store_pseudo_register, sh_do_pseudo_register): Call
12468 gdbarch_tdep() just once, assign result to variable and use that,
12469 instead of calling the function several times.
12470
12471 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12472
12473 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12474 macros instead of LAST_FPU_CTRL_REGNUM.
12475 (store_register): Likewise.
12476
12477 2002-01-21 Jim Blandy <jimb@redhat.com>
12478
12479 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12480 is up-to-date before running the program, not just when a program
12481 exits.
12482
12483 2002-01-21 Fred Fish <fnf@redhat.com>
12484
12485 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12486 when we have found all instructions we are looking for.
12487
12488 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12489
12490 * arm-tdep.c (arm_register_name): New function.
12491 (arm_registers_names): Make static.
12492 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12493 (arm_register_name): Declare.
12494 (REGISTER_NAME): Use it.
12495
12496 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12497 Kevin Buettner <kevinb@redhat.com>
12498
12499 Convert arm targets to new FRAME interface.
12500 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12501 (arm_frame_find_save_regs): Delete.
12502 (arm_frame_init_saved_regs): New.
12503 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12504 Allocate extra_info as required. Convert all uses of fsr.regs
12505 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12506 to use extra_info.
12507 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12508 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12509 (check_prologue_cache, save_prologue_cache): Likewise.
12510 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12511 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12512 (FRAME_FIND_SAVED_REGS): Delete.
12513 (arm_frame_find_saved_regs): Delete prototype.
12514 (arm_frame_init_saved_regs): New prototype.
12515 (FRAME_INIT_SAVED_REGS): Define.
12516
12517 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12518
12519 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12520
12521 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12522
12523 From Jeff Law <law@redhat.com>:
12524 * infttrace.c: Include <sys/pstat.h>.
12525 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12526 exec file if the ttrace equivalent fails.
12527
12528 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12529
12530 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12531 (closeLogFile): Ditto.
12532
12533 2002-01-20 Michael Chastain <mec@shout.net>
12534
12535 * top.c (print_gdb_version): Bump copyright year to 2002.
12536
12537 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12538
12539 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12540 Zannoni and Eli Zaretskii.
12541
12542 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12543
12544 * buildsym.c: Update copyright years.
12545 * c-typeprint.c: Likewise.
12546 * dwarf2read.c: Likewise.
12547 * f-typeprint.c: Likewise.
12548 * gdbtypes.c: Likewise.
12549 * gdbtypes.h: Likewise.
12550 * hp-symtab-read.c: Likewise.
12551 * hpread.c: Likewise.
12552 * mdebugread.c: Likewise.
12553 * p-typeprint.c: Likewise.
12554
12555 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12556
12557 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12558 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12559 byte-order selectable.
12560 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12561 * arch-utils.c: Ditto.
12562 (set_endian): Ditto.
12563 (set_endian_from_file): Ditto.
12564 * gdbserver/low-sim.c (create_inferior): Ditto.
12565 * gdbarch.sh: Ditto.
12566 * gdbarch.h: Re-generate.
12567 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12568 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12569 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12570 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12571 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12572 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12573 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12574 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12575 macro definition.
12576 * config/mips/tm-wince.h: Remove #undef of macro
12577 TARGET_BYTE_ORDER_SELECTABLE.
12578 * config/sh/tm-wince.h: Ditto.
12579
12580 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12581
12582 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12583 member function fields. Add accessor macro
12584 TYPE_FN_FIELD_ARTIFICIAL.
12585 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12586 * c-typeprint.c (c_type_print_base): Skip artificial member
12587 functions.
12588
12589 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12590
12591 * f-typeprint.c: Delete unused function f_type_print_args.
12592 * p-typeprint.c: Delete unused function pascal_type_print_args.
12593
12594 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12595
12596 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12597 comment. Add ``artificial'' to ``union field_location''.
12598
12599 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12600
12601 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12602 * mdebugread.c (parse_symbol): Likewise.
12603 * stabsread.c (define_symbol): Likewise.
12604 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12605 initializing TYPE_FIELD_BITPOS to n (obsolete).
12606 (hpread_doc_function_type): Likewise.
12607 * hpread.c (hpread_function_type): Likewise.
12608
12609 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12610
12611 * configure.in (host_makefile_frag): Only require a host makefile
12612 fragment when a native build.
12613 * configure: Re-generate.
12614
12615 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12616
12617 * doublest.h (floatformat_from_type): Declare.
12618 * doublest.c (floatformat_from_type): New function.
12619 (convert_typed_floating): Use.
12620
12621 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12622 call to function floatformat_from_type.
12623
12624 * gdbarch.sh (IEEE_FLOAT): Delete.
12625 * gdbarch.h, gdbarch.c: Re-generate.
12626 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12627 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12628 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12629 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12630 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12631 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12632 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12633 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12634 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12635 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12636 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12637 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12638
12639 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12640 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12641 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12642 * sh-tdep.c (sh_gdbarch_init): Ditto.
12643 * mips-tdep.c (mips_gdbarch_init): Ditto.
12644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12645 * cris-tdep.c (cris_gdbarch_init): Ditto.
12646
12647 2002-01-20 Jiri Smid <smid@suse.cz>
12648
12649 * configure.host, configure.tgt: Support x86-64.
12650 * NEWS: Note new target x86-64.
12651
12652 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12653 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12654 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12655 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12656 x86-64-linux-nat.o): Fix dependencies.
12657
12658 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12659
12660 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12661 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12662 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12663 * config/sparc/xm-sun4os4.h: Delete file.
12664 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12665
12666 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12667
12668 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12669 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12670 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12671 * config/i386/i386lynx.mh (XM_FILE): Delete.
12672 * config/rs6000/xm-rs6000ly.h: Delete file.
12673 * config/sparc/xm-sparclynx.h: Delete file.
12674 * config/m68k/xm-m68klynx.h: Delete file.
12675 * config/i386/xm-i386lynx.h: Delete file.
12676 * config/xm-lynx.h: Delete file.
12677 * config/djgpp/fnchange.lst: Update.
12678
12679 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12680
12681 * alpha-tdep.c (alpha_register_byte): New function.
12682 (alpha_register_raw_size): Ditto.
12683 (alpha_register_virtual_size): Ditto.
12684 (alpha_skip_prologue_internal): Renamed from
12685 alpha_skip_prologue.
12686 (alpha_skip_prologue): New version that calls
12687 alpha_skip_prologue_internal.
12688 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12689 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12690 second argument from alpha_skip_prologue.
12691 (REGISTER_BYTE): Use alpha_register_byte.
12692 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12693 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12694 (FRAMELESS_FUNCTION_INVOCATION): Use
12695 generic_frameless_function_invocation_not.
12696 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12697 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12698
12699 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12700
12701 * config/mips/xm-news-mips.h: Delete file.
12702 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12703
12704 * config/m88k/xm-m88k.h: Delete file.
12705 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12706 * config/m88k/xm-delta88v4.h: Ditto.
12707 * config/m88k/xm-delta88.h: Ditto.
12708
12709 * config/alpha/xm-fbsd.h: Delete file.
12710 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12711
12712 * config/sparc/xm-sparc.h: Delete file.
12713 * Makefile.in (xm-sun4os4.h): Delete dependency.
12714 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12715 * config/sparc/xm-sun4os4.h: Ditto.
12716 * config/sparc/xm-linux.h: Ditto.
12717
12718 * config/i386/xm-windows.h: Delete file.
12719
12720 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12721
12722 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12723 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12724
12725 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12726
12727 * alpha-tdep.c (alpha_call_dummy_words): New.
12728 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12729 (CALL_DUMMY_P): Define.
12730 (CALL_DUMMY_WORDS): Define.
12731 (SIZEOF_CALL_DUMMY_WORDS): Define.
12732
12733 2002-01-19 Per Bothner <per@bothner.com>
12734
12735 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12736 isn't NULL, which can happen with some gcj-3.x-produced code.
12737
12738 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12739
12740 * alpha-tdep.c (alpha_register_virtual_type): New function.
12741 (alpha_init_frame_pc_first): Ditto.
12742 (alpha_fix_call_dummy): Ditto.
12743 (alpha_store_struct_return): Ditto.
12744 (alpha_extract_struct_value_address): Ditto.
12745 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12746 alpha_register_virtual_type.
12747 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12748 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12749 alpha_extract_struct_value_address.
12750 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12751 (INIT_FRAME_PC): Use init_frame_pc_noop.
12752 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12753
12754 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12755
12756 * i386gnu-nat.c: Include "i386-tdep.h".
12757 (fetch_fpregs): Simplify code dealing with uninitialized floating
12758 point states such that it doesn't require FP7_REGNUM.
12759
12760 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12761
12762 * alpha-tdep.c (frame_extra_info): New.
12763 (alpha_find_saved_regs): Make static. Use
12764 frame->extra_info.
12765 (alpha_frame_init_saved_regs): New function.
12766 (alpha_frame_saved_pc): Use frame->extra_info.
12767 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12768 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12769 (init_extra_frame_info): Rename to...
12770 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12771 (alpha_print_extra_frame_info): New function.
12772 (alpha_frame_locals_address): Ditto.
12773 (alpha_frame_args_address): Ditto.
12774 (alpha_pop_frame): Use frame->extra_info.
12775 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12776 alpha_frame_args_address.
12777 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12778 (alpha_find_saved_regs): Remove prototype.
12779 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12780 (EXTRA_FRAME_INFO): Remove.
12781 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12782 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12783
12784 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12785
12786 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12787 (alpha_cannot_fetch_register): Ditto.
12788 (alpha_cannot_store_register): Ditto.
12789 (alpha_register_convertible): Ditto.
12790 (alpha_use_struct_convention): Ditto.
12791 * config/alpha/tm-alpha.h: Update copyright years.
12792 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12793 (INNER_THAN): Use core_addr_lessthan.
12794 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12795 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12796 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12797 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12798 (FRAME_CHAIN): Remove unnecessary cast.
12799
12800 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12801
12802 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12803 obsolete.
12804
12805 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12806
12807 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12808 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12809 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12810 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12811 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12812 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12813 * x86-64-linux-nat.c: Ditto.
12814
12815 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12816
12817 * alpha-tdep.c (alpha_register_name): New function.
12818 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12819 (REGISTER_NAME): Define.
12820
12821 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12822
12823 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12824
12825 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12826
12827 * alpha-tdep.c: Update copyright years.
12828 (alpha_next_pc): New function.
12829 (alpha_software_single_step): Ditto.
12830 * config/alpha/tm-alpha.h: Add prototype for
12831 alpha_software_single_step.
12832
12833 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12834
12835 * alphabsd-nat.c: Update copyright years.
12836 (fill_gregset): Use regcache_collect.
12837 (fill_fpregset): Likewise.
12838 (fetch_inferior_registers): Only fetch integer registers
12839 if requested to do so.
12840 (store_inferior_registers): Only store integer registers
12841 if requested to do so.
12842
12843 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12844
12845 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12846 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12847 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12848 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12849 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12850 * config/arm/linux.mh (XDEPFILES): Delete.
12851 * config/arm/nbsd.mh (XDEPFILES): Delete.
12852 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12853 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12854 * config/i386/i386m3.mh (XDEPFILES): Delete.
12855 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12856 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12857 * config/i386/fbsd.mh (XDEPFILES): Delete.
12858 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12859 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12860 * config/i386/i386v4.mh (XDEPFILES): Delete.
12861 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12862 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12863 * config/i386/i386aix.mh (XDEPFILES): Delete.
12864 * config/i386/go32.mh (XDEPFILES): Delete.
12865 * config/i386/cygwin.mh (XDEPFILES): Delete.
12866 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12867 * config/i386/i386mach.mh (XDEPFILES): Delete.
12868 * config/i386/i386v32.mh (XDEPFILES): Delete.
12869 * config/i386/linux.mh (XDEPFILES): Delete.
12870 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12871 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12872 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12873 * config/i386/i386sco.mh (XDEPFILES): Delete.
12874 * config/i386/i386v.mh (XDEPFILES): Delete.
12875 * config/i386/nbsd.mh (XDEPFILES): Delete.
12876 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12877 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12878 * config/i386/symmetry.mh (XDEPFILES): Delete.
12879 * config/i386/obsd.mh (XDEPFILES): Delete.
12880 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12881 * config/ia64/linux.mh (XDEPFILES): Delete.
12882 * config/ia64/aix.mh (XDEPFILES): Delete.
12883 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12884 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12885 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12886 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12887 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12888 * config/m68k/linux.mh (XDEPFILES): Delete.
12889 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12890 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12891 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12892 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12893 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12894 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12895 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12896 * config/m88k/delta88.mh (XDEPFILES): Delete.
12897 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12898 * config/m88k/m88k.mh (XDEPFILES): Delete.
12899 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12900 * config/mips/linux.mh (XDEPFILES): Delete.
12901 * config/mips/irix6.mh (XDEPFILES): Delete.
12902 * config/mips/irix5.mh (XDEPFILES): Delete.
12903 * config/mips/irix4.mh (XDEPFILES): Delete.
12904 * config/mips/irix3.mh (XDEPFILES): Delete.
12905 * config/mips/decstation.mh (XDEPFILES): Delete.
12906 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12907 (NATDEPFILES): Move core-aout.o to here.
12908 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12909 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12910 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12911 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12912 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12913 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12914 * config/pa/hpux11.mh (XDEPFILES): Delete.
12915 * config/powerpc/aix.mh (XDEPFILES): Delete.
12916 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12917 * config/powerpc/linux.mh (XDEPFILES): Delete.
12918 * config/romp/rtbsd.mh: Rename XDEPFILES.
12919 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12920 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12921 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12922 * config/s390/s390.mh (XDEPFILES): Delete.
12923 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12924 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12925 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12926 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12927 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12928 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12929 * config/sparc/linux.mh (XDEPFILES): Delete.
12930 * config/vax/vaxult.mh (XDEPFILES): Delete.
12931 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12932 * Makefile.in (DEPFILES): Remove XDEPFILES.
12933
12934 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12935
12936 * utils.c (internal_verror): Fix comments, default is yes not no.
12937 Update queries to match. Default to quit and dump core.
12938
12939 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12940
12941 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12942 copyright.
12943 * defs.h, event-top.c, gdbcmd.h: Ditto.
12944 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12945 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12946 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12947 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12948 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12949 * mi/mi-main.c:Ditto.
12950
12951 * stack.c, symfile.c: Update copyright.
12952
12953 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12954
12955 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12956 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12957 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12958 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12959
12960 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12961
12962 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12963 * gdbserver/low-lynx.c (myattach): Likewise.
12964 * gdbserver/low-nbsd.c (myattach): Likewise.
12965 * gdbserver/low-sim.c (myattach): Likewise.
12966 * gdbserver/low-sparc.c (myattach): Likewise.
12967 * gdbserver/low-sun3.c (myattach): Likewise.
12968
12969 * gdbserver/low-linux.c (myattach): New function.
12970
12971 * gdbserver/server.c (attach_inferior): New function.
12972 (main): Handle "--attach".
12973
12974 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12975
12976 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12977 maintainer.
12978
12979 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12980
12981 * c-typeprint.c (is_type_conversion_operator): Add additional
12982 check for non-conversion operators.
12983
12984 2002-01-15 Michael Snyder <msnyder@redhat.com>
12985
12986 * linux-proc.c: Add "info proc" command, a la procfs.c.
12987 (read_mapping): New function, abstract and re-use code.
12988 (linux_find_memory_regions): Use new func read_mapping.
12989 (linux_info_proc_cmd): New function, implement "info proc".
12990 (_initialize_linux_proc): Add new command "info proc".
12991
12992 2002-01-15 Michael Snyder <msnyder@redhat.com>
12993
12994 * symfile.c (generic_load): Use bfd_map_over_sections method
12995 instead of manipulating bfd structure members directly.
12996 (add_section_size_callback): New function, bfd sections callback
12997 used by generic_load.
12998 (load_sections_callback): New function, bfd sections callback
12999 used by generic_load.
13000
13001 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13002
13003 [Based on work by Jim Blandy]
13004 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13005 (builtin_type_vec128): Export.
13006 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13007 types.
13008 (builtin_type_vec128): New builtin type for 128 bit vector
13009 registers.
13010 (build_gdbtypes): Initialize builtin_type_v16qi and
13011 builtin_type_v8hi. Create the vec128 register builtin type
13012 structure.
13013 (build_builtin_type_vec128): New function.
13014 (_initialize_gdbtypes): Register builtin_type_v16qi and
13015 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13016 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13017 AltiVec register to new builtin type.
13018
13019 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13020
13021 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13022 to make_cv_type.
13023
13024 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13025
13026 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13027 CLEAN_UP_REGISTER_VALUE.
13028 * regcache.c (supply_register): Update only call.
13029
13030 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13031
13032 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13033 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13034 a29k-*-vxworks* targets as obsolete.
13035
13036 2002-01-14 Michael Snyder <msnyder@redhat.com>
13037
13038 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13039 until we can resolve portability issues.
13040 * gregset.h: Remove references to fpxregs.
13041 * gcore.c (gcore_command): Initialize note_sec to NULL.
13042
13043 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13044
13045 * signals.c (target_signal_to_name): Rewrite. Only use
13046 signals[].name when in bounds and non-NULL.
13047
13048 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13049
13050 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13051 * signals.c (target_signal_to_name): Verify that SIG is within the
13052 bounds of the signals array.
13053
13054 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13055
13056 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13057
13058 2002-01-13 Keith Seitz <keiths@redhat.com>
13059
13060 * stack.c (print_frame_info_base): Print the frame's pc
13061 only if when print_frame_info_listing_hook is not defined.
13062
13063 2002-01-13 Keith Seitz <keiths@redhat.com>
13064
13065 * varobj.c (varobj_set_value): Make sure that there were no
13066 errors evaluating the object before attempting to set its
13067 value.
13068 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13069 so this offset adjustment is no longer necessary.
13070 (create_child): Don't set the error flag if the child is
13071 a CPLUS_FAKE_CHILD.
13072 (value_of_child): If value_fetch_lazy fails, return NULL
13073 so that callers will be notified that an error occurred.
13074 (c_value_of_variable): Delay check of variable's validity
13075 until later. We actually want all structs and unions to have
13076 the value "{...}".
13077 Do not return "???" for variables which could not be evaluated.
13078 This error condition must be returned to the caller so that it
13079 can get the error condition from gdb.
13080 (cplus_name_of_child): Adjust index for vptr before figuring
13081 out the name of the child.
13082 (cplus_value_of_child): If a child's (real) parent is not valid,
13083 don't even bother trying to give a value for it. Just return
13084 an error. Change all instances in this function.
13085 (cplus_type_of_child): If our parent is one of the "fake"
13086 parents, we need to get at the type of the real parent, and
13087 derive the child's true type using this information.
13088
13089 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13090
13091 From 2002-01-09 John Marshall <johnm@falch.net>:
13092 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13093 sources.redhat.com, and tweak some related URLs which had
13094 suffered from linkrot.
13095
13096 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13097
13098 From Jeff law:
13099 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13100 structures passed in registers.
13101
13102 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13103
13104 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13105 white space which prevented compilation. Reported by DSK
13106 <dsk@student.unsw.edu.au>.
13107
13108 2002-01-11 Michael Snyder <msnyder@redhat.com>
13109
13110 * symfile.c (build_section_addr_info_from_section_tab):
13111 Use bfd access method instead of manipulating bfd directly.
13112 (syms_from_objfile): Ditto.
13113 (simple_overlay_update_1): Ditto.
13114 (simple_overlay_update): Ditto.
13115 (generic_load): Ditto.
13116 (overlay_unmapped_address): FIXME comment, bfd access methods.
13117 (sections_overlap): FIXME comment, bfd access methods.
13118 (pc_in_mapped_range): FIXME comment, bfd access methods.
13119 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13120 (section_is_mapped): FIXME comment, bfd access methods.
13121 (section_is_overlay): FIXME comment, bfd access methods.
13122
13123 * symfile.c (generic_load): Whitespace and long line cleanups.
13124 Remove duplicate variable, change several local variables to
13125 more appropriate data types.
13126 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13127
13128 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13129
13130 From Peter Schauer:
13131 * language.c (longest_local_hex_string_custom): Use phex_nz to
13132 convert NUM to a hex string.
13133
13134 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13135
13136 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13137 the function.
13138 Update Copyright year.
13139
13140 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13141
13142 * language.c (longest_raw_hex_string): Delete unused function.
13143
13144 2002-01-11 Petr Sorfa <petrs@caldera.com>
13145
13146 * MAINTAINERS (write-after-approval): Add myself.
13147 * dwarf2read.c (read_tag_string_type): Handling of
13148 DW_AT_byte_size.
13149 (read_tag_string_type): FORTRAN fix to prevent propagation of
13150 first string size.
13151 (set_cu_language): Handling of DW_LANG_Fortran95
13152
13153 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13154
13155 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13156 GETPID(inferior_ptid).
13157 (store_inferior_registers): Likewise.
13158
13159 2002-01-10 Jason Merrill <jason@redhat.com>
13160
13161 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13162 Fix DW_OP_minus.
13163
13164 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13165
13166 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13167 and bfd/elf32-sh-nbsd.c.
13168
13169 2002-01-10 Michael Snyder <msnyder@redhat.com>
13170
13171 * NEWS: Mention --pid and corefile/proc-id behavior change.
13172
13173 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13174 * gcore.c: Include cli/cli-decode.h instead of command.h.
13175
13176 * main.c (captured_main): Add new command line option "--pid".
13177 If the second command line argument (following the symbol-file)
13178 begins with a digit, try to attach to it before trying to open
13179 it as a corefile.
13180 (print_gdb_help): Document the "--pid" argument.
13181
13182 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13183
13184 * completer.c (command_completer): New function.
13185
13186 * completer.h <command_completer>: Add prototype.
13187
13188 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13189 completer for the "help" command.
13190
13191 2002-01-09 Jason Merrill <jason@redhat.com>
13192
13193 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13194
13195 2002-01-09 Michael Snyder <msnyder@redhat.com>
13196
13197 * i386-linux-nat.c (fill_fpxregset): Make global.
13198 (store_fpxregset): Ditto.
13199
13200 * gregset.h (gdb_fpxregset_t): Define.
13201 (supply_fpxregset): Prototype.
13202 (fill_fpxregset): Prototype.
13203
13204 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13205
13206 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13207
13208 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13209 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13210 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13211
13212 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13213
13214 * MAINTAINERS: Update target maintainer rules so that any
13215 Maintainer can approve a tested patch for a maintenance-only
13216 target.
13217
13218 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13219
13220 * MAINTAINERS (write-after-approval): Add myself.
13221
13222 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13223 IN_SIGTRAMP.
13224
13225 2002-01-08 Michael Snyder <msnyder@redhat.com>
13226
13227 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13228 real name of the executable, rather than the /proc name.
13229
13230 2002-01-03 Michael Snyder <msnyder@redhat.com>
13231
13232 Implement a "generate-core-file" command in gdb, save target state.
13233 * gcore.c: New file. Implement new command 'generate-core-file'.
13234 Save a corefile image of the current state of the inferior.
13235 * linux-proc.c: Add linux-specific code for saving corefiles.
13236 * target.h (struct target_ops): Add new target vectors for saving
13237 corefiles; to_find_memory_regions and to_make_corefile_notes.
13238 (target_find_memory_regions): New macro.
13239 (target_make_corefile_notes): New macro.
13240 * target.c (update_current_target): Inherit new target methods.
13241 (dummy_find_memory_regions): New place-holder method.
13242 (dummy_make_corefile_notes): New place-holder method.
13243 (init_dummy_target): Initialize new dummy target vectors.
13244 * exec.c (exec_set_find_memory_regions): New function.
13245 Allow the exec_ops vector for memory regions to be taken over.
13246 (exec_make_note_section): New function, target vector method.
13247 * defs.h (exec_set_find_memory_regions): Export prototype.
13248 * procfs.c (proc_find_memory_regions): New function, corefile method.
13249 (procfs_make_note_section): New function, corefile method.
13250 (init_procfs_ops): Set new target vector pointers.
13251 (find_memory_regions_callback): New function.
13252 (procfs_do_thread_registers): New function.
13253 (procfs_corefile_thread_callback): New function.
13254 * sol-thread.c (sol_find_memory_regions): New function.
13255 (sol_make_note_section): New function.
13256 (init_sol_thread_ops): Initialize new target vectors.
13257 * inftarg.c (inftarg_set_find_memory_regions): New function.
13258 Allow to_find_memory_regions vector to be taken over.
13259 (inftarg_set_make_corefile_notes): New function.
13260 Allow to_make_corefile_notes vector to be taken over.
13261 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13262 interface layer if not target_has_execution (may be a corefile).
13263 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13264 * config/sparc/sun4sol2.mh: Ditto.
13265 * config/alpha/alpha-linux.mh: Ditto.
13266 * config/arm/linux.mh: Ditto.
13267 * config/i386/x86-64linux.mh: Ditto.
13268 * config/ia64/linux.mh: Ditto.
13269 * config/m68k/linux.mh: Ditto.
13270 * config/mips/linux.mh: Ditto.
13271 * config/powerpc/linux.mh: Ditto.
13272 * config/sparc/linux.mh: Ditto.
13273
13274 2002-01-07 Michael Snyder <msnyder@redhat.com>
13275
13276 * arm-linux-nat.c: Remove references to regcache.c internal data
13277 (registers[] and register_valid[]).
13278
13279 2002-01-07 Michael Snyder <msnyder@redhat.com>
13280
13281 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13282 so that attaching to a pid will automatically read the process's
13283 symbol file and shlibs.
13284 * Makefile.in: Add rule for linux-proc.o.
13285 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13286 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13287 * config/arm/linux.mh: Ditto.
13288 * config/i386/linux.mh: Ditto.
13289 * config/i386/x86-64linux.mh: Ditto.
13290 * config/ia64/linux.mh: Ditto.
13291 * config/m68k/linux.mh: Ditto.
13292 * config/mips/linux.mh: Ditto.
13293 * config/powerpc/linux.mh: Ditto.
13294 * config/sparc/linux.mh: Ditto.
13295
13296 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13297
13298 * win32-nat.c: Add i386-tdep.h dependency.
13299
13300 2002-01-07 Michael Snyder <msnyder@redhat.com>
13301
13302 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13303 instead of bfd_get_arch_size. Don't bail out just because
13304 there's no exec_bfd.
13305
13306 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13307 * p-valprint.c (pascal_object_print_value): Ditto.
13308 * somread.c (som_symtab_read): Ditto.
13309 * symfile.c (simple_free_overlay_region_table): Ditto.
13310 * valops.c (value_assign): Ditto.
13311
13312 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13313 use tilde_expand and strerror for opening save-tracepoints file.
13314
13315 * thread-db.c (thread_db_new_objfile): Indendation fix.
13316
13317 * infptrace.c (GDB_MAX_ALLOCA): New define.
13318 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13319 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13320 can be overridden with whatever value is appropriate to the host).
13321 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13322 alloca to allocate potentially large buffer.
13323 * rs6000-nat.c (child_xfer_memory): Ditto.
13324 * symm-nat.c (child_xfer_memory): Ditto.
13325 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13326
13327 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13328
13329 From Nick Clifton <nickc@redhat.com>
13330 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13331
13332 2002-01-07 Michael Snyder <msnyder@redhat.com>
13333
13334 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13335 Don't use exec_bfd if it's NULL.
13336
13337 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13338
13339 * valops.c (value_arg_coerce): Fix formatting.
13340
13341 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13342
13343 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13344 * gnu-nat.c: Ditto.
13345
13346 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13347
13348 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13349 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13350 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13351 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13352 z8k-coff have not been multi-arched. Update z8k-coff build
13353 status.
13354
13355 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13356
13357 * MAINTAINERS: Mark a29k target as obsolete.
13358 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13359 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13360 comments.
13361 * NEWS: Note that a29k targets are obsolete.
13362 * a29k-tdep.c: Mark as obsolete.
13363 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13364 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13365 a29k-*-vxworks* targets as obsolete.
13366 * remote-adapt.c: Obsolete.
13367 * remote-eb.c: Obsolete.
13368 * remote-mm.c: Obsolete.
13369 * remote-udi.c: Obsolete.
13370 * config/a29k/a29k-udi.mt: Obsolete.
13371 * config/a29k/a29k.mt: Obsolete.
13372 * config/a29k/tm-a29k.h: Obsolete.
13373 * config/a29k/tm-vx29k.h: Obsolete.
13374 * config/a29k/vx29k.mt: Obsolete.
13375
13376 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13377
13378 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13379 with BFD_ENDIAN_BIG.
13380
13381 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13382
13383 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13384 * configure, config.in: Re-generate.
13385 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13386 * defs.h: Do not include <endian.h>.
13387
13388 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13389
13390 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13391 * config.in: Regenerate.
13392 * configure.in: Update copyright years.
13393 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13394 * configure: Regenerate.
13395 * i386bsd-nat.c: Update copyright years.
13396 (fill_gregset): Use regcache_collect.
13397 (fetch_inferior_registers): Only fetch integer registers
13398 if requested to do so. Add support for XMM registers
13399 using PT_GETXMMREGS.
13400 (store_inferior_registers): Only store integer registers
13401 if requested to do so. Add support for XMM registers
13402 using PT_SETXMMREGS.
13403 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13404 (store_inferior_registers): Remove.
13405 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13406 (fetch_elfcore_registers): New function.
13407 (i386nbsd_elfcore_fns): New.
13408 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13409 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13410 i386bsd-nat.o.
13411 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13412 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13413 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13414 * config/i386/tm-nbsd.h: Update copyright years.
13415 (HAVE_SSE_REGS): Define.
13416 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13417 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13418 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13419 (SIGCONTEXT_PC_OFFSET): Remove.
13420 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13421
13422 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13423
13424 * configure.tgt: Remove powerpc-*-macos* target.
13425 * config/m68k/xm-mpw.h: Delete file.
13426 * config/xm-mpw.h: Delete file.
13427 * ser-mac.c: Delete file.
13428 * mpw-make.sed: Delete file.
13429 * mpw-config.in: Delete file.
13430 * mac-xdep.c: Delete file.
13431 * mac-gdb.r: Delete file.
13432 * mac-defs.h: Delete file.
13433 * mac-nat.c: Delete file.
13434 * config/powerpc/macos.mh: Delete file.
13435 * config/powerpc/macos.mt: Delete file.
13436 * config/powerpc/nm-macos.h: Delete file.
13437 * config/powerpc/tm-macos.h: Delete file.
13438 * source.c (openp, open_source_file): Remove obsolete code.
13439 * top.c (gdb_readline): Ditto.
13440 * utils.c (query): Ditto.
13441 * event-top.c (display_gdb_prompt): Ditto.
13442 * Makefile.in (ser-mac.o): Delete obsolete target.
13443 * NEWS: Update.
13444
13445 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13446
13447 * defs.h (BIG_ENDIAN): Delete macro definition.
13448 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13449 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13450 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13451 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13452 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13453 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13454 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13455 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13456 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13457 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13458 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13459 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13460 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13461 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13462 * gdbarch.c: Re-generate.
13463
13464 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13465
13466 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13467 for core files.
13468
13469 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13470
13471 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13472
13473 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13474
13475 * value.h (value_ptr): Delete typedef.
13476
13477 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13478
13479 * i386nbsd-nat.c: Update copyright years.
13480 Include i386-tdep.h.
13481
13482 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13483
13484 * stabsread.c: Update copyright years.
13485
13486 From Debashis Mahata <debashis.mahata@wipro.com>:
13487 (read_struct_fields): Deal with Sun C compiler erroneous stab
13488 output for structs and unions.
13489 Fix PR gdb/269.
13490
13491 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13492
13493 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13494 prototype.
13495
13496 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13497
13498 * cp-abi.c: Fix whitespace.
13499 (baseclass_offset): New wrapper function.
13500 * cp-abi.h (baseclass_offset): Add prototype.
13501 (struct cp_abi_ops): Add baseclass_offset pointer.
13502
13503 * valops.c (vb_match): Move to...
13504 * gnu-v2-abi.c (vb_match): here.
13505 * valops.c (baseclass_offset): Move to...
13506 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13507
13508 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13509
13510 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13511 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13512 * hpacc-abi.c (init_hpacc_ops): Likewise.
13513
13514 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13515
13516 * valops.c (find_overload_match): Accept obj as a
13517 reference parameter. Update it before returning.
13518 * value.h (find_overload_match): Update prototype.
13519 * eval.c (evaluate_subexp_standard): Pass object to
13520 find_overload_match by reference.
13521
13522 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13523
13524 * valarith.c: Replace value_ptr with struct value pointer. Remove
13525 register attribute from value declarations.
13526 * valops.c: Ditto.
13527 * value.h: Ditto.
13528 * scm-lang.c (scm_lookup_name): Ditto.
13529
13530 2002-01-03 Michael Snyder <msnyder@redhat.com>
13531
13532 Abstract the functionality of iterating over mapped memory
13533 regions into a general purpose iterator function.
13534 * procfs.c (iterate_over_mappings): New function, general purpose
13535 iterator for memory sections.
13536 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13537 (solib_mappings_callback): New function, callback for above.
13538 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13539 (info_mappings_callback): New function, callback for above.
13540
13541 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13542
13543 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13544
13545 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13546 * i386-tdep.c: Include "elf-bfd.h".
13547 (process_note_abi_tag_sections): New function.
13548 (i386_gdbarch_init): Add code to recognize various OS/ABI
13549 combinations.
13550
13551 * maint.c (_initialize_maint_cmds): Add missing \ in
13552 string-literal.
13553
13554 For older changes see ChangeLog-2001
13555 \f
13556 Local Variables:
13557 mode: change-log
13558 left-margin: 8
13559 fill-column: 74
13560 version-control: never
13561 End:
This page took 0.286671 seconds and 5 git commands to generate.