* win32-nat.c (child_attach): Reset saw_create counter or subsequent attach
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
91a175b3
CF
12002-11-22 Christopher Faylor <cgf@redhat.com>
2
3 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
4 attach will hang.
5
f4ded5b1
AC
62002-11-22 Andrew Cagney <ac131313@redhat.com>
7
8 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
9 to default_frame_address.
10 * gdbarch.h, gdbarch.c: Re-generate.
11
12 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
13 or frame_locals_address to default_frame_address.
14 * m68k-tdep.c (m68k_gdbarch_init): Update.
15 * i386-tdep.c (i386_gdbarch_init): Update.
16 * frv-tdep.c (frv_gdbarch_init): Update.
17 * sh-tdep.c (sh_gdbarch_init): Update.
18 * v850-tdep.c (v850_gdbarch_init): Update.
19 * sparc-tdep.c (sparc_gdbarch_init): Update.
20 * mips-tdep.c (mips_gdbarch_init): Update.
21 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
22 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
23 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
24
25 * cris-tdep.c (cris_frame_args_address): Delete function.
26 (cris_frame_locals_address): Delete function.
27 (cris_gdbarch_init): Do not set frame_args_address or
28 frame_locals_address.
29
f7c1e0f3
MS
302002-11-22 Michael Snyder <msnyder@redhat.com>
31
32 * thread-db.c (thread_db_load): Tell the user what's going on
33 if dlopen fails on libthread_db.
34
03dac896
AS
352002-11-23 Andreas Schwab <schwab@suse.de>
36
37 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
38 invariant return values.
39
7a67d0fe
AS
402002-11-22 Andreas Schwab <schwab@suse.de>
41
42 * valops.c (value_slice): Move declaration of `offset' to avoid
43 warning.
44
5633f842
CF
452002-11-22 Christopher Faylor <cgf@redhat.com>
46
47 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
48 (struct so_stuff): Add end_addr field.
49 (register_loaded_dll): Calculate and store end address of loaded dll.
50 (solib_address): New function.
51 (child_solib_loaded_library_pathname): Pass carefully constructed
52 section info to safe_symbol_file_add rather than ignoring it.
53 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
54 DLL is loaded.
55 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
56 (child_create_inferior): Fix a compiler warning.
57 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
58 (solib_address): Declare new function.
59
d85fe7f7
AS
602002-11-22 Andreas Schwab <schwab@suse.de>
61
62 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
63 and FPS registers.
64
8308e54c
DJ
652002-11-21 Daniel Jacobowitz <drow@mvista.com>
66
67 * maint.c (_initialize_maint_cmds): Fix typo. From
68 Francesco Potorti` <pot@gnu.org>.
69
8997bd5e
AC
702002-11-21 Andrew Cagney <cagney@redhat.com>
71
72 * mips-tdep.c (mips_dump_tdep): Delete references to
73 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
74 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
75 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
76 * printcmd.c (build_address_symbolic): Delete calls to
77 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
78 (address_info): Ditto.
79 Fix PR gdb/773.
80
4e87b832
KD
812002-11-19 Klee Dienes <kdienes@apple.com>
82 Adam Fedor <fedor@gnu.org>
83
84 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
85 the ability to explicitly specify the quote characters and word
86 break characters; if NULL is specified for either, use the old
87 behavior of using the characters used by the completer.
88 (skip_chars): New function. Convenience wrapper around
89 skip_quoted_chars to provide the original skip_chars behavior.
90 * completer.h (skip_quoted_chars): Add prototype.
91
9ba8d803
AC
922002-11-19 Andrew Cagney <ac131313@redhat.com>
93
94 Problems reported by Paul Eggert.
95 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
96
0a595803
AS
972002-11-19 Andreas Schwab <schwab@suse.de>
98
99 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
100 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
101 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
102 (m68k_linux_frame_saved_pc): Move to ...
103 * m68klinux-tdep.c: ... here. New file.
104 * Makefile.in (m68klinux-tdep.o): Add dependencies.
105 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
106
e8afa4d7
AF
1072002-11-19 Adam Fedor <fedor@gnu.org>
108
109 * objc-exp.y: Revert to old skip_quoted usage.
110
a76c9d72
AF
1112002-11-19 Adam Fedor <fedor@gnu.org>
112
113 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
114 (objc_lang_h): Define.
115 (YYFILES): Add objc-exp.tab.c.
116 (local-maintainer-clean): Remove objc-exp.tab.c.
117 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
118
fd0e9d45
PM
1192002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
120
121 * p-exp.y (typecast rule): Add automatic dereference of
122 pascal classes if needed.
123 (THIS): Set current_type.
124 Automatically dereference pascal classes.
125 (typebase rule): Add ^typebase recognition.
126
82eeeb94
AF
1272002-11-18 Adam Fedor <fedor@gnu.org>
128
129 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
130 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
131 (op_name): Handle OP_OBJC_SELF.
132 * Makefile.in (expprint.o): Add additional depends.
133
646df18d
AF
1342002-11-18 Adam Fedor <fedor@gnu.org>
135
136 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
137 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
138 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
139 * objc-exp.y: Likewise.
140
379b85df
AF
1412002-11-18 Adam Fedor <fedor@gnu.org>
142
143 * gdb/parser-defs.h: (struct objc_class_str): New structure
144 for parsing ObjC classes.
145
85cf597a
AC
1462002-11-18 Andrew Cagney <ac131313@redhat.com>
147
148 * stack.c (frame_relative_level): Copy function from here ...
149 * frame.c (frame_relative_level): ...to here.
150
5a203e44
AC
1512002-11-18 Andrew Cagney <ac131313@redhat.com>
152
153 * frame.h (enum frame_type): Define.
154 (get_frame_type): Declare.
155 (struct frame_info): Add field `type'. Delete field
156 signal_handler_caller.
157 (deprecated_set_frame_signal_handler_caller): Declare.
158 * frame.c (get_frame_type): New function.
159 (deprecated_set_frame_type): New function.
160 (create_new_frame): Set the frame's type.
161 (get_prev_frame): Similar.
162 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
163 * s390-tdep.c: Ditto.
164 * m68klinux-nat.c: Ditto.
165 * ns32k-tdep.c: Ditto.
166 * x86-64-linux-tdep.c: Ditto.
167 * vax-tdep.c: Ditto.
168 * rs6000-tdep.c: Ditto.
169 * ppc-linux-tdep.c: Ditto.
170 * i386-interix-tdep.c: Ditto.
171 * mips-tdep.c: Ditto.
172 * m68k-tdep.c: Ditto.
173 * hppa-tdep.c: Ditto.
174 * ia64-tdep.c: Ditto.
175 * cris-tdep.c: Ditto.
176 * arm-tdep.c: Ditto.
177 * alpha-tdep.c: Ditto.
178 * i386-tdep.c: Ditto.
179 * stack.c: Ditto.
180 * ada-lang.c: Ditto.
181 * blockframe.c: Update.
182 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
183 deprecated_set_frame_type instead of signal_handler_caller.
184 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
185 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
186 * breakpoint.h: Delete FIXME suggesting get_frame_type.
187
bf4ae8b2
KD
1882002-11-18 Klee Dienes <kdienes@apple.com>
189
190 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
191
a672ef13
KD
1922002-11-18 Klee Dienes <kdienes@apple.com>
193
194 * buildsym.c (pop_context): Add comment.
195
0c5e171a
KD
1962002-11-18 Klee Dienes <kdienes@apple.com>
197
198 * buildsym.h (pop_context): Convert to function, defined in
199 buildsym.c.
200 * buildsym.c: Include gdb_assert.h.
201 (pop_context): Implement as C function. Add check for stack
202 underflow.
203 * dbxread.c (process_one_symbol): Complain and stop processing
204 that symbol if we are already at the top of the context stack for
205 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
206 when processing N_RBRAC.
207
8a1f4c4c
DJ
2082002-11-16 Daniel Jacobowitz <drow@mvista.com>
209
210 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
211 define.
212 (struct target_waitstatus): Add opaque definition.
213 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
214 * exec.c (init_exec_ops): Likewise.
215 * fork-child.c (clone_and_follow_inferior): Remove.
216 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
217 * inferior.h (clone_and_follow_inferior): Remove prototype.
218 * infrun.c (follow_fork_mode_both): Remove.
219 (follow_fork_mode_kind_names): Remove commented out "both".
220 (follow_inferior_fork): Remove follow_fork_mode_both support.
221 * inftarg.c (child_clone_and_follow_inferior): Remove.
222 (child_post_follow_inferior_by_clone): Remove.
223 (init_child_ops): Don't set to_clone_and_follow_inferior
224 or to_post_follow_inferior_by_clone.
225 * target.c (default_clone_and_follow_inferior): Remove.
226 (cleanup_target): Don't set to_clone_and_follow_inferior
227 or to_post_follow_inferior_by_clone.
228 (find_default_clone_and_follow_inferior): Remove.
229 (init_dummy_target): Don't set to_clone_and_follow_inferior.
230 (debug_to_clone_and_follow_inferior): Remove.
231 (debug_to_post_follow_inferior_by_clone): Remove.
232 (setup_target_debug): Don't set to_clone_and_follow_inferior
233 or to_post_follow_inferior_by_clone.
234 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
235 and to_post_follow_inferior_by_clone.
236 (child_clone_and_follow_inferior): Remove prototype.
237 (child_post_follow_inferior_by_clone): Remove prototype.
238 (target_clone_and_follow_inferior): Remove macro.
239 (target_post_follow_inferior_by_clone): Remove macro.
240 (find_default_clone_and_follow_inferior): Remove prototype.
241
47932f85
DJ
2422002-11-16 Daniel Jacobowitz <drow@mvista.com>
243
244 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
245 inferior_has_vforked, and inferior_has_execd instead of
246 target_has_forked, target_has_vforked, and target_has_execd.
247 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
248 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
249 (CHILD_WAIT): Define.
250 (child_wait): Add prototype.
251 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
252 Add prototype.
253 (hpux_has_vforked): Likewise, from child_has_vforked.
254 (hpux_has_execd): Likewise, from child_has_execd.
255 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
256 (not_same_real_pid, child_wait): New, copied from inftarg.c.
257 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
258 and hpux_has_syscall_event instead of the target hooks.
259 * infrun.c (inferior_has_forked, inferior_has_vforked)
260 (inferior_has_execd): New functions.
261 * inftarg.c (not_same_real_pid): Remove.
262 (child_wait): Remove references to not_same_real_pid,
263 target_has_forked, target_has_vforked, target_has_execd,
264 and target_has_syscall_event.
265 (child_has_forked, child_has_vforked, child_has_execd)
266 (child_has_syscall_event): Remove.
267 (init_child_ops): Remove references to child_has_forked,
268 child_has_vforked, child_has_execd, and child_has_syscall_event.
269 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
270 (hpux_has_vforked): Likewise, from child_has_vforked.
271 (hpux_has_execd): Likewise, from child_has_execd.
272 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
273 * target.c (cleanup_target): Remove references to
274 to_has_forked, to_has_vforked, to_has_execd, and
275 to_has_syscall_event.
276 (update_current_target): Likewise.
277 (setup_target_debug): Likewise.
278 (debug_to_has_forked): Remove.
279 (debug_to_has_vforked): Remove.
280 (debug_to_has_execd): Remove.
281 (debug_to_has_syscall_event): Remove.
282 * target.h (struct target_ops): Remove to_has_forked.
283 to_has_vforked, to_has_execd, and to_has_syscall_event.
284 (child_has_forked, child_has_vforked, child_has_execd)
285 (child_has_syscall_event): Remove prototypes.
286 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
287 prototypes.
288 (target_has_forked, target_has_vforked, target_has_execd)
289 (target_has_syscall_event): Remove macros.
290
4088142a
DJ
2912002-11-16 Daniel Jacobowitz <drow@mvista.com>
292
293 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
294 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
295 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
296 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
297 * target.c (cleanup_target): Remove reference to
298 to_can_follow_vfork_prior_to_exec.
299 (update_current_target): Likewise.
300 (debug_to_can_follow_vfork_prior_to_exec): Remove.
301 (setup_target_debug): Remove reference to
302 to_can_follow_vfork_prior_to_exec.
303 * target.h (struct target_ops): Remove
304 to_can_follow_vfork_prior_to_exec.
305 (child_can_follow_vfork_prior_to_exec): Remove prototype.
306 (target_can_follow_vfork_prior_to_exec): Remove definition.
307 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
308 define.
309 * infrun.c (follow_vfork_when_exec): Remove.
310 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
311 (follow_exec): Likewise.
312 (handle_inferior_event): Likewise.
313 (keep_going): Likewise.
314
18cde8d5
AC
3152002-11-15 Andrew Cagney <cagney@redhat.com>
316
317 * frame.c (generic_unwind_get_saved_register): Make static.
318 * frame.h (generic_unwind_get_saved_register): Delete declaration.
319 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
320 defaults to generic_unwind_get_saved_register.
321 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
322 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
323 * frv-tdep.c (frv_gdbarch_init): Ditto.
324 * i386-tdep.c (i386_gdbarch_init): Ditto.
325 * s390-tdep.c (s390_gdbarch_init): Ditto.
326 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
327 * v850-tdep.c (v850_gdbarch_init): Ditto.
328 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
329 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
330 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
331
a6b063af
AC
3322002-11-15 Andrew Cagney <cagney@redhat.com>
333
334 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
335 i386-tdep.c.
336
f407986f
AC
3372002-11-15 Andrew Cagney <cagney@redhat.com>
338
339 * frame.h (sigtramp_saved_pc): Delete declaration.
340 * blockframe.c (sigtramp_saved_pc): Delete function.
341 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
342 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
343 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
344 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
345
f18c5a73
AC
3462002-11-15 Andrew Cagney <ac131313@redhat.com>
347
348 * frame.c (frame_pc_unwind): New function.
349 (frame_saved_regs_pc_unwind): New function.
350 (frame_register_unwind): Pass unwind_cache instead of
351 register_unwind_cache.
352 (set_unwind_by_pc): Add unwind_pc parameter, set.
353 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
354 (get_prev_frame): Ditto.
355 * frame.h (frame_pc_unwind_ftype): Declare.
356 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
357 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
358 (frame_pc_unwind): Declare.
359 * dummy-frame.c (dummy_frame_pc_unwind): New function.
360 (struct dummy_frame): Add comment mentioning that values are for
361 previous frame.
362 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
363 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
364 (generic_file_frame_chain_valid): Ditto.
365 * stack.c (frame_info): Ditto.
366
d9285969 3672002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
368
369 * linespec.c (locate_first_half): New function.
370 (decode_line_1): Move code into locate_first_half.
371
d741b867
AC
3722002-11-15 Andrew Cagney <ac131313@redhat.com>
373
374 * complaints.h: Add comment explaining how to eliminate a
375 deprecated_complain call.
24382c5c 376 * complaints.h: Fix spelling errors.
d741b867 377
82d03c99
DC
3782002-11-15 David Carlton <carlton@math.stanford.edu>
379
380 * printcmd.c: Remove #include "disasm.h".
381
c97eb5d9
AC
3822002-11-14 Andrew Cagney <ac131313@redhat.com>
383
384 * frame.h: Move the most relevant interface functions to the start
385 of the file.
386
524d7c18
AC
3872002-11-14 Andrew Cagney <ac131313@redhat.com>
388
389 * regcache.h (deprecated_registers): Rename registers.
390 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
391 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
392 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
393 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
394 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
395 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
396 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
397 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
398 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
399 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
400 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
401 * v850ice.c: Update.
402
6411e720
AC
403Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
404
405 * utils.c (gdb_realpath): Add comment mentioning realpath with a
406 NULL buffer.
407
73937e03
AC
4082002-11-13 Andrew Cagney <cagney@redhat.com>
409
410 * regcache.h (deprecated_read_register_bytes): Rename
411 read_register_bytes.
412 (deprecated_write_register_bytes): Rename write_register_bytes.
413 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
414 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
415 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
416 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
417 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
418 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
419 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
420 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
421 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
422 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
423 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
424 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
425 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
426 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
427
fb0cd46e
JB
4282002-11-13 Jim Blandy <jimb@redhat.com>
429
430 * findvar.c (read_var_value): Doc fix.
431
2d28509a
AC
4322002-11-13 Andrew Cagney <cagney@redhat.com>
433
434 * regcache.c (struct regcache): Replace passthough_p with
435 readonly_p.
436 (regcache_xmalloc): Initialize readonly_p.
437 (build_regcache): Initialize readonly_p.
438 (regcache_save): New function.
439 (regcache_restore): New function.
440 (regcache_cpy): Re-implement using regcache_save and
441 regcache_restore.
442 (regcache_raw_read): Update.
443 (regcache_cooked_read): When a read-only cache, checked for cached
444 pseudo register values.
445 (regcache_raw_write): Assert that the cache is not read-only.
446 Remove code handling a non-passthrough cache.
447 * regcache.h (regcache_save): Declare.
448 (regcache_restore): Declare.
449
067df2e5
AC
4502002-11-13 Andrew Cagney <cagney@redhat.com>
451
452 * regcache.c (struct regcache_descr): Add fields
453 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
454 (init_legacy_regcache_descr): Compute the size of a cooked
455 register cache and then assign that to sizeof_raw_registers. Set
456 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
457 (init_legacy_regcache_descr): Ditto.
458
51b1fe4e
AC
4592002-11-13 Andrew Cagney <cagney@redhat.com>
460
461 * regcache.c (register_buffer): Move to near start of file, update
462 description.
463 (regcache_raw_read): Use.
464 (regcache_raw_write): Use.
465 (struct regcache): Rename raw_registers to registers and
466 raw_register_valid_p to register_valid_p.
467 (regcache_xmalloc): Update.
468 (regcache_xfree): Update.
469 (register_buffer): Update.
470 (regcache_cpy): Update.
471 (regcache_cpy_no_passthrough): Update.
472 (regcache_valid_p): Update.
473 (deprecated_grub_regcache_for_registers): Update.
474 (deprecated_grub_regcache_for_register_valid): Update.
475 (set_register_cached): Update.
476 (regcache_raw_write): Update.
477
80b4c677
PM
4782002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
479
480 * p-exp.y (name_not_typename): Use copy_name to
481 set current_type variable for fields of THIS.
482
0f3fafde
DJ
4832002-11-12 Daniel Jacobowitz <drow@mvista.com>
484
485 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
486 * monitor.c (init_base_monitor_ops): Likewise.
487 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
488 * remote-array.c (init_array_ops): Likewise.
489 * remote-e7000.c (init_e7000_ops): Likewise.
490 * remote-es.c (init_es1800_ops): Likewise.
491 (init_es1800_child_ops): Likewise.
492 * remote-rdp.c (init_remote_rdp_ops): Likewise.
493 * remote-sim.c (init_gdbsim_ops): Likewise.
494 * remote-st.c (init_st2000_ops): Likewise.
495 * sol-thread.c (init_sol_core_ops): Likewise.
496 (init_sol_thread_ops): Likewise.
497 * v850ice.c (init_850ice_ops): Likewise.
498 * win32-nat.c (init_child_ops): Likewise.
499 * wince.c (init_child_ops): Likewise.
500
82c0260e
AC
5012002-11-12 Andrew Cagney <ac131313@redhat.com>
502
503 * utils.c (gdb_realpath): Make rp a constant pointer.
504
70d35819
AC
5052002-11-12 Andrew Cagney <ac131313@redhat.com>
506
507 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
508 a constant buffer; cannonicalize_file_name(); realpath() with a
509 pathconf() defined buffer, xstrdup().
510
9835a8b0
AC
5112002-11-12 Andrew Cagney <ac131313@redhat.com>
512
513 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
514 to hang2.C; hang3.c to hang3.C.
515
3f47be5c
EZ
5162002-11-11 Elena Zannoni <ezannoni@redhat.com>
517
518 * findvar.c (read_var_value): Reenable TLS code.
519
5202002-11-11 Elena Zannoni <ezannoni@redhat.com>
521 Jim Blandy <jimb@redhat.com>
522
523 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
524 * target.c (update_current_target): Add
525 to_get_thread_local_address.
526 * target.h (to_get_thread_local_address): Export.
527 (target_get_thread_local_address): Define.
528 (target_get_thread_local_address_p): Define.
529 * thread-db.c: Include solib-svr4.h.
530 (td_thr_tls_get_addr_p): Define.
531 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
532 (thread_db_get_thread_local_address): New function.
533 (init_thread_db_ops): Initialize to_get_thread_local_address.
534 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
535 * configure: Regenerate.
536 * config.in: Regenerate.
537
636b1a6d
DC
5382002-11-11 David Carlton <carlton@math.stanford.edu>
539
540 * linespec.c (set_flags): New function.
541 (decode_line_1): Move code into set_flags.
542
44fe14ab
DC
5432002-11-11 David Carlton <carlton@math.stanford.edu>
544
545 * linespec.c (decode_line_1): Move chunks of code to separate
546 functions.
547 (initialize_defaults): New function.
548 (decode_indirect): New function.
549
e6f181f5
AC
5502002-11-11 Andrew Cagney <ac131313@redhat.com>
551
8971b011
AC
552 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
553 instead of void_code_ptr.
554 (sigtramp_saved_pc): Ditto.
555
e6f181f5
AC
556 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
557 i386_fp_regnum_p.
558
01ad7f36
DJ
5592002-11-10 Daniel Jacobowitz <drow@mvista.com>
560
561 * gdbtypes.h (struct main_type): Move artificial flag out of
562 loc. New member of ``struct field'' named static_kind. Reduce
563 overloaded meaning of bitsize.
564 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
565 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
566 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
567
568 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
569 new fields.
570 (template_to_fixed_record_type, template_to_static_fixed_type)
571 (to_record_with_fixed_variant_part): Likewise.
572 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
573 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
574 * dwarfread.c (struct_type, enum_type): Likewise.
575 * hpread.c (hpread_read_enum_type)
576 (hpread_read_function_type, hpread_read_doc_function_type)
577 (hpread_read_struct_type): Likewise.
578 * mdebugread.c (parse_symbol): Likewise.
579
bf1e52be
AC
5802002-11-10 Andrew Cagney <ac131313@redhat.com>
581
582 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
583 * stack.c (print_frame_info_base): Update.
584 (print_frame_info_base, frame_info): Update.
585 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
586 (sparc_frame_saved_pc): Update.
587 * ada-lang.c (find_printable_frame): Update.
588 * breakpoint.c (deprecated_frame_in_dummy): Update.
589
ce556f85
MK
5902002-11-09 Mark Kettenis <kettenis@gnu.org>
591
592 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
593 defined.
594 (regmap): Extend to cover all registers.
595 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
596 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
597 definitions.
598 (fetch_register, sore_register): Simplify.
599 (old_fetch_inferior_registers, old_store_inferior_registers):
600 Remove functions.
601 (cannot_fetch_register, cannot_store_register): Change
602 implementation to use regmap array to decide which registers
603 cannot be fetched/stored. This removes $orig_eax from the
604 registers that cannot be fetched/stored.
605 (fetch_inferior_registers): Call fetch_register directly instead
606 of calling old_fetch_inferior_registers.
607 (store_inferior_registers): Call store_register directly instead
608 of calling old_store_inferior_registers.
609 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
610 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
611 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
612
932bb524
KD
6132002-11-09 Klee Dienes <kdienes@apple.com>
614
615 * i387-tdep.c (i387_supply_register): When called with NULL as a
616 buffer, mark the register as not provided (to mirror the behavior
617 of supply_register).
618 (i387_supply_fxsave): Ditto.
619 (i387_supply_fsave): Ditto (inherits the behavior from
620 i387_supply_register).
621
ebe68b27
KD
6222002-11-09 Klee Dienes <kdienes@apple.com>
623
624 * blockframe.c (sigtramp_saved_pc): Use
625 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
626 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
627 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
628
15220c65
AC
6292002-11-09 Andrew Cagney <ac131313@redhat.com>
630
631 * frame.c (get_prev_frame): Test prev_p to identify a previously
632 unwound frame. Initialize prev_p.
633 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
634 comment.
635
95adb866
AC
6362002-11-09 Andrew Cagney <ac131313@redhat.com>
637
638 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
639 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
640 more comments. Zap dead code.
641
e71ecd70
MK
6422002-11-09 Mark Kettenis <kettenis@gnu.org>
643
644 * infcmd.c (print_vector_info, print_float_info): Move code that
645 checks whether the target has any registers and whether there is a
646 selected frame up, such that it is also used if a target provides
647 multi-arch definitions of these functions.
648
c525330d
AC
6492002-11-08 Andrew Cagney <ac131313@redhat.com>
650
72bdd927
AC
651 * Makefile.in (DESTDIR): Define.
652 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
653 prefix.
654
c525330d
AC
655 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
656 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
657
38c968cf
AC
6582002-11-08 Andrew Cagney <ac131313@redhat.com>
659
660 * i386-linux-tdep.c: Include "reggroups.h".
661 (i386_linux_register_reggroup_p): New function.
662 (i386_linux_init_abi): Set register_reggroup_p to
663 i386_linux_register_reggroup_p.
664 * i386-tdep.h (i386_register_reggroup_p): Declare.
665 * i386-tdep.c: Include "reggroups.h".
666 (i386_init_reggroups): New function.
667 (i386_add_reggroups): New function.
668 (i386_register_reggroup_p): New function.
669 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
670 (_initialize_i386_tdep): Call i386_init_reggroups.
671 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
672 specific reggroups.
673
19e33363
MK
6742002-11-09 Mark Kettenis <kettenis@gnu.org>
675
371a6e84
MK
676 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
677 request that's available in *BSD.
678
94ba925a
MK
679 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
680
19e33363
MK
681 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
682 FDOFF_REGNUM.
683
8779790c
AC
6842002-11-08 Andrew Cagney <ac131313@redhat.com>
685
686 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
687 * dummy-frame.c (find_dummy_frame): Rename
688 generic_find_dummy_frame, make static. Return the dummy frame
689 instead of the regcache.
690 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
691 (cached_find_dummy_frame): New function. Use find_dummy_frame.
692 (dummy_frame_register_unwind): Rename
693 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
694 * dummy-frame.h (dummy_frame_register_unwind): Rename
695 generic_call_dummy_register_unwind.
696
8674b74f
MK
6972002-11-08 Mark Kettenis <kettenis@gnu.org>
698
699 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
700 except the inclusion of "i386/tm-i386.h", to...
701 * config/i386/nm-i386v42mp.h: ...here.
702 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
703
4c1e7e9d
AC
7042002-11-08 Andrew Cagney <ac131313@redhat.com>
705
706 * Makefile.in (frame.o): Update dependencies.
707 * blockframe.c (current_frame, frame_obstack_alloc)
708 (frame_saved_regs_zalloc, get_current_frame)
709 (set_current_frame, create_new_frame)
710 (set_unwind_by_pc, get_next_frame)
711 (flush_cached_frames, reinit_frame_cache)
712 (frame_saved_regs_register_unwind)
713 (deprecated_generic_get_saved_register)
714 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
715 (_initialize_blockframe): Move frame code from here...
716 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
717 "annotate.h" and "dummy-frame.h".
718 (_initialize_frame): New function.
719
921e78cf
JB
7202002-11-08 Jim Blandy <jimb@redhat.com>
721
722 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
723 when we finish a function a context.
724 * buildsym.h (outermost_context_p): New macro.
725 (Bug analyzed by David Edelsohn.)
726
9c1412c1
AC
7272002-11-08 Andrew Cagney <ac131313@redhat.com>
728
729 * blockframe.c: Include "dummy-frame.h".
730 (struct dummy_frame, dummy_frame_stack)
731 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
732 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
733 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
734 (generic_save_call_dummy_addr, generic_pop_current_frame)
735 (generic_pop_dummy_frame, generic_fix_call_dummy)
736 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
737 dummy frame code from here...
738 * dummy-frame.c: ...to here. New file.
739 * dummy-frame.h: New file.
740 (generic_call_dummy_register_unwind): Declare.
741 (generic_find_dummy_frame): Declare.
742 * Makefile.in (SFILES): Add dummy-frame.c.
743 (dummy-frame.o): Specify dependencies.
744 (dummy_frame_h): Define.
745 (COMMON_OBS): Add dummy-frame.o.
746 (blockframe.o): Update dependencies.
747
208d8187
JB
7482002-11-08 Jim Blandy <jimb@redhat.com>
749
750 * dwarf2read.c (read_func_scope): Restore local_symbols and
751 param_symbols after we finish the function context. (Based on a
752 patch from David Edelsohn.)
753
413dad4d
DC
7542002-11-08 David Carlton <carlton@math.stanford.edu>
755
756 * linespec.c (symbol_found): New function.
757 (minsym_found): New function.
758 (decode_line_1): Separate out some code into separate functions.
759
5512c44a
JB
7602002-11-08 Joel Brobecker <brobecker@gnat.com>
761
762 * i386-tdep.c (i386_frameless_signal_p): Make non static for
763 the benefit of the interix target.
764 * i386-tdep.h (i386_frameless_signal_p): Declare.
765
1b33ef47
AC
7662002-11-08 Andrew Cagney <ac131313@redhat.com>
767
768 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
769 declaration that snuck in from change below.
770
23a34459
AC
7712002-11-06 Andrew Cagney <cagney@redhat.com>
772
773 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
774 all callers.
775 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
776 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
777 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
778 (i386_mxcsr_regnum_p): new function. Use instead of
779 MXCSR_REGNUM_P.
780 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
781 (i386_sse_regnum_p): Declare.
782 (i386_mxcsr_regnum_p): Declare.
783 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
784 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
785 (IS_FP_REGNUM): Update definition.
786 (IS_FPU_CTRL_REGNUM): Update definition..
787 (IS_SSE_REGNUM): Update definition..
788 * i386v-nat.c (register_u_addr): Update.
789 * go32-nat.c (fetch_register): Update.
790 (store_register): Update.
791
d709c020
JB
7922002-11-07 Joel Brobecker <brobecker@gnat.com>
793
794 Preparation work to convert the hppa targets to multiarch partial.
795
796 * hppa-tdep.c: Add new functions replacing macro bodies from
797 config/pa/tm-hppa.h. These function will be used to initialize
798 the gdbarch structure. Import some comments from tm-hppa.h,
799 and place them where appropriate, to avoid loosing them when
800 we cleanup this file.
801 (hppa_reg_struct_has_addr): New function.
802 (hppa_inner_than): New function.
803 (hppa_stack_align): New function.
804 (hppa_pc_requires_run_before_use): New function.
805 (hppa_instruction_nullified): New function.
806 (hppa_register_byte): New function.
807 (hppa_register_virtual_type): New function.
808 (hppa_store_struct_return): New function.
809 (hppa_cannot_store_register): New function.
810 (hppa_frame_args_address): New function.
811 (hppa_frame_locals_address): New function.
812 (hppa_smash_text_address): New function.
813 (hppa_coerce_float_to_double): New function. Requires the inclusion
814 of "language.h".
815
816 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
817
818 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
819 gdbarch-eligible macro to a call to the new associated function
820 created in hppa-tdep.c.
821 (INNER_THAN): Likewise.
822 (STACK_ALIGN): Likewise.
823 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
824 (INSTRUCTION_NULLIFIED): Likewise.
825 (REGISTER_BYTE): Likewise.
826 (REGISTER_VIRTUAL_TYPE): Likewise.
827 (STORE_STRUCT_RETURN): Likewise.
828 (CANNOT_STORE_REGISTER): Likewise.
829 (FRAME_ARGS_ADDRESS): Likewise.
830 (FRAME_LOCALS_ADDRESS): Likewise.
831 (SMASH_TEXT_ADDRESS): Likewise.
832 (COERCE_FLOAT_TO_DOUBLE): Likewise.
833 (ABOUT_TO_RETURN): Delete, as no longer used.
834
83c31e7d
FN
8352002-11-07 Fernando Nasser <fnasser@redhat.com>
836
837 * printcmd.c (disassemble_command): Remove obsolete function.
838 (_initialize_printcmd): Do not create disassemble command here.
839 * cli/cli-cmds.c (disassemble_command): New function. Implements
840 disassemble command.
841 (init_cli_cmds): Create disassemble command here instead.
842
0ec30a36
AC
8432002-11-07 Andrew Cagney <ac131313@redhat.com>
844
845 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
846
e600bd34
AC
8472002-11-07 Andrew Cagney <ac131313@redhat.com>
848
849 * regcache.h (regcache_cooked_read_using_offset_hack)
850 (regcache_cooked_write_using_offset_hack): Delete declarations.
851 (register_changed): Delete declaration.
852 * regcache.c (regcache_cooked_read_using_offset_hack)
853 (regcache_cooked_write_using_offset_hack): Delete functions.
854 (cooked_xfer_using_offset_hack): Delete function.
855 (register_changed): Delete function.
856
568f8739
JB
8572002-11-07 Jim Blandy <jimb@redhat.com>
858
859 * macroscope.c: #include "complaints.h".
860 (sal_macro_scope): Cope with filenames that appear in the symtabs,
861 but not in the macro table.
862 * Makefile.in (macroscope.o): Record dependency.
863
b0718b7b
JB
8642002-11-07 Joel Brobecker <brobecker@gnat.com>
865
866 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
867
2b9e5f3f
AC
8682002-11-07 Andrew Cagney <ac131313@redhat.com>
869
870 * regcache.c (deprecated_registers_fetched): Update.
871 * regcache.h (deprecated_registers_fetched): Rename
872 registers_fetched.
873 * remote-vxsparc.c (vx_read_register): Update.
874 * remote-vxmips.c (vx_read_register): Update.
875 * remote-vx68.c (vx_read_register): Update.
876 * irix5-nat.c (fetch_core_registers): Update.
877 * mipsm3-nat.c (fetch_inferior_registers): Update.
878 * sun3-nat.c (fetch_inferior_registers): Update.
879 * symm-nat.c (fetch_inferior_registers): Update.
880 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
881 (fetch_core_registers): Update.
882 (fetch_kcore_registers): Update.
883 * mips-nat.c (fetch_inferior_registers): Update.
884 * corelow.c (get_core_registers): Update.
885 * a68v-nat.c (fetch_inferior_registers): Update.
886
e6e68f1f
JB
8872002-11-06 Joel Brobecker <brobecker@gnat.com>
888
889 Put in place the framework necessary for multiarching the hppa targets.
890 * hppa-tdep.c (hppa_gdbarch_init): New function.
891 (hppa_dump_tdep): New function.
892 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
893 tdep structure dumper.
894 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
895 until the multi-arching conversion has partially been completed.
896
492254e9
AC
8972002-11-06 Andrew Cagney <ac131313@redhat.com>
898
899 * valops.c (value_assign): Merge lval_register case into
900 lval_reg_frame_relative. Use frame_register and
901 regcache_cooked_write instead of get_saved_register and
902 write_register_bytes. After flushing the register cache, try to
903 re-select the selected frame.
904
8262ee23
AC
9052002-11-06 Andrew Cagney <ac131313@redhat.com>
906
907 * regcache.h (deprecated_register_valid): Rename register_valid.
908 * regcache.c: Update.
909 * ia64-aix-nat.c: Update.
910 * i386gnu-nat.c: Update.
911 * alpha-nat.c: Update.
912 * sparc-nat.c: Update.
913 * lynx-nat.c: Update.
914 * remote-mips.c: Update.
915
4facf7e8
JB
9162002-11-06 Joel Brobecker <brobecker@gnat.com>
917
918 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
919 to end of file, to be more consistent with the pratice followed
920 by other targets.
921
f9418c0f
AC
9222002-11-06 Andrew Cagney <ac131313@redhat.com>
923
924 * infcmd.c: Include "reggroups.h" and <ctype.h>.
925 (print_float_info): Print registers in float_reggroup.
926 (print_vector_info): Print registers in vector_reggroup.
927 (default_print_registers_info): When all, print registers in
928 all_reggroup. Otherwize, print registers in general_reggroup.
929 (registers_info): Rewrite. Add support for register groups.
930 Eliminate a goto.
931
3fe235a7
EZ
9322002-11-06 Elena Zannoni <ezannoni@redhat.com>
933
934 * symtab.c (methods_info): Delete. It has been ifdeffed out for
935 ages.
936 (symtab_symbol_info): Remove eons old ifdeffed out code.
937 (_initialize_symtab): Remove prehistoric disabled 'info methods'
938 command.
939
ef944135
TR
9402002-11-06 Theodore A. Roth <troth@openavr.org>
941
942 * c-exp.y: Add missing semi-colons.
943 * f-exp.y: Add missing semi-colons.
944 * m2-exp.y: Add missing semi-colons.
945 * p-exp.y: Add missing semi-colons.
946 Add empty action to start rule to avoid a type clash error when
947 building with bison >= 1.50.
948
f8302a57
JB
9492002-11-06 Jim Blandy <jimb@redhat.com>
950
951 * macrotab.h (struct macro_source_file): Doc fix.
952
6e382aa3
JJ
9532002-11-05 Jeff Johnston <jjohnstn@redhat.com>
954
955 * varobj.c (child_exists, cplus_number_of_children): Change
956 STREQ macro references to strcmp.
957 (cplus_name_of_child): Change code to handle the fact that
958 fields are not necessarily contiguous with regards to their
959 access control. This is a fix for PR gdb/792.
960
a216a322
AC
9612002-11-05 Andrew Cagney <ac131313@redhat.com>
962
963 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
964 * gdbarch.h, gdbarch.c: Regnerate.
965 * frame.h (frame_register): Declare.
966 * frame.c (frame_register): New function.
967 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
968 GET_SAVED_REGISTER, otherwize call
969 generic_unwind_get_saved_register.
970 (frame_register_read): Use frame_register instead of
971 get_saved_register.
972
7d5b6fdd
EZ
9732002-11-05 Elena Zannoni <ezannoni@redhat.com>
974
975 From Jim Ingham <jingham@apple.com>:
976 * event-top.c (gdb_disable_readline): New function.
977 (_initialize_event_loop): Move comment.
978
b7c64260
EZ
9792002-11-05 Elena Zannoni <ezannoni@redhat.com>
980
981 * event-loop.c (start_event_loop): Add comment.
982 Update copyright.
983
c2e1b8f2
AC
9842002-11-05 Andrew Cagney <ac131313@redhat.com>
985
986 * infcmd.c (default_print_registers_info): Do not call
987 PRINT_REGISTER_HOOK.
988
87647bb0
AC
9892002-11-05 Andrew Cagney <ac131313@redhat.com>
990
991 * sparc-tdep.c (sparc_print_register_hook): Make static.
992 (sparc_print_registers_info): New function.
993 (sparc_do_registers_info): New function.
994 (sparclet_print_registers_info): New function.
995 (sparclet_do_registers_info): New function.
996 (do_sparc_print_registers_info): New function.
997 (sparc_print_registers): New static function, clone of infcmd.c's
998 default_print_registers_info.
999 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1000 (sparclet_do_registers_info): Declare.
1001 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1002 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1003 Re-define.
1004 (sparc_do_registers_info): Declare.
1005 (PRINT_REGISTER_HOOK): Delete macro.
1006 (sparc_print_register_hook): Delete declaration.
1007
8155455b
DC
10082002-11-05 David Carlton <carlton@math.stanford.edu>
1009
1010 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1011 functions.
1012 (lookup_symbol_aux_local): New function.
1013 (lookup_symbol_aux_symtabs): New function.
1014 (lookup_symbol_aux_psymtabs): New function.
1015
29924310
DC
10162002-11-05 David Carlton <carlton@math.stanford.edu>
1017
1018 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1019 previous values of 'objfile' and 'block'.
1020
cc303028
PM
10212002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1022
1023 * values.c (value_change_enclosing_type): Set
1024 enclosing_type field correctly also for the case where
1025 more memory needs to be allocated.
1026
1d70089a
MK
10272002-11-03 Mark Kettenis <kettenis@gnu.org>
1028
f16a25ae
MK
1029 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1030 of puts_filtered.
1031
1d70089a
MK
1032 * i387-tdep.c (i387_print_float_info): Replace calls to
1033 register_read and deprecated_read_register_gen with calls to
1034 frame_register_read, and make the necessary adjustments to the
1035 surrounding code.
1036
7e20f3fb
AC
10372002-11-02 Andrew Cagney <ac131313@redhat.com>
1038
1039 * gdbarch.sh (register_reggroup_p): Allow default value.
1040 * gdbarch.h, gdbarch.c: Regenerate.
1041
192dbe33
AC
10422002-11-02 Andrew Cagney <ac131313@redhat.com>
1043
1044 * regcache.h: Add coment indicating replacements for deprecated
1045 functions.
1046
b59ff9d5
AC
10472002-11-02 Andrew Cagney <cagney@redhat.com>
1048
1049 * reggroups.h, reggroups.c: New files.
1050 * regcache.c: Include "reggroups.h".
1051 (enum regcache_dump_what): Add `regcache_dump_groups'.
1052 (regcache_dump): Contract size of the "Type" column. When
1053 specified, dump the register's groups.
1054 (maintenance_print_register_groups): New function.
1055 (_initialize_regcache): Add command `maint print register-groups'.
1056 * Makefile.in (COMMON_OBS): Add reggroups.o
1057 (SFILES): Add reggroups.c.
1058 (reggroups_h): Define.
1059 (regcache.o, gdbarch.o): Update dependencies.
1060 (reggroups.o): Specify dependencies.
1061 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1062 Add opaque declaration for `struct reggroup' in generated .h file.
1063 Include "reggroups.h" in generated .c file.
1064 gdbarch.h, gdbarch.c: Re-generate.
1065
4caf0990
AC
10662002-11-02 Andrew Cagney <cagney@redhat.com>
1067
1068 * regcache.h (deprecated_read_register_gen): Rename
1069 read_register_gen.
1070 (deprecated_write_register_gen): Rename write_register_gen.
1071 * i387-tdep.c: Update.
1072 * x86-64-linux-nat.c: Update
1073 * wince.c: Update.
1074 * thread-db.c: Update.
1075 * win32-nat.c: Update.
1076 * mips-tdep.c: Update.
1077 * d10v-tdep.c: Update.
1078 * cris-tdep.c: Update.
1079 * remote-sim.c: Update.
1080 * remote-rdi.c: Update.
1081 * remote-rdp.c: Update.
1082 * frame.c: Update.
1083 * target.c: Update.
1084 * blockframe.c: Update.
1085 * x86-64-tdep.c: Update.
1086 * xstormy16-tdep.c: Update.
1087 * sh-tdep.c: Update.
1088 * s390-tdep.c: Update.
1089 * rs6000-tdep.c: Update.
1090 * sparc-tdep.c: Update.
1091 * i386-tdep.c: Update.
1092 * dwarf2cfi.c: Update.
1093 * regcache.c: Update.
1094
7a7adcdf
JB
10952002-11-01 Joel Brobecker <brobecker@gnat.com>
1096
1097 New interix-specific files:
1098 * config/i386/nm-interix.h: New file.
1099 * config/i386/interix.mh: New file.
1100 * config/i386/interix.mt: New file.
1101 * i386-interix-nat.c: New file.
1102 * i386-interix-tdep.c: New file.
1103
bdcdd535
AC
11042002-11-01 Andrew Cagney <cagney@redhat.com>
1105
1106 * frame.h (deprecated_generic_get_saved_register): Rename
1107 generic_get_saved_register.
1108 * blockframe.c (deprecated_generic_get_saved_register): Update.
1109 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1110 (xstormy16_frame_saved_register): Update.
1111 * sh-tdep.c (sh_gdbarch_init): Update.
1112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1113 * ia64-tdep.c (ia64_get_saved_register): Update.
1114 * cris-tdep.c (cris_gdbarch_init): Update.
1115 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1116 * arm-tdep.c (arm_gdbarch_init): Update.
1117
2a4b7c45
DJ
11182002-10-31 Daniel Jacobowitz <drow@mvista.com>
1119
1120 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1121
ef17e74b
DJ
11222002-10-31 Daniel Jacobowitz <drow@mvista.com>
1123
1124 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1125 trampolines in sigaction.
1126
4904ba5b
AC
11272002-10-31 Andrew Cagney <cagney@redhat.com>
1128
1129 * h8300-tdep.c: Include "gdb_assert.h".
1130 (h8300_print_register): Add gdbarch, file and frame parameters.
1131 Use frame_read_unsigned_register to read the register's value.
1132 Use fprintf_filtered to display output.
1133 (h8300_print_registers_info): Replace h8300_do_registers_info.
1134 (h8300_gdbarch_init): Set print_registers_info.
1135
f908a0eb
AC
11362002-10-31 Andrew Cagney <cagney@redhat.com>
1137
1138 * frame.c (frame_read_unsigned_register): New function.
1139 (frame_read_signed_register): New function.
1140 * frame.h (frame_read_unsigned_register): Declare.
1141 (frame_read_signed_register): Declare.
1142
c5646e11
AC
11432002-10-31 Andrew Cagney <cagney@redhat.com>
1144
1145 * h8500-tdep.c (h8500_print_registers_info): New static function,
1146 clone of infcmd.c's default_print_registers_info.
1147 (h8500_do_registers_info): New funtion.
1148 (h8500_print_register_hook): Rename print_register_hook, make
1149 static.
1150
1151 * config/h8500/tm-h8500.h: Update copyright.
1152 (DEPRECATED_DO_REGISTERS_INFO): Define.
1153 (h8500_do_registers_info: Declare.
1154 (PRINT_REGISTER_HOOK): Delete macro.
1155 (print_register_hook): Delete function.
1156
0bdd672b
AC
11572002-10-31 Andrew Cagney <cagney@redhat.com>
1158
1159 * z8k-tdep.c (z8k_print_register_hook): Make static.
1160 (z8k_print_registers_info): New static function, clone of
1161 infcmd.c's default_print_registers_info.
1162 (z8k_do_registers_info): New function. Wrap
1163 z8k_print_registers_info.
1164 * config/z8k/tm-z8k.h: Update copyright.
1165 (PRINT_REGISTER_HOOK): Delete macro.
1166 (z8k_print_register_hook): Delete declaration.
1167 (DEPRECATED_DO_REGISTERS_INFO): Define.
1168 (z8k_do_registers_info): Declare.
1169
bf9c25dc
JB
11702002-10-30 Joel Brobecker <brobecker@gnat.com>
1171
1172 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1173 as this is already provided by value.h, and was actually causing
1174 a compilation error because of a conflict in parameter type
1175 declaration due to a missing const keyword.
1176 (low_text_segment_addres): Fix a compilation warning.
1177
2c665b51
DJ
11782002-10-29 Daniel Jacobowitz <drow@mvista.com>
1179
1180 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1181 registers without a name.
1182 (mips_linux_cannot_store_register): Don't store registers without
1183 a name.
1184
e70ea697
DC
11852002-10-28 David Carlton <carlton@math.stanford.edu>
1186
1187 * symtab.c (find_addr_symbol): Delete. (It was already commented
1188 out.)
1189 * symtab.h: Delete prototype for find_addr_symbol.
1190
903ad3a6
AC
11912002-10-26 Andrew Cagney <cagney@redhat.com>
1192
1193 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1194 DO_REGISTERS_INFO.
1195 gdbarch.h, gdbarch.c: Re-generate.
1196 * infcmd.c (default_print_registers_info): Update reference.
1197 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1198 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1199 * sh-tdep.c (sh_gdbarch_init): Ditto.
1200 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1201 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1202
ab91194c
MK
12032002-10-26 Mark Kettenis <kettenis@gnu.org>
1204
e3033f15
MK
1205 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1206 cfi_init_extra_frame_info.
1207 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1208 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1209
b83b026c
MK
1210 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1211 target where necessary. Add more comments and remove the ones
1212 that don't provide any useful information.
1213
267bf4bb
MK
1214 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1215 deprecated_read_register_dummy with
1216 frame_unwind_unsigned_register.
1217
751f1375
MK
1218 * i386-tdep.c (i386_extract_struct_value_address): Use
1219 regcache_raw_read_unsigned instead of
1220 regcache_cooked_read_unsigned since we know that the register
1221 we're reading isn't a pseudo register. Rename variable 'val' into
1222 the more descriptive 'addr'.
1223
26abbdc4
MK
1224 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1225 (x86_64_push_return_address): Add comment.
1226 (x86_64_pop_frame): Make static.
1227 (examine_argument): Clarify comment.
1228 (x86_64_skip_prologue): Make prolog_expact variable static.
1229
9f1549cc
MK
1230 * dwarf2cfi.c: Fix some formatting problems.
1231 (context_cpy, read_encoded_pointer): Clarify comments.
1232
ab91194c
MK
1233 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1234 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1235 i386 target back into x86_64_gdbarch_init. Add some comments and
1236 remove meaningless ones.
1237
72367fb4
AC
12382002-10-25 Andrew Cagney <cagney@redhat.com>
1239
1240 * complaints.h (struct deprecated_complaint): Rename `struct
1241 complaint'.
1242 * complaints.c (complain): Update.
1243 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1244 incorrect comment indicating that "symfile.h" was being included
1245 for the `struct complaint' definition.
1246 * remote-vx.c: Update.
1247 * objc-lang.c: Update.
1248 * xcoffread.c: Update.
1249 * hpread.c: Update.
1250 * mdebugread.c: Update.
1251 * stabsread.c: Update.
1252 * dwarf2read.c: Update.
1253 * dwarfread.c: Update.
1254 * elfread.c: Update.
1255 * coffread.c: Update.
1256 * stabsread.h: Update.
1257 * dbxread.c: Update.
1258 * buildsym.c: Update.
1259 * gdbtypes.c: Update.
1260 * macrotab.c: Update.
1261
1f2baacc
MK
12622002-10-25 Mark Kettenis <kettenis@gnu.org>
1263
0c1a73d6
MK
1264 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1265 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1266 (x86_64_init_abi): ...new function.
1267
6aee4d54 1268 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1269 * i386v-nat.c: Include "i386-tdep.h".
1270
8f9cbe01
AC
12712002-10-25 Andrew Cagney <cagney@redhat.com>
1272
5f11f355
AC
1273 * gdbtypes.c (address_space_name_to_int): Update.
1274 (address_space_int_to_name): Update.
1275 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1276 multi-arch predicate.
1277 (address_class_name_to_type_flags): Ditto.
1278 * gdbarch.h, gdbarch.c: Re-generate.
1279
8f9cbe01
AC
1280 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1281
e8d96a5d
MH
12822002-10-24 Martin M. Hunt <hunt@redhat.com>
1283
1284 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1285
fe39c653
EZ
12862002-10-24 Elena Zannoni <ezannoni@redhat.com>
1287
1288 * symtab.h (INIT_SAL): Delete macro.
1289 (init_sal): Export.
1290 * symtab.c (init_sal): New function.
1291
1292 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1293 to init_sal function call.
1294 (find_sal_from_funcs_and_line): Ditto.
1295 (all_sals_for_line): Ditto.
1296 * breakpoint.c (create_internal_breakpoint): Ditto.
1297 (create_fork_vfork_event_catchpoint): Ditto.
1298 (create_exec_event_catchpoint): Ditto.
1299 (parse_breakpoint_sals): Ditto.
1300 (watch_command_1): Ditto.
1301 (handle_gnu_4_16_catch_command): Ditto.
1302 (clear_command): Ditto.
1303 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1304 * infcmd.c (run_stack_dummy): Ditto.
1305 * infrun.c (process_event_stop_test): Ditto.
1306 (check_sigtramp2): Ditto.
1307 (step_over_function): Ditto.
1308 * linespec.c (decode_line_2): Ditto.
1309 (decode_line_1): Ditto.
1310 * source.c (line_info): Ditto.
1311 * symtab.c (find_pc_sect_line): Ditto.
1312
baed091b
ML
13132002-10-24 Michal Ludvig <mludvig@suse.cz>
1314
1315 * dwarf2cfi.c (struct context)
1316 (struct context_reg): Moved to dwarf2cfi.h
1317 (context_alloc, frame_state_alloc, context_cpy):
1318 Made extern instead of static, removed prototypes.
1319 * dwarf2cfi.h (struct context)
1320 (struct context_reg): New, moved from dwarf2cfi.c
1321 (context_alloc, frame_state_alloc, context_cpy):
1322 New prototypes.
1323 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1324 Changed from static to extern.
1325 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1326 (LINUX_SIGCONTEXT_FP_OFFSET)
1327 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1328 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1329 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1330 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1331 set_gdbarch_*() calls now use x86-64 specific functions
1332 instead of DWARF2 CFI ones.
1333 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1334 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1335 (x86_64_init_extra_frame_info): New prototypes.
1336
c38da1af
DC
13372002-10-23 David Carlton <carlton@math.stanford.edu>
1338
1339 * linespec.c: #include "parser-defs.h".
1340 Delete prototype for find_template_name_end.
1341 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1342
fb9b6b35
JJ
13432002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1344
1345 * NEWS: add recent mi fixes.
1346 * varobj.c (struct varobj): Add new "updated" flag.
1347 (new_variable): Default "updated" flag to 0.
1348 (varobj_set_value): Set "updated" flag to 1 if value
1349 changes.
1350 (varobj_update): Check varobj "updated" flag before
1351 comparing old and refreshed values. Fix for
1352 PR gdb/702.
1353
8da065d5
DC
13542002-10-23 David Carlton <carlton@math.stanford.edu>
1355
1356 * parse.c (parse_exp_1): Use BLOCK_START.
1357 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1358 SYMBOL_BLOCK_VALUE.
1359 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1360
87f2f08c
DC
13612002-10-23 David Carlton <carlton@math.stanford.edu>
1362
1363 * symtab.c: Delete cplusplus_hint.
1364 Delete prototype for find_template_name_end.
1365
88cda038
EZ
13662002-10-23 Elena Zannoni <ezannoni@redhat.com>
1367
1368 * symtab.h: Update comment.
1369
2625d86c
MS
13702002-10-23 Michael Snyder <msnyder@redhat.com>
1371
1372 * printcmd.c (address_info): Restore quotes in output.
1373 * valops.c (value_of_local): Restore quotes in error message.
1374
9cc0d196
EZ
13752002-10-23 Elena Zannoni <ezannoni@redhat.com>
1376
1377 * symtab.c (symbol_demangled_name): New function.
1378 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1379 turning most of it into a function.
1380 (symbol_demangled_name): Export.
1381
19de93d0
MS
13822002-10-23 Michael Snyder <msnyder@redhat.com>
1383
1384 * valops.c (value_of_local): Restore quotes in error message.
1385
89aad1f9
EZ
13862002-10-23 Elena Zannoni <ezannoni@redhat.com>
1387
1388 * symtab.c (symbol_init_language_specific): New function.
1389 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1390 turning most of it into a function.
1391 (symbol_init_language_specific): Export.
1392
d9fa45fe
DC
13932002-10-23 David Carlton <carlton@math.stanford.edu>
1394
1395 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1396 (dwarf_attr_name): Ditto.
1397 (dwarf_type_encoding_name): Ditto.
1398 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1399 (process_die): Handle DW_TAG_namespace,
1400 DW_TAG_imported_declaration, DW_TAG_imported_module.
1401 (read_namespace): New function.
1402
1045b512
JB
14032002-10-22 Joel Brobecker <brobecker@gnat.com>
1404
1405 * configure.in: Define NEW_PROC_API on Interix too.
1406 * configure: Regenerate.
1407
14082002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1409
1410 * configure: Regenerate using the proper version of autoconf.
1411
3987b9d4
EZ
14122002-10-21 Elena Zannoni <ezannoni@redhat.com>
1413
1414 * findvar.c (read_var_value): Temporarily disable TLS code, until
1415 complete TLS support is added.
1416
9d774e44
EZ
14172002-10-21 Jim Blandy <jimb@redhat.com>
1418 Elena Zannoni <ezannoni@redhat.com>
1419
1420 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1421 for thread local storage locations.
1422 (struct symbol): Add objfile field.
1423 (SYMBOL_OBJFILE): Define.
1424 * dwarf2read.c (is_thread_local): New static variable.
1425 (new_symbol): If variable is in thread local fill in address class
1426 and objfile appropriately.
1427 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1428 stack operation.
1429 * printcmd.c (address_info): Print the information for thread
1430 local storage variable.
1431 * findvar.c (read_var_value): In case of thread local variable,
1432 defer to the target vector code to compute address.
1433
bc4a16ae
EZ
14342002-10-21 Elena Zannoni <ezannoni@redhat.com>
1435
1436 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1437 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1438
407caf07
EZ
14392002-10-21 Elena Zannoni <ezannoni@redhat.com>
1440
1441 * symtab.h (address_class): Rename
1442 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1443 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1444 * printcmd.c (address_info): Ditto.
1445 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1446
005328e3
MK
14472002-10-20 Mark Kettenis <kettenis@gnu.org>
1448
afdb036a
MK
1449 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1450 DBREG_DRX macro to acces debug registers.
1451
ca02e098
MK
1452 * Makefile.in (i386obsd-tdep.o): New target.
1453
03cc47f7
MK
1454 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1455 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1456
005328e3
MK
1457 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1458 * config/i386/obsd.mt: New file.
1459 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1460 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1461 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1462 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1463 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1464 * i386obsd-tdep.c: New file.
1465
9c96f9f2
AF
14662002-10-19 Adam Fedor <fedor@gnu.org>
1467
1468 * objc-exp.y (name_not_typename): Fix invalid comment.
1469
ce1ed485
MK
14702002-10-20 Mark Kettenis <kettenis@gnu.org>
1471
1472 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1473 to allocate partial syms and macro byte caches.
1474
1efc7aaa
DC
14752002-10-18 David Carlton <carlton@math.stanford.edu>
1476
1477 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1478
7e1d63ec
AF
14792002-10-18 Adam Fedor <fedor@gnu.org>
1480
1481 * stabsread.c (find_name_end): New function.
1482 (define_symbol): Use it.
1483
6e8d29a9
DJ
14842002-10-18 Daniel Jacobowitz <drow@mvista.com>
1485
1486 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1487 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1488 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1489 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1490
1efc7aaa 14912002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1492
1493 * symfile.h: Add opaque declaration for struct obstack.
1494 Declare obsavestring to take a const char *.
1495 * symfile.c (obsavestring): Make first argument a const char *.
1496
1aeae86e
AF
14972002-10-16 Adam Fedor <fedor@gnu.org>
1498
1499 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1500 names when matching breakpoints in current file.
1501
8b2dbe47
KB
15022002-10-16 Kevin Buettner <kevinb@redhat.com>
1503
1504 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1505 (read_tag_pointer_type): Add address class support.
1506 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1507 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1508 New methods.
1509 * gdbarch.h, gdbarch.c: Regenerate.
1510 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1511 (make_type_with_address_space, recursive_type_dump): Add address
1512 class support.
1513 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1514 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1515 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1516
74451869
KD
15172002-10-16 Klee Dienes <kdienes@apple.com>
1518
1519 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1520 to get the last character of a char[] buffer, not
1521 name[sizeof(vptr_name)-1].
1522
ff4cb3e8
AF
15232002-10-14 Adam Fedor <fedor@gnu.org>
1524
1525 * symtab.h: New objc_specific struct.
1526 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1527 (SYMBOL_DEMANGLED_NAME): Likewise.
1528
da2cf7e0
AF
15292002-10-14 Adam Fedor <fedor@gnu.org>
1530
1531 * symfile.c (init_filename_language_table): Add ObjC file extension.
1532
4a351cef
AF
15332002-10-14 Adam Fedor <fedor@gnu.org>
1534
1535 * utils.c (puts_filtered_tabular): New function.
1536 (fprintf_symbol_filtered): Get ObjC demangled name.
1537 * defs.h (puts_filtered_tabular): Declared.
1538
9750e763
KB
15392002-10-14 Kevin Buettner <kevinb@redhat.com>
1540
1541 * c-lang.h (c_type_print_varspec_prefix): Delete.
1542 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1543 ``need_post_space'' parameter. Adjust all callers.
1544
eee771c1
DJ
15452002-10-14 Daniel Jacobowitz <drow@mvista.com>
1546
1547 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1548 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1549 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1550 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1551
46c82446
AF
15522002-10-13 Adam Fedor <fedor@gnu.org>
1553
1554 * source.c (print_source_lines): Update comments.
1555
d069f99d
AF
15562002-10-13 Adam Fedor <fedor@gnu.org>
1557
1558 * valops.c (value_of_local): New function.
1559 (value_of_this): Use it.
1560 * value.h (value_of_local): Declared.
1561
53c551b7
AF
15622002-10-13 Adam Fedor <fedor@gnu.org>
1563
1564 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1565 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1566
eb392fbf
AF
15672002-10-12 Adam Fedor <fedor@gnu.org>
1568
1569 * language.c (binop_result_type): Add language_objc to case.
1570 (integral_type): Likewise.
1571 (character_type): Likewise.
1572 (string_type): Likewise.
1573 (boolean_type): Likewise.
1574 (structured_type): Likewise.
1575 (binop_type_check): Likewise.
1576
e2b23ee9
AF
15772002-10-11 Adam Fedor <fedor@gnu.org>
1578
1579 * printcmd.c (address_info): Print 'self' for ObjC.
1580
b01ab485
AF
15812002-10-11 Adam Fedor <fedor@gnu.org>
1582
1583 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1584 OP_SELF.
1585
806e6073
AF
15862002-10-11 Adam Fedor <fedor@gnu.org>
1587
1588 * language.h (CAST_IS_CONVERSION): Add language_objc.
1589
50f85cdf
AF
15902002-10-11 Adam Fedor <fedor@gnu.org>
1591
1592 * defs.h (enum language): Add language_objc.
1593
0d540cdf
KD
15942002-10-11 Klee Dienes <kdienes@apple.com>
1595
69266111 1596 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1597 * gdbcore.h (read_memory_typed_address): Add prototype.
1598 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1599 to read a value destined for a CORE_ADDR, not read_memory_integer.
1600 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1601 (f77_get_dynamic_lowerbound): Ditto.
1602
d5dc7960
MH
16032002-10-11 Martin M. Hunt <hunt@redhat.com>
1604
1605 * utils.c (string_to_core_addr): After turning string into
1606 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1607 which will do necessary sign-extension, etc.
1608
8343f86c
DJ
16092002-10-11 Daniel Jacobowitz <drow@mvista.com>
1610
1611 * c-exp.y (THIS): Delete token and grammar rule.
1612 (yylex): Don't return THIS.
1613 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1614 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1615 * demangle.c (cplus_markers): Update comment. Put '$'
1616 first. Remove CPLUS_MARKER.
1617 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1618 * jv-exp.y (THIS): Delete token and grammar rule.
1619 (yylex): Don't return THIS.
1620 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1621 * objc-exp.y (THIS): Delete token and grammar rule.
1622 (yylex): Don't return THIS.
1623 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1624 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1625 (read_member_functions): Likewise for opname.
1626 (read_tilde_fields): Use is_cplus_marker.
1627
1628 * defs.h (CPLUS_MARKER): Don't define.
1629 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1630 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1631 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1632 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1633 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1634
1635 * config/i386/tm-i386v4.h: Delete file.
1636 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1637 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1638 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1639 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1640 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1641 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1642 * config/i386/i386v4.mt (TM_FILE): Likewise.
1643 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1644
967c0d83
MM
16452002-10-10 Marko Mlinar <markom@opencores.org>
1646
1647 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1648 accidentially not commited 2002-10-09
1649 * gdbarch.h, gdbarch.c: Re-generate.
1650
f74fa174
MM
16512002-10-09 Marko Mlinar <markom@opencores.org>
1652
1653 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1654 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1655 * gdbarch.h, gdbarch.c: Re-generate.
1656
57349743
JB
16572002-10-08 Petr Sorfa <petrs@caldera.com>
1658
1659 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1660
1661 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1662 so we can work on more than one compilation unit at a time. This
1663 helps prepare GDB to handle inter-CU die references.
1664 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1665 the code to be defined before struct comp_unit_head.
1666 (comp_unit_head): Added new members - offset, cu_head,
1667 begin_die, next and dwarf2_abbrevs.
1668 (dwarf2_abbrevs): Removed single static var; now member of
1669 struct comp_unit_head.
1670 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1671 members.
1672 (psymtab_to_symtab_1): Changed to work with the new
1673 struct comp_unit_head.
1674 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1675 constructs the dwarf2_abbrevs[] inside the cu_header.
1676 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1677 dwarf2_abbrev table to clean up.
1678 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1679 handling of dwarf2_abbrevs inside the cu_header.
1680 (read_partial_die): Now supports the call to the new
1681 dwarf2_lookup_abbrev.
1682 (read_full_die): Now supports the call to the new
1683 dwarf2_lookup_abbrev.
1684
4092aadb
CF
16852002-10-06 Christopher Faylor <cgf@redhat.com>
1686
1687 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1688 insure that shell variables, such as "transformed_name" are propagated
1689 to later shell statements in rule.
1690
af0b2512
MK
16912002-10-06 Mark Kettenis <kettenis@gnu.org>
1692
1693 * config/i386/nm-i386sco.h: Add protection against
1694 multiple-inclusion. Include "i386/nm-i386v.h".
1695 (REGISTER_U_ADDR): Remove define.
1696 (i386_register_u_addr): Remove prototype.
1697
d6020d45
MS
16982002-10-04 Michael Snyder <msnyder@redhat.com>
1699
1700 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1701 before treating it as a single-step event.
1702
7248f48e
AF
17032002-10-03 Adam Fedor <fedor@gnu.org>
1704
1705 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1706 (objc_demangle): Remove assignment in if statements, Replace
1707 free with xfree.
1708 (add_msglist): Likewise.
1709 (end_msglist): Likewise.
1710 (complare_selectors): Likewise.
1711 (selectors_info): Likewise.
1712 (compare_classes): Likewise.
1713 (classes_info): Likewise.
1714 (print_object_command): Likewise.
1715 (find_objc_msgcall_submethod): Replace PTR with void *.
1716 * objc-lang.h: Remove check for __STDC__.
1717
52c6a6ac
JJ
17182002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1719
1720 * ui-out.h (ui_out_field_fmt_int): New prototype.
1721 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1722 of field width and alignment.
1723 * stack.c (print_frame_info_base): When printing frame level, use
1724 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1725 PR gdb/192
1726
7e3cec17
JJ
17272002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1728
1729 * MAINTAINERS: Add self to Write After Approval list.
1730
a58dd373
EZ
17312002-10-02 Elena Zannoni <ezannoni@redhat.com>
1732
1733 * infcmd.c (interrupt_target_command_wrapper): Delete.
1734 (interrupt_target_command): Make non static.
1735 (nofp_registers_info): Make static.
1736 * stack.c (return_command_wrapper): Delete.
1737 (return_command): Make non static.
1738
cee6ddeb
EZ
17392002-10-02 Elena Zannoni <ezannoni@redhat.com>
1740
1741 * event-top.c (gdb_setup_readline): New function. Code moved from
1742 _initialize_event_loop().
1743 (_initialize_event_loop): Call gdb_setup_readline().
1744
c4ed33b9
AC
17452002-10-02 Andrew Cagney <ac131313@redhat.com>
1746
1747 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1748 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1749 * gdbarch.h, gdbarch.c: Re-generate.
1750
cef4f5dd
DJ
17512002-10-02 Daniel Jacobowitz <drow@mvista.com>
1752
1753 Fix PR gdb/778
1754 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1755 before recursing.
1756 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1757 of fill_in_vptr_fieldno.
1758
36dc181b 17592002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1760
36dc181b
EZ
1761 * inferior.h (registers_info, stepi_command, nexti_command,
1762 continue_command, interrupt_target_command): Export from infcmd.c.
1763 * frame.h (args_info, selected_frame_level_changed_hook,
1764 return_command): Export from stack.c.
1765 * v850ice.c (stepi_command, nexti_command, continue_command): use
1766 prototypes from inferior.h.
1767 * tracepoint.c (registers_info, args_info, locals_info): Use
1768 prototypes from frame.h and inferior.h.
1769 * Makefile.in (mi-main.o): Add dependency on frame.h.
1770
6f99cb26
AC
17712002-10-02 Andrew Cagney <ac131313@redhat.com>
1772
da3eff49
AC
1773 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1774 value in register 3 adjusted by ppc_gp0_regnum.
1775
6f99cb26
AC
1776 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1777
da615bee
MM
17782002-10-02 Marko Mlinar <markom@opencores.org>
1779
1780 * MAINTAINERS: Add myself to the Write After Approval list.
1781
d154bee2
AO
17822002-10-01 Alexandre Oliva <aoliva@redhat.com>
1783
62a49b2c
AO
1784 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1785 of the section for the N64 ABI, fixed.
1786
d154bee2
AO
1787 * config/mips/tm-irix6.h: Include solib.h.
1788
ed348acc
EZ
17892002-10-01 Elena Zannoni <ezannoni@redhat.com>
1790
1791 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1792 GNU operators.
1793
da0f9dcd
AC
17942002-10-01 Andrew Cagney <ac131313@redhat.com>
1795
1796 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1797 and that "mi0" syntax has been removed.
1798
bdf64bac
DC
17992002-09-30 David Carlton <carlton@math.stanford.edu>
1800
1801 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1802 * ppc-sysv-tdep.c: #include "gdb_string.h".
1803 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1804 pacify GCC.
1805
54c2a1e6
AC
18062002-10-01 Andrew Cagney <ac131313@redhat.com>
1807
1808 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1809 "vrsave"'s register number.
1810
cedea778
AC
18112002-09-30 Andrew Cagney <ac131313@redhat.com>
1812
1813 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1814 use frame_unwind_signed_register to obtain the PC.
1815 (mips_frame_chain): Handle a generic dummy frame.
1816 (mips_init_extra_frame_info): When a generic dummy frame, don't
1817 re-compute the frame base.
1818 (mips_pop_frame): Handle generic dummy frames.
1819 (mips_gdbarch_init): When generic dummy frames, set
1820 use_generic_dummy_frames, push_dummy_frame to
1821 generic_push_dummy_frame, pc_in_call_dummy to
1822 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1823 generic_save_dummy_frame_tos.
1824
68315eb8
AC
18252002-09-30 Andrew Cagney <ac131313@redhat.com>
1826
1827 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1828 against TOP when TOP was explictly set.
1829 (generic_push_dummy_frame): Set TOP to zero.
1830
3b8630c3
EZ
18312002-09-30 Elena Zannoni <ezannoni@redhat.com>
1832
1833 * event-loop.c (start_event_loop): Rename variable 'result' to
1834 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1835
28ee05e9
KS
18362002-09-30 Keith Seitz <keiths@redhat.com>
1837
1838 * gdb-events.sh (selected_thread_changed): New event.
1839 * gdb-events.c: Regenerated.
1840 * gdb-events.h: Regenerated.
1841
6eecb1c8
HPN
18422002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1843
1844 * MAINTAINERS: Add self to Write After Approval list.
1845
92df71f0
FN
18462002-09-30 Fernando Nasser <fnasser@redhat.com>
1847
3b8630c3
EZ
1848 * disasm.c: New file.
1849 * disasm.h: New file.
92df71f0
FN
1850 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1851 (compare_lines): Ditto.
1852 (dump_insns): Ditto.
3b8630c3
EZ
1853 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1854 argument.
92df71f0 1855 (do_assembly_only): Ditto.
3b8630c3
EZ
1856 (do_disassembly): Renamed to gdb_disassembly and moved to
1857 disasm.c. Sdded uiout argument.
1858 * Makefile.in: Add new files. Reorder SFILES list. Update
1859 dependencies. Include libgdb.a later in the insight executable.
92df71f0 1860
0c22854d
AC
18612002-09-29 Andrew Cagney <ac131313@redhat.com>
1862
1863 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1864 bfd/elf64-alpha-fbsd.c.
1865
e67f2023
AC
18662002-09-29 Andrew Cagney <ac131313@redhat.com>
1867
1868 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1869 i386gnu-tdep.c.
1870
89396210
AC
18712002-09-29 Andrew Cagney <ac131313@redhat.com>
1872
1873 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1874 __FUNCTION__.
1875 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1876 function name.
1877 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1878 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1879 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1880 (S_msg_sig_post_reply): Ditto.
1881
7079c36c
CV
18822002-09-28 Corinna Vinschen <vinschen@redhat.com>
1883
89396210
AC
1884 * sh-tdep.c (sh_use_struct_convention): Use definition according
1885 to ABI.
7079c36c
CV
1886 (sh_push_arguments): Store in register with correct endianess.
1887 (sh_default_store_return_value): Ditto.
1888 (sh_gdbarch_init): Set sizeof long double to 8.
1889
975ac915
MK
18902002-09-27 Mark Kettenis <kettenis@gnu.org>
1891
1892 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1893 Fix some whitespace problems.
1894
9bbe19fb
DC
18952002-09-27 David Carlton <carlton@math.stanford.edu>
1896
1897 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1898 (mcore-tdep.o): Ditto.
1899 (ns32k-tdep.o): Ditto.
1900 (ns32knbsd-tdep.o): Ditto.
1901 (sh3-rom.o): Ditto.
1902 (vax-tdep.o): Ditto.
1903 * cris-tdep.c: #include "gdb_string.h"
1904 * mcore-tdep.c: Ditto.
1905 * ns32k-tdep.c: Ditto.
1906 * ns32knbsd-tdep.c: Ditto.
1907 * sh3-rom.c: Ditto.
1908 * vax-tdep.c: Ditto.
1909
43b2fdc7
DC
19102002-09-27 David Carlton <carlton@math.stanford.edu>
1911
1912 * config/djgpp/fnchange.lst: Add entries for
1913 gdb/testsuite/gdb.c++/m-static files.
1914
e8cfbbd9
JW
19152002-09-27 Jim Wilson <wilson@redhat.com>
1916
1917 * MAINTAINERS: Add myself to the Write After Approval list.
1918
43b2fdc7 19192002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
1920
1921 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1922
1923
9f3b7f07
AC
19242002-09-26 Andrew Cagney <ac131313@redhat.com>
1925
1926 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1927 frame.
1928
11269d7e
AC
19292002-09-26 Andrew Cagney <ac131313@redhat.com>
1930
1931 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1932 (rs6000_struct_return_address): Delete variable.
1933 (rs6000_store_struct_return): Update.
1934 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1935 deprecated_extract_struct_value_address.
1936 (rs6000_frame_align): New function.
1937 (rs6000_gdbarch_init): Set frame_align.
1938
f15ab4a7
AC
19392002-09-26 Andrew Cagney <ac131313@redhat.com>
1940
1941 From Grace Sainsbury <graces@redhat.com>:
1942 * Makefile.in (gdbtk-main.o): New target.
1943 (gdb.o): New target.
1944 (main_h): Define.
1945 (main.o): Update dependencies.
1946 (gdb$(EXEEXT)): Add gdb.o.
1947 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1948 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1949 (SUBDIR_GDBTK_CLEAN): Set.
1950 (install-gdbtk): Install the insight binary.
1951 (uninstall-gdbtk): New target.
1952 (all-gdbtk, clean-gdbtk): New rule.
1953 * top.c (use_windows): Default to zero.
1954 * main.c: Include "main.h".
1955 (main): Delete.
1956 (struct captured_main_args): Delete.
1957 (gdb_main): New function.
1958 * main.h: New file.
1959 * gdb.c: New File.
1960
e36180d7
AC
19612002-09-25 Andrew Cagney <cagney@redhat.com>
1962
1963 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1964 (frame_map_regnum_to_name): New function.
1965 (frame_map_name_to_regnum): New function.
1966 * frame.h (frame_map_name_to_regnum): Declare.
1967 (frame_map_regnum_to_name): Declare.
1968 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1969 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1970 * parse.c: Do not include "builtin-regs.h".
1971 (target_map_name_to_register): Delete function.
1972 (write_dollar_variable): Use frame_map_name_to_regnum.
1973 * parser-defs.h (target_map_name_to_register): Delete declaration.
1974 * expprint.c: Include "frame.h".
1975 (print_subexp): Use frame_map_regnum_to_name.
1976 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1977 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1978
8b69000d
AC
19792002-09-25 Andrew Cagney <ac131313@redhat.com>
1980
1981 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1982 wasn't saved, and the next innermost frame is a dummy, return the
1983 dummy frame's link register.
1984
046ca86a
JB
19852002-09-24 Jim Blandy <jimb@redhat.com>
1986
1987 Fix from Paul Breed:
1988 * main.c (captured_main): Add a `break' after the case for 'b'.
1989
94b66fa7
KS
19902002-09-24 Keith Seitz <keiths@redhat.com>
1991
1992 * varobj.c (c_type_of_child): Use get_target_type instead
1993 of TYPE_TARGET_TYPE.
1994
c214a6fd
FN
19952002-09-22 Fernando Nasser <fnasser@redhat.com>
1996
53cb0458
FN
1997 * source.c (get_current_or_default_source_symtab_and_line): Remove
1998 function.
1999 (set_default_source_symtab_and_line): New function. Attempts to
2000 determine a source file to list lines from if one is not currently
2001 defined.
2002 (get_current_source_symtab_and_line): Initialize sal.pc and
2003 sal.end fields.
2004 (set_current_source_symtab_and_line): Mark argument as const.
2005 * source.h: Update declarations and comments.
2006 * linespec.c (decode_line_1): Replace call to removed routine above.
2007 * stack.c (print_frame_info_base): Ditto.
2008 * cli/cli-cmds.c (edit_command): Ditto.
2009 (list_command): Ditto.
2010
20112002-09-22 Fernando Nasser <fnasser@redhat.com>
2012
d6020d45 2013 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2014 sal.pc and sal.end fields.
c214a6fd
FN
2015 (get_current_or_default_source_symtab_and_line): Ditto.
2016 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2017 so we do not cause a new source symtab to be searched for (reverting an
2018 unintentional change from the 2002-09-20 patch).
2019 * scm-lang.c (scm_unpac): Ditto.
2020
cc3b68a5
AC
20212002-09-21 Andrew Cagney <cagney@redhat.com>
2022
2023 * complaints.c (symfile_explanations): Remove new-line from
2024 ``isolated_message''.
2025 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2026 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2027
5835abe7
NC
20282002-09-20 Nick Clifton <nickc@redhat.com>
2029
2030 * NEWS: Announce that V850EA ISA is no longer supported.
2031 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2032
a15ef5f5
DC
20332002-09-20 David Carlton <carlton@math.stanford.edu>
2034
06ba1b39
DC
2035 * Makefile.in (c-lang.o): Correct dependencies.
2036 (utils.o): Gather dependencies.
2037 (charset.o): Move.
a15ef5f5
DC
2038 * c-lang.c: #include "gdb_string.h"
2039
87885426
FN
20402002-09-20 Fernando Nasser <fnasser@redhat.com>
2041
2042 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2043 * cli/cli-cmds.c (list_command): New function. Implements the new
2044 cli edit command.
2045 (_init_cli_cmds): Add new command definition.
2046 * gdb.1: Document edit command.
2047 * doc/gdb.texinfo: Document edit command.
2048
20492002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2050
2051 * source.c: Make global variables current_source_symtab and
2052 current_source_line static.
2053 (list_command): Moved to cli/cli-cmds.c.
2054 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2055 (get_first_line_listed): New accessor function.
2056 (get_lines_to_list): New accessor function.
2057 (get_current_source_symtab_and_line): New function. Retrieves the
2058 position in the source code that we consider current.
2059 (get_current_or_default_source_symtab_and_line): New function.
2060 Like the above but attempts to determine a default position if one
2061 is not currently defined.
2062 (set_current_source_symtab_and_line): New function. Sets the source
2063 code position considered current and returns the previously set one.
2064 (clear_current_source_symtab_and_line): Reset stored information about
2065 a current source line.
2066 (_initialize_source): Remove registration for the "list" command and
2067 its alias.
2068 * source.h: Add declarations for the new functions above.
2069 * symtab.h: Remove declarations for the global variables mentioned
2070 above.
2071 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2072 obtain current source line.
2073 * linespec.c (decode_line_1): Ditto.
2074 * macroscope.c (default_macro_scope): Ditto.
2075 * scm-lang.c (scm_unpac): Ditto.
2076 * stack.c (print_frame_info_base): Ditto.
2077 * symfile.c (clear_symtab_users): Ditto.
2078 * symtab.c (decode_line_spec): Ditto.
2079 * cli/cli-cmds.c (list_command): Moved here from source.c.
2080 (ambiguous_line_spec): Moved here from source.c.
2081 (_init_cli_cmds): Add definition for "list" and its alias.
2082 * Makefile.in: Update dependencies.
2083
ddd216ea
CV
20842002-09-20 Corinna Vinschen <vinschen@redhat.com>
2085
2086 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2087 with what gcc thinks is correct.
2088
6d305052
CV
20892002-09-20 Corinna Vinschen <vinschen@redhat.com>
2090
2091 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2092 multiple register push instruction.
2093
234b45d4
KB
20942002-09-19 Jim Blandy <jimb@redhat.com>
2095
2096 Add support for distinct host and target character sets.
2097 * charset.c, charset.h: New files.
2098 * c-exp.y: #include "charset.h".
2099 (yylex): Convert character and string literals to the target
2100 character set, before returning them as the semantic value of the
2101 token.
2102 * c-lang.c: #include "charset.h".
2103 (c_emit_char): Use charset-specific methods to recognize
2104 characters with backslash escape forms, to decide which characters
2105 to print literally and which to print using numeric escape
2106 sequences, and to convert target characters to host characters
2107 before printing.
2108 * utils.c: #include "charset.h".
2109 (no_control_char_error): New function.
2110 (parse_escape): Use charset-specific methods to recognize
2111 backslash escapes, parse `control character' notation, and convert
2112 characters from the host character set to the target character set.
2113 * configure.in: Set the default host character set.
2114 Check where to find iconv, and what its argument types might be.
2115 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2116 * Makefile.in (SFILES): List charset.c.
2117 (COMMON_OBS): List charset.o.
2118 (charset.o): New rule.
2119 (charset_h): New header dependency variable.
2120 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2121 (LIBICONV): New variable, set by configure.
2122 (CLIBS): Include $(LIBICONV) here.
2123 * aclocal.m4, config.in, configure: Regenerated.
2124
525d6a61
JB
21252002-09-19 Joel Brobecker <brobecker@gnat.com>
2126
2127 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2128 bison 1.35 warning.
2129
3ed93867
RE
21302002-09-19 Richard Earnshaw <rearnsha@arm.com>
2131
2132 * gdb_mbuild.sh: New file.
2133
437666f8
AC
21342002-09-19 Andrew Cagney <ac131313@redhat.com>
2135
2136 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2137
389e51db
AC
21382002-09-18 Andrew Cagney <ac131313@redhat.com>
2139
2140 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2141 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2142 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2143 valops.c, value.h: Revert previous change.
2144
3b4efeaa
MS
21452002-09-18 Michael Snyder <msnyder@redhat.com>
2146
2147 Preliminary support for Objective-C:
2148 * defs.h (language_objc): New enum value.
2149 (puts_filtered_tabular): Declaration only, exported from utils.c.
2150 (skip_quoted): Delete, declared in completer.h.
2151 * c-exp.y: Include completer.h.
2152 * p-exp.y: Ditto.
2153 * jv-exp.y: Ditto.
2154 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2155 New operator enum values.
2156 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2157 * language.c (binop_result_type): Handle language_objc case.
2158 (integral_type, character_type, string_type, boolean_type,
2159 structured_type, binop_type_check): Ditto.
2160 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2161 (struct objc_specific): Add to general_symbol_info.
2162 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2163 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2164 * parser-defs.h (struct objc_class_str): New struct type.
2165 (start_msglist, end_msglist, add_msglist): Declaration only,
2166 exported from objc-lang.c.
2167 * value.h (value_of_local, value_nsstring,
2168 call_function_by_hand_expecting_type): Exported from valops.c.
2169 * valops.c (find_function_addr): Export.
2170 (call_function_by_hand_expecting_type): New function.
2171 (value_of_local): New function.
2172 * symfile.c (init_filename_language_table): Add ".m" extension
2173 for Objective-C.
2174 * utils.c (puts_filtered_tabular): New function.
2175 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2176 (set/show demangle): Extend help-string to refer to ObjC.
2177 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2178 * stabsread.c (symbol_reference_defined): Objective-C symbols
2179 may contain colons: make allowances when scanning stabs strings
2180 for colons.
2181 (objc_find_colon): New function.
2182 * printcmd.c (address_info): If language == objc then print
2183 "self" instead of "this".
2184 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2185 OP_NSSTRING, and OP_SELF.
2186 (prefixify_subexp): Ditto.
2187 * source.c (print_source_lines): Mention objc in comment.
2188 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2189 method names.
2190
b9caf505
AC
21912002-09-18 Andrew Cagney <ac131313@redhat.com>
2192
2193 * complaints.h: Update copyright.
2194 (struct complaints): Declare.
2195 (struct complaint): Make `message' constant.
2196 (internal_complaint): Declare.
2197 (complaint): Declare.
2198 (complaint_root): Delete declaration.
2199 (symfile_complaints): Delete declaration.
2200 (struct complaints): Add opaque declaration.
2201 (clear_complaints): Add a complaints parameter.
2202 * complaints.c: Update copyright.
2203 (enum complaint_series): Define.
2204 (complaint_root): Delete.
2205 (struct complaints): Define.
2206 (complaint_sentinel, symfile_complaint_book): New variables.
2207 (symfile_explanations, symfile_complaints): New variables.
2208 New variables.
2209 (get_complaints): New function.
2210 (vcomplaint): New function.
2211 (complaint): New function.
2212 (internal_complaint): New function.
2213 (complain): Call vcomplain with symfile_complaint.
2214 (clear_complaints): Rewrite.
2215 (_initialize_complaints): Use add_setshow_command.
2216 * Makefile.in (complaints.o): Update dependencies.
2217 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2218 to call to clear_complaints.
2219 (new_symfile_objfile, reread_symbols): Ditto.
2220 (oldsyms_complaint): Delete.
2221 (empty_symtab_complaint, unknown_option_complaint): Delete.
2222 (free_named_symtabs): Use complaint instead of complain.
2223
d2e6263c
MS
22242002-09-18 Michael Snyder <msnyder@redhat.com>
2225
5fb2031a
AC
2226 Contributed by Apple Computer, Inc. Merged with current sources
2227 by Adam Fedor <fedor@doc.com> [cagney].
2228
d2e6263c
MS
2229 * objc-lang.c: First clean-up round: comments, indentation.
2230 * objc-lang.h: Ditto.
2231 * objc-lang.y: Ditto.
2232
dec43320
AC
22332002-09-18 Andrew Cagney <ac131313@redhat.com>
2234
2235 * maint.c (maintenance_internal_error): Print the parameter as the
2236 error message.
2237 (maintenance_internal_warning): New function.
2238 (_initialize_maint_cmds): Add command `maint internal-warning'.
2239
2240 * defs.h (internal_warning, internal_vwarning): Declare.
2241 * utils.c (struct internal_problem): Define.
2242 (internal_vproblem): New function.
2243 (internal_warning): New function.
2244 (internal_vwarning): New function.
2245 (internal_warning_problem, internal_error_problem): New variables.
2246 (internal_verror): Just call internal_vproblem.
2247
b81654f1
MS
22482002-09-18 Michael Snyder <msnyder@redhat.com>
2249
2250 * objc-lang.c: New file, support for Objective-C.
2251 Preliminary check-in, not yet integrated into gdb.
2252 * objc-lang.h: New file.
2253 * objc-exp.y: New file.
2254
0542c381
AC
22552002-09-18 Andrew Cagney <ac131313@redhat.com>
2256
7bda5e4a
AC
2257 * infrun.c (signal_stop_update): Convert definition to ISO C.
2258 (signal_print_update): Ditto.
2259 (signal_pass_update): Ditto.
2260 * inflow.c (terminal_save_ours): Ditto.
2261
5247b418
AC
2262 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2263 comments.
2264
fc60962c
AC
2265 * config/djgpp/fnchange.lst: Handle name clashes between
2266 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2267 bfd/coff-tic80.c.
2268
0542c381
AC
2269 * i386-linux-tdep.h: Fix tipo.
2270
5b924b9b
AF
22712002-09-18 Adam Fedor <fedor@gnu.org>
2272
2273 * MAINTAINERS: Add myself to the Write After Approval list.
2274
5afc051b
JB
22752002-09-18 Jim Blandy <jimb@redhat.com>
2276
2277 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2278 texthigh and textlow to reader-specific structs caused
2279 objfile_relocate to miss them. This is fixable, but the work that
2280 the change was supposed to prepare GDB for never got done anyway.
2281
eb944380
DC
22822002-09-18 David Carlton <carlton@math.stanford.edu>
2283
2284 * MAINTAINERS: Alphabetize Write After Approval list.
2285
948e66d9
DJ
22862002-09-18 Daniel Jacobowitz <drow@mvista.com>
2287
2288 Fix PR gdb/709
2289 * values.c (value_static_field): Call read_var_value.
2290
dc604539
AC
22912002-09-18 Andrew Cagney <ac131313@redhat.com>
2292
2293 * valops.c (hand_function_call): Align the initial stack pointer
2294 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2295 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2296 return value.
2297 * mips-tdep.c (mips_frame_align): New function.
2298 (mips_gdbarch_init): Set frame_align.
2299 * gdbarch.sh (FRAME_ALIGN): New method.
2300 * gdbarch.h, gdbarch.c: Re-generate.
2301
cb7e422f
ML
23022002-09-18 Michal Ludvig <mludvig@suse.cz>
2303
2304 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2305 registers.
2306
a094c6fb
AC
23072002-09-17 Andrew Cagney <ac131313@redhat.com>
2308
2309 * NEWS: Mention that MIPS $fp behavior changed.
2310 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2311 reference to FP_REGNUM.
2312 (mipsnbsd_cannot_store_register): Ditto.
2313 * mips-linux-nat.c: Update copyright.
2314 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2315 (mips_linux_cannot_store_register): Ditto.
2316 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2317 * config/mips/tm-mips.h: Update copyright.
2318 (FP_REGNUM): Delete macro.
2319 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2320 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2321 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2322 (mips_r3041_reg_names, mips_r3051_reg_names)
2323 (mips_r3081_reg_names): Replace "fp" with "".
2324 Fix PR gdb/480.
2325
45cf40d1
TR
23262002-09-17 Theodore A. Roth <troth@verinet.com>
2327
2328 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2329 generic_read_register_dummy() (PR gdb/703).
2330 (avr_push_return_address): #if 0 out unused vars.
2331 (avr_gdbarch_init): Enable use of avr_push_return_address().
2332
c7e701b5
MS
23332002-09-17 Michael Snyder <msnyder@redhat.com>
2334
d76ba2a5 2335 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2336 RTE will take care of it.
2337
20bcf01c
AC
23382002-09-17 Andrew Cagney <ac131313@redhat.com>
2339
2340 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2341 invalid, return SP_REGNUM.
2342
009a9971 23432002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2344
2345 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2346 point registers without sign extension.
2347
135c175f
AC
23482002-09-17 Andrew Cagney <cagney@redhat.com>
2349
2350 * blockframe.c (deprecated_read_register_dummy): Rename
2351 generic_read_register_dummy.
2352 * frame.c (frame_unwind_signed_register): New function.
2353 (frame_unwind_unsigned_register): New function.
2354 * frame.h (frame_unwind_signed_register): Declare.
2355 (frame_unwind_unsigned_register): Declare.
2356 (deprecated_read_register_dummy): Rename
2357 generic_read_register_dummy.
2358
2359 * h8300-tdep.c (h8300_frame_chain): Update.
2360 (h8300_frame_saved_pc): Update.
2361 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2362 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2363 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2364 (s390_frame_chain): Update.
2365 * v850-tdep.c (v850_find_callers_reg): Update.
2366 (v850_frame_saved_pc): Update.
2367 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2368 (m32r_find_callers_reg): Update.
2369 (m32r_frame_saved_pc): Update.
2370 * sh-tdep.c (sh_find_callers_reg): Update.
2371 (sh64_get_saved_pr): Update.
2372 (sh_init_extra_frame_info): Update.
2373 (sh_init_extra_frame_info): Update.
2374 (sh64_init_extra_frame_info): Update.
2375 (sh64_init_extra_frame_info): Update.
2376 * mcore-tdep.c (mcore_find_callers_reg): Update.
2377 (mcore_frame_saved_pc): Update.
2378 (mcore_init_extra_frame_info): Update.
2379 * i386-tdep.c (i386_frame_saved_pc): Update.
2380 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2381 (ia64_init_extra_frame_info): Update.
2382 (ia64_init_extra_frame_info): Update.
2383 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2384 * cris-tdep.c (cris_init_extra_frame_info): Update.
2385 * avr-tdep.c (avr_frame_chain): Update.
2386 (avr_init_extra_frame_info): Update.
2387 (avr_frame_saved_pc): Update.
2388 * arm-tdep.c (arm_find_callers_reg): Update.
2389 (arm_init_extra_frame_info): Update.
2390 (arm_frame_saved_pc): Update.
2391
a741e514
TT
23922002-09-17 Tom Tromey <tromey@redhat.com>
2393
2394 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2395 is "'".
2396
d1a8e808
CV
23972002-09-17 Corinna Vinschen <vinschen@redhat.com>
2398
2399 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2400 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2401 NEXT_PROLOGUE_INSN.
2402 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2403 NEXT_PROLOGUE_INSN.
2404
d9025a18
JB
24052002-09-16 Joel Brobecker <brobecker@gnat.com>
2406
2407 * osfsolib.c: Remove file, replaced by solib-osf.c.
2408 * Makefile.in: Remove compilation rules for osfsolib.c.
2409
1b2ef1b6
DC
24102002-09-16 David Carlton <carlton@math.stanford.edu>
2411
2412 * cp-valprint.c (cp_print_class_method): Correct args to
2413 check_stub_method_group.
2414
928e48af
CV
24152002-09-16 Corinna Vinschen <vinschen@redhat.com>
2416
2417 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2418 `set architecture'. Unify naming convention of functions.
2419 (h8300_skip_prologue): Improve prologue analysis.
2420 (h8300_push_arguments): Rewritten to more closely match GCC's
2421 bizarre argument-passing behavior, along with the comment describing
2422 said behavior.
2423 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2424 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2425 sim, remote-e7000.c, remote-hms.c and remote.c
2426
5e3397bb
MK
24272002-09-15 Mark Kettenis <kettenis@gnu.org>
2428
2429 * i386-tdep.c (gdb_print_insn_i386): Removed.
2430 (i386_print_insn): New function.
2431 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2432 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2433 tm_print_insn_info.
2434
f710f4fc
MK
24352002-09-14 Mark Kettenis <kettenis@gnu.org>
2436
2437 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2438 zero.
2439
db54fef4
CV
24402002-09-14 Corinna Vinschen <vinschen@redhat.com>
2441
2442 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2443 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2444 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2445
2becadee
CF
24462002-09-13 Christopher Faylor <cgf@redhat.com>
2447
2448 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2449
de17c821
DJ
24502002-09-13 Daniel Jacobowitz <drow@mvista.com>
2451
2452 * gdbtypes.c (check_stub_method): Make static.
2453 (check_stub_method_group): New function.
2454 * gdbtypes.h: Update prototypes.
2455 * cp-support.c: New file.
2456 * cp-support.h: New file.
2457
2458 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2459 (update_method_name_from_physname): New function.
2460 (read_member_functions): Correct method names for operators
2461 and v3 constructors/destructors. Separate v2 constructors and
2462 destructors.
2463 * Makefile.in (stabsread.o): Update dependencies.
2464 (SFILES): Add cp-support.c.
2465 (COMMON_OBS): Add cp-support.o.
2466 (cp_support_h, cp-support.o): Add.
2467
2468 * cp-valprint.c (cp_print_class_method): Call
2469 check_stub_method_group instead of check_stub_method. Remove
2470 extraneous QUITs.
2471 * p-valprint.c (pascal_object_print_class_method): Likewise.
2472 * valops.c (search_struct_method): Likewise.
2473 (find_method_list, value_struct_elt_for_reference): Likewise.
2474
e76cff22
AC
24752002-09-13 Andrew Cagney <cagney@redhat.com>
2476
2477 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2478 * gdbarch.h, gdbarch.c: Regenerate.
2479
905abb3f
AC
24802002-09-13 Andrew Cagney <ac131313@redhat.com>
2481
2482 * frame.c (find_saved_register): Delete function.
2483 * frame.h (find_saved_register): Delete declaration.
2484 Fix PR gdb/631.
2485
64159455
AC
2486Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2487
2488 * mips-tdep.c (read_next_frame_reg): Re-hack using
2489 frame_register_unwind.
2490
795e1e11
AC
2491Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2492
2493 * mips-tdep.c (mips_get_saved_register): Re-hack using
2494 frame_register_unwind.
2495
5720643c
JB
24962002-09-12 Joel Brobecker <brobecker@gnat.com>
2497
2498 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2499 vector. Will be useful for Interix.
2500 * gdbarch.h, gdbarch.c: Regenerate.
2501
2502 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2503 name of the malloc function by NAME_OF_MALLOC.
2504
3bada2a2
JB
25052002-09-12 Joel Brobecker <brobecker@gnat.com>
2506
2507 * value.h (find_function_in_inferior): Add const keyword to
2508 one of the parameters. Allows us to invoke this function with
2509 a const char *.
2510 * valops.c (find_function_in_inferior): Likewise.
2511
3db26b01
JB
25122002-09-12 Joel Brobecker <brobecker@gnat.com>
2513
2514 * exec.c (xfer_memory): Fix compilation warning with old versions
2515 of GCC.
2516 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2517
17c5ed2c
DC
25182002-09-12 David Carlton <carlton@math.stanford.edu>
2519
2520 * symtab.h: Run through gdb_indent.h.
2521 Add 2002 to Copyright year list.
2522
ecd1107e
AM
25232002-09-12 Alan Modra <amodra@bigpond.net.au>
2524
2525 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2526 mach constants.
2527 * MAINTAINERS: Add myself to write after approval list.
2528
e64f66d1
JB
25292002-09-11 J. Brobecker <brobecker@gnat.com>
2530
2531 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2532
f9395794
JB
25332002-09-11 J. Brobecker <brobecker@gnat.com>
2534
2535 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2536 Interix.
2537
1a303dec
MS
25382002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2539
2540 * procfs.c (do_detach): Clear current signal, not just fault.
2541 Corrects problem with breakpoint trap signal leaking to detached
2542 process on Tru64.
2543
c0219d42
MS
25442002-09-10 Michael Snyder <msnyder@redhat.com>
2545
2546 * buildsym.c (finish_block): Protect against null pointer.
2547
9d84ac84
AC
25482002-09-10 Andrew Cagney <cagney@redhat.com>
2549
2550 * infcmd.c (default_print_registers_info): Send all output to
2551 ``file'' instead of ``gdb_stdout''.
2552
77d8f2b4
MS
25532002-09-10 Michael Snyder <msnyder@redhat.com>
2554
2555 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2556 LONGEST, and use signed register read (addresses are sign-
2557 extended for mips).
2558
99656a61
SC
25592002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2560
2561 * event-loop.c (gdb_do_one_event): Make public.
2562 * event-loop.h (gdb_do_one_event): Declare.
2563
da12f4d8
JL
25642002-09-10 Jeff Law <law@redhat.com>
2565
2566 * infttrace.c (child_resume): Simplify and rework to avoid
2567 TT_PROC_CONTINUE.
2568
d0aee0c4
FF
25692002-09-09 Fred Fish <fnf@intrinsity.com>
2570
2571 * printcmd.c (print_scalar_formatted): "len" is the number of
2572 target bytes, NOT the number of target bits.
2573
7cb3ec5e
EZ
25742002-09-09 Elena Zannoni <ezannoni@redhat.com>
2575
2576 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2577 * top.c (init_main): Set rl_terminal_name.
2578
4dc81987
AS
25792002-09-08 Aidan Skinner <aidan@velvet.net>
2580
2581 * ada-lang.c (ada_array_bound, ada_type_match,
2582 _initialize_ada_language): Fix K&R definitions.
2583 * ada-tasks.c (get_current_task): Fix K&R definitions.
2584 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2585
842330b4
CF
25862002-09-07 Christopher Faylor <cgf@redhat.com>
2587
2588 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2589 Add XP.
2590
43156d82
MK
25912002-09-06 Mark Kettenis <kettenis@gnu.org>
2592
66da5fd8
MK
2593 * i386-tdep.c (i386_register_virtual_type,
2594 i386_register_convertible, i386_register_convert_to_virtual,
2595 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2596 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2597 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2598 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2599 Don't set push_arguments twice.
2600
4b218c18
MK
2601 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2602 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2603 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2604 sigtramp_end to NULL.
2605 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2606 defines.
2607 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2608
4cc314d5
MK
2609 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2610 whitespace.
2611
43156d82
MK
2612 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2613 * gdbarch.h, gdbarch.c: Re-generate.
2614 * blockframe.c (find_pc_sect_partial_function): Convert to use
2615 SIGTRAMP_START_P predicate.
2616
6672060b
MS
26172002-09-05 Michael Snyder <msnyder@redhat.com>
2618
a90c3637
MS
2619 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2620 generic_dummy_frame method and old method. Also distinguish
2621 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2622 (arm_extract_return_value): Use new regcache method.
a90c3637 2623
6672060b
MS
2624 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2625 adjustment that doesn't conform to the ABI.
2626 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2627 saved regcache, not from current regcache.
2628
299ffc64
AC
26292002-09-05 Andrew Cagney <ac131313@redhat.com>
2630
2631 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2632 * README: Update.
2633
a3a2ee65
JT
26342002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2635
2636 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2637 if arm_apcs_32 is false.
2638
2bc7eea9
AC
26392002-09-04 Andrew Cagney <ac131313@redhat.com>
2640
2641 GDB 5.3 branch created.
2642
8a55a7c5
TR
26432002-09-03 Theodore A. Roth <troth@verinet.com>
2644
2645 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2646 generic_unwind_get_saved_register.
2647
e26fb1d7
DC
26482002-09-03 David Carlton <carlton@math.stanford.edu>
2649
2650 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2651 argument (PR gdb/653). Update call to smash_to_method_type.
2652 (read_structure_scope): Update call to dwarf2_add_member_fn.
2653
30d52491
ML
26542002-09-03 Michal Ludvig <mludvig@suse.cz>
2655
2656 * x86-64-linux-tdep.c: Include gdb_string.h
2657 * x86-64-linux-nat.c: Ditto.
2658
06891d83
JT
26592002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2660
2661 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2662 when YYDEBUG is set to 1.
2663 * c-exp.y: Likewise.
2664 * f-exp.y: Likewise.
2665 * jv-exp.y: Likewise.
2666 * m2-exp.y: Likewise.
2667 * p-exp.y: Likewise.
2668
7d400e77
JT
26692002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2670
2671 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2672 dependency list.
2673 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2674 solib_svr4_fetch_link_map_offsets to
2675 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2676 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2677 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2678 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2679 solib-svr4.o, and solib-legacy.o.
2680 * config/i386/tm-nbsd.h: Include solib.h.
2681
704a27c4
JT
26822002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2683
2684 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2685 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2686 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2687 comment noting that this needs its own target configuration.
2688 * config/i386/nbsd.mt: New file.
2689 * config/i386/nbsdaout.mt: Remove.
2690 * config/i386/nbsdelf.mt: Ditto.
2691 * config/i386/tm-nbsdaout.h: Ditto.
2692
d66198e1
JT
26932002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2694
2695 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2696 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2697 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2698 tdep->sigtramp_end.
2699 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2700 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2701 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2702
3cac699e
JT
27032002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2704
2705 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2706 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2707 * i386-tdep.h (i386bsd_init_abi): New prototype.
2708 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2709 function declaration.
2710 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2711 for NetBSD-a.out or NetBSD-ELF.
2712 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2713 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2714 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2715 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2716 and nbsd-tdep.h.
2717 (i386nbsd_pc_in_sigtramp): New function.
2718 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2719 i386nbsd_pc_in_sigtramp.
2720 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2721 and i386nbsdelf_init_abi OS ABI handlers.
2722 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2723 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2724
7010ca0a
MK
27252002-09-02 Mark Kettenis <kettenis@gnu.org>
2726
2727 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2728 registers if the target really has them.
2729
6dd93b72
JT
27302002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2731
2732 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2733 than nbsd-tdep.h.
2734
2ca8ae21
JT
27352002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2736
2737 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2738 list.
2739 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2740 (alphanbsd_skip_sigtramp_frame): New functions.
2741 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2742 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2743 to alphanbsd_sigcontext_addr.
2744
3d9b49b0
JT
27452002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2746
2747 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2748 list.
2749 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2750 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2751 nbsd_pc_in_sigtramp.
2752 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2753 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2754 * nbsd-tdep.c: Include gdb_string.h.
2755 (nbsd_pc_in_sigtramp): New function.
2756 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2757 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2758 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2759 ppcnbsd_pc_in_sigtramp.
2760 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2761 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2762 shnbsd_pc_in_sigtramp.
2763 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2764 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2765 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2766
c860120c
PM
27672002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2768
2769 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2770 watchpoints to NULL.
2771 (insert_breakpoints): set val field of watchpoints if NULL.
2772
2773
c7612d53
JB
27742002-08-29 Jim Blandy <jimb@redhat.com>
2775
2776 * symtab.c (lookup_symbol_aux): In the cases where we find a
2777 minimal symbol of an appropriate name and use its address to
2778 select a symtab to read and search, use `name' (as passed to us)
2779 as the demangled name when searching the symtab's global and
2780 static blocks, not the minsym's name.
2781
66609862
KS
27822002-08-29 Keith Seitz <keiths@redhat.com>
2783
2784 * stack.c (print_frame_info_base): Always set current_source_symtab
2785 and current_source_line.
2786
151fefe2
JB
27872002-08-29 Donn Terry <donnte@microsoft.com>
2788
2789 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2790
bfb3754e
KS
27912002-08-28 Keith Seitz <keiths@redhat.com>
2792
2793 * stack.c (select_frame): Add FIXME concerning selected-frame
2794 events.
2795 (select_frame_command): Send selected-frame-level-changed
2796 event notification, but only if the level actually changed.
2797 (up_silently_base): Add selected-frame-level-changed event
2798 notification.
2799 (down_silently_base): Likewise.
2800
e822a2a0
AC
28012002-08-28 Andrew Cagney <ac131313@redhat.com>
2802
2803 * Makefile.in: Update dependencies for all gdb/*.c files.
2804
309367d4
TT
28052002-08-27 Tom Tromey <tromey@redhat.com>
2806
2807 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2808 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2809 Update dependencies.
2810 * i387-tdep.c: Include gdb_string.h.
2811 * osabi.c: Likewise.
2812 * i386-linux-nat.c: Likewise.
2813 * lin-lwp.c: Likewise.
2814 * ax-gdb.c: Likewise.
2815 * signals/signals.c: Likewise.
2816 * jv-valprint.c: Likewise.
2817 * p-lang.c: Likewise.
2818 * c-valprint.c: Likewise.
2819 * cp-abi.c: Likewise.
2820
e1507482
EZ
28212002-08-27 Elena Zannoni <ezannoni@redhat.com>
2822
2823 * cli/cli-script.h (copy_command_lines): Export.
2824 * breakpoint.c: Include cli/cli-script.h.
2825 * Makefile.in (breakpoint.o): Update dependencies.
2826
c6510018
MS
28272002-08-26 Michael Snyder <msnyder@redhat.com>
2828
2829 * breakpoint.c (insert_breakpoints): Protect all references
2830 to 'process_warning'. Shorten long lines.
2831
c2b8ed2c
MS
28322002-08-26 Joel Brobecker <brobecker@gnat.com>
2833
2834 * cli/cli-script.c (copy_command_lines): New function.
2835 * defs.h (copy_command_lines): Export.
2836 * testsuite/gdb.base/commands.exp: New tests for commands
2837 attached to a temporary breakpoint, and for commands that
2838 delete the breakpoint they are attached to.
2839
28402002-08-26 Michael Snyder <msnyder@redhat.com>
2841
2842 * breakpoint.c (bpstat_stop_status): Instead of copying the
2843 pointer to the breakpoint commands struct, make a new copy
2844 of the struct and point to that.
2845 (bpstat_clear): Free the commands struct.
2846 (bpstat_clear_actions): Free the commands struct.
2847 (bpstat_do_actions): Free the command actions. Also execute
2848 the local cleanups, instead of deleting them.
2849 (delete_breakpoint): Leave the commands field of the bpstat
2850 chain alone -- it will be freed later.
2851
64b84175
KB
28522002-08-26 Kevin Buettner <kevinb@redhat.com>
2853
2854 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2855 deleted in 2002-08-20 commit. This function is still used by
2856 ppc-linux-nat.c.
2857
55970da6
KS
28582002-08-26 Keith Seitz <keiths@redhat.com>
2859
2860 * gdb-events.sh: Add selected-frame-level-changed event.
2861 * gdb-events.c: Regenerated.
2862 * gdb-events.h: Regenerated.
2863
a790ad35
SC
28642002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2865
2866 Fix PR gdb/393:
2867 * inflow.c (terminal_save_ours): New function to save terminal
2868 settings.
2869 * inferior.h (terminal_save_ours): Declare.
2870 * target.c (debug_to_terminal_save_ours): New function.
2871 (cleanup_target): Defaults to_terminal_save_ours.
2872 (update_current_target): Inherit to_terminal_save_ours.
2873 (setup_target_debug): Set to_terminal_save_ours.
2874 * target.h (target_terminal_save_ours): New to save terminal settings.
2875 (target_ops): New member to_terminal_save_ours.
2876 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2877 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2878 * inftarg.c (init_child_ops): Likewise.
2879 * m3-nat.c (init_m3_ops): Likewise.
2880 * procfs.c (init_procfs_ops): Likewise.
2881 * wince.c (init_child_ops): Likewise.
2882 * win32-nat.c (init_child_ops): Likewise.
2883 * sol-thread.c (init_sol_thread_ops): Likewise.
2884
c00dcbe9
MK
28852002-08-26 Mark Kettenis <kettenis@gnu.org>
2886
3d7f4f49
MK
2887 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2888 use regcache_* functions.
2889 (i386_gdbarch_init): Set store_return_value instead of
2890 deprecated_store_return_value.
2891
c00dcbe9
MK
2892 * regcache.c (regcache_raw_write_signed,
2893 regcache_raw_write_unsigned): New functions.
2894 * regcache.h (regcache_raw_write_signed,
2895 regcache_raw_write_unsigned): New prototypes.
2896
0e0d15ca
AC
28972002-08-25 Andrew Cagney <ac131313@redhat.com>
2898
2899 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2900 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2901 source file dependencies. Cleanup corresponding generator rules.
2902
d3b22ed5
AC
29032002-08-25 Andrew Cagney <ac131313@redhat.com>
2904
2905 * regcache.h (register_offset_hack): Declare.
2906 (regcache_cooked_read_using_offset_hack): Declare.
2907 (regcache_cooked_write_using_offset_hack): Declare.
2908
2909 * regcache.c (register_offset_hack): New function.
2910 (regcache_cooked_read_using_offset_hack): New function.
2911 (regcache_cooked_write_using_offset_hack): New function.
2912 (regcache_dump): Check that the registers, according to their
2913 offset, are packed hard against each other.
2914 (cooked_xfer_using_offset_hack): New function.
2915
bb425013
AC
29162002-08-25 Andrew Cagney <ac131313@redhat.com>
2917
2918 * regcache.c (struct regcache_descr): Add field register_type.
2919 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2920 in as a parameter
2921 (init_regcache_descr): Initialize register_type. Pass the descr
2922 to init_legacy_regcache_descr. Use register_type instead of
2923 REGISTER_VIRTUAL_TYPE.
2924 (register_type): New function.
2925 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2926 * regcache.h (register_type): Declare.
2927
d0403e00
AC
29282002-08-25 Andrew Cagney <ac131313@redhat.com>
2929
2930 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2931 instead of deprecated_store_return_value. Fix fallout from
2932 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2933
0ed04cce
AC
29342002-08-25 Andrew Cagney <ac131313@redhat.com>
2935
2936 * regcache.c (max_register_size): New function.
2937 (init_legacy_regcache_descr): Ensure that max_register_size is
2938 large enough for REGISTER_VIRTUAL_SIZE.
2939 * regcache.h (max_register_size): Declare.
2940
46d79c04
AC
29412002-08-24 Andrew Cagney <ac131313@redhat.com>
2942
2943 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2944 store_return_value.
2945 (e500_extract_return_value): Change type of valbuf pointer to
2946 void.
2947
853c7bd0
MK
29482002-08-24 Mark Kettenis <kettenis@gnu.org>
2949
cd87e769
MK
2950 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2951 workaround.
2952
853c7bd0
MK
2953 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2954 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2955 long long) to prevent compiler warning on 64-bit systems.
2956
ebba8386
AC
29572002-08-23 Andrew Cagney <cagney@redhat.com>
2958
2959 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2960 (DEPRECATED_STORE_RETURN_VALUE): New method.
2961 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2962 * gdbarch.h, gdbarch.c: Re-generate.
2963
2964 * values.c (set_return_value): Pass current_regcache to
2965 STORE_RETURN_VALUE.
2966 * arch-utils.h (legacy_store_return_value): Declare.
2967 * arch-utils.c (legacy_store_return_value): New function.
2968 (legacy_extract_return_value): Update parameters.
2969
2970 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2971 STORE_RETURN_VALUE.
2972 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2973 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2974 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2975 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2976 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2977 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2978 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2979 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2980 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2981 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2982
2983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2984 * i386-tdep.c (i386_extract_return_value): Update.
2985 * arch-utils.c (legacy_extract_return_value): Update.
2986 * frv-tdep.c (frv_gdbarch_init): Update.
2987 * cris-tdep.c (cris_gdbarch_init): Update.
2988 * d10v-tdep.c (d10v_gdbarch_init): Update.
2989 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2990 * m68k-tdep.c (m68k_gdbarch_init): Update.
2991 * mcore-tdep.c (mcore_gdbarch_init): Update.
2992 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2993 * s390-tdep.c (s390_gdbarch_init): Update.
2994 * sparc-tdep.c (sparc_gdbarch_init): Update.
2995 * sh-tdep.c (sh_gdbarch_init): Update.
2996 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2997 * v850-tdep.c (v850_gdbarch_init): Update.
2998 * avr-tdep.c (avr_gdbarch_init): Update.
2999 * ia64-tdep.c (ia64_gdbarch_init): Update.
3000 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3001 * vax-tdep.c (vax_gdbarch_init): Update.
3002 * alpha-tdep.c (alpha_gdbarch_init): Update.
3003 * arm-tdep.c (arm_gdbarch_init): Update.
3004 * mips-tdep.c (mips_gdbarch_init): Update.
3005 * i386-tdep.c (i386_gdbarch_init): Update.
3006
5bd8c6d0
AC
30072002-08-23 Andrew Cagney <ac131313@redhat.com>
3008
3009 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3010 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3011
e73e1724
MK
30122002-08-24 Mark Kettenis <kettenis@gnu.org>
3013
3014 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3015 problems.
3016
3e6564e1
JB
30172002-08-23 Joel Brobecker <brobecker@gnat.com>
3018
3019 * infrun.c (handle_inferior_event): Move a comment outside of a
3020 function call, in order to avoid indent reformatting this part
3021 of the code in an unreadable way.
3022
81d0cc19
GS
30232002-08-23 Grace Sainsbury <graces@redhat.com>
3024
3025 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3026 when breakpoints fail. Move general breakpoint error messages to
3027 insert_breakpoints.
3028 * breakpoint.c (insert_breakpoints): Change warnings when
3029 breakpoints are nto inserted to specify the type. Remove call to
3030 memory_error when hardware breakpoints can't be inserted. Remove
3031 multiple calls to warning so all messages are sent to the user at
3032 once.
3033 (delete_breakpoints): Make insert error messsages more explicit.
3034
17574093
DJ
30352002-08-23 Daniel Jacobowitz <drow@mvista.com>
3036
3037 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3038 gdbserver/ChangeLog.
3039
8acc2935
MK
30402002-08-23 Mark Kettenis <kettenis@gnu.org>
3041
dfe01d39
MK
3042 * i386-tdep.c: Include "objfiles.h".
3043 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3044 skip_trampoline_code.
3045 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3046 (CPLUS_MARKER): Define to '.'.
3047
8acc2935
MK
3048 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3049 member.
3050 (linux_corefile_thread_callback): Increase args->num_notes.
3051 (linux_make_note_section): Initialize thread_args.num_notes, and
3052 use it to determine whether notes for any threads were created.
3053
151fefe2 30542002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3055
3056 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3057 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3058 and PCUNKILL.
3059 (write_with_trace): Conditionalize out the switch branch handling
3060 PCSHOLD if the corresponding macro is not defined. Likewise for
3061 PRSABORT and PRSTOP.
3062 This change will be needed by the Interix port.
3063
e1507482
EZ
30642002-08-22 Elena Zannoni <ezannoni@redhat.com>
3065
3066 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3067 write_register wherever possible instead of manipulating the
3068 register bytes directly.
3069 Assign VALUE_CONTENTS to a variable and use that.
3070 The GPR numbers are now dependent on the architecture.
3071
96ff0de4
EZ
30722002-08-22 Elena Zannoni <ezannoni@redhat.com>
3073
3074 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3075 ev_offset fields.
3076 (skip_prologue): Add support for BookE/e500 instructions.
3077 (e500_extract_return_value): New function.
3078 (frame_get_saved_regs): Add support for saving ev registers and
3079 pseudo gpr's.
3080 (e500_store_return_value): New function.
3081 (rs6000_gdbarch_init): Move up default intializations of
3082 deprecated_extract_return_value and store_return_value. Overwrite
3083 init of store_return_value with e500 specific version.
3084 Set extract_return_value for e500.
3085
fbefca5b
EZ
30862002-08-22 Elena Zannoni <ezannoni@redhat.com>
3087
3088 * blockframe.c (generic_call_dummy_register_unwind): Use
3089 regcache_cooked_read to catch cases in which the variable is
3090 stored in a pseudo register.
3091
4d210288
AC
30922002-08-22 Andrew Cagney <cagney@redhat.com>
3093
3094 * NEWS: Mention that the i960 has been made obsolete.
3095 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3096 i960-tdep.c
3097 (remote-nrom.o): Obsolete target.
3098 (remote-nindy.o, i960-tdep.o): Ditto.
3099 * remote-nrom.c: Make file obsolete.
3100 * remote-nindy.c, remote-vx960.c: Ditto.
3101 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3102 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3103 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3104 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3105 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3106 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3107 i960-*-vxworks* obsolete.
3108 * MAINTAINERS: Note that the i960 is obsolete.
3109
6c0c456d
CV
31102002-08-21 Corinna Vinschen <vinschen@redhat.com
3111
3112 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3113 detach to allow reinitialization.
3114
9f9d12b3
AC
31152002-08-22 Andrew Cagney <ac131313@redhat.com>
3116
3117 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3118 attempt).
3119
ebeb39fe
JB
31202002-08-22 Jim Blandy <jimb@redhat.com>
3121
3122 * coffread.c (coff_symfile_read): Don't try to read the line
3123 number table from disk if the image file doesn't have a symbol
3124 table; we'll never actually look at the info anyway, and Windows
3125 ships DLL's with bogus file offsets for the line number data.
3126
5bf1c677
EZ
31272002-08-21 Elena Zannoni <ezannoni@redhat.com>
3128
3129 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3130 an e500 executable.
3131
71b8ef93
MS
31322002-08-21 Michael Snyder <msnyder@redhat.com>
3133
3134 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3135 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3136 (DEFAULT_MIPS_TYPE): Delete unused macro.
3137 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3138 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3139
d174216d
JB
31402002-08-21 Jim Blandy <jimb@redhat.com>
3141
3142 * valops.c (value_cast): Simplify and correct logic for doing a
3143 static cast from a pointer to a base class to a pointer to a
3144 derived class.
3145
0ab7a791
AC
31462002-08-21 Andrew Cagney <ac131313@redhat.com>
3147
3148 * infcmd.c (default_print_registers_info): Replace
3149 do_registers_info.
3150 (registers_info): Use gdbarch_print_registers_info instead of
3151 DO_REGISTERS_INFO.
3152 * inferior.h (default_print_registers_info): Replace
3153 do_registers_info.
3154 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3155 (DO_REGISTERS_INFO): Change to a predicate function.
3156 * gdbarch.h, gdbarch.c: Regenerate.
3157
e23792cc
KS
31582002-08-21 Keith Seitz <keiths@redhat.com>
3159
3160 * gdb-events.sh: Add target-changed event.
3161 * gdb-events.c: Regenerated.
3162 * gdb-events.c: Regenerated.
3163 * valops.c (value_assign): Add target-changed event notification
3164 to inlval_register, lval_memory, and lval_reg_frame_relative.
3165
9fb14e79
JB
31662002-08-21 Joel Brobecker <brobecker@gnat.com>
3167
3168 * NEWS: Add an entry regarding the improvement of the next/step
3169 operation on Alpha Tru64 multi-processor machines.
3170
6d39a69f
AC
31712002-08-21 Andrew Cagney <ac131313@redhat.com>
3172
72acd513
AC
3173 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3174 directores.
342af04b 3175 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3176 * Makefile.in (install-gdbtk): Move to install section.
3177 (rdi-share/libangsd.a): Move to end of file.
3178
fa5f27c7
AC
31792002-08-19 Andrew Cagney <ac131313@redhat.com>
3180
3181 * frame.c (frame_register_unwind): When a register, set addrp to
3182 the register's byte.
3183
5a89d8aa
MS
31842002-08-20 Michael Snyder <msnyder@redhat.com>
3185
3186 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3187 used locally, so move them from the target machine header to here.
3188 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3189 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3190 Make static.
3191 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3192
822e978b
AC
31932002-08-20 Andrew Cagney <cagney@redhat.com>
3194
3195 * NEWS: Mention that the Apollo line was made obsolete.
3196 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3197 m68*-hp-hpux* obsolete.
3198 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3199 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3200 * buildsym.c (make_blockvector): Make static.
3201 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3202 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3203 (ALLDEPFILES): Remove dstread.c.
3204 (dstread.o): Obsolete make rule.
3205 * dstread.c: Makefile obsolete.
3206 * dst.h: Ditto.
3207 * config/m68k/hp300hpux.mt: Ditto.
3208 * config/m68k/hp300hpux.mh: Ditto.
3209 * config/m68k/hp300bsd.mt: Ditto.
3210 * config/m68k/hp300bsd.mh: Ditto.
3211 * config/m68k/apollo68b.mt: Ditto.
3212 * config/m68k/apollo68v.mh: Ditto.
3213 * config/m68k/apollo68b.mh: Ditto.
3214
e41b17f0
MS
32152002-08-20 Michael Snyder <msnyder@redhat.com>
3216
3217 * mips-tdep.c (mips_in_return_stub): Make static.
3218 (mips_gdbarch_init): Set in_solib_return_trampoline.
3219 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3220
d50355b6
MS
32212002-08-20 Michael Snyder <msnyder@redhat.com>
3222
3223 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3224 * gdbarch.c, gdbarch.h: Regenerate.
3225 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3226 Add.
3227 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3228
757a7cc6
MS
32292002-08-20 Michael Snyder <msnyder@redhat.com>
3230
3231 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3232 (mips_gdbarch_init): Set skip_trampoline_code,
3233 in_solib_call_trampoline.
3234 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3235 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3236
c8001721
EZ
32372002-08-20 Elena Zannoni <ezannoni@redhat.com>
3238
3239 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3240
3241 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3242 vector type for ev registers.
3243 (e500_pseudo_register_read): New function.
3244 (e500_pseudo_register_write): New function.
3245 (e500_dwarf2_reg_to_regnum): New function.
3246 (PPC_UISA_NOFP_SPRS): New macro.
3247 (PPC_EV_REGS): New macro.
3248 (PPC_GPRS_PSEUDO_REGS): New macro.
3249 (registers_e500): New register set for e500.
3250 (variants): Add e500 variant.
3251 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3252 before setting architectural dependent variations. Initialize ev
3253 registers numbers. Add case for e500 architecture. Set the
3254 number of pseudo registers.
3255
64366f1c
EZ
32562002-08-20 Elena Zannoni <ezannoni@redhat.com>
3257
3258 * rs6000-tdep.c: Clean up comments.
3259
7e78f0ca
AC
32602002-08-20 Andrew Cagney <cagney@redhat.com>
3261
3262 * h8300-tdep.c: Re-indent file.
3263
697f7479
JB
32642002-08-20 Jim Blandy <jimb@redhat.com>
3265
3266 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3267 default for this.
697f7479 3268
e86ae29f
KS
32692002-08-20 Keith Seitz <keiths@redhat.com>
3270
3271 * breakpoints.c (watch_command_1): Use internal breakpoint
3272 when setting a watchpoint_scope breakpoint.
3273
216b504f
EZ
32742002-08-20 Elena Zannoni <ezannoni@redhat.com>
3275
3276 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3277 (build_builtin_type_vec64i): Ditto.
3278 (build_builtin_type_vec128): Ditto.
3279 (build_builtin_type_vec128i): Ditto.
3280
f7ab6ec6
MS
32812002-08-19 Michael Snyder <msnyder@redhat.com>
3282
3283 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3284 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3285 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3286 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3287 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3288 CALL_DUMMY_ADDRESS): Delete.
3289 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3290 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3291 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3292 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3293 push_return_address.
3294 (mips_register_raw_size, mips_eabi_use_struct_convention,
3295 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3296 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3297 mips_init_extra_frame_info, mips_eabi_push_arguments,
3298 mips_n32n64_push_arguments, mips_push_return_address,
3299 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3300 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3301
b5d1566e
MS
33022002-08-19 Michael Snyder <msnyder@redhat.com>
3303
3304 * mips-tdep.c (mips_frame_num_args): New function.
3305 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3306 frame_saved_pc, frame_args_address, frame_locals_address,
3307 frame_num_args, and frame_args_skip.
3308 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3309 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3310 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3311 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3312
2f1488ce
MS
33132002-08-20 Michael Snyder <msnyder@redhat.com>
3314
3315 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3316 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3317 * mips-tdep.c (mips_store_struct_return): New function.
3318 (mips_extract_struct_value_address): New function.
3319 (mips_gdbarch_init): Set store_struct_return and
3320 extract_struct_value_address.
3321
41ff2da1
DC
33222002-08-20 David Carlton <carlton@math.stanford.edu>
3323
3324 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3325 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3326 (read_file_scope): Check that line_header is nonzero before
3327 decoding macro information.
3328
e5451d58
MK
33292002-08-20 Mark Kettenis <kettenis@gnu.org>
3330
3331 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3332 flag the general-purpose registers as floating-point on targets
3333 that don't support the floating-point registers.
3334
4a6daafa
EZ
33352002-08-20 Elena Zannoni <ezannoni@redhat.com>
3336
3337 * rs6000-tdep.c (altivec_register_p): Delete.
3338 (rs6000_do_altivec_registers): Delete.
3339 (rs6000_altivec_registers_info): Delete.
3340 (rs6000_do_registers_info): Delete.
3341 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3342 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3343
ab4327e0
EZ
33442002-08-20 Elena Zannoni <ezannoni@redhat.com>
3345
3346 * infcmd.c (do_registers_info): Print vector registers in hex
3347 format only.
3348 (print_vector_info): Check that printing registers
3349 makes sense.
3350 (print_float_info): Ditto.
3351
cb1d2653
AC
33522002-08-20 Andrew Cagney <ac131313@redhat.com>
3353
3354 * mips-tdep.c (mips_gdbarch_init): Update.
3355 (mips_o32_extract_return_value): Rewrite.
3356 (mips_o32_store_return_value): Rewrite.
3357 (mips_o32_xfer_return_value): New function.
3358 (mips_xfer_register): Tweak debug print message. Allow for
3359 buf_offset when dumping the value transfered.
3360
dfc3d9b2
AC
33612002-08-20 Andrew Cagney <ac131313@redhat.com>
3362
3363 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3364 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3365 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3366 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3367 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3368
7807aa61
MS
33692002-08-14 Michael Snyder <msnyder@redhat.com>
3370
3371 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3372
489461e2
EZ
33732002-08-19 Elena Zannoni <ezannoni@redhat.com>
3374
3375 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3376 register.
3377 (P): New macro to define a register as a pseudo register.
3378 (R, R4, R8, R16, FR32, R64, R0): Updated.
3379 (struct variant): Add new fields for number of pseudo registers
3380 and number of total registers.
3381 (tot_num_registers): New macro replacing....
3382 (num_registers): ...deleted macro.
3383 (num_registers): New function.
3384 (num_pseudo_registers): New function.
3385 (variants): Update all variants to intialize new fields correctly.
3386 Postpone initialization of number of pseudo regs and real regs.
3387 (init_variants): New function.
3388 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3389 registers offsets.
3390
fcaffe4c
DC
33912002-08-19 David Carlton <carlton@math.stanford.edu>
3392
2c2738a0
DC
3393 * valops.c (search_struct_field): Change error message to treat
3394 return value of 0 from value_static_field as meaning that field is
3395 optimized out.
3396 (value_struct_elt_for_reference): Ditto.
3397 * values.c (value_static_field): Treat an unresolved location the
3398 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3399 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3400 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3401 * MAINTAINERS: Add self to Write After Approval list.
3402
88658117
AC
34032002-08-19 Andrew Cagney <ac131313@redhat.com>
3404
3405 * mips-tdep.c (mips_xfer_register): New function.
3406 (mips_n32n64_extract_return_value): Rewrite.
3407 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3408 instead of deprecated_extract_return_value.
3409
21283beb
EZ
34102002-08-19 Elena Zannoni <ezannoni@redhat.com>
3411
3412 * rs6000-tdep.c (TDEP): Delete macro.
3413 (branch_dest): Replace use of TDEP macro with its body.
3414 (rs6000_pop_frame): Ditto.
3415 (rs6000_push_arguments): Ditto.
3416 (rs6000_skip_trampoline_code): Ditto.
3417 (rs6000_frame_saved_pc): Ditto.
3418 (rs6000_frame_chain): Ditto.
3419 (rs6000_register_name): Ditto.
3420 (rs6000_register_byte): Ditto.
3421 (rs6000_register_raw_size): Ditto.
3422 (rs6000_register_virtual_type): Ditto.
3423 (rs6000_register_convertible): Ditto.
3424 (rs6000_convert_from_func_ptr_addr): Ditto.
3425
bf072999
DJ
34262002-08-19 Daniel Jacobowitz <drow@mvista.com>
3427
3428 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3429 conditionally.
3430 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3431 MIPS_LINUX_JB_ELEMENT_SIZE.
3432 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3433 for MAX_REGISTER_RAW_SIZE arrays.
3434 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3435 MIPS_LINUX_JB_ELEMENT_SIZE.
3436
9b949a49
PM
34372002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3438
3439 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3440
6d3e79c6
AS
34412002-08-19 Aidan Skinner <aidan@velvet.net>
3442
3443 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3444 ada-valprint.c ada-tasks.c.
3445 (YYFILES): Add ada-exp.y.
3446 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3447 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3448 (ada-exp.tab.o): New target.
3449
06c0b04e
AC
34502002-08-18 Andrew Cagney <ac131313@redhat.com>
3451
3452 * regcache.c (regcache_xfer_part): New function.
3453 (regcache_raw_read_part): New function.
3454 (regcache_raw_write_part): New function.
3455 (regcache_cooked_read_part): New function.
3456 (regcache_cooked_write_part): New function.
3457 * regcache.h (regcache_raw_read_part): Declare.
3458 (regcache_raw_write_part): Declare.
3459 (regcache_cooked_read_part): Declare.
3460 (regcache_cooked_write_part): Declare.
3461
92d1e331
DJ
34622002-08-18 Daniel Jacobowitz <drow@mvista.com>
3463
3464 * remote.c (remote_open_1): Add async_p.
3465 (remote_async_open_1): Delete.
3466 (open_remote_target): Delete.
3467 (remote_open, extended_remote_open): Update calls to remote_open_1.
3468 (remote_async_open, extended_remote_async_open): Call
3469 remote_open_1 instead of remote_async_open_1.
3470
247055de
MK
34712002-08-19 Mark Kettenis <kettenis@gnu.org>
3472
3473 * blockframe.c: Fix a few coding standard violations.
3474
641eda39
MK
34752002-08-19 Mark Kettenis <kettenis@gnu.org>
3476
0b717710
MK
3477 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3478 here from ...
3479 * config/i386/tm-i386sco5.h: ... here. File removed.
3480 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3481
26d28e12 3482 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3483 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3484 (TM_FILE): Set to tm-i386.h.
3485 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3486 * config/i386/tm-i386v.h: Remove file.
3487 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3488 instead of "i386/tm-i386v.h".
3489 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3490 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3491 "i386/tm-i386v.h".
3492 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3493 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3494 "i386/tm-i386.h".
3495
d4e0bab4
MK
34962002-08-18 Mark Kettenis <kettenis@gnu.org>
3497
3498 * config/i386/nm-i386v.h: Add protection against
3499 multiple-inclusion.
3500 (i386_register_u_addr): Remove prototype.
3501 (register_u_addr): New prototype.
3502 (REGISTER_U_ADDR): Redefine accordingly.
3503 * i386v-nat.c: Improve several comments.
3504 (i386_register_u_addr): Change signature and rename to
3505 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3506 ubase variable.
3507
46cac009
AC
35082002-08-18 Andrew Cagney <ac131313@redhat.com>
3509
3510 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3511 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3512 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3513 deprecated_extract_return_value.
3514 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3515 rename mips_o32o64_push_arguments.
3516 (mips_gdbarch_init): Update.
3517 (mips_extract_return_value): Delete.
3518 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3519 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3520 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3521 (mips_n32n64_extract_return_value): Clone
3522 mips_extract_return_value.
3523 (mips_store_return_value): Delete.
3524 (mips_o32_store_return_value): Clone mips_store_return_value.
3525 (mips_o64_store_return_value): Clone mips_store_return_value.
3526 (mips_eabi_store_return_value): Clone mips_store_return_value.
3527 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3528
d2e4a39e
AS
35292002-08-18 Aidan Skinner <aidan@velvet.net>
3530
0c30c098
AS
3531 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3532 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3533
35342002-08-18 Aidan Skinner <aidan@velvet.net>
3535
3536 * ada-lang.c: Run through gdb_indent.sh.
3537 * ada-lang.h: Run through gdb_indent.sh.
3538 * ada-tasks.c: Run through gdb_indent.sh.
3539 * ada-typeprint.c: Run through gdb_indent.sh.
3540 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3541
01fc4e33
AC
35422002-08-18 Andrew Cagney <ac131313@redhat.com>
3543
3544 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3545 ABI.
3546
d8ee244c
MK
35472002-08-18 Mark Kettenis <kettenis@gnu.org>
3548
c38d8261
MK
3549 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3550
222db64c
MK
3551 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3552 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3553
c2848c82
MK
3554 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3555 write_register_gen instead of write_register_bytes.
3556
d8ee244c
MK
3557 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3558 i[3456]-*-osf1mk* configurations have been made obsolete.
3559 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3560 i[3456]86-*-osf1mk* hosts obsolete.
3561 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3562 targets obsolete.
3563 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3564 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3565 config/i386/i386m3.mt, config/i386/nm-m3.h,
3566 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3567 config/i386/i386mk.mh, config/i386/i386mk.mt,
3568 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3569 obsolete.
3570 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3571 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3572 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3573
61d8d407
AC
35742002-08-18 Andrew Cagney <ac131313@redhat.com>
3575
3576 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3577 (hppa_value_returned_from_stack): Declare.
3578 (hppa_extract_return_value): Declare.
3579 * config/pa/hppa.mt: New file.
3580 * configure.tgt: Recognize hppa*-*-*.
3581 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3582
0c52bd59
MK
35832002-08-18 Mark Kettenis <kettenis@gnu.org>
3584
3585 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3586 comment.
3587
b5686e99
MK
35882002-08-17 Mark Kettenis <kettenis@gnu.org>
3589
3590 * top.c (gdb_rl_operate_and_get_next): Make sure
3591 operate-and-get-next functions correctly even when the history
3592 list is completely filled.
3593
c1bab85b
AC
35942002-08-18 Andrew Cagney <ac131313@redhat.com>
3595
3596 * MAINTAINERS (Target Instruction Set Architectures): Rename
3597 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3598 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3599 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3600 already listed under Host/Native.
3601
3602 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3603 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3604 mips*-*-*.
3605
32089c7c
AC
36062002-08-17 Andrew Cagney <ac131313@redhat.com>
3607
3608 * config/ia64/ia64.mt: New file.
3609 * config/alpha/alpha.mt: New file.
3610 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3611 ia64-linux-gnu. Mention that ia64-elf is broken.
3612 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3613
b4671f85
MK
36142002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3615
3616 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3617 generic_func_frame_valid instead of func_frame_valid.
3618
c8edd8b4
JB
36192002-08-16 Joel Brobecker <brobecker@gnat.com>
3620
3621 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3622 procfs appears to be broken when debugging on multi-processor
3623 machines. So enable software single stepping in order to avoid
3624 using the procfs interface to do next/step operations, using
3625 internal breakpoints instead.
3626
3627 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3628 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3629 make this pc address equal to the value it would have if the
3630 system stepping capability was used. Also set a new flag used
3631 to ensure that we don't readjust the PC one more time later.
3632
3633 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3634 address by DECR_PC_AFTER_BREAK when software single step is
3635 in use for this architecture, as this has already been taken
3636 care of in handle_inferior_event().
3637
238617f6
JB
36382002-08-16 Joel Brobecker <brobecker@gnat.com>
3639
3640 * infrun.c (handle_inferior_event): Minor reformatting, to make
3641 a rather long condition expression easier to read.
3642
541a7aac
AC
36432002-08-16 Andrew Cagney <ac131313@redhat.com>
3644
3645 * Makefile.in (gdbtk.o): Move to end of file.
3646 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3647 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3648 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3649 (gdbtk-wrapper.o, gdbres.o): Ditto.
3650
f92d4a7b
AC
36512002-08-16 Andrew Cagney <ac131313@redhat.com>
3652
3653 * Makefile.in (copying.o): Separate out compile rule.
3654 (hpux-thread.o, procfs.o, signals.o): Ditto.
3655 (v850ice.o, z8k-tdep.o): Ditto.
3656 (tui-file.o): Move to TUI section.
3657 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3658 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3659
1cce71eb
JB
36602002-08-16 Joel Brobecker <brobecker@gnat.com>
3661
3662 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3663 skip_trampoline_code, for better namespace-proofing.
3664
3665 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3666
0851f23d
JB
36672002-08-16 Joel Brobecker <brobecker@gnat.com>
3668
3669 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3670
f8d40ec8
JB
36712002-08-16 Joel Brobecker <brobecker@gnat.com>
3672
3673 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3674 signal, check whether we hit a breakpoint before checking for a
3675 single step breakpoint. Otherwise, GDB fails to notice that a
3676 breakpoint has been hit when stepping onto a breakpoint.
3677
63d022e0
KS
36782002-08-16 Keith Seitz <keiths@redhat.com>
3679
3680 * gdb-events.sh (clear_gdb_event_hooks): New function.
3681 * gdb-events.c: Regenerate.
3682 * gdb-events.h: Regenerate.
3683
6e31adb3
AC
36842002-08-16 Andrew Cagney <ac131313@redhat.com>
3685
3686 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3687 not_a_sw_breakpoint.
3688 * breakpoint.h (bpstat_stop_status): Add parameter names.
3689
c8189ed1
GS
36902002-08-16 Grace Sainsbury <graces@redhat.com>
3691
3692 * remote.c (remote_insert_hw_breakpoint)
3693 (remote_remove_hw_breakpoint): Fix calculation of length field
3694 for Z-packet.
3695
d05285fa
MS
36962002-08-15 Michael Snyder <msnyder@redhat.com>
3697
466d7106
MS
3698 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3699 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3700 (supply_fpregset): Ditto.
3701
d05285fa
MS
3702 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3703 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3704 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3705 (TARGET_READ_SP): Delete.
bf1f5b4c 3706 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3707 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3708 Delete.
3709 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3710 from macros to functions.
bf1f5b4c 3711
d05285fa
MS
3712 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3713 (mips_register_convertible, mips_register_convert_to_virtual,
3714 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3715 (mips_read_sp): New function.
3716 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3717 (mips_do_registers_info): Make static.
3718 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3719 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3720 (mips_register_convert_from_type, mips_register_convert_to_type):
3721 New functions.
3722 (mips_gdbarch_init): Set up function_start_offset,
3723 register_virtual_size, pc_in_sigtramp.
d05285fa 3724
e76f1f2e
AC
37252002-08-15 Andrew Cagney <ac131313@redhat.com>
3726
3727 * infcmd.c (vector_info): New function.
3728 (_initialize_infcmd): Add command "info vector".
3729 (print_vector_info): New function.
3730
3731 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3732 * gdbarch.h, gdbarch.c: Regenerate.
3733
4782dc19
AC
37342002-08-15 Andrew Cagney <ac131313@redhat.com>
3735
3736 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3737 ``print_all''. Only print vector registers when ``print_all''.
3738
23e3a7ac
AC
37392002-08-15 Andrew Cagney <ac131313@redhat.com>
3740
8e186fd6
AC
3741 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3742 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3743
23e3a7ac
AC
3744 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3745 Add `args' parameter.
3746 * gdbarch.h, gdbarch.c: Regenerate.
3747
3748 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3749
3750 * infcmd.c (float_info): Call print_float_info.
3751 (print_float_info): New function. By default, print the
3752 floating-point registers.
3753
3754 * arch-utils.h (default_print_float_info): Delete declaration.
3755 * arch-utils.c (default_print_float_info): Delete function.
3756
e0ca2bb9
MK
37572002-08-16 Mark Kettenis <kettenis@gnu.org>
3758
3f733acc
MK
3759 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3760 out define.
3761
7d8d2918
MK
3762 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3763 FRAME.
3764
1c7cc583
MK
3765 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3766 * configure.host: Make i[3456]86-*-aix host obsolete.
3767 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3768 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3769 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3770 config/i386/xm-i386aix.h: Make files obsolete.
3771 * i386aix-nat.c: Make file obsolete.
3772 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3773 (i386aix-nat.o): Make target obsolete.
3774
e0ca2bb9
MK
3775 * config/i386/nm-gnu.h: Removed.
3776 * config/i386/nm-i386gnu.h: New file.
3777 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3778 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3779 Moved here from ...
3780 * config/i386/tm-i386gnu.h: ... here. Removed.
3781 * config/i386/xm-i386gnu.h: Removed.
3782 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3783 (NAT_FILE): Set to nm-i386gnu.h.
3784 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3785 * i386-tdep.c: New file.
3786 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3787 (i386gnu-tdep.o): Specify dependencies.
3788
16057ec7 37892002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3790
6b99ee2e
MK
3791 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3792 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3793 Adjust a few comments to reflect reality a bit closer.
3794 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3795 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3796 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3797 target_insert_watchpoint, target_remove_watchpoint):
3798 Move defines to ...
3799 * config/i386/nm-i386sco5.h: ... here.
3800 (kernel_u_size): Add prototype. Improve a few comments and add
3801 protection against multiple inclusion.
3802
d9a6f65c
MK
3803 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3804 out define.
3805
047eff6a
MK
3806 * uw-thread.c (SP_ARG0): Define if not already defined.
3807 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3808
dcdb1290
MK
3809 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3810
5d2d0b2a
MK
3811 * config/i386/tm-i386.h: Don't include "regcache.h".
3812
61113f8b
MK
3813 * i387-tdep.h (i387_print_float_info): New prototype.
3814 * i387-tdep.c (print_i387_value, print_i387_ext,
3815 print_i387_status_word, print_i387_control_word): Add `struct
3816 ui_file *' argument and use it for output.
3817 (i387_print_float_info): Renamed from i387_float_info. Add
3818 `struct gdbarch *' and `struct ui_file *' arguments and use the
3819 latter for output.
3820 * i386-tdep.c: Include "i387-tdep.h".
3821 (i386_gdbarch_init): Set print_float_info.
3822 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3823 (FLOAT_INFO): Remove define.
3824
46e0f506
MS
38252002-08-13 Michael Snyder <msnyder@redhat.com>
3826
3827 * mips-tdep.c (mips_push_arguments): Rename to
3828 mips_eabi_push_arguments, and tune for EABI.
3829 (MIPS_REGS_HAVE_HOME_P): Delete.
3830 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3831 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3832 Delete references to mips_regs_have_home_p.
3833
409268de
KS
38342002-08-14 Keith Seitz <keiths@redhat.com>
3835
3836 * Makefile.in (install-gdbtk): Create insight plugin directory.
3837 Install plugins.tcl file.
3838
ffc6a242
KS
38392002-08-14 Keith Seitz <keiths@redhat.com>
3840
3841 * configure.in: Move SUBDIRS to near top of the file so that
3842 --enable options may add things to it.
3843 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3844 * configure: Regenerate.
3845
ebafbe83
MS
38462002-08-13 Michael Snyder <msnyder@redhat.com>
3847
3848 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3849 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3850 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3851
32f6f25d
AC
38522002-08-13 Andrew Cagney <ac131313@redhat.com>
3853
3854 * vax-tdep.c (vax_get_saved_register): Delete function.
3855 (vax_gdbarch_init): Update.
3856 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3857 (ns32k_gdbarch_init): Update.
3858 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3859 (alpha_gdbarch_init): Update.
3860
53826de9
AC
38612002-08-13 Andrew Cagney <cagney@redhat.com>
3862
3863 * regcache.c (init_regcache_descr): Overallocate the
3864 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3865 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3866 nr_raw_registers.
3867 (set_register_cached): Add range checking assertions. Use
3868 current_regcache.
3869
16057ec7 38702002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
3871
3872 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3873 numbers for MMX registers.
3874
7b4c2dce
AC
38752002-08-13 Andrew Cagney <cagney@redhat.com>
3876
3877 * i386-tdep.c (i386_gdbarch_init): Use
3878 generic_unwind_get_saved_register.
3879
1e03ad20
KB
38802002-08-13 Kevin Buettner <kevinb@redhat.com>
3881
3882 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3883 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3884 target vector.
3885 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3886 Delete. Add comment regarding this now-deleted target method.
3887
548bcbec
SC
38882002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3889
3890 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3891 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3892 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3893 real PC and the page number (if it's within the memory bank window).
3894 (m68hc11_pseudo_register_write): Likewise when saving.
3895 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3896 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3897 (m68hc11_register_raw_size): And use 32-bit for it.
3898 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3899 16K memory bank is used by the prog; also use the virtual pc.
3900
7df11f59
SC
39012002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3902
3903 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3904 (m68hc11_gdbarch_init): Install it in gdbarch.
3905 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3906 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3907 (MSYMBOL_SIZE): New for documentation.
3908 (insn_return_kind): Enum to specify how a function returns.
3909 (frame_extra_info): Cleanup and record the return mode.
3910 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3911 register in address computation.
3912 (m68hc11_get_return_insn): New to obtain the return instruction used
3913 by the function.
3914 (m68hc11_frame_init_saved_regs): Take into account the return
3915 instruction used by the function for far and interrupt functions.
3916 (m68hc11_init_extra_frame_info): Take into account page register.
3917 (m68hc11_frame_args_address): Adjust according to the return mode.
3918 (show_regs): Print page register only when it's used.
3919
5706502a
SC
39202002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3921
3922 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3923 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3924 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3925 registers.
3926 (m68hc11_register_raw_size): Likewise.
3927
28fc6740
AC
39282002-08-13 Andrew Cagney <cagney@redhat.com>
3929
3930 * i386-tdep.c (i386_register_name): Handle mmx registers.
3931 (mmx_regnum_p): New function.
3932 (i386_mmx_names): New array.
3933 (mmx_num_regs): New variable.
3934 (i386_pseudo_register_read): New function.
3935 (i386_pseudo_register_write): New function.
3936 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3937
3938 * regcache.c (regcache_raw_read_unsigned): New function.
3939 (regcache_raw_read_signed): New function.
3940 * regcache.h (regcache_raw_read_unsigned): Declare.
3941 (regcache_raw_read_signed): Declare.
3942
a378f419
AC
39432002-08-13 Andrew Cagney <cagney@redhat.com>
3944
3945 * regcache.c (regcache_raw_read_as_address): Delete function.
3946 (regcache_cooked_read_signed): New function.
3947 (regcache_cooked_read_unsigned): New function.
3948 * regcache.h (regcache_cooked_read_signed): Declare.
3949 (regcache_cooked_read_unsigned): Declare.
3950 (regcache_raw_read_as_address): Delete declaration.
3951
3952 * blockframe.c (generic_read_register_dummy): Use
3953 regcache_cooked_read_unsigned.
3954 * i386-tdep.c (i386_extract_struct_value_address): Use
3955 regcache_cooked_read_unsigned.
3956
81967506
SC
39572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3958
3959 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3960 double sizes according to ELF ABI flags.
3961 (gdbarch_tdep): Record elf_flags.
3962
ffe1f3ee
SC
39632002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3964
3965 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3966 (m6812_prolog): They can appear in 68HC12 function prologue.
3967 (m68hc11_frame_chain): Cleanup.
3968
98216c5d
AC
39692002-08-12 Andrew Cagney <cagney@redhat.com>
3970
3971 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3972 declarations.
3973 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3974 (i386_linux_register_raw_size): Delete function.
3975 (i386_linux_init_abi): Update.
3976 * i386-tdep.c (i386_register_raw_size): Delete function.
3977 (i386_register_byte): Delete function.
3978 (i386_gdbarch_init): Update.
3979 (i386_register_size): Delete array.
3980 (i386_register_offset): Delete array.
3981
3982 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3983 (REGISTER_RAW_SIZE): Delete macro.
3984 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3985 (REGISTER_BYTE): Delete macro.
3986
3b19021e
AS
39872002-08-11 Aidan Skinner <aidan@velvet.net>
3988
3989 * ada-lang.c (ada_lookup_partial_symbol)
3990 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3991 prototype names so that grep ^func works properly.
3992
3993 * ada-lang.c (ada_array_element_type)
3994 (ada_lookup_partial_symbol): Fix typos in parameter list.
3995
3996 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3997 Fix prototype names so that grep ^func works properly.
3998
b063e7a2
AC
39992002-08-10 Andrew Cagney <cagney@redhat.com>
4000 Elena Zannoni <ezannoni@redhat.com>
4001 Martin M. Hunt <hunt@redhat.com>
4002
4003 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4004 (build_builtin_type_vec128i): Set the vector bit.
4005 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4006 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4007 (build_builtin_type_vec64): New function.
4008 (build_builtin_type_vec64i): New function.
4009 (build_gdbtypes): Initialize builtin_type_vec64 and
4010 builtin_type_vec64i.
4011
a7e3c2ad
AC
40122002-08-09 Andrew Cagney <cagney@redhat.com>
4013
4014 * regcache.c (regcache_dump): Compare the register offset
4015 with REGISTER_BYTE.
4016 * arch-utils.c (generic_register_byte): New function.
4017 * arch-utils.h (generic_register_byte): Declare.
4018 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4019 * gdbarch.h, gdbarch.c: Regenerate.
4020
af030b9a
AC
40212002-08-09 Andrew Cagney <cagney@redhat.com>
4022
4023 * regcache.c: Include "gdbcmd.h"
4024 (_initialize_regcache): Add commands "maintenance print
4025 registers", "maintenance print raw-registers" and "maintenance
4026 print cooked-registers".
4027 (enum regcache_dump_what): Define.
4028 (dump_endian_bytes): New function.
4029 (regcache_dump): New function.
4030 (regcache_print): New function.
4031 (maintenance_print_registers): New function.
4032 (maintenance_print_raw_registers): New function.
4033 (maintenance_print_cooked_registers): New function.
4034 * Makefile.in (regcache.o): Update dependencies.
4035
cb3d25d1
MS
40362002-08-09 Michael Snyder <msnyder@redhat.com>
4037
4038 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4039 (mips_push_arguments): Correct some comments. Use paddr_nz
4040 for printing addresses in debug output. Replace static
4041 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4042 (mips_n32n64_push_arguments): New function, cloned from
4043 mips_push_arguments and tuned for the n32/n64 ABI.
4044 (mips_push_register): Buffer needs dynamic allocation.
4045 (mips_print_register): Ditto.
4046 (do_gp_register_row): Ditto.
4047 (mips_store_return_value): Ditto.
4048 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4049
2163ab9d
DH
40502002-08-09 Don Howard <dhoward@redhat.com>
4051
4052 * memattr.c (mem_info_command): Print special case of upper bound
4053 as max CORE_ADDR + 1.
4054
b78bcb18
MS
40552002-08-08 Michael Snyder <msnyder@redhat.com>
4056
4057 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4058 returns structs by ref if they're too big to fit in two registers.
4059
ffabd70d
KB
40602002-08-09 Kevin Buettner <kevinb@redhat.com>
4061
4062 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4063 saved regs value.
4064 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4065 mips_find_saved_regs().
4066 (mips_pop_frame): Likewise.
4067
fbcdb4a3
KB
40682002-08-09 Kevin Buettner <kevinb@redhat.com>
4069
4070 * blockframe.c (frame_saved_regs_register_unwind): Revise
4071 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4072 frames are in use.
4073
3c3bea1c
GS
40742002-08-09 Grace Sainsbury <graces@redhat.com>
4075
4076 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4077 T-packets; the 'a' is not taken as a register number.
4078 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4079 (remote_stopped_data_address): New functions; add to target
4080 vector.
4081 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4082 prototypes to match other implementations of this
4083 function. replace integer argument with pointer -- the length
4084 field in the Z-packet is the length of what is pointed to or 1 if
4085 pointer is null. Add to target vector.
4086 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4087 target vector.
4088
4089 From Mark Salter:
4090 * remote.c (remote_wait): Add support to extract optional
4091 watchpoint information from T-packet. Ignore unrecognized
4092 optional info in T-packet.
4093 (remote_async_wait): Ditto.
4094
5d1d95de
CV
40952002-08-09 Corinna Vinschen <vinschen@redhat.com>
4096
4097 * cli/cli-dump.c: Change fopen modes to use binary open modes
4098 as defined in include/fopen-bin.h throughout.
4099
c86b5b38
MS
41002002-08-08 Michael Snyder <msnyder@redhat.com>
4101
4102 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4103
b30590dc
KB
41042002-08-08 Kevin Buettner <kevinb@redhat.com>
4105
4106 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4107 assertion failure by returning early after a warning.
4108
498868ed
KB
41092002-08-08 Kevin Buettner <kevinb@redhat.com>
4110
4111 * mips-tdep.c (mips_find_saved_regs): Make static.
4112 (mips_frame_init_saved_regs): New function.
4113 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4114 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4115 (mips_find_saved_regs): Delete declaration.
4116
b2dd6311
GS
41172002-08-08 Grace Sainsbury <graces@redhat.com>
4118
3c3bea1c
GS
4119 * remote.c (remote_wait, remote_async_wait): Change
4120 thread_num from int to ULONGEST.
4121 (unpack_varlen_hex): Change result parameter from
4122 int * to ULONGEST *.
b2dd6311 4123
ea47855f
AC
41242002-08-08 Andrew Cagney <ac131313@redhat.com>
4125
4126 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4127 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4128 powerpc*-*-*.
4129 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4130
69db8bae
AC
41312002-08-08 Andrew Cagney <cagney@redhat.com>
4132
4133 * gcore.c (override_derive_stack_segment): Delete variable.
4134 (preempt_derive_stack_segment): Delete function.
4135 (derive_stack_segment): Delete function.
4136 (default_derive_stack_segment): Renamed to derive_stack_segment.
4137 (override_derive_heap_segment): Delete variable.
4138 (preempt_derive_heap_segment): Delete function.
4139 (derive_heap_segment): Delete function.
4140 (default_derive_heap_segment): Rename to derive_heap_segment.
4141
cb811fe7
MS
41422002-08-06 Michael Snyder <msnyder@redhat.com>
4143
4144 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4145 * mips-tdep.c (mips_EABI_use_struct_convention,
4146 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4147 New functions. (mips_use_struct_convention): Delete.
4148 (mips_gdbarch_init): set use_gdbarch_convention.
4149
8b389c40
MS
41502002-08-06 Michael Snyder <msnyder@redhat.com>
4151
4152 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4153 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4154 mips_o32_reg_struct_has_addr): New functions.
4155 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4156
5c27f28a
AC
41572002-08-07 Andrew Cagney <ac131313@redhat.com>
4158
4159 * regcache.c (pseudo_register): Delete function.
4160 (fetch_register): Delete function.
4161 (store_register): Delete function.
4162 (regcache_raw_read, legacy_read_register_gen): Use
4163 target_fetch_registers instead of fetch_register.
4164 (legacy_write_register_gen, regcache_raw_write): Use
4165 target_store_register instead of store_register.
4166 (write_register_bytes): Ditto.
4167
4168 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4169 (STORE_PSEUDO_REGISTER): Delete.
4170 * gdbarch.h, gdbarch.c: Regenerate.
4171
5b331675
CV
41722002-08-06 Corinna Vinschen <vinschen@redhat.com>
4173
4174 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4175 write dump file binary.
4176
6acdf5c7
MS
41772002-08-05 Michael Snyder <msnyder@redhat.com>
4178
4179 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4180 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4181 (mips_gdbarch_init): Set N32 target to be mips64.
4182
b2f01c35
KB
41832002-08-06 Kevin Buettner <kevinb@redhat.com>
4184
4185 * frame.c (find_saved_register): Break out of loop once saved
4186 register address is found. Don't mention sparc in loop comment
4187 anymore.
4188
63db5580
KB
41892002-08-06 Kevin Buettner <kevinb@redhat.com>
4190
4191 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4192 mips_default_saved_regsize to 8.
4193
5e34e75e
AC
41942002-08-06 Andrew Cagney <ac131313@redhat.com>
4195
4196 * gcore.c: Do not include <sys/procfs.h>.
4197 * Makefile.in (gcore.o): Update dependencies.
4198
eb4c54a2
AC
41992002-08-06 Andrew Cagney <cagney@redhat.com>
4200
4201 * configure.tgt: Make arc-*-* obsolete.
4202 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4203 * MAINTAINERS: Make arc-elf obsolete.
4204 * arc-tdep.c: Make file obsolete.
4205 * config/arc/arc.mt: Ditto.
4206 * config/arc/tm-arc.h: Ditto.
4207
ced15480
TR
42082002-08-05 Theodore A. Roth <troth@verinet.com>
4209
c1bab85b 4210 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4211
b4743822
AC
42122002-08-05 Andrew Cagney <ac131313@redhat.com>
4213
4214 * mcore-tdep.c (mcore_gdbarch_init): Use
4215 generic_unwind_get_saved_register instead of
4216 generic_get_saved_register.
4217 * v850-tdep.c (v850_gdbarch_init): Ditto.
4218 * frv-tdep.c (frv_gdbarch_init): Ditto.
4219 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4220 * s390-tdep.c (s390_gdbarch_init): Ditto.
4221 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4222 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4223 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4224
3956d554
JB
42252002-08-05 Joel Brobecker <brobecker@gnat.com>
4226
4227 * objfiles.h: Add missing #include "symfile.h"
4228
4229 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4230
8249c0d6
AC
42312002-08-04 Andrew Cagney <ac131313@redhat.com>
4232
4233 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4234 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4235 of FIELD_BITSIZE.
4236
b9d14705
DJ
42372002-08-04 Daniel Jacobowitz <drow@mvista.com>
4238
4239 * NEWS: Cleanup and nitpick.
4240
dd73b9bb
AC
42412002-08-03 Andrew Cagney <ac131313@redhat.com>
4242
4243 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4244
043a27f8
AC
42452002-08-03 Andrew Cagney <ac131313@redhat.com>
4246
4247 * Makefile.in (gdbtk-bp.o): Update dependencies.
4248 (gdbtk-register.o): Ditto.
4249 (gdbtk-varobj.o): Ditto.
4250
46ce284d
AC
42512002-08-03 Andrew Cagney <cagney@redhat.com>
4252
4253 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4254 m68hc11_fetch_pseudo_register.
4255 (m68hc11_pseudo_register_write): Replace
4256 m68hc11_store_pseudo_register.
4257 (m68hc11_gdbarch_init): Update.
4258
b66d6d2e
AC
4259Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4260
4261 * gdbarch.sh: Include "gdb_string.h".
4262 * gdbarch.c: Regenerate.
4263
4264 * regcache.c: Include "gdb_string.h".
4265 * ax-general.c: Ditto.
4266 * varobj.c: Ditto.
4267 * std-regs.c: Ditto.
4268 * fbsd-proc.c: Ditto.
4269 * thread.c: Ditto.
4270
4271 * Makefile.in (regcache.o): Update dependencies.
4272 (thread.o, gdbarch.o): Ditto.
4273 (ax-general.o, gdbarch.o): Ditto.
4274 (varobj.o, std-regs.o): Ditto.
4275 (fbsd-proc.o): Specify dependencies.
4276
29e1842b
AC
42772002-08-02 Andrew Cagney <cagney@redhat.com>
4278
4279 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4280 regnum.
4281 (regcache_cooked_write): Ditto.
4282
68365089
AC
42832002-08-02 Andrew Cagney <ac131313@redhat.com>
4284
4285 * regcache.c (regcache_cooked_read): New function.
4286 (regcache_cooked_write): New function.
4287 (read_register_gen): Rewrite using regcache_cooked_read.
4288 (write_register_gen): Rewrite using regcache_cooked_write.
4289
4290 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4291 Declare.
4292
d8124050
AC
42932002-08-02 Andrew Cagney <cagney@redhat.com>
4294
4295 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4296 Replace the architecture methods register_read and register_write.
4297 * gdbarch.h, gdbarch.c: Regenerate.
4298 * regcache.c (init_regcache_descr): Update.
4299 (read_register_gen): Update.
4300 (write_register_gen): Update.
4301 (supply_register): Update comment.
4302
4303 * sh-tdep.c (sh_gdbarch_init): Update.
4304 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4305 `regcache' and `gdbarch' parameters. Make `buffer' a void
4306 pointer. Update code.
4307 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4308 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4309 void pointer. Update code.
4310 (sh64_register_write): Delete.
4311 (sh4_register_read): Delete.
4312 (sh64_register_read): Delete.
4313 (sh4_register_write): Delete.
4314 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4315 void pointer, `to' parameter a void pointer.
4316 (sh_sh64_register_convert_to_raw): Ditto.
4317
a6425924
KB
43182002-08-01 Kevin Buettner <kevinb@redhat.com>
4319
4320 * mips-tdep.c (mips_register_virtual_type): Use architecture
4321 invariant return values.
4322
ff5922b5
AC
43232002-08-01 Andrew Cagney <cagney@redhat.com>
4324
4325 * linux-proc.c: Include "gdb_string.h".
4326 * Makefile.in (linux-proc.o): Update dependency list.
4327
32a6503c
KB
43282002-08-01 Kevin Buettner <kevinb@redhat.com>
4329
4330 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4331 comment.
4332
ccaa32c7
GS
43332002-08-01 Grace Sainsbury <graces@redhat.com>
4334
4335 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4336 to_insert_watchpoint, to_remove_watchpoint,
4337 to_stopped_by_watchpoint, to_stopped_data_address,
4338 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4339 target vecctor. Define their corresponding macros so they call
4340 them.
4341
4342 * target.c: Add default and debug versions of for
4343 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4344 to_insert_watchpoint, to_remove_watchpoint,
4345 to_stopped_by_watchpoint, to_stopped_data_address,
4346 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4347
78fde5f8
KB
43482002-08-01 Kevin Buettner <kevinb@redhat.com>
4349
4350 * mips-tdep.c (mips_register_virtual_type): New function.
4351 (mips_gdbarch_init): Register mips_register_virtual_type()
4352 with gdbarch machinery.
4353 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4354 this file instead of tm-bigmips.h.
4355 (MIPS_REGSIZE): Delete this macro.
4356 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4357 multiarch version in mips-tdep.c will be found.
4358
db034ac5
AC
43592002-08-01 Andrew Cagney <cagney@redhat.com>
4360
4361 * NEWS: Menion that CHILL has been made obsolete.
4362
4363 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4364 * stabsread.c (read_range_type): Ditto.
4365 * gdbtypes.h: Ditto.
4366 * language.c (binop_type_check): Ditto.
4367 (binop_result_type): Ditto.
4368 (integral_type): Ditto.
4369 (character_type): Ditto.
4370 (string_type): Ditto.
4371 (boolean_type): Ditto.
4372 (structured_type): Ditto.
4373 (lang_bool_type): Ditto.
4374 (binop_type_check): Ditto.
4375 * language.h (_LANG_chill): Ditto.
4376 * dwarfread.c (set_cu_language): Ditto.
4377 * dwarfread.c (CHILL_PRODUCER): Ditto.
4378 * dwarfread.c (handle_producer): Ditto.
4379 * expression.h (enum exp_opcode): Ditto.
4380 * eval.c: Ditto for comments.
4381 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4382 * expprint.c (print_subexp): Ditto.
4383 (print_subexp): Ditto.
4384 * valops.c (value_cast): Ditto.
4385 (search_struct_field): Ditto.
4386 * value.h (COERCE_VARYING_ARRAY): Ditto.
4387 * symfile.c (init_filename_language_table): Ditto.
4388 (add_psymbol_with_dem_name_to_list): Ditto.
4389 * valarith.c (value_binop): Ditto.
4390 (value_neg): Ditto.
4391 * valops.c (value_slice): Ditto.
4392 * symtab.h (union language_specific): Ditto.
4393 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4394 (SYMBOL_DEMANGLED_NAME): Ditto.
4395 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4396 * defs.h (enum language): Ditto.
4397 * symtab.c (got_symtab): Ditto.
4398 * utils.c (fprintf_symbol_filtered): Ditto.
4399
4400 * ch-typeprint.c: Make file obsolete.
4401 * ch-valprint.c: Make file obsolete.
4402 * ch-lang.h: Make file obsolete.
4403 * ch-exp.c: Make file obsolete.
4404 * ch-lang.c: Make file obsolete.
4405
4406 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4407 CHILL_LIB.
4408 (TARGET_FLAGS_TO_PASS): Ditto.
4409 (CHILLFLAGS): Obsolete.
4410 (CHILL): Obsolete.
4411 (CHILL_FOR_TARGET): Obsolete.
4412 (CHILL_LIB): Obsolete.
4413 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4414 ch-valprint.c.
4415 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4416 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4417 ch-lang.o.
4418 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4419 targets.
4420
8aaf0b47
JB
44212002-07-31 Joel Brobecker <brobecker@gnat.com>
4422
4423 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4424 This does not change anything at the moment, but will be helpful
4425 later when full Ada support is integrated.
4426
f3a7b3a5
KB
44272002-07-31 Kevin Buettner <kevinb@redhat.com>
4428
4429 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4430 help message.
4431
fb850278
KB
44322002-07-31 Kevin Buettner <kevinb@redhat.com>
4433
4434 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4435 and save it in a local variable. Use variable in later test.
4436
e3bddbfa
KB
44372002-07-31 Kevin Buettner <kevinb@redhat.com>
4438
4439 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4440 test. (Thanks to Daniel Jacobowitz.)
4441
28d169de
KB
44422002-07-31 Kevin Buettner <kevinb@redhat.com>
4443
4444 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4445 (mips_abi_strings): Add "n64".
4446 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4447
7fe7e44e
KB
44482002-07-31 Kevin Buettner <kevinb@redhat.com>
4449
4450 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4451 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4452
c6caf090
KB
44532002-07-31 Kevin Buettner <kevinb@redhat.com>
4454
4455 * utils.c (host_pointer_to_address, address_to_host_pointer):
4456 Use gdb_assert() instead of explicit call to internal_error().
4457
c41669e0
KB
44582002-07-30 Kevin Buettner <kevinb@redhat.com>
4459
4460 * Makefile.in (rs6000-nat.o): Update dependencies.
4461
4462 From Nicholas Duffek:
4463 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4464 (aix-thread.o): New rule.
4465 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4466 * config/powerpc/aix432.mh: New file.
4467
2fda4977
DJ
44682002-07-30 Daniel Jacobowitz <drow@mvista.com>
4469
4470 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4471 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4472 (fetch_core_registers, ppc_linux_supply_gregset)
4473 (ppc_linux_supply_fpregset): New functions.
4474 (ppc_linux_regset_core_fns): New.
4475 (_initialize_ppc_linux_tdep): Call add_core_fns.
4476 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4477 and ppc_linux_supply_gregset.
4478 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4479 (supply_fpregset): Call ppc_linux_supply_fpregset.
4480 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4481 corelow.o.
4482 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4483
729051e6
DJ
44842002-07-30 Daniel Jacobowitz <drow@mvista.com>
4485
4486 * symtab.c (lookup_symbol): Demangle before lowercasing.
4487
5f8a3188
AC
44882002-07-30 Andrew Cagney <ac131313@redhat.com>
4489
4490 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4491 declaration.
4492 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4493 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4494 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4495 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4496 "gdb_string.h".
4497 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4498 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4499 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4500 (avr-tdep.o, mon960-rom.o): Ditto.
4501 (aout_stabs_gnu_h): Define.
4502 (symtab_h): Remove $(gdb_obstack_h).
4503
67f07146
JB
45042002-07-30 Jim Blandy <jimb@redhat.com>
4505
4506 Patch from David Carlton <carlton@math.stanford.edu>:
4507 * gdbinit.in: Move the `dir' commands that add GDB's own source
4508 directory to the search path to the end, so that the `gdb' source
4509 directory will be searched first.
4510
04ea0df1
AC
45112002-07-29 Andrew Cagney <ac131313@redhat.com>
4512
4513 * gdb_obstack.h: New file.
4514 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4515 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4516 * objfiles.h: Include "gdb_obstack.h".
4517 * Makefile.in (gdb_obstack_h): Define.
4518 (symtab_h): Add $(gdb_obstack_h).
4519 (objfiles_h): Add $(gdb_obstack_h).
4520
4521 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4522 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4523 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4524 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4525 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4526 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4527 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4528 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4529
4530 * Makefile.in (bcache.o): Update dependencies.
4531 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4532 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4533 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4534 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4535 (stabsread.o, symfile.o, symmisc.o): Ditto.
4536 (symtab.o, typeprint.o, macroexp.o): Ditto.
4537 (macrotab.o, mdebugread.o): Ditto.
4538 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4539 (coff_ecoff_h, aout_aout64_h): Define.
4540 (aout_stabs_gnu_h, libaout_h): Define.
4541
d138e37a
AC
45422002-07-29 Andrew Cagney <cagney@redhat.com>
4543
4544 * regcache.c (struct regcache_descr): Rename nr_registers to
4545 nr_cooked_registers. Revise comments describing the structure
4546 member fields.
4547 (init_regcache_descr): Update.
4548 (init_legacy_regcache_descr): Update.
4549 (read_register_gen, write_register_gen): When a cooked register in
4550 the raw register range, directly access the value from the raw
4551 register cache.
4552
460e6ec3
AC
45532002-07-29 Andrew Cagney <ac131313@redhat.com>
4554
4555 * z8k-tdep.c: Do not include "obstack.h".
4556 * h8300-tdep.c, h8500-tdep.c: Ditto.
4557 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4558 * valprint.c, v850-tdep.c: Ditto.
4559 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4560 * mn10200-tdep.c: Ditto.
4561
4562 * Makefile.in (z8k-tdep.o): Update dependencies.
4563 (m68hc11-tdep.o, valprint.o): Ditto.
4564 (v850-tdep.o, d10v-tdep.o): Ditto.
4565 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4566 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4567 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4568 (sh_opc_h, gdb_sim_sh_h): Define.
4569 (elf_sh_h, elf_bfd_h): Define.
4570 (opcode_m68hc11_h): Define.
4571 (OPCODES_SRC, OPCODES_DIR): define.
4572 (OPCODES): Use $(OPCODES_DIR).
4573 (gdb_sim_d10v_h): Rename sim_d10v_h.
4574 (gdb_sim_arm_h): Rename sim_arm_h.
4575
790c9cf0
KB
45762002-07-26 Kevin Buettner <kevinb@redhat.com>
4577
4578 * utils.c (host_pointer_to_address, address_to_host_pointer):
4579 Change internal_error() message to indicate function responsible
4580 for the error.
4581
9647fa49
KB
45822002-07-26 Kevin Buettner <kevinb@redhat.com>
4583
4584 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4585 calls to local_hex_string_custom().
4586
dabbe2c0
KB
45872002-07-26 Kevin Buettner <kevinb@redhat.com>
4588
4589 * irix5-nat.c: Move IRIX shared library support from here...
4590 * solib-irix.c: ...to here. Revised substantially to work with
4591 generic solib framework.
4592
b96d0a4e
KB
4593 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4594 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4595 * mips-irix-tdep.c: New file.
4596
313fb2f6
KB
4597 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4598 (mips-irix-tdep.o, solib-irix.o): New rules.
4599 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4600 solib-irix.o.
4601 * config/mips/irix6.mt (TDEPFILES): Likewise.
4602 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4603
ab2eaf26
KB
46042002-07-26 Kevin Buettner <kevinb@redhat.com>
4605
177e4768 4606 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4607 disabled (via ``#if 0'') includes.
4608
7244546a
KB
46092002-07-26 Kevin Buettner <kevinb@redhat.com>
4610
4611 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4612 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4613 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4614 Add support for the fpscr register.
4615 * rs6000-nat.c (regmap, fetch_inferior_registers)
4616 (store_inferior_registers, fetch_core_registers): Likewise.
4617
dd7be90a
KB
46182002-07-26 Kevin Buettner <kevinb@redhat.com>
4619
4620 * rs6000-nat.c (language.h): Include.
4621 (special_regs): Delete this array.
4622 (regmap): New function.
4623 (fetch_register, store_register): Use regmap() to map gdb
4624 register numbers to ptrace register numbers. Also, use
4625 outputs from regmap() to make decisions regarding type of
4626 ptrace() call to make. In particular, don't compare against
4627 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4628 (fetch_inferior_registers, store_inferior_registers): Where
4629 possible, obtain register numbers from tdep struct. Don't
4630 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4631 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4632 (LAST_UISA_SP_REGNUM): Delete.
4633
11bf77db
KB
46342002-07-25 Kevin Buettner <kevinb@redhat.com>
4635
4636 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4637 (fetch_registers, store_register, fetch_core_registers): Don't
4638 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4639 regcache_collect() as appropriate.
4640 (find_toc_address): Format hex address with local_hex_string().
4641
06afebeb
AC
46422002-07-25 Andrew Cagney <ac131313@redhat.com>
4643
4644 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4645 bfd/elf32-frv.c.
4646
8c554d79
TT
46472002-07-24 Tom Tromey <tromey@redhat.com>
4648
4649 * jv-exp.y: Marked all strings with _().
4650 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4651 internal_error.
4652 (MethodInvocation, CastExpression, parse_number, yyerror,
4653 java_type_from_name, push_expression_name, yylex): Typo fixes.
4654
e4c242d9
DJ
46552002-07-24 Daniel Jacobowitz <drow@mvista.com>
4656
4657 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4658 (tee_file_flush, tee_file_write, tee_file_fputs)
4659 (tee_file_isatty): New.
4660 * ui-file.h (tee_file_new): Add prototype.
4661
ebf56fd3
AS
46622002-07-24 Aidan Skinner <aidan@velvet.net>
4663
4664 * ada-lang.c: Change k&r style function definitions to prototyped
4665 form.
4666 * ada-typeprint.c: Change k&r style function definitions to prototyped
4667 form.
4668 * ada-valprint.c: Change k&r style function definitions to prototyped
4669 form.
4670
7fb623f7
AC
46712002-07-24 Andrew Cagney <cagney@redhat.com>
4672
4673 * README: Remove reference to remote-bug.
4674 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4675 remote-bug.c.
4676 (m88k-nat.o): Delete rule.
4677 (m88k-tdep.o): Delete rule.
4678 (remote-bug.o): Delete rule.
4679 * MAINTAINERS: Mark as obsolete.
4680 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4681 * m88k-tdep.c: Make file obsolete.
4682 * config/m88k/m88k.mh: Ditto.
4683 * config/m88k/delta88v4.mh: Ditto.
4684 * config/m88k/delta88v4.mt: Ditto.
4685 * config/m88k/delta88.mt: Ditto.
4686 * config/m88k/delta88.mh: Ditto.
4687 * remote-bug.c: Ditto.
4688 * config/m88k/tm-delta88.h: Ditto.
4689 * config/m88k/nm-delta88v4.h: Ditto.
4690 * config/m88k/xm-delta88.h: Ditto.
4691 * config/m88k/xm-dgux.h: Ditto.
4692 * config/m88k/tm-m88k.h: Ditto.
4693 * config/m88k/nm-m88k.h: Ditto.
4694 * config/m88k/tm-delta88v4.h: Ditto.
4695 * m88k-nat.c: Ditto.
4696 * cxux-nat.c: Ditto.
4697 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4698 and m88*-*-* obsolete.
4699 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4700 m88*-*-* obsolete.
4701
37611a2b
AC
47022002-07-24 Andrew Cagney <cagney@redhat.com>
4703
4704 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4705 constant. Same for local pointer variables.
4706 (extract_signed_integer): Ditto.
4707 * defs.h (extract_unsigned_integer): Update.
4708 (extract_signed_integer): Update.
4709
1aaa5f99
AC
47102002-07-24 Andrew Cagney <cagney@redhat.com>
4711
4712 * regcache.c (regcache_raw_write): Change buf parameter to a
4713 constant void pointer.
4714 (regcache_raw_read): Change buf parameter to a void pointer.
4715 (legacy_write_register_gen): Change myaddr parameter a constant
4716 void pointer.
4717 (supply_register): Change val parameter to a const void pointer.
4718 * regcache.h (regcache_raw_write): Update declaration.
4719 (regcache_raw_read): Update declaration.
4720 (supply_register): Update declaration.
4721
b4f5539f
TT
47222002-07-24 Tom Tromey <tromey@redhat.com>
4723
4724 * defs.h (gdb_readline_wrapper): Declare.
4725 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4726 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4727 * top.c (gdb_readline_wrapper): New function.
4728 (command_line_input): Use it.
4729
0818c12a
AC
47302002-07-24 Andrew Cagney <cagney@redhat.com>
4731
4732 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4733 regcache_read and regcache_write.
4734 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4735 * regcache.c: Update.
4736 * sh-tdep.c (sh64_push_arguments): Update comment.
4737 (sh_pseudo_register_read): Update.
4738 (sh_pseudo_register_write): Update.
4739 (sh4_register_read): Update.
4740 (sh4_register_write): Update.
4741 (sh64_pseudo_register_read): Update.
4742 (sh64_pseudo_register_write): Update.
4743 (sh64_register_read): Update.
4744 (sh64_register_write): Update.
4745 * i386-tdep.c (i386_extract_return_value): Update.
4746 (i386_extract_struct_value_address): Update.
4747 (i386_extract_return_value): Update.
4748 * blockframe.c (generic_read_register_dummy): Update.
4749 (generic_call_dummy_register_unwind): Update
4750 * infrun.c (write_inferior_status_register): Update.
4751
f7321c06
JB
47522002-07-23 Jim Blandy <jimb@redhat.com>
4753
4754 * parser-defs.h (expression_context_pc): Make this extern.
4755 (Thanks to Michael Snyder.)
4756
2037aebb
AC
47572002-07-23 Andrew Cagney <ac131313@redhat.com>
4758
4759 GDB 5.2.1 released from 5.2 branch.
4760 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4761 * README: Update to mention 5.2.1.
4762
66504d44
MS
47632002-07-23 Mark Salter <msalter@redhat.com>
4764
4765 * remote.c (remote_read_bytes): Fix check for error.
4766
27bae383
KB
47672002-07-22 Kevin Buettner <kevinb@redhat.com>
4768
4769 * aix-thread.c (language.h): Include.
4770 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4771 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4772 Print newlines at end of debug messages.
4773 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4774 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4775
47762002-07-22 Kevin Buettner <kevinb@redhat.com>
4777
4778 * aix-thread.c (ppc-tdep.h): Include.
4779 (special_register_p): New function.
4780 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4781 (store_regs_user_thread): Use register number information from
4782 gdbarch_tdep struct instead of hardcoded offsets relative to
4783 FIRST_UISA_SP_REGNUM.
4784 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4785 special_register_p() instead of using FPLAST_REGNUM and
4786 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4787 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4788 will be MQ's register number.
4789
47902002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4791
4792 * aix-thread.c (ops): Rename to aix_thread_ops.
4793 (base_ops): Rename to base_target.
4794 (ops_attach): Rename to aix_thread_attach.
4795 (ops_detach): Rename to aix_thread_detach.
4796 (ops_resume): Rename to aix_thread_detach.
4797 (ops_wait): Rename to aix_thread_wait.
4798 (ops_kill): Rename to aix_thread_kill.
4799 (init_ops): Rename to init_aix_thread_ops.
4800 (ops_fetch_register): Rename to aix_thread_fetch_register.
4801 (ops_store_register): Rename to aix_thread_store_register.
4802 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4803 (ops_thread_alive): Rename to aix_thread_thread_alive.
4804 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4805 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4806 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4807 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4808 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4809 (store_regs_lib): Rename to store_regs_user_thread.
4810 (store_regs_kern): Rename to store_regs_kernel_thread.
4811
27bae383 48122002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
4813
4814 * aix-thread.c (ops_prepare_to_store): Eliminate.
4815 (init_ops): Don't initialize ops.prepare_to_store.
4816 (store_regs_kern): Pre-fetch register buffers from child,
4817 because some registers may not be in the cache. Copy
4818 regs from register cache only if they are cached.
4819 (store_regs_lib): Copy regs from register cache only
4820 if they are cached.
4821 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4822 fill_gprs64): Ditto.
4823
61c5da0b
KB
48242002-07-22 Kevin Buettner <kevinb@redhat.com>
4825
4826 * aix-thread.c (gdb_assert.h): Include.
4827 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4828 register sizes (from register cache) match size of buffer holding
4829 register data.
4830 (fill_sprs32): Change parameter types to match those in the ptrace()
4831 buffer.
4832 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4833 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4834
48352002-07-22 Michael Snyder <msnyder@redhat.com>
4836
4837 * aix-thread.c (supply_sprs64): Cosmetic change.
4838 (supply_sprs32): Cosmetic change.
4839 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4840 (fill_sprs64): Use regcache_collect instead of read_register.
4841 (store_regs_lib): Use regcache_collect instead of
4842 read_register. Use fill_sprs32 instead of fill_sprs64,
4843 if debugging a 32-bit architecture.
4844 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4845 out of the register cache, instead of passing a pointer into
4846 the register cache directly to ptrace. Use regcache_collect
4847 insteaad of read_register.
4848 (ops_prepare_to_store): Use target_read_registers instead
4849 of read_register_bytes.
4850
36479eb1
AS
48512002-07-20 Aidan Skinner <aidan@velvet.net>
4852
4853 * MAINTAINERS: Add self under write after approval.
4854
80ae6ee2
AS
48552002-07-20 Aidan Skinner <aidan@velvet.net>
4856
4857 * ada-tasks.c: Change k&r style function definitions to prototyped
4858 form.
4859
8a8ab2b9
AC
48602002-07-19 Andrew Cagney <ac131313@redhat.com>
4861
4862 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4863 * x86-64-tdep.c: Include "objfiles.h".
4864 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4865 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4866
fb16b900
ML
48672002-07-17 Michal Ludvig <michal@suse.cz>
4868
4869 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4870 (update_context): Initialise cfa variable.
4871
0fe7bf7b
MS
48722002-07-17 Michael Snyder <msnyder@redhat.com>
4873
4874 * aix-thread.c: Shorten some long lines.
4875 Bring comments into line with code spec.
4876
488f131b
JB
48772002-07-18 Joel Brobecker <brobecker@gnat.com>
4878
4879 * infrun.c: Re-indent using gdb_indent.sh.
4880
46c415d2
JB
48812002-07-18 Joel Brobecker <brobecker@gnat.com>
4882
4883 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4884 Leave the indentation temporarily untouched, to minimize the diffs.
4885
cdecafbe
EZ
48862002-07-18 Elena Zannoni <ezannoni@redhat.com>
4887
4888 * stabsread.c: Make os9k sections of the code obsolete,
4889 for real this time.
4890 * stabsread.h: Make os9k sections of the code obsolete.
4891
7b6aa020
ML
48922002-07-18 Michal Ludvig <mludvig@suse.cz>
4893
09ec9b38
ML
4894 * linux-low.c (regsets_store_inferior_registers): Add free()
4895 at the end of a loop to prevent memory leak.
4896 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4897 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
4898 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4899 line a comment.
4894ac5d 4900 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 4901
233282cd
JB
49022002-07-17 Jim Blandy <jimb@redhat.com>
4903
4904 * macrocmd.c (info_macro_command): Remove newline from error
4905 message.
4906
7b6aa020 49072002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
4908
4909 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4910 (sh_gdbarch_init): Use it for sh-dsp.
4911
f7ef9339
KB
49122002-07-16 Kevin Buettner <kevinb@redhat.com>
4913
4914 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4915 64-bit DWARF2 format.
4916
8dd72958
JB
49172002-07-16 Joel Brobecker <brobecker@gnat.com>
4918
4919 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4920 <sys/proc.h> when not available.
4921
a99a9e1b
AC
49222002-07-16 Andrew Cagney <ac131313@redhat.com>
4923
4924 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4925 * stabsread.c: Make os9k sections of the code obsolete.
4926 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4927 * config/i386/i386os9k.mt: Make file obsolete.
4928 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4929 (COMMON_OBS): Remove os9kread.o
4930 (SFILES): Remove os9kread.c.
4931 (os9kread.o, remote-os9k.o): Make target obsolete.
4932 * remote-os9k.c: Make file obsolete.
4933 * os9kread.c: Make file obsolete.
4934 * Makefile.in
4935
7a3085c1
AC
49362002-07-16 Andrew Cagney <ac131313@redhat.com>
4937
4938 * NEWS: Mention that the FR30 has been made obsolete.
4939 * fr30-tdep.c: Make file obsolete.
4940 * config/fr30/tm-fr30.h: Ditto.
4941 * config/fr30/fr30.mt: Ditto.
4942 * configure.tgt: Make fr30-*-elf obsolete.
4943 * MAINTAINERS: Make fr30-elf obsolete.
4944
28a93f5a
PM
49452002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4946
4947 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4948 found is not inside a section.
4949
be006b8b
KB
49502002-07-15 Kevin Buettner <kevinb@redhat.com>
4951
4952 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4953 strerror().
4954 (pdc_realloc): Use xrealloc() instead of realloc().
4955
14fa3751
KB
49562002-07-15 Kevin Buettner <kevinb@redhat.com>
4957
4958 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4959 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4960 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4961 macros.
4962
42cc437f
KB
49632002-07-15 Kevin Buettner <kevinb@redhat.com>
4964
4965 * aix-thread.c (ptrace_check): Eliminate goto.
4966 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4967 problem.
4968
8e2c28d4
KB
49692002-07-15 Kevin Buettner <kevinb@redhat.com>
4970
4971 * aix-thread.c (gdbcmd.h): Include.
4972 (DEBUG, DBG, DBG2, dbg): Eliminate.
4973 (debug_aix_thread): New static global.
4974 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4975 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4976 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4977 invocations to DBG and DBG2 macros to test against
4978 ``debug_aix_thread'' and call fprintf_unfiltered().
4979 (_initialize_aix_thread): Add new command "set debug aix-thread".
4980
30413464
AC
49812002-07-15 Andrew Cagney <ac131313@redhat.com>
4982
4983 From Gerhard Tonn <TON@de.ibm.com>:
4984 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4985 instead of supply_register.
4986
7c43edc1
AC
49872002-07-15 Andrew Cagney <ac131313@redhat.com>
4988
4989 * dwarf2cfi.c: Include "gdb_assert.h".
4990 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4991 non-NULL.
4992 (update_context): Do not use __func__. Add missing ``break''.
4993 (update_context): Do not use __func__.
4994
9364a0ef
EZ
49952002-07-15 Elena Zannoni <ezannoni@redhat.com>
4996
4997 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4998 and its setting. Set gdbarch instruction printing functions
4999 directly. For non-rs6000 case use new function
5000 gdb_print_insn_powerpc.
5001 (gdb_print_insn_powerpc): New function.
5002
3fbeef0b
AC
50032002-07-13 Andrew Cagney <ac131313@redhat.com>
5004
92eb23c5 5005 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5006 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5007 * configure.tgt: Mark d30v-*-* as obsolete.
5008 * d30v-tdep.c: Mark file as obsolete.
5009 * config/d30v/d30v.mt: Ditto.
5010 * config/d30v/tm-d30v.h: Ditto.
5011
aacb1f0a
AS
50122002-07-13 Aidan Skinner <aidan@velvet.net>
5013
5014 * ada-tasks.c (add_task_entry): replace calls to
5015 malloc() with xmalloc
5016 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5017
5018 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5019 ada_finish_decode_line_1, all_sals_for_line
5020 ada_breakpoint_rewrite): replace calls to free() with xfree()
5021
c11d79f2
KB
50222002-07-12 Kevin Buettner <kevinb@redhat.com>
5023
5024 From Nicholas Duffek (with minor changes by Martin Hunt,
5025 Louis Hamilton, and Kevin Buettner):
5026 * aix-thread.c: New file.
5027
8e19ed76
PS
50282002-07-12 Petr Sorfa <petrs@caldera.com>
5029
5030 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5031 complaint for invalid attribute class or form.
5032 (read_func_scope): DW_AT_frame_base
5033 better handling of DW_AT_block*.
5034 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5035 better handling of DW_AT_block*.
5036 (read_common_block): DW_AT_location
5037 better handling of DW_AT_block*.
5038 (read_partial_die): DW_AT_location better handling
5039 of DW_AT_block*.
5040 (new_symbol): DW_AT_external better handling of
5041 DW_AT_block*. Proper initialization of variable
5042 "addr".
5043 (attr_form_is_block): New function that returns true
5044 if the attribute's form is of DW_FORM_block*.
5045
295401f7
DJ
50462002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5047
5048 * valops.c (find_method_list): Remove comment about
5049 removed STATIC_MEMFUNCP argument.
5050 (value_find_oload_method_list): Likewise.
5051
e42dc924
KB
50522002-07-12 Kevin Buettner <kevinb@redhat.com>
5053
5054 From Nicholas Duffek:
5055 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5056 target_new_objfile_hook.
5057
6904b546
KB
50582002-07-12 Kevin Buettner <kevinb@redhat.com>
5059
5060 From Nicholas Duffek:
5061 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5062 csect.
5063
53fe9346
AC
50642002-07-12 Andrew Cagney <cagney@redhat.com>
5065
5066 * MAINTAINERS: Mention --enable-sim-build-warnings.
5067 (m68hc11-elf): Disable sim build warnings.
5068 (m32r-elf): Mark as broken obsolete candidate.
5069 (x86_64-linux-gnu): Mark as buildable with -Werror.
5070 (arm-elf): Change -w to ``,'' which enables warnings but not
5071 -Werror.
5072
af5f3db6
AC
50732002-07-12 Andrew Cagney <ac131313@redhat.com>
5074
5075 * bcache.h: Update copyright.
5076 (struct bstring, struct bcache): Move definition to "bcache.c".
5077 Replaced by opaque declaration.
5078 (bcache_xfree): Replace free_bcache.
5079 (bcache_xmalloc, bcache_memory_used): Declare.
5080
5081 * bcache.c: Update copyright.
5082 (struct bstring, struct bcache): Moved to here from "bcache.h".
5083 Update comments.
5084 (bcache_xmalloc, bcache_memory_used): New functions.
5085 (bcache_xfree): Replace function free_bcache.
5086
5087 * Makefile.in (objfiles.o): Add $(bcache_h).
5088 (objfiles_h): Remove $(bcache_h).
5089 (symfile.o): Add $(bcache_h).
5090
5091 * symmisc.c: Update copyright.
5092 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5093 (print_objfile_statistics): Use bcache_memory_used.
5094
5095 * symfile.c: Include "bcache.h".
5096 (reread_symbols): Use bcache_xfree.
5097 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5098 (add_psymbol_to_list): Pass psymbol_cache by value.
5099 (add_psymbol_with_dem_name_to_list): Ditto.
5100
5101 * objfiles.h: Update copyright.
5102 (struct bcache): Declare opaque. Do not include "bcache.h".
5103 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5104 bcache'' pointers.
5105 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5106
5107 * objfiles.c: Include "bcache.h". Update copyright.
5108 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5109 macro_cache.
5110 (free_objfile): Use bcache_xfree.
5111
444199e7
GS
51122002-07-11 Grace Sainsbury <graces@redhat.com>
5113
5114 * monitor.c (monitor_fetch_register): Make name a constant.
5115 (monitor_store_register): Same.
5116
261397f8
DJ
51172002-07-11 Daniel Jacobowitz <drow@mvista.com>
5118
5119 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5120 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5121 (finish_block) For non-function blocks, hash the symbol table. For
5122 function blocks, mark the symbol table as unhashed.
5123 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5124 (msymbol_hash_iw): Likewise.
5125 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5126 value.
5127 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5128 (lookup_minimal_symbol): Likewise for both.
5129 * symtab.h (struct block): Add `hashtable' flag. Comment the
5130 hashtable.
5131 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5132 (ALL_BLOCK_SYMBOLS): Update.
5133 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5134 (struct symbol): Add `hash_next' pointer.
5135 * symtab.c (lookup_block_symbol): Search using the hash table when
5136 possible.
5137 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5138 (search_symbols, find_addr_symbol): Likewise.
5139
5140 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5141 (read_dst_symtab): Likewise.
5142 * jv-lang.c (get_java_class_symtab): Likewise.
5143 * mdebugread.c: Include "gdb_assert.h".
5144 (shrink_block): Assert that the block being modified is not hashed.
5145 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5146 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5147 symbols.
5148 (dump_symtab): Recognize hashed blocks.
5149 * printcmd.c (print_frame_args): Assert that function blocks do not
5150 have hashed symbol tables.
5151 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5152 (fill_in_ada_prototype, debug_print_block): Likewise.
5153 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5154
6f0eaa01
CV
51552002-07-11 Corinna Vinschen <vinschen@redhat.com>
5156
5157 * stack.c (print_frame): Use result of frame_address_in_block()
5158 instead of fi->pc when evaluating symbols.
5159 (backtrace_command_1): Ditto.
5160
a208b0cb
AC
51612002-07-11 Andrew Cagney <cagney@redhat.com>
5162
5163 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5164 Make static.
5165
5166 * arm-tdep.c (arm_register_name): Make return type constant.
5167
a6b6b089
AC
51682002-07-10 Andrew Cagney <ac131313@redhat.com>
5169
5ae5f592
AC
5170 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5171 prototype.
5172 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5173 * s390-tdep.c (s390_fp_regnum): Ditto.
5174 (s390_read_fp): Ditto.
5175 (s390_pop_frame): Ditto.
5176 (_initialize_s390_tdep): Ditto.
5177 * remote.c (get_remote_state): Ditto.
5178 * procfs.c (mappingflags): Ditto.
5179 * memattr.c (_initialize_mem): Ditto.
5180 * mcore-tdep.c (mcore_pop_frame): Ditto.
5181 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5182 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5183 * language.c (set_case_str): Ditto.
5184 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5185 * frv-tdep.c (new_variant): Ditto.
5186 (frv_stopped_data_address): Ditto.
5187 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5188 (context_alloc): Ditto.
5189 (frame_state_alloc): Ditto.
5190 (unwind_tmp_obstack_init): Ditto.
5191 (unwind_tmp_obstack_free): Ditto.
5192 (cfi_read_fp): Ditto.
5193 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5194 (cris_pop_frame): Ditto.
5195 * c-lang.c (scanning_macro_expansion): Ditto.
5196 (finished_macro_expansion): Ditto.
5197 (c_preprocess_and_parse): Ditto.
5198 * gdbarch.sh: Ditto.
5199 * gdbarch.h, gdbarch.c: Regenerate.
5200 * config/mn10200/tm-mn10200.h: Adjust indentation.
5201 * target.c: Adjust indentation.
5202 * symtab.h: Adjust indentation.
5203 * stabsread.h: Adjust indentation.
5204 * remote-es.c: Adjust indentation.
5205 * os9kread.c: Adjust indentation.
5206
52072002-07-10 Andrew Cagney <ac131313@redhat.com>
5208
a6b6b089
AC
5209 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5210 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5211
a1789893
GS
52122002-07-10 Grace Sainsbury <graces@redhat.com>
5213
5214 * NEWS: Mention m68k, mcore multi-arching.
5215 * MAINTAINERS: Change status of m68k, mcore to reflect
5216 multi-arching.
5217
02f0d45d
DJ
52182002-07-10 Daniel Jacobowitz <drow@mvista.com>
5219
5220 * valops.c (find_overload_match): Free oload_syms.
5221
f15f768e
JB
52222002-07-09 Joel Brobecker <brobecker@gnat.com>
5223
5224 Define HAVE_SYS_PROC_H if sys/proc.h exists
5225 * configure.in: Add check for sys/proc.h
5226 * config.in: Regenerate.
5227 * configure: Regenerate.
5228
902a7139
GS
52292002-07-09 Grace Sainsbury <graces@redhat.com>
5230
5231 * config/m68k/tm-m68k.h: Remove macros wrapped in
5232 #if !GDB_MULTI_ARCH.
5233
a534e424
AC
52342002-07-08 Andrew Cagney <ac131313@redhat.com>
5235
5236 * config.in, configure: Regenerate.
5237
9b94f7bf
MK
52382002-07-08 Mark Kettenis <kettenis@gnu.org>
5239
5240 * dwarf2cfi.c: Include "gcore.h".
5241 (execute_stack_op): Fix implementation of the
5242 DW_OP_deref and DW_OP_deref_size operators by letting do their
5243 lookup in the target.
5244
1d34db41
MK
52452002-07-07 Mark Kettenis <kettenis@gnu.org>
5246
5247 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5248 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5249 tdep->sc_sp_offset.
5250
79d5b63a
DJ
52512002-07-05 Daniel Jacobowitz <drow@mvista.com>
5252
5253 Fix PR gdb/595, gdb/602
5254 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5255 Don't call value_cast, just read the vtable pointer; update comments
5256 to match.
5257
3bb912e8
GS
52582002-07-05 Grace Sainsbury <graces@redhat.com>
5259
5260 * config/mcore/tm-mcore.h: Remove file.
5261 * config/mcore/mcore.mt: Remove definition of TM_FILE
5262 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5263
ca39387d
MK
52642002-07-05 Mark Kettenis <kettenis@gnu.org>
5265
5266 * i386bsd-tdep.c: Include "gdb_string.h".
5267
efdc1108
GS
52682002-07-04 Grace Sainsbury <graces@redhat.com>
5269
5270 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5271 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5272 mcore-tdep.
5273 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5274 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5275 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5276 (RETVAL_REGNUM): Move macros from tm-mcore.h
5277 (mcore_reg_struct_has_addr): New function.
5278 (mcore_gdbarch_init): Added initializations for the macros removed
5279 from tm-mcore.h.
5280
bb21884d
MK
52812002-07-04 Mark Kettenis <kettenis@gnu.org>
5282
5283 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5284 traditonal string branding within the ELF header.
5285
228c6d41
DJ
52862002-07-04 Daniel Jacobowitz <drow@mvista.com>
5287
5288 * symtab.c (remove_params): New function.
5289 (make_symbol_overload_list): Use it instead of cplus_demangle.
5290 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5291
2404952e
MK
52922002-07-04 Mark Kettenis <kettenis@gnu.org>
5293
e5e4acad
MK
5294 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5295
baadce09
MK
5296 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5297 New variables.
5298 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5299 and tdep->sigtramp_end.
5300 * i386obsd-nat.c: New file.
5301 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5302
2404952e
MK
5303 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5304 Don't call get_current_frame().
5305
9b4f1ba7
PM
53062002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5307
5308 * i386-nat.c (child_post_startup_inferior): New function
5309 calling i386_cleanup_dregs if
5310 I386_USE_GENERIC_WATCHPOINTS is defined.
5311 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5312 conditional to acknowledge that i386-nat.c has its
5313 own child_post_startup_inferior function.
5314
c0d1d883
MK
53152002-07-04 Mark Kettenis <kettenis@gnu.org>
5316
00f8375e
MK
5317 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5318 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5319 instead of MAX_REGISTER_RAW_SIZE.
5320 (i386_extract_return_value, i386_extract_struct_value_address):
5321 Convert to use regcache.
5322 (i386_gdbarch_init): Set max_register_raw_size and
5323 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5324 Set extract_return_value and extract_struct_value_address instead
5325 of their deprecated variants.
5326
c0d1d883
MK
5327 Convert i386 target to generic dummy frames.
5328 * i386-tdep.c: Include "symfile.h".
5329 (i386_frameless_signal_p): Consider a function to be frameless if
5330 the pc points at the first instruction of the function.
5331 (i386_frame_chain): Handle (generic) call dummies.
5332 (i386_frame_saved_pc): Likewise.
5333 (i386_frame_init_saved_regs): Remove code dealing with call
5334 dummies on the stack.
5335 (i386_push_dummy_frame): Removed.
5336 (i386_call_dummy_words): Removed.
5337 (i386_fix_call_dummy): Removed.
5338 (i386_push_return_address): New function.
5339 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5340 parameter, and don't call get_current_frame.
5341 (i386_pop_frame): New function.
5342 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5343 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5344 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5345 call_dummy_length to 0, set call_dummy_words to NULL, set
5346 sizeof_call_dummy_words to 0, set fix_call_dummy to
5347 generic_fix_call_dummy, set pc_in_call_dummy to
5348 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5349 generic_push_dummy_frame, set push_return_address to
5350 i386_push_return_address and set frame_chain_valid to
5351 generic_file_frame_chain_valid.
5352
049ee0e4
AC
53532002-07-03 Andrew Cagney <ac131313@redhat.com>
5354
5355 * gdbarch.sh (struct regcache): Add opaque declaration.
5356 (EXTRACT_RETURN_VALUE): New architecture method.
5357 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5358 * gdbarch.h, gdbarch.c: Regenerate.
5359 * arch-utils.c (legacy_extract_return_value): New function.
5360 * arch-utils.h (legacy_extract_return_value): Declare.
5361 * values.c (value_being_returned): Re-enable code handling
5362 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5363 deprecated_grub_regcache_for_registers call to block handling
5364 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5365 (EXTRACT_RETURN_VALUE): Do not define.
5366
4e0d9804
GS
53672002-07-03 Grace Sainsbury <graces@redhat.com>
5368
5369 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5370 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5371 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5372 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5373 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5374 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5375 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5376 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5377 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5378 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5379 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5380 argument so the function fits the prototype in the architecture
5381 vector.
5382 (mcore_pop_frame): Remove argument so the function fits the
5383 prototype. Use get_current_frame instead of the argument.
5384 (mcore_push_arguments): Change type of struct_return so the
5385 function can be used in the architecture vector.
5386 (mcore_store_struct_return): Add.
5387 (mcore_frame_init_saved_regs): Add.
5388 (mcore_gdbarch_init): Add function calls to replace the macros
5389 removed from tm-mcore.h
5390
36160dc4
AC
53912002-07-03 Andrew Cagney <ac131313@redhat.com>
5392
5393 * infcmd.c (print_return_value): Remove compatibility code calling
5394 deprecated_grub_regcache_for_registers.
5395
5396 * values.c: Include "regcache.h".
5397 (value_being_returned): Update. Use
5398 deprecated_grub_regcache_for_registers to extract the register
5399 buffer address.
5400 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5401 ``struct regcache''.
5402 * Makefile.in (values.o): Add dependency on $(regcache_h).
5403
5404 * inferior.h (run_stack_dummy): Change type of second parameter to
5405 a ``struct regcache''.
5406 * valops.c (hand_function_call): Change type of retbuf to ``struct
5407 regcache''. Allocate using regcache_xmalloc, clean using
5408 make_cleanup_regcache_xfree.
5409 * infcmd.c (run_stack_dummy): Update. Use
5410 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5411
5412 * regcache.c (do_regcache_xfree): New function.
5413 (make_cleanup_regcache_xfree): New function.
5414 * regcache.h (make_cleanup_regcache_xfree): Declare.
5415
e64d9b3d
MH
54162002-07-03 Martin M. Hunt <hunt@redhat.com>
5417
4dd79c29
MH
5418 * event-top.c (command_line_handler): Don't read past
5419 beginning of buffer.
e64d9b3d 5420
4dd79c29
MH
54212002-07-03 Martin M. Hunt <hunt@redhat.com>
5422
e64d9b3d
MH
5423 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5424 struct frame_id.
5425 (varobj_create): Store frame_id for root.
5426 (varobj_gen_name): Use xasprintf.
5427 (varobj_update): Save and restore frame using get_frame_id() and
5428 frame_find_by_id().
5429 (create_child): Use xasprintf.
5430 (new_root_variable): Initialize frame_id.
5431 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5432 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5433 to prevent memory leak.
5434
26e6c56a
AC
54352002-07-03 Andrew Cagney <ac131313@redhat.com>
5436
5437 * valops.c (hand_function_call): Move declaration of retbuf to
5438 start of function, allocate using malloc, add a cleanup but before
5439 the inf_status cleanup, cleanup the buffer. Rename local variable
5440 old_chain to inf_status_cleanup.
5441
f436dd25
MH
54422002-07-03 Martin M. Hunt <hunt@redhat.com>
5443
5444 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5445
5446 * cli/cli-decode.c (cmd_func_p): New function.
5447 (cmd_func): New function.
5448
5449 * command.h: Add cmd_func() and cmd_func_p().
5450
4cfe2084
GS
54512002-07-03 Grace Sainsbury <graces@redhat.com>
5452
5453 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5454 (REGISTER_SIZE): Remove.
5455 (MAX_REGISTER_RAW_SIZE): Remove.
5456 (REGISTER_VIRTUAL_TYPE): Remove.
5457 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5458 (REGISTER_NAME): Remove.
5459 (USE_GENERIC_DUMMY_FRAMES): Remove.
5460 (CALL_DUMMY): Remove.
5461 (CALL_DUMMY_START_OFFSET): Remove.
5462 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5463 (CALL_DUMMY_LOCATION): Remove.
5464 (FIX_CALL_DUMMY): Remove.
5465 (CALL_DUMMY_ADDRESS): Remove.
5466 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5467 (SAVE_DUMMY_FRAME_TOS): Remove.
5468 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5469 (mcore_register_virtual_type): New function.
5470 (mcore_register_byte): New function.
5471 (mcore_register_size): New function.
5472 (mcore_register_name): New function.
5473 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5474 macros removed from tm-mcore.h.
5475 (mcore_dump_tdep): Add.
5476 (_initialize_mcore_tdep): Add gdbarch_register call.
5477
4fd667e9
MK
54782002-07-03 Mark Kettenis <kettenis@gnu.org>
5479
5480 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5481 frameless_look_for_prologue, such that we actually call this
5482 function.
5483
42f99ac2
JB
54842002-07-02 Joel Brobecker <brobecker@gnat.com>
5485
5486 * frame.h (frame_address_in_block): New function.
5487
5488 * blockframe.c (frame_address_in_block): New function extracted
5489 from get_frame_block().
5490 (get_frame_block): Use frame_address_in_block().
5491 (block_innermost_frame): Use frame_address_in_block() to match
5492 the frame pc address against the block boundaries rather than
5493 the frame pc directly. This prevents a failure when a frame pc
5494 is actually a return-address pointing immediately after the end
5495 of the given block.
5496
103a1597 54972002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5498
5499 * MAINTAINERS: Add self under write after approval.
5500
55012002-07-02 Grace Sainsbury <graces@redhat.com>
5502
103a1597
GS
5503 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5504 used in architecture vector. The default is
5505 m68k_local_breakpoint_from_pc.
5506 (m68k_local_breakpoint_from_pc): Add.
5507 (enum): Add register numbers from tm-m68k.h.
5508 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5509 vector.
5510 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5511 GDB_MULTI_ARCH_PARTIAL.
5512 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5513 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5514 m68k-tdep.c.
5515 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5516 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5517 to enum in m68k-tdep.c
5518
7a5a0534
JB
55192002-07-02 Joel Brobecker <brobecker@gnat.com>
5520
5521 * solib-osf.c (open_map): Compute the list of shared libraries
5522 loaded by the inferior, rather than the list of libraries loaded
5523 by GDB itself. Otherwise, GDB ends up reading the symbols from
5524 the wrong shared libraries...
5525
6f558d74
MK
55262002-07-02 Mark Kettenis <kettenis@gnu.org>
5527
b7d15bf7
MK
5528 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5529 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5530 macros.
5531 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5532 Remove functions.
5533 (FRAMELESS_SIGNAL): Remove function.
5534 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5535 i386_linux_saved_pc_after_call): Removed.
5536 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5537 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5538 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5539
6bff26de
MK
5540 * i386-tdep.c (i386_frameless_signal_p): New function.
5541 (i386_frame_chain): Deal with frameless signals.
5542 (i386_sigtramp_saved_sp): New function.
5543 (i386_frame_saved_pc): Deal with frameless signals.
5544 (i386_saved_pc_after_call): Make sure the correct value is
5545 returned just after entry into a sigtramp.
5546 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5547 i386fbsd4_sc_sp_offset): New variables.
5548 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5549 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5550 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5551 similiar to what we already did for sc_pc_offset.
5552 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5553 tdep->sc_sp_offset.
5554
6f558d74
MK
5555 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5556
145564b7
ML
55572002-07-02 Michal Ludvig <mludvig@suse.cz>
5558
5559 * config/i386/tm-x86-64linux.h: New.
5560 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5561 definitions.
5562 * config/i386/nm-x86-64.h: Rename to ...
5563 * config/i386/nm-x86-64linux.h: ... this one.
5564 * config/i386/x86-64linux.mh: Reflect the above change.
5565
3a1e71e3
MK
55662002-07-01 Mark Kettenis <kettenis@gnu.org>
5567
21d0e8a4
MK
5568 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5569 with sigcontext_addr. Add sc_sp_offset.
5570 (i386bsd_sigtramp_saved_pc): Remove prototype.
5571 (i386bsd_sicontext_addr): Add prototype.
5572 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5573 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5574 (i386_svr4_sigtramp_saved_pc): Removed.
5575 (i386_svr4_sigcontext_addr): New function.
5576 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5577 Initialize tdep->sigcontext_addr instead. Initialize
5578 tdep->sc_pc_offset and tdep->sc_sp_offset.
5579 (i386_gdbarch_init): Likewise.
5580 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5581 any more.
5582 (i386bsd_sigtramp_saved_pc): Remove function.
5583 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5584 Initialize tdep->sigcontext_addr instead. Initialize
5585 tdep->sc_pc_offset.
5586 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5587 of tdep->sigtramp_saved_pc.
5588 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5589 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5590 instead.
5591
3a1e71e3
MK
5592 * i386-tdep.c (i386_frameless_function_invocation,
5593 i386_frame_num_args, i386_frame_init_saved_regs,
5594 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5595 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5596 i386_extract_return_value, i386_store_return_value,
5597 i386_extract_struct_value_address, i386_register_virtual_type,
5598 i386_register_convertible, i386_register_convert_to_virtual,
5599 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5600 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5601 static.
5602
52e9098c
MK
56032002-07-01 Mark Kettenis <kettenis@gnu.org>
5604
77b13a25
MK
5605 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5606
52e9098c
MK
5607 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5608 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5609 this macro. Include "value.h".
5610
1b372fff
AS
56112002-06-30 Aidan Skinner <aidan@velvet.net>
5612
5613 * ada-exp.tab.c: remove as it's a generated file
5614 * ada-lex.c: remove as it's a generated file
5615
9c5045b5
MK
56162002-06-30 Mark Kettenis <kettenis@gnu.org>
5617
4a93c5bb
MK
5618 * config/i386/tm-i386.h (struct frame_info, struct
5619 frame_saved_regs, struct value, struct type): Remove forward
5620 declarations.
5621
322d4fe0
MK
5622 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5623 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5624 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5625 (FILL_FPXREGSET): Define.
5626
fdd8263d
MK
5627 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5628
482e577b
MK
5629 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5630 i[3456]86-*-netbsd* case.
5631 * config/i386/tm-obsd.h: Removed.
5632 * config/i386/obsd.mt: Removed.
5633 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5634 core-aout.o.
5635 (MH_CFLAGS): Add -DYYDEBUG=0.
5636
6916549a
MK
5637 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5638 i386nbsd_sc_pc_offset on OpenBSD too.
5639
9c5045b5
MK
5640 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5641 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5642 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5643 define.
5644 * i386bsd-tdep.c: Include "arch-utils.h".
5645 (i386bsd_aout_in_solib_call_trampoline): New function.
5646 (i386bsd_init_abi): Set in_solib_call_trampoline to
5647 i386bsd_aout_in_solib_call_trampoline.
5648 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5649 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5650
aa84d1bb
AC
56512002-06-28 Andrew Cagney <ac131313@redhat.com>
5652
5653 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5654 (struct obstack, struct bcache): Add opaque declarations.
5655 * Makefile.in (macrotab_h): Update
5656
b4d83933
AC
56572002-06-28 Andrew Cagney <ac131313@redhat.com>
5658
5659 * blockframe.c (generic_find_dummy_frame): Change return type to
5660 ``struct regcache''.
5661 (struct dummy_frame): Replace field ``registers'' with regcache, a
5662 struct regcache object.
5663 (generic_find_dummy_frame): Update.
5664 (generic_push_dummy_frame): Update. Use regcache_xfree,
5665 regcache_xmalloc and regcache_cpy.
5666 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5667 regcache_xfree.
5668 (deprecated_generic_find_dummy_frame): Update.
5669 (generic_read_register_dummy): Update. Use
5670 regcache_read_as_address.
5671 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5672 (generic_get_saved_register): Update. Use regcache_read.
5673
08c0b5bc
AC
56742002-06-28 Andrew Cagney <ac131313@redhat.com>
5675
5676 * Makefile.in (objfiles_h): Add $(bcache_h).
5677 * objfiles.h: Include "bcache.h".
5678
5679 * Makefile.in (symtab_h): Remove $(bcache_h).
5680 * symtab.h: Do not include "bcache.h".
5681
1f89801a
AC
56822002-06-28 Andrew Cagney <ac131313@redhat.com>
5683
5684 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5685 generic_func_frame_chain_valid.
5686
b9644b58
DB
56872002-06-28 David O'Brien <obrien@FreeBSD.org>
5688
5689 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5690 * config/i386/tm-fbsd.h: Likewise.
5691
dd486634
AC
56922002-06-28 Andrew Cagney <ac131313@redhat.com>
5693
5694 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5695 generic_unwind_get_saved_register.
5696
0b434a00
AC
56972002-06-27 Andrew Cagney <ac131313@redhat.com>
5698
5699 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5700 * regcache.c (supply_register): Add missing argument to
5701 register_buffer call.
5702
f30e5a77
AC
57032002-06-27 Andrew Cagney <ac131313@redhat.com>
5704
5705 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5706 Solaris /bin/grep does not not like it. From Peter Schauer.
5707
9f064c95
TT
57082002-06-26 Tom Tromey <tromey@redhat.com>
5709
5710 * command.h (add_setshow_cmd): Declare.
5711 (add_setshow_cmd_full): Declare.
5712 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5713 returns void. Use add_setshow_cmd_full.
5714 (add_setshow_cmd_full): New function.
5715 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5716 (add_setshow_boolean_cmd): Likewise.
5717
099c7589
JT
57182002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5719
5720 * config/vax/tm-vax.h: Protect from multiple inclusion.
5721 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5722 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5723 * config/vax/tm-vaxbsd.h: ...here. New file.
5724 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5725
1d049c5e
JT
57262002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5727
5728 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5729 (BELIEVE_PCC_PROMOTION): Remove.
5730 (AP_REGNUM): Move to...
5731 * config/vax/nm-vax.h: ...here.
5732 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5733 (vax_breakpoint_from_pc): New function.
5734 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5735 and gdbarch_believe_pcc_promotion.
5736
4791e091
JT
57372002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5738
5739 * Makefile.in (vax_tdep_h): Define.
5740 (vax-tdep.o): Use $(vax_tdep_h).
5741 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5742 (vax_dump_tdep): New function.
5743 (_initialize_vax_tdep): Register vax_dump_tdep.
5744 * vax-tdep.h: Include osabi.h.
5745 (struct gdbarch_tdep): New.
5746
da130f98
AC
57472002-06-26 Andrew Cagney <cagney@redhat.com>
5748
5749 * frame.h (deprecated_generic_find_dummy_frame): Rename
5750 generic_find_dummy_frame.
5751 * blockframe.c (generic_find_dummy_frame): Make static.
5752 (deprecated_generic_find_dummy_frame): New function.
5753 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5754 generic_find_dummy_frame with deprecated_find_dummy_frame.
5755 (sh64_nofp_frame_init_saved_regs): Ditto.
5756 (sh_fp_frame_init_saved_regs): Ditto.
5757 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5758 (s390_frame_chain): Ditto.
5759 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5760
6300c360
GS
57612002-06-26 Grace Sainsbury <graces@redhat.com>
5762
5763 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5764 gdbarch vector are at the top.
5765 (NUM_REGS): Remove.
5766 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5767 (FRAME_ARGS_ADDRESS): Remove.
5768 (FRAME_LOCALS_ADDRESS): Remove.
5769 (FRAME_NUM_ARGS): Remove.
5770 (FRAME_ARGS_SKIP): Remove.
5771 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5772 (m68k_gdbarch_init): Add gdbarch initializations for macros
5773 undefined in tm-m68k.h
5774
1c617db8
GS
57752002-06-26 Grace Sainsbury <graces@redhat.com>
5776
5777 * monitor.h: Add the function regname to monitor_ops
5778 structure. This way NUM_REGS does not have to be a constant.
5779 * monitor.c (monitor_fetch_register): Added support for regname
5780 function. The function is called if the array regnames is NULL.
5781 (monitor_store_register): Same.
da130f98
AC
5782 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5783 regnames array.
1c617db8
GS
5784 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5785 cpu32bug_cmds.regname to point to new function.
5786 * abug-rom.c (abug_regname): Same as above.
5787 (init_abug_cmds): Same.
5788 * dbug-rom.c (dbug_regname): Same as above.
5789 (init_dbug_cmds): Same.
5790 * remote-est.c (est_regname): Same.
5791 (init_est_cmds): Same.
5792 * rom68k-rom.c (rom68k_regname): Same.
5793 (init_rom68k_cmds): Same.
5794
ea9365bb
TT
57952002-06-25 Tom Tromey <tromey@redhat.com>
5796
5797 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5798
72cec141
AC
57992002-06-25 Andrew Cagney <cagney@redhat.com>
5800
5801 * infrun.c (stop_registers): Change variable's type to ``struct
5802 regcache'''.
5803 (xmalloc_inferior_status): Delete function.
5804 (free_inferior_status): Delete function.
5805 (normal_stop): Use regcache_cpy.
5806 (struct inferior_status): Change type of fields ``stop_registers''
5807 and ``registers'' to ``struct regcache''.
5808 (write_inferior_status_register): Use regcache_write.
5809 (save_inferior_status): Instead of calling
5810 xmalloc_inferior_status, allocate the inf_status buffer directly.
5811 Use regcache_dup_no_passthrough and regcache_dup to save the
5812 buffers.
5813 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5814 Replace the stop_registers regcache instead of overriding it. Use
5815 regcache_xfree. Instead of calling free_inferior_status, xfree
5816 the buffer directly.
5817 (discard_inferior_status): Use regcache_xfree. Instead of calling
5818 free_inferior_status, xfree the buffer directly.
5819 (build_infrun): Use regcache_xmalloc.
5820 (_initialize_infrun): Delete redundant call to build_infrun.
5821
5822 * Makefile.in (infcmd.o): Add $(regcache_h).
5823
5824 * infcmd.c: Include "regcache.h".
5825 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5826 obtain the address of `stop_registers' register buffer.
5827 (print_return_value): Ditto.
5828
5829 * inferior.h (struct regcache): Add opaque declaration.
5830 (stop_registers): Change variable's declared type to ``struct
5831 regcache''.
5832
defc6f8c
TT
58332002-06-24 Tom Tromey <tromey@redhat.com>
5834
c0e624e7
TT
5835 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5836 * target.c (initialize_targets): Fixed typo in
5837 trust-readonly-sections `show' documentation.
5838
defc6f8c
TT
5839 * main.c: Marked all strings with _().
5840
2b236d82
DH
58412002-06-24 Don Howard <dhoward@redhat.com>
5842
5843 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5844 that means max CORE_ADDR+1.
5845 (lookup_mem_region): Ditto.
5846 (mem_info_command): Ditto.
5847
942dc0e9
GS
58482002-06-24 Grace Sainsbury <graces@redhat.com>
5849
5850 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5851 (REGISTER_BYTES_OK): Remove.
5852 (REGISTER_BYTES): Remove.
5853 (STORE_STRUCT_RETURN): Remove.
5854 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5855 (STORE_RETURN_VALUE): Remove.
5856 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5857 (FRAME_CHAIN): Remove.
5858 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5859 (FRAME_SAVED_PC): Remove.
5860 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5861 (m68k_store_struct_return): Add.
5862 (m68k_deprecated_extract_return_value): Add.
5863 (m68k_deprecated_extract_struct_value_address): Add.
5864 (m68k_store_return_value): Add.
5865 (m68k_frame_chain): Add.
5866 (m68k_frameless_function_invocation): Add.
5867 (m68k_frame_saved_pc): Add.
5868 (m68k_gdbarch_init): added set_gdbarch calls for new
5869 functions and deleted macros.
5870
03c30d4d
TT
58712002-06-23 Tom Tromey <tromey@redhat.com>
5872
5873 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5874 (ALLDEPFILES): Likewise.
5875 (udiheaders): Removed.
5876 (udip2soc.o): Likewise.
5877 (udi2go32.o): Likewise.
5878 (udr.o): Likewise.
5879 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5880
37e71372
AC
58812002-06-22 Andrew Cagney <ac131313@redhat.com>
5882
06a6ac57
AC
5883 * infrun.c (_initialize_infrun): Delete unnecessary call to
5884 build_infrun.
5885
37e71372
AC
5886 * regcache.h: Update comments describing the regcache_cpy family
5887 of functions.
5888 (regcache_save, regcache_restore): Delete declaration.
5889 (regcache_save_no_passthrough): Delete declaration.
5890 (regcache_restore_no_passthrough): Delete declaration.
5891 * regcache.c (regcache_save): Delete function.
5892 (regcache_save_no_passthrough): Delete function.
5893 (regcache_restore): Delete function.
5894 (regcache_restore_no_passthrough): Delete function.
5895
78f6d055
AC
58962002-06-21 Andrew Cagney <ac131313@redhat.com>
5897
5898 * config/m68k/tm-m68k.h: Fix typo.
5899 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5900 (m68k_frame_init_saved_regs): Declare.
5901
78b119cb
JB
59022002-06-21 Jim Blandy <jimb@redhat.com>
5903
5904 Remove some vestiges of Harris 88k support.
5905 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5906 register numbering quirk.
5907 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5908 odd symbols occurring in Harris 88k ELF targets.
5909
0fbb3da7
TT
59102002-06-21 Tom Tromey <tromey@redhat.com>
5911
5912 * gdb_locale.h: New file.
5913 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5914 (defs_h): Added gdb_locale.h.
5915 * configure, config.in: Rebuilt.
5916 * configure.in (PACKAGE): Define.
5917 * defs.h: Include gdb_locale.h.
5918 * main.c (captured_main): Call setlocale, bindtextdomain,
5919 textdomain.
5920
456f8b9d
DB
59212002-06-21 Dave Brolley <brolley@redhat.com>
5922
5923 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5924 * config/frv/frv.mt: New file.
5925 * config/frv/tm-frv.h: New file.
5926 * configure.tgt: Support frv-*-*.
5927 * Makefile.in (frv-tdep.o): New target.
5928 * frv-tdep.c: New file.
5929 * NEWS: Mention frv.
5930
cdd463f9
DB
59312002-06-21 Dave Brolley <brolley@redhat.com>
5932
5933 * MAINTAINERS: Add self to "Write After Approval" list.
5934
5d3ed2e3
GS
59352002-06-21 Grace Sainsbury <graces@redhat.com>
5936
5937 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5938 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5939 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5940 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5941 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5942
5943 * m68k-tdep.c: Include arch-utils.h
5944 (m68k_register_raw_size): Add.
5945 (m68k_register_virtual_size): Add.
5946 (m68k_register_virtual_type): Add.
5947 (m68k_register_name): Add.
5948 (m68k_stack_align): Add.
5949 (m68k_register_byte): Add.
5950 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5951 tm-m68k.h.
5952
7f8e7424
GS
59532002-06-21 Grace Sainsbury <graces@redhat.com>
5954
a2c6a6d5 5955 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
5956 m68k_find_saved_regs.
5957 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 5958 references to it with frame->saved_regs.
7f8e7424
GS
5959 (m68k_gdbarch_init): Added function calls to initialize the
5960 gdbarch structure.
a2c6a6d5
GS
5961 (m68k_fix_call_dummy): Add.
5962 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5963 (CALL_DUMMY): Remove.
5964 (CALL_DUMMY_LENGTH): Remove.
5965 (CALL_DUMMY_START_OFFSET): Remove.
5966 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5967 (FIX_CALL_DUMMY): Remove.
5968 (PUSH_DUMMY_FRAME): Remove.
5969 (POP_FRAME): Remove.
7f8e7424 5970
f461f5cf
PM
59712002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5972
5973 * parse.c (parse_fprintf): New function used to avoid calls to
5974 fprintf in bison parser generated debug code.
5975 * parser-defs.h: Declaration of new parse_fprintf function.
5976 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5977 Set YYDEBUG to 1 by default.
5978 Set YYFPRINTF as parse_fprintf.
5979
7f0c12ed
ML
59802002-06-21 Michal Ludvig <mludvig@suse.cz>
5981
5982 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5983 encoding anymore.
5984 (pointer_encoding, enum ptr_encoding): New.
5985 (execute_cfa_program): Take care about pointer encoding.
5986 (dwarf2_build_frame_info): Only call parse_frame_info for
5987 .debug_frame and .eh_frame.
5988 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5989 fixed augmentation handling, added relative addressing,
5990 ignore duplicate FDEs. Added comments.
19d833a2 5991 * dwarf2cfi.c: Reindented.
7f0c12ed 5992
87c4a039
EZ
59932002-06-20 Elena Zannoni <ezannoni@redhat.com>
5994
5995 * event-top.c (command_handler): Don't use space_at_cmd_start
5996 unless there is sbrk() on the host. Assign time and space data
5997 to union fields of the appropriate length.
5998
1cf877ad
ML
59992002-06-20 Michal Ludvig <mludvig@suse.cz>
6000
6001 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6002 x86_64_register_name. Return type changed to 'const char *'.
6003 (x86_64_register_name2nr): Rename to x86_64_register_number.
6004 (x86_64_gdbarch_init): Update to reflect the change.
6005 * x86-64-tdep.h: Ditto.
6006 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6007 (supply_fpregset): Ditto.
6008
3fadccb3
AC
60092002-06-19 Andrew Cagney <cagney@redhat.com>
6010
6011 * regcache.h: Update copyright.
6012 (struct regcache, struct gdbarch): Add opaque declarations.
6013 (current_regcache): Declare global variable.
6014 (regcache_read, regcache_write): Add gdbarch parameter.
6015 (regcache_save, regcache_save_no_passthrough)
6016 (regcache_restore, regcache_restore_no_passthrough)
6017 (regcache_dup, regcache_dup_no_passthrough)
6018 (regcache_cpy, regcache_cpy_no_passthrough)
6019 (deprecated_grub_regcache_for_registers)
6020 (deprecated_grub_regcache_for_register_valid)
6021 (regcache_valid_p): Add function declarations.
6022
6023 * regcache.c: Update copyright.
6024 (regcache_descr_handle): New global variable.
6025 (struct regcache_descr): Define.
6026 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6027 (regcache_descr, xfree_regcache_descr): New functions.
6028 (struct regcache): Define.
6029 (regcache_xmalloc, regcache_xfree): New functions.
6030 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6031 (regcache_dup, regcache_dup_no_passthrough): New functions.
6032 (regcache_valid_p, regcache_read_as_address): New functions.
6033 (deprecated_grub_regcache_for_registers): New function.
6034 (deprecated_grub_regcache_for_register_valid): New function.
6035 (current_regcache): New global variable.
6036 (register_buffer): Add regcache parameter. Update calls.
6037 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6038 (read_register_gen, write_register_gen): Update register_buffer
6039 call. Test for legacy_p instead of gdbarch_register_read_p or
6040 gdbarch_register_write_p.
6041 (regcache_collect): Update register_buffer call.
6042 (build_regcache): Rewrite. Use deprecated grub functions.
6043 (regcache_save, regcache_save_no_passthrough): New functions.
6044 (regcache_restore, regcache_restore_no_passthrough): New
6045 functions.
6046 (_initialize_regcache): Create the regcache_data_handle. Swap
6047 current_regcache global variable.
6048
6049 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6050 parameter to regcache_read and regcache_write calls.
6051 (sh4_register_read): Ditto.
6052 (sh64_pseudo_register_read): Ditto.
6053 (sh64_register_read): Ditto.
6054 (sh_pseudo_register_write): Ditto.
6055 (sh4_register_write): Ditto.
6056 (sh64_pseudo_register_write): Ditto.
6057 (sh64_register_write): Ditto.
6058
6059 * defs.h (XCALLOC): Define.
6060
152d9db6
GS
60612002-06-19 Grace Sainsbury <graces@redhat.com>
6062
6063 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6064 * m68k-tdep.c (m68k_gdbarch_init): Added.
6065 (m68k_dump_tdep): Added.
6066
170911c7
DJ
60672002-06-19 Daniel Jacobowitz <drow@mvista.com>
6068
6069 * ada-lang.c (fill_in_ada_prototype): Update comment.
6070
2e4ebe70
DJ
60712002-06-19 Daniel Jacobowitz <drow@mvista.com>
6072
6073 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6074 MIPS_ABI_LAST.
6075 (mips_abi_string, mips_abi_strings): New.
6076 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6077 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6078 tdep->mips_abi_string. Honor mips_abi_string. Default to
6079 O32 if no ABI is found.
6080 (mips_dump_tdep): Use mips_abi_strings.
6081 (mips_abi_update): New function.
6082 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6083 ``set mips abi'' and ``show mips abi''. Check the size of
6084 mips_abi_strings.
6085
16775908
AC
60862002-06-19 Andrew Cagney <cagney@redhat.com>
6087
6088 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6089 constant.
6090
5051bfa4 60912002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6092
5051bfa4
JB
6093 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6094 current frame using only the first stack size adjustment. All
6095 subsequent size adjustments are not considered to be part of
6096 the "static" part of the current frame.
6097 Compute the address of the saved registers relative to the
6098 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6099 in use in this frame.
6100
56468235
DH
61012002-06-18 Don Howard <dhoward@redhat.com>
6102
6103 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6104 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6105 suggesting this solution.
6106
0b624158
AC
61072002-06-18 Andrew Cagney <ac131313@redhat.com>
6108
6109 * config/romp/xm-rtbsd.h: Delete file.
6110 * config/romp/rtbsd.mh: Delete file.
6111
221ea385
KS
61122002-06-18 Keith Seitz <keiths@redhat.com>
6113
6114 * breakpoint.c (condition_command): Post breakpoint_modify
6115 when a condition is added to an existing breakpoint.
6116 (commands_command): Likewise for commands.
6117 (set_ignore_count): Likewise for ignore counts.
6118 If no tty, do not simply return, still need to send event
6119 notification.
6120 (ignore_command): Only print a newline if the command came
6121 from a tty.
6122 Don't call breakpoints_changed, since this is now properly
6123 handled by set_ignore_count.
6124
5402eed1
AC
61252002-06-18 Andrew Cagney <cagney@redhat.com>
6126
6127 * MAINTAINERS: Note that cris-elf target can be compiled with
6128 -Werror.
6129 * cris-tdep.c (cris_register_name): Make return type constant.
6130 (cris_breakpoint_from_pc): Ditto.
6131
cc22880b
ML
61322002-06-18 Michal Ludvig <mludvig@suse.cz>
6133
6134 * frame.h (struct frame_info): Change type of context to
6135 'struct context'.
6136
fa88f677
AC
61372002-06-17 Andrew Cagney <cagney@redhat.com>
6138
6139 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6140 pointer.
6141 * gdbarch.h, gdbarch.c: Regenerate.
6142 * config/mips/tm-mips.h (mips_register_name): Update.
6143 * i386-tdep.h (i386_register_name): Update.
6144 * mips-tdep.c (mips_register_name): Update
6145 * alpha-tdep.c (alpha_register_name): Update.
6146 * arch-utils.c (legacy_register_name): Update.
6147 * arch-utils.h (legacy_register_name): Update.
6148 * avr-tdep.c (avr_register_name): Update.
6149 * ia64-tdep.c (ia64_register_name): Update.
6150 * i386-tdep.c (i386_register_name): Update.
6151 * sparc-tdep.c (sparc32_register_name): Update.
6152 (sparc64_register_name): Update.
6153 (sparclite_register_name): Update.
6154 (sparclet_register_name): Update.
6155 * sh-tdep.c (sh_generic_register_name): Update.
6156 (sh_sh_register_name): Update.
6157 (sh_sh3_register_name): Update.
6158 (sh_sh3e_register_name): Update.
6159 (sh_sh_dsp_register_name): Update.
6160 (sh_sh3_dsp_register_name): Update.
6161 (sh_sh4_register_name): Update.
6162 (sh_sh64_register_name): Update.
6163 * s390-tdep.c (s390_register_name): Update.
6164 * rs6000-tdep.c (rs6000_register_name): Update.
6165 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6166 (ns32k_register_name_32382): Update.
6167 * d10v-tdep.c (d10v_ts2_register_name): Update.
6168 (d10v_ts3_register_name): Update.
6169 * xstormy16-tdep.c (xstormy16_register_name): Update.
6170 * vax-tdep.c (vax_register_name): Update.
6171 * v850-tdep.c (v850_register_name): Update.
6172 * m68hc11-tdep.c (m68hc11_register_name): Update.
6173 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6174 (am33_register_name): Update.
6175
ea1e7ef6
GS
61762002-06-17 Grace Sainsbury <graces@redhat.com>
6177
6178 * m68k-tdep.c: Reindented.
6179
9b02dd1b
AC
61802002-06-17 Andrew Cagney <ac131313@redhat.com>
6181
6182 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6183 list of predefined types.
6184
8758dec1
MK
61852002-06-16 Mark Kettenis <kettenis@gnu.org>
6186
b6197528
MK
6187 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6188 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6189 REGISTER_CONVERT_TO_RAW): Remove defines.
6190 (i386_register_virtual_type, i386_register_convertible,
6191 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6192 Remove prototypes.
6193 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6194 macros mentioned above.
6195
82b47e62
MK
6196 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6197 (i386lynx_saved_pc_after_call): Remove prototype.
6198 * i386ly-tdep.c: Include "i386-tdep.h".
6199 (i386lynx_saved_pc_after_call): Make static. Use
6200 read_memory_nobpt instead of read_memory. Use
6201 read_memory_unsigned_integer instead of read_memory_integer.
6202 (i386lynx_init_abi): New function.
6203 (i386lynx_coff_osabi_sniffer): New function.
6204 (_initialize_i386bsd_tdep): New function.
6205
8758dec1
MK
6206 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6207 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6208 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6209 (i386_fix_call_dummy): Remove prototype.
6210 * i386-tdep.c (i386_call_dummy_words): New variable.
6211 (i386_gdbarch_init): Adjust for removal of the
6212 macros mentioned above.
6213
e9e68a56
AC
62142002-06-15 Andrew Cagney <ac131313@redhat.com>
6215
6216 * command.h (add_setshow_auto_boolean_cmd): Replace
6217 add_set_auto_boolean_cmd.
6218 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6219 add_set_auto_boolean_cmd.
6220 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6221 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6222 mask-address'' command.
6223 (show_mask_address): Add cmd parameter.
6224 * remote.c (add_packet_config_cmd): Update. Change type of
6225 set_func and show_func to cmd_sfunc_ftype.
6226 (_initialize_remote): Update `set remote Z-packet'
6227 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6228 (show_remote_protocol_e_packet_cmd): Ditto.
6229 (show_remote_protocol_E_packet_cmd): Ditto.
6230 (show_remote_protocol_P_packet_cmd): Ditto.
6231 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6232 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6233 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6234 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6235 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6236 (show_remote_protocol_Z_packet_cmd): Ditto.
6237 (show_remote_protocol_binary_download_cmd): Ditto.
6238 (show_remote_cmd): Pass NULL to all of above.
6239
fc08ec52
MK
62402002-06-15 Mark Kettenis <kettenis@gnu.org>
6241
6242 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6243 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6244 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6245 POP_FRAME): Remove defines.
6246 (i386_push_arguments, i386_store_struct_return,
6247 i386_extract_return_value, i386_store_return_value,
6248 i386_extract_struct_value_address, i386_push_dummy_frame,
6249 i386_pop_frame): Renove prototypes.
6250 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6251 macros mentioned above.
6252
e707bbc2
AC
62532002-06-15 Andrew Cagney <ac131313@redhat.com>
6254
6255 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6256 add_set_boolean_cmd.
6257 (add_setshow_cmd): New function.
6258 * command.h (add_setshow_boolean_cmd): Replace
6259 add_set_boolean_cmd.
6260 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6261 and ``set rdiromatzero''.
6262 * maint.c (_initialize_maint_cmds): Update commented out code.
6263 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6264 * target.c (initialize_targets): Update `set
6265 trust-readonly-sections'.
6266 * remote.c (_initialize_remote): Update `set remotebreak'.
6267
42fdc8df
MK
62682002-06-15 Mark Kettenis <kettenis@gnu.org>
6269
93924b6b
MK
6270 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6271 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6272 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6273 fit into multi-arch framework.
6274 (i386_breakpoint_from_pc): New function.
6275 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6276 above.
6277
42fdc8df
MK
6278 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6279 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6280 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6281 (i386_frameless_function_invocation, i386_frame_num_args,
6282 i386_frame_init_saved_regs): Remove prototypes.
6283 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6284 macros mentioned above.
6285
9773a94b
AC
62862002-06-15 Andrew Cagney <ac131313@redhat.com>
6287
6288 * cli/cli-decode.c (set_cmd_cfunc): Update.
6289 (set_cmd_sfunc): Update.
6290 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6291 (set_cmd_sfunc, set_cmd_cfunc): Update.
6292 * cli/cli-decode.h: Update.
6293
6e157172
MK
62942002-06-15 Mark Kettenis <kettenis@gnu.org>
6295
6296 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6297 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6298
7f19b9a2
AC
62992002-06-15 Andrew Cagney <ac131313@redhat.com>
6300
6301 * defs.h (auto_boolean): Declare enum.
6302 * command.h (cmd_auto_boolean): Delete enum.
6303 * mips-tdep.c (mask_address_var): Update.
6304 (mips_mask_address_p): Update.
6305 (show_mask_address): Update.
6306 * remote.c (struct packet_config): Update.
6307 (update_packet_config): Update.
6308 (show_packet_config_cmd): Update.
6309 (packet_ok): Update.
6310 (add_packet_config_cmd): Update.
6311 (_initialize_remote):
6312 * command.h: Update.
6313 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6314 (do_setshow_command): Update.
6315 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6316 * cli/cli-decode.h: Update.
6317
1cf88de5
MK
63182002-06-15 Mark Kettenis <kettenis@gnu.org>
6319
22ba8cf2
MK
6320 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6321 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6322 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6323 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6324 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6325 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6326
762c5349
MK
6327 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6328 list of DJGPP COFF targets.
6329
091198bb
MK
6330 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6331 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6332 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6333 (FP0_REGNUM): Remove define.
6334 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6335 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6336 (i386_register_virtual_size): Remove protoype.
6337 * i386-tdep.c (i386_register_virtual_size): Removed.
6338 (i386_extract_return_value, i386_store_return_value): Use
6339 FP0_REGNUM instead of NUM_FREGS to determine whether the
6340 floating-point registers are available.
6341 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6342 Adjust for removal of macros mentioned above.
6343
63442002-06-15 Mark Kettenis <kettenis@gnu.org>
6345
fcc9bf01
MK
6346 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6347 comments.
6348 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6349 Remove prototypes.
6350 (supply_gregset, fill_gregset): Remove use of register keyword and
6351 remove declaration for regmap. Use I386_NUM_GREGS instead of
6352 NUM_REGS and NUM_FREGS.
6353 (FPREGSET_FSAVE_OFFSET): Remove.
6354 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6355 NUM_FREGS to determine whether the floating-point registers are
6356 available.
6357
65e78234
MK
6358 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6359 gnu_store_registers): Replace usage of NUM_GREGS with
6360 I386_NUM_GREGS.
6361
98df6387
MK
6362 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6363 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6364 usage of NUM_GREGS with I386_NUM_GREGS.
6365
099a9414
MK
6366 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6367
57976e88
MK
6368 * i386bsd-nat.c: Include "i386-tdep.h".
6369 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6370 I386_NUM_GREGS.
6371
b335f4a6
MK
6372 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6373 and associated comment. They no longer make any sense, since we
6374 don't use this file anymore on Linux.
6375
1cf88de5
MK
6376 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6377 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6378 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6379 elements in these arrays.
6380 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6381 MAX_NUM_REGS.
6382
daa66587
MK
63832002-06-15 Mark Kettenis <kettenis@gnu.org>
6384
6385 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6386 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6387
26e9b323
AC
63882002-06-14 Andrew Cagney <cagney@redhat.com>
6389
6390 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6391 EXTRACT_RETURN_VALUE.
6392 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6393 EXTRACT_STRUCT_VALUE_ADDRESS.
6394 * gdbarch.h, gdbarch.c: Regenerate.
6395
6396 * values.c (value_being_returned): Handle
6397 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6398 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6399
6400 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6401 * arm-tdep.c (arm_gdbarch_init): Update.
6402 * avr-tdep.c (avr_gdbarch_init): Update.
6403 * cris-tdep.c (cris_gdbarch_init): Update.
6404 * d10v-tdep.c (d10v_gdbarch_init): Update.
6405 * ia64-tdep.c (ia64_gdbarch_init): Update.
6406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6407 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6408 * s390-tdep.c (s390_gdbarch_init): Update.
6409 * sh-tdep.c (sh_gdbarch_init): Update.
6410 * s390-tdep.c (s390_gdbarch_init): Update.
6411 * sparc-tdep.c (sparc_gdbarch_init): Update.
6412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6413 * v850-tdep.c (v850_gdbarch_init): Update.
6414 * vax-tdep.c (vax_gdbarch_init): Update.
6415 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6417
6418 * config/arc/tm-arc.h: Update.
6419 * config/d30v/tm-d30v.h: Update.
6420 * config/fr30/tm-fr30.h: Update.
6421 * config/h8300/tm-h8300.h: Update.
6422 * config/h8500/tm-h8500.h: Update.
6423 * config/i386/tm-i386.h: Update.
6424 * config/i386/tm-ptx.h: Update.
6425 * config/i386/tm-symmetry.h: Update.
6426 * config/i960/tm-i960.h: Update.
6427 * config/m32r/tm-m32r.h: Update.
6428 * config/m68k/tm-delta68.h: Update.
6429 * config/m68k/tm-linux.h: Update.
6430 * config/m68k/tm-m68k.h: Update.
6431 * config/m88k/tm-m88k.h: Update.
6432 * config/mcore/tm-mcore.h: Update.
6433 * config/mips/tm-mips.h: Update.
6434 * config/mn10200/tm-mn10200.h: Update.
6435 * config/pa/tm-hppa.h: Update.
6436 * config/pa/tm-hppa64.h: Update.
6437 * config/sparc/tm-sp64.h: Update.
6438 * config/sparc/tm-sparc.h: Update.
6439 * config/sparc/tm-sparclet.h: Update.
6440 * config/z8k/tm-z8k.h: Update.
6441
5179e78f
AC
64422002-06-14 Andrew Cagney <cagney@redhat.com>
6443
6444 * Makefile.in (i386_linux_tdep_h): Define.
6445 (i386_tdep_h, i387_tdep_h): Define.
6446 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6447 $(i386_tdep_h) and $(i387_tdep_h).
6448 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6449
8201327c
MK
64502002-06-14 Mark Kettenis <kettenis@gnu.org>
6451
edf393ac
MK
6452 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6453 Already covered by the default.
6454
896fb97d
MK
6455 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6456 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6457 (i386_gdbarch_init): Initialize long_double_format and long_double
6458 bit.
6459
8201327c
MK
6460 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6461 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6462 Move these to ...
6463 * config/i386/i386sol2.mh: ... here.
6464 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6465 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6466 (SIGCONTEXT_PC_OFFSET): Remove define.
6467 (IN_SIGTRAMP): Remove define.
6468 * i386-sol2-tdep.c: New file.
6469
6470 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6471 * config/i386/tm-i386nw.h: Removed.
6472
6473 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6474 USE_STRUCT_CONVENTION): Remove defines.
6475 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6476 (get_longjmp_target): Remove prototype.
6477 (IN_SIGTRAMP): Remove define.
6478 (i386bsd_in_sigtramp): Remove prototype.
6479 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6480 function. Update comment accordingly
6481 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6482 (FRAME_SAVED_PC): Remove define.
6483 (i386bsd_frame_saved_pc): Remove prototype.
6484 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6485 GET_LONGJMP_TARGET): Remove defines.
6486 (get_longjmp_target): Remove prototype.
6487 (IN_SIGTRAMP): Remove define.
6488 (i386bsd_in_sigtramp): Remove prototype.
6489 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6490 function. Update comment accordingly
6491 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6492 (FRAME_SAVED_PC): Remove define.
6493 (i386bsd_frame_saved_pc): Remove prototype.
6494 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6495 Remove prototype.
6496 (USE_STRUCT_CONVENTION): Remove prototype.
6497 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6498 declaration.
6499 (_initialize_i386bsd_nat): Revise logic to determine some
6500 constants at compile time when compiling a native GDB. Warn if
6501 things don't match up with what we expect.
6502 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6503 Remove variables.
6504 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6505 to use date stored in `struct gdbarch_tdep'.
6506 (i386bsd_sigcontext_offset): Remove varaible.
6507 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6508 stored in `struct gdbarch_tdep'.
6509 (i386bsd_frame_saved_pc): Make static.
6510 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6511 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6512 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6513 i386fbsd4_sc_pc_offset): New variables.
6514 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6515 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6516 functions.
6517 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6518 functions.
6519 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6520 Modify the value of i386fbsd_sigtramp_start and
6521 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6522 i386fbsd_sigtramp_end.
6523 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6524 function.
6525
6526 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6527 define to i386-linux-tdep.h.
6528 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6529 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6530 defines.
6531 (i386_linux_register_name, i386_linux_register_byte,
6532 i386_linux_register_raw_size): Remove prototypes.
6533 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6534 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6535 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6536 TARGET_WRITE_PC): Remove defines.
6537 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6538 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6539 i386_linux_write_pc): Remove prototypes.
6540 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6541 (get_longjmp_target): Remove prototype.
6542 * i386-linux-tdep.h: New file.
6543 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6544 * i386-linux-tdep.c: Include "i386-tdep.h" and
6545 "i386-linux-tdep.h".
6546 (i386_linux_register_name, i386_linux_register_byte,
6547 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6548 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6549 Make static.
6550 (i386_linux_init_abi): New function.
6551 (_initialize_i386_linux_tdep): New function.
6552
6553 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6554 (i386_saved_pc_after_call): Remove prototype.
6555 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6556 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6557 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6558 (i386_register_name, i386_stab_reg_to_regnum,
6559 i386_dwarf_reg_to_regnum): Remove prototypes.
6560 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6561 SIZEOF_SSE_REGS): Remove defines.
6562 (REGISTER_BYTES): Remove define.
6563 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6564 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6565 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6566 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6567 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6568 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6569 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6570 (get_longjmp_target): Remove prototype.
6571 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6572 (sigtramp_saved_pc): Remove define.
6573 (i386v4_sigtramp_saved_pc): Remove prototype.
6574 * config/i386/tm-go32.h (FRAME_CHAIN,
6575 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6576 (i386go32_frame_saved_pc): Remove prototype.
6577 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6578 (get_longjmp_target): Remove prototype.
6579 * i386-tdep.h: Include "osabi.h".
6580 (enum i386_abi): Removed.
6581 (enum struct_return): New enum.
6582 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6583 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6584 sc_pc_offset members.
6585 (i386_gdbarch_register_os_abi): Remove prototype.
6586 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6587 I386_SSE_NUM_REGS): New defines.
6588 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6589 I386_SSE_SIZEOF_REGS): New defines.
6590 (i386_register_name, i386_register_byte, i386_register_raw_size):
6591 New prototypes.
6592 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6593 (i386bsd_sigtramp_saved_pc): New prototype.
6594 * i386-tdep.c: Don't include "elf-bfd.h".
6595 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6596 i386_frame_chain, i386_saved_pc_after_call): Make static.
6597 (i386_frame_saved_pc): Rewrite to call architecture dependent
6598 function to deal with signal handlers. Make static.
6599 (i386go32_frame_saved_pc): Removed.
6600 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6601 Removed.
6602 (i386_get_longjmp_target): New function.
6603 (default_struct_convention, pcc_struct_convention,
6604 reg_struct_convention, valid_conventions, struct_convention): New
6605 variables.
6606 (i386_use_struct_convention): New function.
6607 (i386v4_sigtramp_saved_pc): Renamed to
6608 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6609 (i386_pc_in_sigtramp): New function.
6610 (i386_abi_names): Removed.
6611 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6612 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6613 Removed.
6614 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6615 i386_gdbarch_register_os_abi): Removed.
6616 (struct i386_abi_handler): Removed.
6617 (i386_abi_handler_list): Removed.
6618 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6619 functions.
6620 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6621 i386_nw_init_abi): New functions.
6622 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6623 Use set_gdbarch_xxx() calls instead of relying on macros for a
6624 number of calls.
6625 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6626 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6627 Register the various architecture variants defined in this file.
6628
ad2f7632
DJ
66292002-06-14 Daniel Jacobowitz <drow@mvista.com>
6630
6631 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6632 (struct main_type): Remove arg_types member. Update comments for
6633 struct field.
6634 (TYPE_ARG_TYPES): Remove.
6635 (TYPE_FN_FIELD_ARGS): Update.
6636 (smash_to_method_type): Update prototype.
6637
6638 * c-typeprint.c (cp_type_print_method_args): Take method type
6639 instead of argument list. Use new argument layout. Simplify.
6640 (c_type_print_args): Use new argument layout. Simplify.
6641 (c_type_print_base): Update call to cp_type_print_method_args.
6642 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6643 argument; use die->type instead. Update call to
6644 smash_to_method_type.
6645 (read_structure_scope): Update call to dwarf2_add_member_fn.
6646 * gdbtypes.c (allocate_stub_method): Update comment.
6647 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6648 Use new argument layout.
6649 (check_stub_method): Use new argument layout. Don't count
6650 void as an argument.
6651 (print_arg_types): Update comments. Use new argument layout.
6652 (recursive_dump_type): Don't print arg_types member.
6653 * hpread.c (hpread_read_struct_type): Use new argument layout.
6654 (fixup_class_method_type): Likewise.
6655 (hpread_type_lookup): Likewise.
6656 * stabsread.c (read_type): Update calls to read_args and
6657 smash_to_method_type.
6658 (read_args): Use new argument layout. Simplify.
6659 * valops.c (typecmp): Use new argument layout. Update parameters
6660 and comments. Simplify.
6661 (hand_function_call): Use new argument layout.
6662 (search_struct_method): Update call to typecmp.
6663 (find_overload_match): Use new argument layout.
6664
6da02953
DJ
66652002-06-13 Daniel Jacobowitz <drow@mvista.com>
6666
6667 * NEWS: Mention multithreaded debug support for gdbserver.
6668
519b2366
DJ
66692002-06-13 Daniel Jacobowitz <drow@mvista.com>
6670
6671 * MAINTAINERS: Mention NEWS.
6672
6c0d6680
DJ
66732002-06-13 Daniel Jacobowitz <drow@mvista.com>
6674
6675 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6676 (struct mips_objfile_private, compare_pdr_entries): New.
6677 (non_heuristic_proc_desc): Read the ".pdr" section if it
6678 is present.
6679
6529d2dd
AC
66802002-06-12 Andrew Cagney <ac131313@redhat.com>
6681
6682 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6683 (arm_debug): New static variable.
6684 (_initialize_arm_tdep): Add ``set debug arm'' command.
6685
26216b98
AC
66862002-06-12 Andrew Cagney <ac131313@redhat.com>
6687
6688 * Makefile.in (sim_arm_h): Define.
6689 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6690 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6691 (arm_register_sim_regno): New function, map an internal REGNUM
6692 onto a simulator register number.
6693 (arm_gdbarch_init): Set register_sim_regno.
6694
814b3ba0
AH
66952002-06-09 Aldy Hernandez <aldyh@redhat.com>
6696
6697 * MAINTAINERS: Add self.
6698
475b0867
JB
66992002-06-11 Jim Blandy <jimb@redhat.com>
6700
919d772c
JB
6701 * source.c (source_info): Mention whether the symtab has
6702 information about preprocessor macros.
6703
475b0867
JB
6704 Call the command `info macro', not `show macro'.
6705 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6706 Fix error message.
6707 (_initialize_macrocmd): Register `info_macro_command' in
6708 `infolist', not `showlist'.
6709
9e364162
DJ
67102002-06-11 Daniel Jacobowitz <drow@mvista.com>
6711
6712 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6713 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6714 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6715 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6716 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6717 unconditionally.
6718 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6719 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6720 (_initialize_mips_tdep): Remove dead code.
6721 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6722 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6723 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6724 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6725 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6726 MIPS_LAST_FP_ARG_REGNUM): Remove.
6727
23aa4c72
ML
67282002-06-11 Michal Ludvig <mludvig@suse.cz>
6729
6730 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6731 (unwind_tmp_obstack_free, parse_frame_info)
6732 (update_context, cfi_read_fp, cfi_write_fp)
6733 (cfi_frame_chain, cfi_init_extra_frame_info)
6734 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6735 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6736
70eb15a4
CV
67372002-06-11 Corinna Vinschen <vinschen@redhat.com>
6738
6739 * v850-tdep.c (v850_type_is_scalar): New function.
6740 (v850_use_struct_convention): Match current gcc implementation
6741 as close as possible.
6742 (v850_push_arguments): Fix stack_offset handling. Don't write
6743 struct_addr into register. This is done by v850_store_struct_return.
6744 (v850_extract_return_value): Care for structs.
6745 (v850_store_return_value): Ditto.
6746 (v850_store_struct_return): Actually write address.
6747
482a4d06
ML
67482002-06-11 Michal Ludvig <mludvig@suse.cz>
6749
6750 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6751 without debug information too.
6752
d855c300
AC
67532002-06-10 Andrew Cagney <ac131313@redhat.com>
6754
6755 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6756 Make multi-arch pure.
6757 * gdbarch.h, gdbarch.c: Re-generate.
6758 * arm-tdep.c (arm_print_float_info): Update.
6759 * arch-utils.h (default_print_float_info): Update.
6760 * arch-utils.c (default_print_float_info): Update.
6761 * infcmd.c (float_info): Update call.
6762
dd12a101
AC
67632002-06-10 Andrew Cagney <ac131313@redhat.com>
6764
6765 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6766 the front of the initialize list.
6767
101dcfbe
AC
67682002-06-10 Andrew Cagney <ac131313@redhat.com>
6769
6770 * infrun.c (struct inferior_status): Replace fields
6771 selected_frame_address and selected_level with field
6772 selected_frame_id.
6773 (save_inferior_status): Update. Use get_frame_id.
6774 (struct restore_selected_frame_args): Delete.
6775 (restore_selected_frame): Update. Use frame_find_by_id.
6776 (restore_inferior_status): Update.
6777
6778 * breakpoint.h (struct breakpoint): Change type of
6779 watchpoint_frame to frame_id.
6780 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6781 call to get_current_frame.
6782 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6783 get_current_frame.
6784 (watchpoint_check): Use frame_find_by_id.
6785
6786 * frame.h (record_selected_frame): Delete declaration.
6787 * stack.c (record_selected_frame): Delete function.
6788
6789 * frame.h (struct frame_id): Define.
6790 (get_frame_id): Declare.
6791 (frame_find_by_id): Declare.
6792 * frame.c (frame_find_by_id): New function.
6793 (get_frame_id): New function.
6794
304270b6
AV
67952002-06-10 Andrey Volkov <avolkov@transas.com>
6796
6797 * ser-e7kpc.c: Fix duplicated define and call of
6798 _initialize_ser_e7000pc
6799
2f2cf184
DJ
68002002-06-09 Daniel Jacobowitz <drow@mvista.com>
6801
6802 * signals/signals.c (target_signal_from_host): Fix #ifdef
6803 SIGRTMIN case.
6804 (do_target_signal_to_host): Likewise.
6805
caaa3122
DJ
68062002-06-09 Daniel Jacobowitz <drow@mvista.com>
6807
6808 * mips-tdep.c (mips_find_abi_section): New function.
6809 (mips_gdbarch_init): Call it.
6810
6ac5df3a
MK
68112002-06-09 Mark Kettenis <kettenis@gnu.org>
6812
6813 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6814 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6815 after Andrew's 2002-06-08 gdbarch change.
6816
82ea117a
MK
68172002-06-09 Mark Kettenis <kettenis@gnu.org>
6818
6819 * i386-linux-nat.c (suppy_gregset): Don't supply
6820 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6821 register cache.
6822 (fill_gregset): Don't fetch it under the same circumstances.
6823
3c25f8c7
AC
68242002-06-09 Andrew Cagney <cagney@redhat.com>
6825
6826 * Makefile.in (callback_h): Define.
6827 (remote_sim_h): Update path to remote-sim.h.
6828 (remote-rdp.o): Add $(callback_h).
6829 (remote-sim.o): Use $(callback_h).
6830 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6831 * remote-rdp.c: Include "gdb/callback.h".
6832
1029b7fa
MK
68332002-06-09 Mark Kettenis <kettenis@gnu.org>
6834
6835 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6836 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6837
616675d3
AC
68382002-06-08 Andrew Cagney <ac131313@redhat.com>
6839
a3efda28
AC
6840 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6841 * rdi-share/serpardr.c: Ditto.
6842 * rdi-share/unixcomm.c: Ditto.
6843 * rdi-share/serdrv.c: Ditto.
6844 * rdi-share/hostchan.h: Ditto.
6845 * rdi-share/hostchan.c: Ditto.
6846 * rdi-share/host.h: Ditto.
6847 * rdi-share/devsw.c: Ditto.
6848
c5f10366
AC
6849 * objfiles.h: Change type of obj_private to void pointer.
6850 * pa64solib.c: Update copyright. Don't include "assert.h", use
6851 strcmp instead of STREQ, use LONGEST, do not use PTR
6852 * somsolib.c: Ditto.
6853
616675d3
AC
6854 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6855 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6856 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6857
e4b415d9
AC
68582002-06-08 Andrew Cagney <ac131313@redhat.com>
6859
6860 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6861 (default_get_saved_register): Delete function.
6862 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6863 generic_unwind_get_saved_register.
6864 * gdbarch.h, gdbarch.c: Re-generate.
6865
ca0d0b52
AC
68662002-06-08 Andrew Cagney <ac131313@redhat.com>
6867
6868 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6869 generic_func_frame_chain_valid.
6870 * gdbarch.h, gdbarch.c: Re-generate.
6871 * blockframe.c (generic_func_frame_chain_valid): Only check
6872 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6873 passing FP to PC_IN_CALL_DUMMY.
6874 Fix PR gdb/360.
6875
76860b5f
AC
68762002-06-08 Andrew Cagney <ac131313@redhat.com>
6877
6878 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6879 (register_gdbarch_data): Initialize init_p.
6880 (gdbarch_data): Initialize data pointer using the init function.
6881 (init_gdbarch_data): Delete function.
6882 (gdbarch_update_p): Update.
6883 (initialize_non_multiarch): Update.
6884 (struct gdbarch): Add field initialized_p.
6885 * gdbarch.h, gdbarch.c: Re-generate.
6886
8dda9770
ML
68872002-06-07 Michal Ludvig <mludvig@suse.cz>
6888
6889 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6890 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6891 better do the things actually here.
6892 * x86-64-tdep.c (x86_64_register_name2nr): New.
6893 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6894 (x86_64_gdbarch_init): Respect the above change.
6895 * x86-64-tdep.h (x86_64_register_name2nr)
6896 (x86_64_register_nr2name): Add prototypes.
6897 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6898
3d79a47c
MS
68992002-06-06 Michael Snyder <msnyder@redhat.com>
6900
7bd91a28
MS
6901 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6902 Delete extra braces and re-indent.
6903 (d10v_store_return_value): Char return values
3d79a47c
MS
6904 must be shifted over by one byte in R0.
6905 (d10v_extract_return_value): Delete extra braces, re-indent.
6906
095a4c96
EZ
69072002-06-06 Elena Zannoni <ezannoni@redhat.com>
6908
6909 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6910 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6911 (d10v_integer_to_address): Rewrite.
6912 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6913 the d10v specific functions which take care of converting to the
6914 correct space.
6915
e8a77ca4
EZ
69162002-06-06 Elena Zannoni <ezannoni@redhat.com>
6917
6918 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6919 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6920
4f2e4a4f
AC
69212002-06-02 Andrew Cagney <ac131313@redhat.com>
6922
6923 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6924 includes.
6925 * config/tm-linux.h: Ditto.
6926 * config/alpha/tm-alphalinux.h: Ditto.
6927 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6928 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6929 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6930 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6931 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6932 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6933 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6934 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6935 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6936 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6937 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6938 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6939 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6940 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6941 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6942 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6943 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6944 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6945 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6946 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6947 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6948 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6949 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6950 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6951 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6952 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6953 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6954 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6955 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6956 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6957 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6958 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6959 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6960 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6961 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6962 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6963 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6964
ae2ab2ce
AS
69652002-05-04 Aidan Skinner <aidan@velvet.net>
6966
6967 * ada-exp.tab.c: New file
6968 * ada-exp.y: New file
6969 * ada-lang.c: New file
6970 * ada-lang.h: New file
6971 * ada-lex.c: New file
6972 * ada-lex.l: New file
6973 * ada-tasks.c: New file
6974 * ada-typeprint.c: New file
6975 * ada-valprint.c: New file
6976
0ddd0135
JT
69772002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6978
6979 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6980 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6981
750fbacc
JT
69822002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6983
6984 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6985 insetead of ppc-linux-tdep.o.
6986 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6987 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6988
df94e18a
AC
69892002-06-02 Andrew Cagney <ac131313@redhat.com>
6990
6991 2002-05-07 Christian Groessler <chris@groessler.org>
6992 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6993 bit register contents for little endian hosts.
6994
1a38ab75
AC
69952002-06-01 Andrew Cagney <ac131313@redhat.com>
6996
6997 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6998 any maintainer.
6999
8b1632ac
AC
70002002-06-01 Andrew Cagney <ac131313@redhat.com>
7001
7002 * gdbarch.h: Regenerate.
7003
627054c8
AC
70042002-06-01 Andrew Cagney <ac131313@redhat.com>
7005
7006 * MAINTAINERS: Add everyone to write-after-approval list.
7007
4f460812
AC
70082002-06-01 Andrew Cagney <ac131313@redhat.com>
7009
7010 * stack.c (frame_info): Use frame_register_unwind instead of
7011 saved_regs. Mention when the SP is on the stack or in a register.
7012
7013 * frame.h (frame_register_unwind_ftype): Define. Document.
7014 (struct frame_info): Add field register_unwind and
7015 register_unwind_cache.
7016 (frame_register_unwind): Declare.
7017 (generic_unwind_get_saved_register): Declare.
7018
7019 * frame.c (frame_register_unwind): New function.
7020 (generic_unwind_get_saved_register): New function.
7021
7022 * blockframe.c (generic_call_dummy_register_unwind): New function.
7023 (frame_saved_regs_register_unwind): New function.
7024 (set_unwind_by_pc): New function.
7025 (create_new_frame): New function.
7026 (get_prev_frame): New function.
7027
de888f76
AC
70282002-05-30 Andrew Cagney <ac131313@redhat.com>
7029
7030 * a29k-share/: Delete directory.
7031 * remote-vx29k.c: Delete file.
7032
2f2c3626
JT
70332002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7034
7035 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7036 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7037
9ce5c36a
JT
70382002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7039
7040 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7041 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7042 (sparc64nbsd-nat.o)
7043 (sparcnbsd-nat.o)
7044 (sparcnbsd-tdep.o): New dependency lists.
7045 * NEWS: Note new UltraSPARC NetBSD native configuration.
7046 * configure.host (sparc64-*-netbsd*): New host.
7047 * configure.tgt (sparc-*-netbsdelf*)
7048 (sparc-*-netbsd*): Set gdb_target to nbsd.
7049 (sparc64-*-netbsd*): New target.
7050 * sparc64nbsd-nat.c: New file.
7051 * sparcnbsd-nat.c: New file.
7052 * sparcnbsd-tdep.c: New file.
7053 * sparcnbsd-tdep.h: New file.
7054 * config/sparc/nbsd.mt: New file.
7055 * config/sparc/nbsd64.mh: New file.
7056 * config/sparc/nbsd64.mt: New file.
7057 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7058 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7059 (HOST_IPC): Remove.
7060 * config/sparc/nbsdaout.mt: Remove.
7061 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7062 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7063 (HOST_IPC): Remove.
7064 * config/sparc/nbsdelf.mt: Remove.
7065 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7066 sparc-nat.c compatiblity defines.
7067 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7068 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7069 * config/sparc/tm-nbsd64.h: New file.
7070 * config/sparc/tm-nbsdaout.h: Remove.
7071 * config/sparc/xm-nbsd.h: Remove.
7072
ef3cf062
JT
70732002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7074
7075 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7076 * sparc-tdep.c: Include osabi.h.
7077 (gdbarch_tdep): Add osabi member.
7078 (_initialize_sparc_tdep): Use gdbarch_register.
7079 (sparc_gdbarch_init): Use generic OS ABI framework.
7080 (sparc_dump_tdep): New function.
7081
ee8ff470
KB
70822002-05-30 Kevin Buettner <kevinb@redhat.com>
7083
7084 * corefile.c (do_captured_read_memory_integer): Return non-zero
7085 result.
7086 (safe_read_memory_integer): Copy result of memory read when
7087 status is non-zero. Also, add comments.
7088
7b112f9c
JT
70892002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7090
7091 * Makefile.in (ppc_tdep_h): Define.
7092 (ppc-linux-nat.o)
7093 (ppc-linux-tdep.o)
7094 (rs6000-tdep.o): Use $(ppc_tdep_h).
7095 (ppc-sysv-tdep.o)
7096 (ppcnbsd-nat.o)
7097 (ppcnbsd-tdep.o): New dependency lists.
7098 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7099 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7100 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7101 (ppc_sysv_abi_broken_use_struct_convention)
7102 (ppc_sysv_abi_use_struct_convention)
7103 (ppc_sysv_abi_push_arguments): Move to...
7104 * ppc-sysv-tdep.c: ...here.
7105 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7106 * rs6000-tdep.c (process_note_abi_tag_sections)
7107 (get_elfosabi): Remove.
7108 (rs6000_gdbarch_init): Use generic OS ABI framework.
7109 (rs6000_dump_tdep): New function.
7110 (_initialize_rs6000_tdep): Use gdbarch_register.
7111 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7112 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7113 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7114 of ppc-linux-tdep.o.
7115 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7116 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7117 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7118 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7119 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7120 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7121
480dd42a
JB
71222002-05-29 Jim Blandy <jimb@redhat.com>
7123
7124 * macroscope.c (default_macro_scope): Put `void' in empty argument
7125 list.
7126
4182591f
AC
71272002-05-29 Andrew Cagney <ac131313@redhat.com>
7128
7129 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7130 * arch-utils.c: Include "sim-regno.h".
7131 * gdbarch.sh: Don't include "sim-regno.h".
7132 * gdbarch.h, gdbarch.c: Regenerate.
7133 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7134 here.
7135 * arch-utils.h (legacy_register_sim_regno): To here.
7136 * remote-sim.c (legacy_register_sim_regno): Move function from
7137 here.
7138 * arch-utils.c (legacy_register_sim_regno): To here.
7139
8238d0bf
AC
71402002-05-28 Andrew Cagney <ac131313@redhat.com>
7141
7142 * sim-regno.h: New file.
7143 * Makefile.in (sim_regno_h): Define.
7144 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7145 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7146 (legacy_register_sim_regno): New function.
7147 (one2one_register_sim_regno): New function.
7148 (gdbsim_fetch_register): Rewrite.
7149 (gdbsim_store_register): Only store a register when
7150 REGISTER_SIM_REGNO is valid.
7151 * d10v-tdep.c: Include "sim-regno.h".
7152 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7153 (d10v_ts3_register_sim_regno): Ditto.
7154 * gdbarch.sh: Include "sim-regno.h".
7155 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7156 * gdbarch.h, gdbarch.c: Regenerate.
7157 * arch-utils.h (default_register_sim_regno): Delete declaration.
7158 * arch-utils.c (default_register_sim_regno): Delete function.
7159
485721b1
JT
71602002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7161
7162 * ppcnbsd-nat.c: Rewrite.
7163 * ppcnbsd-tdep.c: New file.
7164 * ppcnbsd-tdep.h: New file.
7165 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7166 solib.o, and solib-svr4.o.
7167 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7168 nbsd-tdep.o, and corelow.o.
7169
697f244d
AC
71702002-05-28 Andrew Cagney <ac131313@redhat.com>
7171
7172 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7173 `tr' and `sed'. Mention that `broken' targets are not expected to
7174 build.
7175
f08caad1 71762002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7177
7178 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7179 Let PC point right after the prologue before looking up symbols.
7180
3139facc
MH
71812002-05-27 Martin M. Hunt <hunt@redhat.com>
7182
7183 * i386-tdep.c (i386_register_virtual_type): Return
7184 builtin_type_vec128i for SSE registers.
7185
7186 * gdbtypes.h (builtin_type_vec128i): Declare.
7187
7188 * gdbtypes.c (build_builtin_type_vec128i): New function.
7189 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7190 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7191 (build_gdbtypes): Initialize new builtin vector types.
7192 (_initialize_gdbtypes): Register new vector types with gdbarch.
7193
6e3ba3b8
JT
71942002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7195
7196 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7197 since it has been multi-arch'd.
7198 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7199 Move Alpha and VAX multi-arch news entries to same section
7200 as other multi-arch news.
7201
93d5585d
JT
72022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7203
7204 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7205 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7206 static. Rename some register numbers to put them in ns32k-tdep
7207 private namespace.
7208 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7209 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7210 functions.
7211 (_initialize_ns32k_tdep): Use gdbarch_register.
7212 * ns32k-tdep.h: New file.
7213 * ns32knbsd-tdep.c: New file.
7214 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7215 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7216 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7217 REGISTER_BYTES, REGISTER_BYTE): Remove.
7218 * config/ns32k/tm-ns32k.h: New file.
7219 * config/ns32k/tm-umax.h: Remove.
7220
efb2c70e
JT
72212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7222
7223 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7224 ns32k_store_struct_return, ns32k_extract_return_value,
7225 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7226 functions.
7227 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7228 ns32k_saved_pc_after_call.
7229 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7230 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7231 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7232 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7233 ns32k_extract_struct_value_address.
7234
7bcc927b
JT
72352002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7236
7237 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7238 ns32k_fix_call_dummy): New.
7239 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7240 ns32k_call_dummy_words.
7241 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7242 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7243 CALL_DUMMY_NARGS): Remove.
7244 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7245
78f9d765
JT
72462002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7247
7248 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7249 ns32k_frame_saved_pc, ns32k_frame_args_address,
7250 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7251 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7252 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7253 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7254 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7255 (BREAKPOINT): Remove..
7256 (FRAME_CHAIN): Define as ns32k_frame_chain.
7257 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7258 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7259 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7260 (FRAME_FIND_SAVED_REGS): Remove.
7261 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7262 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7263 (POP_FRAME): Define as ns32k_pop_frame.
7264
f2c762e0
JT
72652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7266
7267 * ns32k-tdep.c (ns32k_register_byte_32082,
7268 ns32k_register_byte_32382, ns32k_register_raw_size,
7269 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7270 functions.
7271 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7272 ns32k_register_byte_32382.
7273 * config/ns32k/tm-umax.h: Update copyright years.
7274 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7275 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7276 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7277 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7278 (ns32k_get_enter_addr): Fix prototype.
7279
af137673
JT
72802002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7281
7282 * ns32k-tdep.c: Update copyright years.
7283 (ns32k_register_name_32082): New function.
7284 (ns32k_register_name_32382): Ditto.
7285 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7286 (REGISTER_NAME): Define as ns32k_register_name_32382.
7287 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7288 (REGISTER_NAME): Define as ns32k_register_name_32082.
7289
a8bc7b56
JB
72902002-05-24 Jim Blandy <jimb@redhat.com>
7291
7292 * dwarf2read.c (free_line_header): Use xfree, not free.
7293
83a45910
JT
72942002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7295
7296 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7297 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7298
0db71247
AC
72992002-05-23 Andrew Cagney <ac131313@redhat.com>
7300
7301 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7302
b9e5e4dd
AC
73032002-05-23 Andrew Cagney <ac131313@redhat.com>
7304
7305 From Ross Alexander at NEC Europe:
7306 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7307
de530e84
MS
73082002-05-23 Michael Snyder <msnyder@redhat.com>
7309
7310 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7311 for input, rather than parse_and_eval_address.
7312
b91b96f4
AC
73132002-05-23 Andrew Cagney <ac131313@redhat.com>
7314
7315 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7316 * Makefile.in (sim_d10v_h): Update definition.
7317
8b279e7a
AC
73182002-05-24 Andrew Cagney <cagney@redhat.com>
7319
7320 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7321 change `2002-05-22 Michael Snyder' below.
7322 (d10v_push_arguments): Ditto.
7323 (d10v_extract_return_value): Ditto.
7324
0a3d0425
JB
73252002-05-23 Jim Blandy <jimb@redhat.com>
7326
7327 * macrotab.c (check_for_redefinition): Don't complain if the new
7328 definition is the same as the previous one. Take more arguments
7329 to allow the comparison.
7330 (macro_define_object, macro_define_function): Pass more arguments
7331 to check_for_redefinition.
7332
78eac43e
MS
73332002-05-22 Michael Snyder <msnyder@redhat.com>
7334
7335 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7336 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7337 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7338 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7339 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7340 Add a temp variable to save a call (and a memory read).
7341 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7342 if possible (so that PC_IN_CALL_DUMMY will work).
7343
9bc1edb8
CV
73442002-05-22 Corinna Vinschen <vinschen@redhat.com>
7345
7346 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7347
005ef3d2
ML
73482002-05-22 Michal Ludvig <mludvig@suse.cz>
7349
7350 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7351 fde->cie_ptr.
7352 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7353 (dwarf2_build_frame_info): Add offset to fde->initial_location
7354 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7355 (execute_stack_op): Change type of 'result' from ULONGEST to
7356 CORE_ADDR.
005ef3d2 7357
fcf4f891
JT
73582002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7359
7360 * config/alpha/tm-nbsd.h: Include solib.h.
7361
cfef91e4
JT
73622002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7363
7364 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7365 assumptions about the host's byte order.
7366
9964235a
JT
73672002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7368
7369 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7370 to dependency list.
7371 * alphanbsd-tdep.c: Include solib-svr4.h.
7372 * shnbsd-tdep.c: Ditto.
7373
9eeef8ef
JT
73742002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7375
7376 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7377 nbsd-tdep.h to dependency list.
7378 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7379 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7380 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7381 nbsdaout.mh and nbsdelf.mh consistently.
7382 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7383 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7384 nbsdaout.mt and nbsdelf.mh consistently.
7385 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7386 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7387 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7388 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7389 a.out shared library stuff from here...
7390 * config/nm-nbsdaout.h: ...to here.
7391 * config/tm-nbsd.h: Remove.
7392 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7393 * config/arm/nbsd.mh: Remove.
7394 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7395 nbsd-tdep.o.
7396 * config/arm/nbsdaout.mh: New file.
7397 * config/arm/nbsdelf.mh: New file.
7398 * config/arm/nm-nbsdaout.h: New file.
7399 * config/i386/nbsd.mh: Remove.
7400 * config/i386/nbsd.mt: Remove.
7401 * config/i386/nbsdaout.mh: New file.
7402 * config/i386/nbsdaout.mt: New file.
7403 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7404 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7405 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7406 i386_register_u_addr): Remove.
7407 * config/i386/nm-nbsdaout.h: New file.
7408 * config/i386/nm-nbsdelf.h: Remove.
7409 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7410 (USE_STRUCT_CONVENTION): Remove.
7411 * config/i386/tm-nbsdaout.h: New file.
7412 * config/i386/tm-nbsdelf.h: Remove.
7413 * config/m68k/nbsd.mh: Remove.
7414 * config/m68k/nbsd.mt: Remove.
7415 * config/m68k/nbsdaout.mh: New file.
7416 * config/m68k/nbsdaout.mt: New file.
7417 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7418 * config/m68k/nm-nbsdaout.h: New file.
7419 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7420 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7421 * config/ns32k/nbsd.mh: Remove.
7422 * config/ns32k/nbsd.mt: Remove.
7423 * config/ns32k/nbsdaout.mh: New file.
7424 * config/ns32k/nbsdaout.mt: New file.
7425 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7426 * config/ns32k/nm-nbsdaout.h: New file.
7427 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7428 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7429 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7430 (SVR4_SHARED_LIBS): Remove.
7431 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7432 * config/sparc/nbsd.mh: Remove.
7433 * config/sparc/nbsd.mt: Remove.
7434 * config/sparc/nbsdaout.mh: New file.
7435 * config/sparc/nbsdaout.mt: New file.
7436 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7437 * config/sparc/nbsdelf.mt: New file.
7438 * config/sparc/nm-nbsdaout.h: New file.
7439 * config/sparc/nm-nbsdelf.h: Remove.
7440 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7441 * config/sparc/tm-nbsdaout.h: New file.
7442
257ce470
JT
74432002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7444
7445 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7446 mipsnbsd-tdep.c
7447 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7448
76a6d5fe
JT
74492002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7450
7451 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7452 shnbsd-nat.c.
7453 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7454
45888261
JT
74552002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7456
7457 * NEWS: Note new MIPS NetBSD native configuration.
7458 * configure.host (mips*-*-netbsd*): New host.
7459 * configure.tgt (mips*-*-netbsd*): New target.
7460 * mipsnbsd-nat.c: New file.
7461 * mipsnbsd-tdep.c: New file.
7462 * mipsnbsd-tdep.h: New file.
7463 * config/mips/nbsd.mh: New file.
7464 * config/mips/nbsd.mt: New file.
7465 * config/mips/nm-nbsd.h: New file.
7466 * config/mips/tm-nbsd.h: New file.
7467
70f80edf
JT
74682002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7469
7470 * Makefile.in (SFILES): Add osabi.c.
7471 (COMMON_OBS): Add osabi.o.
7472 (osabi.o): New dependency list.
7473 * osabi.c: New file.
7474 * osabi.h: New file.
7475 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7476
7477 * Makefile.in (alpha_tdep_h): Define and use instead of
7478 alpha-tdep.h.
7479 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7480 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7481 Remove.
7482 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7483 * alpha-tdep.h: Include osabi.h.
7484 (alpha_abi): Remove.
7485 (gdbarch_tdep): Use generic OS ABI framework.
7486 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7487 gdbarch_register_osabi.
7488 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7489 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7490 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7491
7492 * Makefile.in (sh_tdep_h): Add osabi.h.
7493 * sh-tdep.h (sh_osabi): Remove.
7494 (gdbarch_tdep): Use generic OS ABI framework.
7495 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7496 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7497 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7498 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7499
7500 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7501 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7502 gdbarch_register_osabi.
7503 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7504 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7505 (get_elfosabi): Rename to...
7506 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7507 ABI framework support routines.
7508 (arm_gdbarch_init): Use generic OS ABI framework.
7509 (arm_dump_tdep): Likewise.
7510 (_initialize_arm_tdep): Likewise.
7511 * arm-tdep.h: Include osabi.h.
7512 (arm_abi): Remove.
7513 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7514 osabi member.
7515 (arm_gdbarch_register_os_abi): Remove prototype.
7516 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7517 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7518
7519 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7520 * mips-tdep.c: Include osabi.h.
7521 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7522 OS ABI framework.
7523
d194345b
KH
75242002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7525
7526 * h8300-tdep.c: Fix formatting.
7527
70c6b0d1
EZ
75282002-05-20 Elena Zannoni <ezannoni@redhat.com>
7529
7530 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7531 printing vector registers.
7532
165b8e33
AC
75332002-05-19 Andrew Cagney <ac131313@redhat.com>
7534
7535 From Fernando Nasser:
7536 * remote.c (remote_async_open_1): Re-throw the exception when the
7537 connection fails.
7538 (remote_cisco_open): Ditto.
7539 (remote_open_1): Ditto.
7540
36918e70
AC
75412002-05-19 Andrew Cagney <ac131313@redhat.com>
7542
7543 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7544 (remote_start_remote): Add uiout parameter. Pass through to
7545 remote_start_remote_dummy.
7546 (remote_open_1): Use catch_exception instead of catch_errors.
7547 (remote_async_open_1): Ditto.
7548 (remote_cisco_open): Ditto.
7549
ae44c0c4
AC
75502002-05-19 Andrew Cagney <ac131313@redhat.com>
7551
7552 * remote.c (remote_start_remote): Replace PTR with void pointer.
7553 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7554 static.
7555
8efe637d
AC
75562002-05-18 Andrew Cagney <ac131313@redhat.com>
7557
7558 * gdb_indent.sh: Allow the script to be run in the sim directory.
7559
2f1b5984
MK
75602002-05-18 Mark Kettenis <kettenis@gnu.org>
7561
f0f625e2
MK
7562 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7563 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7564
2f1b5984
MK
7565 * corelow.c (core_open): Only call set_gdbarch_from_file if
7566 exec_bfd is NULL.
7567
fc974602
AV
75682002-05-17 Andrey Volkov <avolkov@transas.com>
7569
7570 * h8300-tdep.c: Add support of EXR register
7571 * config/h8300/tm-h8300.h: Ditto.
7572
906709f4
AV
75732002-05-17 Andrey Volkov <avolkov@transas.com>
7574
7575 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7576
6e591d68
AV
75772002-05-17 Andrey Volkov <avolkov@transas.com>
7578
7579 * h8300-tdep.c: Change literal regnums to REGNO.
7580
84f0252a
JB
75812002-05-17 Jim Blandy <jimb@redhat.com>
7582
e0e9281e
JB
7583 * NEWS: Note addition of macro support.
7584
84f0252a
JB
7585 Expand preprocessor macros in C expressions.
7586 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7587 (scan_macro_expansion, scanning_macro_expansion,
7588 finished_macro_expansion): New function declarations.
7589 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7590 variable declarations.
7591 * parser-defs.h (expression_context_pc): New declaration.
7592 * parse.c (expression_context_pc): New variable.
7593 (parse_exp_1): Set expression_context_pc, as well as
7594 expression_context_block.
7595 * c-exp.y (yylex): If we're not already reading the result of a
7596 macro expansion, try to macro-expand the next token. When we're
7597 done scanning a macro expansion, switch back to the mainline text.
7598 Commas and `if's in a macro's expansion don't terminate the input.
7599 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7600 (macro_original_text, macro_expanded_text,
7601 expression_macro_lookup_func, expression_macro_lookup_baton): New
7602 variables.
7603 (scan_macro_expansion, scanning_macro_expansion,
7604 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7605 c_preprocess_and_parse): New functions.
7606 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7607 c_preprocess_and_parse, instead of c_parse.
7608 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7609 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7610
1c509ca8
JR
7611Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7612
7613 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7614 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7615 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7616
2250ee0c
CV
76172002-05-17 Corinna Vinschen <vinschen@redhat.com>
7618
7619 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7620
ab3b8126
JT
76212002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7622
7623 * Makefile.in (sh_tdep_h): Define and use.
7624 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7625 register enum): Move to...
7626 * * sh-tdep.h: ...here.
7627 * sh-tdep.c: Include sh-tdep.h.
7628 * sh3-rom.c: Likewise.
7629 * shnbsd-tdep.c: Likewise.
7630
ed9d4749
MS
76312002-05-16 Michael Snyder <msnyder@redhat.com>
7632
7633 * arm-tdep.c: Spelling fix in comment.
7634
2e276125
JB
76352002-05-16 Jim Blandy <jimb@redhat.com>
7636
6821892e
JB
7637 Add commands for manually expanding macros and showing their
7638 definitions.
7639 * macrocmd.c, macroscope.c, macroscope.h: New files.
7640 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7641 (macroscope_h): New variable.
7642 (HFILES_NO_SRCDIR): Add macroscope.h.
7643 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7644 (macroscope.o, macrocmd.o): New rules.
7645
2e276125
JB
7646 Teach the Dwarf 2 reader to read macro information.
7647 * dwarf2read.c: #include "macrotab.h".
7648 (dwarf_macinfo_buffer): New variable.
7649 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7650 dwarf_macinfo_size.
7651 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7652 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7653 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7654 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7655 dwarf2_macro_spaces_in_definition): New complaints.
7656 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7657 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7658 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7659 the partial symbol table.
7660 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7661 from what's recorded in the partial symbol table.
7662 (read_file_scope): If the compilation unit has a
7663 `DW_AT_macro_info' attribute, read its macro information.
7664 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7665
2f53fe6c
DJ
76662002-05-16 Daniel Jacobowitz <drow@mvista.com>
7667
7668 Fix PR gdb/546
7669 * ser-tcp.c: Don't include <netinet/udp.h>.
7670
2be99286
SC
76712002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7672
7673 * MAINTAINERS: Update my email address.
7674
c9af212b 76752002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7676
7677 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7678 include file of the same name.
7679
bf5f1a52
CV
76802002-05-16 Corinna Vinschen <vinschen@redhat.com>
7681
7682 * configure.tgt: Mark v850 as multi-arched.
7683 * config/v850/tm-v850.h: Remove file.
7684 * config/v850/v850.mt: Eliminate TM_FILE.
7685
435e042a
CV
76862002-05-16 Corinna Vinschen <vinschen@redhat.com>
7687
7688 * v850-tdep.c: Full multi-arch.
7689 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7690 Define GDB_MULTI_ARCH to 2.
7691
9819c6c8
PM
76922002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7693
7694 * p-exp.y (current_type): New static variable.
7695 Carries the type of the expression at the position that is parsed.
7696 (push_current_type, pop_current_type): Two new functions. Used
7697 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7698 (search_field): New static variable. Set to one after parsing a point
7699 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7700 (FIELDNAME): New token. After a point only a token belonging to
7701 current_type type definition is allowed.
7702 (all over token rules): reset and change current_type according
7703 to rules.
7704 (exp '[' rule): insert implicit array index field if
7705 exp is a pascal string type.
7706
3a06899a
CV
77072002-05-16 Corinna Vinschen <vinschen@redhat.com>
7708
7709 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7710 frame info. Use frame_info's saved_regs instead of matching member
7711 in extra_frame_info throughout.
7712 (v850_frame_init_saved_regs): New function.
7713 (v850_init_extra_frame_info): Move most functionality into
7714 v850_frame_init_saved_regs().
7715 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7716 (v850_frame_find_saved_regs): Remove declaration.
7717 (FRAME_FIND_SAVED_REGS): Remove definition.
7718 (v850_frame_init_saved_regs): Add declaration.
7719 (FRAME_INIT_SAVED_REGS): Add definition.
7720
6ed14b0e
CV
77212002-05-16 Corinna Vinschen <vinschen@redhat.com>
7722
7723 * v850-tdep.c: Begin multi-arch'ing v850.
7724 (v850_target_architecture_hook): Remove function.
7725 (v850_gdbarch_init): New function. Add code previously in
7726 v850_target_architecture_hook().
7727 (_initialize_v850_tdep): Don't set target_architecture_hook.
7728 Call register_gdbarch_init() instead.
7729
42725910
DJ
77302002-05-16 Daniel Jacobowitz <drow@mvista.com>
7731
7732 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7733 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7734 (fixup_class_method_type): Likewise.
7735
99d9066e
JB
77362002-05-15 Jim Blandy <jimb@redhat.com>
7737
7738 Add macro structures to GDB's symbol tables. Nobody puts anything
7739 in them yet.
7740 * symtab.h (struct symtab): New member: `macro_table'.
7741 * buildsym.h (pending_macros): New global variable.
7742 * buildsym.c: #include "macrotab.h".
7743 (buildsym_init): Initialize `pending_macros'.
7744 (end_symtab): If we found macro information while reading a CU's
7745 debugging info, do build a symtab structure for it. Make the
7746 symtab point to the macro information, and clear the
7747 `pending_macros' pointer which held it while we were reading the
7748 debug info.
7749 (really_free_pendings): Free any pending macro table.
7750 * objfiles.h (struct objfile): New member: `macro_cache'.
7751 * objfiles.c (allocate_objfile): Set allocate and free functions
7752 for the macro cache's objstack.
7753 (free_objfile): Empty the macro cache's obstack.
7754 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7755 set new allocate and free functions for it.
7756 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7757 free functions for the macro cache's objstack. (Why is this
7758 function building its own objfile?)
7759 * symmisc.c (print_objfile_statistics): Print statistics on the
7760 macro bcache.
7761 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7762
c899585b
RE
77632002-05-15 Richard Earnshaw <rearnsha@arm.com>
7764
7765 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7766 (REGISTER_U_ADDR): Delete definition.
7767 (arm_register_u_addr): Delete declaration.
7768
a6cdd8c5
RE
77692002-05-15 Richard Earnshaw <rearnsha@arm.com>
7770
7771 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7772 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7773
c97dcfc7
AC
77742002-05-14 Andrew Cagney <ac131313@redhat.com>
7775
7776 * regcache.c (register_valid): Revise comments refering to "Not
7777 available" and "unavailable".
7778 * frame.c (frame_register_read): Ditto.
7779 * findvar.c (value_of_register): Ditto.
7780
93021b7d
AC
77812002-05-15 Andrew Cagney <cagney@redhat.com>
7782
7783 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7784 (remote-sim.o): Update dependencies.
7785 (d10v-tdep.o): Specify dependencies.
7786 (sim_d10v_h): Define.
7787
a86bc61c
JB
77882002-05-14 Jim Blandy <jimb@redhat.com>
7789
7790 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7791 * macrotab.c (macro_lookup_inclusion, find_definition,
7792 new_macro_table): Same.
7793
7794 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7795 not `! strcmp ()'. This is a dubious improvement.
7796 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7797
7798 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7799 although it's not necessary, to avoid a warning.
7800
2fdde8f8
DJ
78012002-05-14 Daniel Jacobowitz <drow@mvista.com>
7802
7803 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7804 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7805 TYPE_INSTANCE_FLAGS.
7806 (struct main_type): New.
7807 (struct type): Move most members to struct main_type. Change
7808 cv_type and as_type to new type_chain member. Add instance_flags.
7809 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7810 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7811 (finish_cv_type): Remove prototype.
7812 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7813 Set TYPE_CHAIN.
7814 (alloc_type_instance): New function.
7815 (smash_type): New function.
7816 (make_pointer_type, make_reference_type, make_function_type)
7817 (smash_to_member_type, smash_to_method_type): Call smash_type.
7818 (make_qualified_type): New function.
7819 (make_type_with_address_space): Call make_qualified_type.
7820 (make_cv_type): Likewise.
7821 (finish_cv_type): Remove unnecessary function.
7822 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7823 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7824 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7825 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7826 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7827 * hpread.c (hpread_read_struct_type): Likewise.
7828 * stabsread.c (read_struct_type): Likewise.
7829
843fedf4
EZ
78302002-05-14 Elena Zannoni <ezannoni@redhat.com>
7831
7832 * configure.tgt: Add a catch all sh* target, for cases like
7833 sh[2,3,4]-elf and sh-hms.
7834
05a6c72c
KS
78352002-05-14 Keith Seitz <keiths@redhat.com>
7836
7837 * event-loop.c (create_file_handler): Don't do anything but
7838 update data when we are given a fd which we are already
7839 monitoring.
7840
5d085aaf
ML
78412002-05-14 Michal Ludvig <mludvig@suse.cz>
7842
7843 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7844 (update_context): Use __func__ in warnings.
7845
9db8d71f
DJ
78462002-05-14 Daniel Jacobowitz <drow@mvista.com>
7847
7848 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7849 and tcp_close to net_open and net_close.
7850 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7851 using UDP if requested. Don't try to disable Nagle on UDP
7852 sockets.
7853 * remote.c (remote_serial_open): New function. Warn about UDP.
7854 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7855
5dbc6baa
EZ
78562002-05-13 Elena Zannoni <ezannoni@redhat.com>
7857
7858 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7859
cc3023f7
EZ
78602002-05-13 Elena Zannoni <ezannoni@redhat.com>
7861
7862 * configure.tgt: Remove sh-hms target.
7863 * MAINTAINERS: Don't list sh-hms as a separate target.
7864
ec2bcbe7
JB
78652002-05-13 Jim Blandy <jimb@redhat.com>
7866
7867 Add first preprocessor macro-expansion files.
7868 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7869 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7870 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7871 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7872 (COMMON_OBS): Add macrotab.o, macroexp.o.
7873 (macroexp.o, macrotab.o): New rules.
7874
6d531722
AC
78752002-05-13 Andrew Cagney <ac131313@redhat.com>
7876
7877 * config/m88k/tm-m88k.h: Update copyright.
7878 (m88k_target_write_pc): Declare
7879 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7880 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7881 (SHIFT_INST_REGS): Update definition.
7882 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7883 using old definition of TARGET_WRITE_PC.
7884 * regcache.c (generic_target_write_pc): Delete code handling
7885 NNPC_REGNUM.
7886 * gdbarch.sh (NNPC_REGNUM): Delete.
7887 * gdbarch.h, gdbarch.c: Regenerate.
7888
3e3f2739
RE
78892002-05-13 Richard Earnshaw <rearnsha@arm.com>
7890
7891 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7892 builtin reg number.
7893
0004e5a2
DJ
78942002-05-13 Daniel Jacobowitz <drow@mvista.com>
7895
7896 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7897 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7898 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7899 access macros.
7900 * c-typeprint.c (cp_type_print_method_args): Likewise.
7901 (c_type_print_args): Likewise.
7902 * d10v-tdep.c (d10v_push_arguments): Likewise.
7903 (d10v_extract_return_value): Likewise.
7904 * expprint.c (print_subexp): Likewise.
7905 * gdbtypes.c (lookup_primitive_typename): Likewise.
7906 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7907 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7908 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7909 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7910 (TYPE_VECTOR): Likewise.
7911 * hpread.c (hpread_read_struct_type)
7912 (fix_static_member_physnames, fixup_class_method_type)
7913 (hpread_type_lookup): Likewise.
7914 * mdebugread.c (parse_symbol, parse_type): Likewise.
7915 * p-lang.c (is_pascal_string_type): Likewise.
7916 * valops.c (hand_function_call): Likewise.
7917 * x86-64-tdep.c (classify_argument): Likewise.
7918
7919 * hpread.c (hpread_read_function_type)
7920 (hpread_read_doc_function_type): Call replace_type.
7921 * dstread.c (create_new_type): Delete.
7922 (decode_dst_structure, process_dst_function): Call alloc_type.
7923 Use type access macros.
7924
dff95cc7
MK
79252002-05-12 Mark Kettenis <kettenis@gnu.org>
7926
7927 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7928 the're not supported by the current architecture.
7929 (i387_fill_fxsave): Likewise.
7930
bbcd32ad
FF
79312002-05-12 Fred Fish <fnf@redhat.com>
7932
7933 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7934 sect_index_xxx members to index the first slot in section_offsets
7935 if all of the section_offsets are zero.
7936
89cf4787
MK
79372002-05-12 Mark Kettenis <kettenis@gnu.org>
7938
7939 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7940 checked in with last change.
7941
1f77ffc5
MK
79422002-05-12 Mark Kettenis <kettenis@gnu.org>
7943
7944 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7945 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7946 config.sub.
7947
89b8b4a9
DJ
79482002-05-12 Daniel Jacobowitz <drow@mvista.com>
7949
7950 * Makefile.in: Update dependencies.
7951
14a5e767
AC
79522002-05-11 Andrew Cagney <ac131313@redhat.com>
7953
7954 * language.c (local_hex_string_custom): Simplify. Do not depend
7955 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7956
7957 * memattr.c (mem_info_command): Replace calls to
7958 longest_local_hex_string and longest_local_hex_string_custom.
7959 * buildsym.c (make_blockvector): Ditto.
7960 * solib.c (info_sharedlibrary_command): Ditto.
7961 * tracepoint.c (tracepoints_info): Ditto.
7962 * symtab.c (print_msymbol_info): Ditto.
7963
7964 * language.c (local_hex_string): Delete.
7965 (local_hex_string_custom): Delete.
7966 (longest_local_hex_string): Rename to local_hex_string.
7967 (longest_local_hex_string_custom): Rename to
7968 local_hex_string_custom.
7969 * language.h (local_hex_string): Change parameter type to LONGEST.
7970 (local_hex_string_custom): Ditto.
7971 (longest_local_hex_string): Delete declaration.
7972 (longest_local_hex_string_custom): Ditto.
7973
7974 * solib.c: Update copyright.
7975 * memattr.c: Update copyright.
7976
13d01224
AC
79772002-05-11 Andrew Cagney <ac131313@redhat.com>
7978
7979 * arch-utils.h (legacy_register_to_value): Declare.
7980 (legacy_value_to_register): Declare.
7981 (legacy_convert_register_p): Declare.
7982 * arch-utils.c (legacy_register_to_value): New function.
7983 (legacy_value_to_register): New function.
7984 (legacy_convert_register_p): New function.
7985
7986 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7987 (VALUE_TO_REGISTER): Define.
7988 (CONVERT_REGISTER_P): Define.
7989 * gdbarch.h, gdbarch.c: Regenerate.
7990
7991 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7992 VALUE_TO_REGISTER.
7993 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7994 CONVERT_REGISTER_P.
7995
4a1970e4
DJ
79962005-05-11 Daniel Jacobowitz <drow@mvista.com>
7997 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7998
7999 * Makefile.in: Update dependencies for valops.c.
8000 * valops.c: Include "gdb_assert.h".
8001 (typecmp): Skip THIS parameter to methods.
8002 (find_method_list): Remove static_memfuncp argument,
8003 update callers. Check for stub methods.
8004 (find_value_oload_method_list): Don't set *static_memfuncp.
8005 (find_overload_match): Don't check for stub methods. Assert
8006 that methods are not stubbed. Handle static methods.
8007 (value_find_oload_method_list): Remove static_memfuncp argument.
8008 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8009 to the argument list for static stub methods.
8010 * value.h (value_find_oload_method_list): Update prototype.
8011
b2e75d78
AC
80122002-05-11 Andrew Cagney <ac131313@redhat.com>
8013
8014 * arch-utils.h (generic_register_size): Declare.
8015 (generic_register_raw_size, generic_register_virtual_size): Delete
8016 declarations.
8017 * arch-utils.c (generic_register_raw_size): Delete.
8018 (generic_register_size): New function.
8019 (generic_register_virtual_size): Delete.
8020
8021 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8022 default generic_register_size.
8023 * gdbarch.h, gdbarch.c: Re-generate.
8024
8025 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8026 register_virtual_size.
8027 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8028 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8029
451fbdda
AC
80302002-05-11 Andrew Cagney <ac131313@redhat.com>
8031
8032 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8033 * gdbarch.h, gdbarch.c: Regenerate.
8034 * gnu-v3-abi.c: Update copyright.
8035 (vtable_address_point_offset): Update.
8036 (gnuv3_rtti_type): Update.
8037 (gnuv3_baseclass_offset): Update.
8038 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8039 (init_fetch_link_map_offsets): Update.
8040 * remote.c (get_remote_state): Update.
8041
6d2f5cea
DJ
80422002-05-11 Daniel Jacobowitz <drow@mvista.com>
8043
8044 * TODO: Remove value_headof/value_from_vtable_info comment.
8045 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8046 * values.c (value_headof, value_from_vtable_info): Delete.
8047 * value.h (value_from_vtable_info): Delete prototype.
8048
d2324da4
AC
80492002-05-11 Andrew Cagney <ac131313@redhat.com>
8050
8051 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8052 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8053 $(gdb_regex_h).
8054 (gdb_assert_h): Define.
8055 (gdb_wait_h): Define.
8056 (gdb_regex_h): Define.
8057
5c717440
DJ
80582002-05-11 Daniel Jacobowitz <drow@mvista.com>
8059
8060 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8061 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8062
6c7861b3
JT
80632002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8064
8065 * nbsd-tdep.c: Fix comment.
8066
ea5bc2a6
JT
80672002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8068
8069 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8070 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8071 (nbsd-tdep.o): New dependency list.
8072 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8073 nbsd-tdep.h.
8074 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8075 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8076 * nbsd-tdep.c: New file.
8077 * nbsd-tdep.h: New file.
8078 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8079 nbsd-tdep.h.
8080 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8081 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8082 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8083 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8084
b28da865
JT
80852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8086
8087 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8088 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8089 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8090 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8091 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8092 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8093
4b8ff1fa
JT
80942002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8095
8096 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8097 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8098 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8099 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8100 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8101 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8102 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8103
dfe6eb1f
JT
81042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8105
8106 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8107 fetch_elfcore_registers to...
8108 * i386nbsd-tdep.c: ...here.
8109 (i386nbsd_use_struct_convention): Rename to...
8110 (i386nbsd_aout_use_struct_convention): ...this.
8111 (i386nbsd_supply_reg): New function.
8112 (i386nbsd_fill_reg): New function.
8113 (fetch_core_registers): Use i386nbsd_supply_reg.
8114 (fetch_elfcore_registers): Likewise.
8115 (_initialize_i386nbsd_tdep): New function.
8116 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8117 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8118 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8119 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8120 (i386nbsd_aout_use_struct_convention): ...this.
8121
20cb8cda
JT
81222002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8123
8124 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8125 (store_inferior_registers): Use shnbsd_fill_reg.
8126 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8127 sh_nbsd_supply_register): Collapse into...
8128 (shnbsd_supply_reg): ...this.
8129 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8130 (shnbsd_fill_reg): ...this.
8131 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8132 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8133 (fetch_core_registers): Use shnbsd_supply_reg.
8134 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8135 (sh_nbsd_core_fns): Rename to...
8136 (shnbsd_core_fns): ...this.
8137 (sh_nbsd_elfcore_fns): Rename to...
8138 (shnbsd_elfcore_fns): ...this.
8139 (sh_nbsd_init_abi): Rename to...
8140 (shnbsd_init_abi): ...this.
8141 (_initialize_sh_nbsd_tdep): Rename to...
8142 (_initialize_shnbsd_tdep): ...this.
8143 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8144 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8145 sh_nbsd_fill_register): Remove prototypes.
8146 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8147
e750d25e
JT
81482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8149
8150 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8151 (i387-nat.o): Delete dependency list.
8152 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8153 (x86-64-linux-nat.o): Likewise.
8154 * i387-nat.c: Delete file, moving contents to...
8155 * i387-tdep.c: ...here.
8156 * i387-nat.h: Rename...
8157 * i387-tdep.h: ...to this.
8158 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8159 * i386-linux-nat.c: Likewise.
8160 * i386bsd-nat.c: Likewise.
8161 * i386gnu-nat.c: Likewise.
8162 * i386nbsd-nat.c: Likewise.
8163 * i386v4-nat.c: Likewise.
8164 * x86-64-linux-nat.c: Likewise.
8165 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8166 * config/i386/go32.mh (NATDEPFILES): Likewise.
8167 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8168 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8169 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8170 * config/i386/linux.mh (NATDEPFILES): Likewise.
8171 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8172 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8173 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8174 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8175
1aee598a
JT
81762002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8177
8178 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8179 (alphanbsd-nat.o): Remove dependency list.
8180 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8181 * alphanbsd-nat.c: Delete. Contents moved to...
8182 * alphanbsd-tdep.c: ...here.
8183 (_initialize_alphanbsd_tdep): Register core functions.
8184 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8185
12bcb0fe
JT
81862002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8187
8188 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8189 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8190 (alphanbsd-nat.o): Likewise.
8191 (alphabsd-tdep.o): New dependency list.
8192 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8193 (fill_gregset): Use alphabsd_fill_reg.
8194 (supply_fpregset): Use alphabsd_supply_fpreg.
8195 (fill_fpregset): Use alphabsd_fill_fpreg.
8196 (fetch_inferior_registers): Use struct reg and struct fpreg
8197 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8198 and alphabsd_supply_fpreg.
8199 (store_inferior_registers): Use struct reg and struct fpreg
8200 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8201 and alphabsd_fill_fpreg.
8202 * alphabsd-tdep.c: New file.
8203 * alphabsd-tdep.h: New file.
8204 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8205 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8206 alphabsd_supply_fpreg.
8207 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8208 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8209
361d1df0
EC
82102002-05-11 Eric Christopher <echristo@redhat.com>
8211
8212 * mips-tdep.c (mips_double_register_type): Fix thinko.
8213 (mips_single_register_type): Ditto.
8214 * MAINTAINERS: Add self.
8215
92dd7cee
MK
82162002-05-11 Mark Kettenis <kettenis@gnu.org>
8217
8218 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8219 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8220 right thing on architectures with different endianness and/or
8221 integer sizes.
8222
e27da16d
JT
82232002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8224
8225 From Christian Limpach <chris@Pin.LU>
8226 * configure.in: Change sed expression which comments out
8227 NATDEPFILES to also comment out continuation lines.
8228 * configure: Regenerate.
8229
ddde02bd
EZ
82302002-05-10 Elena Zannoni <ezannoni@redhat.com>
8231
8232 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8233 big patch.
8234
1c922164
EZ
82352002-05-10 Elena Zannoni <ezannoni@redhat.com>
8236
8237 * sh-tdep.c: Include correct file.
8238
283150cd
EZ
82392002-05-10 Elena Zannoni <ezannoni@redhat.com>
8240
8241 New support for sh64-elf (sh5) target.
8242
8243 * configure.tgt: For sh64-elf target, default to sh-elf.
8244
8245 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8246 (struct gdbarch_tdep): Add new fields for new registers and ABI
8247 info.
361d1df0 8248
283150cd
EZ
8249 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8250 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8251 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8252 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8253 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8254 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8255 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8256 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8257 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8258 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8259 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8260 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8261 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8262 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8263 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8264 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8265 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8266 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8267 sign_extend, sh64_nofp_frame_init_saved_regs,
8268 sh64_init_extra_frame_info, sh64_get_saved_register,
8269 sh64_extract_struct_value_address, sh64_pop_frame,
8270 sh64_push_arguments, sh64_extract_return_value,
8271 sh64_store_return_value, sh64_show_media_regs,
8272 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8273 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8274 sh_sh64_register_virtual_type,
8275 sh_sh64_register_convert_to_virtual,
8276 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8277 sh64_register_read, sh64_pseudo_register_write,
8278 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8279 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8280 sh64_do_pseudo_register, sh_compact_do_registers_info,
8281 sh64_do_registers_info, sh_gdbarch_init): New functions.
8282
3117ed25
EZ
82832002-05-10 Elena Zannoni <ezannoni@redhat.com>
8284
8285 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8286
2654e6d4
DJ
82872002-05-10 Daniel Jacobowitz <drow@mvista.com>
8288
8289 * linespec.c (decode_line_1): Check for a double quote after
8290 a filename correctly.
8291
9ab3e532
JB
82922002-05-10 Jim Blandy <jimb@redhat.com>
8293
8294 Properly track the size of the current objfile's .debug_line section.
8295 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8296 (DWARF_LINE_SIZE): New macro.
8297 (dwarf2_build_psymtabs_hard): Record the line section's size in
8298 the partial symbol table.
8299 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8300 symbol table.
8301
126fa72d
PS
83022002-05-10 Petr Sorfa <petrs@caldera.com>
8303
8304 * ia64-tdep.c: Handle breakpoints on L instruction type
8305 in MLX instruction bundle by moving the breakpoint to
8306 the third slot (X instruction type) as L holds only data.
8307
1f077a3e
KB
83082002-05-10 Kevin Buettner <kevinb@redhat.com>
8309
8310 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8311 (process_one_symbol): Complain about discarding local symbols
8312 due to a misplaced N_LBRAC entry.
8313
8120c9d5 83142002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8315
8316 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8317 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8318 decrease the depth we are at, in the case of templates.
361d1df0 8319
67b2c998
DJ
83202002-05-09 Daniel Jacobowitz <drow@mvista.com>
8321
8322 * mips-tdep.c (mips_float_register_type): New function.
8323 (mips_double_register_type): New function.
8324 (mips_print_register): Use them.
8325 (do_fp_register_row): Likewise.
8326
fd326606
DJ
83272002-05-09 Daniel Jacobowitz <drow@mvista.com>
8328
6609d9af 8329 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8330 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8331 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8332
bef35864
MS
83332002-05-09 Michael Snyder <msnyder@redhat.com>
8334
8335 * remote-rdp.c (remote_rdp_can_run): Remove.
8336
c55a3f73
TT
83372002-05-09 Tom Tromey <tromey@redhat.com>
8338
8339 * jv-valprint.c (java_val_print): Handle `char' as a special case
8340 of TYPE_CODE_INT.
8341
b8d5e71d
MS
83422002-05-09 Michael Snyder <msnyder@redhat.com>
8343
8344 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8345 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8346 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8347 str r(0123),[sp,#nn].
361d1df0 8348 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8349 order-independent by placing it in a loop.
8350
e2cd42dd
MS
83512002-05-06 Michael Snyder <msnyder@redhat.com>
8352
8353 * stabsread.c (read_type): Add recognition for new attribute:
8354 "@V;" means that an array type is actually a vector.
8355 This is analogous to the vector flag that's been added to dwarf2.
8356
3ce1502b
MK
83572002-05-09 Mark Kettenis <kettenis@gnu.org>
8358
8359 * i386-tdep.h (i386_abi): New enum.
8360 (struct gdbarch_tdep): Replace os_ident member with abi.
8361 (i386_gdbarch_register_os_abi): New prototype.
8362 * i386-tdep.c (i386_abi_names): New array.
8363 (process_note_abi_tag_sections): Removed.
8364 (process_note_sections): New function.
8365 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8366 (struct i386_abi_handler): New struct.
8367 (i386_abi_handler_list): New variable.
8368 (i386_gdbarch_register_os_abi): New function.
8369 (i386_gdbarch_init): Adapt for the changes given above.
8370
084c156a
DJ
83712002-05-08 Daniel Jacobowitz <drow@mvista.com>
8372
8373 * gregset.h: Say "GNU/Linux".
8374
6599f021
EZ
83752002-05-08 Elena Zannoni <ezannoni@redhat.com>
8376
8377 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8378 (build_gdbtypes): Build builtin_type_v2_float.
8379 (_initialize_gdbtypes): Register new builtin type.
8380
40af4b0c
AC
83812002-05-08 Andrew Cagney <ac131313@redhat.com>
8382
8383 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8384 (clear_gdbarch_swap): New function.
8385 (initialize_non_multiarch): Call.
8386 (gdbarch_update_p): Before calling init(), swap out and clear the
8387 existing architecture.
8388 * gdbarch.c: Regenerate.
8389
4fe84f46
JT
83902002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8391
8392 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8393 alphanbsd-tdep.c.
8394
4015edd1
JT
83952002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8396
8397 * sh-nbsd-nat.c: Rename to...
8398 * shnbsd-nat.c: ...this.
8399 * sh-nbsd-tdep.c: Rename to...
8400 * shnbsd-tdep.c: ...this.
8401 * sh-nbsd-tdep.h: Rename to...
8402 * shnbsd-tdep.h: ...this.
8403 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8404 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8405
0e2bd219
RE
84062002-05-08 Richard Earnshaw <rearnsha@arm.com>
8407
8408 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8409 concatenation for command help messages.
8410
13a38d45
JT
84112002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8412
8413 * NEWS: Note new sh*-*-netbsdelf* configuration.
8414 * configure.host: Set gdb_host_cpu to sh for all sh*.
8415 (sh*-*-netbsdelf*): New host.
8416 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8417 (sh*-*-netbsdelf*): New target.
8418 * sh-nbsd-nat.c: New file.
8419 * sh-nbsd-tdep.c: New file.
8420 * sh-nbsd-tdep.h: New file.
8421 * config/sh/nbsd.mh: New file.
8422 * config/sh/nbsd.mt: New file.
8423 * config/sh/nm-nbsd.h: New file.
8424 * config/sh/tm-nbsd.h: New file.
8425
d658f924
JT
84262002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8427
8428 * sh-tdep.c (sh_osabi_names): Declare.
8429 (process_note_abi_tag_sections): New function.
8430 (get_elfosabi): Ditto.
8431 (sh_gdbarch_register_os_abi): Ditto.
8432 (sh_dump_tdep): Ditto.
8433 _initialize_sh_tdep): Use gdbarch_register to register
8434 sh_gdbarch_init and sh_dump_tdep.
8435 * config/sh/tm-sh.h (sh_osabi): Declare.
8436 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8437
848cfffb
AC
84382002-05-07 Andrew Cagney <ac131313@redhat.com>
8439
8440 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8441 (thumb_scan_prologue): Ditto.
8442 (arm_find_callers_reg): Ditto.
8443 (arm_frame_chain): Ditto.
8444 (arm_init_extra_frame_info): Ditto.
8445 (arm_frame_saved_pc): Ditto.
8446 (arm_pop_frame): Ditto.
8447 (arm_push_return_address): New function.
8448 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8449 call_dummy_location, call_dummy_breakpoint_offset_p,
8450 call_dummy_breakpoint_offset, call_dummy_p,
8451 call_dummy_stack_adjust_p, call_dummy_words,
8452 sizeof_call_dummy_words, call_dummy_start_offset,
8453 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8454 call_dummy_address, push_return_address and push_dummy_frame for
8455 generic dummy frames.
8456
e7d717c0
JT
84572002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8458
8459 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8460 size computation for alloca.
8461 (sh_fp_frame_init_saved_regs): Likewise.
8462
7bbcf283
RE
84632002-05-07 Richard Earnshaw <rearnsha@arm.com>
8464
8465 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8466 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8467 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8468 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8469 * remote-rdp.c (remote_rdp_fetch_register): Use
8470 ARM_MAX_REGISTER_RAW_SIZE.
8471 (remote_rdp_store_register): Likewise.
8472
4657573b
ML
84732002-05-07 Michal Ludvig <mludvig@suse.cz>
8474
361d1df0 8475 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8476 added default labels to switch {} statements.
8477 * x86-64-tdep.c: Ditto.
8478 * x86-64-linux-nat.c: Ditto.
8479
010f3b2f
JT
84802002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8481
8482 * solib.h: Protect against multiple inclusion.
8483
debd256d
JB
84842002-05-06 Jim Blandy <jimb@redhat.com>
8485
9ab3e532
JB
8486 Add first preprocessor macro-expansion files.
8487 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8488 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8489 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8490 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8491 (COMMON_OBS): Add macrotab.o, macroexp.o.
8492 (macroexp.o, macrotab.o): New rules.
8493
debd256d
JB
8494 Separate the job of reading the line number info statement program
8495 header (...expialidocious) out into its own function.
8496 * dwarf2read.c (struct line_head, struct filenames, struct
8497 directories): Replace with...
8498 (struct line_header): New structure, containing the full
8499 contents of the statement program header, including the
8500 include directory and file name tables.
8501 (read_file_scope): If we have line number info, instead of just
8502 calling dwarf_decode_lines to do all the work, call
8503 dwarf_decode_line_header first to get a `struct line_header'
8504 containing the data in the statement program header, and then
8505 pass that to dwarf_decode_lines, which will pick up where that
8506 left off. Be sure to clean up the `struct line_header' object.
8507 (dwarf_decode_line_header, free_line_header, add_include_dir,
8508 add_file_name): New functions.
8509 (dwarf_decode_lines): Move all the code to read the statement
8510 program header into dwarf_decode_line_header. Take the line
8511 header it built as the first argument, instead of the offset to
8512 the compilation unit's line number info. Use the new `struct
8513 line_header' type instead of the old structures. No need to do
8514 cleanups here now, since we don't allocate anything.
8515 (dwarf2_statement_list_fits_in_line_number_section,
8516 dwarf2_line_header_too_long): New complaints.
8517
ac3aafc7
EZ
85182002-05-06 Elena Zannoni <ezannoni@redhat.com>
8519
8520 * gdbtypes.c (init_vector_type): New function.
8521 (build_builtin_type_vec128): Simplify the representation of SIMD
8522 registers.
8523 (build_gdbtypes): Initialize new builtin vector types.
8524 (_initialize_gdbtypes): Register new vector types with gdbarch.
8525 (builtin_type_v4_float, builtin_type_v4_int32,
8526 builtin_type_v8_int16, builtin_type_v16_int8,
8527 builtin_type_v2_int32, builtin_type_v4_int16,
8528 builtin_type_v8_int8): New (renamed) SIMD types.
8529
13e49980
MK
85302002-05-06 Mark Kettenis <kettenis@gnu.org>
8531
8532 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8533 (i387_fill_fxsave): Likewise.
8534
997b20b8
AO
85352002-05-05 Alexandre Oliva <aoliva@redhat.com>
8536
8537 * alpha-tdep.c (alpha_extract_return_value): Don't use
8538 non-constant array size in prototype.
8539
535c96ce
AC
85402002-05-04 Andrew Cagney <ac131313@redhat.com>
8541
8542 From Brian Taylor <briant at model dot com>:
8543 * ui-out.c (ui_out_field_core_addr): Use the function
8544 longest_local_hex_string_custom'to format addresses > 32 bits
8545 wide.
8546
8547 * ui-out.c (ui_out_field_core_addr): Update comment.
8548
bedfa57b
AC
85492002-05-04 Andrew Cagney <ac131313@redhat.com>
8550
8551 * stack.c (select_and_print_frame): Make static. Delete the
8552 parameter `level'.
8553 (func_command): Update call.
8554 (select_frame_command): Delete code computing the frame level.
8555 * frame.h (select_and_print_frame): Delete declaration.
8556
f621c63e
AC
85572002-05-04 Andrew Cagney <ac131313@redhat.com>
8558
8559 * sparc-tdep.c (sparc_get_saved_register): Comment why
8560 get_prev_frame call is safe.
8561
0f7d239c
AC
85622002-05-04 Andrew Cagney <ac131313@redhat.com>
8563
8564 * frame.h (select_frame): Delete level parameter.
8565 * stack.c (select_frame): Update. Use frame_relative_level to
8566 obtain the frame's level.
8567 (select_and_print_frame): Update call.
8568 (select_frame_command): Ditto.
8569 (up_silently_base): Ditto.
8570 (down_silently_base): Ditto.
8571 * ocd.c (ocd_start_remote): Ditto.
8572 * remote-rdp.c (remote_rdp_open): Ditto.
8573 * remote-mips.c (mips_initialize): Ditto.
8574 (common_open): Ditto.
8575 * remote-e7000.c (e7000_start_remote): Ditto.
8576 * m3-nat.c (select_thread): Ditto.
8577 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8578 (child_get_current_exception_event): Ditto.
8579 * varobj.c (varobj_create): Ditto.
8580 (varobj_update): Ditto.
8581 (c_value_of_root): Ditto.
8582 * tracepoint.c (finish_tfind_command): Ditto.
8583 * corelow.c (core_open): Ditto.
8584 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8585 * thread.c (info_threads_command): Ditto.
8586 (switch_to_thread): Ditto.
8587 * infrun.c (normal_stop): Ditto.
8588 (restore_selected_frame): Ditto.
8589 (restore_inferior_status): Ditto.
8590 * breakpoint.c (insert_breakpoints): Ditto.
8591 (watchpoint_check): Ditto.
8592 (bpstat_stop_status): Ditto.
8593 (do_enable_breakpoint): Ditto.
8594 * blockframe.c (flush_cached_frames): Ditto.
8595 (reinit_frame_cache): Ditto.
8596
71d6c7b1
AC
85972002-05-04 Andrew Cagney <ac131313@redhat.com>
8598
8599 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8600 maintainer.
8601
cda6c68a
JB
86022002-05-04 Jim Blandy <jimb@redhat.com>
8603
8604 * gdbtypes.c (replace_type): Doc fix.
8605
5c1c87f0
AC
86062002-05-04 Andrew Cagney <ac131313@redhat.com>
8607
8608 * valprint.c (strcat_longest): Delete commented out function.
8609 Update copyright.
8610
cd9bfe15
AC
86112002-05-04 Andrew Cagney <ac131313@redhat.com>
8612
8613 * MAINTAINERS: Mark a29k as deleted.
8614 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8615 Move new configurations to the top.
8616 * configure.tgt: Remove a29k.
8617 * config/a29k/tm-vx29k.h: Delete.
8618 * config/a29k/vx29k.mt: Delete.
8619 * config/a29k/tm-a29k.h: Delete.
8620 * config/a29k/a29k-udi.mt: Delete.
8621 * config/a29k/a29k.mt: Delete.
8622 * a29k-tdep.c: Delete.
8623 * remote-udi.c: Delete.
8624 * remote-mm.c: Delete.
8625 * remote-eb.c: Delete.
8626 * remote-adapt.c: Delete.
8627 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8628 * config/s390/s390x.mt: Ditto.
8629 * config/s390/s390.mt: Ditto.
8630 * config/sparc/sparclynx.mh: Ditto.
8631 * config/sparc/linux.mh: Ditto.
8632 * config/pa/hppaosf.mh: Ditto.
8633 * config/pa/hppabsd.mh: Ditto.
8634 * config/ns32k/nbsd.mt: Ditto.
8635 * config/mips/vr5000.mt: Ditto.
8636 * config/m68k/sun3os4.mh: Ditto.
8637 * config/m68k/nbsd.mt: Ditto.
8638 * config/m68k/m68klynx.mh: Ditto.
8639 * config/m32r/m32r.mt: Ditto.
8640 * config/i386/x86-64linux.mt: Ditto.
8641 * config/i386/nbsdelf.mt: Ditto.
8642 * config/i386/nbsd.mt: Ditto.
8643 * config/i386/i386lynx.mh: Ditto.
8644
bf0c5130
AC
86452002-05-04 Andrew Cagney <ac131313@redhat.com>
8646
8647 * target.c (debug_print_register): New function. Handle oversize
8648 registers.
8649 (debug_to_fetch_registers): Call.
8650 (debug_to_store_registers): Call.
8651
2ae1c2d2
JB
86522002-05-03 Jim Blandy <jimb@redhat.com>
8653
13a393b0
JB
8654 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8655 (read_type): Doc fix.
8656 * gdbtypes.c (replace_type): Doc fix.
8657
2ae1c2d2
JB
8658 * stabsread.c (multiply_defined_struct): New complaint.
8659 (read_struct_type): If the type we were passed isn't empty, or
8660 incomplete, don't read the new struct type into it; complain,
8661 and return the original type unchanged. Take a new `type_code'
8662 argument, which is the type code for the new type.
8663 (read_type): Rather than storing the type's type code here, pass
8664 it as an argument to read_struct_type, and let that take care of
8665 storing it. That way, we don't overwrite the original type code,
8666 so read_struct_type can use it to decide whether we're overwriting
8667 something we shouldn't.
8668 (complain_about_struct_wipeout): New function.
8669
8de9bdc4
AC
86702002-05-03 Andrew Cagney <ac131313@redhat.com>
8671
8672 * gdbarch.sh: Assert that gdbarch is non-NULL.
8673 * gdbarch.c: Regenerate.
8674
f773fdbb
JM
86752002-05-03 Jason Merrill <jason@redhat.com>
8676
8677 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8678 and return NULL.
8679
0e04a514
ML
86802002-05-03 Michal Ludvig <mludvig@suse.cz>
8681
8682 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8683 (x86_64_dwarf2gdb_regno_map_length),
8684 (x86_64_dwarf2_reg_to_regnum): Added.
8685 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8686 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8687 (_initialize_x86_64_tdep): Synced with the change above.
8688 (x86_64_skip_prologue): Reformulated message.
8689
065432a8
PM
86902002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8691
8692 * f-exp.y: Also use new prev_lexptr variable
8693 to improve error reporting. Based on Michael Snyder
8694 2002-04-24 dated patch to c-exp.y.
8695 * jv-exp.y: Likewise.
8696 * m2-exp.y: Likewise.
8697
a3162708
EZ
86982002-05-02 Elena Zannoni <ezannoni@redhat.com>
8699
8700 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8701 we are dealing with vectors.
8702
03620c38
PM
87032002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8704
8705 * config/m68k/tm-nbsd.h: Obvious fix,
8706 correct machine name.
8707
6604db2e
PM
87082002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8709
8710 * p-typeprint.c (pascal_type_print_base): Add support
8711 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8712
0906b739
PM
87132002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8714
8715 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8716 for fondamental pascal 'char' type.
8717
e2625b33
PM
87182002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8719
8720 * p-lang.h (is_pascal_string_type): Declaration changed,
8721 new sixth argument of type char ** added.
361d1df0 8722 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8723 changed. Args length_pos, length_size, string_pos, char_size
8724 can now be NULL. New argument arrayname set to the field
8725 name of the char array. Return value set to char array
8726 field index plus one.
361d1df0 8727 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8728 is_pascal_string_type function.
8729
cf17c188
AC
87302002-05-02 Andrew Cagney <cagney@redhat.com>
8731
8732 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8733 <cagney@redhat.com> change.
8734 * gdbarch.c: Regenerate.
8735
52bca491
AC
87362002-05-02 Andrew Cagney <cagney@redhat.com>
8737
8738 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8739 before probing for a new one. Detect errorenous gdbarch_init
8740 functions.
8741 * gdbarch.c: Regenerate.
8742
d5e72505
AC
87432002-05-01 Andrew Cagney <cagney@redhat.com>
8744
8745 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8746 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8747 * config/v850/tm-v850.h: Ditto. Update copyright.
8748
af566d9f
AC
87492002-04-30 Andrew Cagney <ac131313@redhat.com>
8750
8751 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8752 current_gdbarch.
8753
880d85fa
MS
87542002-04-30 Michael Snyder <msnyder@redhat.com>
8755
94c30b78
MS
8756 * arm-tdep.c: Whitespace clean-ups.
8757 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8758 should have been removed as part of 4/24 change.
8759
6f5987a6
KB
87602002-04-30 Kevin Buettner <kevinb@redhat.com>
8761
8762 * rs6000-tdep.c: Added comment describing how fpscr register
8763 numbers were chosen.
8764
1a113c93
MS
87652002-04-30 Michael Snyder <msnyder@redhat.com>
8766
8767 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8768
9a6f53fe
EZ
87692002-04-29 Elena Zannoni <ezannoni@redhat.com>
8770
8771 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8772 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8773 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8774
11ed25ac
KB
87752002-04-29 Kevin Buettner <kevinb@redhat.com>
8776
8777 From Louis Hamilton <hamilton@redhat.com>:
8778 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8779 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8780 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8781 not bfd-private xcoff data, to determine wordsize.
8782 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8783
ae232405
AC
87842002-04-29 Andrew Cagney <ac131313@redhat.com>
8785
8786 GDB 5.2 released from 5.2 branch.
8787
91fd20f7
ML
87882002-04-29 Michal Ludvig <mludvig@suse.cz>
8789
8790 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8791 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8792 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8793
2dc5091b
EZ
87942002-04-29 Elena Zannoni <ezannoni@redhat.com>
8795
8796 * rs6000-tdep.c (rs6000_extract_return_value,
8797 rs6000_store_return_value): Handle returning vectors.
8798 (rs6000_gdbarch_init): Use
8799 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8800 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8801 New function.
8802 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8803 vectors.
8804 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8805 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8806
2b9848d8
PM
88072002-04-24 Pierre Muller <ics.u-strasbg.fr>
8808
8809 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8810 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8811 with fprintf_unfiltered (gdb_stderr,...).
8812
f8d17dc5
PM
88132002-04-24 Pierre Muller <ics.u-strasbg.fr>
8814
8815 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8816 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
8817 Replace fprintf (stderr,...
8818 with fprintf_unfiltered (gdb_stderr,....
8819 * remote-es.c: Likewise.
8820 * remote-os9k.c: Likewise.
8821 * remote-st.c: Likewise.
8822
2f2f1ad1
AS
88232002-04-28 Andreas Schwab <schwab@suse.de>
8824
8825 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8826 linux-proc.o and gcore.o.
8827
b6779aa2
AC
88282002-04-26 Michal Ludvig <mludvig@suse.cz>
8829
8830 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8831 code without frame pointers.
8832
7e57f5f4
AC
88332002-04-26 Andrew Cagney <ac131313@redhat.com>
8834
8835 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8836 ON_STACK is needed.
8837
2ceb85d0
BE
88382002-04-26 Ben Elliston <bje@redhat.com>
8839
8840 * target.c (do_xfer_memory): Correct reference to the new option
8841 "trust-readonly-sections".
8842
f5f8a009
EZ
88432002-04-26 Elena Zannoni <ezannoni@redhat.com>
8844
8845 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8846 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8847 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8848 vectors.
8849 (read_array_type): Record the fact that this array type is really a
8850 vector (i.e. are passed in by value).
8851
5868c862
JT
88522002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8853
8854 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8855 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8856 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8857 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8858 * alpha-linux-tdep.c: Include frame.h.
8859 (alpha_linux_sigcontext_addr): New function.
8860 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8861 alpha_linux_sigcontext_addr.
8862 * alpha-osf1-tdep.c: Include gdbcore.h.
8863 (alpha_osf1_sigcontext_addr): New function.
8864 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8865 alpha_osf1_sigcontext_addr.
8866 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8867 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8868
bfb01f37
AC
88692002-04-26 Andrew Cagney <ac131313@redhat.com>
8870
361d1df0 8871 * stack.c (selected_frame_level):
bfb01f37
AC
8872 (select_frame): Do not set selected_frame_level.
8873 * frame.h (selected_frame_level): Delete declaration.
8874
15813d3f
AC
88752002-04-26 Andrew Cagney <ac131313@redhat.com>
8876
8877 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8878 convert_from_func_ptr-addr when AIX / PowerOpen.
8879
6096c27a
AC
88802002-04-25 Andrew Cagney <ac131313@redhat.com>
8881
8882 * valops.c (hand_function_call): Call
8883 generic_save_call_dummy_addr.
8884 * frame.h (generic_save_call_dummy_addr): Declare.
8885 * blockframe.c (struct dummy_frame): Add fields call_lo and
8886 call_hi.
8887 (generic_find_dummy_frame): Check for PC in range call_lo to
8888 call_hi instead of entry_point_address.
8889 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8890 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8891 (generic_save_call_dummy_addr): New function.
8892
f510d44e
DM
88932002-04-24 David S. Miller <davem@redhat.com>
8894
8895 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8896 sparc_skip_prologue.
8897 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8898 information to find prologue when possible.
8899 (sparc_prologue_frameless_p): Call examine_prologue directly.
8900 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8901 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8902 second argument.
8903 (SKIP_PROLOGUE): Likewise.
8904
15d72a92
JT
89052002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8906
8907 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8908 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8909 indicate that the condition it was testing is always true.
8910 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8911 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8912 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8913
accc6d1f
JT
89142002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8915
8916 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8917 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8918 tdep->jb_pc and tdep->jb_elt_size.
8919 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8920 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8921 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8922 * alpha-nat.c (get_longjmp_target): Remove.
8923 (JB_ELEMENT_SIZE): Ditto.
8924 (JB_PC): Ditto.
8925 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8926 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8927 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8928 to alpha_get_longjmp_target.
8929 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8930 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8931 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8932
1bfdc549
AC
89332002-04-25 Andrew Cagney <ac131313@redhat.com>
8934
8935 * README: Update to GDB 5.2.
8936
1bd316f0
AC
89372002-04-25 Andrew Cagney <ac131313@redhat.com>
8938
8939 * gdbarch.sh (LC_ALL): Set to `c'.
8940
2e5ff58c
TR
89412002-04-25 Theodore A. Roth <troth@verinet.com>
8942
8943 * avr-tdep.c: Ran through gdb_indent.sh.
8944
e33ce519
TR
89452002-04-25 Theodore A. Roth <troth@verinet.com>
8946
8947 * MAINTAINERS: Add myself as AVR maintainer.
8948 * NEWS: Note new target avr.
8949
8818c391
TR
89502002-04-25 Theodore A. Roth <troth@verinet.com>
8951
8952 * Makefile.in: Add support for AVR target.
8953 * configure.tgt: Add support for AVR target.
8954 * avr-tdep.c: New file
8955 * config/avr/avr.mt: New file.
8956
79509c2d
TR
89572002-04-25 Theodore A. Roth <troth@verinet.com>
8958
8959 * MAINTAINERS: Add myself to write-after-approval.
8960
dac8068e
PM
89612002-04-24 Pierre Muller <ics.u-strasbg.fr>
8962
8963 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8964 with fprintf_unfiltered (gdb_stderr,....
8965
25bf3106
PM
89662002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8967
8968 Fix PR gdb/508.
8969 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8970
24467a86
PM
89712002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8972
8973 * p-exp.y: Also use new prev_lexptr variable
8974 to improve error reporting. Based on Michael Snyder
8975 2002-04-24 dated patch to c-exp.y.
8976
95b80706
JT
89772002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8978
8979 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8980 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8981 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8982 to 0.
8983 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8984 and struct value.
8985 (FUNCTION_START_OFFSET): Remove.
8986 (BREAKPOINT): Ditto.
8987
e90cc612
JT
89882002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8989
8990 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8991 * NEWS: Ditto.
8992
6c72f9f9
JT
89932002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8994
8995 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8996 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8997 alpha_linux_pc_in_sigtramp.
8998 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8999 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9000 alpha_osf1_pc_in_sigtramp.
9001 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9002 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9003 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9004 alphafbsd_pc_in_sigtramp.
9005 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9006 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9007 alphanbsd_pc_in_sigtramp.
9008 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9009 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9010
5e4f3379
JT
90112002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9012
9013 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9014
da8ca43d
JT
90152002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9016
9017 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9018 alphanbsd-tdep.c.
9019 (alphanbsd-nat.o): New dependency list.
9020 (alphanbsd-tdep.o): Ditto.
9021 * NEWS: Note new native NetBSD/alpha configuration.
9022 * alphanbsd-nat.c: New file.
9023 * alphanbsd-tdep.c: Ditto.
9024 * configure.host (alpha*-*-netbsd*): New host.
9025 * configure.tgt (alpha*-*-netbsd*): New target.
9026 * config/alpha/nbsd.mh: New file.
9027 * config/alpha/nbsd.mt: Ditto.
9028 * config/alpha/nm-nbsd.h: Ditto.
9029 * config/alpha/tm-nbsd.h: Ditto.
9030
36a6271d
JT
90312002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9032
9033 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9034 (alpha-osf1-tdep.o): New dependency list.
9035 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9036 and skip_sigtramp_frame members.
9037 * alpha-linux-tdep.c: Include gdbcore.h.
9038 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9039 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9040 * alpha-osf1-tdep.c: New file.
9041 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9042 alpha-osf1-dep.c.
9043 (alpha_frame_past_sigtramp_frame): New function.
9044 (alpha_dynamic_sigtramp_offset): Ditto.
9045 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9046 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9047 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9048 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9049 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9050 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9051 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9052 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9053 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9054 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9055 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9056 to find_solib_trampoline_target.
9057 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9058 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9059 (SKIP_TRAMPOLINE_CODE): Remove.
9060 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9061 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9062 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9063 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9064 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9065 (PROC_SIGTRAMP_MAGIC): Ditto.
9066 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9067 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9068 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9069 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9070 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9071
2f4bc57b
JT
90722002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9073
9074 * NEWS: Note that Alpha targets are now multi-arch.
9075
665132f9
MS
90762002-04-24 Michael Snyder <msnyder@redhat.com>
9077
9078 * parser-defs.h (prev_lexptr): New external variable.
9079 * parse.c (parse_exp_1): Set prev_lexptr to null before
9080 calling the language-specific parser.
9081 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9082 (yyerror): Use prev_lexptr in error reporting.
9083
32872fa7
DJ
90842002-04-24 Daniel Jacobowitz <drow@mvista.com>
9085
9086 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9087 * gregset.h: If FILL_FPXREGSET is defined, provide
9088 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9089 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9090 is defined, call fill_fpxregset.
9091
57e76fac
MS
90922002-04-24 Roland McGrath <roland@frob.com>
9093
9094 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9095 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9096 (supply_gregset, supply_fpregset): New functions.
9097
9098 * gnu-nat.c (gnu_find_memory_regions): New function.
9099 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9100 (gnu_xfer_memory): Add a cast.
9101
f43845b3
MS
91022002-04-24 Michael Snyder <msnyder@redhat.com>
9103
361d1df0 9104 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9105 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9106 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9107 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9108 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9109 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9110
a0abec03
AC
9111Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9112
9113 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9114 NUM_PSEUDO_REGS can be used.
9115
d7bd68ca
AC
91162002-04-24 Andrew Cagney <ac131313@redhat.com>
9117
9118 * arch-utils.h: Update copyright.
9119
9120 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9121 * gdbarch.h, gdbarch.c: Re-generate.
9122
9123 * inferior.h (IN_SIGTRAMP): Delete definition.
9124 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9125 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9126
9127 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9128 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9129 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9130 (find_proc_framesize): Ditto.
9131 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9132 (alpha_init_extra_frame_info): Ditto.
9133 * infrun.c (handle_inferior_event): Ditto.
9134 (handle_inferior_event): Ditto.
9135 (check_sigtramp2): Ditto.
9136 * blockframe.c (create_new_frame): Ditto.
9137 (get_prev_frame): Ditto.
9138 * ppc-linux-tdep.c: Update comments.
9139 * i386-linux-tdep.c: Update comments.
9140 * breakpoint.c (bpstat_what): Update comment.
9141
4867e41e
DM
91422002-04-24 David S. Miller <davem@redhat.com>
9143
21d83aa5
DM
9144 * i960-tdep.c (register_in_window_p): New function.
9145 (i960_find_saved_register): Use it instead of
9146 REGISTER_IN_WINDOW_P.
9147 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9148
4867e41e
DM
9149 * symtab.h (find_stab_function_addr): Kill extern.
9150 * minsyms.c (find_stab_function_addr): Remove from here...
9151 * dbxread.c: ... to here, and mark it static.
9152
69cdf6a2
DM
91532002-04-20 David S. Miller <davem@redhat.com>
9154
9155 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9156 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9157
5a595886
DM
91582002-04-21 David S. Miller <davem@redhat.com>
9159
9160 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9161 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9162 (vx_write_register): Likewise.
9163
1da1a192
JB
91642002-04-23 J. Brobecker <brobecker@gnat.com>
9165
9166 * source.c (is_regular_file): New function.
9167 (openp): Check wether file to open is a regular file
9168 to avoid opening directories.
9169
baa6f10b
JT
91702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9171
9172 * findvar.c (extract_signed_integer): Cast printf argument
9173 to suppress format warning.
9174 (extract_unsigned_integer): Likewise.
9175 * infcmd.c (registers_info): Likewise.
9176 * top.c (get_prompt_1): Likewise.
9177 * valops.c (value_assign): Likewise.
9178 * valprint.c (print_decimal): Likewise.
9179
b2c4da81
L
91802002-04-22 H.J. Lu (hjl@gnu.org)
9181
9182 * c-exp.y (typebase): Support
361d1df0 9183
b2c4da81
L
9184 [long|long long|short] [signed|unsigned] [int|]
9185
9186 and
9187
9188 signed [long|long long|short] int
9189
f267bd6a
JT
91902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9191
9192 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9193 and vax-tdep.h.
9194 * vax-tdep.h: New file.
9195 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9196 Make several routines static.
9197 (vax_get_saved_register): New function.
9198 (vax_gdbarch_init): New function.
9199 (_initialize_vax_tdep): Register vax_gdbarch_init.
9200 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9201 Remove macros now under the control of gdbarch.
9202
da3c6d4a
MS
92032002-04-22 Michael Snyder <msnyder@redhat.com>
9204
11d3b27d
MS
9205 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9206 Some whitespace and coding standards tweaks.
da3c6d4a 9207
a33f7558
JT
92082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9209
9210 * vax-tdep.c: Include regcache.h.
9211 (vax_call_dummy_words): New.
9212 (sizeof_vax_call_dummy_words): New.
9213 (vax_fix_call_dummy): New function.
9214 (vax_saved_pc_after_call): Ditto.
9215 * config/vax/tm-vax.h: Don't include regcache.h.
9216 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9217 (CALL_DUMMY): Remove.
9218 (CALL_DUMMY_WORDS): Define.
9219 (SIZEOF_CALL_DUMMY_WORDS): Define.
9220 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9221
47a73475
MS
92222002-04-18 Michael Snyder <msnyder@redhat.com>
9223
9224 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9225
52efde73
JT
92262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9227
9228 * vax-tdep.c (vax_frame_chain): New function.
9229 (vax_push_dummy_frame): Ditto.
9230 (vax_pop_frame): Ditto.
9231 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9232 (FRAMELESS_FUNCTION_INVOCATION): Use
9233 generic_frameless_function_invocation_not.
9234 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9235 (POP_FRAME): Use vax_pop_frame.
9236
ea74468c
JT
92372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9238
9239 * vax-tdep.c (vax_store_struct_return): New function.
9240 (vax_extract_return_value): Ditto.
9241 (vax_store_return_value): Ditto.
9242 (vax_extract_struct_value_address): Ditto.
9243 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9244 vax_store_struct_return.
9245 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9246 (STORE_RETURN_VALUE): Use vax_store_return_value.
9247 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9248
5516aa92
JT
92492002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9250
9251 * vax-tdep.c (vax_frame_saved_pc): New function.
9252 (vax_frame_args_address_correct): Ditto.
9253 (vax_frame_args_address): Ditto.
9254 (vax_frame_locals_address): Ditto.
9255 (vax_frame_num_args): Move code to be in proximity to
9256 other frame-related functions.
9257 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9258 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9259 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9260 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9261 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9262
36af0b35
L
92632002-04-22 H.J. Lu (hjl@gnu.org)
9264
9265 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9266 includedir.
9267
ab62c900
JT
92682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9269
9270 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9271 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9272 (FRAME_INIT_SAVED_REGS): New macro.
9273
7232b100
JT
92742002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9275
9276 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9277
b70d2aee
JT
92782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9279
9280 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9281 where needed.
9282 (fetch_osf_core_registers): Likewise.
9283 (supply_gregset): Likewise.
9284
a0e8a2d1 92852002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9286
a0e8a2d1
JB
9287 * symfile.h (get_section_index): Define.
9288 * symfile.c (get_section_index): New function.
9289 * mdebugread.c (SC_IS_SBSS): New macro.
9290 (SC_IS_BSS): Return true for the scBss storage class only, as
9291 the scSBss storage class refers to the .sbss section.
9292 (parse_partial_symbols): Discard the symbols which associated
9293 section does not exist.
9294 Make sure to use the .sbss section index for symbols which
9295 storage class is scBss, rather than using the .bss section index.
9296
51eb8b08
JT
92972002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9298
9299 * vax-tdep.c: Update copyright years.
9300 (vax_register_name): New function.
9301 (vax_register_byte): Ditto.
9302 (vax_register_raw_size): Ditto.
9303 (vax_register_virtual_size): Ditto.
9304 (vax_register_virtual_type): Ditto.
9305 * config/vax/tm-vax.h: Update copyright years.
9306 (REGISTER_NAMES): Remove.
9307 (REGISTER_NAME): Define.
9308 (REGISTER_BYTE): Use vax_register_byte.
9309 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9310 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9311 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9312
6cc1c0a8
AC
93132002-04-21 Andrew Cagney <ac131313@redhat.com>
9314
9315 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9316 declaration
9317 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9318
9319a2fe
DM
93192002-04-21 David S. Miller <davem@redhat.com>
9320
9321 * arch-utils.c (generic_prologue_frameless_p): Kill
9322 SKIP_PROLOGUE_FRAMELESS_P code.
9323 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9324 references.
9325 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9326 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9327 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9328 references.
9329 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9330 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9331 (sparc_gdbarch_init): Pass it to
9332 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9333
e9ed6d01
JT
93342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9335
9336 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9337 (alphabsd-nat.o): New dependency list.
9338
36012033
JT
93392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9340
9341 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9342 alphafbsd-tdep.c.
9343 (alpha-linux-tdep.o): New dependency list.
9344 (alphafbsd-tdep.o): Likewise.
9345
3379287a
JT
93462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9347
9348 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9349 to here...
9350 * alpha-tdep.c: ...from here.
9351 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9352
4bcbd6cb
JT
93532002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9354
9355 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9356 prototype from here...
9357 * alpha-tdep.h: ...to here.
9358
b31da25e
AC
93592002-04-21 Andrew Cagney <ac131313@redhat.com>
9360
9361 * frame.h (selected_frame_level): Document as deprecated.
9362 (frame_relative_level): Declare.
9363 * stack.c (frame_relative_level): New function.
9364 (selected_frame_level): Document as deprecated.
9365 (select_frame): Do not set the selected_frame_level.
9366
9367 * stack.c (frame_info, record_selected_frame): Update.
9368 (frame_command, current_frame_command): Update.
9369 (up_silently_base, up_command, down_silently_base): Update.
9370 (down_command): Update.
9371 * inflow.c (kill_command): Update.
9372 * tracepoint.c (finish_tfind_command): Update.
9373 * corelow.c (core_open): Update.
9374 * thread.c (info_threads_command): Update.
9375 (do_captured_thread_select): Update.
9376 * infcmd.c (finish_command): Update.
9377 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9378
9c1d6fe5
JT
93792002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9380
9381 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9382
ab89facf
AC
93832002-04-21 Andrew Cagney <ac131313@redhat.com>
9384
9385 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9386 type const.
9387
82a4efa1
JT
93882002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9389
9390 * alphafbsd-tdep.c: Update copyright years. Include
9391 alpha-tdep.h.
9392 (alphafbsd_use_struct_convention): Make static.
9393 (alphafbsd_init_abi): New function.
9394 (_initialize_alphafbsd_tdep): New function.
9395 * config/alpha/tm-fbsd.h: Update copyright years.
9396 (USE_STRUCT_CONVENTION): Remove.
9397
44dffaac
JT
93982002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9399
9400 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9401 an Alpha ABI variant.
9402 (alpha_abi_handler_list): Declare.
9403 (alpha_gdbarch_register_os_abi): New function.
9404 (alpha_gdbarch_init): Give registered ABI variant handlers a
9405 chance to tweak the gdbarch once we have set up defaults.
9406 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9407
65585be4
JT
94082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9409
9410 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9411 to standard_coerce_float_to_double.
9412 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9413
d9b023cc
JT
94142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9415
9416 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9417 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9418 from gdbarch_tdep rather than a constant.
9419 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9420 the default text address for all Alpha Unix ABIs.
9421 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9422 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9423
dc129d82
JT
94242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9425
9426 * alpha-tdep.h: New file. Includes several Alpha target constants
9427 taken from...
9428 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9429 let gdbarch deal with.
9430 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9431 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9432 to dependency list.
9433 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9434 Alpha target register names.
9435 * alphabsd-nat.c: Likewise.
9436 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9437 Alpha target register names. Make serveral routines static.
9438 (alpha_get_saved_register): New function.
9439 (alpha_abi_names): New.
9440 (process_note_abi_tag_sections): New function.
9441 (get_elfosabi): New function.
9442 (alpha_gdbarch_init): New function.
9443 (alpha_dump_tdep): New function.
9444 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9445
d49d1e0a
AC
94462002-04-21 Andrew Cagney <ac131313@redhat.com>
9447
9448 * frame.c (find_saved_register): Delete #ifdef
9449 HAVE_REGISTER_WINDOWS code.
9450 * config/sparc/tm-sparc.h: Update comments.
9451 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9452
92e8c9ed
AC
94532002-04-21 Andrew Cagney <ac131313@redhat.com>
9454
9455 * i960-tdep.c (i960_find_saved_register): New function.
9456 (i960_get_saved_register): New function.
9457 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9458 (i960_get_saved_register): Declare.
9459 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9460
e1925118
DM
94612002-04-20 David S. Miller <davem@redhat.com>
9462
9463 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9464
29673b29
AC
94652002-04-20 Andrew Cagney <ac131313@redhat.com>
9466
9467 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9468 instead of NUM_PSEUDO_REGS.
9469
6c86dcd5
DM
94702002-04-20 David S. Miller <davem@redhat.com>
9471
9472 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9473 GDB_MULTI_ARCH_PARTIAL
9474 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9475 define, let tm-sp64.h do it.
9476
aa40ec90
JT
94772002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9478
9479 * frame.c (find_saved_register): Avoid a NULL pointer
9480 dereference and actually walk the frame list.
9481
0f79675b
AC
94822002-04-20 Andrew Cagney <ac131313@redhat.com>
9483
9484 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9485 sorted in most most-recent-used order. Document.
9486 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9487
f91305dd 94882002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9489
9490 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9491 instead of ->prev.
9492 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9493 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9494 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9495 instead of ->prev.
9496
73d322b1
EZ
94972002-04-19 Elena Zannoni <ezannoni@redhat.com>
9498
9499 Fix PR gdb/471.
9500 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9501 (build_builtin_type_vec128): Ditto.
9502 (append_composite_type_field): Fix calculation of type length in
9503 union case.
9504
ccd9a834
EZ
95052002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9506
9507 * config/djgpp/README: Update.
9508
9509 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9510 compiler warnings.
9511
a57f9e49
JT
95122002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9513
9514 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9515 (alpha_setup_arbitrary_frame): ...to this.
9516 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9517 for alpha_setup_arbitrary_frame.
9518
f4f9705a
AC
95192002-04-18 Andrew Cagney <cagney@redhat.com>
9520
9521 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9522 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9523
f4f9705a
AC
9524 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9525 * target.h (memory_breakpoint_from_pc): Update declaration.
9526 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9527
9528 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9529 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9530 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9531 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9532 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9533 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9534 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9535 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9536 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9537 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9538 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9539 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9540
9541 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9542 const pointer.
9543 * monitor.c (monitor_insert_breakpoint): Ditto.
9544 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9545
9546 * config/mcore/tm-mcore.h: Update copyright.
9547 * mem-break.c: Ditto.
9548 * xstormy16-tdep.c: Ditto.
9549
29f319b8
PM
95502002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9551
9552 * p-exp.y: Add precedence rule for '^' token.
9553 This removes the shift/reduce conflicts.
9554 Remove the comment concerning these shift/reduce conflicts.
9555
ebeac11a
EZ
95562002-04-18 Elena Zannoni <ezannoni@redhat.com>
9557
9558 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9559 (registers_powerpc_nofp): New register set for processors
9560 without floating point unit.
9561
27c31547
DM
95622002-04-18 David S. Miller <davem@redhat.com>
9563
9564 * MAINTAINERS: Add myself to write-after-approval.
9565
47a73475
MS
95662002-04-17 Michael Snyder <msnyder@redhat.com>
9567
9568 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9569
953836b2
AC
95702002-04-17 Andrew Cagney <ac131313@redhat.com>
9571
9572 * rs6000-tdep.c (frame_initial_stack_address): Use
9573 frame_register_read to read the alloca_reg.
9574
8b0d4340
AC
95752002-04-17 Andrew Cagney <ac131313@redhat.com>
9576
9577 * frame.c (find_saved_register): Find saved registers in the next
9578 not prev frame.
9579 Fix PR gdb/365.
9580
d8864532
AC
95812002-04-17 Andrew Cagney <ac131313@redhat.com>
9582
9583 * gdbarch.sh (LANG): Set to ``c''.
9584
36cc83a3 95852002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9586
36cc83a3 9587 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9588
2f4150cc 95892002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9590
9591 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9592 Update copyright.
9593
628703c6 9594 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9595 Also fix PR gdb/391.
361d1df0 9596
56157b4a
AC
95972002-04-14 Andrew Cagney <ac131313@redhat.com>
9598
9599 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9600 * aclocal.m4, configure: Re-generate.
9601 Fix PR gdb/391.
361d1df0 9602
6d1e3329
EZ
96032002-04-14 Elena Zannoni <ezannoni@redhat.com>
9604
9605 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9606 instead of tm_print_insn.
9607
cb06fa07
EZ
96082002-04-14 Elena Zannoni <ezannoni@redhat.com>
9609
9610 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9611
f208ba17
AC
96122002-04-14 Andrew Cagney <ac131313@redhat.com>
9613
9614 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9615 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9616 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9617
20f01a46
DH
96182002-04-12 Don Howard <dhoward@redhat.com>
9619
9620 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9621 max_user_call_depth.
9622 (init_cmd_lists): Initialize the new value;
9623 * cli/cli-script.c (execute_user_command): Limit the call depth of
9624 user defined commands. This avoids a core-dump when user commands
9625 are infinitly recursive.
9626
a88376a3
KB
96272002-04-12 Kevin Buettner <kevinb@redhat.com>
9628
9629 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9630 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9631 from tdep struct instead of DEFAULT_LR_SAVE.
9632 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9633 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9634 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9635
f2172603
MS
96362002-04-12 Michael Snyder <msnyder@redhat.com>
9637
694f61fb 9638 * Remote.c: Spelling fix.
20fe79c8
MS
9639 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9640 If no symbol found for "sbrk", try "_sbrk".
9641 (make_output_phdrs): Use bfd_section_name.
9642 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9643 * eval.c: Indentation fix-ups.
169a7369
MS
9644 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9645 in case it gets applied to an address that is already
9646 in the instruction space.
de74f71f
MS
9647 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9648 * symfile.c: Fix indentation, long lines.
f2172603
MS
9649 * source.c: White space fix-up.
9650
cda5a58a
AC
96512002-04-12 Andrew Cagney <cagney@redhat.com>
9652
9653 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9654 * frame.c (frame_register_read): New function. Return non-zero on
9655 success.
9656 (read_relative_register_raw_bytes_for_frame): Delete.
9657 (read_relative_register_raw_bytes): Delete.
9658 * frame.h (frame_register_read): Declare.
9659 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9660 * sh-tdep.c: Ditto.
9661 * infcmd.c (do_registers_info): Ditto.
9662 * hppa-tdep.c: Ditto.
9663 * rs6000-tdep.c: Ditto.
9664 * h8500-tdep.c: Ditto.
9665 * mips-tdep.c: Ditto.
9666 * h8300-tdep.c: Ditto.
9667 * z8k-tdep.c: Ditto.
9668
2ea5f656
KB
96692002-04-12 Kevin Buettner <kevinb@redhat.com>
9670
9671 From Jimi X <jimix@watson.ibm.com>:
9672 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9673 64-bit SysV ABI.
9674
27b15785
KB
96752002-04-12 Kevin Buettner <kevinb@redhat.com>
9676
9677 From Jimi X <jimix@watson.ibm.com>:
9678 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9679 bfd info.
9680
5d57ee30
KB
96812002-04-12 Kevin Buettner <kevinb@redhat.com>
9682
9683 From Jimi X <jimix@watson.ibm.com>:
9684 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9685 register sets for these processor variants.
9686
bc1e36ca
DJ
96872002-04-11 Daniel Jacobowitz <drow@mvista.com>
9688
bc1e36ca
DJ
9689 * regformats/reg-ppc.dat: Support FPSCR.
9690
e3f36dbd
KB
96912002-04-11 Kevin Buettner <kevinb@redhat.com>
9692
9693 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9694 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9695 Add fpscr as an invalid/unfetchable register.
9696 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9697 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9698 (fill_fpregset): Add support for register fpscr.
9699 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9700 (fill_gregset): Account for the fact that register ``mq'' might
9701 not exist.
9702 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9703 (registers_power): Add fpscr to register set at slot 71.
9704 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9705 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9706
943c9c25
MS
97072002-04-11 Michael Snyder <msnyder@redhat.com>
9708
9709 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9710 * configure: Regenerate.
9711 * config.in: Regenerate.
9712 * acconfig.h: Add define for _SYSCALL32.
9713 * core-sol2.c: Remove #define _SYSCALL32.
9714 * solib-legacy.c: Remove #define _SYSCALL32.
9715
d8c0a2e7
AC
97162002-04-10 Andrew Cagney <ac131313@redhat.com>
9717
9718 * stack.c (select_frame): Cleanup internal error message, do not
9719 use %p.
9720
7cc19214
AC
97212002-04-10 Andrew Cagney <ac131313@redhat.com>
9722
9723 * stack.c (select_frame): Check that selected_frame and the
9724 specified level are as expected.
9725 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9726 Update copyright.
9727 * frame.h (struct frame_info): Add field `level'. Update
9728 copyright.
9729 Work-in-progress PR gdb/464.
9730
67a2b77e
AC
97312002-04-10 Andrew Cagney <ac131313@redhat.com>
9732
9733 * maint.c (maint_print_section_info): Rename print_section_info.
9734 (print_bfd_section_info, print_objfile_section_info): Update.
9735 * inferior.h (struct gdbarch): Add opaque declaration.
9736 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9737 * gdbarch.h: Regenerate.
9738
8cfda98c
ML
97392002-04-10 Michal Ludvig <mludvig@suse.cz>
9740
9741 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9742 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9743 (kernel_u_size): Added.
9744 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9745 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9746
ca439ad2 97472002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9748
ca439ad2
JI
9749 * valarith.c (find_size_for_pointer_math): New function, either returns
9750 the size for a pointer's target, returns 1 for void *, or errors for
9751 incomplete types.
9752 (value_add, value_sub): use find_size_for_pointer_math.
9753
2f2893d9
DJ
97542002-04-09 Daniel Jacobowitz <drow@mvista.com>
9755
9756 * linux-low.c (linux_look_up_symbols): New hook.
9757 (linux_target_ops): Add linux_look_up_symbols.
9758 * remote-utils.c (decode_address): New function.
9759 (look_up_one_symbol): New function.
9760 * server.c (handle_query): Call target look_up_symbols hook.
9761 * server.h (look_up_one_symbol): Add prototype.
9762 * target.h (struct target_ops): Add look_up_symbols hook.
9763
96cb11df
AC
97642002-04-09 Andrew Cagney <ac131313@redhat.com>
9765
9766 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9767 override FP_REGNUM with frame->fp. Update copyright.
9768 * parse.c (num_std_regs, std_regs): Delete.
9769 (target_map_name_to_register): Do not search std_regs. Update
9770 function description.
9771 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9772 declarations. Update copyright.
9773 Fix PR gdb/251.
361d1df0 9774
97658e92
DJ
97752002-04-09 Daniel Jacobowitz <drow@mvista.com>
9776
9777 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9778 after the last symbol in a block.
9779
6044e3eb
PM
97802002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9781
9782 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9783 is non zero as a found symbol.
9784
0406ec40
AC
97852002-04-08 Andrew Cagney <ac131313@redhat.com>
9786
9787 * findvar.c: Include "builtin-regs.h".
9788 (value_of_register): Call value_of_builtin_reg when applicable.
9789 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9790 (target_map_name_to_register): Call
9791 builtin_reg_map_name_to_regnum.
9792 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9793 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9794 (builtin_regs_h): Define.
9795 (builtin-regs.o): New target.
9796 (findvar.o): Add $(builtin_regs_h).
9797 * builtin-regs.c, builtin-regs.h: New files.
9798 * std-regs.c: New file.
9799 Partial fix for PR gdb/251.
9800
56a6dfb9
KB
98012002-04-08 Kevin Buettner <kevinb@redhat.com>
9802
9803 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9804 it's no longer required.
9805
3a808432
AC
98062002-04-08 Andrew Cagney <ac131313@redhat.com>
9807
9808 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9809
7c40d541
KB
98102002-04-08 Kevin Buettner <kevinb@redhat.com>
9811
9812 From Jimi X <jimix@watson.ibm.com>:
9813 * rs6000-tdep.c (rs6000_software_single_step): Use
9814 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9815 and size. Use target_insert_breakpoint() and
9816 target_remove_breakpoint() to insert and remove breakpoints
9817 instead of explicit memory reads and writes.
9818
cc9836a8
KB
98192002-04-08 Kevin Buettner <kevinb@redhat.com>
9820
9821 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9822 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9823 ELF_OBJECT_FORMAT ifdef.
9824
7495d1dc
KB
98252002-04-08 Kevin Buettner <kevinb@redhat.com>
9826
9827 From Jimi X <jimix@watson.ibm.com>:
9828 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9829
4288e836
KB
98302002-04-08 Kevin Buettner <kevinb@redhat.com>
9831
9832 From Jimi X <jimix@watson.ibm.com>:
9833 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9834 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9835
a4e4e501
MK
98362002-04-07 Mark Kettenis <kettenis@gnu.org>
9837
9838 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9839 s/asprintf/xasprintf/.
9840 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9841
006defba
AC
98422002-04-07 Andrew Cagney <ac131313@redhat.com>
9843
9844 I believe Jeff Law denies responsability for this one:
9845 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9846 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9847 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9848 Work-around for PR gdb/366.
9849
7aa83cac
EZ
98502002-04-07 Elena Zannoni <ezannoni@redhat.com>
9851
9852 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9853 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9854 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9855
cf1fcca1
EZ
98562002-04-07 Elena Zannoni <ezannoni@redhat.com>
9857
9858 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9859 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9860 information.
9861
3f289e6f
AC
98622002-04-07 Andrew Cagney <ac131313@redhat.com>
9863
9864 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9865 maintainer.
9866
129188f6
AC
98672002-04-07 Andrew Cagney <ac131313@redhat.com>
9868
9869 * README (Reporting Bugs in GDB): Document the bug web page as the
9870 prefered way of submitting bugs.
9871 Fix PR gdb/402.
9872
1200cd6e
AC
98732002-04-06 Andrew Cagney <ac131313@redhat.com>
9874
9875 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9876 -1. Update comment.
9877 * gdbarch.h, gdbarch.c: Re-generate.
9878
2853c33c
AS
98792002-04-07 Andreas Schwab <schwab@suse.de>
9880
9881 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9882 buffer to regcache_collect.
9883
c2169756
AC
98842002-04-06 Andrew Cagney <ac131313@redhat.com>
9885
9886 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9887 * gdbarch.c, gdbarch.h: Re-generate.
9888
25f1b008
AC
98892002-04-06 Andrew Cagney <ac131313@redhat.com>
9890
9891 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9892 declaration. Fix -Werror.
9893
59263426
DJ
98942002-04-05 Daniel Jacobowitz <drow@mvista.com>
9895
9896 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9897 * gdbarch.c: Regenerate.
9898
f5db4da3
MS
98992002-04-05 Michael Snyder <msnyder@redhat.com>
9900
80f8a6eb
MS
9901 * breakpoint.c (clear_command): Rewrite middle section to
9902 combine two loops with identical control conditions.
9903 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
9904 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9905
ad3dcc5c
L
99062002-04-05 H.J. Lu (hjl@gnu.org)
9907
9908 * solib-svr4.c (bkpt_names): Add "__start".
9909
f32e7a74
AC
99102002-04-04 Andrew Cagney <ac131313@redhat.com>
9911
9912 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9913 as test for 64 bit target.
9914
8227c0ff
AC
99152002-04-05 Andrew Cagney <ac131313@redhat.com>
9916
9917 * h8500-tdep.c (h8500_write_fp): Delete function.
9918 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9919 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9920 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9922 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9923 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9924 (s390_write_fp):
9925 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9926 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9927 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9928 (d10v_write_fp): Delete function.
9929 * inferior.h (write_fp, generic_target_write_fp): Delete
9930 declarations.
9931 * regcache.c (generic_target_write_fp): Delete function.
9932 (write_fp): Delete function.
9933 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9934 * gdbarch.h, gdbarch.c: Regenerate.
9935 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9936 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9937 (sparc64_write_fp): Delete declaration.
9938 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9939 (h8500_write_fp): Delete declaration.
9940
2757dd86
AC
99412002-04-04 Andrew Cagney <ac131313@redhat.com>
9942
9943 * sparc-tdep.c (sparc64_write_fp): Delete.
9944 (sparc_push_dummy_frame): Replace write_fp call with code to store
9945 the FP directly.
9946 (sparc_gdbarch_init): Do not initialize write_fp.
9947
c69255e1
KB
99482002-04-05 Kevin Buettner <kevinb@redhat.com>
9949
9950 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9951 clause.
9952
ae767bfb
JB
99532002-03-29 Jim Blandy <jimb@redhat.com>
9954
9955 * stack.c (get_selected_block): Add new argument `addr_in_block',
9956 used to return the exact code address we used to select the block,
9957 not just the block.
9958 * blockframe.c (get_frame_block, get_current_block): Same.
9959 * frame.h (get_frame_block, get_current_block,
9960 get_selected_block): Update declarations.
9961 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9962 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9963
84d2ac95
MS
99642002-04-05 Michael Snyder <msnyder@redhat.com>
9965
9966 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9967 warning message.
9968
596aa3bf
JB
99692002-04-05 J. Brobecker <brobecker@gnat.com>
9970
9971 * utils.c (xfullpath): New function.
9972 * defs.h (xfullpath): Add declaration.
9973 * source.c (openp): Use xfullpath in place of gdb_realpath to
9974 avoid resolving the basename part of filenames when the
9975 associated file is a symbolic link. This fixes a potential
9976 inconsistency between the filenames known to GDB and the
9977 filenames it prints in the annotations.
9978 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9979 to be able to match a filename with either the real filename, or
9980 the name of any symbolic link to this file.
9981 (lookup_partial_symtab): Ditto.
9982
c02f5703
MS
99832002-04-04 Michael Snyder <msnyder@redhat.com>
9984
9985 * breakpoint.c: Add support for hardware breakpoints in overlays.
9986 (overlay_events_enabled): New state variable.
9987 (insert_breakpoints): Use overlay_events_enabled to decide
9988 whether to attempt to set a breakpoint at the overlay load addr.
9989 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9990 (remove_breakpoint): Use overlay_events_enabled to decide
9991 whether breakpoints need to be removed from overlay load addr.
9992 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9993 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 9994 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
9995 disable_overlay_breakpoints): Update overlay_events_enabled.
9996
5fb290d7
DJ
99972002-04-04 Daniel Jacobowitz <drow@mvista.com>
9998
9999 * dwarf2read.c (struct function_range): New.
10000 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10001 (check_cu_functions): New.
10002 (read_file_scope): Initialize global function lists.
10003 Call dwarf_decode_line after processing children.
10004 (read_func_scope): Add to global function list.
10005 (dwarf_decode_lines): Call check_cu_functions everywhere
10006 record_line is called. Call record_line with a linenumber
10007 of 0 to mark sequence ends.
10008
7b3fabf0
ML
100092002-04-04 Michal Ludvig <mludvig@suse.cz>
10010
361d1df0 10011 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10012 change sync with glibc.
10013
bce58c09
JB
100142002-04-03 Jim Blandy <jimb@redhat.com>
10015
10016 * configure.in: Call AC_C_INLINE.
10017 * configure: Regenerated.
361d1df0 10018
2fccf04a
DJ
100192002-04-01 Daniel Jacobowitz <drow@mvista.com>
10020
10021 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10022 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10023
2d1bfe2e
MK
100242002-03-31 Mark Kettenis <kettenis@gnu.org>
10025
a5941fbf
MK
10026 * NEWS: Mention gcore support on FreeBSD/i386.
10027
a90cd31d
MK
10028 * fbsd-proc.c: New file.
10029 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10030 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10031
2d1bfe2e
MK
10032 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10033 while statement.
10034
9eb6e5a1
JB
100352002-03-29 Jim Blandy <jimb@redhat.com>
10036
10037 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10038 unescaped newlines in string literals, but newer ones don't. So
10039 escape them.
10040
f02df580
MS
100412002-03-26 Michael Snyder <msnyder@redhat.com>
10042 Andrew Cagney <cagney@redhat.com>
10043
361d1df0 10044 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10045 restore file to memory.
10046 * cli/cli-dump.h: New file.
10047 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10048 * NEWS: Mention new commands.
f02df580 10049
109f874e
MS
100502002-03-28 Michael Snyder <msnyder@redhat.com>
10051
10052 * symfile.c (symbol_file_add): Move test for null symbols to later.
10053
520f6ade
AC
100542002-03-27 Andrew Cagney <ac131313@redhat.com>
10055
10056 From veksler at il.ibm.com:
10057 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10058 the xstrduped original path.
10059 Fix PR gdb/417.
10060
d4654627
MS
100612002-03-27 Michael Snyder <msnyder@redhat.com>
10062
10063 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10064 * infcmd.c (_initialize_infcmd): Ditto.
10065 * language.c (_initialize_language): Ditto.
10066 * symfile.c (_initialize_symfile): Ditto.
10067 * top.c (_init_main): Ditto.
10068 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10069
6be8bc0c
EZ
100702002-03-27 Elena Zannoni <ezannoni@redhat.com>
10071
10072 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10073 vector registers handling.
10074 (skip_prologue): Handle new AltiVec instructions. Fill in new
10075 fields of frame data.
10076 (frame_get_saved_regs): Fill in information for AltiVec registers.
10077
12af6855
JB
100782002-03-27 Jim Blandy <jimb@redhat.com>
10079
10080 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10081 a function; leave this macro here to invoke that function.
10082 (symbol_init_mangled_name): Declaration for that function.
10083 * symtab.c (symbol_init_mangled_name): New function.
10084
dc672865
AC
100852002-03-27 Andrew Cagney <ac131313@redhat.com>
10086
10087 * valarith.c: Replace strerror with safe_strerror.
10088 * tracepoint.c: Ditto.
10089 * lin-lwp.c: Ditto.
10090 * go32-nat.c: Ditto.
10091 * inflow.c: Ditto.
10092 * gnu-nat.c: Ditto.
10093
d96429cd
AS
100942002-03-27 Andreas Schwab <schwab@suse.de>
10095
10096 * event-top.c (command_line_handler): Remove useless if.
10097
7e336ba1
AJ
100982002-03-27 Andreas Jaeger <aj@suse.de>
10099
10100 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10101 comment.
10102
de220d0f
ML
101032002-03-27 Michal Ludvig <mludvig@suse.cz>
10104
10105 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10106 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10107 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10108 (x86_64_linux_dr_get_status, supply_gregset),
10109 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10110 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10111 (x86_64_register_info_table): Add.
10112 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10113 (x86_64_register_raw_size, x86_64_register_virtual_type),
10114 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10115 general x86_64_register_info_table.
10116 (i386_gdbarch_init): gdbarch_register_bytes is now set
10117 dynamicaly during initialization.
10118 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10119 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10120
0e98d0a7
DJ
101212002-03-27 Daniel Jacobowitz <drow@mvista.com>
10122
10123 * gdbserver/server.c (main): Call target_signal_to_host_p
10124 and target_signal_to_host on signals received from the remote.
10125 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10126 target_signal_from_host on signals sent to the remote.
10127 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10128 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10129
3130066b
DJ
101302002-03-27 Daniel Jacobowitz <drow@mvista.com>
10131
10132 * signals/signals.c: Include "server.h" in gdbserver build.
10133 (target_signal_from_name): Don't use STREQ.
10134 (_initialize_signals): Likewise. Don't include function in
10135 gdbserver build.
10136
9aedf4f4
DJ
101372002-03-27 Daniel Jacobowitz <drow@mvista.com>
10138
10139 * signals.c: Moved to...
10140 * signals/signals.c: Here.
7e336ba1 10141 * Makefile (signals.o): Update.
9aedf4f4 10142
3fa41cdb
JL
101432002-03-26 Jeff Law (law@redhat.com)
10144
10145 * somread.c (som_symtab_read): Remove some commented out code and
10146 updated related comments. Do not set the minimal symbol table to
10147 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10148 in a dynamic executable.
10149 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10150 where we are unable to find the minimal symbol for the given
10151 PC value.
10152
ee677e8d
MS
101532002-03-25 Jeff Law (law@redhat.com)
10154
10155 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10156
e76e1718
ML
101572002-03-25 Michal Ludvig <mludvig@suse.cz>
10158
10159 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10160
18a642a1
AC
101612002-03-23 Andrew Cagney <ac131313@redhat.com>
10162
10163 * command.h: Update copyright.
10164 (struct cmd_list_element): Replace definition with opaque
10165 declaration.
10166 (enum cmd_types): Document that it will eventually be moved to
10167 cli/cli-decode.h
10168 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10169 (MALLOCED_REPLACEMENT): Delete macro.
10170 * Makefile.in (cli_decode_h): Add $(command_h).
10171 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10172 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10173 * completer.c: Include "cli/cli-decode.h".
10174 * maint.c: Include "cli/cli-decode.h".
10175 * cli/cli-decode.h: Include "command.h".
10176 (enum command_class): Delete.
10177 (enum cmd_types): Comment out.
10178 (enum cmd_auto_boolean): Delete.
10179 (enum var_types): Delete.
10180
b2875cc0
AC
101812002-03-23 Andrew Cagney <ac131313@redhat.com>
10182
10183 * cli/cli-decode.c: Include "gdb_assert.h".
10184 (add_set_or_show_cmd): New static function.
10185 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10186 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10187 all fields, such as func, from the set command.
10188
3b45974e
AC
101892002-03-23 Andrew Cagney <ac131313@redhat.com>
10190
10191 * MAINTAINERS (sh-elf): Change warning flag to -w.
10192
823ca731
AC
101932002-03-23 Andrew Cagney <cagney@redhat.com>
10194
10195 * defs.h (error): Add printf format attribute.
10196 * thread-db.c (thread_from_lwp): Fix error format string.
10197 * stack.c (parse_frame_specification): Ditto.
10198 * cli/cli-decode.c (undef_cmd_error): Ditto.
10199 * scm-lang.c (scm_lookup_name): Ditto.
10200 * tracepoint.c (trace_error): Ditto.
10201 * remote-utils.c (usage): Ditto.
10202 * remote.c (compare_sections_command): Ditto.
10203 Fix PR gdb/328.
10204
0e101458
AC
102052002-03-22 Andrew Cagney <ac131313@redhat.com>
10206
10207 * gdbtypes.c (append_composite_type_field): New function.
10208 (init_composite_type): New function.
10209 * gdbtypes.h (append_composite_type_field): Declare.
10210 (init_composite_type): Ditto.
10211
8e0662df
EZ
102122002-03-22 Elena Zannoni <ezannoni@redhat.com>
10213
10214 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10215 function.
8e0662df
EZ
10216 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10217 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10218 structure returning convention for SYSV ABI case, but not
10219 for GNU/Linux, FreeBSD, or NetBSD.
10220
3121eff0
DJ
102212002-03-22 Daniel Jacobowitz <drow@mvista.com>
10222
10223 * symtab.h (lookup_block_symbol): Add mangled_name argument
10224 to prototype.
10225
10226 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10227 with new mangled_name argument.
10228 * linespec.c (decode_line_1): Likewise.
10229 * valops (value_of_this): Likewise.
10230 * symtab.c (lookup_transparent_type): Likewise.
10231 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10232 (lookup_symbol): If we are given a mangled name, pass it down
10233 to lookup_symbol_aux.
10234 (lookup_block_symbol): If we are given a mangled name to check
10235 against, only return symbols which match it.
10236
349b409f
CF
102372002-03-22 Christopher Faylor <cgf@redhat.com>
10238
10239 * win32-nat.c (child_create_inferior): Check for proper shell to use
10240 here, in case the user changes it on the fly.
10241 (_initialize_inftarg): Remove shell path considerations.
10242
2a873819
EZ
102432002-03-21 Elena Zannoni <ezannoni@redhat.com>
10244
10245 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10246 for gdbarch_max_register_raw_size and max_register_virtual_size.
10247 Adjust copyright year.
10248
a1b9830c
DJ
102492002-03-21 Daniel Jacobowitz <drow@mvista.com>
10250
10251 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10252 in a function to cover the entire beginning of the function
10253 as well if it does not already.
10254
8b5790f2
TR
102552002-03-21 Tom Rix <trix@redhat.com>
10256
10257 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10258 (rs6000_ptrace64): Renamed from ptrace64.
10259
bdbe5747
MH
102602002-03-20 Martin M. Hunt <hunt@redhat.com>
10261
10262 * gdbserver/remote-utils.c (remote_open): Don't call
10263 getprotobyname, we're all using TCP here so just use
10264 IPPROTO_TCP.
7e336ba1 10265 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10266
102672002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10268
bdbe5747
MH
10269 * regcache.c (_initialize_regcache): No need to call
10270 build_regcache() at this time; it gets called whenever
10271 the gdbarch changes.
10272
7781cd62
DB
102732002-03-20 David O'Brien <obrien@FreeBSD.org>
10274
10275 * sparc-nat.c: Include sys/param.h where possible.
10276
f65ca430
DJ
102772002-03-20 Daniel Jacobowitz <drow@mvista.com>
10278
10279 Fix PR gdb/422.
10280 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10281 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10282 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10283 complex types.
10284 * stabsread.c (rs6000_builtin_type): Likewise.
10285 (read_sun_floating_type): Likewise.
10286
0c867556
PS
102872002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10288
10289 * stabsread.c (read_member_functions): Remove skip code for duplicate
10290 constructor/destructor methods. Use standard parsing for these
10291 methods and just do not chain them to the list of methods after
10292 parsing.
10293
12b9c64f
AO
102942002-03-19 Alexandre Oliva <aoliva@redhat.com>
10295
10296 * coffread.c: Remove redundant static declarations. Replace
10297 occurrences of `PTR' with `void *'.
10298 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10299 * top.h (quit_cover): Likewise.
10300 * defs.h (catch_errors): Likewise.
10301
349c5d5f
AC
103022002-03-18 Andrew Cagney <ac131313@redhat.com>
10303
10304 * defs.h (XMALLOC): Define.
10305 * gdb-events.sh (XMALLOC): Delete macro.
10306 * gdb-events.c, gdb-events.h: Regenerate.
10307 * gdbarch.sh (XMALLOC): Delete macro.
10308 * gdbarch.c: Regenerate.
10309 * serial.c (XMALLOC): Delete macro.
10310 * ui-file.c (XMALLOC): Ditto.
10311 * ser-unix.h (XMALLOC): Ditto.
10312 * sh-tdep.c (XMALLOC): Ditto.
10313 * ui-out.c (XMALLOC): Ditto.
10314 * utils.c (XMALLOC): Ditto.
10315 * i386-tdep.c (XMALLOC): Ditto.
10316 * gdb-events.c (XMALLOC): Ditto.
10317 * d10v-tdep.c (XMALLOC): Ditto.
10318 * cli-out.c (XMALLOC): Ditto.
10319
10320 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10321 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10322 * ui-file.c, ui-out.c: Ditto.
10323
7d0766f3
AC
103242002-03-18 Andrew Cagney <ac131313@redhat.com>
10325
10326 * command.h (struct cmd_list_element): Add field context.
10327 (set_cmd_context, get_cmd_context): Declare.
10328 * cli/cli-decode.h: Ditto.
10329 * cli/cli-decode.c (get_cmd_context): New function.
10330 (set_cmd_context): New function.
10331 (add_cmd): Initialize context.
10332 Part of fixing PR gdb/145 and PR gdb/146.
10333
5913bcb0
AC
103342002-03-17 Andrew Cagney <ac131313@redhat.com>
10335
1868c04e
AC
10336 * cli/cli-decode.c (cmd_type): New function.
10337 * command.h (cmd_type): Declare.
10338 * infrun.c (set_schedlock_func): Call function cmd_type.
10339 * kod.c (kod_set_os): Call cmd_type.
10340 * cris-tdep.c (cris_version_update): Use function cmd_type.
10341 (cris_mode_update, cris_abi_update): Ditto.
10342
5913bcb0
AC
10343 * command.h: (execute_cmd_post_hook): Declare.
10344 (execute_cmd_pre_hook): Declare.
10345 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10346 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10347 functions. Execute pre/post hook while ensuring that afterwords
10348 hook_in is cleared.
10349 * top.c (execute_command): Use execute_cmd_post_hook, and
10350 execute_cmd_pre_hook to execute pre/post commands.
10351 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10352 hook_stop_stub.
10353 (hook_stop_stub): Call execute_cmd_pre_hook.
10354
b51450c9
AC
103552002-03-17 Andrew Cagney <ac131313@redhat.com>
10356
10357 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10358 set'' and this leads to a core dump. Move xstrdup of
10359 operating_system to after check that it is not NULL.
10360
f66c9f11
AC
103612002-03-17 Andrew Cagney <ac131313@redhat.com>
10362
8e694ecf
AC
10363 * kod.c (kod_set_os): Remove unnecessary check that
10364 ``command->type'' is set_cmd.
10365
f66c9f11
AC
10366 * valprint.c (set_input_radix): Use input_radix.
10367 (set_output_radix): Use output_radix.
10368 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10369 isn't reverted.
10370
9d01611c
AC
103712002-03-16 Andrew Cagney <ac131313@redhat.com>
10372
10373 * value.h (struct value): Delete field ``substring_addr''. Change
10374 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10375 force_core_addr_align and force_pointer_aligh.
10376
10377 * value.h (struct value): Fix typo in above change.
9d01611c 10378
4156bb53
PS
103792002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10380
10381 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10382 to fix internal_error from ``maintenance print architecture''.
10383
0e5e3ea6
PS
103842002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10385
10386 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10387 for gcc versions after gcc-2.8.1.
10388
9b013045
PS
103892002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10390
10391 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10392 for method resolution. Restore adjustment of ``this'' pointer after
10393 calling value_struct_elt, which was accidentally removed during the
10394 HP merge.
10395
376c9600
AC
103962002-03-15 Andrew Cagney <ac131313@redhat.com>
10397
10398 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10399 value_of_register.
10400 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10401 get_saved_register.
10402 * value.h (value_of_register): Update.
10403
a4db0f07
RH
104042002-03-14 Richard Henderson <rth@redhat.com>
10405
10406 * configure.in: Detect declaration for canonicalize_file_name.
10407 * utils.c (canonicalize_file_name): Declare, if needed.
10408 (gdb_realpath): Prefer realpath if available and usable.
10409 * config.in, configure: Rebuild.
10410
96383835
RH
104112002-03-14 Richard Henderson <rth@redhat.com>
10412
10413 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10414 a constant array bound.
10415
10416 * MAINTAINERS: Add myself to write-after-approval.
10417
75245b24
MS
104182002-03-14 Michael Snyder <msnyder@redhat.com>
10419
10420 * symfile.c (syms_from_objfile): Return immediately if no syms.
10421 (symbol_file_add): Return immediately if no syms.
10422 (find_sym_fns): Return immediately if no syms.
10423
e641a1ca
ML
104242002-03-13 Michal Ludvig <mludvig@suse.cz>
10425
10426 * gdbserver/remote-util.c (remote_open): Print remote-side's
10427 IP address when remote debugging over the network.
7e336ba1 10428
df08bfec
DB
104292002-03-12 David O'Brien <obrien@FreeBSD.org>
10430
10431 * config/sparc/fbsd.mh: Fix copyright.
10432 * config/sparc/fbsd.mt: Likewise.
10433
9a57864f
RE
104342002-03-11 Richard Earnshaw <rearnsha@arm.com>
10435
10436 * MAINTAINERS: Fix typo in name of gdb warnings option.
10437 (x86-64): Fix formating so that this can be parsed by awk.
10438
dd7bf85e
DJ
104392002-03-10 Daniel Jacobowitz <drow@mvista.com>
10440
10441 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10442 * defs.h: Include "gdb/signals.h".
10443 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10444
33a0a2ac
ML
104452002-03-10 Michal Ludvig <mludvig@suse.cz>
10446
10447 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10448 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10449 from x86-64-tdep.h
10450
dd824b04
DJ
104512002-03-10 Daniel Jacobowitz <drow@mvista.com>
10452 Don Howard <dhoward@redhat.com>
10453
10454 * mips-tdep.c (ST0_FR): Define.
10455 (mips2_fp_compat): New function, temporarily disabled.
10456 (mips_read_fp_register_single): New function.
10457 (mips_read_fp_register_double): New function.
10458 (mips_print_register): Use them.
10459 (do_fp_register_row): Likewise.
10460
6a41ff59
AC
104612002-03-09 Andrew Cagney <ac131313@redhat.com>
10462
10463 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10464 approval''.
10465
4ea09c10
PS
104662002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10467
10468 * stabsread.c (read_member_functions): Fix is_stub test for
10469 static member functions, improve comment.
10470
6ccc741d
RE
104712002-03-07 Richard Earnshaw <rearnsha@arm.com>
10472
10473 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10474 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10475 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10476 commands that set boolean values.
10477 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10478 (arm_rdi_resume): Always initialize PC.
10479 (arm_rdi_open): Don't use rslt as a boolean.
10480 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10481 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10482 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10483 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10484
438013df
AO
104852002-03-06 Alexandre Oliva <aoliva@redhat.com>
10486
10487 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10488 * configure: Rebuilt.
10489
70ed8774
SC
104902002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10491
10492 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10493 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10494
5ba2abeb
AC
104952002-03-06 Andrew Cagney <ac131313@redhat.com>
10496
10497 * cli/cli-decode.c (set_cmd_completer): New function.
10498 * command.h (set_cmd_completer): Declare.
10499 * cli/cli-decode.h (set_cmd_completer): Ditto.
10500
10501 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10502 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10503 * win32-nat.c (_initialize_inftarg): Ditto.
10504 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10505 * proc-api.c (_initialize_proc_api): Ditto.
10506 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10507 * source.c (_initialize_source): Ditto.
10508 * exec.c (_initialize_exec): Ditto.
10509 * solib.c (_initialize_solib): Ditto.
10510 * top.c (init_main): Ditto.
10511 * tracepoint.c (_initialize_tracepoint): Ditto.
10512 * symfile.c (_initialize_symfile): Ditto.
10513 * printcmd.c (_initialize_printcmd): Ditto.
10514 * infcmd.c (_initialize_infcmd): Ditto.
10515 * corefile.c (_initialize_core): Ditto.
10516
f779ca99
AC
105172002-03-05 Andrew Cagney <ac131313@redhat.com>
10518
10519 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10520
01a3934b
AC
105212002-03-05 Andrew Cagney <ac131313@redhat.com>
10522
10523 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10524
37057839
AC
105252002-03-05 Andrew Cagney <ac131313@redhat.com>
10526
10527 * NEWS: Update headings, 5.2 has branched.
10528
c6ecbae5
DJ
105292002-03-04 Daniel Jacobowitz <drow@mvista.com>
10530
10531 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10532 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10533 (register_addr, REGISTER_RAW_SIZE): Likewise.
10534 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10535 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10536
e9f30c21
ML
105372002-03-03 Michal Ludvig <mludvig@suse.cz>
10538
10539 * MAINTAINERS (x86-64): Add myself.
10540 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10541 changed value_ptr -> struct value *
10542
54394ac3
DB
105432002-03-01 David O'Brien <obrien@FreeBSD.org>
10544
10545 * configure.host (sparc64-*-freebsd): Add.
10546 * configure.tgt: Likewise.
10547 * config/sparc/fbsd.mh: New file.
10548 * config/sparc/fbsd.mt: Likewise.
10549 * config/sparc/nm-fbsd.h: Likewise.
10550 * config/sparc/tm-fbsd.h: Likewise.
10551
bfe95955
DJ
105522002-03-01 Daniel Jacobowitz <drow@mvista.com>
10553
10554 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10555 regformats/reg-s390x.dat.
10556
f33c6cbf
AC
105572002-03-01 Andrew Cagney <ac131313@redhat.com>
10558
10559 * utils.c: Add FIXME explaining true/false problem.
10560
5ecaa7dd
AC
105612002-02-28 Andrew Cagney <ac131313@redhat.com>
10562
10563 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10564
2a251cc2
MC
105652002-02-28 Michael Chastain <mec@shout.net>
10566
10567 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10568
6a8031a3 105692002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10570
10571 * gdbserver/linux-s390-low.c: New file.
10572 * regformats/reg-s390.dat: New file.
10573 * regformats/reg-s390x.dat: New file.
10574 * gdbserver/configure.srv: Add S/390.
10575 * gdbserver/Makefile.in: Add S/390.
10576 * configure.tgt: Enable gdbserver for S/390.
10577
ac469903
EZ
105782002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10579
10580 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10581 first line of the doc string for "info dos", except at the end of
10582 the sentence, since the short help stops at the first period.
10583
985cb1a3
JM
105842002-02-28 Jason Merrill <jason@redhat.com>
10585
10586 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10587
c570663e
FF
105882002-02-27 Fred Fish <fnf@redhat.com>
10589
10590 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10591 comment (dumy -> dummy).
10592
43630227
PS
105932002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10594
10595 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10596
b84911e8
RB
105972002-02-27 Rodney Brown <rbrown64@csc.com.au>
10598
10599 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10600
58caa3dc
DJ
106012002-02-27 Daniel Jacobowitz <drow@mvista.com>
10602
10603 * gdbserver/acconfig.h: New file.
10604 * gdbserver/i387-fp.c: New file.
10605 * gdbserver/i387-fp.h: New file.
10606 * gdbserver/linux-x86-64.c: New file.
10607 * regformats/reg-x86-64.dat: New file.
10608 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10609 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10610 * gdbserver/configure.in: Add support for regsets.
10611 * gdbserver/config.in: Regenerate.
10612 * gdbserver/configure: Regenerate.
10613 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10614 * gdbserver/linux-low.h: New file.
10615 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10616 for regsets.
10617 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10618 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10619 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10620 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10621 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10622 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10623 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10624 "i387-fp.h". Add PTRACE_GETREGS and friends.
10625 * gdbserver/regcache.c (supply_register): New function.
10626 (supply_register_by_name): New function.
10627 (collect_register): New function.
10628 (collect_register_by_name): New function.
10629
93652174
DJ
106302002-02-27 Daniel Jacobowitz <drow@mvista.com>
10631
10632 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10633 (config.status): Add configure.srv dependency.
10634 (server_h): Add config.h dependency.
10635
a02e4a61
DJ
106362002-02-27 Daniel Jacobowitz <drow@mvista.com>
10637
10638 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10639 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10640 * gdbserver/configure.srv: Change i386-*-linux* to use
10641 reg-i386-linux.o.
10642
ce0eebec
AC
106432002-02-26 Andrew Cagney <ac131313@redhat.com>
10644
10645 * x86-64-tdep.c: Re-indent. Update copyright date.
10646
82dbc5f7
AC
106472002-02-26 Andrew Cagney <ac131313@redhat.com>
10648
10649 From Michal Ludvig <mludvig@suse.cz>:
10650 * x86-64-tdep.c (value.h): Delete.
10651 (gdb_assert.h): Include.
10652 (x86_64_register_convert_to_virtual,
10653 x86_64_register_convert_to_raw ): Add check which lets only
10654 floating-point values to be converted.
10655 (value_push): Delete.
10656 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10657 (i386_gdbarch_init): Number of register_bytes fixed.
10658
e4621584
AC
106592002-02-26 Andrew Cagney <ac131313@redhat.com>
10660
10661 * MAINTAINERS: Add x86-64 target.
10662
81a9a963
AC
106632002-02-26 Andrew Cagney <ac131313@redhat.com>
10664
10665 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10666 * osfsolib.c (solib_map_sections): Ditto.
10667 * irix5-nat.c (solib_map_sections): Ditto.
10668 * corelow.c (gdb_check_format): Ditto.
10669 * symfile.c (symfile_bfd_open): Ditto.
10670 * solib.c (solib_map_sections): Ditto.
10671 Fix PR gdb/354.
7e336ba1 10672
0f017ab9
AC
106732002-02-26 Andrew Cagney <ac131313@redhat.com>
10674
10675 * remote.c (_initialize_remote): By default, disable ``e'' and
10676 ``E'' step out-of-range packets.
10677
75738c29
AS
106782002-02-26 Andreas Schwab <schwab@suse.de>
10679
10680 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10681 m68k_linux_frame_saved_pc.
10682 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10683 in_sigtramp.
10684 (SIGCONTEXT_PC_OFFSET): Remove.
10685 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10686 m68k_linux_sigtramp_saved_pc): New functions.
10687 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10688 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10689 (UCONTEXT_PC_OFFSET): Define.
10690 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10691 non-RT and RT signal trampolines.
10692
7e8ed687
RE
106932002-02-26 Richard Earnshaw <rearnsha@arm.com>
10694
10695 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10696 (TARGET_NBPG, STACK_END_ADDR): Delete
10697 (VARIABLES_INSIDE_BLOCK): Delete.
10698
6972bc8b
AC
106992002-02-25 Andrew Cagney <ac131313@redhat.com>
10700
10701 * utils.c (perror_with_name): Make string parameter constant.
10702 (print_sys_errmsg): Ditto.
10703 (query): Ditto.
10704 * defs.h (perror_with_name): Update.
10705 (print_sys_errmsg): Update.
10706 (query): Update.
10707
aa32f823
DJ
107082002-02-25 Daniel Jacobowitz <drow@mvista.com>
10709
10710 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10711 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10712
19caaa45
PS
107132002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10714
10715 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10716 if it already matches the current architecture from the exec file.
10717 Include arch-utils.h for gdbarch_info_init prototype.
10718 * Makefile.in (rs6000-nat.o): Update dependencies.
10719
d951901f
EZ
107202002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10721
10722 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10723 list of exported variables.
10724
7ea81414
DJ
107252002-02-24 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * gdbserver/configure.srv: New file.
10728 * gdbserver/configure.in: Use configure.srv instead
10729 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10730 from it.
10731 * gdbserver/configure: Regenerated.
10732 * gdbserver/terminal.h: New file.
10733 * gdbserver/Makefile.in: Update for configure changes. Remove
10734 more unneeded include paths.
10735
080fe24b
AC
107362002-02-24 Andrew Cagney <ac131313@redhat.com>
10737
10738 From wiz at danbala:
10739 * config/sparc/tm-sp64.h: Fix grammar and typos.
10740 Fix PR gdb/287.
10741
8605d56e
AC
107422002-02-24 Andrew Cagney <ac131313@redhat.com>
10743
10744 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10745 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10746 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10747 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10748 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10749 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10750 * s390-tdep.c: Ditto.
92362027
AC
10751 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10752 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10753 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10754 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10755 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10756 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10757 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10758 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10759 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10760 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10761 Fix PR gdb/378.
7e336ba1 10762
8ed32cc0
AC
107632002-02-23 Andrew Cagney <ac131313@redhat.com>
10764
a3007b6f
AC
10765 * lin-thread.c: Delete file.
10766 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10767 to gdb_proc_service.h.
10768 * configure: Re-generate.
10769
50a9e2f1
AC
10770 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10771 * serial.c (serial_open): Delete check for "ocd".
10772 Fix PR gdb/349.
10773
8b6e7932
AC
10774 * Makefile.in (linux-thread.o): Delete target.
10775 * linux-thread.c: Delete file.
10776
d155c46b
AC
10777 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10778 renamed SH files to be consistent.
10779
8ed32cc0
AC
10780 * symtab.c (sort_search_symbols): Use xfree.
10781
0e18d038
RE
107822002-02-23 Richard Earnshaw <rearnsha@arm.com>
10783
10784 * arm-linux-tdep.c (arm_linux_init_abi): Register
10785 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10786 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10787 definition with undef, since we don't want the sysvr4 definition.
10788 (SKIP_TRAMPOLINE_CODE): Likewise.
10789
27aac7ff
AC
107902002-02-23 Andrew Cagney <ac131313@redhat.com>
10791
10792 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10793
10794 * configure.in: (AC_CHECK_FUNCS) Added test for
10795 canonicalize_file_name Regenerated.
10796 * config.in, configure: Regenerated.
10797 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10798 defined use canonicalize_file_name.
7e336ba1 10799
65a6e0ee
MC
108002002-02-23 Michael Chastain <mec@shout.net>
10801
10802 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10803
47b95330
AC
108042002-02-23 Andrew Cagney <ac131313@redhat.com>
10805
10806 * README: Remove references to cygnus.com.
10807 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10808 dot com'' form. Remove references to cygnus.com and sourceware.
10809
696f451b
AC
108102002-02-23 Andrew Cagney <ac131313@redhat.com>
10811
10812 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10813 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10814 1003.1-2001 no longer allows "head -1".
10815 * gdb/Makefile.in (version.c): Likewise.
10816 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10817 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10818 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10819
bbaca940
AC
108202002-02-23 Andrew Cagney <ac131313@redhat.com>
10821
10822 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10823 * command.h (cmd_cfunc_eq): Declare.
10824 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10825
10826 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10827 ``struct cmd_list_element *''.
10828 * cli/cli-cmds.c (is_complete_command): Update. Use
10829 cmd_cfunc_eq.
10830 * top.c (execute_command): Pass the command to
10831 is_complete_command.
10832 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10833
b8b8b047
AC
108342002-02-23 Andrew Cagney <ac131313@redhat.com>
10835
10836 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10837 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10838 architecture defines.
10839 * s390-tdep.c (s390_gdbarch_init): Likewise.
10840
19d3fc80
RE
108412002-02-23 Richard Earnshaw <rearnsha@arm.com>
10842
10843 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10844 (arm_linux_push_arguments): Likewise.
10845 (arm_linux_init_abi): Register them. Also register linux-specific
10846 call_dummy_words.
10847 (find_minsym_and_objfile): Use strcmp, not STREQ.
10848 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10849 (arm_linux_call_dummy_words): Delete declaration.
10850 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10851 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10852 declarations.
10853 (LOWEST_PC): Delete.
10854
3ab13650
PS
108552002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10856
10857 * maint.c (print_section_info): Do not prepend `0x' to filepos
10858 output, it will be handled by local_hex_string_custom.
10859
19d3fc80 108602002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
10861
10862 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10863 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10864 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10865
d85a5daf
JB
108662002-02-22 Jim Blandy <jimb@redhat.com>
10867
10868 Indicate that the bcache functions don't change the strings
10869 they're passed.
10870 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10871 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10872
eeb25b8a
PM
108732002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10874
10875 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10876
6badb179
CF
108772002-02-21 Christopher Faylor <cgf@redhat.com>
10878
10879 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10880 find the complete path to a loaded DLL.
10881
e8717518
FF
108822002-02-21 Fred Fish <fnf@redhat.com>
10883
10884 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10885 that marks the end of the range of a function, enter a line number
10886 entry that has a line number of zero and a PC offset that matches
10887 the end of the function. This starts a range of PC's for which no
10888 line number information is known.
10889 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10890 PC's for which no line number info is found (line number is zero)
10891 then we didn't find any valid line information.
10892 * symtab.h: Document use of zero line number entry.
10893
9abe5450
EZ
108942002-02-21 Elena Zannoni <ezannoni@redhat.com>
10895
10896 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10897 (have_ptrace_getvrregs): Define for run time checks.
10898 (gdb_vrregset_t): New type for Altivec register handling.
10899 (fetch_register, store_register): Fetch/store altivec register
10900 when needed.
10901 (fetch_altivec_register, store_altivec_register): New functions.
10902 (supply_vrregset, fill_vrregset): New functions.
10903 (fetch_altivec_registers, store_altivec_registers): New functions.
10904 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10905 registers as well.
10906
aaa38bb5
AJ
109072002-02-21 Jiri Smid <smid@suse.cz>
10908
10909 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10910
b34db576
RE
109112002-02-21 Richard Earnshaw <rearnsha@arm.com>
10912
10913 * Makefile.in (armnbsd-nat.o): Update dependencies.
10914 * armnbsd-nat.c (supply_gregset): New function. Common code to
10915 supply the integer register set.
10916 (supply_fparegset): New function. Similar for FPA registers.
10917 (fetch_regs, fetch_fp_regs): Use them.
10918 (fetch_core_registers): Likewise.
10919 (fetch_elfcore_registers): New function.
10920 (arm_netbsd_elfcore_fns): New core-file type specification.
10921 (_initialize_arm_netbsd_nat): Register it.
10922
3e56fc4b
RE
109232002-02-21 Richard Earnshaw <rearnsha@arm.com>
10924
10925 * armnbsd-nat.c: Include gdbcore.h.
10926 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10927 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10928 'void' to declaration, to shut up ARI.
10929 (fetch_core_registers): Make static. Rewrite using supply_register.
10930 (arm_netbsd_core_fns): New core-file type specification.
10931 (_initialize_arm_netbsd_nat): New function.
10932
097f6b0b
CF
109332002-02-21 Christopher Faylor <cgf@redhat.com>
10934
10935 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10936 value.
10937
c914e0cc
CF
109382002-02-20 Christopher Faylor <cgf@redhat.com>
10939
10940 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10941 fails.
10942
385fa495
DJ
109432002-02-20 Daniel Jacobowitz <drow@mvista.com>
10944
10945 * jv-exp.y (parse_number): Change type of implicit longs
10946 to builtin_type_uint64.
10947
e5f1222d
DJ
109482002-02-20 Daniel Jacobowitz <drow@mvista.com>
10949
10950 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10951 to be an integer instead of a `union wait'.
10952
75c9abc6
DJ
109532002-02-20 Daniel Jacobowitz <drow@mvista.com>
10954
10955 * mips-linux-nat.c: Call the operating system GNU/Linux.
10956 * mips-linux-tdep.c: Likewise.
10957 * mips-tdep.c: Likewise.
10958
551792a5
DJ
109592002-02-20 Daniel Jacobowitz <drow@mvista.com>
10960
10961 Fix PR gdb/265.
10962 * jv-exp.y (parse_number): Handle 64-bit integers.
10963
ee6e2b82
DJ
109642002-02-20 Daniel Jacobowitz <drow@mvista.com>
10965
10966 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10967 AC_STDC_HEADERS to AC_HEADER_STDC.
10968 * gdbserver/configure: Regenerated.
10969
a48442a0
RE
109702002-02-20 Richard Earnshaw <rearnsha@arm.com>
10971
10972 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10973 is defined.
10974 * sparc-tdep.c (get_longjmp_target): Likewise.
10975
fe419ffc
RE
109762002-02-20 Richard Earnshaw <rearnsha@arm.com>
10977
10978 * News: Add news about ARM and Multi-arch. Mention the new target
10979 arm*-*-netbsd*.
10980
5832ed7e
JB
109812002-02-19 Jim Blandy <jimb@redhat.com>
10982
10983 * stabsread.c (error_type_complaint): Improve error message.
10984
84563040
DJ
109852002-02-19 Daniel Jacobowitz <drow@mvista.com>
10986
10987 * gdbserver/README: Update documentation.
10988 * gdbserver/configure.in: Update configury to match documentation.
10989 * gdbserver/Makefile.in: Likewise.
10990 * gdbserver/configure: Regenerated.
10991 * gdbserver/aclocal.m4: New file, generated by aclocal.
10992 * gdbserver/config.in: New file, generated by autoheader.
10993
375fd65b
RE
109942002-02-19 Richard Earnshaw <rearnsha@arm.com>
10995
10996 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10997 armnbsd-nat.c.
10998
08216dd7
RE
109992002-02-19 Richard Earnshaw <rearnsha@arm.com>
11000
11001 * arm-tdep.h (enum arm_float_model): New enum.
11002 (struct gdbarch_tdep): Add fp_model.
11003 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11004 up floating-point conversions until we know the floating-point model
11005 in use by the inferior. Don't complain about being unable to
11006 determine the ABI of the inferior when we don't have one.
11007 (arm_extract_return_value): Support different floating-point models.
11008 (arm_store_return_value): Likewise.
aaa38bb5 11009 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11010 ARM_FLOAT_SOFT.
11011 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11012
65d6d66a
PS
110132002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11014
11015 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11016 of ``current_gdbarch''.
11017
47221191
RE
110182002-02-19 Richard Earnshaw <rearnsha@arm.com>
11019
11020 * armnbsd-nat.c : ANSIfy all function declarations.
11021 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11022 (fetch_inferior_registers): Re-implement in terms of above.
11023 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11024 (store_inferior_registers): Re-implement in terms of above.
11025
fdf39c9a
RE
110262002-02-19 Richard Earnshaw <rearnsha@arm.com>
11027
aaa38bb5 11028 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11029 kernel.
11030 * arm-linux-tdep.c: Likewise.
11031 * config/arm/tm-linux.h: Likewise.
11032
93247f88
RE
110332002-02-19 Richard Earnshaw <rearnsha@arm.com>
11034
11035 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11036 * config/arm/nbsd.mt (TM_FILE): Delete.
11037 * config/arm/tm-nbsd.h: Delete.
11038
d7b486e7
RE
110392002-02-19 Richard Earnshaw <rearnsha@arm.com>
11040
11041 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11042 Initialize CALL_DUMMY_LENGTH.
11043
41d39a95
RE
110442002-02-19 Richard Earnshaw <rearnsha@arm.com>
11045
11046 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11047 function.
11048 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11049 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11050 defines one thing and that is incorrect for this port.
11051 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11052
e1195560
PM
110532002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11054
11055 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11056
c1748f97
PM
110572002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11058
11059 * win32-nat.c (display_selector): New function. Displays information
11060 about the information returned by GetThreadSelectorEntry API function.
11061 (display_selectors): New function. Displays the infomation of
11062 the selector given as argument, or of CS, DS ans FS selectors
11063 if no argument is given.
11064 ( _initialize_inftarg): Add "w32" as info prefix command.
11065 Add "info w32 selector" as command calling display_selectors.
11066
e41e6bbf
PM
110672002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11068
11069 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11070 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11071 if not defined.
11072
0d3a9f48
RE
110732002-02-18 Richard Earnshaw <rearnsha@arm.com>
11074
11075 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11076
3fb4b924
RE
110772002-02-18 Richard Earnshaw <rearnsha@arm.com>
11078
11079 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11080 (arm_fix_call_dummy): Call it.
11081 (arm_call_dummy_breakpoint_offset): Delete.
11082 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11083 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11084
7f55af32
AC
110852002-02-18 Andrew Cagney <ac131313@redhat.com>
11086
11087 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11088 Default to func_frame_chain_valid.
11089 * gdbarch.h, gdbarch.c: Re-generate.
11090 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11091
05f13b9c
EZ
110922002-02-18 Elena Zannoni <ezannoni@redhat.com>
11093
11094 * ppc-linux-nat.c: Update copyright.
11095 (fetch_register, store_register): Add tid parameter, don't compute
11096 tid here.
11097 (fetch_ppc_registers, store_ppc_registers): Add tid
11098 parameter. Pass it along to callees.
11099 (fetch_inferior_registers, store_inferior_registers): Compute tid
11100 here, and pass it to calleed functions.
11101 (fill_gregset, supply_fpregset): Clean up formatting.
11102
d7afb4c9
RE
111032002-02-18 Richard Earnshaw <rearnsha@arm.com>
11104
11105 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11106 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11107
9df628e0
RE
111082002-02-18 Richard Earnshaw <rearnsha@arm.com>
11109
11110 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11111 * gdbarch.c gdbarch.h: Regenerate.
11112 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11113 function.
11114 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11115 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11116 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11117
11118 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11119 * arm-tdep.c (arm_get_longjmp_target): New function.
11120 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11121 this to a positive value register arm_get_longjmp_target as the
11122 longjmp handler.
11123 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11124 (arm_linux_init_abi): Set up longjmp description in tdep.
11125 * armnbsd-nat.c (get_longjmp_target): Delete.
11126 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11127 description in tdep.
11128 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11129 (get_longjmp_target): Delete declaration.
11130 (GET_LONGJMP_TARGET): Delete.
11131 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11132 (GET_LONGJMP_TARGET): Delete.
11133
57bc8964
KB
111342002-02-17 Kevin Buettner <kevinb@redhat.com>
11135
11136 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11137 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11138 of ``current_gdbarch''.
11139
83d31a92
TT
111402002-02-17 Tom Tromey <tromey@redhat.com>
11141
11142 * cli/cli-cmds.c (compare_strings): New function.
11143 (complete_command): Only print each unique item once.
11144 * completer.h (complete_line): Declare.
11145 * completer.c (complete_line): New function.
11146 (line_completion_function): Use it.
11147
17ef5d92
AC
111482002-02-16 Andrew Cagney <ac131313@redhat.com>
11149
11150 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11151 * gdbarch.h, gdbarch.c: Re-generate.
11152
491b8946
DJ
111532002-02-16 Daniel Jacobowitz <drow@mvista.com>
11154
11155 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11156
111572002-02-16 Daniel Jacobowitz <drow@mvista.com>
11158
11159 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11160 * valops.c (value_arg_coerce): Don't take the address of a reference
11161 to convert an argument to a reference.
11162
dfe7f3ac
CF
111632002-02-15 Christopher Faylor <cgf@redhat.com>
11164
11165 * win32-nat.c (get_image_name): New function.
11166 (handle_load_dll): Use get_image_name function.
11167 (get_child_debug_event): Avoid registering debug events until possibly
11168 execed process is started.
11169 (child_create_inferior): Allow invocation via shell so that command
11170 line redirection, etc. works ok.
11171 (_initialize_inftarg): Add new command: "set shell" to control whether
11172 a shell is used to start a process.
11173
1d33e73a
DJ
111742002-02-15 Daniel Jacobowitz <drow@mvista.com>
11175
11176 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11177 instead of find_register_by_number.
11178 (cannot_store_register): Likewise.
11179
48cd0caa
PM
111802002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11181
aaa38bb5 11182 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11183 fprintf_unfiltered (gdb_stderr, ...).
11184
8656e7d8
DJ
111852002-02-15 Daniel Jacobowitz <drow@mvista.com>
11186
11187 * gdbserver/gdbserver.1: Document --attach.
11188
66e810cd
RE
111892002-02-15 Richard Earnshaw <rearnsha@arm.com>
11190
11191 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11192 descriptions.
11193 * arm-tdep.c (arm_default_arm_le_breakpoint)
11194 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11195 (arm_default_thumb_be_breakpoint): New. Initialize them from
11196 traditional breakpoint defines.
11197 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11198 (arm_gdbarch_init): Initialize new breakpoint variables.
11199 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11200 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11201 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11202 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11203 code out to ...
11204 (arm_netbsd_init_abi_common): ... here; new function.
11205 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11206 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11207 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11208 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11209
97e03143
RE
112102002-02-15 Richard Earnshaw <rearnsha@arm.com>
11211
11212 * arm-tdep.h (enum arm_abi): New enum.
11213 (struct gdbarch_tdep): New structure.
11214 (LOWEST_PC): Provide a default.
11215 (arm_gdbarch_register_os_abi): Declare new function.
11216 * arm-tdep.c (arm_abi_names): New array.
11217 (process_note_abi_tag_sections): New function.
11218 (get_elfosabi): New function.
11219 (arm_gdbarch_register_os_abi): New function.
11220 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11221 support for that ABI has been built in, then call the appropriate
11222 configuration routine. Use gdbarch_num_regs() to get the number
11223 of registers.
11224 (arm_dump_tdep): New function.
11225 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11226 place-holder functions.
11227 (_initialize_arm_tdep): Register them.
11228 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11229
11230 * armnbsd-tdep.c: New file.
11231 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11232 * config/arm/nbsd.mt (TDEPFILES): Add it.
11233 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11234
11235 * armnbsd-nat.c: Include regcache.h.
11236 * Makefile.in (armnbsd-nat.o): Update dependency list.
11237
11238 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11239
ad68be46
DJ
112402002-02-14 Daniel Jacobowitz <drow@mvista.com>
11241
11242 * gdbserver/Makefile.in: Fix typos in target rules.
11243
003d6d1d
DJ
112442002-02-14 Daniel Jacobowitz <drow@mvista.com>
11245
aaa38bb5 11246 Fix part of PR gdb/267.
003d6d1d
DJ
11247 * linespec.c (find_methods): Handle constructors specially for now.
11248
6b230f1b
CV
112492002-02-14 Corinna Vinschen <vinschen@redhat.com>
11250
11251 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11252 handling.
11253 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11254 standard_coerce_float_to_double().
11255
1ea98d12
CF
112562002-02-14 Christopher Faylor <cgf@redhat.com>
11257
11258 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11259 GDBINIT_FILENAME.
11260
dd47e6fd
EZ
112612002-02-14 Elena Zannoni <ezannoni@redhat.com>
11262
11263 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11264 find_variant_by_name, because it confuses the multiarch
11265 framework. Return NULL if there isn't an architecture with the
11266 user supplied name, instead of forcing a different one without
11267 recording the change with the multiarch machinery.
11268 (find_variant_by_name): Delete.
11269
d7e39b9e
PS
112702002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11271
11272 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11273 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11274
76e42a4f
MH
112752002-02-13 Martin M. Hunt <hunt@redhat.com>
11276
aaa38bb5 11277 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11278 print_frame_info_listing_hook, set current_source_symtab.
11279
0a30fbc4
DJ
112802002-02-14 Daniel Jacobowitz <drow@mvista.com>
11281
11282 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11283 and remove unused $(INCLUDE_DIR).
11284 Add regcache.c to OBS.
11285 Add generated register protocol files to clean target.
11286 Update dependencies for new objects, obsolete old target code.
11287
11288 * gdbserver/linux-low.c: Remove all platform-specific code to
11289 new files. Remove various dead code. Update to use regcache
11290 functionality.
11291 * gdbserver/remote-utils.c (fromhex): Add return statement
11292 to quiet warning.
11293 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11294 constant.
11295 (input_interrupt): Add integer parameter to match prototype
11296 of a signal handler.
11297 (outreg): Use register_data ().
11298 (prepare_resume_reply): Use gdbserver_expedite_regs.
11299 * gdbserver/server.c (main): Dynamically allocate own_buf because
11300 PBUFSIZ is no longer constant. Use registers_to_string () and
11301 registers_from_string ().
11302 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11303 for error (), fatal (), and warning (). Update definition of
11304 PBUFSIZ to use regcache functionality. Add include guard.
11305 * gdbserver/utils.c (fatal): Add missing ``const''.
11306 (warning): New function.
11307
11308 * regformats/regdat.sh: Include "regcache.h" in generated files.
11309 Provide init_registers () function.
11310 * regformats/regdef.h: Add prototype for set_register_cache ().
11311 Add include guard.
11312
11313 * gdbserver/linux-arm-low.c: New file.
11314 * gdbserver/linux-i386-low.c: New file.
11315 * gdbserver/linux-ia64-low.c: New file.
11316 * gdbserver/linux-m68k-low.c: New file.
11317 * gdbserver/linux-mips-low.c: New file.
11318 * gdbserver/linux-ppc-low.c: New file.
11319 * gdbserver/linux-sh-low.c: New file.
11320
11321 * gdbserver/regcache.c: New file.
11322 * gdbserver/regcache.h: New file.
11323
11324 * gdbserver/low-linux.c: Removed obsolete file.
11325
4cc841d0
DJ
113262002-02-14 Daniel Jacobowitz <drow@mvista.com>
11327
11328 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11329 * config/i386/linux.mt: Likewise.
11330 * config/ia64/linux.mt: Likewise.
11331 * config/m68k/linux.mh: Likewise.
11332 * config/powerpc/linux.mh: Likewise.
11333 * config/mips/linux.mt: Likewise.
11334
11335 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11336
11337 * config/i386/i386lynx.mh: Mark gdbserver variables
11338 as (currently) obsolete for this target.
11339 * config/i386/nbsd.mt: Likewise.
11340 * config/i386/nbsdelf.mt: Likewise.
11341 * config/m32r/m32r.mt: Likewise.
11342 * config/m68k/m68klynx.mh: Likewise.
11343 * config/m68k/nbsd.mt: Likewise.
11344 * config/m68k/sun3os4.mh: Likewise.
11345 * config/mips/vr5000.mt: Likewise.
11346 * config/ns32k/nbsd.mt: Likewise.
11347 * config/pa/hppabsd.mh: Likewise.
11348 * config/pa/hppaosf.mh: Likewise.
11349 * config/powerpc/nbsd.mt: Likewise.
11350 * config/rs6000/rs6000lynx.mh: Likewise.
11351 * config/s390/s390.mt: Likewise.
11352 * config/s390/s390x.mt: Likewise.
11353 * config/sparc/sparclynx.mh: Likewise.
11354 * config/sparc/sun4os4.mh: Likewise.
11355 * config/i386/x86-64linux.mt: Likewise.
11356 * config/sparc/linux.mh: Likewise.
11357
a85f51e7
DJ
113582002-02-14 Daniel Jacobowitz <drow@mvista.com>
11359
11360 * configure.tgt: Configure gdbserver only for known working
11361 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11362 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11363 SUBDIRS if it is configured. Update comment for ${nativefile}.
11364 * configure: Regenerated.
11365
65554fef
MS
113662002-02-13 Michael Snyder <msnyder@redhat.com>
11367
670a52db
MS
11368 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11369
6dbdc4a3
MS
11370 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11371 (default_gcore_mach): Just return 0, work around a problem in bfd.
11372 (default_gcore_target): OK to return NULL if exec_bfd is null.
11373 (make_mem_sec): Use a cast, avoid a warning.
11374
11375 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11376 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11377 sizeof (host pointer) != sizeof (target pointer)).
11378 (procfs_make_note_section): Avoid overflow in psargs string.
11379
aaa38bb5 11380 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11381 implementation return an error.
11382
113832002-02-13 Rodney Brown <rbrown64@csc.com.au>
11384
11385 * procfs.c (procfs_make_note_section): Provide a default definition
11386 (for alpha-dec-osf4.0f). Fix typos.
11387
1e4d76e7
EZ
113882002-02-13 Elena Zannoni <ezannoni@redhat.com>
11389
11390 * linux-proc.c: Add include of regcache.h.
11391 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11392
b6d1a1d5
AC
113932002-02-13 Andrew Cagney <ac131313@redhat.com>
11394
11395 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11396 * memattr.c (create_mem_region): Disallow useless empty region.
11397 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11398 non-overlapping.
b6d1a1d5 11399
6c6ea35e
MC
114002002-02-13 Michael Chastain <mec@shout.net>
11401
11402 * defs.h: Kill CONST_PTR.
11403 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11404 * c-lang.c (c_builtin_types): Likewise.
11405 * ch-lang.c (ch_builtin_types): Likewise.
11406 * f-lang.c (f_builtin_types): Likewise.
11407 * language.c (unknown_builtin_types): Likewise.
11408 * m2-lang.c (m2_builtin_types): Likewise.
11409 * p-lang.c (pascal_builtin_types): Likewise.
11410 * scm-lang.c (c_builtin_types): Likewise.
11411
3e0b0f48
KS
114122002-02-13 Keith Seitz <keiths@redhat.com>
11413
11414 * arm-tdep.h (arm_get_next_pc): Add declaration.
11415
67255d04
RE
114162002-02-13 Richard Earnshaw <rearnsha@arm.com>
11417
11418 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11419 with other related struct-returning functions.
11420 (arm_extract_struct_value_address): New function.
11421 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11422 initialize float_format, double_format and long_double_format as
11423 appropriate to the endianness of the target.
11424 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11425 (arm_use_struct_convention): Delete declaration.
11426 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11427
079777f6
KS
114282002-02-13 Keith Seitz <keiths@redhat.com>
11429
11430 * defs.h (core_addr_to_string_nz): New function.
11431
34588f23
MK
114322002-02-13 Mark Kettenis <kettenis@gnu.org>
11433
11434 Apply missing bits of 2002-01-15 patch.
11435 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11436 (fill_fpregset): Use i387_fill_fsave.
11437
49b563f9
KS
114382002-02-12 Keith Seitz <keiths@redhat.com>
11439
49b563f9
KS
11440 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11441 (core_addr_to_string_nz): New function.
11442
aeb98c60
RE
114432002-02-11 Richard Earnshaw <rearnsha@arm.com>
11444
11445 * arm-linux-nat.c: Really include arm-tdep.h.
11446 * config/arm/tm-linux.h (struct type, struct value): Declare.
11447
65554fef
MS
114482002-02-11 Michael Snyder <msnyder@redhat.com>
11449
11450 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11451 (gcore section): Ifdef for Solaris and Unixware only.
11452 (procfs_do_thread_registers): Unixware needs one lwpstatus
11453 per thread (not one prstatus or pstatus).
11454 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11455 not over all gdb threads. For unixware, call elfcore_write_pstatus
11456 once before iterating over threads.
11457
34e8f22d
RE
114582002-02-11 Richard Earnshaw <rearnsha@arm.com>
11459
11460 * arm-tdep.h: New file.
11461 * arm-tdep.c: Include arm-tdep.h.
11462 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11463 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11464 (arm_print_float_info, arm_register_type, convert_to_extended)
11465 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11466 (arm_extract_return_value, arm_register_name): Make static.
11467 (arm_software_single_step): Similarly. Fix types in declaration.
11468 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11469 (arm_store_return_value, arm_store_struct_return): New functions.
11470 (arm_gdbarch_init): Register the above functions. Also register
11471 call_dummy_start_offset, sizeof_call_dummy_words,
11472 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11473 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11474 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11475 prologue_cache.saved_regs here, rather than ...
11476 (_initialize_arm_tdep): ... here.
11477 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11478 declarations.
11479 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11480 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11481 (arm_print_float_info, arm_register_type, convert_to_extended)
11482 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11483 (arm_extract_return_value, arm_register_name): Delete declarations.
11484 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11485 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11486 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11487 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11488 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11489 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11490 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11491 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11492 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11493 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11494 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11495 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11496 interface.
11497 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11498 * remote-rdi.c remote-rdp.c: Likewise.
11499 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11500 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11501 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11502 definition.
11503
11504 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11505 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11506 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11507 from non-ARM_ prefixed definitions.
11508 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11509 all uses of above.
11510 * remote-rdi.c remote-rdp.c: Likewise.
11511 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11512
148754e5
RE
115132002-02-11 Richard Earnshaw <rearnsha@arm.com>
11514
11515 * arm-tdep.c (arm_frameless_function_invocation)
11516 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11517 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11518 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11519 (arm_pop_frame, arm_get_next_pc): Make static.
11520 (arm_gdbarch_init): Register above in gdbarch structure.
11521 (arm_read_fp): Renamed from arm_target_read_fp.
11522 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11523 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11524 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11525 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11526 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11527 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11528 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11529 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11530 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11531 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11532 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11533
434d2d4f
DJ
115342002-02-10 Daniel Jacobowitz <drow@mvista.com>
11535
11536 * symtab.c (compare_search_syms): New function.
11537 (sort_search_symbols): New function.
11538 (search_symbols): Sort symbols after searching rather than
11539 before.
11540
55241689
AC
115412002-02-10 Andrew Cagney <ac131313@redhat.com>
11542
11543 * NEWS: Linux -> GNU/Linux.
11544
028c194b
AC
115452002-02-10 Andrew Cagney <ac131313@redhat.com>
11546
11547 * gdbarch.sh: For for level one methods, disallow a definition
11548 when partially multi-arched. Add comments explaining rationale.
11549 * gdbarch.h: Re-generate.
11550
6acf50cd
AC
115512002-02-10 Andrew Cagney <ac131313@redhat.com>
11552
11553 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11554 multi-arch partial.
aaa38bb5 11555
50248794
AC
115562002-02-10 Andrew Cagney <ac131313@redhat.com>
11557
11558 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11559 field. Use diff -u.
11560 * gdbarch.c: Re-generate.
11561
c30e0066
AC
115622002-02-10 Andrew Cagney <ac131313@redhat.com>
11563
9b56c5f3 11564 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11565 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11566 partial.
11567
6e6d6484
AC
115682002-02-10 Andrew Cagney <ac131313@redhat.com>
11569
11570 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11571 multi-arch partial.
11572 (PUSH_ARGUMENTS): Switch to using predefault.
11573 * gdbarch.c: Regenerate.
11574
c203844d
AC
115752002-02-10 Andrew Cagney <ac131313@redhat.com>
11576
11577 * valops.c (PUSH_ARGUMENTS): Delete definition.
11578 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11579 partial. Default to default_push_arguments.
11580 * gdbarch.h, gdbarch.c: Regenerate.
11581
b5a2688f
AC
115822002-02-09 Andrew Cagney <ac131313@redhat.com>
11583
11584 * defs.h (throw_exception): Rename return_to_top_level. Update
11585 comments.
11586 * utils.c (error_stream, internal_verror, quit): Ditto.
11587 * top.c (throw_exception, catcher): Ditto.
11588 * sparclet-rom.c (sparclet_load): Ditto.
11589 * remote.c (interrupt_query, minitelnet): Ditto.
11590 * remote-sds.c (interrupt_query): Ditto.
11591 * remote-mips.c (mips_error, mips_kill): Ditto.
11592 * ocd.c (interrupt_query): Ditto.
11593 * monitor.c (monitor_interrupt_query): Ditto.
11594 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11595 * target.h: Update comment.
aaa38bb5 11596
b5a2688f 11597 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11598
2fa5c1e0
AC
115992002-02-09 Andrew Cagney <ac131313@redhat.com>
11600
11601 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11602 default_double_format.
11603 * gdbarch.h, gdbarch.c: Re-generate.
11604 * findvar.c (floatformat_unknown): Delete variable definition.
11605 * doublest.h (floatformat_unknown): Delete variable declaration.
11606
da966255
JB
116072002-02-09 Jim Blandy <jimb@redhat.com>
11608
11609 * stabsread.c (read_type): Add code to parse Sun's syntax for
11610 prototyped function types.
11611
123a4891
AC
116122002-02-09 Andrew Cagney <ac131313@redhat.com>
11613
11614 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11615 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11616
fb39c8f3
PS
116172002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11618
11619 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11620 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11621 now _initialize_xcoffsolib gets called again and overrides the
11622 commands from solib.c in a native configuration.
11623
0b87a11d
MK
116242002-02-09 Mark Kettenis <kettenis@gnu.org>
11625
11626 * doublest.c (store_typed_floating): Don't try to return a value.
11627 Fixes PR gdb/290.
11628
bdc2fc72
JB
116292002-02-08 Jim Blandy <jimb@redhat.com>
11630
11631 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11632 is prototyped and has no arguments, print its argument list as
11633 `(void)'.
11634
da69bbcf
CD
116352002-02-08 Chris Demetriou <cgd@broadcom.com>
11636
11637 * MAINTAINERS (write-after-approval): Add myself.
11638 (paper-trail): I've escaped!
aaa38bb5 11639
b69571f5
CF
116402002-02-08 Christopher Faylor <cgf@redhat.com>
11641
11642 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11643 changes.
11644 (_initialize_check_for_gdb_ini): Ditto.
11645
f6871398
MH
116462002-02-08 Martin M. Hunt <hunt@redhat.com>
11647
11648 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11649 xaprintf -> xasprintf.
11650
4e52d31c
PM
116512002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11652
11653 * win32-nat.c: Remove use of printf and sprintf functions.
11654
39bbf761
RE
116552002-02-08 Richard Earnshaw <rearnsha@arm.com>
11656
11657 * arm-tdep.c (arm_frame_chain_valid): Make static.
11658 (arm_push_arguments): Likewise.
11659 (arm_gdbarch_init): New function.
11660 (_initialize_arm_tdep): Call it.
11661 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11662 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11663 (FRAME_CHAIN_VALID): Delete.
11664 (arm_frame_chain_valid): Delete declaration.
11665 (PUSH_ARGUMENTS): Delete.
11666 (arm_push_arguments): Delete declaration.
11667 (CALL_DUMMY_P): Delete.
11668
9c9532c9
CV
116692002-02-08 Andrew Cagney <ac131313@redhat.com>
11670 Corinna Vinschen <vinschen@redhat.com>
11671
11672 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11673 on builtin float types.
11674
4e8f7a8b
DJ
116752002-02-08 Daniel Jacobowitz <drow@mvista.com>
11676
11677 * utils.c: Include <curses.h> before "bfd.h".
11678 * tui/tui-hooks.c: Likewise.
11679 * tui/tui.c: Likewise.
11680 * tui/tuiCommand.c: Likewise.
11681 * tui/tuiData.c: Likewise.
11682 * tui/tuiDataWin.c: Likewise.
11683 * tui/tuiDisassem.c: Likewise.
11684 * tui/tuiGeneralWin.c: Likewise.
11685 * tui/tuiIO.c: Likewise.
11686 * tui/tuiLayout.c: Likewise.
11687 * tui/tuiRegs.c: Likewise.
11688 * tui/tuiSource.c: Likewise.
11689 * tui/tuiSourceWin.c: Likewise.
11690 * tui/tuiStack.c: Likewise.
11691 * tui/tuiWin.c: Likewise.
11692
cd4bffcf
EZ
116932002-02-07 Elena Zannoni <ezannoni@redhat.com>
11694
11695 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11696 to include space for pseudoregs as well. Update loops accordingly.
11697 (sh_fp_frame_init_saved_regs): Ditto.
11698 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11699
26806ce2
AC
117002002-02-07 Andrew Cagney <ac131313@redhat.com>
11701
11702 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11703 Add Richard Earnshaw to Arm maintainers.
11704
97fdab62
AC
117052002-02-07 Andrew Cagney <ac131313@redhat.com>
11706
a6b98203
AC
11707 * defs.h (warning_begin): Delete declaration.
11708
97fdab62
AC
11709 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11710 Delete macro.
11711
78b29b40
MS
117122002-02-07 Michael Snyder <msnyder@redhat.com>
11713
aaa38bb5 11714 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11715 Logic bug, remove misplaced else.
11716
d8849953
KD
117172002-02-07 Klee Dienes <klee@apple.com>
11718
11719 * fork-inferior.c (fork_inferior): Add '!' to the list of
11720 characters that need to be quoted when building a string for the
11721 shell. Quote '!' specifically with a backslash, since CSH chokes
11722 when trying to evaluate "str!str".
aaa38bb5 11723
095778a0
NC
117242002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11725
11726 * rdi-share/host.h: Only provide a typedef for bool if it is not
11727 defined.
11728
1900040c
MS
117292002-02-04 Michael Snyder <msnyder@redhat.com>
11730
11731 * breakpoint.h (enum bptype): Add new overlay event bp type.
11732 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11733
1900040c
MS
11734 * breakpoint.c (create_internal_breakpoint): New function.
11735 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11736 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11737 (create_thread_event_breakpoint): Ditto.
11738 (create_solib_event_breakpoint): Ditto.
11739 (create_overlay_event_breakpoint): New function.
11740 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11741 (update_breakpoints_after_exec): Delete and re-initialize
11742 overlay event breakpoints after an exec. Add FIXME comment
11743 about longjmp breakpoint.
11744 (print_it_typical): Ignore overlay event breakpoints.
11745 (print_one_breakpoint): Ditto.
11746 (mention): Ditto.
11747 (bpstat_what): Do not stop for overlay event breakpoints.
11748 (delete_breakpoint): Don't delete overlay event breakpoints.
11749 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11750 (breakpoint_re_set): Re-create overlay event breakpoint.
11751
11752 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11753 (overlay_manual_command): Disable overlay breakpoints.
11754 (overlay_off_command): Disable overlay breakpoints.
11755
082fc60d
RE
117562002-02-06 Richard Earnshaw <rearnsha@arm.com>
11757
11758 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11759 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11760 to here from config/tm-arm.h.
11761 (coff_sym_is_thumb): Make static.
11762 (arm_elf_make_msymbol_special): New function.
11763 (arm_coff_make_msymbol_special): New function.
11764 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11765 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11766 (coff_sym_is_thumb): Delete declaration.
11767 (arm_elf_make_msymbol_special): Declare.
11768 (arm_coff_make_msymbol_special): Declare.
11769 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11770 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11771
039c5766
RE
117722002-02-06 Richard Earnshaw <rearnsha@arm.com>
11773
11774 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11775
117762002-02-06 Richard Earnshaw <rearnsha@arm.com>
11777
11778 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11779 * gdbarch.c gdbarch.h: Regenerate.
11780 * arch-utils.c (default_print_float_info): New function.
11781 * arch-utils.h (default_print_float_info): Prototype it.
11782 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11783 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11784 (PRINT_FLOAT_INFO): Document it.
11785
11786 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11787 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11788 (PRINT_FLOAT_INFO): Define.
11789
58fa08f0
PM
117902002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11791
aaa38bb5 11792 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11793 Add typecast to sprintf argument to suppress a warning.
11794
7393af7c
PM
117952002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11796
58fa08f0 11797 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11798 to allow easier handling of pass state.
11799 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11800 that gives exception name and address.
11801 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11802 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11803 exceptions added.
aaa38bb5
AJ
11804 (child_continue): Correctly report continue_status.
11805 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11806 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11807 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11808 the exception should be passed to debuggee or not.
11809
6af4589c
MS
118102002-02-05 Michael Snyder <msnyder@redhat.com>
11811
11812 * regcache.c (fetch_register): Call target_fetch_register
11813 only if we don't call FETCH_PSEUDO_REGISTER.
11814 (store_register): Call target_store_register only if we
11815 don't call STORE_PSEUDO_REGISTER.
11816
a2cf933a
EZ
118172002-02-05 Elena Zannoni <ezannoni@redhat.com>
11818
11819 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11820 ELF_MAKE_MSYMBOL_SPECIAL.
11821 * gdbarch.c, gdbarch.h: Regenerate.
11822 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 11823 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
11824 * elfread.c (elf_symtab_read): Compile use of
11825 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11826 multiarched.
11827 * coffread.c (coff_symtab_read): Ditto, for
11828 COFF_MAKE_MSYMBOL_SPECIAL.
11829
6bb7be43
JB
118302002-02-05 Jim Blandy <jimb@redhat.com>
11831
11832 * solib-svr4.c (svr4_truncate_ptr): New function.
11833 (svr4_relocate_section_addresses): Do the address arithmetic with
11834 the appropriate truncation for target addresses, even when
11835 CORE_ADDR is larger than a target address.
11836
e18651ec
DJ
118372002-02-05 Daniel Jacobowitz <drow@mvista.com>
11838
11839 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11840 to (int *).
11841
6b2725be
DJ
118422002-02-05 Daniel Jacobowitz <drow@mvista.com>
11843
11844 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11845 code.
11846
fca9e603
DJ
118472002-02-05 Daniel Jacobowitz <drow@mvista.com>
11848
11849 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11850
6c537a52
DJ
118512002-02-05 Daniel Jacobowitz <drow@mvista.com>
11852
11853 * gdbserver/linux-low.c: Remove unused include files.
11854
d844cde6
DJ
118552002-02-05 Daniel Jacobowitz <drow@mvista.com>
11856
11857 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11858 (read_inferior_memory): Use it.
11859 (write_inferior_memory): Likewise.
11860
d07c63e7
DJ
118612002-02-05 Daniel Jacobowitz <drow@mvista.com>
11862
11863 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11864 grubbing through sys_errlist.
11865
da6d8c04
DJ
118662002-02-05 Daniel Jacobowitz <drow@mvista.com>
11867
11868 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11869
5b421780
PM
118702002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11871 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11872
9f60d481
AC
118732002-02-04 Andrew Cagney <ac131313@redhat.com>
11874
11875 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11876 (do_sfunc, set_cmd_sfunc): New functions.
11877
11878 * command.h (struct cmd_list_element): Add field func.
11879 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11880 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11881 * cli/cli-decode.h: Ditto.
11882
11883 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11884 (help_all, help_cmd_list): Ditto.
11885 (find_cmd, complete_on_cmdlist): Ditto.
11886 * top.c (execute_command): Ditto.
11887
11888 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11889 function.sfunc.
11890
11891 * infcmd.c (notice_args_read): Fix function signature.
11892
11893 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11894 * cli/cli-decode.c (add_set_cmd): Ditto.
11895 * utils.c (initialize_utils): Ditto.
11896 * maint.c (_initialize_maint_cmds): Ditto.
11897 * infrun.c (_initialize_infrun): Ditto.
11898 * demangle.c (_initialize_demangler): Ditto.
11899 * remote.c (add_packet_config_cmd): Ditto.
11900 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11901 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11902 * proc-api.c (_initialize_proc_api): Ditto.
11903 * kod.c (_initialize_kod): Ditto.
11904 * valprint.c (_initialize_valprint): Ditto.
11905 * top.c (init_main): Ditto.
11906 * infcmd.c (_initialize_infcmd): Ditto.
11907 * corefile.c (_initialize_core): Ditto.
11908 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11909 * arch-utils.c (initialize_current_architecture): Ditto.
11910 (_initialize_gdbarch_utils): Ditto.
11911 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11912
11913 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11914 * wince.c (_initialize_inftarg): Ditto.
11915 * symfile.c (_initialize_symfile): Ditto.
11916 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11917 * language.c (_initialize_language): Ditto.
11918 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11919
f9ba0717
MS
119202002-02-04 Michael Snyder <msnyder@redhat.com>
11921
11922 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11923
0c74b2a7
DJ
119242002-02-04 Daniel Jacobowitz <drow@mvista.com>
11925
11926 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11927 Add rules for building the register data files.
11928
c638789f
DJ
119292002-02-04 Daniel Jacobowitz <drow@mvista.com>
11930
11931 * regformats/regdat.sh: Add braces to the definition of
11932 expedite_regs_${arch}.
11933
db253027
DJ
119342002-02-04 Daniel Jacobowitz <drow@mvista.com>
11935
11936 * regformats/regdef.h (struct reg): Add comment describing the
11937 requirements for offset and size fields.
11938
206be19c
AS
119392002-02-04 Andreas Schwab <schwab@suse.de>
11940
11941 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11942 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11943
181c1381
RE
119442002-02-04 Richard Earnshaw <rearnsha@arm.com>
11945
11946 * gdbarch.sh (copyright): Update years in generated header.
11947 (SMASH_TEXT_ADDRESS): Add rule.
db253027 11948 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
11949 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11950 * dbxread.c: Likewise.
11951 * dwarfread.c: Likewise.
11952 * elfread.c: Likewise.
11953 * somread.c: Likewise.
11954
11955 * arm-tdep.c (arm_smash_text_address): New function.
11956 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11957
fa4ba8da
PM
119582002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11959
11960 Add support for hardware watchpoints on win32 native.
aaa38bb5 11961 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 11962 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 11963 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
11964 of debug registers.
11965 (debug_registers_changed): New variable. Reflects when debug registers
11966 are changed and need to be written to inferior.
aaa38bb5 11967 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
11968 was set, used when new threads are created.
11969 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11970 i386-nat code.
11971 (thread_rec): Set dr array if id is the thread of current_event .
11972 (child_continue, child_resume): Change the debug registers for all
11973 threads if debug_registers_changed.
11974 (child_add_thread): Change the debug registers if debug_registers_used.
11975 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11976 Link nm.h to new nm-cygwin.h file.
11977 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11978 of hardware registers.
11979
a73c86fb
AC
119802002-02-03 Andrew Cagney <ac131313@redhat.com>
11981
11982 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11983 Restore behavour broken by 2002-01-20 Andrew Cagney
11984 <ac131313@redhat.com> IEEE_FLOAT removal.
11985
acf5ed49
DJ
119862002-02-03 Daniel Jacobowitz <drow@mvista.com>
11987
11988 * c-valprint.c (c_val_print): Pass a proper valaddr to
11989 cp_print_class_method.
11990 * valops.c (search_struct_method): If there is only one method
11991 and args is NULL, return that method.
11992
493d28d5
DJ
119932002-02-03 Daniel Jacobowitz <drow@mvista.com>
11994
11995 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11996 accessing tag_name directly.
11997
7495dfdb
DJ
119982002-02-03 Daniel Jacobowitz <drow@mvista.com>
11999
12000 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12001 of accessing tag_name directly.
12002
dd6bda65
DJ
120032002-02-03 Daniel Jacobowitz <drow@mvista.com>
12004
12005 PR gdb/280
12006 * gdbtypes.c (replace_type): New function.
12007 * gdbtypes.h (replace_type): Add prototype.
12008 * stabsread.c (read_type): Use replace_type.
12009
88fe217c
RE
120102002-02-03 Richard Earnshaw <rearnsha@arm.com>
12011
12012 * Makefile.in (memattr.o): Add missing dependencies rule.
12013
e5d66720
PS
120142002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12015
12016 * breakpoint.c (break_at_finish_command): Really export.
12017 (break_at_finish_at_depth_command): Ditto.
12018 (tbreak_at_finish_command): Ditto.
12019 * hppa-tdep.c: Include completer.h.
12020 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12021 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12022
fffee0be
AC
120232002-02-01 Andrew Cagney <ac131313@redhat.com>
12024
12025 * utils.c (do_write): New function.
12026 (error_stream): Rewrite combining the code from error_begin and
12027 verror.
12028 (verror): Rewrite using error_stream.
12029 (error_begin): Delete function.
12030
255e7dbf
AC
120312002-02-01 Andrew Cagney <ac131313@redhat.com>
12032
12033 * utils.c (error_begin): Make static.
12034 * defs.h (error_begin): Delete declaration.
12035
12036 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12037 (decode_line_1): Use cplusplus_error instead of error_begin,
12038 cplusplus_hint and return_to_top_level.
12039 * coffread.c (coff_symfile_read): Use error instead of error_begin
12040 and return_to_top_level.
12041 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12042
ddfe3c15
AC
120432002-02-01 Andrew Cagney <ac131313@redhat.com>
12044
12045 * language.h (type_error, range_error): Make string parameter
12046 constant.
12047 * language.c (warning_pre_print): Delete extern declaration.
12048 * dwarfread.c (warning_pre_print): Ditto.
12049 * language.c (type_error, range_error): Rewrite to use verror and
12050 vwarning instead of warning_begin.
12051
03ac34d5
MS
120522002-02-01 Michael Snyder <msnyder@redhat.com>
12053
261c4ca2
MS
12054 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12055 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12056
e00d1dc8
AC
120572002-02-01 Andrew Cagney <ac131313@redhat.com>
12058
12059 * command.h (NO_FUNCTION): Delete macro.
12060 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12061 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12062 * tracepoint.c (_initialize_tracepoint): Ditto.
12063 * cli/cli-decode.c (add_set_cmd): Ditto.
12064 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12065
76b79d6e
DJ
120662002-02-01 Daniel Jacobowitz <drow@mvista.com>
12067
12068 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12069 Update ``this'' pointer when calling virtual functions.
12070
799f9e91
MS
120712002-02-01 Michael Snyder <msnyder@redhat.com>
12072
c7bd442c 12073 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12074 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12075
3cf384d4
DJ
120762002-02-01 Daniel Jacobowitz <drow@mvista.com>
12077
12078 * regformats/reg-arm.dat: New file.
12079 * regformats/reg-i386.dat: New file.
12080 * regformats/reg-ia64.dat: New file.
12081 * regformats/reg-m68k.dat: New file.
12082 * regformats/reg-mips.dat: New file.
12083 * regformats/reg-ppc.dat: New file.
12084 * regformats/reg-sh.dat: New file.
12085 * regformats/regdef.h: New file.
12086 * regformats/regdat.sh: New file.
12087
0defa245
RE
120882002-02-01 Richard Earnshaw <reanrsha@arm.com>
12089
12090 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12091 (arm_frame_args_address, arm_frame_locals_address): New functions.
12092 (arm_frame_num_args): New function.
12093 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12094 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12095 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12096
405f26e6
MS
120972002-01-31 Michael Snyder <msnyder@redhat.com>
12098
502fd408
MS
12099 * breakpoint.c (break_at_finish_command): Export.
12100 (break_at_finish_at_depth_command): Export.
12101 (tbreak_at_finish_command): Export.
d6020d45 12102 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12103 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12104 "txbreak" commands, which are HPPA specific.
502fd408 12105
7d35e135
MS
12106 * printcmd.c (disassemble_command): Remove an ancient
12107 artifact of an old merge.
12108
aaa38bb5 12109 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12110 Define enum constant values for overlay mode.
12111 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12112 (overlay_is_mapped, overlay_auto_command,
12113 overlay_manual_command): Ditto.
d874f1e2 12114
aaa38bb5
AJ
12115 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12116 breakpoint_here_p, breakpoint_inserted_here_p,
12117 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12118 describe_other_breakpoints, check_duplicates, clear_command):
12119 Coding standard fixes.
12120
8add0441 12121 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12122 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12123 code: check bfd SEC_READONLY flag for section.
12124
e351066e
AC
121252002-01-31 Andrew Cagney <ac131313@redhat.com>
12126
7d35e135 12127 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12128
8a48e967
DJ
121292002-01-30 Daniel Jacobowitz <drow@mvista.com>
12130
12131 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12132 data symbols, since we search based on textlow and texthigh.
12133 (find_pc_sect_symtab): Likewise.
12134
f5a96129
AC
121352002-01-30 Andrew Cagney <ac131313@redhat.com>
12136
12137 * defs.h (vwarning): Declare.
f5a96129
AC
12138 * utils.c (vwarning): New function.
12139 (warning): Call vwarning.
12140 (warning_begin): Delete function.
12141
12142 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12143 the warning message.
12144 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12145 warning_begin.
12146
cefd4ef5
MS
121472002-01-30 Michael Snyder <msnyder@redhat.com>
12148
1a703748
MS
12149 * NEWS: Mention "set trust-readonly-sections" command.
12150 Mention generate-core-file command.
cefd4ef5 12151
3a11626d
MS
121522002-01-15 Michael Snyder <msnyder@redhat.com>
12153
12154 * target.c: New command, "set trust-readonly-sections on".
12155 (do_xfer_memory): Honor the suggestion to trust readonly sections
12156 by reading them from the object file instead of from the target.
12157 (initialize_targets): Register command "set trust-readonly-sections".
12158
d1c7e53b
AC
121592002-01-29 Andrew Cagney <ac131313@redhat.com>
12160
12161 * parse.c (target_map_name_to_register): Simplify, search regs and
12162 pseudo-regs using a single loop.
12163
e2c9a72c
AC
121642002-01-30 Andrew Cagney <ac131313@redhat.com>
12165
12166 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12167
69824b4e
MK
121682002-01-15 Rodney Brown <rbrown64@csc.com.au>
12169
12170 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12171 * config/i386/i386v42mp.mh: Add i387-nat.o .
12172 * i386v4-nat.c: Include i387-nat.h.
12173 (supply_fpregset): Use i387_supply_fsave.
12174 (fill_fpregset): Use i387_fill_fsave.
12175
6eb69eab
RE
121762002-01-30 Richard Earnshaw <rearnsha@arm.com>
12177
12178 * arm-tdep.c (arm_call_dummy_words): Define.
12179 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12180 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12181 (CALL_DUMMY_WORDS): Define.
12182 (arm_call_dummy_words): Declare.
12183 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12184 (arm_linux_call_dummy_words): Declare.
12185
9852326a
AS
121862002-01-30 Andreas Schwab <schwab@suse.de>
12187
12188 * m68klinux-nat.c: Fix last change to use regcache_collect
12189 instead of referencing registers[] directly.
12190
977a3030
AC
121912002-01-29 Andrew Cagney <ac131313@redhat.com>
12192
12193 * parse.c (target_map_name_to_register): Delete code wrapped in
12194 #ifdef REGISTER_NAME_ALIAS_HOOK.
12195
2076c72b
MS
121962002-01-28 Michael Snyder <msnyder@redhat.com>
12197
12198 * regcache.c (legacy_read_register_gen): Need to be able to
12199 read pseudo-register as well as real register.
12200 (legacy_write_register_gen): Ditto.
12201
8fcc723b
AC
122022002-01-28 Andrew Cagney <ac131313@redhat.com>
12203
12204 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12205 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12206 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12207 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12208 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12209 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12210 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12211 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12212 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12213 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12214 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12215 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12216 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12217 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12218 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12219 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12220 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12221 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12222 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12223 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12224
afe64c1a
AC
122252002-01-28 Andrew Cagney <ac131313@redhat.com>
12226
12227 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12228 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12229 (initialize_current_architecture): Update target_byte_order using
12230 information from BFD.
aaa38bb5 12231 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12232 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12233
75bc7ddf
AC
122342002-01-28 Andrew Cagney <ac131313@redhat.com>
12235
12236 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12237 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12238
12239 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12240 #ifdef INVALID_FLOAT.
12241 * infcmd.c (do_registers_info): Ditto.
12242 * values.c (unpack_double): Ditto. Add comment.
12243
12244 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12245 already commented out.
12246
0280a90a
AS
122472002-01-26 Andreas Schwab <schwab@suse.de>
12248
12249 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12250 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12251 registers and add support for PTRACE_GETREGS.
12252
7072a954
AC
122532002-01-24 Andrew Cagney <ac131313@redhat.com>
12254
12255 GDB 5.1.1 released from 5.1 branch.
12256 * NEWS: Add 5.1.1 news.
12257 * README: Sync with 5.1 branch.
12258
86f902e0
FF
122592002-01-23 Fred Fish <fnf@redhat.com>
12260
12261 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12262 stabstring on initial malloc. Reallocing will copy it for us,
12263 if necessary.
12264
8af51c36
EZ
122652002-01-23 Elena Zannoni <ezannoni@redhat.com>
12266
aaa38bb5 12267 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12268 (HFILES_NO_SRCDIR): Remove hpread.h.
12269 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12270 (hpread.o): Update dependencies.
12271 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12272
12273 * hp-psymtab-read.c: Remove file.
12274 * hp-symtab-read.c: Remove file.
12275 * hpread.h: Remove file.
12276
12277 * hpread.c: Merge all contents of hp-psymtab-read.c,
12278 hp-symtab-read.c and hpread.h into this file, as it was prior to
12279 January 1999.
12280
12281 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12282 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12283 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12284 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12285
dc5cfeb6
EZ
122862002-01-23 Elena Zannoni <ezannoni@redhat.com>
12287
12288 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12289 fill_gregset): Call gdbarch_tdep() just once, assign result to
12290 variable and use that, instead of calling the function several
12291 times.
12292
ea87b71b
AO
122932002-01-24 Alexandre Oliva <aoliva@redhat.com>
12294
12295 * configure.host: Accept sparcv9 as alias for sparc64.
12296 * configure.tgt: Likewise.
12297
13fc0c2f
KB
122982002-01-22 Kevin Buettner <kevinb@redhat.com>
12299
12300 * solib-aix5.c (build_so_list_from_mapfile)
12301 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12302 arguments is not reversed.
12303 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12304 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12305
7bd872fe
EZ
123062002-01-22 Elena Zannoni <ezannoni@redhat.com>
12307
12308 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12309 modified version of obsolete sh_fetch_pseudo_register.
12310 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12311 (sh4_register_read): New function.
12312 (sh_pseudo_register_write): New function. Renamed and modified
12313 version of obsolete sh_store_pseudo_register.
12314 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12315 (sh4_register_write): New function.
12316 (sh_gdbarch_init): Remove setting of gdbarch function
12317 fetch_pseudo_register and store_pseudo_register. Remove setting of
12318 register_convert_to_raw, register_convert_to_virtual,
12319 register_convertible.
12320 (sh_sh4_register_convertible): Delete. No longer needed. All is
12321 taken care by architecture specific functions
12322 register_read/register_write.
12323 (sh_sh4_register_convert_to_virtual): Make static.
12324 (sh_sh4_register_convert_to_raw): Ditto.
12325
069e84fd
AC
123262002-01-22 Andrew Cagney <ac131313@redhat.com>
12327
12328 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12329 (floatformat_is_nan, floatformat_mantissa): Ditto.
12330
12331 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12332 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12333 builtin_type_ieee_double_little,
12334 builtin_type_ieee_double_littlebyte_bigword,
12335 builtin_type_m68881_ext, builtin_type_i960_ext,
12336 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12337 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12338 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12339 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12340
211a4f69
CV
123412002-01-22 Corinna Vinschen <vinschen@redhat.com>
12342
12343 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12344 parameter. Set frameless flag if it exists and depended of
12345 whether the scanned function is frameless or not.
12346 (xstormy16_skip_prologue): If function is frameless, return
12347 result of xstormy16_scan_prologue().
12348 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12349 call.
12350
f81353e4
EZ
123512002-01-21 Elena Zannoni <ezannoni@redhat.com>
12352
12353 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12354 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12355 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12356 sh_sh4_register_byte, sh_sh4_register_raw_size,
12357 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12358 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12359 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12360 sh_store_pseudo_register, sh_do_pseudo_register): Call
12361 gdbarch_tdep() just once, assign result to variable and use that,
12362 instead of calling the function several times.
12363
63c73a17
MK
123642002-01-20 Mark Kettenis <kettenis@gnu.org>
12365
12366 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12367 macros instead of LAST_FPU_CTRL_REGNUM.
12368 (store_register): Likewise.
12369
39ad761d
JB
123702002-01-21 Jim Blandy <jimb@redhat.com>
12371
12372 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12373 is up-to-date before running the program, not just when a program
12374 exits.
12375
3d74b771
FF
123762002-01-21 Fred Fish <fnf@redhat.com>
12377
12378 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12379 when we have found all instructions we are looking for.
12380
966fbf70
RE
123812002-01-21 Richard Earnshaw <rearnsha@arm.com>
12382
12383 * arm-tdep.c (arm_register_name): New function.
12384 (arm_registers_names): Make static.
12385 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12386 (arm_register_name): Declare.
12387 (REGISTER_NAME): Use it.
12388
c3b4394c
RE
123892002-01-21 Richard Earnshaw <rearnsha@arm.com>
12390 Kevin Buettner <kevinb@redhat.com>
12391
12392 Convert arm targets to new FRAME interface.
12393 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12394 (arm_frame_find_save_regs): Delete.
12395 (arm_frame_init_saved_regs): New.
12396 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12397 Allocate extra_info as required. Convert all uses of fsr.regs
12398 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12399 to use extra_info.
12400 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12401 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12402 (check_prologue_cache, save_prologue_cache): Likewise.
12403 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12404 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12405 (FRAME_FIND_SAVED_REGS): Delete.
12406 (arm_frame_find_saved_regs): Delete prototype.
12407 (arm_frame_init_saved_regs): New prototype.
12408 (FRAME_INIT_SAVED_REGS): Define.
12409
61d99182
AC
124102002-01-20 Andrew Cagney <ac131313@redhat.com>
12411
12412 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12413
6aaea291
AC
124142002-01-20 Andrew Cagney <ac131313@redhat.com>
12415
12416 From Jeff Law <law@redhat.com>:
12417 * infttrace.c: Include <sys/pstat.h>.
12418 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12419 exec file if the ttrace equivalent fails.
12420
15f698d2
AC
124212002-01-20 Andrew Cagney <ac131313@redhat.com>
12422
12423 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12424 (closeLogFile): Ditto.
12425
f86ddd7c
MC
124262002-01-20 Michael Chastain <mec@shout.net>
12427
12428 * top.c (print_gdb_version): Bump copyright year to 2002.
12429
904507ce
AC
124302002-01-20 Andrew Cagney <ac131313@redhat.com>
12431
12432 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12433 Zannoni and Eli Zaretskii.
12434
d7f0b9ce
DJ
124352002-01-20 Daniel Jacobowitz <drow@mvista.com>
12436
12437 * buildsym.c: Update copyright years.
12438 * c-typeprint.c: Likewise.
12439 * dwarf2read.c: Likewise.
12440 * f-typeprint.c: Likewise.
12441 * gdbtypes.c: Likewise.
12442 * gdbtypes.h: Likewise.
12443 * hp-symtab-read.c: Likewise.
12444 * hpread.c: Likewise.
12445 * mdebugread.c: Likewise.
12446 * p-typeprint.c: Likewise.
12447
3fd3d7d2
AC
124482002-01-20 Andrew Cagney <ac131313@redhat.com>
12449
12450 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12451 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12452 byte-order selectable.
12453 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12454 * arch-utils.c: Ditto.
12455 (set_endian): Ditto.
12456 (set_endian_from_file): Ditto.
12457 * gdbserver/low-sim.c (create_inferior): Ditto.
12458 * gdbarch.sh: Ditto.
12459 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12460 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12461 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12462 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12463 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12464 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12465 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12466 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12467 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12468 macro definition.
12469 * config/mips/tm-wince.h: Remove #undef of macro
12470 TARGET_BYTE_ORDER_SELECTABLE.
12471 * config/sh/tm-wince.h: Ditto.
12472
b02dede2
DJ
124732002-01-20 Daniel Jacobowitz <drow@mvista.com>
12474
12475 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12476 member function fields. Add accessor macro
12477 TYPE_FN_FIELD_ARTIFICIAL.
12478 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12479 * c-typeprint.c (c_type_print_base): Skip artificial member
12480 functions.
12481
c3643761
DJ
124822002-01-20 Daniel Jacobowitz <drow@mvista.com>
12483
12484 * f-typeprint.c: Delete unused function f_type_print_args.
12485 * p-typeprint.c: Delete unused function pascal_type_print_args.
12486
8176bb6d
DJ
124872002-01-20 Daniel Jacobowitz <drow@mvista.com>
12488
12489 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12490 comment. Add ``artificial'' to ``union field_location''.
12491
12492 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12493
12494 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12495 * mdebugread.c (parse_symbol): Likewise.
12496 * stabsread.c (define_symbol): Likewise.
12497 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12498 initializing TYPE_FIELD_BITPOS to n (obsolete).
12499 (hpread_doc_function_type): Likewise.
12500 * hpread.c (hpread_function_type): Likewise.
12501
7fd60527
AC
125022002-01-20 Andrew Cagney <ac131313@redhat.com>
12503
12504 * configure.in (host_makefile_frag): Only require a host makefile
12505 fragment when a native build.
12506 * configure: Re-generate.
12507
c2f05ac9
AC
125082002-01-20 Andrew Cagney <ac131313@redhat.com>
12509
12510 * doublest.h (floatformat_from_type): Declare.
12511 * doublest.c (floatformat_from_type): New function.
12512 (convert_typed_floating): Use.
12513
12514 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12515 call to function floatformat_from_type.
12516
12517 * gdbarch.sh (IEEE_FLOAT): Delete.
12518 * gdbarch.h, gdbarch.c: Re-generate.
12519 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12520 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12521 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12522 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12523 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12524 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12525 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12526 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12527 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12528 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12529 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12530 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12531
12532 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12533 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12534 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12535 * sh-tdep.c (sh_gdbarch_init): Ditto.
12536 * mips-tdep.c (mips_gdbarch_init): Ditto.
12537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12538 * cris-tdep.c (cris_gdbarch_init): Ditto.
12539
abf22e64
AJ
125402002-01-20 Jiri Smid <smid@suse.cz>
12541
12542 * configure.host, configure.tgt: Support x86-64.
12543 * NEWS: Note new target x86-64.
12544
b7c4cbf8
AJ
12545 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12546 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12547 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12548 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12549 x86-64-linux-nat.o): Fix dependencies.
12550
82600034
AC
125512002-01-19 Andrew Cagney <ac131313@redhat.com>
12552
12553 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12554 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12555 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12556 * config/sparc/xm-sun4os4.h: Delete file.
12557 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12558
bbe5c628
AC
125592002-01-19 Andrew Cagney <ac131313@redhat.com>
12560
12561 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12562 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12563 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12564 * config/i386/i386lynx.mh (XM_FILE): Delete.
12565 * config/rs6000/xm-rs6000ly.h: Delete file.
12566 * config/sparc/xm-sparclynx.h: Delete file.
12567 * config/m68k/xm-m68klynx.h: Delete file.
12568 * config/i386/xm-i386lynx.h: Delete file.
12569 * config/xm-lynx.h: Delete file.
12570 * config/djgpp/fnchange.lst: Update.
12571
f8453e34
JT
125722002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12573
12574 * alpha-tdep.c (alpha_register_byte): New function.
12575 (alpha_register_raw_size): Ditto.
12576 (alpha_register_virtual_size): Ditto.
12577 (alpha_skip_prologue_internal): Renamed from
12578 alpha_skip_prologue.
12579 (alpha_skip_prologue): New version that calls
12580 alpha_skip_prologue_internal.
12581 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12582 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12583 second argument from alpha_skip_prologue.
12584 (REGISTER_BYTE): Use alpha_register_byte.
12585 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12586 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12587 (FRAMELESS_FUNCTION_INVOCATION): Use
12588 generic_frameless_function_invocation_not.
12589 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12590 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12591
52d9e613
AC
125922002-01-19 Andrew Cagney <ac131313@redhat.com>
12593
12594 * config/mips/xm-news-mips.h: Delete file.
12595 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12596
12597 * config/m88k/xm-m88k.h: Delete file.
12598 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12599 * config/m88k/xm-delta88v4.h: Ditto.
12600 * config/m88k/xm-delta88.h: Ditto.
12601
12602 * config/alpha/xm-fbsd.h: Delete file.
12603 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12604
12605 * config/sparc/xm-sparc.h: Delete file.
12606 * Makefile.in (xm-sun4os4.h): Delete dependency.
12607 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12608 * config/sparc/xm-sun4os4.h: Ditto.
12609 * config/sparc/xm-linux.h: Ditto.
12610
12611 * config/i386/xm-windows.h: Delete file.
12612
2d1b2124
AC
126132002-01-19 Andrew Cagney <ac131313@redhat.com>
12614
12615 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12616 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12617
ee1f65f0
JT
126182002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12619
12620 * alpha-tdep.c (alpha_call_dummy_words): New.
12621 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12622 (CALL_DUMMY_P): Define.
12623 (CALL_DUMMY_WORDS): Define.
12624 (SIZEOF_CALL_DUMMY_WORDS): Define.
12625
98081e55
PB
126262002-01-19 Per Bothner <per@bothner.com>
12627
12628 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12629 isn't NULL, which can happen with some gcj-3.x-produced code.
12630
0d056799
JT
126312002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12632
12633 * alpha-tdep.c (alpha_register_virtual_type): New function.
12634 (alpha_init_frame_pc_first): Ditto.
12635 (alpha_fix_call_dummy): Ditto.
12636 (alpha_store_struct_return): Ditto.
12637 (alpha_extract_struct_value_address): Ditto.
12638 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12639 alpha_register_virtual_type.
12640 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12641 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12642 alpha_extract_struct_value_address.
12643 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12644 (INIT_FRAME_PC): Use init_frame_pc_noop.
12645 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12646
4604bcad
MK
126472002-01-19 Mark Kettenis <kettenis@gnu.org>
12648
12649 * i386gnu-nat.c: Include "i386-tdep.h".
12650 (fetch_fpregs): Simplify code dealing with uninitialized floating
12651 point states such that it doesn't require FP7_REGNUM.
12652
140f9984
JT
126532002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12654
abf22e64
AJ
12655 * alpha-tdep.c (frame_extra_info): New.
12656 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12657 frame->extra_info.
12658 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12659 (alpha_frame_saved_pc): Use frame->extra_info.
12660 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12661 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12662 (init_extra_frame_info): Rename to...
12663 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12664 (alpha_print_extra_frame_info): New function.
140f9984
JT
12665 (alpha_frame_locals_address): Ditto.
12666 (alpha_frame_args_address): Ditto.
abf22e64 12667 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12668 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12669 alpha_frame_args_address.
abf22e64 12670 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12671 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12672 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12673 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12674 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12675 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12676
d734c450
JT
126772002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12678
12679 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12680 (alpha_cannot_fetch_register): Ditto.
12681 (alpha_cannot_store_register): Ditto.
12682 (alpha_register_convertible): Ditto.
12683 (alpha_use_struct_convention): Ditto.
12684 * config/alpha/tm-alpha.h: Update copyright years.
12685 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12686 (INNER_THAN): Use core_addr_lessthan.
12687 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12688 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12689 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12690 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12691 (FRAME_CHAIN): Remove unnecessary cast.
12692
b4ceaee6
AC
126932002-01-18 Andrew Cagney <ac131313@redhat.com>
12694
12695 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12696 obsolete.
12697
0a65a603
AC
126982002-01-18 Andrew Cagney <ac131313@redhat.com>
12699
12700 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12701 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12702 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12703 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12704 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12705 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12706 * x86-64-linux-nat.c: Ditto.
12707
636a6dfc
JT
127082002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12709
abf22e64 12710 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12711 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12712 (REGISTER_NAME): Define.
12713
acceddb6
JT
127142002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12715
12716 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12717
ec32e4be
JT
127182002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12719
12720 * alpha-tdep.c: Update copyright years.
12721 (alpha_next_pc): New function.
12722 (alpha_software_single_step): Ditto.
12723 * config/alpha/tm-alpha.h: Add prototype for
12724 alpha_software_single_step.
12725
e771a871
JT
127262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12727
12728 * alphabsd-nat.c: Update copyright years.
12729 (fill_gregset): Use regcache_collect.
12730 (fill_fpregset): Likewise.
12731 (fetch_inferior_registers): Only fetch integer registers
12732 if requested to do so.
12733 (store_inferior_registers): Only store integer registers
12734 if requested to do so.
12735
7708fa01
AC
127362002-01-17 Andrew Cagney <ac131313@redhat.com>
12737
12738 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12739 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12740 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12741 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12742 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12743 * config/arm/linux.mh (XDEPFILES): Delete.
12744 * config/arm/nbsd.mh (XDEPFILES): Delete.
12745 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12746 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12747 * config/i386/i386m3.mh (XDEPFILES): Delete.
12748 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12749 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12750 * config/i386/fbsd.mh (XDEPFILES): Delete.
12751 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12752 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12753 * config/i386/i386v4.mh (XDEPFILES): Delete.
12754 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12755 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12756 * config/i386/i386aix.mh (XDEPFILES): Delete.
12757 * config/i386/go32.mh (XDEPFILES): Delete.
12758 * config/i386/cygwin.mh (XDEPFILES): Delete.
12759 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12760 * config/i386/i386mach.mh (XDEPFILES): Delete.
12761 * config/i386/i386v32.mh (XDEPFILES): Delete.
12762 * config/i386/linux.mh (XDEPFILES): Delete.
12763 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12764 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12765 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12766 * config/i386/i386sco.mh (XDEPFILES): Delete.
12767 * config/i386/i386v.mh (XDEPFILES): Delete.
12768 * config/i386/nbsd.mh (XDEPFILES): Delete.
12769 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12770 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12771 * config/i386/symmetry.mh (XDEPFILES): Delete.
12772 * config/i386/obsd.mh (XDEPFILES): Delete.
12773 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12774 * config/ia64/linux.mh (XDEPFILES): Delete.
12775 * config/ia64/aix.mh (XDEPFILES): Delete.
12776 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12777 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12778 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12779 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12780 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12781 * config/m68k/linux.mh (XDEPFILES): Delete.
12782 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12783 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12784 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12785 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12786 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12787 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12788 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12789 * config/m88k/delta88.mh (XDEPFILES): Delete.
12790 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12791 * config/m88k/m88k.mh (XDEPFILES): Delete.
12792 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12793 * config/mips/linux.mh (XDEPFILES): Delete.
12794 * config/mips/irix6.mh (XDEPFILES): Delete.
12795 * config/mips/irix5.mh (XDEPFILES): Delete.
12796 * config/mips/irix4.mh (XDEPFILES): Delete.
12797 * config/mips/irix3.mh (XDEPFILES): Delete.
12798 * config/mips/decstation.mh (XDEPFILES): Delete.
12799 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12800 (NATDEPFILES): Move core-aout.o to here.
12801 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12802 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12803 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12804 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12805 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12806 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12807 * config/pa/hpux11.mh (XDEPFILES): Delete.
12808 * config/powerpc/aix.mh (XDEPFILES): Delete.
12809 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12810 * config/powerpc/linux.mh (XDEPFILES): Delete.
12811 * config/romp/rtbsd.mh: Rename XDEPFILES.
12812 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12813 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12814 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12815 * config/s390/s390.mh (XDEPFILES): Delete.
12816 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12817 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12818 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12819 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12820 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12821 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12822 * config/sparc/linux.mh (XDEPFILES): Delete.
12823 * config/vax/vaxult.mh (XDEPFILES): Delete.
12824 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12825 * Makefile.in (DEPFILES): Remove XDEPFILES.
12826
375fc983
AC
128272002-01-17 Andrew Cagney <ac131313@redhat.com>
12828
12829 * utils.c (internal_verror): Fix comments, default is yes not no.
12830 Update queries to match. Default to quit and dump core.
12831
8926118c
AC
128322002-01-17 Andrew Cagney <ac131313@redhat.com>
12833
12834 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12835 copyright.
12836 * defs.h, event-top.c, gdbcmd.h: Ditto.
12837 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12838 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12839 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12840 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12841 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12842 * mi/mi-main.c:Ditto.
12843
12844 * stack.c, symfile.c: Update copyright.
12845
45b7b345
DJ
128462002-01-17 Daniel Jacobowitz <drow@mvista.com>
12847
db728ff7
DJ
12848 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12849 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12850 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12851 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 12852
db728ff7
DJ
128532002-01-17 Daniel Jacobowitz <drow@mvista.com>
12854
12855 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12856 * gdbserver/low-lynx.c (myattach): Likewise.
12857 * gdbserver/low-nbsd.c (myattach): Likewise.
12858 * gdbserver/low-sim.c (myattach): Likewise.
12859 * gdbserver/low-sparc.c (myattach): Likewise.
12860 * gdbserver/low-sun3.c (myattach): Likewise.
12861
12862 * gdbserver/low-linux.c (myattach): New function.
45b7b345 12863
db728ff7 12864 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
12865 (main): Handle "--attach".
12866
8de3c354
AC
128672002-01-16 Andrew Cagney <ac131313@redhat.com>
12868
12869 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12870 maintainer.
12871
b0129042
DJ
128722002-01-15 Daniel Jacobowitz <drow@mvista.com>
12873
12874 * c-typeprint.c (is_type_conversion_operator): Add additional
12875 check for non-conversion operators.
12876
ba8679fb 128772002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
12878
12879 * linux-proc.c: Add "info proc" command, a la procfs.c.
12880 (read_mapping): New function, abstract and re-use code.
12881 (linux_find_memory_regions): Use new func read_mapping.
12882 (linux_info_proc_cmd): New function, implement "info proc".
12883 (_initialize_linux_proc): Add new command "info proc".
12884
e4f9b4d5
MS
128852002-01-15 Michael Snyder <msnyder@redhat.com>
12886
12887 * symfile.c (generic_load): Use bfd_map_over_sections method
12888 instead of manipulating bfd structure members directly.
12889 (add_section_size_callback): New function, bfd sections callback
12890 used by generic_load.
12891 (load_sections_callback): New function, bfd sections callback
12892 used by generic_load.
12893
08cf96df
EZ
128942002-01-15 Elena Zannoni <ezannoni@redhat.com>
12895
abf22e64 12896 [Based on work by Jim Blandy]
08cf96df
EZ
12897 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12898 (builtin_type_vec128): Export.
12899 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12900 types.
12901 (builtin_type_vec128): New builtin type for 128 bit vector
12902 registers.
12903 (build_gdbtypes): Initialize builtin_type_v16qi and
12904 builtin_type_v8hi. Create the vec128 register builtin type
12905 structure.
12906 (build_builtin_type_vec128): New function.
abf22e64 12907 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
12908 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12909 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12910 AltiVec register to new builtin type.
12911
d7242108
DJ
129122001-01-15 Daniel Jacobowitz <drow@mvista.com>
12913
12914 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12915 to make_cv_type.
12916
4ee3352d
AC
129172002-01-14 Andrew Cagney <ac131313@redhat.com>
12918
12919 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12920 CLEAN_UP_REGISTER_VALUE.
12921 * regcache.c (supply_register): Update only call.
12922
f015b2e7
AC
129232002-01-14 Andrew Cagney <ac131313@redhat.com>
12924
12925 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12926 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12927 a29k-*-vxworks* targets as obsolete.
12928
356ae49d
MS
129292002-01-14 Michael Snyder <msnyder@redhat.com>
12930
12931 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12932 until we can resolve portability issues.
12933 * gregset.h: Remove references to fpxregs.
12934 * gcore.c (gcore_command): Initialize note_sec to NULL.
12935
ade8f45e
AC
129362002-01-13 Andrew Cagney <ac131313@redhat.com>
12937
12938 * signals.c (target_signal_to_name): Rewrite. Only use
12939 signals[].name when in bounds and non-NULL.
abf22e64 12940
89c49e7a
AC
129412002-01-13 Andrew Cagney <ac131313@redhat.com>
12942
12943 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12944 * signals.c (target_signal_to_name): Verify that SIG is within the
12945 bounds of the signals array.
12946
4daa9f9f
AC
129472002-01-13 Andrew Cagney <ac131313@redhat.com>
12948
12949 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12950
ba4bbdcb
KS
129512002-01-13 Keith Seitz <keiths@redhat.com>
12952
12953 * stack.c (print_frame_info_base): Print the frame's pc
12954 only if when print_frame_info_listing_hook is not defined.
12955
575bbeb6
KS
129562002-01-13 Keith Seitz <keiths@redhat.com>
12957
12958 * varobj.c (varobj_set_value): Make sure that there were no
12959 errors evaluating the object before attempting to set its
12960 value.
12961 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12962 so this offset adjustment is no longer necessary.
12963 (create_child): Don't set the error flag if the child is
12964 a CPLUS_FAKE_CHILD.
12965 (value_of_child): If value_fetch_lazy fails, return NULL
12966 so that callers will be notified that an error occurred.
12967 (c_value_of_variable): Delay check of variable's validity
12968 until later. We actually want all structs and unions to have
12969 the value "{...}".
12970 Do not return "???" for variables which could not be evaluated.
12971 This error condition must be returned to the caller so that it
12972 can get the error condition from gdb.
12973 (cplus_name_of_child): Adjust index for vptr before figuring
12974 out the name of the child.
12975 (cplus_value_of_child): If a child's (real) parent is not valid,
12976 don't even bother trying to give a value for it. Just return
12977 an error. Change all instances in this function.
12978 (cplus_type_of_child): If our parent is one of the "fake"
12979 parents, we need to get at the type of the real parent, and
12980 derive the child's true type using this information.
12981
b76898ab
AC
129822002-01-13 Andrew Cagney <ac131313@redhat.com>
12983
12984 From 2002-01-09 John Marshall <johnm@falch.net>:
12985 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12986 sources.redhat.com, and tweak some related URLs which had
12987 suffered from linkrot.
12988
b6649e88
AC
129892002-01-13 Andrew Cagney <ac131313@redhat.com>
12990
12991 From Jeff law:
12992 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12993 structures passed in registers.
12994
82cc5033
EZ
129952002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12996
12997 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12998 white space which prevented compilation. Reported by DSK
12999 <dsk@student.unsw.edu.au>.
13000
ba5f2f8a
MS
130012002-01-11 Michael Snyder <msnyder@redhat.com>
13002
fbd35540
MS
13003 * symfile.c (build_section_addr_info_from_section_tab):
13004 Use bfd access method instead of manipulating bfd directly.
13005 (syms_from_objfile): Ditto.
13006 (simple_overlay_update_1): Ditto.
13007 (simple_overlay_update): Ditto.
13008 (generic_load): Ditto.
13009 (overlay_unmapped_address): FIXME comment, bfd access methods.
13010 (sections_overlap): FIXME comment, bfd access methods.
13011 (pc_in_mapped_range): FIXME comment, bfd access methods.
13012 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13013 (section_is_mapped): FIXME comment, bfd access methods.
13014 (section_is_overlay): FIXME comment, bfd access methods.
13015
ba5f2f8a
MS
13016 * symfile.c (generic_load): Whitespace and long line cleanups.
13017 Remove duplicate variable, change several local variables to
13018 more appropriate data types.
13019 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13020
17df2af6
AC
130212002-01-12 Andrew Cagney <ac131313@redhat.com>
13022
13023 From Peter Schauer:
13024 * language.c (longest_local_hex_string_custom): Use phex_nz to
13025 convert NUM to a hex string.
13026
ec920329
EZ
130272002-01-12 Elena Zannoni <ezannoni@redhat.com>
13028
13029 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13030 the function.
538a76d6 13031 Update Copyright year.
ec920329 13032
3abd2e01
AC
130332002-01-12 Andrew Cagney <ac131313@redhat.com>
13034
13035 * language.c (longest_raw_hex_string): Delete unused function.
13036
b21b22e0
PS
130372002-01-11 Petr Sorfa <petrs@caldera.com>
13038
13039 * MAINTAINERS (write-after-approval): Add myself.
13040 * dwarf2read.c (read_tag_string_type): Handling of
13041 DW_AT_byte_size.
13042 (read_tag_string_type): FORTRAN fix to prevent propagation of
13043 first string size.
13044 (set_cu_language): Handling of DW_LANG_Fortran95
13045
747fe712
RE
130462002-01-11 Richard Earnshaw <rearnsha@arm.com>
13047
13048 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13049 GETPID(inferior_ptid).
13050 (store_inferior_registers): Likewise.
13051
f1bea926
JM
130522002-01-10 Jason Merrill <jason@redhat.com>
13053
13054 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13055 Fix DW_OP_minus.
13056
ae940673
AC
130572002-01-10 Andrew Cagney <ac131313@redhat.com>
13058
13059 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13060 and bfd/elf32-sh-nbsd.c.
13061
00546b04
MS
130622002-01-10 Michael Snyder <msnyder@redhat.com>
13063
352ed7b4
MS
13064 * NEWS: Mention --pid and corefile/proc-id behavior change.
13065
c18be923
MS
13066 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13067 * gcore.c: Include cli/cli-decode.h instead of command.h.
13068
00546b04
MS
13069 * main.c (captured_main): Add new command line option "--pid".
13070 If the second command line argument (following the symbol-file)
13071 begins with a digit, try to attach to it before trying to open
13072 it as a corefile.
13073 (print_gdb_help): Document the "--pid" argument.
13074
db60ec62
EZ
130752002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13076
13077 * completer.c (command_completer): New function.
13078
13079 * completer.h <command_completer>: Add prototype.
13080
13081 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13082 completer for the "help" command.
13083
39c22d1a
JM
130842002-01-09 Jason Merrill <jason@redhat.com>
13085
13086 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13087
c564377f
MS
130882002-01-09 Michael Snyder <msnyder@redhat.com>
13089
975aec09
MS
13090 * i386-linux-nat.c (fill_fpxregset): Make global.
13091 (store_fpxregset): Ditto.
13092
db4a10fa
MS
13093 * gregset.h (gdb_fpxregset_t): Define.
13094 (supply_fpxregset): Prototype.
13095 (fill_fpxregset): Prototype.
13096
c564377f
MS
13097 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13098
c3d45d70
RE
130992002-01-09 Richard Earnshaw <rearnsha@arm.com>
13100
13101 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13102 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13103 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13104
fcc87af1
AC
131052002-01-09 Andrew Cagney <ac131313@redhat.com>
13106
13107 * MAINTAINERS: Update target maintainer rules so that any
13108 Maintainer can approve a tested patch for a maintenance-only
13109 target.
13110
dd96c05b
RE
131112002-01-09 Richard Earnshaw <rearnsha@arm.com>
13112
d4297db9 13113 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13114
d4297db9 13115 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13116 IN_SIGTRAMP.
13117
145fdc6e
MS
131182002-01-08 Michael Snyder <msnyder@redhat.com>
13119
13120 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13121 real name of the executable, rather than the /proc name.
13122
be4d1333
MS
131232002-01-03 Michael Snyder <msnyder@redhat.com>
13124
13125 Implement a "generate-core-file" command in gdb, save target state.
13126 * gcore.c: New file. Implement new command 'generate-core-file'.
13127 Save a corefile image of the current state of the inferior.
13128 * linux-proc.c: Add linux-specific code for saving corefiles.
13129 * target.h (struct target_ops): Add new target vectors for saving
13130 corefiles; to_find_memory_regions and to_make_corefile_notes.
13131 (target_find_memory_regions): New macro.
13132 (target_make_corefile_notes): New macro.
13133 * target.c (update_current_target): Inherit new target methods.
13134 (dummy_find_memory_regions): New place-holder method.
13135 (dummy_make_corefile_notes): New place-holder method.
13136 (init_dummy_target): Initialize new dummy target vectors.
13137 * exec.c (exec_set_find_memory_regions): New function.
13138 Allow the exec_ops vector for memory regions to be taken over.
13139 (exec_make_note_section): New function, target vector method.
13140 * defs.h (exec_set_find_memory_regions): Export prototype.
13141 * procfs.c (proc_find_memory_regions): New function, corefile method.
13142 (procfs_make_note_section): New function, corefile method.
13143 (init_procfs_ops): Set new target vector pointers.
13144 (find_memory_regions_callback): New function.
13145 (procfs_do_thread_registers): New function.
13146 (procfs_corefile_thread_callback): New function.
13147 * sol-thread.c (sol_find_memory_regions): New function.
13148 (sol_make_note_section): New function.
13149 (init_sol_thread_ops): Initialize new target vectors.
13150 * inftarg.c (inftarg_set_find_memory_regions): New function.
13151 Allow to_find_memory_regions vector to be taken over.
13152 (inftarg_set_make_corefile_notes): New function.
13153 Allow to_make_corefile_notes vector to be taken over.
13154 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13155 interface layer if not target_has_execution (may be a corefile).
13156 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13157 * config/sparc/sun4sol2.mh: Ditto.
13158 * config/alpha/alpha-linux.mh: Ditto.
13159 * config/arm/linux.mh: Ditto.
13160 * config/i386/x86-64linux.mh: Ditto.
13161 * config/ia64/linux.mh: Ditto.
13162 * config/m68k/linux.mh: Ditto.
13163 * config/mips/linux.mh: Ditto.
13164 * config/powerpc/linux.mh: Ditto.
13165 * config/sparc/linux.mh: Ditto.
13166
c6b92abd
MS
131672002-01-07 Michael Snyder <msnyder@redhat.com>
13168
13169 * arm-linux-nat.c: Remove references to regcache.c internal data
13170 (registers[] and register_valid[]).
13171
4b09dc8c
MS
131722002-01-07 Michael Snyder <msnyder@redhat.com>
13173
abf22e64
AJ
13174 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13175 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13176 symbol file and shlibs.
13177 * Makefile.in: Add rule for linux-proc.o.
13178 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13179 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13180 * config/arm/linux.mh: Ditto.
13181 * config/i386/linux.mh: Ditto.
13182 * config/i386/x86-64linux.mh: Ditto.
13183 * config/ia64/linux.mh: Ditto.
13184 * config/m68k/linux.mh: Ditto.
13185 * config/mips/linux.mh: Ditto.
13186 * config/powerpc/linux.mh: Ditto.
13187 * config/sparc/linux.mh: Ditto.
13188
c25b74ac
PM
131892002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13190
13191 * win32-nat.c: Add i386-tdep.h dependency.
13192
94cd915f
MS
131932002-01-07 Michael Snyder <msnyder@redhat.com>
13194
c7cccb76
MS
13195 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13196 instead of bfd_get_arch_size. Don't bail out just because
13197 there's no exec_bfd.
abf22e64 13198
34c0bd93
MS
13199 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13200 * p-valprint.c (pascal_object_print_value): Ditto.
13201 * somread.c (som_symtab_read): Ditto.
13202 * symfile.c (simple_free_overlay_region_table): Ditto.
13203 * valops.c (value_assign): Ditto.
13204
21c1c920
MS
13205 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13206 use tilde_expand and strerror for opening save-tracepoints file.
13207
5bbd998e
MS
13208 * thread-db.c (thread_db_new_objfile): Indendation fix.
13209
94cd915f
MS
13210 * infptrace.c (GDB_MAX_ALLOCA): New define.
13211 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13212 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13213 can be overridden with whatever value is appropriate to the host).
13214 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13215 alloca to allocate potentially large buffer.
13216 * rs6000-nat.c (child_xfer_memory): Ditto.
13217 * symm-nat.c (child_xfer_memory): Ditto.
13218 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13219
494e8a93
JSC
132202002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13221
13222 From Nick Clifton <nickc@redhat.com>
13223 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13224
d0e1d48e
MS
132252002-01-07 Michael Snyder <msnyder@redhat.com>
13226
abf22e64 13227 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13228 Don't use exec_bfd if it's NULL.
13229
290b2c7a
MK
132302002-01-06 Mark Kettenis <kettenis@gnu.org>
13231
abf22e64 13232 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13233
aef21287
AC
132342002-01-06 Andrew Cagney <ac131313@redhat.com>
13235
13236 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13237 * gnu-nat.c: Ditto.
13238
30efa627
AC
132392002-01-06 Andrew Cagney <ac131313@redhat.com>
13240
13241 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13242 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13243 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13244 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13245 z8k-coff have not been multi-arched. Update z8k-coff build
13246 status.
13247
9b4ff276
AC
132482002-01-06 Andrew Cagney <ac131313@redhat.com>
13249
13250 * MAINTAINERS: Mark a29k target as obsolete.
13251 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13252 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13253 comments.
13254 * NEWS: Note that a29k targets are obsolete.
13255 * a29k-tdep.c: Mark as obsolete.
13256 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13257 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13258 a29k-*-vxworks* targets as obsolete.
13259 * remote-adapt.c: Obsolete.
13260 * remote-eb.c: Obsolete.
13261 * remote-mm.c: Obsolete.
13262 * remote-udi.c: Obsolete.
13263 * config/a29k/a29k-udi.mt: Obsolete.
13264 * config/a29k/a29k.mt: Obsolete.
13265 * config/a29k/tm-a29k.h: Obsolete.
13266 * config/a29k/tm-vx29k.h: Obsolete.
13267 * config/a29k/vx29k.mt: Obsolete.
13268
a9011d31
AC
132692002-01-05 Andrew Cagney <ac131313@redhat.com>
13270
13271 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13272 with BFD_ENDIAN_BIG.
13273
9299404e
AC
132742002-01-05 Andrew Cagney <ac131313@redhat.com>
13275
13276 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13277 * configure, config.in: Re-generate.
13278 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13279 * defs.h: Do not include <endian.h>.
13280
7e89e357
JT
132812002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13282
13283 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13284 * config.in: Regenerate.
13285 * configure.in: Update copyright years.
13286 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13287 * configure: Regenerate.
13288 * i386bsd-nat.c: Update copyright years.
13289 (fill_gregset): Use regcache_collect.
13290 (fetch_inferior_registers): Only fetch integer registers
13291 if requested to do so. Add support for XMM registers
13292 using PT_GETXMMREGS.
13293 (store_inferior_registers): Only store integer registers
13294 if requested to do so. Add support for XMM registers
13295 using PT_SETXMMREGS.
13296 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13297 (store_inferior_registers): Remove.
13298 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13299 (fetch_elfcore_registers): New function.
13300 (i386nbsd_elfcore_fns): New.
13301 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13302 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13303 i386bsd-nat.o.
13304 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13305 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13306 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13307 * config/i386/tm-nbsd.h: Update copyright years.
13308 (HAVE_SSE_REGS): Define.
13309 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13310 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13311 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13312 (SIGCONTEXT_PC_OFFSET): Remove.
13313 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13314
a752853e
AC
133152002-01-05 Andrew Cagney <ac131313@redhat.com>
13316
13317 * configure.tgt: Remove powerpc-*-macos* target.
13318 * config/m68k/xm-mpw.h: Delete file.
13319 * config/xm-mpw.h: Delete file.
13320 * ser-mac.c: Delete file.
13321 * mpw-make.sed: Delete file.
13322 * mpw-config.in: Delete file.
13323 * mac-xdep.c: Delete file.
13324 * mac-gdb.r: Delete file.
13325 * mac-defs.h: Delete file.
13326 * mac-nat.c: Delete file.
13327 * config/powerpc/macos.mh: Delete file.
13328 * config/powerpc/macos.mt: Delete file.
13329 * config/powerpc/nm-macos.h: Delete file.
13330 * config/powerpc/tm-macos.h: Delete file.
13331 * source.c (openp, open_source_file): Remove obsolete code.
13332 * top.c (gdb_readline): Ditto.
13333 * utils.c (query): Ditto.
13334 * event-top.c (display_gdb_prompt): Ditto.
13335 * Makefile.in (ser-mac.o): Delete obsolete target.
13336 * NEWS: Update.
13337
d7449b42
AC
133382002-01-04 Andrew Cagney <ac131313@redhat.com>
13339
13340 * defs.h (BIG_ENDIAN): Delete macro definition.
13341 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13342 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13343 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13344 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13345 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13346 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13347 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13348 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13349 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13350 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13351 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13352 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13353 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13354 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13355 * gdbarch.c: Re-generate.
13356
356374e8
DJ
133572002-01-04 Daniel Jacobowitz <drow@mvista.com>
13358
13359 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13360 for core files.
13361
a2b8f8f8
JT
133622002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13363
13364 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13365
12466af9
AC
133662002-01-04 Andrew Cagney <ac131313@redhat.com>
13367
13368 * value.h (value_ptr): Delete typedef.
13369
3549ab40
JT
133702002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13371
13372 * i386nbsd-nat.c: Update copyright years.
13373 Include i386-tdep.h.
13374
fedbd091
EZ
133752002-01-04 Elena Zannoni <ezannoni@redhat.com>
13376
13377 * stabsread.c: Update copyright years.
13378
13379 From Debashis Mahata <debashis.mahata@wipro.com>:
13380 (read_struct_fields): Deal with Sun C compiler erroneous stab
13381 output for structs and unions.
fec8b34f 13382 Fix PR gdb/269.
fedbd091 13383
eb43544b
DJ
133842002-01-04 Daniel Jacobowitz <drow@mvista.com>
13385
13386 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13387 prototype.
13388
1514d34e
DJ
133892002-01-04 Daniel Jacobowitz <drow@mvista.com>
13390
13391 * cp-abi.c: Fix whitespace.
13392 (baseclass_offset): New wrapper function.
13393 * cp-abi.h (baseclass_offset): Add prototype.
13394 (struct cp_abi_ops): Add baseclass_offset pointer.
13395
13396 * valops.c (vb_match): Move to...
13397 * gnu-v2-abi.c (vb_match): here.
13398 * valops.c (baseclass_offset): Move to...
13399 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13400
13401 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13402
13403 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13404 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13405 * hpacc-abi.c (init_hpacc_ops): Likewise.
13406
7f8c9282
DJ
134072002-01-04 Daniel Jacobowitz <drow@mvista.com>
13408
13409 * valops.c (find_overload_match): Accept obj as a
13410 reference parameter. Update it before returning.
13411 * value.h (find_overload_match): Update prototype.
13412 * eval.c (evaluate_subexp_standard): Pass object to
13413 find_overload_match by reference.
13414
f23631e4
AC
134152002-01-03 Andrew Cagney <ac131313@redhat.com>
13416
13417 * valarith.c: Replace value_ptr with struct value pointer. Remove
13418 register attribute from value declarations.
13419 * valops.c: Ditto.
13420 * value.h: Ditto.
13421 * scm-lang.c (scm_lookup_name): Ditto.
13422
79e10fab 134232002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13424
79e10fab
AC
13425 Abstract the functionality of iterating over mapped memory
13426 regions into a general purpose iterator function.
abf22e64 13427 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13428 iterator for memory sections.
13429 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13430 (solib_mappings_callback): New function, callback for above.
13431 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13432 (info_mappings_callback): New function, callback for above.
13433
13434 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13435
c5ad026a
MK
134362002-01-01 Mark Kettenis <kettenis@gnu.org>
13437
d2a7c97a
MK
13438 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13439 * i386-tdep.c: Include "elf-bfd.h".
13440 (process_note_abi_tag_sections): New function.
13441 (i386_gdbarch_init): Add code to recognize various OS/ABI
13442 combinations.
13443
c5ad026a
MK
13444 * maint.c (_initialize_maint_cmds): Add missing \ in
13445 string-literal.
13446
a1a5b71e 13447For older changes see ChangeLog-2001
c906108c
SS
13448\f
13449Local Variables:
13450mode: change-log
13451left-margin: 8
13452fill-column: 74
13453version-control: never
13454End:
This page took 0.935074 seconds and 4 git commands to generate.