2002-11-22 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
03dac896
AS
12002-11-23 Andreas Schwab <schwab@suse.de>
2
3 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
4 invariant return values.
5
7a67d0fe
AS
62002-11-22 Andreas Schwab <schwab@suse.de>
7
8 * valops.c (value_slice): Move declaration of `offset' to avoid
9 warning.
10
5633f842
CF
112002-11-22 Christopher Faylor <cgf@redhat.com>
12
13 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
14 (struct so_stuff): Add end_addr field.
15 (register_loaded_dll): Calculate and store end address of loaded dll.
16 (solib_address): New function.
17 (child_solib_loaded_library_pathname): Pass carefully constructed
18 section info to safe_symbol_file_add rather than ignoring it.
19 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
20 DLL is loaded.
21 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
22 (child_create_inferior): Fix a compiler warning.
23 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
24 (solib_address): Declare new function.
25
d85fe7f7
AS
262002-11-22 Andreas Schwab <schwab@suse.de>
27
28 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
29 and FPS registers.
30
8308e54c
DJ
312002-11-21 Daniel Jacobowitz <drow@mvista.com>
32
33 * maint.c (_initialize_maint_cmds): Fix typo. From
34 Francesco Potorti` <pot@gnu.org>.
35
8997bd5e
AC
362002-11-21 Andrew Cagney <cagney@redhat.com>
37
38 * mips-tdep.c (mips_dump_tdep): Delete references to
39 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
40 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
41 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
42 * printcmd.c (build_address_symbolic): Delete calls to
43 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
44 (address_info): Ditto.
45 Fix PR gdb/773.
46
4e87b832
KD
472002-11-19 Klee Dienes <kdienes@apple.com>
48 Adam Fedor <fedor@gnu.org>
49
50 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
51 the ability to explicitly specify the quote characters and word
52 break characters; if NULL is specified for either, use the old
53 behavior of using the characters used by the completer.
54 (skip_chars): New function. Convenience wrapper around
55 skip_quoted_chars to provide the original skip_chars behavior.
56 * completer.h (skip_quoted_chars): Add prototype.
57
9ba8d803
AC
582002-11-19 Andrew Cagney <ac131313@redhat.com>
59
60 Problems reported by Paul Eggert.
61 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
62
0a595803
AS
632002-11-19 Andreas Schwab <schwab@suse.de>
64
65 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
66 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
67 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
68 (m68k_linux_frame_saved_pc): Move to ...
69 * m68klinux-tdep.c: ... here. New file.
70 * Makefile.in (m68klinux-tdep.o): Add dependencies.
71 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
72
e8afa4d7
AF
732002-11-19 Adam Fedor <fedor@gnu.org>
74
75 * objc-exp.y: Revert to old skip_quoted usage.
76
a76c9d72
AF
772002-11-19 Adam Fedor <fedor@gnu.org>
78
79 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
80 (objc_lang_h): Define.
81 (YYFILES): Add objc-exp.tab.c.
82 (local-maintainer-clean): Remove objc-exp.tab.c.
83 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
84
fd0e9d45
PM
852002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
86
87 * p-exp.y (typecast rule): Add automatic dereference of
88 pascal classes if needed.
89 (THIS): Set current_type.
90 Automatically dereference pascal classes.
91 (typebase rule): Add ^typebase recognition.
92
82eeeb94
AF
932002-11-18 Adam Fedor <fedor@gnu.org>
94
95 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
96 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
97 (op_name): Handle OP_OBJC_SELF.
98 * Makefile.in (expprint.o): Add additional depends.
99
646df18d
AF
1002002-11-18 Adam Fedor <fedor@gnu.org>
101
102 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
103 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
104 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
105 * objc-exp.y: Likewise.
106
379b85df
AF
1072002-11-18 Adam Fedor <fedor@gnu.org>
108
109 * gdb/parser-defs.h: (struct objc_class_str): New structure
110 for parsing ObjC classes.
111
85cf597a
AC
1122002-11-18 Andrew Cagney <ac131313@redhat.com>
113
114 * stack.c (frame_relative_level): Copy function from here ...
115 * frame.c (frame_relative_level): ...to here.
116
5a203e44
AC
1172002-11-18 Andrew Cagney <ac131313@redhat.com>
118
119 * frame.h (enum frame_type): Define.
120 (get_frame_type): Declare.
121 (struct frame_info): Add field `type'. Delete field
122 signal_handler_caller.
123 (deprecated_set_frame_signal_handler_caller): Declare.
124 * frame.c (get_frame_type): New function.
125 (deprecated_set_frame_type): New function.
126 (create_new_frame): Set the frame's type.
127 (get_prev_frame): Similar.
128 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
129 * s390-tdep.c: Ditto.
130 * m68klinux-nat.c: Ditto.
131 * ns32k-tdep.c: Ditto.
132 * x86-64-linux-tdep.c: Ditto.
133 * vax-tdep.c: Ditto.
134 * rs6000-tdep.c: Ditto.
135 * ppc-linux-tdep.c: Ditto.
136 * i386-interix-tdep.c: Ditto.
137 * mips-tdep.c: Ditto.
138 * m68k-tdep.c: Ditto.
139 * hppa-tdep.c: Ditto.
140 * ia64-tdep.c: Ditto.
141 * cris-tdep.c: Ditto.
142 * arm-tdep.c: Ditto.
143 * alpha-tdep.c: Ditto.
144 * i386-tdep.c: Ditto.
145 * stack.c: Ditto.
146 * ada-lang.c: Ditto.
147 * blockframe.c: Update.
148 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
149 deprecated_set_frame_type instead of signal_handler_caller.
150 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
151 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
152 * breakpoint.h: Delete FIXME suggesting get_frame_type.
153
bf4ae8b2
KD
1542002-11-18 Klee Dienes <kdienes@apple.com>
155
156 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
157
a672ef13
KD
1582002-11-18 Klee Dienes <kdienes@apple.com>
159
160 * buildsym.c (pop_context): Add comment.
161
0c5e171a
KD
1622002-11-18 Klee Dienes <kdienes@apple.com>
163
164 * buildsym.h (pop_context): Convert to function, defined in
165 buildsym.c.
166 * buildsym.c: Include gdb_assert.h.
167 (pop_context): Implement as C function. Add check for stack
168 underflow.
169 * dbxread.c (process_one_symbol): Complain and stop processing
170 that symbol if we are already at the top of the context stack for
171 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
172 when processing N_RBRAC.
173
8a1f4c4c
DJ
1742002-11-16 Daniel Jacobowitz <drow@mvista.com>
175
176 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
177 define.
178 (struct target_waitstatus): Add opaque definition.
179 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
180 * exec.c (init_exec_ops): Likewise.
181 * fork-child.c (clone_and_follow_inferior): Remove.
182 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
183 * inferior.h (clone_and_follow_inferior): Remove prototype.
184 * infrun.c (follow_fork_mode_both): Remove.
185 (follow_fork_mode_kind_names): Remove commented out "both".
186 (follow_inferior_fork): Remove follow_fork_mode_both support.
187 * inftarg.c (child_clone_and_follow_inferior): Remove.
188 (child_post_follow_inferior_by_clone): Remove.
189 (init_child_ops): Don't set to_clone_and_follow_inferior
190 or to_post_follow_inferior_by_clone.
191 * target.c (default_clone_and_follow_inferior): Remove.
192 (cleanup_target): Don't set to_clone_and_follow_inferior
193 or to_post_follow_inferior_by_clone.
194 (find_default_clone_and_follow_inferior): Remove.
195 (init_dummy_target): Don't set to_clone_and_follow_inferior.
196 (debug_to_clone_and_follow_inferior): Remove.
197 (debug_to_post_follow_inferior_by_clone): Remove.
198 (setup_target_debug): Don't set to_clone_and_follow_inferior
199 or to_post_follow_inferior_by_clone.
200 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
201 and to_post_follow_inferior_by_clone.
202 (child_clone_and_follow_inferior): Remove prototype.
203 (child_post_follow_inferior_by_clone): Remove prototype.
204 (target_clone_and_follow_inferior): Remove macro.
205 (target_post_follow_inferior_by_clone): Remove macro.
206 (find_default_clone_and_follow_inferior): Remove prototype.
207
47932f85
DJ
2082002-11-16 Daniel Jacobowitz <drow@mvista.com>
209
210 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
211 inferior_has_vforked, and inferior_has_execd instead of
212 target_has_forked, target_has_vforked, and target_has_execd.
213 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
214 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
215 (CHILD_WAIT): Define.
216 (child_wait): Add prototype.
217 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
218 Add prototype.
219 (hpux_has_vforked): Likewise, from child_has_vforked.
220 (hpux_has_execd): Likewise, from child_has_execd.
221 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
222 (not_same_real_pid, child_wait): New, copied from inftarg.c.
223 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
224 and hpux_has_syscall_event instead of the target hooks.
225 * infrun.c (inferior_has_forked, inferior_has_vforked)
226 (inferior_has_execd): New functions.
227 * inftarg.c (not_same_real_pid): Remove.
228 (child_wait): Remove references to not_same_real_pid,
229 target_has_forked, target_has_vforked, target_has_execd,
230 and target_has_syscall_event.
231 (child_has_forked, child_has_vforked, child_has_execd)
232 (child_has_syscall_event): Remove.
233 (init_child_ops): Remove references to child_has_forked,
234 child_has_vforked, child_has_execd, and child_has_syscall_event.
235 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
236 (hpux_has_vforked): Likewise, from child_has_vforked.
237 (hpux_has_execd): Likewise, from child_has_execd.
238 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
239 * target.c (cleanup_target): Remove references to
240 to_has_forked, to_has_vforked, to_has_execd, and
241 to_has_syscall_event.
242 (update_current_target): Likewise.
243 (setup_target_debug): Likewise.
244 (debug_to_has_forked): Remove.
245 (debug_to_has_vforked): Remove.
246 (debug_to_has_execd): Remove.
247 (debug_to_has_syscall_event): Remove.
248 * target.h (struct target_ops): Remove to_has_forked.
249 to_has_vforked, to_has_execd, and to_has_syscall_event.
250 (child_has_forked, child_has_vforked, child_has_execd)
251 (child_has_syscall_event): Remove prototypes.
252 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
253 prototypes.
254 (target_has_forked, target_has_vforked, target_has_execd)
255 (target_has_syscall_event): Remove macros.
256
4088142a
DJ
2572002-11-16 Daniel Jacobowitz <drow@mvista.com>
258
259 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
260 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
261 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
262 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
263 * target.c (cleanup_target): Remove reference to
264 to_can_follow_vfork_prior_to_exec.
265 (update_current_target): Likewise.
266 (debug_to_can_follow_vfork_prior_to_exec): Remove.
267 (setup_target_debug): Remove reference to
268 to_can_follow_vfork_prior_to_exec.
269 * target.h (struct target_ops): Remove
270 to_can_follow_vfork_prior_to_exec.
271 (child_can_follow_vfork_prior_to_exec): Remove prototype.
272 (target_can_follow_vfork_prior_to_exec): Remove definition.
273 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
274 define.
275 * infrun.c (follow_vfork_when_exec): Remove.
276 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
277 (follow_exec): Likewise.
278 (handle_inferior_event): Likewise.
279 (keep_going): Likewise.
280
18cde8d5
AC
2812002-11-15 Andrew Cagney <cagney@redhat.com>
282
283 * frame.c (generic_unwind_get_saved_register): Make static.
284 * frame.h (generic_unwind_get_saved_register): Delete declaration.
285 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
286 defaults to generic_unwind_get_saved_register.
287 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
288 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
289 * frv-tdep.c (frv_gdbarch_init): Ditto.
290 * i386-tdep.c (i386_gdbarch_init): Ditto.
291 * s390-tdep.c (s390_gdbarch_init): Ditto.
292 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
293 * v850-tdep.c (v850_gdbarch_init): Ditto.
294 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
295 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
296 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
297
a6b063af
AC
2982002-11-15 Andrew Cagney <cagney@redhat.com>
299
300 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
301 i386-tdep.c.
302
f407986f
AC
3032002-11-15 Andrew Cagney <cagney@redhat.com>
304
305 * frame.h (sigtramp_saved_pc): Delete declaration.
306 * blockframe.c (sigtramp_saved_pc): Delete function.
307 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
308 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
309 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
310 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
311
f18c5a73
AC
3122002-11-15 Andrew Cagney <ac131313@redhat.com>
313
314 * frame.c (frame_pc_unwind): New function.
315 (frame_saved_regs_pc_unwind): New function.
316 (frame_register_unwind): Pass unwind_cache instead of
317 register_unwind_cache.
318 (set_unwind_by_pc): Add unwind_pc parameter, set.
319 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
320 (get_prev_frame): Ditto.
321 * frame.h (frame_pc_unwind_ftype): Declare.
322 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
323 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
324 (frame_pc_unwind): Declare.
325 * dummy-frame.c (dummy_frame_pc_unwind): New function.
326 (struct dummy_frame): Add comment mentioning that values are for
327 previous frame.
328 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
329 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
330 (generic_file_frame_chain_valid): Ditto.
331 * stack.c (frame_info): Ditto.
332
d9285969 3332002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
334
335 * linespec.c (locate_first_half): New function.
336 (decode_line_1): Move code into locate_first_half.
337
d741b867
AC
3382002-11-15 Andrew Cagney <ac131313@redhat.com>
339
340 * complaints.h: Add comment explaining how to eliminate a
341 deprecated_complain call.
24382c5c 342 * complaints.h: Fix spelling errors.
d741b867 343
82d03c99
DC
3442002-11-15 David Carlton <carlton@math.stanford.edu>
345
346 * printcmd.c: Remove #include "disasm.h".
347
c97eb5d9
AC
3482002-11-14 Andrew Cagney <ac131313@redhat.com>
349
350 * frame.h: Move the most relevant interface functions to the start
351 of the file.
352
524d7c18
AC
3532002-11-14 Andrew Cagney <ac131313@redhat.com>
354
355 * regcache.h (deprecated_registers): Rename registers.
356 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
357 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
358 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
359 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
360 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
361 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
362 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
363 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
364 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
365 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
366 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
367 * v850ice.c: Update.
368
6411e720
AC
369Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
370
371 * utils.c (gdb_realpath): Add comment mentioning realpath with a
372 NULL buffer.
373
73937e03
AC
3742002-11-13 Andrew Cagney <cagney@redhat.com>
375
376 * regcache.h (deprecated_read_register_bytes): Rename
377 read_register_bytes.
378 (deprecated_write_register_bytes): Rename write_register_bytes.
379 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
380 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
381 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
382 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
383 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
384 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
385 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
386 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
387 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
388 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
389 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
390 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
391 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
392 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
393
fb0cd46e
JB
3942002-11-13 Jim Blandy <jimb@redhat.com>
395
396 * findvar.c (read_var_value): Doc fix.
397
2d28509a
AC
3982002-11-13 Andrew Cagney <cagney@redhat.com>
399
400 * regcache.c (struct regcache): Replace passthough_p with
401 readonly_p.
402 (regcache_xmalloc): Initialize readonly_p.
403 (build_regcache): Initialize readonly_p.
404 (regcache_save): New function.
405 (regcache_restore): New function.
406 (regcache_cpy): Re-implement using regcache_save and
407 regcache_restore.
408 (regcache_raw_read): Update.
409 (regcache_cooked_read): When a read-only cache, checked for cached
410 pseudo register values.
411 (regcache_raw_write): Assert that the cache is not read-only.
412 Remove code handling a non-passthrough cache.
413 * regcache.h (regcache_save): Declare.
414 (regcache_restore): Declare.
415
067df2e5
AC
4162002-11-13 Andrew Cagney <cagney@redhat.com>
417
418 * regcache.c (struct regcache_descr): Add fields
419 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
420 (init_legacy_regcache_descr): Compute the size of a cooked
421 register cache and then assign that to sizeof_raw_registers. Set
422 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
423 (init_legacy_regcache_descr): Ditto.
424
51b1fe4e
AC
4252002-11-13 Andrew Cagney <cagney@redhat.com>
426
427 * regcache.c (register_buffer): Move to near start of file, update
428 description.
429 (regcache_raw_read): Use.
430 (regcache_raw_write): Use.
431 (struct regcache): Rename raw_registers to registers and
432 raw_register_valid_p to register_valid_p.
433 (regcache_xmalloc): Update.
434 (regcache_xfree): Update.
435 (register_buffer): Update.
436 (regcache_cpy): Update.
437 (regcache_cpy_no_passthrough): Update.
438 (regcache_valid_p): Update.
439 (deprecated_grub_regcache_for_registers): Update.
440 (deprecated_grub_regcache_for_register_valid): Update.
441 (set_register_cached): Update.
442 (regcache_raw_write): Update.
443
80b4c677
PM
4442002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
445
446 * p-exp.y (name_not_typename): Use copy_name to
447 set current_type variable for fields of THIS.
448
0f3fafde
DJ
4492002-11-12 Daniel Jacobowitz <drow@mvista.com>
450
451 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
452 * monitor.c (init_base_monitor_ops): Likewise.
453 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
454 * remote-array.c (init_array_ops): Likewise.
455 * remote-e7000.c (init_e7000_ops): Likewise.
456 * remote-es.c (init_es1800_ops): Likewise.
457 (init_es1800_child_ops): Likewise.
458 * remote-rdp.c (init_remote_rdp_ops): Likewise.
459 * remote-sim.c (init_gdbsim_ops): Likewise.
460 * remote-st.c (init_st2000_ops): Likewise.
461 * sol-thread.c (init_sol_core_ops): Likewise.
462 (init_sol_thread_ops): Likewise.
463 * v850ice.c (init_850ice_ops): Likewise.
464 * win32-nat.c (init_child_ops): Likewise.
465 * wince.c (init_child_ops): Likewise.
466
82c0260e
AC
4672002-11-12 Andrew Cagney <ac131313@redhat.com>
468
469 * utils.c (gdb_realpath): Make rp a constant pointer.
470
70d35819
AC
4712002-11-12 Andrew Cagney <ac131313@redhat.com>
472
473 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
474 a constant buffer; cannonicalize_file_name(); realpath() with a
475 pathconf() defined buffer, xstrdup().
476
9835a8b0
AC
4772002-11-12 Andrew Cagney <ac131313@redhat.com>
478
479 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
480 to hang2.C; hang3.c to hang3.C.
481
3f47be5c
EZ
4822002-11-11 Elena Zannoni <ezannoni@redhat.com>
483
484 * findvar.c (read_var_value): Reenable TLS code.
485
4862002-11-11 Elena Zannoni <ezannoni@redhat.com>
487 Jim Blandy <jimb@redhat.com>
488
489 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
490 * target.c (update_current_target): Add
491 to_get_thread_local_address.
492 * target.h (to_get_thread_local_address): Export.
493 (target_get_thread_local_address): Define.
494 (target_get_thread_local_address_p): Define.
495 * thread-db.c: Include solib-svr4.h.
496 (td_thr_tls_get_addr_p): Define.
497 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
498 (thread_db_get_thread_local_address): New function.
499 (init_thread_db_ops): Initialize to_get_thread_local_address.
500 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
501 * configure: Regenerate.
502 * config.in: Regenerate.
503
636b1a6d
DC
5042002-11-11 David Carlton <carlton@math.stanford.edu>
505
506 * linespec.c (set_flags): New function.
507 (decode_line_1): Move code into set_flags.
508
44fe14ab
DC
5092002-11-11 David Carlton <carlton@math.stanford.edu>
510
511 * linespec.c (decode_line_1): Move chunks of code to separate
512 functions.
513 (initialize_defaults): New function.
514 (decode_indirect): New function.
515
e6f181f5
AC
5162002-11-11 Andrew Cagney <ac131313@redhat.com>
517
8971b011
AC
518 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
519 instead of void_code_ptr.
520 (sigtramp_saved_pc): Ditto.
521
e6f181f5
AC
522 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
523 i386_fp_regnum_p.
524
01ad7f36
DJ
5252002-11-10 Daniel Jacobowitz <drow@mvista.com>
526
527 * gdbtypes.h (struct main_type): Move artificial flag out of
528 loc. New member of ``struct field'' named static_kind. Reduce
529 overloaded meaning of bitsize.
530 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
531 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
532 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
533
534 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
535 new fields.
536 (template_to_fixed_record_type, template_to_static_fixed_type)
537 (to_record_with_fixed_variant_part): Likewise.
538 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
539 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
540 * dwarfread.c (struct_type, enum_type): Likewise.
541 * hpread.c (hpread_read_enum_type)
542 (hpread_read_function_type, hpread_read_doc_function_type)
543 (hpread_read_struct_type): Likewise.
544 * mdebugread.c (parse_symbol): Likewise.
545
bf1e52be
AC
5462002-11-10 Andrew Cagney <ac131313@redhat.com>
547
548 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
549 * stack.c (print_frame_info_base): Update.
550 (print_frame_info_base, frame_info): Update.
551 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
552 (sparc_frame_saved_pc): Update.
553 * ada-lang.c (find_printable_frame): Update.
554 * breakpoint.c (deprecated_frame_in_dummy): Update.
555
ce556f85
MK
5562002-11-09 Mark Kettenis <kettenis@gnu.org>
557
558 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
559 defined.
560 (regmap): Extend to cover all registers.
561 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
562 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
563 definitions.
564 (fetch_register, sore_register): Simplify.
565 (old_fetch_inferior_registers, old_store_inferior_registers):
566 Remove functions.
567 (cannot_fetch_register, cannot_store_register): Change
568 implementation to use regmap array to decide which registers
569 cannot be fetched/stored. This removes $orig_eax from the
570 registers that cannot be fetched/stored.
571 (fetch_inferior_registers): Call fetch_register directly instead
572 of calling old_fetch_inferior_registers.
573 (store_inferior_registers): Call store_register directly instead
574 of calling old_store_inferior_registers.
575 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
576 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
577 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
578
932bb524
KD
5792002-11-09 Klee Dienes <kdienes@apple.com>
580
581 * i387-tdep.c (i387_supply_register): When called with NULL as a
582 buffer, mark the register as not provided (to mirror the behavior
583 of supply_register).
584 (i387_supply_fxsave): Ditto.
585 (i387_supply_fsave): Ditto (inherits the behavior from
586 i387_supply_register).
587
ebe68b27
KD
5882002-11-09 Klee Dienes <kdienes@apple.com>
589
590 * blockframe.c (sigtramp_saved_pc): Use
591 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
592 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
593 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
594
15220c65
AC
5952002-11-09 Andrew Cagney <ac131313@redhat.com>
596
597 * frame.c (get_prev_frame): Test prev_p to identify a previously
598 unwound frame. Initialize prev_p.
599 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
600 comment.
601
95adb866
AC
6022002-11-09 Andrew Cagney <ac131313@redhat.com>
603
604 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
605 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
606 more comments. Zap dead code.
607
e71ecd70
MK
6082002-11-09 Mark Kettenis <kettenis@gnu.org>
609
610 * infcmd.c (print_vector_info, print_float_info): Move code that
611 checks whether the target has any registers and whether there is a
612 selected frame up, such that it is also used if a target provides
613 multi-arch definitions of these functions.
614
c525330d
AC
6152002-11-08 Andrew Cagney <ac131313@redhat.com>
616
72bdd927
AC
617 * Makefile.in (DESTDIR): Define.
618 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
619 prefix.
620
c525330d
AC
621 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
622 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
623
38c968cf
AC
6242002-11-08 Andrew Cagney <ac131313@redhat.com>
625
626 * i386-linux-tdep.c: Include "reggroups.h".
627 (i386_linux_register_reggroup_p): New function.
628 (i386_linux_init_abi): Set register_reggroup_p to
629 i386_linux_register_reggroup_p.
630 * i386-tdep.h (i386_register_reggroup_p): Declare.
631 * i386-tdep.c: Include "reggroups.h".
632 (i386_init_reggroups): New function.
633 (i386_add_reggroups): New function.
634 (i386_register_reggroup_p): New function.
635 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
636 (_initialize_i386_tdep): Call i386_init_reggroups.
637 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
638 specific reggroups.
639
19e33363
MK
6402002-11-09 Mark Kettenis <kettenis@gnu.org>
641
371a6e84
MK
642 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
643 request that's available in *BSD.
644
94ba925a
MK
645 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
646
19e33363
MK
647 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
648 FDOFF_REGNUM.
649
8779790c
AC
6502002-11-08 Andrew Cagney <ac131313@redhat.com>
651
652 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
653 * dummy-frame.c (find_dummy_frame): Rename
654 generic_find_dummy_frame, make static. Return the dummy frame
655 instead of the regcache.
656 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
657 (cached_find_dummy_frame): New function. Use find_dummy_frame.
658 (dummy_frame_register_unwind): Rename
659 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
660 * dummy-frame.h (dummy_frame_register_unwind): Rename
661 generic_call_dummy_register_unwind.
662
8674b74f
MK
6632002-11-08 Mark Kettenis <kettenis@gnu.org>
664
665 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
666 except the inclusion of "i386/tm-i386.h", to...
667 * config/i386/nm-i386v42mp.h: ...here.
668 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
669
4c1e7e9d
AC
6702002-11-08 Andrew Cagney <ac131313@redhat.com>
671
672 * Makefile.in (frame.o): Update dependencies.
673 * blockframe.c (current_frame, frame_obstack_alloc)
674 (frame_saved_regs_zalloc, get_current_frame)
675 (set_current_frame, create_new_frame)
676 (set_unwind_by_pc, get_next_frame)
677 (flush_cached_frames, reinit_frame_cache)
678 (frame_saved_regs_register_unwind)
679 (deprecated_generic_get_saved_register)
680 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
681 (_initialize_blockframe): Move frame code from here...
682 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
683 "annotate.h" and "dummy-frame.h".
684 (_initialize_frame): New function.
685
921e78cf
JB
6862002-11-08 Jim Blandy <jimb@redhat.com>
687
688 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
689 when we finish a function a context.
690 * buildsym.h (outermost_context_p): New macro.
691 (Bug analyzed by David Edelsohn.)
692
9c1412c1
AC
6932002-11-08 Andrew Cagney <ac131313@redhat.com>
694
695 * blockframe.c: Include "dummy-frame.h".
696 (struct dummy_frame, dummy_frame_stack)
697 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
698 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
699 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
700 (generic_save_call_dummy_addr, generic_pop_current_frame)
701 (generic_pop_dummy_frame, generic_fix_call_dummy)
702 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
703 dummy frame code from here...
704 * dummy-frame.c: ...to here. New file.
705 * dummy-frame.h: New file.
706 (generic_call_dummy_register_unwind): Declare.
707 (generic_find_dummy_frame): Declare.
708 * Makefile.in (SFILES): Add dummy-frame.c.
709 (dummy-frame.o): Specify dependencies.
710 (dummy_frame_h): Define.
711 (COMMON_OBS): Add dummy-frame.o.
712 (blockframe.o): Update dependencies.
713
208d8187
JB
7142002-11-08 Jim Blandy <jimb@redhat.com>
715
716 * dwarf2read.c (read_func_scope): Restore local_symbols and
717 param_symbols after we finish the function context. (Based on a
718 patch from David Edelsohn.)
719
413dad4d
DC
7202002-11-08 David Carlton <carlton@math.stanford.edu>
721
722 * linespec.c (symbol_found): New function.
723 (minsym_found): New function.
724 (decode_line_1): Separate out some code into separate functions.
725
5512c44a
JB
7262002-11-08 Joel Brobecker <brobecker@gnat.com>
727
728 * i386-tdep.c (i386_frameless_signal_p): Make non static for
729 the benefit of the interix target.
730 * i386-tdep.h (i386_frameless_signal_p): Declare.
731
1b33ef47
AC
7322002-11-08 Andrew Cagney <ac131313@redhat.com>
733
734 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
735 declaration that snuck in from change below.
736
23a34459
AC
7372002-11-06 Andrew Cagney <cagney@redhat.com>
738
739 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
740 all callers.
741 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
742 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
743 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
744 (i386_mxcsr_regnum_p): new function. Use instead of
745 MXCSR_REGNUM_P.
746 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
747 (i386_sse_regnum_p): Declare.
748 (i386_mxcsr_regnum_p): Declare.
749 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
750 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
751 (IS_FP_REGNUM): Update definition.
752 (IS_FPU_CTRL_REGNUM): Update definition..
753 (IS_SSE_REGNUM): Update definition..
754 * i386v-nat.c (register_u_addr): Update.
755 * go32-nat.c (fetch_register): Update.
756 (store_register): Update.
757
d709c020
JB
7582002-11-07 Joel Brobecker <brobecker@gnat.com>
759
760 Preparation work to convert the hppa targets to multiarch partial.
761
762 * hppa-tdep.c: Add new functions replacing macro bodies from
763 config/pa/tm-hppa.h. These function will be used to initialize
764 the gdbarch structure. Import some comments from tm-hppa.h,
765 and place them where appropriate, to avoid loosing them when
766 we cleanup this file.
767 (hppa_reg_struct_has_addr): New function.
768 (hppa_inner_than): New function.
769 (hppa_stack_align): New function.
770 (hppa_pc_requires_run_before_use): New function.
771 (hppa_instruction_nullified): New function.
772 (hppa_register_byte): New function.
773 (hppa_register_virtual_type): New function.
774 (hppa_store_struct_return): New function.
775 (hppa_cannot_store_register): New function.
776 (hppa_frame_args_address): New function.
777 (hppa_frame_locals_address): New function.
778 (hppa_smash_text_address): New function.
779 (hppa_coerce_float_to_double): New function. Requires the inclusion
780 of "language.h".
781
782 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
783
784 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
785 gdbarch-eligible macro to a call to the new associated function
786 created in hppa-tdep.c.
787 (INNER_THAN): Likewise.
788 (STACK_ALIGN): Likewise.
789 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
790 (INSTRUCTION_NULLIFIED): Likewise.
791 (REGISTER_BYTE): Likewise.
792 (REGISTER_VIRTUAL_TYPE): Likewise.
793 (STORE_STRUCT_RETURN): Likewise.
794 (CANNOT_STORE_REGISTER): Likewise.
795 (FRAME_ARGS_ADDRESS): Likewise.
796 (FRAME_LOCALS_ADDRESS): Likewise.
797 (SMASH_TEXT_ADDRESS): Likewise.
798 (COERCE_FLOAT_TO_DOUBLE): Likewise.
799 (ABOUT_TO_RETURN): Delete, as no longer used.
800
83c31e7d
FN
8012002-11-07 Fernando Nasser <fnasser@redhat.com>
802
803 * printcmd.c (disassemble_command): Remove obsolete function.
804 (_initialize_printcmd): Do not create disassemble command here.
805 * cli/cli-cmds.c (disassemble_command): New function. Implements
806 disassemble command.
807 (init_cli_cmds): Create disassemble command here instead.
808
0ec30a36
AC
8092002-11-07 Andrew Cagney <ac131313@redhat.com>
810
811 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
812
e600bd34
AC
8132002-11-07 Andrew Cagney <ac131313@redhat.com>
814
815 * regcache.h (regcache_cooked_read_using_offset_hack)
816 (regcache_cooked_write_using_offset_hack): Delete declarations.
817 (register_changed): Delete declaration.
818 * regcache.c (regcache_cooked_read_using_offset_hack)
819 (regcache_cooked_write_using_offset_hack): Delete functions.
820 (cooked_xfer_using_offset_hack): Delete function.
821 (register_changed): Delete function.
822
568f8739
JB
8232002-11-07 Jim Blandy <jimb@redhat.com>
824
825 * macroscope.c: #include "complaints.h".
826 (sal_macro_scope): Cope with filenames that appear in the symtabs,
827 but not in the macro table.
828 * Makefile.in (macroscope.o): Record dependency.
829
b0718b7b
JB
8302002-11-07 Joel Brobecker <brobecker@gnat.com>
831
832 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
833
2b9e5f3f
AC
8342002-11-07 Andrew Cagney <ac131313@redhat.com>
835
836 * regcache.c (deprecated_registers_fetched): Update.
837 * regcache.h (deprecated_registers_fetched): Rename
838 registers_fetched.
839 * remote-vxsparc.c (vx_read_register): Update.
840 * remote-vxmips.c (vx_read_register): Update.
841 * remote-vx68.c (vx_read_register): Update.
842 * irix5-nat.c (fetch_core_registers): Update.
843 * mipsm3-nat.c (fetch_inferior_registers): Update.
844 * sun3-nat.c (fetch_inferior_registers): Update.
845 * symm-nat.c (fetch_inferior_registers): Update.
846 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
847 (fetch_core_registers): Update.
848 (fetch_kcore_registers): Update.
849 * mips-nat.c (fetch_inferior_registers): Update.
850 * corelow.c (get_core_registers): Update.
851 * a68v-nat.c (fetch_inferior_registers): Update.
852
e6e68f1f
JB
8532002-11-06 Joel Brobecker <brobecker@gnat.com>
854
855 Put in place the framework necessary for multiarching the hppa targets.
856 * hppa-tdep.c (hppa_gdbarch_init): New function.
857 (hppa_dump_tdep): New function.
858 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
859 tdep structure dumper.
860 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
861 until the multi-arching conversion has partially been completed.
862
492254e9
AC
8632002-11-06 Andrew Cagney <ac131313@redhat.com>
864
865 * valops.c (value_assign): Merge lval_register case into
866 lval_reg_frame_relative. Use frame_register and
867 regcache_cooked_write instead of get_saved_register and
868 write_register_bytes. After flushing the register cache, try to
869 re-select the selected frame.
870
8262ee23
AC
8712002-11-06 Andrew Cagney <ac131313@redhat.com>
872
873 * regcache.h (deprecated_register_valid): Rename register_valid.
874 * regcache.c: Update.
875 * ia64-aix-nat.c: Update.
876 * i386gnu-nat.c: Update.
877 * alpha-nat.c: Update.
878 * sparc-nat.c: Update.
879 * lynx-nat.c: Update.
880 * remote-mips.c: Update.
881
4facf7e8
JB
8822002-11-06 Joel Brobecker <brobecker@gnat.com>
883
884 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
885 to end of file, to be more consistent with the pratice followed
886 by other targets.
887
f9418c0f
AC
8882002-11-06 Andrew Cagney <ac131313@redhat.com>
889
890 * infcmd.c: Include "reggroups.h" and <ctype.h>.
891 (print_float_info): Print registers in float_reggroup.
892 (print_vector_info): Print registers in vector_reggroup.
893 (default_print_registers_info): When all, print registers in
894 all_reggroup. Otherwize, print registers in general_reggroup.
895 (registers_info): Rewrite. Add support for register groups.
896 Eliminate a goto.
897
3fe235a7
EZ
8982002-11-06 Elena Zannoni <ezannoni@redhat.com>
899
900 * symtab.c (methods_info): Delete. It has been ifdeffed out for
901 ages.
902 (symtab_symbol_info): Remove eons old ifdeffed out code.
903 (_initialize_symtab): Remove prehistoric disabled 'info methods'
904 command.
905
ef944135
TR
9062002-11-06 Theodore A. Roth <troth@openavr.org>
907
908 * c-exp.y: Add missing semi-colons.
909 * f-exp.y: Add missing semi-colons.
910 * m2-exp.y: Add missing semi-colons.
911 * p-exp.y: Add missing semi-colons.
912 Add empty action to start rule to avoid a type clash error when
913 building with bison >= 1.50.
914
f8302a57
JB
9152002-11-06 Jim Blandy <jimb@redhat.com>
916
917 * macrotab.h (struct macro_source_file): Doc fix.
918
6e382aa3
JJ
9192002-11-05 Jeff Johnston <jjohnstn@redhat.com>
920
921 * varobj.c (child_exists, cplus_number_of_children): Change
922 STREQ macro references to strcmp.
923 (cplus_name_of_child): Change code to handle the fact that
924 fields are not necessarily contiguous with regards to their
925 access control. This is a fix for PR gdb/792.
926
a216a322
AC
9272002-11-05 Andrew Cagney <ac131313@redhat.com>
928
929 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
930 * gdbarch.h, gdbarch.c: Regnerate.
931 * frame.h (frame_register): Declare.
932 * frame.c (frame_register): New function.
933 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
934 GET_SAVED_REGISTER, otherwize call
935 generic_unwind_get_saved_register.
936 (frame_register_read): Use frame_register instead of
937 get_saved_register.
938
7d5b6fdd
EZ
9392002-11-05 Elena Zannoni <ezannoni@redhat.com>
940
941 From Jim Ingham <jingham@apple.com>:
942 * event-top.c (gdb_disable_readline): New function.
943 (_initialize_event_loop): Move comment.
944
b7c64260
EZ
9452002-11-05 Elena Zannoni <ezannoni@redhat.com>
946
947 * event-loop.c (start_event_loop): Add comment.
948 Update copyright.
949
c2e1b8f2
AC
9502002-11-05 Andrew Cagney <ac131313@redhat.com>
951
952 * infcmd.c (default_print_registers_info): Do not call
953 PRINT_REGISTER_HOOK.
954
87647bb0
AC
9552002-11-05 Andrew Cagney <ac131313@redhat.com>
956
957 * sparc-tdep.c (sparc_print_register_hook): Make static.
958 (sparc_print_registers_info): New function.
959 (sparc_do_registers_info): New function.
960 (sparclet_print_registers_info): New function.
961 (sparclet_do_registers_info): New function.
962 (do_sparc_print_registers_info): New function.
963 (sparc_print_registers): New static function, clone of infcmd.c's
964 default_print_registers_info.
965 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
966 (sparclet_do_registers_info): Declare.
967 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
968 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
969 Re-define.
970 (sparc_do_registers_info): Declare.
971 (PRINT_REGISTER_HOOK): Delete macro.
972 (sparc_print_register_hook): Delete declaration.
973
8155455b
DC
9742002-11-05 David Carlton <carlton@math.stanford.edu>
975
976 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
977 functions.
978 (lookup_symbol_aux_local): New function.
979 (lookup_symbol_aux_symtabs): New function.
980 (lookup_symbol_aux_psymtabs): New function.
981
29924310
DC
9822002-11-05 David Carlton <carlton@math.stanford.edu>
983
984 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
985 previous values of 'objfile' and 'block'.
986
cc303028
PM
9872002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
988
989 * values.c (value_change_enclosing_type): Set
990 enclosing_type field correctly also for the case where
991 more memory needs to be allocated.
992
1d70089a
MK
9932002-11-03 Mark Kettenis <kettenis@gnu.org>
994
f16a25ae
MK
995 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
996 of puts_filtered.
997
1d70089a
MK
998 * i387-tdep.c (i387_print_float_info): Replace calls to
999 register_read and deprecated_read_register_gen with calls to
1000 frame_register_read, and make the necessary adjustments to the
1001 surrounding code.
1002
7e20f3fb
AC
10032002-11-02 Andrew Cagney <ac131313@redhat.com>
1004
1005 * gdbarch.sh (register_reggroup_p): Allow default value.
1006 * gdbarch.h, gdbarch.c: Regenerate.
1007
192dbe33
AC
10082002-11-02 Andrew Cagney <ac131313@redhat.com>
1009
1010 * regcache.h: Add coment indicating replacements for deprecated
1011 functions.
1012
b59ff9d5
AC
10132002-11-02 Andrew Cagney <cagney@redhat.com>
1014
1015 * reggroups.h, reggroups.c: New files.
1016 * regcache.c: Include "reggroups.h".
1017 (enum regcache_dump_what): Add `regcache_dump_groups'.
1018 (regcache_dump): Contract size of the "Type" column. When
1019 specified, dump the register's groups.
1020 (maintenance_print_register_groups): New function.
1021 (_initialize_regcache): Add command `maint print register-groups'.
1022 * Makefile.in (COMMON_OBS): Add reggroups.o
1023 (SFILES): Add reggroups.c.
1024 (reggroups_h): Define.
1025 (regcache.o, gdbarch.o): Update dependencies.
1026 (reggroups.o): Specify dependencies.
1027 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1028 Add opaque declaration for `struct reggroup' in generated .h file.
1029 Include "reggroups.h" in generated .c file.
1030 gdbarch.h, gdbarch.c: Re-generate.
1031
4caf0990
AC
10322002-11-02 Andrew Cagney <cagney@redhat.com>
1033
1034 * regcache.h (deprecated_read_register_gen): Rename
1035 read_register_gen.
1036 (deprecated_write_register_gen): Rename write_register_gen.
1037 * i387-tdep.c: Update.
1038 * x86-64-linux-nat.c: Update
1039 * wince.c: Update.
1040 * thread-db.c: Update.
1041 * win32-nat.c: Update.
1042 * mips-tdep.c: Update.
1043 * d10v-tdep.c: Update.
1044 * cris-tdep.c: Update.
1045 * remote-sim.c: Update.
1046 * remote-rdi.c: Update.
1047 * remote-rdp.c: Update.
1048 * frame.c: Update.
1049 * target.c: Update.
1050 * blockframe.c: Update.
1051 * x86-64-tdep.c: Update.
1052 * xstormy16-tdep.c: Update.
1053 * sh-tdep.c: Update.
1054 * s390-tdep.c: Update.
1055 * rs6000-tdep.c: Update.
1056 * sparc-tdep.c: Update.
1057 * i386-tdep.c: Update.
1058 * dwarf2cfi.c: Update.
1059 * regcache.c: Update.
1060
7a7adcdf
JB
10612002-11-01 Joel Brobecker <brobecker@gnat.com>
1062
1063 New interix-specific files:
1064 * config/i386/nm-interix.h: New file.
1065 * config/i386/interix.mh: New file.
1066 * config/i386/interix.mt: New file.
1067 * i386-interix-nat.c: New file.
1068 * i386-interix-tdep.c: New file.
1069
bdcdd535
AC
10702002-11-01 Andrew Cagney <cagney@redhat.com>
1071
1072 * frame.h (deprecated_generic_get_saved_register): Rename
1073 generic_get_saved_register.
1074 * blockframe.c (deprecated_generic_get_saved_register): Update.
1075 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1076 (xstormy16_frame_saved_register): Update.
1077 * sh-tdep.c (sh_gdbarch_init): Update.
1078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1079 * ia64-tdep.c (ia64_get_saved_register): Update.
1080 * cris-tdep.c (cris_gdbarch_init): Update.
1081 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1082 * arm-tdep.c (arm_gdbarch_init): Update.
1083
2a4b7c45
DJ
10842002-10-31 Daniel Jacobowitz <drow@mvista.com>
1085
1086 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1087
ef17e74b
DJ
10882002-10-31 Daniel Jacobowitz <drow@mvista.com>
1089
1090 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1091 trampolines in sigaction.
1092
4904ba5b
AC
10932002-10-31 Andrew Cagney <cagney@redhat.com>
1094
1095 * h8300-tdep.c: Include "gdb_assert.h".
1096 (h8300_print_register): Add gdbarch, file and frame parameters.
1097 Use frame_read_unsigned_register to read the register's value.
1098 Use fprintf_filtered to display output.
1099 (h8300_print_registers_info): Replace h8300_do_registers_info.
1100 (h8300_gdbarch_init): Set print_registers_info.
1101
f908a0eb
AC
11022002-10-31 Andrew Cagney <cagney@redhat.com>
1103
1104 * frame.c (frame_read_unsigned_register): New function.
1105 (frame_read_signed_register): New function.
1106 * frame.h (frame_read_unsigned_register): Declare.
1107 (frame_read_signed_register): Declare.
1108
c5646e11
AC
11092002-10-31 Andrew Cagney <cagney@redhat.com>
1110
1111 * h8500-tdep.c (h8500_print_registers_info): New static function,
1112 clone of infcmd.c's default_print_registers_info.
1113 (h8500_do_registers_info): New funtion.
1114 (h8500_print_register_hook): Rename print_register_hook, make
1115 static.
1116
1117 * config/h8500/tm-h8500.h: Update copyright.
1118 (DEPRECATED_DO_REGISTERS_INFO): Define.
1119 (h8500_do_registers_info: Declare.
1120 (PRINT_REGISTER_HOOK): Delete macro.
1121 (print_register_hook): Delete function.
1122
0bdd672b
AC
11232002-10-31 Andrew Cagney <cagney@redhat.com>
1124
1125 * z8k-tdep.c (z8k_print_register_hook): Make static.
1126 (z8k_print_registers_info): New static function, clone of
1127 infcmd.c's default_print_registers_info.
1128 (z8k_do_registers_info): New function. Wrap
1129 z8k_print_registers_info.
1130 * config/z8k/tm-z8k.h: Update copyright.
1131 (PRINT_REGISTER_HOOK): Delete macro.
1132 (z8k_print_register_hook): Delete declaration.
1133 (DEPRECATED_DO_REGISTERS_INFO): Define.
1134 (z8k_do_registers_info): Declare.
1135
bf9c25dc
JB
11362002-10-30 Joel Brobecker <brobecker@gnat.com>
1137
1138 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1139 as this is already provided by value.h, and was actually causing
1140 a compilation error because of a conflict in parameter type
1141 declaration due to a missing const keyword.
1142 (low_text_segment_addres): Fix a compilation warning.
1143
2c665b51
DJ
11442002-10-29 Daniel Jacobowitz <drow@mvista.com>
1145
1146 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1147 registers without a name.
1148 (mips_linux_cannot_store_register): Don't store registers without
1149 a name.
1150
e70ea697
DC
11512002-10-28 David Carlton <carlton@math.stanford.edu>
1152
1153 * symtab.c (find_addr_symbol): Delete. (It was already commented
1154 out.)
1155 * symtab.h: Delete prototype for find_addr_symbol.
1156
903ad3a6
AC
11572002-10-26 Andrew Cagney <cagney@redhat.com>
1158
1159 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1160 DO_REGISTERS_INFO.
1161 gdbarch.h, gdbarch.c: Re-generate.
1162 * infcmd.c (default_print_registers_info): Update reference.
1163 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1164 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1165 * sh-tdep.c (sh_gdbarch_init): Ditto.
1166 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1168
ab91194c
MK
11692002-10-26 Mark Kettenis <kettenis@gnu.org>
1170
e3033f15
MK
1171 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1172 cfi_init_extra_frame_info.
1173 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1174 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1175
b83b026c
MK
1176 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1177 target where necessary. Add more comments and remove the ones
1178 that don't provide any useful information.
1179
267bf4bb
MK
1180 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1181 deprecated_read_register_dummy with
1182 frame_unwind_unsigned_register.
1183
751f1375
MK
1184 * i386-tdep.c (i386_extract_struct_value_address): Use
1185 regcache_raw_read_unsigned instead of
1186 regcache_cooked_read_unsigned since we know that the register
1187 we're reading isn't a pseudo register. Rename variable 'val' into
1188 the more descriptive 'addr'.
1189
26abbdc4
MK
1190 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1191 (x86_64_push_return_address): Add comment.
1192 (x86_64_pop_frame): Make static.
1193 (examine_argument): Clarify comment.
1194 (x86_64_skip_prologue): Make prolog_expact variable static.
1195
9f1549cc
MK
1196 * dwarf2cfi.c: Fix some formatting problems.
1197 (context_cpy, read_encoded_pointer): Clarify comments.
1198
ab91194c
MK
1199 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1200 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1201 i386 target back into x86_64_gdbarch_init. Add some comments and
1202 remove meaningless ones.
1203
72367fb4
AC
12042002-10-25 Andrew Cagney <cagney@redhat.com>
1205
1206 * complaints.h (struct deprecated_complaint): Rename `struct
1207 complaint'.
1208 * complaints.c (complain): Update.
1209 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1210 incorrect comment indicating that "symfile.h" was being included
1211 for the `struct complaint' definition.
1212 * remote-vx.c: Update.
1213 * objc-lang.c: Update.
1214 * xcoffread.c: Update.
1215 * hpread.c: Update.
1216 * mdebugread.c: Update.
1217 * stabsread.c: Update.
1218 * dwarf2read.c: Update.
1219 * dwarfread.c: Update.
1220 * elfread.c: Update.
1221 * coffread.c: Update.
1222 * stabsread.h: Update.
1223 * dbxread.c: Update.
1224 * buildsym.c: Update.
1225 * gdbtypes.c: Update.
1226 * macrotab.c: Update.
1227
1f2baacc
MK
12282002-10-25 Mark Kettenis <kettenis@gnu.org>
1229
0c1a73d6
MK
1230 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1231 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1232 (x86_64_init_abi): ...new function.
1233
6aee4d54 1234 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1235 * i386v-nat.c: Include "i386-tdep.h".
1236
8f9cbe01
AC
12372002-10-25 Andrew Cagney <cagney@redhat.com>
1238
5f11f355
AC
1239 * gdbtypes.c (address_space_name_to_int): Update.
1240 (address_space_int_to_name): Update.
1241 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1242 multi-arch predicate.
1243 (address_class_name_to_type_flags): Ditto.
1244 * gdbarch.h, gdbarch.c: Re-generate.
1245
8f9cbe01
AC
1246 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1247
e8d96a5d
MH
12482002-10-24 Martin M. Hunt <hunt@redhat.com>
1249
1250 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1251
fe39c653
EZ
12522002-10-24 Elena Zannoni <ezannoni@redhat.com>
1253
1254 * symtab.h (INIT_SAL): Delete macro.
1255 (init_sal): Export.
1256 * symtab.c (init_sal): New function.
1257
1258 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1259 to init_sal function call.
1260 (find_sal_from_funcs_and_line): Ditto.
1261 (all_sals_for_line): Ditto.
1262 * breakpoint.c (create_internal_breakpoint): Ditto.
1263 (create_fork_vfork_event_catchpoint): Ditto.
1264 (create_exec_event_catchpoint): Ditto.
1265 (parse_breakpoint_sals): Ditto.
1266 (watch_command_1): Ditto.
1267 (handle_gnu_4_16_catch_command): Ditto.
1268 (clear_command): Ditto.
1269 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1270 * infcmd.c (run_stack_dummy): Ditto.
1271 * infrun.c (process_event_stop_test): Ditto.
1272 (check_sigtramp2): Ditto.
1273 (step_over_function): Ditto.
1274 * linespec.c (decode_line_2): Ditto.
1275 (decode_line_1): Ditto.
1276 * source.c (line_info): Ditto.
1277 * symtab.c (find_pc_sect_line): Ditto.
1278
baed091b
ML
12792002-10-24 Michal Ludvig <mludvig@suse.cz>
1280
1281 * dwarf2cfi.c (struct context)
1282 (struct context_reg): Moved to dwarf2cfi.h
1283 (context_alloc, frame_state_alloc, context_cpy):
1284 Made extern instead of static, removed prototypes.
1285 * dwarf2cfi.h (struct context)
1286 (struct context_reg): New, moved from dwarf2cfi.c
1287 (context_alloc, frame_state_alloc, context_cpy):
1288 New prototypes.
1289 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1290 Changed from static to extern.
1291 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1292 (LINUX_SIGCONTEXT_FP_OFFSET)
1293 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1294 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1295 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1296 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1297 set_gdbarch_*() calls now use x86-64 specific functions
1298 instead of DWARF2 CFI ones.
1299 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1300 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1301 (x86_64_init_extra_frame_info): New prototypes.
1302
c38da1af
DC
13032002-10-23 David Carlton <carlton@math.stanford.edu>
1304
1305 * linespec.c: #include "parser-defs.h".
1306 Delete prototype for find_template_name_end.
1307 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1308
fb9b6b35
JJ
13092002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1310
1311 * NEWS: add recent mi fixes.
1312 * varobj.c (struct varobj): Add new "updated" flag.
1313 (new_variable): Default "updated" flag to 0.
1314 (varobj_set_value): Set "updated" flag to 1 if value
1315 changes.
1316 (varobj_update): Check varobj "updated" flag before
1317 comparing old and refreshed values. Fix for
1318 PR gdb/702.
1319
8da065d5
DC
13202002-10-23 David Carlton <carlton@math.stanford.edu>
1321
1322 * parse.c (parse_exp_1): Use BLOCK_START.
1323 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1324 SYMBOL_BLOCK_VALUE.
1325 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1326
87f2f08c
DC
13272002-10-23 David Carlton <carlton@math.stanford.edu>
1328
1329 * symtab.c: Delete cplusplus_hint.
1330 Delete prototype for find_template_name_end.
1331
88cda038
EZ
13322002-10-23 Elena Zannoni <ezannoni@redhat.com>
1333
1334 * symtab.h: Update comment.
1335
2625d86c
MS
13362002-10-23 Michael Snyder <msnyder@redhat.com>
1337
1338 * printcmd.c (address_info): Restore quotes in output.
1339 * valops.c (value_of_local): Restore quotes in error message.
1340
9cc0d196
EZ
13412002-10-23 Elena Zannoni <ezannoni@redhat.com>
1342
1343 * symtab.c (symbol_demangled_name): New function.
1344 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1345 turning most of it into a function.
1346 (symbol_demangled_name): Export.
1347
19de93d0
MS
13482002-10-23 Michael Snyder <msnyder@redhat.com>
1349
1350 * valops.c (value_of_local): Restore quotes in error message.
1351
89aad1f9
EZ
13522002-10-23 Elena Zannoni <ezannoni@redhat.com>
1353
1354 * symtab.c (symbol_init_language_specific): New function.
1355 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1356 turning most of it into a function.
1357 (symbol_init_language_specific): Export.
1358
d9fa45fe
DC
13592002-10-23 David Carlton <carlton@math.stanford.edu>
1360
1361 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1362 (dwarf_attr_name): Ditto.
1363 (dwarf_type_encoding_name): Ditto.
1364 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1365 (process_die): Handle DW_TAG_namespace,
1366 DW_TAG_imported_declaration, DW_TAG_imported_module.
1367 (read_namespace): New function.
1368
1045b512
JB
13692002-10-22 Joel Brobecker <brobecker@gnat.com>
1370
1371 * configure.in: Define NEW_PROC_API on Interix too.
1372 * configure: Regenerate.
1373
13742002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1375
1376 * configure: Regenerate using the proper version of autoconf.
1377
3987b9d4
EZ
13782002-10-21 Elena Zannoni <ezannoni@redhat.com>
1379
1380 * findvar.c (read_var_value): Temporarily disable TLS code, until
1381 complete TLS support is added.
1382
9d774e44
EZ
13832002-10-21 Jim Blandy <jimb@redhat.com>
1384 Elena Zannoni <ezannoni@redhat.com>
1385
1386 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1387 for thread local storage locations.
1388 (struct symbol): Add objfile field.
1389 (SYMBOL_OBJFILE): Define.
1390 * dwarf2read.c (is_thread_local): New static variable.
1391 (new_symbol): If variable is in thread local fill in address class
1392 and objfile appropriately.
1393 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1394 stack operation.
1395 * printcmd.c (address_info): Print the information for thread
1396 local storage variable.
1397 * findvar.c (read_var_value): In case of thread local variable,
1398 defer to the target vector code to compute address.
1399
bc4a16ae
EZ
14002002-10-21 Elena Zannoni <ezannoni@redhat.com>
1401
1402 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1403 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1404
407caf07
EZ
14052002-10-21 Elena Zannoni <ezannoni@redhat.com>
1406
1407 * symtab.h (address_class): Rename
1408 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1409 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1410 * printcmd.c (address_info): Ditto.
1411 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1412
005328e3
MK
14132002-10-20 Mark Kettenis <kettenis@gnu.org>
1414
afdb036a
MK
1415 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1416 DBREG_DRX macro to acces debug registers.
1417
ca02e098
MK
1418 * Makefile.in (i386obsd-tdep.o): New target.
1419
03cc47f7
MK
1420 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1421 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1422
005328e3
MK
1423 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1424 * config/i386/obsd.mt: New file.
1425 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1426 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1427 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1428 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1429 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1430 * i386obsd-tdep.c: New file.
1431
9c96f9f2
AF
14322002-10-19 Adam Fedor <fedor@gnu.org>
1433
1434 * objc-exp.y (name_not_typename): Fix invalid comment.
1435
ce1ed485
MK
14362002-10-20 Mark Kettenis <kettenis@gnu.org>
1437
1438 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1439 to allocate partial syms and macro byte caches.
1440
1efc7aaa
DC
14412002-10-18 David Carlton <carlton@math.stanford.edu>
1442
1443 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1444
7e1d63ec
AF
14452002-10-18 Adam Fedor <fedor@gnu.org>
1446
1447 * stabsread.c (find_name_end): New function.
1448 (define_symbol): Use it.
1449
6e8d29a9
DJ
14502002-10-18 Daniel Jacobowitz <drow@mvista.com>
1451
1452 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1453 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1454 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1455 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1456
1efc7aaa 14572002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1458
1459 * symfile.h: Add opaque declaration for struct obstack.
1460 Declare obsavestring to take a const char *.
1461 * symfile.c (obsavestring): Make first argument a const char *.
1462
1aeae86e
AF
14632002-10-16 Adam Fedor <fedor@gnu.org>
1464
1465 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1466 names when matching breakpoints in current file.
1467
8b2dbe47
KB
14682002-10-16 Kevin Buettner <kevinb@redhat.com>
1469
1470 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1471 (read_tag_pointer_type): Add address class support.
1472 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1473 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1474 New methods.
1475 * gdbarch.h, gdbarch.c: Regenerate.
1476 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1477 (make_type_with_address_space, recursive_type_dump): Add address
1478 class support.
1479 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1480 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1481 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1482
74451869
KD
14832002-10-16 Klee Dienes <kdienes@apple.com>
1484
1485 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1486 to get the last character of a char[] buffer, not
1487 name[sizeof(vptr_name)-1].
1488
ff4cb3e8
AF
14892002-10-14 Adam Fedor <fedor@gnu.org>
1490
1491 * symtab.h: New objc_specific struct.
1492 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1493 (SYMBOL_DEMANGLED_NAME): Likewise.
1494
da2cf7e0
AF
14952002-10-14 Adam Fedor <fedor@gnu.org>
1496
1497 * symfile.c (init_filename_language_table): Add ObjC file extension.
1498
4a351cef
AF
14992002-10-14 Adam Fedor <fedor@gnu.org>
1500
1501 * utils.c (puts_filtered_tabular): New function.
1502 (fprintf_symbol_filtered): Get ObjC demangled name.
1503 * defs.h (puts_filtered_tabular): Declared.
1504
9750e763
KB
15052002-10-14 Kevin Buettner <kevinb@redhat.com>
1506
1507 * c-lang.h (c_type_print_varspec_prefix): Delete.
1508 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1509 ``need_post_space'' parameter. Adjust all callers.
1510
eee771c1
DJ
15112002-10-14 Daniel Jacobowitz <drow@mvista.com>
1512
1513 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1514 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1515 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1516 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1517
46c82446
AF
15182002-10-13 Adam Fedor <fedor@gnu.org>
1519
1520 * source.c (print_source_lines): Update comments.
1521
d069f99d
AF
15222002-10-13 Adam Fedor <fedor@gnu.org>
1523
1524 * valops.c (value_of_local): New function.
1525 (value_of_this): Use it.
1526 * value.h (value_of_local): Declared.
1527
53c551b7
AF
15282002-10-13 Adam Fedor <fedor@gnu.org>
1529
1530 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1531 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1532
eb392fbf
AF
15332002-10-12 Adam Fedor <fedor@gnu.org>
1534
1535 * language.c (binop_result_type): Add language_objc to case.
1536 (integral_type): Likewise.
1537 (character_type): Likewise.
1538 (string_type): Likewise.
1539 (boolean_type): Likewise.
1540 (structured_type): Likewise.
1541 (binop_type_check): Likewise.
1542
e2b23ee9
AF
15432002-10-11 Adam Fedor <fedor@gnu.org>
1544
1545 * printcmd.c (address_info): Print 'self' for ObjC.
1546
b01ab485
AF
15472002-10-11 Adam Fedor <fedor@gnu.org>
1548
1549 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1550 OP_SELF.
1551
806e6073
AF
15522002-10-11 Adam Fedor <fedor@gnu.org>
1553
1554 * language.h (CAST_IS_CONVERSION): Add language_objc.
1555
50f85cdf
AF
15562002-10-11 Adam Fedor <fedor@gnu.org>
1557
1558 * defs.h (enum language): Add language_objc.
1559
0d540cdf
KD
15602002-10-11 Klee Dienes <kdienes@apple.com>
1561
69266111 1562 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1563 * gdbcore.h (read_memory_typed_address): Add prototype.
1564 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1565 to read a value destined for a CORE_ADDR, not read_memory_integer.
1566 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1567 (f77_get_dynamic_lowerbound): Ditto.
1568
d5dc7960
MH
15692002-10-11 Martin M. Hunt <hunt@redhat.com>
1570
1571 * utils.c (string_to_core_addr): After turning string into
1572 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1573 which will do necessary sign-extension, etc.
1574
8343f86c
DJ
15752002-10-11 Daniel Jacobowitz <drow@mvista.com>
1576
1577 * c-exp.y (THIS): Delete token and grammar rule.
1578 (yylex): Don't return THIS.
1579 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1580 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1581 * demangle.c (cplus_markers): Update comment. Put '$'
1582 first. Remove CPLUS_MARKER.
1583 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1584 * jv-exp.y (THIS): Delete token and grammar rule.
1585 (yylex): Don't return THIS.
1586 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1587 * objc-exp.y (THIS): Delete token and grammar rule.
1588 (yylex): Don't return THIS.
1589 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1590 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1591 (read_member_functions): Likewise for opname.
1592 (read_tilde_fields): Use is_cplus_marker.
1593
1594 * defs.h (CPLUS_MARKER): Don't define.
1595 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1596 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1597 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1598 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1599 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1600
1601 * config/i386/tm-i386v4.h: Delete file.
1602 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1603 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1604 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1605 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1606 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1607 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1608 * config/i386/i386v4.mt (TM_FILE): Likewise.
1609 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1610
967c0d83
MM
16112002-10-10 Marko Mlinar <markom@opencores.org>
1612
1613 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1614 accidentially not commited 2002-10-09
1615 * gdbarch.h, gdbarch.c: Re-generate.
1616
f74fa174
MM
16172002-10-09 Marko Mlinar <markom@opencores.org>
1618
1619 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1620 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1621 * gdbarch.h, gdbarch.c: Re-generate.
1622
57349743
JB
16232002-10-08 Petr Sorfa <petrs@caldera.com>
1624
1625 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1626
1627 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1628 so we can work on more than one compilation unit at a time. This
1629 helps prepare GDB to handle inter-CU die references.
1630 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1631 the code to be defined before struct comp_unit_head.
1632 (comp_unit_head): Added new members - offset, cu_head,
1633 begin_die, next and dwarf2_abbrevs.
1634 (dwarf2_abbrevs): Removed single static var; now member of
1635 struct comp_unit_head.
1636 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1637 members.
1638 (psymtab_to_symtab_1): Changed to work with the new
1639 struct comp_unit_head.
1640 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1641 constructs the dwarf2_abbrevs[] inside the cu_header.
1642 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1643 dwarf2_abbrev table to clean up.
1644 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1645 handling of dwarf2_abbrevs inside the cu_header.
1646 (read_partial_die): Now supports the call to the new
1647 dwarf2_lookup_abbrev.
1648 (read_full_die): Now supports the call to the new
1649 dwarf2_lookup_abbrev.
1650
4092aadb
CF
16512002-10-06 Christopher Faylor <cgf@redhat.com>
1652
1653 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1654 insure that shell variables, such as "transformed_name" are propagated
1655 to later shell statements in rule.
1656
af0b2512
MK
16572002-10-06 Mark Kettenis <kettenis@gnu.org>
1658
1659 * config/i386/nm-i386sco.h: Add protection against
1660 multiple-inclusion. Include "i386/nm-i386v.h".
1661 (REGISTER_U_ADDR): Remove define.
1662 (i386_register_u_addr): Remove prototype.
1663
d6020d45
MS
16642002-10-04 Michael Snyder <msnyder@redhat.com>
1665
1666 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1667 before treating it as a single-step event.
1668
7248f48e
AF
16692002-10-03 Adam Fedor <fedor@gnu.org>
1670
1671 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1672 (objc_demangle): Remove assignment in if statements, Replace
1673 free with xfree.
1674 (add_msglist): Likewise.
1675 (end_msglist): Likewise.
1676 (complare_selectors): Likewise.
1677 (selectors_info): Likewise.
1678 (compare_classes): Likewise.
1679 (classes_info): Likewise.
1680 (print_object_command): Likewise.
1681 (find_objc_msgcall_submethod): Replace PTR with void *.
1682 * objc-lang.h: Remove check for __STDC__.
1683
52c6a6ac
JJ
16842002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1685
1686 * ui-out.h (ui_out_field_fmt_int): New prototype.
1687 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1688 of field width and alignment.
1689 * stack.c (print_frame_info_base): When printing frame level, use
1690 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1691 PR gdb/192
1692
7e3cec17
JJ
16932002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1694
1695 * MAINTAINERS: Add self to Write After Approval list.
1696
a58dd373
EZ
16972002-10-02 Elena Zannoni <ezannoni@redhat.com>
1698
1699 * infcmd.c (interrupt_target_command_wrapper): Delete.
1700 (interrupt_target_command): Make non static.
1701 (nofp_registers_info): Make static.
1702 * stack.c (return_command_wrapper): Delete.
1703 (return_command): Make non static.
1704
cee6ddeb
EZ
17052002-10-02 Elena Zannoni <ezannoni@redhat.com>
1706
1707 * event-top.c (gdb_setup_readline): New function. Code moved from
1708 _initialize_event_loop().
1709 (_initialize_event_loop): Call gdb_setup_readline().
1710
c4ed33b9
AC
17112002-10-02 Andrew Cagney <ac131313@redhat.com>
1712
1713 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1714 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1715 * gdbarch.h, gdbarch.c: Re-generate.
1716
cef4f5dd
DJ
17172002-10-02 Daniel Jacobowitz <drow@mvista.com>
1718
1719 Fix PR gdb/778
1720 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1721 before recursing.
1722 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1723 of fill_in_vptr_fieldno.
1724
36dc181b 17252002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1726
36dc181b
EZ
1727 * inferior.h (registers_info, stepi_command, nexti_command,
1728 continue_command, interrupt_target_command): Export from infcmd.c.
1729 * frame.h (args_info, selected_frame_level_changed_hook,
1730 return_command): Export from stack.c.
1731 * v850ice.c (stepi_command, nexti_command, continue_command): use
1732 prototypes from inferior.h.
1733 * tracepoint.c (registers_info, args_info, locals_info): Use
1734 prototypes from frame.h and inferior.h.
1735 * Makefile.in (mi-main.o): Add dependency on frame.h.
1736
6f99cb26
AC
17372002-10-02 Andrew Cagney <ac131313@redhat.com>
1738
da3eff49
AC
1739 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1740 value in register 3 adjusted by ppc_gp0_regnum.
1741
6f99cb26
AC
1742 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1743
da615bee
MM
17442002-10-02 Marko Mlinar <markom@opencores.org>
1745
1746 * MAINTAINERS: Add myself to the Write After Approval list.
1747
d154bee2
AO
17482002-10-01 Alexandre Oliva <aoliva@redhat.com>
1749
62a49b2c
AO
1750 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1751 of the section for the N64 ABI, fixed.
1752
d154bee2
AO
1753 * config/mips/tm-irix6.h: Include solib.h.
1754
ed348acc
EZ
17552002-10-01 Elena Zannoni <ezannoni@redhat.com>
1756
1757 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1758 GNU operators.
1759
da0f9dcd
AC
17602002-10-01 Andrew Cagney <ac131313@redhat.com>
1761
1762 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1763 and that "mi0" syntax has been removed.
1764
bdf64bac
DC
17652002-09-30 David Carlton <carlton@math.stanford.edu>
1766
1767 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1768 * ppc-sysv-tdep.c: #include "gdb_string.h".
1769 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1770 pacify GCC.
1771
54c2a1e6
AC
17722002-10-01 Andrew Cagney <ac131313@redhat.com>
1773
1774 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1775 "vrsave"'s register number.
1776
cedea778
AC
17772002-09-30 Andrew Cagney <ac131313@redhat.com>
1778
1779 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1780 use frame_unwind_signed_register to obtain the PC.
1781 (mips_frame_chain): Handle a generic dummy frame.
1782 (mips_init_extra_frame_info): When a generic dummy frame, don't
1783 re-compute the frame base.
1784 (mips_pop_frame): Handle generic dummy frames.
1785 (mips_gdbarch_init): When generic dummy frames, set
1786 use_generic_dummy_frames, push_dummy_frame to
1787 generic_push_dummy_frame, pc_in_call_dummy to
1788 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1789 generic_save_dummy_frame_tos.
1790
68315eb8
AC
17912002-09-30 Andrew Cagney <ac131313@redhat.com>
1792
1793 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1794 against TOP when TOP was explictly set.
1795 (generic_push_dummy_frame): Set TOP to zero.
1796
3b8630c3
EZ
17972002-09-30 Elena Zannoni <ezannoni@redhat.com>
1798
1799 * event-loop.c (start_event_loop): Rename variable 'result' to
1800 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1801
28ee05e9
KS
18022002-09-30 Keith Seitz <keiths@redhat.com>
1803
1804 * gdb-events.sh (selected_thread_changed): New event.
1805 * gdb-events.c: Regenerated.
1806 * gdb-events.h: Regenerated.
1807
6eecb1c8
HPN
18082002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1809
1810 * MAINTAINERS: Add self to Write After Approval list.
1811
92df71f0
FN
18122002-09-30 Fernando Nasser <fnasser@redhat.com>
1813
3b8630c3
EZ
1814 * disasm.c: New file.
1815 * disasm.h: New file.
92df71f0
FN
1816 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1817 (compare_lines): Ditto.
1818 (dump_insns): Ditto.
3b8630c3
EZ
1819 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1820 argument.
92df71f0 1821 (do_assembly_only): Ditto.
3b8630c3
EZ
1822 (do_disassembly): Renamed to gdb_disassembly and moved to
1823 disasm.c. Sdded uiout argument.
1824 * Makefile.in: Add new files. Reorder SFILES list. Update
1825 dependencies. Include libgdb.a later in the insight executable.
92df71f0 1826
0c22854d
AC
18272002-09-29 Andrew Cagney <ac131313@redhat.com>
1828
1829 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1830 bfd/elf64-alpha-fbsd.c.
1831
e67f2023
AC
18322002-09-29 Andrew Cagney <ac131313@redhat.com>
1833
1834 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1835 i386gnu-tdep.c.
1836
89396210
AC
18372002-09-29 Andrew Cagney <ac131313@redhat.com>
1838
1839 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1840 __FUNCTION__.
1841 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1842 function name.
1843 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1844 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1845 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1846 (S_msg_sig_post_reply): Ditto.
1847
7079c36c
CV
18482002-09-28 Corinna Vinschen <vinschen@redhat.com>
1849
89396210
AC
1850 * sh-tdep.c (sh_use_struct_convention): Use definition according
1851 to ABI.
7079c36c
CV
1852 (sh_push_arguments): Store in register with correct endianess.
1853 (sh_default_store_return_value): Ditto.
1854 (sh_gdbarch_init): Set sizeof long double to 8.
1855
975ac915
MK
18562002-09-27 Mark Kettenis <kettenis@gnu.org>
1857
1858 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1859 Fix some whitespace problems.
1860
9bbe19fb
DC
18612002-09-27 David Carlton <carlton@math.stanford.edu>
1862
1863 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1864 (mcore-tdep.o): Ditto.
1865 (ns32k-tdep.o): Ditto.
1866 (ns32knbsd-tdep.o): Ditto.
1867 (sh3-rom.o): Ditto.
1868 (vax-tdep.o): Ditto.
1869 * cris-tdep.c: #include "gdb_string.h"
1870 * mcore-tdep.c: Ditto.
1871 * ns32k-tdep.c: Ditto.
1872 * ns32knbsd-tdep.c: Ditto.
1873 * sh3-rom.c: Ditto.
1874 * vax-tdep.c: Ditto.
1875
43b2fdc7
DC
18762002-09-27 David Carlton <carlton@math.stanford.edu>
1877
1878 * config/djgpp/fnchange.lst: Add entries for
1879 gdb/testsuite/gdb.c++/m-static files.
1880
e8cfbbd9
JW
18812002-09-27 Jim Wilson <wilson@redhat.com>
1882
1883 * MAINTAINERS: Add myself to the Write After Approval list.
1884
43b2fdc7 18852002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
1886
1887 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1888
1889
9f3b7f07
AC
18902002-09-26 Andrew Cagney <ac131313@redhat.com>
1891
1892 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1893 frame.
1894
11269d7e
AC
18952002-09-26 Andrew Cagney <ac131313@redhat.com>
1896
1897 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1898 (rs6000_struct_return_address): Delete variable.
1899 (rs6000_store_struct_return): Update.
1900 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1901 deprecated_extract_struct_value_address.
1902 (rs6000_frame_align): New function.
1903 (rs6000_gdbarch_init): Set frame_align.
1904
f15ab4a7
AC
19052002-09-26 Andrew Cagney <ac131313@redhat.com>
1906
1907 From Grace Sainsbury <graces@redhat.com>:
1908 * Makefile.in (gdbtk-main.o): New target.
1909 (gdb.o): New target.
1910 (main_h): Define.
1911 (main.o): Update dependencies.
1912 (gdb$(EXEEXT)): Add gdb.o.
1913 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1914 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1915 (SUBDIR_GDBTK_CLEAN): Set.
1916 (install-gdbtk): Install the insight binary.
1917 (uninstall-gdbtk): New target.
1918 (all-gdbtk, clean-gdbtk): New rule.
1919 * top.c (use_windows): Default to zero.
1920 * main.c: Include "main.h".
1921 (main): Delete.
1922 (struct captured_main_args): Delete.
1923 (gdb_main): New function.
1924 * main.h: New file.
1925 * gdb.c: New File.
1926
e36180d7
AC
19272002-09-25 Andrew Cagney <cagney@redhat.com>
1928
1929 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1930 (frame_map_regnum_to_name): New function.
1931 (frame_map_name_to_regnum): New function.
1932 * frame.h (frame_map_name_to_regnum): Declare.
1933 (frame_map_regnum_to_name): Declare.
1934 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1935 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1936 * parse.c: Do not include "builtin-regs.h".
1937 (target_map_name_to_register): Delete function.
1938 (write_dollar_variable): Use frame_map_name_to_regnum.
1939 * parser-defs.h (target_map_name_to_register): Delete declaration.
1940 * expprint.c: Include "frame.h".
1941 (print_subexp): Use frame_map_regnum_to_name.
1942 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1943 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1944
8b69000d
AC
19452002-09-25 Andrew Cagney <ac131313@redhat.com>
1946
1947 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1948 wasn't saved, and the next innermost frame is a dummy, return the
1949 dummy frame's link register.
1950
046ca86a
JB
19512002-09-24 Jim Blandy <jimb@redhat.com>
1952
1953 Fix from Paul Breed:
1954 * main.c (captured_main): Add a `break' after the case for 'b'.
1955
94b66fa7
KS
19562002-09-24 Keith Seitz <keiths@redhat.com>
1957
1958 * varobj.c (c_type_of_child): Use get_target_type instead
1959 of TYPE_TARGET_TYPE.
1960
c214a6fd
FN
19612002-09-22 Fernando Nasser <fnasser@redhat.com>
1962
53cb0458
FN
1963 * source.c (get_current_or_default_source_symtab_and_line): Remove
1964 function.
1965 (set_default_source_symtab_and_line): New function. Attempts to
1966 determine a source file to list lines from if one is not currently
1967 defined.
1968 (get_current_source_symtab_and_line): Initialize sal.pc and
1969 sal.end fields.
1970 (set_current_source_symtab_and_line): Mark argument as const.
1971 * source.h: Update declarations and comments.
1972 * linespec.c (decode_line_1): Replace call to removed routine above.
1973 * stack.c (print_frame_info_base): Ditto.
1974 * cli/cli-cmds.c (edit_command): Ditto.
1975 (list_command): Ditto.
1976
19772002-09-22 Fernando Nasser <fnasser@redhat.com>
1978
d6020d45 1979 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 1980 sal.pc and sal.end fields.
c214a6fd
FN
1981 (get_current_or_default_source_symtab_and_line): Ditto.
1982 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1983 so we do not cause a new source symtab to be searched for (reverting an
1984 unintentional change from the 2002-09-20 patch).
1985 * scm-lang.c (scm_unpac): Ditto.
1986
cc3b68a5
AC
19872002-09-21 Andrew Cagney <cagney@redhat.com>
1988
1989 * complaints.c (symfile_explanations): Remove new-line from
1990 ``isolated_message''.
1991 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1992 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1993
5835abe7
NC
19942002-09-20 Nick Clifton <nickc@redhat.com>
1995
1996 * NEWS: Announce that V850EA ISA is no longer supported.
1997 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1998
a15ef5f5
DC
19992002-09-20 David Carlton <carlton@math.stanford.edu>
2000
06ba1b39
DC
2001 * Makefile.in (c-lang.o): Correct dependencies.
2002 (utils.o): Gather dependencies.
2003 (charset.o): Move.
a15ef5f5
DC
2004 * c-lang.c: #include "gdb_string.h"
2005
87885426
FN
20062002-09-20 Fernando Nasser <fnasser@redhat.com>
2007
2008 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2009 * cli/cli-cmds.c (list_command): New function. Implements the new
2010 cli edit command.
2011 (_init_cli_cmds): Add new command definition.
2012 * gdb.1: Document edit command.
2013 * doc/gdb.texinfo: Document edit command.
2014
20152002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2016
2017 * source.c: Make global variables current_source_symtab and
2018 current_source_line static.
2019 (list_command): Moved to cli/cli-cmds.c.
2020 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2021 (get_first_line_listed): New accessor function.
2022 (get_lines_to_list): New accessor function.
2023 (get_current_source_symtab_and_line): New function. Retrieves the
2024 position in the source code that we consider current.
2025 (get_current_or_default_source_symtab_and_line): New function.
2026 Like the above but attempts to determine a default position if one
2027 is not currently defined.
2028 (set_current_source_symtab_and_line): New function. Sets the source
2029 code position considered current and returns the previously set one.
2030 (clear_current_source_symtab_and_line): Reset stored information about
2031 a current source line.
2032 (_initialize_source): Remove registration for the "list" command and
2033 its alias.
2034 * source.h: Add declarations for the new functions above.
2035 * symtab.h: Remove declarations for the global variables mentioned
2036 above.
2037 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2038 obtain current source line.
2039 * linespec.c (decode_line_1): Ditto.
2040 * macroscope.c (default_macro_scope): Ditto.
2041 * scm-lang.c (scm_unpac): Ditto.
2042 * stack.c (print_frame_info_base): Ditto.
2043 * symfile.c (clear_symtab_users): Ditto.
2044 * symtab.c (decode_line_spec): Ditto.
2045 * cli/cli-cmds.c (list_command): Moved here from source.c.
2046 (ambiguous_line_spec): Moved here from source.c.
2047 (_init_cli_cmds): Add definition for "list" and its alias.
2048 * Makefile.in: Update dependencies.
2049
ddd216ea
CV
20502002-09-20 Corinna Vinschen <vinschen@redhat.com>
2051
2052 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2053 with what gcc thinks is correct.
2054
6d305052
CV
20552002-09-20 Corinna Vinschen <vinschen@redhat.com>
2056
2057 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2058 multiple register push instruction.
2059
234b45d4
KB
20602002-09-19 Jim Blandy <jimb@redhat.com>
2061
2062 Add support for distinct host and target character sets.
2063 * charset.c, charset.h: New files.
2064 * c-exp.y: #include "charset.h".
2065 (yylex): Convert character and string literals to the target
2066 character set, before returning them as the semantic value of the
2067 token.
2068 * c-lang.c: #include "charset.h".
2069 (c_emit_char): Use charset-specific methods to recognize
2070 characters with backslash escape forms, to decide which characters
2071 to print literally and which to print using numeric escape
2072 sequences, and to convert target characters to host characters
2073 before printing.
2074 * utils.c: #include "charset.h".
2075 (no_control_char_error): New function.
2076 (parse_escape): Use charset-specific methods to recognize
2077 backslash escapes, parse `control character' notation, and convert
2078 characters from the host character set to the target character set.
2079 * configure.in: Set the default host character set.
2080 Check where to find iconv, and what its argument types might be.
2081 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2082 * Makefile.in (SFILES): List charset.c.
2083 (COMMON_OBS): List charset.o.
2084 (charset.o): New rule.
2085 (charset_h): New header dependency variable.
2086 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2087 (LIBICONV): New variable, set by configure.
2088 (CLIBS): Include $(LIBICONV) here.
2089 * aclocal.m4, config.in, configure: Regenerated.
2090
525d6a61
JB
20912002-09-19 Joel Brobecker <brobecker@gnat.com>
2092
2093 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2094 bison 1.35 warning.
2095
3ed93867
RE
20962002-09-19 Richard Earnshaw <rearnsha@arm.com>
2097
2098 * gdb_mbuild.sh: New file.
2099
437666f8
AC
21002002-09-19 Andrew Cagney <ac131313@redhat.com>
2101
2102 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2103
389e51db
AC
21042002-09-18 Andrew Cagney <ac131313@redhat.com>
2105
2106 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2107 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2108 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2109 valops.c, value.h: Revert previous change.
2110
3b4efeaa
MS
21112002-09-18 Michael Snyder <msnyder@redhat.com>
2112
2113 Preliminary support for Objective-C:
2114 * defs.h (language_objc): New enum value.
2115 (puts_filtered_tabular): Declaration only, exported from utils.c.
2116 (skip_quoted): Delete, declared in completer.h.
2117 * c-exp.y: Include completer.h.
2118 * p-exp.y: Ditto.
2119 * jv-exp.y: Ditto.
2120 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2121 New operator enum values.
2122 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2123 * language.c (binop_result_type): Handle language_objc case.
2124 (integral_type, character_type, string_type, boolean_type,
2125 structured_type, binop_type_check): Ditto.
2126 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2127 (struct objc_specific): Add to general_symbol_info.
2128 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2129 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2130 * parser-defs.h (struct objc_class_str): New struct type.
2131 (start_msglist, end_msglist, add_msglist): Declaration only,
2132 exported from objc-lang.c.
2133 * value.h (value_of_local, value_nsstring,
2134 call_function_by_hand_expecting_type): Exported from valops.c.
2135 * valops.c (find_function_addr): Export.
2136 (call_function_by_hand_expecting_type): New function.
2137 (value_of_local): New function.
2138 * symfile.c (init_filename_language_table): Add ".m" extension
2139 for Objective-C.
2140 * utils.c (puts_filtered_tabular): New function.
2141 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2142 (set/show demangle): Extend help-string to refer to ObjC.
2143 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2144 * stabsread.c (symbol_reference_defined): Objective-C symbols
2145 may contain colons: make allowances when scanning stabs strings
2146 for colons.
2147 (objc_find_colon): New function.
2148 * printcmd.c (address_info): If language == objc then print
2149 "self" instead of "this".
2150 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2151 OP_NSSTRING, and OP_SELF.
2152 (prefixify_subexp): Ditto.
2153 * source.c (print_source_lines): Mention objc in comment.
2154 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2155 method names.
2156
b9caf505
AC
21572002-09-18 Andrew Cagney <ac131313@redhat.com>
2158
2159 * complaints.h: Update copyright.
2160 (struct complaints): Declare.
2161 (struct complaint): Make `message' constant.
2162 (internal_complaint): Declare.
2163 (complaint): Declare.
2164 (complaint_root): Delete declaration.
2165 (symfile_complaints): Delete declaration.
2166 (struct complaints): Add opaque declaration.
2167 (clear_complaints): Add a complaints parameter.
2168 * complaints.c: Update copyright.
2169 (enum complaint_series): Define.
2170 (complaint_root): Delete.
2171 (struct complaints): Define.
2172 (complaint_sentinel, symfile_complaint_book): New variables.
2173 (symfile_explanations, symfile_complaints): New variables.
2174 New variables.
2175 (get_complaints): New function.
2176 (vcomplaint): New function.
2177 (complaint): New function.
2178 (internal_complaint): New function.
2179 (complain): Call vcomplain with symfile_complaint.
2180 (clear_complaints): Rewrite.
2181 (_initialize_complaints): Use add_setshow_command.
2182 * Makefile.in (complaints.o): Update dependencies.
2183 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2184 to call to clear_complaints.
2185 (new_symfile_objfile, reread_symbols): Ditto.
2186 (oldsyms_complaint): Delete.
2187 (empty_symtab_complaint, unknown_option_complaint): Delete.
2188 (free_named_symtabs): Use complaint instead of complain.
2189
d2e6263c
MS
21902002-09-18 Michael Snyder <msnyder@redhat.com>
2191
5fb2031a
AC
2192 Contributed by Apple Computer, Inc. Merged with current sources
2193 by Adam Fedor <fedor@doc.com> [cagney].
2194
d2e6263c
MS
2195 * objc-lang.c: First clean-up round: comments, indentation.
2196 * objc-lang.h: Ditto.
2197 * objc-lang.y: Ditto.
2198
dec43320
AC
21992002-09-18 Andrew Cagney <ac131313@redhat.com>
2200
2201 * maint.c (maintenance_internal_error): Print the parameter as the
2202 error message.
2203 (maintenance_internal_warning): New function.
2204 (_initialize_maint_cmds): Add command `maint internal-warning'.
2205
2206 * defs.h (internal_warning, internal_vwarning): Declare.
2207 * utils.c (struct internal_problem): Define.
2208 (internal_vproblem): New function.
2209 (internal_warning): New function.
2210 (internal_vwarning): New function.
2211 (internal_warning_problem, internal_error_problem): New variables.
2212 (internal_verror): Just call internal_vproblem.
2213
b81654f1
MS
22142002-09-18 Michael Snyder <msnyder@redhat.com>
2215
2216 * objc-lang.c: New file, support for Objective-C.
2217 Preliminary check-in, not yet integrated into gdb.
2218 * objc-lang.h: New file.
2219 * objc-exp.y: New file.
2220
0542c381
AC
22212002-09-18 Andrew Cagney <ac131313@redhat.com>
2222
7bda5e4a
AC
2223 * infrun.c (signal_stop_update): Convert definition to ISO C.
2224 (signal_print_update): Ditto.
2225 (signal_pass_update): Ditto.
2226 * inflow.c (terminal_save_ours): Ditto.
2227
5247b418
AC
2228 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2229 comments.
2230
fc60962c
AC
2231 * config/djgpp/fnchange.lst: Handle name clashes between
2232 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2233 bfd/coff-tic80.c.
2234
0542c381
AC
2235 * i386-linux-tdep.h: Fix tipo.
2236
5b924b9b
AF
22372002-09-18 Adam Fedor <fedor@gnu.org>
2238
2239 * MAINTAINERS: Add myself to the Write After Approval list.
2240
5afc051b
JB
22412002-09-18 Jim Blandy <jimb@redhat.com>
2242
2243 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2244 texthigh and textlow to reader-specific structs caused
2245 objfile_relocate to miss them. This is fixable, but the work that
2246 the change was supposed to prepare GDB for never got done anyway.
2247
eb944380
DC
22482002-09-18 David Carlton <carlton@math.stanford.edu>
2249
2250 * MAINTAINERS: Alphabetize Write After Approval list.
2251
948e66d9
DJ
22522002-09-18 Daniel Jacobowitz <drow@mvista.com>
2253
2254 Fix PR gdb/709
2255 * values.c (value_static_field): Call read_var_value.
2256
dc604539
AC
22572002-09-18 Andrew Cagney <ac131313@redhat.com>
2258
2259 * valops.c (hand_function_call): Align the initial stack pointer
2260 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2261 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2262 return value.
2263 * mips-tdep.c (mips_frame_align): New function.
2264 (mips_gdbarch_init): Set frame_align.
2265 * gdbarch.sh (FRAME_ALIGN): New method.
2266 * gdbarch.h, gdbarch.c: Re-generate.
2267
cb7e422f
ML
22682002-09-18 Michal Ludvig <mludvig@suse.cz>
2269
2270 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2271 registers.
2272
a094c6fb
AC
22732002-09-17 Andrew Cagney <ac131313@redhat.com>
2274
2275 * NEWS: Mention that MIPS $fp behavior changed.
2276 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2277 reference to FP_REGNUM.
2278 (mipsnbsd_cannot_store_register): Ditto.
2279 * mips-linux-nat.c: Update copyright.
2280 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2281 (mips_linux_cannot_store_register): Ditto.
2282 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2283 * config/mips/tm-mips.h: Update copyright.
2284 (FP_REGNUM): Delete macro.
2285 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2286 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2287 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2288 (mips_r3041_reg_names, mips_r3051_reg_names)
2289 (mips_r3081_reg_names): Replace "fp" with "".
2290 Fix PR gdb/480.
2291
45cf40d1
TR
22922002-09-17 Theodore A. Roth <troth@verinet.com>
2293
2294 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2295 generic_read_register_dummy() (PR gdb/703).
2296 (avr_push_return_address): #if 0 out unused vars.
2297 (avr_gdbarch_init): Enable use of avr_push_return_address().
2298
c7e701b5
MS
22992002-09-17 Michael Snyder <msnyder@redhat.com>
2300
d76ba2a5 2301 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2302 RTE will take care of it.
2303
20bcf01c
AC
23042002-09-17 Andrew Cagney <ac131313@redhat.com>
2305
2306 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2307 invalid, return SP_REGNUM.
2308
009a9971 23092002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2310
2311 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2312 point registers without sign extension.
2313
135c175f
AC
23142002-09-17 Andrew Cagney <cagney@redhat.com>
2315
2316 * blockframe.c (deprecated_read_register_dummy): Rename
2317 generic_read_register_dummy.
2318 * frame.c (frame_unwind_signed_register): New function.
2319 (frame_unwind_unsigned_register): New function.
2320 * frame.h (frame_unwind_signed_register): Declare.
2321 (frame_unwind_unsigned_register): Declare.
2322 (deprecated_read_register_dummy): Rename
2323 generic_read_register_dummy.
2324
2325 * h8300-tdep.c (h8300_frame_chain): Update.
2326 (h8300_frame_saved_pc): Update.
2327 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2328 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2329 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2330 (s390_frame_chain): Update.
2331 * v850-tdep.c (v850_find_callers_reg): Update.
2332 (v850_frame_saved_pc): Update.
2333 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2334 (m32r_find_callers_reg): Update.
2335 (m32r_frame_saved_pc): Update.
2336 * sh-tdep.c (sh_find_callers_reg): Update.
2337 (sh64_get_saved_pr): Update.
2338 (sh_init_extra_frame_info): Update.
2339 (sh_init_extra_frame_info): Update.
2340 (sh64_init_extra_frame_info): Update.
2341 (sh64_init_extra_frame_info): Update.
2342 * mcore-tdep.c (mcore_find_callers_reg): Update.
2343 (mcore_frame_saved_pc): Update.
2344 (mcore_init_extra_frame_info): Update.
2345 * i386-tdep.c (i386_frame_saved_pc): Update.
2346 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2347 (ia64_init_extra_frame_info): Update.
2348 (ia64_init_extra_frame_info): Update.
2349 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2350 * cris-tdep.c (cris_init_extra_frame_info): Update.
2351 * avr-tdep.c (avr_frame_chain): Update.
2352 (avr_init_extra_frame_info): Update.
2353 (avr_frame_saved_pc): Update.
2354 * arm-tdep.c (arm_find_callers_reg): Update.
2355 (arm_init_extra_frame_info): Update.
2356 (arm_frame_saved_pc): Update.
2357
a741e514
TT
23582002-09-17 Tom Tromey <tromey@redhat.com>
2359
2360 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2361 is "'".
2362
d1a8e808
CV
23632002-09-17 Corinna Vinschen <vinschen@redhat.com>
2364
2365 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2366 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2367 NEXT_PROLOGUE_INSN.
2368 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2369 NEXT_PROLOGUE_INSN.
2370
d9025a18
JB
23712002-09-16 Joel Brobecker <brobecker@gnat.com>
2372
2373 * osfsolib.c: Remove file, replaced by solib-osf.c.
2374 * Makefile.in: Remove compilation rules for osfsolib.c.
2375
1b2ef1b6
DC
23762002-09-16 David Carlton <carlton@math.stanford.edu>
2377
2378 * cp-valprint.c (cp_print_class_method): Correct args to
2379 check_stub_method_group.
2380
928e48af
CV
23812002-09-16 Corinna Vinschen <vinschen@redhat.com>
2382
2383 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2384 `set architecture'. Unify naming convention of functions.
2385 (h8300_skip_prologue): Improve prologue analysis.
2386 (h8300_push_arguments): Rewritten to more closely match GCC's
2387 bizarre argument-passing behavior, along with the comment describing
2388 said behavior.
2389 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2390 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2391 sim, remote-e7000.c, remote-hms.c and remote.c
2392
5e3397bb
MK
23932002-09-15 Mark Kettenis <kettenis@gnu.org>
2394
2395 * i386-tdep.c (gdb_print_insn_i386): Removed.
2396 (i386_print_insn): New function.
2397 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2398 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2399 tm_print_insn_info.
2400
f710f4fc
MK
24012002-09-14 Mark Kettenis <kettenis@gnu.org>
2402
2403 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2404 zero.
2405
db54fef4
CV
24062002-09-14 Corinna Vinschen <vinschen@redhat.com>
2407
2408 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2409 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2410 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2411
2becadee
CF
24122002-09-13 Christopher Faylor <cgf@redhat.com>
2413
2414 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2415
de17c821
DJ
24162002-09-13 Daniel Jacobowitz <drow@mvista.com>
2417
2418 * gdbtypes.c (check_stub_method): Make static.
2419 (check_stub_method_group): New function.
2420 * gdbtypes.h: Update prototypes.
2421 * cp-support.c: New file.
2422 * cp-support.h: New file.
2423
2424 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2425 (update_method_name_from_physname): New function.
2426 (read_member_functions): Correct method names for operators
2427 and v3 constructors/destructors. Separate v2 constructors and
2428 destructors.
2429 * Makefile.in (stabsread.o): Update dependencies.
2430 (SFILES): Add cp-support.c.
2431 (COMMON_OBS): Add cp-support.o.
2432 (cp_support_h, cp-support.o): Add.
2433
2434 * cp-valprint.c (cp_print_class_method): Call
2435 check_stub_method_group instead of check_stub_method. Remove
2436 extraneous QUITs.
2437 * p-valprint.c (pascal_object_print_class_method): Likewise.
2438 * valops.c (search_struct_method): Likewise.
2439 (find_method_list, value_struct_elt_for_reference): Likewise.
2440
e76cff22
AC
24412002-09-13 Andrew Cagney <cagney@redhat.com>
2442
2443 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2444 * gdbarch.h, gdbarch.c: Regenerate.
2445
905abb3f
AC
24462002-09-13 Andrew Cagney <ac131313@redhat.com>
2447
2448 * frame.c (find_saved_register): Delete function.
2449 * frame.h (find_saved_register): Delete declaration.
2450 Fix PR gdb/631.
2451
64159455
AC
2452Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2453
2454 * mips-tdep.c (read_next_frame_reg): Re-hack using
2455 frame_register_unwind.
2456
795e1e11
AC
2457Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2458
2459 * mips-tdep.c (mips_get_saved_register): Re-hack using
2460 frame_register_unwind.
2461
5720643c
JB
24622002-09-12 Joel Brobecker <brobecker@gnat.com>
2463
2464 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2465 vector. Will be useful for Interix.
2466 * gdbarch.h, gdbarch.c: Regenerate.
2467
2468 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2469 name of the malloc function by NAME_OF_MALLOC.
2470
3bada2a2
JB
24712002-09-12 Joel Brobecker <brobecker@gnat.com>
2472
2473 * value.h (find_function_in_inferior): Add const keyword to
2474 one of the parameters. Allows us to invoke this function with
2475 a const char *.
2476 * valops.c (find_function_in_inferior): Likewise.
2477
3db26b01
JB
24782002-09-12 Joel Brobecker <brobecker@gnat.com>
2479
2480 * exec.c (xfer_memory): Fix compilation warning with old versions
2481 of GCC.
2482 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2483
17c5ed2c
DC
24842002-09-12 David Carlton <carlton@math.stanford.edu>
2485
2486 * symtab.h: Run through gdb_indent.h.
2487 Add 2002 to Copyright year list.
2488
ecd1107e
AM
24892002-09-12 Alan Modra <amodra@bigpond.net.au>
2490
2491 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2492 mach constants.
2493 * MAINTAINERS: Add myself to write after approval list.
2494
e64f66d1
JB
24952002-09-11 J. Brobecker <brobecker@gnat.com>
2496
2497 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2498
f9395794
JB
24992002-09-11 J. Brobecker <brobecker@gnat.com>
2500
2501 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2502 Interix.
2503
1a303dec
MS
25042002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2505
2506 * procfs.c (do_detach): Clear current signal, not just fault.
2507 Corrects problem with breakpoint trap signal leaking to detached
2508 process on Tru64.
2509
c0219d42
MS
25102002-09-10 Michael Snyder <msnyder@redhat.com>
2511
2512 * buildsym.c (finish_block): Protect against null pointer.
2513
9d84ac84
AC
25142002-09-10 Andrew Cagney <cagney@redhat.com>
2515
2516 * infcmd.c (default_print_registers_info): Send all output to
2517 ``file'' instead of ``gdb_stdout''.
2518
77d8f2b4
MS
25192002-09-10 Michael Snyder <msnyder@redhat.com>
2520
2521 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2522 LONGEST, and use signed register read (addresses are sign-
2523 extended for mips).
2524
99656a61
SC
25252002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2526
2527 * event-loop.c (gdb_do_one_event): Make public.
2528 * event-loop.h (gdb_do_one_event): Declare.
2529
da12f4d8
JL
25302002-09-10 Jeff Law <law@redhat.com>
2531
2532 * infttrace.c (child_resume): Simplify and rework to avoid
2533 TT_PROC_CONTINUE.
2534
d0aee0c4
FF
25352002-09-09 Fred Fish <fnf@intrinsity.com>
2536
2537 * printcmd.c (print_scalar_formatted): "len" is the number of
2538 target bytes, NOT the number of target bits.
2539
7cb3ec5e
EZ
25402002-09-09 Elena Zannoni <ezannoni@redhat.com>
2541
2542 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2543 * top.c (init_main): Set rl_terminal_name.
2544
4dc81987
AS
25452002-09-08 Aidan Skinner <aidan@velvet.net>
2546
2547 * ada-lang.c (ada_array_bound, ada_type_match,
2548 _initialize_ada_language): Fix K&R definitions.
2549 * ada-tasks.c (get_current_task): Fix K&R definitions.
2550 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2551
842330b4
CF
25522002-09-07 Christopher Faylor <cgf@redhat.com>
2553
2554 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2555 Add XP.
2556
43156d82
MK
25572002-09-06 Mark Kettenis <kettenis@gnu.org>
2558
66da5fd8
MK
2559 * i386-tdep.c (i386_register_virtual_type,
2560 i386_register_convertible, i386_register_convert_to_virtual,
2561 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2562 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2563 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2564 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2565 Don't set push_arguments twice.
2566
4b218c18
MK
2567 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2568 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2569 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2570 sigtramp_end to NULL.
2571 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2572 defines.
2573 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2574
4cc314d5
MK
2575 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2576 whitespace.
2577
43156d82
MK
2578 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2579 * gdbarch.h, gdbarch.c: Re-generate.
2580 * blockframe.c (find_pc_sect_partial_function): Convert to use
2581 SIGTRAMP_START_P predicate.
2582
6672060b
MS
25832002-09-05 Michael Snyder <msnyder@redhat.com>
2584
a90c3637
MS
2585 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2586 generic_dummy_frame method and old method. Also distinguish
2587 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2588 (arm_extract_return_value): Use new regcache method.
a90c3637 2589
6672060b
MS
2590 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2591 adjustment that doesn't conform to the ABI.
2592 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2593 saved regcache, not from current regcache.
2594
299ffc64
AC
25952002-09-05 Andrew Cagney <ac131313@redhat.com>
2596
2597 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2598 * README: Update.
2599
a3a2ee65
JT
26002002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2601
2602 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2603 if arm_apcs_32 is false.
2604
2bc7eea9
AC
26052002-09-04 Andrew Cagney <ac131313@redhat.com>
2606
2607 GDB 5.3 branch created.
2608
8a55a7c5
TR
26092002-09-03 Theodore A. Roth <troth@verinet.com>
2610
2611 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2612 generic_unwind_get_saved_register.
2613
e26fb1d7
DC
26142002-09-03 David Carlton <carlton@math.stanford.edu>
2615
2616 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2617 argument (PR gdb/653). Update call to smash_to_method_type.
2618 (read_structure_scope): Update call to dwarf2_add_member_fn.
2619
30d52491
ML
26202002-09-03 Michal Ludvig <mludvig@suse.cz>
2621
2622 * x86-64-linux-tdep.c: Include gdb_string.h
2623 * x86-64-linux-nat.c: Ditto.
2624
06891d83
JT
26252002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2626
2627 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2628 when YYDEBUG is set to 1.
2629 * c-exp.y: Likewise.
2630 * f-exp.y: Likewise.
2631 * jv-exp.y: Likewise.
2632 * m2-exp.y: Likewise.
2633 * p-exp.y: Likewise.
2634
7d400e77
JT
26352002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2636
2637 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2638 dependency list.
2639 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2640 solib_svr4_fetch_link_map_offsets to
2641 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2642 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2643 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2644 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2645 solib-svr4.o, and solib-legacy.o.
2646 * config/i386/tm-nbsd.h: Include solib.h.
2647
704a27c4
JT
26482002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2649
2650 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2651 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2652 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2653 comment noting that this needs its own target configuration.
2654 * config/i386/nbsd.mt: New file.
2655 * config/i386/nbsdaout.mt: Remove.
2656 * config/i386/nbsdelf.mt: Ditto.
2657 * config/i386/tm-nbsdaout.h: Ditto.
2658
d66198e1
JT
26592002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2660
2661 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2662 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2663 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2664 tdep->sigtramp_end.
2665 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2666 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2667 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2668
3cac699e
JT
26692002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2670
2671 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2672 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2673 * i386-tdep.h (i386bsd_init_abi): New prototype.
2674 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2675 function declaration.
2676 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2677 for NetBSD-a.out or NetBSD-ELF.
2678 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2679 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2680 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2681 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2682 and nbsd-tdep.h.
2683 (i386nbsd_pc_in_sigtramp): New function.
2684 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2685 i386nbsd_pc_in_sigtramp.
2686 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2687 and i386nbsdelf_init_abi OS ABI handlers.
2688 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2689 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2690
7010ca0a
MK
26912002-09-02 Mark Kettenis <kettenis@gnu.org>
2692
2693 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2694 registers if the target really has them.
2695
6dd93b72
JT
26962002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2697
2698 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2699 than nbsd-tdep.h.
2700
2ca8ae21
JT
27012002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2702
2703 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2704 list.
2705 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2706 (alphanbsd_skip_sigtramp_frame): New functions.
2707 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2708 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2709 to alphanbsd_sigcontext_addr.
2710
3d9b49b0
JT
27112002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2712
2713 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2714 list.
2715 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2716 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2717 nbsd_pc_in_sigtramp.
2718 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2719 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2720 * nbsd-tdep.c: Include gdb_string.h.
2721 (nbsd_pc_in_sigtramp): New function.
2722 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2723 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2724 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2725 ppcnbsd_pc_in_sigtramp.
2726 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2727 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2728 shnbsd_pc_in_sigtramp.
2729 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2730 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2731 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2732
c860120c
PM
27332002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2734
2735 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2736 watchpoints to NULL.
2737 (insert_breakpoints): set val field of watchpoints if NULL.
2738
2739
c7612d53
JB
27402002-08-29 Jim Blandy <jimb@redhat.com>
2741
2742 * symtab.c (lookup_symbol_aux): In the cases where we find a
2743 minimal symbol of an appropriate name and use its address to
2744 select a symtab to read and search, use `name' (as passed to us)
2745 as the demangled name when searching the symtab's global and
2746 static blocks, not the minsym's name.
2747
66609862
KS
27482002-08-29 Keith Seitz <keiths@redhat.com>
2749
2750 * stack.c (print_frame_info_base): Always set current_source_symtab
2751 and current_source_line.
2752
151fefe2
JB
27532002-08-29 Donn Terry <donnte@microsoft.com>
2754
2755 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2756
bfb3754e
KS
27572002-08-28 Keith Seitz <keiths@redhat.com>
2758
2759 * stack.c (select_frame): Add FIXME concerning selected-frame
2760 events.
2761 (select_frame_command): Send selected-frame-level-changed
2762 event notification, but only if the level actually changed.
2763 (up_silently_base): Add selected-frame-level-changed event
2764 notification.
2765 (down_silently_base): Likewise.
2766
e822a2a0
AC
27672002-08-28 Andrew Cagney <ac131313@redhat.com>
2768
2769 * Makefile.in: Update dependencies for all gdb/*.c files.
2770
309367d4
TT
27712002-08-27 Tom Tromey <tromey@redhat.com>
2772
2773 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2774 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2775 Update dependencies.
2776 * i387-tdep.c: Include gdb_string.h.
2777 * osabi.c: Likewise.
2778 * i386-linux-nat.c: Likewise.
2779 * lin-lwp.c: Likewise.
2780 * ax-gdb.c: Likewise.
2781 * signals/signals.c: Likewise.
2782 * jv-valprint.c: Likewise.
2783 * p-lang.c: Likewise.
2784 * c-valprint.c: Likewise.
2785 * cp-abi.c: Likewise.
2786
e1507482
EZ
27872002-08-27 Elena Zannoni <ezannoni@redhat.com>
2788
2789 * cli/cli-script.h (copy_command_lines): Export.
2790 * breakpoint.c: Include cli/cli-script.h.
2791 * Makefile.in (breakpoint.o): Update dependencies.
2792
c6510018
MS
27932002-08-26 Michael Snyder <msnyder@redhat.com>
2794
2795 * breakpoint.c (insert_breakpoints): Protect all references
2796 to 'process_warning'. Shorten long lines.
2797
c2b8ed2c
MS
27982002-08-26 Joel Brobecker <brobecker@gnat.com>
2799
2800 * cli/cli-script.c (copy_command_lines): New function.
2801 * defs.h (copy_command_lines): Export.
2802 * testsuite/gdb.base/commands.exp: New tests for commands
2803 attached to a temporary breakpoint, and for commands that
2804 delete the breakpoint they are attached to.
2805
28062002-08-26 Michael Snyder <msnyder@redhat.com>
2807
2808 * breakpoint.c (bpstat_stop_status): Instead of copying the
2809 pointer to the breakpoint commands struct, make a new copy
2810 of the struct and point to that.
2811 (bpstat_clear): Free the commands struct.
2812 (bpstat_clear_actions): Free the commands struct.
2813 (bpstat_do_actions): Free the command actions. Also execute
2814 the local cleanups, instead of deleting them.
2815 (delete_breakpoint): Leave the commands field of the bpstat
2816 chain alone -- it will be freed later.
2817
64b84175
KB
28182002-08-26 Kevin Buettner <kevinb@redhat.com>
2819
2820 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2821 deleted in 2002-08-20 commit. This function is still used by
2822 ppc-linux-nat.c.
2823
55970da6
KS
28242002-08-26 Keith Seitz <keiths@redhat.com>
2825
2826 * gdb-events.sh: Add selected-frame-level-changed event.
2827 * gdb-events.c: Regenerated.
2828 * gdb-events.h: Regenerated.
2829
a790ad35
SC
28302002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2831
2832 Fix PR gdb/393:
2833 * inflow.c (terminal_save_ours): New function to save terminal
2834 settings.
2835 * inferior.h (terminal_save_ours): Declare.
2836 * target.c (debug_to_terminal_save_ours): New function.
2837 (cleanup_target): Defaults to_terminal_save_ours.
2838 (update_current_target): Inherit to_terminal_save_ours.
2839 (setup_target_debug): Set to_terminal_save_ours.
2840 * target.h (target_terminal_save_ours): New to save terminal settings.
2841 (target_ops): New member to_terminal_save_ours.
2842 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2843 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2844 * inftarg.c (init_child_ops): Likewise.
2845 * m3-nat.c (init_m3_ops): Likewise.
2846 * procfs.c (init_procfs_ops): Likewise.
2847 * wince.c (init_child_ops): Likewise.
2848 * win32-nat.c (init_child_ops): Likewise.
2849 * sol-thread.c (init_sol_thread_ops): Likewise.
2850
c00dcbe9
MK
28512002-08-26 Mark Kettenis <kettenis@gnu.org>
2852
3d7f4f49
MK
2853 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2854 use regcache_* functions.
2855 (i386_gdbarch_init): Set store_return_value instead of
2856 deprecated_store_return_value.
2857
c00dcbe9
MK
2858 * regcache.c (regcache_raw_write_signed,
2859 regcache_raw_write_unsigned): New functions.
2860 * regcache.h (regcache_raw_write_signed,
2861 regcache_raw_write_unsigned): New prototypes.
2862
0e0d15ca
AC
28632002-08-25 Andrew Cagney <ac131313@redhat.com>
2864
2865 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2866 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2867 source file dependencies. Cleanup corresponding generator rules.
2868
d3b22ed5
AC
28692002-08-25 Andrew Cagney <ac131313@redhat.com>
2870
2871 * regcache.h (register_offset_hack): Declare.
2872 (regcache_cooked_read_using_offset_hack): Declare.
2873 (regcache_cooked_write_using_offset_hack): Declare.
2874
2875 * regcache.c (register_offset_hack): New function.
2876 (regcache_cooked_read_using_offset_hack): New function.
2877 (regcache_cooked_write_using_offset_hack): New function.
2878 (regcache_dump): Check that the registers, according to their
2879 offset, are packed hard against each other.
2880 (cooked_xfer_using_offset_hack): New function.
2881
bb425013
AC
28822002-08-25 Andrew Cagney <ac131313@redhat.com>
2883
2884 * regcache.c (struct regcache_descr): Add field register_type.
2885 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2886 in as a parameter
2887 (init_regcache_descr): Initialize register_type. Pass the descr
2888 to init_legacy_regcache_descr. Use register_type instead of
2889 REGISTER_VIRTUAL_TYPE.
2890 (register_type): New function.
2891 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2892 * regcache.h (register_type): Declare.
2893
d0403e00
AC
28942002-08-25 Andrew Cagney <ac131313@redhat.com>
2895
2896 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2897 instead of deprecated_store_return_value. Fix fallout from
2898 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2899
0ed04cce
AC
29002002-08-25 Andrew Cagney <ac131313@redhat.com>
2901
2902 * regcache.c (max_register_size): New function.
2903 (init_legacy_regcache_descr): Ensure that max_register_size is
2904 large enough for REGISTER_VIRTUAL_SIZE.
2905 * regcache.h (max_register_size): Declare.
2906
46d79c04
AC
29072002-08-24 Andrew Cagney <ac131313@redhat.com>
2908
2909 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2910 store_return_value.
2911 (e500_extract_return_value): Change type of valbuf pointer to
2912 void.
2913
853c7bd0
MK
29142002-08-24 Mark Kettenis <kettenis@gnu.org>
2915
cd87e769
MK
2916 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2917 workaround.
2918
853c7bd0
MK
2919 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2920 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2921 long long) to prevent compiler warning on 64-bit systems.
2922
ebba8386
AC
29232002-08-23 Andrew Cagney <cagney@redhat.com>
2924
2925 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2926 (DEPRECATED_STORE_RETURN_VALUE): New method.
2927 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2928 * gdbarch.h, gdbarch.c: Re-generate.
2929
2930 * values.c (set_return_value): Pass current_regcache to
2931 STORE_RETURN_VALUE.
2932 * arch-utils.h (legacy_store_return_value): Declare.
2933 * arch-utils.c (legacy_store_return_value): New function.
2934 (legacy_extract_return_value): Update parameters.
2935
2936 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2937 STORE_RETURN_VALUE.
2938 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2939 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2940 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2941 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2942 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2943 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2944 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2945 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2946 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2947 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2948
2949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2950 * i386-tdep.c (i386_extract_return_value): Update.
2951 * arch-utils.c (legacy_extract_return_value): Update.
2952 * frv-tdep.c (frv_gdbarch_init): Update.
2953 * cris-tdep.c (cris_gdbarch_init): Update.
2954 * d10v-tdep.c (d10v_gdbarch_init): Update.
2955 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2956 * m68k-tdep.c (m68k_gdbarch_init): Update.
2957 * mcore-tdep.c (mcore_gdbarch_init): Update.
2958 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2959 * s390-tdep.c (s390_gdbarch_init): Update.
2960 * sparc-tdep.c (sparc_gdbarch_init): Update.
2961 * sh-tdep.c (sh_gdbarch_init): Update.
2962 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2963 * v850-tdep.c (v850_gdbarch_init): Update.
2964 * avr-tdep.c (avr_gdbarch_init): Update.
2965 * ia64-tdep.c (ia64_gdbarch_init): Update.
2966 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2967 * vax-tdep.c (vax_gdbarch_init): Update.
2968 * alpha-tdep.c (alpha_gdbarch_init): Update.
2969 * arm-tdep.c (arm_gdbarch_init): Update.
2970 * mips-tdep.c (mips_gdbarch_init): Update.
2971 * i386-tdep.c (i386_gdbarch_init): Update.
2972
5bd8c6d0
AC
29732002-08-23 Andrew Cagney <ac131313@redhat.com>
2974
2975 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2976 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2977
e73e1724
MK
29782002-08-24 Mark Kettenis <kettenis@gnu.org>
2979
2980 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2981 problems.
2982
3e6564e1
JB
29832002-08-23 Joel Brobecker <brobecker@gnat.com>
2984
2985 * infrun.c (handle_inferior_event): Move a comment outside of a
2986 function call, in order to avoid indent reformatting this part
2987 of the code in an unreadable way.
2988
81d0cc19
GS
29892002-08-23 Grace Sainsbury <graces@redhat.com>
2990
2991 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2992 when breakpoints fail. Move general breakpoint error messages to
2993 insert_breakpoints.
2994 * breakpoint.c (insert_breakpoints): Change warnings when
2995 breakpoints are nto inserted to specify the type. Remove call to
2996 memory_error when hardware breakpoints can't be inserted. Remove
2997 multiple calls to warning so all messages are sent to the user at
2998 once.
2999 (delete_breakpoints): Make insert error messsages more explicit.
3000
17574093
DJ
30012002-08-23 Daniel Jacobowitz <drow@mvista.com>
3002
3003 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3004 gdbserver/ChangeLog.
3005
8acc2935
MK
30062002-08-23 Mark Kettenis <kettenis@gnu.org>
3007
dfe01d39
MK
3008 * i386-tdep.c: Include "objfiles.h".
3009 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3010 skip_trampoline_code.
3011 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3012 (CPLUS_MARKER): Define to '.'.
3013
8acc2935
MK
3014 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3015 member.
3016 (linux_corefile_thread_callback): Increase args->num_notes.
3017 (linux_make_note_section): Initialize thread_args.num_notes, and
3018 use it to determine whether notes for any threads were created.
3019
151fefe2 30202002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3021
3022 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3023 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3024 and PCUNKILL.
3025 (write_with_trace): Conditionalize out the switch branch handling
3026 PCSHOLD if the corresponding macro is not defined. Likewise for
3027 PRSABORT and PRSTOP.
3028 This change will be needed by the Interix port.
3029
e1507482
EZ
30302002-08-22 Elena Zannoni <ezannoni@redhat.com>
3031
3032 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3033 write_register wherever possible instead of manipulating the
3034 register bytes directly.
3035 Assign VALUE_CONTENTS to a variable and use that.
3036 The GPR numbers are now dependent on the architecture.
3037
96ff0de4
EZ
30382002-08-22 Elena Zannoni <ezannoni@redhat.com>
3039
3040 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3041 ev_offset fields.
3042 (skip_prologue): Add support for BookE/e500 instructions.
3043 (e500_extract_return_value): New function.
3044 (frame_get_saved_regs): Add support for saving ev registers and
3045 pseudo gpr's.
3046 (e500_store_return_value): New function.
3047 (rs6000_gdbarch_init): Move up default intializations of
3048 deprecated_extract_return_value and store_return_value. Overwrite
3049 init of store_return_value with e500 specific version.
3050 Set extract_return_value for e500.
3051
fbefca5b
EZ
30522002-08-22 Elena Zannoni <ezannoni@redhat.com>
3053
3054 * blockframe.c (generic_call_dummy_register_unwind): Use
3055 regcache_cooked_read to catch cases in which the variable is
3056 stored in a pseudo register.
3057
4d210288
AC
30582002-08-22 Andrew Cagney <cagney@redhat.com>
3059
3060 * NEWS: Mention that the i960 has been made obsolete.
3061 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3062 i960-tdep.c
3063 (remote-nrom.o): Obsolete target.
3064 (remote-nindy.o, i960-tdep.o): Ditto.
3065 * remote-nrom.c: Make file obsolete.
3066 * remote-nindy.c, remote-vx960.c: Ditto.
3067 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3068 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3069 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3070 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3071 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3072 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3073 i960-*-vxworks* obsolete.
3074 * MAINTAINERS: Note that the i960 is obsolete.
3075
6c0c456d
CV
30762002-08-21 Corinna Vinschen <vinschen@redhat.com
3077
3078 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3079 detach to allow reinitialization.
3080
9f9d12b3
AC
30812002-08-22 Andrew Cagney <ac131313@redhat.com>
3082
3083 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3084 attempt).
3085
ebeb39fe
JB
30862002-08-22 Jim Blandy <jimb@redhat.com>
3087
3088 * coffread.c (coff_symfile_read): Don't try to read the line
3089 number table from disk if the image file doesn't have a symbol
3090 table; we'll never actually look at the info anyway, and Windows
3091 ships DLL's with bogus file offsets for the line number data.
3092
5bf1c677
EZ
30932002-08-21 Elena Zannoni <ezannoni@redhat.com>
3094
3095 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3096 an e500 executable.
3097
71b8ef93
MS
30982002-08-21 Michael Snyder <msnyder@redhat.com>
3099
3100 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3101 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3102 (DEFAULT_MIPS_TYPE): Delete unused macro.
3103 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3104 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3105
d174216d
JB
31062002-08-21 Jim Blandy <jimb@redhat.com>
3107
3108 * valops.c (value_cast): Simplify and correct logic for doing a
3109 static cast from a pointer to a base class to a pointer to a
3110 derived class.
3111
0ab7a791
AC
31122002-08-21 Andrew Cagney <ac131313@redhat.com>
3113
3114 * infcmd.c (default_print_registers_info): Replace
3115 do_registers_info.
3116 (registers_info): Use gdbarch_print_registers_info instead of
3117 DO_REGISTERS_INFO.
3118 * inferior.h (default_print_registers_info): Replace
3119 do_registers_info.
3120 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3121 (DO_REGISTERS_INFO): Change to a predicate function.
3122 * gdbarch.h, gdbarch.c: Regenerate.
3123
e23792cc
KS
31242002-08-21 Keith Seitz <keiths@redhat.com>
3125
3126 * gdb-events.sh: Add target-changed event.
3127 * gdb-events.c: Regenerated.
3128 * gdb-events.c: Regenerated.
3129 * valops.c (value_assign): Add target-changed event notification
3130 to inlval_register, lval_memory, and lval_reg_frame_relative.
3131
9fb14e79
JB
31322002-08-21 Joel Brobecker <brobecker@gnat.com>
3133
3134 * NEWS: Add an entry regarding the improvement of the next/step
3135 operation on Alpha Tru64 multi-processor machines.
3136
6d39a69f
AC
31372002-08-21 Andrew Cagney <ac131313@redhat.com>
3138
72acd513
AC
3139 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3140 directores.
342af04b 3141 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3142 * Makefile.in (install-gdbtk): Move to install section.
3143 (rdi-share/libangsd.a): Move to end of file.
3144
fa5f27c7
AC
31452002-08-19 Andrew Cagney <ac131313@redhat.com>
3146
3147 * frame.c (frame_register_unwind): When a register, set addrp to
3148 the register's byte.
3149
5a89d8aa
MS
31502002-08-20 Michael Snyder <msnyder@redhat.com>
3151
3152 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3153 used locally, so move them from the target machine header to here.
3154 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3155 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3156 Make static.
3157 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3158
822e978b
AC
31592002-08-20 Andrew Cagney <cagney@redhat.com>
3160
3161 * NEWS: Mention that the Apollo line was made obsolete.
3162 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3163 m68*-hp-hpux* obsolete.
3164 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3165 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3166 * buildsym.c (make_blockvector): Make static.
3167 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3168 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3169 (ALLDEPFILES): Remove dstread.c.
3170 (dstread.o): Obsolete make rule.
3171 * dstread.c: Makefile obsolete.
3172 * dst.h: Ditto.
3173 * config/m68k/hp300hpux.mt: Ditto.
3174 * config/m68k/hp300hpux.mh: Ditto.
3175 * config/m68k/hp300bsd.mt: Ditto.
3176 * config/m68k/hp300bsd.mh: Ditto.
3177 * config/m68k/apollo68b.mt: Ditto.
3178 * config/m68k/apollo68v.mh: Ditto.
3179 * config/m68k/apollo68b.mh: Ditto.
3180
e41b17f0
MS
31812002-08-20 Michael Snyder <msnyder@redhat.com>
3182
3183 * mips-tdep.c (mips_in_return_stub): Make static.
3184 (mips_gdbarch_init): Set in_solib_return_trampoline.
3185 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3186
d50355b6
MS
31872002-08-20 Michael Snyder <msnyder@redhat.com>
3188
3189 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3190 * gdbarch.c, gdbarch.h: Regenerate.
3191 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3192 Add.
3193 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3194
757a7cc6
MS
31952002-08-20 Michael Snyder <msnyder@redhat.com>
3196
3197 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3198 (mips_gdbarch_init): Set skip_trampoline_code,
3199 in_solib_call_trampoline.
3200 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3201 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3202
c8001721
EZ
32032002-08-20 Elena Zannoni <ezannoni@redhat.com>
3204
3205 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3206
3207 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3208 vector type for ev registers.
3209 (e500_pseudo_register_read): New function.
3210 (e500_pseudo_register_write): New function.
3211 (e500_dwarf2_reg_to_regnum): New function.
3212 (PPC_UISA_NOFP_SPRS): New macro.
3213 (PPC_EV_REGS): New macro.
3214 (PPC_GPRS_PSEUDO_REGS): New macro.
3215 (registers_e500): New register set for e500.
3216 (variants): Add e500 variant.
3217 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3218 before setting architectural dependent variations. Initialize ev
3219 registers numbers. Add case for e500 architecture. Set the
3220 number of pseudo registers.
3221
64366f1c
EZ
32222002-08-20 Elena Zannoni <ezannoni@redhat.com>
3223
3224 * rs6000-tdep.c: Clean up comments.
3225
7e78f0ca
AC
32262002-08-20 Andrew Cagney <cagney@redhat.com>
3227
3228 * h8300-tdep.c: Re-indent file.
3229
697f7479
JB
32302002-08-20 Jim Blandy <jimb@redhat.com>
3231
3232 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3233 default for this.
697f7479 3234
e86ae29f
KS
32352002-08-20 Keith Seitz <keiths@redhat.com>
3236
3237 * breakpoints.c (watch_command_1): Use internal breakpoint
3238 when setting a watchpoint_scope breakpoint.
3239
216b504f
EZ
32402002-08-20 Elena Zannoni <ezannoni@redhat.com>
3241
3242 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3243 (build_builtin_type_vec64i): Ditto.
3244 (build_builtin_type_vec128): Ditto.
3245 (build_builtin_type_vec128i): Ditto.
3246
f7ab6ec6
MS
32472002-08-19 Michael Snyder <msnyder@redhat.com>
3248
3249 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3250 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3251 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3252 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3253 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3254 CALL_DUMMY_ADDRESS): Delete.
3255 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3256 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3257 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3258 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3259 push_return_address.
3260 (mips_register_raw_size, mips_eabi_use_struct_convention,
3261 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3262 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3263 mips_init_extra_frame_info, mips_eabi_push_arguments,
3264 mips_n32n64_push_arguments, mips_push_return_address,
3265 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3266 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3267
b5d1566e
MS
32682002-08-19 Michael Snyder <msnyder@redhat.com>
3269
3270 * mips-tdep.c (mips_frame_num_args): New function.
3271 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3272 frame_saved_pc, frame_args_address, frame_locals_address,
3273 frame_num_args, and frame_args_skip.
3274 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3275 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3276 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3277 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3278
2f1488ce
MS
32792002-08-20 Michael Snyder <msnyder@redhat.com>
3280
3281 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3282 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3283 * mips-tdep.c (mips_store_struct_return): New function.
3284 (mips_extract_struct_value_address): New function.
3285 (mips_gdbarch_init): Set store_struct_return and
3286 extract_struct_value_address.
3287
41ff2da1
DC
32882002-08-20 David Carlton <carlton@math.stanford.edu>
3289
3290 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3291 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3292 (read_file_scope): Check that line_header is nonzero before
3293 decoding macro information.
3294
e5451d58
MK
32952002-08-20 Mark Kettenis <kettenis@gnu.org>
3296
3297 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3298 flag the general-purpose registers as floating-point on targets
3299 that don't support the floating-point registers.
3300
4a6daafa
EZ
33012002-08-20 Elena Zannoni <ezannoni@redhat.com>
3302
3303 * rs6000-tdep.c (altivec_register_p): Delete.
3304 (rs6000_do_altivec_registers): Delete.
3305 (rs6000_altivec_registers_info): Delete.
3306 (rs6000_do_registers_info): Delete.
3307 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3308 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3309
ab4327e0
EZ
33102002-08-20 Elena Zannoni <ezannoni@redhat.com>
3311
3312 * infcmd.c (do_registers_info): Print vector registers in hex
3313 format only.
3314 (print_vector_info): Check that printing registers
3315 makes sense.
3316 (print_float_info): Ditto.
3317
cb1d2653
AC
33182002-08-20 Andrew Cagney <ac131313@redhat.com>
3319
3320 * mips-tdep.c (mips_gdbarch_init): Update.
3321 (mips_o32_extract_return_value): Rewrite.
3322 (mips_o32_store_return_value): Rewrite.
3323 (mips_o32_xfer_return_value): New function.
3324 (mips_xfer_register): Tweak debug print message. Allow for
3325 buf_offset when dumping the value transfered.
3326
dfc3d9b2
AC
33272002-08-20 Andrew Cagney <ac131313@redhat.com>
3328
3329 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3330 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3331 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3332 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3333 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3334
7807aa61
MS
33352002-08-14 Michael Snyder <msnyder@redhat.com>
3336
3337 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3338
489461e2
EZ
33392002-08-19 Elena Zannoni <ezannoni@redhat.com>
3340
3341 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3342 register.
3343 (P): New macro to define a register as a pseudo register.
3344 (R, R4, R8, R16, FR32, R64, R0): Updated.
3345 (struct variant): Add new fields for number of pseudo registers
3346 and number of total registers.
3347 (tot_num_registers): New macro replacing....
3348 (num_registers): ...deleted macro.
3349 (num_registers): New function.
3350 (num_pseudo_registers): New function.
3351 (variants): Update all variants to intialize new fields correctly.
3352 Postpone initialization of number of pseudo regs and real regs.
3353 (init_variants): New function.
3354 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3355 registers offsets.
3356
fcaffe4c
DC
33572002-08-19 David Carlton <carlton@math.stanford.edu>
3358
2c2738a0
DC
3359 * valops.c (search_struct_field): Change error message to treat
3360 return value of 0 from value_static_field as meaning that field is
3361 optimized out.
3362 (value_struct_elt_for_reference): Ditto.
3363 * values.c (value_static_field): Treat an unresolved location the
3364 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3365 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3366 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3367 * MAINTAINERS: Add self to Write After Approval list.
3368
88658117
AC
33692002-08-19 Andrew Cagney <ac131313@redhat.com>
3370
3371 * mips-tdep.c (mips_xfer_register): New function.
3372 (mips_n32n64_extract_return_value): Rewrite.
3373 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3374 instead of deprecated_extract_return_value.
3375
21283beb
EZ
33762002-08-19 Elena Zannoni <ezannoni@redhat.com>
3377
3378 * rs6000-tdep.c (TDEP): Delete macro.
3379 (branch_dest): Replace use of TDEP macro with its body.
3380 (rs6000_pop_frame): Ditto.
3381 (rs6000_push_arguments): Ditto.
3382 (rs6000_skip_trampoline_code): Ditto.
3383 (rs6000_frame_saved_pc): Ditto.
3384 (rs6000_frame_chain): Ditto.
3385 (rs6000_register_name): Ditto.
3386 (rs6000_register_byte): Ditto.
3387 (rs6000_register_raw_size): Ditto.
3388 (rs6000_register_virtual_type): Ditto.
3389 (rs6000_register_convertible): Ditto.
3390 (rs6000_convert_from_func_ptr_addr): Ditto.
3391
bf072999
DJ
33922002-08-19 Daniel Jacobowitz <drow@mvista.com>
3393
3394 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3395 conditionally.
3396 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3397 MIPS_LINUX_JB_ELEMENT_SIZE.
3398 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3399 for MAX_REGISTER_RAW_SIZE arrays.
3400 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3401 MIPS_LINUX_JB_ELEMENT_SIZE.
3402
9b949a49
PM
34032002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3404
3405 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3406
6d3e79c6
AS
34072002-08-19 Aidan Skinner <aidan@velvet.net>
3408
3409 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3410 ada-valprint.c ada-tasks.c.
3411 (YYFILES): Add ada-exp.y.
3412 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3413 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3414 (ada-exp.tab.o): New target.
3415
06c0b04e
AC
34162002-08-18 Andrew Cagney <ac131313@redhat.com>
3417
3418 * regcache.c (regcache_xfer_part): New function.
3419 (regcache_raw_read_part): New function.
3420 (regcache_raw_write_part): New function.
3421 (regcache_cooked_read_part): New function.
3422 (regcache_cooked_write_part): New function.
3423 * regcache.h (regcache_raw_read_part): Declare.
3424 (regcache_raw_write_part): Declare.
3425 (regcache_cooked_read_part): Declare.
3426 (regcache_cooked_write_part): Declare.
3427
92d1e331
DJ
34282002-08-18 Daniel Jacobowitz <drow@mvista.com>
3429
3430 * remote.c (remote_open_1): Add async_p.
3431 (remote_async_open_1): Delete.
3432 (open_remote_target): Delete.
3433 (remote_open, extended_remote_open): Update calls to remote_open_1.
3434 (remote_async_open, extended_remote_async_open): Call
3435 remote_open_1 instead of remote_async_open_1.
3436
247055de
MK
34372002-08-19 Mark Kettenis <kettenis@gnu.org>
3438
3439 * blockframe.c: Fix a few coding standard violations.
3440
641eda39
MK
34412002-08-19 Mark Kettenis <kettenis@gnu.org>
3442
0b717710
MK
3443 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3444 here from ...
3445 * config/i386/tm-i386sco5.h: ... here. File removed.
3446 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3447
26d28e12 3448 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3449 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3450 (TM_FILE): Set to tm-i386.h.
3451 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3452 * config/i386/tm-i386v.h: Remove file.
3453 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3454 instead of "i386/tm-i386v.h".
3455 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3456 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3457 "i386/tm-i386v.h".
3458 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3459 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3460 "i386/tm-i386.h".
3461
d4e0bab4
MK
34622002-08-18 Mark Kettenis <kettenis@gnu.org>
3463
3464 * config/i386/nm-i386v.h: Add protection against
3465 multiple-inclusion.
3466 (i386_register_u_addr): Remove prototype.
3467 (register_u_addr): New prototype.
3468 (REGISTER_U_ADDR): Redefine accordingly.
3469 * i386v-nat.c: Improve several comments.
3470 (i386_register_u_addr): Change signature and rename to
3471 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3472 ubase variable.
3473
46cac009
AC
34742002-08-18 Andrew Cagney <ac131313@redhat.com>
3475
3476 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3477 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3478 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3479 deprecated_extract_return_value.
3480 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3481 rename mips_o32o64_push_arguments.
3482 (mips_gdbarch_init): Update.
3483 (mips_extract_return_value): Delete.
3484 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3485 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3486 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3487 (mips_n32n64_extract_return_value): Clone
3488 mips_extract_return_value.
3489 (mips_store_return_value): Delete.
3490 (mips_o32_store_return_value): Clone mips_store_return_value.
3491 (mips_o64_store_return_value): Clone mips_store_return_value.
3492 (mips_eabi_store_return_value): Clone mips_store_return_value.
3493 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3494
d2e4a39e
AS
34952002-08-18 Aidan Skinner <aidan@velvet.net>
3496
0c30c098
AS
3497 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3498 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3499
35002002-08-18 Aidan Skinner <aidan@velvet.net>
3501
3502 * ada-lang.c: Run through gdb_indent.sh.
3503 * ada-lang.h: Run through gdb_indent.sh.
3504 * ada-tasks.c: Run through gdb_indent.sh.
3505 * ada-typeprint.c: Run through gdb_indent.sh.
3506 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3507
01fc4e33
AC
35082002-08-18 Andrew Cagney <ac131313@redhat.com>
3509
3510 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3511 ABI.
3512
d8ee244c
MK
35132002-08-18 Mark Kettenis <kettenis@gnu.org>
3514
c38d8261
MK
3515 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3516
222db64c
MK
3517 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3518 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3519
c2848c82
MK
3520 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3521 write_register_gen instead of write_register_bytes.
3522
d8ee244c
MK
3523 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3524 i[3456]-*-osf1mk* configurations have been made obsolete.
3525 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3526 i[3456]86-*-osf1mk* hosts obsolete.
3527 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3528 targets obsolete.
3529 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3530 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3531 config/i386/i386m3.mt, config/i386/nm-m3.h,
3532 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3533 config/i386/i386mk.mh, config/i386/i386mk.mt,
3534 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3535 obsolete.
3536 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3537 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3538 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3539
61d8d407
AC
35402002-08-18 Andrew Cagney <ac131313@redhat.com>
3541
3542 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3543 (hppa_value_returned_from_stack): Declare.
3544 (hppa_extract_return_value): Declare.
3545 * config/pa/hppa.mt: New file.
3546 * configure.tgt: Recognize hppa*-*-*.
3547 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3548
0c52bd59
MK
35492002-08-18 Mark Kettenis <kettenis@gnu.org>
3550
3551 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3552 comment.
3553
b5686e99
MK
35542002-08-17 Mark Kettenis <kettenis@gnu.org>
3555
3556 * top.c (gdb_rl_operate_and_get_next): Make sure
3557 operate-and-get-next functions correctly even when the history
3558 list is completely filled.
3559
c1bab85b
AC
35602002-08-18 Andrew Cagney <ac131313@redhat.com>
3561
3562 * MAINTAINERS (Target Instruction Set Architectures): Rename
3563 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3564 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3565 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3566 already listed under Host/Native.
3567
3568 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3569 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3570 mips*-*-*.
3571
32089c7c
AC
35722002-08-17 Andrew Cagney <ac131313@redhat.com>
3573
3574 * config/ia64/ia64.mt: New file.
3575 * config/alpha/alpha.mt: New file.
3576 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3577 ia64-linux-gnu. Mention that ia64-elf is broken.
3578 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3579
b4671f85
MK
35802002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3581
3582 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3583 generic_func_frame_valid instead of func_frame_valid.
3584
c8edd8b4
JB
35852002-08-16 Joel Brobecker <brobecker@gnat.com>
3586
3587 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3588 procfs appears to be broken when debugging on multi-processor
3589 machines. So enable software single stepping in order to avoid
3590 using the procfs interface to do next/step operations, using
3591 internal breakpoints instead.
3592
3593 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3594 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3595 make this pc address equal to the value it would have if the
3596 system stepping capability was used. Also set a new flag used
3597 to ensure that we don't readjust the PC one more time later.
3598
3599 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3600 address by DECR_PC_AFTER_BREAK when software single step is
3601 in use for this architecture, as this has already been taken
3602 care of in handle_inferior_event().
3603
238617f6
JB
36042002-08-16 Joel Brobecker <brobecker@gnat.com>
3605
3606 * infrun.c (handle_inferior_event): Minor reformatting, to make
3607 a rather long condition expression easier to read.
3608
541a7aac
AC
36092002-08-16 Andrew Cagney <ac131313@redhat.com>
3610
3611 * Makefile.in (gdbtk.o): Move to end of file.
3612 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3613 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3614 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3615 (gdbtk-wrapper.o, gdbres.o): Ditto.
3616
f92d4a7b
AC
36172002-08-16 Andrew Cagney <ac131313@redhat.com>
3618
3619 * Makefile.in (copying.o): Separate out compile rule.
3620 (hpux-thread.o, procfs.o, signals.o): Ditto.
3621 (v850ice.o, z8k-tdep.o): Ditto.
3622 (tui-file.o): Move to TUI section.
3623 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3624 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3625
1cce71eb
JB
36262002-08-16 Joel Brobecker <brobecker@gnat.com>
3627
3628 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3629 skip_trampoline_code, for better namespace-proofing.
3630
3631 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3632
0851f23d
JB
36332002-08-16 Joel Brobecker <brobecker@gnat.com>
3634
3635 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3636
f8d40ec8
JB
36372002-08-16 Joel Brobecker <brobecker@gnat.com>
3638
3639 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3640 signal, check whether we hit a breakpoint before checking for a
3641 single step breakpoint. Otherwise, GDB fails to notice that a
3642 breakpoint has been hit when stepping onto a breakpoint.
3643
63d022e0
KS
36442002-08-16 Keith Seitz <keiths@redhat.com>
3645
3646 * gdb-events.sh (clear_gdb_event_hooks): New function.
3647 * gdb-events.c: Regenerate.
3648 * gdb-events.h: Regenerate.
3649
6e31adb3
AC
36502002-08-16 Andrew Cagney <ac131313@redhat.com>
3651
3652 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3653 not_a_sw_breakpoint.
3654 * breakpoint.h (bpstat_stop_status): Add parameter names.
3655
c8189ed1
GS
36562002-08-16 Grace Sainsbury <graces@redhat.com>
3657
3658 * remote.c (remote_insert_hw_breakpoint)
3659 (remote_remove_hw_breakpoint): Fix calculation of length field
3660 for Z-packet.
3661
d05285fa
MS
36622002-08-15 Michael Snyder <msnyder@redhat.com>
3663
466d7106
MS
3664 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3665 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3666 (supply_fpregset): Ditto.
3667
d05285fa
MS
3668 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3669 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3670 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3671 (TARGET_READ_SP): Delete.
bf1f5b4c 3672 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3673 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3674 Delete.
3675 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3676 from macros to functions.
bf1f5b4c 3677
d05285fa
MS
3678 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3679 (mips_register_convertible, mips_register_convert_to_virtual,
3680 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3681 (mips_read_sp): New function.
3682 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3683 (mips_do_registers_info): Make static.
3684 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3685 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3686 (mips_register_convert_from_type, mips_register_convert_to_type):
3687 New functions.
3688 (mips_gdbarch_init): Set up function_start_offset,
3689 register_virtual_size, pc_in_sigtramp.
d05285fa 3690
e76f1f2e
AC
36912002-08-15 Andrew Cagney <ac131313@redhat.com>
3692
3693 * infcmd.c (vector_info): New function.
3694 (_initialize_infcmd): Add command "info vector".
3695 (print_vector_info): New function.
3696
3697 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3698 * gdbarch.h, gdbarch.c: Regenerate.
3699
4782dc19
AC
37002002-08-15 Andrew Cagney <ac131313@redhat.com>
3701
3702 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3703 ``print_all''. Only print vector registers when ``print_all''.
3704
23e3a7ac
AC
37052002-08-15 Andrew Cagney <ac131313@redhat.com>
3706
8e186fd6
AC
3707 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3708 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3709
23e3a7ac
AC
3710 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3711 Add `args' parameter.
3712 * gdbarch.h, gdbarch.c: Regenerate.
3713
3714 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3715
3716 * infcmd.c (float_info): Call print_float_info.
3717 (print_float_info): New function. By default, print the
3718 floating-point registers.
3719
3720 * arch-utils.h (default_print_float_info): Delete declaration.
3721 * arch-utils.c (default_print_float_info): Delete function.
3722
e0ca2bb9
MK
37232002-08-16 Mark Kettenis <kettenis@gnu.org>
3724
3f733acc
MK
3725 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3726 out define.
3727
7d8d2918
MK
3728 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3729 FRAME.
3730
1c7cc583
MK
3731 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3732 * configure.host: Make i[3456]86-*-aix host obsolete.
3733 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3734 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3735 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3736 config/i386/xm-i386aix.h: Make files obsolete.
3737 * i386aix-nat.c: Make file obsolete.
3738 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3739 (i386aix-nat.o): Make target obsolete.
3740
e0ca2bb9
MK
3741 * config/i386/nm-gnu.h: Removed.
3742 * config/i386/nm-i386gnu.h: New file.
3743 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3744 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3745 Moved here from ...
3746 * config/i386/tm-i386gnu.h: ... here. Removed.
3747 * config/i386/xm-i386gnu.h: Removed.
3748 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3749 (NAT_FILE): Set to nm-i386gnu.h.
3750 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3751 * i386-tdep.c: New file.
3752 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3753 (i386gnu-tdep.o): Specify dependencies.
3754
16057ec7 37552002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3756
6b99ee2e
MK
3757 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3758 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3759 Adjust a few comments to reflect reality a bit closer.
3760 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3761 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3762 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3763 target_insert_watchpoint, target_remove_watchpoint):
3764 Move defines to ...
3765 * config/i386/nm-i386sco5.h: ... here.
3766 (kernel_u_size): Add prototype. Improve a few comments and add
3767 protection against multiple inclusion.
3768
d9a6f65c
MK
3769 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3770 out define.
3771
047eff6a
MK
3772 * uw-thread.c (SP_ARG0): Define if not already defined.
3773 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3774
dcdb1290
MK
3775 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3776
5d2d0b2a
MK
3777 * config/i386/tm-i386.h: Don't include "regcache.h".
3778
61113f8b
MK
3779 * i387-tdep.h (i387_print_float_info): New prototype.
3780 * i387-tdep.c (print_i387_value, print_i387_ext,
3781 print_i387_status_word, print_i387_control_word): Add `struct
3782 ui_file *' argument and use it for output.
3783 (i387_print_float_info): Renamed from i387_float_info. Add
3784 `struct gdbarch *' and `struct ui_file *' arguments and use the
3785 latter for output.
3786 * i386-tdep.c: Include "i387-tdep.h".
3787 (i386_gdbarch_init): Set print_float_info.
3788 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3789 (FLOAT_INFO): Remove define.
3790
46e0f506
MS
37912002-08-13 Michael Snyder <msnyder@redhat.com>
3792
3793 * mips-tdep.c (mips_push_arguments): Rename to
3794 mips_eabi_push_arguments, and tune for EABI.
3795 (MIPS_REGS_HAVE_HOME_P): Delete.
3796 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3797 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3798 Delete references to mips_regs_have_home_p.
3799
409268de
KS
38002002-08-14 Keith Seitz <keiths@redhat.com>
3801
3802 * Makefile.in (install-gdbtk): Create insight plugin directory.
3803 Install plugins.tcl file.
3804
ffc6a242
KS
38052002-08-14 Keith Seitz <keiths@redhat.com>
3806
3807 * configure.in: Move SUBDIRS to near top of the file so that
3808 --enable options may add things to it.
3809 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3810 * configure: Regenerate.
3811
ebafbe83
MS
38122002-08-13 Michael Snyder <msnyder@redhat.com>
3813
3814 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3815 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3816 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3817
32f6f25d
AC
38182002-08-13 Andrew Cagney <ac131313@redhat.com>
3819
3820 * vax-tdep.c (vax_get_saved_register): Delete function.
3821 (vax_gdbarch_init): Update.
3822 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3823 (ns32k_gdbarch_init): Update.
3824 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3825 (alpha_gdbarch_init): Update.
3826
53826de9
AC
38272002-08-13 Andrew Cagney <cagney@redhat.com>
3828
3829 * regcache.c (init_regcache_descr): Overallocate the
3830 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3831 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3832 nr_raw_registers.
3833 (set_register_cached): Add range checking assertions. Use
3834 current_regcache.
3835
16057ec7 38362002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
3837
3838 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3839 numbers for MMX registers.
3840
7b4c2dce
AC
38412002-08-13 Andrew Cagney <cagney@redhat.com>
3842
3843 * i386-tdep.c (i386_gdbarch_init): Use
3844 generic_unwind_get_saved_register.
3845
1e03ad20
KB
38462002-08-13 Kevin Buettner <kevinb@redhat.com>
3847
3848 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3849 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3850 target vector.
3851 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3852 Delete. Add comment regarding this now-deleted target method.
3853
548bcbec
SC
38542002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3855
3856 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3857 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3858 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3859 real PC and the page number (if it's within the memory bank window).
3860 (m68hc11_pseudo_register_write): Likewise when saving.
3861 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3862 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3863 (m68hc11_register_raw_size): And use 32-bit for it.
3864 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3865 16K memory bank is used by the prog; also use the virtual pc.
3866
7df11f59
SC
38672002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3868
3869 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3870 (m68hc11_gdbarch_init): Install it in gdbarch.
3871 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3872 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3873 (MSYMBOL_SIZE): New for documentation.
3874 (insn_return_kind): Enum to specify how a function returns.
3875 (frame_extra_info): Cleanup and record the return mode.
3876 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3877 register in address computation.
3878 (m68hc11_get_return_insn): New to obtain the return instruction used
3879 by the function.
3880 (m68hc11_frame_init_saved_regs): Take into account the return
3881 instruction used by the function for far and interrupt functions.
3882 (m68hc11_init_extra_frame_info): Take into account page register.
3883 (m68hc11_frame_args_address): Adjust according to the return mode.
3884 (show_regs): Print page register only when it's used.
3885
5706502a
SC
38862002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3887
3888 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3889 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3890 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3891 registers.
3892 (m68hc11_register_raw_size): Likewise.
3893
28fc6740
AC
38942002-08-13 Andrew Cagney <cagney@redhat.com>
3895
3896 * i386-tdep.c (i386_register_name): Handle mmx registers.
3897 (mmx_regnum_p): New function.
3898 (i386_mmx_names): New array.
3899 (mmx_num_regs): New variable.
3900 (i386_pseudo_register_read): New function.
3901 (i386_pseudo_register_write): New function.
3902 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3903
3904 * regcache.c (regcache_raw_read_unsigned): New function.
3905 (regcache_raw_read_signed): New function.
3906 * regcache.h (regcache_raw_read_unsigned): Declare.
3907 (regcache_raw_read_signed): Declare.
3908
a378f419
AC
39092002-08-13 Andrew Cagney <cagney@redhat.com>
3910
3911 * regcache.c (regcache_raw_read_as_address): Delete function.
3912 (regcache_cooked_read_signed): New function.
3913 (regcache_cooked_read_unsigned): New function.
3914 * regcache.h (regcache_cooked_read_signed): Declare.
3915 (regcache_cooked_read_unsigned): Declare.
3916 (regcache_raw_read_as_address): Delete declaration.
3917
3918 * blockframe.c (generic_read_register_dummy): Use
3919 regcache_cooked_read_unsigned.
3920 * i386-tdep.c (i386_extract_struct_value_address): Use
3921 regcache_cooked_read_unsigned.
3922
81967506
SC
39232002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3924
3925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3926 double sizes according to ELF ABI flags.
3927 (gdbarch_tdep): Record elf_flags.
3928
ffe1f3ee
SC
39292002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3930
3931 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3932 (m6812_prolog): They can appear in 68HC12 function prologue.
3933 (m68hc11_frame_chain): Cleanup.
3934
98216c5d
AC
39352002-08-12 Andrew Cagney <cagney@redhat.com>
3936
3937 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3938 declarations.
3939 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3940 (i386_linux_register_raw_size): Delete function.
3941 (i386_linux_init_abi): Update.
3942 * i386-tdep.c (i386_register_raw_size): Delete function.
3943 (i386_register_byte): Delete function.
3944 (i386_gdbarch_init): Update.
3945 (i386_register_size): Delete array.
3946 (i386_register_offset): Delete array.
3947
3948 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3949 (REGISTER_RAW_SIZE): Delete macro.
3950 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3951 (REGISTER_BYTE): Delete macro.
3952
3b19021e
AS
39532002-08-11 Aidan Skinner <aidan@velvet.net>
3954
3955 * ada-lang.c (ada_lookup_partial_symbol)
3956 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3957 prototype names so that grep ^func works properly.
3958
3959 * ada-lang.c (ada_array_element_type)
3960 (ada_lookup_partial_symbol): Fix typos in parameter list.
3961
3962 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3963 Fix prototype names so that grep ^func works properly.
3964
b063e7a2
AC
39652002-08-10 Andrew Cagney <cagney@redhat.com>
3966 Elena Zannoni <ezannoni@redhat.com>
3967 Martin M. Hunt <hunt@redhat.com>
3968
3969 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3970 (build_builtin_type_vec128i): Set the vector bit.
3971 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3972 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3973 (build_builtin_type_vec64): New function.
3974 (build_builtin_type_vec64i): New function.
3975 (build_gdbtypes): Initialize builtin_type_vec64 and
3976 builtin_type_vec64i.
3977
a7e3c2ad
AC
39782002-08-09 Andrew Cagney <cagney@redhat.com>
3979
3980 * regcache.c (regcache_dump): Compare the register offset
3981 with REGISTER_BYTE.
3982 * arch-utils.c (generic_register_byte): New function.
3983 * arch-utils.h (generic_register_byte): Declare.
3984 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3985 * gdbarch.h, gdbarch.c: Regenerate.
3986
af030b9a
AC
39872002-08-09 Andrew Cagney <cagney@redhat.com>
3988
3989 * regcache.c: Include "gdbcmd.h"
3990 (_initialize_regcache): Add commands "maintenance print
3991 registers", "maintenance print raw-registers" and "maintenance
3992 print cooked-registers".
3993 (enum regcache_dump_what): Define.
3994 (dump_endian_bytes): New function.
3995 (regcache_dump): New function.
3996 (regcache_print): New function.
3997 (maintenance_print_registers): New function.
3998 (maintenance_print_raw_registers): New function.
3999 (maintenance_print_cooked_registers): New function.
4000 * Makefile.in (regcache.o): Update dependencies.
4001
cb3d25d1
MS
40022002-08-09 Michael Snyder <msnyder@redhat.com>
4003
4004 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4005 (mips_push_arguments): Correct some comments. Use paddr_nz
4006 for printing addresses in debug output. Replace static
4007 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4008 (mips_n32n64_push_arguments): New function, cloned from
4009 mips_push_arguments and tuned for the n32/n64 ABI.
4010 (mips_push_register): Buffer needs dynamic allocation.
4011 (mips_print_register): Ditto.
4012 (do_gp_register_row): Ditto.
4013 (mips_store_return_value): Ditto.
4014 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4015
2163ab9d
DH
40162002-08-09 Don Howard <dhoward@redhat.com>
4017
4018 * memattr.c (mem_info_command): Print special case of upper bound
4019 as max CORE_ADDR + 1.
4020
b78bcb18
MS
40212002-08-08 Michael Snyder <msnyder@redhat.com>
4022
4023 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4024 returns structs by ref if they're too big to fit in two registers.
4025
ffabd70d
KB
40262002-08-09 Kevin Buettner <kevinb@redhat.com>
4027
4028 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4029 saved regs value.
4030 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4031 mips_find_saved_regs().
4032 (mips_pop_frame): Likewise.
4033
fbcdb4a3
KB
40342002-08-09 Kevin Buettner <kevinb@redhat.com>
4035
4036 * blockframe.c (frame_saved_regs_register_unwind): Revise
4037 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4038 frames are in use.
4039
3c3bea1c
GS
40402002-08-09 Grace Sainsbury <graces@redhat.com>
4041
4042 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4043 T-packets; the 'a' is not taken as a register number.
4044 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4045 (remote_stopped_data_address): New functions; add to target
4046 vector.
4047 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4048 prototypes to match other implementations of this
4049 function. replace integer argument with pointer -- the length
4050 field in the Z-packet is the length of what is pointed to or 1 if
4051 pointer is null. Add to target vector.
4052 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4053 target vector.
4054
4055 From Mark Salter:
4056 * remote.c (remote_wait): Add support to extract optional
4057 watchpoint information from T-packet. Ignore unrecognized
4058 optional info in T-packet.
4059 (remote_async_wait): Ditto.
4060
5d1d95de
CV
40612002-08-09 Corinna Vinschen <vinschen@redhat.com>
4062
4063 * cli/cli-dump.c: Change fopen modes to use binary open modes
4064 as defined in include/fopen-bin.h throughout.
4065
c86b5b38
MS
40662002-08-08 Michael Snyder <msnyder@redhat.com>
4067
4068 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4069
b30590dc
KB
40702002-08-08 Kevin Buettner <kevinb@redhat.com>
4071
4072 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4073 assertion failure by returning early after a warning.
4074
498868ed
KB
40752002-08-08 Kevin Buettner <kevinb@redhat.com>
4076
4077 * mips-tdep.c (mips_find_saved_regs): Make static.
4078 (mips_frame_init_saved_regs): New function.
4079 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4080 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4081 (mips_find_saved_regs): Delete declaration.
4082
b2dd6311
GS
40832002-08-08 Grace Sainsbury <graces@redhat.com>
4084
3c3bea1c
GS
4085 * remote.c (remote_wait, remote_async_wait): Change
4086 thread_num from int to ULONGEST.
4087 (unpack_varlen_hex): Change result parameter from
4088 int * to ULONGEST *.
b2dd6311 4089
ea47855f
AC
40902002-08-08 Andrew Cagney <ac131313@redhat.com>
4091
4092 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4093 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4094 powerpc*-*-*.
4095 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4096
69db8bae
AC
40972002-08-08 Andrew Cagney <cagney@redhat.com>
4098
4099 * gcore.c (override_derive_stack_segment): Delete variable.
4100 (preempt_derive_stack_segment): Delete function.
4101 (derive_stack_segment): Delete function.
4102 (default_derive_stack_segment): Renamed to derive_stack_segment.
4103 (override_derive_heap_segment): Delete variable.
4104 (preempt_derive_heap_segment): Delete function.
4105 (derive_heap_segment): Delete function.
4106 (default_derive_heap_segment): Rename to derive_heap_segment.
4107
cb811fe7
MS
41082002-08-06 Michael Snyder <msnyder@redhat.com>
4109
4110 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4111 * mips-tdep.c (mips_EABI_use_struct_convention,
4112 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4113 New functions. (mips_use_struct_convention): Delete.
4114 (mips_gdbarch_init): set use_gdbarch_convention.
4115
8b389c40
MS
41162002-08-06 Michael Snyder <msnyder@redhat.com>
4117
4118 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4119 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4120 mips_o32_reg_struct_has_addr): New functions.
4121 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4122
5c27f28a
AC
41232002-08-07 Andrew Cagney <ac131313@redhat.com>
4124
4125 * regcache.c (pseudo_register): Delete function.
4126 (fetch_register): Delete function.
4127 (store_register): Delete function.
4128 (regcache_raw_read, legacy_read_register_gen): Use
4129 target_fetch_registers instead of fetch_register.
4130 (legacy_write_register_gen, regcache_raw_write): Use
4131 target_store_register instead of store_register.
4132 (write_register_bytes): Ditto.
4133
4134 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4135 (STORE_PSEUDO_REGISTER): Delete.
4136 * gdbarch.h, gdbarch.c: Regenerate.
4137
5b331675
CV
41382002-08-06 Corinna Vinschen <vinschen@redhat.com>
4139
4140 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4141 write dump file binary.
4142
6acdf5c7
MS
41432002-08-05 Michael Snyder <msnyder@redhat.com>
4144
4145 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4146 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4147 (mips_gdbarch_init): Set N32 target to be mips64.
4148
b2f01c35
KB
41492002-08-06 Kevin Buettner <kevinb@redhat.com>
4150
4151 * frame.c (find_saved_register): Break out of loop once saved
4152 register address is found. Don't mention sparc in loop comment
4153 anymore.
4154
63db5580
KB
41552002-08-06 Kevin Buettner <kevinb@redhat.com>
4156
4157 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4158 mips_default_saved_regsize to 8.
4159
5e34e75e
AC
41602002-08-06 Andrew Cagney <ac131313@redhat.com>
4161
4162 * gcore.c: Do not include <sys/procfs.h>.
4163 * Makefile.in (gcore.o): Update dependencies.
4164
eb4c54a2
AC
41652002-08-06 Andrew Cagney <cagney@redhat.com>
4166
4167 * configure.tgt: Make arc-*-* obsolete.
4168 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4169 * MAINTAINERS: Make arc-elf obsolete.
4170 * arc-tdep.c: Make file obsolete.
4171 * config/arc/arc.mt: Ditto.
4172 * config/arc/tm-arc.h: Ditto.
4173
ced15480
TR
41742002-08-05 Theodore A. Roth <troth@verinet.com>
4175
c1bab85b 4176 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4177
b4743822
AC
41782002-08-05 Andrew Cagney <ac131313@redhat.com>
4179
4180 * mcore-tdep.c (mcore_gdbarch_init): Use
4181 generic_unwind_get_saved_register instead of
4182 generic_get_saved_register.
4183 * v850-tdep.c (v850_gdbarch_init): Ditto.
4184 * frv-tdep.c (frv_gdbarch_init): Ditto.
4185 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4186 * s390-tdep.c (s390_gdbarch_init): Ditto.
4187 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4188 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4189 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4190
3956d554
JB
41912002-08-05 Joel Brobecker <brobecker@gnat.com>
4192
4193 * objfiles.h: Add missing #include "symfile.h"
4194
4195 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4196
8249c0d6
AC
41972002-08-04 Andrew Cagney <ac131313@redhat.com>
4198
4199 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4200 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4201 of FIELD_BITSIZE.
4202
b9d14705
DJ
42032002-08-04 Daniel Jacobowitz <drow@mvista.com>
4204
4205 * NEWS: Cleanup and nitpick.
4206
dd73b9bb
AC
42072002-08-03 Andrew Cagney <ac131313@redhat.com>
4208
4209 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4210
043a27f8
AC
42112002-08-03 Andrew Cagney <ac131313@redhat.com>
4212
4213 * Makefile.in (gdbtk-bp.o): Update dependencies.
4214 (gdbtk-register.o): Ditto.
4215 (gdbtk-varobj.o): Ditto.
4216
46ce284d
AC
42172002-08-03 Andrew Cagney <cagney@redhat.com>
4218
4219 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4220 m68hc11_fetch_pseudo_register.
4221 (m68hc11_pseudo_register_write): Replace
4222 m68hc11_store_pseudo_register.
4223 (m68hc11_gdbarch_init): Update.
4224
b66d6d2e
AC
4225Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4226
4227 * gdbarch.sh: Include "gdb_string.h".
4228 * gdbarch.c: Regenerate.
4229
4230 * regcache.c: Include "gdb_string.h".
4231 * ax-general.c: Ditto.
4232 * varobj.c: Ditto.
4233 * std-regs.c: Ditto.
4234 * fbsd-proc.c: Ditto.
4235 * thread.c: Ditto.
4236
4237 * Makefile.in (regcache.o): Update dependencies.
4238 (thread.o, gdbarch.o): Ditto.
4239 (ax-general.o, gdbarch.o): Ditto.
4240 (varobj.o, std-regs.o): Ditto.
4241 (fbsd-proc.o): Specify dependencies.
4242
29e1842b
AC
42432002-08-02 Andrew Cagney <cagney@redhat.com>
4244
4245 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4246 regnum.
4247 (regcache_cooked_write): Ditto.
4248
68365089
AC
42492002-08-02 Andrew Cagney <ac131313@redhat.com>
4250
4251 * regcache.c (regcache_cooked_read): New function.
4252 (regcache_cooked_write): New function.
4253 (read_register_gen): Rewrite using regcache_cooked_read.
4254 (write_register_gen): Rewrite using regcache_cooked_write.
4255
4256 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4257 Declare.
4258
d8124050
AC
42592002-08-02 Andrew Cagney <cagney@redhat.com>
4260
4261 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4262 Replace the architecture methods register_read and register_write.
4263 * gdbarch.h, gdbarch.c: Regenerate.
4264 * regcache.c (init_regcache_descr): Update.
4265 (read_register_gen): Update.
4266 (write_register_gen): Update.
4267 (supply_register): Update comment.
4268
4269 * sh-tdep.c (sh_gdbarch_init): Update.
4270 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4271 `regcache' and `gdbarch' parameters. Make `buffer' a void
4272 pointer. Update code.
4273 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4274 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4275 void pointer. Update code.
4276 (sh64_register_write): Delete.
4277 (sh4_register_read): Delete.
4278 (sh64_register_read): Delete.
4279 (sh4_register_write): Delete.
4280 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4281 void pointer, `to' parameter a void pointer.
4282 (sh_sh64_register_convert_to_raw): Ditto.
4283
a6425924
KB
42842002-08-01 Kevin Buettner <kevinb@redhat.com>
4285
4286 * mips-tdep.c (mips_register_virtual_type): Use architecture
4287 invariant return values.
4288
ff5922b5
AC
42892002-08-01 Andrew Cagney <cagney@redhat.com>
4290
4291 * linux-proc.c: Include "gdb_string.h".
4292 * Makefile.in (linux-proc.o): Update dependency list.
4293
32a6503c
KB
42942002-08-01 Kevin Buettner <kevinb@redhat.com>
4295
4296 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4297 comment.
4298
ccaa32c7
GS
42992002-08-01 Grace Sainsbury <graces@redhat.com>
4300
4301 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4302 to_insert_watchpoint, to_remove_watchpoint,
4303 to_stopped_by_watchpoint, to_stopped_data_address,
4304 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4305 target vecctor. Define their corresponding macros so they call
4306 them.
4307
4308 * target.c: Add default and debug versions of for
4309 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4310 to_insert_watchpoint, to_remove_watchpoint,
4311 to_stopped_by_watchpoint, to_stopped_data_address,
4312 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4313
78fde5f8
KB
43142002-08-01 Kevin Buettner <kevinb@redhat.com>
4315
4316 * mips-tdep.c (mips_register_virtual_type): New function.
4317 (mips_gdbarch_init): Register mips_register_virtual_type()
4318 with gdbarch machinery.
4319 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4320 this file instead of tm-bigmips.h.
4321 (MIPS_REGSIZE): Delete this macro.
4322 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4323 multiarch version in mips-tdep.c will be found.
4324
db034ac5
AC
43252002-08-01 Andrew Cagney <cagney@redhat.com>
4326
4327 * NEWS: Menion that CHILL has been made obsolete.
4328
4329 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4330 * stabsread.c (read_range_type): Ditto.
4331 * gdbtypes.h: Ditto.
4332 * language.c (binop_type_check): Ditto.
4333 (binop_result_type): Ditto.
4334 (integral_type): Ditto.
4335 (character_type): Ditto.
4336 (string_type): Ditto.
4337 (boolean_type): Ditto.
4338 (structured_type): Ditto.
4339 (lang_bool_type): Ditto.
4340 (binop_type_check): Ditto.
4341 * language.h (_LANG_chill): Ditto.
4342 * dwarfread.c (set_cu_language): Ditto.
4343 * dwarfread.c (CHILL_PRODUCER): Ditto.
4344 * dwarfread.c (handle_producer): Ditto.
4345 * expression.h (enum exp_opcode): Ditto.
4346 * eval.c: Ditto for comments.
4347 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4348 * expprint.c (print_subexp): Ditto.
4349 (print_subexp): Ditto.
4350 * valops.c (value_cast): Ditto.
4351 (search_struct_field): Ditto.
4352 * value.h (COERCE_VARYING_ARRAY): Ditto.
4353 * symfile.c (init_filename_language_table): Ditto.
4354 (add_psymbol_with_dem_name_to_list): Ditto.
4355 * valarith.c (value_binop): Ditto.
4356 (value_neg): Ditto.
4357 * valops.c (value_slice): Ditto.
4358 * symtab.h (union language_specific): Ditto.
4359 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4360 (SYMBOL_DEMANGLED_NAME): Ditto.
4361 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4362 * defs.h (enum language): Ditto.
4363 * symtab.c (got_symtab): Ditto.
4364 * utils.c (fprintf_symbol_filtered): Ditto.
4365
4366 * ch-typeprint.c: Make file obsolete.
4367 * ch-valprint.c: Make file obsolete.
4368 * ch-lang.h: Make file obsolete.
4369 * ch-exp.c: Make file obsolete.
4370 * ch-lang.c: Make file obsolete.
4371
4372 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4373 CHILL_LIB.
4374 (TARGET_FLAGS_TO_PASS): Ditto.
4375 (CHILLFLAGS): Obsolete.
4376 (CHILL): Obsolete.
4377 (CHILL_FOR_TARGET): Obsolete.
4378 (CHILL_LIB): Obsolete.
4379 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4380 ch-valprint.c.
4381 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4382 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4383 ch-lang.o.
4384 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4385 targets.
4386
8aaf0b47
JB
43872002-07-31 Joel Brobecker <brobecker@gnat.com>
4388
4389 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4390 This does not change anything at the moment, but will be helpful
4391 later when full Ada support is integrated.
4392
f3a7b3a5
KB
43932002-07-31 Kevin Buettner <kevinb@redhat.com>
4394
4395 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4396 help message.
4397
fb850278
KB
43982002-07-31 Kevin Buettner <kevinb@redhat.com>
4399
4400 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4401 and save it in a local variable. Use variable in later test.
4402
e3bddbfa
KB
44032002-07-31 Kevin Buettner <kevinb@redhat.com>
4404
4405 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4406 test. (Thanks to Daniel Jacobowitz.)
4407
28d169de
KB
44082002-07-31 Kevin Buettner <kevinb@redhat.com>
4409
4410 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4411 (mips_abi_strings): Add "n64".
4412 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4413
7fe7e44e
KB
44142002-07-31 Kevin Buettner <kevinb@redhat.com>
4415
4416 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4417 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4418
c6caf090
KB
44192002-07-31 Kevin Buettner <kevinb@redhat.com>
4420
4421 * utils.c (host_pointer_to_address, address_to_host_pointer):
4422 Use gdb_assert() instead of explicit call to internal_error().
4423
c41669e0
KB
44242002-07-30 Kevin Buettner <kevinb@redhat.com>
4425
4426 * Makefile.in (rs6000-nat.o): Update dependencies.
4427
4428 From Nicholas Duffek:
4429 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4430 (aix-thread.o): New rule.
4431 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4432 * config/powerpc/aix432.mh: New file.
4433
2fda4977
DJ
44342002-07-30 Daniel Jacobowitz <drow@mvista.com>
4435
4436 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4437 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4438 (fetch_core_registers, ppc_linux_supply_gregset)
4439 (ppc_linux_supply_fpregset): New functions.
4440 (ppc_linux_regset_core_fns): New.
4441 (_initialize_ppc_linux_tdep): Call add_core_fns.
4442 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4443 and ppc_linux_supply_gregset.
4444 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4445 (supply_fpregset): Call ppc_linux_supply_fpregset.
4446 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4447 corelow.o.
4448 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4449
729051e6
DJ
44502002-07-30 Daniel Jacobowitz <drow@mvista.com>
4451
4452 * symtab.c (lookup_symbol): Demangle before lowercasing.
4453
5f8a3188
AC
44542002-07-30 Andrew Cagney <ac131313@redhat.com>
4455
4456 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4457 declaration.
4458 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4459 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4460 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4461 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4462 "gdb_string.h".
4463 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4464 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4465 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4466 (avr-tdep.o, mon960-rom.o): Ditto.
4467 (aout_stabs_gnu_h): Define.
4468 (symtab_h): Remove $(gdb_obstack_h).
4469
67f07146
JB
44702002-07-30 Jim Blandy <jimb@redhat.com>
4471
4472 Patch from David Carlton <carlton@math.stanford.edu>:
4473 * gdbinit.in: Move the `dir' commands that add GDB's own source
4474 directory to the search path to the end, so that the `gdb' source
4475 directory will be searched first.
4476
04ea0df1
AC
44772002-07-29 Andrew Cagney <ac131313@redhat.com>
4478
4479 * gdb_obstack.h: New file.
4480 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4481 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4482 * objfiles.h: Include "gdb_obstack.h".
4483 * Makefile.in (gdb_obstack_h): Define.
4484 (symtab_h): Add $(gdb_obstack_h).
4485 (objfiles_h): Add $(gdb_obstack_h).
4486
4487 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4488 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4489 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4490 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4491 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4492 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4493 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4494 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4495
4496 * Makefile.in (bcache.o): Update dependencies.
4497 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4498 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4499 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4500 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4501 (stabsread.o, symfile.o, symmisc.o): Ditto.
4502 (symtab.o, typeprint.o, macroexp.o): Ditto.
4503 (macrotab.o, mdebugread.o): Ditto.
4504 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4505 (coff_ecoff_h, aout_aout64_h): Define.
4506 (aout_stabs_gnu_h, libaout_h): Define.
4507
d138e37a
AC
45082002-07-29 Andrew Cagney <cagney@redhat.com>
4509
4510 * regcache.c (struct regcache_descr): Rename nr_registers to
4511 nr_cooked_registers. Revise comments describing the structure
4512 member fields.
4513 (init_regcache_descr): Update.
4514 (init_legacy_regcache_descr): Update.
4515 (read_register_gen, write_register_gen): When a cooked register in
4516 the raw register range, directly access the value from the raw
4517 register cache.
4518
460e6ec3
AC
45192002-07-29 Andrew Cagney <ac131313@redhat.com>
4520
4521 * z8k-tdep.c: Do not include "obstack.h".
4522 * h8300-tdep.c, h8500-tdep.c: Ditto.
4523 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4524 * valprint.c, v850-tdep.c: Ditto.
4525 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4526 * mn10200-tdep.c: Ditto.
4527
4528 * Makefile.in (z8k-tdep.o): Update dependencies.
4529 (m68hc11-tdep.o, valprint.o): Ditto.
4530 (v850-tdep.o, d10v-tdep.o): Ditto.
4531 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4532 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4533 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4534 (sh_opc_h, gdb_sim_sh_h): Define.
4535 (elf_sh_h, elf_bfd_h): Define.
4536 (opcode_m68hc11_h): Define.
4537 (OPCODES_SRC, OPCODES_DIR): define.
4538 (OPCODES): Use $(OPCODES_DIR).
4539 (gdb_sim_d10v_h): Rename sim_d10v_h.
4540 (gdb_sim_arm_h): Rename sim_arm_h.
4541
790c9cf0
KB
45422002-07-26 Kevin Buettner <kevinb@redhat.com>
4543
4544 * utils.c (host_pointer_to_address, address_to_host_pointer):
4545 Change internal_error() message to indicate function responsible
4546 for the error.
4547
9647fa49
KB
45482002-07-26 Kevin Buettner <kevinb@redhat.com>
4549
4550 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4551 calls to local_hex_string_custom().
4552
dabbe2c0
KB
45532002-07-26 Kevin Buettner <kevinb@redhat.com>
4554
4555 * irix5-nat.c: Move IRIX shared library support from here...
4556 * solib-irix.c: ...to here. Revised substantially to work with
4557 generic solib framework.
4558
b96d0a4e
KB
4559 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4560 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4561 * mips-irix-tdep.c: New file.
4562
313fb2f6
KB
4563 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4564 (mips-irix-tdep.o, solib-irix.o): New rules.
4565 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4566 solib-irix.o.
4567 * config/mips/irix6.mt (TDEPFILES): Likewise.
4568 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4569
ab2eaf26
KB
45702002-07-26 Kevin Buettner <kevinb@redhat.com>
4571
177e4768 4572 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4573 disabled (via ``#if 0'') includes.
4574
7244546a
KB
45752002-07-26 Kevin Buettner <kevinb@redhat.com>
4576
4577 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4578 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4579 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4580 Add support for the fpscr register.
4581 * rs6000-nat.c (regmap, fetch_inferior_registers)
4582 (store_inferior_registers, fetch_core_registers): Likewise.
4583
dd7be90a
KB
45842002-07-26 Kevin Buettner <kevinb@redhat.com>
4585
4586 * rs6000-nat.c (language.h): Include.
4587 (special_regs): Delete this array.
4588 (regmap): New function.
4589 (fetch_register, store_register): Use regmap() to map gdb
4590 register numbers to ptrace register numbers. Also, use
4591 outputs from regmap() to make decisions regarding type of
4592 ptrace() call to make. In particular, don't compare against
4593 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4594 (fetch_inferior_registers, store_inferior_registers): Where
4595 possible, obtain register numbers from tdep struct. Don't
4596 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4597 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4598 (LAST_UISA_SP_REGNUM): Delete.
4599
11bf77db
KB
46002002-07-25 Kevin Buettner <kevinb@redhat.com>
4601
4602 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4603 (fetch_registers, store_register, fetch_core_registers): Don't
4604 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4605 regcache_collect() as appropriate.
4606 (find_toc_address): Format hex address with local_hex_string().
4607
06afebeb
AC
46082002-07-25 Andrew Cagney <ac131313@redhat.com>
4609
4610 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4611 bfd/elf32-frv.c.
4612
8c554d79
TT
46132002-07-24 Tom Tromey <tromey@redhat.com>
4614
4615 * jv-exp.y: Marked all strings with _().
4616 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4617 internal_error.
4618 (MethodInvocation, CastExpression, parse_number, yyerror,
4619 java_type_from_name, push_expression_name, yylex): Typo fixes.
4620
e4c242d9
DJ
46212002-07-24 Daniel Jacobowitz <drow@mvista.com>
4622
4623 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4624 (tee_file_flush, tee_file_write, tee_file_fputs)
4625 (tee_file_isatty): New.
4626 * ui-file.h (tee_file_new): Add prototype.
4627
ebf56fd3
AS
46282002-07-24 Aidan Skinner <aidan@velvet.net>
4629
4630 * ada-lang.c: Change k&r style function definitions to prototyped
4631 form.
4632 * ada-typeprint.c: Change k&r style function definitions to prototyped
4633 form.
4634 * ada-valprint.c: Change k&r style function definitions to prototyped
4635 form.
4636
7fb623f7
AC
46372002-07-24 Andrew Cagney <cagney@redhat.com>
4638
4639 * README: Remove reference to remote-bug.
4640 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4641 remote-bug.c.
4642 (m88k-nat.o): Delete rule.
4643 (m88k-tdep.o): Delete rule.
4644 (remote-bug.o): Delete rule.
4645 * MAINTAINERS: Mark as obsolete.
4646 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4647 * m88k-tdep.c: Make file obsolete.
4648 * config/m88k/m88k.mh: Ditto.
4649 * config/m88k/delta88v4.mh: Ditto.
4650 * config/m88k/delta88v4.mt: Ditto.
4651 * config/m88k/delta88.mt: Ditto.
4652 * config/m88k/delta88.mh: Ditto.
4653 * remote-bug.c: Ditto.
4654 * config/m88k/tm-delta88.h: Ditto.
4655 * config/m88k/nm-delta88v4.h: Ditto.
4656 * config/m88k/xm-delta88.h: Ditto.
4657 * config/m88k/xm-dgux.h: Ditto.
4658 * config/m88k/tm-m88k.h: Ditto.
4659 * config/m88k/nm-m88k.h: Ditto.
4660 * config/m88k/tm-delta88v4.h: Ditto.
4661 * m88k-nat.c: Ditto.
4662 * cxux-nat.c: Ditto.
4663 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4664 and m88*-*-* obsolete.
4665 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4666 m88*-*-* obsolete.
4667
37611a2b
AC
46682002-07-24 Andrew Cagney <cagney@redhat.com>
4669
4670 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4671 constant. Same for local pointer variables.
4672 (extract_signed_integer): Ditto.
4673 * defs.h (extract_unsigned_integer): Update.
4674 (extract_signed_integer): Update.
4675
1aaa5f99
AC
46762002-07-24 Andrew Cagney <cagney@redhat.com>
4677
4678 * regcache.c (regcache_raw_write): Change buf parameter to a
4679 constant void pointer.
4680 (regcache_raw_read): Change buf parameter to a void pointer.
4681 (legacy_write_register_gen): Change myaddr parameter a constant
4682 void pointer.
4683 (supply_register): Change val parameter to a const void pointer.
4684 * regcache.h (regcache_raw_write): Update declaration.
4685 (regcache_raw_read): Update declaration.
4686 (supply_register): Update declaration.
4687
b4f5539f
TT
46882002-07-24 Tom Tromey <tromey@redhat.com>
4689
4690 * defs.h (gdb_readline_wrapper): Declare.
4691 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4692 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4693 * top.c (gdb_readline_wrapper): New function.
4694 (command_line_input): Use it.
4695
0818c12a
AC
46962002-07-24 Andrew Cagney <cagney@redhat.com>
4697
4698 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4699 regcache_read and regcache_write.
4700 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4701 * regcache.c: Update.
4702 * sh-tdep.c (sh64_push_arguments): Update comment.
4703 (sh_pseudo_register_read): Update.
4704 (sh_pseudo_register_write): Update.
4705 (sh4_register_read): Update.
4706 (sh4_register_write): Update.
4707 (sh64_pseudo_register_read): Update.
4708 (sh64_pseudo_register_write): Update.
4709 (sh64_register_read): Update.
4710 (sh64_register_write): Update.
4711 * i386-tdep.c (i386_extract_return_value): Update.
4712 (i386_extract_struct_value_address): Update.
4713 (i386_extract_return_value): Update.
4714 * blockframe.c (generic_read_register_dummy): Update.
4715 (generic_call_dummy_register_unwind): Update
4716 * infrun.c (write_inferior_status_register): Update.
4717
f7321c06
JB
47182002-07-23 Jim Blandy <jimb@redhat.com>
4719
4720 * parser-defs.h (expression_context_pc): Make this extern.
4721 (Thanks to Michael Snyder.)
4722
2037aebb
AC
47232002-07-23 Andrew Cagney <ac131313@redhat.com>
4724
4725 GDB 5.2.1 released from 5.2 branch.
4726 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4727 * README: Update to mention 5.2.1.
4728
66504d44
MS
47292002-07-23 Mark Salter <msalter@redhat.com>
4730
4731 * remote.c (remote_read_bytes): Fix check for error.
4732
27bae383
KB
47332002-07-22 Kevin Buettner <kevinb@redhat.com>
4734
4735 * aix-thread.c (language.h): Include.
4736 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4737 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4738 Print newlines at end of debug messages.
4739 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4740 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4741
47422002-07-22 Kevin Buettner <kevinb@redhat.com>
4743
4744 * aix-thread.c (ppc-tdep.h): Include.
4745 (special_register_p): New function.
4746 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4747 (store_regs_user_thread): Use register number information from
4748 gdbarch_tdep struct instead of hardcoded offsets relative to
4749 FIRST_UISA_SP_REGNUM.
4750 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4751 special_register_p() instead of using FPLAST_REGNUM and
4752 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4753 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4754 will be MQ's register number.
4755
47562002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4757
4758 * aix-thread.c (ops): Rename to aix_thread_ops.
4759 (base_ops): Rename to base_target.
4760 (ops_attach): Rename to aix_thread_attach.
4761 (ops_detach): Rename to aix_thread_detach.
4762 (ops_resume): Rename to aix_thread_detach.
4763 (ops_wait): Rename to aix_thread_wait.
4764 (ops_kill): Rename to aix_thread_kill.
4765 (init_ops): Rename to init_aix_thread_ops.
4766 (ops_fetch_register): Rename to aix_thread_fetch_register.
4767 (ops_store_register): Rename to aix_thread_store_register.
4768 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4769 (ops_thread_alive): Rename to aix_thread_thread_alive.
4770 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4771 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4772 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4773 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4774 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4775 (store_regs_lib): Rename to store_regs_user_thread.
4776 (store_regs_kern): Rename to store_regs_kernel_thread.
4777
27bae383 47782002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
4779
4780 * aix-thread.c (ops_prepare_to_store): Eliminate.
4781 (init_ops): Don't initialize ops.prepare_to_store.
4782 (store_regs_kern): Pre-fetch register buffers from child,
4783 because some registers may not be in the cache. Copy
4784 regs from register cache only if they are cached.
4785 (store_regs_lib): Copy regs from register cache only
4786 if they are cached.
4787 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4788 fill_gprs64): Ditto.
4789
61c5da0b
KB
47902002-07-22 Kevin Buettner <kevinb@redhat.com>
4791
4792 * aix-thread.c (gdb_assert.h): Include.
4793 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4794 register sizes (from register cache) match size of buffer holding
4795 register data.
4796 (fill_sprs32): Change parameter types to match those in the ptrace()
4797 buffer.
4798 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4799 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4800
48012002-07-22 Michael Snyder <msnyder@redhat.com>
4802
4803 * aix-thread.c (supply_sprs64): Cosmetic change.
4804 (supply_sprs32): Cosmetic change.
4805 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4806 (fill_sprs64): Use regcache_collect instead of read_register.
4807 (store_regs_lib): Use regcache_collect instead of
4808 read_register. Use fill_sprs32 instead of fill_sprs64,
4809 if debugging a 32-bit architecture.
4810 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4811 out of the register cache, instead of passing a pointer into
4812 the register cache directly to ptrace. Use regcache_collect
4813 insteaad of read_register.
4814 (ops_prepare_to_store): Use target_read_registers instead
4815 of read_register_bytes.
4816
36479eb1
AS
48172002-07-20 Aidan Skinner <aidan@velvet.net>
4818
4819 * MAINTAINERS: Add self under write after approval.
4820
80ae6ee2
AS
48212002-07-20 Aidan Skinner <aidan@velvet.net>
4822
4823 * ada-tasks.c: Change k&r style function definitions to prototyped
4824 form.
4825
8a8ab2b9
AC
48262002-07-19 Andrew Cagney <ac131313@redhat.com>
4827
4828 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4829 * x86-64-tdep.c: Include "objfiles.h".
4830 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4831 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4832
fb16b900
ML
48332002-07-17 Michal Ludvig <michal@suse.cz>
4834
4835 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4836 (update_context): Initialise cfa variable.
4837
0fe7bf7b
MS
48382002-07-17 Michael Snyder <msnyder@redhat.com>
4839
4840 * aix-thread.c: Shorten some long lines.
4841 Bring comments into line with code spec.
4842
488f131b
JB
48432002-07-18 Joel Brobecker <brobecker@gnat.com>
4844
4845 * infrun.c: Re-indent using gdb_indent.sh.
4846
46c415d2
JB
48472002-07-18 Joel Brobecker <brobecker@gnat.com>
4848
4849 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4850 Leave the indentation temporarily untouched, to minimize the diffs.
4851
cdecafbe
EZ
48522002-07-18 Elena Zannoni <ezannoni@redhat.com>
4853
4854 * stabsread.c: Make os9k sections of the code obsolete,
4855 for real this time.
4856 * stabsread.h: Make os9k sections of the code obsolete.
4857
7b6aa020
ML
48582002-07-18 Michal Ludvig <mludvig@suse.cz>
4859
09ec9b38
ML
4860 * linux-low.c (regsets_store_inferior_registers): Add free()
4861 at the end of a loop to prevent memory leak.
4862 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4863 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
4864 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4865 line a comment.
4894ac5d 4866 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 4867
233282cd
JB
48682002-07-17 Jim Blandy <jimb@redhat.com>
4869
4870 * macrocmd.c (info_macro_command): Remove newline from error
4871 message.
4872
7b6aa020 48732002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
4874
4875 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4876 (sh_gdbarch_init): Use it for sh-dsp.
4877
f7ef9339
KB
48782002-07-16 Kevin Buettner <kevinb@redhat.com>
4879
4880 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4881 64-bit DWARF2 format.
4882
8dd72958
JB
48832002-07-16 Joel Brobecker <brobecker@gnat.com>
4884
4885 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4886 <sys/proc.h> when not available.
4887
a99a9e1b
AC
48882002-07-16 Andrew Cagney <ac131313@redhat.com>
4889
4890 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4891 * stabsread.c: Make os9k sections of the code obsolete.
4892 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4893 * config/i386/i386os9k.mt: Make file obsolete.
4894 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4895 (COMMON_OBS): Remove os9kread.o
4896 (SFILES): Remove os9kread.c.
4897 (os9kread.o, remote-os9k.o): Make target obsolete.
4898 * remote-os9k.c: Make file obsolete.
4899 * os9kread.c: Make file obsolete.
4900 * Makefile.in
4901
7a3085c1
AC
49022002-07-16 Andrew Cagney <ac131313@redhat.com>
4903
4904 * NEWS: Mention that the FR30 has been made obsolete.
4905 * fr30-tdep.c: Make file obsolete.
4906 * config/fr30/tm-fr30.h: Ditto.
4907 * config/fr30/fr30.mt: Ditto.
4908 * configure.tgt: Make fr30-*-elf obsolete.
4909 * MAINTAINERS: Make fr30-elf obsolete.
4910
28a93f5a
PM
49112002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4912
4913 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4914 found is not inside a section.
4915
be006b8b
KB
49162002-07-15 Kevin Buettner <kevinb@redhat.com>
4917
4918 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4919 strerror().
4920 (pdc_realloc): Use xrealloc() instead of realloc().
4921
14fa3751
KB
49222002-07-15 Kevin Buettner <kevinb@redhat.com>
4923
4924 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4925 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4926 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4927 macros.
4928
42cc437f
KB
49292002-07-15 Kevin Buettner <kevinb@redhat.com>
4930
4931 * aix-thread.c (ptrace_check): Eliminate goto.
4932 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4933 problem.
4934
8e2c28d4
KB
49352002-07-15 Kevin Buettner <kevinb@redhat.com>
4936
4937 * aix-thread.c (gdbcmd.h): Include.
4938 (DEBUG, DBG, DBG2, dbg): Eliminate.
4939 (debug_aix_thread): New static global.
4940 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4941 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4942 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4943 invocations to DBG and DBG2 macros to test against
4944 ``debug_aix_thread'' and call fprintf_unfiltered().
4945 (_initialize_aix_thread): Add new command "set debug aix-thread".
4946
30413464
AC
49472002-07-15 Andrew Cagney <ac131313@redhat.com>
4948
4949 From Gerhard Tonn <TON@de.ibm.com>:
4950 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4951 instead of supply_register.
4952
7c43edc1
AC
49532002-07-15 Andrew Cagney <ac131313@redhat.com>
4954
4955 * dwarf2cfi.c: Include "gdb_assert.h".
4956 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4957 non-NULL.
4958 (update_context): Do not use __func__. Add missing ``break''.
4959 (update_context): Do not use __func__.
4960
9364a0ef
EZ
49612002-07-15 Elena Zannoni <ezannoni@redhat.com>
4962
4963 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4964 and its setting. Set gdbarch instruction printing functions
4965 directly. For non-rs6000 case use new function
4966 gdb_print_insn_powerpc.
4967 (gdb_print_insn_powerpc): New function.
4968
3fbeef0b
AC
49692002-07-13 Andrew Cagney <ac131313@redhat.com>
4970
92eb23c5 4971 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
4972 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4973 * configure.tgt: Mark d30v-*-* as obsolete.
4974 * d30v-tdep.c: Mark file as obsolete.
4975 * config/d30v/d30v.mt: Ditto.
4976 * config/d30v/tm-d30v.h: Ditto.
4977
aacb1f0a
AS
49782002-07-13 Aidan Skinner <aidan@velvet.net>
4979
4980 * ada-tasks.c (add_task_entry): replace calls to
4981 malloc() with xmalloc
4982 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4983
4984 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4985 ada_finish_decode_line_1, all_sals_for_line
4986 ada_breakpoint_rewrite): replace calls to free() with xfree()
4987
c11d79f2
KB
49882002-07-12 Kevin Buettner <kevinb@redhat.com>
4989
4990 From Nicholas Duffek (with minor changes by Martin Hunt,
4991 Louis Hamilton, and Kevin Buettner):
4992 * aix-thread.c: New file.
4993
8e19ed76
PS
49942002-07-12 Petr Sorfa <petrs@caldera.com>
4995
4996 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4997 complaint for invalid attribute class or form.
4998 (read_func_scope): DW_AT_frame_base
4999 better handling of DW_AT_block*.
5000 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5001 better handling of DW_AT_block*.
5002 (read_common_block): DW_AT_location
5003 better handling of DW_AT_block*.
5004 (read_partial_die): DW_AT_location better handling
5005 of DW_AT_block*.
5006 (new_symbol): DW_AT_external better handling of
5007 DW_AT_block*. Proper initialization of variable
5008 "addr".
5009 (attr_form_is_block): New function that returns true
5010 if the attribute's form is of DW_FORM_block*.
5011
295401f7
DJ
50122002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5013
5014 * valops.c (find_method_list): Remove comment about
5015 removed STATIC_MEMFUNCP argument.
5016 (value_find_oload_method_list): Likewise.
5017
e42dc924
KB
50182002-07-12 Kevin Buettner <kevinb@redhat.com>
5019
5020 From Nicholas Duffek:
5021 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5022 target_new_objfile_hook.
5023
6904b546
KB
50242002-07-12 Kevin Buettner <kevinb@redhat.com>
5025
5026 From Nicholas Duffek:
5027 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5028 csect.
5029
53fe9346
AC
50302002-07-12 Andrew Cagney <cagney@redhat.com>
5031
5032 * MAINTAINERS: Mention --enable-sim-build-warnings.
5033 (m68hc11-elf): Disable sim build warnings.
5034 (m32r-elf): Mark as broken obsolete candidate.
5035 (x86_64-linux-gnu): Mark as buildable with -Werror.
5036 (arm-elf): Change -w to ``,'' which enables warnings but not
5037 -Werror.
5038
af5f3db6
AC
50392002-07-12 Andrew Cagney <ac131313@redhat.com>
5040
5041 * bcache.h: Update copyright.
5042 (struct bstring, struct bcache): Move definition to "bcache.c".
5043 Replaced by opaque declaration.
5044 (bcache_xfree): Replace free_bcache.
5045 (bcache_xmalloc, bcache_memory_used): Declare.
5046
5047 * bcache.c: Update copyright.
5048 (struct bstring, struct bcache): Moved to here from "bcache.h".
5049 Update comments.
5050 (bcache_xmalloc, bcache_memory_used): New functions.
5051 (bcache_xfree): Replace function free_bcache.
5052
5053 * Makefile.in (objfiles.o): Add $(bcache_h).
5054 (objfiles_h): Remove $(bcache_h).
5055 (symfile.o): Add $(bcache_h).
5056
5057 * symmisc.c: Update copyright.
5058 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5059 (print_objfile_statistics): Use bcache_memory_used.
5060
5061 * symfile.c: Include "bcache.h".
5062 (reread_symbols): Use bcache_xfree.
5063 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5064 (add_psymbol_to_list): Pass psymbol_cache by value.
5065 (add_psymbol_with_dem_name_to_list): Ditto.
5066
5067 * objfiles.h: Update copyright.
5068 (struct bcache): Declare opaque. Do not include "bcache.h".
5069 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5070 bcache'' pointers.
5071 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5072
5073 * objfiles.c: Include "bcache.h". Update copyright.
5074 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5075 macro_cache.
5076 (free_objfile): Use bcache_xfree.
5077
444199e7
GS
50782002-07-11 Grace Sainsbury <graces@redhat.com>
5079
5080 * monitor.c (monitor_fetch_register): Make name a constant.
5081 (monitor_store_register): Same.
5082
261397f8
DJ
50832002-07-11 Daniel Jacobowitz <drow@mvista.com>
5084
5085 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5086 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5087 (finish_block) For non-function blocks, hash the symbol table. For
5088 function blocks, mark the symbol table as unhashed.
5089 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5090 (msymbol_hash_iw): Likewise.
5091 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5092 value.
5093 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5094 (lookup_minimal_symbol): Likewise for both.
5095 * symtab.h (struct block): Add `hashtable' flag. Comment the
5096 hashtable.
5097 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5098 (ALL_BLOCK_SYMBOLS): Update.
5099 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5100 (struct symbol): Add `hash_next' pointer.
5101 * symtab.c (lookup_block_symbol): Search using the hash table when
5102 possible.
5103 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5104 (search_symbols, find_addr_symbol): Likewise.
5105
5106 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5107 (read_dst_symtab): Likewise.
5108 * jv-lang.c (get_java_class_symtab): Likewise.
5109 * mdebugread.c: Include "gdb_assert.h".
5110 (shrink_block): Assert that the block being modified is not hashed.
5111 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5112 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5113 symbols.
5114 (dump_symtab): Recognize hashed blocks.
5115 * printcmd.c (print_frame_args): Assert that function blocks do not
5116 have hashed symbol tables.
5117 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5118 (fill_in_ada_prototype, debug_print_block): Likewise.
5119 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5120
6f0eaa01
CV
51212002-07-11 Corinna Vinschen <vinschen@redhat.com>
5122
5123 * stack.c (print_frame): Use result of frame_address_in_block()
5124 instead of fi->pc when evaluating symbols.
5125 (backtrace_command_1): Ditto.
5126
a208b0cb
AC
51272002-07-11 Andrew Cagney <cagney@redhat.com>
5128
5129 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5130 Make static.
5131
5132 * arm-tdep.c (arm_register_name): Make return type constant.
5133
a6b6b089
AC
51342002-07-10 Andrew Cagney <ac131313@redhat.com>
5135
5ae5f592
AC
5136 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5137 prototype.
5138 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5139 * s390-tdep.c (s390_fp_regnum): Ditto.
5140 (s390_read_fp): Ditto.
5141 (s390_pop_frame): Ditto.
5142 (_initialize_s390_tdep): Ditto.
5143 * remote.c (get_remote_state): Ditto.
5144 * procfs.c (mappingflags): Ditto.
5145 * memattr.c (_initialize_mem): Ditto.
5146 * mcore-tdep.c (mcore_pop_frame): Ditto.
5147 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5148 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5149 * language.c (set_case_str): Ditto.
5150 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5151 * frv-tdep.c (new_variant): Ditto.
5152 (frv_stopped_data_address): Ditto.
5153 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5154 (context_alloc): Ditto.
5155 (frame_state_alloc): Ditto.
5156 (unwind_tmp_obstack_init): Ditto.
5157 (unwind_tmp_obstack_free): Ditto.
5158 (cfi_read_fp): Ditto.
5159 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5160 (cris_pop_frame): Ditto.
5161 * c-lang.c (scanning_macro_expansion): Ditto.
5162 (finished_macro_expansion): Ditto.
5163 (c_preprocess_and_parse): Ditto.
5164 * gdbarch.sh: Ditto.
5165 * gdbarch.h, gdbarch.c: Regenerate.
5166 * config/mn10200/tm-mn10200.h: Adjust indentation.
5167 * target.c: Adjust indentation.
5168 * symtab.h: Adjust indentation.
5169 * stabsread.h: Adjust indentation.
5170 * remote-es.c: Adjust indentation.
5171 * os9kread.c: Adjust indentation.
5172
51732002-07-10 Andrew Cagney <ac131313@redhat.com>
5174
a6b6b089
AC
5175 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5176 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5177
a1789893
GS
51782002-07-10 Grace Sainsbury <graces@redhat.com>
5179
5180 * NEWS: Mention m68k, mcore multi-arching.
5181 * MAINTAINERS: Change status of m68k, mcore to reflect
5182 multi-arching.
5183
02f0d45d
DJ
51842002-07-10 Daniel Jacobowitz <drow@mvista.com>
5185
5186 * valops.c (find_overload_match): Free oload_syms.
5187
f15f768e
JB
51882002-07-09 Joel Brobecker <brobecker@gnat.com>
5189
5190 Define HAVE_SYS_PROC_H if sys/proc.h exists
5191 * configure.in: Add check for sys/proc.h
5192 * config.in: Regenerate.
5193 * configure: Regenerate.
5194
902a7139
GS
51952002-07-09 Grace Sainsbury <graces@redhat.com>
5196
5197 * config/m68k/tm-m68k.h: Remove macros wrapped in
5198 #if !GDB_MULTI_ARCH.
5199
a534e424
AC
52002002-07-08 Andrew Cagney <ac131313@redhat.com>
5201
5202 * config.in, configure: Regenerate.
5203
9b94f7bf
MK
52042002-07-08 Mark Kettenis <kettenis@gnu.org>
5205
5206 * dwarf2cfi.c: Include "gcore.h".
5207 (execute_stack_op): Fix implementation of the
5208 DW_OP_deref and DW_OP_deref_size operators by letting do their
5209 lookup in the target.
5210
1d34db41
MK
52112002-07-07 Mark Kettenis <kettenis@gnu.org>
5212
5213 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5214 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5215 tdep->sc_sp_offset.
5216
79d5b63a
DJ
52172002-07-05 Daniel Jacobowitz <drow@mvista.com>
5218
5219 Fix PR gdb/595, gdb/602
5220 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5221 Don't call value_cast, just read the vtable pointer; update comments
5222 to match.
5223
3bb912e8
GS
52242002-07-05 Grace Sainsbury <graces@redhat.com>
5225
5226 * config/mcore/tm-mcore.h: Remove file.
5227 * config/mcore/mcore.mt: Remove definition of TM_FILE
5228 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5229
ca39387d
MK
52302002-07-05 Mark Kettenis <kettenis@gnu.org>
5231
5232 * i386bsd-tdep.c: Include "gdb_string.h".
5233
efdc1108
GS
52342002-07-04 Grace Sainsbury <graces@redhat.com>
5235
5236 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5237 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5238 mcore-tdep.
5239 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5240 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5241 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5242 (RETVAL_REGNUM): Move macros from tm-mcore.h
5243 (mcore_reg_struct_has_addr): New function.
5244 (mcore_gdbarch_init): Added initializations for the macros removed
5245 from tm-mcore.h.
5246
bb21884d
MK
52472002-07-04 Mark Kettenis <kettenis@gnu.org>
5248
5249 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5250 traditonal string branding within the ELF header.
5251
228c6d41
DJ
52522002-07-04 Daniel Jacobowitz <drow@mvista.com>
5253
5254 * symtab.c (remove_params): New function.
5255 (make_symbol_overload_list): Use it instead of cplus_demangle.
5256 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5257
2404952e
MK
52582002-07-04 Mark Kettenis <kettenis@gnu.org>
5259
e5e4acad
MK
5260 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5261
baadce09
MK
5262 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5263 New variables.
5264 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5265 and tdep->sigtramp_end.
5266 * i386obsd-nat.c: New file.
5267 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5268
2404952e
MK
5269 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5270 Don't call get_current_frame().
5271
9b4f1ba7
PM
52722002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5273
5274 * i386-nat.c (child_post_startup_inferior): New function
5275 calling i386_cleanup_dregs if
5276 I386_USE_GENERIC_WATCHPOINTS is defined.
5277 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5278 conditional to acknowledge that i386-nat.c has its
5279 own child_post_startup_inferior function.
5280
c0d1d883
MK
52812002-07-04 Mark Kettenis <kettenis@gnu.org>
5282
00f8375e
MK
5283 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5284 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5285 instead of MAX_REGISTER_RAW_SIZE.
5286 (i386_extract_return_value, i386_extract_struct_value_address):
5287 Convert to use regcache.
5288 (i386_gdbarch_init): Set max_register_raw_size and
5289 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5290 Set extract_return_value and extract_struct_value_address instead
5291 of their deprecated variants.
5292
c0d1d883
MK
5293 Convert i386 target to generic dummy frames.
5294 * i386-tdep.c: Include "symfile.h".
5295 (i386_frameless_signal_p): Consider a function to be frameless if
5296 the pc points at the first instruction of the function.
5297 (i386_frame_chain): Handle (generic) call dummies.
5298 (i386_frame_saved_pc): Likewise.
5299 (i386_frame_init_saved_regs): Remove code dealing with call
5300 dummies on the stack.
5301 (i386_push_dummy_frame): Removed.
5302 (i386_call_dummy_words): Removed.
5303 (i386_fix_call_dummy): Removed.
5304 (i386_push_return_address): New function.
5305 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5306 parameter, and don't call get_current_frame.
5307 (i386_pop_frame): New function.
5308 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5309 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5310 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5311 call_dummy_length to 0, set call_dummy_words to NULL, set
5312 sizeof_call_dummy_words to 0, set fix_call_dummy to
5313 generic_fix_call_dummy, set pc_in_call_dummy to
5314 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5315 generic_push_dummy_frame, set push_return_address to
5316 i386_push_return_address and set frame_chain_valid to
5317 generic_file_frame_chain_valid.
5318
049ee0e4
AC
53192002-07-03 Andrew Cagney <ac131313@redhat.com>
5320
5321 * gdbarch.sh (struct regcache): Add opaque declaration.
5322 (EXTRACT_RETURN_VALUE): New architecture method.
5323 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5324 * gdbarch.h, gdbarch.c: Regenerate.
5325 * arch-utils.c (legacy_extract_return_value): New function.
5326 * arch-utils.h (legacy_extract_return_value): Declare.
5327 * values.c (value_being_returned): Re-enable code handling
5328 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5329 deprecated_grub_regcache_for_registers call to block handling
5330 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5331 (EXTRACT_RETURN_VALUE): Do not define.
5332
4e0d9804
GS
53332002-07-03 Grace Sainsbury <graces@redhat.com>
5334
5335 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5336 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5337 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5338 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5339 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5340 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5341 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5342 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5343 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5344 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5345 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5346 argument so the function fits the prototype in the architecture
5347 vector.
5348 (mcore_pop_frame): Remove argument so the function fits the
5349 prototype. Use get_current_frame instead of the argument.
5350 (mcore_push_arguments): Change type of struct_return so the
5351 function can be used in the architecture vector.
5352 (mcore_store_struct_return): Add.
5353 (mcore_frame_init_saved_regs): Add.
5354 (mcore_gdbarch_init): Add function calls to replace the macros
5355 removed from tm-mcore.h
5356
36160dc4
AC
53572002-07-03 Andrew Cagney <ac131313@redhat.com>
5358
5359 * infcmd.c (print_return_value): Remove compatibility code calling
5360 deprecated_grub_regcache_for_registers.
5361
5362 * values.c: Include "regcache.h".
5363 (value_being_returned): Update. Use
5364 deprecated_grub_regcache_for_registers to extract the register
5365 buffer address.
5366 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5367 ``struct regcache''.
5368 * Makefile.in (values.o): Add dependency on $(regcache_h).
5369
5370 * inferior.h (run_stack_dummy): Change type of second parameter to
5371 a ``struct regcache''.
5372 * valops.c (hand_function_call): Change type of retbuf to ``struct
5373 regcache''. Allocate using regcache_xmalloc, clean using
5374 make_cleanup_regcache_xfree.
5375 * infcmd.c (run_stack_dummy): Update. Use
5376 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5377
5378 * regcache.c (do_regcache_xfree): New function.
5379 (make_cleanup_regcache_xfree): New function.
5380 * regcache.h (make_cleanup_regcache_xfree): Declare.
5381
e64d9b3d
MH
53822002-07-03 Martin M. Hunt <hunt@redhat.com>
5383
4dd79c29
MH
5384 * event-top.c (command_line_handler): Don't read past
5385 beginning of buffer.
e64d9b3d 5386
4dd79c29
MH
53872002-07-03 Martin M. Hunt <hunt@redhat.com>
5388
e64d9b3d
MH
5389 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5390 struct frame_id.
5391 (varobj_create): Store frame_id for root.
5392 (varobj_gen_name): Use xasprintf.
5393 (varobj_update): Save and restore frame using get_frame_id() and
5394 frame_find_by_id().
5395 (create_child): Use xasprintf.
5396 (new_root_variable): Initialize frame_id.
5397 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5398 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5399 to prevent memory leak.
5400
26e6c56a
AC
54012002-07-03 Andrew Cagney <ac131313@redhat.com>
5402
5403 * valops.c (hand_function_call): Move declaration of retbuf to
5404 start of function, allocate using malloc, add a cleanup but before
5405 the inf_status cleanup, cleanup the buffer. Rename local variable
5406 old_chain to inf_status_cleanup.
5407
f436dd25
MH
54082002-07-03 Martin M. Hunt <hunt@redhat.com>
5409
5410 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5411
5412 * cli/cli-decode.c (cmd_func_p): New function.
5413 (cmd_func): New function.
5414
5415 * command.h: Add cmd_func() and cmd_func_p().
5416
4cfe2084
GS
54172002-07-03 Grace Sainsbury <graces@redhat.com>
5418
5419 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5420 (REGISTER_SIZE): Remove.
5421 (MAX_REGISTER_RAW_SIZE): Remove.
5422 (REGISTER_VIRTUAL_TYPE): Remove.
5423 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5424 (REGISTER_NAME): Remove.
5425 (USE_GENERIC_DUMMY_FRAMES): Remove.
5426 (CALL_DUMMY): Remove.
5427 (CALL_DUMMY_START_OFFSET): Remove.
5428 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5429 (CALL_DUMMY_LOCATION): Remove.
5430 (FIX_CALL_DUMMY): Remove.
5431 (CALL_DUMMY_ADDRESS): Remove.
5432 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5433 (SAVE_DUMMY_FRAME_TOS): Remove.
5434 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5435 (mcore_register_virtual_type): New function.
5436 (mcore_register_byte): New function.
5437 (mcore_register_size): New function.
5438 (mcore_register_name): New function.
5439 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5440 macros removed from tm-mcore.h.
5441 (mcore_dump_tdep): Add.
5442 (_initialize_mcore_tdep): Add gdbarch_register call.
5443
4fd667e9
MK
54442002-07-03 Mark Kettenis <kettenis@gnu.org>
5445
5446 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5447 frameless_look_for_prologue, such that we actually call this
5448 function.
5449
42f99ac2
JB
54502002-07-02 Joel Brobecker <brobecker@gnat.com>
5451
5452 * frame.h (frame_address_in_block): New function.
5453
5454 * blockframe.c (frame_address_in_block): New function extracted
5455 from get_frame_block().
5456 (get_frame_block): Use frame_address_in_block().
5457 (block_innermost_frame): Use frame_address_in_block() to match
5458 the frame pc address against the block boundaries rather than
5459 the frame pc directly. This prevents a failure when a frame pc
5460 is actually a return-address pointing immediately after the end
5461 of the given block.
5462
103a1597 54632002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5464
5465 * MAINTAINERS: Add self under write after approval.
5466
54672002-07-02 Grace Sainsbury <graces@redhat.com>
5468
103a1597
GS
5469 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5470 used in architecture vector. The default is
5471 m68k_local_breakpoint_from_pc.
5472 (m68k_local_breakpoint_from_pc): Add.
5473 (enum): Add register numbers from tm-m68k.h.
5474 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5475 vector.
5476 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5477 GDB_MULTI_ARCH_PARTIAL.
5478 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5479 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5480 m68k-tdep.c.
5481 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5482 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5483 to enum in m68k-tdep.c
5484
7a5a0534
JB
54852002-07-02 Joel Brobecker <brobecker@gnat.com>
5486
5487 * solib-osf.c (open_map): Compute the list of shared libraries
5488 loaded by the inferior, rather than the list of libraries loaded
5489 by GDB itself. Otherwise, GDB ends up reading the symbols from
5490 the wrong shared libraries...
5491
6f558d74
MK
54922002-07-02 Mark Kettenis <kettenis@gnu.org>
5493
b7d15bf7
MK
5494 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5495 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5496 macros.
5497 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5498 Remove functions.
5499 (FRAMELESS_SIGNAL): Remove function.
5500 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5501 i386_linux_saved_pc_after_call): Removed.
5502 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5503 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5504 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5505
6bff26de
MK
5506 * i386-tdep.c (i386_frameless_signal_p): New function.
5507 (i386_frame_chain): Deal with frameless signals.
5508 (i386_sigtramp_saved_sp): New function.
5509 (i386_frame_saved_pc): Deal with frameless signals.
5510 (i386_saved_pc_after_call): Make sure the correct value is
5511 returned just after entry into a sigtramp.
5512 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5513 i386fbsd4_sc_sp_offset): New variables.
5514 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5515 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5516 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5517 similiar to what we already did for sc_pc_offset.
5518 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5519 tdep->sc_sp_offset.
5520
6f558d74
MK
5521 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5522
145564b7
ML
55232002-07-02 Michal Ludvig <mludvig@suse.cz>
5524
5525 * config/i386/tm-x86-64linux.h: New.
5526 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5527 definitions.
5528 * config/i386/nm-x86-64.h: Rename to ...
5529 * config/i386/nm-x86-64linux.h: ... this one.
5530 * config/i386/x86-64linux.mh: Reflect the above change.
5531
3a1e71e3
MK
55322002-07-01 Mark Kettenis <kettenis@gnu.org>
5533
21d0e8a4
MK
5534 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5535 with sigcontext_addr. Add sc_sp_offset.
5536 (i386bsd_sigtramp_saved_pc): Remove prototype.
5537 (i386bsd_sicontext_addr): Add prototype.
5538 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5539 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5540 (i386_svr4_sigtramp_saved_pc): Removed.
5541 (i386_svr4_sigcontext_addr): New function.
5542 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5543 Initialize tdep->sigcontext_addr instead. Initialize
5544 tdep->sc_pc_offset and tdep->sc_sp_offset.
5545 (i386_gdbarch_init): Likewise.
5546 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5547 any more.
5548 (i386bsd_sigtramp_saved_pc): Remove function.
5549 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5550 Initialize tdep->sigcontext_addr instead. Initialize
5551 tdep->sc_pc_offset.
5552 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5553 of tdep->sigtramp_saved_pc.
5554 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5555 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5556 instead.
5557
3a1e71e3
MK
5558 * i386-tdep.c (i386_frameless_function_invocation,
5559 i386_frame_num_args, i386_frame_init_saved_regs,
5560 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5561 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5562 i386_extract_return_value, i386_store_return_value,
5563 i386_extract_struct_value_address, i386_register_virtual_type,
5564 i386_register_convertible, i386_register_convert_to_virtual,
5565 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5566 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5567 static.
5568
52e9098c
MK
55692002-07-01 Mark Kettenis <kettenis@gnu.org>
5570
77b13a25
MK
5571 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5572
52e9098c
MK
5573 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5574 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5575 this macro. Include "value.h".
5576
1b372fff
AS
55772002-06-30 Aidan Skinner <aidan@velvet.net>
5578
5579 * ada-exp.tab.c: remove as it's a generated file
5580 * ada-lex.c: remove as it's a generated file
5581
9c5045b5
MK
55822002-06-30 Mark Kettenis <kettenis@gnu.org>
5583
4a93c5bb
MK
5584 * config/i386/tm-i386.h (struct frame_info, struct
5585 frame_saved_regs, struct value, struct type): Remove forward
5586 declarations.
5587
322d4fe0
MK
5588 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5589 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5590 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5591 (FILL_FPXREGSET): Define.
5592
fdd8263d
MK
5593 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5594
482e577b
MK
5595 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5596 i[3456]86-*-netbsd* case.
5597 * config/i386/tm-obsd.h: Removed.
5598 * config/i386/obsd.mt: Removed.
5599 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5600 core-aout.o.
5601 (MH_CFLAGS): Add -DYYDEBUG=0.
5602
6916549a
MK
5603 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5604 i386nbsd_sc_pc_offset on OpenBSD too.
5605
9c5045b5
MK
5606 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5607 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5608 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5609 define.
5610 * i386bsd-tdep.c: Include "arch-utils.h".
5611 (i386bsd_aout_in_solib_call_trampoline): New function.
5612 (i386bsd_init_abi): Set in_solib_call_trampoline to
5613 i386bsd_aout_in_solib_call_trampoline.
5614 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5615 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5616
aa84d1bb
AC
56172002-06-28 Andrew Cagney <ac131313@redhat.com>
5618
5619 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5620 (struct obstack, struct bcache): Add opaque declarations.
5621 * Makefile.in (macrotab_h): Update
5622
b4d83933
AC
56232002-06-28 Andrew Cagney <ac131313@redhat.com>
5624
5625 * blockframe.c (generic_find_dummy_frame): Change return type to
5626 ``struct regcache''.
5627 (struct dummy_frame): Replace field ``registers'' with regcache, a
5628 struct regcache object.
5629 (generic_find_dummy_frame): Update.
5630 (generic_push_dummy_frame): Update. Use regcache_xfree,
5631 regcache_xmalloc and regcache_cpy.
5632 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5633 regcache_xfree.
5634 (deprecated_generic_find_dummy_frame): Update.
5635 (generic_read_register_dummy): Update. Use
5636 regcache_read_as_address.
5637 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5638 (generic_get_saved_register): Update. Use regcache_read.
5639
08c0b5bc
AC
56402002-06-28 Andrew Cagney <ac131313@redhat.com>
5641
5642 * Makefile.in (objfiles_h): Add $(bcache_h).
5643 * objfiles.h: Include "bcache.h".
5644
5645 * Makefile.in (symtab_h): Remove $(bcache_h).
5646 * symtab.h: Do not include "bcache.h".
5647
1f89801a
AC
56482002-06-28 Andrew Cagney <ac131313@redhat.com>
5649
5650 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5651 generic_func_frame_chain_valid.
5652
b9644b58
DB
56532002-06-28 David O'Brien <obrien@FreeBSD.org>
5654
5655 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5656 * config/i386/tm-fbsd.h: Likewise.
5657
dd486634
AC
56582002-06-28 Andrew Cagney <ac131313@redhat.com>
5659
5660 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5661 generic_unwind_get_saved_register.
5662
0b434a00
AC
56632002-06-27 Andrew Cagney <ac131313@redhat.com>
5664
5665 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5666 * regcache.c (supply_register): Add missing argument to
5667 register_buffer call.
5668
f30e5a77
AC
56692002-06-27 Andrew Cagney <ac131313@redhat.com>
5670
5671 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5672 Solaris /bin/grep does not not like it. From Peter Schauer.
5673
9f064c95
TT
56742002-06-26 Tom Tromey <tromey@redhat.com>
5675
5676 * command.h (add_setshow_cmd): Declare.
5677 (add_setshow_cmd_full): Declare.
5678 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5679 returns void. Use add_setshow_cmd_full.
5680 (add_setshow_cmd_full): New function.
5681 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5682 (add_setshow_boolean_cmd): Likewise.
5683
099c7589
JT
56842002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5685
5686 * config/vax/tm-vax.h: Protect from multiple inclusion.
5687 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5688 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5689 * config/vax/tm-vaxbsd.h: ...here. New file.
5690 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5691
1d049c5e
JT
56922002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5693
5694 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5695 (BELIEVE_PCC_PROMOTION): Remove.
5696 (AP_REGNUM): Move to...
5697 * config/vax/nm-vax.h: ...here.
5698 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5699 (vax_breakpoint_from_pc): New function.
5700 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5701 and gdbarch_believe_pcc_promotion.
5702
4791e091
JT
57032002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5704
5705 * Makefile.in (vax_tdep_h): Define.
5706 (vax-tdep.o): Use $(vax_tdep_h).
5707 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5708 (vax_dump_tdep): New function.
5709 (_initialize_vax_tdep): Register vax_dump_tdep.
5710 * vax-tdep.h: Include osabi.h.
5711 (struct gdbarch_tdep): New.
5712
da130f98
AC
57132002-06-26 Andrew Cagney <cagney@redhat.com>
5714
5715 * frame.h (deprecated_generic_find_dummy_frame): Rename
5716 generic_find_dummy_frame.
5717 * blockframe.c (generic_find_dummy_frame): Make static.
5718 (deprecated_generic_find_dummy_frame): New function.
5719 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5720 generic_find_dummy_frame with deprecated_find_dummy_frame.
5721 (sh64_nofp_frame_init_saved_regs): Ditto.
5722 (sh_fp_frame_init_saved_regs): Ditto.
5723 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5724 (s390_frame_chain): Ditto.
5725 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5726
6300c360
GS
57272002-06-26 Grace Sainsbury <graces@redhat.com>
5728
5729 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5730 gdbarch vector are at the top.
5731 (NUM_REGS): Remove.
5732 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5733 (FRAME_ARGS_ADDRESS): Remove.
5734 (FRAME_LOCALS_ADDRESS): Remove.
5735 (FRAME_NUM_ARGS): Remove.
5736 (FRAME_ARGS_SKIP): Remove.
5737 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5738 (m68k_gdbarch_init): Add gdbarch initializations for macros
5739 undefined in tm-m68k.h
5740
1c617db8
GS
57412002-06-26 Grace Sainsbury <graces@redhat.com>
5742
5743 * monitor.h: Add the function regname to monitor_ops
5744 structure. This way NUM_REGS does not have to be a constant.
5745 * monitor.c (monitor_fetch_register): Added support for regname
5746 function. The function is called if the array regnames is NULL.
5747 (monitor_store_register): Same.
da130f98
AC
5748 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5749 regnames array.
1c617db8
GS
5750 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5751 cpu32bug_cmds.regname to point to new function.
5752 * abug-rom.c (abug_regname): Same as above.
5753 (init_abug_cmds): Same.
5754 * dbug-rom.c (dbug_regname): Same as above.
5755 (init_dbug_cmds): Same.
5756 * remote-est.c (est_regname): Same.
5757 (init_est_cmds): Same.
5758 * rom68k-rom.c (rom68k_regname): Same.
5759 (init_rom68k_cmds): Same.
5760
ea9365bb
TT
57612002-06-25 Tom Tromey <tromey@redhat.com>
5762
5763 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5764
72cec141
AC
57652002-06-25 Andrew Cagney <cagney@redhat.com>
5766
5767 * infrun.c (stop_registers): Change variable's type to ``struct
5768 regcache'''.
5769 (xmalloc_inferior_status): Delete function.
5770 (free_inferior_status): Delete function.
5771 (normal_stop): Use regcache_cpy.
5772 (struct inferior_status): Change type of fields ``stop_registers''
5773 and ``registers'' to ``struct regcache''.
5774 (write_inferior_status_register): Use regcache_write.
5775 (save_inferior_status): Instead of calling
5776 xmalloc_inferior_status, allocate the inf_status buffer directly.
5777 Use regcache_dup_no_passthrough and regcache_dup to save the
5778 buffers.
5779 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5780 Replace the stop_registers regcache instead of overriding it. Use
5781 regcache_xfree. Instead of calling free_inferior_status, xfree
5782 the buffer directly.
5783 (discard_inferior_status): Use regcache_xfree. Instead of calling
5784 free_inferior_status, xfree the buffer directly.
5785 (build_infrun): Use regcache_xmalloc.
5786 (_initialize_infrun): Delete redundant call to build_infrun.
5787
5788 * Makefile.in (infcmd.o): Add $(regcache_h).
5789
5790 * infcmd.c: Include "regcache.h".
5791 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5792 obtain the address of `stop_registers' register buffer.
5793 (print_return_value): Ditto.
5794
5795 * inferior.h (struct regcache): Add opaque declaration.
5796 (stop_registers): Change variable's declared type to ``struct
5797 regcache''.
5798
defc6f8c
TT
57992002-06-24 Tom Tromey <tromey@redhat.com>
5800
c0e624e7
TT
5801 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5802 * target.c (initialize_targets): Fixed typo in
5803 trust-readonly-sections `show' documentation.
5804
defc6f8c
TT
5805 * main.c: Marked all strings with _().
5806
2b236d82
DH
58072002-06-24 Don Howard <dhoward@redhat.com>
5808
5809 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5810 that means max CORE_ADDR+1.
5811 (lookup_mem_region): Ditto.
5812 (mem_info_command): Ditto.
5813
942dc0e9
GS
58142002-06-24 Grace Sainsbury <graces@redhat.com>
5815
5816 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5817 (REGISTER_BYTES_OK): Remove.
5818 (REGISTER_BYTES): Remove.
5819 (STORE_STRUCT_RETURN): Remove.
5820 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5821 (STORE_RETURN_VALUE): Remove.
5822 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5823 (FRAME_CHAIN): Remove.
5824 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5825 (FRAME_SAVED_PC): Remove.
5826 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5827 (m68k_store_struct_return): Add.
5828 (m68k_deprecated_extract_return_value): Add.
5829 (m68k_deprecated_extract_struct_value_address): Add.
5830 (m68k_store_return_value): Add.
5831 (m68k_frame_chain): Add.
5832 (m68k_frameless_function_invocation): Add.
5833 (m68k_frame_saved_pc): Add.
5834 (m68k_gdbarch_init): added set_gdbarch calls for new
5835 functions and deleted macros.
5836
03c30d4d
TT
58372002-06-23 Tom Tromey <tromey@redhat.com>
5838
5839 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5840 (ALLDEPFILES): Likewise.
5841 (udiheaders): Removed.
5842 (udip2soc.o): Likewise.
5843 (udi2go32.o): Likewise.
5844 (udr.o): Likewise.
5845 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5846
37e71372
AC
58472002-06-22 Andrew Cagney <ac131313@redhat.com>
5848
06a6ac57
AC
5849 * infrun.c (_initialize_infrun): Delete unnecessary call to
5850 build_infrun.
5851
37e71372
AC
5852 * regcache.h: Update comments describing the regcache_cpy family
5853 of functions.
5854 (regcache_save, regcache_restore): Delete declaration.
5855 (regcache_save_no_passthrough): Delete declaration.
5856 (regcache_restore_no_passthrough): Delete declaration.
5857 * regcache.c (regcache_save): Delete function.
5858 (regcache_save_no_passthrough): Delete function.
5859 (regcache_restore): Delete function.
5860 (regcache_restore_no_passthrough): Delete function.
5861
78f6d055
AC
58622002-06-21 Andrew Cagney <ac131313@redhat.com>
5863
5864 * config/m68k/tm-m68k.h: Fix typo.
5865 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5866 (m68k_frame_init_saved_regs): Declare.
5867
78b119cb
JB
58682002-06-21 Jim Blandy <jimb@redhat.com>
5869
5870 Remove some vestiges of Harris 88k support.
5871 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5872 register numbering quirk.
5873 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5874 odd symbols occurring in Harris 88k ELF targets.
5875
0fbb3da7
TT
58762002-06-21 Tom Tromey <tromey@redhat.com>
5877
5878 * gdb_locale.h: New file.
5879 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5880 (defs_h): Added gdb_locale.h.
5881 * configure, config.in: Rebuilt.
5882 * configure.in (PACKAGE): Define.
5883 * defs.h: Include gdb_locale.h.
5884 * main.c (captured_main): Call setlocale, bindtextdomain,
5885 textdomain.
5886
456f8b9d
DB
58872002-06-21 Dave Brolley <brolley@redhat.com>
5888
5889 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5890 * config/frv/frv.mt: New file.
5891 * config/frv/tm-frv.h: New file.
5892 * configure.tgt: Support frv-*-*.
5893 * Makefile.in (frv-tdep.o): New target.
5894 * frv-tdep.c: New file.
5895 * NEWS: Mention frv.
5896
cdd463f9
DB
58972002-06-21 Dave Brolley <brolley@redhat.com>
5898
5899 * MAINTAINERS: Add self to "Write After Approval" list.
5900
5d3ed2e3
GS
59012002-06-21 Grace Sainsbury <graces@redhat.com>
5902
5903 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5904 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5905 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5906 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5907 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5908
5909 * m68k-tdep.c: Include arch-utils.h
5910 (m68k_register_raw_size): Add.
5911 (m68k_register_virtual_size): Add.
5912 (m68k_register_virtual_type): Add.
5913 (m68k_register_name): Add.
5914 (m68k_stack_align): Add.
5915 (m68k_register_byte): Add.
5916 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5917 tm-m68k.h.
5918
7f8e7424
GS
59192002-06-21 Grace Sainsbury <graces@redhat.com>
5920
a2c6a6d5 5921 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
5922 m68k_find_saved_regs.
5923 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 5924 references to it with frame->saved_regs.
7f8e7424
GS
5925 (m68k_gdbarch_init): Added function calls to initialize the
5926 gdbarch structure.
a2c6a6d5
GS
5927 (m68k_fix_call_dummy): Add.
5928 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5929 (CALL_DUMMY): Remove.
5930 (CALL_DUMMY_LENGTH): Remove.
5931 (CALL_DUMMY_START_OFFSET): Remove.
5932 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5933 (FIX_CALL_DUMMY): Remove.
5934 (PUSH_DUMMY_FRAME): Remove.
5935 (POP_FRAME): Remove.
7f8e7424 5936
f461f5cf
PM
59372002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5938
5939 * parse.c (parse_fprintf): New function used to avoid calls to
5940 fprintf in bison parser generated debug code.
5941 * parser-defs.h: Declaration of new parse_fprintf function.
5942 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5943 Set YYDEBUG to 1 by default.
5944 Set YYFPRINTF as parse_fprintf.
5945
7f0c12ed
ML
59462002-06-21 Michal Ludvig <mludvig@suse.cz>
5947
5948 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5949 encoding anymore.
5950 (pointer_encoding, enum ptr_encoding): New.
5951 (execute_cfa_program): Take care about pointer encoding.
5952 (dwarf2_build_frame_info): Only call parse_frame_info for
5953 .debug_frame and .eh_frame.
5954 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5955 fixed augmentation handling, added relative addressing,
5956 ignore duplicate FDEs. Added comments.
19d833a2 5957 * dwarf2cfi.c: Reindented.
7f0c12ed 5958
87c4a039
EZ
59592002-06-20 Elena Zannoni <ezannoni@redhat.com>
5960
5961 * event-top.c (command_handler): Don't use space_at_cmd_start
5962 unless there is sbrk() on the host. Assign time and space data
5963 to union fields of the appropriate length.
5964
1cf877ad
ML
59652002-06-20 Michal Ludvig <mludvig@suse.cz>
5966
5967 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5968 x86_64_register_name. Return type changed to 'const char *'.
5969 (x86_64_register_name2nr): Rename to x86_64_register_number.
5970 (x86_64_gdbarch_init): Update to reflect the change.
5971 * x86-64-tdep.h: Ditto.
5972 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5973 (supply_fpregset): Ditto.
5974
3fadccb3
AC
59752002-06-19 Andrew Cagney <cagney@redhat.com>
5976
5977 * regcache.h: Update copyright.
5978 (struct regcache, struct gdbarch): Add opaque declarations.
5979 (current_regcache): Declare global variable.
5980 (regcache_read, regcache_write): Add gdbarch parameter.
5981 (regcache_save, regcache_save_no_passthrough)
5982 (regcache_restore, regcache_restore_no_passthrough)
5983 (regcache_dup, regcache_dup_no_passthrough)
5984 (regcache_cpy, regcache_cpy_no_passthrough)
5985 (deprecated_grub_regcache_for_registers)
5986 (deprecated_grub_regcache_for_register_valid)
5987 (regcache_valid_p): Add function declarations.
5988
5989 * regcache.c: Update copyright.
5990 (regcache_descr_handle): New global variable.
5991 (struct regcache_descr): Define.
5992 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5993 (regcache_descr, xfree_regcache_descr): New functions.
5994 (struct regcache): Define.
5995 (regcache_xmalloc, regcache_xfree): New functions.
5996 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5997 (regcache_dup, regcache_dup_no_passthrough): New functions.
5998 (regcache_valid_p, regcache_read_as_address): New functions.
5999 (deprecated_grub_regcache_for_registers): New function.
6000 (deprecated_grub_regcache_for_register_valid): New function.
6001 (current_regcache): New global variable.
6002 (register_buffer): Add regcache parameter. Update calls.
6003 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6004 (read_register_gen, write_register_gen): Update register_buffer
6005 call. Test for legacy_p instead of gdbarch_register_read_p or
6006 gdbarch_register_write_p.
6007 (regcache_collect): Update register_buffer call.
6008 (build_regcache): Rewrite. Use deprecated grub functions.
6009 (regcache_save, regcache_save_no_passthrough): New functions.
6010 (regcache_restore, regcache_restore_no_passthrough): New
6011 functions.
6012 (_initialize_regcache): Create the regcache_data_handle. Swap
6013 current_regcache global variable.
6014
6015 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6016 parameter to regcache_read and regcache_write calls.
6017 (sh4_register_read): Ditto.
6018 (sh64_pseudo_register_read): Ditto.
6019 (sh64_register_read): Ditto.
6020 (sh_pseudo_register_write): Ditto.
6021 (sh4_register_write): Ditto.
6022 (sh64_pseudo_register_write): Ditto.
6023 (sh64_register_write): Ditto.
6024
6025 * defs.h (XCALLOC): Define.
6026
152d9db6
GS
60272002-06-19 Grace Sainsbury <graces@redhat.com>
6028
6029 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6030 * m68k-tdep.c (m68k_gdbarch_init): Added.
6031 (m68k_dump_tdep): Added.
6032
170911c7
DJ
60332002-06-19 Daniel Jacobowitz <drow@mvista.com>
6034
6035 * ada-lang.c (fill_in_ada_prototype): Update comment.
6036
2e4ebe70
DJ
60372002-06-19 Daniel Jacobowitz <drow@mvista.com>
6038
6039 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6040 MIPS_ABI_LAST.
6041 (mips_abi_string, mips_abi_strings): New.
6042 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6043 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6044 tdep->mips_abi_string. Honor mips_abi_string. Default to
6045 O32 if no ABI is found.
6046 (mips_dump_tdep): Use mips_abi_strings.
6047 (mips_abi_update): New function.
6048 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6049 ``set mips abi'' and ``show mips abi''. Check the size of
6050 mips_abi_strings.
6051
16775908
AC
60522002-06-19 Andrew Cagney <cagney@redhat.com>
6053
6054 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6055 constant.
6056
5051bfa4 60572002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6058
5051bfa4
JB
6059 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6060 current frame using only the first stack size adjustment. All
6061 subsequent size adjustments are not considered to be part of
6062 the "static" part of the current frame.
6063 Compute the address of the saved registers relative to the
6064 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6065 in use in this frame.
6066
56468235
DH
60672002-06-18 Don Howard <dhoward@redhat.com>
6068
6069 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6070 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6071 suggesting this solution.
6072
0b624158
AC
60732002-06-18 Andrew Cagney <ac131313@redhat.com>
6074
6075 * config/romp/xm-rtbsd.h: Delete file.
6076 * config/romp/rtbsd.mh: Delete file.
6077
221ea385
KS
60782002-06-18 Keith Seitz <keiths@redhat.com>
6079
6080 * breakpoint.c (condition_command): Post breakpoint_modify
6081 when a condition is added to an existing breakpoint.
6082 (commands_command): Likewise for commands.
6083 (set_ignore_count): Likewise for ignore counts.
6084 If no tty, do not simply return, still need to send event
6085 notification.
6086 (ignore_command): Only print a newline if the command came
6087 from a tty.
6088 Don't call breakpoints_changed, since this is now properly
6089 handled by set_ignore_count.
6090
5402eed1
AC
60912002-06-18 Andrew Cagney <cagney@redhat.com>
6092
6093 * MAINTAINERS: Note that cris-elf target can be compiled with
6094 -Werror.
6095 * cris-tdep.c (cris_register_name): Make return type constant.
6096 (cris_breakpoint_from_pc): Ditto.
6097
cc22880b
ML
60982002-06-18 Michal Ludvig <mludvig@suse.cz>
6099
6100 * frame.h (struct frame_info): Change type of context to
6101 'struct context'.
6102
fa88f677
AC
61032002-06-17 Andrew Cagney <cagney@redhat.com>
6104
6105 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6106 pointer.
6107 * gdbarch.h, gdbarch.c: Regenerate.
6108 * config/mips/tm-mips.h (mips_register_name): Update.
6109 * i386-tdep.h (i386_register_name): Update.
6110 * mips-tdep.c (mips_register_name): Update
6111 * alpha-tdep.c (alpha_register_name): Update.
6112 * arch-utils.c (legacy_register_name): Update.
6113 * arch-utils.h (legacy_register_name): Update.
6114 * avr-tdep.c (avr_register_name): Update.
6115 * ia64-tdep.c (ia64_register_name): Update.
6116 * i386-tdep.c (i386_register_name): Update.
6117 * sparc-tdep.c (sparc32_register_name): Update.
6118 (sparc64_register_name): Update.
6119 (sparclite_register_name): Update.
6120 (sparclet_register_name): Update.
6121 * sh-tdep.c (sh_generic_register_name): Update.
6122 (sh_sh_register_name): Update.
6123 (sh_sh3_register_name): Update.
6124 (sh_sh3e_register_name): Update.
6125 (sh_sh_dsp_register_name): Update.
6126 (sh_sh3_dsp_register_name): Update.
6127 (sh_sh4_register_name): Update.
6128 (sh_sh64_register_name): Update.
6129 * s390-tdep.c (s390_register_name): Update.
6130 * rs6000-tdep.c (rs6000_register_name): Update.
6131 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6132 (ns32k_register_name_32382): Update.
6133 * d10v-tdep.c (d10v_ts2_register_name): Update.
6134 (d10v_ts3_register_name): Update.
6135 * xstormy16-tdep.c (xstormy16_register_name): Update.
6136 * vax-tdep.c (vax_register_name): Update.
6137 * v850-tdep.c (v850_register_name): Update.
6138 * m68hc11-tdep.c (m68hc11_register_name): Update.
6139 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6140 (am33_register_name): Update.
6141
ea1e7ef6
GS
61422002-06-17 Grace Sainsbury <graces@redhat.com>
6143
6144 * m68k-tdep.c: Reindented.
6145
9b02dd1b
AC
61462002-06-17 Andrew Cagney <ac131313@redhat.com>
6147
6148 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6149 list of predefined types.
6150
8758dec1
MK
61512002-06-16 Mark Kettenis <kettenis@gnu.org>
6152
b6197528
MK
6153 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6154 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6155 REGISTER_CONVERT_TO_RAW): Remove defines.
6156 (i386_register_virtual_type, i386_register_convertible,
6157 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6158 Remove prototypes.
6159 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6160 macros mentioned above.
6161
82b47e62
MK
6162 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6163 (i386lynx_saved_pc_after_call): Remove prototype.
6164 * i386ly-tdep.c: Include "i386-tdep.h".
6165 (i386lynx_saved_pc_after_call): Make static. Use
6166 read_memory_nobpt instead of read_memory. Use
6167 read_memory_unsigned_integer instead of read_memory_integer.
6168 (i386lynx_init_abi): New function.
6169 (i386lynx_coff_osabi_sniffer): New function.
6170 (_initialize_i386bsd_tdep): New function.
6171
8758dec1
MK
6172 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6173 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6174 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6175 (i386_fix_call_dummy): Remove prototype.
6176 * i386-tdep.c (i386_call_dummy_words): New variable.
6177 (i386_gdbarch_init): Adjust for removal of the
6178 macros mentioned above.
6179
e9e68a56
AC
61802002-06-15 Andrew Cagney <ac131313@redhat.com>
6181
6182 * command.h (add_setshow_auto_boolean_cmd): Replace
6183 add_set_auto_boolean_cmd.
6184 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6185 add_set_auto_boolean_cmd.
6186 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6187 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6188 mask-address'' command.
6189 (show_mask_address): Add cmd parameter.
6190 * remote.c (add_packet_config_cmd): Update. Change type of
6191 set_func and show_func to cmd_sfunc_ftype.
6192 (_initialize_remote): Update `set remote Z-packet'
6193 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6194 (show_remote_protocol_e_packet_cmd): Ditto.
6195 (show_remote_protocol_E_packet_cmd): Ditto.
6196 (show_remote_protocol_P_packet_cmd): Ditto.
6197 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6198 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6199 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6200 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6201 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6202 (show_remote_protocol_Z_packet_cmd): Ditto.
6203 (show_remote_protocol_binary_download_cmd): Ditto.
6204 (show_remote_cmd): Pass NULL to all of above.
6205
fc08ec52
MK
62062002-06-15 Mark Kettenis <kettenis@gnu.org>
6207
6208 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6209 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6210 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6211 POP_FRAME): Remove defines.
6212 (i386_push_arguments, i386_store_struct_return,
6213 i386_extract_return_value, i386_store_return_value,
6214 i386_extract_struct_value_address, i386_push_dummy_frame,
6215 i386_pop_frame): Renove prototypes.
6216 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6217 macros mentioned above.
6218
e707bbc2
AC
62192002-06-15 Andrew Cagney <ac131313@redhat.com>
6220
6221 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6222 add_set_boolean_cmd.
6223 (add_setshow_cmd): New function.
6224 * command.h (add_setshow_boolean_cmd): Replace
6225 add_set_boolean_cmd.
6226 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6227 and ``set rdiromatzero''.
6228 * maint.c (_initialize_maint_cmds): Update commented out code.
6229 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6230 * target.c (initialize_targets): Update `set
6231 trust-readonly-sections'.
6232 * remote.c (_initialize_remote): Update `set remotebreak'.
6233
42fdc8df
MK
62342002-06-15 Mark Kettenis <kettenis@gnu.org>
6235
93924b6b
MK
6236 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6237 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6238 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6239 fit into multi-arch framework.
6240 (i386_breakpoint_from_pc): New function.
6241 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6242 above.
6243
42fdc8df
MK
6244 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6245 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6246 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6247 (i386_frameless_function_invocation, i386_frame_num_args,
6248 i386_frame_init_saved_regs): Remove prototypes.
6249 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6250 macros mentioned above.
6251
9773a94b
AC
62522002-06-15 Andrew Cagney <ac131313@redhat.com>
6253
6254 * cli/cli-decode.c (set_cmd_cfunc): Update.
6255 (set_cmd_sfunc): Update.
6256 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6257 (set_cmd_sfunc, set_cmd_cfunc): Update.
6258 * cli/cli-decode.h: Update.
6259
6e157172
MK
62602002-06-15 Mark Kettenis <kettenis@gnu.org>
6261
6262 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6263 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6264
7f19b9a2
AC
62652002-06-15 Andrew Cagney <ac131313@redhat.com>
6266
6267 * defs.h (auto_boolean): Declare enum.
6268 * command.h (cmd_auto_boolean): Delete enum.
6269 * mips-tdep.c (mask_address_var): Update.
6270 (mips_mask_address_p): Update.
6271 (show_mask_address): Update.
6272 * remote.c (struct packet_config): Update.
6273 (update_packet_config): Update.
6274 (show_packet_config_cmd): Update.
6275 (packet_ok): Update.
6276 (add_packet_config_cmd): Update.
6277 (_initialize_remote):
6278 * command.h: Update.
6279 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6280 (do_setshow_command): Update.
6281 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6282 * cli/cli-decode.h: Update.
6283
1cf88de5
MK
62842002-06-15 Mark Kettenis <kettenis@gnu.org>
6285
22ba8cf2
MK
6286 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6287 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6288 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6289 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6290 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6291 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6292
762c5349
MK
6293 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6294 list of DJGPP COFF targets.
6295
091198bb
MK
6296 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6297 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6298 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6299 (FP0_REGNUM): Remove define.
6300 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6301 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6302 (i386_register_virtual_size): Remove protoype.
6303 * i386-tdep.c (i386_register_virtual_size): Removed.
6304 (i386_extract_return_value, i386_store_return_value): Use
6305 FP0_REGNUM instead of NUM_FREGS to determine whether the
6306 floating-point registers are available.
6307 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6308 Adjust for removal of macros mentioned above.
6309
63102002-06-15 Mark Kettenis <kettenis@gnu.org>
6311
fcc9bf01
MK
6312 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6313 comments.
6314 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6315 Remove prototypes.
6316 (supply_gregset, fill_gregset): Remove use of register keyword and
6317 remove declaration for regmap. Use I386_NUM_GREGS instead of
6318 NUM_REGS and NUM_FREGS.
6319 (FPREGSET_FSAVE_OFFSET): Remove.
6320 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6321 NUM_FREGS to determine whether the floating-point registers are
6322 available.
6323
65e78234
MK
6324 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6325 gnu_store_registers): Replace usage of NUM_GREGS with
6326 I386_NUM_GREGS.
6327
98df6387
MK
6328 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6329 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6330 usage of NUM_GREGS with I386_NUM_GREGS.
6331
099a9414
MK
6332 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6333
57976e88
MK
6334 * i386bsd-nat.c: Include "i386-tdep.h".
6335 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6336 I386_NUM_GREGS.
6337
b335f4a6
MK
6338 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6339 and associated comment. They no longer make any sense, since we
6340 don't use this file anymore on Linux.
6341
1cf88de5
MK
6342 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6343 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6344 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6345 elements in these arrays.
6346 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6347 MAX_NUM_REGS.
6348
daa66587
MK
63492002-06-15 Mark Kettenis <kettenis@gnu.org>
6350
6351 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6352 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6353
26e9b323
AC
63542002-06-14 Andrew Cagney <cagney@redhat.com>
6355
6356 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6357 EXTRACT_RETURN_VALUE.
6358 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6359 EXTRACT_STRUCT_VALUE_ADDRESS.
6360 * gdbarch.h, gdbarch.c: Regenerate.
6361
6362 * values.c (value_being_returned): Handle
6363 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6364 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6365
6366 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6367 * arm-tdep.c (arm_gdbarch_init): Update.
6368 * avr-tdep.c (avr_gdbarch_init): Update.
6369 * cris-tdep.c (cris_gdbarch_init): Update.
6370 * d10v-tdep.c (d10v_gdbarch_init): Update.
6371 * ia64-tdep.c (ia64_gdbarch_init): Update.
6372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6373 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6374 * s390-tdep.c (s390_gdbarch_init): Update.
6375 * sh-tdep.c (sh_gdbarch_init): Update.
6376 * s390-tdep.c (s390_gdbarch_init): Update.
6377 * sparc-tdep.c (sparc_gdbarch_init): Update.
6378 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6379 * v850-tdep.c (v850_gdbarch_init): Update.
6380 * vax-tdep.c (vax_gdbarch_init): Update.
6381 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6383
6384 * config/arc/tm-arc.h: Update.
6385 * config/d30v/tm-d30v.h: Update.
6386 * config/fr30/tm-fr30.h: Update.
6387 * config/h8300/tm-h8300.h: Update.
6388 * config/h8500/tm-h8500.h: Update.
6389 * config/i386/tm-i386.h: Update.
6390 * config/i386/tm-ptx.h: Update.
6391 * config/i386/tm-symmetry.h: Update.
6392 * config/i960/tm-i960.h: Update.
6393 * config/m32r/tm-m32r.h: Update.
6394 * config/m68k/tm-delta68.h: Update.
6395 * config/m68k/tm-linux.h: Update.
6396 * config/m68k/tm-m68k.h: Update.
6397 * config/m88k/tm-m88k.h: Update.
6398 * config/mcore/tm-mcore.h: Update.
6399 * config/mips/tm-mips.h: Update.
6400 * config/mn10200/tm-mn10200.h: Update.
6401 * config/pa/tm-hppa.h: Update.
6402 * config/pa/tm-hppa64.h: Update.
6403 * config/sparc/tm-sp64.h: Update.
6404 * config/sparc/tm-sparc.h: Update.
6405 * config/sparc/tm-sparclet.h: Update.
6406 * config/z8k/tm-z8k.h: Update.
6407
5179e78f
AC
64082002-06-14 Andrew Cagney <cagney@redhat.com>
6409
6410 * Makefile.in (i386_linux_tdep_h): Define.
6411 (i386_tdep_h, i387_tdep_h): Define.
6412 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6413 $(i386_tdep_h) and $(i387_tdep_h).
6414 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6415
8201327c
MK
64162002-06-14 Mark Kettenis <kettenis@gnu.org>
6417
edf393ac
MK
6418 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6419 Already covered by the default.
6420
896fb97d
MK
6421 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6422 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6423 (i386_gdbarch_init): Initialize long_double_format and long_double
6424 bit.
6425
8201327c
MK
6426 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6427 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6428 Move these to ...
6429 * config/i386/i386sol2.mh: ... here.
6430 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6431 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6432 (SIGCONTEXT_PC_OFFSET): Remove define.
6433 (IN_SIGTRAMP): Remove define.
6434 * i386-sol2-tdep.c: New file.
6435
6436 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6437 * config/i386/tm-i386nw.h: Removed.
6438
6439 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6440 USE_STRUCT_CONVENTION): Remove defines.
6441 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6442 (get_longjmp_target): Remove prototype.
6443 (IN_SIGTRAMP): Remove define.
6444 (i386bsd_in_sigtramp): Remove prototype.
6445 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6446 function. Update comment accordingly
6447 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6448 (FRAME_SAVED_PC): Remove define.
6449 (i386bsd_frame_saved_pc): Remove prototype.
6450 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6451 GET_LONGJMP_TARGET): Remove defines.
6452 (get_longjmp_target): Remove prototype.
6453 (IN_SIGTRAMP): Remove define.
6454 (i386bsd_in_sigtramp): Remove prototype.
6455 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6456 function. Update comment accordingly
6457 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6458 (FRAME_SAVED_PC): Remove define.
6459 (i386bsd_frame_saved_pc): Remove prototype.
6460 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6461 Remove prototype.
6462 (USE_STRUCT_CONVENTION): Remove prototype.
6463 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6464 declaration.
6465 (_initialize_i386bsd_nat): Revise logic to determine some
6466 constants at compile time when compiling a native GDB. Warn if
6467 things don't match up with what we expect.
6468 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6469 Remove variables.
6470 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6471 to use date stored in `struct gdbarch_tdep'.
6472 (i386bsd_sigcontext_offset): Remove varaible.
6473 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6474 stored in `struct gdbarch_tdep'.
6475 (i386bsd_frame_saved_pc): Make static.
6476 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6477 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6478 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6479 i386fbsd4_sc_pc_offset): New variables.
6480 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6481 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6482 functions.
6483 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6484 functions.
6485 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6486 Modify the value of i386fbsd_sigtramp_start and
6487 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6488 i386fbsd_sigtramp_end.
6489 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6490 function.
6491
6492 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6493 define to i386-linux-tdep.h.
6494 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6495 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6496 defines.
6497 (i386_linux_register_name, i386_linux_register_byte,
6498 i386_linux_register_raw_size): Remove prototypes.
6499 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6500 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6501 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6502 TARGET_WRITE_PC): Remove defines.
6503 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6504 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6505 i386_linux_write_pc): Remove prototypes.
6506 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6507 (get_longjmp_target): Remove prototype.
6508 * i386-linux-tdep.h: New file.
6509 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6510 * i386-linux-tdep.c: Include "i386-tdep.h" and
6511 "i386-linux-tdep.h".
6512 (i386_linux_register_name, i386_linux_register_byte,
6513 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6514 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6515 Make static.
6516 (i386_linux_init_abi): New function.
6517 (_initialize_i386_linux_tdep): New function.
6518
6519 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6520 (i386_saved_pc_after_call): Remove prototype.
6521 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6522 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6523 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6524 (i386_register_name, i386_stab_reg_to_regnum,
6525 i386_dwarf_reg_to_regnum): Remove prototypes.
6526 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6527 SIZEOF_SSE_REGS): Remove defines.
6528 (REGISTER_BYTES): Remove define.
6529 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6530 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6531 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6532 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6533 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6534 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6535 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6536 (get_longjmp_target): Remove prototype.
6537 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6538 (sigtramp_saved_pc): Remove define.
6539 (i386v4_sigtramp_saved_pc): Remove prototype.
6540 * config/i386/tm-go32.h (FRAME_CHAIN,
6541 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6542 (i386go32_frame_saved_pc): Remove prototype.
6543 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6544 (get_longjmp_target): Remove prototype.
6545 * i386-tdep.h: Include "osabi.h".
6546 (enum i386_abi): Removed.
6547 (enum struct_return): New enum.
6548 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6549 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6550 sc_pc_offset members.
6551 (i386_gdbarch_register_os_abi): Remove prototype.
6552 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6553 I386_SSE_NUM_REGS): New defines.
6554 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6555 I386_SSE_SIZEOF_REGS): New defines.
6556 (i386_register_name, i386_register_byte, i386_register_raw_size):
6557 New prototypes.
6558 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6559 (i386bsd_sigtramp_saved_pc): New prototype.
6560 * i386-tdep.c: Don't include "elf-bfd.h".
6561 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6562 i386_frame_chain, i386_saved_pc_after_call): Make static.
6563 (i386_frame_saved_pc): Rewrite to call architecture dependent
6564 function to deal with signal handlers. Make static.
6565 (i386go32_frame_saved_pc): Removed.
6566 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6567 Removed.
6568 (i386_get_longjmp_target): New function.
6569 (default_struct_convention, pcc_struct_convention,
6570 reg_struct_convention, valid_conventions, struct_convention): New
6571 variables.
6572 (i386_use_struct_convention): New function.
6573 (i386v4_sigtramp_saved_pc): Renamed to
6574 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6575 (i386_pc_in_sigtramp): New function.
6576 (i386_abi_names): Removed.
6577 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6578 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6579 Removed.
6580 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6581 i386_gdbarch_register_os_abi): Removed.
6582 (struct i386_abi_handler): Removed.
6583 (i386_abi_handler_list): Removed.
6584 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6585 functions.
6586 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6587 i386_nw_init_abi): New functions.
6588 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6589 Use set_gdbarch_xxx() calls instead of relying on macros for a
6590 number of calls.
6591 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6592 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6593 Register the various architecture variants defined in this file.
6594
ad2f7632
DJ
65952002-06-14 Daniel Jacobowitz <drow@mvista.com>
6596
6597 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6598 (struct main_type): Remove arg_types member. Update comments for
6599 struct field.
6600 (TYPE_ARG_TYPES): Remove.
6601 (TYPE_FN_FIELD_ARGS): Update.
6602 (smash_to_method_type): Update prototype.
6603
6604 * c-typeprint.c (cp_type_print_method_args): Take method type
6605 instead of argument list. Use new argument layout. Simplify.
6606 (c_type_print_args): Use new argument layout. Simplify.
6607 (c_type_print_base): Update call to cp_type_print_method_args.
6608 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6609 argument; use die->type instead. Update call to
6610 smash_to_method_type.
6611 (read_structure_scope): Update call to dwarf2_add_member_fn.
6612 * gdbtypes.c (allocate_stub_method): Update comment.
6613 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6614 Use new argument layout.
6615 (check_stub_method): Use new argument layout. Don't count
6616 void as an argument.
6617 (print_arg_types): Update comments. Use new argument layout.
6618 (recursive_dump_type): Don't print arg_types member.
6619 * hpread.c (hpread_read_struct_type): Use new argument layout.
6620 (fixup_class_method_type): Likewise.
6621 (hpread_type_lookup): Likewise.
6622 * stabsread.c (read_type): Update calls to read_args and
6623 smash_to_method_type.
6624 (read_args): Use new argument layout. Simplify.
6625 * valops.c (typecmp): Use new argument layout. Update parameters
6626 and comments. Simplify.
6627 (hand_function_call): Use new argument layout.
6628 (search_struct_method): Update call to typecmp.
6629 (find_overload_match): Use new argument layout.
6630
6da02953
DJ
66312002-06-13 Daniel Jacobowitz <drow@mvista.com>
6632
6633 * NEWS: Mention multithreaded debug support for gdbserver.
6634
519b2366
DJ
66352002-06-13 Daniel Jacobowitz <drow@mvista.com>
6636
6637 * MAINTAINERS: Mention NEWS.
6638
6c0d6680
DJ
66392002-06-13 Daniel Jacobowitz <drow@mvista.com>
6640
6641 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6642 (struct mips_objfile_private, compare_pdr_entries): New.
6643 (non_heuristic_proc_desc): Read the ".pdr" section if it
6644 is present.
6645
6529d2dd
AC
66462002-06-12 Andrew Cagney <ac131313@redhat.com>
6647
6648 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6649 (arm_debug): New static variable.
6650 (_initialize_arm_tdep): Add ``set debug arm'' command.
6651
26216b98
AC
66522002-06-12 Andrew Cagney <ac131313@redhat.com>
6653
6654 * Makefile.in (sim_arm_h): Define.
6655 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6656 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6657 (arm_register_sim_regno): New function, map an internal REGNUM
6658 onto a simulator register number.
6659 (arm_gdbarch_init): Set register_sim_regno.
6660
814b3ba0
AH
66612002-06-09 Aldy Hernandez <aldyh@redhat.com>
6662
6663 * MAINTAINERS: Add self.
6664
475b0867
JB
66652002-06-11 Jim Blandy <jimb@redhat.com>
6666
919d772c
JB
6667 * source.c (source_info): Mention whether the symtab has
6668 information about preprocessor macros.
6669
475b0867
JB
6670 Call the command `info macro', not `show macro'.
6671 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6672 Fix error message.
6673 (_initialize_macrocmd): Register `info_macro_command' in
6674 `infolist', not `showlist'.
6675
9e364162
DJ
66762002-06-11 Daniel Jacobowitz <drow@mvista.com>
6677
6678 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6679 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6680 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6681 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6682 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6683 unconditionally.
6684 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6685 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6686 (_initialize_mips_tdep): Remove dead code.
6687 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6688 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6689 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6690 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6691 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6692 MIPS_LAST_FP_ARG_REGNUM): Remove.
6693
23aa4c72
ML
66942002-06-11 Michal Ludvig <mludvig@suse.cz>
6695
6696 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6697 (unwind_tmp_obstack_free, parse_frame_info)
6698 (update_context, cfi_read_fp, cfi_write_fp)
6699 (cfi_frame_chain, cfi_init_extra_frame_info)
6700 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6701 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6702
70eb15a4
CV
67032002-06-11 Corinna Vinschen <vinschen@redhat.com>
6704
6705 * v850-tdep.c (v850_type_is_scalar): New function.
6706 (v850_use_struct_convention): Match current gcc implementation
6707 as close as possible.
6708 (v850_push_arguments): Fix stack_offset handling. Don't write
6709 struct_addr into register. This is done by v850_store_struct_return.
6710 (v850_extract_return_value): Care for structs.
6711 (v850_store_return_value): Ditto.
6712 (v850_store_struct_return): Actually write address.
6713
482a4d06
ML
67142002-06-11 Michal Ludvig <mludvig@suse.cz>
6715
6716 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6717 without debug information too.
6718
d855c300
AC
67192002-06-10 Andrew Cagney <ac131313@redhat.com>
6720
6721 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6722 Make multi-arch pure.
6723 * gdbarch.h, gdbarch.c: Re-generate.
6724 * arm-tdep.c (arm_print_float_info): Update.
6725 * arch-utils.h (default_print_float_info): Update.
6726 * arch-utils.c (default_print_float_info): Update.
6727 * infcmd.c (float_info): Update call.
6728
dd12a101
AC
67292002-06-10 Andrew Cagney <ac131313@redhat.com>
6730
6731 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6732 the front of the initialize list.
6733
101dcfbe
AC
67342002-06-10 Andrew Cagney <ac131313@redhat.com>
6735
6736 * infrun.c (struct inferior_status): Replace fields
6737 selected_frame_address and selected_level with field
6738 selected_frame_id.
6739 (save_inferior_status): Update. Use get_frame_id.
6740 (struct restore_selected_frame_args): Delete.
6741 (restore_selected_frame): Update. Use frame_find_by_id.
6742 (restore_inferior_status): Update.
6743
6744 * breakpoint.h (struct breakpoint): Change type of
6745 watchpoint_frame to frame_id.
6746 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6747 call to get_current_frame.
6748 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6749 get_current_frame.
6750 (watchpoint_check): Use frame_find_by_id.
6751
6752 * frame.h (record_selected_frame): Delete declaration.
6753 * stack.c (record_selected_frame): Delete function.
6754
6755 * frame.h (struct frame_id): Define.
6756 (get_frame_id): Declare.
6757 (frame_find_by_id): Declare.
6758 * frame.c (frame_find_by_id): New function.
6759 (get_frame_id): New function.
6760
304270b6
AV
67612002-06-10 Andrey Volkov <avolkov@transas.com>
6762
6763 * ser-e7kpc.c: Fix duplicated define and call of
6764 _initialize_ser_e7000pc
6765
2f2cf184
DJ
67662002-06-09 Daniel Jacobowitz <drow@mvista.com>
6767
6768 * signals/signals.c (target_signal_from_host): Fix #ifdef
6769 SIGRTMIN case.
6770 (do_target_signal_to_host): Likewise.
6771
caaa3122
DJ
67722002-06-09 Daniel Jacobowitz <drow@mvista.com>
6773
6774 * mips-tdep.c (mips_find_abi_section): New function.
6775 (mips_gdbarch_init): Call it.
6776
6ac5df3a
MK
67772002-06-09 Mark Kettenis <kettenis@gnu.org>
6778
6779 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6780 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6781 after Andrew's 2002-06-08 gdbarch change.
6782
82ea117a
MK
67832002-06-09 Mark Kettenis <kettenis@gnu.org>
6784
6785 * i386-linux-nat.c (suppy_gregset): Don't supply
6786 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6787 register cache.
6788 (fill_gregset): Don't fetch it under the same circumstances.
6789
3c25f8c7
AC
67902002-06-09 Andrew Cagney <cagney@redhat.com>
6791
6792 * Makefile.in (callback_h): Define.
6793 (remote_sim_h): Update path to remote-sim.h.
6794 (remote-rdp.o): Add $(callback_h).
6795 (remote-sim.o): Use $(callback_h).
6796 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6797 * remote-rdp.c: Include "gdb/callback.h".
6798
1029b7fa
MK
67992002-06-09 Mark Kettenis <kettenis@gnu.org>
6800
6801 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6802 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6803
616675d3
AC
68042002-06-08 Andrew Cagney <ac131313@redhat.com>
6805
a3efda28
AC
6806 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6807 * rdi-share/serpardr.c: Ditto.
6808 * rdi-share/unixcomm.c: Ditto.
6809 * rdi-share/serdrv.c: Ditto.
6810 * rdi-share/hostchan.h: Ditto.
6811 * rdi-share/hostchan.c: Ditto.
6812 * rdi-share/host.h: Ditto.
6813 * rdi-share/devsw.c: Ditto.
6814
c5f10366
AC
6815 * objfiles.h: Change type of obj_private to void pointer.
6816 * pa64solib.c: Update copyright. Don't include "assert.h", use
6817 strcmp instead of STREQ, use LONGEST, do not use PTR
6818 * somsolib.c: Ditto.
6819
616675d3
AC
6820 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6821 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6822 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6823
e4b415d9
AC
68242002-06-08 Andrew Cagney <ac131313@redhat.com>
6825
6826 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6827 (default_get_saved_register): Delete function.
6828 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6829 generic_unwind_get_saved_register.
6830 * gdbarch.h, gdbarch.c: Re-generate.
6831
ca0d0b52
AC
68322002-06-08 Andrew Cagney <ac131313@redhat.com>
6833
6834 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6835 generic_func_frame_chain_valid.
6836 * gdbarch.h, gdbarch.c: Re-generate.
6837 * blockframe.c (generic_func_frame_chain_valid): Only check
6838 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6839 passing FP to PC_IN_CALL_DUMMY.
6840 Fix PR gdb/360.
6841
76860b5f
AC
68422002-06-08 Andrew Cagney <ac131313@redhat.com>
6843
6844 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6845 (register_gdbarch_data): Initialize init_p.
6846 (gdbarch_data): Initialize data pointer using the init function.
6847 (init_gdbarch_data): Delete function.
6848 (gdbarch_update_p): Update.
6849 (initialize_non_multiarch): Update.
6850 (struct gdbarch): Add field initialized_p.
6851 * gdbarch.h, gdbarch.c: Re-generate.
6852
8dda9770
ML
68532002-06-07 Michal Ludvig <mludvig@suse.cz>
6854
6855 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6856 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6857 better do the things actually here.
6858 * x86-64-tdep.c (x86_64_register_name2nr): New.
6859 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6860 (x86_64_gdbarch_init): Respect the above change.
6861 * x86-64-tdep.h (x86_64_register_name2nr)
6862 (x86_64_register_nr2name): Add prototypes.
6863 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6864
3d79a47c
MS
68652002-06-06 Michael Snyder <msnyder@redhat.com>
6866
7bd91a28
MS
6867 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6868 Delete extra braces and re-indent.
6869 (d10v_store_return_value): Char return values
3d79a47c
MS
6870 must be shifted over by one byte in R0.
6871 (d10v_extract_return_value): Delete extra braces, re-indent.
6872
095a4c96
EZ
68732002-06-06 Elena Zannoni <ezannoni@redhat.com>
6874
6875 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6876 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6877 (d10v_integer_to_address): Rewrite.
6878 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6879 the d10v specific functions which take care of converting to the
6880 correct space.
6881
e8a77ca4
EZ
68822002-06-06 Elena Zannoni <ezannoni@redhat.com>
6883
6884 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6885 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6886
4f2e4a4f
AC
68872002-06-02 Andrew Cagney <ac131313@redhat.com>
6888
6889 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6890 includes.
6891 * config/tm-linux.h: Ditto.
6892 * config/alpha/tm-alphalinux.h: Ditto.
6893 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6894 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6895 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6896 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6897 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6898 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6899 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6900 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6901 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6902 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6903 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6904 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6905 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6906 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6907 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6908 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6909 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6910 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6911 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6912 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6913 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6914 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6915 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6916 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6917 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6918 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6919 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6920 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6921 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6922 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6923 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6924 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6925 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6926 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6927 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6928 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6929 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6930
ae2ab2ce
AS
69312002-05-04 Aidan Skinner <aidan@velvet.net>
6932
6933 * ada-exp.tab.c: New file
6934 * ada-exp.y: New file
6935 * ada-lang.c: New file
6936 * ada-lang.h: New file
6937 * ada-lex.c: New file
6938 * ada-lex.l: New file
6939 * ada-tasks.c: New file
6940 * ada-typeprint.c: New file
6941 * ada-valprint.c: New file
6942
0ddd0135
JT
69432002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6944
6945 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6946 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6947
750fbacc
JT
69482002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6949
6950 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6951 insetead of ppc-linux-tdep.o.
6952 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6953 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6954
df94e18a
AC
69552002-06-02 Andrew Cagney <ac131313@redhat.com>
6956
6957 2002-05-07 Christian Groessler <chris@groessler.org>
6958 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6959 bit register contents for little endian hosts.
6960
1a38ab75
AC
69612002-06-01 Andrew Cagney <ac131313@redhat.com>
6962
6963 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6964 any maintainer.
6965
8b1632ac
AC
69662002-06-01 Andrew Cagney <ac131313@redhat.com>
6967
6968 * gdbarch.h: Regenerate.
6969
627054c8
AC
69702002-06-01 Andrew Cagney <ac131313@redhat.com>
6971
6972 * MAINTAINERS: Add everyone to write-after-approval list.
6973
4f460812
AC
69742002-06-01 Andrew Cagney <ac131313@redhat.com>
6975
6976 * stack.c (frame_info): Use frame_register_unwind instead of
6977 saved_regs. Mention when the SP is on the stack or in a register.
6978
6979 * frame.h (frame_register_unwind_ftype): Define. Document.
6980 (struct frame_info): Add field register_unwind and
6981 register_unwind_cache.
6982 (frame_register_unwind): Declare.
6983 (generic_unwind_get_saved_register): Declare.
6984
6985 * frame.c (frame_register_unwind): New function.
6986 (generic_unwind_get_saved_register): New function.
6987
6988 * blockframe.c (generic_call_dummy_register_unwind): New function.
6989 (frame_saved_regs_register_unwind): New function.
6990 (set_unwind_by_pc): New function.
6991 (create_new_frame): New function.
6992 (get_prev_frame): New function.
6993
de888f76
AC
69942002-05-30 Andrew Cagney <ac131313@redhat.com>
6995
6996 * a29k-share/: Delete directory.
6997 * remote-vx29k.c: Delete file.
6998
2f2c3626
JT
69992002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7000
7001 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7002 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7003
9ce5c36a
JT
70042002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7005
7006 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7007 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7008 (sparc64nbsd-nat.o)
7009 (sparcnbsd-nat.o)
7010 (sparcnbsd-tdep.o): New dependency lists.
7011 * NEWS: Note new UltraSPARC NetBSD native configuration.
7012 * configure.host (sparc64-*-netbsd*): New host.
7013 * configure.tgt (sparc-*-netbsdelf*)
7014 (sparc-*-netbsd*): Set gdb_target to nbsd.
7015 (sparc64-*-netbsd*): New target.
7016 * sparc64nbsd-nat.c: New file.
7017 * sparcnbsd-nat.c: New file.
7018 * sparcnbsd-tdep.c: New file.
7019 * sparcnbsd-tdep.h: New file.
7020 * config/sparc/nbsd.mt: New file.
7021 * config/sparc/nbsd64.mh: New file.
7022 * config/sparc/nbsd64.mt: New file.
7023 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7024 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7025 (HOST_IPC): Remove.
7026 * config/sparc/nbsdaout.mt: Remove.
7027 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7028 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7029 (HOST_IPC): Remove.
7030 * config/sparc/nbsdelf.mt: Remove.
7031 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7032 sparc-nat.c compatiblity defines.
7033 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7034 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7035 * config/sparc/tm-nbsd64.h: New file.
7036 * config/sparc/tm-nbsdaout.h: Remove.
7037 * config/sparc/xm-nbsd.h: Remove.
7038
ef3cf062
JT
70392002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7040
7041 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7042 * sparc-tdep.c: Include osabi.h.
7043 (gdbarch_tdep): Add osabi member.
7044 (_initialize_sparc_tdep): Use gdbarch_register.
7045 (sparc_gdbarch_init): Use generic OS ABI framework.
7046 (sparc_dump_tdep): New function.
7047
ee8ff470
KB
70482002-05-30 Kevin Buettner <kevinb@redhat.com>
7049
7050 * corefile.c (do_captured_read_memory_integer): Return non-zero
7051 result.
7052 (safe_read_memory_integer): Copy result of memory read when
7053 status is non-zero. Also, add comments.
7054
7b112f9c
JT
70552002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7056
7057 * Makefile.in (ppc_tdep_h): Define.
7058 (ppc-linux-nat.o)
7059 (ppc-linux-tdep.o)
7060 (rs6000-tdep.o): Use $(ppc_tdep_h).
7061 (ppc-sysv-tdep.o)
7062 (ppcnbsd-nat.o)
7063 (ppcnbsd-tdep.o): New dependency lists.
7064 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7065 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7066 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7067 (ppc_sysv_abi_broken_use_struct_convention)
7068 (ppc_sysv_abi_use_struct_convention)
7069 (ppc_sysv_abi_push_arguments): Move to...
7070 * ppc-sysv-tdep.c: ...here.
7071 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7072 * rs6000-tdep.c (process_note_abi_tag_sections)
7073 (get_elfosabi): Remove.
7074 (rs6000_gdbarch_init): Use generic OS ABI framework.
7075 (rs6000_dump_tdep): New function.
7076 (_initialize_rs6000_tdep): Use gdbarch_register.
7077 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7078 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7079 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7080 of ppc-linux-tdep.o.
7081 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7082 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7083 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7084 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7085 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7086 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7087
480dd42a
JB
70882002-05-29 Jim Blandy <jimb@redhat.com>
7089
7090 * macroscope.c (default_macro_scope): Put `void' in empty argument
7091 list.
7092
4182591f
AC
70932002-05-29 Andrew Cagney <ac131313@redhat.com>
7094
7095 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7096 * arch-utils.c: Include "sim-regno.h".
7097 * gdbarch.sh: Don't include "sim-regno.h".
7098 * gdbarch.h, gdbarch.c: Regenerate.
7099 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7100 here.
7101 * arch-utils.h (legacy_register_sim_regno): To here.
7102 * remote-sim.c (legacy_register_sim_regno): Move function from
7103 here.
7104 * arch-utils.c (legacy_register_sim_regno): To here.
7105
8238d0bf
AC
71062002-05-28 Andrew Cagney <ac131313@redhat.com>
7107
7108 * sim-regno.h: New file.
7109 * Makefile.in (sim_regno_h): Define.
7110 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7111 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7112 (legacy_register_sim_regno): New function.
7113 (one2one_register_sim_regno): New function.
7114 (gdbsim_fetch_register): Rewrite.
7115 (gdbsim_store_register): Only store a register when
7116 REGISTER_SIM_REGNO is valid.
7117 * d10v-tdep.c: Include "sim-regno.h".
7118 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7119 (d10v_ts3_register_sim_regno): Ditto.
7120 * gdbarch.sh: Include "sim-regno.h".
7121 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7122 * gdbarch.h, gdbarch.c: Regenerate.
7123 * arch-utils.h (default_register_sim_regno): Delete declaration.
7124 * arch-utils.c (default_register_sim_regno): Delete function.
7125
485721b1
JT
71262002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7127
7128 * ppcnbsd-nat.c: Rewrite.
7129 * ppcnbsd-tdep.c: New file.
7130 * ppcnbsd-tdep.h: New file.
7131 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7132 solib.o, and solib-svr4.o.
7133 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7134 nbsd-tdep.o, and corelow.o.
7135
697f244d
AC
71362002-05-28 Andrew Cagney <ac131313@redhat.com>
7137
7138 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7139 `tr' and `sed'. Mention that `broken' targets are not expected to
7140 build.
7141
f08caad1 71422002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7143
7144 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7145 Let PC point right after the prologue before looking up symbols.
7146
3139facc
MH
71472002-05-27 Martin M. Hunt <hunt@redhat.com>
7148
7149 * i386-tdep.c (i386_register_virtual_type): Return
7150 builtin_type_vec128i for SSE registers.
7151
7152 * gdbtypes.h (builtin_type_vec128i): Declare.
7153
7154 * gdbtypes.c (build_builtin_type_vec128i): New function.
7155 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7156 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7157 (build_gdbtypes): Initialize new builtin vector types.
7158 (_initialize_gdbtypes): Register new vector types with gdbarch.
7159
6e3ba3b8
JT
71602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7161
7162 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7163 since it has been multi-arch'd.
7164 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7165 Move Alpha and VAX multi-arch news entries to same section
7166 as other multi-arch news.
7167
93d5585d
JT
71682002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7169
7170 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7171 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7172 static. Rename some register numbers to put them in ns32k-tdep
7173 private namespace.
7174 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7175 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7176 functions.
7177 (_initialize_ns32k_tdep): Use gdbarch_register.
7178 * ns32k-tdep.h: New file.
7179 * ns32knbsd-tdep.c: New file.
7180 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7181 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7182 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7183 REGISTER_BYTES, REGISTER_BYTE): Remove.
7184 * config/ns32k/tm-ns32k.h: New file.
7185 * config/ns32k/tm-umax.h: Remove.
7186
efb2c70e
JT
71872002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7188
7189 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7190 ns32k_store_struct_return, ns32k_extract_return_value,
7191 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7192 functions.
7193 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7194 ns32k_saved_pc_after_call.
7195 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7196 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7197 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7198 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7199 ns32k_extract_struct_value_address.
7200
7bcc927b
JT
72012002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7202
7203 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7204 ns32k_fix_call_dummy): New.
7205 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7206 ns32k_call_dummy_words.
7207 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7208 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7209 CALL_DUMMY_NARGS): Remove.
7210 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7211
78f9d765
JT
72122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7213
7214 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7215 ns32k_frame_saved_pc, ns32k_frame_args_address,
7216 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7217 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7218 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7219 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7220 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7221 (BREAKPOINT): Remove..
7222 (FRAME_CHAIN): Define as ns32k_frame_chain.
7223 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7224 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7225 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7226 (FRAME_FIND_SAVED_REGS): Remove.
7227 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7228 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7229 (POP_FRAME): Define as ns32k_pop_frame.
7230
f2c762e0
JT
72312002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7232
7233 * ns32k-tdep.c (ns32k_register_byte_32082,
7234 ns32k_register_byte_32382, ns32k_register_raw_size,
7235 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7236 functions.
7237 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7238 ns32k_register_byte_32382.
7239 * config/ns32k/tm-umax.h: Update copyright years.
7240 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7241 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7242 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7243 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7244 (ns32k_get_enter_addr): Fix prototype.
7245
af137673
JT
72462002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7247
7248 * ns32k-tdep.c: Update copyright years.
7249 (ns32k_register_name_32082): New function.
7250 (ns32k_register_name_32382): Ditto.
7251 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7252 (REGISTER_NAME): Define as ns32k_register_name_32382.
7253 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7254 (REGISTER_NAME): Define as ns32k_register_name_32082.
7255
a8bc7b56
JB
72562002-05-24 Jim Blandy <jimb@redhat.com>
7257
7258 * dwarf2read.c (free_line_header): Use xfree, not free.
7259
83a45910
JT
72602002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7261
7262 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7263 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7264
0db71247
AC
72652002-05-23 Andrew Cagney <ac131313@redhat.com>
7266
7267 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7268
b9e5e4dd
AC
72692002-05-23 Andrew Cagney <ac131313@redhat.com>
7270
7271 From Ross Alexander at NEC Europe:
7272 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7273
de530e84
MS
72742002-05-23 Michael Snyder <msnyder@redhat.com>
7275
7276 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7277 for input, rather than parse_and_eval_address.
7278
b91b96f4
AC
72792002-05-23 Andrew Cagney <ac131313@redhat.com>
7280
7281 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7282 * Makefile.in (sim_d10v_h): Update definition.
7283
8b279e7a
AC
72842002-05-24 Andrew Cagney <cagney@redhat.com>
7285
7286 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7287 change `2002-05-22 Michael Snyder' below.
7288 (d10v_push_arguments): Ditto.
7289 (d10v_extract_return_value): Ditto.
7290
0a3d0425
JB
72912002-05-23 Jim Blandy <jimb@redhat.com>
7292
7293 * macrotab.c (check_for_redefinition): Don't complain if the new
7294 definition is the same as the previous one. Take more arguments
7295 to allow the comparison.
7296 (macro_define_object, macro_define_function): Pass more arguments
7297 to check_for_redefinition.
7298
78eac43e
MS
72992002-05-22 Michael Snyder <msnyder@redhat.com>
7300
7301 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7302 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7303 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7304 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7305 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7306 Add a temp variable to save a call (and a memory read).
7307 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7308 if possible (so that PC_IN_CALL_DUMMY will work).
7309
9bc1edb8
CV
73102002-05-22 Corinna Vinschen <vinschen@redhat.com>
7311
7312 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7313
005ef3d2
ML
73142002-05-22 Michal Ludvig <mludvig@suse.cz>
7315
7316 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7317 fde->cie_ptr.
7318 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7319 (dwarf2_build_frame_info): Add offset to fde->initial_location
7320 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7321 (execute_stack_op): Change type of 'result' from ULONGEST to
7322 CORE_ADDR.
005ef3d2 7323
fcf4f891
JT
73242002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7325
7326 * config/alpha/tm-nbsd.h: Include solib.h.
7327
cfef91e4
JT
73282002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7329
7330 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7331 assumptions about the host's byte order.
7332
9964235a
JT
73332002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7334
7335 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7336 to dependency list.
7337 * alphanbsd-tdep.c: Include solib-svr4.h.
7338 * shnbsd-tdep.c: Ditto.
7339
9eeef8ef
JT
73402002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7341
7342 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7343 nbsd-tdep.h to dependency list.
7344 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7345 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7346 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7347 nbsdaout.mh and nbsdelf.mh consistently.
7348 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7349 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7350 nbsdaout.mt and nbsdelf.mh consistently.
7351 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7352 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7353 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7354 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7355 a.out shared library stuff from here...
7356 * config/nm-nbsdaout.h: ...to here.
7357 * config/tm-nbsd.h: Remove.
7358 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7359 * config/arm/nbsd.mh: Remove.
7360 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7361 nbsd-tdep.o.
7362 * config/arm/nbsdaout.mh: New file.
7363 * config/arm/nbsdelf.mh: New file.
7364 * config/arm/nm-nbsdaout.h: New file.
7365 * config/i386/nbsd.mh: Remove.
7366 * config/i386/nbsd.mt: Remove.
7367 * config/i386/nbsdaout.mh: New file.
7368 * config/i386/nbsdaout.mt: New file.
7369 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7370 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7371 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7372 i386_register_u_addr): Remove.
7373 * config/i386/nm-nbsdaout.h: New file.
7374 * config/i386/nm-nbsdelf.h: Remove.
7375 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7376 (USE_STRUCT_CONVENTION): Remove.
7377 * config/i386/tm-nbsdaout.h: New file.
7378 * config/i386/tm-nbsdelf.h: Remove.
7379 * config/m68k/nbsd.mh: Remove.
7380 * config/m68k/nbsd.mt: Remove.
7381 * config/m68k/nbsdaout.mh: New file.
7382 * config/m68k/nbsdaout.mt: New file.
7383 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7384 * config/m68k/nm-nbsdaout.h: New file.
7385 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7386 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7387 * config/ns32k/nbsd.mh: Remove.
7388 * config/ns32k/nbsd.mt: Remove.
7389 * config/ns32k/nbsdaout.mh: New file.
7390 * config/ns32k/nbsdaout.mt: New file.
7391 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7392 * config/ns32k/nm-nbsdaout.h: New file.
7393 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7394 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7395 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7396 (SVR4_SHARED_LIBS): Remove.
7397 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7398 * config/sparc/nbsd.mh: Remove.
7399 * config/sparc/nbsd.mt: Remove.
7400 * config/sparc/nbsdaout.mh: New file.
7401 * config/sparc/nbsdaout.mt: New file.
7402 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7403 * config/sparc/nbsdelf.mt: New file.
7404 * config/sparc/nm-nbsdaout.h: New file.
7405 * config/sparc/nm-nbsdelf.h: Remove.
7406 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7407 * config/sparc/tm-nbsdaout.h: New file.
7408
257ce470
JT
74092002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7410
7411 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7412 mipsnbsd-tdep.c
7413 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7414
76a6d5fe
JT
74152002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7416
7417 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7418 shnbsd-nat.c.
7419 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7420
45888261
JT
74212002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7422
7423 * NEWS: Note new MIPS NetBSD native configuration.
7424 * configure.host (mips*-*-netbsd*): New host.
7425 * configure.tgt (mips*-*-netbsd*): New target.
7426 * mipsnbsd-nat.c: New file.
7427 * mipsnbsd-tdep.c: New file.
7428 * mipsnbsd-tdep.h: New file.
7429 * config/mips/nbsd.mh: New file.
7430 * config/mips/nbsd.mt: New file.
7431 * config/mips/nm-nbsd.h: New file.
7432 * config/mips/tm-nbsd.h: New file.
7433
70f80edf
JT
74342002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7435
7436 * Makefile.in (SFILES): Add osabi.c.
7437 (COMMON_OBS): Add osabi.o.
7438 (osabi.o): New dependency list.
7439 * osabi.c: New file.
7440 * osabi.h: New file.
7441 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7442
7443 * Makefile.in (alpha_tdep_h): Define and use instead of
7444 alpha-tdep.h.
7445 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7446 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7447 Remove.
7448 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7449 * alpha-tdep.h: Include osabi.h.
7450 (alpha_abi): Remove.
7451 (gdbarch_tdep): Use generic OS ABI framework.
7452 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7453 gdbarch_register_osabi.
7454 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7455 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7456 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7457
7458 * Makefile.in (sh_tdep_h): Add osabi.h.
7459 * sh-tdep.h (sh_osabi): Remove.
7460 (gdbarch_tdep): Use generic OS ABI framework.
7461 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7462 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7463 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7464 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7465
7466 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7467 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7468 gdbarch_register_osabi.
7469 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7470 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7471 (get_elfosabi): Rename to...
7472 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7473 ABI framework support routines.
7474 (arm_gdbarch_init): Use generic OS ABI framework.
7475 (arm_dump_tdep): Likewise.
7476 (_initialize_arm_tdep): Likewise.
7477 * arm-tdep.h: Include osabi.h.
7478 (arm_abi): Remove.
7479 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7480 osabi member.
7481 (arm_gdbarch_register_os_abi): Remove prototype.
7482 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7483 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7484
7485 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7486 * mips-tdep.c: Include osabi.h.
7487 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7488 OS ABI framework.
7489
d194345b
KH
74902002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7491
7492 * h8300-tdep.c: Fix formatting.
7493
70c6b0d1
EZ
74942002-05-20 Elena Zannoni <ezannoni@redhat.com>
7495
7496 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7497 printing vector registers.
7498
165b8e33
AC
74992002-05-19 Andrew Cagney <ac131313@redhat.com>
7500
7501 From Fernando Nasser:
7502 * remote.c (remote_async_open_1): Re-throw the exception when the
7503 connection fails.
7504 (remote_cisco_open): Ditto.
7505 (remote_open_1): Ditto.
7506
36918e70
AC
75072002-05-19 Andrew Cagney <ac131313@redhat.com>
7508
7509 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7510 (remote_start_remote): Add uiout parameter. Pass through to
7511 remote_start_remote_dummy.
7512 (remote_open_1): Use catch_exception instead of catch_errors.
7513 (remote_async_open_1): Ditto.
7514 (remote_cisco_open): Ditto.
7515
ae44c0c4
AC
75162002-05-19 Andrew Cagney <ac131313@redhat.com>
7517
7518 * remote.c (remote_start_remote): Replace PTR with void pointer.
7519 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7520 static.
7521
8efe637d
AC
75222002-05-18 Andrew Cagney <ac131313@redhat.com>
7523
7524 * gdb_indent.sh: Allow the script to be run in the sim directory.
7525
2f1b5984
MK
75262002-05-18 Mark Kettenis <kettenis@gnu.org>
7527
f0f625e2
MK
7528 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7529 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7530
2f1b5984
MK
7531 * corelow.c (core_open): Only call set_gdbarch_from_file if
7532 exec_bfd is NULL.
7533
fc974602
AV
75342002-05-17 Andrey Volkov <avolkov@transas.com>
7535
7536 * h8300-tdep.c: Add support of EXR register
7537 * config/h8300/tm-h8300.h: Ditto.
7538
906709f4
AV
75392002-05-17 Andrey Volkov <avolkov@transas.com>
7540
7541 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7542
6e591d68
AV
75432002-05-17 Andrey Volkov <avolkov@transas.com>
7544
7545 * h8300-tdep.c: Change literal regnums to REGNO.
7546
84f0252a
JB
75472002-05-17 Jim Blandy <jimb@redhat.com>
7548
e0e9281e
JB
7549 * NEWS: Note addition of macro support.
7550
84f0252a
JB
7551 Expand preprocessor macros in C expressions.
7552 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7553 (scan_macro_expansion, scanning_macro_expansion,
7554 finished_macro_expansion): New function declarations.
7555 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7556 variable declarations.
7557 * parser-defs.h (expression_context_pc): New declaration.
7558 * parse.c (expression_context_pc): New variable.
7559 (parse_exp_1): Set expression_context_pc, as well as
7560 expression_context_block.
7561 * c-exp.y (yylex): If we're not already reading the result of a
7562 macro expansion, try to macro-expand the next token. When we're
7563 done scanning a macro expansion, switch back to the mainline text.
7564 Commas and `if's in a macro's expansion don't terminate the input.
7565 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7566 (macro_original_text, macro_expanded_text,
7567 expression_macro_lookup_func, expression_macro_lookup_baton): New
7568 variables.
7569 (scan_macro_expansion, scanning_macro_expansion,
7570 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7571 c_preprocess_and_parse): New functions.
7572 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7573 c_preprocess_and_parse, instead of c_parse.
7574 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7575 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7576
1c509ca8
JR
7577Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7578
7579 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7580 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7581 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7582
2250ee0c
CV
75832002-05-17 Corinna Vinschen <vinschen@redhat.com>
7584
7585 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7586
ab3b8126
JT
75872002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7588
7589 * Makefile.in (sh_tdep_h): Define and use.
7590 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7591 register enum): Move to...
7592 * * sh-tdep.h: ...here.
7593 * sh-tdep.c: Include sh-tdep.h.
7594 * sh3-rom.c: Likewise.
7595 * shnbsd-tdep.c: Likewise.
7596
ed9d4749
MS
75972002-05-16 Michael Snyder <msnyder@redhat.com>
7598
7599 * arm-tdep.c: Spelling fix in comment.
7600
2e276125
JB
76012002-05-16 Jim Blandy <jimb@redhat.com>
7602
6821892e
JB
7603 Add commands for manually expanding macros and showing their
7604 definitions.
7605 * macrocmd.c, macroscope.c, macroscope.h: New files.
7606 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7607 (macroscope_h): New variable.
7608 (HFILES_NO_SRCDIR): Add macroscope.h.
7609 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7610 (macroscope.o, macrocmd.o): New rules.
7611
2e276125
JB
7612 Teach the Dwarf 2 reader to read macro information.
7613 * dwarf2read.c: #include "macrotab.h".
7614 (dwarf_macinfo_buffer): New variable.
7615 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7616 dwarf_macinfo_size.
7617 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7618 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7619 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7620 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7621 dwarf2_macro_spaces_in_definition): New complaints.
7622 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7623 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7624 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7625 the partial symbol table.
7626 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7627 from what's recorded in the partial symbol table.
7628 (read_file_scope): If the compilation unit has a
7629 `DW_AT_macro_info' attribute, read its macro information.
7630 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7631
2f53fe6c
DJ
76322002-05-16 Daniel Jacobowitz <drow@mvista.com>
7633
7634 Fix PR gdb/546
7635 * ser-tcp.c: Don't include <netinet/udp.h>.
7636
2be99286
SC
76372002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7638
7639 * MAINTAINERS: Update my email address.
7640
c9af212b 76412002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7642
7643 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7644 include file of the same name.
7645
bf5f1a52
CV
76462002-05-16 Corinna Vinschen <vinschen@redhat.com>
7647
7648 * configure.tgt: Mark v850 as multi-arched.
7649 * config/v850/tm-v850.h: Remove file.
7650 * config/v850/v850.mt: Eliminate TM_FILE.
7651
435e042a
CV
76522002-05-16 Corinna Vinschen <vinschen@redhat.com>
7653
7654 * v850-tdep.c: Full multi-arch.
7655 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7656 Define GDB_MULTI_ARCH to 2.
7657
9819c6c8
PM
76582002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7659
7660 * p-exp.y (current_type): New static variable.
7661 Carries the type of the expression at the position that is parsed.
7662 (push_current_type, pop_current_type): Two new functions. Used
7663 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7664 (search_field): New static variable. Set to one after parsing a point
7665 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7666 (FIELDNAME): New token. After a point only a token belonging to
7667 current_type type definition is allowed.
7668 (all over token rules): reset and change current_type according
7669 to rules.
7670 (exp '[' rule): insert implicit array index field if
7671 exp is a pascal string type.
7672
3a06899a
CV
76732002-05-16 Corinna Vinschen <vinschen@redhat.com>
7674
7675 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7676 frame info. Use frame_info's saved_regs instead of matching member
7677 in extra_frame_info throughout.
7678 (v850_frame_init_saved_regs): New function.
7679 (v850_init_extra_frame_info): Move most functionality into
7680 v850_frame_init_saved_regs().
7681 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7682 (v850_frame_find_saved_regs): Remove declaration.
7683 (FRAME_FIND_SAVED_REGS): Remove definition.
7684 (v850_frame_init_saved_regs): Add declaration.
7685 (FRAME_INIT_SAVED_REGS): Add definition.
7686
6ed14b0e
CV
76872002-05-16 Corinna Vinschen <vinschen@redhat.com>
7688
7689 * v850-tdep.c: Begin multi-arch'ing v850.
7690 (v850_target_architecture_hook): Remove function.
7691 (v850_gdbarch_init): New function. Add code previously in
7692 v850_target_architecture_hook().
7693 (_initialize_v850_tdep): Don't set target_architecture_hook.
7694 Call register_gdbarch_init() instead.
7695
42725910
DJ
76962002-05-16 Daniel Jacobowitz <drow@mvista.com>
7697
7698 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7699 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7700 (fixup_class_method_type): Likewise.
7701
99d9066e
JB
77022002-05-15 Jim Blandy <jimb@redhat.com>
7703
7704 Add macro structures to GDB's symbol tables. Nobody puts anything
7705 in them yet.
7706 * symtab.h (struct symtab): New member: `macro_table'.
7707 * buildsym.h (pending_macros): New global variable.
7708 * buildsym.c: #include "macrotab.h".
7709 (buildsym_init): Initialize `pending_macros'.
7710 (end_symtab): If we found macro information while reading a CU's
7711 debugging info, do build a symtab structure for it. Make the
7712 symtab point to the macro information, and clear the
7713 `pending_macros' pointer which held it while we were reading the
7714 debug info.
7715 (really_free_pendings): Free any pending macro table.
7716 * objfiles.h (struct objfile): New member: `macro_cache'.
7717 * objfiles.c (allocate_objfile): Set allocate and free functions
7718 for the macro cache's objstack.
7719 (free_objfile): Empty the macro cache's obstack.
7720 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7721 set new allocate and free functions for it.
7722 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7723 free functions for the macro cache's objstack. (Why is this
7724 function building its own objfile?)
7725 * symmisc.c (print_objfile_statistics): Print statistics on the
7726 macro bcache.
7727 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7728
c899585b
RE
77292002-05-15 Richard Earnshaw <rearnsha@arm.com>
7730
7731 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7732 (REGISTER_U_ADDR): Delete definition.
7733 (arm_register_u_addr): Delete declaration.
7734
a6cdd8c5
RE
77352002-05-15 Richard Earnshaw <rearnsha@arm.com>
7736
7737 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7738 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7739
c97dcfc7
AC
77402002-05-14 Andrew Cagney <ac131313@redhat.com>
7741
7742 * regcache.c (register_valid): Revise comments refering to "Not
7743 available" and "unavailable".
7744 * frame.c (frame_register_read): Ditto.
7745 * findvar.c (value_of_register): Ditto.
7746
93021b7d
AC
77472002-05-15 Andrew Cagney <cagney@redhat.com>
7748
7749 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7750 (remote-sim.o): Update dependencies.
7751 (d10v-tdep.o): Specify dependencies.
7752 (sim_d10v_h): Define.
7753
a86bc61c
JB
77542002-05-14 Jim Blandy <jimb@redhat.com>
7755
7756 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7757 * macrotab.c (macro_lookup_inclusion, find_definition,
7758 new_macro_table): Same.
7759
7760 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7761 not `! strcmp ()'. This is a dubious improvement.
7762 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7763
7764 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7765 although it's not necessary, to avoid a warning.
7766
2fdde8f8
DJ
77672002-05-14 Daniel Jacobowitz <drow@mvista.com>
7768
7769 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7770 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7771 TYPE_INSTANCE_FLAGS.
7772 (struct main_type): New.
7773 (struct type): Move most members to struct main_type. Change
7774 cv_type and as_type to new type_chain member. Add instance_flags.
7775 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7776 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7777 (finish_cv_type): Remove prototype.
7778 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7779 Set TYPE_CHAIN.
7780 (alloc_type_instance): New function.
7781 (smash_type): New function.
7782 (make_pointer_type, make_reference_type, make_function_type)
7783 (smash_to_member_type, smash_to_method_type): Call smash_type.
7784 (make_qualified_type): New function.
7785 (make_type_with_address_space): Call make_qualified_type.
7786 (make_cv_type): Likewise.
7787 (finish_cv_type): Remove unnecessary function.
7788 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7789 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7790 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7791 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7792 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7793 * hpread.c (hpread_read_struct_type): Likewise.
7794 * stabsread.c (read_struct_type): Likewise.
7795
843fedf4
EZ
77962002-05-14 Elena Zannoni <ezannoni@redhat.com>
7797
7798 * configure.tgt: Add a catch all sh* target, for cases like
7799 sh[2,3,4]-elf and sh-hms.
7800
05a6c72c
KS
78012002-05-14 Keith Seitz <keiths@redhat.com>
7802
7803 * event-loop.c (create_file_handler): Don't do anything but
7804 update data when we are given a fd which we are already
7805 monitoring.
7806
5d085aaf
ML
78072002-05-14 Michal Ludvig <mludvig@suse.cz>
7808
7809 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7810 (update_context): Use __func__ in warnings.
7811
9db8d71f
DJ
78122002-05-14 Daniel Jacobowitz <drow@mvista.com>
7813
7814 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7815 and tcp_close to net_open and net_close.
7816 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7817 using UDP if requested. Don't try to disable Nagle on UDP
7818 sockets.
7819 * remote.c (remote_serial_open): New function. Warn about UDP.
7820 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7821
5dbc6baa
EZ
78222002-05-13 Elena Zannoni <ezannoni@redhat.com>
7823
7824 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7825
cc3023f7
EZ
78262002-05-13 Elena Zannoni <ezannoni@redhat.com>
7827
7828 * configure.tgt: Remove sh-hms target.
7829 * MAINTAINERS: Don't list sh-hms as a separate target.
7830
ec2bcbe7
JB
78312002-05-13 Jim Blandy <jimb@redhat.com>
7832
7833 Add first preprocessor macro-expansion files.
7834 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7835 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7836 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7837 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7838 (COMMON_OBS): Add macrotab.o, macroexp.o.
7839 (macroexp.o, macrotab.o): New rules.
7840
6d531722
AC
78412002-05-13 Andrew Cagney <ac131313@redhat.com>
7842
7843 * config/m88k/tm-m88k.h: Update copyright.
7844 (m88k_target_write_pc): Declare
7845 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7846 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7847 (SHIFT_INST_REGS): Update definition.
7848 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7849 using old definition of TARGET_WRITE_PC.
7850 * regcache.c (generic_target_write_pc): Delete code handling
7851 NNPC_REGNUM.
7852 * gdbarch.sh (NNPC_REGNUM): Delete.
7853 * gdbarch.h, gdbarch.c: Regenerate.
7854
3e3f2739
RE
78552002-05-13 Richard Earnshaw <rearnsha@arm.com>
7856
7857 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7858 builtin reg number.
7859
0004e5a2
DJ
78602002-05-13 Daniel Jacobowitz <drow@mvista.com>
7861
7862 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7863 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7864 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7865 access macros.
7866 * c-typeprint.c (cp_type_print_method_args): Likewise.
7867 (c_type_print_args): Likewise.
7868 * d10v-tdep.c (d10v_push_arguments): Likewise.
7869 (d10v_extract_return_value): Likewise.
7870 * expprint.c (print_subexp): Likewise.
7871 * gdbtypes.c (lookup_primitive_typename): Likewise.
7872 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7873 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7874 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7875 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7876 (TYPE_VECTOR): Likewise.
7877 * hpread.c (hpread_read_struct_type)
7878 (fix_static_member_physnames, fixup_class_method_type)
7879 (hpread_type_lookup): Likewise.
7880 * mdebugread.c (parse_symbol, parse_type): Likewise.
7881 * p-lang.c (is_pascal_string_type): Likewise.
7882 * valops.c (hand_function_call): Likewise.
7883 * x86-64-tdep.c (classify_argument): Likewise.
7884
7885 * hpread.c (hpread_read_function_type)
7886 (hpread_read_doc_function_type): Call replace_type.
7887 * dstread.c (create_new_type): Delete.
7888 (decode_dst_structure, process_dst_function): Call alloc_type.
7889 Use type access macros.
7890
dff95cc7
MK
78912002-05-12 Mark Kettenis <kettenis@gnu.org>
7892
7893 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7894 the're not supported by the current architecture.
7895 (i387_fill_fxsave): Likewise.
7896
bbcd32ad
FF
78972002-05-12 Fred Fish <fnf@redhat.com>
7898
7899 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7900 sect_index_xxx members to index the first slot in section_offsets
7901 if all of the section_offsets are zero.
7902
89cf4787
MK
79032002-05-12 Mark Kettenis <kettenis@gnu.org>
7904
7905 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7906 checked in with last change.
7907
1f77ffc5
MK
79082002-05-12 Mark Kettenis <kettenis@gnu.org>
7909
7910 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7911 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7912 config.sub.
7913
89b8b4a9
DJ
79142002-05-12 Daniel Jacobowitz <drow@mvista.com>
7915
7916 * Makefile.in: Update dependencies.
7917
14a5e767
AC
79182002-05-11 Andrew Cagney <ac131313@redhat.com>
7919
7920 * language.c (local_hex_string_custom): Simplify. Do not depend
7921 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7922
7923 * memattr.c (mem_info_command): Replace calls to
7924 longest_local_hex_string and longest_local_hex_string_custom.
7925 * buildsym.c (make_blockvector): Ditto.
7926 * solib.c (info_sharedlibrary_command): Ditto.
7927 * tracepoint.c (tracepoints_info): Ditto.
7928 * symtab.c (print_msymbol_info): Ditto.
7929
7930 * language.c (local_hex_string): Delete.
7931 (local_hex_string_custom): Delete.
7932 (longest_local_hex_string): Rename to local_hex_string.
7933 (longest_local_hex_string_custom): Rename to
7934 local_hex_string_custom.
7935 * language.h (local_hex_string): Change parameter type to LONGEST.
7936 (local_hex_string_custom): Ditto.
7937 (longest_local_hex_string): Delete declaration.
7938 (longest_local_hex_string_custom): Ditto.
7939
7940 * solib.c: Update copyright.
7941 * memattr.c: Update copyright.
7942
13d01224
AC
79432002-05-11 Andrew Cagney <ac131313@redhat.com>
7944
7945 * arch-utils.h (legacy_register_to_value): Declare.
7946 (legacy_value_to_register): Declare.
7947 (legacy_convert_register_p): Declare.
7948 * arch-utils.c (legacy_register_to_value): New function.
7949 (legacy_value_to_register): New function.
7950 (legacy_convert_register_p): New function.
7951
7952 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7953 (VALUE_TO_REGISTER): Define.
7954 (CONVERT_REGISTER_P): Define.
7955 * gdbarch.h, gdbarch.c: Regenerate.
7956
7957 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7958 VALUE_TO_REGISTER.
7959 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7960 CONVERT_REGISTER_P.
7961
4a1970e4
DJ
79622005-05-11 Daniel Jacobowitz <drow@mvista.com>
7963 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7964
7965 * Makefile.in: Update dependencies for valops.c.
7966 * valops.c: Include "gdb_assert.h".
7967 (typecmp): Skip THIS parameter to methods.
7968 (find_method_list): Remove static_memfuncp argument,
7969 update callers. Check for stub methods.
7970 (find_value_oload_method_list): Don't set *static_memfuncp.
7971 (find_overload_match): Don't check for stub methods. Assert
7972 that methods are not stubbed. Handle static methods.
7973 (value_find_oload_method_list): Remove static_memfuncp argument.
7974 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7975 to the argument list for static stub methods.
7976 * value.h (value_find_oload_method_list): Update prototype.
7977
b2e75d78
AC
79782002-05-11 Andrew Cagney <ac131313@redhat.com>
7979
7980 * arch-utils.h (generic_register_size): Declare.
7981 (generic_register_raw_size, generic_register_virtual_size): Delete
7982 declarations.
7983 * arch-utils.c (generic_register_raw_size): Delete.
7984 (generic_register_size): New function.
7985 (generic_register_virtual_size): Delete.
7986
7987 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7988 default generic_register_size.
7989 * gdbarch.h, gdbarch.c: Re-generate.
7990
7991 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7992 register_virtual_size.
7993 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7994 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7995
451fbdda
AC
79962002-05-11 Andrew Cagney <ac131313@redhat.com>
7997
7998 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7999 * gdbarch.h, gdbarch.c: Regenerate.
8000 * gnu-v3-abi.c: Update copyright.
8001 (vtable_address_point_offset): Update.
8002 (gnuv3_rtti_type): Update.
8003 (gnuv3_baseclass_offset): Update.
8004 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8005 (init_fetch_link_map_offsets): Update.
8006 * remote.c (get_remote_state): Update.
8007
6d2f5cea
DJ
80082002-05-11 Daniel Jacobowitz <drow@mvista.com>
8009
8010 * TODO: Remove value_headof/value_from_vtable_info comment.
8011 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8012 * values.c (value_headof, value_from_vtable_info): Delete.
8013 * value.h (value_from_vtable_info): Delete prototype.
8014
d2324da4
AC
80152002-05-11 Andrew Cagney <ac131313@redhat.com>
8016
8017 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8018 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8019 $(gdb_regex_h).
8020 (gdb_assert_h): Define.
8021 (gdb_wait_h): Define.
8022 (gdb_regex_h): Define.
8023
5c717440
DJ
80242002-05-11 Daniel Jacobowitz <drow@mvista.com>
8025
8026 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8027 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8028
6c7861b3
JT
80292002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * nbsd-tdep.c: Fix comment.
8032
ea5bc2a6
JT
80332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8034
8035 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8036 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8037 (nbsd-tdep.o): New dependency list.
8038 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8039 nbsd-tdep.h.
8040 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8041 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8042 * nbsd-tdep.c: New file.
8043 * nbsd-tdep.h: New file.
8044 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8045 nbsd-tdep.h.
8046 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8047 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8048 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8049 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8050
b28da865
JT
80512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8052
8053 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8054 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8055 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8056 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8057 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8058 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8059
4b8ff1fa
JT
80602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8061
8062 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8063 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8064 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8065 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8066 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8067 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8068 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8069
dfe6eb1f
JT
80702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8071
8072 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8073 fetch_elfcore_registers to...
8074 * i386nbsd-tdep.c: ...here.
8075 (i386nbsd_use_struct_convention): Rename to...
8076 (i386nbsd_aout_use_struct_convention): ...this.
8077 (i386nbsd_supply_reg): New function.
8078 (i386nbsd_fill_reg): New function.
8079 (fetch_core_registers): Use i386nbsd_supply_reg.
8080 (fetch_elfcore_registers): Likewise.
8081 (_initialize_i386nbsd_tdep): New function.
8082 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8083 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8084 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8085 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8086 (i386nbsd_aout_use_struct_convention): ...this.
8087
20cb8cda
JT
80882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8089
8090 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8091 (store_inferior_registers): Use shnbsd_fill_reg.
8092 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8093 sh_nbsd_supply_register): Collapse into...
8094 (shnbsd_supply_reg): ...this.
8095 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8096 (shnbsd_fill_reg): ...this.
8097 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8098 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8099 (fetch_core_registers): Use shnbsd_supply_reg.
8100 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8101 (sh_nbsd_core_fns): Rename to...
8102 (shnbsd_core_fns): ...this.
8103 (sh_nbsd_elfcore_fns): Rename to...
8104 (shnbsd_elfcore_fns): ...this.
8105 (sh_nbsd_init_abi): Rename to...
8106 (shnbsd_init_abi): ...this.
8107 (_initialize_sh_nbsd_tdep): Rename to...
8108 (_initialize_shnbsd_tdep): ...this.
8109 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8110 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8111 sh_nbsd_fill_register): Remove prototypes.
8112 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8113
e750d25e
JT
81142002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8115
8116 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8117 (i387-nat.o): Delete dependency list.
8118 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8119 (x86-64-linux-nat.o): Likewise.
8120 * i387-nat.c: Delete file, moving contents to...
8121 * i387-tdep.c: ...here.
8122 * i387-nat.h: Rename...
8123 * i387-tdep.h: ...to this.
8124 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8125 * i386-linux-nat.c: Likewise.
8126 * i386bsd-nat.c: Likewise.
8127 * i386gnu-nat.c: Likewise.
8128 * i386nbsd-nat.c: Likewise.
8129 * i386v4-nat.c: Likewise.
8130 * x86-64-linux-nat.c: Likewise.
8131 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8132 * config/i386/go32.mh (NATDEPFILES): Likewise.
8133 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8134 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8135 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8136 * config/i386/linux.mh (NATDEPFILES): Likewise.
8137 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8138 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8139 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8140 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8141
1aee598a
JT
81422002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8143
8144 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8145 (alphanbsd-nat.o): Remove dependency list.
8146 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8147 * alphanbsd-nat.c: Delete. Contents moved to...
8148 * alphanbsd-tdep.c: ...here.
8149 (_initialize_alphanbsd_tdep): Register core functions.
8150 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8151
12bcb0fe
JT
81522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8153
8154 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8155 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8156 (alphanbsd-nat.o): Likewise.
8157 (alphabsd-tdep.o): New dependency list.
8158 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8159 (fill_gregset): Use alphabsd_fill_reg.
8160 (supply_fpregset): Use alphabsd_supply_fpreg.
8161 (fill_fpregset): Use alphabsd_fill_fpreg.
8162 (fetch_inferior_registers): Use struct reg and struct fpreg
8163 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8164 and alphabsd_supply_fpreg.
8165 (store_inferior_registers): Use struct reg and struct fpreg
8166 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8167 and alphabsd_fill_fpreg.
8168 * alphabsd-tdep.c: New file.
8169 * alphabsd-tdep.h: New file.
8170 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8171 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8172 alphabsd_supply_fpreg.
8173 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8174 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8175
361d1df0
EC
81762002-05-11 Eric Christopher <echristo@redhat.com>
8177
8178 * mips-tdep.c (mips_double_register_type): Fix thinko.
8179 (mips_single_register_type): Ditto.
8180 * MAINTAINERS: Add self.
8181
92dd7cee
MK
81822002-05-11 Mark Kettenis <kettenis@gnu.org>
8183
8184 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8185 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8186 right thing on architectures with different endianness and/or
8187 integer sizes.
8188
e27da16d
JT
81892002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8190
8191 From Christian Limpach <chris@Pin.LU>
8192 * configure.in: Change sed expression which comments out
8193 NATDEPFILES to also comment out continuation lines.
8194 * configure: Regenerate.
8195
ddde02bd
EZ
81962002-05-10 Elena Zannoni <ezannoni@redhat.com>
8197
8198 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8199 big patch.
8200
1c922164
EZ
82012002-05-10 Elena Zannoni <ezannoni@redhat.com>
8202
8203 * sh-tdep.c: Include correct file.
8204
283150cd
EZ
82052002-05-10 Elena Zannoni <ezannoni@redhat.com>
8206
8207 New support for sh64-elf (sh5) target.
8208
8209 * configure.tgt: For sh64-elf target, default to sh-elf.
8210
8211 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8212 (struct gdbarch_tdep): Add new fields for new registers and ABI
8213 info.
361d1df0 8214
283150cd
EZ
8215 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8216 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8217 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8218 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8219 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8220 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8221 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8222 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8223 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8224 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8225 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8226 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8227 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8228 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8229 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8230 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8231 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8232 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8233 sign_extend, sh64_nofp_frame_init_saved_regs,
8234 sh64_init_extra_frame_info, sh64_get_saved_register,
8235 sh64_extract_struct_value_address, sh64_pop_frame,
8236 sh64_push_arguments, sh64_extract_return_value,
8237 sh64_store_return_value, sh64_show_media_regs,
8238 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8239 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8240 sh_sh64_register_virtual_type,
8241 sh_sh64_register_convert_to_virtual,
8242 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8243 sh64_register_read, sh64_pseudo_register_write,
8244 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8245 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8246 sh64_do_pseudo_register, sh_compact_do_registers_info,
8247 sh64_do_registers_info, sh_gdbarch_init): New functions.
8248
3117ed25
EZ
82492002-05-10 Elena Zannoni <ezannoni@redhat.com>
8250
8251 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8252
2654e6d4
DJ
82532002-05-10 Daniel Jacobowitz <drow@mvista.com>
8254
8255 * linespec.c (decode_line_1): Check for a double quote after
8256 a filename correctly.
8257
9ab3e532
JB
82582002-05-10 Jim Blandy <jimb@redhat.com>
8259
8260 Properly track the size of the current objfile's .debug_line section.
8261 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8262 (DWARF_LINE_SIZE): New macro.
8263 (dwarf2_build_psymtabs_hard): Record the line section's size in
8264 the partial symbol table.
8265 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8266 symbol table.
8267
126fa72d
PS
82682002-05-10 Petr Sorfa <petrs@caldera.com>
8269
8270 * ia64-tdep.c: Handle breakpoints on L instruction type
8271 in MLX instruction bundle by moving the breakpoint to
8272 the third slot (X instruction type) as L holds only data.
8273
1f077a3e
KB
82742002-05-10 Kevin Buettner <kevinb@redhat.com>
8275
8276 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8277 (process_one_symbol): Complain about discarding local symbols
8278 due to a misplaced N_LBRAC entry.
8279
8120c9d5 82802002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8281
8282 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8283 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8284 decrease the depth we are at, in the case of templates.
361d1df0 8285
67b2c998
DJ
82862002-05-09 Daniel Jacobowitz <drow@mvista.com>
8287
8288 * mips-tdep.c (mips_float_register_type): New function.
8289 (mips_double_register_type): New function.
8290 (mips_print_register): Use them.
8291 (do_fp_register_row): Likewise.
8292
fd326606
DJ
82932002-05-09 Daniel Jacobowitz <drow@mvista.com>
8294
6609d9af 8295 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8296 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8297 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8298
bef35864
MS
82992002-05-09 Michael Snyder <msnyder@redhat.com>
8300
8301 * remote-rdp.c (remote_rdp_can_run): Remove.
8302
c55a3f73
TT
83032002-05-09 Tom Tromey <tromey@redhat.com>
8304
8305 * jv-valprint.c (java_val_print): Handle `char' as a special case
8306 of TYPE_CODE_INT.
8307
b8d5e71d
MS
83082002-05-09 Michael Snyder <msnyder@redhat.com>
8309
8310 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8311 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8312 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8313 str r(0123),[sp,#nn].
361d1df0 8314 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8315 order-independent by placing it in a loop.
8316
e2cd42dd
MS
83172002-05-06 Michael Snyder <msnyder@redhat.com>
8318
8319 * stabsread.c (read_type): Add recognition for new attribute:
8320 "@V;" means that an array type is actually a vector.
8321 This is analogous to the vector flag that's been added to dwarf2.
8322
3ce1502b
MK
83232002-05-09 Mark Kettenis <kettenis@gnu.org>
8324
8325 * i386-tdep.h (i386_abi): New enum.
8326 (struct gdbarch_tdep): Replace os_ident member with abi.
8327 (i386_gdbarch_register_os_abi): New prototype.
8328 * i386-tdep.c (i386_abi_names): New array.
8329 (process_note_abi_tag_sections): Removed.
8330 (process_note_sections): New function.
8331 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8332 (struct i386_abi_handler): New struct.
8333 (i386_abi_handler_list): New variable.
8334 (i386_gdbarch_register_os_abi): New function.
8335 (i386_gdbarch_init): Adapt for the changes given above.
8336
084c156a
DJ
83372002-05-08 Daniel Jacobowitz <drow@mvista.com>
8338
8339 * gregset.h: Say "GNU/Linux".
8340
6599f021
EZ
83412002-05-08 Elena Zannoni <ezannoni@redhat.com>
8342
8343 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8344 (build_gdbtypes): Build builtin_type_v2_float.
8345 (_initialize_gdbtypes): Register new builtin type.
8346
40af4b0c
AC
83472002-05-08 Andrew Cagney <ac131313@redhat.com>
8348
8349 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8350 (clear_gdbarch_swap): New function.
8351 (initialize_non_multiarch): Call.
8352 (gdbarch_update_p): Before calling init(), swap out and clear the
8353 existing architecture.
8354 * gdbarch.c: Regenerate.
8355
4fe84f46
JT
83562002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8357
8358 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8359 alphanbsd-tdep.c.
8360
4015edd1
JT
83612002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8362
8363 * sh-nbsd-nat.c: Rename to...
8364 * shnbsd-nat.c: ...this.
8365 * sh-nbsd-tdep.c: Rename to...
8366 * shnbsd-tdep.c: ...this.
8367 * sh-nbsd-tdep.h: Rename to...
8368 * shnbsd-tdep.h: ...this.
8369 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8370 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8371
0e2bd219
RE
83722002-05-08 Richard Earnshaw <rearnsha@arm.com>
8373
8374 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8375 concatenation for command help messages.
8376
13a38d45
JT
83772002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8378
8379 * NEWS: Note new sh*-*-netbsdelf* configuration.
8380 * configure.host: Set gdb_host_cpu to sh for all sh*.
8381 (sh*-*-netbsdelf*): New host.
8382 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8383 (sh*-*-netbsdelf*): New target.
8384 * sh-nbsd-nat.c: New file.
8385 * sh-nbsd-tdep.c: New file.
8386 * sh-nbsd-tdep.h: New file.
8387 * config/sh/nbsd.mh: New file.
8388 * config/sh/nbsd.mt: New file.
8389 * config/sh/nm-nbsd.h: New file.
8390 * config/sh/tm-nbsd.h: New file.
8391
d658f924
JT
83922002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8393
8394 * sh-tdep.c (sh_osabi_names): Declare.
8395 (process_note_abi_tag_sections): New function.
8396 (get_elfosabi): Ditto.
8397 (sh_gdbarch_register_os_abi): Ditto.
8398 (sh_dump_tdep): Ditto.
8399 _initialize_sh_tdep): Use gdbarch_register to register
8400 sh_gdbarch_init and sh_dump_tdep.
8401 * config/sh/tm-sh.h (sh_osabi): Declare.
8402 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8403
848cfffb
AC
84042002-05-07 Andrew Cagney <ac131313@redhat.com>
8405
8406 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8407 (thumb_scan_prologue): Ditto.
8408 (arm_find_callers_reg): Ditto.
8409 (arm_frame_chain): Ditto.
8410 (arm_init_extra_frame_info): Ditto.
8411 (arm_frame_saved_pc): Ditto.
8412 (arm_pop_frame): Ditto.
8413 (arm_push_return_address): New function.
8414 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8415 call_dummy_location, call_dummy_breakpoint_offset_p,
8416 call_dummy_breakpoint_offset, call_dummy_p,
8417 call_dummy_stack_adjust_p, call_dummy_words,
8418 sizeof_call_dummy_words, call_dummy_start_offset,
8419 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8420 call_dummy_address, push_return_address and push_dummy_frame for
8421 generic dummy frames.
8422
e7d717c0
JT
84232002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8424
8425 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8426 size computation for alloca.
8427 (sh_fp_frame_init_saved_regs): Likewise.
8428
7bbcf283
RE
84292002-05-07 Richard Earnshaw <rearnsha@arm.com>
8430
8431 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8432 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8433 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8434 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8435 * remote-rdp.c (remote_rdp_fetch_register): Use
8436 ARM_MAX_REGISTER_RAW_SIZE.
8437 (remote_rdp_store_register): Likewise.
8438
4657573b
ML
84392002-05-07 Michal Ludvig <mludvig@suse.cz>
8440
361d1df0 8441 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8442 added default labels to switch {} statements.
8443 * x86-64-tdep.c: Ditto.
8444 * x86-64-linux-nat.c: Ditto.
8445
010f3b2f
JT
84462002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8447
8448 * solib.h: Protect against multiple inclusion.
8449
debd256d
JB
84502002-05-06 Jim Blandy <jimb@redhat.com>
8451
9ab3e532
JB
8452 Add first preprocessor macro-expansion files.
8453 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8454 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8455 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8456 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8457 (COMMON_OBS): Add macrotab.o, macroexp.o.
8458 (macroexp.o, macrotab.o): New rules.
8459
debd256d
JB
8460 Separate the job of reading the line number info statement program
8461 header (...expialidocious) out into its own function.
8462 * dwarf2read.c (struct line_head, struct filenames, struct
8463 directories): Replace with...
8464 (struct line_header): New structure, containing the full
8465 contents of the statement program header, including the
8466 include directory and file name tables.
8467 (read_file_scope): If we have line number info, instead of just
8468 calling dwarf_decode_lines to do all the work, call
8469 dwarf_decode_line_header first to get a `struct line_header'
8470 containing the data in the statement program header, and then
8471 pass that to dwarf_decode_lines, which will pick up where that
8472 left off. Be sure to clean up the `struct line_header' object.
8473 (dwarf_decode_line_header, free_line_header, add_include_dir,
8474 add_file_name): New functions.
8475 (dwarf_decode_lines): Move all the code to read the statement
8476 program header into dwarf_decode_line_header. Take the line
8477 header it built as the first argument, instead of the offset to
8478 the compilation unit's line number info. Use the new `struct
8479 line_header' type instead of the old structures. No need to do
8480 cleanups here now, since we don't allocate anything.
8481 (dwarf2_statement_list_fits_in_line_number_section,
8482 dwarf2_line_header_too_long): New complaints.
8483
ac3aafc7
EZ
84842002-05-06 Elena Zannoni <ezannoni@redhat.com>
8485
8486 * gdbtypes.c (init_vector_type): New function.
8487 (build_builtin_type_vec128): Simplify the representation of SIMD
8488 registers.
8489 (build_gdbtypes): Initialize new builtin vector types.
8490 (_initialize_gdbtypes): Register new vector types with gdbarch.
8491 (builtin_type_v4_float, builtin_type_v4_int32,
8492 builtin_type_v8_int16, builtin_type_v16_int8,
8493 builtin_type_v2_int32, builtin_type_v4_int16,
8494 builtin_type_v8_int8): New (renamed) SIMD types.
8495
13e49980
MK
84962002-05-06 Mark Kettenis <kettenis@gnu.org>
8497
8498 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8499 (i387_fill_fxsave): Likewise.
8500
997b20b8
AO
85012002-05-05 Alexandre Oliva <aoliva@redhat.com>
8502
8503 * alpha-tdep.c (alpha_extract_return_value): Don't use
8504 non-constant array size in prototype.
8505
535c96ce
AC
85062002-05-04 Andrew Cagney <ac131313@redhat.com>
8507
8508 From Brian Taylor <briant at model dot com>:
8509 * ui-out.c (ui_out_field_core_addr): Use the function
8510 longest_local_hex_string_custom'to format addresses > 32 bits
8511 wide.
8512
8513 * ui-out.c (ui_out_field_core_addr): Update comment.
8514
bedfa57b
AC
85152002-05-04 Andrew Cagney <ac131313@redhat.com>
8516
8517 * stack.c (select_and_print_frame): Make static. Delete the
8518 parameter `level'.
8519 (func_command): Update call.
8520 (select_frame_command): Delete code computing the frame level.
8521 * frame.h (select_and_print_frame): Delete declaration.
8522
f621c63e
AC
85232002-05-04 Andrew Cagney <ac131313@redhat.com>
8524
8525 * sparc-tdep.c (sparc_get_saved_register): Comment why
8526 get_prev_frame call is safe.
8527
0f7d239c
AC
85282002-05-04 Andrew Cagney <ac131313@redhat.com>
8529
8530 * frame.h (select_frame): Delete level parameter.
8531 * stack.c (select_frame): Update. Use frame_relative_level to
8532 obtain the frame's level.
8533 (select_and_print_frame): Update call.
8534 (select_frame_command): Ditto.
8535 (up_silently_base): Ditto.
8536 (down_silently_base): Ditto.
8537 * ocd.c (ocd_start_remote): Ditto.
8538 * remote-rdp.c (remote_rdp_open): Ditto.
8539 * remote-mips.c (mips_initialize): Ditto.
8540 (common_open): Ditto.
8541 * remote-e7000.c (e7000_start_remote): Ditto.
8542 * m3-nat.c (select_thread): Ditto.
8543 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8544 (child_get_current_exception_event): Ditto.
8545 * varobj.c (varobj_create): Ditto.
8546 (varobj_update): Ditto.
8547 (c_value_of_root): Ditto.
8548 * tracepoint.c (finish_tfind_command): Ditto.
8549 * corelow.c (core_open): Ditto.
8550 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8551 * thread.c (info_threads_command): Ditto.
8552 (switch_to_thread): Ditto.
8553 * infrun.c (normal_stop): Ditto.
8554 (restore_selected_frame): Ditto.
8555 (restore_inferior_status): Ditto.
8556 * breakpoint.c (insert_breakpoints): Ditto.
8557 (watchpoint_check): Ditto.
8558 (bpstat_stop_status): Ditto.
8559 (do_enable_breakpoint): Ditto.
8560 * blockframe.c (flush_cached_frames): Ditto.
8561 (reinit_frame_cache): Ditto.
8562
71d6c7b1
AC
85632002-05-04 Andrew Cagney <ac131313@redhat.com>
8564
8565 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8566 maintainer.
8567
cda6c68a
JB
85682002-05-04 Jim Blandy <jimb@redhat.com>
8569
8570 * gdbtypes.c (replace_type): Doc fix.
8571
5c1c87f0
AC
85722002-05-04 Andrew Cagney <ac131313@redhat.com>
8573
8574 * valprint.c (strcat_longest): Delete commented out function.
8575 Update copyright.
8576
cd9bfe15
AC
85772002-05-04 Andrew Cagney <ac131313@redhat.com>
8578
8579 * MAINTAINERS: Mark a29k as deleted.
8580 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8581 Move new configurations to the top.
8582 * configure.tgt: Remove a29k.
8583 * config/a29k/tm-vx29k.h: Delete.
8584 * config/a29k/vx29k.mt: Delete.
8585 * config/a29k/tm-a29k.h: Delete.
8586 * config/a29k/a29k-udi.mt: Delete.
8587 * config/a29k/a29k.mt: Delete.
8588 * a29k-tdep.c: Delete.
8589 * remote-udi.c: Delete.
8590 * remote-mm.c: Delete.
8591 * remote-eb.c: Delete.
8592 * remote-adapt.c: Delete.
8593 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8594 * config/s390/s390x.mt: Ditto.
8595 * config/s390/s390.mt: Ditto.
8596 * config/sparc/sparclynx.mh: Ditto.
8597 * config/sparc/linux.mh: Ditto.
8598 * config/pa/hppaosf.mh: Ditto.
8599 * config/pa/hppabsd.mh: Ditto.
8600 * config/ns32k/nbsd.mt: Ditto.
8601 * config/mips/vr5000.mt: Ditto.
8602 * config/m68k/sun3os4.mh: Ditto.
8603 * config/m68k/nbsd.mt: Ditto.
8604 * config/m68k/m68klynx.mh: Ditto.
8605 * config/m32r/m32r.mt: Ditto.
8606 * config/i386/x86-64linux.mt: Ditto.
8607 * config/i386/nbsdelf.mt: Ditto.
8608 * config/i386/nbsd.mt: Ditto.
8609 * config/i386/i386lynx.mh: Ditto.
8610
bf0c5130
AC
86112002-05-04 Andrew Cagney <ac131313@redhat.com>
8612
8613 * target.c (debug_print_register): New function. Handle oversize
8614 registers.
8615 (debug_to_fetch_registers): Call.
8616 (debug_to_store_registers): Call.
8617
2ae1c2d2
JB
86182002-05-03 Jim Blandy <jimb@redhat.com>
8619
13a393b0
JB
8620 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8621 (read_type): Doc fix.
8622 * gdbtypes.c (replace_type): Doc fix.
8623
2ae1c2d2
JB
8624 * stabsread.c (multiply_defined_struct): New complaint.
8625 (read_struct_type): If the type we were passed isn't empty, or
8626 incomplete, don't read the new struct type into it; complain,
8627 and return the original type unchanged. Take a new `type_code'
8628 argument, which is the type code for the new type.
8629 (read_type): Rather than storing the type's type code here, pass
8630 it as an argument to read_struct_type, and let that take care of
8631 storing it. That way, we don't overwrite the original type code,
8632 so read_struct_type can use it to decide whether we're overwriting
8633 something we shouldn't.
8634 (complain_about_struct_wipeout): New function.
8635
8de9bdc4
AC
86362002-05-03 Andrew Cagney <ac131313@redhat.com>
8637
8638 * gdbarch.sh: Assert that gdbarch is non-NULL.
8639 * gdbarch.c: Regenerate.
8640
f773fdbb
JM
86412002-05-03 Jason Merrill <jason@redhat.com>
8642
8643 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8644 and return NULL.
8645
0e04a514
ML
86462002-05-03 Michal Ludvig <mludvig@suse.cz>
8647
8648 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8649 (x86_64_dwarf2gdb_regno_map_length),
8650 (x86_64_dwarf2_reg_to_regnum): Added.
8651 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8652 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8653 (_initialize_x86_64_tdep): Synced with the change above.
8654 (x86_64_skip_prologue): Reformulated message.
8655
065432a8
PM
86562002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8657
8658 * f-exp.y: Also use new prev_lexptr variable
8659 to improve error reporting. Based on Michael Snyder
8660 2002-04-24 dated patch to c-exp.y.
8661 * jv-exp.y: Likewise.
8662 * m2-exp.y: Likewise.
8663
a3162708
EZ
86642002-05-02 Elena Zannoni <ezannoni@redhat.com>
8665
8666 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8667 we are dealing with vectors.
8668
03620c38
PM
86692002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8670
8671 * config/m68k/tm-nbsd.h: Obvious fix,
8672 correct machine name.
8673
6604db2e
PM
86742002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8675
8676 * p-typeprint.c (pascal_type_print_base): Add support
8677 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8678
0906b739
PM
86792002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8680
8681 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8682 for fondamental pascal 'char' type.
8683
e2625b33
PM
86842002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8685
8686 * p-lang.h (is_pascal_string_type): Declaration changed,
8687 new sixth argument of type char ** added.
361d1df0 8688 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8689 changed. Args length_pos, length_size, string_pos, char_size
8690 can now be NULL. New argument arrayname set to the field
8691 name of the char array. Return value set to char array
8692 field index plus one.
361d1df0 8693 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8694 is_pascal_string_type function.
8695
cf17c188
AC
86962002-05-02 Andrew Cagney <cagney@redhat.com>
8697
8698 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8699 <cagney@redhat.com> change.
8700 * gdbarch.c: Regenerate.
8701
52bca491
AC
87022002-05-02 Andrew Cagney <cagney@redhat.com>
8703
8704 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8705 before probing for a new one. Detect errorenous gdbarch_init
8706 functions.
8707 * gdbarch.c: Regenerate.
8708
d5e72505
AC
87092002-05-01 Andrew Cagney <cagney@redhat.com>
8710
8711 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8712 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8713 * config/v850/tm-v850.h: Ditto. Update copyright.
8714
af566d9f
AC
87152002-04-30 Andrew Cagney <ac131313@redhat.com>
8716
8717 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8718 current_gdbarch.
8719
880d85fa
MS
87202002-04-30 Michael Snyder <msnyder@redhat.com>
8721
94c30b78
MS
8722 * arm-tdep.c: Whitespace clean-ups.
8723 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8724 should have been removed as part of 4/24 change.
8725
6f5987a6
KB
87262002-04-30 Kevin Buettner <kevinb@redhat.com>
8727
8728 * rs6000-tdep.c: Added comment describing how fpscr register
8729 numbers were chosen.
8730
1a113c93
MS
87312002-04-30 Michael Snyder <msnyder@redhat.com>
8732
8733 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8734
9a6f53fe
EZ
87352002-04-29 Elena Zannoni <ezannoni@redhat.com>
8736
8737 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8738 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8739 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8740
11ed25ac
KB
87412002-04-29 Kevin Buettner <kevinb@redhat.com>
8742
8743 From Louis Hamilton <hamilton@redhat.com>:
8744 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8745 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8746 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8747 not bfd-private xcoff data, to determine wordsize.
8748 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8749
ae232405
AC
87502002-04-29 Andrew Cagney <ac131313@redhat.com>
8751
8752 GDB 5.2 released from 5.2 branch.
8753
91fd20f7
ML
87542002-04-29 Michal Ludvig <mludvig@suse.cz>
8755
8756 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8757 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8758 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8759
2dc5091b
EZ
87602002-04-29 Elena Zannoni <ezannoni@redhat.com>
8761
8762 * rs6000-tdep.c (rs6000_extract_return_value,
8763 rs6000_store_return_value): Handle returning vectors.
8764 (rs6000_gdbarch_init): Use
8765 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8766 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8767 New function.
8768 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8769 vectors.
8770 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8771 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8772
2b9848d8
PM
87732002-04-24 Pierre Muller <ics.u-strasbg.fr>
8774
8775 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8776 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8777 with fprintf_unfiltered (gdb_stderr,...).
8778
f8d17dc5
PM
87792002-04-24 Pierre Muller <ics.u-strasbg.fr>
8780
8781 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8782 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
8783 Replace fprintf (stderr,...
8784 with fprintf_unfiltered (gdb_stderr,....
8785 * remote-es.c: Likewise.
8786 * remote-os9k.c: Likewise.
8787 * remote-st.c: Likewise.
8788
2f2f1ad1
AS
87892002-04-28 Andreas Schwab <schwab@suse.de>
8790
8791 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8792 linux-proc.o and gcore.o.
8793
b6779aa2
AC
87942002-04-26 Michal Ludvig <mludvig@suse.cz>
8795
8796 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8797 code without frame pointers.
8798
7e57f5f4
AC
87992002-04-26 Andrew Cagney <ac131313@redhat.com>
8800
8801 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8802 ON_STACK is needed.
8803
2ceb85d0
BE
88042002-04-26 Ben Elliston <bje@redhat.com>
8805
8806 * target.c (do_xfer_memory): Correct reference to the new option
8807 "trust-readonly-sections".
8808
f5f8a009
EZ
88092002-04-26 Elena Zannoni <ezannoni@redhat.com>
8810
8811 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8812 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8813 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8814 vectors.
8815 (read_array_type): Record the fact that this array type is really a
8816 vector (i.e. are passed in by value).
8817
5868c862
JT
88182002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8819
8820 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8821 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8822 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8823 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8824 * alpha-linux-tdep.c: Include frame.h.
8825 (alpha_linux_sigcontext_addr): New function.
8826 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8827 alpha_linux_sigcontext_addr.
8828 * alpha-osf1-tdep.c: Include gdbcore.h.
8829 (alpha_osf1_sigcontext_addr): New function.
8830 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8831 alpha_osf1_sigcontext_addr.
8832 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8833 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8834
bfb01f37
AC
88352002-04-26 Andrew Cagney <ac131313@redhat.com>
8836
361d1df0 8837 * stack.c (selected_frame_level):
bfb01f37
AC
8838 (select_frame): Do not set selected_frame_level.
8839 * frame.h (selected_frame_level): Delete declaration.
8840
15813d3f
AC
88412002-04-26 Andrew Cagney <ac131313@redhat.com>
8842
8843 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8844 convert_from_func_ptr-addr when AIX / PowerOpen.
8845
6096c27a
AC
88462002-04-25 Andrew Cagney <ac131313@redhat.com>
8847
8848 * valops.c (hand_function_call): Call
8849 generic_save_call_dummy_addr.
8850 * frame.h (generic_save_call_dummy_addr): Declare.
8851 * blockframe.c (struct dummy_frame): Add fields call_lo and
8852 call_hi.
8853 (generic_find_dummy_frame): Check for PC in range call_lo to
8854 call_hi instead of entry_point_address.
8855 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8856 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8857 (generic_save_call_dummy_addr): New function.
8858
f510d44e
DM
88592002-04-24 David S. Miller <davem@redhat.com>
8860
8861 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8862 sparc_skip_prologue.
8863 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8864 information to find prologue when possible.
8865 (sparc_prologue_frameless_p): Call examine_prologue directly.
8866 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8867 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8868 second argument.
8869 (SKIP_PROLOGUE): Likewise.
8870
15d72a92
JT
88712002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8872
8873 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8874 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8875 indicate that the condition it was testing is always true.
8876 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8877 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8878 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8879
accc6d1f
JT
88802002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8881
8882 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8883 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8884 tdep->jb_pc and tdep->jb_elt_size.
8885 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8886 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8887 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8888 * alpha-nat.c (get_longjmp_target): Remove.
8889 (JB_ELEMENT_SIZE): Ditto.
8890 (JB_PC): Ditto.
8891 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8892 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8893 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8894 to alpha_get_longjmp_target.
8895 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8896 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8897 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8898
1bfdc549
AC
88992002-04-25 Andrew Cagney <ac131313@redhat.com>
8900
8901 * README: Update to GDB 5.2.
8902
1bd316f0
AC
89032002-04-25 Andrew Cagney <ac131313@redhat.com>
8904
8905 * gdbarch.sh (LC_ALL): Set to `c'.
8906
2e5ff58c
TR
89072002-04-25 Theodore A. Roth <troth@verinet.com>
8908
8909 * avr-tdep.c: Ran through gdb_indent.sh.
8910
e33ce519
TR
89112002-04-25 Theodore A. Roth <troth@verinet.com>
8912
8913 * MAINTAINERS: Add myself as AVR maintainer.
8914 * NEWS: Note new target avr.
8915
8818c391
TR
89162002-04-25 Theodore A. Roth <troth@verinet.com>
8917
8918 * Makefile.in: Add support for AVR target.
8919 * configure.tgt: Add support for AVR target.
8920 * avr-tdep.c: New file
8921 * config/avr/avr.mt: New file.
8922
79509c2d
TR
89232002-04-25 Theodore A. Roth <troth@verinet.com>
8924
8925 * MAINTAINERS: Add myself to write-after-approval.
8926
dac8068e
PM
89272002-04-24 Pierre Muller <ics.u-strasbg.fr>
8928
8929 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8930 with fprintf_unfiltered (gdb_stderr,....
8931
25bf3106
PM
89322002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8933
8934 Fix PR gdb/508.
8935 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8936
24467a86
PM
89372002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8938
8939 * p-exp.y: Also use new prev_lexptr variable
8940 to improve error reporting. Based on Michael Snyder
8941 2002-04-24 dated patch to c-exp.y.
8942
95b80706
JT
89432002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8944
8945 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8946 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8947 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8948 to 0.
8949 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8950 and struct value.
8951 (FUNCTION_START_OFFSET): Remove.
8952 (BREAKPOINT): Ditto.
8953
e90cc612
JT
89542002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8955
8956 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8957 * NEWS: Ditto.
8958
6c72f9f9
JT
89592002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8960
8961 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8962 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8963 alpha_linux_pc_in_sigtramp.
8964 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8965 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8966 alpha_osf1_pc_in_sigtramp.
8967 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8968 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8969 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8970 alphafbsd_pc_in_sigtramp.
8971 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8972 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8973 alphanbsd_pc_in_sigtramp.
8974 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8975 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8976
5e4f3379
JT
89772002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8978
8979 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8980
da8ca43d
JT
89812002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8982
8983 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8984 alphanbsd-tdep.c.
8985 (alphanbsd-nat.o): New dependency list.
8986 (alphanbsd-tdep.o): Ditto.
8987 * NEWS: Note new native NetBSD/alpha configuration.
8988 * alphanbsd-nat.c: New file.
8989 * alphanbsd-tdep.c: Ditto.
8990 * configure.host (alpha*-*-netbsd*): New host.
8991 * configure.tgt (alpha*-*-netbsd*): New target.
8992 * config/alpha/nbsd.mh: New file.
8993 * config/alpha/nbsd.mt: Ditto.
8994 * config/alpha/nm-nbsd.h: Ditto.
8995 * config/alpha/tm-nbsd.h: Ditto.
8996
36a6271d
JT
89972002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8998
8999 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9000 (alpha-osf1-tdep.o): New dependency list.
9001 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9002 and skip_sigtramp_frame members.
9003 * alpha-linux-tdep.c: Include gdbcore.h.
9004 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9005 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9006 * alpha-osf1-tdep.c: New file.
9007 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9008 alpha-osf1-dep.c.
9009 (alpha_frame_past_sigtramp_frame): New function.
9010 (alpha_dynamic_sigtramp_offset): Ditto.
9011 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9012 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9013 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9014 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9015 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9016 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9017 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9018 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9019 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9020 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9021 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9022 to find_solib_trampoline_target.
9023 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9024 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9025 (SKIP_TRAMPOLINE_CODE): Remove.
9026 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9027 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9028 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9029 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9030 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9031 (PROC_SIGTRAMP_MAGIC): Ditto.
9032 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9033 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9034 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9035 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9036 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9037
2f4bc57b
JT
90382002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9039
9040 * NEWS: Note that Alpha targets are now multi-arch.
9041
665132f9
MS
90422002-04-24 Michael Snyder <msnyder@redhat.com>
9043
9044 * parser-defs.h (prev_lexptr): New external variable.
9045 * parse.c (parse_exp_1): Set prev_lexptr to null before
9046 calling the language-specific parser.
9047 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9048 (yyerror): Use prev_lexptr in error reporting.
9049
32872fa7
DJ
90502002-04-24 Daniel Jacobowitz <drow@mvista.com>
9051
9052 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9053 * gregset.h: If FILL_FPXREGSET is defined, provide
9054 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9055 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9056 is defined, call fill_fpxregset.
9057
57e76fac
MS
90582002-04-24 Roland McGrath <roland@frob.com>
9059
9060 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9061 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9062 (supply_gregset, supply_fpregset): New functions.
9063
9064 * gnu-nat.c (gnu_find_memory_regions): New function.
9065 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9066 (gnu_xfer_memory): Add a cast.
9067
f43845b3
MS
90682002-04-24 Michael Snyder <msnyder@redhat.com>
9069
361d1df0 9070 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9071 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9072 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9073 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9074 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9075 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9076
a0abec03
AC
9077Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9078
9079 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9080 NUM_PSEUDO_REGS can be used.
9081
d7bd68ca
AC
90822002-04-24 Andrew Cagney <ac131313@redhat.com>
9083
9084 * arch-utils.h: Update copyright.
9085
9086 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9087 * gdbarch.h, gdbarch.c: Re-generate.
9088
9089 * inferior.h (IN_SIGTRAMP): Delete definition.
9090 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9091 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9092
9093 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9094 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9095 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9096 (find_proc_framesize): Ditto.
9097 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9098 (alpha_init_extra_frame_info): Ditto.
9099 * infrun.c (handle_inferior_event): Ditto.
9100 (handle_inferior_event): Ditto.
9101 (check_sigtramp2): Ditto.
9102 * blockframe.c (create_new_frame): Ditto.
9103 (get_prev_frame): Ditto.
9104 * ppc-linux-tdep.c: Update comments.
9105 * i386-linux-tdep.c: Update comments.
9106 * breakpoint.c (bpstat_what): Update comment.
9107
4867e41e
DM
91082002-04-24 David S. Miller <davem@redhat.com>
9109
21d83aa5
DM
9110 * i960-tdep.c (register_in_window_p): New function.
9111 (i960_find_saved_register): Use it instead of
9112 REGISTER_IN_WINDOW_P.
9113 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9114
4867e41e
DM
9115 * symtab.h (find_stab_function_addr): Kill extern.
9116 * minsyms.c (find_stab_function_addr): Remove from here...
9117 * dbxread.c: ... to here, and mark it static.
9118
69cdf6a2
DM
91192002-04-20 David S. Miller <davem@redhat.com>
9120
9121 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9122 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9123
5a595886
DM
91242002-04-21 David S. Miller <davem@redhat.com>
9125
9126 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9127 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9128 (vx_write_register): Likewise.
9129
1da1a192
JB
91302002-04-23 J. Brobecker <brobecker@gnat.com>
9131
9132 * source.c (is_regular_file): New function.
9133 (openp): Check wether file to open is a regular file
9134 to avoid opening directories.
9135
baa6f10b
JT
91362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9137
9138 * findvar.c (extract_signed_integer): Cast printf argument
9139 to suppress format warning.
9140 (extract_unsigned_integer): Likewise.
9141 * infcmd.c (registers_info): Likewise.
9142 * top.c (get_prompt_1): Likewise.
9143 * valops.c (value_assign): Likewise.
9144 * valprint.c (print_decimal): Likewise.
9145
b2c4da81
L
91462002-04-22 H.J. Lu (hjl@gnu.org)
9147
9148 * c-exp.y (typebase): Support
361d1df0 9149
b2c4da81
L
9150 [long|long long|short] [signed|unsigned] [int|]
9151
9152 and
9153
9154 signed [long|long long|short] int
9155
f267bd6a
JT
91562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9157
9158 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9159 and vax-tdep.h.
9160 * vax-tdep.h: New file.
9161 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9162 Make several routines static.
9163 (vax_get_saved_register): New function.
9164 (vax_gdbarch_init): New function.
9165 (_initialize_vax_tdep): Register vax_gdbarch_init.
9166 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9167 Remove macros now under the control of gdbarch.
9168
da3c6d4a
MS
91692002-04-22 Michael Snyder <msnyder@redhat.com>
9170
11d3b27d
MS
9171 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9172 Some whitespace and coding standards tweaks.
da3c6d4a 9173
a33f7558
JT
91742002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9175
9176 * vax-tdep.c: Include regcache.h.
9177 (vax_call_dummy_words): New.
9178 (sizeof_vax_call_dummy_words): New.
9179 (vax_fix_call_dummy): New function.
9180 (vax_saved_pc_after_call): Ditto.
9181 * config/vax/tm-vax.h: Don't include regcache.h.
9182 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9183 (CALL_DUMMY): Remove.
9184 (CALL_DUMMY_WORDS): Define.
9185 (SIZEOF_CALL_DUMMY_WORDS): Define.
9186 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9187
47a73475
MS
91882002-04-18 Michael Snyder <msnyder@redhat.com>
9189
9190 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9191
52efde73
JT
91922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9193
9194 * vax-tdep.c (vax_frame_chain): New function.
9195 (vax_push_dummy_frame): Ditto.
9196 (vax_pop_frame): Ditto.
9197 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9198 (FRAMELESS_FUNCTION_INVOCATION): Use
9199 generic_frameless_function_invocation_not.
9200 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9201 (POP_FRAME): Use vax_pop_frame.
9202
ea74468c
JT
92032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9204
9205 * vax-tdep.c (vax_store_struct_return): New function.
9206 (vax_extract_return_value): Ditto.
9207 (vax_store_return_value): Ditto.
9208 (vax_extract_struct_value_address): Ditto.
9209 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9210 vax_store_struct_return.
9211 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9212 (STORE_RETURN_VALUE): Use vax_store_return_value.
9213 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9214
5516aa92
JT
92152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9216
9217 * vax-tdep.c (vax_frame_saved_pc): New function.
9218 (vax_frame_args_address_correct): Ditto.
9219 (vax_frame_args_address): Ditto.
9220 (vax_frame_locals_address): Ditto.
9221 (vax_frame_num_args): Move code to be in proximity to
9222 other frame-related functions.
9223 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9224 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9225 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9226 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9227 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9228
36af0b35
L
92292002-04-22 H.J. Lu (hjl@gnu.org)
9230
9231 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9232 includedir.
9233
ab62c900
JT
92342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9235
9236 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9237 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9238 (FRAME_INIT_SAVED_REGS): New macro.
9239
7232b100
JT
92402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9241
9242 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9243
b70d2aee
JT
92442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9245
9246 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9247 where needed.
9248 (fetch_osf_core_registers): Likewise.
9249 (supply_gregset): Likewise.
9250
a0e8a2d1 92512002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9252
a0e8a2d1
JB
9253 * symfile.h (get_section_index): Define.
9254 * symfile.c (get_section_index): New function.
9255 * mdebugread.c (SC_IS_SBSS): New macro.
9256 (SC_IS_BSS): Return true for the scBss storage class only, as
9257 the scSBss storage class refers to the .sbss section.
9258 (parse_partial_symbols): Discard the symbols which associated
9259 section does not exist.
9260 Make sure to use the .sbss section index for symbols which
9261 storage class is scBss, rather than using the .bss section index.
9262
51eb8b08
JT
92632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9264
9265 * vax-tdep.c: Update copyright years.
9266 (vax_register_name): New function.
9267 (vax_register_byte): Ditto.
9268 (vax_register_raw_size): Ditto.
9269 (vax_register_virtual_size): Ditto.
9270 (vax_register_virtual_type): Ditto.
9271 * config/vax/tm-vax.h: Update copyright years.
9272 (REGISTER_NAMES): Remove.
9273 (REGISTER_NAME): Define.
9274 (REGISTER_BYTE): Use vax_register_byte.
9275 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9276 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9277 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9278
6cc1c0a8
AC
92792002-04-21 Andrew Cagney <ac131313@redhat.com>
9280
9281 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9282 declaration
9283 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9284
9319a2fe
DM
92852002-04-21 David S. Miller <davem@redhat.com>
9286
9287 * arch-utils.c (generic_prologue_frameless_p): Kill
9288 SKIP_PROLOGUE_FRAMELESS_P code.
9289 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9290 references.
9291 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9292 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9293 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9294 references.
9295 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9296 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9297 (sparc_gdbarch_init): Pass it to
9298 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9299
e9ed6d01
JT
93002002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9301
9302 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9303 (alphabsd-nat.o): New dependency list.
9304
36012033
JT
93052002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9306
9307 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9308 alphafbsd-tdep.c.
9309 (alpha-linux-tdep.o): New dependency list.
9310 (alphafbsd-tdep.o): Likewise.
9311
3379287a
JT
93122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9313
9314 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9315 to here...
9316 * alpha-tdep.c: ...from here.
9317 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9318
4bcbd6cb
JT
93192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9320
9321 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9322 prototype from here...
9323 * alpha-tdep.h: ...to here.
9324
b31da25e
AC
93252002-04-21 Andrew Cagney <ac131313@redhat.com>
9326
9327 * frame.h (selected_frame_level): Document as deprecated.
9328 (frame_relative_level): Declare.
9329 * stack.c (frame_relative_level): New function.
9330 (selected_frame_level): Document as deprecated.
9331 (select_frame): Do not set the selected_frame_level.
9332
9333 * stack.c (frame_info, record_selected_frame): Update.
9334 (frame_command, current_frame_command): Update.
9335 (up_silently_base, up_command, down_silently_base): Update.
9336 (down_command): Update.
9337 * inflow.c (kill_command): Update.
9338 * tracepoint.c (finish_tfind_command): Update.
9339 * corelow.c (core_open): Update.
9340 * thread.c (info_threads_command): Update.
9341 (do_captured_thread_select): Update.
9342 * infcmd.c (finish_command): Update.
9343 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9344
9c1d6fe5
JT
93452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9346
9347 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9348
ab89facf
AC
93492002-04-21 Andrew Cagney <ac131313@redhat.com>
9350
9351 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9352 type const.
9353
82a4efa1
JT
93542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9355
9356 * alphafbsd-tdep.c: Update copyright years. Include
9357 alpha-tdep.h.
9358 (alphafbsd_use_struct_convention): Make static.
9359 (alphafbsd_init_abi): New function.
9360 (_initialize_alphafbsd_tdep): New function.
9361 * config/alpha/tm-fbsd.h: Update copyright years.
9362 (USE_STRUCT_CONVENTION): Remove.
9363
44dffaac
JT
93642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9365
9366 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9367 an Alpha ABI variant.
9368 (alpha_abi_handler_list): Declare.
9369 (alpha_gdbarch_register_os_abi): New function.
9370 (alpha_gdbarch_init): Give registered ABI variant handlers a
9371 chance to tweak the gdbarch once we have set up defaults.
9372 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9373
65585be4
JT
93742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9375
9376 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9377 to standard_coerce_float_to_double.
9378 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9379
d9b023cc
JT
93802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9381
9382 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9383 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9384 from gdbarch_tdep rather than a constant.
9385 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9386 the default text address for all Alpha Unix ABIs.
9387 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9388 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9389
dc129d82
JT
93902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9391
9392 * alpha-tdep.h: New file. Includes several Alpha target constants
9393 taken from...
9394 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9395 let gdbarch deal with.
9396 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9397 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9398 to dependency list.
9399 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9400 Alpha target register names.
9401 * alphabsd-nat.c: Likewise.
9402 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9403 Alpha target register names. Make serveral routines static.
9404 (alpha_get_saved_register): New function.
9405 (alpha_abi_names): New.
9406 (process_note_abi_tag_sections): New function.
9407 (get_elfosabi): New function.
9408 (alpha_gdbarch_init): New function.
9409 (alpha_dump_tdep): New function.
9410 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9411
d49d1e0a
AC
94122002-04-21 Andrew Cagney <ac131313@redhat.com>
9413
9414 * frame.c (find_saved_register): Delete #ifdef
9415 HAVE_REGISTER_WINDOWS code.
9416 * config/sparc/tm-sparc.h: Update comments.
9417 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9418
92e8c9ed
AC
94192002-04-21 Andrew Cagney <ac131313@redhat.com>
9420
9421 * i960-tdep.c (i960_find_saved_register): New function.
9422 (i960_get_saved_register): New function.
9423 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9424 (i960_get_saved_register): Declare.
9425 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9426
e1925118
DM
94272002-04-20 David S. Miller <davem@redhat.com>
9428
9429 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9430
29673b29
AC
94312002-04-20 Andrew Cagney <ac131313@redhat.com>
9432
9433 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9434 instead of NUM_PSEUDO_REGS.
9435
6c86dcd5
DM
94362002-04-20 David S. Miller <davem@redhat.com>
9437
9438 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9439 GDB_MULTI_ARCH_PARTIAL
9440 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9441 define, let tm-sp64.h do it.
9442
aa40ec90
JT
94432002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9444
9445 * frame.c (find_saved_register): Avoid a NULL pointer
9446 dereference and actually walk the frame list.
9447
0f79675b
AC
94482002-04-20 Andrew Cagney <ac131313@redhat.com>
9449
9450 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9451 sorted in most most-recent-used order. Document.
9452 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9453
f91305dd 94542002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9455
9456 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9457 instead of ->prev.
9458 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9459 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9460 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9461 instead of ->prev.
9462
73d322b1
EZ
94632002-04-19 Elena Zannoni <ezannoni@redhat.com>
9464
9465 Fix PR gdb/471.
9466 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9467 (build_builtin_type_vec128): Ditto.
9468 (append_composite_type_field): Fix calculation of type length in
9469 union case.
9470
ccd9a834
EZ
94712002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9472
9473 * config/djgpp/README: Update.
9474
9475 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9476 compiler warnings.
9477
a57f9e49
JT
94782002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9479
9480 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9481 (alpha_setup_arbitrary_frame): ...to this.
9482 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9483 for alpha_setup_arbitrary_frame.
9484
f4f9705a
AC
94852002-04-18 Andrew Cagney <cagney@redhat.com>
9486
9487 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9488 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9489
f4f9705a
AC
9490 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9491 * target.h (memory_breakpoint_from_pc): Update declaration.
9492 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9493
9494 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9495 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9496 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9497 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9498 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9499 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9500 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9501 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9502 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9503 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9504 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9505 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9506
9507 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9508 const pointer.
9509 * monitor.c (monitor_insert_breakpoint): Ditto.
9510 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9511
9512 * config/mcore/tm-mcore.h: Update copyright.
9513 * mem-break.c: Ditto.
9514 * xstormy16-tdep.c: Ditto.
9515
29f319b8
PM
95162002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9517
9518 * p-exp.y: Add precedence rule for '^' token.
9519 This removes the shift/reduce conflicts.
9520 Remove the comment concerning these shift/reduce conflicts.
9521
ebeac11a
EZ
95222002-04-18 Elena Zannoni <ezannoni@redhat.com>
9523
9524 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9525 (registers_powerpc_nofp): New register set for processors
9526 without floating point unit.
9527
27c31547
DM
95282002-04-18 David S. Miller <davem@redhat.com>
9529
9530 * MAINTAINERS: Add myself to write-after-approval.
9531
47a73475
MS
95322002-04-17 Michael Snyder <msnyder@redhat.com>
9533
9534 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9535
953836b2
AC
95362002-04-17 Andrew Cagney <ac131313@redhat.com>
9537
9538 * rs6000-tdep.c (frame_initial_stack_address): Use
9539 frame_register_read to read the alloca_reg.
9540
8b0d4340
AC
95412002-04-17 Andrew Cagney <ac131313@redhat.com>
9542
9543 * frame.c (find_saved_register): Find saved registers in the next
9544 not prev frame.
9545 Fix PR gdb/365.
9546
d8864532
AC
95472002-04-17 Andrew Cagney <ac131313@redhat.com>
9548
9549 * gdbarch.sh (LANG): Set to ``c''.
9550
36cc83a3 95512002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9552
36cc83a3 9553 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9554
2f4150cc 95552002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9556
9557 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9558 Update copyright.
9559
628703c6 9560 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9561 Also fix PR gdb/391.
361d1df0 9562
56157b4a
AC
95632002-04-14 Andrew Cagney <ac131313@redhat.com>
9564
9565 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9566 * aclocal.m4, configure: Re-generate.
9567 Fix PR gdb/391.
361d1df0 9568
6d1e3329
EZ
95692002-04-14 Elena Zannoni <ezannoni@redhat.com>
9570
9571 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9572 instead of tm_print_insn.
9573
cb06fa07
EZ
95742002-04-14 Elena Zannoni <ezannoni@redhat.com>
9575
9576 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9577
f208ba17
AC
95782002-04-14 Andrew Cagney <ac131313@redhat.com>
9579
9580 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9581 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9582 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9583
20f01a46
DH
95842002-04-12 Don Howard <dhoward@redhat.com>
9585
9586 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9587 max_user_call_depth.
9588 (init_cmd_lists): Initialize the new value;
9589 * cli/cli-script.c (execute_user_command): Limit the call depth of
9590 user defined commands. This avoids a core-dump when user commands
9591 are infinitly recursive.
9592
a88376a3
KB
95932002-04-12 Kevin Buettner <kevinb@redhat.com>
9594
9595 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9596 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9597 from tdep struct instead of DEFAULT_LR_SAVE.
9598 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9599 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9600 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9601
f2172603
MS
96022002-04-12 Michael Snyder <msnyder@redhat.com>
9603
694f61fb 9604 * Remote.c: Spelling fix.
20fe79c8
MS
9605 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9606 If no symbol found for "sbrk", try "_sbrk".
9607 (make_output_phdrs): Use bfd_section_name.
9608 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9609 * eval.c: Indentation fix-ups.
169a7369
MS
9610 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9611 in case it gets applied to an address that is already
9612 in the instruction space.
de74f71f
MS
9613 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9614 * symfile.c: Fix indentation, long lines.
f2172603
MS
9615 * source.c: White space fix-up.
9616
cda5a58a
AC
96172002-04-12 Andrew Cagney <cagney@redhat.com>
9618
9619 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9620 * frame.c (frame_register_read): New function. Return non-zero on
9621 success.
9622 (read_relative_register_raw_bytes_for_frame): Delete.
9623 (read_relative_register_raw_bytes): Delete.
9624 * frame.h (frame_register_read): Declare.
9625 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9626 * sh-tdep.c: Ditto.
9627 * infcmd.c (do_registers_info): Ditto.
9628 * hppa-tdep.c: Ditto.
9629 * rs6000-tdep.c: Ditto.
9630 * h8500-tdep.c: Ditto.
9631 * mips-tdep.c: Ditto.
9632 * h8300-tdep.c: Ditto.
9633 * z8k-tdep.c: Ditto.
9634
2ea5f656
KB
96352002-04-12 Kevin Buettner <kevinb@redhat.com>
9636
9637 From Jimi X <jimix@watson.ibm.com>:
9638 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9639 64-bit SysV ABI.
9640
27b15785
KB
96412002-04-12 Kevin Buettner <kevinb@redhat.com>
9642
9643 From Jimi X <jimix@watson.ibm.com>:
9644 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9645 bfd info.
9646
5d57ee30
KB
96472002-04-12 Kevin Buettner <kevinb@redhat.com>
9648
9649 From Jimi X <jimix@watson.ibm.com>:
9650 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9651 register sets for these processor variants.
9652
bc1e36ca
DJ
96532002-04-11 Daniel Jacobowitz <drow@mvista.com>
9654
bc1e36ca
DJ
9655 * regformats/reg-ppc.dat: Support FPSCR.
9656
e3f36dbd
KB
96572002-04-11 Kevin Buettner <kevinb@redhat.com>
9658
9659 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9660 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9661 Add fpscr as an invalid/unfetchable register.
9662 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9663 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9664 (fill_fpregset): Add support for register fpscr.
9665 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9666 (fill_gregset): Account for the fact that register ``mq'' might
9667 not exist.
9668 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9669 (registers_power): Add fpscr to register set at slot 71.
9670 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9671 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9672
943c9c25
MS
96732002-04-11 Michael Snyder <msnyder@redhat.com>
9674
9675 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9676 * configure: Regenerate.
9677 * config.in: Regenerate.
9678 * acconfig.h: Add define for _SYSCALL32.
9679 * core-sol2.c: Remove #define _SYSCALL32.
9680 * solib-legacy.c: Remove #define _SYSCALL32.
9681
d8c0a2e7
AC
96822002-04-10 Andrew Cagney <ac131313@redhat.com>
9683
9684 * stack.c (select_frame): Cleanup internal error message, do not
9685 use %p.
9686
7cc19214
AC
96872002-04-10 Andrew Cagney <ac131313@redhat.com>
9688
9689 * stack.c (select_frame): Check that selected_frame and the
9690 specified level are as expected.
9691 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9692 Update copyright.
9693 * frame.h (struct frame_info): Add field `level'. Update
9694 copyright.
9695 Work-in-progress PR gdb/464.
9696
67a2b77e
AC
96972002-04-10 Andrew Cagney <ac131313@redhat.com>
9698
9699 * maint.c (maint_print_section_info): Rename print_section_info.
9700 (print_bfd_section_info, print_objfile_section_info): Update.
9701 * inferior.h (struct gdbarch): Add opaque declaration.
9702 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9703 * gdbarch.h: Regenerate.
9704
8cfda98c
ML
97052002-04-10 Michal Ludvig <mludvig@suse.cz>
9706
9707 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9708 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9709 (kernel_u_size): Added.
9710 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9711 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9712
ca439ad2 97132002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9714
ca439ad2
JI
9715 * valarith.c (find_size_for_pointer_math): New function, either returns
9716 the size for a pointer's target, returns 1 for void *, or errors for
9717 incomplete types.
9718 (value_add, value_sub): use find_size_for_pointer_math.
9719
2f2893d9
DJ
97202002-04-09 Daniel Jacobowitz <drow@mvista.com>
9721
9722 * linux-low.c (linux_look_up_symbols): New hook.
9723 (linux_target_ops): Add linux_look_up_symbols.
9724 * remote-utils.c (decode_address): New function.
9725 (look_up_one_symbol): New function.
9726 * server.c (handle_query): Call target look_up_symbols hook.
9727 * server.h (look_up_one_symbol): Add prototype.
9728 * target.h (struct target_ops): Add look_up_symbols hook.
9729
96cb11df
AC
97302002-04-09 Andrew Cagney <ac131313@redhat.com>
9731
9732 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9733 override FP_REGNUM with frame->fp. Update copyright.
9734 * parse.c (num_std_regs, std_regs): Delete.
9735 (target_map_name_to_register): Do not search std_regs. Update
9736 function description.
9737 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9738 declarations. Update copyright.
9739 Fix PR gdb/251.
361d1df0 9740
97658e92
DJ
97412002-04-09 Daniel Jacobowitz <drow@mvista.com>
9742
9743 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9744 after the last symbol in a block.
9745
6044e3eb
PM
97462002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9747
9748 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9749 is non zero as a found symbol.
9750
0406ec40
AC
97512002-04-08 Andrew Cagney <ac131313@redhat.com>
9752
9753 * findvar.c: Include "builtin-regs.h".
9754 (value_of_register): Call value_of_builtin_reg when applicable.
9755 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9756 (target_map_name_to_register): Call
9757 builtin_reg_map_name_to_regnum.
9758 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9759 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9760 (builtin_regs_h): Define.
9761 (builtin-regs.o): New target.
9762 (findvar.o): Add $(builtin_regs_h).
9763 * builtin-regs.c, builtin-regs.h: New files.
9764 * std-regs.c: New file.
9765 Partial fix for PR gdb/251.
9766
56a6dfb9
KB
97672002-04-08 Kevin Buettner <kevinb@redhat.com>
9768
9769 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9770 it's no longer required.
9771
3a808432
AC
97722002-04-08 Andrew Cagney <ac131313@redhat.com>
9773
9774 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9775
7c40d541
KB
97762002-04-08 Kevin Buettner <kevinb@redhat.com>
9777
9778 From Jimi X <jimix@watson.ibm.com>:
9779 * rs6000-tdep.c (rs6000_software_single_step): Use
9780 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9781 and size. Use target_insert_breakpoint() and
9782 target_remove_breakpoint() to insert and remove breakpoints
9783 instead of explicit memory reads and writes.
9784
cc9836a8
KB
97852002-04-08 Kevin Buettner <kevinb@redhat.com>
9786
9787 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9788 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9789 ELF_OBJECT_FORMAT ifdef.
9790
7495d1dc
KB
97912002-04-08 Kevin Buettner <kevinb@redhat.com>
9792
9793 From Jimi X <jimix@watson.ibm.com>:
9794 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9795
4288e836
KB
97962002-04-08 Kevin Buettner <kevinb@redhat.com>
9797
9798 From Jimi X <jimix@watson.ibm.com>:
9799 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9800 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9801
a4e4e501
MK
98022002-04-07 Mark Kettenis <kettenis@gnu.org>
9803
9804 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9805 s/asprintf/xasprintf/.
9806 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9807
006defba
AC
98082002-04-07 Andrew Cagney <ac131313@redhat.com>
9809
9810 I believe Jeff Law denies responsability for this one:
9811 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9812 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9813 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9814 Work-around for PR gdb/366.
9815
7aa83cac
EZ
98162002-04-07 Elena Zannoni <ezannoni@redhat.com>
9817
9818 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9819 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9820 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9821
cf1fcca1
EZ
98222002-04-07 Elena Zannoni <ezannoni@redhat.com>
9823
9824 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9825 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9826 information.
9827
3f289e6f
AC
98282002-04-07 Andrew Cagney <ac131313@redhat.com>
9829
9830 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9831 maintainer.
9832
129188f6
AC
98332002-04-07 Andrew Cagney <ac131313@redhat.com>
9834
9835 * README (Reporting Bugs in GDB): Document the bug web page as the
9836 prefered way of submitting bugs.
9837 Fix PR gdb/402.
9838
1200cd6e
AC
98392002-04-06 Andrew Cagney <ac131313@redhat.com>
9840
9841 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9842 -1. Update comment.
9843 * gdbarch.h, gdbarch.c: Re-generate.
9844
2853c33c
AS
98452002-04-07 Andreas Schwab <schwab@suse.de>
9846
9847 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9848 buffer to regcache_collect.
9849
c2169756
AC
98502002-04-06 Andrew Cagney <ac131313@redhat.com>
9851
9852 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9853 * gdbarch.c, gdbarch.h: Re-generate.
9854
25f1b008
AC
98552002-04-06 Andrew Cagney <ac131313@redhat.com>
9856
9857 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9858 declaration. Fix -Werror.
9859
59263426
DJ
98602002-04-05 Daniel Jacobowitz <drow@mvista.com>
9861
9862 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9863 * gdbarch.c: Regenerate.
9864
f5db4da3
MS
98652002-04-05 Michael Snyder <msnyder@redhat.com>
9866
80f8a6eb
MS
9867 * breakpoint.c (clear_command): Rewrite middle section to
9868 combine two loops with identical control conditions.
9869 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
9870 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9871
ad3dcc5c
L
98722002-04-05 H.J. Lu (hjl@gnu.org)
9873
9874 * solib-svr4.c (bkpt_names): Add "__start".
9875
f32e7a74
AC
98762002-04-04 Andrew Cagney <ac131313@redhat.com>
9877
9878 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9879 as test for 64 bit target.
9880
8227c0ff
AC
98812002-04-05 Andrew Cagney <ac131313@redhat.com>
9882
9883 * h8500-tdep.c (h8500_write_fp): Delete function.
9884 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9885 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9886 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9888 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9889 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9890 (s390_write_fp):
9891 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9892 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9893 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9894 (d10v_write_fp): Delete function.
9895 * inferior.h (write_fp, generic_target_write_fp): Delete
9896 declarations.
9897 * regcache.c (generic_target_write_fp): Delete function.
9898 (write_fp): Delete function.
9899 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9900 * gdbarch.h, gdbarch.c: Regenerate.
9901 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9902 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9903 (sparc64_write_fp): Delete declaration.
9904 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9905 (h8500_write_fp): Delete declaration.
9906
2757dd86
AC
99072002-04-04 Andrew Cagney <ac131313@redhat.com>
9908
9909 * sparc-tdep.c (sparc64_write_fp): Delete.
9910 (sparc_push_dummy_frame): Replace write_fp call with code to store
9911 the FP directly.
9912 (sparc_gdbarch_init): Do not initialize write_fp.
9913
c69255e1
KB
99142002-04-05 Kevin Buettner <kevinb@redhat.com>
9915
9916 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9917 clause.
9918
ae767bfb
JB
99192002-03-29 Jim Blandy <jimb@redhat.com>
9920
9921 * stack.c (get_selected_block): Add new argument `addr_in_block',
9922 used to return the exact code address we used to select the block,
9923 not just the block.
9924 * blockframe.c (get_frame_block, get_current_block): Same.
9925 * frame.h (get_frame_block, get_current_block,
9926 get_selected_block): Update declarations.
9927 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9928 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9929
84d2ac95
MS
99302002-04-05 Michael Snyder <msnyder@redhat.com>
9931
9932 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9933 warning message.
9934
596aa3bf
JB
99352002-04-05 J. Brobecker <brobecker@gnat.com>
9936
9937 * utils.c (xfullpath): New function.
9938 * defs.h (xfullpath): Add declaration.
9939 * source.c (openp): Use xfullpath in place of gdb_realpath to
9940 avoid resolving the basename part of filenames when the
9941 associated file is a symbolic link. This fixes a potential
9942 inconsistency between the filenames known to GDB and the
9943 filenames it prints in the annotations.
9944 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9945 to be able to match a filename with either the real filename, or
9946 the name of any symbolic link to this file.
9947 (lookup_partial_symtab): Ditto.
9948
c02f5703
MS
99492002-04-04 Michael Snyder <msnyder@redhat.com>
9950
9951 * breakpoint.c: Add support for hardware breakpoints in overlays.
9952 (overlay_events_enabled): New state variable.
9953 (insert_breakpoints): Use overlay_events_enabled to decide
9954 whether to attempt to set a breakpoint at the overlay load addr.
9955 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9956 (remove_breakpoint): Use overlay_events_enabled to decide
9957 whether breakpoints need to be removed from overlay load addr.
9958 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9959 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 9960 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
9961 disable_overlay_breakpoints): Update overlay_events_enabled.
9962
5fb290d7
DJ
99632002-04-04 Daniel Jacobowitz <drow@mvista.com>
9964
9965 * dwarf2read.c (struct function_range): New.
9966 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9967 (check_cu_functions): New.
9968 (read_file_scope): Initialize global function lists.
9969 Call dwarf_decode_line after processing children.
9970 (read_func_scope): Add to global function list.
9971 (dwarf_decode_lines): Call check_cu_functions everywhere
9972 record_line is called. Call record_line with a linenumber
9973 of 0 to mark sequence ends.
9974
7b3fabf0
ML
99752002-04-04 Michal Ludvig <mludvig@suse.cz>
9976
361d1df0 9977 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
9978 change sync with glibc.
9979
bce58c09
JB
99802002-04-03 Jim Blandy <jimb@redhat.com>
9981
9982 * configure.in: Call AC_C_INLINE.
9983 * configure: Regenerated.
361d1df0 9984
2fccf04a
DJ
99852002-04-01 Daniel Jacobowitz <drow@mvista.com>
9986
9987 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9988 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9989
2d1bfe2e
MK
99902002-03-31 Mark Kettenis <kettenis@gnu.org>
9991
a5941fbf
MK
9992 * NEWS: Mention gcore support on FreeBSD/i386.
9993
a90cd31d
MK
9994 * fbsd-proc.c: New file.
9995 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9996 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9997
2d1bfe2e
MK
9998 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9999 while statement.
10000
9eb6e5a1
JB
100012002-03-29 Jim Blandy <jimb@redhat.com>
10002
10003 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10004 unescaped newlines in string literals, but newer ones don't. So
10005 escape them.
10006
f02df580
MS
100072002-03-26 Michael Snyder <msnyder@redhat.com>
10008 Andrew Cagney <cagney@redhat.com>
10009
361d1df0 10010 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10011 restore file to memory.
10012 * cli/cli-dump.h: New file.
10013 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10014 * NEWS: Mention new commands.
f02df580 10015
109f874e
MS
100162002-03-28 Michael Snyder <msnyder@redhat.com>
10017
10018 * symfile.c (symbol_file_add): Move test for null symbols to later.
10019
520f6ade
AC
100202002-03-27 Andrew Cagney <ac131313@redhat.com>
10021
10022 From veksler at il.ibm.com:
10023 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10024 the xstrduped original path.
10025 Fix PR gdb/417.
10026
d4654627
MS
100272002-03-27 Michael Snyder <msnyder@redhat.com>
10028
10029 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10030 * infcmd.c (_initialize_infcmd): Ditto.
10031 * language.c (_initialize_language): Ditto.
10032 * symfile.c (_initialize_symfile): Ditto.
10033 * top.c (_init_main): Ditto.
10034 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10035
6be8bc0c
EZ
100362002-03-27 Elena Zannoni <ezannoni@redhat.com>
10037
10038 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10039 vector registers handling.
10040 (skip_prologue): Handle new AltiVec instructions. Fill in new
10041 fields of frame data.
10042 (frame_get_saved_regs): Fill in information for AltiVec registers.
10043
12af6855
JB
100442002-03-27 Jim Blandy <jimb@redhat.com>
10045
10046 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10047 a function; leave this macro here to invoke that function.
10048 (symbol_init_mangled_name): Declaration for that function.
10049 * symtab.c (symbol_init_mangled_name): New function.
10050
dc672865
AC
100512002-03-27 Andrew Cagney <ac131313@redhat.com>
10052
10053 * valarith.c: Replace strerror with safe_strerror.
10054 * tracepoint.c: Ditto.
10055 * lin-lwp.c: Ditto.
10056 * go32-nat.c: Ditto.
10057 * inflow.c: Ditto.
10058 * gnu-nat.c: Ditto.
10059
d96429cd
AS
100602002-03-27 Andreas Schwab <schwab@suse.de>
10061
10062 * event-top.c (command_line_handler): Remove useless if.
10063
7e336ba1
AJ
100642002-03-27 Andreas Jaeger <aj@suse.de>
10065
10066 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10067 comment.
10068
de220d0f
ML
100692002-03-27 Michal Ludvig <mludvig@suse.cz>
10070
10071 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10072 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10073 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10074 (x86_64_linux_dr_get_status, supply_gregset),
10075 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10076 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10077 (x86_64_register_info_table): Add.
10078 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10079 (x86_64_register_raw_size, x86_64_register_virtual_type),
10080 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10081 general x86_64_register_info_table.
10082 (i386_gdbarch_init): gdbarch_register_bytes is now set
10083 dynamicaly during initialization.
10084 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10085 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10086
0e98d0a7
DJ
100872002-03-27 Daniel Jacobowitz <drow@mvista.com>
10088
10089 * gdbserver/server.c (main): Call target_signal_to_host_p
10090 and target_signal_to_host on signals received from the remote.
10091 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10092 target_signal_from_host on signals sent to the remote.
10093 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10094 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10095
3130066b
DJ
100962002-03-27 Daniel Jacobowitz <drow@mvista.com>
10097
10098 * signals/signals.c: Include "server.h" in gdbserver build.
10099 (target_signal_from_name): Don't use STREQ.
10100 (_initialize_signals): Likewise. Don't include function in
10101 gdbserver build.
10102
9aedf4f4
DJ
101032002-03-27 Daniel Jacobowitz <drow@mvista.com>
10104
10105 * signals.c: Moved to...
10106 * signals/signals.c: Here.
7e336ba1 10107 * Makefile (signals.o): Update.
9aedf4f4 10108
3fa41cdb
JL
101092002-03-26 Jeff Law (law@redhat.com)
10110
10111 * somread.c (som_symtab_read): Remove some commented out code and
10112 updated related comments. Do not set the minimal symbol table to
10113 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10114 in a dynamic executable.
10115 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10116 where we are unable to find the minimal symbol for the given
10117 PC value.
10118
ee677e8d
MS
101192002-03-25 Jeff Law (law@redhat.com)
10120
10121 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10122
e76e1718
ML
101232002-03-25 Michal Ludvig <mludvig@suse.cz>
10124
10125 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10126
18a642a1
AC
101272002-03-23 Andrew Cagney <ac131313@redhat.com>
10128
10129 * command.h: Update copyright.
10130 (struct cmd_list_element): Replace definition with opaque
10131 declaration.
10132 (enum cmd_types): Document that it will eventually be moved to
10133 cli/cli-decode.h
10134 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10135 (MALLOCED_REPLACEMENT): Delete macro.
10136 * Makefile.in (cli_decode_h): Add $(command_h).
10137 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10138 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10139 * completer.c: Include "cli/cli-decode.h".
10140 * maint.c: Include "cli/cli-decode.h".
10141 * cli/cli-decode.h: Include "command.h".
10142 (enum command_class): Delete.
10143 (enum cmd_types): Comment out.
10144 (enum cmd_auto_boolean): Delete.
10145 (enum var_types): Delete.
10146
b2875cc0
AC
101472002-03-23 Andrew Cagney <ac131313@redhat.com>
10148
10149 * cli/cli-decode.c: Include "gdb_assert.h".
10150 (add_set_or_show_cmd): New static function.
10151 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10152 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10153 all fields, such as func, from the set command.
10154
3b45974e
AC
101552002-03-23 Andrew Cagney <ac131313@redhat.com>
10156
10157 * MAINTAINERS (sh-elf): Change warning flag to -w.
10158
823ca731
AC
101592002-03-23 Andrew Cagney <cagney@redhat.com>
10160
10161 * defs.h (error): Add printf format attribute.
10162 * thread-db.c (thread_from_lwp): Fix error format string.
10163 * stack.c (parse_frame_specification): Ditto.
10164 * cli/cli-decode.c (undef_cmd_error): Ditto.
10165 * scm-lang.c (scm_lookup_name): Ditto.
10166 * tracepoint.c (trace_error): Ditto.
10167 * remote-utils.c (usage): Ditto.
10168 * remote.c (compare_sections_command): Ditto.
10169 Fix PR gdb/328.
10170
0e101458
AC
101712002-03-22 Andrew Cagney <ac131313@redhat.com>
10172
10173 * gdbtypes.c (append_composite_type_field): New function.
10174 (init_composite_type): New function.
10175 * gdbtypes.h (append_composite_type_field): Declare.
10176 (init_composite_type): Ditto.
10177
8e0662df
EZ
101782002-03-22 Elena Zannoni <ezannoni@redhat.com>
10179
10180 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10181 function.
8e0662df
EZ
10182 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10183 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10184 structure returning convention for SYSV ABI case, but not
10185 for GNU/Linux, FreeBSD, or NetBSD.
10186
3121eff0
DJ
101872002-03-22 Daniel Jacobowitz <drow@mvista.com>
10188
10189 * symtab.h (lookup_block_symbol): Add mangled_name argument
10190 to prototype.
10191
10192 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10193 with new mangled_name argument.
10194 * linespec.c (decode_line_1): Likewise.
10195 * valops (value_of_this): Likewise.
10196 * symtab.c (lookup_transparent_type): Likewise.
10197 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10198 (lookup_symbol): If we are given a mangled name, pass it down
10199 to lookup_symbol_aux.
10200 (lookup_block_symbol): If we are given a mangled name to check
10201 against, only return symbols which match it.
10202
349b409f
CF
102032002-03-22 Christopher Faylor <cgf@redhat.com>
10204
10205 * win32-nat.c (child_create_inferior): Check for proper shell to use
10206 here, in case the user changes it on the fly.
10207 (_initialize_inftarg): Remove shell path considerations.
10208
2a873819
EZ
102092002-03-21 Elena Zannoni <ezannoni@redhat.com>
10210
10211 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10212 for gdbarch_max_register_raw_size and max_register_virtual_size.
10213 Adjust copyright year.
10214
a1b9830c
DJ
102152002-03-21 Daniel Jacobowitz <drow@mvista.com>
10216
10217 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10218 in a function to cover the entire beginning of the function
10219 as well if it does not already.
10220
8b5790f2
TR
102212002-03-21 Tom Rix <trix@redhat.com>
10222
10223 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10224 (rs6000_ptrace64): Renamed from ptrace64.
10225
bdbe5747
MH
102262002-03-20 Martin M. Hunt <hunt@redhat.com>
10227
10228 * gdbserver/remote-utils.c (remote_open): Don't call
10229 getprotobyname, we're all using TCP here so just use
10230 IPPROTO_TCP.
7e336ba1 10231 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10232
102332002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10234
bdbe5747
MH
10235 * regcache.c (_initialize_regcache): No need to call
10236 build_regcache() at this time; it gets called whenever
10237 the gdbarch changes.
10238
7781cd62
DB
102392002-03-20 David O'Brien <obrien@FreeBSD.org>
10240
10241 * sparc-nat.c: Include sys/param.h where possible.
10242
f65ca430
DJ
102432002-03-20 Daniel Jacobowitz <drow@mvista.com>
10244
10245 Fix PR gdb/422.
10246 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10247 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10248 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10249 complex types.
10250 * stabsread.c (rs6000_builtin_type): Likewise.
10251 (read_sun_floating_type): Likewise.
10252
0c867556
PS
102532002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10254
10255 * stabsread.c (read_member_functions): Remove skip code for duplicate
10256 constructor/destructor methods. Use standard parsing for these
10257 methods and just do not chain them to the list of methods after
10258 parsing.
10259
12b9c64f
AO
102602002-03-19 Alexandre Oliva <aoliva@redhat.com>
10261
10262 * coffread.c: Remove redundant static declarations. Replace
10263 occurrences of `PTR' with `void *'.
10264 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10265 * top.h (quit_cover): Likewise.
10266 * defs.h (catch_errors): Likewise.
10267
349c5d5f
AC
102682002-03-18 Andrew Cagney <ac131313@redhat.com>
10269
10270 * defs.h (XMALLOC): Define.
10271 * gdb-events.sh (XMALLOC): Delete macro.
10272 * gdb-events.c, gdb-events.h: Regenerate.
10273 * gdbarch.sh (XMALLOC): Delete macro.
10274 * gdbarch.c: Regenerate.
10275 * serial.c (XMALLOC): Delete macro.
10276 * ui-file.c (XMALLOC): Ditto.
10277 * ser-unix.h (XMALLOC): Ditto.
10278 * sh-tdep.c (XMALLOC): Ditto.
10279 * ui-out.c (XMALLOC): Ditto.
10280 * utils.c (XMALLOC): Ditto.
10281 * i386-tdep.c (XMALLOC): Ditto.
10282 * gdb-events.c (XMALLOC): Ditto.
10283 * d10v-tdep.c (XMALLOC): Ditto.
10284 * cli-out.c (XMALLOC): Ditto.
10285
10286 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10287 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10288 * ui-file.c, ui-out.c: Ditto.
10289
7d0766f3
AC
102902002-03-18 Andrew Cagney <ac131313@redhat.com>
10291
10292 * command.h (struct cmd_list_element): Add field context.
10293 (set_cmd_context, get_cmd_context): Declare.
10294 * cli/cli-decode.h: Ditto.
10295 * cli/cli-decode.c (get_cmd_context): New function.
10296 (set_cmd_context): New function.
10297 (add_cmd): Initialize context.
10298 Part of fixing PR gdb/145 and PR gdb/146.
10299
5913bcb0
AC
103002002-03-17 Andrew Cagney <ac131313@redhat.com>
10301
1868c04e
AC
10302 * cli/cli-decode.c (cmd_type): New function.
10303 * command.h (cmd_type): Declare.
10304 * infrun.c (set_schedlock_func): Call function cmd_type.
10305 * kod.c (kod_set_os): Call cmd_type.
10306 * cris-tdep.c (cris_version_update): Use function cmd_type.
10307 (cris_mode_update, cris_abi_update): Ditto.
10308
5913bcb0
AC
10309 * command.h: (execute_cmd_post_hook): Declare.
10310 (execute_cmd_pre_hook): Declare.
10311 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10312 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10313 functions. Execute pre/post hook while ensuring that afterwords
10314 hook_in is cleared.
10315 * top.c (execute_command): Use execute_cmd_post_hook, and
10316 execute_cmd_pre_hook to execute pre/post commands.
10317 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10318 hook_stop_stub.
10319 (hook_stop_stub): Call execute_cmd_pre_hook.
10320
b51450c9
AC
103212002-03-17 Andrew Cagney <ac131313@redhat.com>
10322
10323 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10324 set'' and this leads to a core dump. Move xstrdup of
10325 operating_system to after check that it is not NULL.
10326
f66c9f11
AC
103272002-03-17 Andrew Cagney <ac131313@redhat.com>
10328
8e694ecf
AC
10329 * kod.c (kod_set_os): Remove unnecessary check that
10330 ``command->type'' is set_cmd.
10331
f66c9f11
AC
10332 * valprint.c (set_input_radix): Use input_radix.
10333 (set_output_radix): Use output_radix.
10334 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10335 isn't reverted.
10336
9d01611c
AC
103372002-03-16 Andrew Cagney <ac131313@redhat.com>
10338
10339 * value.h (struct value): Delete field ``substring_addr''. Change
10340 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10341 force_core_addr_align and force_pointer_aligh.
10342
10343 * value.h (struct value): Fix typo in above change.
9d01611c 10344
4156bb53
PS
103452002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10346
10347 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10348 to fix internal_error from ``maintenance print architecture''.
10349
0e5e3ea6
PS
103502002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10351
10352 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10353 for gcc versions after gcc-2.8.1.
10354
9b013045
PS
103552002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10356
10357 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10358 for method resolution. Restore adjustment of ``this'' pointer after
10359 calling value_struct_elt, which was accidentally removed during the
10360 HP merge.
10361
376c9600
AC
103622002-03-15 Andrew Cagney <ac131313@redhat.com>
10363
10364 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10365 value_of_register.
10366 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10367 get_saved_register.
10368 * value.h (value_of_register): Update.
10369
a4db0f07
RH
103702002-03-14 Richard Henderson <rth@redhat.com>
10371
10372 * configure.in: Detect declaration for canonicalize_file_name.
10373 * utils.c (canonicalize_file_name): Declare, if needed.
10374 (gdb_realpath): Prefer realpath if available and usable.
10375 * config.in, configure: Rebuild.
10376
96383835
RH
103772002-03-14 Richard Henderson <rth@redhat.com>
10378
10379 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10380 a constant array bound.
10381
10382 * MAINTAINERS: Add myself to write-after-approval.
10383
75245b24
MS
103842002-03-14 Michael Snyder <msnyder@redhat.com>
10385
10386 * symfile.c (syms_from_objfile): Return immediately if no syms.
10387 (symbol_file_add): Return immediately if no syms.
10388 (find_sym_fns): Return immediately if no syms.
10389
e641a1ca
ML
103902002-03-13 Michal Ludvig <mludvig@suse.cz>
10391
10392 * gdbserver/remote-util.c (remote_open): Print remote-side's
10393 IP address when remote debugging over the network.
7e336ba1 10394
df08bfec
DB
103952002-03-12 David O'Brien <obrien@FreeBSD.org>
10396
10397 * config/sparc/fbsd.mh: Fix copyright.
10398 * config/sparc/fbsd.mt: Likewise.
10399
9a57864f
RE
104002002-03-11 Richard Earnshaw <rearnsha@arm.com>
10401
10402 * MAINTAINERS: Fix typo in name of gdb warnings option.
10403 (x86-64): Fix formating so that this can be parsed by awk.
10404
dd7bf85e
DJ
104052002-03-10 Daniel Jacobowitz <drow@mvista.com>
10406
10407 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10408 * defs.h: Include "gdb/signals.h".
10409 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10410
33a0a2ac
ML
104112002-03-10 Michal Ludvig <mludvig@suse.cz>
10412
10413 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10414 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10415 from x86-64-tdep.h
10416
dd824b04
DJ
104172002-03-10 Daniel Jacobowitz <drow@mvista.com>
10418 Don Howard <dhoward@redhat.com>
10419
10420 * mips-tdep.c (ST0_FR): Define.
10421 (mips2_fp_compat): New function, temporarily disabled.
10422 (mips_read_fp_register_single): New function.
10423 (mips_read_fp_register_double): New function.
10424 (mips_print_register): Use them.
10425 (do_fp_register_row): Likewise.
10426
6a41ff59
AC
104272002-03-09 Andrew Cagney <ac131313@redhat.com>
10428
10429 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10430 approval''.
10431
4ea09c10
PS
104322002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10433
10434 * stabsread.c (read_member_functions): Fix is_stub test for
10435 static member functions, improve comment.
10436
6ccc741d
RE
104372002-03-07 Richard Earnshaw <rearnsha@arm.com>
10438
10439 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10440 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10441 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10442 commands that set boolean values.
10443 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10444 (arm_rdi_resume): Always initialize PC.
10445 (arm_rdi_open): Don't use rslt as a boolean.
10446 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10447 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10448 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10449 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10450
438013df
AO
104512002-03-06 Alexandre Oliva <aoliva@redhat.com>
10452
10453 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10454 * configure: Rebuilt.
10455
70ed8774
SC
104562002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10457
10458 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10459 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10460
5ba2abeb
AC
104612002-03-06 Andrew Cagney <ac131313@redhat.com>
10462
10463 * cli/cli-decode.c (set_cmd_completer): New function.
10464 * command.h (set_cmd_completer): Declare.
10465 * cli/cli-decode.h (set_cmd_completer): Ditto.
10466
10467 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10468 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10469 * win32-nat.c (_initialize_inftarg): Ditto.
10470 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10471 * proc-api.c (_initialize_proc_api): Ditto.
10472 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10473 * source.c (_initialize_source): Ditto.
10474 * exec.c (_initialize_exec): Ditto.
10475 * solib.c (_initialize_solib): Ditto.
10476 * top.c (init_main): Ditto.
10477 * tracepoint.c (_initialize_tracepoint): Ditto.
10478 * symfile.c (_initialize_symfile): Ditto.
10479 * printcmd.c (_initialize_printcmd): Ditto.
10480 * infcmd.c (_initialize_infcmd): Ditto.
10481 * corefile.c (_initialize_core): Ditto.
10482
f779ca99
AC
104832002-03-05 Andrew Cagney <ac131313@redhat.com>
10484
10485 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10486
01a3934b
AC
104872002-03-05 Andrew Cagney <ac131313@redhat.com>
10488
10489 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10490
37057839
AC
104912002-03-05 Andrew Cagney <ac131313@redhat.com>
10492
10493 * NEWS: Update headings, 5.2 has branched.
10494
c6ecbae5
DJ
104952002-03-04 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10498 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10499 (register_addr, REGISTER_RAW_SIZE): Likewise.
10500 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10501 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10502
e9f30c21
ML
105032002-03-03 Michal Ludvig <mludvig@suse.cz>
10504
10505 * MAINTAINERS (x86-64): Add myself.
10506 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10507 changed value_ptr -> struct value *
10508
54394ac3
DB
105092002-03-01 David O'Brien <obrien@FreeBSD.org>
10510
10511 * configure.host (sparc64-*-freebsd): Add.
10512 * configure.tgt: Likewise.
10513 * config/sparc/fbsd.mh: New file.
10514 * config/sparc/fbsd.mt: Likewise.
10515 * config/sparc/nm-fbsd.h: Likewise.
10516 * config/sparc/tm-fbsd.h: Likewise.
10517
bfe95955
DJ
105182002-03-01 Daniel Jacobowitz <drow@mvista.com>
10519
10520 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10521 regformats/reg-s390x.dat.
10522
f33c6cbf
AC
105232002-03-01 Andrew Cagney <ac131313@redhat.com>
10524
10525 * utils.c: Add FIXME explaining true/false problem.
10526
5ecaa7dd
AC
105272002-02-28 Andrew Cagney <ac131313@redhat.com>
10528
10529 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10530
2a251cc2
MC
105312002-02-28 Michael Chastain <mec@shout.net>
10532
10533 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10534
6a8031a3 105352002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10536
10537 * gdbserver/linux-s390-low.c: New file.
10538 * regformats/reg-s390.dat: New file.
10539 * regformats/reg-s390x.dat: New file.
10540 * gdbserver/configure.srv: Add S/390.
10541 * gdbserver/Makefile.in: Add S/390.
10542 * configure.tgt: Enable gdbserver for S/390.
10543
ac469903
EZ
105442002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10545
10546 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10547 first line of the doc string for "info dos", except at the end of
10548 the sentence, since the short help stops at the first period.
10549
985cb1a3
JM
105502002-02-28 Jason Merrill <jason@redhat.com>
10551
10552 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10553
c570663e
FF
105542002-02-27 Fred Fish <fnf@redhat.com>
10555
10556 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10557 comment (dumy -> dummy).
10558
43630227
PS
105592002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10560
10561 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10562
b84911e8
RB
105632002-02-27 Rodney Brown <rbrown64@csc.com.au>
10564
10565 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10566
58caa3dc
DJ
105672002-02-27 Daniel Jacobowitz <drow@mvista.com>
10568
10569 * gdbserver/acconfig.h: New file.
10570 * gdbserver/i387-fp.c: New file.
10571 * gdbserver/i387-fp.h: New file.
10572 * gdbserver/linux-x86-64.c: New file.
10573 * regformats/reg-x86-64.dat: New file.
10574 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10575 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10576 * gdbserver/configure.in: Add support for regsets.
10577 * gdbserver/config.in: Regenerate.
10578 * gdbserver/configure: Regenerate.
10579 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10580 * gdbserver/linux-low.h: New file.
10581 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10582 for regsets.
10583 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10584 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10585 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10586 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10587 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10588 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10589 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10590 "i387-fp.h". Add PTRACE_GETREGS and friends.
10591 * gdbserver/regcache.c (supply_register): New function.
10592 (supply_register_by_name): New function.
10593 (collect_register): New function.
10594 (collect_register_by_name): New function.
10595
93652174
DJ
105962002-02-27 Daniel Jacobowitz <drow@mvista.com>
10597
10598 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10599 (config.status): Add configure.srv dependency.
10600 (server_h): Add config.h dependency.
10601
a02e4a61
DJ
106022002-02-27 Daniel Jacobowitz <drow@mvista.com>
10603
10604 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10605 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10606 * gdbserver/configure.srv: Change i386-*-linux* to use
10607 reg-i386-linux.o.
10608
ce0eebec
AC
106092002-02-26 Andrew Cagney <ac131313@redhat.com>
10610
10611 * x86-64-tdep.c: Re-indent. Update copyright date.
10612
82dbc5f7
AC
106132002-02-26 Andrew Cagney <ac131313@redhat.com>
10614
10615 From Michal Ludvig <mludvig@suse.cz>:
10616 * x86-64-tdep.c (value.h): Delete.
10617 (gdb_assert.h): Include.
10618 (x86_64_register_convert_to_virtual,
10619 x86_64_register_convert_to_raw ): Add check which lets only
10620 floating-point values to be converted.
10621 (value_push): Delete.
10622 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10623 (i386_gdbarch_init): Number of register_bytes fixed.
10624
e4621584
AC
106252002-02-26 Andrew Cagney <ac131313@redhat.com>
10626
10627 * MAINTAINERS: Add x86-64 target.
10628
81a9a963
AC
106292002-02-26 Andrew Cagney <ac131313@redhat.com>
10630
10631 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10632 * osfsolib.c (solib_map_sections): Ditto.
10633 * irix5-nat.c (solib_map_sections): Ditto.
10634 * corelow.c (gdb_check_format): Ditto.
10635 * symfile.c (symfile_bfd_open): Ditto.
10636 * solib.c (solib_map_sections): Ditto.
10637 Fix PR gdb/354.
7e336ba1 10638
0f017ab9
AC
106392002-02-26 Andrew Cagney <ac131313@redhat.com>
10640
10641 * remote.c (_initialize_remote): By default, disable ``e'' and
10642 ``E'' step out-of-range packets.
10643
75738c29
AS
106442002-02-26 Andreas Schwab <schwab@suse.de>
10645
10646 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10647 m68k_linux_frame_saved_pc.
10648 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10649 in_sigtramp.
10650 (SIGCONTEXT_PC_OFFSET): Remove.
10651 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10652 m68k_linux_sigtramp_saved_pc): New functions.
10653 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10654 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10655 (UCONTEXT_PC_OFFSET): Define.
10656 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10657 non-RT and RT signal trampolines.
10658
7e8ed687
RE
106592002-02-26 Richard Earnshaw <rearnsha@arm.com>
10660
10661 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10662 (TARGET_NBPG, STACK_END_ADDR): Delete
10663 (VARIABLES_INSIDE_BLOCK): Delete.
10664
6972bc8b
AC
106652002-02-25 Andrew Cagney <ac131313@redhat.com>
10666
10667 * utils.c (perror_with_name): Make string parameter constant.
10668 (print_sys_errmsg): Ditto.
10669 (query): Ditto.
10670 * defs.h (perror_with_name): Update.
10671 (print_sys_errmsg): Update.
10672 (query): Update.
10673
aa32f823
DJ
106742002-02-25 Daniel Jacobowitz <drow@mvista.com>
10675
10676 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10677 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10678
19caaa45
PS
106792002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10680
10681 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10682 if it already matches the current architecture from the exec file.
10683 Include arch-utils.h for gdbarch_info_init prototype.
10684 * Makefile.in (rs6000-nat.o): Update dependencies.
10685
d951901f
EZ
106862002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10687
10688 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10689 list of exported variables.
10690
7ea81414
DJ
106912002-02-24 Daniel Jacobowitz <drow@mvista.com>
10692
10693 * gdbserver/configure.srv: New file.
10694 * gdbserver/configure.in: Use configure.srv instead
10695 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10696 from it.
10697 * gdbserver/configure: Regenerated.
10698 * gdbserver/terminal.h: New file.
10699 * gdbserver/Makefile.in: Update for configure changes. Remove
10700 more unneeded include paths.
10701
080fe24b
AC
107022002-02-24 Andrew Cagney <ac131313@redhat.com>
10703
10704 From wiz at danbala:
10705 * config/sparc/tm-sp64.h: Fix grammar and typos.
10706 Fix PR gdb/287.
10707
8605d56e
AC
107082002-02-24 Andrew Cagney <ac131313@redhat.com>
10709
10710 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10711 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10712 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10713 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10714 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10715 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10716 * s390-tdep.c: Ditto.
92362027
AC
10717 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10718 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10719 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10720 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10721 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10722 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10723 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10724 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10725 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10726 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10727 Fix PR gdb/378.
7e336ba1 10728
8ed32cc0
AC
107292002-02-23 Andrew Cagney <ac131313@redhat.com>
10730
a3007b6f
AC
10731 * lin-thread.c: Delete file.
10732 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10733 to gdb_proc_service.h.
10734 * configure: Re-generate.
10735
50a9e2f1
AC
10736 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10737 * serial.c (serial_open): Delete check for "ocd".
10738 Fix PR gdb/349.
10739
8b6e7932
AC
10740 * Makefile.in (linux-thread.o): Delete target.
10741 * linux-thread.c: Delete file.
10742
d155c46b
AC
10743 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10744 renamed SH files to be consistent.
10745
8ed32cc0
AC
10746 * symtab.c (sort_search_symbols): Use xfree.
10747
0e18d038
RE
107482002-02-23 Richard Earnshaw <rearnsha@arm.com>
10749
10750 * arm-linux-tdep.c (arm_linux_init_abi): Register
10751 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10752 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10753 definition with undef, since we don't want the sysvr4 definition.
10754 (SKIP_TRAMPOLINE_CODE): Likewise.
10755
27aac7ff
AC
107562002-02-23 Andrew Cagney <ac131313@redhat.com>
10757
10758 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10759
10760 * configure.in: (AC_CHECK_FUNCS) Added test for
10761 canonicalize_file_name Regenerated.
10762 * config.in, configure: Regenerated.
10763 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10764 defined use canonicalize_file_name.
7e336ba1 10765
65a6e0ee
MC
107662002-02-23 Michael Chastain <mec@shout.net>
10767
10768 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10769
47b95330
AC
107702002-02-23 Andrew Cagney <ac131313@redhat.com>
10771
10772 * README: Remove references to cygnus.com.
10773 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10774 dot com'' form. Remove references to cygnus.com and sourceware.
10775
696f451b
AC
107762002-02-23 Andrew Cagney <ac131313@redhat.com>
10777
10778 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10779 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10780 1003.1-2001 no longer allows "head -1".
10781 * gdb/Makefile.in (version.c): Likewise.
10782 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10783 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10784 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10785
bbaca940
AC
107862002-02-23 Andrew Cagney <ac131313@redhat.com>
10787
10788 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10789 * command.h (cmd_cfunc_eq): Declare.
10790 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10791
10792 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10793 ``struct cmd_list_element *''.
10794 * cli/cli-cmds.c (is_complete_command): Update. Use
10795 cmd_cfunc_eq.
10796 * top.c (execute_command): Pass the command to
10797 is_complete_command.
10798 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10799
b8b8b047
AC
108002002-02-23 Andrew Cagney <ac131313@redhat.com>
10801
10802 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10803 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10804 architecture defines.
10805 * s390-tdep.c (s390_gdbarch_init): Likewise.
10806
19d3fc80
RE
108072002-02-23 Richard Earnshaw <rearnsha@arm.com>
10808
10809 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10810 (arm_linux_push_arguments): Likewise.
10811 (arm_linux_init_abi): Register them. Also register linux-specific
10812 call_dummy_words.
10813 (find_minsym_and_objfile): Use strcmp, not STREQ.
10814 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10815 (arm_linux_call_dummy_words): Delete declaration.
10816 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10817 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10818 declarations.
10819 (LOWEST_PC): Delete.
10820
3ab13650
PS
108212002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10822
10823 * maint.c (print_section_info): Do not prepend `0x' to filepos
10824 output, it will be handled by local_hex_string_custom.
10825
19d3fc80 108262002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
10827
10828 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10829 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10830 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10831
d85a5daf
JB
108322002-02-22 Jim Blandy <jimb@redhat.com>
10833
10834 Indicate that the bcache functions don't change the strings
10835 they're passed.
10836 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10837 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10838
eeb25b8a
PM
108392002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10840
10841 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10842
6badb179
CF
108432002-02-21 Christopher Faylor <cgf@redhat.com>
10844
10845 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10846 find the complete path to a loaded DLL.
10847
e8717518
FF
108482002-02-21 Fred Fish <fnf@redhat.com>
10849
10850 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10851 that marks the end of the range of a function, enter a line number
10852 entry that has a line number of zero and a PC offset that matches
10853 the end of the function. This starts a range of PC's for which no
10854 line number information is known.
10855 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10856 PC's for which no line number info is found (line number is zero)
10857 then we didn't find any valid line information.
10858 * symtab.h: Document use of zero line number entry.
10859
9abe5450
EZ
108602002-02-21 Elena Zannoni <ezannoni@redhat.com>
10861
10862 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10863 (have_ptrace_getvrregs): Define for run time checks.
10864 (gdb_vrregset_t): New type for Altivec register handling.
10865 (fetch_register, store_register): Fetch/store altivec register
10866 when needed.
10867 (fetch_altivec_register, store_altivec_register): New functions.
10868 (supply_vrregset, fill_vrregset): New functions.
10869 (fetch_altivec_registers, store_altivec_registers): New functions.
10870 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10871 registers as well.
10872
aaa38bb5
AJ
108732002-02-21 Jiri Smid <smid@suse.cz>
10874
10875 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10876
b34db576
RE
108772002-02-21 Richard Earnshaw <rearnsha@arm.com>
10878
10879 * Makefile.in (armnbsd-nat.o): Update dependencies.
10880 * armnbsd-nat.c (supply_gregset): New function. Common code to
10881 supply the integer register set.
10882 (supply_fparegset): New function. Similar for FPA registers.
10883 (fetch_regs, fetch_fp_regs): Use them.
10884 (fetch_core_registers): Likewise.
10885 (fetch_elfcore_registers): New function.
10886 (arm_netbsd_elfcore_fns): New core-file type specification.
10887 (_initialize_arm_netbsd_nat): Register it.
10888
3e56fc4b
RE
108892002-02-21 Richard Earnshaw <rearnsha@arm.com>
10890
10891 * armnbsd-nat.c: Include gdbcore.h.
10892 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10893 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10894 'void' to declaration, to shut up ARI.
10895 (fetch_core_registers): Make static. Rewrite using supply_register.
10896 (arm_netbsd_core_fns): New core-file type specification.
10897 (_initialize_arm_netbsd_nat): New function.
10898
097f6b0b
CF
108992002-02-21 Christopher Faylor <cgf@redhat.com>
10900
10901 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10902 value.
10903
c914e0cc
CF
109042002-02-20 Christopher Faylor <cgf@redhat.com>
10905
10906 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10907 fails.
10908
385fa495
DJ
109092002-02-20 Daniel Jacobowitz <drow@mvista.com>
10910
10911 * jv-exp.y (parse_number): Change type of implicit longs
10912 to builtin_type_uint64.
10913
e5f1222d
DJ
109142002-02-20 Daniel Jacobowitz <drow@mvista.com>
10915
10916 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10917 to be an integer instead of a `union wait'.
10918
75c9abc6
DJ
109192002-02-20 Daniel Jacobowitz <drow@mvista.com>
10920
10921 * mips-linux-nat.c: Call the operating system GNU/Linux.
10922 * mips-linux-tdep.c: Likewise.
10923 * mips-tdep.c: Likewise.
10924
551792a5
DJ
109252002-02-20 Daniel Jacobowitz <drow@mvista.com>
10926
10927 Fix PR gdb/265.
10928 * jv-exp.y (parse_number): Handle 64-bit integers.
10929
ee6e2b82
DJ
109302002-02-20 Daniel Jacobowitz <drow@mvista.com>
10931
10932 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10933 AC_STDC_HEADERS to AC_HEADER_STDC.
10934 * gdbserver/configure: Regenerated.
10935
a48442a0
RE
109362002-02-20 Richard Earnshaw <rearnsha@arm.com>
10937
10938 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10939 is defined.
10940 * sparc-tdep.c (get_longjmp_target): Likewise.
10941
fe419ffc
RE
109422002-02-20 Richard Earnshaw <rearnsha@arm.com>
10943
10944 * News: Add news about ARM and Multi-arch. Mention the new target
10945 arm*-*-netbsd*.
10946
5832ed7e
JB
109472002-02-19 Jim Blandy <jimb@redhat.com>
10948
10949 * stabsread.c (error_type_complaint): Improve error message.
10950
84563040
DJ
109512002-02-19 Daniel Jacobowitz <drow@mvista.com>
10952
10953 * gdbserver/README: Update documentation.
10954 * gdbserver/configure.in: Update configury to match documentation.
10955 * gdbserver/Makefile.in: Likewise.
10956 * gdbserver/configure: Regenerated.
10957 * gdbserver/aclocal.m4: New file, generated by aclocal.
10958 * gdbserver/config.in: New file, generated by autoheader.
10959
375fd65b
RE
109602002-02-19 Richard Earnshaw <rearnsha@arm.com>
10961
10962 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10963 armnbsd-nat.c.
10964
08216dd7
RE
109652002-02-19 Richard Earnshaw <rearnsha@arm.com>
10966
10967 * arm-tdep.h (enum arm_float_model): New enum.
10968 (struct gdbarch_tdep): Add fp_model.
10969 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10970 up floating-point conversions until we know the floating-point model
10971 in use by the inferior. Don't complain about being unable to
10972 determine the ABI of the inferior when we don't have one.
10973 (arm_extract_return_value): Support different floating-point models.
10974 (arm_store_return_value): Likewise.
aaa38bb5 10975 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
10976 ARM_FLOAT_SOFT.
10977 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10978
65d6d66a
PS
109792002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10980
10981 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10982 of ``current_gdbarch''.
10983
47221191
RE
109842002-02-19 Richard Earnshaw <rearnsha@arm.com>
10985
10986 * armnbsd-nat.c : ANSIfy all function declarations.
10987 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10988 (fetch_inferior_registers): Re-implement in terms of above.
10989 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10990 (store_inferior_registers): Re-implement in terms of above.
10991
fdf39c9a
RE
109922002-02-19 Richard Earnshaw <rearnsha@arm.com>
10993
aaa38bb5 10994 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
10995 kernel.
10996 * arm-linux-tdep.c: Likewise.
10997 * config/arm/tm-linux.h: Likewise.
10998
93247f88
RE
109992002-02-19 Richard Earnshaw <rearnsha@arm.com>
11000
11001 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11002 * config/arm/nbsd.mt (TM_FILE): Delete.
11003 * config/arm/tm-nbsd.h: Delete.
11004
d7b486e7
RE
110052002-02-19 Richard Earnshaw <rearnsha@arm.com>
11006
11007 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11008 Initialize CALL_DUMMY_LENGTH.
11009
41d39a95
RE
110102002-02-19 Richard Earnshaw <rearnsha@arm.com>
11011
11012 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11013 function.
11014 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11015 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11016 defines one thing and that is incorrect for this port.
11017 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11018
e1195560
PM
110192002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11020
11021 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11022
c1748f97
PM
110232002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11024
11025 * win32-nat.c (display_selector): New function. Displays information
11026 about the information returned by GetThreadSelectorEntry API function.
11027 (display_selectors): New function. Displays the infomation of
11028 the selector given as argument, or of CS, DS ans FS selectors
11029 if no argument is given.
11030 ( _initialize_inftarg): Add "w32" as info prefix command.
11031 Add "info w32 selector" as command calling display_selectors.
11032
e41e6bbf
PM
110332002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11034
11035 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11036 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11037 if not defined.
11038
0d3a9f48
RE
110392002-02-18 Richard Earnshaw <rearnsha@arm.com>
11040
11041 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11042
3fb4b924
RE
110432002-02-18 Richard Earnshaw <rearnsha@arm.com>
11044
11045 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11046 (arm_fix_call_dummy): Call it.
11047 (arm_call_dummy_breakpoint_offset): Delete.
11048 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11049 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11050
7f55af32
AC
110512002-02-18 Andrew Cagney <ac131313@redhat.com>
11052
11053 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11054 Default to func_frame_chain_valid.
11055 * gdbarch.h, gdbarch.c: Re-generate.
11056 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11057
05f13b9c
EZ
110582002-02-18 Elena Zannoni <ezannoni@redhat.com>
11059
11060 * ppc-linux-nat.c: Update copyright.
11061 (fetch_register, store_register): Add tid parameter, don't compute
11062 tid here.
11063 (fetch_ppc_registers, store_ppc_registers): Add tid
11064 parameter. Pass it along to callees.
11065 (fetch_inferior_registers, store_inferior_registers): Compute tid
11066 here, and pass it to calleed functions.
11067 (fill_gregset, supply_fpregset): Clean up formatting.
11068
d7afb4c9
RE
110692002-02-18 Richard Earnshaw <rearnsha@arm.com>
11070
11071 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11072 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11073
9df628e0
RE
110742002-02-18 Richard Earnshaw <rearnsha@arm.com>
11075
11076 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11077 * gdbarch.c gdbarch.h: Regenerate.
11078 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11079 function.
11080 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11081 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11082 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11083
11084 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11085 * arm-tdep.c (arm_get_longjmp_target): New function.
11086 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11087 this to a positive value register arm_get_longjmp_target as the
11088 longjmp handler.
11089 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11090 (arm_linux_init_abi): Set up longjmp description in tdep.
11091 * armnbsd-nat.c (get_longjmp_target): Delete.
11092 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11093 description in tdep.
11094 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11095 (get_longjmp_target): Delete declaration.
11096 (GET_LONGJMP_TARGET): Delete.
11097 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11098 (GET_LONGJMP_TARGET): Delete.
11099
57bc8964
KB
111002002-02-17 Kevin Buettner <kevinb@redhat.com>
11101
11102 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11103 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11104 of ``current_gdbarch''.
11105
83d31a92
TT
111062002-02-17 Tom Tromey <tromey@redhat.com>
11107
11108 * cli/cli-cmds.c (compare_strings): New function.
11109 (complete_command): Only print each unique item once.
11110 * completer.h (complete_line): Declare.
11111 * completer.c (complete_line): New function.
11112 (line_completion_function): Use it.
11113
17ef5d92
AC
111142002-02-16 Andrew Cagney <ac131313@redhat.com>
11115
11116 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11117 * gdbarch.h, gdbarch.c: Re-generate.
11118
491b8946
DJ
111192002-02-16 Daniel Jacobowitz <drow@mvista.com>
11120
11121 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11122
111232002-02-16 Daniel Jacobowitz <drow@mvista.com>
11124
11125 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11126 * valops.c (value_arg_coerce): Don't take the address of a reference
11127 to convert an argument to a reference.
11128
dfe7f3ac
CF
111292002-02-15 Christopher Faylor <cgf@redhat.com>
11130
11131 * win32-nat.c (get_image_name): New function.
11132 (handle_load_dll): Use get_image_name function.
11133 (get_child_debug_event): Avoid registering debug events until possibly
11134 execed process is started.
11135 (child_create_inferior): Allow invocation via shell so that command
11136 line redirection, etc. works ok.
11137 (_initialize_inftarg): Add new command: "set shell" to control whether
11138 a shell is used to start a process.
11139
1d33e73a
DJ
111402002-02-15 Daniel Jacobowitz <drow@mvista.com>
11141
11142 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11143 instead of find_register_by_number.
11144 (cannot_store_register): Likewise.
11145
48cd0caa
PM
111462002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11147
aaa38bb5 11148 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11149 fprintf_unfiltered (gdb_stderr, ...).
11150
8656e7d8
DJ
111512002-02-15 Daniel Jacobowitz <drow@mvista.com>
11152
11153 * gdbserver/gdbserver.1: Document --attach.
11154
66e810cd
RE
111552002-02-15 Richard Earnshaw <rearnsha@arm.com>
11156
11157 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11158 descriptions.
11159 * arm-tdep.c (arm_default_arm_le_breakpoint)
11160 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11161 (arm_default_thumb_be_breakpoint): New. Initialize them from
11162 traditional breakpoint defines.
11163 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11164 (arm_gdbarch_init): Initialize new breakpoint variables.
11165 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11166 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11167 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11168 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11169 code out to ...
11170 (arm_netbsd_init_abi_common): ... here; new function.
11171 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11172 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11173 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11174 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11175
97e03143
RE
111762002-02-15 Richard Earnshaw <rearnsha@arm.com>
11177
11178 * arm-tdep.h (enum arm_abi): New enum.
11179 (struct gdbarch_tdep): New structure.
11180 (LOWEST_PC): Provide a default.
11181 (arm_gdbarch_register_os_abi): Declare new function.
11182 * arm-tdep.c (arm_abi_names): New array.
11183 (process_note_abi_tag_sections): New function.
11184 (get_elfosabi): New function.
11185 (arm_gdbarch_register_os_abi): New function.
11186 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11187 support for that ABI has been built in, then call the appropriate
11188 configuration routine. Use gdbarch_num_regs() to get the number
11189 of registers.
11190 (arm_dump_tdep): New function.
11191 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11192 place-holder functions.
11193 (_initialize_arm_tdep): Register them.
11194 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11195
11196 * armnbsd-tdep.c: New file.
11197 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11198 * config/arm/nbsd.mt (TDEPFILES): Add it.
11199 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11200
11201 * armnbsd-nat.c: Include regcache.h.
11202 * Makefile.in (armnbsd-nat.o): Update dependency list.
11203
11204 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11205
ad68be46
DJ
112062002-02-14 Daniel Jacobowitz <drow@mvista.com>
11207
11208 * gdbserver/Makefile.in: Fix typos in target rules.
11209
003d6d1d
DJ
112102002-02-14 Daniel Jacobowitz <drow@mvista.com>
11211
aaa38bb5 11212 Fix part of PR gdb/267.
003d6d1d
DJ
11213 * linespec.c (find_methods): Handle constructors specially for now.
11214
6b230f1b
CV
112152002-02-14 Corinna Vinschen <vinschen@redhat.com>
11216
11217 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11218 handling.
11219 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11220 standard_coerce_float_to_double().
11221
1ea98d12
CF
112222002-02-14 Christopher Faylor <cgf@redhat.com>
11223
11224 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11225 GDBINIT_FILENAME.
11226
dd47e6fd
EZ
112272002-02-14 Elena Zannoni <ezannoni@redhat.com>
11228
11229 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11230 find_variant_by_name, because it confuses the multiarch
11231 framework. Return NULL if there isn't an architecture with the
11232 user supplied name, instead of forcing a different one without
11233 recording the change with the multiarch machinery.
11234 (find_variant_by_name): Delete.
11235
d7e39b9e
PS
112362002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11237
11238 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11239 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11240
76e42a4f
MH
112412002-02-13 Martin M. Hunt <hunt@redhat.com>
11242
aaa38bb5 11243 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11244 print_frame_info_listing_hook, set current_source_symtab.
11245
0a30fbc4
DJ
112462002-02-14 Daniel Jacobowitz <drow@mvista.com>
11247
11248 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11249 and remove unused $(INCLUDE_DIR).
11250 Add regcache.c to OBS.
11251 Add generated register protocol files to clean target.
11252 Update dependencies for new objects, obsolete old target code.
11253
11254 * gdbserver/linux-low.c: Remove all platform-specific code to
11255 new files. Remove various dead code. Update to use regcache
11256 functionality.
11257 * gdbserver/remote-utils.c (fromhex): Add return statement
11258 to quiet warning.
11259 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11260 constant.
11261 (input_interrupt): Add integer parameter to match prototype
11262 of a signal handler.
11263 (outreg): Use register_data ().
11264 (prepare_resume_reply): Use gdbserver_expedite_regs.
11265 * gdbserver/server.c (main): Dynamically allocate own_buf because
11266 PBUFSIZ is no longer constant. Use registers_to_string () and
11267 registers_from_string ().
11268 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11269 for error (), fatal (), and warning (). Update definition of
11270 PBUFSIZ to use regcache functionality. Add include guard.
11271 * gdbserver/utils.c (fatal): Add missing ``const''.
11272 (warning): New function.
11273
11274 * regformats/regdat.sh: Include "regcache.h" in generated files.
11275 Provide init_registers () function.
11276 * regformats/regdef.h: Add prototype for set_register_cache ().
11277 Add include guard.
11278
11279 * gdbserver/linux-arm-low.c: New file.
11280 * gdbserver/linux-i386-low.c: New file.
11281 * gdbserver/linux-ia64-low.c: New file.
11282 * gdbserver/linux-m68k-low.c: New file.
11283 * gdbserver/linux-mips-low.c: New file.
11284 * gdbserver/linux-ppc-low.c: New file.
11285 * gdbserver/linux-sh-low.c: New file.
11286
11287 * gdbserver/regcache.c: New file.
11288 * gdbserver/regcache.h: New file.
11289
11290 * gdbserver/low-linux.c: Removed obsolete file.
11291
4cc841d0
DJ
112922002-02-14 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11295 * config/i386/linux.mt: Likewise.
11296 * config/ia64/linux.mt: Likewise.
11297 * config/m68k/linux.mh: Likewise.
11298 * config/powerpc/linux.mh: Likewise.
11299 * config/mips/linux.mt: Likewise.
11300
11301 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11302
11303 * config/i386/i386lynx.mh: Mark gdbserver variables
11304 as (currently) obsolete for this target.
11305 * config/i386/nbsd.mt: Likewise.
11306 * config/i386/nbsdelf.mt: Likewise.
11307 * config/m32r/m32r.mt: Likewise.
11308 * config/m68k/m68klynx.mh: Likewise.
11309 * config/m68k/nbsd.mt: Likewise.
11310 * config/m68k/sun3os4.mh: Likewise.
11311 * config/mips/vr5000.mt: Likewise.
11312 * config/ns32k/nbsd.mt: Likewise.
11313 * config/pa/hppabsd.mh: Likewise.
11314 * config/pa/hppaosf.mh: Likewise.
11315 * config/powerpc/nbsd.mt: Likewise.
11316 * config/rs6000/rs6000lynx.mh: Likewise.
11317 * config/s390/s390.mt: Likewise.
11318 * config/s390/s390x.mt: Likewise.
11319 * config/sparc/sparclynx.mh: Likewise.
11320 * config/sparc/sun4os4.mh: Likewise.
11321 * config/i386/x86-64linux.mt: Likewise.
11322 * config/sparc/linux.mh: Likewise.
11323
a85f51e7
DJ
113242002-02-14 Daniel Jacobowitz <drow@mvista.com>
11325
11326 * configure.tgt: Configure gdbserver only for known working
11327 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11328 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11329 SUBDIRS if it is configured. Update comment for ${nativefile}.
11330 * configure: Regenerated.
11331
65554fef
MS
113322002-02-13 Michael Snyder <msnyder@redhat.com>
11333
670a52db
MS
11334 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11335
6dbdc4a3
MS
11336 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11337 (default_gcore_mach): Just return 0, work around a problem in bfd.
11338 (default_gcore_target): OK to return NULL if exec_bfd is null.
11339 (make_mem_sec): Use a cast, avoid a warning.
11340
11341 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11342 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11343 sizeof (host pointer) != sizeof (target pointer)).
11344 (procfs_make_note_section): Avoid overflow in psargs string.
11345
aaa38bb5 11346 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11347 implementation return an error.
11348
113492002-02-13 Rodney Brown <rbrown64@csc.com.au>
11350
11351 * procfs.c (procfs_make_note_section): Provide a default definition
11352 (for alpha-dec-osf4.0f). Fix typos.
11353
1e4d76e7
EZ
113542002-02-13 Elena Zannoni <ezannoni@redhat.com>
11355
11356 * linux-proc.c: Add include of regcache.h.
11357 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11358
b6d1a1d5
AC
113592002-02-13 Andrew Cagney <ac131313@redhat.com>
11360
11361 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11362 * memattr.c (create_mem_region): Disallow useless empty region.
11363 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11364 non-overlapping.
b6d1a1d5 11365
6c6ea35e
MC
113662002-02-13 Michael Chastain <mec@shout.net>
11367
11368 * defs.h: Kill CONST_PTR.
11369 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11370 * c-lang.c (c_builtin_types): Likewise.
11371 * ch-lang.c (ch_builtin_types): Likewise.
11372 * f-lang.c (f_builtin_types): Likewise.
11373 * language.c (unknown_builtin_types): Likewise.
11374 * m2-lang.c (m2_builtin_types): Likewise.
11375 * p-lang.c (pascal_builtin_types): Likewise.
11376 * scm-lang.c (c_builtin_types): Likewise.
11377
3e0b0f48
KS
113782002-02-13 Keith Seitz <keiths@redhat.com>
11379
11380 * arm-tdep.h (arm_get_next_pc): Add declaration.
11381
67255d04
RE
113822002-02-13 Richard Earnshaw <rearnsha@arm.com>
11383
11384 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11385 with other related struct-returning functions.
11386 (arm_extract_struct_value_address): New function.
11387 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11388 initialize float_format, double_format and long_double_format as
11389 appropriate to the endianness of the target.
11390 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11391 (arm_use_struct_convention): Delete declaration.
11392 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11393
079777f6
KS
113942002-02-13 Keith Seitz <keiths@redhat.com>
11395
11396 * defs.h (core_addr_to_string_nz): New function.
11397
34588f23
MK
113982002-02-13 Mark Kettenis <kettenis@gnu.org>
11399
11400 Apply missing bits of 2002-01-15 patch.
11401 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11402 (fill_fpregset): Use i387_fill_fsave.
11403
49b563f9
KS
114042002-02-12 Keith Seitz <keiths@redhat.com>
11405
49b563f9
KS
11406 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11407 (core_addr_to_string_nz): New function.
11408
aeb98c60
RE
114092002-02-11 Richard Earnshaw <rearnsha@arm.com>
11410
11411 * arm-linux-nat.c: Really include arm-tdep.h.
11412 * config/arm/tm-linux.h (struct type, struct value): Declare.
11413
65554fef
MS
114142002-02-11 Michael Snyder <msnyder@redhat.com>
11415
11416 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11417 (gcore section): Ifdef for Solaris and Unixware only.
11418 (procfs_do_thread_registers): Unixware needs one lwpstatus
11419 per thread (not one prstatus or pstatus).
11420 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11421 not over all gdb threads. For unixware, call elfcore_write_pstatus
11422 once before iterating over threads.
11423
34e8f22d
RE
114242002-02-11 Richard Earnshaw <rearnsha@arm.com>
11425
11426 * arm-tdep.h: New file.
11427 * arm-tdep.c: Include arm-tdep.h.
11428 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11429 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11430 (arm_print_float_info, arm_register_type, convert_to_extended)
11431 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11432 (arm_extract_return_value, arm_register_name): Make static.
11433 (arm_software_single_step): Similarly. Fix types in declaration.
11434 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11435 (arm_store_return_value, arm_store_struct_return): New functions.
11436 (arm_gdbarch_init): Register the above functions. Also register
11437 call_dummy_start_offset, sizeof_call_dummy_words,
11438 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11439 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11440 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11441 prologue_cache.saved_regs here, rather than ...
11442 (_initialize_arm_tdep): ... here.
11443 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11444 declarations.
11445 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11446 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11447 (arm_print_float_info, arm_register_type, convert_to_extended)
11448 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11449 (arm_extract_return_value, arm_register_name): Delete declarations.
11450 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11451 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11452 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11453 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11454 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11455 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11456 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11457 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11458 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11459 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11460 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11461 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11462 interface.
11463 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11464 * remote-rdi.c remote-rdp.c: Likewise.
11465 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11466 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11467 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11468 definition.
11469
11470 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11471 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11472 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11473 from non-ARM_ prefixed definitions.
11474 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11475 all uses of above.
11476 * remote-rdi.c remote-rdp.c: Likewise.
11477 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11478
148754e5
RE
114792002-02-11 Richard Earnshaw <rearnsha@arm.com>
11480
11481 * arm-tdep.c (arm_frameless_function_invocation)
11482 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11483 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11484 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11485 (arm_pop_frame, arm_get_next_pc): Make static.
11486 (arm_gdbarch_init): Register above in gdbarch structure.
11487 (arm_read_fp): Renamed from arm_target_read_fp.
11488 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11489 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11490 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11491 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11492 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11493 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11494 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11495 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11496 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11497 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11498 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11499
434d2d4f
DJ
115002002-02-10 Daniel Jacobowitz <drow@mvista.com>
11501
11502 * symtab.c (compare_search_syms): New function.
11503 (sort_search_symbols): New function.
11504 (search_symbols): Sort symbols after searching rather than
11505 before.
11506
55241689
AC
115072002-02-10 Andrew Cagney <ac131313@redhat.com>
11508
11509 * NEWS: Linux -> GNU/Linux.
11510
028c194b
AC
115112002-02-10 Andrew Cagney <ac131313@redhat.com>
11512
11513 * gdbarch.sh: For for level one methods, disallow a definition
11514 when partially multi-arched. Add comments explaining rationale.
11515 * gdbarch.h: Re-generate.
11516
6acf50cd
AC
115172002-02-10 Andrew Cagney <ac131313@redhat.com>
11518
11519 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11520 multi-arch partial.
aaa38bb5 11521
50248794
AC
115222002-02-10 Andrew Cagney <ac131313@redhat.com>
11523
11524 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11525 field. Use diff -u.
11526 * gdbarch.c: Re-generate.
11527
c30e0066
AC
115282002-02-10 Andrew Cagney <ac131313@redhat.com>
11529
9b56c5f3 11530 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11531 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11532 partial.
11533
6e6d6484
AC
115342002-02-10 Andrew Cagney <ac131313@redhat.com>
11535
11536 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11537 multi-arch partial.
11538 (PUSH_ARGUMENTS): Switch to using predefault.
11539 * gdbarch.c: Regenerate.
11540
c203844d
AC
115412002-02-10 Andrew Cagney <ac131313@redhat.com>
11542
11543 * valops.c (PUSH_ARGUMENTS): Delete definition.
11544 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11545 partial. Default to default_push_arguments.
11546 * gdbarch.h, gdbarch.c: Regenerate.
11547
b5a2688f
AC
115482002-02-09 Andrew Cagney <ac131313@redhat.com>
11549
11550 * defs.h (throw_exception): Rename return_to_top_level. Update
11551 comments.
11552 * utils.c (error_stream, internal_verror, quit): Ditto.
11553 * top.c (throw_exception, catcher): Ditto.
11554 * sparclet-rom.c (sparclet_load): Ditto.
11555 * remote.c (interrupt_query, minitelnet): Ditto.
11556 * remote-sds.c (interrupt_query): Ditto.
11557 * remote-mips.c (mips_error, mips_kill): Ditto.
11558 * ocd.c (interrupt_query): Ditto.
11559 * monitor.c (monitor_interrupt_query): Ditto.
11560 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11561 * target.h: Update comment.
aaa38bb5 11562
b5a2688f 11563 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11564
2fa5c1e0
AC
115652002-02-09 Andrew Cagney <ac131313@redhat.com>
11566
11567 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11568 default_double_format.
11569 * gdbarch.h, gdbarch.c: Re-generate.
11570 * findvar.c (floatformat_unknown): Delete variable definition.
11571 * doublest.h (floatformat_unknown): Delete variable declaration.
11572
da966255
JB
115732002-02-09 Jim Blandy <jimb@redhat.com>
11574
11575 * stabsread.c (read_type): Add code to parse Sun's syntax for
11576 prototyped function types.
11577
123a4891
AC
115782002-02-09 Andrew Cagney <ac131313@redhat.com>
11579
11580 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11581 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11582
fb39c8f3
PS
115832002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11584
11585 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11586 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11587 now _initialize_xcoffsolib gets called again and overrides the
11588 commands from solib.c in a native configuration.
11589
0b87a11d
MK
115902002-02-09 Mark Kettenis <kettenis@gnu.org>
11591
11592 * doublest.c (store_typed_floating): Don't try to return a value.
11593 Fixes PR gdb/290.
11594
bdc2fc72
JB
115952002-02-08 Jim Blandy <jimb@redhat.com>
11596
11597 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11598 is prototyped and has no arguments, print its argument list as
11599 `(void)'.
11600
da69bbcf
CD
116012002-02-08 Chris Demetriou <cgd@broadcom.com>
11602
11603 * MAINTAINERS (write-after-approval): Add myself.
11604 (paper-trail): I've escaped!
aaa38bb5 11605
b69571f5
CF
116062002-02-08 Christopher Faylor <cgf@redhat.com>
11607
11608 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11609 changes.
11610 (_initialize_check_for_gdb_ini): Ditto.
11611
f6871398
MH
116122002-02-08 Martin M. Hunt <hunt@redhat.com>
11613
11614 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11615 xaprintf -> xasprintf.
11616
4e52d31c
PM
116172002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11618
11619 * win32-nat.c: Remove use of printf and sprintf functions.
11620
39bbf761
RE
116212002-02-08 Richard Earnshaw <rearnsha@arm.com>
11622
11623 * arm-tdep.c (arm_frame_chain_valid): Make static.
11624 (arm_push_arguments): Likewise.
11625 (arm_gdbarch_init): New function.
11626 (_initialize_arm_tdep): Call it.
11627 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11628 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11629 (FRAME_CHAIN_VALID): Delete.
11630 (arm_frame_chain_valid): Delete declaration.
11631 (PUSH_ARGUMENTS): Delete.
11632 (arm_push_arguments): Delete declaration.
11633 (CALL_DUMMY_P): Delete.
11634
9c9532c9
CV
116352002-02-08 Andrew Cagney <ac131313@redhat.com>
11636 Corinna Vinschen <vinschen@redhat.com>
11637
11638 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11639 on builtin float types.
11640
4e8f7a8b
DJ
116412002-02-08 Daniel Jacobowitz <drow@mvista.com>
11642
11643 * utils.c: Include <curses.h> before "bfd.h".
11644 * tui/tui-hooks.c: Likewise.
11645 * tui/tui.c: Likewise.
11646 * tui/tuiCommand.c: Likewise.
11647 * tui/tuiData.c: Likewise.
11648 * tui/tuiDataWin.c: Likewise.
11649 * tui/tuiDisassem.c: Likewise.
11650 * tui/tuiGeneralWin.c: Likewise.
11651 * tui/tuiIO.c: Likewise.
11652 * tui/tuiLayout.c: Likewise.
11653 * tui/tuiRegs.c: Likewise.
11654 * tui/tuiSource.c: Likewise.
11655 * tui/tuiSourceWin.c: Likewise.
11656 * tui/tuiStack.c: Likewise.
11657 * tui/tuiWin.c: Likewise.
11658
cd4bffcf
EZ
116592002-02-07 Elena Zannoni <ezannoni@redhat.com>
11660
11661 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11662 to include space for pseudoregs as well. Update loops accordingly.
11663 (sh_fp_frame_init_saved_regs): Ditto.
11664 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11665
26806ce2
AC
116662002-02-07 Andrew Cagney <ac131313@redhat.com>
11667
11668 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11669 Add Richard Earnshaw to Arm maintainers.
11670
97fdab62
AC
116712002-02-07 Andrew Cagney <ac131313@redhat.com>
11672
a6b98203
AC
11673 * defs.h (warning_begin): Delete declaration.
11674
97fdab62
AC
11675 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11676 Delete macro.
11677
78b29b40
MS
116782002-02-07 Michael Snyder <msnyder@redhat.com>
11679
aaa38bb5 11680 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11681 Logic bug, remove misplaced else.
11682
d8849953
KD
116832002-02-07 Klee Dienes <klee@apple.com>
11684
11685 * fork-inferior.c (fork_inferior): Add '!' to the list of
11686 characters that need to be quoted when building a string for the
11687 shell. Quote '!' specifically with a backslash, since CSH chokes
11688 when trying to evaluate "str!str".
aaa38bb5 11689
095778a0
NC
116902002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11691
11692 * rdi-share/host.h: Only provide a typedef for bool if it is not
11693 defined.
11694
1900040c
MS
116952002-02-04 Michael Snyder <msnyder@redhat.com>
11696
11697 * breakpoint.h (enum bptype): Add new overlay event bp type.
11698 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11699
1900040c
MS
11700 * breakpoint.c (create_internal_breakpoint): New function.
11701 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11702 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11703 (create_thread_event_breakpoint): Ditto.
11704 (create_solib_event_breakpoint): Ditto.
11705 (create_overlay_event_breakpoint): New function.
11706 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11707 (update_breakpoints_after_exec): Delete and re-initialize
11708 overlay event breakpoints after an exec. Add FIXME comment
11709 about longjmp breakpoint.
11710 (print_it_typical): Ignore overlay event breakpoints.
11711 (print_one_breakpoint): Ditto.
11712 (mention): Ditto.
11713 (bpstat_what): Do not stop for overlay event breakpoints.
11714 (delete_breakpoint): Don't delete overlay event breakpoints.
11715 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11716 (breakpoint_re_set): Re-create overlay event breakpoint.
11717
11718 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11719 (overlay_manual_command): Disable overlay breakpoints.
11720 (overlay_off_command): Disable overlay breakpoints.
11721
082fc60d
RE
117222002-02-06 Richard Earnshaw <rearnsha@arm.com>
11723
11724 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11725 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11726 to here from config/tm-arm.h.
11727 (coff_sym_is_thumb): Make static.
11728 (arm_elf_make_msymbol_special): New function.
11729 (arm_coff_make_msymbol_special): New function.
11730 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11731 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11732 (coff_sym_is_thumb): Delete declaration.
11733 (arm_elf_make_msymbol_special): Declare.
11734 (arm_coff_make_msymbol_special): Declare.
11735 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11736 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11737
039c5766
RE
117382002-02-06 Richard Earnshaw <rearnsha@arm.com>
11739
11740 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11741
117422002-02-06 Richard Earnshaw <rearnsha@arm.com>
11743
11744 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11745 * gdbarch.c gdbarch.h: Regenerate.
11746 * arch-utils.c (default_print_float_info): New function.
11747 * arch-utils.h (default_print_float_info): Prototype it.
11748 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11749 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11750 (PRINT_FLOAT_INFO): Document it.
11751
11752 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11753 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11754 (PRINT_FLOAT_INFO): Define.
11755
58fa08f0
PM
117562002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11757
aaa38bb5 11758 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11759 Add typecast to sprintf argument to suppress a warning.
11760
7393af7c
PM
117612002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11762
58fa08f0 11763 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11764 to allow easier handling of pass state.
11765 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11766 that gives exception name and address.
11767 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11768 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11769 exceptions added.
aaa38bb5
AJ
11770 (child_continue): Correctly report continue_status.
11771 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11772 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11773 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11774 the exception should be passed to debuggee or not.
11775
6af4589c
MS
117762002-02-05 Michael Snyder <msnyder@redhat.com>
11777
11778 * regcache.c (fetch_register): Call target_fetch_register
11779 only if we don't call FETCH_PSEUDO_REGISTER.
11780 (store_register): Call target_store_register only if we
11781 don't call STORE_PSEUDO_REGISTER.
11782
a2cf933a
EZ
117832002-02-05 Elena Zannoni <ezannoni@redhat.com>
11784
11785 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11786 ELF_MAKE_MSYMBOL_SPECIAL.
11787 * gdbarch.c, gdbarch.h: Regenerate.
11788 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 11789 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
11790 * elfread.c (elf_symtab_read): Compile use of
11791 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11792 multiarched.
11793 * coffread.c (coff_symtab_read): Ditto, for
11794 COFF_MAKE_MSYMBOL_SPECIAL.
11795
6bb7be43
JB
117962002-02-05 Jim Blandy <jimb@redhat.com>
11797
11798 * solib-svr4.c (svr4_truncate_ptr): New function.
11799 (svr4_relocate_section_addresses): Do the address arithmetic with
11800 the appropriate truncation for target addresses, even when
11801 CORE_ADDR is larger than a target address.
11802
e18651ec
DJ
118032002-02-05 Daniel Jacobowitz <drow@mvista.com>
11804
11805 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11806 to (int *).
11807
6b2725be
DJ
118082002-02-05 Daniel Jacobowitz <drow@mvista.com>
11809
11810 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11811 code.
11812
fca9e603
DJ
118132002-02-05 Daniel Jacobowitz <drow@mvista.com>
11814
11815 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11816
6c537a52
DJ
118172002-02-05 Daniel Jacobowitz <drow@mvista.com>
11818
11819 * gdbserver/linux-low.c: Remove unused include files.
11820
d844cde6
DJ
118212002-02-05 Daniel Jacobowitz <drow@mvista.com>
11822
11823 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11824 (read_inferior_memory): Use it.
11825 (write_inferior_memory): Likewise.
11826
d07c63e7
DJ
118272002-02-05 Daniel Jacobowitz <drow@mvista.com>
11828
11829 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11830 grubbing through sys_errlist.
11831
da6d8c04
DJ
118322002-02-05 Daniel Jacobowitz <drow@mvista.com>
11833
11834 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11835
5b421780
PM
118362002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11837 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11838
9f60d481
AC
118392002-02-04 Andrew Cagney <ac131313@redhat.com>
11840
11841 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11842 (do_sfunc, set_cmd_sfunc): New functions.
11843
11844 * command.h (struct cmd_list_element): Add field func.
11845 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11846 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11847 * cli/cli-decode.h: Ditto.
11848
11849 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11850 (help_all, help_cmd_list): Ditto.
11851 (find_cmd, complete_on_cmdlist): Ditto.
11852 * top.c (execute_command): Ditto.
11853
11854 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11855 function.sfunc.
11856
11857 * infcmd.c (notice_args_read): Fix function signature.
11858
11859 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11860 * cli/cli-decode.c (add_set_cmd): Ditto.
11861 * utils.c (initialize_utils): Ditto.
11862 * maint.c (_initialize_maint_cmds): Ditto.
11863 * infrun.c (_initialize_infrun): Ditto.
11864 * demangle.c (_initialize_demangler): Ditto.
11865 * remote.c (add_packet_config_cmd): Ditto.
11866 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11867 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11868 * proc-api.c (_initialize_proc_api): Ditto.
11869 * kod.c (_initialize_kod): Ditto.
11870 * valprint.c (_initialize_valprint): Ditto.
11871 * top.c (init_main): Ditto.
11872 * infcmd.c (_initialize_infcmd): Ditto.
11873 * corefile.c (_initialize_core): Ditto.
11874 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11875 * arch-utils.c (initialize_current_architecture): Ditto.
11876 (_initialize_gdbarch_utils): Ditto.
11877 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11878
11879 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11880 * wince.c (_initialize_inftarg): Ditto.
11881 * symfile.c (_initialize_symfile): Ditto.
11882 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11883 * language.c (_initialize_language): Ditto.
11884 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11885
f9ba0717
MS
118862002-02-04 Michael Snyder <msnyder@redhat.com>
11887
11888 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11889
0c74b2a7
DJ
118902002-02-04 Daniel Jacobowitz <drow@mvista.com>
11891
11892 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11893 Add rules for building the register data files.
11894
c638789f
DJ
118952002-02-04 Daniel Jacobowitz <drow@mvista.com>
11896
11897 * regformats/regdat.sh: Add braces to the definition of
11898 expedite_regs_${arch}.
11899
db253027
DJ
119002002-02-04 Daniel Jacobowitz <drow@mvista.com>
11901
11902 * regformats/regdef.h (struct reg): Add comment describing the
11903 requirements for offset and size fields.
11904
206be19c
AS
119052002-02-04 Andreas Schwab <schwab@suse.de>
11906
11907 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11908 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11909
181c1381
RE
119102002-02-04 Richard Earnshaw <rearnsha@arm.com>
11911
11912 * gdbarch.sh (copyright): Update years in generated header.
11913 (SMASH_TEXT_ADDRESS): Add rule.
db253027 11914 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
11915 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11916 * dbxread.c: Likewise.
11917 * dwarfread.c: Likewise.
11918 * elfread.c: Likewise.
11919 * somread.c: Likewise.
11920
11921 * arm-tdep.c (arm_smash_text_address): New function.
11922 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11923
fa4ba8da
PM
119242002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11925
11926 Add support for hardware watchpoints on win32 native.
aaa38bb5 11927 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 11928 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 11929 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
11930 of debug registers.
11931 (debug_registers_changed): New variable. Reflects when debug registers
11932 are changed and need to be written to inferior.
aaa38bb5 11933 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
11934 was set, used when new threads are created.
11935 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11936 i386-nat code.
11937 (thread_rec): Set dr array if id is the thread of current_event .
11938 (child_continue, child_resume): Change the debug registers for all
11939 threads if debug_registers_changed.
11940 (child_add_thread): Change the debug registers if debug_registers_used.
11941 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11942 Link nm.h to new nm-cygwin.h file.
11943 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11944 of hardware registers.
11945
a73c86fb
AC
119462002-02-03 Andrew Cagney <ac131313@redhat.com>
11947
11948 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11949 Restore behavour broken by 2002-01-20 Andrew Cagney
11950 <ac131313@redhat.com> IEEE_FLOAT removal.
11951
acf5ed49
DJ
119522002-02-03 Daniel Jacobowitz <drow@mvista.com>
11953
11954 * c-valprint.c (c_val_print): Pass a proper valaddr to
11955 cp_print_class_method.
11956 * valops.c (search_struct_method): If there is only one method
11957 and args is NULL, return that method.
11958
493d28d5
DJ
119592002-02-03 Daniel Jacobowitz <drow@mvista.com>
11960
11961 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11962 accessing tag_name directly.
11963
7495dfdb
DJ
119642002-02-03 Daniel Jacobowitz <drow@mvista.com>
11965
11966 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11967 of accessing tag_name directly.
11968
dd6bda65
DJ
119692002-02-03 Daniel Jacobowitz <drow@mvista.com>
11970
11971 PR gdb/280
11972 * gdbtypes.c (replace_type): New function.
11973 * gdbtypes.h (replace_type): Add prototype.
11974 * stabsread.c (read_type): Use replace_type.
11975
88fe217c
RE
119762002-02-03 Richard Earnshaw <rearnsha@arm.com>
11977
11978 * Makefile.in (memattr.o): Add missing dependencies rule.
11979
e5d66720
PS
119802002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11981
11982 * breakpoint.c (break_at_finish_command): Really export.
11983 (break_at_finish_at_depth_command): Ditto.
11984 (tbreak_at_finish_command): Ditto.
11985 * hppa-tdep.c: Include completer.h.
11986 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11987 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11988
fffee0be
AC
119892002-02-01 Andrew Cagney <ac131313@redhat.com>
11990
11991 * utils.c (do_write): New function.
11992 (error_stream): Rewrite combining the code from error_begin and
11993 verror.
11994 (verror): Rewrite using error_stream.
11995 (error_begin): Delete function.
11996
255e7dbf
AC
119972002-02-01 Andrew Cagney <ac131313@redhat.com>
11998
11999 * utils.c (error_begin): Make static.
12000 * defs.h (error_begin): Delete declaration.
12001
12002 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12003 (decode_line_1): Use cplusplus_error instead of error_begin,
12004 cplusplus_hint and return_to_top_level.
12005 * coffread.c (coff_symfile_read): Use error instead of error_begin
12006 and return_to_top_level.
12007 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12008
ddfe3c15
AC
120092002-02-01 Andrew Cagney <ac131313@redhat.com>
12010
12011 * language.h (type_error, range_error): Make string parameter
12012 constant.
12013 * language.c (warning_pre_print): Delete extern declaration.
12014 * dwarfread.c (warning_pre_print): Ditto.
12015 * language.c (type_error, range_error): Rewrite to use verror and
12016 vwarning instead of warning_begin.
12017
03ac34d5
MS
120182002-02-01 Michael Snyder <msnyder@redhat.com>
12019
261c4ca2
MS
12020 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12021 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12022
e00d1dc8
AC
120232002-02-01 Andrew Cagney <ac131313@redhat.com>
12024
12025 * command.h (NO_FUNCTION): Delete macro.
12026 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12027 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12028 * tracepoint.c (_initialize_tracepoint): Ditto.
12029 * cli/cli-decode.c (add_set_cmd): Ditto.
12030 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12031
76b79d6e
DJ
120322002-02-01 Daniel Jacobowitz <drow@mvista.com>
12033
12034 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12035 Update ``this'' pointer when calling virtual functions.
12036
799f9e91
MS
120372002-02-01 Michael Snyder <msnyder@redhat.com>
12038
c7bd442c 12039 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12040 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12041
3cf384d4
DJ
120422002-02-01 Daniel Jacobowitz <drow@mvista.com>
12043
12044 * regformats/reg-arm.dat: New file.
12045 * regformats/reg-i386.dat: New file.
12046 * regformats/reg-ia64.dat: New file.
12047 * regformats/reg-m68k.dat: New file.
12048 * regformats/reg-mips.dat: New file.
12049 * regformats/reg-ppc.dat: New file.
12050 * regformats/reg-sh.dat: New file.
12051 * regformats/regdef.h: New file.
12052 * regformats/regdat.sh: New file.
12053
0defa245
RE
120542002-02-01 Richard Earnshaw <reanrsha@arm.com>
12055
12056 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12057 (arm_frame_args_address, arm_frame_locals_address): New functions.
12058 (arm_frame_num_args): New function.
12059 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12060 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12061 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12062
405f26e6
MS
120632002-01-31 Michael Snyder <msnyder@redhat.com>
12064
502fd408
MS
12065 * breakpoint.c (break_at_finish_command): Export.
12066 (break_at_finish_at_depth_command): Export.
12067 (tbreak_at_finish_command): Export.
d6020d45 12068 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12069 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12070 "txbreak" commands, which are HPPA specific.
502fd408 12071
7d35e135
MS
12072 * printcmd.c (disassemble_command): Remove an ancient
12073 artifact of an old merge.
12074
aaa38bb5 12075 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12076 Define enum constant values for overlay mode.
12077 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12078 (overlay_is_mapped, overlay_auto_command,
12079 overlay_manual_command): Ditto.
d874f1e2 12080
aaa38bb5
AJ
12081 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12082 breakpoint_here_p, breakpoint_inserted_here_p,
12083 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12084 describe_other_breakpoints, check_duplicates, clear_command):
12085 Coding standard fixes.
12086
8add0441 12087 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12088 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12089 code: check bfd SEC_READONLY flag for section.
12090
e351066e
AC
120912002-01-31 Andrew Cagney <ac131313@redhat.com>
12092
7d35e135 12093 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12094
8a48e967
DJ
120952002-01-30 Daniel Jacobowitz <drow@mvista.com>
12096
12097 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12098 data symbols, since we search based on textlow and texthigh.
12099 (find_pc_sect_symtab): Likewise.
12100
f5a96129
AC
121012002-01-30 Andrew Cagney <ac131313@redhat.com>
12102
12103 * defs.h (vwarning): Declare.
f5a96129
AC
12104 * utils.c (vwarning): New function.
12105 (warning): Call vwarning.
12106 (warning_begin): Delete function.
12107
12108 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12109 the warning message.
12110 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12111 warning_begin.
12112
cefd4ef5
MS
121132002-01-30 Michael Snyder <msnyder@redhat.com>
12114
1a703748
MS
12115 * NEWS: Mention "set trust-readonly-sections" command.
12116 Mention generate-core-file command.
cefd4ef5 12117
3a11626d
MS
121182002-01-15 Michael Snyder <msnyder@redhat.com>
12119
12120 * target.c: New command, "set trust-readonly-sections on".
12121 (do_xfer_memory): Honor the suggestion to trust readonly sections
12122 by reading them from the object file instead of from the target.
12123 (initialize_targets): Register command "set trust-readonly-sections".
12124
d1c7e53b
AC
121252002-01-29 Andrew Cagney <ac131313@redhat.com>
12126
12127 * parse.c (target_map_name_to_register): Simplify, search regs and
12128 pseudo-regs using a single loop.
12129
e2c9a72c
AC
121302002-01-30 Andrew Cagney <ac131313@redhat.com>
12131
12132 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12133
69824b4e
MK
121342002-01-15 Rodney Brown <rbrown64@csc.com.au>
12135
12136 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12137 * config/i386/i386v42mp.mh: Add i387-nat.o .
12138 * i386v4-nat.c: Include i387-nat.h.
12139 (supply_fpregset): Use i387_supply_fsave.
12140 (fill_fpregset): Use i387_fill_fsave.
12141
6eb69eab
RE
121422002-01-30 Richard Earnshaw <rearnsha@arm.com>
12143
12144 * arm-tdep.c (arm_call_dummy_words): Define.
12145 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12146 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12147 (CALL_DUMMY_WORDS): Define.
12148 (arm_call_dummy_words): Declare.
12149 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12150 (arm_linux_call_dummy_words): Declare.
12151
9852326a
AS
121522002-01-30 Andreas Schwab <schwab@suse.de>
12153
12154 * m68klinux-nat.c: Fix last change to use regcache_collect
12155 instead of referencing registers[] directly.
12156
977a3030
AC
121572002-01-29 Andrew Cagney <ac131313@redhat.com>
12158
12159 * parse.c (target_map_name_to_register): Delete code wrapped in
12160 #ifdef REGISTER_NAME_ALIAS_HOOK.
12161
2076c72b
MS
121622002-01-28 Michael Snyder <msnyder@redhat.com>
12163
12164 * regcache.c (legacy_read_register_gen): Need to be able to
12165 read pseudo-register as well as real register.
12166 (legacy_write_register_gen): Ditto.
12167
8fcc723b
AC
121682002-01-28 Andrew Cagney <ac131313@redhat.com>
12169
12170 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12171 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12172 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12173 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12174 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12175 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12176 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12177 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12178 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12179 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12180 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12181 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12182 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12183 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12184 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12185 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12186 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12187 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12188 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12189 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12190
afe64c1a
AC
121912002-01-28 Andrew Cagney <ac131313@redhat.com>
12192
12193 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12194 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12195 (initialize_current_architecture): Update target_byte_order using
12196 information from BFD.
aaa38bb5 12197 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12198 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12199
75bc7ddf
AC
122002002-01-28 Andrew Cagney <ac131313@redhat.com>
12201
12202 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12203 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12204
12205 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12206 #ifdef INVALID_FLOAT.
12207 * infcmd.c (do_registers_info): Ditto.
12208 * values.c (unpack_double): Ditto. Add comment.
12209
12210 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12211 already commented out.
12212
0280a90a
AS
122132002-01-26 Andreas Schwab <schwab@suse.de>
12214
12215 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12216 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12217 registers and add support for PTRACE_GETREGS.
12218
7072a954
AC
122192002-01-24 Andrew Cagney <ac131313@redhat.com>
12220
12221 GDB 5.1.1 released from 5.1 branch.
12222 * NEWS: Add 5.1.1 news.
12223 * README: Sync with 5.1 branch.
12224
86f902e0
FF
122252002-01-23 Fred Fish <fnf@redhat.com>
12226
12227 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12228 stabstring on initial malloc. Reallocing will copy it for us,
12229 if necessary.
12230
8af51c36
EZ
122312002-01-23 Elena Zannoni <ezannoni@redhat.com>
12232
aaa38bb5 12233 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12234 (HFILES_NO_SRCDIR): Remove hpread.h.
12235 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12236 (hpread.o): Update dependencies.
12237 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12238
12239 * hp-psymtab-read.c: Remove file.
12240 * hp-symtab-read.c: Remove file.
12241 * hpread.h: Remove file.
12242
12243 * hpread.c: Merge all contents of hp-psymtab-read.c,
12244 hp-symtab-read.c and hpread.h into this file, as it was prior to
12245 January 1999.
12246
12247 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12248 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12249 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12250 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12251
dc5cfeb6
EZ
122522002-01-23 Elena Zannoni <ezannoni@redhat.com>
12253
12254 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12255 fill_gregset): Call gdbarch_tdep() just once, assign result to
12256 variable and use that, instead of calling the function several
12257 times.
12258
ea87b71b
AO
122592002-01-24 Alexandre Oliva <aoliva@redhat.com>
12260
12261 * configure.host: Accept sparcv9 as alias for sparc64.
12262 * configure.tgt: Likewise.
12263
13fc0c2f
KB
122642002-01-22 Kevin Buettner <kevinb@redhat.com>
12265
12266 * solib-aix5.c (build_so_list_from_mapfile)
12267 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12268 arguments is not reversed.
12269 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12270 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12271
7bd872fe
EZ
122722002-01-22 Elena Zannoni <ezannoni@redhat.com>
12273
12274 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12275 modified version of obsolete sh_fetch_pseudo_register.
12276 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12277 (sh4_register_read): New function.
12278 (sh_pseudo_register_write): New function. Renamed and modified
12279 version of obsolete sh_store_pseudo_register.
12280 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12281 (sh4_register_write): New function.
12282 (sh_gdbarch_init): Remove setting of gdbarch function
12283 fetch_pseudo_register and store_pseudo_register. Remove setting of
12284 register_convert_to_raw, register_convert_to_virtual,
12285 register_convertible.
12286 (sh_sh4_register_convertible): Delete. No longer needed. All is
12287 taken care by architecture specific functions
12288 register_read/register_write.
12289 (sh_sh4_register_convert_to_virtual): Make static.
12290 (sh_sh4_register_convert_to_raw): Ditto.
12291
069e84fd
AC
122922002-01-22 Andrew Cagney <ac131313@redhat.com>
12293
12294 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12295 (floatformat_is_nan, floatformat_mantissa): Ditto.
12296
12297 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12298 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12299 builtin_type_ieee_double_little,
12300 builtin_type_ieee_double_littlebyte_bigword,
12301 builtin_type_m68881_ext, builtin_type_i960_ext,
12302 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12303 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12304 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12305 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12306
211a4f69
CV
123072002-01-22 Corinna Vinschen <vinschen@redhat.com>
12308
12309 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12310 parameter. Set frameless flag if it exists and depended of
12311 whether the scanned function is frameless or not.
12312 (xstormy16_skip_prologue): If function is frameless, return
12313 result of xstormy16_scan_prologue().
12314 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12315 call.
12316
f81353e4
EZ
123172002-01-21 Elena Zannoni <ezannoni@redhat.com>
12318
12319 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12320 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12321 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12322 sh_sh4_register_byte, sh_sh4_register_raw_size,
12323 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12324 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12325 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12326 sh_store_pseudo_register, sh_do_pseudo_register): Call
12327 gdbarch_tdep() just once, assign result to variable and use that,
12328 instead of calling the function several times.
12329
63c73a17
MK
123302002-01-20 Mark Kettenis <kettenis@gnu.org>
12331
12332 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12333 macros instead of LAST_FPU_CTRL_REGNUM.
12334 (store_register): Likewise.
12335
39ad761d
JB
123362002-01-21 Jim Blandy <jimb@redhat.com>
12337
12338 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12339 is up-to-date before running the program, not just when a program
12340 exits.
12341
3d74b771
FF
123422002-01-21 Fred Fish <fnf@redhat.com>
12343
12344 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12345 when we have found all instructions we are looking for.
12346
966fbf70
RE
123472002-01-21 Richard Earnshaw <rearnsha@arm.com>
12348
12349 * arm-tdep.c (arm_register_name): New function.
12350 (arm_registers_names): Make static.
12351 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12352 (arm_register_name): Declare.
12353 (REGISTER_NAME): Use it.
12354
c3b4394c
RE
123552002-01-21 Richard Earnshaw <rearnsha@arm.com>
12356 Kevin Buettner <kevinb@redhat.com>
12357
12358 Convert arm targets to new FRAME interface.
12359 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12360 (arm_frame_find_save_regs): Delete.
12361 (arm_frame_init_saved_regs): New.
12362 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12363 Allocate extra_info as required. Convert all uses of fsr.regs
12364 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12365 to use extra_info.
12366 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12367 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12368 (check_prologue_cache, save_prologue_cache): Likewise.
12369 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12370 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12371 (FRAME_FIND_SAVED_REGS): Delete.
12372 (arm_frame_find_saved_regs): Delete prototype.
12373 (arm_frame_init_saved_regs): New prototype.
12374 (FRAME_INIT_SAVED_REGS): Define.
12375
61d99182
AC
123762002-01-20 Andrew Cagney <ac131313@redhat.com>
12377
12378 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12379
6aaea291
AC
123802002-01-20 Andrew Cagney <ac131313@redhat.com>
12381
12382 From Jeff Law <law@redhat.com>:
12383 * infttrace.c: Include <sys/pstat.h>.
12384 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12385 exec file if the ttrace equivalent fails.
12386
15f698d2
AC
123872002-01-20 Andrew Cagney <ac131313@redhat.com>
12388
12389 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12390 (closeLogFile): Ditto.
12391
f86ddd7c
MC
123922002-01-20 Michael Chastain <mec@shout.net>
12393
12394 * top.c (print_gdb_version): Bump copyright year to 2002.
12395
904507ce
AC
123962002-01-20 Andrew Cagney <ac131313@redhat.com>
12397
12398 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12399 Zannoni and Eli Zaretskii.
12400
d7f0b9ce
DJ
124012002-01-20 Daniel Jacobowitz <drow@mvista.com>
12402
12403 * buildsym.c: Update copyright years.
12404 * c-typeprint.c: Likewise.
12405 * dwarf2read.c: Likewise.
12406 * f-typeprint.c: Likewise.
12407 * gdbtypes.c: Likewise.
12408 * gdbtypes.h: Likewise.
12409 * hp-symtab-read.c: Likewise.
12410 * hpread.c: Likewise.
12411 * mdebugread.c: Likewise.
12412 * p-typeprint.c: Likewise.
12413
3fd3d7d2
AC
124142002-01-20 Andrew Cagney <ac131313@redhat.com>
12415
12416 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12417 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12418 byte-order selectable.
12419 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12420 * arch-utils.c: Ditto.
12421 (set_endian): Ditto.
12422 (set_endian_from_file): Ditto.
12423 * gdbserver/low-sim.c (create_inferior): Ditto.
12424 * gdbarch.sh: Ditto.
12425 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12426 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12427 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12428 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12429 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12430 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12431 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12432 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12433 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12434 macro definition.
12435 * config/mips/tm-wince.h: Remove #undef of macro
12436 TARGET_BYTE_ORDER_SELECTABLE.
12437 * config/sh/tm-wince.h: Ditto.
12438
b02dede2
DJ
124392002-01-20 Daniel Jacobowitz <drow@mvista.com>
12440
12441 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12442 member function fields. Add accessor macro
12443 TYPE_FN_FIELD_ARTIFICIAL.
12444 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12445 * c-typeprint.c (c_type_print_base): Skip artificial member
12446 functions.
12447
c3643761
DJ
124482002-01-20 Daniel Jacobowitz <drow@mvista.com>
12449
12450 * f-typeprint.c: Delete unused function f_type_print_args.
12451 * p-typeprint.c: Delete unused function pascal_type_print_args.
12452
8176bb6d
DJ
124532002-01-20 Daniel Jacobowitz <drow@mvista.com>
12454
12455 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12456 comment. Add ``artificial'' to ``union field_location''.
12457
12458 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12459
12460 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12461 * mdebugread.c (parse_symbol): Likewise.
12462 * stabsread.c (define_symbol): Likewise.
12463 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12464 initializing TYPE_FIELD_BITPOS to n (obsolete).
12465 (hpread_doc_function_type): Likewise.
12466 * hpread.c (hpread_function_type): Likewise.
12467
7fd60527
AC
124682002-01-20 Andrew Cagney <ac131313@redhat.com>
12469
12470 * configure.in (host_makefile_frag): Only require a host makefile
12471 fragment when a native build.
12472 * configure: Re-generate.
12473
c2f05ac9
AC
124742002-01-20 Andrew Cagney <ac131313@redhat.com>
12475
12476 * doublest.h (floatformat_from_type): Declare.
12477 * doublest.c (floatformat_from_type): New function.
12478 (convert_typed_floating): Use.
12479
12480 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12481 call to function floatformat_from_type.
12482
12483 * gdbarch.sh (IEEE_FLOAT): Delete.
12484 * gdbarch.h, gdbarch.c: Re-generate.
12485 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12486 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12487 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12488 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12489 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12490 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12491 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12492 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12493 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12494 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12495 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12496 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12497
12498 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12499 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12500 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12501 * sh-tdep.c (sh_gdbarch_init): Ditto.
12502 * mips-tdep.c (mips_gdbarch_init): Ditto.
12503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12504 * cris-tdep.c (cris_gdbarch_init): Ditto.
12505
abf22e64
AJ
125062002-01-20 Jiri Smid <smid@suse.cz>
12507
12508 * configure.host, configure.tgt: Support x86-64.
12509 * NEWS: Note new target x86-64.
12510
b7c4cbf8
AJ
12511 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12512 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12513 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12514 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12515 x86-64-linux-nat.o): Fix dependencies.
12516
82600034
AC
125172002-01-19 Andrew Cagney <ac131313@redhat.com>
12518
12519 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12520 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12521 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12522 * config/sparc/xm-sun4os4.h: Delete file.
12523 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12524
bbe5c628
AC
125252002-01-19 Andrew Cagney <ac131313@redhat.com>
12526
12527 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12528 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12529 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12530 * config/i386/i386lynx.mh (XM_FILE): Delete.
12531 * config/rs6000/xm-rs6000ly.h: Delete file.
12532 * config/sparc/xm-sparclynx.h: Delete file.
12533 * config/m68k/xm-m68klynx.h: Delete file.
12534 * config/i386/xm-i386lynx.h: Delete file.
12535 * config/xm-lynx.h: Delete file.
12536 * config/djgpp/fnchange.lst: Update.
12537
f8453e34
JT
125382002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12539
12540 * alpha-tdep.c (alpha_register_byte): New function.
12541 (alpha_register_raw_size): Ditto.
12542 (alpha_register_virtual_size): Ditto.
12543 (alpha_skip_prologue_internal): Renamed from
12544 alpha_skip_prologue.
12545 (alpha_skip_prologue): New version that calls
12546 alpha_skip_prologue_internal.
12547 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12548 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12549 second argument from alpha_skip_prologue.
12550 (REGISTER_BYTE): Use alpha_register_byte.
12551 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12552 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12553 (FRAMELESS_FUNCTION_INVOCATION): Use
12554 generic_frameless_function_invocation_not.
12555 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12556 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12557
52d9e613
AC
125582002-01-19 Andrew Cagney <ac131313@redhat.com>
12559
12560 * config/mips/xm-news-mips.h: Delete file.
12561 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12562
12563 * config/m88k/xm-m88k.h: Delete file.
12564 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12565 * config/m88k/xm-delta88v4.h: Ditto.
12566 * config/m88k/xm-delta88.h: Ditto.
12567
12568 * config/alpha/xm-fbsd.h: Delete file.
12569 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12570
12571 * config/sparc/xm-sparc.h: Delete file.
12572 * Makefile.in (xm-sun4os4.h): Delete dependency.
12573 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12574 * config/sparc/xm-sun4os4.h: Ditto.
12575 * config/sparc/xm-linux.h: Ditto.
12576
12577 * config/i386/xm-windows.h: Delete file.
12578
2d1b2124
AC
125792002-01-19 Andrew Cagney <ac131313@redhat.com>
12580
12581 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12582 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12583
ee1f65f0
JT
125842002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12585
12586 * alpha-tdep.c (alpha_call_dummy_words): New.
12587 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12588 (CALL_DUMMY_P): Define.
12589 (CALL_DUMMY_WORDS): Define.
12590 (SIZEOF_CALL_DUMMY_WORDS): Define.
12591
98081e55
PB
125922002-01-19 Per Bothner <per@bothner.com>
12593
12594 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12595 isn't NULL, which can happen with some gcj-3.x-produced code.
12596
0d056799
JT
125972002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12598
12599 * alpha-tdep.c (alpha_register_virtual_type): New function.
12600 (alpha_init_frame_pc_first): Ditto.
12601 (alpha_fix_call_dummy): Ditto.
12602 (alpha_store_struct_return): Ditto.
12603 (alpha_extract_struct_value_address): Ditto.
12604 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12605 alpha_register_virtual_type.
12606 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12607 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12608 alpha_extract_struct_value_address.
12609 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12610 (INIT_FRAME_PC): Use init_frame_pc_noop.
12611 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12612
4604bcad
MK
126132002-01-19 Mark Kettenis <kettenis@gnu.org>
12614
12615 * i386gnu-nat.c: Include "i386-tdep.h".
12616 (fetch_fpregs): Simplify code dealing with uninitialized floating
12617 point states such that it doesn't require FP7_REGNUM.
12618
140f9984
JT
126192002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12620
abf22e64
AJ
12621 * alpha-tdep.c (frame_extra_info): New.
12622 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12623 frame->extra_info.
12624 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12625 (alpha_frame_saved_pc): Use frame->extra_info.
12626 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12627 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12628 (init_extra_frame_info): Rename to...
12629 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12630 (alpha_print_extra_frame_info): New function.
140f9984
JT
12631 (alpha_frame_locals_address): Ditto.
12632 (alpha_frame_args_address): Ditto.
abf22e64 12633 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12634 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12635 alpha_frame_args_address.
abf22e64 12636 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12637 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12638 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12639 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12640 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12641 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12642
d734c450
JT
126432002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12644
12645 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12646 (alpha_cannot_fetch_register): Ditto.
12647 (alpha_cannot_store_register): Ditto.
12648 (alpha_register_convertible): Ditto.
12649 (alpha_use_struct_convention): Ditto.
12650 * config/alpha/tm-alpha.h: Update copyright years.
12651 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12652 (INNER_THAN): Use core_addr_lessthan.
12653 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12654 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12655 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12656 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12657 (FRAME_CHAIN): Remove unnecessary cast.
12658
b4ceaee6
AC
126592002-01-18 Andrew Cagney <ac131313@redhat.com>
12660
12661 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12662 obsolete.
12663
0a65a603
AC
126642002-01-18 Andrew Cagney <ac131313@redhat.com>
12665
12666 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12667 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12668 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12669 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12670 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12671 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12672 * x86-64-linux-nat.c: Ditto.
12673
636a6dfc
JT
126742002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12675
abf22e64 12676 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12677 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12678 (REGISTER_NAME): Define.
12679
acceddb6
JT
126802002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12681
12682 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12683
ec32e4be
JT
126842002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12685
12686 * alpha-tdep.c: Update copyright years.
12687 (alpha_next_pc): New function.
12688 (alpha_software_single_step): Ditto.
12689 * config/alpha/tm-alpha.h: Add prototype for
12690 alpha_software_single_step.
12691
e771a871
JT
126922002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12693
12694 * alphabsd-nat.c: Update copyright years.
12695 (fill_gregset): Use regcache_collect.
12696 (fill_fpregset): Likewise.
12697 (fetch_inferior_registers): Only fetch integer registers
12698 if requested to do so.
12699 (store_inferior_registers): Only store integer registers
12700 if requested to do so.
12701
7708fa01
AC
127022002-01-17 Andrew Cagney <ac131313@redhat.com>
12703
12704 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12705 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12706 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12707 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12708 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12709 * config/arm/linux.mh (XDEPFILES): Delete.
12710 * config/arm/nbsd.mh (XDEPFILES): Delete.
12711 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12712 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12713 * config/i386/i386m3.mh (XDEPFILES): Delete.
12714 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12715 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12716 * config/i386/fbsd.mh (XDEPFILES): Delete.
12717 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12718 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12719 * config/i386/i386v4.mh (XDEPFILES): Delete.
12720 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12721 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12722 * config/i386/i386aix.mh (XDEPFILES): Delete.
12723 * config/i386/go32.mh (XDEPFILES): Delete.
12724 * config/i386/cygwin.mh (XDEPFILES): Delete.
12725 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12726 * config/i386/i386mach.mh (XDEPFILES): Delete.
12727 * config/i386/i386v32.mh (XDEPFILES): Delete.
12728 * config/i386/linux.mh (XDEPFILES): Delete.
12729 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12730 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12731 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12732 * config/i386/i386sco.mh (XDEPFILES): Delete.
12733 * config/i386/i386v.mh (XDEPFILES): Delete.
12734 * config/i386/nbsd.mh (XDEPFILES): Delete.
12735 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12736 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12737 * config/i386/symmetry.mh (XDEPFILES): Delete.
12738 * config/i386/obsd.mh (XDEPFILES): Delete.
12739 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12740 * config/ia64/linux.mh (XDEPFILES): Delete.
12741 * config/ia64/aix.mh (XDEPFILES): Delete.
12742 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12743 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12744 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12745 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12746 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12747 * config/m68k/linux.mh (XDEPFILES): Delete.
12748 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12749 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12750 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12751 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12752 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12753 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12754 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12755 * config/m88k/delta88.mh (XDEPFILES): Delete.
12756 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12757 * config/m88k/m88k.mh (XDEPFILES): Delete.
12758 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12759 * config/mips/linux.mh (XDEPFILES): Delete.
12760 * config/mips/irix6.mh (XDEPFILES): Delete.
12761 * config/mips/irix5.mh (XDEPFILES): Delete.
12762 * config/mips/irix4.mh (XDEPFILES): Delete.
12763 * config/mips/irix3.mh (XDEPFILES): Delete.
12764 * config/mips/decstation.mh (XDEPFILES): Delete.
12765 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12766 (NATDEPFILES): Move core-aout.o to here.
12767 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12768 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12769 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12770 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12771 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12772 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12773 * config/pa/hpux11.mh (XDEPFILES): Delete.
12774 * config/powerpc/aix.mh (XDEPFILES): Delete.
12775 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12776 * config/powerpc/linux.mh (XDEPFILES): Delete.
12777 * config/romp/rtbsd.mh: Rename XDEPFILES.
12778 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12779 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12780 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12781 * config/s390/s390.mh (XDEPFILES): Delete.
12782 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12783 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12784 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12785 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12786 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12787 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12788 * config/sparc/linux.mh (XDEPFILES): Delete.
12789 * config/vax/vaxult.mh (XDEPFILES): Delete.
12790 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12791 * Makefile.in (DEPFILES): Remove XDEPFILES.
12792
375fc983
AC
127932002-01-17 Andrew Cagney <ac131313@redhat.com>
12794
12795 * utils.c (internal_verror): Fix comments, default is yes not no.
12796 Update queries to match. Default to quit and dump core.
12797
8926118c
AC
127982002-01-17 Andrew Cagney <ac131313@redhat.com>
12799
12800 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12801 copyright.
12802 * defs.h, event-top.c, gdbcmd.h: Ditto.
12803 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12804 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12805 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12806 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12807 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12808 * mi/mi-main.c:Ditto.
12809
12810 * stack.c, symfile.c: Update copyright.
12811
45b7b345
DJ
128122002-01-17 Daniel Jacobowitz <drow@mvista.com>
12813
db728ff7
DJ
12814 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12815 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12816 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12817 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 12818
db728ff7
DJ
128192002-01-17 Daniel Jacobowitz <drow@mvista.com>
12820
12821 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12822 * gdbserver/low-lynx.c (myattach): Likewise.
12823 * gdbserver/low-nbsd.c (myattach): Likewise.
12824 * gdbserver/low-sim.c (myattach): Likewise.
12825 * gdbserver/low-sparc.c (myattach): Likewise.
12826 * gdbserver/low-sun3.c (myattach): Likewise.
12827
12828 * gdbserver/low-linux.c (myattach): New function.
45b7b345 12829
db728ff7 12830 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
12831 (main): Handle "--attach".
12832
8de3c354
AC
128332002-01-16 Andrew Cagney <ac131313@redhat.com>
12834
12835 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12836 maintainer.
12837
b0129042
DJ
128382002-01-15 Daniel Jacobowitz <drow@mvista.com>
12839
12840 * c-typeprint.c (is_type_conversion_operator): Add additional
12841 check for non-conversion operators.
12842
ba8679fb 128432002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
12844
12845 * linux-proc.c: Add "info proc" command, a la procfs.c.
12846 (read_mapping): New function, abstract and re-use code.
12847 (linux_find_memory_regions): Use new func read_mapping.
12848 (linux_info_proc_cmd): New function, implement "info proc".
12849 (_initialize_linux_proc): Add new command "info proc".
12850
e4f9b4d5
MS
128512002-01-15 Michael Snyder <msnyder@redhat.com>
12852
12853 * symfile.c (generic_load): Use bfd_map_over_sections method
12854 instead of manipulating bfd structure members directly.
12855 (add_section_size_callback): New function, bfd sections callback
12856 used by generic_load.
12857 (load_sections_callback): New function, bfd sections callback
12858 used by generic_load.
12859
08cf96df
EZ
128602002-01-15 Elena Zannoni <ezannoni@redhat.com>
12861
abf22e64 12862 [Based on work by Jim Blandy]
08cf96df
EZ
12863 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12864 (builtin_type_vec128): Export.
12865 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12866 types.
12867 (builtin_type_vec128): New builtin type for 128 bit vector
12868 registers.
12869 (build_gdbtypes): Initialize builtin_type_v16qi and
12870 builtin_type_v8hi. Create the vec128 register builtin type
12871 structure.
12872 (build_builtin_type_vec128): New function.
abf22e64 12873 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
12874 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12875 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12876 AltiVec register to new builtin type.
12877
d7242108
DJ
128782001-01-15 Daniel Jacobowitz <drow@mvista.com>
12879
12880 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12881 to make_cv_type.
12882
4ee3352d
AC
128832002-01-14 Andrew Cagney <ac131313@redhat.com>
12884
12885 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12886 CLEAN_UP_REGISTER_VALUE.
12887 * regcache.c (supply_register): Update only call.
12888
f015b2e7
AC
128892002-01-14 Andrew Cagney <ac131313@redhat.com>
12890
12891 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12892 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12893 a29k-*-vxworks* targets as obsolete.
12894
356ae49d
MS
128952002-01-14 Michael Snyder <msnyder@redhat.com>
12896
12897 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12898 until we can resolve portability issues.
12899 * gregset.h: Remove references to fpxregs.
12900 * gcore.c (gcore_command): Initialize note_sec to NULL.
12901
ade8f45e
AC
129022002-01-13 Andrew Cagney <ac131313@redhat.com>
12903
12904 * signals.c (target_signal_to_name): Rewrite. Only use
12905 signals[].name when in bounds and non-NULL.
abf22e64 12906
89c49e7a
AC
129072002-01-13 Andrew Cagney <ac131313@redhat.com>
12908
12909 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12910 * signals.c (target_signal_to_name): Verify that SIG is within the
12911 bounds of the signals array.
12912
4daa9f9f
AC
129132002-01-13 Andrew Cagney <ac131313@redhat.com>
12914
12915 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12916
ba4bbdcb
KS
129172002-01-13 Keith Seitz <keiths@redhat.com>
12918
12919 * stack.c (print_frame_info_base): Print the frame's pc
12920 only if when print_frame_info_listing_hook is not defined.
12921
575bbeb6
KS
129222002-01-13 Keith Seitz <keiths@redhat.com>
12923
12924 * varobj.c (varobj_set_value): Make sure that there were no
12925 errors evaluating the object before attempting to set its
12926 value.
12927 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12928 so this offset adjustment is no longer necessary.
12929 (create_child): Don't set the error flag if the child is
12930 a CPLUS_FAKE_CHILD.
12931 (value_of_child): If value_fetch_lazy fails, return NULL
12932 so that callers will be notified that an error occurred.
12933 (c_value_of_variable): Delay check of variable's validity
12934 until later. We actually want all structs and unions to have
12935 the value "{...}".
12936 Do not return "???" for variables which could not be evaluated.
12937 This error condition must be returned to the caller so that it
12938 can get the error condition from gdb.
12939 (cplus_name_of_child): Adjust index for vptr before figuring
12940 out the name of the child.
12941 (cplus_value_of_child): If a child's (real) parent is not valid,
12942 don't even bother trying to give a value for it. Just return
12943 an error. Change all instances in this function.
12944 (cplus_type_of_child): If our parent is one of the "fake"
12945 parents, we need to get at the type of the real parent, and
12946 derive the child's true type using this information.
12947
b76898ab
AC
129482002-01-13 Andrew Cagney <ac131313@redhat.com>
12949
12950 From 2002-01-09 John Marshall <johnm@falch.net>:
12951 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12952 sources.redhat.com, and tweak some related URLs which had
12953 suffered from linkrot.
12954
b6649e88
AC
129552002-01-13 Andrew Cagney <ac131313@redhat.com>
12956
12957 From Jeff law:
12958 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12959 structures passed in registers.
12960
82cc5033
EZ
129612002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12962
12963 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12964 white space which prevented compilation. Reported by DSK
12965 <dsk@student.unsw.edu.au>.
12966
ba5f2f8a
MS
129672002-01-11 Michael Snyder <msnyder@redhat.com>
12968
fbd35540
MS
12969 * symfile.c (build_section_addr_info_from_section_tab):
12970 Use bfd access method instead of manipulating bfd directly.
12971 (syms_from_objfile): Ditto.
12972 (simple_overlay_update_1): Ditto.
12973 (simple_overlay_update): Ditto.
12974 (generic_load): Ditto.
12975 (overlay_unmapped_address): FIXME comment, bfd access methods.
12976 (sections_overlap): FIXME comment, bfd access methods.
12977 (pc_in_mapped_range): FIXME comment, bfd access methods.
12978 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12979 (section_is_mapped): FIXME comment, bfd access methods.
12980 (section_is_overlay): FIXME comment, bfd access methods.
12981
ba5f2f8a
MS
12982 * symfile.c (generic_load): Whitespace and long line cleanups.
12983 Remove duplicate variable, change several local variables to
12984 more appropriate data types.
12985 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12986
17df2af6
AC
129872002-01-12 Andrew Cagney <ac131313@redhat.com>
12988
12989 From Peter Schauer:
12990 * language.c (longest_local_hex_string_custom): Use phex_nz to
12991 convert NUM to a hex string.
12992
ec920329
EZ
129932002-01-12 Elena Zannoni <ezannoni@redhat.com>
12994
12995 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12996 the function.
538a76d6 12997 Update Copyright year.
ec920329 12998
3abd2e01
AC
129992002-01-12 Andrew Cagney <ac131313@redhat.com>
13000
13001 * language.c (longest_raw_hex_string): Delete unused function.
13002
b21b22e0
PS
130032002-01-11 Petr Sorfa <petrs@caldera.com>
13004
13005 * MAINTAINERS (write-after-approval): Add myself.
13006 * dwarf2read.c (read_tag_string_type): Handling of
13007 DW_AT_byte_size.
13008 (read_tag_string_type): FORTRAN fix to prevent propagation of
13009 first string size.
13010 (set_cu_language): Handling of DW_LANG_Fortran95
13011
747fe712
RE
130122002-01-11 Richard Earnshaw <rearnsha@arm.com>
13013
13014 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13015 GETPID(inferior_ptid).
13016 (store_inferior_registers): Likewise.
13017
f1bea926
JM
130182002-01-10 Jason Merrill <jason@redhat.com>
13019
13020 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13021 Fix DW_OP_minus.
13022
ae940673
AC
130232002-01-10 Andrew Cagney <ac131313@redhat.com>
13024
13025 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13026 and bfd/elf32-sh-nbsd.c.
13027
00546b04
MS
130282002-01-10 Michael Snyder <msnyder@redhat.com>
13029
352ed7b4
MS
13030 * NEWS: Mention --pid and corefile/proc-id behavior change.
13031
c18be923
MS
13032 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13033 * gcore.c: Include cli/cli-decode.h instead of command.h.
13034
00546b04
MS
13035 * main.c (captured_main): Add new command line option "--pid".
13036 If the second command line argument (following the symbol-file)
13037 begins with a digit, try to attach to it before trying to open
13038 it as a corefile.
13039 (print_gdb_help): Document the "--pid" argument.
13040
db60ec62
EZ
130412002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13042
13043 * completer.c (command_completer): New function.
13044
13045 * completer.h <command_completer>: Add prototype.
13046
13047 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13048 completer for the "help" command.
13049
39c22d1a
JM
130502002-01-09 Jason Merrill <jason@redhat.com>
13051
13052 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13053
c564377f
MS
130542002-01-09 Michael Snyder <msnyder@redhat.com>
13055
975aec09
MS
13056 * i386-linux-nat.c (fill_fpxregset): Make global.
13057 (store_fpxregset): Ditto.
13058
db4a10fa
MS
13059 * gregset.h (gdb_fpxregset_t): Define.
13060 (supply_fpxregset): Prototype.
13061 (fill_fpxregset): Prototype.
13062
c564377f
MS
13063 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13064
c3d45d70
RE
130652002-01-09 Richard Earnshaw <rearnsha@arm.com>
13066
13067 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13068 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13069 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13070
fcc87af1
AC
130712002-01-09 Andrew Cagney <ac131313@redhat.com>
13072
13073 * MAINTAINERS: Update target maintainer rules so that any
13074 Maintainer can approve a tested patch for a maintenance-only
13075 target.
13076
dd96c05b
RE
130772002-01-09 Richard Earnshaw <rearnsha@arm.com>
13078
d4297db9 13079 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13080
d4297db9 13081 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13082 IN_SIGTRAMP.
13083
145fdc6e
MS
130842002-01-08 Michael Snyder <msnyder@redhat.com>
13085
13086 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13087 real name of the executable, rather than the /proc name.
13088
be4d1333
MS
130892002-01-03 Michael Snyder <msnyder@redhat.com>
13090
13091 Implement a "generate-core-file" command in gdb, save target state.
13092 * gcore.c: New file. Implement new command 'generate-core-file'.
13093 Save a corefile image of the current state of the inferior.
13094 * linux-proc.c: Add linux-specific code for saving corefiles.
13095 * target.h (struct target_ops): Add new target vectors for saving
13096 corefiles; to_find_memory_regions and to_make_corefile_notes.
13097 (target_find_memory_regions): New macro.
13098 (target_make_corefile_notes): New macro.
13099 * target.c (update_current_target): Inherit new target methods.
13100 (dummy_find_memory_regions): New place-holder method.
13101 (dummy_make_corefile_notes): New place-holder method.
13102 (init_dummy_target): Initialize new dummy target vectors.
13103 * exec.c (exec_set_find_memory_regions): New function.
13104 Allow the exec_ops vector for memory regions to be taken over.
13105 (exec_make_note_section): New function, target vector method.
13106 * defs.h (exec_set_find_memory_regions): Export prototype.
13107 * procfs.c (proc_find_memory_regions): New function, corefile method.
13108 (procfs_make_note_section): New function, corefile method.
13109 (init_procfs_ops): Set new target vector pointers.
13110 (find_memory_regions_callback): New function.
13111 (procfs_do_thread_registers): New function.
13112 (procfs_corefile_thread_callback): New function.
13113 * sol-thread.c (sol_find_memory_regions): New function.
13114 (sol_make_note_section): New function.
13115 (init_sol_thread_ops): Initialize new target vectors.
13116 * inftarg.c (inftarg_set_find_memory_regions): New function.
13117 Allow to_find_memory_regions vector to be taken over.
13118 (inftarg_set_make_corefile_notes): New function.
13119 Allow to_make_corefile_notes vector to be taken over.
13120 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13121 interface layer if not target_has_execution (may be a corefile).
13122 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13123 * config/sparc/sun4sol2.mh: Ditto.
13124 * config/alpha/alpha-linux.mh: Ditto.
13125 * config/arm/linux.mh: Ditto.
13126 * config/i386/x86-64linux.mh: Ditto.
13127 * config/ia64/linux.mh: Ditto.
13128 * config/m68k/linux.mh: Ditto.
13129 * config/mips/linux.mh: Ditto.
13130 * config/powerpc/linux.mh: Ditto.
13131 * config/sparc/linux.mh: Ditto.
13132
c6b92abd
MS
131332002-01-07 Michael Snyder <msnyder@redhat.com>
13134
13135 * arm-linux-nat.c: Remove references to regcache.c internal data
13136 (registers[] and register_valid[]).
13137
4b09dc8c
MS
131382002-01-07 Michael Snyder <msnyder@redhat.com>
13139
abf22e64
AJ
13140 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13141 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13142 symbol file and shlibs.
13143 * Makefile.in: Add rule for linux-proc.o.
13144 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13145 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13146 * config/arm/linux.mh: Ditto.
13147 * config/i386/linux.mh: Ditto.
13148 * config/i386/x86-64linux.mh: Ditto.
13149 * config/ia64/linux.mh: Ditto.
13150 * config/m68k/linux.mh: Ditto.
13151 * config/mips/linux.mh: Ditto.
13152 * config/powerpc/linux.mh: Ditto.
13153 * config/sparc/linux.mh: Ditto.
13154
c25b74ac
PM
131552002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13156
13157 * win32-nat.c: Add i386-tdep.h dependency.
13158
94cd915f
MS
131592002-01-07 Michael Snyder <msnyder@redhat.com>
13160
c7cccb76
MS
13161 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13162 instead of bfd_get_arch_size. Don't bail out just because
13163 there's no exec_bfd.
abf22e64 13164
34c0bd93
MS
13165 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13166 * p-valprint.c (pascal_object_print_value): Ditto.
13167 * somread.c (som_symtab_read): Ditto.
13168 * symfile.c (simple_free_overlay_region_table): Ditto.
13169 * valops.c (value_assign): Ditto.
13170
21c1c920
MS
13171 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13172 use tilde_expand and strerror for opening save-tracepoints file.
13173
5bbd998e
MS
13174 * thread-db.c (thread_db_new_objfile): Indendation fix.
13175
94cd915f
MS
13176 * infptrace.c (GDB_MAX_ALLOCA): New define.
13177 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13178 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13179 can be overridden with whatever value is appropriate to the host).
13180 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13181 alloca to allocate potentially large buffer.
13182 * rs6000-nat.c (child_xfer_memory): Ditto.
13183 * symm-nat.c (child_xfer_memory): Ditto.
13184 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13185
494e8a93
JSC
131862002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13187
13188 From Nick Clifton <nickc@redhat.com>
13189 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13190
d0e1d48e
MS
131912002-01-07 Michael Snyder <msnyder@redhat.com>
13192
abf22e64 13193 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13194 Don't use exec_bfd if it's NULL.
13195
290b2c7a
MK
131962002-01-06 Mark Kettenis <kettenis@gnu.org>
13197
abf22e64 13198 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13199
aef21287
AC
132002002-01-06 Andrew Cagney <ac131313@redhat.com>
13201
13202 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13203 * gnu-nat.c: Ditto.
13204
30efa627
AC
132052002-01-06 Andrew Cagney <ac131313@redhat.com>
13206
13207 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13208 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13209 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13210 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13211 z8k-coff have not been multi-arched. Update z8k-coff build
13212 status.
13213
9b4ff276
AC
132142002-01-06 Andrew Cagney <ac131313@redhat.com>
13215
13216 * MAINTAINERS: Mark a29k target as obsolete.
13217 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13218 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13219 comments.
13220 * NEWS: Note that a29k targets are obsolete.
13221 * a29k-tdep.c: Mark as obsolete.
13222 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13223 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13224 a29k-*-vxworks* targets as obsolete.
13225 * remote-adapt.c: Obsolete.
13226 * remote-eb.c: Obsolete.
13227 * remote-mm.c: Obsolete.
13228 * remote-udi.c: Obsolete.
13229 * config/a29k/a29k-udi.mt: Obsolete.
13230 * config/a29k/a29k.mt: Obsolete.
13231 * config/a29k/tm-a29k.h: Obsolete.
13232 * config/a29k/tm-vx29k.h: Obsolete.
13233 * config/a29k/vx29k.mt: Obsolete.
13234
a9011d31
AC
132352002-01-05 Andrew Cagney <ac131313@redhat.com>
13236
13237 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13238 with BFD_ENDIAN_BIG.
13239
9299404e
AC
132402002-01-05 Andrew Cagney <ac131313@redhat.com>
13241
13242 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13243 * configure, config.in: Re-generate.
13244 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13245 * defs.h: Do not include <endian.h>.
13246
7e89e357
JT
132472002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13248
13249 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13250 * config.in: Regenerate.
13251 * configure.in: Update copyright years.
13252 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13253 * configure: Regenerate.
13254 * i386bsd-nat.c: Update copyright years.
13255 (fill_gregset): Use regcache_collect.
13256 (fetch_inferior_registers): Only fetch integer registers
13257 if requested to do so. Add support for XMM registers
13258 using PT_GETXMMREGS.
13259 (store_inferior_registers): Only store integer registers
13260 if requested to do so. Add support for XMM registers
13261 using PT_SETXMMREGS.
13262 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13263 (store_inferior_registers): Remove.
13264 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13265 (fetch_elfcore_registers): New function.
13266 (i386nbsd_elfcore_fns): New.
13267 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13268 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13269 i386bsd-nat.o.
13270 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13271 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13272 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13273 * config/i386/tm-nbsd.h: Update copyright years.
13274 (HAVE_SSE_REGS): Define.
13275 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13276 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13277 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13278 (SIGCONTEXT_PC_OFFSET): Remove.
13279 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13280
a752853e
AC
132812002-01-05 Andrew Cagney <ac131313@redhat.com>
13282
13283 * configure.tgt: Remove powerpc-*-macos* target.
13284 * config/m68k/xm-mpw.h: Delete file.
13285 * config/xm-mpw.h: Delete file.
13286 * ser-mac.c: Delete file.
13287 * mpw-make.sed: Delete file.
13288 * mpw-config.in: Delete file.
13289 * mac-xdep.c: Delete file.
13290 * mac-gdb.r: Delete file.
13291 * mac-defs.h: Delete file.
13292 * mac-nat.c: Delete file.
13293 * config/powerpc/macos.mh: Delete file.
13294 * config/powerpc/macos.mt: Delete file.
13295 * config/powerpc/nm-macos.h: Delete file.
13296 * config/powerpc/tm-macos.h: Delete file.
13297 * source.c (openp, open_source_file): Remove obsolete code.
13298 * top.c (gdb_readline): Ditto.
13299 * utils.c (query): Ditto.
13300 * event-top.c (display_gdb_prompt): Ditto.
13301 * Makefile.in (ser-mac.o): Delete obsolete target.
13302 * NEWS: Update.
13303
d7449b42
AC
133042002-01-04 Andrew Cagney <ac131313@redhat.com>
13305
13306 * defs.h (BIG_ENDIAN): Delete macro definition.
13307 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13308 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13309 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13310 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13311 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13312 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13313 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13314 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13315 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13316 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13317 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13318 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13319 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13320 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13321 * gdbarch.c: Re-generate.
13322
356374e8
DJ
133232002-01-04 Daniel Jacobowitz <drow@mvista.com>
13324
13325 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13326 for core files.
13327
a2b8f8f8
JT
133282002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13329
13330 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13331
12466af9
AC
133322002-01-04 Andrew Cagney <ac131313@redhat.com>
13333
13334 * value.h (value_ptr): Delete typedef.
13335
3549ab40
JT
133362002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13337
13338 * i386nbsd-nat.c: Update copyright years.
13339 Include i386-tdep.h.
13340
fedbd091
EZ
133412002-01-04 Elena Zannoni <ezannoni@redhat.com>
13342
13343 * stabsread.c: Update copyright years.
13344
13345 From Debashis Mahata <debashis.mahata@wipro.com>:
13346 (read_struct_fields): Deal with Sun C compiler erroneous stab
13347 output for structs and unions.
fec8b34f 13348 Fix PR gdb/269.
fedbd091 13349
eb43544b
DJ
133502002-01-04 Daniel Jacobowitz <drow@mvista.com>
13351
13352 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13353 prototype.
13354
1514d34e
DJ
133552002-01-04 Daniel Jacobowitz <drow@mvista.com>
13356
13357 * cp-abi.c: Fix whitespace.
13358 (baseclass_offset): New wrapper function.
13359 * cp-abi.h (baseclass_offset): Add prototype.
13360 (struct cp_abi_ops): Add baseclass_offset pointer.
13361
13362 * valops.c (vb_match): Move to...
13363 * gnu-v2-abi.c (vb_match): here.
13364 * valops.c (baseclass_offset): Move to...
13365 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13366
13367 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13368
13369 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13370 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13371 * hpacc-abi.c (init_hpacc_ops): Likewise.
13372
7f8c9282
DJ
133732002-01-04 Daniel Jacobowitz <drow@mvista.com>
13374
13375 * valops.c (find_overload_match): Accept obj as a
13376 reference parameter. Update it before returning.
13377 * value.h (find_overload_match): Update prototype.
13378 * eval.c (evaluate_subexp_standard): Pass object to
13379 find_overload_match by reference.
13380
f23631e4
AC
133812002-01-03 Andrew Cagney <ac131313@redhat.com>
13382
13383 * valarith.c: Replace value_ptr with struct value pointer. Remove
13384 register attribute from value declarations.
13385 * valops.c: Ditto.
13386 * value.h: Ditto.
13387 * scm-lang.c (scm_lookup_name): Ditto.
13388
79e10fab 133892002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13390
79e10fab
AC
13391 Abstract the functionality of iterating over mapped memory
13392 regions into a general purpose iterator function.
abf22e64 13393 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13394 iterator for memory sections.
13395 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13396 (solib_mappings_callback): New function, callback for above.
13397 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13398 (info_mappings_callback): New function, callback for above.
13399
13400 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13401
c5ad026a
MK
134022002-01-01 Mark Kettenis <kettenis@gnu.org>
13403
d2a7c97a
MK
13404 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13405 * i386-tdep.c: Include "elf-bfd.h".
13406 (process_note_abi_tag_sections): New function.
13407 (i386_gdbarch_init): Add code to recognize various OS/ABI
13408 combinations.
13409
c5ad026a
MK
13410 * maint.c (_initialize_maint_cmds): Add missing \ in
13411 string-literal.
13412
a1a5b71e 13413For older changes see ChangeLog-2001
c906108c
SS
13414\f
13415Local Variables:
13416mode: change-log
13417left-margin: 8
13418fill-column: 74
13419version-control: never
13420End:
This page took 0.93083 seconds and 4 git commands to generate.