2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2
3 * varobj.c (find_frame_addr_in_frame_chain):
4 Use get_frame_base instead of FRAME_FP,
5 obvious fix.
6
7 2002-11-19 Andrew Cagney <ac131313@redhat.com>
8
9 * frame.h (FRAME_FP): Delete macro.
10 (get_frame_base): New function declaration.
11 * frame.c (get_frame_base): New function.
12 (get_frame_id): Use ->frame.
13 (frame_find_by_id): Rewrite to use get_frame_id.
14 * blockframe.c: Use get_frame_base instead of FRAME_FP.
15 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
16 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
17 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
18 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
19 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
20 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
21
22 2002-11-24 Andrew Cagney <ac131313@redhat.com>
23
24 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
25
26 2002-11-24 Andrew Cagney <ac131313@redhat.com>
27
28 * frame.c (set_unwind_by_pc): Revert change below, use
29 PC_IN_CALL_DUMMY.
30 (get_prev_frame): Ditto.
31
32 2002-11-24 Andrew Cagney <ac131313@redhat.com>
33
34 * dummy-frame.c (pc_in_dummy_frame): New function.
35 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
36 (find_dummy_frame): Update comment.
37 (generic_pop_current_frame): Use get_frame_type.
38 * dummy-frame.h (pc_in_dummy_frame): Declare.
39 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
40 (create_new_frame): Use pc_in_dummy_frame.
41 (get_prev_frame): Use pc_in_dummy_frame.
42 (frame_saved_regs_register_unwind): Use get_prev_frame.
43 (deprecated_generic_get_saved_register): Use get_prev_frame.
44
45 2002-11-23 Andrew Cagney <ac131313@redhat.com>
46
47 * blockframe.c (find_frame_addr_in_frame_chain): Move function
48 from here ...
49 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
50 (varobj_create): Note that frame ID should be used.
51 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
52
53 2002-11-23 Andrew Cagney <ac131313@redhat.com>
54
55 * breakpoint.c: Include "gdb_assert.h".
56 (deprecated_frame_in_dummy): Assert that generic dummy frames are
57 not being used.
58 * Makefile.in (breakpoint.o): Update dependencies.
59 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
60 deprecated_frame_in_dummy.
61 * stack.c (print_frame_info_base): Ditto.
62 (frame_info): Ditto.
63 (print_frame_info_base): Ditto. Delete dead code.
64
65 2002-11-23 Andreas Schwab <schwab@suse.de>
66
67 * Makefile.in (m68k_tdep_h): Define.
68 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
69 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
70 * m68k-tdep.c: Move register number enum ...
71 * m68k-tdep.h: ... to this new file and rename the constants from
72 E_* to M68K_*. All uses changed.
73 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
74 * abug-rom.c: Include "m68k-tdep.h". Use
75 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
76 * cpu32bug-rom.c: Likewise.
77 * dbug-rom.c: Likewise.
78 * m68k-tdep.c: Likewise.
79 * m68klinux-nat.c: Likewise.
80 * remote-est.c: Likewise.
81 * rom68k-rom.c: Likewise.
82 * config/m68k/tm-linux.h: Likewise.
83
84 2002-11-23 Andrew Cagney <ac131313@redhat.com>
85
86 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
87 dummy frame initialization code.
88 * mips-tdep.c (mips_gdbarch_init): Ditto.
89
90 2002-11-22 Christopher Faylor <cgf@redhat.com>
91
92 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
93 attach will hang.
94
95 2002-11-22 Andrew Cagney <ac131313@redhat.com>
96
97 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
98 to default_frame_address.
99 * gdbarch.h, gdbarch.c: Re-generate.
100
101 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
102 or frame_locals_address to default_frame_address.
103 * m68k-tdep.c (m68k_gdbarch_init): Update.
104 * i386-tdep.c (i386_gdbarch_init): Update.
105 * frv-tdep.c (frv_gdbarch_init): Update.
106 * sh-tdep.c (sh_gdbarch_init): Update.
107 * v850-tdep.c (v850_gdbarch_init): Update.
108 * sparc-tdep.c (sparc_gdbarch_init): Update.
109 * mips-tdep.c (mips_gdbarch_init): Update.
110 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
111 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
113
114 * cris-tdep.c (cris_frame_args_address): Delete function.
115 (cris_frame_locals_address): Delete function.
116 (cris_gdbarch_init): Do not set frame_args_address or
117 frame_locals_address.
118
119 2002-11-22 Michael Snyder <msnyder@redhat.com>
120
121 * thread-db.c (thread_db_load): Tell the user what's going on
122 if dlopen fails on libthread_db.
123
124 2002-11-23 Andreas Schwab <schwab@suse.de>
125
126 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
127 invariant return values.
128
129 2002-11-22 Andreas Schwab <schwab@suse.de>
130
131 * valops.c (value_slice): Move declaration of `offset' to avoid
132 warning.
133
134 2002-11-22 Christopher Faylor <cgf@redhat.com>
135
136 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
137 (struct so_stuff): Add end_addr field.
138 (register_loaded_dll): Calculate and store end address of loaded dll.
139 (solib_address): New function.
140 (child_solib_loaded_library_pathname): Pass carefully constructed
141 section info to safe_symbol_file_add rather than ignoring it.
142 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
143 DLL is loaded.
144 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
145 (child_create_inferior): Fix a compiler warning.
146 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
147 (solib_address): Declare new function.
148
149 2002-11-22 Andreas Schwab <schwab@suse.de>
150
151 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
152 and FPS registers.
153
154 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
155
156 * maint.c (_initialize_maint_cmds): Fix typo. From
157 Francesco Potorti` <pot@gnu.org>.
158
159 2002-11-21 Andrew Cagney <cagney@redhat.com>
160
161 * mips-tdep.c (mips_dump_tdep): Delete references to
162 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
163 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
164 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
165 * printcmd.c (build_address_symbolic): Delete calls to
166 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
167 (address_info): Ditto.
168 Fix PR gdb/773.
169
170 2002-11-19 Klee Dienes <kdienes@apple.com>
171 Adam Fedor <fedor@gnu.org>
172
173 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
174 the ability to explicitly specify the quote characters and word
175 break characters; if NULL is specified for either, use the old
176 behavior of using the characters used by the completer.
177 (skip_chars): New function. Convenience wrapper around
178 skip_quoted_chars to provide the original skip_chars behavior.
179 * completer.h (skip_quoted_chars): Add prototype.
180
181 2002-11-19 Andrew Cagney <ac131313@redhat.com>
182
183 Problems reported by Paul Eggert.
184 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
185
186 2002-11-19 Andreas Schwab <schwab@suse.de>
187
188 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
189 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
190 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
191 (m68k_linux_frame_saved_pc): Move to ...
192 * m68klinux-tdep.c: ... here. New file.
193 * Makefile.in (m68klinux-tdep.o): Add dependencies.
194 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
195
196 2002-11-19 Adam Fedor <fedor@gnu.org>
197
198 * objc-exp.y: Revert to old skip_quoted usage.
199
200 2002-11-19 Adam Fedor <fedor@gnu.org>
201
202 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
203 (objc_lang_h): Define.
204 (YYFILES): Add objc-exp.tab.c.
205 (local-maintainer-clean): Remove objc-exp.tab.c.
206 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
207
208 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
209
210 * p-exp.y (typecast rule): Add automatic dereference of
211 pascal classes if needed.
212 (THIS): Set current_type.
213 Automatically dereference pascal classes.
214 (typebase rule): Add ^typebase recognition.
215
216 2002-11-18 Adam Fedor <fedor@gnu.org>
217
218 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
219 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
220 (op_name): Handle OP_OBJC_SELF.
221 * Makefile.in (expprint.o): Add additional depends.
222
223 2002-11-18 Adam Fedor <fedor@gnu.org>
224
225 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
226 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
227 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
228 * objc-exp.y: Likewise.
229
230 2002-11-18 Adam Fedor <fedor@gnu.org>
231
232 * gdb/parser-defs.h: (struct objc_class_str): New structure
233 for parsing ObjC classes.
234
235 2002-11-18 Andrew Cagney <ac131313@redhat.com>
236
237 * stack.c (frame_relative_level): Copy function from here ...
238 * frame.c (frame_relative_level): ...to here.
239
240 2002-11-18 Andrew Cagney <ac131313@redhat.com>
241
242 * frame.h (enum frame_type): Define.
243 (get_frame_type): Declare.
244 (struct frame_info): Add field `type'. Delete field
245 signal_handler_caller.
246 (deprecated_set_frame_signal_handler_caller): Declare.
247 * frame.c (get_frame_type): New function.
248 (deprecated_set_frame_type): New function.
249 (create_new_frame): Set the frame's type.
250 (get_prev_frame): Similar.
251 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
252 * s390-tdep.c: Ditto.
253 * m68klinux-nat.c: Ditto.
254 * ns32k-tdep.c: Ditto.
255 * x86-64-linux-tdep.c: Ditto.
256 * vax-tdep.c: Ditto.
257 * rs6000-tdep.c: Ditto.
258 * ppc-linux-tdep.c: Ditto.
259 * i386-interix-tdep.c: Ditto.
260 * mips-tdep.c: Ditto.
261 * m68k-tdep.c: Ditto.
262 * hppa-tdep.c: Ditto.
263 * ia64-tdep.c: Ditto.
264 * cris-tdep.c: Ditto.
265 * arm-tdep.c: Ditto.
266 * alpha-tdep.c: Ditto.
267 * i386-tdep.c: Ditto.
268 * stack.c: Ditto.
269 * ada-lang.c: Ditto.
270 * blockframe.c: Update.
271 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
272 deprecated_set_frame_type instead of signal_handler_caller.
273 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
274 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
275 * breakpoint.h: Delete FIXME suggesting get_frame_type.
276
277 2002-11-18 Klee Dienes <kdienes@apple.com>
278
279 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
280
281 2002-11-18 Klee Dienes <kdienes@apple.com>
282
283 * buildsym.c (pop_context): Add comment.
284
285 2002-11-18 Klee Dienes <kdienes@apple.com>
286
287 * buildsym.h (pop_context): Convert to function, defined in
288 buildsym.c.
289 * buildsym.c: Include gdb_assert.h.
290 (pop_context): Implement as C function. Add check for stack
291 underflow.
292 * dbxread.c (process_one_symbol): Complain and stop processing
293 that symbol if we are already at the top of the context stack for
294 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
295 when processing N_RBRAC.
296
297 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
298
299 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
300 define.
301 (struct target_waitstatus): Add opaque definition.
302 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
303 * exec.c (init_exec_ops): Likewise.
304 * fork-child.c (clone_and_follow_inferior): Remove.
305 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
306 * inferior.h (clone_and_follow_inferior): Remove prototype.
307 * infrun.c (follow_fork_mode_both): Remove.
308 (follow_fork_mode_kind_names): Remove commented out "both".
309 (follow_inferior_fork): Remove follow_fork_mode_both support.
310 * inftarg.c (child_clone_and_follow_inferior): Remove.
311 (child_post_follow_inferior_by_clone): Remove.
312 (init_child_ops): Don't set to_clone_and_follow_inferior
313 or to_post_follow_inferior_by_clone.
314 * target.c (default_clone_and_follow_inferior): Remove.
315 (cleanup_target): Don't set to_clone_and_follow_inferior
316 or to_post_follow_inferior_by_clone.
317 (find_default_clone_and_follow_inferior): Remove.
318 (init_dummy_target): Don't set to_clone_and_follow_inferior.
319 (debug_to_clone_and_follow_inferior): Remove.
320 (debug_to_post_follow_inferior_by_clone): Remove.
321 (setup_target_debug): Don't set to_clone_and_follow_inferior
322 or to_post_follow_inferior_by_clone.
323 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
324 and to_post_follow_inferior_by_clone.
325 (child_clone_and_follow_inferior): Remove prototype.
326 (child_post_follow_inferior_by_clone): Remove prototype.
327 (target_clone_and_follow_inferior): Remove macro.
328 (target_post_follow_inferior_by_clone): Remove macro.
329 (find_default_clone_and_follow_inferior): Remove prototype.
330
331 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
332
333 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
334 inferior_has_vforked, and inferior_has_execd instead of
335 target_has_forked, target_has_vforked, and target_has_execd.
336 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
337 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
338 (CHILD_WAIT): Define.
339 (child_wait): Add prototype.
340 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
341 Add prototype.
342 (hpux_has_vforked): Likewise, from child_has_vforked.
343 (hpux_has_execd): Likewise, from child_has_execd.
344 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
345 (not_same_real_pid, child_wait): New, copied from inftarg.c.
346 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
347 and hpux_has_syscall_event instead of the target hooks.
348 * infrun.c (inferior_has_forked, inferior_has_vforked)
349 (inferior_has_execd): New functions.
350 * inftarg.c (not_same_real_pid): Remove.
351 (child_wait): Remove references to not_same_real_pid,
352 target_has_forked, target_has_vforked, target_has_execd,
353 and target_has_syscall_event.
354 (child_has_forked, child_has_vforked, child_has_execd)
355 (child_has_syscall_event): Remove.
356 (init_child_ops): Remove references to child_has_forked,
357 child_has_vforked, child_has_execd, and child_has_syscall_event.
358 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
359 (hpux_has_vforked): Likewise, from child_has_vforked.
360 (hpux_has_execd): Likewise, from child_has_execd.
361 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
362 * target.c (cleanup_target): Remove references to
363 to_has_forked, to_has_vforked, to_has_execd, and
364 to_has_syscall_event.
365 (update_current_target): Likewise.
366 (setup_target_debug): Likewise.
367 (debug_to_has_forked): Remove.
368 (debug_to_has_vforked): Remove.
369 (debug_to_has_execd): Remove.
370 (debug_to_has_syscall_event): Remove.
371 * target.h (struct target_ops): Remove to_has_forked.
372 to_has_vforked, to_has_execd, and to_has_syscall_event.
373 (child_has_forked, child_has_vforked, child_has_execd)
374 (child_has_syscall_event): Remove prototypes.
375 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
376 prototypes.
377 (target_has_forked, target_has_vforked, target_has_execd)
378 (target_has_syscall_event): Remove macros.
379
380 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
381
382 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
383 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
384 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
385 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
386 * target.c (cleanup_target): Remove reference to
387 to_can_follow_vfork_prior_to_exec.
388 (update_current_target): Likewise.
389 (debug_to_can_follow_vfork_prior_to_exec): Remove.
390 (setup_target_debug): Remove reference to
391 to_can_follow_vfork_prior_to_exec.
392 * target.h (struct target_ops): Remove
393 to_can_follow_vfork_prior_to_exec.
394 (child_can_follow_vfork_prior_to_exec): Remove prototype.
395 (target_can_follow_vfork_prior_to_exec): Remove definition.
396 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
397 define.
398 * infrun.c (follow_vfork_when_exec): Remove.
399 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
400 (follow_exec): Likewise.
401 (handle_inferior_event): Likewise.
402 (keep_going): Likewise.
403
404 2002-11-15 Andrew Cagney <cagney@redhat.com>
405
406 * frame.c (generic_unwind_get_saved_register): Make static.
407 * frame.h (generic_unwind_get_saved_register): Delete declaration.
408 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
409 defaults to generic_unwind_get_saved_register.
410 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
411 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
412 * frv-tdep.c (frv_gdbarch_init): Ditto.
413 * i386-tdep.c (i386_gdbarch_init): Ditto.
414 * s390-tdep.c (s390_gdbarch_init): Ditto.
415 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
416 * v850-tdep.c (v850_gdbarch_init): Ditto.
417 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
418 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
419 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
420
421 2002-11-15 Andrew Cagney <cagney@redhat.com>
422
423 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
424 i386-tdep.c.
425
426 2002-11-15 Andrew Cagney <cagney@redhat.com>
427
428 * frame.h (sigtramp_saved_pc): Delete declaration.
429 * blockframe.c (sigtramp_saved_pc): Delete function.
430 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
431 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
432 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
433 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
434
435 2002-11-15 Andrew Cagney <ac131313@redhat.com>
436
437 * frame.c (frame_pc_unwind): New function.
438 (frame_saved_regs_pc_unwind): New function.
439 (frame_register_unwind): Pass unwind_cache instead of
440 register_unwind_cache.
441 (set_unwind_by_pc): Add unwind_pc parameter, set.
442 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
443 (get_prev_frame): Ditto.
444 * frame.h (frame_pc_unwind_ftype): Declare.
445 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
446 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
447 (frame_pc_unwind): Declare.
448 * dummy-frame.c (dummy_frame_pc_unwind): New function.
449 (struct dummy_frame): Add comment mentioning that values are for
450 previous frame.
451 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
452 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
453 (generic_file_frame_chain_valid): Ditto.
454 * stack.c (frame_info): Ditto.
455
456 2002-11-15 David Carlton <carlton@math.stanford.edu>
457
458 * linespec.c (locate_first_half): New function.
459 (decode_line_1): Move code into locate_first_half.
460
461 2002-11-15 Andrew Cagney <ac131313@redhat.com>
462
463 * complaints.h: Add comment explaining how to eliminate a
464 deprecated_complain call.
465 * complaints.h: Fix spelling errors.
466
467 2002-11-15 David Carlton <carlton@math.stanford.edu>
468
469 * printcmd.c: Remove #include "disasm.h".
470
471 2002-11-14 Andrew Cagney <ac131313@redhat.com>
472
473 * frame.h: Move the most relevant interface functions to the start
474 of the file.
475
476 2002-11-14 Andrew Cagney <ac131313@redhat.com>
477
478 * regcache.h (deprecated_registers): Rename registers.
479 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
480 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
481 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
482 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
483 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
484 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
485 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
486 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
487 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
488 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
489 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
490 * v850ice.c: Update.
491
492 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
493
494 * utils.c (gdb_realpath): Add comment mentioning realpath with a
495 NULL buffer.
496
497 2002-11-13 Andrew Cagney <cagney@redhat.com>
498
499 * regcache.h (deprecated_read_register_bytes): Rename
500 read_register_bytes.
501 (deprecated_write_register_bytes): Rename write_register_bytes.
502 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
503 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
504 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
505 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
506 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
507 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
508 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
509 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
510 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
511 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
512 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
513 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
514 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
515 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
516
517 2002-11-13 Jim Blandy <jimb@redhat.com>
518
519 * findvar.c (read_var_value): Doc fix.
520
521 2002-11-13 Andrew Cagney <cagney@redhat.com>
522
523 * regcache.c (struct regcache): Replace passthough_p with
524 readonly_p.
525 (regcache_xmalloc): Initialize readonly_p.
526 (build_regcache): Initialize readonly_p.
527 (regcache_save): New function.
528 (regcache_restore): New function.
529 (regcache_cpy): Re-implement using regcache_save and
530 regcache_restore.
531 (regcache_raw_read): Update.
532 (regcache_cooked_read): When a read-only cache, checked for cached
533 pseudo register values.
534 (regcache_raw_write): Assert that the cache is not read-only.
535 Remove code handling a non-passthrough cache.
536 * regcache.h (regcache_save): Declare.
537 (regcache_restore): Declare.
538
539 2002-11-13 Andrew Cagney <cagney@redhat.com>
540
541 * regcache.c (struct regcache_descr): Add fields
542 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
543 (init_legacy_regcache_descr): Compute the size of a cooked
544 register cache and then assign that to sizeof_raw_registers. Set
545 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
546 (init_legacy_regcache_descr): Ditto.
547
548 2002-11-13 Andrew Cagney <cagney@redhat.com>
549
550 * regcache.c (register_buffer): Move to near start of file, update
551 description.
552 (regcache_raw_read): Use.
553 (regcache_raw_write): Use.
554 (struct regcache): Rename raw_registers to registers and
555 raw_register_valid_p to register_valid_p.
556 (regcache_xmalloc): Update.
557 (regcache_xfree): Update.
558 (register_buffer): Update.
559 (regcache_cpy): Update.
560 (regcache_cpy_no_passthrough): Update.
561 (regcache_valid_p): Update.
562 (deprecated_grub_regcache_for_registers): Update.
563 (deprecated_grub_regcache_for_register_valid): Update.
564 (set_register_cached): Update.
565 (regcache_raw_write): Update.
566
567 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
568
569 * p-exp.y (name_not_typename): Use copy_name to
570 set current_type variable for fields of THIS.
571
572 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
573
574 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
575 * monitor.c (init_base_monitor_ops): Likewise.
576 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
577 * remote-array.c (init_array_ops): Likewise.
578 * remote-e7000.c (init_e7000_ops): Likewise.
579 * remote-es.c (init_es1800_ops): Likewise.
580 (init_es1800_child_ops): Likewise.
581 * remote-rdp.c (init_remote_rdp_ops): Likewise.
582 * remote-sim.c (init_gdbsim_ops): Likewise.
583 * remote-st.c (init_st2000_ops): Likewise.
584 * sol-thread.c (init_sol_core_ops): Likewise.
585 (init_sol_thread_ops): Likewise.
586 * v850ice.c (init_850ice_ops): Likewise.
587 * win32-nat.c (init_child_ops): Likewise.
588 * wince.c (init_child_ops): Likewise.
589
590 2002-11-12 Andrew Cagney <ac131313@redhat.com>
591
592 * utils.c (gdb_realpath): Make rp a constant pointer.
593
594 2002-11-12 Andrew Cagney <ac131313@redhat.com>
595
596 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
597 a constant buffer; cannonicalize_file_name(); realpath() with a
598 pathconf() defined buffer, xstrdup().
599
600 2002-11-12 Andrew Cagney <ac131313@redhat.com>
601
602 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
603 to hang2.C; hang3.c to hang3.C.
604
605 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
606
607 * findvar.c (read_var_value): Reenable TLS code.
608
609 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
610 Jim Blandy <jimb@redhat.com>
611
612 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
613 * target.c (update_current_target): Add
614 to_get_thread_local_address.
615 * target.h (to_get_thread_local_address): Export.
616 (target_get_thread_local_address): Define.
617 (target_get_thread_local_address_p): Define.
618 * thread-db.c: Include solib-svr4.h.
619 (td_thr_tls_get_addr_p): Define.
620 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
621 (thread_db_get_thread_local_address): New function.
622 (init_thread_db_ops): Initialize to_get_thread_local_address.
623 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
624 * configure: Regenerate.
625 * config.in: Regenerate.
626
627 2002-11-11 David Carlton <carlton@math.stanford.edu>
628
629 * linespec.c (set_flags): New function.
630 (decode_line_1): Move code into set_flags.
631
632 2002-11-11 David Carlton <carlton@math.stanford.edu>
633
634 * linespec.c (decode_line_1): Move chunks of code to separate
635 functions.
636 (initialize_defaults): New function.
637 (decode_indirect): New function.
638
639 2002-11-11 Andrew Cagney <ac131313@redhat.com>
640
641 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
642 instead of void_code_ptr.
643 (sigtramp_saved_pc): Ditto.
644
645 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
646 i386_fp_regnum_p.
647
648 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
649
650 * gdbtypes.h (struct main_type): Move artificial flag out of
651 loc. New member of ``struct field'' named static_kind. Reduce
652 overloaded meaning of bitsize.
653 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
654 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
655 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
656
657 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
658 new fields.
659 (template_to_fixed_record_type, template_to_static_fixed_type)
660 (to_record_with_fixed_variant_part): Likewise.
661 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
662 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
663 * dwarfread.c (struct_type, enum_type): Likewise.
664 * hpread.c (hpread_read_enum_type)
665 (hpread_read_function_type, hpread_read_doc_function_type)
666 (hpread_read_struct_type): Likewise.
667 * mdebugread.c (parse_symbol): Likewise.
668
669 2002-11-10 Andrew Cagney <ac131313@redhat.com>
670
671 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
672 * stack.c (print_frame_info_base): Update.
673 (print_frame_info_base, frame_info): Update.
674 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
675 (sparc_frame_saved_pc): Update.
676 * ada-lang.c (find_printable_frame): Update.
677 * breakpoint.c (deprecated_frame_in_dummy): Update.
678
679 2002-11-09 Mark Kettenis <kettenis@gnu.org>
680
681 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
682 defined.
683 (regmap): Extend to cover all registers.
684 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
685 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
686 definitions.
687 (fetch_register, sore_register): Simplify.
688 (old_fetch_inferior_registers, old_store_inferior_registers):
689 Remove functions.
690 (cannot_fetch_register, cannot_store_register): Change
691 implementation to use regmap array to decide which registers
692 cannot be fetched/stored. This removes $orig_eax from the
693 registers that cannot be fetched/stored.
694 (fetch_inferior_registers): Call fetch_register directly instead
695 of calling old_fetch_inferior_registers.
696 (store_inferior_registers): Call store_register directly instead
697 of calling old_store_inferior_registers.
698 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
699 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
700 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
701
702 2002-11-09 Klee Dienes <kdienes@apple.com>
703
704 * i387-tdep.c (i387_supply_register): When called with NULL as a
705 buffer, mark the register as not provided (to mirror the behavior
706 of supply_register).
707 (i387_supply_fxsave): Ditto.
708 (i387_supply_fsave): Ditto (inherits the behavior from
709 i387_supply_register).
710
711 2002-11-09 Klee Dienes <kdienes@apple.com>
712
713 * blockframe.c (sigtramp_saved_pc): Use
714 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
715 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
716 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
717
718 2002-11-09 Andrew Cagney <ac131313@redhat.com>
719
720 * frame.c (get_prev_frame): Test prev_p to identify a previously
721 unwound frame. Initialize prev_p.
722 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
723 comment.
724
725 2002-11-09 Andrew Cagney <ac131313@redhat.com>
726
727 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
728 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
729 more comments. Zap dead code.
730
731 2002-11-09 Mark Kettenis <kettenis@gnu.org>
732
733 * infcmd.c (print_vector_info, print_float_info): Move code that
734 checks whether the target has any registers and whether there is a
735 selected frame up, such that it is also used if a target provides
736 multi-arch definitions of these functions.
737
738 2002-11-08 Andrew Cagney <ac131313@redhat.com>
739
740 * Makefile.in (DESTDIR): Define.
741 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
742 prefix.
743
744 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
745 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
746
747 2002-11-08 Andrew Cagney <ac131313@redhat.com>
748
749 * i386-linux-tdep.c: Include "reggroups.h".
750 (i386_linux_register_reggroup_p): New function.
751 (i386_linux_init_abi): Set register_reggroup_p to
752 i386_linux_register_reggroup_p.
753 * i386-tdep.h (i386_register_reggroup_p): Declare.
754 * i386-tdep.c: Include "reggroups.h".
755 (i386_init_reggroups): New function.
756 (i386_add_reggroups): New function.
757 (i386_register_reggroup_p): New function.
758 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
759 (_initialize_i386_tdep): Call i386_init_reggroups.
760 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
761 specific reggroups.
762
763 2002-11-09 Mark Kettenis <kettenis@gnu.org>
764
765 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
766 request that's available in *BSD.
767
768 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
769
770 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
771 FDOFF_REGNUM.
772
773 2002-11-08 Andrew Cagney <ac131313@redhat.com>
774
775 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
776 * dummy-frame.c (find_dummy_frame): Rename
777 generic_find_dummy_frame, make static. Return the dummy frame
778 instead of the regcache.
779 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
780 (cached_find_dummy_frame): New function. Use find_dummy_frame.
781 (dummy_frame_register_unwind): Rename
782 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
783 * dummy-frame.h (dummy_frame_register_unwind): Rename
784 generic_call_dummy_register_unwind.
785
786 2002-11-08 Mark Kettenis <kettenis@gnu.org>
787
788 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
789 except the inclusion of "i386/tm-i386.h", to...
790 * config/i386/nm-i386v42mp.h: ...here.
791 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
792
793 2002-11-08 Andrew Cagney <ac131313@redhat.com>
794
795 * Makefile.in (frame.o): Update dependencies.
796 * blockframe.c (current_frame, frame_obstack_alloc)
797 (frame_saved_regs_zalloc, get_current_frame)
798 (set_current_frame, create_new_frame)
799 (set_unwind_by_pc, get_next_frame)
800 (flush_cached_frames, reinit_frame_cache)
801 (frame_saved_regs_register_unwind)
802 (deprecated_generic_get_saved_register)
803 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
804 (_initialize_blockframe): Move frame code from here...
805 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
806 "annotate.h" and "dummy-frame.h".
807 (_initialize_frame): New function.
808
809 2002-11-08 Jim Blandy <jimb@redhat.com>
810
811 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
812 when we finish a function a context.
813 * buildsym.h (outermost_context_p): New macro.
814 (Bug analyzed by David Edelsohn.)
815
816 2002-11-08 Andrew Cagney <ac131313@redhat.com>
817
818 * blockframe.c: Include "dummy-frame.h".
819 (struct dummy_frame, dummy_frame_stack)
820 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
821 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
822 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
823 (generic_save_call_dummy_addr, generic_pop_current_frame)
824 (generic_pop_dummy_frame, generic_fix_call_dummy)
825 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
826 dummy frame code from here...
827 * dummy-frame.c: ...to here. New file.
828 * dummy-frame.h: New file.
829 (generic_call_dummy_register_unwind): Declare.
830 (generic_find_dummy_frame): Declare.
831 * Makefile.in (SFILES): Add dummy-frame.c.
832 (dummy-frame.o): Specify dependencies.
833 (dummy_frame_h): Define.
834 (COMMON_OBS): Add dummy-frame.o.
835 (blockframe.o): Update dependencies.
836
837 2002-11-08 Jim Blandy <jimb@redhat.com>
838
839 * dwarf2read.c (read_func_scope): Restore local_symbols and
840 param_symbols after we finish the function context. (Based on a
841 patch from David Edelsohn.)
842
843 2002-11-08 David Carlton <carlton@math.stanford.edu>
844
845 * linespec.c (symbol_found): New function.
846 (minsym_found): New function.
847 (decode_line_1): Separate out some code into separate functions.
848
849 2002-11-08 Joel Brobecker <brobecker@gnat.com>
850
851 * i386-tdep.c (i386_frameless_signal_p): Make non static for
852 the benefit of the interix target.
853 * i386-tdep.h (i386_frameless_signal_p): Declare.
854
855 2002-11-08 Andrew Cagney <ac131313@redhat.com>
856
857 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
858 declaration that snuck in from change below.
859
860 2002-11-06 Andrew Cagney <cagney@redhat.com>
861
862 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
863 all callers.
864 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
865 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
866 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
867 (i386_mxcsr_regnum_p): new function. Use instead of
868 MXCSR_REGNUM_P.
869 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
870 (i386_sse_regnum_p): Declare.
871 (i386_mxcsr_regnum_p): Declare.
872 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
873 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
874 (IS_FP_REGNUM): Update definition.
875 (IS_FPU_CTRL_REGNUM): Update definition..
876 (IS_SSE_REGNUM): Update definition..
877 * i386v-nat.c (register_u_addr): Update.
878 * go32-nat.c (fetch_register): Update.
879 (store_register): Update.
880
881 2002-11-07 Joel Brobecker <brobecker@gnat.com>
882
883 Preparation work to convert the hppa targets to multiarch partial.
884
885 * hppa-tdep.c: Add new functions replacing macro bodies from
886 config/pa/tm-hppa.h. These function will be used to initialize
887 the gdbarch structure. Import some comments from tm-hppa.h,
888 and place them where appropriate, to avoid loosing them when
889 we cleanup this file.
890 (hppa_reg_struct_has_addr): New function.
891 (hppa_inner_than): New function.
892 (hppa_stack_align): New function.
893 (hppa_pc_requires_run_before_use): New function.
894 (hppa_instruction_nullified): New function.
895 (hppa_register_byte): New function.
896 (hppa_register_virtual_type): New function.
897 (hppa_store_struct_return): New function.
898 (hppa_cannot_store_register): New function.
899 (hppa_frame_args_address): New function.
900 (hppa_frame_locals_address): New function.
901 (hppa_smash_text_address): New function.
902 (hppa_coerce_float_to_double): New function. Requires the inclusion
903 of "language.h".
904
905 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
906
907 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
908 gdbarch-eligible macro to a call to the new associated function
909 created in hppa-tdep.c.
910 (INNER_THAN): Likewise.
911 (STACK_ALIGN): Likewise.
912 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
913 (INSTRUCTION_NULLIFIED): Likewise.
914 (REGISTER_BYTE): Likewise.
915 (REGISTER_VIRTUAL_TYPE): Likewise.
916 (STORE_STRUCT_RETURN): Likewise.
917 (CANNOT_STORE_REGISTER): Likewise.
918 (FRAME_ARGS_ADDRESS): Likewise.
919 (FRAME_LOCALS_ADDRESS): Likewise.
920 (SMASH_TEXT_ADDRESS): Likewise.
921 (COERCE_FLOAT_TO_DOUBLE): Likewise.
922 (ABOUT_TO_RETURN): Delete, as no longer used.
923
924 2002-11-07 Fernando Nasser <fnasser@redhat.com>
925
926 * printcmd.c (disassemble_command): Remove obsolete function.
927 (_initialize_printcmd): Do not create disassemble command here.
928 * cli/cli-cmds.c (disassemble_command): New function. Implements
929 disassemble command.
930 (init_cli_cmds): Create disassemble command here instead.
931
932 2002-11-07 Andrew Cagney <ac131313@redhat.com>
933
934 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
935
936 2002-11-07 Andrew Cagney <ac131313@redhat.com>
937
938 * regcache.h (regcache_cooked_read_using_offset_hack)
939 (regcache_cooked_write_using_offset_hack): Delete declarations.
940 (register_changed): Delete declaration.
941 * regcache.c (regcache_cooked_read_using_offset_hack)
942 (regcache_cooked_write_using_offset_hack): Delete functions.
943 (cooked_xfer_using_offset_hack): Delete function.
944 (register_changed): Delete function.
945
946 2002-11-07 Jim Blandy <jimb@redhat.com>
947
948 * macroscope.c: #include "complaints.h".
949 (sal_macro_scope): Cope with filenames that appear in the symtabs,
950 but not in the macro table.
951 * Makefile.in (macroscope.o): Record dependency.
952
953 2002-11-07 Joel Brobecker <brobecker@gnat.com>
954
955 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
956
957 2002-11-07 Andrew Cagney <ac131313@redhat.com>
958
959 * regcache.c (deprecated_registers_fetched): Update.
960 * regcache.h (deprecated_registers_fetched): Rename
961 registers_fetched.
962 * remote-vxsparc.c (vx_read_register): Update.
963 * remote-vxmips.c (vx_read_register): Update.
964 * remote-vx68.c (vx_read_register): Update.
965 * irix5-nat.c (fetch_core_registers): Update.
966 * mipsm3-nat.c (fetch_inferior_registers): Update.
967 * sun3-nat.c (fetch_inferior_registers): Update.
968 * symm-nat.c (fetch_inferior_registers): Update.
969 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
970 (fetch_core_registers): Update.
971 (fetch_kcore_registers): Update.
972 * mips-nat.c (fetch_inferior_registers): Update.
973 * corelow.c (get_core_registers): Update.
974 * a68v-nat.c (fetch_inferior_registers): Update.
975
976 2002-11-06 Joel Brobecker <brobecker@gnat.com>
977
978 Put in place the framework necessary for multiarching the hppa targets.
979 * hppa-tdep.c (hppa_gdbarch_init): New function.
980 (hppa_dump_tdep): New function.
981 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
982 tdep structure dumper.
983 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
984 until the multi-arching conversion has partially been completed.
985
986 2002-11-06 Andrew Cagney <ac131313@redhat.com>
987
988 * valops.c (value_assign): Merge lval_register case into
989 lval_reg_frame_relative. Use frame_register and
990 regcache_cooked_write instead of get_saved_register and
991 write_register_bytes. After flushing the register cache, try to
992 re-select the selected frame.
993
994 2002-11-06 Andrew Cagney <ac131313@redhat.com>
995
996 * regcache.h (deprecated_register_valid): Rename register_valid.
997 * regcache.c: Update.
998 * ia64-aix-nat.c: Update.
999 * i386gnu-nat.c: Update.
1000 * alpha-nat.c: Update.
1001 * sparc-nat.c: Update.
1002 * lynx-nat.c: Update.
1003 * remote-mips.c: Update.
1004
1005 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1006
1007 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1008 to end of file, to be more consistent with the pratice followed
1009 by other targets.
1010
1011 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1012
1013 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1014 (print_float_info): Print registers in float_reggroup.
1015 (print_vector_info): Print registers in vector_reggroup.
1016 (default_print_registers_info): When all, print registers in
1017 all_reggroup. Otherwize, print registers in general_reggroup.
1018 (registers_info): Rewrite. Add support for register groups.
1019 Eliminate a goto.
1020
1021 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1022
1023 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1024 ages.
1025 (symtab_symbol_info): Remove eons old ifdeffed out code.
1026 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1027 command.
1028
1029 2002-11-06 Theodore A. Roth <troth@openavr.org>
1030
1031 * c-exp.y: Add missing semi-colons.
1032 * f-exp.y: Add missing semi-colons.
1033 * m2-exp.y: Add missing semi-colons.
1034 * p-exp.y: Add missing semi-colons.
1035 Add empty action to start rule to avoid a type clash error when
1036 building with bison >= 1.50.
1037
1038 2002-11-06 Jim Blandy <jimb@redhat.com>
1039
1040 * macrotab.h (struct macro_source_file): Doc fix.
1041
1042 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1043
1044 * varobj.c (child_exists, cplus_number_of_children): Change
1045 STREQ macro references to strcmp.
1046 (cplus_name_of_child): Change code to handle the fact that
1047 fields are not necessarily contiguous with regards to their
1048 access control. This is a fix for PR gdb/792.
1049
1050 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1051
1052 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1053 * gdbarch.h, gdbarch.c: Regnerate.
1054 * frame.h (frame_register): Declare.
1055 * frame.c (frame_register): New function.
1056 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1057 GET_SAVED_REGISTER, otherwize call
1058 generic_unwind_get_saved_register.
1059 (frame_register_read): Use frame_register instead of
1060 get_saved_register.
1061
1062 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1063
1064 From Jim Ingham <jingham@apple.com>:
1065 * event-top.c (gdb_disable_readline): New function.
1066 (_initialize_event_loop): Move comment.
1067
1068 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1069
1070 * event-loop.c (start_event_loop): Add comment.
1071 Update copyright.
1072
1073 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1074
1075 * infcmd.c (default_print_registers_info): Do not call
1076 PRINT_REGISTER_HOOK.
1077
1078 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1079
1080 * sparc-tdep.c (sparc_print_register_hook): Make static.
1081 (sparc_print_registers_info): New function.
1082 (sparc_do_registers_info): New function.
1083 (sparclet_print_registers_info): New function.
1084 (sparclet_do_registers_info): New function.
1085 (do_sparc_print_registers_info): New function.
1086 (sparc_print_registers): New static function, clone of infcmd.c's
1087 default_print_registers_info.
1088 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1089 (sparclet_do_registers_info): Declare.
1090 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1091 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1092 Re-define.
1093 (sparc_do_registers_info): Declare.
1094 (PRINT_REGISTER_HOOK): Delete macro.
1095 (sparc_print_register_hook): Delete declaration.
1096
1097 2002-11-05 David Carlton <carlton@math.stanford.edu>
1098
1099 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1100 functions.
1101 (lookup_symbol_aux_local): New function.
1102 (lookup_symbol_aux_symtabs): New function.
1103 (lookup_symbol_aux_psymtabs): New function.
1104
1105 2002-11-05 David Carlton <carlton@math.stanford.edu>
1106
1107 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1108 previous values of 'objfile' and 'block'.
1109
1110 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1111
1112 * values.c (value_change_enclosing_type): Set
1113 enclosing_type field correctly also for the case where
1114 more memory needs to be allocated.
1115
1116 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1117
1118 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1119 of puts_filtered.
1120
1121 * i387-tdep.c (i387_print_float_info): Replace calls to
1122 register_read and deprecated_read_register_gen with calls to
1123 frame_register_read, and make the necessary adjustments to the
1124 surrounding code.
1125
1126 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1127
1128 * gdbarch.sh (register_reggroup_p): Allow default value.
1129 * gdbarch.h, gdbarch.c: Regenerate.
1130
1131 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1132
1133 * regcache.h: Add coment indicating replacements for deprecated
1134 functions.
1135
1136 2002-11-02 Andrew Cagney <cagney@redhat.com>
1137
1138 * reggroups.h, reggroups.c: New files.
1139 * regcache.c: Include "reggroups.h".
1140 (enum regcache_dump_what): Add `regcache_dump_groups'.
1141 (regcache_dump): Contract size of the "Type" column. When
1142 specified, dump the register's groups.
1143 (maintenance_print_register_groups): New function.
1144 (_initialize_regcache): Add command `maint print register-groups'.
1145 * Makefile.in (COMMON_OBS): Add reggroups.o
1146 (SFILES): Add reggroups.c.
1147 (reggroups_h): Define.
1148 (regcache.o, gdbarch.o): Update dependencies.
1149 (reggroups.o): Specify dependencies.
1150 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1151 Add opaque declaration for `struct reggroup' in generated .h file.
1152 Include "reggroups.h" in generated .c file.
1153 gdbarch.h, gdbarch.c: Re-generate.
1154
1155 2002-11-02 Andrew Cagney <cagney@redhat.com>
1156
1157 * regcache.h (deprecated_read_register_gen): Rename
1158 read_register_gen.
1159 (deprecated_write_register_gen): Rename write_register_gen.
1160 * i387-tdep.c: Update.
1161 * x86-64-linux-nat.c: Update
1162 * wince.c: Update.
1163 * thread-db.c: Update.
1164 * win32-nat.c: Update.
1165 * mips-tdep.c: Update.
1166 * d10v-tdep.c: Update.
1167 * cris-tdep.c: Update.
1168 * remote-sim.c: Update.
1169 * remote-rdi.c: Update.
1170 * remote-rdp.c: Update.
1171 * frame.c: Update.
1172 * target.c: Update.
1173 * blockframe.c: Update.
1174 * x86-64-tdep.c: Update.
1175 * xstormy16-tdep.c: Update.
1176 * sh-tdep.c: Update.
1177 * s390-tdep.c: Update.
1178 * rs6000-tdep.c: Update.
1179 * sparc-tdep.c: Update.
1180 * i386-tdep.c: Update.
1181 * dwarf2cfi.c: Update.
1182 * regcache.c: Update.
1183
1184 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1185
1186 New interix-specific files:
1187 * config/i386/nm-interix.h: New file.
1188 * config/i386/interix.mh: New file.
1189 * config/i386/interix.mt: New file.
1190 * i386-interix-nat.c: New file.
1191 * i386-interix-tdep.c: New file.
1192
1193 2002-11-01 Andrew Cagney <cagney@redhat.com>
1194
1195 * frame.h (deprecated_generic_get_saved_register): Rename
1196 generic_get_saved_register.
1197 * blockframe.c (deprecated_generic_get_saved_register): Update.
1198 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1199 (xstormy16_frame_saved_register): Update.
1200 * sh-tdep.c (sh_gdbarch_init): Update.
1201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1202 * ia64-tdep.c (ia64_get_saved_register): Update.
1203 * cris-tdep.c (cris_gdbarch_init): Update.
1204 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1205 * arm-tdep.c (arm_gdbarch_init): Update.
1206
1207 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1208
1209 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1210
1211 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1212
1213 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1214 trampolines in sigaction.
1215
1216 2002-10-31 Andrew Cagney <cagney@redhat.com>
1217
1218 * h8300-tdep.c: Include "gdb_assert.h".
1219 (h8300_print_register): Add gdbarch, file and frame parameters.
1220 Use frame_read_unsigned_register to read the register's value.
1221 Use fprintf_filtered to display output.
1222 (h8300_print_registers_info): Replace h8300_do_registers_info.
1223 (h8300_gdbarch_init): Set print_registers_info.
1224
1225 2002-10-31 Andrew Cagney <cagney@redhat.com>
1226
1227 * frame.c (frame_read_unsigned_register): New function.
1228 (frame_read_signed_register): New function.
1229 * frame.h (frame_read_unsigned_register): Declare.
1230 (frame_read_signed_register): Declare.
1231
1232 2002-10-31 Andrew Cagney <cagney@redhat.com>
1233
1234 * h8500-tdep.c (h8500_print_registers_info): New static function,
1235 clone of infcmd.c's default_print_registers_info.
1236 (h8500_do_registers_info): New funtion.
1237 (h8500_print_register_hook): Rename print_register_hook, make
1238 static.
1239
1240 * config/h8500/tm-h8500.h: Update copyright.
1241 (DEPRECATED_DO_REGISTERS_INFO): Define.
1242 (h8500_do_registers_info: Declare.
1243 (PRINT_REGISTER_HOOK): Delete macro.
1244 (print_register_hook): Delete function.
1245
1246 2002-10-31 Andrew Cagney <cagney@redhat.com>
1247
1248 * z8k-tdep.c (z8k_print_register_hook): Make static.
1249 (z8k_print_registers_info): New static function, clone of
1250 infcmd.c's default_print_registers_info.
1251 (z8k_do_registers_info): New function. Wrap
1252 z8k_print_registers_info.
1253 * config/z8k/tm-z8k.h: Update copyright.
1254 (PRINT_REGISTER_HOOK): Delete macro.
1255 (z8k_print_register_hook): Delete declaration.
1256 (DEPRECATED_DO_REGISTERS_INFO): Define.
1257 (z8k_do_registers_info): Declare.
1258
1259 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1260
1261 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1262 as this is already provided by value.h, and was actually causing
1263 a compilation error because of a conflict in parameter type
1264 declaration due to a missing const keyword.
1265 (low_text_segment_addres): Fix a compilation warning.
1266
1267 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1268
1269 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1270 registers without a name.
1271 (mips_linux_cannot_store_register): Don't store registers without
1272 a name.
1273
1274 2002-10-28 David Carlton <carlton@math.stanford.edu>
1275
1276 * symtab.c (find_addr_symbol): Delete. (It was already commented
1277 out.)
1278 * symtab.h: Delete prototype for find_addr_symbol.
1279
1280 2002-10-26 Andrew Cagney <cagney@redhat.com>
1281
1282 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1283 DO_REGISTERS_INFO.
1284 gdbarch.h, gdbarch.c: Re-generate.
1285 * infcmd.c (default_print_registers_info): Update reference.
1286 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1287 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1288 * sh-tdep.c (sh_gdbarch_init): Ditto.
1289 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1290 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1291
1292 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1293
1294 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1295 cfi_init_extra_frame_info.
1296 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1297 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1298
1299 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1300 target where necessary. Add more comments and remove the ones
1301 that don't provide any useful information.
1302
1303 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1304 deprecated_read_register_dummy with
1305 frame_unwind_unsigned_register.
1306
1307 * i386-tdep.c (i386_extract_struct_value_address): Use
1308 regcache_raw_read_unsigned instead of
1309 regcache_cooked_read_unsigned since we know that the register
1310 we're reading isn't a pseudo register. Rename variable 'val' into
1311 the more descriptive 'addr'.
1312
1313 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1314 (x86_64_push_return_address): Add comment.
1315 (x86_64_pop_frame): Make static.
1316 (examine_argument): Clarify comment.
1317 (x86_64_skip_prologue): Make prolog_expact variable static.
1318
1319 * dwarf2cfi.c: Fix some formatting problems.
1320 (context_cpy, read_encoded_pointer): Clarify comments.
1321
1322 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1323 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1324 i386 target back into x86_64_gdbarch_init. Add some comments and
1325 remove meaningless ones.
1326
1327 2002-10-25 Andrew Cagney <cagney@redhat.com>
1328
1329 * complaints.h (struct deprecated_complaint): Rename `struct
1330 complaint'.
1331 * complaints.c (complain): Update.
1332 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1333 incorrect comment indicating that "symfile.h" was being included
1334 for the `struct complaint' definition.
1335 * remote-vx.c: Update.
1336 * objc-lang.c: Update.
1337 * xcoffread.c: Update.
1338 * hpread.c: Update.
1339 * mdebugread.c: Update.
1340 * stabsread.c: Update.
1341 * dwarf2read.c: Update.
1342 * dwarfread.c: Update.
1343 * elfread.c: Update.
1344 * coffread.c: Update.
1345 * stabsread.h: Update.
1346 * dbxread.c: Update.
1347 * buildsym.c: Update.
1348 * gdbtypes.c: Update.
1349 * macrotab.c: Update.
1350
1351 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1352
1353 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1354 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1355 (x86_64_init_abi): ...new function.
1356
1357 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1358 * i386v-nat.c: Include "i386-tdep.h".
1359
1360 2002-10-25 Andrew Cagney <cagney@redhat.com>
1361
1362 * gdbtypes.c (address_space_name_to_int): Update.
1363 (address_space_int_to_name): Update.
1364 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1365 multi-arch predicate.
1366 (address_class_name_to_type_flags): Ditto.
1367 * gdbarch.h, gdbarch.c: Re-generate.
1368
1369 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1370
1371 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1372
1373 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1374
1375 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1376
1377 * symtab.h (INIT_SAL): Delete macro.
1378 (init_sal): Export.
1379 * symtab.c (init_sal): New function.
1380
1381 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1382 to init_sal function call.
1383 (find_sal_from_funcs_and_line): Ditto.
1384 (all_sals_for_line): Ditto.
1385 * breakpoint.c (create_internal_breakpoint): Ditto.
1386 (create_fork_vfork_event_catchpoint): Ditto.
1387 (create_exec_event_catchpoint): Ditto.
1388 (parse_breakpoint_sals): Ditto.
1389 (watch_command_1): Ditto.
1390 (handle_gnu_4_16_catch_command): Ditto.
1391 (clear_command): Ditto.
1392 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1393 * infcmd.c (run_stack_dummy): Ditto.
1394 * infrun.c (process_event_stop_test): Ditto.
1395 (check_sigtramp2): Ditto.
1396 (step_over_function): Ditto.
1397 * linespec.c (decode_line_2): Ditto.
1398 (decode_line_1): Ditto.
1399 * source.c (line_info): Ditto.
1400 * symtab.c (find_pc_sect_line): Ditto.
1401
1402 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1403
1404 * dwarf2cfi.c (struct context)
1405 (struct context_reg): Moved to dwarf2cfi.h
1406 (context_alloc, frame_state_alloc, context_cpy):
1407 Made extern instead of static, removed prototypes.
1408 * dwarf2cfi.h (struct context)
1409 (struct context_reg): New, moved from dwarf2cfi.c
1410 (context_alloc, frame_state_alloc, context_cpy):
1411 New prototypes.
1412 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1413 Changed from static to extern.
1414 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1415 (LINUX_SIGCONTEXT_FP_OFFSET)
1416 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1417 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1418 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1419 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1420 set_gdbarch_*() calls now use x86-64 specific functions
1421 instead of DWARF2 CFI ones.
1422 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1423 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1424 (x86_64_init_extra_frame_info): New prototypes.
1425
1426 2002-10-23 David Carlton <carlton@math.stanford.edu>
1427
1428 * linespec.c: #include "parser-defs.h".
1429 Delete prototype for find_template_name_end.
1430 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1431
1432 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1433
1434 * NEWS: add recent mi fixes.
1435 * varobj.c (struct varobj): Add new "updated" flag.
1436 (new_variable): Default "updated" flag to 0.
1437 (varobj_set_value): Set "updated" flag to 1 if value
1438 changes.
1439 (varobj_update): Check varobj "updated" flag before
1440 comparing old and refreshed values. Fix for
1441 PR gdb/702.
1442
1443 2002-10-23 David Carlton <carlton@math.stanford.edu>
1444
1445 * parse.c (parse_exp_1): Use BLOCK_START.
1446 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1447 SYMBOL_BLOCK_VALUE.
1448 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1449
1450 2002-10-23 David Carlton <carlton@math.stanford.edu>
1451
1452 * symtab.c: Delete cplusplus_hint.
1453 Delete prototype for find_template_name_end.
1454
1455 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1456
1457 * symtab.h: Update comment.
1458
1459 2002-10-23 Michael Snyder <msnyder@redhat.com>
1460
1461 * printcmd.c (address_info): Restore quotes in output.
1462 * valops.c (value_of_local): Restore quotes in error message.
1463
1464 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1465
1466 * symtab.c (symbol_demangled_name): New function.
1467 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1468 turning most of it into a function.
1469 (symbol_demangled_name): Export.
1470
1471 2002-10-23 Michael Snyder <msnyder@redhat.com>
1472
1473 * valops.c (value_of_local): Restore quotes in error message.
1474
1475 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1476
1477 * symtab.c (symbol_init_language_specific): New function.
1478 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1479 turning most of it into a function.
1480 (symbol_init_language_specific): Export.
1481
1482 2002-10-23 David Carlton <carlton@math.stanford.edu>
1483
1484 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1485 (dwarf_attr_name): Ditto.
1486 (dwarf_type_encoding_name): Ditto.
1487 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1488 (process_die): Handle DW_TAG_namespace,
1489 DW_TAG_imported_declaration, DW_TAG_imported_module.
1490 (read_namespace): New function.
1491
1492 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1493
1494 * configure.in: Define NEW_PROC_API on Interix too.
1495 * configure: Regenerate.
1496
1497 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1498
1499 * configure: Regenerate using the proper version of autoconf.
1500
1501 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1502
1503 * findvar.c (read_var_value): Temporarily disable TLS code, until
1504 complete TLS support is added.
1505
1506 2002-10-21 Jim Blandy <jimb@redhat.com>
1507 Elena Zannoni <ezannoni@redhat.com>
1508
1509 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1510 for thread local storage locations.
1511 (struct symbol): Add objfile field.
1512 (SYMBOL_OBJFILE): Define.
1513 * dwarf2read.c (is_thread_local): New static variable.
1514 (new_symbol): If variable is in thread local fill in address class
1515 and objfile appropriately.
1516 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1517 stack operation.
1518 * printcmd.c (address_info): Print the information for thread
1519 local storage variable.
1520 * findvar.c (read_var_value): In case of thread local variable,
1521 defer to the target vector code to compute address.
1522
1523 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1524
1525 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1526 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1527
1528 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1529
1530 * symtab.h (address_class): Rename
1531 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1532 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1533 * printcmd.c (address_info): Ditto.
1534 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1535
1536 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1537
1538 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1539 DBREG_DRX macro to acces debug registers.
1540
1541 * Makefile.in (i386obsd-tdep.o): New target.
1542
1543 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1544 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1545
1546 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1547 * config/i386/obsd.mt: New file.
1548 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1549 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1550 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1551 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1552 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1553 * i386obsd-tdep.c: New file.
1554
1555 2002-10-19 Adam Fedor <fedor@gnu.org>
1556
1557 * objc-exp.y (name_not_typename): Fix invalid comment.
1558
1559 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1560
1561 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1562 to allocate partial syms and macro byte caches.
1563
1564 2002-10-18 David Carlton <carlton@math.stanford.edu>
1565
1566 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1567
1568 2002-10-18 Adam Fedor <fedor@gnu.org>
1569
1570 * stabsread.c (find_name_end): New function.
1571 (define_symbol): Use it.
1572
1573 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1574
1575 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1576 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1577 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1578 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1579
1580 2002-10-17 David Carlton <carlton@math.stanford.edu>
1581
1582 * symfile.h: Add opaque declaration for struct obstack.
1583 Declare obsavestring to take a const char *.
1584 * symfile.c (obsavestring): Make first argument a const char *.
1585
1586 2002-10-16 Adam Fedor <fedor@gnu.org>
1587
1588 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1589 names when matching breakpoints in current file.
1590
1591 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1592
1593 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1594 (read_tag_pointer_type): Add address class support.
1595 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1596 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1597 New methods.
1598 * gdbarch.h, gdbarch.c: Regenerate.
1599 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1600 (make_type_with_address_space, recursive_type_dump): Add address
1601 class support.
1602 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1603 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1604 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1605
1606 2002-10-16 Klee Dienes <kdienes@apple.com>
1607
1608 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1609 to get the last character of a char[] buffer, not
1610 name[sizeof(vptr_name)-1].
1611
1612 2002-10-14 Adam Fedor <fedor@gnu.org>
1613
1614 * symtab.h: New objc_specific struct.
1615 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1616 (SYMBOL_DEMANGLED_NAME): Likewise.
1617
1618 2002-10-14 Adam Fedor <fedor@gnu.org>
1619
1620 * symfile.c (init_filename_language_table): Add ObjC file extension.
1621
1622 2002-10-14 Adam Fedor <fedor@gnu.org>
1623
1624 * utils.c (puts_filtered_tabular): New function.
1625 (fprintf_symbol_filtered): Get ObjC demangled name.
1626 * defs.h (puts_filtered_tabular): Declared.
1627
1628 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1629
1630 * c-lang.h (c_type_print_varspec_prefix): Delete.
1631 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1632 ``need_post_space'' parameter. Adjust all callers.
1633
1634 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1635
1636 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1637 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1638 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1639 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1640
1641 2002-10-13 Adam Fedor <fedor@gnu.org>
1642
1643 * source.c (print_source_lines): Update comments.
1644
1645 2002-10-13 Adam Fedor <fedor@gnu.org>
1646
1647 * valops.c (value_of_local): New function.
1648 (value_of_this): Use it.
1649 * value.h (value_of_local): Declared.
1650
1651 2002-10-13 Adam Fedor <fedor@gnu.org>
1652
1653 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1654 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1655
1656 2002-10-12 Adam Fedor <fedor@gnu.org>
1657
1658 * language.c (binop_result_type): Add language_objc to case.
1659 (integral_type): Likewise.
1660 (character_type): Likewise.
1661 (string_type): Likewise.
1662 (boolean_type): Likewise.
1663 (structured_type): Likewise.
1664 (binop_type_check): Likewise.
1665
1666 2002-10-11 Adam Fedor <fedor@gnu.org>
1667
1668 * printcmd.c (address_info): Print 'self' for ObjC.
1669
1670 2002-10-11 Adam Fedor <fedor@gnu.org>
1671
1672 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1673 OP_SELF.
1674
1675 2002-10-11 Adam Fedor <fedor@gnu.org>
1676
1677 * language.h (CAST_IS_CONVERSION): Add language_objc.
1678
1679 2002-10-11 Adam Fedor <fedor@gnu.org>
1680
1681 * defs.h (enum language): Add language_objc.
1682
1683 2002-10-11 Klee Dienes <kdienes@apple.com>
1684
1685 * corefile.c (read_memory_typed_address): New function.
1686 * gdbcore.h (read_memory_typed_address): Add prototype.
1687 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1688 to read a value destined for a CORE_ADDR, not read_memory_integer.
1689 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1690 (f77_get_dynamic_lowerbound): Ditto.
1691
1692 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1693
1694 * utils.c (string_to_core_addr): After turning string into
1695 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1696 which will do necessary sign-extension, etc.
1697
1698 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1699
1700 * c-exp.y (THIS): Delete token and grammar rule.
1701 (yylex): Don't return THIS.
1702 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1703 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1704 * demangle.c (cplus_markers): Update comment. Put '$'
1705 first. Remove CPLUS_MARKER.
1706 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1707 * jv-exp.y (THIS): Delete token and grammar rule.
1708 (yylex): Don't return THIS.
1709 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1710 * objc-exp.y (THIS): Delete token and grammar rule.
1711 (yylex): Don't return THIS.
1712 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1713 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1714 (read_member_functions): Likewise for opname.
1715 (read_tilde_fields): Use is_cplus_marker.
1716
1717 * defs.h (CPLUS_MARKER): Don't define.
1718 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1719 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1720 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1721 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1722 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1723
1724 * config/i386/tm-i386v4.h: Delete file.
1725 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1726 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1727 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1728 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1729 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1730 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1731 * config/i386/i386v4.mt (TM_FILE): Likewise.
1732 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1733
1734 2002-10-10 Marko Mlinar <markom@opencores.org>
1735
1736 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1737 accidentially not commited 2002-10-09
1738 * gdbarch.h, gdbarch.c: Re-generate.
1739
1740 2002-10-09 Marko Mlinar <markom@opencores.org>
1741
1742 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1743 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1744 * gdbarch.h, gdbarch.c: Re-generate.
1745
1746 2002-10-08 Petr Sorfa <petrs@caldera.com>
1747
1748 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1749
1750 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1751 so we can work on more than one compilation unit at a time. This
1752 helps prepare GDB to handle inter-CU die references.
1753 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1754 the code to be defined before struct comp_unit_head.
1755 (comp_unit_head): Added new members - offset, cu_head,
1756 begin_die, next and dwarf2_abbrevs.
1757 (dwarf2_abbrevs): Removed single static var; now member of
1758 struct comp_unit_head.
1759 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1760 members.
1761 (psymtab_to_symtab_1): Changed to work with the new
1762 struct comp_unit_head.
1763 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1764 constructs the dwarf2_abbrevs[] inside the cu_header.
1765 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1766 dwarf2_abbrev table to clean up.
1767 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1768 handling of dwarf2_abbrevs inside the cu_header.
1769 (read_partial_die): Now supports the call to the new
1770 dwarf2_lookup_abbrev.
1771 (read_full_die): Now supports the call to the new
1772 dwarf2_lookup_abbrev.
1773
1774 2002-10-06 Christopher Faylor <cgf@redhat.com>
1775
1776 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1777 insure that shell variables, such as "transformed_name" are propagated
1778 to later shell statements in rule.
1779
1780 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1781
1782 * config/i386/nm-i386sco.h: Add protection against
1783 multiple-inclusion. Include "i386/nm-i386v.h".
1784 (REGISTER_U_ADDR): Remove define.
1785 (i386_register_u_addr): Remove prototype.
1786
1787 2002-10-04 Michael Snyder <msnyder@redhat.com>
1788
1789 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1790 before treating it as a single-step event.
1791
1792 2002-10-03 Adam Fedor <fedor@gnu.org>
1793
1794 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1795 (objc_demangle): Remove assignment in if statements, Replace
1796 free with xfree.
1797 (add_msglist): Likewise.
1798 (end_msglist): Likewise.
1799 (complare_selectors): Likewise.
1800 (selectors_info): Likewise.
1801 (compare_classes): Likewise.
1802 (classes_info): Likewise.
1803 (print_object_command): Likewise.
1804 (find_objc_msgcall_submethod): Replace PTR with void *.
1805 * objc-lang.h: Remove check for __STDC__.
1806
1807 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1808
1809 * ui-out.h (ui_out_field_fmt_int): New prototype.
1810 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1811 of field width and alignment.
1812 * stack.c (print_frame_info_base): When printing frame level, use
1813 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1814 PR gdb/192
1815
1816 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1817
1818 * MAINTAINERS: Add self to Write After Approval list.
1819
1820 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1821
1822 * infcmd.c (interrupt_target_command_wrapper): Delete.
1823 (interrupt_target_command): Make non static.
1824 (nofp_registers_info): Make static.
1825 * stack.c (return_command_wrapper): Delete.
1826 (return_command): Make non static.
1827
1828 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1829
1830 * event-top.c (gdb_setup_readline): New function. Code moved from
1831 _initialize_event_loop().
1832 (_initialize_event_loop): Call gdb_setup_readline().
1833
1834 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1835
1836 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1837 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1838 * gdbarch.h, gdbarch.c: Re-generate.
1839
1840 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1841
1842 Fix PR gdb/778
1843 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1844 before recursing.
1845 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1846 of fill_in_vptr_fieldno.
1847
1848 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1849
1850 * inferior.h (registers_info, stepi_command, nexti_command,
1851 continue_command, interrupt_target_command): Export from infcmd.c.
1852 * frame.h (args_info, selected_frame_level_changed_hook,
1853 return_command): Export from stack.c.
1854 * v850ice.c (stepi_command, nexti_command, continue_command): use
1855 prototypes from inferior.h.
1856 * tracepoint.c (registers_info, args_info, locals_info): Use
1857 prototypes from frame.h and inferior.h.
1858 * Makefile.in (mi-main.o): Add dependency on frame.h.
1859
1860 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1861
1862 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1863 value in register 3 adjusted by ppc_gp0_regnum.
1864
1865 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1866
1867 2002-10-02 Marko Mlinar <markom@opencores.org>
1868
1869 * MAINTAINERS: Add myself to the Write After Approval list.
1870
1871 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1872
1873 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1874 of the section for the N64 ABI, fixed.
1875
1876 * config/mips/tm-irix6.h: Include solib.h.
1877
1878 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1879
1880 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1881 GNU operators.
1882
1883 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1884
1885 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1886 and that "mi0" syntax has been removed.
1887
1888 2002-09-30 David Carlton <carlton@math.stanford.edu>
1889
1890 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1891 * ppc-sysv-tdep.c: #include "gdb_string.h".
1892 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1893 pacify GCC.
1894
1895 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1896
1897 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1898 "vrsave"'s register number.
1899
1900 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1901
1902 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1903 use frame_unwind_signed_register to obtain the PC.
1904 (mips_frame_chain): Handle a generic dummy frame.
1905 (mips_init_extra_frame_info): When a generic dummy frame, don't
1906 re-compute the frame base.
1907 (mips_pop_frame): Handle generic dummy frames.
1908 (mips_gdbarch_init): When generic dummy frames, set
1909 use_generic_dummy_frames, push_dummy_frame to
1910 generic_push_dummy_frame, pc_in_call_dummy to
1911 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1912 generic_save_dummy_frame_tos.
1913
1914 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1915
1916 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1917 against TOP when TOP was explictly set.
1918 (generic_push_dummy_frame): Set TOP to zero.
1919
1920 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1921
1922 * event-loop.c (start_event_loop): Rename variable 'result' to
1923 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1924
1925 2002-09-30 Keith Seitz <keiths@redhat.com>
1926
1927 * gdb-events.sh (selected_thread_changed): New event.
1928 * gdb-events.c: Regenerated.
1929 * gdb-events.h: Regenerated.
1930
1931 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1932
1933 * MAINTAINERS: Add self to Write After Approval list.
1934
1935 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1936
1937 * disasm.c: New file.
1938 * disasm.h: New file.
1939 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1940 (compare_lines): Ditto.
1941 (dump_insns): Ditto.
1942 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1943 argument.
1944 (do_assembly_only): Ditto.
1945 (do_disassembly): Renamed to gdb_disassembly and moved to
1946 disasm.c. Sdded uiout argument.
1947 * Makefile.in: Add new files. Reorder SFILES list. Update
1948 dependencies. Include libgdb.a later in the insight executable.
1949
1950 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1951
1952 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1953 bfd/elf64-alpha-fbsd.c.
1954
1955 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1956
1957 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1958 i386gnu-tdep.c.
1959
1960 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1961
1962 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1963 __FUNCTION__.
1964 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1965 function name.
1966 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1967 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1968 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1969 (S_msg_sig_post_reply): Ditto.
1970
1971 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1972
1973 * sh-tdep.c (sh_use_struct_convention): Use definition according
1974 to ABI.
1975 (sh_push_arguments): Store in register with correct endianess.
1976 (sh_default_store_return_value): Ditto.
1977 (sh_gdbarch_init): Set sizeof long double to 8.
1978
1979 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1980
1981 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1982 Fix some whitespace problems.
1983
1984 2002-09-27 David Carlton <carlton@math.stanford.edu>
1985
1986 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1987 (mcore-tdep.o): Ditto.
1988 (ns32k-tdep.o): Ditto.
1989 (ns32knbsd-tdep.o): Ditto.
1990 (sh3-rom.o): Ditto.
1991 (vax-tdep.o): Ditto.
1992 * cris-tdep.c: #include "gdb_string.h"
1993 * mcore-tdep.c: Ditto.
1994 * ns32k-tdep.c: Ditto.
1995 * ns32knbsd-tdep.c: Ditto.
1996 * sh3-rom.c: Ditto.
1997 * vax-tdep.c: Ditto.
1998
1999 2002-09-27 David Carlton <carlton@math.stanford.edu>
2000
2001 * config/djgpp/fnchange.lst: Add entries for
2002 gdb/testsuite/gdb.c++/m-static files.
2003
2004 2002-09-27 Jim Wilson <wilson@redhat.com>
2005
2006 * MAINTAINERS: Add myself to the Write After Approval list.
2007
2008 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2009
2010 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2011
2012
2013 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2014
2015 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2016 frame.
2017
2018 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2019
2020 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2021 (rs6000_struct_return_address): Delete variable.
2022 (rs6000_store_struct_return): Update.
2023 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2024 deprecated_extract_struct_value_address.
2025 (rs6000_frame_align): New function.
2026 (rs6000_gdbarch_init): Set frame_align.
2027
2028 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2029
2030 From Grace Sainsbury <graces@redhat.com>:
2031 * Makefile.in (gdbtk-main.o): New target.
2032 (gdb.o): New target.
2033 (main_h): Define.
2034 (main.o): Update dependencies.
2035 (gdb$(EXEEXT)): Add gdb.o.
2036 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2037 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2038 (SUBDIR_GDBTK_CLEAN): Set.
2039 (install-gdbtk): Install the insight binary.
2040 (uninstall-gdbtk): New target.
2041 (all-gdbtk, clean-gdbtk): New rule.
2042 * top.c (use_windows): Default to zero.
2043 * main.c: Include "main.h".
2044 (main): Delete.
2045 (struct captured_main_args): Delete.
2046 (gdb_main): New function.
2047 * main.h: New file.
2048 * gdb.c: New File.
2049
2050 2002-09-25 Andrew Cagney <cagney@redhat.com>
2051
2052 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2053 (frame_map_regnum_to_name): New function.
2054 (frame_map_name_to_regnum): New function.
2055 * frame.h (frame_map_name_to_regnum): Declare.
2056 (frame_map_regnum_to_name): Declare.
2057 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2058 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2059 * parse.c: Do not include "builtin-regs.h".
2060 (target_map_name_to_register): Delete function.
2061 (write_dollar_variable): Use frame_map_name_to_regnum.
2062 * parser-defs.h (target_map_name_to_register): Delete declaration.
2063 * expprint.c: Include "frame.h".
2064 (print_subexp): Use frame_map_regnum_to_name.
2065 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2066 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2067
2068 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2069
2070 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2071 wasn't saved, and the next innermost frame is a dummy, return the
2072 dummy frame's link register.
2073
2074 2002-09-24 Jim Blandy <jimb@redhat.com>
2075
2076 Fix from Paul Breed:
2077 * main.c (captured_main): Add a `break' after the case for 'b'.
2078
2079 2002-09-24 Keith Seitz <keiths@redhat.com>
2080
2081 * varobj.c (c_type_of_child): Use get_target_type instead
2082 of TYPE_TARGET_TYPE.
2083
2084 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2085
2086 * source.c (get_current_or_default_source_symtab_and_line): Remove
2087 function.
2088 (set_default_source_symtab_and_line): New function. Attempts to
2089 determine a source file to list lines from if one is not currently
2090 defined.
2091 (get_current_source_symtab_and_line): Initialize sal.pc and
2092 sal.end fields.
2093 (set_current_source_symtab_and_line): Mark argument as const.
2094 * source.h: Update declarations and comments.
2095 * linespec.c (decode_line_1): Replace call to removed routine above.
2096 * stack.c (print_frame_info_base): Ditto.
2097 * cli/cli-cmds.c (edit_command): Ditto.
2098 (list_command): Ditto.
2099
2100 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2101
2102 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2103 sal.pc and sal.end fields.
2104 (get_current_or_default_source_symtab_and_line): Ditto.
2105 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2106 so we do not cause a new source symtab to be searched for (reverting an
2107 unintentional change from the 2002-09-20 patch).
2108 * scm-lang.c (scm_unpac): Ditto.
2109
2110 2002-09-21 Andrew Cagney <cagney@redhat.com>
2111
2112 * complaints.c (symfile_explanations): Remove new-line from
2113 ``isolated_message''.
2114 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2115 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2116
2117 2002-09-20 Nick Clifton <nickc@redhat.com>
2118
2119 * NEWS: Announce that V850EA ISA is no longer supported.
2120 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2121
2122 2002-09-20 David Carlton <carlton@math.stanford.edu>
2123
2124 * Makefile.in (c-lang.o): Correct dependencies.
2125 (utils.o): Gather dependencies.
2126 (charset.o): Move.
2127 * c-lang.c: #include "gdb_string.h"
2128
2129 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2130
2131 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2132 * cli/cli-cmds.c (list_command): New function. Implements the new
2133 cli edit command.
2134 (_init_cli_cmds): Add new command definition.
2135 * gdb.1: Document edit command.
2136 * doc/gdb.texinfo: Document edit command.
2137
2138 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2139
2140 * source.c: Make global variables current_source_symtab and
2141 current_source_line static.
2142 (list_command): Moved to cli/cli-cmds.c.
2143 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2144 (get_first_line_listed): New accessor function.
2145 (get_lines_to_list): New accessor function.
2146 (get_current_source_symtab_and_line): New function. Retrieves the
2147 position in the source code that we consider current.
2148 (get_current_or_default_source_symtab_and_line): New function.
2149 Like the above but attempts to determine a default position if one
2150 is not currently defined.
2151 (set_current_source_symtab_and_line): New function. Sets the source
2152 code position considered current and returns the previously set one.
2153 (clear_current_source_symtab_and_line): Reset stored information about
2154 a current source line.
2155 (_initialize_source): Remove registration for the "list" command and
2156 its alias.
2157 * source.h: Add declarations for the new functions above.
2158 * symtab.h: Remove declarations for the global variables mentioned
2159 above.
2160 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2161 obtain current source line.
2162 * linespec.c (decode_line_1): Ditto.
2163 * macroscope.c (default_macro_scope): Ditto.
2164 * scm-lang.c (scm_unpac): Ditto.
2165 * stack.c (print_frame_info_base): Ditto.
2166 * symfile.c (clear_symtab_users): Ditto.
2167 * symtab.c (decode_line_spec): Ditto.
2168 * cli/cli-cmds.c (list_command): Moved here from source.c.
2169 (ambiguous_line_spec): Moved here from source.c.
2170 (_init_cli_cmds): Add definition for "list" and its alias.
2171 * Makefile.in: Update dependencies.
2172
2173 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2174
2175 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2176 with what gcc thinks is correct.
2177
2178 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2179
2180 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2181 multiple register push instruction.
2182
2183 2002-09-19 Jim Blandy <jimb@redhat.com>
2184
2185 Add support for distinct host and target character sets.
2186 * charset.c, charset.h: New files.
2187 * c-exp.y: #include "charset.h".
2188 (yylex): Convert character and string literals to the target
2189 character set, before returning them as the semantic value of the
2190 token.
2191 * c-lang.c: #include "charset.h".
2192 (c_emit_char): Use charset-specific methods to recognize
2193 characters with backslash escape forms, to decide which characters
2194 to print literally and which to print using numeric escape
2195 sequences, and to convert target characters to host characters
2196 before printing.
2197 * utils.c: #include "charset.h".
2198 (no_control_char_error): New function.
2199 (parse_escape): Use charset-specific methods to recognize
2200 backslash escapes, parse `control character' notation, and convert
2201 characters from the host character set to the target character set.
2202 * configure.in: Set the default host character set.
2203 Check where to find iconv, and what its argument types might be.
2204 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2205 * Makefile.in (SFILES): List charset.c.
2206 (COMMON_OBS): List charset.o.
2207 (charset.o): New rule.
2208 (charset_h): New header dependency variable.
2209 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2210 (LIBICONV): New variable, set by configure.
2211 (CLIBS): Include $(LIBICONV) here.
2212 * aclocal.m4, config.in, configure: Regenerated.
2213
2214 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2215
2216 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2217 bison 1.35 warning.
2218
2219 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2220
2221 * gdb_mbuild.sh: New file.
2222
2223 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2224
2225 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2226
2227 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2228
2229 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2230 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2231 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2232 valops.c, value.h: Revert previous change.
2233
2234 2002-09-18 Michael Snyder <msnyder@redhat.com>
2235
2236 Preliminary support for Objective-C:
2237 * defs.h (language_objc): New enum value.
2238 (puts_filtered_tabular): Declaration only, exported from utils.c.
2239 (skip_quoted): Delete, declared in completer.h.
2240 * c-exp.y: Include completer.h.
2241 * p-exp.y: Ditto.
2242 * jv-exp.y: Ditto.
2243 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2244 New operator enum values.
2245 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2246 * language.c (binop_result_type): Handle language_objc case.
2247 (integral_type, character_type, string_type, boolean_type,
2248 structured_type, binop_type_check): Ditto.
2249 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2250 (struct objc_specific): Add to general_symbol_info.
2251 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2252 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2253 * parser-defs.h (struct objc_class_str): New struct type.
2254 (start_msglist, end_msglist, add_msglist): Declaration only,
2255 exported from objc-lang.c.
2256 * value.h (value_of_local, value_nsstring,
2257 call_function_by_hand_expecting_type): Exported from valops.c.
2258 * valops.c (find_function_addr): Export.
2259 (call_function_by_hand_expecting_type): New function.
2260 (value_of_local): New function.
2261 * symfile.c (init_filename_language_table): Add ".m" extension
2262 for Objective-C.
2263 * utils.c (puts_filtered_tabular): New function.
2264 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2265 (set/show demangle): Extend help-string to refer to ObjC.
2266 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2267 * stabsread.c (symbol_reference_defined): Objective-C symbols
2268 may contain colons: make allowances when scanning stabs strings
2269 for colons.
2270 (objc_find_colon): New function.
2271 * printcmd.c (address_info): If language == objc then print
2272 "self" instead of "this".
2273 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2274 OP_NSSTRING, and OP_SELF.
2275 (prefixify_subexp): Ditto.
2276 * source.c (print_source_lines): Mention objc in comment.
2277 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2278 method names.
2279
2280 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2281
2282 * complaints.h: Update copyright.
2283 (struct complaints): Declare.
2284 (struct complaint): Make `message' constant.
2285 (internal_complaint): Declare.
2286 (complaint): Declare.
2287 (complaint_root): Delete declaration.
2288 (symfile_complaints): Delete declaration.
2289 (struct complaints): Add opaque declaration.
2290 (clear_complaints): Add a complaints parameter.
2291 * complaints.c: Update copyright.
2292 (enum complaint_series): Define.
2293 (complaint_root): Delete.
2294 (struct complaints): Define.
2295 (complaint_sentinel, symfile_complaint_book): New variables.
2296 (symfile_explanations, symfile_complaints): New variables.
2297 New variables.
2298 (get_complaints): New function.
2299 (vcomplaint): New function.
2300 (complaint): New function.
2301 (internal_complaint): New function.
2302 (complain): Call vcomplain with symfile_complaint.
2303 (clear_complaints): Rewrite.
2304 (_initialize_complaints): Use add_setshow_command.
2305 * Makefile.in (complaints.o): Update dependencies.
2306 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2307 to call to clear_complaints.
2308 (new_symfile_objfile, reread_symbols): Ditto.
2309 (oldsyms_complaint): Delete.
2310 (empty_symtab_complaint, unknown_option_complaint): Delete.
2311 (free_named_symtabs): Use complaint instead of complain.
2312
2313 2002-09-18 Michael Snyder <msnyder@redhat.com>
2314
2315 Contributed by Apple Computer, Inc. Merged with current sources
2316 by Adam Fedor <fedor@doc.com> [cagney].
2317
2318 * objc-lang.c: First clean-up round: comments, indentation.
2319 * objc-lang.h: Ditto.
2320 * objc-lang.y: Ditto.
2321
2322 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2323
2324 * maint.c (maintenance_internal_error): Print the parameter as the
2325 error message.
2326 (maintenance_internal_warning): New function.
2327 (_initialize_maint_cmds): Add command `maint internal-warning'.
2328
2329 * defs.h (internal_warning, internal_vwarning): Declare.
2330 * utils.c (struct internal_problem): Define.
2331 (internal_vproblem): New function.
2332 (internal_warning): New function.
2333 (internal_vwarning): New function.
2334 (internal_warning_problem, internal_error_problem): New variables.
2335 (internal_verror): Just call internal_vproblem.
2336
2337 2002-09-18 Michael Snyder <msnyder@redhat.com>
2338
2339 * objc-lang.c: New file, support for Objective-C.
2340 Preliminary check-in, not yet integrated into gdb.
2341 * objc-lang.h: New file.
2342 * objc-exp.y: New file.
2343
2344 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2345
2346 * infrun.c (signal_stop_update): Convert definition to ISO C.
2347 (signal_print_update): Ditto.
2348 (signal_pass_update): Ditto.
2349 * inflow.c (terminal_save_ours): Ditto.
2350
2351 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2352 comments.
2353
2354 * config/djgpp/fnchange.lst: Handle name clashes between
2355 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2356 bfd/coff-tic80.c.
2357
2358 * i386-linux-tdep.h: Fix tipo.
2359
2360 2002-09-18 Adam Fedor <fedor@gnu.org>
2361
2362 * MAINTAINERS: Add myself to the Write After Approval list.
2363
2364 2002-09-18 Jim Blandy <jimb@redhat.com>
2365
2366 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2367 texthigh and textlow to reader-specific structs caused
2368 objfile_relocate to miss them. This is fixable, but the work that
2369 the change was supposed to prepare GDB for never got done anyway.
2370
2371 2002-09-18 David Carlton <carlton@math.stanford.edu>
2372
2373 * MAINTAINERS: Alphabetize Write After Approval list.
2374
2375 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2376
2377 Fix PR gdb/709
2378 * values.c (value_static_field): Call read_var_value.
2379
2380 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2381
2382 * valops.c (hand_function_call): Align the initial stack pointer
2383 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2384 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2385 return value.
2386 * mips-tdep.c (mips_frame_align): New function.
2387 (mips_gdbarch_init): Set frame_align.
2388 * gdbarch.sh (FRAME_ALIGN): New method.
2389 * gdbarch.h, gdbarch.c: Re-generate.
2390
2391 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2392
2393 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2394 registers.
2395
2396 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2397
2398 * NEWS: Mention that MIPS $fp behavior changed.
2399 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2400 reference to FP_REGNUM.
2401 (mipsnbsd_cannot_store_register): Ditto.
2402 * mips-linux-nat.c: Update copyright.
2403 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2404 (mips_linux_cannot_store_register): Ditto.
2405 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2406 * config/mips/tm-mips.h: Update copyright.
2407 (FP_REGNUM): Delete macro.
2408 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2409 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2410 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2411 (mips_r3041_reg_names, mips_r3051_reg_names)
2412 (mips_r3081_reg_names): Replace "fp" with "".
2413 Fix PR gdb/480.
2414
2415 2002-09-17 Theodore A. Roth <troth@verinet.com>
2416
2417 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2418 generic_read_register_dummy() (PR gdb/703).
2419 (avr_push_return_address): #if 0 out unused vars.
2420 (avr_gdbarch_init): Enable use of avr_push_return_address().
2421
2422 2002-09-17 Michael Snyder <msnyder@redhat.com>
2423
2424 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2425 RTE will take care of it.
2426
2427 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2428
2429 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2430 invalid, return SP_REGNUM.
2431
2432 2002-09-17 Michael Snyder <msnyder@redhat.com>
2433
2434 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2435 point registers without sign extension.
2436
2437 2002-09-17 Andrew Cagney <cagney@redhat.com>
2438
2439 * blockframe.c (deprecated_read_register_dummy): Rename
2440 generic_read_register_dummy.
2441 * frame.c (frame_unwind_signed_register): New function.
2442 (frame_unwind_unsigned_register): New function.
2443 * frame.h (frame_unwind_signed_register): Declare.
2444 (frame_unwind_unsigned_register): Declare.
2445 (deprecated_read_register_dummy): Rename
2446 generic_read_register_dummy.
2447
2448 * h8300-tdep.c (h8300_frame_chain): Update.
2449 (h8300_frame_saved_pc): Update.
2450 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2451 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2452 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2453 (s390_frame_chain): Update.
2454 * v850-tdep.c (v850_find_callers_reg): Update.
2455 (v850_frame_saved_pc): Update.
2456 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2457 (m32r_find_callers_reg): Update.
2458 (m32r_frame_saved_pc): Update.
2459 * sh-tdep.c (sh_find_callers_reg): Update.
2460 (sh64_get_saved_pr): Update.
2461 (sh_init_extra_frame_info): Update.
2462 (sh_init_extra_frame_info): Update.
2463 (sh64_init_extra_frame_info): Update.
2464 (sh64_init_extra_frame_info): Update.
2465 * mcore-tdep.c (mcore_find_callers_reg): Update.
2466 (mcore_frame_saved_pc): Update.
2467 (mcore_init_extra_frame_info): Update.
2468 * i386-tdep.c (i386_frame_saved_pc): Update.
2469 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2470 (ia64_init_extra_frame_info): Update.
2471 (ia64_init_extra_frame_info): Update.
2472 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2473 * cris-tdep.c (cris_init_extra_frame_info): Update.
2474 * avr-tdep.c (avr_frame_chain): Update.
2475 (avr_init_extra_frame_info): Update.
2476 (avr_frame_saved_pc): Update.
2477 * arm-tdep.c (arm_find_callers_reg): Update.
2478 (arm_init_extra_frame_info): Update.
2479 (arm_frame_saved_pc): Update.
2480
2481 2002-09-17 Tom Tromey <tromey@redhat.com>
2482
2483 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2484 is "'".
2485
2486 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2487
2488 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2489 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2490 NEXT_PROLOGUE_INSN.
2491 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2492 NEXT_PROLOGUE_INSN.
2493
2494 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2495
2496 * osfsolib.c: Remove file, replaced by solib-osf.c.
2497 * Makefile.in: Remove compilation rules for osfsolib.c.
2498
2499 2002-09-16 David Carlton <carlton@math.stanford.edu>
2500
2501 * cp-valprint.c (cp_print_class_method): Correct args to
2502 check_stub_method_group.
2503
2504 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2505
2506 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2507 `set architecture'. Unify naming convention of functions.
2508 (h8300_skip_prologue): Improve prologue analysis.
2509 (h8300_push_arguments): Rewritten to more closely match GCC's
2510 bizarre argument-passing behavior, along with the comment describing
2511 said behavior.
2512 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2513 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2514 sim, remote-e7000.c, remote-hms.c and remote.c
2515
2516 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2517
2518 * i386-tdep.c (gdb_print_insn_i386): Removed.
2519 (i386_print_insn): New function.
2520 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2521 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2522 tm_print_insn_info.
2523
2524 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2525
2526 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2527 zero.
2528
2529 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2530
2531 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2532 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2533 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2534
2535 2002-09-13 Christopher Faylor <cgf@redhat.com>
2536
2537 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2538
2539 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2540
2541 * gdbtypes.c (check_stub_method): Make static.
2542 (check_stub_method_group): New function.
2543 * gdbtypes.h: Update prototypes.
2544 * cp-support.c: New file.
2545 * cp-support.h: New file.
2546
2547 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2548 (update_method_name_from_physname): New function.
2549 (read_member_functions): Correct method names for operators
2550 and v3 constructors/destructors. Separate v2 constructors and
2551 destructors.
2552 * Makefile.in (stabsread.o): Update dependencies.
2553 (SFILES): Add cp-support.c.
2554 (COMMON_OBS): Add cp-support.o.
2555 (cp_support_h, cp-support.o): Add.
2556
2557 * cp-valprint.c (cp_print_class_method): Call
2558 check_stub_method_group instead of check_stub_method. Remove
2559 extraneous QUITs.
2560 * p-valprint.c (pascal_object_print_class_method): Likewise.
2561 * valops.c (search_struct_method): Likewise.
2562 (find_method_list, value_struct_elt_for_reference): Likewise.
2563
2564 2002-09-13 Andrew Cagney <cagney@redhat.com>
2565
2566 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2567 * gdbarch.h, gdbarch.c: Regenerate.
2568
2569 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2570
2571 * frame.c (find_saved_register): Delete function.
2572 * frame.h (find_saved_register): Delete declaration.
2573 Fix PR gdb/631.
2574
2575 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2576
2577 * mips-tdep.c (read_next_frame_reg): Re-hack using
2578 frame_register_unwind.
2579
2580 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2581
2582 * mips-tdep.c (mips_get_saved_register): Re-hack using
2583 frame_register_unwind.
2584
2585 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2586
2587 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2588 vector. Will be useful for Interix.
2589 * gdbarch.h, gdbarch.c: Regenerate.
2590
2591 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2592 name of the malloc function by NAME_OF_MALLOC.
2593
2594 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2595
2596 * value.h (find_function_in_inferior): Add const keyword to
2597 one of the parameters. Allows us to invoke this function with
2598 a const char *.
2599 * valops.c (find_function_in_inferior): Likewise.
2600
2601 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2602
2603 * exec.c (xfer_memory): Fix compilation warning with old versions
2604 of GCC.
2605 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2606
2607 2002-09-12 David Carlton <carlton@math.stanford.edu>
2608
2609 * symtab.h: Run through gdb_indent.h.
2610 Add 2002 to Copyright year list.
2611
2612 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2613
2614 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2615 mach constants.
2616 * MAINTAINERS: Add myself to write after approval list.
2617
2618 2002-09-11 J. Brobecker <brobecker@gnat.com>
2619
2620 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2621
2622 2002-09-11 J. Brobecker <brobecker@gnat.com>
2623
2624 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2625 Interix.
2626
2627 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2628
2629 * procfs.c (do_detach): Clear current signal, not just fault.
2630 Corrects problem with breakpoint trap signal leaking to detached
2631 process on Tru64.
2632
2633 2002-09-10 Michael Snyder <msnyder@redhat.com>
2634
2635 * buildsym.c (finish_block): Protect against null pointer.
2636
2637 2002-09-10 Andrew Cagney <cagney@redhat.com>
2638
2639 * infcmd.c (default_print_registers_info): Send all output to
2640 ``file'' instead of ``gdb_stdout''.
2641
2642 2002-09-10 Michael Snyder <msnyder@redhat.com>
2643
2644 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2645 LONGEST, and use signed register read (addresses are sign-
2646 extended for mips).
2647
2648 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2649
2650 * event-loop.c (gdb_do_one_event): Make public.
2651 * event-loop.h (gdb_do_one_event): Declare.
2652
2653 2002-09-10 Jeff Law <law@redhat.com>
2654
2655 * infttrace.c (child_resume): Simplify and rework to avoid
2656 TT_PROC_CONTINUE.
2657
2658 2002-09-09 Fred Fish <fnf@intrinsity.com>
2659
2660 * printcmd.c (print_scalar_formatted): "len" is the number of
2661 target bytes, NOT the number of target bits.
2662
2663 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2664
2665 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2666 * top.c (init_main): Set rl_terminal_name.
2667
2668 2002-09-08 Aidan Skinner <aidan@velvet.net>
2669
2670 * ada-lang.c (ada_array_bound, ada_type_match,
2671 _initialize_ada_language): Fix K&R definitions.
2672 * ada-tasks.c (get_current_task): Fix K&R definitions.
2673 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2674
2675 2002-09-07 Christopher Faylor <cgf@redhat.com>
2676
2677 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2678 Add XP.
2679
2680 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2681
2682 * i386-tdep.c (i386_register_virtual_type,
2683 i386_register_convertible, i386_register_convert_to_virtual,
2684 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2685 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2686 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2687 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2688 Don't set push_arguments twice.
2689
2690 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2691 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2692 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2693 sigtramp_end to NULL.
2694 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2695 defines.
2696 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2697
2698 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2699 whitespace.
2700
2701 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2702 * gdbarch.h, gdbarch.c: Re-generate.
2703 * blockframe.c (find_pc_sect_partial_function): Convert to use
2704 SIGTRAMP_START_P predicate.
2705
2706 2002-09-05 Michael Snyder <msnyder@redhat.com>
2707
2708 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2709 generic_dummy_frame method and old method. Also distinguish
2710 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2711 (arm_extract_return_value): Use new regcache method.
2712
2713 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2714 adjustment that doesn't conform to the ABI.
2715 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2716 saved regcache, not from current regcache.
2717
2718 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2719
2720 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2721 * README: Update.
2722
2723 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2724
2725 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2726 if arm_apcs_32 is false.
2727
2728 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2729
2730 GDB 5.3 branch created.
2731
2732 2002-09-03 Theodore A. Roth <troth@verinet.com>
2733
2734 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2735 generic_unwind_get_saved_register.
2736
2737 2002-09-03 David Carlton <carlton@math.stanford.edu>
2738
2739 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2740 argument (PR gdb/653). Update call to smash_to_method_type.
2741 (read_structure_scope): Update call to dwarf2_add_member_fn.
2742
2743 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2744
2745 * x86-64-linux-tdep.c: Include gdb_string.h
2746 * x86-64-linux-nat.c: Ditto.
2747
2748 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2749
2750 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2751 when YYDEBUG is set to 1.
2752 * c-exp.y: Likewise.
2753 * f-exp.y: Likewise.
2754 * jv-exp.y: Likewise.
2755 * m2-exp.y: Likewise.
2756 * p-exp.y: Likewise.
2757
2758 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2759
2760 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2761 dependency list.
2762 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2763 solib_svr4_fetch_link_map_offsets to
2764 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2765 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2766 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2767 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2768 solib-svr4.o, and solib-legacy.o.
2769 * config/i386/tm-nbsd.h: Include solib.h.
2770
2771 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2772
2773 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2774 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2775 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2776 comment noting that this needs its own target configuration.
2777 * config/i386/nbsd.mt: New file.
2778 * config/i386/nbsdaout.mt: Remove.
2779 * config/i386/nbsdelf.mt: Ditto.
2780 * config/i386/tm-nbsdaout.h: Ditto.
2781
2782 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2783
2784 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2785 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2786 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2787 tdep->sigtramp_end.
2788 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2789 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2790 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2791
2792 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2793
2794 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2795 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2796 * i386-tdep.h (i386bsd_init_abi): New prototype.
2797 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2798 function declaration.
2799 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2800 for NetBSD-a.out or NetBSD-ELF.
2801 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2802 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2803 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2804 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2805 and nbsd-tdep.h.
2806 (i386nbsd_pc_in_sigtramp): New function.
2807 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2808 i386nbsd_pc_in_sigtramp.
2809 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2810 and i386nbsdelf_init_abi OS ABI handlers.
2811 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2812 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2813
2814 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2815
2816 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2817 registers if the target really has them.
2818
2819 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2820
2821 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2822 than nbsd-tdep.h.
2823
2824 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2825
2826 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2827 list.
2828 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2829 (alphanbsd_skip_sigtramp_frame): New functions.
2830 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2831 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2832 to alphanbsd_sigcontext_addr.
2833
2834 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2835
2836 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2837 list.
2838 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2839 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2840 nbsd_pc_in_sigtramp.
2841 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2842 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2843 * nbsd-tdep.c: Include gdb_string.h.
2844 (nbsd_pc_in_sigtramp): New function.
2845 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2846 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2847 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2848 ppcnbsd_pc_in_sigtramp.
2849 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2850 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2851 shnbsd_pc_in_sigtramp.
2852 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2853 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2854 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2855
2856 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2857
2858 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2859 watchpoints to NULL.
2860 (insert_breakpoints): set val field of watchpoints if NULL.
2861
2862
2863 2002-08-29 Jim Blandy <jimb@redhat.com>
2864
2865 * symtab.c (lookup_symbol_aux): In the cases where we find a
2866 minimal symbol of an appropriate name and use its address to
2867 select a symtab to read and search, use `name' (as passed to us)
2868 as the demangled name when searching the symtab's global and
2869 static blocks, not the minsym's name.
2870
2871 2002-08-29 Keith Seitz <keiths@redhat.com>
2872
2873 * stack.c (print_frame_info_base): Always set current_source_symtab
2874 and current_source_line.
2875
2876 2002-08-29 Donn Terry <donnte@microsoft.com>
2877
2878 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2879
2880 2002-08-28 Keith Seitz <keiths@redhat.com>
2881
2882 * stack.c (select_frame): Add FIXME concerning selected-frame
2883 events.
2884 (select_frame_command): Send selected-frame-level-changed
2885 event notification, but only if the level actually changed.
2886 (up_silently_base): Add selected-frame-level-changed event
2887 notification.
2888 (down_silently_base): Likewise.
2889
2890 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2891
2892 * Makefile.in: Update dependencies for all gdb/*.c files.
2893
2894 2002-08-27 Tom Tromey <tromey@redhat.com>
2895
2896 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2897 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2898 Update dependencies.
2899 * i387-tdep.c: Include gdb_string.h.
2900 * osabi.c: Likewise.
2901 * i386-linux-nat.c: Likewise.
2902 * lin-lwp.c: Likewise.
2903 * ax-gdb.c: Likewise.
2904 * signals/signals.c: Likewise.
2905 * jv-valprint.c: Likewise.
2906 * p-lang.c: Likewise.
2907 * c-valprint.c: Likewise.
2908 * cp-abi.c: Likewise.
2909
2910 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2911
2912 * cli/cli-script.h (copy_command_lines): Export.
2913 * breakpoint.c: Include cli/cli-script.h.
2914 * Makefile.in (breakpoint.o): Update dependencies.
2915
2916 2002-08-26 Michael Snyder <msnyder@redhat.com>
2917
2918 * breakpoint.c (insert_breakpoints): Protect all references
2919 to 'process_warning'. Shorten long lines.
2920
2921 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2922
2923 * cli/cli-script.c (copy_command_lines): New function.
2924 * defs.h (copy_command_lines): Export.
2925 * testsuite/gdb.base/commands.exp: New tests for commands
2926 attached to a temporary breakpoint, and for commands that
2927 delete the breakpoint they are attached to.
2928
2929 2002-08-26 Michael Snyder <msnyder@redhat.com>
2930
2931 * breakpoint.c (bpstat_stop_status): Instead of copying the
2932 pointer to the breakpoint commands struct, make a new copy
2933 of the struct and point to that.
2934 (bpstat_clear): Free the commands struct.
2935 (bpstat_clear_actions): Free the commands struct.
2936 (bpstat_do_actions): Free the command actions. Also execute
2937 the local cleanups, instead of deleting them.
2938 (delete_breakpoint): Leave the commands field of the bpstat
2939 chain alone -- it will be freed later.
2940
2941 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2942
2943 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2944 deleted in 2002-08-20 commit. This function is still used by
2945 ppc-linux-nat.c.
2946
2947 2002-08-26 Keith Seitz <keiths@redhat.com>
2948
2949 * gdb-events.sh: Add selected-frame-level-changed event.
2950 * gdb-events.c: Regenerated.
2951 * gdb-events.h: Regenerated.
2952
2953 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2954
2955 Fix PR gdb/393:
2956 * inflow.c (terminal_save_ours): New function to save terminal
2957 settings.
2958 * inferior.h (terminal_save_ours): Declare.
2959 * target.c (debug_to_terminal_save_ours): New function.
2960 (cleanup_target): Defaults to_terminal_save_ours.
2961 (update_current_target): Inherit to_terminal_save_ours.
2962 (setup_target_debug): Set to_terminal_save_ours.
2963 * target.h (target_terminal_save_ours): New to save terminal settings.
2964 (target_ops): New member to_terminal_save_ours.
2965 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2966 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2967 * inftarg.c (init_child_ops): Likewise.
2968 * m3-nat.c (init_m3_ops): Likewise.
2969 * procfs.c (init_procfs_ops): Likewise.
2970 * wince.c (init_child_ops): Likewise.
2971 * win32-nat.c (init_child_ops): Likewise.
2972 * sol-thread.c (init_sol_thread_ops): Likewise.
2973
2974 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2975
2976 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2977 use regcache_* functions.
2978 (i386_gdbarch_init): Set store_return_value instead of
2979 deprecated_store_return_value.
2980
2981 * regcache.c (regcache_raw_write_signed,
2982 regcache_raw_write_unsigned): New functions.
2983 * regcache.h (regcache_raw_write_signed,
2984 regcache_raw_write_unsigned): New prototypes.
2985
2986 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2987
2988 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2989 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2990 source file dependencies. Cleanup corresponding generator rules.
2991
2992 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2993
2994 * regcache.h (register_offset_hack): Declare.
2995 (regcache_cooked_read_using_offset_hack): Declare.
2996 (regcache_cooked_write_using_offset_hack): Declare.
2997
2998 * regcache.c (register_offset_hack): New function.
2999 (regcache_cooked_read_using_offset_hack): New function.
3000 (regcache_cooked_write_using_offset_hack): New function.
3001 (regcache_dump): Check that the registers, according to their
3002 offset, are packed hard against each other.
3003 (cooked_xfer_using_offset_hack): New function.
3004
3005 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3006
3007 * regcache.c (struct regcache_descr): Add field register_type.
3008 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3009 in as a parameter
3010 (init_regcache_descr): Initialize register_type. Pass the descr
3011 to init_legacy_regcache_descr. Use register_type instead of
3012 REGISTER_VIRTUAL_TYPE.
3013 (register_type): New function.
3014 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3015 * regcache.h (register_type): Declare.
3016
3017 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3018
3019 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3020 instead of deprecated_store_return_value. Fix fallout from
3021 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3022
3023 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3024
3025 * regcache.c (max_register_size): New function.
3026 (init_legacy_regcache_descr): Ensure that max_register_size is
3027 large enough for REGISTER_VIRTUAL_SIZE.
3028 * regcache.h (max_register_size): Declare.
3029
3030 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3031
3032 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3033 store_return_value.
3034 (e500_extract_return_value): Change type of valbuf pointer to
3035 void.
3036
3037 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3038
3039 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3040 workaround.
3041
3042 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3043 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3044 long long) to prevent compiler warning on 64-bit systems.
3045
3046 2002-08-23 Andrew Cagney <cagney@redhat.com>
3047
3048 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3049 (DEPRECATED_STORE_RETURN_VALUE): New method.
3050 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3051 * gdbarch.h, gdbarch.c: Re-generate.
3052
3053 * values.c (set_return_value): Pass current_regcache to
3054 STORE_RETURN_VALUE.
3055 * arch-utils.h (legacy_store_return_value): Declare.
3056 * arch-utils.c (legacy_store_return_value): New function.
3057 (legacy_extract_return_value): Update parameters.
3058
3059 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3060 STORE_RETURN_VALUE.
3061 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3062 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3063 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3064 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3065 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3066 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3067 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3068 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3069 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3070 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3071
3072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3073 * i386-tdep.c (i386_extract_return_value): Update.
3074 * arch-utils.c (legacy_extract_return_value): Update.
3075 * frv-tdep.c (frv_gdbarch_init): Update.
3076 * cris-tdep.c (cris_gdbarch_init): Update.
3077 * d10v-tdep.c (d10v_gdbarch_init): Update.
3078 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3079 * m68k-tdep.c (m68k_gdbarch_init): Update.
3080 * mcore-tdep.c (mcore_gdbarch_init): Update.
3081 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3082 * s390-tdep.c (s390_gdbarch_init): Update.
3083 * sparc-tdep.c (sparc_gdbarch_init): Update.
3084 * sh-tdep.c (sh_gdbarch_init): Update.
3085 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3086 * v850-tdep.c (v850_gdbarch_init): Update.
3087 * avr-tdep.c (avr_gdbarch_init): Update.
3088 * ia64-tdep.c (ia64_gdbarch_init): Update.
3089 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3090 * vax-tdep.c (vax_gdbarch_init): Update.
3091 * alpha-tdep.c (alpha_gdbarch_init): Update.
3092 * arm-tdep.c (arm_gdbarch_init): Update.
3093 * mips-tdep.c (mips_gdbarch_init): Update.
3094 * i386-tdep.c (i386_gdbarch_init): Update.
3095
3096 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3097
3098 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3099 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3100
3101 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3102
3103 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3104 problems.
3105
3106 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3107
3108 * infrun.c (handle_inferior_event): Move a comment outside of a
3109 function call, in order to avoid indent reformatting this part
3110 of the code in an unreadable way.
3111
3112 2002-08-23 Grace Sainsbury <graces@redhat.com>
3113
3114 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3115 when breakpoints fail. Move general breakpoint error messages to
3116 insert_breakpoints.
3117 * breakpoint.c (insert_breakpoints): Change warnings when
3118 breakpoints are nto inserted to specify the type. Remove call to
3119 memory_error when hardware breakpoints can't be inserted. Remove
3120 multiple calls to warning so all messages are sent to the user at
3121 once.
3122 (delete_breakpoints): Make insert error messsages more explicit.
3123
3124 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3125
3126 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3127 gdbserver/ChangeLog.
3128
3129 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3130
3131 * i386-tdep.c: Include "objfiles.h".
3132 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3133 skip_trampoline_code.
3134 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3135 (CPLUS_MARKER): Define to '.'.
3136
3137 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3138 member.
3139 (linux_corefile_thread_callback): Increase args->num_notes.
3140 (linux_make_note_section): Initialize thread_args.num_notes, and
3141 use it to determine whether notes for any threads were created.
3142
3143 2002-08-23 Donn Terry <donnte@microsoft.com>
3144
3145 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3146 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3147 and PCUNKILL.
3148 (write_with_trace): Conditionalize out the switch branch handling
3149 PCSHOLD if the corresponding macro is not defined. Likewise for
3150 PRSABORT and PRSTOP.
3151 This change will be needed by the Interix port.
3152
3153 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3154
3155 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3156 write_register wherever possible instead of manipulating the
3157 register bytes directly.
3158 Assign VALUE_CONTENTS to a variable and use that.
3159 The GPR numbers are now dependent on the architecture.
3160
3161 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3162
3163 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3164 ev_offset fields.
3165 (skip_prologue): Add support for BookE/e500 instructions.
3166 (e500_extract_return_value): New function.
3167 (frame_get_saved_regs): Add support for saving ev registers and
3168 pseudo gpr's.
3169 (e500_store_return_value): New function.
3170 (rs6000_gdbarch_init): Move up default intializations of
3171 deprecated_extract_return_value and store_return_value. Overwrite
3172 init of store_return_value with e500 specific version.
3173 Set extract_return_value for e500.
3174
3175 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3176
3177 * blockframe.c (generic_call_dummy_register_unwind): Use
3178 regcache_cooked_read to catch cases in which the variable is
3179 stored in a pseudo register.
3180
3181 2002-08-22 Andrew Cagney <cagney@redhat.com>
3182
3183 * NEWS: Mention that the i960 has been made obsolete.
3184 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3185 i960-tdep.c
3186 (remote-nrom.o): Obsolete target.
3187 (remote-nindy.o, i960-tdep.o): Ditto.
3188 * remote-nrom.c: Make file obsolete.
3189 * remote-nindy.c, remote-vx960.c: Ditto.
3190 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3191 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3192 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3193 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3194 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3195 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3196 i960-*-vxworks* obsolete.
3197 * MAINTAINERS: Note that the i960 is obsolete.
3198
3199 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3200
3201 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3202 detach to allow reinitialization.
3203
3204 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3205
3206 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3207 attempt).
3208
3209 2002-08-22 Jim Blandy <jimb@redhat.com>
3210
3211 * coffread.c (coff_symfile_read): Don't try to read the line
3212 number table from disk if the image file doesn't have a symbol
3213 table; we'll never actually look at the info anyway, and Windows
3214 ships DLL's with bogus file offsets for the line number data.
3215
3216 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3217
3218 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3219 an e500 executable.
3220
3221 2002-08-21 Michael Snyder <msnyder@redhat.com>
3222
3223 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3224 (MSYMBOL_SIZE): Replace macro with function.
3225 (DEFAULT_MIPS_TYPE): Delete unused macro.
3226 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3227 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3228
3229 2002-08-21 Jim Blandy <jimb@redhat.com>
3230
3231 * valops.c (value_cast): Simplify and correct logic for doing a
3232 static cast from a pointer to a base class to a pointer to a
3233 derived class.
3234
3235 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3236
3237 * infcmd.c (default_print_registers_info): Replace
3238 do_registers_info.
3239 (registers_info): Use gdbarch_print_registers_info instead of
3240 DO_REGISTERS_INFO.
3241 * inferior.h (default_print_registers_info): Replace
3242 do_registers_info.
3243 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3244 (DO_REGISTERS_INFO): Change to a predicate function.
3245 * gdbarch.h, gdbarch.c: Regenerate.
3246
3247 2002-08-21 Keith Seitz <keiths@redhat.com>
3248
3249 * gdb-events.sh: Add target-changed event.
3250 * gdb-events.c: Regenerated.
3251 * gdb-events.c: Regenerated.
3252 * valops.c (value_assign): Add target-changed event notification
3253 to inlval_register, lval_memory, and lval_reg_frame_relative.
3254
3255 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3256
3257 * NEWS: Add an entry regarding the improvement of the next/step
3258 operation on Alpha Tru64 multi-processor machines.
3259
3260 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3261
3262 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3263 directores.
3264 * Makefile.in: Update all _h macro definitions.
3265 * Makefile.in (install-gdbtk): Move to install section.
3266 (rdi-share/libangsd.a): Move to end of file.
3267
3268 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3269
3270 * frame.c (frame_register_unwind): When a register, set addrp to
3271 the register's byte.
3272
3273 2002-08-20 Michael Snyder <msnyder@redhat.com>
3274
3275 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3276 used locally, so move them from the target machine header to here.
3277 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3278 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3279 Make static.
3280 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3281
3282 2002-08-20 Andrew Cagney <cagney@redhat.com>
3283
3284 * NEWS: Mention that the Apollo line was made obsolete.
3285 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3286 m68*-hp-hpux* obsolete.
3287 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3288 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3289 * buildsym.c (make_blockvector): Make static.
3290 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3291 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3292 (ALLDEPFILES): Remove dstread.c.
3293 (dstread.o): Obsolete make rule.
3294 * dstread.c: Makefile obsolete.
3295 * dst.h: Ditto.
3296 * config/m68k/hp300hpux.mt: Ditto.
3297 * config/m68k/hp300hpux.mh: Ditto.
3298 * config/m68k/hp300bsd.mt: Ditto.
3299 * config/m68k/hp300bsd.mh: Ditto.
3300 * config/m68k/apollo68b.mt: Ditto.
3301 * config/m68k/apollo68v.mh: Ditto.
3302 * config/m68k/apollo68b.mh: Ditto.
3303
3304 2002-08-20 Michael Snyder <msnyder@redhat.com>
3305
3306 * mips-tdep.c (mips_in_return_stub): Make static.
3307 (mips_gdbarch_init): Set in_solib_return_trampoline.
3308 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3309
3310 2002-08-20 Michael Snyder <msnyder@redhat.com>
3311
3312 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3313 * gdbarch.c, gdbarch.h: Regenerate.
3314 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3315 Add.
3316 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3317
3318 2002-08-20 Michael Snyder <msnyder@redhat.com>
3319
3320 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3321 (mips_gdbarch_init): Set skip_trampoline_code,
3322 in_solib_call_trampoline.
3323 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3324 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3325
3326 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3327
3328 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3329
3330 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3331 vector type for ev registers.
3332 (e500_pseudo_register_read): New function.
3333 (e500_pseudo_register_write): New function.
3334 (e500_dwarf2_reg_to_regnum): New function.
3335 (PPC_UISA_NOFP_SPRS): New macro.
3336 (PPC_EV_REGS): New macro.
3337 (PPC_GPRS_PSEUDO_REGS): New macro.
3338 (registers_e500): New register set for e500.
3339 (variants): Add e500 variant.
3340 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3341 before setting architectural dependent variations. Initialize ev
3342 registers numbers. Add case for e500 architecture. Set the
3343 number of pseudo registers.
3344
3345 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3346
3347 * rs6000-tdep.c: Clean up comments.
3348
3349 2002-08-20 Andrew Cagney <cagney@redhat.com>
3350
3351 * h8300-tdep.c: Re-indent file.
3352
3353 2002-08-20 Jim Blandy <jimb@redhat.com>
3354
3355 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3356 default for this.
3357
3358 2002-08-20 Keith Seitz <keiths@redhat.com>
3359
3360 * breakpoints.c (watch_command_1): Use internal breakpoint
3361 when setting a watchpoint_scope breakpoint.
3362
3363 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3364
3365 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3366 (build_builtin_type_vec64i): Ditto.
3367 (build_builtin_type_vec128): Ditto.
3368 (build_builtin_type_vec128i): Ditto.
3369
3370 2002-08-19 Michael Snyder <msnyder@redhat.com>
3371
3372 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3373 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3374 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3375 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3376 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3377 CALL_DUMMY_ADDRESS): Delete.
3378 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3379 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3380 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3381 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3382 push_return_address.
3383 (mips_register_raw_size, mips_eabi_use_struct_convention,
3384 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3385 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3386 mips_init_extra_frame_info, mips_eabi_push_arguments,
3387 mips_n32n64_push_arguments, mips_push_return_address,
3388 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3389 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3390
3391 2002-08-19 Michael Snyder <msnyder@redhat.com>
3392
3393 * mips-tdep.c (mips_frame_num_args): New function.
3394 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3395 frame_saved_pc, frame_args_address, frame_locals_address,
3396 frame_num_args, and frame_args_skip.
3397 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3398 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3399 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3400 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3401
3402 2002-08-20 Michael Snyder <msnyder@redhat.com>
3403
3404 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3405 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3406 * mips-tdep.c (mips_store_struct_return): New function.
3407 (mips_extract_struct_value_address): New function.
3408 (mips_gdbarch_init): Set store_struct_return and
3409 extract_struct_value_address.
3410
3411 2002-08-20 David Carlton <carlton@math.stanford.edu>
3412
3413 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3414 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3415 (read_file_scope): Check that line_header is nonzero before
3416 decoding macro information.
3417
3418 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3419
3420 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3421 flag the general-purpose registers as floating-point on targets
3422 that don't support the floating-point registers.
3423
3424 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3425
3426 * rs6000-tdep.c (altivec_register_p): Delete.
3427 (rs6000_do_altivec_registers): Delete.
3428 (rs6000_altivec_registers_info): Delete.
3429 (rs6000_do_registers_info): Delete.
3430 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3431 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3432
3433 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3434
3435 * infcmd.c (do_registers_info): Print vector registers in hex
3436 format only.
3437 (print_vector_info): Check that printing registers
3438 makes sense.
3439 (print_float_info): Ditto.
3440
3441 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3442
3443 * mips-tdep.c (mips_gdbarch_init): Update.
3444 (mips_o32_extract_return_value): Rewrite.
3445 (mips_o32_store_return_value): Rewrite.
3446 (mips_o32_xfer_return_value): New function.
3447 (mips_xfer_register): Tweak debug print message. Allow for
3448 buf_offset when dumping the value transfered.
3449
3450 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3451
3452 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3453 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3454 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3455 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3456 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3457
3458 2002-08-14 Michael Snyder <msnyder@redhat.com>
3459
3460 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3461
3462 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3463
3464 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3465 register.
3466 (P): New macro to define a register as a pseudo register.
3467 (R, R4, R8, R16, FR32, R64, R0): Updated.
3468 (struct variant): Add new fields for number of pseudo registers
3469 and number of total registers.
3470 (tot_num_registers): New macro replacing....
3471 (num_registers): ...deleted macro.
3472 (num_registers): New function.
3473 (num_pseudo_registers): New function.
3474 (variants): Update all variants to intialize new fields correctly.
3475 Postpone initialization of number of pseudo regs and real regs.
3476 (init_variants): New function.
3477 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3478 registers offsets.
3479
3480 2002-08-19 David Carlton <carlton@math.stanford.edu>
3481
3482 * valops.c (search_struct_field): Change error message to treat
3483 return value of 0 from value_static_field as meaning that field is
3484 optimized out.
3485 (value_struct_elt_for_reference): Ditto.
3486 * values.c (value_static_field): Treat an unresolved location the
3487 same as a nonexistent symbol. Fix PR gdb/635.
3488 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3489 enclosed. Fix PR gdb/574.
3490 * MAINTAINERS: Add self to Write After Approval list.
3491
3492 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3493
3494 * mips-tdep.c (mips_xfer_register): New function.
3495 (mips_n32n64_extract_return_value): Rewrite.
3496 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3497 instead of deprecated_extract_return_value.
3498
3499 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3500
3501 * rs6000-tdep.c (TDEP): Delete macro.
3502 (branch_dest): Replace use of TDEP macro with its body.
3503 (rs6000_pop_frame): Ditto.
3504 (rs6000_push_arguments): Ditto.
3505 (rs6000_skip_trampoline_code): Ditto.
3506 (rs6000_frame_saved_pc): Ditto.
3507 (rs6000_frame_chain): Ditto.
3508 (rs6000_register_name): Ditto.
3509 (rs6000_register_byte): Ditto.
3510 (rs6000_register_raw_size): Ditto.
3511 (rs6000_register_virtual_type): Ditto.
3512 (rs6000_register_convertible): Ditto.
3513 (rs6000_convert_from_func_ptr_addr): Ditto.
3514
3515 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3516
3517 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3518 conditionally.
3519 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3520 MIPS_LINUX_JB_ELEMENT_SIZE.
3521 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3522 for MAX_REGISTER_RAW_SIZE arrays.
3523 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3524 MIPS_LINUX_JB_ELEMENT_SIZE.
3525
3526 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3527
3528 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3529
3530 2002-08-19 Aidan Skinner <aidan@velvet.net>
3531
3532 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3533 ada-valprint.c ada-tasks.c.
3534 (YYFILES): Add ada-exp.y.
3535 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3536 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3537 (ada-exp.tab.o): New target.
3538
3539 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3540
3541 * regcache.c (regcache_xfer_part): New function.
3542 (regcache_raw_read_part): New function.
3543 (regcache_raw_write_part): New function.
3544 (regcache_cooked_read_part): New function.
3545 (regcache_cooked_write_part): New function.
3546 * regcache.h (regcache_raw_read_part): Declare.
3547 (regcache_raw_write_part): Declare.
3548 (regcache_cooked_read_part): Declare.
3549 (regcache_cooked_write_part): Declare.
3550
3551 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3552
3553 * remote.c (remote_open_1): Add async_p.
3554 (remote_async_open_1): Delete.
3555 (open_remote_target): Delete.
3556 (remote_open, extended_remote_open): Update calls to remote_open_1.
3557 (remote_async_open, extended_remote_async_open): Call
3558 remote_open_1 instead of remote_async_open_1.
3559
3560 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3561
3562 * blockframe.c: Fix a few coding standard violations.
3563
3564 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3565
3566 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3567 here from ...
3568 * config/i386/tm-i386sco5.h: ... here. File removed.
3569 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3570
3571 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3572 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3573 (TM_FILE): Set to tm-i386.h.
3574 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3575 * config/i386/tm-i386v.h: Remove file.
3576 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3577 instead of "i386/tm-i386v.h".
3578 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3579 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3580 "i386/tm-i386v.h".
3581 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3582 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3583 "i386/tm-i386.h".
3584
3585 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3586
3587 * config/i386/nm-i386v.h: Add protection against
3588 multiple-inclusion.
3589 (i386_register_u_addr): Remove prototype.
3590 (register_u_addr): New prototype.
3591 (REGISTER_U_ADDR): Redefine accordingly.
3592 * i386v-nat.c: Improve several comments.
3593 (i386_register_u_addr): Change signature and rename to
3594 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3595 ubase variable.
3596
3597 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3598
3599 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3600 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3601 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3602 deprecated_extract_return_value.
3603 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3604 rename mips_o32o64_push_arguments.
3605 (mips_gdbarch_init): Update.
3606 (mips_extract_return_value): Delete.
3607 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3608 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3609 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3610 (mips_n32n64_extract_return_value): Clone
3611 mips_extract_return_value.
3612 (mips_store_return_value): Delete.
3613 (mips_o32_store_return_value): Clone mips_store_return_value.
3614 (mips_o64_store_return_value): Clone mips_store_return_value.
3615 (mips_eabi_store_return_value): Clone mips_store_return_value.
3616 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3617
3618 2002-08-18 Aidan Skinner <aidan@velvet.net>
3619
3620 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3621 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3622
3623 2002-08-18 Aidan Skinner <aidan@velvet.net>
3624
3625 * ada-lang.c: Run through gdb_indent.sh.
3626 * ada-lang.h: Run through gdb_indent.sh.
3627 * ada-tasks.c: Run through gdb_indent.sh.
3628 * ada-typeprint.c: Run through gdb_indent.sh.
3629 * ada-valprint.c: Run through gdb_indent.sh.
3630
3631 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3632
3633 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3634 ABI.
3635
3636 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3637
3638 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3639
3640 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3641 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3642
3643 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3644 write_register_gen instead of write_register_bytes.
3645
3646 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3647 i[3456]-*-osf1mk* configurations have been made obsolete.
3648 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3649 i[3456]86-*-osf1mk* hosts obsolete.
3650 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3651 targets obsolete.
3652 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3653 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3654 config/i386/i386m3.mt, config/i386/nm-m3.h,
3655 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3656 config/i386/i386mk.mh, config/i386/i386mk.mt,
3657 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3658 obsolete.
3659 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3660 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3661 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3662
3663 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3664
3665 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3666 (hppa_value_returned_from_stack): Declare.
3667 (hppa_extract_return_value): Declare.
3668 * config/pa/hppa.mt: New file.
3669 * configure.tgt: Recognize hppa*-*-*.
3670 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3671
3672 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3673
3674 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3675 comment.
3676
3677 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3678
3679 * top.c (gdb_rl_operate_and_get_next): Make sure
3680 operate-and-get-next functions correctly even when the history
3681 list is completely filled.
3682
3683 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3684
3685 * MAINTAINERS (Target Instruction Set Architectures): Rename
3686 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3687 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3688 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3689 already listed under Host/Native.
3690
3691 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3692 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3693 mips*-*-*.
3694
3695 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3696
3697 * config/ia64/ia64.mt: New file.
3698 * config/alpha/alpha.mt: New file.
3699 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3700 ia64-linux-gnu. Mention that ia64-elf is broken.
3701 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3702
3703 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3704
3705 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3706 generic_func_frame_valid instead of func_frame_valid.
3707
3708 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3709
3710 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3711 procfs appears to be broken when debugging on multi-processor
3712 machines. So enable software single stepping in order to avoid
3713 using the procfs interface to do next/step operations, using
3714 internal breakpoints instead.
3715
3716 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3717 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3718 make this pc address equal to the value it would have if the
3719 system stepping capability was used. Also set a new flag used
3720 to ensure that we don't readjust the PC one more time later.
3721
3722 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3723 address by DECR_PC_AFTER_BREAK when software single step is
3724 in use for this architecture, as this has already been taken
3725 care of in handle_inferior_event().
3726
3727 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3728
3729 * infrun.c (handle_inferior_event): Minor reformatting, to make
3730 a rather long condition expression easier to read.
3731
3732 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3733
3734 * Makefile.in (gdbtk.o): Move to end of file.
3735 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3736 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3737 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3738 (gdbtk-wrapper.o, gdbres.o): Ditto.
3739
3740 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3741
3742 * Makefile.in (copying.o): Separate out compile rule.
3743 (hpux-thread.o, procfs.o, signals.o): Ditto.
3744 (v850ice.o, z8k-tdep.o): Ditto.
3745 (tui-file.o): Move to TUI section.
3746 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3747 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3748
3749 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3750
3751 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3752 skip_trampoline_code, for better namespace-proofing.
3753
3754 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3755
3756 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3757
3758 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3759
3760 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3761
3762 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3763 signal, check whether we hit a breakpoint before checking for a
3764 single step breakpoint. Otherwise, GDB fails to notice that a
3765 breakpoint has been hit when stepping onto a breakpoint.
3766
3767 2002-08-16 Keith Seitz <keiths@redhat.com>
3768
3769 * gdb-events.sh (clear_gdb_event_hooks): New function.
3770 * gdb-events.c: Regenerate.
3771 * gdb-events.h: Regenerate.
3772
3773 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3774
3775 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3776 not_a_sw_breakpoint.
3777 * breakpoint.h (bpstat_stop_status): Add parameter names.
3778
3779 2002-08-16 Grace Sainsbury <graces@redhat.com>
3780
3781 * remote.c (remote_insert_hw_breakpoint)
3782 (remote_remove_hw_breakpoint): Fix calculation of length field
3783 for Z-packet.
3784
3785 2002-08-15 Michael Snyder <msnyder@redhat.com>
3786
3787 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3788 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3789 (supply_fpregset): Ditto.
3790
3791 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3792 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3793 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3794 (TARGET_READ_SP): Delete.
3795 (DO_REGISTERS_INFO): Delete.
3796 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3797 Delete.
3798 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3799 from macros to functions.
3800
3801 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3802 (mips_register_convertible, mips_register_convert_to_virtual,
3803 mips_register_convert_to_raw): Make static.
3804 (mips_read_sp): New function.
3805 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3806 (mips_do_registers_info): Make static.
3807 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3808 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3809 (mips_register_convert_from_type, mips_register_convert_to_type):
3810 New functions.
3811 (mips_gdbarch_init): Set up function_start_offset,
3812 register_virtual_size, pc_in_sigtramp.
3813
3814 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3815
3816 * infcmd.c (vector_info): New function.
3817 (_initialize_infcmd): Add command "info vector".
3818 (print_vector_info): New function.
3819
3820 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3821 * gdbarch.h, gdbarch.c: Regenerate.
3822
3823 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3824
3825 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3826 ``print_all''. Only print vector registers when ``print_all''.
3827
3828 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3829
3830 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3831 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3832
3833 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3834 Add `args' parameter.
3835 * gdbarch.h, gdbarch.c: Regenerate.
3836
3837 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3838
3839 * infcmd.c (float_info): Call print_float_info.
3840 (print_float_info): New function. By default, print the
3841 floating-point registers.
3842
3843 * arch-utils.h (default_print_float_info): Delete declaration.
3844 * arch-utils.c (default_print_float_info): Delete function.
3845
3846 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3847
3848 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3849 out define.
3850
3851 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3852 FRAME.
3853
3854 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3855 * configure.host: Make i[3456]86-*-aix host obsolete.
3856 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3857 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3858 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3859 config/i386/xm-i386aix.h: Make files obsolete.
3860 * i386aix-nat.c: Make file obsolete.
3861 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3862 (i386aix-nat.o): Make target obsolete.
3863
3864 * config/i386/nm-gnu.h: Removed.
3865 * config/i386/nm-i386gnu.h: New file.
3866 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3867 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3868 Moved here from ...
3869 * config/i386/tm-i386gnu.h: ... here. Removed.
3870 * config/i386/xm-i386gnu.h: Removed.
3871 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3872 (NAT_FILE): Set to nm-i386gnu.h.
3873 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3874 * i386-tdep.c: New file.
3875 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3876 (i386gnu-tdep.o): Specify dependencies.
3877
3878 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3879
3880 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3881 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3882 Adjust a few comments to reflect reality a bit closer.
3883 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3884 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3885 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3886 target_insert_watchpoint, target_remove_watchpoint):
3887 Move defines to ...
3888 * config/i386/nm-i386sco5.h: ... here.
3889 (kernel_u_size): Add prototype. Improve a few comments and add
3890 protection against multiple inclusion.
3891
3892 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3893 out define.
3894
3895 * uw-thread.c (SP_ARG0): Define if not already defined.
3896 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3897
3898 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3899
3900 * config/i386/tm-i386.h: Don't include "regcache.h".
3901
3902 * i387-tdep.h (i387_print_float_info): New prototype.
3903 * i387-tdep.c (print_i387_value, print_i387_ext,
3904 print_i387_status_word, print_i387_control_word): Add `struct
3905 ui_file *' argument and use it for output.
3906 (i387_print_float_info): Renamed from i387_float_info. Add
3907 `struct gdbarch *' and `struct ui_file *' arguments and use the
3908 latter for output.
3909 * i386-tdep.c: Include "i387-tdep.h".
3910 (i386_gdbarch_init): Set print_float_info.
3911 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3912 (FLOAT_INFO): Remove define.
3913
3914 2002-08-13 Michael Snyder <msnyder@redhat.com>
3915
3916 * mips-tdep.c (mips_push_arguments): Rename to
3917 mips_eabi_push_arguments, and tune for EABI.
3918 (MIPS_REGS_HAVE_HOME_P): Delete.
3919 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3920 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3921 Delete references to mips_regs_have_home_p.
3922
3923 2002-08-14 Keith Seitz <keiths@redhat.com>
3924
3925 * Makefile.in (install-gdbtk): Create insight plugin directory.
3926 Install plugins.tcl file.
3927
3928 2002-08-14 Keith Seitz <keiths@redhat.com>
3929
3930 * configure.in: Move SUBDIRS to near top of the file so that
3931 --enable options may add things to it.
3932 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3933 * configure: Regenerate.
3934
3935 2002-08-13 Michael Snyder <msnyder@redhat.com>
3936
3937 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3938 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3939 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3940
3941 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3942
3943 * vax-tdep.c (vax_get_saved_register): Delete function.
3944 (vax_gdbarch_init): Update.
3945 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3946 (ns32k_gdbarch_init): Update.
3947 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3948 (alpha_gdbarch_init): Update.
3949
3950 2002-08-13 Andrew Cagney <cagney@redhat.com>
3951
3952 * regcache.c (init_regcache_descr): Overallocate the
3953 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3954 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3955 nr_raw_registers.
3956 (set_register_cached): Add range checking assertions. Use
3957 current_regcache.
3958
3959 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3960
3961 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3962 numbers for MMX registers.
3963
3964 2002-08-13 Andrew Cagney <cagney@redhat.com>
3965
3966 * i386-tdep.c (i386_gdbarch_init): Use
3967 generic_unwind_get_saved_register.
3968
3969 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3970
3971 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3972 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3973 target vector.
3974 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3975 Delete. Add comment regarding this now-deleted target method.
3976
3977 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3978
3979 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3980 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3981 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3982 real PC and the page number (if it's within the memory bank window).
3983 (m68hc11_pseudo_register_write): Likewise when saving.
3984 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3985 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3986 (m68hc11_register_raw_size): And use 32-bit for it.
3987 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3988 16K memory bank is used by the prog; also use the virtual pc.
3989
3990 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3991
3992 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3993 (m68hc11_gdbarch_init): Install it in gdbarch.
3994 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3995 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3996 (MSYMBOL_SIZE): New for documentation.
3997 (insn_return_kind): Enum to specify how a function returns.
3998 (frame_extra_info): Cleanup and record the return mode.
3999 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4000 register in address computation.
4001 (m68hc11_get_return_insn): New to obtain the return instruction used
4002 by the function.
4003 (m68hc11_frame_init_saved_regs): Take into account the return
4004 instruction used by the function for far and interrupt functions.
4005 (m68hc11_init_extra_frame_info): Take into account page register.
4006 (m68hc11_frame_args_address): Adjust according to the return mode.
4007 (show_regs): Print page register only when it's used.
4008
4009 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4010
4011 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4012 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4013 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4014 registers.
4015 (m68hc11_register_raw_size): Likewise.
4016
4017 2002-08-13 Andrew Cagney <cagney@redhat.com>
4018
4019 * i386-tdep.c (i386_register_name): Handle mmx registers.
4020 (mmx_regnum_p): New function.
4021 (i386_mmx_names): New array.
4022 (mmx_num_regs): New variable.
4023 (i386_pseudo_register_read): New function.
4024 (i386_pseudo_register_write): New function.
4025 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4026
4027 * regcache.c (regcache_raw_read_unsigned): New function.
4028 (regcache_raw_read_signed): New function.
4029 * regcache.h (regcache_raw_read_unsigned): Declare.
4030 (regcache_raw_read_signed): Declare.
4031
4032 2002-08-13 Andrew Cagney <cagney@redhat.com>
4033
4034 * regcache.c (regcache_raw_read_as_address): Delete function.
4035 (regcache_cooked_read_signed): New function.
4036 (regcache_cooked_read_unsigned): New function.
4037 * regcache.h (regcache_cooked_read_signed): Declare.
4038 (regcache_cooked_read_unsigned): Declare.
4039 (regcache_raw_read_as_address): Delete declaration.
4040
4041 * blockframe.c (generic_read_register_dummy): Use
4042 regcache_cooked_read_unsigned.
4043 * i386-tdep.c (i386_extract_struct_value_address): Use
4044 regcache_cooked_read_unsigned.
4045
4046 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4047
4048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4049 double sizes according to ELF ABI flags.
4050 (gdbarch_tdep): Record elf_flags.
4051
4052 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4053
4054 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4055 (m6812_prolog): They can appear in 68HC12 function prologue.
4056 (m68hc11_frame_chain): Cleanup.
4057
4058 2002-08-12 Andrew Cagney <cagney@redhat.com>
4059
4060 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4061 declarations.
4062 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4063 (i386_linux_register_raw_size): Delete function.
4064 (i386_linux_init_abi): Update.
4065 * i386-tdep.c (i386_register_raw_size): Delete function.
4066 (i386_register_byte): Delete function.
4067 (i386_gdbarch_init): Update.
4068 (i386_register_size): Delete array.
4069 (i386_register_offset): Delete array.
4070
4071 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4072 (REGISTER_RAW_SIZE): Delete macro.
4073 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4074 (REGISTER_BYTE): Delete macro.
4075
4076 2002-08-11 Aidan Skinner <aidan@velvet.net>
4077
4078 * ada-lang.c (ada_lookup_partial_symbol)
4079 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4080 prototype names so that grep ^func works properly.
4081
4082 * ada-lang.c (ada_array_element_type)
4083 (ada_lookup_partial_symbol): Fix typos in parameter list.
4084
4085 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4086 Fix prototype names so that grep ^func works properly.
4087
4088 2002-08-10 Andrew Cagney <cagney@redhat.com>
4089 Elena Zannoni <ezannoni@redhat.com>
4090 Martin M. Hunt <hunt@redhat.com>
4091
4092 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4093 (build_builtin_type_vec128i): Set the vector bit.
4094 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4095 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4096 (build_builtin_type_vec64): New function.
4097 (build_builtin_type_vec64i): New function.
4098 (build_gdbtypes): Initialize builtin_type_vec64 and
4099 builtin_type_vec64i.
4100
4101 2002-08-09 Andrew Cagney <cagney@redhat.com>
4102
4103 * regcache.c (regcache_dump): Compare the register offset
4104 with REGISTER_BYTE.
4105 * arch-utils.c (generic_register_byte): New function.
4106 * arch-utils.h (generic_register_byte): Declare.
4107 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4108 * gdbarch.h, gdbarch.c: Regenerate.
4109
4110 2002-08-09 Andrew Cagney <cagney@redhat.com>
4111
4112 * regcache.c: Include "gdbcmd.h"
4113 (_initialize_regcache): Add commands "maintenance print
4114 registers", "maintenance print raw-registers" and "maintenance
4115 print cooked-registers".
4116 (enum regcache_dump_what): Define.
4117 (dump_endian_bytes): New function.
4118 (regcache_dump): New function.
4119 (regcache_print): New function.
4120 (maintenance_print_registers): New function.
4121 (maintenance_print_raw_registers): New function.
4122 (maintenance_print_cooked_registers): New function.
4123 * Makefile.in (regcache.o): Update dependencies.
4124
4125 2002-08-09 Michael Snyder <msnyder@redhat.com>
4126
4127 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4128 (mips_push_arguments): Correct some comments. Use paddr_nz
4129 for printing addresses in debug output. Replace static
4130 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4131 (mips_n32n64_push_arguments): New function, cloned from
4132 mips_push_arguments and tuned for the n32/n64 ABI.
4133 (mips_push_register): Buffer needs dynamic allocation.
4134 (mips_print_register): Ditto.
4135 (do_gp_register_row): Ditto.
4136 (mips_store_return_value): Ditto.
4137 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4138
4139 2002-08-09 Don Howard <dhoward@redhat.com>
4140
4141 * memattr.c (mem_info_command): Print special case of upper bound
4142 as max CORE_ADDR + 1.
4143
4144 2002-08-08 Michael Snyder <msnyder@redhat.com>
4145
4146 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4147 returns structs by ref if they're too big to fit in two registers.
4148
4149 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4150
4151 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4152 saved regs value.
4153 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4154 mips_find_saved_regs().
4155 (mips_pop_frame): Likewise.
4156
4157 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4158
4159 * blockframe.c (frame_saved_regs_register_unwind): Revise
4160 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4161 frames are in use.
4162
4163 2002-08-09 Grace Sainsbury <graces@redhat.com>
4164
4165 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4166 T-packets; the 'a' is not taken as a register number.
4167 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4168 (remote_stopped_data_address): New functions; add to target
4169 vector.
4170 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4171 prototypes to match other implementations of this
4172 function. replace integer argument with pointer -- the length
4173 field in the Z-packet is the length of what is pointed to or 1 if
4174 pointer is null. Add to target vector.
4175 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4176 target vector.
4177
4178 From Mark Salter:
4179 * remote.c (remote_wait): Add support to extract optional
4180 watchpoint information from T-packet. Ignore unrecognized
4181 optional info in T-packet.
4182 (remote_async_wait): Ditto.
4183
4184 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4185
4186 * cli/cli-dump.c: Change fopen modes to use binary open modes
4187 as defined in include/fopen-bin.h throughout.
4188
4189 2002-08-08 Michael Snyder <msnyder@redhat.com>
4190
4191 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4192
4193 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4194
4195 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4196 assertion failure by returning early after a warning.
4197
4198 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4199
4200 * mips-tdep.c (mips_find_saved_regs): Make static.
4201 (mips_frame_init_saved_regs): New function.
4202 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4203 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4204 (mips_find_saved_regs): Delete declaration.
4205
4206 2002-08-08 Grace Sainsbury <graces@redhat.com>
4207
4208 * remote.c (remote_wait, remote_async_wait): Change
4209 thread_num from int to ULONGEST.
4210 (unpack_varlen_hex): Change result parameter from
4211 int * to ULONGEST *.
4212
4213 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4214
4215 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4216 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4217 powerpc*-*-*.
4218 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4219
4220 2002-08-08 Andrew Cagney <cagney@redhat.com>
4221
4222 * gcore.c (override_derive_stack_segment): Delete variable.
4223 (preempt_derive_stack_segment): Delete function.
4224 (derive_stack_segment): Delete function.
4225 (default_derive_stack_segment): Renamed to derive_stack_segment.
4226 (override_derive_heap_segment): Delete variable.
4227 (preempt_derive_heap_segment): Delete function.
4228 (derive_heap_segment): Delete function.
4229 (default_derive_heap_segment): Rename to derive_heap_segment.
4230
4231 2002-08-06 Michael Snyder <msnyder@redhat.com>
4232
4233 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4234 * mips-tdep.c (mips_EABI_use_struct_convention,
4235 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4236 New functions. (mips_use_struct_convention): Delete.
4237 (mips_gdbarch_init): set use_gdbarch_convention.
4238
4239 2002-08-06 Michael Snyder <msnyder@redhat.com>
4240
4241 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4242 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4243 mips_o32_reg_struct_has_addr): New functions.
4244 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4245
4246 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4247
4248 * regcache.c (pseudo_register): Delete function.
4249 (fetch_register): Delete function.
4250 (store_register): Delete function.
4251 (regcache_raw_read, legacy_read_register_gen): Use
4252 target_fetch_registers instead of fetch_register.
4253 (legacy_write_register_gen, regcache_raw_write): Use
4254 target_store_register instead of store_register.
4255 (write_register_bytes): Ditto.
4256
4257 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4258 (STORE_PSEUDO_REGISTER): Delete.
4259 * gdbarch.h, gdbarch.c: Regenerate.
4260
4261 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4262
4263 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4264 write dump file binary.
4265
4266 2002-08-05 Michael Snyder <msnyder@redhat.com>
4267
4268 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4269 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4270 (mips_gdbarch_init): Set N32 target to be mips64.
4271
4272 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4273
4274 * frame.c (find_saved_register): Break out of loop once saved
4275 register address is found. Don't mention sparc in loop comment
4276 anymore.
4277
4278 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4279
4280 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4281 mips_default_saved_regsize to 8.
4282
4283 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4284
4285 * gcore.c: Do not include <sys/procfs.h>.
4286 * Makefile.in (gcore.o): Update dependencies.
4287
4288 2002-08-06 Andrew Cagney <cagney@redhat.com>
4289
4290 * configure.tgt: Make arc-*-* obsolete.
4291 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4292 * MAINTAINERS: Make arc-elf obsolete.
4293 * arc-tdep.c: Make file obsolete.
4294 * config/arc/arc.mt: Ditto.
4295 * config/arc/tm-arc.h: Ditto.
4296
4297 2002-08-05 Theodore A. Roth <troth@verinet.com>
4298
4299 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4300
4301 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4302
4303 * mcore-tdep.c (mcore_gdbarch_init): Use
4304 generic_unwind_get_saved_register instead of
4305 generic_get_saved_register.
4306 * v850-tdep.c (v850_gdbarch_init): Ditto.
4307 * frv-tdep.c (frv_gdbarch_init): Ditto.
4308 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4309 * s390-tdep.c (s390_gdbarch_init): Ditto.
4310 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4311 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4312 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4313
4314 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4315
4316 * objfiles.h: Add missing #include "symfile.h"
4317
4318 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4319
4320 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4321
4322 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4323 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4324 of FIELD_BITSIZE.
4325
4326 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4327
4328 * NEWS: Cleanup and nitpick.
4329
4330 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4331
4332 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4333
4334 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4335
4336 * Makefile.in (gdbtk-bp.o): Update dependencies.
4337 (gdbtk-register.o): Ditto.
4338 (gdbtk-varobj.o): Ditto.
4339
4340 2002-08-03 Andrew Cagney <cagney@redhat.com>
4341
4342 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4343 m68hc11_fetch_pseudo_register.
4344 (m68hc11_pseudo_register_write): Replace
4345 m68hc11_store_pseudo_register.
4346 (m68hc11_gdbarch_init): Update.
4347
4348 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4349
4350 * gdbarch.sh: Include "gdb_string.h".
4351 * gdbarch.c: Regenerate.
4352
4353 * regcache.c: Include "gdb_string.h".
4354 * ax-general.c: Ditto.
4355 * varobj.c: Ditto.
4356 * std-regs.c: Ditto.
4357 * fbsd-proc.c: Ditto.
4358 * thread.c: Ditto.
4359
4360 * Makefile.in (regcache.o): Update dependencies.
4361 (thread.o, gdbarch.o): Ditto.
4362 (ax-general.o, gdbarch.o): Ditto.
4363 (varobj.o, std-regs.o): Ditto.
4364 (fbsd-proc.o): Specify dependencies.
4365
4366 2002-08-02 Andrew Cagney <cagney@redhat.com>
4367
4368 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4369 regnum.
4370 (regcache_cooked_write): Ditto.
4371
4372 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4373
4374 * regcache.c (regcache_cooked_read): New function.
4375 (regcache_cooked_write): New function.
4376 (read_register_gen): Rewrite using regcache_cooked_read.
4377 (write_register_gen): Rewrite using regcache_cooked_write.
4378
4379 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4380 Declare.
4381
4382 2002-08-02 Andrew Cagney <cagney@redhat.com>
4383
4384 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4385 Replace the architecture methods register_read and register_write.
4386 * gdbarch.h, gdbarch.c: Regenerate.
4387 * regcache.c (init_regcache_descr): Update.
4388 (read_register_gen): Update.
4389 (write_register_gen): Update.
4390 (supply_register): Update comment.
4391
4392 * sh-tdep.c (sh_gdbarch_init): Update.
4393 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4394 `regcache' and `gdbarch' parameters. Make `buffer' a void
4395 pointer. Update code.
4396 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4397 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4398 void pointer. Update code.
4399 (sh64_register_write): Delete.
4400 (sh4_register_read): Delete.
4401 (sh64_register_read): Delete.
4402 (sh4_register_write): Delete.
4403 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4404 void pointer, `to' parameter a void pointer.
4405 (sh_sh64_register_convert_to_raw): Ditto.
4406
4407 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4408
4409 * mips-tdep.c (mips_register_virtual_type): Use architecture
4410 invariant return values.
4411
4412 2002-08-01 Andrew Cagney <cagney@redhat.com>
4413
4414 * linux-proc.c: Include "gdb_string.h".
4415 * Makefile.in (linux-proc.o): Update dependency list.
4416
4417 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4418
4419 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4420 comment.
4421
4422 2002-08-01 Grace Sainsbury <graces@redhat.com>
4423
4424 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4425 to_insert_watchpoint, to_remove_watchpoint,
4426 to_stopped_by_watchpoint, to_stopped_data_address,
4427 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4428 target vecctor. Define their corresponding macros so they call
4429 them.
4430
4431 * target.c: Add default and debug versions of for
4432 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4433 to_insert_watchpoint, to_remove_watchpoint,
4434 to_stopped_by_watchpoint, to_stopped_data_address,
4435 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4436
4437 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4438
4439 * mips-tdep.c (mips_register_virtual_type): New function.
4440 (mips_gdbarch_init): Register mips_register_virtual_type()
4441 with gdbarch machinery.
4442 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4443 this file instead of tm-bigmips.h.
4444 (MIPS_REGSIZE): Delete this macro.
4445 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4446 multiarch version in mips-tdep.c will be found.
4447
4448 2002-08-01 Andrew Cagney <cagney@redhat.com>
4449
4450 * NEWS: Menion that CHILL has been made obsolete.
4451
4452 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4453 * stabsread.c (read_range_type): Ditto.
4454 * gdbtypes.h: Ditto.
4455 * language.c (binop_type_check): Ditto.
4456 (binop_result_type): Ditto.
4457 (integral_type): Ditto.
4458 (character_type): Ditto.
4459 (string_type): Ditto.
4460 (boolean_type): Ditto.
4461 (structured_type): Ditto.
4462 (lang_bool_type): Ditto.
4463 (binop_type_check): Ditto.
4464 * language.h (_LANG_chill): Ditto.
4465 * dwarfread.c (set_cu_language): Ditto.
4466 * dwarfread.c (CHILL_PRODUCER): Ditto.
4467 * dwarfread.c (handle_producer): Ditto.
4468 * expression.h (enum exp_opcode): Ditto.
4469 * eval.c: Ditto for comments.
4470 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4471 * expprint.c (print_subexp): Ditto.
4472 (print_subexp): Ditto.
4473 * valops.c (value_cast): Ditto.
4474 (search_struct_field): Ditto.
4475 * value.h (COERCE_VARYING_ARRAY): Ditto.
4476 * symfile.c (init_filename_language_table): Ditto.
4477 (add_psymbol_with_dem_name_to_list): Ditto.
4478 * valarith.c (value_binop): Ditto.
4479 (value_neg): Ditto.
4480 * valops.c (value_slice): Ditto.
4481 * symtab.h (union language_specific): Ditto.
4482 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4483 (SYMBOL_DEMANGLED_NAME): Ditto.
4484 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4485 * defs.h (enum language): Ditto.
4486 * symtab.c (got_symtab): Ditto.
4487 * utils.c (fprintf_symbol_filtered): Ditto.
4488
4489 * ch-typeprint.c: Make file obsolete.
4490 * ch-valprint.c: Make file obsolete.
4491 * ch-lang.h: Make file obsolete.
4492 * ch-exp.c: Make file obsolete.
4493 * ch-lang.c: Make file obsolete.
4494
4495 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4496 CHILL_LIB.
4497 (TARGET_FLAGS_TO_PASS): Ditto.
4498 (CHILLFLAGS): Obsolete.
4499 (CHILL): Obsolete.
4500 (CHILL_FOR_TARGET): Obsolete.
4501 (CHILL_LIB): Obsolete.
4502 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4503 ch-valprint.c.
4504 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4505 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4506 ch-lang.o.
4507 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4508 targets.
4509
4510 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4511
4512 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4513 This does not change anything at the moment, but will be helpful
4514 later when full Ada support is integrated.
4515
4516 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4517
4518 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4519 help message.
4520
4521 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4522
4523 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4524 and save it in a local variable. Use variable in later test.
4525
4526 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4527
4528 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4529 test. (Thanks to Daniel Jacobowitz.)
4530
4531 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4532
4533 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4534 (mips_abi_strings): Add "n64".
4535 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4536
4537 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4538
4539 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4540 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4541
4542 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4543
4544 * utils.c (host_pointer_to_address, address_to_host_pointer):
4545 Use gdb_assert() instead of explicit call to internal_error().
4546
4547 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4548
4549 * Makefile.in (rs6000-nat.o): Update dependencies.
4550
4551 From Nicholas Duffek:
4552 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4553 (aix-thread.o): New rule.
4554 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4555 * config/powerpc/aix432.mh: New file.
4556
4557 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4558
4559 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4560 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4561 (fetch_core_registers, ppc_linux_supply_gregset)
4562 (ppc_linux_supply_fpregset): New functions.
4563 (ppc_linux_regset_core_fns): New.
4564 (_initialize_ppc_linux_tdep): Call add_core_fns.
4565 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4566 and ppc_linux_supply_gregset.
4567 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4568 (supply_fpregset): Call ppc_linux_supply_fpregset.
4569 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4570 corelow.o.
4571 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4572
4573 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4574
4575 * symtab.c (lookup_symbol): Demangle before lowercasing.
4576
4577 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4578
4579 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4580 declaration.
4581 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4582 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4583 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4584 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4585 "gdb_string.h".
4586 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4587 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4588 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4589 (avr-tdep.o, mon960-rom.o): Ditto.
4590 (aout_stabs_gnu_h): Define.
4591 (symtab_h): Remove $(gdb_obstack_h).
4592
4593 2002-07-30 Jim Blandy <jimb@redhat.com>
4594
4595 Patch from David Carlton <carlton@math.stanford.edu>:
4596 * gdbinit.in: Move the `dir' commands that add GDB's own source
4597 directory to the search path to the end, so that the `gdb' source
4598 directory will be searched first.
4599
4600 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4601
4602 * gdb_obstack.h: New file.
4603 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4604 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4605 * objfiles.h: Include "gdb_obstack.h".
4606 * Makefile.in (gdb_obstack_h): Define.
4607 (symtab_h): Add $(gdb_obstack_h).
4608 (objfiles_h): Add $(gdb_obstack_h).
4609
4610 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4611 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4612 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4613 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4614 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4615 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4616 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4617 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4618
4619 * Makefile.in (bcache.o): Update dependencies.
4620 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4621 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4622 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4623 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4624 (stabsread.o, symfile.o, symmisc.o): Ditto.
4625 (symtab.o, typeprint.o, macroexp.o): Ditto.
4626 (macrotab.o, mdebugread.o): Ditto.
4627 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4628 (coff_ecoff_h, aout_aout64_h): Define.
4629 (aout_stabs_gnu_h, libaout_h): Define.
4630
4631 2002-07-29 Andrew Cagney <cagney@redhat.com>
4632
4633 * regcache.c (struct regcache_descr): Rename nr_registers to
4634 nr_cooked_registers. Revise comments describing the structure
4635 member fields.
4636 (init_regcache_descr): Update.
4637 (init_legacy_regcache_descr): Update.
4638 (read_register_gen, write_register_gen): When a cooked register in
4639 the raw register range, directly access the value from the raw
4640 register cache.
4641
4642 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4643
4644 * z8k-tdep.c: Do not include "obstack.h".
4645 * h8300-tdep.c, h8500-tdep.c: Ditto.
4646 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4647 * valprint.c, v850-tdep.c: Ditto.
4648 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4649 * mn10200-tdep.c: Ditto.
4650
4651 * Makefile.in (z8k-tdep.o): Update dependencies.
4652 (m68hc11-tdep.o, valprint.o): Ditto.
4653 (v850-tdep.o, d10v-tdep.o): Ditto.
4654 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4655 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4656 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4657 (sh_opc_h, gdb_sim_sh_h): Define.
4658 (elf_sh_h, elf_bfd_h): Define.
4659 (opcode_m68hc11_h): Define.
4660 (OPCODES_SRC, OPCODES_DIR): define.
4661 (OPCODES): Use $(OPCODES_DIR).
4662 (gdb_sim_d10v_h): Rename sim_d10v_h.
4663 (gdb_sim_arm_h): Rename sim_arm_h.
4664
4665 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4666
4667 * utils.c (host_pointer_to_address, address_to_host_pointer):
4668 Change internal_error() message to indicate function responsible
4669 for the error.
4670
4671 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4672
4673 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4674 calls to local_hex_string_custom().
4675
4676 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4677
4678 * irix5-nat.c: Move IRIX shared library support from here...
4679 * solib-irix.c: ...to here. Revised substantially to work with
4680 generic solib framework.
4681
4682 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4683 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4684 * mips-irix-tdep.c: New file.
4685
4686 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4687 (mips-irix-tdep.o, solib-irix.o): New rules.
4688 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4689 solib-irix.o.
4690 * config/mips/irix6.mt (TDEPFILES): Likewise.
4691 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4692
4693 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4694
4695 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4696 disabled (via ``#if 0'') includes.
4697
4698 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4699
4700 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4701 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4702 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4703 Add support for the fpscr register.
4704 * rs6000-nat.c (regmap, fetch_inferior_registers)
4705 (store_inferior_registers, fetch_core_registers): Likewise.
4706
4707 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4708
4709 * rs6000-nat.c (language.h): Include.
4710 (special_regs): Delete this array.
4711 (regmap): New function.
4712 (fetch_register, store_register): Use regmap() to map gdb
4713 register numbers to ptrace register numbers. Also, use
4714 outputs from regmap() to make decisions regarding type of
4715 ptrace() call to make. In particular, don't compare against
4716 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4717 (fetch_inferior_registers, store_inferior_registers): Where
4718 possible, obtain register numbers from tdep struct. Don't
4719 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4720 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4721 (LAST_UISA_SP_REGNUM): Delete.
4722
4723 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4724
4725 * rs6000-nat.c (ppc-tdep.h): Include.
4726 (fetch_registers, store_register, fetch_core_registers): Don't
4727 access registers[] directly. Instead, use supply_register() or
4728 regcache_collect() as appropriate.
4729 (find_toc_address): Format hex address with local_hex_string().
4730
4731 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4732
4733 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4734 bfd/elf32-frv.c.
4735
4736 2002-07-24 Tom Tromey <tromey@redhat.com>
4737
4738 * jv-exp.y: Marked all strings with _().
4739 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4740 internal_error.
4741 (MethodInvocation, CastExpression, parse_number, yyerror,
4742 java_type_from_name, push_expression_name, yylex): Typo fixes.
4743
4744 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4745
4746 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4747 (tee_file_flush, tee_file_write, tee_file_fputs)
4748 (tee_file_isatty): New.
4749 * ui-file.h (tee_file_new): Add prototype.
4750
4751 2002-07-24 Aidan Skinner <aidan@velvet.net>
4752
4753 * ada-lang.c: Change k&r style function definitions to prototyped
4754 form.
4755 * ada-typeprint.c: Change k&r style function definitions to prototyped
4756 form.
4757 * ada-valprint.c: Change k&r style function definitions to prototyped
4758 form.
4759
4760 2002-07-24 Andrew Cagney <cagney@redhat.com>
4761
4762 * README: Remove reference to remote-bug.
4763 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4764 remote-bug.c.
4765 (m88k-nat.o): Delete rule.
4766 (m88k-tdep.o): Delete rule.
4767 (remote-bug.o): Delete rule.
4768 * MAINTAINERS: Mark as obsolete.
4769 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4770 * m88k-tdep.c: Make file obsolete.
4771 * config/m88k/m88k.mh: Ditto.
4772 * config/m88k/delta88v4.mh: Ditto.
4773 * config/m88k/delta88v4.mt: Ditto.
4774 * config/m88k/delta88.mt: Ditto.
4775 * config/m88k/delta88.mh: Ditto.
4776 * remote-bug.c: Ditto.
4777 * config/m88k/tm-delta88.h: Ditto.
4778 * config/m88k/nm-delta88v4.h: Ditto.
4779 * config/m88k/xm-delta88.h: Ditto.
4780 * config/m88k/xm-dgux.h: Ditto.
4781 * config/m88k/tm-m88k.h: Ditto.
4782 * config/m88k/nm-m88k.h: Ditto.
4783 * config/m88k/tm-delta88v4.h: Ditto.
4784 * m88k-nat.c: Ditto.
4785 * cxux-nat.c: Ditto.
4786 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4787 and m88*-*-* obsolete.
4788 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4789 m88*-*-* obsolete.
4790
4791 2002-07-24 Andrew Cagney <cagney@redhat.com>
4792
4793 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4794 constant. Same for local pointer variables.
4795 (extract_signed_integer): Ditto.
4796 * defs.h (extract_unsigned_integer): Update.
4797 (extract_signed_integer): Update.
4798
4799 2002-07-24 Andrew Cagney <cagney@redhat.com>
4800
4801 * regcache.c (regcache_raw_write): Change buf parameter to a
4802 constant void pointer.
4803 (regcache_raw_read): Change buf parameter to a void pointer.
4804 (legacy_write_register_gen): Change myaddr parameter a constant
4805 void pointer.
4806 (supply_register): Change val parameter to a const void pointer.
4807 * regcache.h (regcache_raw_write): Update declaration.
4808 (regcache_raw_read): Update declaration.
4809 (supply_register): Update declaration.
4810
4811 2002-07-24 Tom Tromey <tromey@redhat.com>
4812
4813 * defs.h (gdb_readline_wrapper): Declare.
4814 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4815 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4816 * top.c (gdb_readline_wrapper): New function.
4817 (command_line_input): Use it.
4818
4819 2002-07-24 Andrew Cagney <cagney@redhat.com>
4820
4821 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4822 regcache_read and regcache_write.
4823 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4824 * regcache.c: Update.
4825 * sh-tdep.c (sh64_push_arguments): Update comment.
4826 (sh_pseudo_register_read): Update.
4827 (sh_pseudo_register_write): Update.
4828 (sh4_register_read): Update.
4829 (sh4_register_write): Update.
4830 (sh64_pseudo_register_read): Update.
4831 (sh64_pseudo_register_write): Update.
4832 (sh64_register_read): Update.
4833 (sh64_register_write): Update.
4834 * i386-tdep.c (i386_extract_return_value): Update.
4835 (i386_extract_struct_value_address): Update.
4836 (i386_extract_return_value): Update.
4837 * blockframe.c (generic_read_register_dummy): Update.
4838 (generic_call_dummy_register_unwind): Update
4839 * infrun.c (write_inferior_status_register): Update.
4840
4841 2002-07-23 Jim Blandy <jimb@redhat.com>
4842
4843 * parser-defs.h (expression_context_pc): Make this extern.
4844 (Thanks to Michael Snyder.)
4845
4846 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4847
4848 GDB 5.2.1 released from 5.2 branch.
4849 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4850 * README: Update to mention 5.2.1.
4851
4852 2002-07-23 Mark Salter <msalter@redhat.com>
4853
4854 * remote.c (remote_read_bytes): Fix check for error.
4855
4856 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4857
4858 * aix-thread.c (language.h): Include.
4859 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4860 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4861 Print newlines at end of debug messages.
4862 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4863 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4864
4865 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4866
4867 * aix-thread.c (ppc-tdep.h): Include.
4868 (special_register_p): New function.
4869 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4870 (store_regs_user_thread): Use register number information from
4871 gdbarch_tdep struct instead of hardcoded offsets relative to
4872 FIRST_UISA_SP_REGNUM.
4873 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4874 special_register_p() instead of using FPLAST_REGNUM and
4875 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4876 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4877 will be MQ's register number.
4878
4879 2002-07-22 Michael Snyder <msnyder@redhat.com>
4880
4881 * aix-thread.c (ops): Rename to aix_thread_ops.
4882 (base_ops): Rename to base_target.
4883 (ops_attach): Rename to aix_thread_attach.
4884 (ops_detach): Rename to aix_thread_detach.
4885 (ops_resume): Rename to aix_thread_detach.
4886 (ops_wait): Rename to aix_thread_wait.
4887 (ops_kill): Rename to aix_thread_kill.
4888 (init_ops): Rename to init_aix_thread_ops.
4889 (ops_fetch_register): Rename to aix_thread_fetch_register.
4890 (ops_store_register): Rename to aix_thread_store_register.
4891 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4892 (ops_thread_alive): Rename to aix_thread_thread_alive.
4893 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4894 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4895 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4896 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4897 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4898 (store_regs_lib): Rename to store_regs_user_thread.
4899 (store_regs_kern): Rename to store_regs_kernel_thread.
4900
4901 2002-07-22 Michael Snyder <msnyder@redhat.com>
4902
4903 * aix-thread.c (ops_prepare_to_store): Eliminate.
4904 (init_ops): Don't initialize ops.prepare_to_store.
4905 (store_regs_kern): Pre-fetch register buffers from child,
4906 because some registers may not be in the cache. Copy
4907 regs from register cache only if they are cached.
4908 (store_regs_lib): Copy regs from register cache only
4909 if they are cached.
4910 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4911 fill_gprs64): Ditto.
4912
4913 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4914
4915 * aix-thread.c (gdb_assert.h): Include.
4916 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4917 register sizes (from register cache) match size of buffer holding
4918 register data.
4919 (fill_sprs32): Change parameter types to match those in the ptrace()
4920 buffer.
4921 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4922 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4923
4924 2002-07-22 Michael Snyder <msnyder@redhat.com>
4925
4926 * aix-thread.c (supply_sprs64): Cosmetic change.
4927 (supply_sprs32): Cosmetic change.
4928 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4929 (fill_sprs64): Use regcache_collect instead of read_register.
4930 (store_regs_lib): Use regcache_collect instead of
4931 read_register. Use fill_sprs32 instead of fill_sprs64,
4932 if debugging a 32-bit architecture.
4933 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4934 out of the register cache, instead of passing a pointer into
4935 the register cache directly to ptrace. Use regcache_collect
4936 insteaad of read_register.
4937 (ops_prepare_to_store): Use target_read_registers instead
4938 of read_register_bytes.
4939
4940 2002-07-20 Aidan Skinner <aidan@velvet.net>
4941
4942 * MAINTAINERS: Add self under write after approval.
4943
4944 2002-07-20 Aidan Skinner <aidan@velvet.net>
4945
4946 * ada-tasks.c: Change k&r style function definitions to prototyped
4947 form.
4948
4949 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4950
4951 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4952 * x86-64-tdep.c: Include "objfiles.h".
4953 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4954 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4955
4956 2002-07-17 Michal Ludvig <michal@suse.cz>
4957
4958 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4959 (update_context): Initialise cfa variable.
4960
4961 2002-07-17 Michael Snyder <msnyder@redhat.com>
4962
4963 * aix-thread.c: Shorten some long lines.
4964 Bring comments into line with code spec.
4965
4966 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4967
4968 * infrun.c: Re-indent using gdb_indent.sh.
4969
4970 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4971
4972 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4973 Leave the indentation temporarily untouched, to minimize the diffs.
4974
4975 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4976
4977 * stabsread.c: Make os9k sections of the code obsolete,
4978 for real this time.
4979 * stabsread.h: Make os9k sections of the code obsolete.
4980
4981 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4982
4983 * linux-low.c (regsets_store_inferior_registers): Add free()
4984 at the end of a loop to prevent memory leak.
4985 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4986 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4987 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4988 line a comment.
4989 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4990
4991 2002-07-17 Jim Blandy <jimb@redhat.com>
4992
4993 * macrocmd.c (info_macro_command): Remove newline from error
4994 message.
4995
4996 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4997
4998 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4999 (sh_gdbarch_init): Use it for sh-dsp.
5000
5001 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5002
5003 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5004 64-bit DWARF2 format.
5005
5006 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5007
5008 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5009 <sys/proc.h> when not available.
5010
5011 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5012
5013 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5014 * stabsread.c: Make os9k sections of the code obsolete.
5015 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5016 * config/i386/i386os9k.mt: Make file obsolete.
5017 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5018 (COMMON_OBS): Remove os9kread.o
5019 (SFILES): Remove os9kread.c.
5020 (os9kread.o, remote-os9k.o): Make target obsolete.
5021 * remote-os9k.c: Make file obsolete.
5022 * os9kread.c: Make file obsolete.
5023 * Makefile.in
5024
5025 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5026
5027 * NEWS: Mention that the FR30 has been made obsolete.
5028 * fr30-tdep.c: Make file obsolete.
5029 * config/fr30/tm-fr30.h: Ditto.
5030 * config/fr30/fr30.mt: Ditto.
5031 * configure.tgt: Make fr30-*-elf obsolete.
5032 * MAINTAINERS: Make fr30-elf obsolete.
5033
5034 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5035
5036 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5037 found is not inside a section.
5038
5039 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5040
5041 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5042 strerror().
5043 (pdc_realloc): Use xrealloc() instead of realloc().
5044
5045 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5046
5047 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5048 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5049 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5050 macros.
5051
5052 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5053
5054 * aix-thread.c (ptrace_check): Eliminate goto.
5055 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5056 problem.
5057
5058 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5059
5060 * aix-thread.c (gdbcmd.h): Include.
5061 (DEBUG, DBG, DBG2, dbg): Eliminate.
5062 (debug_aix_thread): New static global.
5063 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5064 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5065 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5066 invocations to DBG and DBG2 macros to test against
5067 ``debug_aix_thread'' and call fprintf_unfiltered().
5068 (_initialize_aix_thread): Add new command "set debug aix-thread".
5069
5070 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5071
5072 From Gerhard Tonn <TON@de.ibm.com>:
5073 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5074 instead of supply_register.
5075
5076 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5077
5078 * dwarf2cfi.c: Include "gdb_assert.h".
5079 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5080 non-NULL.
5081 (update_context): Do not use __func__. Add missing ``break''.
5082 (update_context): Do not use __func__.
5083
5084 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5085
5086 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5087 and its setting. Set gdbarch instruction printing functions
5088 directly. For non-rs6000 case use new function
5089 gdb_print_insn_powerpc.
5090 (gdb_print_insn_powerpc): New function.
5091
5092 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5093
5094 * NEWS: Mention that the d30v has been marked obsolete.
5095 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5096 * configure.tgt: Mark d30v-*-* as obsolete.
5097 * d30v-tdep.c: Mark file as obsolete.
5098 * config/d30v/d30v.mt: Ditto.
5099 * config/d30v/tm-d30v.h: Ditto.
5100
5101 2002-07-13 Aidan Skinner <aidan@velvet.net>
5102
5103 * ada-tasks.c (add_task_entry): replace calls to
5104 malloc() with xmalloc
5105 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5106
5107 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5108 ada_finish_decode_line_1, all_sals_for_line
5109 ada_breakpoint_rewrite): replace calls to free() with xfree()
5110
5111 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5112
5113 From Nicholas Duffek (with minor changes by Martin Hunt,
5114 Louis Hamilton, and Kevin Buettner):
5115 * aix-thread.c: New file.
5116
5117 2002-07-12 Petr Sorfa <petrs@caldera.com>
5118
5119 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5120 complaint for invalid attribute class or form.
5121 (read_func_scope): DW_AT_frame_base
5122 better handling of DW_AT_block*.
5123 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5124 better handling of DW_AT_block*.
5125 (read_common_block): DW_AT_location
5126 better handling of DW_AT_block*.
5127 (read_partial_die): DW_AT_location better handling
5128 of DW_AT_block*.
5129 (new_symbol): DW_AT_external better handling of
5130 DW_AT_block*. Proper initialization of variable
5131 "addr".
5132 (attr_form_is_block): New function that returns true
5133 if the attribute's form is of DW_FORM_block*.
5134
5135 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5136
5137 * valops.c (find_method_list): Remove comment about
5138 removed STATIC_MEMFUNCP argument.
5139 (value_find_oload_method_list): Likewise.
5140
5141 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5142
5143 From Nicholas Duffek:
5144 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5145 target_new_objfile_hook.
5146
5147 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5148
5149 From Nicholas Duffek:
5150 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5151 csect.
5152
5153 2002-07-12 Andrew Cagney <cagney@redhat.com>
5154
5155 * MAINTAINERS: Mention --enable-sim-build-warnings.
5156 (m68hc11-elf): Disable sim build warnings.
5157 (m32r-elf): Mark as broken obsolete candidate.
5158 (x86_64-linux-gnu): Mark as buildable with -Werror.
5159 (arm-elf): Change -w to ``,'' which enables warnings but not
5160 -Werror.
5161
5162 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5163
5164 * bcache.h: Update copyright.
5165 (struct bstring, struct bcache): Move definition to "bcache.c".
5166 Replaced by opaque declaration.
5167 (bcache_xfree): Replace free_bcache.
5168 (bcache_xmalloc, bcache_memory_used): Declare.
5169
5170 * bcache.c: Update copyright.
5171 (struct bstring, struct bcache): Moved to here from "bcache.h".
5172 Update comments.
5173 (bcache_xmalloc, bcache_memory_used): New functions.
5174 (bcache_xfree): Replace function free_bcache.
5175
5176 * Makefile.in (objfiles.o): Add $(bcache_h).
5177 (objfiles_h): Remove $(bcache_h).
5178 (symfile.o): Add $(bcache_h).
5179
5180 * symmisc.c: Update copyright.
5181 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5182 (print_objfile_statistics): Use bcache_memory_used.
5183
5184 * symfile.c: Include "bcache.h".
5185 (reread_symbols): Use bcache_xfree.
5186 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5187 (add_psymbol_to_list): Pass psymbol_cache by value.
5188 (add_psymbol_with_dem_name_to_list): Ditto.
5189
5190 * objfiles.h: Update copyright.
5191 (struct bcache): Declare opaque. Do not include "bcache.h".
5192 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5193 bcache'' pointers.
5194 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5195
5196 * objfiles.c: Include "bcache.h". Update copyright.
5197 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5198 macro_cache.
5199 (free_objfile): Use bcache_xfree.
5200
5201 2002-07-11 Grace Sainsbury <graces@redhat.com>
5202
5203 * monitor.c (monitor_fetch_register): Make name a constant.
5204 (monitor_store_register): Same.
5205
5206 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5207
5208 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5209 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5210 (finish_block) For non-function blocks, hash the symbol table. For
5211 function blocks, mark the symbol table as unhashed.
5212 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5213 (msymbol_hash_iw): Likewise.
5214 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5215 value.
5216 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5217 (lookup_minimal_symbol): Likewise for both.
5218 * symtab.h (struct block): Add `hashtable' flag. Comment the
5219 hashtable.
5220 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5221 (ALL_BLOCK_SYMBOLS): Update.
5222 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5223 (struct symbol): Add `hash_next' pointer.
5224 * symtab.c (lookup_block_symbol): Search using the hash table when
5225 possible.
5226 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5227 (search_symbols, find_addr_symbol): Likewise.
5228
5229 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5230 (read_dst_symtab): Likewise.
5231 * jv-lang.c (get_java_class_symtab): Likewise.
5232 * mdebugread.c: Include "gdb_assert.h".
5233 (shrink_block): Assert that the block being modified is not hashed.
5234 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5235 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5236 symbols.
5237 (dump_symtab): Recognize hashed blocks.
5238 * printcmd.c (print_frame_args): Assert that function blocks do not
5239 have hashed symbol tables.
5240 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5241 (fill_in_ada_prototype, debug_print_block): Likewise.
5242 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5243
5244 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5245
5246 * stack.c (print_frame): Use result of frame_address_in_block()
5247 instead of fi->pc when evaluating symbols.
5248 (backtrace_command_1): Ditto.
5249
5250 2002-07-11 Andrew Cagney <cagney@redhat.com>
5251
5252 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5253 Make static.
5254
5255 * arm-tdep.c (arm_register_name): Make return type constant.
5256
5257 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5258
5259 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5260 prototype.
5261 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5262 * s390-tdep.c (s390_fp_regnum): Ditto.
5263 (s390_read_fp): Ditto.
5264 (s390_pop_frame): Ditto.
5265 (_initialize_s390_tdep): Ditto.
5266 * remote.c (get_remote_state): Ditto.
5267 * procfs.c (mappingflags): Ditto.
5268 * memattr.c (_initialize_mem): Ditto.
5269 * mcore-tdep.c (mcore_pop_frame): Ditto.
5270 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5271 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5272 * language.c (set_case_str): Ditto.
5273 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5274 * frv-tdep.c (new_variant): Ditto.
5275 (frv_stopped_data_address): Ditto.
5276 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5277 (context_alloc): Ditto.
5278 (frame_state_alloc): Ditto.
5279 (unwind_tmp_obstack_init): Ditto.
5280 (unwind_tmp_obstack_free): Ditto.
5281 (cfi_read_fp): Ditto.
5282 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5283 (cris_pop_frame): Ditto.
5284 * c-lang.c (scanning_macro_expansion): Ditto.
5285 (finished_macro_expansion): Ditto.
5286 (c_preprocess_and_parse): Ditto.
5287 * gdbarch.sh: Ditto.
5288 * gdbarch.h, gdbarch.c: Regenerate.
5289 * config/mn10200/tm-mn10200.h: Adjust indentation.
5290 * target.c: Adjust indentation.
5291 * symtab.h: Adjust indentation.
5292 * stabsread.h: Adjust indentation.
5293 * remote-es.c: Adjust indentation.
5294 * os9kread.c: Adjust indentation.
5295
5296 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5297
5298 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5299 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5300
5301 2002-07-10 Grace Sainsbury <graces@redhat.com>
5302
5303 * NEWS: Mention m68k, mcore multi-arching.
5304 * MAINTAINERS: Change status of m68k, mcore to reflect
5305 multi-arching.
5306
5307 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5308
5309 * valops.c (find_overload_match): Free oload_syms.
5310
5311 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5312
5313 Define HAVE_SYS_PROC_H if sys/proc.h exists
5314 * configure.in: Add check for sys/proc.h
5315 * config.in: Regenerate.
5316 * configure: Regenerate.
5317
5318 2002-07-09 Grace Sainsbury <graces@redhat.com>
5319
5320 * config/m68k/tm-m68k.h: Remove macros wrapped in
5321 #if !GDB_MULTI_ARCH.
5322
5323 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5324
5325 * config.in, configure: Regenerate.
5326
5327 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5328
5329 * dwarf2cfi.c: Include "gcore.h".
5330 (execute_stack_op): Fix implementation of the
5331 DW_OP_deref and DW_OP_deref_size operators by letting do their
5332 lookup in the target.
5333
5334 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5335
5336 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5337 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5338 tdep->sc_sp_offset.
5339
5340 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5341
5342 Fix PR gdb/595, gdb/602
5343 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5344 Don't call value_cast, just read the vtable pointer; update comments
5345 to match.
5346
5347 2002-07-05 Grace Sainsbury <graces@redhat.com>
5348
5349 * config/mcore/tm-mcore.h: Remove file.
5350 * config/mcore/mcore.mt: Remove definition of TM_FILE
5351 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5352
5353 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5354
5355 * i386bsd-tdep.c: Include "gdb_string.h".
5356
5357 2002-07-04 Grace Sainsbury <graces@redhat.com>
5358
5359 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5360 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5361 mcore-tdep.
5362 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5363 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5364 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5365 (RETVAL_REGNUM): Move macros from tm-mcore.h
5366 (mcore_reg_struct_has_addr): New function.
5367 (mcore_gdbarch_init): Added initializations for the macros removed
5368 from tm-mcore.h.
5369
5370 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5371
5372 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5373 traditonal string branding within the ELF header.
5374
5375 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5376
5377 * symtab.c (remove_params): New function.
5378 (make_symbol_overload_list): Use it instead of cplus_demangle.
5379 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5380
5381 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5382
5383 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5384
5385 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5386 New variables.
5387 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5388 and tdep->sigtramp_end.
5389 * i386obsd-nat.c: New file.
5390 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5391
5392 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5393 Don't call get_current_frame().
5394
5395 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5396
5397 * i386-nat.c (child_post_startup_inferior): New function
5398 calling i386_cleanup_dregs if
5399 I386_USE_GENERIC_WATCHPOINTS is defined.
5400 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5401 conditional to acknowledge that i386-nat.c has its
5402 own child_post_startup_inferior function.
5403
5404 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5405
5406 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5407 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5408 instead of MAX_REGISTER_RAW_SIZE.
5409 (i386_extract_return_value, i386_extract_struct_value_address):
5410 Convert to use regcache.
5411 (i386_gdbarch_init): Set max_register_raw_size and
5412 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5413 Set extract_return_value and extract_struct_value_address instead
5414 of their deprecated variants.
5415
5416 Convert i386 target to generic dummy frames.
5417 * i386-tdep.c: Include "symfile.h".
5418 (i386_frameless_signal_p): Consider a function to be frameless if
5419 the pc points at the first instruction of the function.
5420 (i386_frame_chain): Handle (generic) call dummies.
5421 (i386_frame_saved_pc): Likewise.
5422 (i386_frame_init_saved_regs): Remove code dealing with call
5423 dummies on the stack.
5424 (i386_push_dummy_frame): Removed.
5425 (i386_call_dummy_words): Removed.
5426 (i386_fix_call_dummy): Removed.
5427 (i386_push_return_address): New function.
5428 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5429 parameter, and don't call get_current_frame.
5430 (i386_pop_frame): New function.
5431 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5432 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5433 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5434 call_dummy_length to 0, set call_dummy_words to NULL, set
5435 sizeof_call_dummy_words to 0, set fix_call_dummy to
5436 generic_fix_call_dummy, set pc_in_call_dummy to
5437 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5438 generic_push_dummy_frame, set push_return_address to
5439 i386_push_return_address and set frame_chain_valid to
5440 generic_file_frame_chain_valid.
5441
5442 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5443
5444 * gdbarch.sh (struct regcache): Add opaque declaration.
5445 (EXTRACT_RETURN_VALUE): New architecture method.
5446 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5447 * gdbarch.h, gdbarch.c: Regenerate.
5448 * arch-utils.c (legacy_extract_return_value): New function.
5449 * arch-utils.h (legacy_extract_return_value): Declare.
5450 * values.c (value_being_returned): Re-enable code handling
5451 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5452 deprecated_grub_regcache_for_registers call to block handling
5453 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5454 (EXTRACT_RETURN_VALUE): Do not define.
5455
5456 2002-07-03 Grace Sainsbury <graces@redhat.com>
5457
5458 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5459 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5460 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5461 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5462 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5463 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5464 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5465 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5466 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5467 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5468 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5469 argument so the function fits the prototype in the architecture
5470 vector.
5471 (mcore_pop_frame): Remove argument so the function fits the
5472 prototype. Use get_current_frame instead of the argument.
5473 (mcore_push_arguments): Change type of struct_return so the
5474 function can be used in the architecture vector.
5475 (mcore_store_struct_return): Add.
5476 (mcore_frame_init_saved_regs): Add.
5477 (mcore_gdbarch_init): Add function calls to replace the macros
5478 removed from tm-mcore.h
5479
5480 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5481
5482 * infcmd.c (print_return_value): Remove compatibility code calling
5483 deprecated_grub_regcache_for_registers.
5484
5485 * values.c: Include "regcache.h".
5486 (value_being_returned): Update. Use
5487 deprecated_grub_regcache_for_registers to extract the register
5488 buffer address.
5489 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5490 ``struct regcache''.
5491 * Makefile.in (values.o): Add dependency on $(regcache_h).
5492
5493 * inferior.h (run_stack_dummy): Change type of second parameter to
5494 a ``struct regcache''.
5495 * valops.c (hand_function_call): Change type of retbuf to ``struct
5496 regcache''. Allocate using regcache_xmalloc, clean using
5497 make_cleanup_regcache_xfree.
5498 * infcmd.c (run_stack_dummy): Update. Use
5499 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5500
5501 * regcache.c (do_regcache_xfree): New function.
5502 (make_cleanup_regcache_xfree): New function.
5503 * regcache.h (make_cleanup_regcache_xfree): Declare.
5504
5505 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5506
5507 * event-top.c (command_line_handler): Don't read past
5508 beginning of buffer.
5509
5510 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5511
5512 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5513 struct frame_id.
5514 (varobj_create): Store frame_id for root.
5515 (varobj_gen_name): Use xasprintf.
5516 (varobj_update): Save and restore frame using get_frame_id() and
5517 frame_find_by_id().
5518 (create_child): Use xasprintf.
5519 (new_root_variable): Initialize frame_id.
5520 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5521 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5522 to prevent memory leak.
5523
5524 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5525
5526 * valops.c (hand_function_call): Move declaration of retbuf to
5527 start of function, allocate using malloc, add a cleanup but before
5528 the inf_status cleanup, cleanup the buffer. Rename local variable
5529 old_chain to inf_status_cleanup.
5530
5531 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5532
5533 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5534
5535 * cli/cli-decode.c (cmd_func_p): New function.
5536 (cmd_func): New function.
5537
5538 * command.h: Add cmd_func() and cmd_func_p().
5539
5540 2002-07-03 Grace Sainsbury <graces@redhat.com>
5541
5542 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5543 (REGISTER_SIZE): Remove.
5544 (MAX_REGISTER_RAW_SIZE): Remove.
5545 (REGISTER_VIRTUAL_TYPE): Remove.
5546 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5547 (REGISTER_NAME): Remove.
5548 (USE_GENERIC_DUMMY_FRAMES): Remove.
5549 (CALL_DUMMY): Remove.
5550 (CALL_DUMMY_START_OFFSET): Remove.
5551 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5552 (CALL_DUMMY_LOCATION): Remove.
5553 (FIX_CALL_DUMMY): Remove.
5554 (CALL_DUMMY_ADDRESS): Remove.
5555 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5556 (SAVE_DUMMY_FRAME_TOS): Remove.
5557 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5558 (mcore_register_virtual_type): New function.
5559 (mcore_register_byte): New function.
5560 (mcore_register_size): New function.
5561 (mcore_register_name): New function.
5562 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5563 macros removed from tm-mcore.h.
5564 (mcore_dump_tdep): Add.
5565 (_initialize_mcore_tdep): Add gdbarch_register call.
5566
5567 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5568
5569 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5570 frameless_look_for_prologue, such that we actually call this
5571 function.
5572
5573 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5574
5575 * frame.h (frame_address_in_block): New function.
5576
5577 * blockframe.c (frame_address_in_block): New function extracted
5578 from get_frame_block().
5579 (get_frame_block): Use frame_address_in_block().
5580 (block_innermost_frame): Use frame_address_in_block() to match
5581 the frame pc address against the block boundaries rather than
5582 the frame pc directly. This prevents a failure when a frame pc
5583 is actually a return-address pointing immediately after the end
5584 of the given block.
5585
5586 2002-07-02 Grace Sainsbury <graces@redhat.com>
5587
5588 * MAINTAINERS: Add self under write after approval.
5589
5590 2002-07-02 Grace Sainsbury <graces@redhat.com>
5591
5592 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5593 used in architecture vector. The default is
5594 m68k_local_breakpoint_from_pc.
5595 (m68k_local_breakpoint_from_pc): Add.
5596 (enum): Add register numbers from tm-m68k.h.
5597 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5598 vector.
5599 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5600 GDB_MULTI_ARCH_PARTIAL.
5601 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5602 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5603 m68k-tdep.c.
5604 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5605 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5606 to enum in m68k-tdep.c
5607
5608 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5609
5610 * solib-osf.c (open_map): Compute the list of shared libraries
5611 loaded by the inferior, rather than the list of libraries loaded
5612 by GDB itself. Otherwise, GDB ends up reading the symbols from
5613 the wrong shared libraries...
5614
5615 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5616
5617 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5618 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5619 macros.
5620 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5621 Remove functions.
5622 (FRAMELESS_SIGNAL): Remove function.
5623 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5624 i386_linux_saved_pc_after_call): Removed.
5625 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5626 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5627 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5628
5629 * i386-tdep.c (i386_frameless_signal_p): New function.
5630 (i386_frame_chain): Deal with frameless signals.
5631 (i386_sigtramp_saved_sp): New function.
5632 (i386_frame_saved_pc): Deal with frameless signals.
5633 (i386_saved_pc_after_call): Make sure the correct value is
5634 returned just after entry into a sigtramp.
5635 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5636 i386fbsd4_sc_sp_offset): New variables.
5637 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5638 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5639 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5640 similiar to what we already did for sc_pc_offset.
5641 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5642 tdep->sc_sp_offset.
5643
5644 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5645
5646 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5647
5648 * config/i386/tm-x86-64linux.h: New.
5649 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5650 definitions.
5651 * config/i386/nm-x86-64.h: Rename to ...
5652 * config/i386/nm-x86-64linux.h: ... this one.
5653 * config/i386/x86-64linux.mh: Reflect the above change.
5654
5655 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5656
5657 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5658 with sigcontext_addr. Add sc_sp_offset.
5659 (i386bsd_sigtramp_saved_pc): Remove prototype.
5660 (i386bsd_sicontext_addr): Add prototype.
5661 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5662 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5663 (i386_svr4_sigtramp_saved_pc): Removed.
5664 (i386_svr4_sigcontext_addr): New function.
5665 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5666 Initialize tdep->sigcontext_addr instead. Initialize
5667 tdep->sc_pc_offset and tdep->sc_sp_offset.
5668 (i386_gdbarch_init): Likewise.
5669 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5670 any more.
5671 (i386bsd_sigtramp_saved_pc): Remove function.
5672 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5673 Initialize tdep->sigcontext_addr instead. Initialize
5674 tdep->sc_pc_offset.
5675 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5676 of tdep->sigtramp_saved_pc.
5677 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5678 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5679 instead.
5680
5681 * i386-tdep.c (i386_frameless_function_invocation,
5682 i386_frame_num_args, i386_frame_init_saved_regs,
5683 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5684 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5685 i386_extract_return_value, i386_store_return_value,
5686 i386_extract_struct_value_address, i386_register_virtual_type,
5687 i386_register_convertible, i386_register_convert_to_virtual,
5688 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5689 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5690 static.
5691
5692 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5693
5694 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5695
5696 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5697 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5698 this macro. Include "value.h".
5699
5700 2002-06-30 Aidan Skinner <aidan@velvet.net>
5701
5702 * ada-exp.tab.c: remove as it's a generated file
5703 * ada-lex.c: remove as it's a generated file
5704
5705 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5706
5707 * config/i386/tm-i386.h (struct frame_info, struct
5708 frame_saved_regs, struct value, struct type): Remove forward
5709 declarations.
5710
5711 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5712 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5713 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5714 (FILL_FPXREGSET): Define.
5715
5716 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5717
5718 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5719 i[3456]86-*-netbsd* case.
5720 * config/i386/tm-obsd.h: Removed.
5721 * config/i386/obsd.mt: Removed.
5722 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5723 core-aout.o.
5724 (MH_CFLAGS): Add -DYYDEBUG=0.
5725
5726 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5727 i386nbsd_sc_pc_offset on OpenBSD too.
5728
5729 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5730 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5731 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5732 define.
5733 * i386bsd-tdep.c: Include "arch-utils.h".
5734 (i386bsd_aout_in_solib_call_trampoline): New function.
5735 (i386bsd_init_abi): Set in_solib_call_trampoline to
5736 i386bsd_aout_in_solib_call_trampoline.
5737 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5738 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5739
5740 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5741
5742 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5743 (struct obstack, struct bcache): Add opaque declarations.
5744 * Makefile.in (macrotab_h): Update
5745
5746 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5747
5748 * blockframe.c (generic_find_dummy_frame): Change return type to
5749 ``struct regcache''.
5750 (struct dummy_frame): Replace field ``registers'' with regcache, a
5751 struct regcache object.
5752 (generic_find_dummy_frame): Update.
5753 (generic_push_dummy_frame): Update. Use regcache_xfree,
5754 regcache_xmalloc and regcache_cpy.
5755 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5756 regcache_xfree.
5757 (deprecated_generic_find_dummy_frame): Update.
5758 (generic_read_register_dummy): Update. Use
5759 regcache_read_as_address.
5760 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5761 (generic_get_saved_register): Update. Use regcache_read.
5762
5763 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5764
5765 * Makefile.in (objfiles_h): Add $(bcache_h).
5766 * objfiles.h: Include "bcache.h".
5767
5768 * Makefile.in (symtab_h): Remove $(bcache_h).
5769 * symtab.h: Do not include "bcache.h".
5770
5771 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5772
5773 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5774 generic_func_frame_chain_valid.
5775
5776 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5777
5778 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5779 * config/i386/tm-fbsd.h: Likewise.
5780
5781 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5782
5783 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5784 generic_unwind_get_saved_register.
5785
5786 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5787
5788 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5789 * regcache.c (supply_register): Add missing argument to
5790 register_buffer call.
5791
5792 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5793
5794 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5795 Solaris /bin/grep does not not like it. From Peter Schauer.
5796
5797 2002-06-26 Tom Tromey <tromey@redhat.com>
5798
5799 * command.h (add_setshow_cmd): Declare.
5800 (add_setshow_cmd_full): Declare.
5801 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5802 returns void. Use add_setshow_cmd_full.
5803 (add_setshow_cmd_full): New function.
5804 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5805 (add_setshow_boolean_cmd): Likewise.
5806
5807 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5808
5809 * config/vax/tm-vax.h: Protect from multiple inclusion.
5810 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5811 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5812 * config/vax/tm-vaxbsd.h: ...here. New file.
5813 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5814
5815 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5816
5817 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5818 (BELIEVE_PCC_PROMOTION): Remove.
5819 (AP_REGNUM): Move to...
5820 * config/vax/nm-vax.h: ...here.
5821 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5822 (vax_breakpoint_from_pc): New function.
5823 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5824 and gdbarch_believe_pcc_promotion.
5825
5826 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5827
5828 * Makefile.in (vax_tdep_h): Define.
5829 (vax-tdep.o): Use $(vax_tdep_h).
5830 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5831 (vax_dump_tdep): New function.
5832 (_initialize_vax_tdep): Register vax_dump_tdep.
5833 * vax-tdep.h: Include osabi.h.
5834 (struct gdbarch_tdep): New.
5835
5836 2002-06-26 Andrew Cagney <cagney@redhat.com>
5837
5838 * frame.h (deprecated_generic_find_dummy_frame): Rename
5839 generic_find_dummy_frame.
5840 * blockframe.c (generic_find_dummy_frame): Make static.
5841 (deprecated_generic_find_dummy_frame): New function.
5842 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5843 generic_find_dummy_frame with deprecated_find_dummy_frame.
5844 (sh64_nofp_frame_init_saved_regs): Ditto.
5845 (sh_fp_frame_init_saved_regs): Ditto.
5846 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5847 (s390_frame_chain): Ditto.
5848 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5849
5850 2002-06-26 Grace Sainsbury <graces@redhat.com>
5851
5852 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5853 gdbarch vector are at the top.
5854 (NUM_REGS): Remove.
5855 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5856 (FRAME_ARGS_ADDRESS): Remove.
5857 (FRAME_LOCALS_ADDRESS): Remove.
5858 (FRAME_NUM_ARGS): Remove.
5859 (FRAME_ARGS_SKIP): Remove.
5860 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5861 (m68k_gdbarch_init): Add gdbarch initializations for macros
5862 undefined in tm-m68k.h
5863
5864 2002-06-26 Grace Sainsbury <graces@redhat.com>
5865
5866 * monitor.h: Add the function regname to monitor_ops
5867 structure. This way NUM_REGS does not have to be a constant.
5868 * monitor.c (monitor_fetch_register): Added support for regname
5869 function. The function is called if the array regnames is NULL.
5870 (monitor_store_register): Same.
5871 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5872 regnames array.
5873 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5874 cpu32bug_cmds.regname to point to new function.
5875 * abug-rom.c (abug_regname): Same as above.
5876 (init_abug_cmds): Same.
5877 * dbug-rom.c (dbug_regname): Same as above.
5878 (init_dbug_cmds): Same.
5879 * remote-est.c (est_regname): Same.
5880 (init_est_cmds): Same.
5881 * rom68k-rom.c (rom68k_regname): Same.
5882 (init_rom68k_cmds): Same.
5883
5884 2002-06-25 Tom Tromey <tromey@redhat.com>
5885
5886 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5887
5888 2002-06-25 Andrew Cagney <cagney@redhat.com>
5889
5890 * infrun.c (stop_registers): Change variable's type to ``struct
5891 regcache'''.
5892 (xmalloc_inferior_status): Delete function.
5893 (free_inferior_status): Delete function.
5894 (normal_stop): Use regcache_cpy.
5895 (struct inferior_status): Change type of fields ``stop_registers''
5896 and ``registers'' to ``struct regcache''.
5897 (write_inferior_status_register): Use regcache_write.
5898 (save_inferior_status): Instead of calling
5899 xmalloc_inferior_status, allocate the inf_status buffer directly.
5900 Use regcache_dup_no_passthrough and regcache_dup to save the
5901 buffers.
5902 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5903 Replace the stop_registers regcache instead of overriding it. Use
5904 regcache_xfree. Instead of calling free_inferior_status, xfree
5905 the buffer directly.
5906 (discard_inferior_status): Use regcache_xfree. Instead of calling
5907 free_inferior_status, xfree the buffer directly.
5908 (build_infrun): Use regcache_xmalloc.
5909 (_initialize_infrun): Delete redundant call to build_infrun.
5910
5911 * Makefile.in (infcmd.o): Add $(regcache_h).
5912
5913 * infcmd.c: Include "regcache.h".
5914 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5915 obtain the address of `stop_registers' register buffer.
5916 (print_return_value): Ditto.
5917
5918 * inferior.h (struct regcache): Add opaque declaration.
5919 (stop_registers): Change variable's declared type to ``struct
5920 regcache''.
5921
5922 2002-06-24 Tom Tromey <tromey@redhat.com>
5923
5924 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5925 * target.c (initialize_targets): Fixed typo in
5926 trust-readonly-sections `show' documentation.
5927
5928 * main.c: Marked all strings with _().
5929
5930 2002-06-24 Don Howard <dhoward@redhat.com>
5931
5932 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5933 that means max CORE_ADDR+1.
5934 (lookup_mem_region): Ditto.
5935 (mem_info_command): Ditto.
5936
5937 2002-06-24 Grace Sainsbury <graces@redhat.com>
5938
5939 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5940 (REGISTER_BYTES_OK): Remove.
5941 (REGISTER_BYTES): Remove.
5942 (STORE_STRUCT_RETURN): Remove.
5943 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5944 (STORE_RETURN_VALUE): Remove.
5945 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5946 (FRAME_CHAIN): Remove.
5947 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5948 (FRAME_SAVED_PC): Remove.
5949 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5950 (m68k_store_struct_return): Add.
5951 (m68k_deprecated_extract_return_value): Add.
5952 (m68k_deprecated_extract_struct_value_address): Add.
5953 (m68k_store_return_value): Add.
5954 (m68k_frame_chain): Add.
5955 (m68k_frameless_function_invocation): Add.
5956 (m68k_frame_saved_pc): Add.
5957 (m68k_gdbarch_init): added set_gdbarch calls for new
5958 functions and deleted macros.
5959
5960 2002-06-23 Tom Tromey <tromey@redhat.com>
5961
5962 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5963 (ALLDEPFILES): Likewise.
5964 (udiheaders): Removed.
5965 (udip2soc.o): Likewise.
5966 (udi2go32.o): Likewise.
5967 (udr.o): Likewise.
5968 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5969
5970 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5971
5972 * infrun.c (_initialize_infrun): Delete unnecessary call to
5973 build_infrun.
5974
5975 * regcache.h: Update comments describing the regcache_cpy family
5976 of functions.
5977 (regcache_save, regcache_restore): Delete declaration.
5978 (regcache_save_no_passthrough): Delete declaration.
5979 (regcache_restore_no_passthrough): Delete declaration.
5980 * regcache.c (regcache_save): Delete function.
5981 (regcache_save_no_passthrough): Delete function.
5982 (regcache_restore): Delete function.
5983 (regcache_restore_no_passthrough): Delete function.
5984
5985 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5986
5987 * config/m68k/tm-m68k.h: Fix typo.
5988 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5989 (m68k_frame_init_saved_regs): Declare.
5990
5991 2002-06-21 Jim Blandy <jimb@redhat.com>
5992
5993 Remove some vestiges of Harris 88k support.
5994 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5995 register numbering quirk.
5996 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5997 odd symbols occurring in Harris 88k ELF targets.
5998
5999 2002-06-21 Tom Tromey <tromey@redhat.com>
6000
6001 * gdb_locale.h: New file.
6002 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6003 (defs_h): Added gdb_locale.h.
6004 * configure, config.in: Rebuilt.
6005 * configure.in (PACKAGE): Define.
6006 * defs.h: Include gdb_locale.h.
6007 * main.c (captured_main): Call setlocale, bindtextdomain,
6008 textdomain.
6009
6010 2002-06-21 Dave Brolley <brolley@redhat.com>
6011
6012 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6013 * config/frv/frv.mt: New file.
6014 * config/frv/tm-frv.h: New file.
6015 * configure.tgt: Support frv-*-*.
6016 * Makefile.in (frv-tdep.o): New target.
6017 * frv-tdep.c: New file.
6018 * NEWS: Mention frv.
6019
6020 2002-06-21 Dave Brolley <brolley@redhat.com>
6021
6022 * MAINTAINERS: Add self to "Write After Approval" list.
6023
6024 2002-06-21 Grace Sainsbury <graces@redhat.com>
6025
6026 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6027 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6028 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6029 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6030 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6031
6032 * m68k-tdep.c: Include arch-utils.h
6033 (m68k_register_raw_size): Add.
6034 (m68k_register_virtual_size): Add.
6035 (m68k_register_virtual_type): Add.
6036 (m68k_register_name): Add.
6037 (m68k_stack_align): Add.
6038 (m68k_register_byte): Add.
6039 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6040 tm-m68k.h.
6041
6042 2002-06-21 Grace Sainsbury <graces@redhat.com>
6043
6044 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6045 m68k_find_saved_regs.
6046 (m68k_pop_frame): Removed saved_regs structure, and replaced
6047 references to it with frame->saved_regs.
6048 (m68k_gdbarch_init): Added function calls to initialize the
6049 gdbarch structure.
6050 (m68k_fix_call_dummy): Add.
6051 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6052 (CALL_DUMMY): Remove.
6053 (CALL_DUMMY_LENGTH): Remove.
6054 (CALL_DUMMY_START_OFFSET): Remove.
6055 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6056 (FIX_CALL_DUMMY): Remove.
6057 (PUSH_DUMMY_FRAME): Remove.
6058 (POP_FRAME): Remove.
6059
6060 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6061
6062 * parse.c (parse_fprintf): New function used to avoid calls to
6063 fprintf in bison parser generated debug code.
6064 * parser-defs.h: Declaration of new parse_fprintf function.
6065 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6066 Set YYDEBUG to 1 by default.
6067 Set YYFPRINTF as parse_fprintf.
6068
6069 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6070
6071 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6072 encoding anymore.
6073 (pointer_encoding, enum ptr_encoding): New.
6074 (execute_cfa_program): Take care about pointer encoding.
6075 (dwarf2_build_frame_info): Only call parse_frame_info for
6076 .debug_frame and .eh_frame.
6077 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6078 fixed augmentation handling, added relative addressing,
6079 ignore duplicate FDEs. Added comments.
6080 * dwarf2cfi.c: Reindented.
6081
6082 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6083
6084 * event-top.c (command_handler): Don't use space_at_cmd_start
6085 unless there is sbrk() on the host. Assign time and space data
6086 to union fields of the appropriate length.
6087
6088 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6089
6090 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6091 x86_64_register_name. Return type changed to 'const char *'.
6092 (x86_64_register_name2nr): Rename to x86_64_register_number.
6093 (x86_64_gdbarch_init): Update to reflect the change.
6094 * x86-64-tdep.h: Ditto.
6095 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6096 (supply_fpregset): Ditto.
6097
6098 2002-06-19 Andrew Cagney <cagney@redhat.com>
6099
6100 * regcache.h: Update copyright.
6101 (struct regcache, struct gdbarch): Add opaque declarations.
6102 (current_regcache): Declare global variable.
6103 (regcache_read, regcache_write): Add gdbarch parameter.
6104 (regcache_save, regcache_save_no_passthrough)
6105 (regcache_restore, regcache_restore_no_passthrough)
6106 (regcache_dup, regcache_dup_no_passthrough)
6107 (regcache_cpy, regcache_cpy_no_passthrough)
6108 (deprecated_grub_regcache_for_registers)
6109 (deprecated_grub_regcache_for_register_valid)
6110 (regcache_valid_p): Add function declarations.
6111
6112 * regcache.c: Update copyright.
6113 (regcache_descr_handle): New global variable.
6114 (struct regcache_descr): Define.
6115 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6116 (regcache_descr, xfree_regcache_descr): New functions.
6117 (struct regcache): Define.
6118 (regcache_xmalloc, regcache_xfree): New functions.
6119 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6120 (regcache_dup, regcache_dup_no_passthrough): New functions.
6121 (regcache_valid_p, regcache_read_as_address): New functions.
6122 (deprecated_grub_regcache_for_registers): New function.
6123 (deprecated_grub_regcache_for_register_valid): New function.
6124 (current_regcache): New global variable.
6125 (register_buffer): Add regcache parameter. Update calls.
6126 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6127 (read_register_gen, write_register_gen): Update register_buffer
6128 call. Test for legacy_p instead of gdbarch_register_read_p or
6129 gdbarch_register_write_p.
6130 (regcache_collect): Update register_buffer call.
6131 (build_regcache): Rewrite. Use deprecated grub functions.
6132 (regcache_save, regcache_save_no_passthrough): New functions.
6133 (regcache_restore, regcache_restore_no_passthrough): New
6134 functions.
6135 (_initialize_regcache): Create the regcache_data_handle. Swap
6136 current_regcache global variable.
6137
6138 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6139 parameter to regcache_read and regcache_write calls.
6140 (sh4_register_read): Ditto.
6141 (sh64_pseudo_register_read): Ditto.
6142 (sh64_register_read): Ditto.
6143 (sh_pseudo_register_write): Ditto.
6144 (sh4_register_write): Ditto.
6145 (sh64_pseudo_register_write): Ditto.
6146 (sh64_register_write): Ditto.
6147
6148 * defs.h (XCALLOC): Define.
6149
6150 2002-06-19 Grace Sainsbury <graces@redhat.com>
6151
6152 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6153 * m68k-tdep.c (m68k_gdbarch_init): Added.
6154 (m68k_dump_tdep): Added.
6155
6156 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6157
6158 * ada-lang.c (fill_in_ada_prototype): Update comment.
6159
6160 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6161
6162 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6163 MIPS_ABI_LAST.
6164 (mips_abi_string, mips_abi_strings): New.
6165 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6166 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6167 tdep->mips_abi_string. Honor mips_abi_string. Default to
6168 O32 if no ABI is found.
6169 (mips_dump_tdep): Use mips_abi_strings.
6170 (mips_abi_update): New function.
6171 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6172 ``set mips abi'' and ``show mips abi''. Check the size of
6173 mips_abi_strings.
6174
6175 2002-06-19 Andrew Cagney <cagney@redhat.com>
6176
6177 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6178 constant.
6179
6180 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6181
6182 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6183 current frame using only the first stack size adjustment. All
6184 subsequent size adjustments are not considered to be part of
6185 the "static" part of the current frame.
6186 Compute the address of the saved registers relative to the
6187 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6188 in use in this frame.
6189
6190 2002-06-18 Don Howard <dhoward@redhat.com>
6191
6192 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6193 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6194 suggesting this solution.
6195
6196 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6197
6198 * config/romp/xm-rtbsd.h: Delete file.
6199 * config/romp/rtbsd.mh: Delete file.
6200
6201 2002-06-18 Keith Seitz <keiths@redhat.com>
6202
6203 * breakpoint.c (condition_command): Post breakpoint_modify
6204 when a condition is added to an existing breakpoint.
6205 (commands_command): Likewise for commands.
6206 (set_ignore_count): Likewise for ignore counts.
6207 If no tty, do not simply return, still need to send event
6208 notification.
6209 (ignore_command): Only print a newline if the command came
6210 from a tty.
6211 Don't call breakpoints_changed, since this is now properly
6212 handled by set_ignore_count.
6213
6214 2002-06-18 Andrew Cagney <cagney@redhat.com>
6215
6216 * MAINTAINERS: Note that cris-elf target can be compiled with
6217 -Werror.
6218 * cris-tdep.c (cris_register_name): Make return type constant.
6219 (cris_breakpoint_from_pc): Ditto.
6220
6221 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6222
6223 * frame.h (struct frame_info): Change type of context to
6224 'struct context'.
6225
6226 2002-06-17 Andrew Cagney <cagney@redhat.com>
6227
6228 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6229 pointer.
6230 * gdbarch.h, gdbarch.c: Regenerate.
6231 * config/mips/tm-mips.h (mips_register_name): Update.
6232 * i386-tdep.h (i386_register_name): Update.
6233 * mips-tdep.c (mips_register_name): Update
6234 * alpha-tdep.c (alpha_register_name): Update.
6235 * arch-utils.c (legacy_register_name): Update.
6236 * arch-utils.h (legacy_register_name): Update.
6237 * avr-tdep.c (avr_register_name): Update.
6238 * ia64-tdep.c (ia64_register_name): Update.
6239 * i386-tdep.c (i386_register_name): Update.
6240 * sparc-tdep.c (sparc32_register_name): Update.
6241 (sparc64_register_name): Update.
6242 (sparclite_register_name): Update.
6243 (sparclet_register_name): Update.
6244 * sh-tdep.c (sh_generic_register_name): Update.
6245 (sh_sh_register_name): Update.
6246 (sh_sh3_register_name): Update.
6247 (sh_sh3e_register_name): Update.
6248 (sh_sh_dsp_register_name): Update.
6249 (sh_sh3_dsp_register_name): Update.
6250 (sh_sh4_register_name): Update.
6251 (sh_sh64_register_name): Update.
6252 * s390-tdep.c (s390_register_name): Update.
6253 * rs6000-tdep.c (rs6000_register_name): Update.
6254 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6255 (ns32k_register_name_32382): Update.
6256 * d10v-tdep.c (d10v_ts2_register_name): Update.
6257 (d10v_ts3_register_name): Update.
6258 * xstormy16-tdep.c (xstormy16_register_name): Update.
6259 * vax-tdep.c (vax_register_name): Update.
6260 * v850-tdep.c (v850_register_name): Update.
6261 * m68hc11-tdep.c (m68hc11_register_name): Update.
6262 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6263 (am33_register_name): Update.
6264
6265 2002-06-17 Grace Sainsbury <graces@redhat.com>
6266
6267 * m68k-tdep.c: Reindented.
6268
6269 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6270
6271 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6272 list of predefined types.
6273
6274 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6275
6276 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6277 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6278 REGISTER_CONVERT_TO_RAW): Remove defines.
6279 (i386_register_virtual_type, i386_register_convertible,
6280 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6281 Remove prototypes.
6282 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6283 macros mentioned above.
6284
6285 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6286 (i386lynx_saved_pc_after_call): Remove prototype.
6287 * i386ly-tdep.c: Include "i386-tdep.h".
6288 (i386lynx_saved_pc_after_call): Make static. Use
6289 read_memory_nobpt instead of read_memory. Use
6290 read_memory_unsigned_integer instead of read_memory_integer.
6291 (i386lynx_init_abi): New function.
6292 (i386lynx_coff_osabi_sniffer): New function.
6293 (_initialize_i386bsd_tdep): New function.
6294
6295 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6296 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6297 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6298 (i386_fix_call_dummy): Remove prototype.
6299 * i386-tdep.c (i386_call_dummy_words): New variable.
6300 (i386_gdbarch_init): Adjust for removal of the
6301 macros mentioned above.
6302
6303 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6304
6305 * command.h (add_setshow_auto_boolean_cmd): Replace
6306 add_set_auto_boolean_cmd.
6307 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6308 add_set_auto_boolean_cmd.
6309 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6310 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6311 mask-address'' command.
6312 (show_mask_address): Add cmd parameter.
6313 * remote.c (add_packet_config_cmd): Update. Change type of
6314 set_func and show_func to cmd_sfunc_ftype.
6315 (_initialize_remote): Update `set remote Z-packet'
6316 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6317 (show_remote_protocol_e_packet_cmd): Ditto.
6318 (show_remote_protocol_E_packet_cmd): Ditto.
6319 (show_remote_protocol_P_packet_cmd): Ditto.
6320 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6321 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6322 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6323 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6324 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6325 (show_remote_protocol_Z_packet_cmd): Ditto.
6326 (show_remote_protocol_binary_download_cmd): Ditto.
6327 (show_remote_cmd): Pass NULL to all of above.
6328
6329 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6330
6331 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6332 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6333 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6334 POP_FRAME): Remove defines.
6335 (i386_push_arguments, i386_store_struct_return,
6336 i386_extract_return_value, i386_store_return_value,
6337 i386_extract_struct_value_address, i386_push_dummy_frame,
6338 i386_pop_frame): Renove prototypes.
6339 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6340 macros mentioned above.
6341
6342 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6343
6344 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6345 add_set_boolean_cmd.
6346 (add_setshow_cmd): New function.
6347 * command.h (add_setshow_boolean_cmd): Replace
6348 add_set_boolean_cmd.
6349 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6350 and ``set rdiromatzero''.
6351 * maint.c (_initialize_maint_cmds): Update commented out code.
6352 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6353 * target.c (initialize_targets): Update `set
6354 trust-readonly-sections'.
6355 * remote.c (_initialize_remote): Update `set remotebreak'.
6356
6357 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6358
6359 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6360 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6361 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6362 fit into multi-arch framework.
6363 (i386_breakpoint_from_pc): New function.
6364 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6365 above.
6366
6367 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6368 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6369 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6370 (i386_frameless_function_invocation, i386_frame_num_args,
6371 i386_frame_init_saved_regs): Remove prototypes.
6372 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6373 macros mentioned above.
6374
6375 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6376
6377 * cli/cli-decode.c (set_cmd_cfunc): Update.
6378 (set_cmd_sfunc): Update.
6379 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6380 (set_cmd_sfunc, set_cmd_cfunc): Update.
6381 * cli/cli-decode.h: Update.
6382
6383 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6384
6385 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6386 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6387
6388 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6389
6390 * defs.h (auto_boolean): Declare enum.
6391 * command.h (cmd_auto_boolean): Delete enum.
6392 * mips-tdep.c (mask_address_var): Update.
6393 (mips_mask_address_p): Update.
6394 (show_mask_address): Update.
6395 * remote.c (struct packet_config): Update.
6396 (update_packet_config): Update.
6397 (show_packet_config_cmd): Update.
6398 (packet_ok): Update.
6399 (add_packet_config_cmd): Update.
6400 (_initialize_remote):
6401 * command.h: Update.
6402 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6403 (do_setshow_command): Update.
6404 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6405 * cli/cli-decode.h: Update.
6406
6407 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6408
6409 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6410 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6411 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6412 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6413 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6414 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6415
6416 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6417 list of DJGPP COFF targets.
6418
6419 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6420 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6421 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6422 (FP0_REGNUM): Remove define.
6423 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6424 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6425 (i386_register_virtual_size): Remove protoype.
6426 * i386-tdep.c (i386_register_virtual_size): Removed.
6427 (i386_extract_return_value, i386_store_return_value): Use
6428 FP0_REGNUM instead of NUM_FREGS to determine whether the
6429 floating-point registers are available.
6430 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6431 Adjust for removal of macros mentioned above.
6432
6433 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6434
6435 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6436 comments.
6437 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6438 Remove prototypes.
6439 (supply_gregset, fill_gregset): Remove use of register keyword and
6440 remove declaration for regmap. Use I386_NUM_GREGS instead of
6441 NUM_REGS and NUM_FREGS.
6442 (FPREGSET_FSAVE_OFFSET): Remove.
6443 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6444 NUM_FREGS to determine whether the floating-point registers are
6445 available.
6446
6447 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6448 gnu_store_registers): Replace usage of NUM_GREGS with
6449 I386_NUM_GREGS.
6450
6451 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6452 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6453 usage of NUM_GREGS with I386_NUM_GREGS.
6454
6455 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6456
6457 * i386bsd-nat.c: Include "i386-tdep.h".
6458 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6459 I386_NUM_GREGS.
6460
6461 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6462 and associated comment. They no longer make any sense, since we
6463 don't use this file anymore on Linux.
6464
6465 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6466 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6467 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6468 elements in these arrays.
6469 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6470 MAX_NUM_REGS.
6471
6472 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6473
6474 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6475 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6476
6477 2002-06-14 Andrew Cagney <cagney@redhat.com>
6478
6479 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6480 EXTRACT_RETURN_VALUE.
6481 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6482 EXTRACT_STRUCT_VALUE_ADDRESS.
6483 * gdbarch.h, gdbarch.c: Regenerate.
6484
6485 * values.c (value_being_returned): Handle
6486 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6487 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6488
6489 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6490 * arm-tdep.c (arm_gdbarch_init): Update.
6491 * avr-tdep.c (avr_gdbarch_init): Update.
6492 * cris-tdep.c (cris_gdbarch_init): Update.
6493 * d10v-tdep.c (d10v_gdbarch_init): Update.
6494 * ia64-tdep.c (ia64_gdbarch_init): Update.
6495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6496 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6497 * s390-tdep.c (s390_gdbarch_init): Update.
6498 * sh-tdep.c (sh_gdbarch_init): Update.
6499 * s390-tdep.c (s390_gdbarch_init): Update.
6500 * sparc-tdep.c (sparc_gdbarch_init): Update.
6501 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6502 * v850-tdep.c (v850_gdbarch_init): Update.
6503 * vax-tdep.c (vax_gdbarch_init): Update.
6504 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6506
6507 * config/arc/tm-arc.h: Update.
6508 * config/d30v/tm-d30v.h: Update.
6509 * config/fr30/tm-fr30.h: Update.
6510 * config/h8300/tm-h8300.h: Update.
6511 * config/h8500/tm-h8500.h: Update.
6512 * config/i386/tm-i386.h: Update.
6513 * config/i386/tm-ptx.h: Update.
6514 * config/i386/tm-symmetry.h: Update.
6515 * config/i960/tm-i960.h: Update.
6516 * config/m32r/tm-m32r.h: Update.
6517 * config/m68k/tm-delta68.h: Update.
6518 * config/m68k/tm-linux.h: Update.
6519 * config/m68k/tm-m68k.h: Update.
6520 * config/m88k/tm-m88k.h: Update.
6521 * config/mcore/tm-mcore.h: Update.
6522 * config/mips/tm-mips.h: Update.
6523 * config/mn10200/tm-mn10200.h: Update.
6524 * config/pa/tm-hppa.h: Update.
6525 * config/pa/tm-hppa64.h: Update.
6526 * config/sparc/tm-sp64.h: Update.
6527 * config/sparc/tm-sparc.h: Update.
6528 * config/sparc/tm-sparclet.h: Update.
6529 * config/z8k/tm-z8k.h: Update.
6530
6531 2002-06-14 Andrew Cagney <cagney@redhat.com>
6532
6533 * Makefile.in (i386_linux_tdep_h): Define.
6534 (i386_tdep_h, i387_tdep_h): Define.
6535 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6536 $(i386_tdep_h) and $(i387_tdep_h).
6537 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6538
6539 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6540
6541 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6542 Already covered by the default.
6543
6544 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6545 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6546 (i386_gdbarch_init): Initialize long_double_format and long_double
6547 bit.
6548
6549 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6550 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6551 Move these to ...
6552 * config/i386/i386sol2.mh: ... here.
6553 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6554 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6555 (SIGCONTEXT_PC_OFFSET): Remove define.
6556 (IN_SIGTRAMP): Remove define.
6557 * i386-sol2-tdep.c: New file.
6558
6559 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6560 * config/i386/tm-i386nw.h: Removed.
6561
6562 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6563 USE_STRUCT_CONVENTION): Remove defines.
6564 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6565 (get_longjmp_target): Remove prototype.
6566 (IN_SIGTRAMP): Remove define.
6567 (i386bsd_in_sigtramp): Remove prototype.
6568 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6569 function. Update comment accordingly
6570 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6571 (FRAME_SAVED_PC): Remove define.
6572 (i386bsd_frame_saved_pc): Remove prototype.
6573 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6574 GET_LONGJMP_TARGET): Remove defines.
6575 (get_longjmp_target): Remove prototype.
6576 (IN_SIGTRAMP): Remove define.
6577 (i386bsd_in_sigtramp): Remove prototype.
6578 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6579 function. Update comment accordingly
6580 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6581 (FRAME_SAVED_PC): Remove define.
6582 (i386bsd_frame_saved_pc): Remove prototype.
6583 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6584 Remove prototype.
6585 (USE_STRUCT_CONVENTION): Remove prototype.
6586 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6587 declaration.
6588 (_initialize_i386bsd_nat): Revise logic to determine some
6589 constants at compile time when compiling a native GDB. Warn if
6590 things don't match up with what we expect.
6591 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6592 Remove variables.
6593 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6594 to use date stored in `struct gdbarch_tdep'.
6595 (i386bsd_sigcontext_offset): Remove varaible.
6596 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6597 stored in `struct gdbarch_tdep'.
6598 (i386bsd_frame_saved_pc): Make static.
6599 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6600 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6601 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6602 i386fbsd4_sc_pc_offset): New variables.
6603 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6604 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6605 functions.
6606 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6607 functions.
6608 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6609 Modify the value of i386fbsd_sigtramp_start and
6610 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6611 i386fbsd_sigtramp_end.
6612 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6613 function.
6614
6615 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6616 define to i386-linux-tdep.h.
6617 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6618 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6619 defines.
6620 (i386_linux_register_name, i386_linux_register_byte,
6621 i386_linux_register_raw_size): Remove prototypes.
6622 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6623 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6624 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6625 TARGET_WRITE_PC): Remove defines.
6626 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6627 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6628 i386_linux_write_pc): Remove prototypes.
6629 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6630 (get_longjmp_target): Remove prototype.
6631 * i386-linux-tdep.h: New file.
6632 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6633 * i386-linux-tdep.c: Include "i386-tdep.h" and
6634 "i386-linux-tdep.h".
6635 (i386_linux_register_name, i386_linux_register_byte,
6636 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6637 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6638 Make static.
6639 (i386_linux_init_abi): New function.
6640 (_initialize_i386_linux_tdep): New function.
6641
6642 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6643 (i386_saved_pc_after_call): Remove prototype.
6644 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6645 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6646 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6647 (i386_register_name, i386_stab_reg_to_regnum,
6648 i386_dwarf_reg_to_regnum): Remove prototypes.
6649 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6650 SIZEOF_SSE_REGS): Remove defines.
6651 (REGISTER_BYTES): Remove define.
6652 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6653 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6654 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6655 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6656 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6657 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6658 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6659 (get_longjmp_target): Remove prototype.
6660 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6661 (sigtramp_saved_pc): Remove define.
6662 (i386v4_sigtramp_saved_pc): Remove prototype.
6663 * config/i386/tm-go32.h (FRAME_CHAIN,
6664 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6665 (i386go32_frame_saved_pc): Remove prototype.
6666 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6667 (get_longjmp_target): Remove prototype.
6668 * i386-tdep.h: Include "osabi.h".
6669 (enum i386_abi): Removed.
6670 (enum struct_return): New enum.
6671 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6672 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6673 sc_pc_offset members.
6674 (i386_gdbarch_register_os_abi): Remove prototype.
6675 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6676 I386_SSE_NUM_REGS): New defines.
6677 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6678 I386_SSE_SIZEOF_REGS): New defines.
6679 (i386_register_name, i386_register_byte, i386_register_raw_size):
6680 New prototypes.
6681 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6682 (i386bsd_sigtramp_saved_pc): New prototype.
6683 * i386-tdep.c: Don't include "elf-bfd.h".
6684 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6685 i386_frame_chain, i386_saved_pc_after_call): Make static.
6686 (i386_frame_saved_pc): Rewrite to call architecture dependent
6687 function to deal with signal handlers. Make static.
6688 (i386go32_frame_saved_pc): Removed.
6689 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6690 Removed.
6691 (i386_get_longjmp_target): New function.
6692 (default_struct_convention, pcc_struct_convention,
6693 reg_struct_convention, valid_conventions, struct_convention): New
6694 variables.
6695 (i386_use_struct_convention): New function.
6696 (i386v4_sigtramp_saved_pc): Renamed to
6697 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6698 (i386_pc_in_sigtramp): New function.
6699 (i386_abi_names): Removed.
6700 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6701 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6702 Removed.
6703 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6704 i386_gdbarch_register_os_abi): Removed.
6705 (struct i386_abi_handler): Removed.
6706 (i386_abi_handler_list): Removed.
6707 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6708 functions.
6709 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6710 i386_nw_init_abi): New functions.
6711 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6712 Use set_gdbarch_xxx() calls instead of relying on macros for a
6713 number of calls.
6714 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6715 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6716 Register the various architecture variants defined in this file.
6717
6718 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6719
6720 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6721 (struct main_type): Remove arg_types member. Update comments for
6722 struct field.
6723 (TYPE_ARG_TYPES): Remove.
6724 (TYPE_FN_FIELD_ARGS): Update.
6725 (smash_to_method_type): Update prototype.
6726
6727 * c-typeprint.c (cp_type_print_method_args): Take method type
6728 instead of argument list. Use new argument layout. Simplify.
6729 (c_type_print_args): Use new argument layout. Simplify.
6730 (c_type_print_base): Update call to cp_type_print_method_args.
6731 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6732 argument; use die->type instead. Update call to
6733 smash_to_method_type.
6734 (read_structure_scope): Update call to dwarf2_add_member_fn.
6735 * gdbtypes.c (allocate_stub_method): Update comment.
6736 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6737 Use new argument layout.
6738 (check_stub_method): Use new argument layout. Don't count
6739 void as an argument.
6740 (print_arg_types): Update comments. Use new argument layout.
6741 (recursive_dump_type): Don't print arg_types member.
6742 * hpread.c (hpread_read_struct_type): Use new argument layout.
6743 (fixup_class_method_type): Likewise.
6744 (hpread_type_lookup): Likewise.
6745 * stabsread.c (read_type): Update calls to read_args and
6746 smash_to_method_type.
6747 (read_args): Use new argument layout. Simplify.
6748 * valops.c (typecmp): Use new argument layout. Update parameters
6749 and comments. Simplify.
6750 (hand_function_call): Use new argument layout.
6751 (search_struct_method): Update call to typecmp.
6752 (find_overload_match): Use new argument layout.
6753
6754 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6755
6756 * NEWS: Mention multithreaded debug support for gdbserver.
6757
6758 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6759
6760 * MAINTAINERS: Mention NEWS.
6761
6762 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6763
6764 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6765 (struct mips_objfile_private, compare_pdr_entries): New.
6766 (non_heuristic_proc_desc): Read the ".pdr" section if it
6767 is present.
6768
6769 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6770
6771 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6772 (arm_debug): New static variable.
6773 (_initialize_arm_tdep): Add ``set debug arm'' command.
6774
6775 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6776
6777 * Makefile.in (sim_arm_h): Define.
6778 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6779 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6780 (arm_register_sim_regno): New function, map an internal REGNUM
6781 onto a simulator register number.
6782 (arm_gdbarch_init): Set register_sim_regno.
6783
6784 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6785
6786 * MAINTAINERS: Add self.
6787
6788 2002-06-11 Jim Blandy <jimb@redhat.com>
6789
6790 * source.c (source_info): Mention whether the symtab has
6791 information about preprocessor macros.
6792
6793 Call the command `info macro', not `show macro'.
6794 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6795 Fix error message.
6796 (_initialize_macrocmd): Register `info_macro_command' in
6797 `infolist', not `showlist'.
6798
6799 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6800
6801 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6802 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6803 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6804 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6805 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6806 unconditionally.
6807 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6808 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6809 (_initialize_mips_tdep): Remove dead code.
6810 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6811 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6812 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6813 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6814 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6815 MIPS_LAST_FP_ARG_REGNUM): Remove.
6816
6817 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6818
6819 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6820 (unwind_tmp_obstack_free, parse_frame_info)
6821 (update_context, cfi_read_fp, cfi_write_fp)
6822 (cfi_frame_chain, cfi_init_extra_frame_info)
6823 (cfi_virtual_frame_pointer): Use the above function.
6824 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6825
6826 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6827
6828 * v850-tdep.c (v850_type_is_scalar): New function.
6829 (v850_use_struct_convention): Match current gcc implementation
6830 as close as possible.
6831 (v850_push_arguments): Fix stack_offset handling. Don't write
6832 struct_addr into register. This is done by v850_store_struct_return.
6833 (v850_extract_return_value): Care for structs.
6834 (v850_store_return_value): Ditto.
6835 (v850_store_struct_return): Actually write address.
6836
6837 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6838
6839 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6840 without debug information too.
6841
6842 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6843
6844 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6845 Make multi-arch pure.
6846 * gdbarch.h, gdbarch.c: Re-generate.
6847 * arm-tdep.c (arm_print_float_info): Update.
6848 * arch-utils.h (default_print_float_info): Update.
6849 * arch-utils.c (default_print_float_info): Update.
6850 * infcmd.c (float_info): Update call.
6851
6852 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6853
6854 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6855 the front of the initialize list.
6856
6857 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6858
6859 * infrun.c (struct inferior_status): Replace fields
6860 selected_frame_address and selected_level with field
6861 selected_frame_id.
6862 (save_inferior_status): Update. Use get_frame_id.
6863 (struct restore_selected_frame_args): Delete.
6864 (restore_selected_frame): Update. Use frame_find_by_id.
6865 (restore_inferior_status): Update.
6866
6867 * breakpoint.h (struct breakpoint): Change type of
6868 watchpoint_frame to frame_id.
6869 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6870 call to get_current_frame.
6871 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6872 get_current_frame.
6873 (watchpoint_check): Use frame_find_by_id.
6874
6875 * frame.h (record_selected_frame): Delete declaration.
6876 * stack.c (record_selected_frame): Delete function.
6877
6878 * frame.h (struct frame_id): Define.
6879 (get_frame_id): Declare.
6880 (frame_find_by_id): Declare.
6881 * frame.c (frame_find_by_id): New function.
6882 (get_frame_id): New function.
6883
6884 2002-06-10 Andrey Volkov <avolkov@transas.com>
6885
6886 * ser-e7kpc.c: Fix duplicated define and call of
6887 _initialize_ser_e7000pc
6888
6889 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6890
6891 * signals/signals.c (target_signal_from_host): Fix #ifdef
6892 SIGRTMIN case.
6893 (do_target_signal_to_host): Likewise.
6894
6895 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6896
6897 * mips-tdep.c (mips_find_abi_section): New function.
6898 (mips_gdbarch_init): Call it.
6899
6900 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6901
6902 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6903 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6904 after Andrew's 2002-06-08 gdbarch change.
6905
6906 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6907
6908 * i386-linux-nat.c (suppy_gregset): Don't supply
6909 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6910 register cache.
6911 (fill_gregset): Don't fetch it under the same circumstances.
6912
6913 2002-06-09 Andrew Cagney <cagney@redhat.com>
6914
6915 * Makefile.in (callback_h): Define.
6916 (remote_sim_h): Update path to remote-sim.h.
6917 (remote-rdp.o): Add $(callback_h).
6918 (remote-sim.o): Use $(callback_h).
6919 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6920 * remote-rdp.c: Include "gdb/callback.h".
6921
6922 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6923
6924 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6925 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6926
6927 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6928
6929 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6930 * rdi-share/serpardr.c: Ditto.
6931 * rdi-share/unixcomm.c: Ditto.
6932 * rdi-share/serdrv.c: Ditto.
6933 * rdi-share/hostchan.h: Ditto.
6934 * rdi-share/hostchan.c: Ditto.
6935 * rdi-share/host.h: Ditto.
6936 * rdi-share/devsw.c: Ditto.
6937
6938 * objfiles.h: Change type of obj_private to void pointer.
6939 * pa64solib.c: Update copyright. Don't include "assert.h", use
6940 strcmp instead of STREQ, use LONGEST, do not use PTR
6941 * somsolib.c: Ditto.
6942
6943 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6944 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6945 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6946
6947 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6948
6949 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6950 (default_get_saved_register): Delete function.
6951 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6952 generic_unwind_get_saved_register.
6953 * gdbarch.h, gdbarch.c: Re-generate.
6954
6955 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6956
6957 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6958 generic_func_frame_chain_valid.
6959 * gdbarch.h, gdbarch.c: Re-generate.
6960 * blockframe.c (generic_func_frame_chain_valid): Only check
6961 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6962 passing FP to PC_IN_CALL_DUMMY.
6963 Fix PR gdb/360.
6964
6965 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6966
6967 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6968 (register_gdbarch_data): Initialize init_p.
6969 (gdbarch_data): Initialize data pointer using the init function.
6970 (init_gdbarch_data): Delete function.
6971 (gdbarch_update_p): Update.
6972 (initialize_non_multiarch): Update.
6973 (struct gdbarch): Add field initialized_p.
6974 * gdbarch.h, gdbarch.c: Re-generate.
6975
6976 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6977
6978 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6979 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6980 better do the things actually here.
6981 * x86-64-tdep.c (x86_64_register_name2nr): New.
6982 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6983 (x86_64_gdbarch_init): Respect the above change.
6984 * x86-64-tdep.h (x86_64_register_name2nr)
6985 (x86_64_register_nr2name): Add prototypes.
6986 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6987
6988 2002-06-06 Michael Snyder <msnyder@redhat.com>
6989
6990 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6991 Delete extra braces and re-indent.
6992 (d10v_store_return_value): Char return values
6993 must be shifted over by one byte in R0.
6994 (d10v_extract_return_value): Delete extra braces, re-indent.
6995
6996 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6997
6998 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6999 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7000 (d10v_integer_to_address): Rewrite.
7001 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7002 the d10v specific functions which take care of converting to the
7003 correct space.
7004
7005 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7006
7007 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7008 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7009
7010 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7011
7012 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7013 includes.
7014 * config/tm-linux.h: Ditto.
7015 * config/alpha/tm-alphalinux.h: Ditto.
7016 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7017 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7018 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7019 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7020 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7021 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7022 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7023 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7024 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7025 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7026 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7027 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7028 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7029 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7030 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7031 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7032 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7033 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7034 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7035 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7036 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7037 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7038 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7039 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7040 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7041 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7042 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7043 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7044 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7045 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7046 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7047 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7048 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7049 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7050 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7051 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7052 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7053
7054 2002-05-04 Aidan Skinner <aidan@velvet.net>
7055
7056 * ada-exp.tab.c: New file
7057 * ada-exp.y: New file
7058 * ada-lang.c: New file
7059 * ada-lang.h: New file
7060 * ada-lex.c: New file
7061 * ada-lex.l: New file
7062 * ada-tasks.c: New file
7063 * ada-typeprint.c: New file
7064 * ada-valprint.c: New file
7065
7066 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7067
7068 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7069 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7070
7071 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7072
7073 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7074 insetead of ppc-linux-tdep.o.
7075 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7076 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7077
7078 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7079
7080 2002-05-07 Christian Groessler <chris@groessler.org>
7081 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7082 bit register contents for little endian hosts.
7083
7084 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7085
7086 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7087 any maintainer.
7088
7089 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7090
7091 * gdbarch.h: Regenerate.
7092
7093 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7094
7095 * MAINTAINERS: Add everyone to write-after-approval list.
7096
7097 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7098
7099 * stack.c (frame_info): Use frame_register_unwind instead of
7100 saved_regs. Mention when the SP is on the stack or in a register.
7101
7102 * frame.h (frame_register_unwind_ftype): Define. Document.
7103 (struct frame_info): Add field register_unwind and
7104 register_unwind_cache.
7105 (frame_register_unwind): Declare.
7106 (generic_unwind_get_saved_register): Declare.
7107
7108 * frame.c (frame_register_unwind): New function.
7109 (generic_unwind_get_saved_register): New function.
7110
7111 * blockframe.c (generic_call_dummy_register_unwind): New function.
7112 (frame_saved_regs_register_unwind): New function.
7113 (set_unwind_by_pc): New function.
7114 (create_new_frame): New function.
7115 (get_prev_frame): New function.
7116
7117 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7118
7119 * a29k-share/: Delete directory.
7120 * remote-vx29k.c: Delete file.
7121
7122 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7123
7124 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7125 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7126
7127 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7128
7129 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7130 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7131 (sparc64nbsd-nat.o)
7132 (sparcnbsd-nat.o)
7133 (sparcnbsd-tdep.o): New dependency lists.
7134 * NEWS: Note new UltraSPARC NetBSD native configuration.
7135 * configure.host (sparc64-*-netbsd*): New host.
7136 * configure.tgt (sparc-*-netbsdelf*)
7137 (sparc-*-netbsd*): Set gdb_target to nbsd.
7138 (sparc64-*-netbsd*): New target.
7139 * sparc64nbsd-nat.c: New file.
7140 * sparcnbsd-nat.c: New file.
7141 * sparcnbsd-tdep.c: New file.
7142 * sparcnbsd-tdep.h: New file.
7143 * config/sparc/nbsd.mt: New file.
7144 * config/sparc/nbsd64.mh: New file.
7145 * config/sparc/nbsd64.mt: New file.
7146 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7147 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7148 (HOST_IPC): Remove.
7149 * config/sparc/nbsdaout.mt: Remove.
7150 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7151 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7152 (HOST_IPC): Remove.
7153 * config/sparc/nbsdelf.mt: Remove.
7154 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7155 sparc-nat.c compatiblity defines.
7156 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7157 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7158 * config/sparc/tm-nbsd64.h: New file.
7159 * config/sparc/tm-nbsdaout.h: Remove.
7160 * config/sparc/xm-nbsd.h: Remove.
7161
7162 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7163
7164 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7165 * sparc-tdep.c: Include osabi.h.
7166 (gdbarch_tdep): Add osabi member.
7167 (_initialize_sparc_tdep): Use gdbarch_register.
7168 (sparc_gdbarch_init): Use generic OS ABI framework.
7169 (sparc_dump_tdep): New function.
7170
7171 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7172
7173 * corefile.c (do_captured_read_memory_integer): Return non-zero
7174 result.
7175 (safe_read_memory_integer): Copy result of memory read when
7176 status is non-zero. Also, add comments.
7177
7178 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7179
7180 * Makefile.in (ppc_tdep_h): Define.
7181 (ppc-linux-nat.o)
7182 (ppc-linux-tdep.o)
7183 (rs6000-tdep.o): Use $(ppc_tdep_h).
7184 (ppc-sysv-tdep.o)
7185 (ppcnbsd-nat.o)
7186 (ppcnbsd-tdep.o): New dependency lists.
7187 * ppc-tdep.h: Use generic OS ABI framework.
7188 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7189 (ppc_linux_init_abi): New functions.
7190 (ppc_sysv_abi_broken_use_struct_convention)
7191 (ppc_sysv_abi_use_struct_convention)
7192 (ppc_sysv_abi_push_arguments): Move to...
7193 * ppc-sysv-tdep.c: ...here.
7194 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7195 * rs6000-tdep.c (process_note_abi_tag_sections)
7196 (get_elfosabi): Remove.
7197 (rs6000_gdbarch_init): Use generic OS ABI framework.
7198 (rs6000_dump_tdep): New function.
7199 (_initialize_rs6000_tdep): Use gdbarch_register.
7200 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7201 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7202 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7203 of ppc-linux-tdep.o.
7204 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7205 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7206 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7207 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7208 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7209 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7210
7211 2002-05-29 Jim Blandy <jimb@redhat.com>
7212
7213 * macroscope.c (default_macro_scope): Put `void' in empty argument
7214 list.
7215
7216 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7217
7218 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7219 * arch-utils.c: Include "sim-regno.h".
7220 * gdbarch.sh: Don't include "sim-regno.h".
7221 * gdbarch.h, gdbarch.c: Regenerate.
7222 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7223 here.
7224 * arch-utils.h (legacy_register_sim_regno): To here.
7225 * remote-sim.c (legacy_register_sim_regno): Move function from
7226 here.
7227 * arch-utils.c (legacy_register_sim_regno): To here.
7228
7229 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7230
7231 * sim-regno.h: New file.
7232 * Makefile.in (sim_regno_h): Define.
7233 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7234 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7235 (legacy_register_sim_regno): New function.
7236 (one2one_register_sim_regno): New function.
7237 (gdbsim_fetch_register): Rewrite.
7238 (gdbsim_store_register): Only store a register when
7239 REGISTER_SIM_REGNO is valid.
7240 * d10v-tdep.c: Include "sim-regno.h".
7241 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7242 (d10v_ts3_register_sim_regno): Ditto.
7243 * gdbarch.sh: Include "sim-regno.h".
7244 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7245 * gdbarch.h, gdbarch.c: Regenerate.
7246 * arch-utils.h (default_register_sim_regno): Delete declaration.
7247 * arch-utils.c (default_register_sim_regno): Delete function.
7248
7249 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7250
7251 * ppcnbsd-nat.c: Rewrite.
7252 * ppcnbsd-tdep.c: New file.
7253 * ppcnbsd-tdep.h: New file.
7254 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7255 solib.o, and solib-svr4.o.
7256 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7257 nbsd-tdep.o, and corelow.o.
7258
7259 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7260
7261 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7262 `tr' and `sed'. Mention that `broken' targets are not expected to
7263 build.
7264
7265 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7266
7267 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7268 Let PC point right after the prologue before looking up symbols.
7269
7270 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7271
7272 * i386-tdep.c (i386_register_virtual_type): Return
7273 builtin_type_vec128i for SSE registers.
7274
7275 * gdbtypes.h (builtin_type_vec128i): Declare.
7276
7277 * gdbtypes.c (build_builtin_type_vec128i): New function.
7278 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7279 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7280 (build_gdbtypes): Initialize new builtin vector types.
7281 (_initialize_gdbtypes): Register new vector types with gdbarch.
7282
7283 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7284
7285 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7286 since it has been multi-arch'd.
7287 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7288 Move Alpha and VAX multi-arch news entries to same section
7289 as other multi-arch news.
7290
7291 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7292
7293 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7294 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7295 static. Rename some register numbers to put them in ns32k-tdep
7296 private namespace.
7297 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7298 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7299 functions.
7300 (_initialize_ns32k_tdep): Use gdbarch_register.
7301 * ns32k-tdep.h: New file.
7302 * ns32knbsd-tdep.c: New file.
7303 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7304 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7305 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7306 REGISTER_BYTES, REGISTER_BYTE): Remove.
7307 * config/ns32k/tm-ns32k.h: New file.
7308 * config/ns32k/tm-umax.h: Remove.
7309
7310 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7311
7312 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7313 ns32k_store_struct_return, ns32k_extract_return_value,
7314 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7315 functions.
7316 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7317 ns32k_saved_pc_after_call.
7318 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7319 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7320 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7321 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7322 ns32k_extract_struct_value_address.
7323
7324 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7325
7326 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7327 ns32k_fix_call_dummy): New.
7328 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7329 ns32k_call_dummy_words.
7330 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7331 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7332 CALL_DUMMY_NARGS): Remove.
7333 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7334
7335 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7336
7337 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7338 ns32k_frame_saved_pc, ns32k_frame_args_address,
7339 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7340 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7341 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7342 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7343 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7344 (BREAKPOINT): Remove..
7345 (FRAME_CHAIN): Define as ns32k_frame_chain.
7346 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7347 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7348 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7349 (FRAME_FIND_SAVED_REGS): Remove.
7350 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7351 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7352 (POP_FRAME): Define as ns32k_pop_frame.
7353
7354 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7355
7356 * ns32k-tdep.c (ns32k_register_byte_32082,
7357 ns32k_register_byte_32382, ns32k_register_raw_size,
7358 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7359 functions.
7360 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7361 ns32k_register_byte_32382.
7362 * config/ns32k/tm-umax.h: Update copyright years.
7363 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7364 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7365 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7366 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7367 (ns32k_get_enter_addr): Fix prototype.
7368
7369 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7370
7371 * ns32k-tdep.c: Update copyright years.
7372 (ns32k_register_name_32082): New function.
7373 (ns32k_register_name_32382): Ditto.
7374 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7375 (REGISTER_NAME): Define as ns32k_register_name_32382.
7376 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7377 (REGISTER_NAME): Define as ns32k_register_name_32082.
7378
7379 2002-05-24 Jim Blandy <jimb@redhat.com>
7380
7381 * dwarf2read.c (free_line_header): Use xfree, not free.
7382
7383 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7384
7385 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7386 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7387
7388 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7389
7390 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7391
7392 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7393
7394 From Ross Alexander at NEC Europe:
7395 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7396
7397 2002-05-23 Michael Snyder <msnyder@redhat.com>
7398
7399 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7400 for input, rather than parse_and_eval_address.
7401
7402 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7403
7404 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7405 * Makefile.in (sim_d10v_h): Update definition.
7406
7407 2002-05-24 Andrew Cagney <cagney@redhat.com>
7408
7409 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7410 change `2002-05-22 Michael Snyder' below.
7411 (d10v_push_arguments): Ditto.
7412 (d10v_extract_return_value): Ditto.
7413
7414 2002-05-23 Jim Blandy <jimb@redhat.com>
7415
7416 * macrotab.c (check_for_redefinition): Don't complain if the new
7417 definition is the same as the previous one. Take more arguments
7418 to allow the comparison.
7419 (macro_define_object, macro_define_function): Pass more arguments
7420 to check_for_redefinition.
7421
7422 2002-05-22 Michael Snyder <msnyder@redhat.com>
7423
7424 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7425 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7426 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7427 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7428 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7429 Add a temp variable to save a call (and a memory read).
7430 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7431 if possible (so that PC_IN_CALL_DUMMY will work).
7432
7433 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7434
7435 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7436
7437 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7438
7439 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7440 fde->cie_ptr.
7441 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7442 (dwarf2_build_frame_info): Add offset to fde->initial_location
7443 so that frames of shared libraries are mapped correctly.
7444 (execute_stack_op): Change type of 'result' from ULONGEST to
7445 CORE_ADDR.
7446
7447 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7448
7449 * config/alpha/tm-nbsd.h: Include solib.h.
7450
7451 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7452
7453 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7454 assumptions about the host's byte order.
7455
7456 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7457
7458 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7459 to dependency list.
7460 * alphanbsd-tdep.c: Include solib-svr4.h.
7461 * shnbsd-tdep.c: Ditto.
7462
7463 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7464
7465 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7466 nbsd-tdep.h to dependency list.
7467 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7468 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7469 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7470 nbsdaout.mh and nbsdelf.mh consistently.
7471 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7472 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7473 nbsdaout.mt and nbsdelf.mh consistently.
7474 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7475 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7476 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7477 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7478 a.out shared library stuff from here...
7479 * config/nm-nbsdaout.h: ...to here.
7480 * config/tm-nbsd.h: Remove.
7481 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7482 * config/arm/nbsd.mh: Remove.
7483 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7484 nbsd-tdep.o.
7485 * config/arm/nbsdaout.mh: New file.
7486 * config/arm/nbsdelf.mh: New file.
7487 * config/arm/nm-nbsdaout.h: New file.
7488 * config/i386/nbsd.mh: Remove.
7489 * config/i386/nbsd.mt: Remove.
7490 * config/i386/nbsdaout.mh: New file.
7491 * config/i386/nbsdaout.mt: New file.
7492 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7493 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7494 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7495 i386_register_u_addr): Remove.
7496 * config/i386/nm-nbsdaout.h: New file.
7497 * config/i386/nm-nbsdelf.h: Remove.
7498 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7499 (USE_STRUCT_CONVENTION): Remove.
7500 * config/i386/tm-nbsdaout.h: New file.
7501 * config/i386/tm-nbsdelf.h: Remove.
7502 * config/m68k/nbsd.mh: Remove.
7503 * config/m68k/nbsd.mt: Remove.
7504 * config/m68k/nbsdaout.mh: New file.
7505 * config/m68k/nbsdaout.mt: New file.
7506 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7507 * config/m68k/nm-nbsdaout.h: New file.
7508 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7509 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7510 * config/ns32k/nbsd.mh: Remove.
7511 * config/ns32k/nbsd.mt: Remove.
7512 * config/ns32k/nbsdaout.mh: New file.
7513 * config/ns32k/nbsdaout.mt: New file.
7514 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7515 * config/ns32k/nm-nbsdaout.h: New file.
7516 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7517 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7518 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7519 (SVR4_SHARED_LIBS): Remove.
7520 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7521 * config/sparc/nbsd.mh: Remove.
7522 * config/sparc/nbsd.mt: Remove.
7523 * config/sparc/nbsdaout.mh: New file.
7524 * config/sparc/nbsdaout.mt: New file.
7525 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7526 * config/sparc/nbsdelf.mt: New file.
7527 * config/sparc/nm-nbsdaout.h: New file.
7528 * config/sparc/nm-nbsdelf.h: Remove.
7529 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7530 * config/sparc/tm-nbsdaout.h: New file.
7531
7532 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7533
7534 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7535 mipsnbsd-tdep.c
7536 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7537
7538 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7539
7540 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7541 shnbsd-nat.c.
7542 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7543
7544 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7545
7546 * NEWS: Note new MIPS NetBSD native configuration.
7547 * configure.host (mips*-*-netbsd*): New host.
7548 * configure.tgt (mips*-*-netbsd*): New target.
7549 * mipsnbsd-nat.c: New file.
7550 * mipsnbsd-tdep.c: New file.
7551 * mipsnbsd-tdep.h: New file.
7552 * config/mips/nbsd.mh: New file.
7553 * config/mips/nbsd.mt: New file.
7554 * config/mips/nm-nbsd.h: New file.
7555 * config/mips/tm-nbsd.h: New file.
7556
7557 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7558
7559 * Makefile.in (SFILES): Add osabi.c.
7560 (COMMON_OBS): Add osabi.o.
7561 (osabi.o): New dependency list.
7562 * osabi.c: New file.
7563 * osabi.h: New file.
7564 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7565
7566 * Makefile.in (alpha_tdep_h): Define and use instead of
7567 alpha-tdep.h.
7568 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7569 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7570 Remove.
7571 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7572 * alpha-tdep.h: Include osabi.h.
7573 (alpha_abi): Remove.
7574 (gdbarch_tdep): Use generic OS ABI framework.
7575 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7576 gdbarch_register_osabi.
7577 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7578 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7579 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7580
7581 * Makefile.in (sh_tdep_h): Add osabi.h.
7582 * sh-tdep.h (sh_osabi): Remove.
7583 (gdbarch_tdep): Use generic OS ABI framework.
7584 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7585 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7586 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7587 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7588
7589 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7590 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7591 gdbarch_register_osabi.
7592 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7593 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7594 (get_elfosabi): Rename to...
7595 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7596 ABI framework support routines.
7597 (arm_gdbarch_init): Use generic OS ABI framework.
7598 (arm_dump_tdep): Likewise.
7599 (_initialize_arm_tdep): Likewise.
7600 * arm-tdep.h: Include osabi.h.
7601 (arm_abi): Remove.
7602 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7603 osabi member.
7604 (arm_gdbarch_register_os_abi): Remove prototype.
7605 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7606 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7607
7608 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7609 * mips-tdep.c: Include osabi.h.
7610 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7611 OS ABI framework.
7612
7613 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7614
7615 * h8300-tdep.c: Fix formatting.
7616
7617 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7618
7619 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7620 printing vector registers.
7621
7622 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7623
7624 From Fernando Nasser:
7625 * remote.c (remote_async_open_1): Re-throw the exception when the
7626 connection fails.
7627 (remote_cisco_open): Ditto.
7628 (remote_open_1): Ditto.
7629
7630 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7631
7632 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7633 (remote_start_remote): Add uiout parameter. Pass through to
7634 remote_start_remote_dummy.
7635 (remote_open_1): Use catch_exception instead of catch_errors.
7636 (remote_async_open_1): Ditto.
7637 (remote_cisco_open): Ditto.
7638
7639 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7640
7641 * remote.c (remote_start_remote): Replace PTR with void pointer.
7642 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7643 static.
7644
7645 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7646
7647 * gdb_indent.sh: Allow the script to be run in the sim directory.
7648
7649 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7650
7651 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7652 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7653
7654 * corelow.c (core_open): Only call set_gdbarch_from_file if
7655 exec_bfd is NULL.
7656
7657 2002-05-17 Andrey Volkov <avolkov@transas.com>
7658
7659 * h8300-tdep.c: Add support of EXR register
7660 * config/h8300/tm-h8300.h: Ditto.
7661
7662 2002-05-17 Andrey Volkov <avolkov@transas.com>
7663
7664 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7665
7666 2002-05-17 Andrey Volkov <avolkov@transas.com>
7667
7668 * h8300-tdep.c: Change literal regnums to REGNO.
7669
7670 2002-05-17 Jim Blandy <jimb@redhat.com>
7671
7672 * NEWS: Note addition of macro support.
7673
7674 Expand preprocessor macros in C expressions.
7675 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7676 (scan_macro_expansion, scanning_macro_expansion,
7677 finished_macro_expansion): New function declarations.
7678 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7679 variable declarations.
7680 * parser-defs.h (expression_context_pc): New declaration.
7681 * parse.c (expression_context_pc): New variable.
7682 (parse_exp_1): Set expression_context_pc, as well as
7683 expression_context_block.
7684 * c-exp.y (yylex): If we're not already reading the result of a
7685 macro expansion, try to macro-expand the next token. When we're
7686 done scanning a macro expansion, switch back to the mainline text.
7687 Commas and `if's in a macro's expansion don't terminate the input.
7688 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7689 (macro_original_text, macro_expanded_text,
7690 expression_macro_lookup_func, expression_macro_lookup_baton): New
7691 variables.
7692 (scan_macro_expansion, scanning_macro_expansion,
7693 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7694 c_preprocess_and_parse): New functions.
7695 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7696 c_preprocess_and_parse, instead of c_parse.
7697 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7698 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7699
7700 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7701
7702 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7703 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7704 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7705
7706 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7707
7708 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7709
7710 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7711
7712 * Makefile.in (sh_tdep_h): Define and use.
7713 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7714 register enum): Move to...
7715 * * sh-tdep.h: ...here.
7716 * sh-tdep.c: Include sh-tdep.h.
7717 * sh3-rom.c: Likewise.
7718 * shnbsd-tdep.c: Likewise.
7719
7720 2002-05-16 Michael Snyder <msnyder@redhat.com>
7721
7722 * arm-tdep.c: Spelling fix in comment.
7723
7724 2002-05-16 Jim Blandy <jimb@redhat.com>
7725
7726 Add commands for manually expanding macros and showing their
7727 definitions.
7728 * macrocmd.c, macroscope.c, macroscope.h: New files.
7729 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7730 (macroscope_h): New variable.
7731 (HFILES_NO_SRCDIR): Add macroscope.h.
7732 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7733 (macroscope.o, macrocmd.o): New rules.
7734
7735 Teach the Dwarf 2 reader to read macro information.
7736 * dwarf2read.c: #include "macrotab.h".
7737 (dwarf_macinfo_buffer): New variable.
7738 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7739 dwarf_macinfo_size.
7740 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7741 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7742 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7743 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7744 dwarf2_macro_spaces_in_definition): New complaints.
7745 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7746 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7747 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7748 the partial symbol table.
7749 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7750 from what's recorded in the partial symbol table.
7751 (read_file_scope): If the compilation unit has a
7752 `DW_AT_macro_info' attribute, read its macro information.
7753 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7754
7755 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7756
7757 Fix PR gdb/546
7758 * ser-tcp.c: Don't include <netinet/udp.h>.
7759
7760 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7761
7762 * MAINTAINERS: Update my email address.
7763
7764 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7765
7766 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7767 include file of the same name.
7768
7769 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7770
7771 * configure.tgt: Mark v850 as multi-arched.
7772 * config/v850/tm-v850.h: Remove file.
7773 * config/v850/v850.mt: Eliminate TM_FILE.
7774
7775 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7776
7777 * v850-tdep.c: Full multi-arch.
7778 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7779 Define GDB_MULTI_ARCH to 2.
7780
7781 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7782
7783 * p-exp.y (current_type): New static variable.
7784 Carries the type of the expression at the position that is parsed.
7785 (push_current_type, pop_current_type): Two new functions. Used
7786 to store/restore current_type in expression on specific tokens.
7787 (search_field): New static variable. Set to one after parsing a point
7788 as at that point only a FIELDNAME token should be searched.
7789 (FIELDNAME): New token. After a point only a token belonging to
7790 current_type type definition is allowed.
7791 (all over token rules): reset and change current_type according
7792 to rules.
7793 (exp '[' rule): insert implicit array index field if
7794 exp is a pascal string type.
7795
7796 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7797
7798 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7799 frame info. Use frame_info's saved_regs instead of matching member
7800 in extra_frame_info throughout.
7801 (v850_frame_init_saved_regs): New function.
7802 (v850_init_extra_frame_info): Move most functionality into
7803 v850_frame_init_saved_regs().
7804 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7805 (v850_frame_find_saved_regs): Remove declaration.
7806 (FRAME_FIND_SAVED_REGS): Remove definition.
7807 (v850_frame_init_saved_regs): Add declaration.
7808 (FRAME_INIT_SAVED_REGS): Add definition.
7809
7810 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7811
7812 * v850-tdep.c: Begin multi-arch'ing v850.
7813 (v850_target_architecture_hook): Remove function.
7814 (v850_gdbarch_init): New function. Add code previously in
7815 v850_target_architecture_hook().
7816 (_initialize_v850_tdep): Don't set target_architecture_hook.
7817 Call register_gdbarch_init() instead.
7818
7819 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7820
7821 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7822 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7823 (fixup_class_method_type): Likewise.
7824
7825 2002-05-15 Jim Blandy <jimb@redhat.com>
7826
7827 Add macro structures to GDB's symbol tables. Nobody puts anything
7828 in them yet.
7829 * symtab.h (struct symtab): New member: `macro_table'.
7830 * buildsym.h (pending_macros): New global variable.
7831 * buildsym.c: #include "macrotab.h".
7832 (buildsym_init): Initialize `pending_macros'.
7833 (end_symtab): If we found macro information while reading a CU's
7834 debugging info, do build a symtab structure for it. Make the
7835 symtab point to the macro information, and clear the
7836 `pending_macros' pointer which held it while we were reading the
7837 debug info.
7838 (really_free_pendings): Free any pending macro table.
7839 * objfiles.h (struct objfile): New member: `macro_cache'.
7840 * objfiles.c (allocate_objfile): Set allocate and free functions
7841 for the macro cache's objstack.
7842 (free_objfile): Empty the macro cache's obstack.
7843 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7844 set new allocate and free functions for it.
7845 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7846 free functions for the macro cache's objstack. (Why is this
7847 function building its own objfile?)
7848 * symmisc.c (print_objfile_statistics): Print statistics on the
7849 macro bcache.
7850 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7851
7852 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7853
7854 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7855 (REGISTER_U_ADDR): Delete definition.
7856 (arm_register_u_addr): Delete declaration.
7857
7858 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7859
7860 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7861 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7862
7863 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7864
7865 * regcache.c (register_valid): Revise comments refering to "Not
7866 available" and "unavailable".
7867 * frame.c (frame_register_read): Ditto.
7868 * findvar.c (value_of_register): Ditto.
7869
7870 2002-05-15 Andrew Cagney <cagney@redhat.com>
7871
7872 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7873 (remote-sim.o): Update dependencies.
7874 (d10v-tdep.o): Specify dependencies.
7875 (sim_d10v_h): Define.
7876
7877 2002-05-14 Jim Blandy <jimb@redhat.com>
7878
7879 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7880 * macrotab.c (macro_lookup_inclusion, find_definition,
7881 new_macro_table): Same.
7882
7883 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7884 not `! strcmp ()'. This is a dubious improvement.
7885 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7886
7887 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7888 although it's not necessary, to avoid a warning.
7889
7890 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7891
7892 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7893 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7894 TYPE_INSTANCE_FLAGS.
7895 (struct main_type): New.
7896 (struct type): Move most members to struct main_type. Change
7897 cv_type and as_type to new type_chain member. Add instance_flags.
7898 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7899 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7900 (finish_cv_type): Remove prototype.
7901 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7902 Set TYPE_CHAIN.
7903 (alloc_type_instance): New function.
7904 (smash_type): New function.
7905 (make_pointer_type, make_reference_type, make_function_type)
7906 (smash_to_member_type, smash_to_method_type): Call smash_type.
7907 (make_qualified_type): New function.
7908 (make_type_with_address_space): Call make_qualified_type.
7909 (make_cv_type): Likewise.
7910 (finish_cv_type): Remove unnecessary function.
7911 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7912 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7913 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7914 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7915 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7916 * hpread.c (hpread_read_struct_type): Likewise.
7917 * stabsread.c (read_struct_type): Likewise.
7918
7919 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7920
7921 * configure.tgt: Add a catch all sh* target, for cases like
7922 sh[2,3,4]-elf and sh-hms.
7923
7924 2002-05-14 Keith Seitz <keiths@redhat.com>
7925
7926 * event-loop.c (create_file_handler): Don't do anything but
7927 update data when we are given a fd which we are already
7928 monitoring.
7929
7930 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7931
7932 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7933 (update_context): Use __func__ in warnings.
7934
7935 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7936
7937 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7938 and tcp_close to net_open and net_close.
7939 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7940 using UDP if requested. Don't try to disable Nagle on UDP
7941 sockets.
7942 * remote.c (remote_serial_open): New function. Warn about UDP.
7943 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7944
7945 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7946
7947 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7948
7949 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7950
7951 * configure.tgt: Remove sh-hms target.
7952 * MAINTAINERS: Don't list sh-hms as a separate target.
7953
7954 2002-05-13 Jim Blandy <jimb@redhat.com>
7955
7956 Add first preprocessor macro-expansion files.
7957 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7958 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7959 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7960 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7961 (COMMON_OBS): Add macrotab.o, macroexp.o.
7962 (macroexp.o, macrotab.o): New rules.
7963
7964 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7965
7966 * config/m88k/tm-m88k.h: Update copyright.
7967 (m88k_target_write_pc): Declare
7968 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7969 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7970 (SHIFT_INST_REGS): Update definition.
7971 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7972 using old definition of TARGET_WRITE_PC.
7973 * regcache.c (generic_target_write_pc): Delete code handling
7974 NNPC_REGNUM.
7975 * gdbarch.sh (NNPC_REGNUM): Delete.
7976 * gdbarch.h, gdbarch.c: Regenerate.
7977
7978 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7979
7980 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7981 builtin reg number.
7982
7983 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7984
7985 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7986 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7987 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7988 access macros.
7989 * c-typeprint.c (cp_type_print_method_args): Likewise.
7990 (c_type_print_args): Likewise.
7991 * d10v-tdep.c (d10v_push_arguments): Likewise.
7992 (d10v_extract_return_value): Likewise.
7993 * expprint.c (print_subexp): Likewise.
7994 * gdbtypes.c (lookup_primitive_typename): Likewise.
7995 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7996 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7997 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7998 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7999 (TYPE_VECTOR): Likewise.
8000 * hpread.c (hpread_read_struct_type)
8001 (fix_static_member_physnames, fixup_class_method_type)
8002 (hpread_type_lookup): Likewise.
8003 * mdebugread.c (parse_symbol, parse_type): Likewise.
8004 * p-lang.c (is_pascal_string_type): Likewise.
8005 * valops.c (hand_function_call): Likewise.
8006 * x86-64-tdep.c (classify_argument): Likewise.
8007
8008 * hpread.c (hpread_read_function_type)
8009 (hpread_read_doc_function_type): Call replace_type.
8010 * dstread.c (create_new_type): Delete.
8011 (decode_dst_structure, process_dst_function): Call alloc_type.
8012 Use type access macros.
8013
8014 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8015
8016 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8017 the're not supported by the current architecture.
8018 (i387_fill_fxsave): Likewise.
8019
8020 2002-05-12 Fred Fish <fnf@redhat.com>
8021
8022 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8023 sect_index_xxx members to index the first slot in section_offsets
8024 if all of the section_offsets are zero.
8025
8026 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8027
8028 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8029 checked in with last change.
8030
8031 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8032
8033 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8034 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8035 config.sub.
8036
8037 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8038
8039 * Makefile.in: Update dependencies.
8040
8041 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8042
8043 * language.c (local_hex_string_custom): Simplify. Do not depend
8044 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8045
8046 * memattr.c (mem_info_command): Replace calls to
8047 longest_local_hex_string and longest_local_hex_string_custom.
8048 * buildsym.c (make_blockvector): Ditto.
8049 * solib.c (info_sharedlibrary_command): Ditto.
8050 * tracepoint.c (tracepoints_info): Ditto.
8051 * symtab.c (print_msymbol_info): Ditto.
8052
8053 * language.c (local_hex_string): Delete.
8054 (local_hex_string_custom): Delete.
8055 (longest_local_hex_string): Rename to local_hex_string.
8056 (longest_local_hex_string_custom): Rename to
8057 local_hex_string_custom.
8058 * language.h (local_hex_string): Change parameter type to LONGEST.
8059 (local_hex_string_custom): Ditto.
8060 (longest_local_hex_string): Delete declaration.
8061 (longest_local_hex_string_custom): Ditto.
8062
8063 * solib.c: Update copyright.
8064 * memattr.c: Update copyright.
8065
8066 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8067
8068 * arch-utils.h (legacy_register_to_value): Declare.
8069 (legacy_value_to_register): Declare.
8070 (legacy_convert_register_p): Declare.
8071 * arch-utils.c (legacy_register_to_value): New function.
8072 (legacy_value_to_register): New function.
8073 (legacy_convert_register_p): New function.
8074
8075 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8076 (VALUE_TO_REGISTER): Define.
8077 (CONVERT_REGISTER_P): Define.
8078 * gdbarch.h, gdbarch.c: Regenerate.
8079
8080 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8081 VALUE_TO_REGISTER.
8082 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8083 CONVERT_REGISTER_P.
8084
8085 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8086 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8087
8088 * Makefile.in: Update dependencies for valops.c.
8089 * valops.c: Include "gdb_assert.h".
8090 (typecmp): Skip THIS parameter to methods.
8091 (find_method_list): Remove static_memfuncp argument,
8092 update callers. Check for stub methods.
8093 (find_value_oload_method_list): Don't set *static_memfuncp.
8094 (find_overload_match): Don't check for stub methods. Assert
8095 that methods are not stubbed. Handle static methods.
8096 (value_find_oload_method_list): Remove static_memfuncp argument.
8097 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8098 to the argument list for static stub methods.
8099 * value.h (value_find_oload_method_list): Update prototype.
8100
8101 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8102
8103 * arch-utils.h (generic_register_size): Declare.
8104 (generic_register_raw_size, generic_register_virtual_size): Delete
8105 declarations.
8106 * arch-utils.c (generic_register_raw_size): Delete.
8107 (generic_register_size): New function.
8108 (generic_register_virtual_size): Delete.
8109
8110 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8111 default generic_register_size.
8112 * gdbarch.h, gdbarch.c: Re-generate.
8113
8114 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8115 register_virtual_size.
8116 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8117 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8118
8119 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8120
8121 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8122 * gdbarch.h, gdbarch.c: Regenerate.
8123 * gnu-v3-abi.c: Update copyright.
8124 (vtable_address_point_offset): Update.
8125 (gnuv3_rtti_type): Update.
8126 (gnuv3_baseclass_offset): Update.
8127 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8128 (init_fetch_link_map_offsets): Update.
8129 * remote.c (get_remote_state): Update.
8130
8131 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8132
8133 * TODO: Remove value_headof/value_from_vtable_info comment.
8134 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8135 * values.c (value_headof, value_from_vtable_info): Delete.
8136 * value.h (value_from_vtable_info): Delete prototype.
8137
8138 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8139
8140 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8141 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8142 $(gdb_regex_h).
8143 (gdb_assert_h): Define.
8144 (gdb_wait_h): Define.
8145 (gdb_regex_h): Define.
8146
8147 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8148
8149 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8150 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8151
8152 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8153
8154 * nbsd-tdep.c: Fix comment.
8155
8156 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8157
8158 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8159 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8160 (nbsd-tdep.o): New dependency list.
8161 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8162 nbsd-tdep.h.
8163 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8164 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8165 * nbsd-tdep.c: New file.
8166 * nbsd-tdep.h: New file.
8167 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8168 nbsd-tdep.h.
8169 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8170 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8171 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8172 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8173
8174 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8175
8176 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8177 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8178 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8179 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8180 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8181 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8182
8183 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8184
8185 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8186 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8187 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8188 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8189 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8190 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8191 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8192
8193 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8194
8195 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8196 fetch_elfcore_registers to...
8197 * i386nbsd-tdep.c: ...here.
8198 (i386nbsd_use_struct_convention): Rename to...
8199 (i386nbsd_aout_use_struct_convention): ...this.
8200 (i386nbsd_supply_reg): New function.
8201 (i386nbsd_fill_reg): New function.
8202 (fetch_core_registers): Use i386nbsd_supply_reg.
8203 (fetch_elfcore_registers): Likewise.
8204 (_initialize_i386nbsd_tdep): New function.
8205 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8206 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8207 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8208 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8209 (i386nbsd_aout_use_struct_convention): ...this.
8210
8211 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8212
8213 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8214 (store_inferior_registers): Use shnbsd_fill_reg.
8215 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8216 sh_nbsd_supply_register): Collapse into...
8217 (shnbsd_supply_reg): ...this.
8218 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8219 (shnbsd_fill_reg): ...this.
8220 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8221 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8222 (fetch_core_registers): Use shnbsd_supply_reg.
8223 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8224 (sh_nbsd_core_fns): Rename to...
8225 (shnbsd_core_fns): ...this.
8226 (sh_nbsd_elfcore_fns): Rename to...
8227 (shnbsd_elfcore_fns): ...this.
8228 (sh_nbsd_init_abi): Rename to...
8229 (shnbsd_init_abi): ...this.
8230 (_initialize_sh_nbsd_tdep): Rename to...
8231 (_initialize_shnbsd_tdep): ...this.
8232 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8233 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8234 sh_nbsd_fill_register): Remove prototypes.
8235 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8236
8237 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8238
8239 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8240 (i387-nat.o): Delete dependency list.
8241 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8242 (x86-64-linux-nat.o): Likewise.
8243 * i387-nat.c: Delete file, moving contents to...
8244 * i387-tdep.c: ...here.
8245 * i387-nat.h: Rename...
8246 * i387-tdep.h: ...to this.
8247 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8248 * i386-linux-nat.c: Likewise.
8249 * i386bsd-nat.c: Likewise.
8250 * i386gnu-nat.c: Likewise.
8251 * i386nbsd-nat.c: Likewise.
8252 * i386v4-nat.c: Likewise.
8253 * x86-64-linux-nat.c: Likewise.
8254 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8255 * config/i386/go32.mh (NATDEPFILES): Likewise.
8256 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8257 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8258 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8259 * config/i386/linux.mh (NATDEPFILES): Likewise.
8260 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8261 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8262 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8263 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8264
8265 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8266
8267 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8268 (alphanbsd-nat.o): Remove dependency list.
8269 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8270 * alphanbsd-nat.c: Delete. Contents moved to...
8271 * alphanbsd-tdep.c: ...here.
8272 (_initialize_alphanbsd_tdep): Register core functions.
8273 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8274
8275 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8276
8277 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8278 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8279 (alphanbsd-nat.o): Likewise.
8280 (alphabsd-tdep.o): New dependency list.
8281 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8282 (fill_gregset): Use alphabsd_fill_reg.
8283 (supply_fpregset): Use alphabsd_supply_fpreg.
8284 (fill_fpregset): Use alphabsd_fill_fpreg.
8285 (fetch_inferior_registers): Use struct reg and struct fpreg
8286 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8287 and alphabsd_supply_fpreg.
8288 (store_inferior_registers): Use struct reg and struct fpreg
8289 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8290 and alphabsd_fill_fpreg.
8291 * alphabsd-tdep.c: New file.
8292 * alphabsd-tdep.h: New file.
8293 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8294 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8295 alphabsd_supply_fpreg.
8296 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8297 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8298
8299 2002-05-11 Eric Christopher <echristo@redhat.com>
8300
8301 * mips-tdep.c (mips_double_register_type): Fix thinko.
8302 (mips_single_register_type): Ditto.
8303 * MAINTAINERS: Add self.
8304
8305 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8306
8307 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8308 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8309 right thing on architectures with different endianness and/or
8310 integer sizes.
8311
8312 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8313
8314 From Christian Limpach <chris@Pin.LU>
8315 * configure.in: Change sed expression which comments out
8316 NATDEPFILES to also comment out continuation lines.
8317 * configure: Regenerate.
8318
8319 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8320
8321 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8322 big patch.
8323
8324 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8325
8326 * sh-tdep.c: Include correct file.
8327
8328 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8329
8330 New support for sh64-elf (sh5) target.
8331
8332 * configure.tgt: For sh64-elf target, default to sh-elf.
8333
8334 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8335 (struct gdbarch_tdep): Add new fields for new registers and ABI
8336 info.
8337
8338 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8339 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8340 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8341 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8342 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8343 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8344 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8345 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8346 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8347 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8348 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8349 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8350 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8351 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8352 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8353 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8354 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8355 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8356 sign_extend, sh64_nofp_frame_init_saved_regs,
8357 sh64_init_extra_frame_info, sh64_get_saved_register,
8358 sh64_extract_struct_value_address, sh64_pop_frame,
8359 sh64_push_arguments, sh64_extract_return_value,
8360 sh64_store_return_value, sh64_show_media_regs,
8361 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8362 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8363 sh_sh64_register_virtual_type,
8364 sh_sh64_register_convert_to_virtual,
8365 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8366 sh64_register_read, sh64_pseudo_register_write,
8367 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8368 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8369 sh64_do_pseudo_register, sh_compact_do_registers_info,
8370 sh64_do_registers_info, sh_gdbarch_init): New functions.
8371
8372 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8373
8374 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8375
8376 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8377
8378 * linespec.c (decode_line_1): Check for a double quote after
8379 a filename correctly.
8380
8381 2002-05-10 Jim Blandy <jimb@redhat.com>
8382
8383 Properly track the size of the current objfile's .debug_line section.
8384 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8385 (DWARF_LINE_SIZE): New macro.
8386 (dwarf2_build_psymtabs_hard): Record the line section's size in
8387 the partial symbol table.
8388 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8389 symbol table.
8390
8391 2002-05-10 Petr Sorfa <petrs@caldera.com>
8392
8393 * ia64-tdep.c: Handle breakpoints on L instruction type
8394 in MLX instruction bundle by moving the breakpoint to
8395 the third slot (X instruction type) as L holds only data.
8396
8397 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8398
8399 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8400 (process_one_symbol): Complain about discarding local symbols
8401 due to a misplaced N_LBRAC entry.
8402
8403 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8404
8405 From Daniel Berlin <dan@cgsoftware.com>
8406 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8407 decrease the depth we are at, in the case of templates.
8408
8409 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8410
8411 * mips-tdep.c (mips_float_register_type): New function.
8412 (mips_double_register_type): New function.
8413 (mips_print_register): Use them.
8414 (do_fp_register_row): Likewise.
8415
8416 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8417
8418 * signals/signals.c (signals): Remove conditional compilation around
8419 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8420 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8421
8422 2002-05-09 Michael Snyder <msnyder@redhat.com>
8423
8424 * remote-rdp.c (remote_rdp_can_run): Remove.
8425
8426 2002-05-09 Tom Tromey <tromey@redhat.com>
8427
8428 * jv-valprint.c (java_val_print): Handle `char' as a special case
8429 of TYPE_CODE_INT.
8430
8431 2002-05-09 Michael Snyder <msnyder@redhat.com>
8432
8433 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8434 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8435 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8436 str r(0123),[sp,#nn].
8437 (arm_skip_prologue): Ditto. Also make disassembly
8438 order-independent by placing it in a loop.
8439
8440 2002-05-06 Michael Snyder <msnyder@redhat.com>
8441
8442 * stabsread.c (read_type): Add recognition for new attribute:
8443 "@V;" means that an array type is actually a vector.
8444 This is analogous to the vector flag that's been added to dwarf2.
8445
8446 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8447
8448 * i386-tdep.h (i386_abi): New enum.
8449 (struct gdbarch_tdep): Replace os_ident member with abi.
8450 (i386_gdbarch_register_os_abi): New prototype.
8451 * i386-tdep.c (i386_abi_names): New array.
8452 (process_note_abi_tag_sections): Removed.
8453 (process_note_sections): New function.
8454 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8455 (struct i386_abi_handler): New struct.
8456 (i386_abi_handler_list): New variable.
8457 (i386_gdbarch_register_os_abi): New function.
8458 (i386_gdbarch_init): Adapt for the changes given above.
8459
8460 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8461
8462 * gregset.h: Say "GNU/Linux".
8463
8464 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8465
8466 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8467 (build_gdbtypes): Build builtin_type_v2_float.
8468 (_initialize_gdbtypes): Register new builtin type.
8469
8470 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8471
8472 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8473 (clear_gdbarch_swap): New function.
8474 (initialize_non_multiarch): Call.
8475 (gdbarch_update_p): Before calling init(), swap out and clear the
8476 existing architecture.
8477 * gdbarch.c: Regenerate.
8478
8479 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8480
8481 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8482 alphanbsd-tdep.c.
8483
8484 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8485
8486 * sh-nbsd-nat.c: Rename to...
8487 * shnbsd-nat.c: ...this.
8488 * sh-nbsd-tdep.c: Rename to...
8489 * shnbsd-tdep.c: ...this.
8490 * sh-nbsd-tdep.h: Rename to...
8491 * shnbsd-tdep.h: ...this.
8492 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8493 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8494
8495 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8496
8497 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8498 concatenation for command help messages.
8499
8500 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8501
8502 * NEWS: Note new sh*-*-netbsdelf* configuration.
8503 * configure.host: Set gdb_host_cpu to sh for all sh*.
8504 (sh*-*-netbsdelf*): New host.
8505 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8506 (sh*-*-netbsdelf*): New target.
8507 * sh-nbsd-nat.c: New file.
8508 * sh-nbsd-tdep.c: New file.
8509 * sh-nbsd-tdep.h: New file.
8510 * config/sh/nbsd.mh: New file.
8511 * config/sh/nbsd.mt: New file.
8512 * config/sh/nm-nbsd.h: New file.
8513 * config/sh/tm-nbsd.h: New file.
8514
8515 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8516
8517 * sh-tdep.c (sh_osabi_names): Declare.
8518 (process_note_abi_tag_sections): New function.
8519 (get_elfosabi): Ditto.
8520 (sh_gdbarch_register_os_abi): Ditto.
8521 (sh_dump_tdep): Ditto.
8522 _initialize_sh_tdep): Use gdbarch_register to register
8523 sh_gdbarch_init and sh_dump_tdep.
8524 * config/sh/tm-sh.h (sh_osabi): Declare.
8525 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8526
8527 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8528
8529 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8530 (thumb_scan_prologue): Ditto.
8531 (arm_find_callers_reg): Ditto.
8532 (arm_frame_chain): Ditto.
8533 (arm_init_extra_frame_info): Ditto.
8534 (arm_frame_saved_pc): Ditto.
8535 (arm_pop_frame): Ditto.
8536 (arm_push_return_address): New function.
8537 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8538 call_dummy_location, call_dummy_breakpoint_offset_p,
8539 call_dummy_breakpoint_offset, call_dummy_p,
8540 call_dummy_stack_adjust_p, call_dummy_words,
8541 sizeof_call_dummy_words, call_dummy_start_offset,
8542 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8543 call_dummy_address, push_return_address and push_dummy_frame for
8544 generic dummy frames.
8545
8546 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8547
8548 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8549 size computation for alloca.
8550 (sh_fp_frame_init_saved_regs): Likewise.
8551
8552 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8553
8554 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8555 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8556 * arm-tdep.c (arm_store_return_value): Use them.
8557 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8558 * remote-rdp.c (remote_rdp_fetch_register): Use
8559 ARM_MAX_REGISTER_RAW_SIZE.
8560 (remote_rdp_store_register): Likewise.
8561
8562 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8563
8564 * dwarf2cfi.c: Code cleanup, removed unused variables,
8565 added default labels to switch {} statements.
8566 * x86-64-tdep.c: Ditto.
8567 * x86-64-linux-nat.c: Ditto.
8568
8569 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8570
8571 * solib.h: Protect against multiple inclusion.
8572
8573 2002-05-06 Jim Blandy <jimb@redhat.com>
8574
8575 Add first preprocessor macro-expansion files.
8576 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8577 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8578 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8579 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8580 (COMMON_OBS): Add macrotab.o, macroexp.o.
8581 (macroexp.o, macrotab.o): New rules.
8582
8583 Separate the job of reading the line number info statement program
8584 header (...expialidocious) out into its own function.
8585 * dwarf2read.c (struct line_head, struct filenames, struct
8586 directories): Replace with...
8587 (struct line_header): New structure, containing the full
8588 contents of the statement program header, including the
8589 include directory and file name tables.
8590 (read_file_scope): If we have line number info, instead of just
8591 calling dwarf_decode_lines to do all the work, call
8592 dwarf_decode_line_header first to get a `struct line_header'
8593 containing the data in the statement program header, and then
8594 pass that to dwarf_decode_lines, which will pick up where that
8595 left off. Be sure to clean up the `struct line_header' object.
8596 (dwarf_decode_line_header, free_line_header, add_include_dir,
8597 add_file_name): New functions.
8598 (dwarf_decode_lines): Move all the code to read the statement
8599 program header into dwarf_decode_line_header. Take the line
8600 header it built as the first argument, instead of the offset to
8601 the compilation unit's line number info. Use the new `struct
8602 line_header' type instead of the old structures. No need to do
8603 cleanups here now, since we don't allocate anything.
8604 (dwarf2_statement_list_fits_in_line_number_section,
8605 dwarf2_line_header_too_long): New complaints.
8606
8607 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8608
8609 * gdbtypes.c (init_vector_type): New function.
8610 (build_builtin_type_vec128): Simplify the representation of SIMD
8611 registers.
8612 (build_gdbtypes): Initialize new builtin vector types.
8613 (_initialize_gdbtypes): Register new vector types with gdbarch.
8614 (builtin_type_v4_float, builtin_type_v4_int32,
8615 builtin_type_v8_int16, builtin_type_v16_int8,
8616 builtin_type_v2_int32, builtin_type_v4_int16,
8617 builtin_type_v8_int8): New (renamed) SIMD types.
8618
8619 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8620
8621 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8622 (i387_fill_fxsave): Likewise.
8623
8624 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8625
8626 * alpha-tdep.c (alpha_extract_return_value): Don't use
8627 non-constant array size in prototype.
8628
8629 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8630
8631 From Brian Taylor <briant at model dot com>:
8632 * ui-out.c (ui_out_field_core_addr): Use the function
8633 longest_local_hex_string_custom'to format addresses > 32 bits
8634 wide.
8635
8636 * ui-out.c (ui_out_field_core_addr): Update comment.
8637
8638 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8639
8640 * stack.c (select_and_print_frame): Make static. Delete the
8641 parameter `level'.
8642 (func_command): Update call.
8643 (select_frame_command): Delete code computing the frame level.
8644 * frame.h (select_and_print_frame): Delete declaration.
8645
8646 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8647
8648 * sparc-tdep.c (sparc_get_saved_register): Comment why
8649 get_prev_frame call is safe.
8650
8651 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8652
8653 * frame.h (select_frame): Delete level parameter.
8654 * stack.c (select_frame): Update. Use frame_relative_level to
8655 obtain the frame's level.
8656 (select_and_print_frame): Update call.
8657 (select_frame_command): Ditto.
8658 (up_silently_base): Ditto.
8659 (down_silently_base): Ditto.
8660 * ocd.c (ocd_start_remote): Ditto.
8661 * remote-rdp.c (remote_rdp_open): Ditto.
8662 * remote-mips.c (mips_initialize): Ditto.
8663 (common_open): Ditto.
8664 * remote-e7000.c (e7000_start_remote): Ditto.
8665 * m3-nat.c (select_thread): Ditto.
8666 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8667 (child_get_current_exception_event): Ditto.
8668 * varobj.c (varobj_create): Ditto.
8669 (varobj_update): Ditto.
8670 (c_value_of_root): Ditto.
8671 * tracepoint.c (finish_tfind_command): Ditto.
8672 * corelow.c (core_open): Ditto.
8673 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8674 * thread.c (info_threads_command): Ditto.
8675 (switch_to_thread): Ditto.
8676 * infrun.c (normal_stop): Ditto.
8677 (restore_selected_frame): Ditto.
8678 (restore_inferior_status): Ditto.
8679 * breakpoint.c (insert_breakpoints): Ditto.
8680 (watchpoint_check): Ditto.
8681 (bpstat_stop_status): Ditto.
8682 (do_enable_breakpoint): Ditto.
8683 * blockframe.c (flush_cached_frames): Ditto.
8684 (reinit_frame_cache): Ditto.
8685
8686 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8687
8688 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8689 maintainer.
8690
8691 2002-05-04 Jim Blandy <jimb@redhat.com>
8692
8693 * gdbtypes.c (replace_type): Doc fix.
8694
8695 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8696
8697 * valprint.c (strcat_longest): Delete commented out function.
8698 Update copyright.
8699
8700 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8701
8702 * MAINTAINERS: Mark a29k as deleted.
8703 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8704 Move new configurations to the top.
8705 * configure.tgt: Remove a29k.
8706 * config/a29k/tm-vx29k.h: Delete.
8707 * config/a29k/vx29k.mt: Delete.
8708 * config/a29k/tm-a29k.h: Delete.
8709 * config/a29k/a29k-udi.mt: Delete.
8710 * config/a29k/a29k.mt: Delete.
8711 * a29k-tdep.c: Delete.
8712 * remote-udi.c: Delete.
8713 * remote-mm.c: Delete.
8714 * remote-eb.c: Delete.
8715 * remote-adapt.c: Delete.
8716 * Makefile.in: Remove obsolete code.
8717 * config/s390/s390x.mt: Ditto.
8718 * config/s390/s390.mt: Ditto.
8719 * config/sparc/sparclynx.mh: Ditto.
8720 * config/sparc/linux.mh: Ditto.
8721 * config/pa/hppaosf.mh: Ditto.
8722 * config/pa/hppabsd.mh: Ditto.
8723 * config/ns32k/nbsd.mt: Ditto.
8724 * config/mips/vr5000.mt: Ditto.
8725 * config/m68k/sun3os4.mh: Ditto.
8726 * config/m68k/nbsd.mt: Ditto.
8727 * config/m68k/m68klynx.mh: Ditto.
8728 * config/m32r/m32r.mt: Ditto.
8729 * config/i386/x86-64linux.mt: Ditto.
8730 * config/i386/nbsdelf.mt: Ditto.
8731 * config/i386/nbsd.mt: Ditto.
8732 * config/i386/i386lynx.mh: Ditto.
8733
8734 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8735
8736 * target.c (debug_print_register): New function. Handle oversize
8737 registers.
8738 (debug_to_fetch_registers): Call.
8739 (debug_to_store_registers): Call.
8740
8741 2002-05-03 Jim Blandy <jimb@redhat.com>
8742
8743 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8744 (read_type): Doc fix.
8745 * gdbtypes.c (replace_type): Doc fix.
8746
8747 * stabsread.c (multiply_defined_struct): New complaint.
8748 (read_struct_type): If the type we were passed isn't empty, or
8749 incomplete, don't read the new struct type into it; complain,
8750 and return the original type unchanged. Take a new `type_code'
8751 argument, which is the type code for the new type.
8752 (read_type): Rather than storing the type's type code here, pass
8753 it as an argument to read_struct_type, and let that take care of
8754 storing it. That way, we don't overwrite the original type code,
8755 so read_struct_type can use it to decide whether we're overwriting
8756 something we shouldn't.
8757 (complain_about_struct_wipeout): New function.
8758
8759 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8760
8761 * gdbarch.sh: Assert that gdbarch is non-NULL.
8762 * gdbarch.c: Regenerate.
8763
8764 2002-05-03 Jason Merrill <jason@redhat.com>
8765
8766 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8767 and return NULL.
8768
8769 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8770
8771 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8772 (x86_64_dwarf2gdb_regno_map_length),
8773 (x86_64_dwarf2_reg_to_regnum): Added.
8774 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8775 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8776 (_initialize_x86_64_tdep): Synced with the change above.
8777 (x86_64_skip_prologue): Reformulated message.
8778
8779 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8780
8781 * f-exp.y: Also use new prev_lexptr variable
8782 to improve error reporting. Based on Michael Snyder
8783 2002-04-24 dated patch to c-exp.y.
8784 * jv-exp.y: Likewise.
8785 * m2-exp.y: Likewise.
8786
8787 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8788
8789 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8790 we are dealing with vectors.
8791
8792 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8793
8794 * config/m68k/tm-nbsd.h: Obvious fix,
8795 correct machine name.
8796
8797 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8798
8799 * p-typeprint.c (pascal_type_print_base): Add support
8800 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8801
8802 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8803
8804 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8805 for fondamental pascal 'char' type.
8806
8807 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8808
8809 * p-lang.h (is_pascal_string_type): Declaration changed,
8810 new sixth argument of type char ** added.
8811 * p-lang.c (is_pascal_string_type): Implementation
8812 changed. Args length_pos, length_size, string_pos, char_size
8813 can now be NULL. New argument arrayname set to the field
8814 name of the char array. Return value set to char array
8815 field index plus one.
8816 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8817 is_pascal_string_type function.
8818
8819 2002-05-02 Andrew Cagney <cagney@redhat.com>
8820
8821 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8822 <cagney@redhat.com> change.
8823 * gdbarch.c: Regenerate.
8824
8825 2002-05-02 Andrew Cagney <cagney@redhat.com>
8826
8827 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8828 before probing for a new one. Detect errorenous gdbarch_init
8829 functions.
8830 * gdbarch.c: Regenerate.
8831
8832 2002-05-01 Andrew Cagney <cagney@redhat.com>
8833
8834 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8835 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8836 * config/v850/tm-v850.h: Ditto. Update copyright.
8837
8838 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8839
8840 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8841 current_gdbarch.
8842
8843 2002-04-30 Michael Snyder <msnyder@redhat.com>
8844
8845 * arm-tdep.c: Whitespace clean-ups.
8846 (arm_skip_prologue): Fix thinko; two lines
8847 should have been removed as part of 4/24 change.
8848
8849 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8850
8851 * rs6000-tdep.c: Added comment describing how fpscr register
8852 numbers were chosen.
8853
8854 2002-04-30 Michael Snyder <msnyder@redhat.com>
8855
8856 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8857
8858 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8859
8860 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8861 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8862 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8863
8864 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8865
8866 From Louis Hamilton <hamilton@redhat.com>:
8867 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8868 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8869 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8870 not bfd-private xcoff data, to determine wordsize.
8871 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8872
8873 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8874
8875 GDB 5.2 released from 5.2 branch.
8876
8877 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8878
8879 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8880 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8881 (x86_64_register_info_table): Added comments with register numbers.
8882
8883 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8884
8885 * rs6000-tdep.c (rs6000_extract_return_value,
8886 rs6000_store_return_value): Handle returning vectors.
8887 (rs6000_gdbarch_init): Use
8888 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8889 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8890 New function.
8891 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8892 vectors.
8893 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8894 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8895
8896 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8897
8898 * hpread.c (hpread_psymtab_to_symtab_1,
8899 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8900 with fprintf_unfiltered (gdb_stderr,...).
8901
8902 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8903
8904 * remote-array.c (printf_monitor, write_monitor,
8905 array_insert_breakpoint, array_remove_breakpoint ):
8906 Replace fprintf (stderr,...
8907 with fprintf_unfiltered (gdb_stderr,....
8908 * remote-es.c: Likewise.
8909 * remote-os9k.c: Likewise.
8910 * remote-st.c: Likewise.
8911
8912 2002-04-28 Andreas Schwab <schwab@suse.de>
8913
8914 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8915 linux-proc.o and gcore.o.
8916
8917 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8918
8919 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8920 code without frame pointers.
8921
8922 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8923
8924 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8925 ON_STACK is needed.
8926
8927 2002-04-26 Ben Elliston <bje@redhat.com>
8928
8929 * target.c (do_xfer_memory): Correct reference to the new option
8930 "trust-readonly-sections".
8931
8932 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8933
8934 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8935 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8936 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8937 vectors.
8938 (read_array_type): Record the fact that this array type is really a
8939 vector (i.e. are passed in by value).
8940
8941 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8942
8943 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8944 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8945 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8946 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8947 * alpha-linux-tdep.c: Include frame.h.
8948 (alpha_linux_sigcontext_addr): New function.
8949 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8950 alpha_linux_sigcontext_addr.
8951 * alpha-osf1-tdep.c: Include gdbcore.h.
8952 (alpha_osf1_sigcontext_addr): New function.
8953 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8954 alpha_osf1_sigcontext_addr.
8955 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8956 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8957
8958 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8959
8960 * stack.c (selected_frame_level):
8961 (select_frame): Do not set selected_frame_level.
8962 * frame.h (selected_frame_level): Delete declaration.
8963
8964 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8965
8966 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8967 convert_from_func_ptr-addr when AIX / PowerOpen.
8968
8969 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8970
8971 * valops.c (hand_function_call): Call
8972 generic_save_call_dummy_addr.
8973 * frame.h (generic_save_call_dummy_addr): Declare.
8974 * blockframe.c (struct dummy_frame): Add fields call_lo and
8975 call_hi.
8976 (generic_find_dummy_frame): Check for PC in range call_lo to
8977 call_hi instead of entry_point_address.
8978 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8979 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8980 (generic_save_call_dummy_addr): New function.
8981
8982 2002-04-24 David S. Miller <davem@redhat.com>
8983
8984 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8985 sparc_skip_prologue.
8986 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8987 information to find prologue when possible.
8988 (sparc_prologue_frameless_p): Call examine_prologue directly.
8989 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8990 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8991 second argument.
8992 (SKIP_PROLOGUE): Likewise.
8993
8994 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8995
8996 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8997 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8998 indicate that the condition it was testing is always true.
8999 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9000 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9001 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9002
9003 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9004
9005 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9006 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9007 tdep->jb_pc and tdep->jb_elt_size.
9008 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9009 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9010 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9011 * alpha-nat.c (get_longjmp_target): Remove.
9012 (JB_ELEMENT_SIZE): Ditto.
9013 (JB_PC): Ditto.
9014 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9015 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9016 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9017 to alpha_get_longjmp_target.
9018 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9019 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9020 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9021
9022 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9023
9024 * README: Update to GDB 5.2.
9025
9026 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9027
9028 * gdbarch.sh (LC_ALL): Set to `c'.
9029
9030 2002-04-25 Theodore A. Roth <troth@verinet.com>
9031
9032 * avr-tdep.c: Ran through gdb_indent.sh.
9033
9034 2002-04-25 Theodore A. Roth <troth@verinet.com>
9035
9036 * MAINTAINERS: Add myself as AVR maintainer.
9037 * NEWS: Note new target avr.
9038
9039 2002-04-25 Theodore A. Roth <troth@verinet.com>
9040
9041 * Makefile.in: Add support for AVR target.
9042 * configure.tgt: Add support for AVR target.
9043 * avr-tdep.c: New file
9044 * config/avr/avr.mt: New file.
9045
9046 2002-04-25 Theodore A. Roth <troth@verinet.com>
9047
9048 * MAINTAINERS: Add myself to write-after-approval.
9049
9050 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9051
9052 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9053 with fprintf_unfiltered (gdb_stderr,....
9054
9055 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9056
9057 Fix PR gdb/508.
9058 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9059
9060 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9061
9062 * p-exp.y: Also use new prev_lexptr variable
9063 to improve error reporting. Based on Michael Snyder
9064 2002-04-24 dated patch to c-exp.y.
9065
9066 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9067
9068 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9069 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9070 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9071 to 0.
9072 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9073 and struct value.
9074 (FUNCTION_START_OFFSET): Remove.
9075 (BREAKPOINT): Ditto.
9076
9077 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9078
9079 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9080 * NEWS: Ditto.
9081
9082 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9083
9084 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9085 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9086 alpha_linux_pc_in_sigtramp.
9087 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9088 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9089 alpha_osf1_pc_in_sigtramp.
9090 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9091 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9092 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9093 alphafbsd_pc_in_sigtramp.
9094 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9095 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9096 alphanbsd_pc_in_sigtramp.
9097 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9098 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9099
9100 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9101
9102 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9103
9104 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9105
9106 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9107 alphanbsd-tdep.c.
9108 (alphanbsd-nat.o): New dependency list.
9109 (alphanbsd-tdep.o): Ditto.
9110 * NEWS: Note new native NetBSD/alpha configuration.
9111 * alphanbsd-nat.c: New file.
9112 * alphanbsd-tdep.c: Ditto.
9113 * configure.host (alpha*-*-netbsd*): New host.
9114 * configure.tgt (alpha*-*-netbsd*): New target.
9115 * config/alpha/nbsd.mh: New file.
9116 * config/alpha/nbsd.mt: Ditto.
9117 * config/alpha/nm-nbsd.h: Ditto.
9118 * config/alpha/tm-nbsd.h: Ditto.
9119
9120 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9121
9122 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9123 (alpha-osf1-tdep.o): New dependency list.
9124 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9125 and skip_sigtramp_frame members.
9126 * alpha-linux-tdep.c: Include gdbcore.h.
9127 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9128 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9129 * alpha-osf1-tdep.c: New file.
9130 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9131 alpha-osf1-dep.c.
9132 (alpha_frame_past_sigtramp_frame): New function.
9133 (alpha_dynamic_sigtramp_offset): Ditto.
9134 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9135 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9136 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9137 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9138 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9139 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9140 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9141 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9142 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9143 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9144 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9145 to find_solib_trampoline_target.
9146 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9147 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9148 (SKIP_TRAMPOLINE_CODE): Remove.
9149 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9150 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9151 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9152 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9153 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9154 (PROC_SIGTRAMP_MAGIC): Ditto.
9155 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9156 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9157 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9158 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9159 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9160
9161 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9162
9163 * NEWS: Note that Alpha targets are now multi-arch.
9164
9165 2002-04-24 Michael Snyder <msnyder@redhat.com>
9166
9167 * parser-defs.h (prev_lexptr): New external variable.
9168 * parse.c (parse_exp_1): Set prev_lexptr to null before
9169 calling the language-specific parser.
9170 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9171 (yyerror): Use prev_lexptr in error reporting.
9172
9173 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9174
9175 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9176 * gregset.h: If FILL_FPXREGSET is defined, provide
9177 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9178 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9179 is defined, call fill_fpxregset.
9180
9181 2002-04-24 Roland McGrath <roland@frob.com>
9182
9183 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9184 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9185 (supply_gregset, supply_fpregset): New functions.
9186
9187 * gnu-nat.c (gnu_find_memory_regions): New function.
9188 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9189 (gnu_xfer_memory): Add a cast.
9190
9191 2002-04-24 Michael Snyder <msnyder@redhat.com>
9192
9193 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9194 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9195 of argument regs ("str r(0123), [r11, #-nn"]).
9196 (arm_skip_prologue): Better handling for frameless functions.
9197 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9198 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9199
9200 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9201
9202 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9203 NUM_PSEUDO_REGS can be used.
9204
9205 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9206
9207 * arch-utils.h: Update copyright.
9208
9209 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9210 * gdbarch.h, gdbarch.c: Re-generate.
9211
9212 * inferior.h (IN_SIGTRAMP): Delete definition.
9213 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9214 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9215
9216 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9217 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9218 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9219 (find_proc_framesize): Ditto.
9220 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9221 (alpha_init_extra_frame_info): Ditto.
9222 * infrun.c (handle_inferior_event): Ditto.
9223 (handle_inferior_event): Ditto.
9224 (check_sigtramp2): Ditto.
9225 * blockframe.c (create_new_frame): Ditto.
9226 (get_prev_frame): Ditto.
9227 * ppc-linux-tdep.c: Update comments.
9228 * i386-linux-tdep.c: Update comments.
9229 * breakpoint.c (bpstat_what): Update comment.
9230
9231 2002-04-24 David S. Miller <davem@redhat.com>
9232
9233 * i960-tdep.c (register_in_window_p): New function.
9234 (i960_find_saved_register): Use it instead of
9235 REGISTER_IN_WINDOW_P.
9236 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9237
9238 * symtab.h (find_stab_function_addr): Kill extern.
9239 * minsyms.c (find_stab_function_addr): Remove from here...
9240 * dbxread.c: ... to here, and mark it static.
9241
9242 2002-04-20 David S. Miller <davem@redhat.com>
9243
9244 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9245 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9246
9247 2002-04-21 David S. Miller <davem@redhat.com>
9248
9249 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9250 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9251 (vx_write_register): Likewise.
9252
9253 2002-04-23 J. Brobecker <brobecker@gnat.com>
9254
9255 * source.c (is_regular_file): New function.
9256 (openp): Check wether file to open is a regular file
9257 to avoid opening directories.
9258
9259 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9260
9261 * findvar.c (extract_signed_integer): Cast printf argument
9262 to suppress format warning.
9263 (extract_unsigned_integer): Likewise.
9264 * infcmd.c (registers_info): Likewise.
9265 * top.c (get_prompt_1): Likewise.
9266 * valops.c (value_assign): Likewise.
9267 * valprint.c (print_decimal): Likewise.
9268
9269 2002-04-22 H.J. Lu (hjl@gnu.org)
9270
9271 * c-exp.y (typebase): Support
9272
9273 [long|long long|short] [signed|unsigned] [int|]
9274
9275 and
9276
9277 signed [long|long long|short] int
9278
9279 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9280
9281 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9282 and vax-tdep.h.
9283 * vax-tdep.h: New file.
9284 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9285 Make several routines static.
9286 (vax_get_saved_register): New function.
9287 (vax_gdbarch_init): New function.
9288 (_initialize_vax_tdep): Register vax_gdbarch_init.
9289 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9290 Remove macros now under the control of gdbarch.
9291
9292 2002-04-22 Michael Snyder <msnyder@redhat.com>
9293
9294 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9295 Some whitespace and coding standards tweaks.
9296
9297 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9298
9299 * vax-tdep.c: Include regcache.h.
9300 (vax_call_dummy_words): New.
9301 (sizeof_vax_call_dummy_words): New.
9302 (vax_fix_call_dummy): New function.
9303 (vax_saved_pc_after_call): Ditto.
9304 * config/vax/tm-vax.h: Don't include regcache.h.
9305 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9306 (CALL_DUMMY): Remove.
9307 (CALL_DUMMY_WORDS): Define.
9308 (SIZEOF_CALL_DUMMY_WORDS): Define.
9309 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9310
9311 2002-04-18 Michael Snyder <msnyder@redhat.com>
9312
9313 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9314
9315 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9316
9317 * vax-tdep.c (vax_frame_chain): New function.
9318 (vax_push_dummy_frame): Ditto.
9319 (vax_pop_frame): Ditto.
9320 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9321 (FRAMELESS_FUNCTION_INVOCATION): Use
9322 generic_frameless_function_invocation_not.
9323 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9324 (POP_FRAME): Use vax_pop_frame.
9325
9326 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9327
9328 * vax-tdep.c (vax_store_struct_return): New function.
9329 (vax_extract_return_value): Ditto.
9330 (vax_store_return_value): Ditto.
9331 (vax_extract_struct_value_address): Ditto.
9332 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9333 vax_store_struct_return.
9334 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9335 (STORE_RETURN_VALUE): Use vax_store_return_value.
9336 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9337
9338 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9339
9340 * vax-tdep.c (vax_frame_saved_pc): New function.
9341 (vax_frame_args_address_correct): Ditto.
9342 (vax_frame_args_address): Ditto.
9343 (vax_frame_locals_address): Ditto.
9344 (vax_frame_num_args): Move code to be in proximity to
9345 other frame-related functions.
9346 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9347 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9348 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9349 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9350 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9351
9352 2002-04-22 H.J. Lu (hjl@gnu.org)
9353
9354 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9355 includedir.
9356
9357 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9358
9359 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9360 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9361 (FRAME_INIT_SAVED_REGS): New macro.
9362
9363 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9364
9365 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9366
9367 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9368
9369 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9370 where needed.
9371 (fetch_osf_core_registers): Likewise.
9372 (supply_gregset): Likewise.
9373
9374 2002-04-22 J. Brobecker <brobecker@gnat.com>
9375
9376 * symfile.h (get_section_index): Define.
9377 * symfile.c (get_section_index): New function.
9378 * mdebugread.c (SC_IS_SBSS): New macro.
9379 (SC_IS_BSS): Return true for the scBss storage class only, as
9380 the scSBss storage class refers to the .sbss section.
9381 (parse_partial_symbols): Discard the symbols which associated
9382 section does not exist.
9383 Make sure to use the .sbss section index for symbols which
9384 storage class is scBss, rather than using the .bss section index.
9385
9386 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9387
9388 * vax-tdep.c: Update copyright years.
9389 (vax_register_name): New function.
9390 (vax_register_byte): Ditto.
9391 (vax_register_raw_size): Ditto.
9392 (vax_register_virtual_size): Ditto.
9393 (vax_register_virtual_type): Ditto.
9394 * config/vax/tm-vax.h: Update copyright years.
9395 (REGISTER_NAMES): Remove.
9396 (REGISTER_NAME): Define.
9397 (REGISTER_BYTE): Use vax_register_byte.
9398 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9399 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9400 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9401
9402 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9403
9404 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9405 declaration
9406 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9407
9408 2002-04-21 David S. Miller <davem@redhat.com>
9409
9410 * arch-utils.c (generic_prologue_frameless_p): Kill
9411 SKIP_PROLOGUE_FRAMELESS_P code.
9412 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9413 references.
9414 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9415 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9416 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9417 references.
9418 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9419 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9420 (sparc_gdbarch_init): Pass it to
9421 set_gdbarch_prologue_frameless_p.
9422
9423 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9424
9425 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9426 (alphabsd-nat.o): New dependency list.
9427
9428 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9429
9430 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9431 alphafbsd-tdep.c.
9432 (alpha-linux-tdep.o): New dependency list.
9433 (alphafbsd-tdep.o): Likewise.
9434
9435 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9436
9437 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9438 to here...
9439 * alpha-tdep.c: ...from here.
9440 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9441
9442 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9443
9444 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9445 prototype from here...
9446 * alpha-tdep.h: ...to here.
9447
9448 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9449
9450 * frame.h (selected_frame_level): Document as deprecated.
9451 (frame_relative_level): Declare.
9452 * stack.c (frame_relative_level): New function.
9453 (selected_frame_level): Document as deprecated.
9454 (select_frame): Do not set the selected_frame_level.
9455
9456 * stack.c (frame_info, record_selected_frame): Update.
9457 (frame_command, current_frame_command): Update.
9458 (up_silently_base, up_command, down_silently_base): Update.
9459 (down_command): Update.
9460 * inflow.c (kill_command): Update.
9461 * tracepoint.c (finish_tfind_command): Update.
9462 * corelow.c (core_open): Update.
9463 * thread.c (info_threads_command): Update.
9464 (do_captured_thread_select): Update.
9465 * infcmd.c (finish_command): Update.
9466 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9467
9468 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9469
9470 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9471
9472 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9473
9474 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9475 type const.
9476
9477 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9478
9479 * alphafbsd-tdep.c: Update copyright years. Include
9480 alpha-tdep.h.
9481 (alphafbsd_use_struct_convention): Make static.
9482 (alphafbsd_init_abi): New function.
9483 (_initialize_alphafbsd_tdep): New function.
9484 * config/alpha/tm-fbsd.h: Update copyright years.
9485 (USE_STRUCT_CONVENTION): Remove.
9486
9487 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9488
9489 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9490 an Alpha ABI variant.
9491 (alpha_abi_handler_list): Declare.
9492 (alpha_gdbarch_register_os_abi): New function.
9493 (alpha_gdbarch_init): Give registered ABI variant handlers a
9494 chance to tweak the gdbarch once we have set up defaults.
9495 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9496
9497 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9498
9499 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9500 to standard_coerce_float_to_double.
9501 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9502
9503 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9504
9505 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9506 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9507 from gdbarch_tdep rather than a constant.
9508 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9509 the default text address for all Alpha Unix ABIs.
9510 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9511 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9512
9513 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9514
9515 * alpha-tdep.h: New file. Includes several Alpha target constants
9516 taken from...
9517 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9518 let gdbarch deal with.
9519 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9520 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9521 to dependency list.
9522 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9523 Alpha target register names.
9524 * alphabsd-nat.c: Likewise.
9525 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9526 Alpha target register names. Make serveral routines static.
9527 (alpha_get_saved_register): New function.
9528 (alpha_abi_names): New.
9529 (process_note_abi_tag_sections): New function.
9530 (get_elfosabi): New function.
9531 (alpha_gdbarch_init): New function.
9532 (alpha_dump_tdep): New function.
9533 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9534
9535 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9536
9537 * frame.c (find_saved_register): Delete #ifdef
9538 HAVE_REGISTER_WINDOWS code.
9539 * config/sparc/tm-sparc.h: Update comments.
9540 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9541
9542 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9543
9544 * i960-tdep.c (i960_find_saved_register): New function.
9545 (i960_get_saved_register): New function.
9546 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9547 (i960_get_saved_register): Declare.
9548 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9549
9550 2002-04-20 David S. Miller <davem@redhat.com>
9551
9552 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9553
9554 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9555
9556 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9557 instead of NUM_PSEUDO_REGS.
9558
9559 2002-04-20 David S. Miller <davem@redhat.com>
9560
9561 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9562 GDB_MULTI_ARCH_PARTIAL
9563 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9564 define, let tm-sp64.h do it.
9565
9566 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9567
9568 * frame.c (find_saved_register): Avoid a NULL pointer
9569 dereference and actually walk the frame list.
9570
9571 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9572
9573 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9574 sorted in most most-recent-used order. Document.
9575 * gdbarch.h, gdbarch.c: Regenerate.
9576
9577 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9578
9579 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9580 instead of ->prev.
9581 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9582 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9583 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9584 instead of ->prev.
9585
9586 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9587
9588 Fix PR gdb/471.
9589 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9590 (build_builtin_type_vec128): Ditto.
9591 (append_composite_type_field): Fix calculation of type length in
9592 union case.
9593
9594 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9595
9596 * config/djgpp/README: Update.
9597
9598 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9599 compiler warnings.
9600
9601 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9602
9603 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9604 (alpha_setup_arbitrary_frame): ...to this.
9605 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9606 for alpha_setup_arbitrary_frame.
9607
9608 2002-04-18 Andrew Cagney <cagney@redhat.com>
9609
9610 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9611 * gdbarch.h, gdbarch.c: Regenerate.
9612
9613 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9614 * target.h (memory_breakpoint_from_pc): Update declaration.
9615 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9616
9617 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9618 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9619 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9620 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9621 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9622 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9623 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9624 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9625 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9626 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9627 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9628 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9629
9630 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9631 const pointer.
9632 * monitor.c (monitor_insert_breakpoint): Ditto.
9633 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9634
9635 * config/mcore/tm-mcore.h: Update copyright.
9636 * mem-break.c: Ditto.
9637 * xstormy16-tdep.c: Ditto.
9638
9639 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9640
9641 * p-exp.y: Add precedence rule for '^' token.
9642 This removes the shift/reduce conflicts.
9643 Remove the comment concerning these shift/reduce conflicts.
9644
9645 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9646
9647 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9648 (registers_powerpc_nofp): New register set for processors
9649 without floating point unit.
9650
9651 2002-04-18 David S. Miller <davem@redhat.com>
9652
9653 * MAINTAINERS: Add myself to write-after-approval.
9654
9655 2002-04-17 Michael Snyder <msnyder@redhat.com>
9656
9657 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9658
9659 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9660
9661 * rs6000-tdep.c (frame_initial_stack_address): Use
9662 frame_register_read to read the alloca_reg.
9663
9664 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9665
9666 * frame.c (find_saved_register): Find saved registers in the next
9667 not prev frame.
9668 Fix PR gdb/365.
9669
9670 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9671
9672 * gdbarch.sh (LANG): Set to ``c''.
9673
9674 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9675
9676 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9677
9678 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9679
9680 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9681 Update copyright.
9682
9683 * hpread.c (hpread_get_lntt): Add declaration.
9684 Also fix PR gdb/391.
9685
9686 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9687
9688 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9689 * aclocal.m4, configure: Re-generate.
9690 Fix PR gdb/391.
9691
9692 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9693
9694 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9695 instead of tm_print_insn.
9696
9697 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9698
9699 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9700
9701 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9702
9703 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9704 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9705 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9706
9707 2002-04-12 Don Howard <dhoward@redhat.com>
9708
9709 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9710 max_user_call_depth.
9711 (init_cmd_lists): Initialize the new value;
9712 * cli/cli-script.c (execute_user_command): Limit the call depth of
9713 user defined commands. This avoids a core-dump when user commands
9714 are infinitly recursive.
9715
9716 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9717
9718 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9719 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9720 from tdep struct instead of DEFAULT_LR_SAVE.
9721 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9722 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9723 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9724
9725 2002-04-12 Michael Snyder <msnyder@redhat.com>
9726
9727 * Remote.c: Spelling fix.
9728 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9729 If no symbol found for "sbrk", try "_sbrk".
9730 (make_output_phdrs): Use bfd_section_name.
9731 (gcore_copy_callback): Use bfd_section_name.
9732 * eval.c: Indentation fix-ups.
9733 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9734 in case it gets applied to an address that is already
9735 in the instruction space.
9736 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9737 * symfile.c: Fix indentation, long lines.
9738 * source.c: White space fix-up.
9739
9740 2002-04-12 Andrew Cagney <cagney@redhat.com>
9741
9742 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9743 * frame.c (frame_register_read): New function. Return non-zero on
9744 success.
9745 (read_relative_register_raw_bytes_for_frame): Delete.
9746 (read_relative_register_raw_bytes): Delete.
9747 * frame.h (frame_register_read): Declare.
9748 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9749 * sh-tdep.c: Ditto.
9750 * infcmd.c (do_registers_info): Ditto.
9751 * hppa-tdep.c: Ditto.
9752 * rs6000-tdep.c: Ditto.
9753 * h8500-tdep.c: Ditto.
9754 * mips-tdep.c: Ditto.
9755 * h8300-tdep.c: Ditto.
9756 * z8k-tdep.c: Ditto.
9757
9758 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9759
9760 From Jimi X <jimix@watson.ibm.com>:
9761 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9762 64-bit SysV ABI.
9763
9764 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9765
9766 From Jimi X <jimix@watson.ibm.com>:
9767 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9768 bfd info.
9769
9770 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9771
9772 From Jimi X <jimix@watson.ibm.com>:
9773 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9774 register sets for these processor variants.
9775
9776 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9777
9778 * regformats/reg-ppc.dat: Support FPSCR.
9779
9780 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9781
9782 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9783 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9784 Add fpscr as an invalid/unfetchable register.
9785 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9786 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9787 (fill_fpregset): Add support for register fpscr.
9788 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9789 (fill_gregset): Account for the fact that register ``mq'' might
9790 not exist.
9791 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9792 (registers_power): Add fpscr to register set at slot 71.
9793 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9794 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9795
9796 2002-04-11 Michael Snyder <msnyder@redhat.com>
9797
9798 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9799 * configure: Regenerate.
9800 * config.in: Regenerate.
9801 * acconfig.h: Add define for _SYSCALL32.
9802 * core-sol2.c: Remove #define _SYSCALL32.
9803 * solib-legacy.c: Remove #define _SYSCALL32.
9804
9805 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9806
9807 * stack.c (select_frame): Cleanup internal error message, do not
9808 use %p.
9809
9810 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9811
9812 * stack.c (select_frame): Check that selected_frame and the
9813 specified level are as expected.
9814 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9815 Update copyright.
9816 * frame.h (struct frame_info): Add field `level'. Update
9817 copyright.
9818 Work-in-progress PR gdb/464.
9819
9820 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9821
9822 * maint.c (maint_print_section_info): Rename print_section_info.
9823 (print_bfd_section_info, print_objfile_section_info): Update.
9824 * inferior.h (struct gdbarch): Add opaque declaration.
9825 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9826 * gdbarch.h: Regenerate.
9827
9828 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9829
9830 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9831 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9832 (kernel_u_size): Added.
9833 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9834 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9835
9836 2002-04-04 Jim Ingham <jingham@apple.com>
9837
9838 * valarith.c (find_size_for_pointer_math): New function, either returns
9839 the size for a pointer's target, returns 1 for void *, or errors for
9840 incomplete types.
9841 (value_add, value_sub): use find_size_for_pointer_math.
9842
9843 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9844
9845 * linux-low.c (linux_look_up_symbols): New hook.
9846 (linux_target_ops): Add linux_look_up_symbols.
9847 * remote-utils.c (decode_address): New function.
9848 (look_up_one_symbol): New function.
9849 * server.c (handle_query): Call target look_up_symbols hook.
9850 * server.h (look_up_one_symbol): Add prototype.
9851 * target.h (struct target_ops): Add look_up_symbols hook.
9852
9853 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9854
9855 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9856 override FP_REGNUM with frame->fp. Update copyright.
9857 * parse.c (num_std_regs, std_regs): Delete.
9858 (target_map_name_to_register): Do not search std_regs. Update
9859 function description.
9860 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9861 declarations. Update copyright.
9862 Fix PR gdb/251.
9863
9864 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9865
9866 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9867 after the last symbol in a block.
9868
9869 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9870
9871 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9872 is non zero as a found symbol.
9873
9874 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9875
9876 * findvar.c: Include "builtin-regs.h".
9877 (value_of_register): Call value_of_builtin_reg when applicable.
9878 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9879 (target_map_name_to_register): Call
9880 builtin_reg_map_name_to_regnum.
9881 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9882 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9883 (builtin_regs_h): Define.
9884 (builtin-regs.o): New target.
9885 (findvar.o): Add $(builtin_regs_h).
9886 * builtin-regs.c, builtin-regs.h: New files.
9887 * std-regs.c: New file.
9888 Partial fix for PR gdb/251.
9889
9890 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9891
9892 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9893 it's no longer required.
9894
9895 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9896
9897 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9898
9899 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9900
9901 From Jimi X <jimix@watson.ibm.com>:
9902 * rs6000-tdep.c (rs6000_software_single_step): Use
9903 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9904 and size. Use target_insert_breakpoint() and
9905 target_remove_breakpoint() to insert and remove breakpoints
9906 instead of explicit memory reads and writes.
9907
9908 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9909
9910 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9911 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9912 ELF_OBJECT_FORMAT ifdef.
9913
9914 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9915
9916 From Jimi X <jimix@watson.ibm.com>:
9917 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9918
9919 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9920
9921 From Jimi X <jimix@watson.ibm.com>:
9922 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9923 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9924
9925 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9926
9927 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9928 s/asprintf/xasprintf/.
9929 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9930
9931 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9932
9933 I believe Jeff Law denies responsability for this one:
9934 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9935 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9936 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9937 Work-around for PR gdb/366.
9938
9939 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9940
9941 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9942 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9943 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9944
9945 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9946
9947 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9948 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9949 information.
9950
9951 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9952
9953 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9954 maintainer.
9955
9956 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9957
9958 * README (Reporting Bugs in GDB): Document the bug web page as the
9959 prefered way of submitting bugs.
9960 Fix PR gdb/402.
9961
9962 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9963
9964 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9965 -1. Update comment.
9966 * gdbarch.h, gdbarch.c: Re-generate.
9967
9968 2002-04-07 Andreas Schwab <schwab@suse.de>
9969
9970 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9971 buffer to regcache_collect.
9972
9973 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9974
9975 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9976 * gdbarch.c, gdbarch.h: Re-generate.
9977
9978 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9979
9980 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9981 declaration. Fix -Werror.
9982
9983 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9984
9985 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9986 * gdbarch.c: Regenerate.
9987
9988 2002-04-05 Michael Snyder <msnyder@redhat.com>
9989
9990 * breakpoint.c (clear_command): Rewrite middle section to
9991 combine two loops with identical control conditions.
9992 Add a cleanup to eliminate a memory leak.
9993 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9994
9995 2002-04-05 H.J. Lu (hjl@gnu.org)
9996
9997 * solib-svr4.c (bkpt_names): Add "__start".
9998
9999 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10000
10001 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10002 as test for 64 bit target.
10003
10004 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10005
10006 * h8500-tdep.c (h8500_write_fp): Delete function.
10007 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10008 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10009 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10010 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10011 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10012 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10013 (s390_write_fp):
10014 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10015 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10016 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10017 (d10v_write_fp): Delete function.
10018 * inferior.h (write_fp, generic_target_write_fp): Delete
10019 declarations.
10020 * regcache.c (generic_target_write_fp): Delete function.
10021 (write_fp): Delete function.
10022 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10023 * gdbarch.h, gdbarch.c: Regenerate.
10024 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10025 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10026 (sparc64_write_fp): Delete declaration.
10027 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10028 (h8500_write_fp): Delete declaration.
10029
10030 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10031
10032 * sparc-tdep.c (sparc64_write_fp): Delete.
10033 (sparc_push_dummy_frame): Replace write_fp call with code to store
10034 the FP directly.
10035 (sparc_gdbarch_init): Do not initialize write_fp.
10036
10037 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10038
10039 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10040 clause.
10041
10042 2002-03-29 Jim Blandy <jimb@redhat.com>
10043
10044 * stack.c (get_selected_block): Add new argument `addr_in_block',
10045 used to return the exact code address we used to select the block,
10046 not just the block.
10047 * blockframe.c (get_frame_block, get_current_block): Same.
10048 * frame.h (get_frame_block, get_current_block,
10049 get_selected_block): Update declarations.
10050 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10051 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10052
10053 2002-04-05 Michael Snyder <msnyder@redhat.com>
10054
10055 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10056 warning message.
10057
10058 2002-04-05 J. Brobecker <brobecker@gnat.com>
10059
10060 * utils.c (xfullpath): New function.
10061 * defs.h (xfullpath): Add declaration.
10062 * source.c (openp): Use xfullpath in place of gdb_realpath to
10063 avoid resolving the basename part of filenames when the
10064 associated file is a symbolic link. This fixes a potential
10065 inconsistency between the filenames known to GDB and the
10066 filenames it prints in the annotations.
10067 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10068 to be able to match a filename with either the real filename, or
10069 the name of any symbolic link to this file.
10070 (lookup_partial_symtab): Ditto.
10071
10072 2002-04-04 Michael Snyder <msnyder@redhat.com>
10073
10074 * breakpoint.c: Add support for hardware breakpoints in overlays.
10075 (overlay_events_enabled): New state variable.
10076 (insert_breakpoints): Use overlay_events_enabled to decide
10077 whether to attempt to set a breakpoint at the overlay load addr.
10078 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10079 (remove_breakpoint): Use overlay_events_enabled to decide
10080 whether breakpoints need to be removed from overlay load addr.
10081 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10082 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10083 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10084 disable_overlay_breakpoints): Update overlay_events_enabled.
10085
10086 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10087
10088 * dwarf2read.c (struct function_range): New.
10089 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10090 (check_cu_functions): New.
10091 (read_file_scope): Initialize global function lists.
10092 Call dwarf_decode_line after processing children.
10093 (read_func_scope): Add to global function list.
10094 (dwarf_decode_lines): Call check_cu_functions everywhere
10095 record_line is called. Call record_line with a linenumber
10096 of 0 to mark sequence ends.
10097
10098 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10099
10100 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10101 change sync with glibc.
10102
10103 2002-04-03 Jim Blandy <jimb@redhat.com>
10104
10105 * configure.in: Call AC_C_INLINE.
10106 * configure: Regenerated.
10107
10108 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10109
10110 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10111 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10112
10113 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10114
10115 * NEWS: Mention gcore support on FreeBSD/i386.
10116
10117 * fbsd-proc.c: New file.
10118 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10119 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10120
10121 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10122 while statement.
10123
10124 2002-03-29 Jim Blandy <jimb@redhat.com>
10125
10126 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10127 unescaped newlines in string literals, but newer ones don't. So
10128 escape them.
10129
10130 2002-03-26 Michael Snyder <msnyder@redhat.com>
10131 Andrew Cagney <cagney@redhat.com>
10132
10133 * cli/cli-dump.c: New file. Dump memory to file,
10134 restore file to memory.
10135 * cli/cli-dump.h: New file.
10136 * Makefile.in: Add rules, dependencies for cli-dump.o.
10137 * NEWS: Mention new commands.
10138
10139 2002-03-28 Michael Snyder <msnyder@redhat.com>
10140
10141 * symfile.c (symbol_file_add): Move test for null symbols to later.
10142
10143 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10144
10145 From veksler at il.ibm.com:
10146 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10147 the xstrduped original path.
10148 Fix PR gdb/417.
10149
10150 2002-03-27 Michael Snyder <msnyder@redhat.com>
10151
10152 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10153 * infcmd.c (_initialize_infcmd): Ditto.
10154 * language.c (_initialize_language): Ditto.
10155 * symfile.c (_initialize_symfile): Ditto.
10156 * top.c (_init_main): Ditto.
10157 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10158
10159 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10160
10161 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10162 vector registers handling.
10163 (skip_prologue): Handle new AltiVec instructions. Fill in new
10164 fields of frame data.
10165 (frame_get_saved_regs): Fill in information for AltiVec registers.
10166
10167 2002-03-27 Jim Blandy <jimb@redhat.com>
10168
10169 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10170 a function; leave this macro here to invoke that function.
10171 (symbol_init_mangled_name): Declaration for that function.
10172 * symtab.c (symbol_init_mangled_name): New function.
10173
10174 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10175
10176 * valarith.c: Replace strerror with safe_strerror.
10177 * tracepoint.c: Ditto.
10178 * lin-lwp.c: Ditto.
10179 * go32-nat.c: Ditto.
10180 * inflow.c: Ditto.
10181 * gnu-nat.c: Ditto.
10182
10183 2002-03-27 Andreas Schwab <schwab@suse.de>
10184
10185 * event-top.c (command_line_handler): Remove useless if.
10186
10187 2002-03-27 Andreas Jaeger <aj@suse.de>
10188
10189 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10190 comment.
10191
10192 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10193
10194 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10195 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10196 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10197 (x86_64_linux_dr_get_status, supply_gregset),
10198 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10199 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10200 (x86_64_register_info_table): Add.
10201 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10202 (x86_64_register_raw_size, x86_64_register_virtual_type),
10203 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10204 general x86_64_register_info_table.
10205 (i386_gdbarch_init): gdbarch_register_bytes is now set
10206 dynamicaly during initialization.
10207 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10208 * gdbserver/linux-x86-64-low.c: Ditto.
10209
10210 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10211
10212 * gdbserver/server.c (main): Call target_signal_to_host_p
10213 and target_signal_to_host on signals received from the remote.
10214 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10215 target_signal_from_host on signals sent to the remote.
10216 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10217 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10218
10219 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10220
10221 * signals/signals.c: Include "server.h" in gdbserver build.
10222 (target_signal_from_name): Don't use STREQ.
10223 (_initialize_signals): Likewise. Don't include function in
10224 gdbserver build.
10225
10226 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10227
10228 * signals.c: Moved to...
10229 * signals/signals.c: Here.
10230 * Makefile (signals.o): Update.
10231
10232 2002-03-26 Jeff Law (law@redhat.com)
10233
10234 * somread.c (som_symtab_read): Remove some commented out code and
10235 updated related comments. Do not set the minimal symbol table to
10236 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10237 in a dynamic executable.
10238 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10239 where we are unable to find the minimal symbol for the given
10240 PC value.
10241
10242 2002-03-25 Jeff Law (law@redhat.com)
10243
10244 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10245
10246 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10247
10248 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10249
10250 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10251
10252 * command.h: Update copyright.
10253 (struct cmd_list_element): Replace definition with opaque
10254 declaration.
10255 (enum cmd_types): Document that it will eventually be moved to
10256 cli/cli-decode.h
10257 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10258 (MALLOCED_REPLACEMENT): Delete macro.
10259 * Makefile.in (cli_decode_h): Add $(command_h).
10260 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10261 * top.c: Include "cli/cli-decode.h".
10262 * completer.c: Include "cli/cli-decode.h".
10263 * maint.c: Include "cli/cli-decode.h".
10264 * cli/cli-decode.h: Include "command.h".
10265 (enum command_class): Delete.
10266 (enum cmd_types): Comment out.
10267 (enum cmd_auto_boolean): Delete.
10268 (enum var_types): Delete.
10269
10270 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10271
10272 * cli/cli-decode.c: Include "gdb_assert.h".
10273 (add_set_or_show_cmd): New static function.
10274 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10275 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10276 all fields, such as func, from the set command.
10277
10278 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10279
10280 * MAINTAINERS (sh-elf): Change warning flag to -w.
10281
10282 2002-03-23 Andrew Cagney <cagney@redhat.com>
10283
10284 * defs.h (error): Add printf format attribute.
10285 * thread-db.c (thread_from_lwp): Fix error format string.
10286 * stack.c (parse_frame_specification): Ditto.
10287 * cli/cli-decode.c (undef_cmd_error): Ditto.
10288 * scm-lang.c (scm_lookup_name): Ditto.
10289 * tracepoint.c (trace_error): Ditto.
10290 * remote-utils.c (usage): Ditto.
10291 * remote.c (compare_sections_command): Ditto.
10292 Fix PR gdb/328.
10293
10294 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10295
10296 * gdbtypes.c (append_composite_type_field): New function.
10297 (init_composite_type): New function.
10298 * gdbtypes.h (append_composite_type_field): Declare.
10299 (init_composite_type): Ditto.
10300
10301 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10302
10303 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10304 function.
10305 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10306 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10307 structure returning convention for SYSV ABI case, but not
10308 for GNU/Linux, FreeBSD, or NetBSD.
10309
10310 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10311
10312 * symtab.h (lookup_block_symbol): Add mangled_name argument
10313 to prototype.
10314
10315 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10316 with new mangled_name argument.
10317 * linespec.c (decode_line_1): Likewise.
10318 * valops (value_of_this): Likewise.
10319 * symtab.c (lookup_transparent_type): Likewise.
10320 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10321 (lookup_symbol): If we are given a mangled name, pass it down
10322 to lookup_symbol_aux.
10323 (lookup_block_symbol): If we are given a mangled name to check
10324 against, only return symbols which match it.
10325
10326 2002-03-22 Christopher Faylor <cgf@redhat.com>
10327
10328 * win32-nat.c (child_create_inferior): Check for proper shell to use
10329 here, in case the user changes it on the fly.
10330 (_initialize_inftarg): Remove shell path considerations.
10331
10332 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10333
10334 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10335 for gdbarch_max_register_raw_size and max_register_virtual_size.
10336 Adjust copyright year.
10337
10338 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10339
10340 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10341 in a function to cover the entire beginning of the function
10342 as well if it does not already.
10343
10344 2002-03-21 Tom Rix <trix@redhat.com>
10345
10346 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10347 (rs6000_ptrace64): Renamed from ptrace64.
10348
10349 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10350
10351 * gdbserver/remote-utils.c (remote_open): Don't call
10352 getprotobyname, we're all using TCP here so just use
10353 IPPROTO_TCP.
10354 * gdbserver/gdbreplay.c (remote_open): Ditto.
10355
10356 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10357
10358 * regcache.c (_initialize_regcache): No need to call
10359 build_regcache() at this time; it gets called whenever
10360 the gdbarch changes.
10361
10362 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10363
10364 * sparc-nat.c: Include sys/param.h where possible.
10365
10366 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10367
10368 Fix PR gdb/422.
10369 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10370 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10371 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10372 complex types.
10373 * stabsread.c (rs6000_builtin_type): Likewise.
10374 (read_sun_floating_type): Likewise.
10375
10376 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10377
10378 * stabsread.c (read_member_functions): Remove skip code for duplicate
10379 constructor/destructor methods. Use standard parsing for these
10380 methods and just do not chain them to the list of methods after
10381 parsing.
10382
10383 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10384
10385 * coffread.c: Remove redundant static declarations. Replace
10386 occurrences of `PTR' with `void *'.
10387 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10388 * top.h (quit_cover): Likewise.
10389 * defs.h (catch_errors): Likewise.
10390
10391 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10392
10393 * defs.h (XMALLOC): Define.
10394 * gdb-events.sh (XMALLOC): Delete macro.
10395 * gdb-events.c, gdb-events.h: Regenerate.
10396 * gdbarch.sh (XMALLOC): Delete macro.
10397 * gdbarch.c: Regenerate.
10398 * serial.c (XMALLOC): Delete macro.
10399 * ui-file.c (XMALLOC): Ditto.
10400 * ser-unix.h (XMALLOC): Ditto.
10401 * sh-tdep.c (XMALLOC): Ditto.
10402 * ui-out.c (XMALLOC): Ditto.
10403 * utils.c (XMALLOC): Ditto.
10404 * i386-tdep.c (XMALLOC): Ditto.
10405 * gdb-events.c (XMALLOC): Ditto.
10406 * d10v-tdep.c (XMALLOC): Ditto.
10407 * cli-out.c (XMALLOC): Ditto.
10408
10409 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10410 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10411 * ui-file.c, ui-out.c: Ditto.
10412
10413 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10414
10415 * command.h (struct cmd_list_element): Add field context.
10416 (set_cmd_context, get_cmd_context): Declare.
10417 * cli/cli-decode.h: Ditto.
10418 * cli/cli-decode.c (get_cmd_context): New function.
10419 (set_cmd_context): New function.
10420 (add_cmd): Initialize context.
10421 Part of fixing PR gdb/145 and PR gdb/146.
10422
10423 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10424
10425 * cli/cli-decode.c (cmd_type): New function.
10426 * command.h (cmd_type): Declare.
10427 * infrun.c (set_schedlock_func): Call function cmd_type.
10428 * kod.c (kod_set_os): Call cmd_type.
10429 * cris-tdep.c (cris_version_update): Use function cmd_type.
10430 (cris_mode_update, cris_abi_update): Ditto.
10431
10432 * command.h: (execute_cmd_post_hook): Declare.
10433 (execute_cmd_pre_hook): Declare.
10434 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10435 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10436 functions. Execute pre/post hook while ensuring that afterwords
10437 hook_in is cleared.
10438 * top.c (execute_command): Use execute_cmd_post_hook, and
10439 execute_cmd_pre_hook to execute pre/post commands.
10440 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10441 hook_stop_stub.
10442 (hook_stop_stub): Call execute_cmd_pre_hook.
10443
10444 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10445
10446 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10447 set'' and this leads to a core dump. Move xstrdup of
10448 operating_system to after check that it is not NULL.
10449
10450 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10451
10452 * kod.c (kod_set_os): Remove unnecessary check that
10453 ``command->type'' is set_cmd.
10454
10455 * valprint.c (set_input_radix): Use input_radix.
10456 (set_output_radix): Use output_radix.
10457 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10458 isn't reverted.
10459
10460 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10461
10462 * value.h (struct value): Delete field ``substring_addr''. Change
10463 aligner fields to force_doublest_align, force_longest_align,
10464 force_core_addr_align and force_pointer_aligh.
10465
10466 * value.h (struct value): Fix typo in above change.
10467
10468 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10469
10470 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10471 to fix internal_error from ``maintenance print architecture''.
10472
10473 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10474
10475 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10476 for gcc versions after gcc-2.8.1.
10477
10478 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10479
10480 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10481 for method resolution. Restore adjustment of ``this'' pointer after
10482 calling value_struct_elt, which was accidentally removed during the
10483 HP merge.
10484
10485 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10486
10487 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10488 value_of_register.
10489 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10490 get_saved_register.
10491 * value.h (value_of_register): Update.
10492
10493 2002-03-14 Richard Henderson <rth@redhat.com>
10494
10495 * configure.in: Detect declaration for canonicalize_file_name.
10496 * utils.c (canonicalize_file_name): Declare, if needed.
10497 (gdb_realpath): Prefer realpath if available and usable.
10498 * config.in, configure: Rebuild.
10499
10500 2002-03-14 Richard Henderson <rth@redhat.com>
10501
10502 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10503 a constant array bound.
10504
10505 * MAINTAINERS: Add myself to write-after-approval.
10506
10507 2002-03-14 Michael Snyder <msnyder@redhat.com>
10508
10509 * symfile.c (syms_from_objfile): Return immediately if no syms.
10510 (symbol_file_add): Return immediately if no syms.
10511 (find_sym_fns): Return immediately if no syms.
10512
10513 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10514
10515 * gdbserver/remote-util.c (remote_open): Print remote-side's
10516 IP address when remote debugging over the network.
10517
10518 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10519
10520 * config/sparc/fbsd.mh: Fix copyright.
10521 * config/sparc/fbsd.mt: Likewise.
10522
10523 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10524
10525 * MAINTAINERS: Fix typo in name of gdb warnings option.
10526 (x86-64): Fix formating so that this can be parsed by awk.
10527
10528 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10529
10530 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10531 * defs.h: Include "gdb/signals.h".
10532 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10533
10534 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10535
10536 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10537 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10538 from x86-64-tdep.h
10539
10540 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10541 Don Howard <dhoward@redhat.com>
10542
10543 * mips-tdep.c (ST0_FR): Define.
10544 (mips2_fp_compat): New function, temporarily disabled.
10545 (mips_read_fp_register_single): New function.
10546 (mips_read_fp_register_double): New function.
10547 (mips_print_register): Use them.
10548 (do_fp_register_row): Likewise.
10549
10550 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10551
10552 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10553 approval''.
10554
10555 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10556
10557 * stabsread.c (read_member_functions): Fix is_stub test for
10558 static member functions, improve comment.
10559
10560 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10561
10562 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10563 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10564 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10565 commands that set boolean values.
10566 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10567 (arm_rdi_resume): Always initialize PC.
10568 (arm_rdi_open): Don't use rslt as a boolean.
10569 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10570 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10571 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10572 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10573
10574 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10575
10576 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10577 * configure: Rebuilt.
10578
10579 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10580
10581 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10582 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10583
10584 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10585
10586 * cli/cli-decode.c (set_cmd_completer): New function.
10587 * command.h (set_cmd_completer): Declare.
10588 * cli/cli-decode.h (set_cmd_completer): Ditto.
10589
10590 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10591 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10592 * win32-nat.c (_initialize_inftarg): Ditto.
10593 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10594 * proc-api.c (_initialize_proc_api): Ditto.
10595 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10596 * source.c (_initialize_source): Ditto.
10597 * exec.c (_initialize_exec): Ditto.
10598 * solib.c (_initialize_solib): Ditto.
10599 * top.c (init_main): Ditto.
10600 * tracepoint.c (_initialize_tracepoint): Ditto.
10601 * symfile.c (_initialize_symfile): Ditto.
10602 * printcmd.c (_initialize_printcmd): Ditto.
10603 * infcmd.c (_initialize_infcmd): Ditto.
10604 * corefile.c (_initialize_core): Ditto.
10605
10606 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10607
10608 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10609
10610 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10611
10612 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10613
10614 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10615
10616 * NEWS: Update headings, 5.2 has branched.
10617
10618 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10619
10620 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10621 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10622 (register_addr, REGISTER_RAW_SIZE): Likewise.
10623 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10624 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10625
10626 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10627
10628 * MAINTAINERS (x86-64): Add myself.
10629 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10630 changed value_ptr -> struct value *
10631
10632 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10633
10634 * configure.host (sparc64-*-freebsd): Add.
10635 * configure.tgt: Likewise.
10636 * config/sparc/fbsd.mh: New file.
10637 * config/sparc/fbsd.mt: Likewise.
10638 * config/sparc/nm-fbsd.h: Likewise.
10639 * config/sparc/tm-fbsd.h: Likewise.
10640
10641 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10642
10643 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10644 regformats/reg-s390x.dat.
10645
10646 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10647
10648 * utils.c: Add FIXME explaining true/false problem.
10649
10650 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10651
10652 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10653
10654 2002-02-28 Michael Chastain <mec@shout.net>
10655
10656 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10657
10658 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10659
10660 * gdbserver/linux-s390-low.c: New file.
10661 * regformats/reg-s390.dat: New file.
10662 * regformats/reg-s390x.dat: New file.
10663 * gdbserver/configure.srv: Add S/390.
10664 * gdbserver/Makefile.in: Add S/390.
10665 * configure.tgt: Enable gdbserver for S/390.
10666
10667 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10668
10669 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10670 first line of the doc string for "info dos", except at the end of
10671 the sentence, since the short help stops at the first period.
10672
10673 2002-02-28 Jason Merrill <jason@redhat.com>
10674
10675 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10676
10677 2002-02-27 Fred Fish <fnf@redhat.com>
10678
10679 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10680 comment (dumy -> dummy).
10681
10682 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10683
10684 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10685
10686 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10687
10688 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10689
10690 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10691
10692 * gdbserver/acconfig.h: New file.
10693 * gdbserver/i387-fp.c: New file.
10694 * gdbserver/i387-fp.h: New file.
10695 * gdbserver/linux-x86-64.c: New file.
10696 * regformats/reg-x86-64.dat: New file.
10697 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10698 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10699 * gdbserver/configure.in: Add support for regsets.
10700 * gdbserver/config.in: Regenerate.
10701 * gdbserver/configure: Regenerate.
10702 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10703 * gdbserver/linux-low.h: New file.
10704 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10705 for regsets.
10706 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10707 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10708 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10709 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10710 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10711 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10712 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10713 "i387-fp.h". Add PTRACE_GETREGS and friends.
10714 * gdbserver/regcache.c (supply_register): New function.
10715 (supply_register_by_name): New function.
10716 (collect_register): New function.
10717 (collect_register_by_name): New function.
10718
10719 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10720
10721 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10722 (config.status): Add configure.srv dependency.
10723 (server_h): Add config.h dependency.
10724
10725 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10728 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10729 * gdbserver/configure.srv: Change i386-*-linux* to use
10730 reg-i386-linux.o.
10731
10732 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10733
10734 * x86-64-tdep.c: Re-indent. Update copyright date.
10735
10736 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10737
10738 From Michal Ludvig <mludvig@suse.cz>:
10739 * x86-64-tdep.c (value.h): Delete.
10740 (gdb_assert.h): Include.
10741 (x86_64_register_convert_to_virtual,
10742 x86_64_register_convert_to_raw ): Add check which lets only
10743 floating-point values to be converted.
10744 (value_push): Delete.
10745 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10746 (i386_gdbarch_init): Number of register_bytes fixed.
10747
10748 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10749
10750 * MAINTAINERS: Add x86-64 target.
10751
10752 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10753
10754 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10755 * osfsolib.c (solib_map_sections): Ditto.
10756 * irix5-nat.c (solib_map_sections): Ditto.
10757 * corelow.c (gdb_check_format): Ditto.
10758 * symfile.c (symfile_bfd_open): Ditto.
10759 * solib.c (solib_map_sections): Ditto.
10760 Fix PR gdb/354.
10761
10762 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10763
10764 * remote.c (_initialize_remote): By default, disable ``e'' and
10765 ``E'' step out-of-range packets.
10766
10767 2002-02-26 Andreas Schwab <schwab@suse.de>
10768
10769 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10770 m68k_linux_frame_saved_pc.
10771 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10772 in_sigtramp.
10773 (SIGCONTEXT_PC_OFFSET): Remove.
10774 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10775 m68k_linux_sigtramp_saved_pc): New functions.
10776 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10777 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10778 (UCONTEXT_PC_OFFSET): Define.
10779 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10780 non-RT and RT signal trampolines.
10781
10782 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10783
10784 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10785 (TARGET_NBPG, STACK_END_ADDR): Delete
10786 (VARIABLES_INSIDE_BLOCK): Delete.
10787
10788 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10789
10790 * utils.c (perror_with_name): Make string parameter constant.
10791 (print_sys_errmsg): Ditto.
10792 (query): Ditto.
10793 * defs.h (perror_with_name): Update.
10794 (print_sys_errmsg): Update.
10795 (query): Update.
10796
10797 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10798
10799 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10800 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10801
10802 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10803
10804 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10805 if it already matches the current architecture from the exec file.
10806 Include arch-utils.h for gdbarch_info_init prototype.
10807 * Makefile.in (rs6000-nat.o): Update dependencies.
10808
10809 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10810
10811 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10812 list of exported variables.
10813
10814 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10815
10816 * gdbserver/configure.srv: New file.
10817 * gdbserver/configure.in: Use configure.srv instead
10818 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10819 from it.
10820 * gdbserver/configure: Regenerated.
10821 * gdbserver/terminal.h: New file.
10822 * gdbserver/Makefile.in: Update for configure changes. Remove
10823 more unneeded include paths.
10824
10825 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10826
10827 From wiz at danbala:
10828 * config/sparc/tm-sp64.h: Fix grammar and typos.
10829 Fix PR gdb/287.
10830
10831 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10832
10833 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10834 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10835 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10836 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10837 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10838 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10839 * s390-tdep.c: Ditto.
10840 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10841 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10842 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10843 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10844 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10845 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10846 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10847 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10848 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10849 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10850 Fix PR gdb/378.
10851
10852 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10853
10854 * lin-thread.c: Delete file.
10855 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10856 to gdb_proc_service.h.
10857 * configure: Re-generate.
10858
10859 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10860 * serial.c (serial_open): Delete check for "ocd".
10861 Fix PR gdb/349.
10862
10863 * Makefile.in (linux-thread.o): Delete target.
10864 * linux-thread.c: Delete file.
10865
10866 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10867 renamed SH files to be consistent.
10868
10869 * symtab.c (sort_search_symbols): Use xfree.
10870
10871 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10872
10873 * arm-linux-tdep.c (arm_linux_init_abi): Register
10874 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10875 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10876 definition with undef, since we don't want the sysvr4 definition.
10877 (SKIP_TRAMPOLINE_CODE): Likewise.
10878
10879 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10880
10881 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10882
10883 * configure.in: (AC_CHECK_FUNCS) Added test for
10884 canonicalize_file_name Regenerated.
10885 * config.in, configure: Regenerated.
10886 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10887 defined use canonicalize_file_name.
10888
10889 2002-02-23 Michael Chastain <mec@shout.net>
10890
10891 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10892
10893 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10894
10895 * README: Remove references to cygnus.com.
10896 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10897 dot com'' form. Remove references to cygnus.com and sourceware.
10898
10899 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10900
10901 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10902 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10903 1003.1-2001 no longer allows "head -1".
10904 * gdb/Makefile.in (version.c): Likewise.
10905 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10906 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10907 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10908
10909 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10910
10911 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10912 * command.h (cmd_cfunc_eq): Declare.
10913 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10914
10915 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10916 ``struct cmd_list_element *''.
10917 * cli/cli-cmds.c (is_complete_command): Update. Use
10918 cmd_cfunc_eq.
10919 * top.c (execute_command): Pass the command to
10920 is_complete_command.
10921 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10922
10923 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10924
10925 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10926 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10927 architecture defines.
10928 * s390-tdep.c (s390_gdbarch_init): Likewise.
10929
10930 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10931
10932 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10933 (arm_linux_push_arguments): Likewise.
10934 (arm_linux_init_abi): Register them. Also register linux-specific
10935 call_dummy_words.
10936 (find_minsym_and_objfile): Use strcmp, not STREQ.
10937 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10938 (arm_linux_call_dummy_words): Delete declaration.
10939 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10940 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10941 declarations.
10942 (LOWEST_PC): Delete.
10943
10944 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10945
10946 * maint.c (print_section_info): Do not prepend `0x' to filepos
10947 output, it will be handled by local_hex_string_custom.
10948
10949 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10950
10951 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10952 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10953 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10954
10955 2002-02-22 Jim Blandy <jimb@redhat.com>
10956
10957 Indicate that the bcache functions don't change the strings
10958 they're passed.
10959 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10960 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10961
10962 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10963
10964 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10965
10966 2002-02-21 Christopher Faylor <cgf@redhat.com>
10967
10968 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10969 find the complete path to a loaded DLL.
10970
10971 2002-02-21 Fred Fish <fnf@redhat.com>
10972
10973 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10974 that marks the end of the range of a function, enter a line number
10975 entry that has a line number of zero and a PC offset that matches
10976 the end of the function. This starts a range of PC's for which no
10977 line number information is known.
10978 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10979 PC's for which no line number info is found (line number is zero)
10980 then we didn't find any valid line information.
10981 * symtab.h: Document use of zero line number entry.
10982
10983 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10984
10985 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10986 (have_ptrace_getvrregs): Define for run time checks.
10987 (gdb_vrregset_t): New type for Altivec register handling.
10988 (fetch_register, store_register): Fetch/store altivec register
10989 when needed.
10990 (fetch_altivec_register, store_altivec_register): New functions.
10991 (supply_vrregset, fill_vrregset): New functions.
10992 (fetch_altivec_registers, store_altivec_registers): New functions.
10993 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10994 registers as well.
10995
10996 2002-02-21 Jiri Smid <smid@suse.cz>
10997
10998 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10999
11000 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11001
11002 * Makefile.in (armnbsd-nat.o): Update dependencies.
11003 * armnbsd-nat.c (supply_gregset): New function. Common code to
11004 supply the integer register set.
11005 (supply_fparegset): New function. Similar for FPA registers.
11006 (fetch_regs, fetch_fp_regs): Use them.
11007 (fetch_core_registers): Likewise.
11008 (fetch_elfcore_registers): New function.
11009 (arm_netbsd_elfcore_fns): New core-file type specification.
11010 (_initialize_arm_netbsd_nat): Register it.
11011
11012 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11013
11014 * armnbsd-nat.c: Include gdbcore.h.
11015 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11016 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11017 'void' to declaration, to shut up ARI.
11018 (fetch_core_registers): Make static. Rewrite using supply_register.
11019 (arm_netbsd_core_fns): New core-file type specification.
11020 (_initialize_arm_netbsd_nat): New function.
11021
11022 2002-02-21 Christopher Faylor <cgf@redhat.com>
11023
11024 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11025 value.
11026
11027 2002-02-20 Christopher Faylor <cgf@redhat.com>
11028
11029 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11030 fails.
11031
11032 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11033
11034 * jv-exp.y (parse_number): Change type of implicit longs
11035 to builtin_type_uint64.
11036
11037 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11038
11039 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11040 to be an integer instead of a `union wait'.
11041
11042 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11043
11044 * mips-linux-nat.c: Call the operating system GNU/Linux.
11045 * mips-linux-tdep.c: Likewise.
11046 * mips-tdep.c: Likewise.
11047
11048 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11049
11050 Fix PR gdb/265.
11051 * jv-exp.y (parse_number): Handle 64-bit integers.
11052
11053 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11054
11055 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11056 AC_STDC_HEADERS to AC_HEADER_STDC.
11057 * gdbserver/configure: Regenerated.
11058
11059 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11060
11061 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11062 is defined.
11063 * sparc-tdep.c (get_longjmp_target): Likewise.
11064
11065 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11066
11067 * News: Add news about ARM and Multi-arch. Mention the new target
11068 arm*-*-netbsd*.
11069
11070 2002-02-19 Jim Blandy <jimb@redhat.com>
11071
11072 * stabsread.c (error_type_complaint): Improve error message.
11073
11074 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11075
11076 * gdbserver/README: Update documentation.
11077 * gdbserver/configure.in: Update configury to match documentation.
11078 * gdbserver/Makefile.in: Likewise.
11079 * gdbserver/configure: Regenerated.
11080 * gdbserver/aclocal.m4: New file, generated by aclocal.
11081 * gdbserver/config.in: New file, generated by autoheader.
11082
11083 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11084
11085 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11086 armnbsd-nat.c.
11087
11088 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11089
11090 * arm-tdep.h (enum arm_float_model): New enum.
11091 (struct gdbarch_tdep): Add fp_model.
11092 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11093 up floating-point conversions until we know the floating-point model
11094 in use by the inferior. Don't complain about being unable to
11095 determine the ABI of the inferior when we don't have one.
11096 (arm_extract_return_value): Support different floating-point models.
11097 (arm_store_return_value): Likewise.
11098 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11099 ARM_FLOAT_SOFT.
11100 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11101
11102 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11103
11104 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11105 of ``current_gdbarch''.
11106
11107 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11108
11109 * armnbsd-nat.c : ANSIfy all function declarations.
11110 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11111 (fetch_inferior_registers): Re-implement in terms of above.
11112 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11113 (store_inferior_registers): Re-implement in terms of above.
11114
11115 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11116
11117 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11118 kernel.
11119 * arm-linux-tdep.c: Likewise.
11120 * config/arm/tm-linux.h: Likewise.
11121
11122 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11123
11124 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11125 * config/arm/nbsd.mt (TM_FILE): Delete.
11126 * config/arm/tm-nbsd.h: Delete.
11127
11128 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11129
11130 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11131 Initialize CALL_DUMMY_LENGTH.
11132
11133 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11134
11135 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11136 function.
11137 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11138 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11139 defines one thing and that is incorrect for this port.
11140 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11141
11142 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11143
11144 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11145
11146 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11147
11148 * win32-nat.c (display_selector): New function. Displays information
11149 about the information returned by GetThreadSelectorEntry API function.
11150 (display_selectors): New function. Displays the infomation of
11151 the selector given as argument, or of CS, DS ans FS selectors
11152 if no argument is given.
11153 ( _initialize_inftarg): Add "w32" as info prefix command.
11154 Add "info w32 selector" as command calling display_selectors.
11155
11156 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11157
11158 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11159 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11160 if not defined.
11161
11162 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11163
11164 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11165
11166 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11167
11168 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11169 (arm_fix_call_dummy): Call it.
11170 (arm_call_dummy_breakpoint_offset): Delete.
11171 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11172 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11173
11174 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11175
11176 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11177 Default to func_frame_chain_valid.
11178 * gdbarch.h, gdbarch.c: Re-generate.
11179 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11180
11181 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11182
11183 * ppc-linux-nat.c: Update copyright.
11184 (fetch_register, store_register): Add tid parameter, don't compute
11185 tid here.
11186 (fetch_ppc_registers, store_ppc_registers): Add tid
11187 parameter. Pass it along to callees.
11188 (fetch_inferior_registers, store_inferior_registers): Compute tid
11189 here, and pass it to calleed functions.
11190 (fill_gregset, supply_fpregset): Clean up formatting.
11191
11192 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11193
11194 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11195 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11196
11197 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11198
11199 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11200 * gdbarch.c gdbarch.h: Regenerate.
11201 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11202 function.
11203 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11204 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11205 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11206
11207 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11208 * arm-tdep.c (arm_get_longjmp_target): New function.
11209 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11210 this to a positive value register arm_get_longjmp_target as the
11211 longjmp handler.
11212 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11213 (arm_linux_init_abi): Set up longjmp description in tdep.
11214 * armnbsd-nat.c (get_longjmp_target): Delete.
11215 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11216 description in tdep.
11217 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11218 (get_longjmp_target): Delete declaration.
11219 (GET_LONGJMP_TARGET): Delete.
11220 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11221 (GET_LONGJMP_TARGET): Delete.
11222
11223 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11224
11225 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11226 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11227 of ``current_gdbarch''.
11228
11229 2002-02-17 Tom Tromey <tromey@redhat.com>
11230
11231 * cli/cli-cmds.c (compare_strings): New function.
11232 (complete_command): Only print each unique item once.
11233 * completer.h (complete_line): Declare.
11234 * completer.c (complete_line): New function.
11235 (line_completion_function): Use it.
11236
11237 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11238
11239 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11240 * gdbarch.h, gdbarch.c: Re-generate.
11241
11242 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11243
11244 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11245
11246 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11247
11248 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11249 * valops.c (value_arg_coerce): Don't take the address of a reference
11250 to convert an argument to a reference.
11251
11252 2002-02-15 Christopher Faylor <cgf@redhat.com>
11253
11254 * win32-nat.c (get_image_name): New function.
11255 (handle_load_dll): Use get_image_name function.
11256 (get_child_debug_event): Avoid registering debug events until possibly
11257 execed process is started.
11258 (child_create_inferior): Allow invocation via shell so that command
11259 line redirection, etc. works ok.
11260 (_initialize_inftarg): Add new command: "set shell" to control whether
11261 a shell is used to start a process.
11262
11263 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11264
11265 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11266 instead of find_register_by_number.
11267 (cannot_store_register): Likewise.
11268
11269 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11270
11271 * dwarf2read.c: Replace fprintf (stderr, ...) by
11272 fprintf_unfiltered (gdb_stderr, ...).
11273
11274 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11275
11276 * gdbserver/gdbserver.1: Document --attach.
11277
11278 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11279
11280 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11281 descriptions.
11282 * arm-tdep.c (arm_default_arm_le_breakpoint)
11283 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11284 (arm_default_thumb_be_breakpoint): New. Initialize them from
11285 traditional breakpoint defines.
11286 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11287 (arm_gdbarch_init): Initialize new breakpoint variables.
11288 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11289 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11290 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11291 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11292 code out to ...
11293 (arm_netbsd_init_abi_common): ... here; new function.
11294 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11295 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11296 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11297 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11298
11299 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11300
11301 * arm-tdep.h (enum arm_abi): New enum.
11302 (struct gdbarch_tdep): New structure.
11303 (LOWEST_PC): Provide a default.
11304 (arm_gdbarch_register_os_abi): Declare new function.
11305 * arm-tdep.c (arm_abi_names): New array.
11306 (process_note_abi_tag_sections): New function.
11307 (get_elfosabi): New function.
11308 (arm_gdbarch_register_os_abi): New function.
11309 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11310 support for that ABI has been built in, then call the appropriate
11311 configuration routine. Use gdbarch_num_regs() to get the number
11312 of registers.
11313 (arm_dump_tdep): New function.
11314 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11315 place-holder functions.
11316 (_initialize_arm_tdep): Register them.
11317 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11318
11319 * armnbsd-tdep.c: New file.
11320 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11321 * config/arm/nbsd.mt (TDEPFILES): Add it.
11322 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11323
11324 * armnbsd-nat.c: Include regcache.h.
11325 * Makefile.in (armnbsd-nat.o): Update dependency list.
11326
11327 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11328
11329 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11330
11331 * gdbserver/Makefile.in: Fix typos in target rules.
11332
11333 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11334
11335 Fix part of PR gdb/267.
11336 * linespec.c (find_methods): Handle constructors specially for now.
11337
11338 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11339
11340 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11341 handling.
11342 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11343 standard_coerce_float_to_double().
11344
11345 2002-02-14 Christopher Faylor <cgf@redhat.com>
11346
11347 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11348 GDBINIT_FILENAME.
11349
11350 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11351
11352 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11353 find_variant_by_name, because it confuses the multiarch
11354 framework. Return NULL if there isn't an architecture with the
11355 user supplied name, instead of forcing a different one without
11356 recording the change with the multiarch machinery.
11357 (find_variant_by_name): Delete.
11358
11359 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11360
11361 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11362 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11363
11364 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11365
11366 * stack.c (print_frame_info_base): When calling
11367 print_frame_info_listing_hook, set current_source_symtab.
11368
11369 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11370
11371 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11372 and remove unused $(INCLUDE_DIR).
11373 Add regcache.c to OBS.
11374 Add generated register protocol files to clean target.
11375 Update dependencies for new objects, obsolete old target code.
11376
11377 * gdbserver/linux-low.c: Remove all platform-specific code to
11378 new files. Remove various dead code. Update to use regcache
11379 functionality.
11380 * gdbserver/remote-utils.c (fromhex): Add return statement
11381 to quiet warning.
11382 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11383 constant.
11384 (input_interrupt): Add integer parameter to match prototype
11385 of a signal handler.
11386 (outreg): Use register_data ().
11387 (prepare_resume_reply): Use gdbserver_expedite_regs.
11388 * gdbserver/server.c (main): Dynamically allocate own_buf because
11389 PBUFSIZ is no longer constant. Use registers_to_string () and
11390 registers_from_string ().
11391 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11392 for error (), fatal (), and warning (). Update definition of
11393 PBUFSIZ to use regcache functionality. Add include guard.
11394 * gdbserver/utils.c (fatal): Add missing ``const''.
11395 (warning): New function.
11396
11397 * regformats/regdat.sh: Include "regcache.h" in generated files.
11398 Provide init_registers () function.
11399 * regformats/regdef.h: Add prototype for set_register_cache ().
11400 Add include guard.
11401
11402 * gdbserver/linux-arm-low.c: New file.
11403 * gdbserver/linux-i386-low.c: New file.
11404 * gdbserver/linux-ia64-low.c: New file.
11405 * gdbserver/linux-m68k-low.c: New file.
11406 * gdbserver/linux-mips-low.c: New file.
11407 * gdbserver/linux-ppc-low.c: New file.
11408 * gdbserver/linux-sh-low.c: New file.
11409
11410 * gdbserver/regcache.c: New file.
11411 * gdbserver/regcache.h: New file.
11412
11413 * gdbserver/low-linux.c: Removed obsolete file.
11414
11415 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11416
11417 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11418 * config/i386/linux.mt: Likewise.
11419 * config/ia64/linux.mt: Likewise.
11420 * config/m68k/linux.mh: Likewise.
11421 * config/powerpc/linux.mh: Likewise.
11422 * config/mips/linux.mt: Likewise.
11423
11424 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11425
11426 * config/i386/i386lynx.mh: Mark gdbserver variables
11427 as (currently) obsolete for this target.
11428 * config/i386/nbsd.mt: Likewise.
11429 * config/i386/nbsdelf.mt: Likewise.
11430 * config/m32r/m32r.mt: Likewise.
11431 * config/m68k/m68klynx.mh: Likewise.
11432 * config/m68k/nbsd.mt: Likewise.
11433 * config/m68k/sun3os4.mh: Likewise.
11434 * config/mips/vr5000.mt: Likewise.
11435 * config/ns32k/nbsd.mt: Likewise.
11436 * config/pa/hppabsd.mh: Likewise.
11437 * config/pa/hppaosf.mh: Likewise.
11438 * config/powerpc/nbsd.mt: Likewise.
11439 * config/rs6000/rs6000lynx.mh: Likewise.
11440 * config/s390/s390.mt: Likewise.
11441 * config/s390/s390x.mt: Likewise.
11442 * config/sparc/sparclynx.mh: Likewise.
11443 * config/sparc/sun4os4.mh: Likewise.
11444 * config/i386/x86-64linux.mt: Likewise.
11445 * config/sparc/linux.mh: Likewise.
11446
11447 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * configure.tgt: Configure gdbserver only for known working
11450 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11451 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11452 SUBDIRS if it is configured. Update comment for ${nativefile}.
11453 * configure: Regenerated.
11454
11455 2002-02-13 Michael Snyder <msnyder@redhat.com>
11456
11457 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11458
11459 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11460 (default_gcore_mach): Just return 0, work around a problem in bfd.
11461 (default_gcore_target): OK to return NULL if exec_bfd is null.
11462 (make_mem_sec): Use a cast, avoid a warning.
11463
11464 * procfs.c (find_memory_regions_callback): Use a cast instead of
11465 calling host_pointer_to_address (which complains if
11466 sizeof (host pointer) != sizeof (target pointer)).
11467 (procfs_make_note_section): Avoid overflow in psargs string.
11468
11469 * procfs.c (procfs_make_note_section): Make the default
11470 implementation return an error.
11471
11472 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11473
11474 * procfs.c (procfs_make_note_section): Provide a default definition
11475 (for alpha-dec-osf4.0f). Fix typos.
11476
11477 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11478
11479 * linux-proc.c: Add include of regcache.h.
11480 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11481
11482 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11483
11484 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11485 * memattr.c (create_mem_region): Disallow useless empty region.
11486 Regions are half-open intervals, so allow [A..B) [B..C) as
11487 non-overlapping.
11488
11489 2002-02-13 Michael Chastain <mec@shout.net>
11490
11491 * defs.h: Kill CONST_PTR.
11492 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11493 * c-lang.c (c_builtin_types): Likewise.
11494 * ch-lang.c (ch_builtin_types): Likewise.
11495 * f-lang.c (f_builtin_types): Likewise.
11496 * language.c (unknown_builtin_types): Likewise.
11497 * m2-lang.c (m2_builtin_types): Likewise.
11498 * p-lang.c (pascal_builtin_types): Likewise.
11499 * scm-lang.c (c_builtin_types): Likewise.
11500
11501 2002-02-13 Keith Seitz <keiths@redhat.com>
11502
11503 * arm-tdep.h (arm_get_next_pc): Add declaration.
11504
11505 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11506
11507 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11508 with other related struct-returning functions.
11509 (arm_extract_struct_value_address): New function.
11510 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11511 initialize float_format, double_format and long_double_format as
11512 appropriate to the endianness of the target.
11513 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11514 (arm_use_struct_convention): Delete declaration.
11515 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11516
11517 2002-02-13 Keith Seitz <keiths@redhat.com>
11518
11519 * defs.h (core_addr_to_string_nz): New function.
11520
11521 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11522
11523 Apply missing bits of 2002-01-15 patch.
11524 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11525 (fill_fpregset): Use i387_fill_fsave.
11526
11527 2002-02-12 Keith Seitz <keiths@redhat.com>
11528
11529 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11530 (core_addr_to_string_nz): New function.
11531
11532 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11533
11534 * arm-linux-nat.c: Really include arm-tdep.h.
11535 * config/arm/tm-linux.h (struct type, struct value): Declare.
11536
11537 2002-02-11 Michael Snyder <msnyder@redhat.com>
11538
11539 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11540 (gcore section): Ifdef for Solaris and Unixware only.
11541 (procfs_do_thread_registers): Unixware needs one lwpstatus
11542 per thread (not one prstatus or pstatus).
11543 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11544 not over all gdb threads. For unixware, call elfcore_write_pstatus
11545 once before iterating over threads.
11546
11547 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11548
11549 * arm-tdep.h: New file.
11550 * arm-tdep.c: Include arm-tdep.h.
11551 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11552 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11553 (arm_print_float_info, arm_register_type, convert_to_extended)
11554 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11555 (arm_extract_return_value, arm_register_name): Make static.
11556 (arm_software_single_step): Similarly. Fix types in declaration.
11557 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11558 (arm_store_return_value, arm_store_struct_return): New functions.
11559 (arm_gdbarch_init): Register the above functions. Also register
11560 call_dummy_start_offset, sizeof_call_dummy_words,
11561 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11562 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11563 max_register_virtual_size, register_size. Set up
11564 prologue_cache.saved_regs here, rather than ...
11565 (_initialize_arm_tdep): ... here.
11566 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11567 declarations.
11568 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11569 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11570 (arm_print_float_info, arm_register_type, convert_to_extended)
11571 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11572 (arm_extract_return_value, arm_register_name): Delete declarations.
11573 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11574 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11575 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11576 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11577 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11578 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11579 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11580 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11581 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11582 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11583 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11584 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11585 interface.
11586 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11587 * remote-rdi.c remote-rdp.c: Likewise.
11588 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11589 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11590 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11591 definition.
11592
11593 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11594 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11595 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11596 from non-ARM_ prefixed definitions.
11597 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11598 all uses of above.
11599 * remote-rdi.c remote-rdp.c: Likewise.
11600 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11601
11602 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11603
11604 * arm-tdep.c (arm_frameless_function_invocation)
11605 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11606 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11607 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11608 (arm_pop_frame, arm_get_next_pc): Make static.
11609 (arm_gdbarch_init): Register above in gdbarch structure.
11610 (arm_read_fp): Renamed from arm_target_read_fp.
11611 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11612 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11613 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11614 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11615 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11616 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11617 (arm_pc_is_thumb_dummy): Delete declarations.
11618 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11619 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11620 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11621 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11622
11623 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11624
11625 * symtab.c (compare_search_syms): New function.
11626 (sort_search_symbols): New function.
11627 (search_symbols): Sort symbols after searching rather than
11628 before.
11629
11630 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11631
11632 * NEWS: Linux -> GNU/Linux.
11633
11634 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11635
11636 * gdbarch.sh: For for level one methods, disallow a definition
11637 when partially multi-arched. Add comments explaining rationale.
11638 * gdbarch.h: Re-generate.
11639
11640 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11641
11642 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11643 multi-arch partial.
11644
11645 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11646
11647 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11648 field. Use diff -u.
11649 * gdbarch.c: Re-generate.
11650
11651 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11652
11653 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11654 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11655 partial.
11656
11657 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11658
11659 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11660 multi-arch partial.
11661 (PUSH_ARGUMENTS): Switch to using predefault.
11662 * gdbarch.c: Regenerate.
11663
11664 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11665
11666 * valops.c (PUSH_ARGUMENTS): Delete definition.
11667 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11668 partial. Default to default_push_arguments.
11669 * gdbarch.h, gdbarch.c: Regenerate.
11670
11671 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11672
11673 * defs.h (throw_exception): Rename return_to_top_level. Update
11674 comments.
11675 * utils.c (error_stream, internal_verror, quit): Ditto.
11676 * top.c (throw_exception, catcher): Ditto.
11677 * sparclet-rom.c (sparclet_load): Ditto.
11678 * remote.c (interrupt_query, minitelnet): Ditto.
11679 * remote-sds.c (interrupt_query): Ditto.
11680 * remote-mips.c (mips_error, mips_kill): Ditto.
11681 * ocd.c (interrupt_query): Ditto.
11682 * monitor.c (monitor_interrupt_query): Ditto.
11683 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11684 * target.h: Update comment.
11685
11686 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11687
11688 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11689
11690 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11691 default_double_format.
11692 * gdbarch.h, gdbarch.c: Re-generate.
11693 * findvar.c (floatformat_unknown): Delete variable definition.
11694 * doublest.h (floatformat_unknown): Delete variable declaration.
11695
11696 2002-02-09 Jim Blandy <jimb@redhat.com>
11697
11698 * stabsread.c (read_type): Add code to parse Sun's syntax for
11699 prototyped function types.
11700
11701 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11702
11703 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11704 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11705
11706 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11707
11708 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11709 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11710 now _initialize_xcoffsolib gets called again and overrides the
11711 commands from solib.c in a native configuration.
11712
11713 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11714
11715 * doublest.c (store_typed_floating): Don't try to return a value.
11716 Fixes PR gdb/290.
11717
11718 2002-02-08 Jim Blandy <jimb@redhat.com>
11719
11720 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11721 is prototyped and has no arguments, print its argument list as
11722 `(void)'.
11723
11724 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11725
11726 * MAINTAINERS (write-after-approval): Add myself.
11727 (paper-trail): I've escaped!
11728
11729 2002-02-08 Christopher Faylor <cgf@redhat.com>
11730
11731 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11732 changes.
11733 (_initialize_check_for_gdb_ini): Ditto.
11734
11735 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11736
11737 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11738 xaprintf -> xasprintf.
11739
11740 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11741
11742 * win32-nat.c: Remove use of printf and sprintf functions.
11743
11744 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11745
11746 * arm-tdep.c (arm_frame_chain_valid): Make static.
11747 (arm_push_arguments): Likewise.
11748 (arm_gdbarch_init): New function.
11749 (_initialize_arm_tdep): Call it.
11750 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11751 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11752 (FRAME_CHAIN_VALID): Delete.
11753 (arm_frame_chain_valid): Delete declaration.
11754 (PUSH_ARGUMENTS): Delete.
11755 (arm_push_arguments): Delete declaration.
11756 (CALL_DUMMY_P): Delete.
11757
11758 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11759 Corinna Vinschen <vinschen@redhat.com>
11760
11761 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11762 on builtin float types.
11763
11764 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11765
11766 * utils.c: Include <curses.h> before "bfd.h".
11767 * tui/tui-hooks.c: Likewise.
11768 * tui/tui.c: Likewise.
11769 * tui/tuiCommand.c: Likewise.
11770 * tui/tuiData.c: Likewise.
11771 * tui/tuiDataWin.c: Likewise.
11772 * tui/tuiDisassem.c: Likewise.
11773 * tui/tuiGeneralWin.c: Likewise.
11774 * tui/tuiIO.c: Likewise.
11775 * tui/tuiLayout.c: Likewise.
11776 * tui/tuiRegs.c: Likewise.
11777 * tui/tuiSource.c: Likewise.
11778 * tui/tuiSourceWin.c: Likewise.
11779 * tui/tuiStack.c: Likewise.
11780 * tui/tuiWin.c: Likewise.
11781
11782 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11783
11784 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11785 to include space for pseudoregs as well. Update loops accordingly.
11786 (sh_fp_frame_init_saved_regs): Ditto.
11787 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11788
11789 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11790
11791 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11792 Add Richard Earnshaw to Arm maintainers.
11793
11794 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11795
11796 * defs.h (warning_begin): Delete declaration.
11797
11798 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11799 Delete macro.
11800
11801 2002-02-07 Michael Snyder <msnyder@redhat.com>
11802
11803 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11804 Logic bug, remove misplaced else.
11805
11806 2002-02-07 Klee Dienes <klee@apple.com>
11807
11808 * fork-inferior.c (fork_inferior): Add '!' to the list of
11809 characters that need to be quoted when building a string for the
11810 shell. Quote '!' specifically with a backslash, since CSH chokes
11811 when trying to evaluate "str!str".
11812
11813 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11814
11815 * rdi-share/host.h: Only provide a typedef for bool if it is not
11816 defined.
11817
11818 2002-02-04 Michael Snyder <msnyder@redhat.com>
11819
11820 * breakpoint.h (enum bptype): Add new overlay event bp type.
11821 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11822
11823 * breakpoint.c (create_internal_breakpoint): New function.
11824 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11825 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11826 (create_thread_event_breakpoint): Ditto.
11827 (create_solib_event_breakpoint): Ditto.
11828 (create_overlay_event_breakpoint): New function.
11829 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11830 (update_breakpoints_after_exec): Delete and re-initialize
11831 overlay event breakpoints after an exec. Add FIXME comment
11832 about longjmp breakpoint.
11833 (print_it_typical): Ignore overlay event breakpoints.
11834 (print_one_breakpoint): Ditto.
11835 (mention): Ditto.
11836 (bpstat_what): Do not stop for overlay event breakpoints.
11837 (delete_breakpoint): Don't delete overlay event breakpoints.
11838 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11839 (breakpoint_re_set): Re-create overlay event breakpoint.
11840
11841 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11842 (overlay_manual_command): Disable overlay breakpoints.
11843 (overlay_off_command): Disable overlay breakpoints.
11844
11845 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11846
11847 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11848 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11849 to here from config/tm-arm.h.
11850 (coff_sym_is_thumb): Make static.
11851 (arm_elf_make_msymbol_special): New function.
11852 (arm_coff_make_msymbol_special): New function.
11853 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11854 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11855 (coff_sym_is_thumb): Delete declaration.
11856 (arm_elf_make_msymbol_special): Declare.
11857 (arm_coff_make_msymbol_special): Declare.
11858 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11859 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11860
11861 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11862
11863 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11864
11865 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11866
11867 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11868 * gdbarch.c gdbarch.h: Regenerate.
11869 * arch-utils.c (default_print_float_info): New function.
11870 * arch-utils.h (default_print_float_info): Prototype it.
11871 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11872 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11873 (PRINT_FLOAT_INFO): Document it.
11874
11875 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11876 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11877 (PRINT_FLOAT_INFO): Define.
11878
11879 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11880
11881 * win32-nat.c (_initialize_check_for_gdb_ini):
11882 Add typecast to sprintf argument to suppress a warning.
11883
11884 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11885
11886 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11887 to allow easier handling of pass state.
11888 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11889 that gives exception name and address.
11890 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11891 and set last_sig value to ourstatus->value.sig. Some missing
11892 exceptions added.
11893 (child_continue): Correctly report continue_status.
11894 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11895 TARGET_SIGNAL_0 (new default value).
11896 (child_resume): consider sig argument passed to decide if
11897 the exception should be passed to debuggee or not.
11898
11899 2002-02-05 Michael Snyder <msnyder@redhat.com>
11900
11901 * regcache.c (fetch_register): Call target_fetch_register
11902 only if we don't call FETCH_PSEUDO_REGISTER.
11903 (store_register): Call target_store_register only if we
11904 don't call STORE_PSEUDO_REGISTER.
11905
11906 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11907
11908 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11909 ELF_MAKE_MSYMBOL_SPECIAL.
11910 * gdbarch.c, gdbarch.h: Regenerate.
11911 * arch-utils.c (default_make_msymbol_special): New function.
11912 * arch-utils.h (default_make_msymbol_special): Export.
11913 * elfread.c (elf_symtab_read): Compile use of
11914 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11915 multiarched.
11916 * coffread.c (coff_symtab_read): Ditto, for
11917 COFF_MAKE_MSYMBOL_SPECIAL.
11918
11919 2002-02-05 Jim Blandy <jimb@redhat.com>
11920
11921 * solib-svr4.c (svr4_truncate_ptr): New function.
11922 (svr4_relocate_section_addresses): Do the address arithmetic with
11923 the appropriate truncation for target addresses, even when
11924 CORE_ADDR is larger than a target address.
11925
11926 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11927
11928 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11929 to (int *).
11930
11931 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11932
11933 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11934 code.
11935
11936 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11937
11938 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11939
11940 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11941
11942 * gdbserver/linux-low.c: Remove unused include files.
11943
11944 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11945
11946 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11947 (read_inferior_memory): Use it.
11948 (write_inferior_memory): Likewise.
11949
11950 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11951
11952 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11953 grubbing through sys_errlist.
11954
11955 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11956
11957 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11958
11959 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11960 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11961
11962 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11963
11964 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11965 (do_sfunc, set_cmd_sfunc): New functions.
11966
11967 * command.h (struct cmd_list_element): Add field func.
11968 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11969 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11970 * cli/cli-decode.h: Ditto.
11971
11972 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11973 (help_all, help_cmd_list): Ditto.
11974 (find_cmd, complete_on_cmdlist): Ditto.
11975 * top.c (execute_command): Ditto.
11976
11977 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11978 function.sfunc.
11979
11980 * infcmd.c (notice_args_read): Fix function signature.
11981
11982 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11983 * cli/cli-decode.c (add_set_cmd): Ditto.
11984 * utils.c (initialize_utils): Ditto.
11985 * maint.c (_initialize_maint_cmds): Ditto.
11986 * infrun.c (_initialize_infrun): Ditto.
11987 * demangle.c (_initialize_demangler): Ditto.
11988 * remote.c (add_packet_config_cmd): Ditto.
11989 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11990 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11991 * proc-api.c (_initialize_proc_api): Ditto.
11992 * kod.c (_initialize_kod): Ditto.
11993 * valprint.c (_initialize_valprint): Ditto.
11994 * top.c (init_main): Ditto.
11995 * infcmd.c (_initialize_infcmd): Ditto.
11996 * corefile.c (_initialize_core): Ditto.
11997 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11998 * arch-utils.c (initialize_current_architecture): Ditto.
11999 (_initialize_gdbarch_utils): Ditto.
12000 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12001
12002 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12003 * wince.c (_initialize_inftarg): Ditto.
12004 * symfile.c (_initialize_symfile): Ditto.
12005 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12006 * language.c (_initialize_language): Ditto.
12007 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12008
12009 2002-02-04 Michael Snyder <msnyder@redhat.com>
12010
12011 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12012
12013 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12014
12015 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12016 Add rules for building the register data files.
12017
12018 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12019
12020 * regformats/regdat.sh: Add braces to the definition of
12021 expedite_regs_${arch}.
12022
12023 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12024
12025 * regformats/regdef.h (struct reg): Add comment describing the
12026 requirements for offset and size fields.
12027
12028 2002-02-04 Andreas Schwab <schwab@suse.de>
12029
12030 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12031 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12032
12033 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12034
12035 * gdbarch.sh (copyright): Update years in generated header.
12036 (SMASH_TEXT_ADDRESS): Add rule.
12037 * gdbarch.h, gdbarch.c: Re-generate.
12038 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12039 * dbxread.c: Likewise.
12040 * dwarfread.c: Likewise.
12041 * elfread.c: Likewise.
12042 * somread.c: Likewise.
12043
12044 * arm-tdep.c (arm_smash_text_address): New function.
12045 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12046
12047 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12048
12049 Add support for hardware watchpoints on win32 native.
12050 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12051 CONTEXT_DEBUG_REGISTERS.
12052 (dr variable): New variable. Static array containing a local copy
12053 of debug registers.
12054 (debug_registers_changed): New variable. Reflects when debug registers
12055 are changed and need to be written to inferior.
12056 (debug_registers_used): New variable. Reflects when any debug register
12057 was set, used when new threads are created.
12058 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12059 i386-nat code.
12060 (thread_rec): Set dr array if id is the thread of current_event .
12061 (child_continue, child_resume): Change the debug registers for all
12062 threads if debug_registers_changed.
12063 (child_add_thread): Change the debug registers if debug_registers_used.
12064 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12065 Link nm.h to new nm-cygwin.h file.
12066 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12067 of hardware registers.
12068
12069 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12070
12071 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12072 Restore behavour broken by 2002-01-20 Andrew Cagney
12073 <ac131313@redhat.com> IEEE_FLOAT removal.
12074
12075 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12076
12077 * c-valprint.c (c_val_print): Pass a proper valaddr to
12078 cp_print_class_method.
12079 * valops.c (search_struct_method): If there is only one method
12080 and args is NULL, return that method.
12081
12082 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12083
12084 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12085 accessing tag_name directly.
12086
12087 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12088
12089 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12090 of accessing tag_name directly.
12091
12092 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12093
12094 PR gdb/280
12095 * gdbtypes.c (replace_type): New function.
12096 * gdbtypes.h (replace_type): Add prototype.
12097 * stabsread.c (read_type): Use replace_type.
12098
12099 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12100
12101 * Makefile.in (memattr.o): Add missing dependencies rule.
12102
12103 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12104
12105 * breakpoint.c (break_at_finish_command): Really export.
12106 (break_at_finish_at_depth_command): Ditto.
12107 (tbreak_at_finish_command): Ditto.
12108 * hppa-tdep.c: Include completer.h.
12109 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12110 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12111
12112 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12113
12114 * utils.c (do_write): New function.
12115 (error_stream): Rewrite combining the code from error_begin and
12116 verror.
12117 (verror): Rewrite using error_stream.
12118 (error_begin): Delete function.
12119
12120 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12121
12122 * utils.c (error_begin): Make static.
12123 * defs.h (error_begin): Delete declaration.
12124
12125 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12126 (decode_line_1): Use cplusplus_error instead of error_begin,
12127 cplusplus_hint and return_to_top_level.
12128 * coffread.c (coff_symfile_read): Use error instead of error_begin
12129 and return_to_top_level.
12130 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12131
12132 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12133
12134 * language.h (type_error, range_error): Make string parameter
12135 constant.
12136 * language.c (warning_pre_print): Delete extern declaration.
12137 * dwarfread.c (warning_pre_print): Ditto.
12138 * language.c (type_error, range_error): Rewrite to use verror and
12139 vwarning instead of warning_begin.
12140
12141 2002-02-01 Michael Snyder <msnyder@redhat.com>
12142
12143 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12144 (set_ignore_count): Move misplaced comment back where it belongs.
12145
12146 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12147
12148 * command.h (NO_FUNCTION): Delete macro.
12149 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12150 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12151 * tracepoint.c (_initialize_tracepoint): Ditto.
12152 * cli/cli-decode.c (add_set_cmd): Ditto.
12153 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12154
12155 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12156
12157 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12158 Update ``this'' pointer when calling virtual functions.
12159
12160 2002-02-01 Michael Snyder <msnyder@redhat.com>
12161
12162 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12163 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12164
12165 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12166
12167 * regformats/reg-arm.dat: New file.
12168 * regformats/reg-i386.dat: New file.
12169 * regformats/reg-ia64.dat: New file.
12170 * regformats/reg-m68k.dat: New file.
12171 * regformats/reg-mips.dat: New file.
12172 * regformats/reg-ppc.dat: New file.
12173 * regformats/reg-sh.dat: New file.
12174 * regformats/regdef.h: New file.
12175 * regformats/regdat.sh: New file.
12176
12177 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12178
12179 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12180 (arm_frame_args_address, arm_frame_locals_address): New functions.
12181 (arm_frame_num_args): New function.
12182 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12183 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12184 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12185
12186 2002-01-31 Michael Snyder <msnyder@redhat.com>
12187
12188 * breakpoint.c (break_at_finish_command): Export.
12189 (break_at_finish_at_depth_command): Export.
12190 (tbreak_at_finish_command): Export.
12191 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12192 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12193 "txbreak" commands, which are HPPA specific.
12194
12195 * printcmd.c (disassemble_command): Remove an ancient
12196 artifact of an old merge.
12197
12198 * symfile.h (enum overlay_debugging_state):
12199 Define enum constant values for overlay mode.
12200 * symfile.c (overlay_debugging): Use enums instead of literals.
12201 (overlay_is_mapped, overlay_auto_command,
12202 overlay_manual_command): Ditto.
12203
12204 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12205 breakpoint_here_p, breakpoint_inserted_here_p,
12206 breakpoint_thread_match, bpstat_stop_status,
12207 describe_other_breakpoints, check_duplicates, clear_command):
12208 Coding standard fixes.
12209
12210 * target.c (target_xfer_memory): Add spaces, coding standard.
12211 (do_xfer_memory): Add missing line to trust-readonly
12212 code: check bfd SEC_READONLY flag for section.
12213
12214 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12215
12216 * PROBLEMS: Fix typo, 5.1->5.1.1.
12217
12218 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12219
12220 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12221 data symbols, since we search based on textlow and texthigh.
12222 (find_pc_sect_symtab): Likewise.
12223
12224 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12225
12226 * defs.h (vwarning): Declare.
12227 * utils.c (vwarning): New function.
12228 (warning): Call vwarning.
12229 (warning_begin): Delete function.
12230
12231 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12232 the warning message.
12233 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12234 warning_begin.
12235
12236 2002-01-30 Michael Snyder <msnyder@redhat.com>
12237
12238 * NEWS: Mention "set trust-readonly-sections" command.
12239 Mention generate-core-file command.
12240
12241 2002-01-15 Michael Snyder <msnyder@redhat.com>
12242
12243 * target.c: New command, "set trust-readonly-sections on".
12244 (do_xfer_memory): Honor the suggestion to trust readonly sections
12245 by reading them from the object file instead of from the target.
12246 (initialize_targets): Register command "set trust-readonly-sections".
12247
12248 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12249
12250 * parse.c (target_map_name_to_register): Simplify, search regs and
12251 pseudo-regs using a single loop.
12252
12253 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12254
12255 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12256
12257 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12258
12259 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12260 * config/i386/i386v42mp.mh: Add i387-nat.o .
12261 * i386v4-nat.c: Include i387-nat.h.
12262 (supply_fpregset): Use i387_supply_fsave.
12263 (fill_fpregset): Use i387_fill_fsave.
12264
12265 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12266
12267 * arm-tdep.c (arm_call_dummy_words): Define.
12268 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12269 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12270 (CALL_DUMMY_WORDS): Define.
12271 (arm_call_dummy_words): Declare.
12272 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12273 (arm_linux_call_dummy_words): Declare.
12274
12275 2002-01-30 Andreas Schwab <schwab@suse.de>
12276
12277 * m68klinux-nat.c: Fix last change to use regcache_collect
12278 instead of referencing registers[] directly.
12279
12280 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12281
12282 * parse.c (target_map_name_to_register): Delete code wrapped in
12283 #ifdef REGISTER_NAME_ALIAS_HOOK.
12284
12285 2002-01-28 Michael Snyder <msnyder@redhat.com>
12286
12287 * regcache.c (legacy_read_register_gen): Need to be able to
12288 read pseudo-register as well as real register.
12289 (legacy_write_register_gen): Ditto.
12290
12291 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12292
12293 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12294 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12295 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12296 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12297 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12298 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12299 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12300 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12301 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12302 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12303 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12304 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12305 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12306 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12307 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12308 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12309 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12310 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12311 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12312 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12313
12314 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12315
12316 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12317 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12318 (initialize_current_architecture): Update target_byte_order using
12319 information from BFD.
12320 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12321 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12322
12323 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12324
12325 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12326 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12327
12328 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12329 #ifdef INVALID_FLOAT.
12330 * infcmd.c (do_registers_info): Ditto.
12331 * values.c (unpack_double): Ditto. Add comment.
12332
12333 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12334 already commented out.
12335
12336 2002-01-26 Andreas Schwab <schwab@suse.de>
12337
12338 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12339 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12340 registers and add support for PTRACE_GETREGS.
12341
12342 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12343
12344 GDB 5.1.1 released from 5.1 branch.
12345 * NEWS: Add 5.1.1 news.
12346 * README: Sync with 5.1 branch.
12347
12348 2002-01-23 Fred Fish <fnf@redhat.com>
12349
12350 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12351 stabstring on initial malloc. Reallocing will copy it for us,
12352 if necessary.
12353
12354 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12355
12356 * Makefile.in (hpread_h): Delete.
12357 (HFILES_NO_SRCDIR): Remove hpread.h.
12358 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12359 (hpread.o): Update dependencies.
12360 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12361
12362 * hp-psymtab-read.c: Remove file.
12363 * hp-symtab-read.c: Remove file.
12364 * hpread.h: Remove file.
12365
12366 * hpread.c: Merge all contents of hp-psymtab-read.c,
12367 hp-symtab-read.c and hpread.h into this file, as it was prior to
12368 January 1999.
12369
12370 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12371 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12372 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12373 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12374
12375 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12376
12377 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12378 fill_gregset): Call gdbarch_tdep() just once, assign result to
12379 variable and use that, instead of calling the function several
12380 times.
12381
12382 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12383
12384 * configure.host: Accept sparcv9 as alias for sparc64.
12385 * configure.tgt: Likewise.
12386
12387 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12388
12389 * solib-aix5.c (build_so_list_from_mapfile)
12390 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12391 arguments is not reversed.
12392 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12393 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12394
12395 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12396
12397 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12398 modified version of obsolete sh_fetch_pseudo_register.
12399 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12400 (sh4_register_read): New function.
12401 (sh_pseudo_register_write): New function. Renamed and modified
12402 version of obsolete sh_store_pseudo_register.
12403 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12404 (sh4_register_write): New function.
12405 (sh_gdbarch_init): Remove setting of gdbarch function
12406 fetch_pseudo_register and store_pseudo_register. Remove setting of
12407 register_convert_to_raw, register_convert_to_virtual,
12408 register_convertible.
12409 (sh_sh4_register_convertible): Delete. No longer needed. All is
12410 taken care by architecture specific functions
12411 register_read/register_write.
12412 (sh_sh4_register_convert_to_virtual): Make static.
12413 (sh_sh4_register_convert_to_raw): Ditto.
12414
12415 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12416
12417 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12418 (floatformat_is_nan, floatformat_mantissa): Ditto.
12419
12420 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12421 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12422 builtin_type_ieee_double_little,
12423 builtin_type_ieee_double_littlebyte_bigword,
12424 builtin_type_m68881_ext, builtin_type_i960_ext,
12425 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12426 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12427 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12428 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12429
12430 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12431
12432 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12433 parameter. Set frameless flag if it exists and depended of
12434 whether the scanned function is frameless or not.
12435 (xstormy16_skip_prologue): If function is frameless, return
12436 result of xstormy16_scan_prologue().
12437 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12438 call.
12439
12440 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12441
12442 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12443 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12444 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12445 sh_sh4_register_byte, sh_sh4_register_raw_size,
12446 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12447 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12448 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12449 sh_store_pseudo_register, sh_do_pseudo_register): Call
12450 gdbarch_tdep() just once, assign result to variable and use that,
12451 instead of calling the function several times.
12452
12453 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12454
12455 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12456 macros instead of LAST_FPU_CTRL_REGNUM.
12457 (store_register): Likewise.
12458
12459 2002-01-21 Jim Blandy <jimb@redhat.com>
12460
12461 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12462 is up-to-date before running the program, not just when a program
12463 exits.
12464
12465 2002-01-21 Fred Fish <fnf@redhat.com>
12466
12467 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12468 when we have found all instructions we are looking for.
12469
12470 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12471
12472 * arm-tdep.c (arm_register_name): New function.
12473 (arm_registers_names): Make static.
12474 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12475 (arm_register_name): Declare.
12476 (REGISTER_NAME): Use it.
12477
12478 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12479 Kevin Buettner <kevinb@redhat.com>
12480
12481 Convert arm targets to new FRAME interface.
12482 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12483 (arm_frame_find_save_regs): Delete.
12484 (arm_frame_init_saved_regs): New.
12485 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12486 Allocate extra_info as required. Convert all uses of fsr.regs
12487 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12488 to use extra_info.
12489 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12490 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12491 (check_prologue_cache, save_prologue_cache): Likewise.
12492 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12493 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12494 (FRAME_FIND_SAVED_REGS): Delete.
12495 (arm_frame_find_saved_regs): Delete prototype.
12496 (arm_frame_init_saved_regs): New prototype.
12497 (FRAME_INIT_SAVED_REGS): Define.
12498
12499 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12500
12501 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12502
12503 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12504
12505 From Jeff Law <law@redhat.com>:
12506 * infttrace.c: Include <sys/pstat.h>.
12507 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12508 exec file if the ttrace equivalent fails.
12509
12510 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12511
12512 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12513 (closeLogFile): Ditto.
12514
12515 2002-01-20 Michael Chastain <mec@shout.net>
12516
12517 * top.c (print_gdb_version): Bump copyright year to 2002.
12518
12519 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12520
12521 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12522 Zannoni and Eli Zaretskii.
12523
12524 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12525
12526 * buildsym.c: Update copyright years.
12527 * c-typeprint.c: Likewise.
12528 * dwarf2read.c: Likewise.
12529 * f-typeprint.c: Likewise.
12530 * gdbtypes.c: Likewise.
12531 * gdbtypes.h: Likewise.
12532 * hp-symtab-read.c: Likewise.
12533 * hpread.c: Likewise.
12534 * mdebugread.c: Likewise.
12535 * p-typeprint.c: Likewise.
12536
12537 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12538
12539 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12540 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12541 byte-order selectable.
12542 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12543 * arch-utils.c: Ditto.
12544 (set_endian): Ditto.
12545 (set_endian_from_file): Ditto.
12546 * gdbserver/low-sim.c (create_inferior): Ditto.
12547 * gdbarch.sh: Ditto.
12548 * gdbarch.h: Re-generate.
12549 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12550 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12551 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12552 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12553 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12554 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12555 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12556 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12557 macro definition.
12558 * config/mips/tm-wince.h: Remove #undef of macro
12559 TARGET_BYTE_ORDER_SELECTABLE.
12560 * config/sh/tm-wince.h: Ditto.
12561
12562 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12563
12564 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12565 member function fields. Add accessor macro
12566 TYPE_FN_FIELD_ARTIFICIAL.
12567 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12568 * c-typeprint.c (c_type_print_base): Skip artificial member
12569 functions.
12570
12571 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12572
12573 * f-typeprint.c: Delete unused function f_type_print_args.
12574 * p-typeprint.c: Delete unused function pascal_type_print_args.
12575
12576 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12577
12578 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12579 comment. Add ``artificial'' to ``union field_location''.
12580
12581 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12582
12583 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12584 * mdebugread.c (parse_symbol): Likewise.
12585 * stabsread.c (define_symbol): Likewise.
12586 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12587 initializing TYPE_FIELD_BITPOS to n (obsolete).
12588 (hpread_doc_function_type): Likewise.
12589 * hpread.c (hpread_function_type): Likewise.
12590
12591 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12592
12593 * configure.in (host_makefile_frag): Only require a host makefile
12594 fragment when a native build.
12595 * configure: Re-generate.
12596
12597 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12598
12599 * doublest.h (floatformat_from_type): Declare.
12600 * doublest.c (floatformat_from_type): New function.
12601 (convert_typed_floating): Use.
12602
12603 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12604 call to function floatformat_from_type.
12605
12606 * gdbarch.sh (IEEE_FLOAT): Delete.
12607 * gdbarch.h, gdbarch.c: Re-generate.
12608 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12609 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12610 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12611 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12612 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12613 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12614 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12615 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12616 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12617 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12618 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12619 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12620
12621 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12622 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12623 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12624 * sh-tdep.c (sh_gdbarch_init): Ditto.
12625 * mips-tdep.c (mips_gdbarch_init): Ditto.
12626 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12627 * cris-tdep.c (cris_gdbarch_init): Ditto.
12628
12629 2002-01-20 Jiri Smid <smid@suse.cz>
12630
12631 * configure.host, configure.tgt: Support x86-64.
12632 * NEWS: Note new target x86-64.
12633
12634 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12635 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12636 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12637 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12638 x86-64-linux-nat.o): Fix dependencies.
12639
12640 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12641
12642 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12643 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12644 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12645 * config/sparc/xm-sun4os4.h: Delete file.
12646 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12647
12648 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12649
12650 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12651 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12652 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12653 * config/i386/i386lynx.mh (XM_FILE): Delete.
12654 * config/rs6000/xm-rs6000ly.h: Delete file.
12655 * config/sparc/xm-sparclynx.h: Delete file.
12656 * config/m68k/xm-m68klynx.h: Delete file.
12657 * config/i386/xm-i386lynx.h: Delete file.
12658 * config/xm-lynx.h: Delete file.
12659 * config/djgpp/fnchange.lst: Update.
12660
12661 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12662
12663 * alpha-tdep.c (alpha_register_byte): New function.
12664 (alpha_register_raw_size): Ditto.
12665 (alpha_register_virtual_size): Ditto.
12666 (alpha_skip_prologue_internal): Renamed from
12667 alpha_skip_prologue.
12668 (alpha_skip_prologue): New version that calls
12669 alpha_skip_prologue_internal.
12670 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12671 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12672 second argument from alpha_skip_prologue.
12673 (REGISTER_BYTE): Use alpha_register_byte.
12674 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12675 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12676 (FRAMELESS_FUNCTION_INVOCATION): Use
12677 generic_frameless_function_invocation_not.
12678 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12679 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12680
12681 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12682
12683 * config/mips/xm-news-mips.h: Delete file.
12684 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12685
12686 * config/m88k/xm-m88k.h: Delete file.
12687 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12688 * config/m88k/xm-delta88v4.h: Ditto.
12689 * config/m88k/xm-delta88.h: Ditto.
12690
12691 * config/alpha/xm-fbsd.h: Delete file.
12692 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12693
12694 * config/sparc/xm-sparc.h: Delete file.
12695 * Makefile.in (xm-sun4os4.h): Delete dependency.
12696 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12697 * config/sparc/xm-sun4os4.h: Ditto.
12698 * config/sparc/xm-linux.h: Ditto.
12699
12700 * config/i386/xm-windows.h: Delete file.
12701
12702 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12703
12704 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12705 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12706
12707 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12708
12709 * alpha-tdep.c (alpha_call_dummy_words): New.
12710 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12711 (CALL_DUMMY_P): Define.
12712 (CALL_DUMMY_WORDS): Define.
12713 (SIZEOF_CALL_DUMMY_WORDS): Define.
12714
12715 2002-01-19 Per Bothner <per@bothner.com>
12716
12717 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12718 isn't NULL, which can happen with some gcj-3.x-produced code.
12719
12720 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12721
12722 * alpha-tdep.c (alpha_register_virtual_type): New function.
12723 (alpha_init_frame_pc_first): Ditto.
12724 (alpha_fix_call_dummy): Ditto.
12725 (alpha_store_struct_return): Ditto.
12726 (alpha_extract_struct_value_address): Ditto.
12727 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12728 alpha_register_virtual_type.
12729 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12730 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12731 alpha_extract_struct_value_address.
12732 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12733 (INIT_FRAME_PC): Use init_frame_pc_noop.
12734 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12735
12736 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12737
12738 * i386gnu-nat.c: Include "i386-tdep.h".
12739 (fetch_fpregs): Simplify code dealing with uninitialized floating
12740 point states such that it doesn't require FP7_REGNUM.
12741
12742 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12743
12744 * alpha-tdep.c (frame_extra_info): New.
12745 (alpha_find_saved_regs): Make static. Use
12746 frame->extra_info.
12747 (alpha_frame_init_saved_regs): New function.
12748 (alpha_frame_saved_pc): Use frame->extra_info.
12749 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12750 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12751 (init_extra_frame_info): Rename to...
12752 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12753 (alpha_print_extra_frame_info): New function.
12754 (alpha_frame_locals_address): Ditto.
12755 (alpha_frame_args_address): Ditto.
12756 (alpha_pop_frame): Use frame->extra_info.
12757 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12758 alpha_frame_args_address.
12759 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12760 (alpha_find_saved_regs): Remove prototype.
12761 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12762 (EXTRA_FRAME_INFO): Remove.
12763 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12764 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12765
12766 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12767
12768 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12769 (alpha_cannot_fetch_register): Ditto.
12770 (alpha_cannot_store_register): Ditto.
12771 (alpha_register_convertible): Ditto.
12772 (alpha_use_struct_convention): Ditto.
12773 * config/alpha/tm-alpha.h: Update copyright years.
12774 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12775 (INNER_THAN): Use core_addr_lessthan.
12776 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12777 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12778 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12779 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12780 (FRAME_CHAIN): Remove unnecessary cast.
12781
12782 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12783
12784 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12785 obsolete.
12786
12787 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12788
12789 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12790 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12791 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12792 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12793 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12794 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12795 * x86-64-linux-nat.c: Ditto.
12796
12797 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12798
12799 * alpha-tdep.c (alpha_register_name): New function.
12800 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12801 (REGISTER_NAME): Define.
12802
12803 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12804
12805 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12806
12807 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12808
12809 * alpha-tdep.c: Update copyright years.
12810 (alpha_next_pc): New function.
12811 (alpha_software_single_step): Ditto.
12812 * config/alpha/tm-alpha.h: Add prototype for
12813 alpha_software_single_step.
12814
12815 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12816
12817 * alphabsd-nat.c: Update copyright years.
12818 (fill_gregset): Use regcache_collect.
12819 (fill_fpregset): Likewise.
12820 (fetch_inferior_registers): Only fetch integer registers
12821 if requested to do so.
12822 (store_inferior_registers): Only store integer registers
12823 if requested to do so.
12824
12825 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12826
12827 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12828 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12829 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12830 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12831 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12832 * config/arm/linux.mh (XDEPFILES): Delete.
12833 * config/arm/nbsd.mh (XDEPFILES): Delete.
12834 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12835 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12836 * config/i386/i386m3.mh (XDEPFILES): Delete.
12837 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12838 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12839 * config/i386/fbsd.mh (XDEPFILES): Delete.
12840 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12841 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12842 * config/i386/i386v4.mh (XDEPFILES): Delete.
12843 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12844 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12845 * config/i386/i386aix.mh (XDEPFILES): Delete.
12846 * config/i386/go32.mh (XDEPFILES): Delete.
12847 * config/i386/cygwin.mh (XDEPFILES): Delete.
12848 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12849 * config/i386/i386mach.mh (XDEPFILES): Delete.
12850 * config/i386/i386v32.mh (XDEPFILES): Delete.
12851 * config/i386/linux.mh (XDEPFILES): Delete.
12852 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12853 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12854 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12855 * config/i386/i386sco.mh (XDEPFILES): Delete.
12856 * config/i386/i386v.mh (XDEPFILES): Delete.
12857 * config/i386/nbsd.mh (XDEPFILES): Delete.
12858 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12859 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12860 * config/i386/symmetry.mh (XDEPFILES): Delete.
12861 * config/i386/obsd.mh (XDEPFILES): Delete.
12862 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12863 * config/ia64/linux.mh (XDEPFILES): Delete.
12864 * config/ia64/aix.mh (XDEPFILES): Delete.
12865 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12866 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12867 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12868 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12869 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12870 * config/m68k/linux.mh (XDEPFILES): Delete.
12871 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12872 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12873 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12874 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12875 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12876 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12877 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12878 * config/m88k/delta88.mh (XDEPFILES): Delete.
12879 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12880 * config/m88k/m88k.mh (XDEPFILES): Delete.
12881 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12882 * config/mips/linux.mh (XDEPFILES): Delete.
12883 * config/mips/irix6.mh (XDEPFILES): Delete.
12884 * config/mips/irix5.mh (XDEPFILES): Delete.
12885 * config/mips/irix4.mh (XDEPFILES): Delete.
12886 * config/mips/irix3.mh (XDEPFILES): Delete.
12887 * config/mips/decstation.mh (XDEPFILES): Delete.
12888 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12889 (NATDEPFILES): Move core-aout.o to here.
12890 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12891 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12892 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12893 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12894 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12895 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12896 * config/pa/hpux11.mh (XDEPFILES): Delete.
12897 * config/powerpc/aix.mh (XDEPFILES): Delete.
12898 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12899 * config/powerpc/linux.mh (XDEPFILES): Delete.
12900 * config/romp/rtbsd.mh: Rename XDEPFILES.
12901 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12902 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12903 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12904 * config/s390/s390.mh (XDEPFILES): Delete.
12905 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12906 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12907 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12908 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12909 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12910 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12911 * config/sparc/linux.mh (XDEPFILES): Delete.
12912 * config/vax/vaxult.mh (XDEPFILES): Delete.
12913 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12914 * Makefile.in (DEPFILES): Remove XDEPFILES.
12915
12916 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12917
12918 * utils.c (internal_verror): Fix comments, default is yes not no.
12919 Update queries to match. Default to quit and dump core.
12920
12921 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12922
12923 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12924 copyright.
12925 * defs.h, event-top.c, gdbcmd.h: Ditto.
12926 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12927 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12928 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12929 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12930 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12931 * mi/mi-main.c:Ditto.
12932
12933 * stack.c, symfile.c: Update copyright.
12934
12935 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12936
12937 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12938 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12939 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12940 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12941
12942 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12943
12944 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12945 * gdbserver/low-lynx.c (myattach): Likewise.
12946 * gdbserver/low-nbsd.c (myattach): Likewise.
12947 * gdbserver/low-sim.c (myattach): Likewise.
12948 * gdbserver/low-sparc.c (myattach): Likewise.
12949 * gdbserver/low-sun3.c (myattach): Likewise.
12950
12951 * gdbserver/low-linux.c (myattach): New function.
12952
12953 * gdbserver/server.c (attach_inferior): New function.
12954 (main): Handle "--attach".
12955
12956 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12957
12958 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12959 maintainer.
12960
12961 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12962
12963 * c-typeprint.c (is_type_conversion_operator): Add additional
12964 check for non-conversion operators.
12965
12966 2002-01-15 Michael Snyder <msnyder@redhat.com>
12967
12968 * linux-proc.c: Add "info proc" command, a la procfs.c.
12969 (read_mapping): New function, abstract and re-use code.
12970 (linux_find_memory_regions): Use new func read_mapping.
12971 (linux_info_proc_cmd): New function, implement "info proc".
12972 (_initialize_linux_proc): Add new command "info proc".
12973
12974 2002-01-15 Michael Snyder <msnyder@redhat.com>
12975
12976 * symfile.c (generic_load): Use bfd_map_over_sections method
12977 instead of manipulating bfd structure members directly.
12978 (add_section_size_callback): New function, bfd sections callback
12979 used by generic_load.
12980 (load_sections_callback): New function, bfd sections callback
12981 used by generic_load.
12982
12983 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12984
12985 [Based on work by Jim Blandy]
12986 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12987 (builtin_type_vec128): Export.
12988 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12989 types.
12990 (builtin_type_vec128): New builtin type for 128 bit vector
12991 registers.
12992 (build_gdbtypes): Initialize builtin_type_v16qi and
12993 builtin_type_v8hi. Create the vec128 register builtin type
12994 structure.
12995 (build_builtin_type_vec128): New function.
12996 (_initialize_gdbtypes): Register builtin_type_v16qi and
12997 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12998 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12999 AltiVec register to new builtin type.
13000
13001 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13002
13003 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13004 to make_cv_type.
13005
13006 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13007
13008 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13009 CLEAN_UP_REGISTER_VALUE.
13010 * regcache.c (supply_register): Update only call.
13011
13012 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13013
13014 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13015 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13016 a29k-*-vxworks* targets as obsolete.
13017
13018 2002-01-14 Michael Snyder <msnyder@redhat.com>
13019
13020 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13021 until we can resolve portability issues.
13022 * gregset.h: Remove references to fpxregs.
13023 * gcore.c (gcore_command): Initialize note_sec to NULL.
13024
13025 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13026
13027 * signals.c (target_signal_to_name): Rewrite. Only use
13028 signals[].name when in bounds and non-NULL.
13029
13030 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13031
13032 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13033 * signals.c (target_signal_to_name): Verify that SIG is within the
13034 bounds of the signals array.
13035
13036 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13037
13038 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13039
13040 2002-01-13 Keith Seitz <keiths@redhat.com>
13041
13042 * stack.c (print_frame_info_base): Print the frame's pc
13043 only if when print_frame_info_listing_hook is not defined.
13044
13045 2002-01-13 Keith Seitz <keiths@redhat.com>
13046
13047 * varobj.c (varobj_set_value): Make sure that there were no
13048 errors evaluating the object before attempting to set its
13049 value.
13050 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13051 so this offset adjustment is no longer necessary.
13052 (create_child): Don't set the error flag if the child is
13053 a CPLUS_FAKE_CHILD.
13054 (value_of_child): If value_fetch_lazy fails, return NULL
13055 so that callers will be notified that an error occurred.
13056 (c_value_of_variable): Delay check of variable's validity
13057 until later. We actually want all structs and unions to have
13058 the value "{...}".
13059 Do not return "???" for variables which could not be evaluated.
13060 This error condition must be returned to the caller so that it
13061 can get the error condition from gdb.
13062 (cplus_name_of_child): Adjust index for vptr before figuring
13063 out the name of the child.
13064 (cplus_value_of_child): If a child's (real) parent is not valid,
13065 don't even bother trying to give a value for it. Just return
13066 an error. Change all instances in this function.
13067 (cplus_type_of_child): If our parent is one of the "fake"
13068 parents, we need to get at the type of the real parent, and
13069 derive the child's true type using this information.
13070
13071 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13072
13073 From 2002-01-09 John Marshall <johnm@falch.net>:
13074 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13075 sources.redhat.com, and tweak some related URLs which had
13076 suffered from linkrot.
13077
13078 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13079
13080 From Jeff law:
13081 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13082 structures passed in registers.
13083
13084 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13085
13086 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13087 white space which prevented compilation. Reported by DSK
13088 <dsk@student.unsw.edu.au>.
13089
13090 2002-01-11 Michael Snyder <msnyder@redhat.com>
13091
13092 * symfile.c (build_section_addr_info_from_section_tab):
13093 Use bfd access method instead of manipulating bfd directly.
13094 (syms_from_objfile): Ditto.
13095 (simple_overlay_update_1): Ditto.
13096 (simple_overlay_update): Ditto.
13097 (generic_load): Ditto.
13098 (overlay_unmapped_address): FIXME comment, bfd access methods.
13099 (sections_overlap): FIXME comment, bfd access methods.
13100 (pc_in_mapped_range): FIXME comment, bfd access methods.
13101 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13102 (section_is_mapped): FIXME comment, bfd access methods.
13103 (section_is_overlay): FIXME comment, bfd access methods.
13104
13105 * symfile.c (generic_load): Whitespace and long line cleanups.
13106 Remove duplicate variable, change several local variables to
13107 more appropriate data types.
13108 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13109
13110 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13111
13112 From Peter Schauer:
13113 * language.c (longest_local_hex_string_custom): Use phex_nz to
13114 convert NUM to a hex string.
13115
13116 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13117
13118 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13119 the function.
13120 Update Copyright year.
13121
13122 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13123
13124 * language.c (longest_raw_hex_string): Delete unused function.
13125
13126 2002-01-11 Petr Sorfa <petrs@caldera.com>
13127
13128 * MAINTAINERS (write-after-approval): Add myself.
13129 * dwarf2read.c (read_tag_string_type): Handling of
13130 DW_AT_byte_size.
13131 (read_tag_string_type): FORTRAN fix to prevent propagation of
13132 first string size.
13133 (set_cu_language): Handling of DW_LANG_Fortran95
13134
13135 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13136
13137 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13138 GETPID(inferior_ptid).
13139 (store_inferior_registers): Likewise.
13140
13141 2002-01-10 Jason Merrill <jason@redhat.com>
13142
13143 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13144 Fix DW_OP_minus.
13145
13146 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13147
13148 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13149 and bfd/elf32-sh-nbsd.c.
13150
13151 2002-01-10 Michael Snyder <msnyder@redhat.com>
13152
13153 * NEWS: Mention --pid and corefile/proc-id behavior change.
13154
13155 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13156 * gcore.c: Include cli/cli-decode.h instead of command.h.
13157
13158 * main.c (captured_main): Add new command line option "--pid".
13159 If the second command line argument (following the symbol-file)
13160 begins with a digit, try to attach to it before trying to open
13161 it as a corefile.
13162 (print_gdb_help): Document the "--pid" argument.
13163
13164 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13165
13166 * completer.c (command_completer): New function.
13167
13168 * completer.h <command_completer>: Add prototype.
13169
13170 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13171 completer for the "help" command.
13172
13173 2002-01-09 Jason Merrill <jason@redhat.com>
13174
13175 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13176
13177 2002-01-09 Michael Snyder <msnyder@redhat.com>
13178
13179 * i386-linux-nat.c (fill_fpxregset): Make global.
13180 (store_fpxregset): Ditto.
13181
13182 * gregset.h (gdb_fpxregset_t): Define.
13183 (supply_fpxregset): Prototype.
13184 (fill_fpxregset): Prototype.
13185
13186 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13187
13188 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13189
13190 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13191 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13192 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13193
13194 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13195
13196 * MAINTAINERS: Update target maintainer rules so that any
13197 Maintainer can approve a tested patch for a maintenance-only
13198 target.
13199
13200 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13201
13202 * MAINTAINERS (write-after-approval): Add myself.
13203
13204 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13205 IN_SIGTRAMP.
13206
13207 2002-01-08 Michael Snyder <msnyder@redhat.com>
13208
13209 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13210 real name of the executable, rather than the /proc name.
13211
13212 2002-01-03 Michael Snyder <msnyder@redhat.com>
13213
13214 Implement a "generate-core-file" command in gdb, save target state.
13215 * gcore.c: New file. Implement new command 'generate-core-file'.
13216 Save a corefile image of the current state of the inferior.
13217 * linux-proc.c: Add linux-specific code for saving corefiles.
13218 * target.h (struct target_ops): Add new target vectors for saving
13219 corefiles; to_find_memory_regions and to_make_corefile_notes.
13220 (target_find_memory_regions): New macro.
13221 (target_make_corefile_notes): New macro.
13222 * target.c (update_current_target): Inherit new target methods.
13223 (dummy_find_memory_regions): New place-holder method.
13224 (dummy_make_corefile_notes): New place-holder method.
13225 (init_dummy_target): Initialize new dummy target vectors.
13226 * exec.c (exec_set_find_memory_regions): New function.
13227 Allow the exec_ops vector for memory regions to be taken over.
13228 (exec_make_note_section): New function, target vector method.
13229 * defs.h (exec_set_find_memory_regions): Export prototype.
13230 * procfs.c (proc_find_memory_regions): New function, corefile method.
13231 (procfs_make_note_section): New function, corefile method.
13232 (init_procfs_ops): Set new target vector pointers.
13233 (find_memory_regions_callback): New function.
13234 (procfs_do_thread_registers): New function.
13235 (procfs_corefile_thread_callback): New function.
13236 * sol-thread.c (sol_find_memory_regions): New function.
13237 (sol_make_note_section): New function.
13238 (init_sol_thread_ops): Initialize new target vectors.
13239 * inftarg.c (inftarg_set_find_memory_regions): New function.
13240 Allow to_find_memory_regions vector to be taken over.
13241 (inftarg_set_make_corefile_notes): New function.
13242 Allow to_make_corefile_notes vector to be taken over.
13243 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13244 interface layer if not target_has_execution (may be a corefile).
13245 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13246 * config/sparc/sun4sol2.mh: Ditto.
13247 * config/alpha/alpha-linux.mh: Ditto.
13248 * config/arm/linux.mh: Ditto.
13249 * config/i386/x86-64linux.mh: Ditto.
13250 * config/ia64/linux.mh: Ditto.
13251 * config/m68k/linux.mh: Ditto.
13252 * config/mips/linux.mh: Ditto.
13253 * config/powerpc/linux.mh: Ditto.
13254 * config/sparc/linux.mh: Ditto.
13255
13256 2002-01-07 Michael Snyder <msnyder@redhat.com>
13257
13258 * arm-linux-nat.c: Remove references to regcache.c internal data
13259 (registers[] and register_valid[]).
13260
13261 2002-01-07 Michael Snyder <msnyder@redhat.com>
13262
13263 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13264 so that attaching to a pid will automatically read the process's
13265 symbol file and shlibs.
13266 * Makefile.in: Add rule for linux-proc.o.
13267 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13268 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13269 * config/arm/linux.mh: Ditto.
13270 * config/i386/linux.mh: Ditto.
13271 * config/i386/x86-64linux.mh: Ditto.
13272 * config/ia64/linux.mh: Ditto.
13273 * config/m68k/linux.mh: Ditto.
13274 * config/mips/linux.mh: Ditto.
13275 * config/powerpc/linux.mh: Ditto.
13276 * config/sparc/linux.mh: Ditto.
13277
13278 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13279
13280 * win32-nat.c: Add i386-tdep.h dependency.
13281
13282 2002-01-07 Michael Snyder <msnyder@redhat.com>
13283
13284 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13285 instead of bfd_get_arch_size. Don't bail out just because
13286 there's no exec_bfd.
13287
13288 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13289 * p-valprint.c (pascal_object_print_value): Ditto.
13290 * somread.c (som_symtab_read): Ditto.
13291 * symfile.c (simple_free_overlay_region_table): Ditto.
13292 * valops.c (value_assign): Ditto.
13293
13294 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13295 use tilde_expand and strerror for opening save-tracepoints file.
13296
13297 * thread-db.c (thread_db_new_objfile): Indendation fix.
13298
13299 * infptrace.c (GDB_MAX_ALLOCA): New define.
13300 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13301 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13302 can be overridden with whatever value is appropriate to the host).
13303 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13304 alloca to allocate potentially large buffer.
13305 * rs6000-nat.c (child_xfer_memory): Ditto.
13306 * symm-nat.c (child_xfer_memory): Ditto.
13307 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13308
13309 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13310
13311 From Nick Clifton <nickc@redhat.com>
13312 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13313
13314 2002-01-07 Michael Snyder <msnyder@redhat.com>
13315
13316 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13317 Don't use exec_bfd if it's NULL.
13318
13319 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13320
13321 * valops.c (value_arg_coerce): Fix formatting.
13322
13323 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13324
13325 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13326 * gnu-nat.c: Ditto.
13327
13328 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13329
13330 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13331 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13332 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13333 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13334 z8k-coff have not been multi-arched. Update z8k-coff build
13335 status.
13336
13337 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13338
13339 * MAINTAINERS: Mark a29k target as obsolete.
13340 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13341 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13342 comments.
13343 * NEWS: Note that a29k targets are obsolete.
13344 * a29k-tdep.c: Mark as obsolete.
13345 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13346 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13347 a29k-*-vxworks* targets as obsolete.
13348 * remote-adapt.c: Obsolete.
13349 * remote-eb.c: Obsolete.
13350 * remote-mm.c: Obsolete.
13351 * remote-udi.c: Obsolete.
13352 * config/a29k/a29k-udi.mt: Obsolete.
13353 * config/a29k/a29k.mt: Obsolete.
13354 * config/a29k/tm-a29k.h: Obsolete.
13355 * config/a29k/tm-vx29k.h: Obsolete.
13356 * config/a29k/vx29k.mt: Obsolete.
13357
13358 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13359
13360 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13361 with BFD_ENDIAN_BIG.
13362
13363 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13364
13365 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13366 * configure, config.in: Re-generate.
13367 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13368 * defs.h: Do not include <endian.h>.
13369
13370 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13371
13372 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13373 * config.in: Regenerate.
13374 * configure.in: Update copyright years.
13375 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13376 * configure: Regenerate.
13377 * i386bsd-nat.c: Update copyright years.
13378 (fill_gregset): Use regcache_collect.
13379 (fetch_inferior_registers): Only fetch integer registers
13380 if requested to do so. Add support for XMM registers
13381 using PT_GETXMMREGS.
13382 (store_inferior_registers): Only store integer registers
13383 if requested to do so. Add support for XMM registers
13384 using PT_SETXMMREGS.
13385 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13386 (store_inferior_registers): Remove.
13387 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13388 (fetch_elfcore_registers): New function.
13389 (i386nbsd_elfcore_fns): New.
13390 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13391 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13392 i386bsd-nat.o.
13393 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13394 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13395 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13396 * config/i386/tm-nbsd.h: Update copyright years.
13397 (HAVE_SSE_REGS): Define.
13398 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13399 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13400 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13401 (SIGCONTEXT_PC_OFFSET): Remove.
13402 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13403
13404 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13405
13406 * configure.tgt: Remove powerpc-*-macos* target.
13407 * config/m68k/xm-mpw.h: Delete file.
13408 * config/xm-mpw.h: Delete file.
13409 * ser-mac.c: Delete file.
13410 * mpw-make.sed: Delete file.
13411 * mpw-config.in: Delete file.
13412 * mac-xdep.c: Delete file.
13413 * mac-gdb.r: Delete file.
13414 * mac-defs.h: Delete file.
13415 * mac-nat.c: Delete file.
13416 * config/powerpc/macos.mh: Delete file.
13417 * config/powerpc/macos.mt: Delete file.
13418 * config/powerpc/nm-macos.h: Delete file.
13419 * config/powerpc/tm-macos.h: Delete file.
13420 * source.c (openp, open_source_file): Remove obsolete code.
13421 * top.c (gdb_readline): Ditto.
13422 * utils.c (query): Ditto.
13423 * event-top.c (display_gdb_prompt): Ditto.
13424 * Makefile.in (ser-mac.o): Delete obsolete target.
13425 * NEWS: Update.
13426
13427 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13428
13429 * defs.h (BIG_ENDIAN): Delete macro definition.
13430 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13431 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13432 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13433 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13434 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13435 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13436 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13437 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13438 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13439 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13440 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13441 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13442 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13443 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13444 * gdbarch.c: Re-generate.
13445
13446 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13447
13448 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13449 for core files.
13450
13451 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13452
13453 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13454
13455 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13456
13457 * value.h (value_ptr): Delete typedef.
13458
13459 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13460
13461 * i386nbsd-nat.c: Update copyright years.
13462 Include i386-tdep.h.
13463
13464 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13465
13466 * stabsread.c: Update copyright years.
13467
13468 From Debashis Mahata <debashis.mahata@wipro.com>:
13469 (read_struct_fields): Deal with Sun C compiler erroneous stab
13470 output for structs and unions.
13471 Fix PR gdb/269.
13472
13473 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13474
13475 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13476 prototype.
13477
13478 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13479
13480 * cp-abi.c: Fix whitespace.
13481 (baseclass_offset): New wrapper function.
13482 * cp-abi.h (baseclass_offset): Add prototype.
13483 (struct cp_abi_ops): Add baseclass_offset pointer.
13484
13485 * valops.c (vb_match): Move to...
13486 * gnu-v2-abi.c (vb_match): here.
13487 * valops.c (baseclass_offset): Move to...
13488 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13489
13490 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13491
13492 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13493 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13494 * hpacc-abi.c (init_hpacc_ops): Likewise.
13495
13496 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13497
13498 * valops.c (find_overload_match): Accept obj as a
13499 reference parameter. Update it before returning.
13500 * value.h (find_overload_match): Update prototype.
13501 * eval.c (evaluate_subexp_standard): Pass object to
13502 find_overload_match by reference.
13503
13504 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13505
13506 * valarith.c: Replace value_ptr with struct value pointer. Remove
13507 register attribute from value declarations.
13508 * valops.c: Ditto.
13509 * value.h: Ditto.
13510 * scm-lang.c (scm_lookup_name): Ditto.
13511
13512 2002-01-03 Michael Snyder <msnyder@redhat.com>
13513
13514 Abstract the functionality of iterating over mapped memory
13515 regions into a general purpose iterator function.
13516 * procfs.c (iterate_over_mappings): New function, general purpose
13517 iterator for memory sections.
13518 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13519 (solib_mappings_callback): New function, callback for above.
13520 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13521 (info_mappings_callback): New function, callback for above.
13522
13523 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13524
13525 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13526
13527 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13528 * i386-tdep.c: Include "elf-bfd.h".
13529 (process_note_abi_tag_sections): New function.
13530 (i386_gdbarch_init): Add code to recognize various OS/ABI
13531 combinations.
13532
13533 * maint.c (_initialize_maint_cmds): Add missing \ in
13534 string-literal.
13535
13536 For older changes see ChangeLog-2001
13537 \f
13538 Local Variables:
13539 mode: change-log
13540 left-margin: 8
13541 fill-column: 74
13542 version-control: never
13543 End:
This page took 0.306127 seconds and 5 git commands to generate.