* win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5633f842
CF
12002-11-22 Christopher Faylor <cgf@redhat.com>
2
3 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
4 (struct so_stuff): Add end_addr field.
5 (register_loaded_dll): Calculate and store end address of loaded dll.
6 (solib_address): New function.
7 (child_solib_loaded_library_pathname): Pass carefully constructed
8 section info to safe_symbol_file_add rather than ignoring it.
9 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
10 DLL is loaded.
11 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
12 (child_create_inferior): Fix a compiler warning.
13 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
14 (solib_address): Declare new function.
15
d85fe7f7
AS
162002-11-22 Andreas Schwab <schwab@suse.de>
17
18 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
19 and FPS registers.
20
8308e54c
DJ
212002-11-21 Daniel Jacobowitz <drow@mvista.com>
22
23 * maint.c (_initialize_maint_cmds): Fix typo. From
24 Francesco Potorti` <pot@gnu.org>.
25
8997bd5e
AC
262002-11-21 Andrew Cagney <cagney@redhat.com>
27
28 * mips-tdep.c (mips_dump_tdep): Delete references to
29 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
30 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
31 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
32 * printcmd.c (build_address_symbolic): Delete calls to
33 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
34 (address_info): Ditto.
35 Fix PR gdb/773.
36
4e87b832
KD
372002-11-19 Klee Dienes <kdienes@apple.com>
38 Adam Fedor <fedor@gnu.org>
39
40 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
41 the ability to explicitly specify the quote characters and word
42 break characters; if NULL is specified for either, use the old
43 behavior of using the characters used by the completer.
44 (skip_chars): New function. Convenience wrapper around
45 skip_quoted_chars to provide the original skip_chars behavior.
46 * completer.h (skip_quoted_chars): Add prototype.
47
9ba8d803
AC
482002-11-19 Andrew Cagney <ac131313@redhat.com>
49
50 Problems reported by Paul Eggert.
51 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
52
0a595803
AS
532002-11-19 Andreas Schwab <schwab@suse.de>
54
55 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
56 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
57 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
58 (m68k_linux_frame_saved_pc): Move to ...
59 * m68klinux-tdep.c: ... here. New file.
60 * Makefile.in (m68klinux-tdep.o): Add dependencies.
61 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
62
e8afa4d7
AF
632002-11-19 Adam Fedor <fedor@gnu.org>
64
65 * objc-exp.y: Revert to old skip_quoted usage.
66
a76c9d72
AF
672002-11-19 Adam Fedor <fedor@gnu.org>
68
69 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
70 (objc_lang_h): Define.
71 (YYFILES): Add objc-exp.tab.c.
72 (local-maintainer-clean): Remove objc-exp.tab.c.
73 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
74
fd0e9d45
PM
752002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
76
77 * p-exp.y (typecast rule): Add automatic dereference of
78 pascal classes if needed.
79 (THIS): Set current_type.
80 Automatically dereference pascal classes.
81 (typebase rule): Add ^typebase recognition.
82
82eeeb94
AF
832002-11-18 Adam Fedor <fedor@gnu.org>
84
85 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
86 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
87 (op_name): Handle OP_OBJC_SELF.
88 * Makefile.in (expprint.o): Add additional depends.
89
646df18d
AF
902002-11-18 Adam Fedor <fedor@gnu.org>
91
92 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
93 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
94 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
95 * objc-exp.y: Likewise.
96
379b85df
AF
972002-11-18 Adam Fedor <fedor@gnu.org>
98
99 * gdb/parser-defs.h: (struct objc_class_str): New structure
100 for parsing ObjC classes.
101
85cf597a
AC
1022002-11-18 Andrew Cagney <ac131313@redhat.com>
103
104 * stack.c (frame_relative_level): Copy function from here ...
105 * frame.c (frame_relative_level): ...to here.
106
5a203e44
AC
1072002-11-18 Andrew Cagney <ac131313@redhat.com>
108
109 * frame.h (enum frame_type): Define.
110 (get_frame_type): Declare.
111 (struct frame_info): Add field `type'. Delete field
112 signal_handler_caller.
113 (deprecated_set_frame_signal_handler_caller): Declare.
114 * frame.c (get_frame_type): New function.
115 (deprecated_set_frame_type): New function.
116 (create_new_frame): Set the frame's type.
117 (get_prev_frame): Similar.
118 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
119 * s390-tdep.c: Ditto.
120 * m68klinux-nat.c: Ditto.
121 * ns32k-tdep.c: Ditto.
122 * x86-64-linux-tdep.c: Ditto.
123 * vax-tdep.c: Ditto.
124 * rs6000-tdep.c: Ditto.
125 * ppc-linux-tdep.c: Ditto.
126 * i386-interix-tdep.c: Ditto.
127 * mips-tdep.c: Ditto.
128 * m68k-tdep.c: Ditto.
129 * hppa-tdep.c: Ditto.
130 * ia64-tdep.c: Ditto.
131 * cris-tdep.c: Ditto.
132 * arm-tdep.c: Ditto.
133 * alpha-tdep.c: Ditto.
134 * i386-tdep.c: Ditto.
135 * stack.c: Ditto.
136 * ada-lang.c: Ditto.
137 * blockframe.c: Update.
138 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
139 deprecated_set_frame_type instead of signal_handler_caller.
140 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
141 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
142 * breakpoint.h: Delete FIXME suggesting get_frame_type.
143
bf4ae8b2
KD
1442002-11-18 Klee Dienes <kdienes@apple.com>
145
146 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
147
a672ef13
KD
1482002-11-18 Klee Dienes <kdienes@apple.com>
149
150 * buildsym.c (pop_context): Add comment.
151
0c5e171a
KD
1522002-11-18 Klee Dienes <kdienes@apple.com>
153
154 * buildsym.h (pop_context): Convert to function, defined in
155 buildsym.c.
156 * buildsym.c: Include gdb_assert.h.
157 (pop_context): Implement as C function. Add check for stack
158 underflow.
159 * dbxread.c (process_one_symbol): Complain and stop processing
160 that symbol if we are already at the top of the context stack for
161 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
162 when processing N_RBRAC.
163
8a1f4c4c
DJ
1642002-11-16 Daniel Jacobowitz <drow@mvista.com>
165
166 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
167 define.
168 (struct target_waitstatus): Add opaque definition.
169 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
170 * exec.c (init_exec_ops): Likewise.
171 * fork-child.c (clone_and_follow_inferior): Remove.
172 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
173 * inferior.h (clone_and_follow_inferior): Remove prototype.
174 * infrun.c (follow_fork_mode_both): Remove.
175 (follow_fork_mode_kind_names): Remove commented out "both".
176 (follow_inferior_fork): Remove follow_fork_mode_both support.
177 * inftarg.c (child_clone_and_follow_inferior): Remove.
178 (child_post_follow_inferior_by_clone): Remove.
179 (init_child_ops): Don't set to_clone_and_follow_inferior
180 or to_post_follow_inferior_by_clone.
181 * target.c (default_clone_and_follow_inferior): Remove.
182 (cleanup_target): Don't set to_clone_and_follow_inferior
183 or to_post_follow_inferior_by_clone.
184 (find_default_clone_and_follow_inferior): Remove.
185 (init_dummy_target): Don't set to_clone_and_follow_inferior.
186 (debug_to_clone_and_follow_inferior): Remove.
187 (debug_to_post_follow_inferior_by_clone): Remove.
188 (setup_target_debug): Don't set to_clone_and_follow_inferior
189 or to_post_follow_inferior_by_clone.
190 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
191 and to_post_follow_inferior_by_clone.
192 (child_clone_and_follow_inferior): Remove prototype.
193 (child_post_follow_inferior_by_clone): Remove prototype.
194 (target_clone_and_follow_inferior): Remove macro.
195 (target_post_follow_inferior_by_clone): Remove macro.
196 (find_default_clone_and_follow_inferior): Remove prototype.
197
47932f85
DJ
1982002-11-16 Daniel Jacobowitz <drow@mvista.com>
199
200 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
201 inferior_has_vforked, and inferior_has_execd instead of
202 target_has_forked, target_has_vforked, and target_has_execd.
203 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
204 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
205 (CHILD_WAIT): Define.
206 (child_wait): Add prototype.
207 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
208 Add prototype.
209 (hpux_has_vforked): Likewise, from child_has_vforked.
210 (hpux_has_execd): Likewise, from child_has_execd.
211 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
212 (not_same_real_pid, child_wait): New, copied from inftarg.c.
213 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
214 and hpux_has_syscall_event instead of the target hooks.
215 * infrun.c (inferior_has_forked, inferior_has_vforked)
216 (inferior_has_execd): New functions.
217 * inftarg.c (not_same_real_pid): Remove.
218 (child_wait): Remove references to not_same_real_pid,
219 target_has_forked, target_has_vforked, target_has_execd,
220 and target_has_syscall_event.
221 (child_has_forked, child_has_vforked, child_has_execd)
222 (child_has_syscall_event): Remove.
223 (init_child_ops): Remove references to child_has_forked,
224 child_has_vforked, child_has_execd, and child_has_syscall_event.
225 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
226 (hpux_has_vforked): Likewise, from child_has_vforked.
227 (hpux_has_execd): Likewise, from child_has_execd.
228 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
229 * target.c (cleanup_target): Remove references to
230 to_has_forked, to_has_vforked, to_has_execd, and
231 to_has_syscall_event.
232 (update_current_target): Likewise.
233 (setup_target_debug): Likewise.
234 (debug_to_has_forked): Remove.
235 (debug_to_has_vforked): Remove.
236 (debug_to_has_execd): Remove.
237 (debug_to_has_syscall_event): Remove.
238 * target.h (struct target_ops): Remove to_has_forked.
239 to_has_vforked, to_has_execd, and to_has_syscall_event.
240 (child_has_forked, child_has_vforked, child_has_execd)
241 (child_has_syscall_event): Remove prototypes.
242 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
243 prototypes.
244 (target_has_forked, target_has_vforked, target_has_execd)
245 (target_has_syscall_event): Remove macros.
246
4088142a
DJ
2472002-11-16 Daniel Jacobowitz <drow@mvista.com>
248
249 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
250 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
251 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
252 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
253 * target.c (cleanup_target): Remove reference to
254 to_can_follow_vfork_prior_to_exec.
255 (update_current_target): Likewise.
256 (debug_to_can_follow_vfork_prior_to_exec): Remove.
257 (setup_target_debug): Remove reference to
258 to_can_follow_vfork_prior_to_exec.
259 * target.h (struct target_ops): Remove
260 to_can_follow_vfork_prior_to_exec.
261 (child_can_follow_vfork_prior_to_exec): Remove prototype.
262 (target_can_follow_vfork_prior_to_exec): Remove definition.
263 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
264 define.
265 * infrun.c (follow_vfork_when_exec): Remove.
266 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
267 (follow_exec): Likewise.
268 (handle_inferior_event): Likewise.
269 (keep_going): Likewise.
270
18cde8d5
AC
2712002-11-15 Andrew Cagney <cagney@redhat.com>
272
273 * frame.c (generic_unwind_get_saved_register): Make static.
274 * frame.h (generic_unwind_get_saved_register): Delete declaration.
275 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
276 defaults to generic_unwind_get_saved_register.
277 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
278 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
279 * frv-tdep.c (frv_gdbarch_init): Ditto.
280 * i386-tdep.c (i386_gdbarch_init): Ditto.
281 * s390-tdep.c (s390_gdbarch_init): Ditto.
282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
283 * v850-tdep.c (v850_gdbarch_init): Ditto.
284 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
285 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
286 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
287
a6b063af
AC
2882002-11-15 Andrew Cagney <cagney@redhat.com>
289
290 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
291 i386-tdep.c.
292
f407986f
AC
2932002-11-15 Andrew Cagney <cagney@redhat.com>
294
295 * frame.h (sigtramp_saved_pc): Delete declaration.
296 * blockframe.c (sigtramp_saved_pc): Delete function.
297 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
298 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
299 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
300 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
301
f18c5a73
AC
3022002-11-15 Andrew Cagney <ac131313@redhat.com>
303
304 * frame.c (frame_pc_unwind): New function.
305 (frame_saved_regs_pc_unwind): New function.
306 (frame_register_unwind): Pass unwind_cache instead of
307 register_unwind_cache.
308 (set_unwind_by_pc): Add unwind_pc parameter, set.
309 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
310 (get_prev_frame): Ditto.
311 * frame.h (frame_pc_unwind_ftype): Declare.
312 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
313 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
314 (frame_pc_unwind): Declare.
315 * dummy-frame.c (dummy_frame_pc_unwind): New function.
316 (struct dummy_frame): Add comment mentioning that values are for
317 previous frame.
318 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
319 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
320 (generic_file_frame_chain_valid): Ditto.
321 * stack.c (frame_info): Ditto.
322
d9285969 3232002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
324
325 * linespec.c (locate_first_half): New function.
326 (decode_line_1): Move code into locate_first_half.
327
d741b867
AC
3282002-11-15 Andrew Cagney <ac131313@redhat.com>
329
330 * complaints.h: Add comment explaining how to eliminate a
331 deprecated_complain call.
24382c5c 332 * complaints.h: Fix spelling errors.
d741b867 333
82d03c99
DC
3342002-11-15 David Carlton <carlton@math.stanford.edu>
335
336 * printcmd.c: Remove #include "disasm.h".
337
c97eb5d9
AC
3382002-11-14 Andrew Cagney <ac131313@redhat.com>
339
340 * frame.h: Move the most relevant interface functions to the start
341 of the file.
342
524d7c18
AC
3432002-11-14 Andrew Cagney <ac131313@redhat.com>
344
345 * regcache.h (deprecated_registers): Rename registers.
346 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
347 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
348 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
349 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
350 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
351 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
352 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
353 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
354 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
355 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
356 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
357 * v850ice.c: Update.
358
6411e720
AC
359Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
360
361 * utils.c (gdb_realpath): Add comment mentioning realpath with a
362 NULL buffer.
363
73937e03
AC
3642002-11-13 Andrew Cagney <cagney@redhat.com>
365
366 * regcache.h (deprecated_read_register_bytes): Rename
367 read_register_bytes.
368 (deprecated_write_register_bytes): Rename write_register_bytes.
369 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
370 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
371 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
372 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
373 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
374 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
375 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
376 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
377 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
378 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
379 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
380 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
381 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
382 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
383
fb0cd46e
JB
3842002-11-13 Jim Blandy <jimb@redhat.com>
385
386 * findvar.c (read_var_value): Doc fix.
387
2d28509a
AC
3882002-11-13 Andrew Cagney <cagney@redhat.com>
389
390 * regcache.c (struct regcache): Replace passthough_p with
391 readonly_p.
392 (regcache_xmalloc): Initialize readonly_p.
393 (build_regcache): Initialize readonly_p.
394 (regcache_save): New function.
395 (regcache_restore): New function.
396 (regcache_cpy): Re-implement using regcache_save and
397 regcache_restore.
398 (regcache_raw_read): Update.
399 (regcache_cooked_read): When a read-only cache, checked for cached
400 pseudo register values.
401 (regcache_raw_write): Assert that the cache is not read-only.
402 Remove code handling a non-passthrough cache.
403 * regcache.h (regcache_save): Declare.
404 (regcache_restore): Declare.
405
067df2e5
AC
4062002-11-13 Andrew Cagney <cagney@redhat.com>
407
408 * regcache.c (struct regcache_descr): Add fields
409 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
410 (init_legacy_regcache_descr): Compute the size of a cooked
411 register cache and then assign that to sizeof_raw_registers. Set
412 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
413 (init_legacy_regcache_descr): Ditto.
414
51b1fe4e
AC
4152002-11-13 Andrew Cagney <cagney@redhat.com>
416
417 * regcache.c (register_buffer): Move to near start of file, update
418 description.
419 (regcache_raw_read): Use.
420 (regcache_raw_write): Use.
421 (struct regcache): Rename raw_registers to registers and
422 raw_register_valid_p to register_valid_p.
423 (regcache_xmalloc): Update.
424 (regcache_xfree): Update.
425 (register_buffer): Update.
426 (regcache_cpy): Update.
427 (regcache_cpy_no_passthrough): Update.
428 (regcache_valid_p): Update.
429 (deprecated_grub_regcache_for_registers): Update.
430 (deprecated_grub_regcache_for_register_valid): Update.
431 (set_register_cached): Update.
432 (regcache_raw_write): Update.
433
80b4c677
PM
4342002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
435
436 * p-exp.y (name_not_typename): Use copy_name to
437 set current_type variable for fields of THIS.
438
0f3fafde
DJ
4392002-11-12 Daniel Jacobowitz <drow@mvista.com>
440
441 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
442 * monitor.c (init_base_monitor_ops): Likewise.
443 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
444 * remote-array.c (init_array_ops): Likewise.
445 * remote-e7000.c (init_e7000_ops): Likewise.
446 * remote-es.c (init_es1800_ops): Likewise.
447 (init_es1800_child_ops): Likewise.
448 * remote-rdp.c (init_remote_rdp_ops): Likewise.
449 * remote-sim.c (init_gdbsim_ops): Likewise.
450 * remote-st.c (init_st2000_ops): Likewise.
451 * sol-thread.c (init_sol_core_ops): Likewise.
452 (init_sol_thread_ops): Likewise.
453 * v850ice.c (init_850ice_ops): Likewise.
454 * win32-nat.c (init_child_ops): Likewise.
455 * wince.c (init_child_ops): Likewise.
456
82c0260e
AC
4572002-11-12 Andrew Cagney <ac131313@redhat.com>
458
459 * utils.c (gdb_realpath): Make rp a constant pointer.
460
70d35819
AC
4612002-11-12 Andrew Cagney <ac131313@redhat.com>
462
463 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
464 a constant buffer; cannonicalize_file_name(); realpath() with a
465 pathconf() defined buffer, xstrdup().
466
9835a8b0
AC
4672002-11-12 Andrew Cagney <ac131313@redhat.com>
468
469 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
470 to hang2.C; hang3.c to hang3.C.
471
3f47be5c
EZ
4722002-11-11 Elena Zannoni <ezannoni@redhat.com>
473
474 * findvar.c (read_var_value): Reenable TLS code.
475
4762002-11-11 Elena Zannoni <ezannoni@redhat.com>
477 Jim Blandy <jimb@redhat.com>
478
479 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
480 * target.c (update_current_target): Add
481 to_get_thread_local_address.
482 * target.h (to_get_thread_local_address): Export.
483 (target_get_thread_local_address): Define.
484 (target_get_thread_local_address_p): Define.
485 * thread-db.c: Include solib-svr4.h.
486 (td_thr_tls_get_addr_p): Define.
487 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
488 (thread_db_get_thread_local_address): New function.
489 (init_thread_db_ops): Initialize to_get_thread_local_address.
490 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
491 * configure: Regenerate.
492 * config.in: Regenerate.
493
636b1a6d
DC
4942002-11-11 David Carlton <carlton@math.stanford.edu>
495
496 * linespec.c (set_flags): New function.
497 (decode_line_1): Move code into set_flags.
498
44fe14ab
DC
4992002-11-11 David Carlton <carlton@math.stanford.edu>
500
501 * linespec.c (decode_line_1): Move chunks of code to separate
502 functions.
503 (initialize_defaults): New function.
504 (decode_indirect): New function.
505
e6f181f5
AC
5062002-11-11 Andrew Cagney <ac131313@redhat.com>
507
8971b011
AC
508 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
509 instead of void_code_ptr.
510 (sigtramp_saved_pc): Ditto.
511
e6f181f5
AC
512 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
513 i386_fp_regnum_p.
514
01ad7f36
DJ
5152002-11-10 Daniel Jacobowitz <drow@mvista.com>
516
517 * gdbtypes.h (struct main_type): Move artificial flag out of
518 loc. New member of ``struct field'' named static_kind. Reduce
519 overloaded meaning of bitsize.
520 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
521 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
522 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
523
524 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
525 new fields.
526 (template_to_fixed_record_type, template_to_static_fixed_type)
527 (to_record_with_fixed_variant_part): Likewise.
528 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
529 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
530 * dwarfread.c (struct_type, enum_type): Likewise.
531 * hpread.c (hpread_read_enum_type)
532 (hpread_read_function_type, hpread_read_doc_function_type)
533 (hpread_read_struct_type): Likewise.
534 * mdebugread.c (parse_symbol): Likewise.
535
bf1e52be
AC
5362002-11-10 Andrew Cagney <ac131313@redhat.com>
537
538 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
539 * stack.c (print_frame_info_base): Update.
540 (print_frame_info_base, frame_info): Update.
541 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
542 (sparc_frame_saved_pc): Update.
543 * ada-lang.c (find_printable_frame): Update.
544 * breakpoint.c (deprecated_frame_in_dummy): Update.
545
ce556f85
MK
5462002-11-09 Mark Kettenis <kettenis@gnu.org>
547
548 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
549 defined.
550 (regmap): Extend to cover all registers.
551 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
552 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
553 definitions.
554 (fetch_register, sore_register): Simplify.
555 (old_fetch_inferior_registers, old_store_inferior_registers):
556 Remove functions.
557 (cannot_fetch_register, cannot_store_register): Change
558 implementation to use regmap array to decide which registers
559 cannot be fetched/stored. This removes $orig_eax from the
560 registers that cannot be fetched/stored.
561 (fetch_inferior_registers): Call fetch_register directly instead
562 of calling old_fetch_inferior_registers.
563 (store_inferior_registers): Call store_register directly instead
564 of calling old_store_inferior_registers.
565 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
566 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
567 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
568
932bb524
KD
5692002-11-09 Klee Dienes <kdienes@apple.com>
570
571 * i387-tdep.c (i387_supply_register): When called with NULL as a
572 buffer, mark the register as not provided (to mirror the behavior
573 of supply_register).
574 (i387_supply_fxsave): Ditto.
575 (i387_supply_fsave): Ditto (inherits the behavior from
576 i387_supply_register).
577
ebe68b27
KD
5782002-11-09 Klee Dienes <kdienes@apple.com>
579
580 * blockframe.c (sigtramp_saved_pc): Use
581 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
582 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
583 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
584
15220c65
AC
5852002-11-09 Andrew Cagney <ac131313@redhat.com>
586
587 * frame.c (get_prev_frame): Test prev_p to identify a previously
588 unwound frame. Initialize prev_p.
589 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
590 comment.
591
95adb866
AC
5922002-11-09 Andrew Cagney <ac131313@redhat.com>
593
594 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
595 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
596 more comments. Zap dead code.
597
e71ecd70
MK
5982002-11-09 Mark Kettenis <kettenis@gnu.org>
599
600 * infcmd.c (print_vector_info, print_float_info): Move code that
601 checks whether the target has any registers and whether there is a
602 selected frame up, such that it is also used if a target provides
603 multi-arch definitions of these functions.
604
c525330d
AC
6052002-11-08 Andrew Cagney <ac131313@redhat.com>
606
72bdd927
AC
607 * Makefile.in (DESTDIR): Define.
608 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
609 prefix.
610
c525330d
AC
611 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
612 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
613
38c968cf
AC
6142002-11-08 Andrew Cagney <ac131313@redhat.com>
615
616 * i386-linux-tdep.c: Include "reggroups.h".
617 (i386_linux_register_reggroup_p): New function.
618 (i386_linux_init_abi): Set register_reggroup_p to
619 i386_linux_register_reggroup_p.
620 * i386-tdep.h (i386_register_reggroup_p): Declare.
621 * i386-tdep.c: Include "reggroups.h".
622 (i386_init_reggroups): New function.
623 (i386_add_reggroups): New function.
624 (i386_register_reggroup_p): New function.
625 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
626 (_initialize_i386_tdep): Call i386_init_reggroups.
627 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
628 specific reggroups.
629
19e33363
MK
6302002-11-09 Mark Kettenis <kettenis@gnu.org>
631
371a6e84
MK
632 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
633 request that's available in *BSD.
634
94ba925a
MK
635 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
636
19e33363
MK
637 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
638 FDOFF_REGNUM.
639
8779790c
AC
6402002-11-08 Andrew Cagney <ac131313@redhat.com>
641
642 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
643 * dummy-frame.c (find_dummy_frame): Rename
644 generic_find_dummy_frame, make static. Return the dummy frame
645 instead of the regcache.
646 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
647 (cached_find_dummy_frame): New function. Use find_dummy_frame.
648 (dummy_frame_register_unwind): Rename
649 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
650 * dummy-frame.h (dummy_frame_register_unwind): Rename
651 generic_call_dummy_register_unwind.
652
8674b74f
MK
6532002-11-08 Mark Kettenis <kettenis@gnu.org>
654
655 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
656 except the inclusion of "i386/tm-i386.h", to...
657 * config/i386/nm-i386v42mp.h: ...here.
658 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
659
4c1e7e9d
AC
6602002-11-08 Andrew Cagney <ac131313@redhat.com>
661
662 * Makefile.in (frame.o): Update dependencies.
663 * blockframe.c (current_frame, frame_obstack_alloc)
664 (frame_saved_regs_zalloc, get_current_frame)
665 (set_current_frame, create_new_frame)
666 (set_unwind_by_pc, get_next_frame)
667 (flush_cached_frames, reinit_frame_cache)
668 (frame_saved_regs_register_unwind)
669 (deprecated_generic_get_saved_register)
670 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
671 (_initialize_blockframe): Move frame code from here...
672 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
673 "annotate.h" and "dummy-frame.h".
674 (_initialize_frame): New function.
675
921e78cf
JB
6762002-11-08 Jim Blandy <jimb@redhat.com>
677
678 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
679 when we finish a function a context.
680 * buildsym.h (outermost_context_p): New macro.
681 (Bug analyzed by David Edelsohn.)
682
9c1412c1
AC
6832002-11-08 Andrew Cagney <ac131313@redhat.com>
684
685 * blockframe.c: Include "dummy-frame.h".
686 (struct dummy_frame, dummy_frame_stack)
687 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
688 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
689 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
690 (generic_save_call_dummy_addr, generic_pop_current_frame)
691 (generic_pop_dummy_frame, generic_fix_call_dummy)
692 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
693 dummy frame code from here...
694 * dummy-frame.c: ...to here. New file.
695 * dummy-frame.h: New file.
696 (generic_call_dummy_register_unwind): Declare.
697 (generic_find_dummy_frame): Declare.
698 * Makefile.in (SFILES): Add dummy-frame.c.
699 (dummy-frame.o): Specify dependencies.
700 (dummy_frame_h): Define.
701 (COMMON_OBS): Add dummy-frame.o.
702 (blockframe.o): Update dependencies.
703
208d8187
JB
7042002-11-08 Jim Blandy <jimb@redhat.com>
705
706 * dwarf2read.c (read_func_scope): Restore local_symbols and
707 param_symbols after we finish the function context. (Based on a
708 patch from David Edelsohn.)
709
413dad4d
DC
7102002-11-08 David Carlton <carlton@math.stanford.edu>
711
712 * linespec.c (symbol_found): New function.
713 (minsym_found): New function.
714 (decode_line_1): Separate out some code into separate functions.
715
5512c44a
JB
7162002-11-08 Joel Brobecker <brobecker@gnat.com>
717
718 * i386-tdep.c (i386_frameless_signal_p): Make non static for
719 the benefit of the interix target.
720 * i386-tdep.h (i386_frameless_signal_p): Declare.
721
1b33ef47
AC
7222002-11-08 Andrew Cagney <ac131313@redhat.com>
723
724 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
725 declaration that snuck in from change below.
726
23a34459
AC
7272002-11-06 Andrew Cagney <cagney@redhat.com>
728
729 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
730 all callers.
731 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
732 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
733 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
734 (i386_mxcsr_regnum_p): new function. Use instead of
735 MXCSR_REGNUM_P.
736 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
737 (i386_sse_regnum_p): Declare.
738 (i386_mxcsr_regnum_p): Declare.
739 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
740 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
741 (IS_FP_REGNUM): Update definition.
742 (IS_FPU_CTRL_REGNUM): Update definition..
743 (IS_SSE_REGNUM): Update definition..
744 * i386v-nat.c (register_u_addr): Update.
745 * go32-nat.c (fetch_register): Update.
746 (store_register): Update.
747
d709c020
JB
7482002-11-07 Joel Brobecker <brobecker@gnat.com>
749
750 Preparation work to convert the hppa targets to multiarch partial.
751
752 * hppa-tdep.c: Add new functions replacing macro bodies from
753 config/pa/tm-hppa.h. These function will be used to initialize
754 the gdbarch structure. Import some comments from tm-hppa.h,
755 and place them where appropriate, to avoid loosing them when
756 we cleanup this file.
757 (hppa_reg_struct_has_addr): New function.
758 (hppa_inner_than): New function.
759 (hppa_stack_align): New function.
760 (hppa_pc_requires_run_before_use): New function.
761 (hppa_instruction_nullified): New function.
762 (hppa_register_byte): New function.
763 (hppa_register_virtual_type): New function.
764 (hppa_store_struct_return): New function.
765 (hppa_cannot_store_register): New function.
766 (hppa_frame_args_address): New function.
767 (hppa_frame_locals_address): New function.
768 (hppa_smash_text_address): New function.
769 (hppa_coerce_float_to_double): New function. Requires the inclusion
770 of "language.h".
771
772 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
773
774 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
775 gdbarch-eligible macro to a call to the new associated function
776 created in hppa-tdep.c.
777 (INNER_THAN): Likewise.
778 (STACK_ALIGN): Likewise.
779 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
780 (INSTRUCTION_NULLIFIED): Likewise.
781 (REGISTER_BYTE): Likewise.
782 (REGISTER_VIRTUAL_TYPE): Likewise.
783 (STORE_STRUCT_RETURN): Likewise.
784 (CANNOT_STORE_REGISTER): Likewise.
785 (FRAME_ARGS_ADDRESS): Likewise.
786 (FRAME_LOCALS_ADDRESS): Likewise.
787 (SMASH_TEXT_ADDRESS): Likewise.
788 (COERCE_FLOAT_TO_DOUBLE): Likewise.
789 (ABOUT_TO_RETURN): Delete, as no longer used.
790
83c31e7d
FN
7912002-11-07 Fernando Nasser <fnasser@redhat.com>
792
793 * printcmd.c (disassemble_command): Remove obsolete function.
794 (_initialize_printcmd): Do not create disassemble command here.
795 * cli/cli-cmds.c (disassemble_command): New function. Implements
796 disassemble command.
797 (init_cli_cmds): Create disassemble command here instead.
798
0ec30a36
AC
7992002-11-07 Andrew Cagney <ac131313@redhat.com>
800
801 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
802
e600bd34
AC
8032002-11-07 Andrew Cagney <ac131313@redhat.com>
804
805 * regcache.h (regcache_cooked_read_using_offset_hack)
806 (regcache_cooked_write_using_offset_hack): Delete declarations.
807 (register_changed): Delete declaration.
808 * regcache.c (regcache_cooked_read_using_offset_hack)
809 (regcache_cooked_write_using_offset_hack): Delete functions.
810 (cooked_xfer_using_offset_hack): Delete function.
811 (register_changed): Delete function.
812
568f8739
JB
8132002-11-07 Jim Blandy <jimb@redhat.com>
814
815 * macroscope.c: #include "complaints.h".
816 (sal_macro_scope): Cope with filenames that appear in the symtabs,
817 but not in the macro table.
818 * Makefile.in (macroscope.o): Record dependency.
819
b0718b7b
JB
8202002-11-07 Joel Brobecker <brobecker@gnat.com>
821
822 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
823
2b9e5f3f
AC
8242002-11-07 Andrew Cagney <ac131313@redhat.com>
825
826 * regcache.c (deprecated_registers_fetched): Update.
827 * regcache.h (deprecated_registers_fetched): Rename
828 registers_fetched.
829 * remote-vxsparc.c (vx_read_register): Update.
830 * remote-vxmips.c (vx_read_register): Update.
831 * remote-vx68.c (vx_read_register): Update.
832 * irix5-nat.c (fetch_core_registers): Update.
833 * mipsm3-nat.c (fetch_inferior_registers): Update.
834 * sun3-nat.c (fetch_inferior_registers): Update.
835 * symm-nat.c (fetch_inferior_registers): Update.
836 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
837 (fetch_core_registers): Update.
838 (fetch_kcore_registers): Update.
839 * mips-nat.c (fetch_inferior_registers): Update.
840 * corelow.c (get_core_registers): Update.
841 * a68v-nat.c (fetch_inferior_registers): Update.
842
e6e68f1f
JB
8432002-11-06 Joel Brobecker <brobecker@gnat.com>
844
845 Put in place the framework necessary for multiarching the hppa targets.
846 * hppa-tdep.c (hppa_gdbarch_init): New function.
847 (hppa_dump_tdep): New function.
848 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
849 tdep structure dumper.
850 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
851 until the multi-arching conversion has partially been completed.
852
492254e9
AC
8532002-11-06 Andrew Cagney <ac131313@redhat.com>
854
855 * valops.c (value_assign): Merge lval_register case into
856 lval_reg_frame_relative. Use frame_register and
857 regcache_cooked_write instead of get_saved_register and
858 write_register_bytes. After flushing the register cache, try to
859 re-select the selected frame.
860
8262ee23
AC
8612002-11-06 Andrew Cagney <ac131313@redhat.com>
862
863 * regcache.h (deprecated_register_valid): Rename register_valid.
864 * regcache.c: Update.
865 * ia64-aix-nat.c: Update.
866 * i386gnu-nat.c: Update.
867 * alpha-nat.c: Update.
868 * sparc-nat.c: Update.
869 * lynx-nat.c: Update.
870 * remote-mips.c: Update.
871
4facf7e8
JB
8722002-11-06 Joel Brobecker <brobecker@gnat.com>
873
874 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
875 to end of file, to be more consistent with the pratice followed
876 by other targets.
877
f9418c0f
AC
8782002-11-06 Andrew Cagney <ac131313@redhat.com>
879
880 * infcmd.c: Include "reggroups.h" and <ctype.h>.
881 (print_float_info): Print registers in float_reggroup.
882 (print_vector_info): Print registers in vector_reggroup.
883 (default_print_registers_info): When all, print registers in
884 all_reggroup. Otherwize, print registers in general_reggroup.
885 (registers_info): Rewrite. Add support for register groups.
886 Eliminate a goto.
887
3fe235a7
EZ
8882002-11-06 Elena Zannoni <ezannoni@redhat.com>
889
890 * symtab.c (methods_info): Delete. It has been ifdeffed out for
891 ages.
892 (symtab_symbol_info): Remove eons old ifdeffed out code.
893 (_initialize_symtab): Remove prehistoric disabled 'info methods'
894 command.
895
ef944135
TR
8962002-11-06 Theodore A. Roth <troth@openavr.org>
897
898 * c-exp.y: Add missing semi-colons.
899 * f-exp.y: Add missing semi-colons.
900 * m2-exp.y: Add missing semi-colons.
901 * p-exp.y: Add missing semi-colons.
902 Add empty action to start rule to avoid a type clash error when
903 building with bison >= 1.50.
904
f8302a57
JB
9052002-11-06 Jim Blandy <jimb@redhat.com>
906
907 * macrotab.h (struct macro_source_file): Doc fix.
908
6e382aa3
JJ
9092002-11-05 Jeff Johnston <jjohnstn@redhat.com>
910
911 * varobj.c (child_exists, cplus_number_of_children): Change
912 STREQ macro references to strcmp.
913 (cplus_name_of_child): Change code to handle the fact that
914 fields are not necessarily contiguous with regards to their
915 access control. This is a fix for PR gdb/792.
916
a216a322
AC
9172002-11-05 Andrew Cagney <ac131313@redhat.com>
918
919 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
920 * gdbarch.h, gdbarch.c: Regnerate.
921 * frame.h (frame_register): Declare.
922 * frame.c (frame_register): New function.
923 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
924 GET_SAVED_REGISTER, otherwize call
925 generic_unwind_get_saved_register.
926 (frame_register_read): Use frame_register instead of
927 get_saved_register.
928
7d5b6fdd
EZ
9292002-11-05 Elena Zannoni <ezannoni@redhat.com>
930
931 From Jim Ingham <jingham@apple.com>:
932 * event-top.c (gdb_disable_readline): New function.
933 (_initialize_event_loop): Move comment.
934
b7c64260
EZ
9352002-11-05 Elena Zannoni <ezannoni@redhat.com>
936
937 * event-loop.c (start_event_loop): Add comment.
938 Update copyright.
939
c2e1b8f2
AC
9402002-11-05 Andrew Cagney <ac131313@redhat.com>
941
942 * infcmd.c (default_print_registers_info): Do not call
943 PRINT_REGISTER_HOOK.
944
87647bb0
AC
9452002-11-05 Andrew Cagney <ac131313@redhat.com>
946
947 * sparc-tdep.c (sparc_print_register_hook): Make static.
948 (sparc_print_registers_info): New function.
949 (sparc_do_registers_info): New function.
950 (sparclet_print_registers_info): New function.
951 (sparclet_do_registers_info): New function.
952 (do_sparc_print_registers_info): New function.
953 (sparc_print_registers): New static function, clone of infcmd.c's
954 default_print_registers_info.
955 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
956 (sparclet_do_registers_info): Declare.
957 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
958 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
959 Re-define.
960 (sparc_do_registers_info): Declare.
961 (PRINT_REGISTER_HOOK): Delete macro.
962 (sparc_print_register_hook): Delete declaration.
963
8155455b
DC
9642002-11-05 David Carlton <carlton@math.stanford.edu>
965
966 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
967 functions.
968 (lookup_symbol_aux_local): New function.
969 (lookup_symbol_aux_symtabs): New function.
970 (lookup_symbol_aux_psymtabs): New function.
971
29924310
DC
9722002-11-05 David Carlton <carlton@math.stanford.edu>
973
974 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
975 previous values of 'objfile' and 'block'.
976
cc303028
PM
9772002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
978
979 * values.c (value_change_enclosing_type): Set
980 enclosing_type field correctly also for the case where
981 more memory needs to be allocated.
982
1d70089a
MK
9832002-11-03 Mark Kettenis <kettenis@gnu.org>
984
f16a25ae
MK
985 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
986 of puts_filtered.
987
1d70089a
MK
988 * i387-tdep.c (i387_print_float_info): Replace calls to
989 register_read and deprecated_read_register_gen with calls to
990 frame_register_read, and make the necessary adjustments to the
991 surrounding code.
992
7e20f3fb
AC
9932002-11-02 Andrew Cagney <ac131313@redhat.com>
994
995 * gdbarch.sh (register_reggroup_p): Allow default value.
996 * gdbarch.h, gdbarch.c: Regenerate.
997
192dbe33
AC
9982002-11-02 Andrew Cagney <ac131313@redhat.com>
999
1000 * regcache.h: Add coment indicating replacements for deprecated
1001 functions.
1002
b59ff9d5
AC
10032002-11-02 Andrew Cagney <cagney@redhat.com>
1004
1005 * reggroups.h, reggroups.c: New files.
1006 * regcache.c: Include "reggroups.h".
1007 (enum regcache_dump_what): Add `regcache_dump_groups'.
1008 (regcache_dump): Contract size of the "Type" column. When
1009 specified, dump the register's groups.
1010 (maintenance_print_register_groups): New function.
1011 (_initialize_regcache): Add command `maint print register-groups'.
1012 * Makefile.in (COMMON_OBS): Add reggroups.o
1013 (SFILES): Add reggroups.c.
1014 (reggroups_h): Define.
1015 (regcache.o, gdbarch.o): Update dependencies.
1016 (reggroups.o): Specify dependencies.
1017 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1018 Add opaque declaration for `struct reggroup' in generated .h file.
1019 Include "reggroups.h" in generated .c file.
1020 gdbarch.h, gdbarch.c: Re-generate.
1021
4caf0990
AC
10222002-11-02 Andrew Cagney <cagney@redhat.com>
1023
1024 * regcache.h (deprecated_read_register_gen): Rename
1025 read_register_gen.
1026 (deprecated_write_register_gen): Rename write_register_gen.
1027 * i387-tdep.c: Update.
1028 * x86-64-linux-nat.c: Update
1029 * wince.c: Update.
1030 * thread-db.c: Update.
1031 * win32-nat.c: Update.
1032 * mips-tdep.c: Update.
1033 * d10v-tdep.c: Update.
1034 * cris-tdep.c: Update.
1035 * remote-sim.c: Update.
1036 * remote-rdi.c: Update.
1037 * remote-rdp.c: Update.
1038 * frame.c: Update.
1039 * target.c: Update.
1040 * blockframe.c: Update.
1041 * x86-64-tdep.c: Update.
1042 * xstormy16-tdep.c: Update.
1043 * sh-tdep.c: Update.
1044 * s390-tdep.c: Update.
1045 * rs6000-tdep.c: Update.
1046 * sparc-tdep.c: Update.
1047 * i386-tdep.c: Update.
1048 * dwarf2cfi.c: Update.
1049 * regcache.c: Update.
1050
7a7adcdf
JB
10512002-11-01 Joel Brobecker <brobecker@gnat.com>
1052
1053 New interix-specific files:
1054 * config/i386/nm-interix.h: New file.
1055 * config/i386/interix.mh: New file.
1056 * config/i386/interix.mt: New file.
1057 * i386-interix-nat.c: New file.
1058 * i386-interix-tdep.c: New file.
1059
bdcdd535
AC
10602002-11-01 Andrew Cagney <cagney@redhat.com>
1061
1062 * frame.h (deprecated_generic_get_saved_register): Rename
1063 generic_get_saved_register.
1064 * blockframe.c (deprecated_generic_get_saved_register): Update.
1065 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1066 (xstormy16_frame_saved_register): Update.
1067 * sh-tdep.c (sh_gdbarch_init): Update.
1068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1069 * ia64-tdep.c (ia64_get_saved_register): Update.
1070 * cris-tdep.c (cris_gdbarch_init): Update.
1071 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1072 * arm-tdep.c (arm_gdbarch_init): Update.
1073
2a4b7c45
DJ
10742002-10-31 Daniel Jacobowitz <drow@mvista.com>
1075
1076 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1077
ef17e74b
DJ
10782002-10-31 Daniel Jacobowitz <drow@mvista.com>
1079
1080 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1081 trampolines in sigaction.
1082
4904ba5b
AC
10832002-10-31 Andrew Cagney <cagney@redhat.com>
1084
1085 * h8300-tdep.c: Include "gdb_assert.h".
1086 (h8300_print_register): Add gdbarch, file and frame parameters.
1087 Use frame_read_unsigned_register to read the register's value.
1088 Use fprintf_filtered to display output.
1089 (h8300_print_registers_info): Replace h8300_do_registers_info.
1090 (h8300_gdbarch_init): Set print_registers_info.
1091
f908a0eb
AC
10922002-10-31 Andrew Cagney <cagney@redhat.com>
1093
1094 * frame.c (frame_read_unsigned_register): New function.
1095 (frame_read_signed_register): New function.
1096 * frame.h (frame_read_unsigned_register): Declare.
1097 (frame_read_signed_register): Declare.
1098
c5646e11
AC
10992002-10-31 Andrew Cagney <cagney@redhat.com>
1100
1101 * h8500-tdep.c (h8500_print_registers_info): New static function,
1102 clone of infcmd.c's default_print_registers_info.
1103 (h8500_do_registers_info): New funtion.
1104 (h8500_print_register_hook): Rename print_register_hook, make
1105 static.
1106
1107 * config/h8500/tm-h8500.h: Update copyright.
1108 (DEPRECATED_DO_REGISTERS_INFO): Define.
1109 (h8500_do_registers_info: Declare.
1110 (PRINT_REGISTER_HOOK): Delete macro.
1111 (print_register_hook): Delete function.
1112
0bdd672b
AC
11132002-10-31 Andrew Cagney <cagney@redhat.com>
1114
1115 * z8k-tdep.c (z8k_print_register_hook): Make static.
1116 (z8k_print_registers_info): New static function, clone of
1117 infcmd.c's default_print_registers_info.
1118 (z8k_do_registers_info): New function. Wrap
1119 z8k_print_registers_info.
1120 * config/z8k/tm-z8k.h: Update copyright.
1121 (PRINT_REGISTER_HOOK): Delete macro.
1122 (z8k_print_register_hook): Delete declaration.
1123 (DEPRECATED_DO_REGISTERS_INFO): Define.
1124 (z8k_do_registers_info): Declare.
1125
bf9c25dc
JB
11262002-10-30 Joel Brobecker <brobecker@gnat.com>
1127
1128 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1129 as this is already provided by value.h, and was actually causing
1130 a compilation error because of a conflict in parameter type
1131 declaration due to a missing const keyword.
1132 (low_text_segment_addres): Fix a compilation warning.
1133
2c665b51
DJ
11342002-10-29 Daniel Jacobowitz <drow@mvista.com>
1135
1136 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1137 registers without a name.
1138 (mips_linux_cannot_store_register): Don't store registers without
1139 a name.
1140
e70ea697
DC
11412002-10-28 David Carlton <carlton@math.stanford.edu>
1142
1143 * symtab.c (find_addr_symbol): Delete. (It was already commented
1144 out.)
1145 * symtab.h: Delete prototype for find_addr_symbol.
1146
903ad3a6
AC
11472002-10-26 Andrew Cagney <cagney@redhat.com>
1148
1149 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1150 DO_REGISTERS_INFO.
1151 gdbarch.h, gdbarch.c: Re-generate.
1152 * infcmd.c (default_print_registers_info): Update reference.
1153 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1154 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1155 * sh-tdep.c (sh_gdbarch_init): Ditto.
1156 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1157 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1158
ab91194c
MK
11592002-10-26 Mark Kettenis <kettenis@gnu.org>
1160
e3033f15
MK
1161 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1162 cfi_init_extra_frame_info.
1163 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1164 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1165
b83b026c
MK
1166 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1167 target where necessary. Add more comments and remove the ones
1168 that don't provide any useful information.
1169
267bf4bb
MK
1170 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1171 deprecated_read_register_dummy with
1172 frame_unwind_unsigned_register.
1173
751f1375
MK
1174 * i386-tdep.c (i386_extract_struct_value_address): Use
1175 regcache_raw_read_unsigned instead of
1176 regcache_cooked_read_unsigned since we know that the register
1177 we're reading isn't a pseudo register. Rename variable 'val' into
1178 the more descriptive 'addr'.
1179
26abbdc4
MK
1180 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1181 (x86_64_push_return_address): Add comment.
1182 (x86_64_pop_frame): Make static.
1183 (examine_argument): Clarify comment.
1184 (x86_64_skip_prologue): Make prolog_expact variable static.
1185
9f1549cc
MK
1186 * dwarf2cfi.c: Fix some formatting problems.
1187 (context_cpy, read_encoded_pointer): Clarify comments.
1188
ab91194c
MK
1189 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1190 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1191 i386 target back into x86_64_gdbarch_init. Add some comments and
1192 remove meaningless ones.
1193
72367fb4
AC
11942002-10-25 Andrew Cagney <cagney@redhat.com>
1195
1196 * complaints.h (struct deprecated_complaint): Rename `struct
1197 complaint'.
1198 * complaints.c (complain): Update.
1199 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1200 incorrect comment indicating that "symfile.h" was being included
1201 for the `struct complaint' definition.
1202 * remote-vx.c: Update.
1203 * objc-lang.c: Update.
1204 * xcoffread.c: Update.
1205 * hpread.c: Update.
1206 * mdebugread.c: Update.
1207 * stabsread.c: Update.
1208 * dwarf2read.c: Update.
1209 * dwarfread.c: Update.
1210 * elfread.c: Update.
1211 * coffread.c: Update.
1212 * stabsread.h: Update.
1213 * dbxread.c: Update.
1214 * buildsym.c: Update.
1215 * gdbtypes.c: Update.
1216 * macrotab.c: Update.
1217
1f2baacc
MK
12182002-10-25 Mark Kettenis <kettenis@gnu.org>
1219
0c1a73d6
MK
1220 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1221 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1222 (x86_64_init_abi): ...new function.
1223
6aee4d54 1224 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1225 * i386v-nat.c: Include "i386-tdep.h".
1226
8f9cbe01
AC
12272002-10-25 Andrew Cagney <cagney@redhat.com>
1228
5f11f355
AC
1229 * gdbtypes.c (address_space_name_to_int): Update.
1230 (address_space_int_to_name): Update.
1231 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1232 multi-arch predicate.
1233 (address_class_name_to_type_flags): Ditto.
1234 * gdbarch.h, gdbarch.c: Re-generate.
1235
8f9cbe01
AC
1236 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1237
e8d96a5d
MH
12382002-10-24 Martin M. Hunt <hunt@redhat.com>
1239
1240 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1241
fe39c653
EZ
12422002-10-24 Elena Zannoni <ezannoni@redhat.com>
1243
1244 * symtab.h (INIT_SAL): Delete macro.
1245 (init_sal): Export.
1246 * symtab.c (init_sal): New function.
1247
1248 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1249 to init_sal function call.
1250 (find_sal_from_funcs_and_line): Ditto.
1251 (all_sals_for_line): Ditto.
1252 * breakpoint.c (create_internal_breakpoint): Ditto.
1253 (create_fork_vfork_event_catchpoint): Ditto.
1254 (create_exec_event_catchpoint): Ditto.
1255 (parse_breakpoint_sals): Ditto.
1256 (watch_command_1): Ditto.
1257 (handle_gnu_4_16_catch_command): Ditto.
1258 (clear_command): Ditto.
1259 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1260 * infcmd.c (run_stack_dummy): Ditto.
1261 * infrun.c (process_event_stop_test): Ditto.
1262 (check_sigtramp2): Ditto.
1263 (step_over_function): Ditto.
1264 * linespec.c (decode_line_2): Ditto.
1265 (decode_line_1): Ditto.
1266 * source.c (line_info): Ditto.
1267 * symtab.c (find_pc_sect_line): Ditto.
1268
baed091b
ML
12692002-10-24 Michal Ludvig <mludvig@suse.cz>
1270
1271 * dwarf2cfi.c (struct context)
1272 (struct context_reg): Moved to dwarf2cfi.h
1273 (context_alloc, frame_state_alloc, context_cpy):
1274 Made extern instead of static, removed prototypes.
1275 * dwarf2cfi.h (struct context)
1276 (struct context_reg): New, moved from dwarf2cfi.c
1277 (context_alloc, frame_state_alloc, context_cpy):
1278 New prototypes.
1279 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1280 Changed from static to extern.
1281 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1282 (LINUX_SIGCONTEXT_FP_OFFSET)
1283 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1284 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1285 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1286 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1287 set_gdbarch_*() calls now use x86-64 specific functions
1288 instead of DWARF2 CFI ones.
1289 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1290 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1291 (x86_64_init_extra_frame_info): New prototypes.
1292
c38da1af
DC
12932002-10-23 David Carlton <carlton@math.stanford.edu>
1294
1295 * linespec.c: #include "parser-defs.h".
1296 Delete prototype for find_template_name_end.
1297 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1298
fb9b6b35
JJ
12992002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1300
1301 * NEWS: add recent mi fixes.
1302 * varobj.c (struct varobj): Add new "updated" flag.
1303 (new_variable): Default "updated" flag to 0.
1304 (varobj_set_value): Set "updated" flag to 1 if value
1305 changes.
1306 (varobj_update): Check varobj "updated" flag before
1307 comparing old and refreshed values. Fix for
1308 PR gdb/702.
1309
8da065d5
DC
13102002-10-23 David Carlton <carlton@math.stanford.edu>
1311
1312 * parse.c (parse_exp_1): Use BLOCK_START.
1313 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1314 SYMBOL_BLOCK_VALUE.
1315 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1316
87f2f08c
DC
13172002-10-23 David Carlton <carlton@math.stanford.edu>
1318
1319 * symtab.c: Delete cplusplus_hint.
1320 Delete prototype for find_template_name_end.
1321
88cda038
EZ
13222002-10-23 Elena Zannoni <ezannoni@redhat.com>
1323
1324 * symtab.h: Update comment.
1325
2625d86c
MS
13262002-10-23 Michael Snyder <msnyder@redhat.com>
1327
1328 * printcmd.c (address_info): Restore quotes in output.
1329 * valops.c (value_of_local): Restore quotes in error message.
1330
9cc0d196
EZ
13312002-10-23 Elena Zannoni <ezannoni@redhat.com>
1332
1333 * symtab.c (symbol_demangled_name): New function.
1334 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1335 turning most of it into a function.
1336 (symbol_demangled_name): Export.
1337
19de93d0
MS
13382002-10-23 Michael Snyder <msnyder@redhat.com>
1339
1340 * valops.c (value_of_local): Restore quotes in error message.
1341
89aad1f9
EZ
13422002-10-23 Elena Zannoni <ezannoni@redhat.com>
1343
1344 * symtab.c (symbol_init_language_specific): New function.
1345 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1346 turning most of it into a function.
1347 (symbol_init_language_specific): Export.
1348
d9fa45fe
DC
13492002-10-23 David Carlton <carlton@math.stanford.edu>
1350
1351 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1352 (dwarf_attr_name): Ditto.
1353 (dwarf_type_encoding_name): Ditto.
1354 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1355 (process_die): Handle DW_TAG_namespace,
1356 DW_TAG_imported_declaration, DW_TAG_imported_module.
1357 (read_namespace): New function.
1358
1045b512
JB
13592002-10-22 Joel Brobecker <brobecker@gnat.com>
1360
1361 * configure.in: Define NEW_PROC_API on Interix too.
1362 * configure: Regenerate.
1363
13642002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1365
1366 * configure: Regenerate using the proper version of autoconf.
1367
3987b9d4
EZ
13682002-10-21 Elena Zannoni <ezannoni@redhat.com>
1369
1370 * findvar.c (read_var_value): Temporarily disable TLS code, until
1371 complete TLS support is added.
1372
9d774e44
EZ
13732002-10-21 Jim Blandy <jimb@redhat.com>
1374 Elena Zannoni <ezannoni@redhat.com>
1375
1376 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1377 for thread local storage locations.
1378 (struct symbol): Add objfile field.
1379 (SYMBOL_OBJFILE): Define.
1380 * dwarf2read.c (is_thread_local): New static variable.
1381 (new_symbol): If variable is in thread local fill in address class
1382 and objfile appropriately.
1383 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1384 stack operation.
1385 * printcmd.c (address_info): Print the information for thread
1386 local storage variable.
1387 * findvar.c (read_var_value): In case of thread local variable,
1388 defer to the target vector code to compute address.
1389
bc4a16ae
EZ
13902002-10-21 Elena Zannoni <ezannoni@redhat.com>
1391
1392 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1393 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1394
407caf07
EZ
13952002-10-21 Elena Zannoni <ezannoni@redhat.com>
1396
1397 * symtab.h (address_class): Rename
1398 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1399 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1400 * printcmd.c (address_info): Ditto.
1401 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1402
005328e3
MK
14032002-10-20 Mark Kettenis <kettenis@gnu.org>
1404
afdb036a
MK
1405 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1406 DBREG_DRX macro to acces debug registers.
1407
ca02e098
MK
1408 * Makefile.in (i386obsd-tdep.o): New target.
1409
03cc47f7
MK
1410 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1411 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1412
005328e3
MK
1413 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1414 * config/i386/obsd.mt: New file.
1415 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1416 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1417 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1418 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1419 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1420 * i386obsd-tdep.c: New file.
1421
9c96f9f2
AF
14222002-10-19 Adam Fedor <fedor@gnu.org>
1423
1424 * objc-exp.y (name_not_typename): Fix invalid comment.
1425
ce1ed485
MK
14262002-10-20 Mark Kettenis <kettenis@gnu.org>
1427
1428 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1429 to allocate partial syms and macro byte caches.
1430
1efc7aaa
DC
14312002-10-18 David Carlton <carlton@math.stanford.edu>
1432
1433 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1434
7e1d63ec
AF
14352002-10-18 Adam Fedor <fedor@gnu.org>
1436
1437 * stabsread.c (find_name_end): New function.
1438 (define_symbol): Use it.
1439
6e8d29a9
DJ
14402002-10-18 Daniel Jacobowitz <drow@mvista.com>
1441
1442 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1443 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1444 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1445 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1446
1efc7aaa 14472002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
1448
1449 * symfile.h: Add opaque declaration for struct obstack.
1450 Declare obsavestring to take a const char *.
1451 * symfile.c (obsavestring): Make first argument a const char *.
1452
1aeae86e
AF
14532002-10-16 Adam Fedor <fedor@gnu.org>
1454
1455 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1456 names when matching breakpoints in current file.
1457
8b2dbe47
KB
14582002-10-16 Kevin Buettner <kevinb@redhat.com>
1459
1460 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1461 (read_tag_pointer_type): Add address class support.
1462 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1463 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1464 New methods.
1465 * gdbarch.h, gdbarch.c: Regenerate.
1466 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1467 (make_type_with_address_space, recursive_type_dump): Add address
1468 class support.
1469 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1470 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1471 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1472
74451869
KD
14732002-10-16 Klee Dienes <kdienes@apple.com>
1474
1475 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1476 to get the last character of a char[] buffer, not
1477 name[sizeof(vptr_name)-1].
1478
ff4cb3e8
AF
14792002-10-14 Adam Fedor <fedor@gnu.org>
1480
1481 * symtab.h: New objc_specific struct.
1482 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1483 (SYMBOL_DEMANGLED_NAME): Likewise.
1484
da2cf7e0
AF
14852002-10-14 Adam Fedor <fedor@gnu.org>
1486
1487 * symfile.c (init_filename_language_table): Add ObjC file extension.
1488
4a351cef
AF
14892002-10-14 Adam Fedor <fedor@gnu.org>
1490
1491 * utils.c (puts_filtered_tabular): New function.
1492 (fprintf_symbol_filtered): Get ObjC demangled name.
1493 * defs.h (puts_filtered_tabular): Declared.
1494
9750e763
KB
14952002-10-14 Kevin Buettner <kevinb@redhat.com>
1496
1497 * c-lang.h (c_type_print_varspec_prefix): Delete.
1498 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1499 ``need_post_space'' parameter. Adjust all callers.
1500
eee771c1
DJ
15012002-10-14 Daniel Jacobowitz <drow@mvista.com>
1502
1503 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1504 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1505 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1506 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1507
46c82446
AF
15082002-10-13 Adam Fedor <fedor@gnu.org>
1509
1510 * source.c (print_source_lines): Update comments.
1511
d069f99d
AF
15122002-10-13 Adam Fedor <fedor@gnu.org>
1513
1514 * valops.c (value_of_local): New function.
1515 (value_of_this): Use it.
1516 * value.h (value_of_local): Declared.
1517
53c551b7
AF
15182002-10-13 Adam Fedor <fedor@gnu.org>
1519
1520 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1521 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1522
eb392fbf
AF
15232002-10-12 Adam Fedor <fedor@gnu.org>
1524
1525 * language.c (binop_result_type): Add language_objc to case.
1526 (integral_type): Likewise.
1527 (character_type): Likewise.
1528 (string_type): Likewise.
1529 (boolean_type): Likewise.
1530 (structured_type): Likewise.
1531 (binop_type_check): Likewise.
1532
e2b23ee9
AF
15332002-10-11 Adam Fedor <fedor@gnu.org>
1534
1535 * printcmd.c (address_info): Print 'self' for ObjC.
1536
b01ab485
AF
15372002-10-11 Adam Fedor <fedor@gnu.org>
1538
1539 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1540 OP_SELF.
1541
806e6073
AF
15422002-10-11 Adam Fedor <fedor@gnu.org>
1543
1544 * language.h (CAST_IS_CONVERSION): Add language_objc.
1545
50f85cdf
AF
15462002-10-11 Adam Fedor <fedor@gnu.org>
1547
1548 * defs.h (enum language): Add language_objc.
1549
0d540cdf
KD
15502002-10-11 Klee Dienes <kdienes@apple.com>
1551
69266111 1552 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
1553 * gdbcore.h (read_memory_typed_address): Add prototype.
1554 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1555 to read a value destined for a CORE_ADDR, not read_memory_integer.
1556 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1557 (f77_get_dynamic_lowerbound): Ditto.
1558
d5dc7960
MH
15592002-10-11 Martin M. Hunt <hunt@redhat.com>
1560
1561 * utils.c (string_to_core_addr): After turning string into
1562 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1563 which will do necessary sign-extension, etc.
1564
8343f86c
DJ
15652002-10-11 Daniel Jacobowitz <drow@mvista.com>
1566
1567 * c-exp.y (THIS): Delete token and grammar rule.
1568 (yylex): Don't return THIS.
1569 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1570 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1571 * demangle.c (cplus_markers): Update comment. Put '$'
1572 first. Remove CPLUS_MARKER.
1573 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1574 * jv-exp.y (THIS): Delete token and grammar rule.
1575 (yylex): Don't return THIS.
1576 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1577 * objc-exp.y (THIS): Delete token and grammar rule.
1578 (yylex): Don't return THIS.
1579 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1580 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1581 (read_member_functions): Likewise for opname.
1582 (read_tilde_fields): Use is_cplus_marker.
1583
1584 * defs.h (CPLUS_MARKER): Don't define.
1585 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1586 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1587 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1588 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1589 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1590
1591 * config/i386/tm-i386v4.h: Delete file.
1592 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1593 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1594 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1595 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1596 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1597 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1598 * config/i386/i386v4.mt (TM_FILE): Likewise.
1599 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1600
967c0d83
MM
16012002-10-10 Marko Mlinar <markom@opencores.org>
1602
1603 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1604 accidentially not commited 2002-10-09
1605 * gdbarch.h, gdbarch.c: Re-generate.
1606
f74fa174
MM
16072002-10-09 Marko Mlinar <markom@opencores.org>
1608
1609 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1610 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1611 * gdbarch.h, gdbarch.c: Re-generate.
1612
57349743
JB
16132002-10-08 Petr Sorfa <petrs@caldera.com>
1614
1615 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1616
1617 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1618 so we can work on more than one compilation unit at a time. This
1619 helps prepare GDB to handle inter-CU die references.
1620 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1621 the code to be defined before struct comp_unit_head.
1622 (comp_unit_head): Added new members - offset, cu_head,
1623 begin_die, next and dwarf2_abbrevs.
1624 (dwarf2_abbrevs): Removed single static var; now member of
1625 struct comp_unit_head.
1626 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1627 members.
1628 (psymtab_to_symtab_1): Changed to work with the new
1629 struct comp_unit_head.
1630 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1631 constructs the dwarf2_abbrevs[] inside the cu_header.
1632 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1633 dwarf2_abbrev table to clean up.
1634 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1635 handling of dwarf2_abbrevs inside the cu_header.
1636 (read_partial_die): Now supports the call to the new
1637 dwarf2_lookup_abbrev.
1638 (read_full_die): Now supports the call to the new
1639 dwarf2_lookup_abbrev.
1640
4092aadb
CF
16412002-10-06 Christopher Faylor <cgf@redhat.com>
1642
1643 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1644 insure that shell variables, such as "transformed_name" are propagated
1645 to later shell statements in rule.
1646
af0b2512
MK
16472002-10-06 Mark Kettenis <kettenis@gnu.org>
1648
1649 * config/i386/nm-i386sco.h: Add protection against
1650 multiple-inclusion. Include "i386/nm-i386v.h".
1651 (REGISTER_U_ADDR): Remove define.
1652 (i386_register_u_addr): Remove prototype.
1653
d6020d45
MS
16542002-10-04 Michael Snyder <msnyder@redhat.com>
1655
1656 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1657 before treating it as a single-step event.
1658
7248f48e
AF
16592002-10-03 Adam Fedor <fedor@gnu.org>
1660
1661 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1662 (objc_demangle): Remove assignment in if statements, Replace
1663 free with xfree.
1664 (add_msglist): Likewise.
1665 (end_msglist): Likewise.
1666 (complare_selectors): Likewise.
1667 (selectors_info): Likewise.
1668 (compare_classes): Likewise.
1669 (classes_info): Likewise.
1670 (print_object_command): Likewise.
1671 (find_objc_msgcall_submethod): Replace PTR with void *.
1672 * objc-lang.h: Remove check for __STDC__.
1673
52c6a6ac
JJ
16742002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1675
1676 * ui-out.h (ui_out_field_fmt_int): New prototype.
1677 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1678 of field width and alignment.
1679 * stack.c (print_frame_info_base): When printing frame level, use
1680 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1681 PR gdb/192
1682
7e3cec17
JJ
16832002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1684
1685 * MAINTAINERS: Add self to Write After Approval list.
1686
a58dd373
EZ
16872002-10-02 Elena Zannoni <ezannoni@redhat.com>
1688
1689 * infcmd.c (interrupt_target_command_wrapper): Delete.
1690 (interrupt_target_command): Make non static.
1691 (nofp_registers_info): Make static.
1692 * stack.c (return_command_wrapper): Delete.
1693 (return_command): Make non static.
1694
cee6ddeb
EZ
16952002-10-02 Elena Zannoni <ezannoni@redhat.com>
1696
1697 * event-top.c (gdb_setup_readline): New function. Code moved from
1698 _initialize_event_loop().
1699 (_initialize_event_loop): Call gdb_setup_readline().
1700
c4ed33b9
AC
17012002-10-02 Andrew Cagney <ac131313@redhat.com>
1702
1703 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1704 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1705 * gdbarch.h, gdbarch.c: Re-generate.
1706
cef4f5dd
DJ
17072002-10-02 Daniel Jacobowitz <drow@mvista.com>
1708
1709 Fix PR gdb/778
1710 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1711 before recursing.
1712 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1713 of fill_in_vptr_fieldno.
1714
36dc181b 17152002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 1716
36dc181b
EZ
1717 * inferior.h (registers_info, stepi_command, nexti_command,
1718 continue_command, interrupt_target_command): Export from infcmd.c.
1719 * frame.h (args_info, selected_frame_level_changed_hook,
1720 return_command): Export from stack.c.
1721 * v850ice.c (stepi_command, nexti_command, continue_command): use
1722 prototypes from inferior.h.
1723 * tracepoint.c (registers_info, args_info, locals_info): Use
1724 prototypes from frame.h and inferior.h.
1725 * Makefile.in (mi-main.o): Add dependency on frame.h.
1726
6f99cb26
AC
17272002-10-02 Andrew Cagney <ac131313@redhat.com>
1728
da3eff49
AC
1729 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1730 value in register 3 adjusted by ppc_gp0_regnum.
1731
6f99cb26
AC
1732 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1733
da615bee
MM
17342002-10-02 Marko Mlinar <markom@opencores.org>
1735
1736 * MAINTAINERS: Add myself to the Write After Approval list.
1737
d154bee2
AO
17382002-10-01 Alexandre Oliva <aoliva@redhat.com>
1739
62a49b2c
AO
1740 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1741 of the section for the N64 ABI, fixed.
1742
d154bee2
AO
1743 * config/mips/tm-irix6.h: Include solib.h.
1744
ed348acc
EZ
17452002-10-01 Elena Zannoni <ezannoni@redhat.com>
1746
1747 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1748 GNU operators.
1749
da0f9dcd
AC
17502002-10-01 Andrew Cagney <ac131313@redhat.com>
1751
1752 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1753 and that "mi0" syntax has been removed.
1754
bdf64bac
DC
17552002-09-30 David Carlton <carlton@math.stanford.edu>
1756
1757 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1758 * ppc-sysv-tdep.c: #include "gdb_string.h".
1759 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1760 pacify GCC.
1761
54c2a1e6
AC
17622002-10-01 Andrew Cagney <ac131313@redhat.com>
1763
1764 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1765 "vrsave"'s register number.
1766
cedea778
AC
17672002-09-30 Andrew Cagney <ac131313@redhat.com>
1768
1769 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1770 use frame_unwind_signed_register to obtain the PC.
1771 (mips_frame_chain): Handle a generic dummy frame.
1772 (mips_init_extra_frame_info): When a generic dummy frame, don't
1773 re-compute the frame base.
1774 (mips_pop_frame): Handle generic dummy frames.
1775 (mips_gdbarch_init): When generic dummy frames, set
1776 use_generic_dummy_frames, push_dummy_frame to
1777 generic_push_dummy_frame, pc_in_call_dummy to
1778 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1779 generic_save_dummy_frame_tos.
1780
68315eb8
AC
17812002-09-30 Andrew Cagney <ac131313@redhat.com>
1782
1783 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1784 against TOP when TOP was explictly set.
1785 (generic_push_dummy_frame): Set TOP to zero.
1786
3b8630c3
EZ
17872002-09-30 Elena Zannoni <ezannoni@redhat.com>
1788
1789 * event-loop.c (start_event_loop): Rename variable 'result' to
1790 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1791
28ee05e9
KS
17922002-09-30 Keith Seitz <keiths@redhat.com>
1793
1794 * gdb-events.sh (selected_thread_changed): New event.
1795 * gdb-events.c: Regenerated.
1796 * gdb-events.h: Regenerated.
1797
6eecb1c8
HPN
17982002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1799
1800 * MAINTAINERS: Add self to Write After Approval list.
1801
92df71f0
FN
18022002-09-30 Fernando Nasser <fnasser@redhat.com>
1803
3b8630c3
EZ
1804 * disasm.c: New file.
1805 * disasm.h: New file.
92df71f0
FN
1806 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1807 (compare_lines): Ditto.
1808 (dump_insns): Ditto.
3b8630c3
EZ
1809 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1810 argument.
92df71f0 1811 (do_assembly_only): Ditto.
3b8630c3
EZ
1812 (do_disassembly): Renamed to gdb_disassembly and moved to
1813 disasm.c. Sdded uiout argument.
1814 * Makefile.in: Add new files. Reorder SFILES list. Update
1815 dependencies. Include libgdb.a later in the insight executable.
92df71f0 1816
0c22854d
AC
18172002-09-29 Andrew Cagney <ac131313@redhat.com>
1818
1819 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1820 bfd/elf64-alpha-fbsd.c.
1821
e67f2023
AC
18222002-09-29 Andrew Cagney <ac131313@redhat.com>
1823
1824 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1825 i386gnu-tdep.c.
1826
89396210
AC
18272002-09-29 Andrew Cagney <ac131313@redhat.com>
1828
1829 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1830 __FUNCTION__.
1831 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1832 function name.
1833 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1834 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1835 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1836 (S_msg_sig_post_reply): Ditto.
1837
7079c36c
CV
18382002-09-28 Corinna Vinschen <vinschen@redhat.com>
1839
89396210
AC
1840 * sh-tdep.c (sh_use_struct_convention): Use definition according
1841 to ABI.
7079c36c
CV
1842 (sh_push_arguments): Store in register with correct endianess.
1843 (sh_default_store_return_value): Ditto.
1844 (sh_gdbarch_init): Set sizeof long double to 8.
1845
975ac915
MK
18462002-09-27 Mark Kettenis <kettenis@gnu.org>
1847
1848 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1849 Fix some whitespace problems.
1850
9bbe19fb
DC
18512002-09-27 David Carlton <carlton@math.stanford.edu>
1852
1853 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1854 (mcore-tdep.o): Ditto.
1855 (ns32k-tdep.o): Ditto.
1856 (ns32knbsd-tdep.o): Ditto.
1857 (sh3-rom.o): Ditto.
1858 (vax-tdep.o): Ditto.
1859 * cris-tdep.c: #include "gdb_string.h"
1860 * mcore-tdep.c: Ditto.
1861 * ns32k-tdep.c: Ditto.
1862 * ns32knbsd-tdep.c: Ditto.
1863 * sh3-rom.c: Ditto.
1864 * vax-tdep.c: Ditto.
1865
43b2fdc7
DC
18662002-09-27 David Carlton <carlton@math.stanford.edu>
1867
1868 * config/djgpp/fnchange.lst: Add entries for
1869 gdb/testsuite/gdb.c++/m-static files.
1870
e8cfbbd9
JW
18712002-09-27 Jim Wilson <wilson@redhat.com>
1872
1873 * MAINTAINERS: Add myself to the Write After Approval list.
1874
43b2fdc7 18752002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
1876
1877 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1878
1879
9f3b7f07
AC
18802002-09-26 Andrew Cagney <ac131313@redhat.com>
1881
1882 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1883 frame.
1884
11269d7e
AC
18852002-09-26 Andrew Cagney <ac131313@redhat.com>
1886
1887 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1888 (rs6000_struct_return_address): Delete variable.
1889 (rs6000_store_struct_return): Update.
1890 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1891 deprecated_extract_struct_value_address.
1892 (rs6000_frame_align): New function.
1893 (rs6000_gdbarch_init): Set frame_align.
1894
f15ab4a7
AC
18952002-09-26 Andrew Cagney <ac131313@redhat.com>
1896
1897 From Grace Sainsbury <graces@redhat.com>:
1898 * Makefile.in (gdbtk-main.o): New target.
1899 (gdb.o): New target.
1900 (main_h): Define.
1901 (main.o): Update dependencies.
1902 (gdb$(EXEEXT)): Add gdb.o.
1903 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1904 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1905 (SUBDIR_GDBTK_CLEAN): Set.
1906 (install-gdbtk): Install the insight binary.
1907 (uninstall-gdbtk): New target.
1908 (all-gdbtk, clean-gdbtk): New rule.
1909 * top.c (use_windows): Default to zero.
1910 * main.c: Include "main.h".
1911 (main): Delete.
1912 (struct captured_main_args): Delete.
1913 (gdb_main): New function.
1914 * main.h: New file.
1915 * gdb.c: New File.
1916
e36180d7
AC
19172002-09-25 Andrew Cagney <cagney@redhat.com>
1918
1919 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1920 (frame_map_regnum_to_name): New function.
1921 (frame_map_name_to_regnum): New function.
1922 * frame.h (frame_map_name_to_regnum): Declare.
1923 (frame_map_regnum_to_name): Declare.
1924 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1925 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1926 * parse.c: Do not include "builtin-regs.h".
1927 (target_map_name_to_register): Delete function.
1928 (write_dollar_variable): Use frame_map_name_to_regnum.
1929 * parser-defs.h (target_map_name_to_register): Delete declaration.
1930 * expprint.c: Include "frame.h".
1931 (print_subexp): Use frame_map_regnum_to_name.
1932 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1933 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1934
8b69000d
AC
19352002-09-25 Andrew Cagney <ac131313@redhat.com>
1936
1937 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1938 wasn't saved, and the next innermost frame is a dummy, return the
1939 dummy frame's link register.
1940
046ca86a
JB
19412002-09-24 Jim Blandy <jimb@redhat.com>
1942
1943 Fix from Paul Breed:
1944 * main.c (captured_main): Add a `break' after the case for 'b'.
1945
94b66fa7
KS
19462002-09-24 Keith Seitz <keiths@redhat.com>
1947
1948 * varobj.c (c_type_of_child): Use get_target_type instead
1949 of TYPE_TARGET_TYPE.
1950
c214a6fd
FN
19512002-09-22 Fernando Nasser <fnasser@redhat.com>
1952
53cb0458
FN
1953 * source.c (get_current_or_default_source_symtab_and_line): Remove
1954 function.
1955 (set_default_source_symtab_and_line): New function. Attempts to
1956 determine a source file to list lines from if one is not currently
1957 defined.
1958 (get_current_source_symtab_and_line): Initialize sal.pc and
1959 sal.end fields.
1960 (set_current_source_symtab_and_line): Mark argument as const.
1961 * source.h: Update declarations and comments.
1962 * linespec.c (decode_line_1): Replace call to removed routine above.
1963 * stack.c (print_frame_info_base): Ditto.
1964 * cli/cli-cmds.c (edit_command): Ditto.
1965 (list_command): Ditto.
1966
19672002-09-22 Fernando Nasser <fnasser@redhat.com>
1968
d6020d45 1969 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 1970 sal.pc and sal.end fields.
c214a6fd
FN
1971 (get_current_or_default_source_symtab_and_line): Ditto.
1972 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1973 so we do not cause a new source symtab to be searched for (reverting an
1974 unintentional change from the 2002-09-20 patch).
1975 * scm-lang.c (scm_unpac): Ditto.
1976
cc3b68a5
AC
19772002-09-21 Andrew Cagney <cagney@redhat.com>
1978
1979 * complaints.c (symfile_explanations): Remove new-line from
1980 ``isolated_message''.
1981 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1982 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1983
5835abe7
NC
19842002-09-20 Nick Clifton <nickc@redhat.com>
1985
1986 * NEWS: Announce that V850EA ISA is no longer supported.
1987 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1988
a15ef5f5
DC
19892002-09-20 David Carlton <carlton@math.stanford.edu>
1990
06ba1b39
DC
1991 * Makefile.in (c-lang.o): Correct dependencies.
1992 (utils.o): Gather dependencies.
1993 (charset.o): Move.
a15ef5f5
DC
1994 * c-lang.c: #include "gdb_string.h"
1995
87885426
FN
19962002-09-20 Fernando Nasser <fnasser@redhat.com>
1997
1998 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1999 * cli/cli-cmds.c (list_command): New function. Implements the new
2000 cli edit command.
2001 (_init_cli_cmds): Add new command definition.
2002 * gdb.1: Document edit command.
2003 * doc/gdb.texinfo: Document edit command.
2004
20052002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2006
2007 * source.c: Make global variables current_source_symtab and
2008 current_source_line static.
2009 (list_command): Moved to cli/cli-cmds.c.
2010 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2011 (get_first_line_listed): New accessor function.
2012 (get_lines_to_list): New accessor function.
2013 (get_current_source_symtab_and_line): New function. Retrieves the
2014 position in the source code that we consider current.
2015 (get_current_or_default_source_symtab_and_line): New function.
2016 Like the above but attempts to determine a default position if one
2017 is not currently defined.
2018 (set_current_source_symtab_and_line): New function. Sets the source
2019 code position considered current and returns the previously set one.
2020 (clear_current_source_symtab_and_line): Reset stored information about
2021 a current source line.
2022 (_initialize_source): Remove registration for the "list" command and
2023 its alias.
2024 * source.h: Add declarations for the new functions above.
2025 * symtab.h: Remove declarations for the global variables mentioned
2026 above.
2027 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2028 obtain current source line.
2029 * linespec.c (decode_line_1): Ditto.
2030 * macroscope.c (default_macro_scope): Ditto.
2031 * scm-lang.c (scm_unpac): Ditto.
2032 * stack.c (print_frame_info_base): Ditto.
2033 * symfile.c (clear_symtab_users): Ditto.
2034 * symtab.c (decode_line_spec): Ditto.
2035 * cli/cli-cmds.c (list_command): Moved here from source.c.
2036 (ambiguous_line_spec): Moved here from source.c.
2037 (_init_cli_cmds): Add definition for "list" and its alias.
2038 * Makefile.in: Update dependencies.
2039
ddd216ea
CV
20402002-09-20 Corinna Vinschen <vinschen@redhat.com>
2041
2042 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2043 with what gcc thinks is correct.
2044
6d305052
CV
20452002-09-20 Corinna Vinschen <vinschen@redhat.com>
2046
2047 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2048 multiple register push instruction.
2049
234b45d4
KB
20502002-09-19 Jim Blandy <jimb@redhat.com>
2051
2052 Add support for distinct host and target character sets.
2053 * charset.c, charset.h: New files.
2054 * c-exp.y: #include "charset.h".
2055 (yylex): Convert character and string literals to the target
2056 character set, before returning them as the semantic value of the
2057 token.
2058 * c-lang.c: #include "charset.h".
2059 (c_emit_char): Use charset-specific methods to recognize
2060 characters with backslash escape forms, to decide which characters
2061 to print literally and which to print using numeric escape
2062 sequences, and to convert target characters to host characters
2063 before printing.
2064 * utils.c: #include "charset.h".
2065 (no_control_char_error): New function.
2066 (parse_escape): Use charset-specific methods to recognize
2067 backslash escapes, parse `control character' notation, and convert
2068 characters from the host character set to the target character set.
2069 * configure.in: Set the default host character set.
2070 Check where to find iconv, and what its argument types might be.
2071 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2072 * Makefile.in (SFILES): List charset.c.
2073 (COMMON_OBS): List charset.o.
2074 (charset.o): New rule.
2075 (charset_h): New header dependency variable.
2076 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2077 (LIBICONV): New variable, set by configure.
2078 (CLIBS): Include $(LIBICONV) here.
2079 * aclocal.m4, config.in, configure: Regenerated.
2080
525d6a61
JB
20812002-09-19 Joel Brobecker <brobecker@gnat.com>
2082
2083 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2084 bison 1.35 warning.
2085
3ed93867
RE
20862002-09-19 Richard Earnshaw <rearnsha@arm.com>
2087
2088 * gdb_mbuild.sh: New file.
2089
437666f8
AC
20902002-09-19 Andrew Cagney <ac131313@redhat.com>
2091
2092 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2093
389e51db
AC
20942002-09-18 Andrew Cagney <ac131313@redhat.com>
2095
2096 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2097 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2098 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2099 valops.c, value.h: Revert previous change.
2100
3b4efeaa
MS
21012002-09-18 Michael Snyder <msnyder@redhat.com>
2102
2103 Preliminary support for Objective-C:
2104 * defs.h (language_objc): New enum value.
2105 (puts_filtered_tabular): Declaration only, exported from utils.c.
2106 (skip_quoted): Delete, declared in completer.h.
2107 * c-exp.y: Include completer.h.
2108 * p-exp.y: Ditto.
2109 * jv-exp.y: Ditto.
2110 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2111 New operator enum values.
2112 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2113 * language.c (binop_result_type): Handle language_objc case.
2114 (integral_type, character_type, string_type, boolean_type,
2115 structured_type, binop_type_check): Ditto.
2116 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2117 (struct objc_specific): Add to general_symbol_info.
2118 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2119 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2120 * parser-defs.h (struct objc_class_str): New struct type.
2121 (start_msglist, end_msglist, add_msglist): Declaration only,
2122 exported from objc-lang.c.
2123 * value.h (value_of_local, value_nsstring,
2124 call_function_by_hand_expecting_type): Exported from valops.c.
2125 * valops.c (find_function_addr): Export.
2126 (call_function_by_hand_expecting_type): New function.
2127 (value_of_local): New function.
2128 * symfile.c (init_filename_language_table): Add ".m" extension
2129 for Objective-C.
2130 * utils.c (puts_filtered_tabular): New function.
2131 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2132 (set/show demangle): Extend help-string to refer to ObjC.
2133 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2134 * stabsread.c (symbol_reference_defined): Objective-C symbols
2135 may contain colons: make allowances when scanning stabs strings
2136 for colons.
2137 (objc_find_colon): New function.
2138 * printcmd.c (address_info): If language == objc then print
2139 "self" instead of "this".
2140 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2141 OP_NSSTRING, and OP_SELF.
2142 (prefixify_subexp): Ditto.
2143 * source.c (print_source_lines): Mention objc in comment.
2144 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2145 method names.
2146
b9caf505
AC
21472002-09-18 Andrew Cagney <ac131313@redhat.com>
2148
2149 * complaints.h: Update copyright.
2150 (struct complaints): Declare.
2151 (struct complaint): Make `message' constant.
2152 (internal_complaint): Declare.
2153 (complaint): Declare.
2154 (complaint_root): Delete declaration.
2155 (symfile_complaints): Delete declaration.
2156 (struct complaints): Add opaque declaration.
2157 (clear_complaints): Add a complaints parameter.
2158 * complaints.c: Update copyright.
2159 (enum complaint_series): Define.
2160 (complaint_root): Delete.
2161 (struct complaints): Define.
2162 (complaint_sentinel, symfile_complaint_book): New variables.
2163 (symfile_explanations, symfile_complaints): New variables.
2164 New variables.
2165 (get_complaints): New function.
2166 (vcomplaint): New function.
2167 (complaint): New function.
2168 (internal_complaint): New function.
2169 (complain): Call vcomplain with symfile_complaint.
2170 (clear_complaints): Rewrite.
2171 (_initialize_complaints): Use add_setshow_command.
2172 * Makefile.in (complaints.o): Update dependencies.
2173 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2174 to call to clear_complaints.
2175 (new_symfile_objfile, reread_symbols): Ditto.
2176 (oldsyms_complaint): Delete.
2177 (empty_symtab_complaint, unknown_option_complaint): Delete.
2178 (free_named_symtabs): Use complaint instead of complain.
2179
d2e6263c
MS
21802002-09-18 Michael Snyder <msnyder@redhat.com>
2181
5fb2031a
AC
2182 Contributed by Apple Computer, Inc. Merged with current sources
2183 by Adam Fedor <fedor@doc.com> [cagney].
2184
d2e6263c
MS
2185 * objc-lang.c: First clean-up round: comments, indentation.
2186 * objc-lang.h: Ditto.
2187 * objc-lang.y: Ditto.
2188
dec43320
AC
21892002-09-18 Andrew Cagney <ac131313@redhat.com>
2190
2191 * maint.c (maintenance_internal_error): Print the parameter as the
2192 error message.
2193 (maintenance_internal_warning): New function.
2194 (_initialize_maint_cmds): Add command `maint internal-warning'.
2195
2196 * defs.h (internal_warning, internal_vwarning): Declare.
2197 * utils.c (struct internal_problem): Define.
2198 (internal_vproblem): New function.
2199 (internal_warning): New function.
2200 (internal_vwarning): New function.
2201 (internal_warning_problem, internal_error_problem): New variables.
2202 (internal_verror): Just call internal_vproblem.
2203
b81654f1
MS
22042002-09-18 Michael Snyder <msnyder@redhat.com>
2205
2206 * objc-lang.c: New file, support for Objective-C.
2207 Preliminary check-in, not yet integrated into gdb.
2208 * objc-lang.h: New file.
2209 * objc-exp.y: New file.
2210
0542c381
AC
22112002-09-18 Andrew Cagney <ac131313@redhat.com>
2212
7bda5e4a
AC
2213 * infrun.c (signal_stop_update): Convert definition to ISO C.
2214 (signal_print_update): Ditto.
2215 (signal_pass_update): Ditto.
2216 * inflow.c (terminal_save_ours): Ditto.
2217
5247b418
AC
2218 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2219 comments.
2220
fc60962c
AC
2221 * config/djgpp/fnchange.lst: Handle name clashes between
2222 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2223 bfd/coff-tic80.c.
2224
0542c381
AC
2225 * i386-linux-tdep.h: Fix tipo.
2226
5b924b9b
AF
22272002-09-18 Adam Fedor <fedor@gnu.org>
2228
2229 * MAINTAINERS: Add myself to the Write After Approval list.
2230
5afc051b
JB
22312002-09-18 Jim Blandy <jimb@redhat.com>
2232
2233 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2234 texthigh and textlow to reader-specific structs caused
2235 objfile_relocate to miss them. This is fixable, but the work that
2236 the change was supposed to prepare GDB for never got done anyway.
2237
eb944380
DC
22382002-09-18 David Carlton <carlton@math.stanford.edu>
2239
2240 * MAINTAINERS: Alphabetize Write After Approval list.
2241
948e66d9
DJ
22422002-09-18 Daniel Jacobowitz <drow@mvista.com>
2243
2244 Fix PR gdb/709
2245 * values.c (value_static_field): Call read_var_value.
2246
dc604539
AC
22472002-09-18 Andrew Cagney <ac131313@redhat.com>
2248
2249 * valops.c (hand_function_call): Align the initial stack pointer
2250 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2251 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2252 return value.
2253 * mips-tdep.c (mips_frame_align): New function.
2254 (mips_gdbarch_init): Set frame_align.
2255 * gdbarch.sh (FRAME_ALIGN): New method.
2256 * gdbarch.h, gdbarch.c: Re-generate.
2257
cb7e422f
ML
22582002-09-18 Michal Ludvig <mludvig@suse.cz>
2259
2260 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2261 registers.
2262
a094c6fb
AC
22632002-09-17 Andrew Cagney <ac131313@redhat.com>
2264
2265 * NEWS: Mention that MIPS $fp behavior changed.
2266 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2267 reference to FP_REGNUM.
2268 (mipsnbsd_cannot_store_register): Ditto.
2269 * mips-linux-nat.c: Update copyright.
2270 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2271 (mips_linux_cannot_store_register): Ditto.
2272 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2273 * config/mips/tm-mips.h: Update copyright.
2274 (FP_REGNUM): Delete macro.
2275 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2276 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2277 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2278 (mips_r3041_reg_names, mips_r3051_reg_names)
2279 (mips_r3081_reg_names): Replace "fp" with "".
2280 Fix PR gdb/480.
2281
45cf40d1
TR
22822002-09-17 Theodore A. Roth <troth@verinet.com>
2283
2284 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2285 generic_read_register_dummy() (PR gdb/703).
2286 (avr_push_return_address): #if 0 out unused vars.
2287 (avr_gdbarch_init): Enable use of avr_push_return_address().
2288
c7e701b5
MS
22892002-09-17 Michael Snyder <msnyder@redhat.com>
2290
d76ba2a5 2291 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2292 RTE will take care of it.
2293
20bcf01c
AC
22942002-09-17 Andrew Cagney <ac131313@redhat.com>
2295
2296 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2297 invalid, return SP_REGNUM.
2298
009a9971 22992002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2300
2301 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2302 point registers without sign extension.
2303
135c175f
AC
23042002-09-17 Andrew Cagney <cagney@redhat.com>
2305
2306 * blockframe.c (deprecated_read_register_dummy): Rename
2307 generic_read_register_dummy.
2308 * frame.c (frame_unwind_signed_register): New function.
2309 (frame_unwind_unsigned_register): New function.
2310 * frame.h (frame_unwind_signed_register): Declare.
2311 (frame_unwind_unsigned_register): Declare.
2312 (deprecated_read_register_dummy): Rename
2313 generic_read_register_dummy.
2314
2315 * h8300-tdep.c (h8300_frame_chain): Update.
2316 (h8300_frame_saved_pc): Update.
2317 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2318 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2319 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2320 (s390_frame_chain): Update.
2321 * v850-tdep.c (v850_find_callers_reg): Update.
2322 (v850_frame_saved_pc): Update.
2323 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2324 (m32r_find_callers_reg): Update.
2325 (m32r_frame_saved_pc): Update.
2326 * sh-tdep.c (sh_find_callers_reg): Update.
2327 (sh64_get_saved_pr): Update.
2328 (sh_init_extra_frame_info): Update.
2329 (sh_init_extra_frame_info): Update.
2330 (sh64_init_extra_frame_info): Update.
2331 (sh64_init_extra_frame_info): Update.
2332 * mcore-tdep.c (mcore_find_callers_reg): Update.
2333 (mcore_frame_saved_pc): Update.
2334 (mcore_init_extra_frame_info): Update.
2335 * i386-tdep.c (i386_frame_saved_pc): Update.
2336 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2337 (ia64_init_extra_frame_info): Update.
2338 (ia64_init_extra_frame_info): Update.
2339 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2340 * cris-tdep.c (cris_init_extra_frame_info): Update.
2341 * avr-tdep.c (avr_frame_chain): Update.
2342 (avr_init_extra_frame_info): Update.
2343 (avr_frame_saved_pc): Update.
2344 * arm-tdep.c (arm_find_callers_reg): Update.
2345 (arm_init_extra_frame_info): Update.
2346 (arm_frame_saved_pc): Update.
2347
a741e514
TT
23482002-09-17 Tom Tromey <tromey@redhat.com>
2349
2350 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2351 is "'".
2352
d1a8e808
CV
23532002-09-17 Corinna Vinschen <vinschen@redhat.com>
2354
2355 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2356 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2357 NEXT_PROLOGUE_INSN.
2358 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2359 NEXT_PROLOGUE_INSN.
2360
d9025a18
JB
23612002-09-16 Joel Brobecker <brobecker@gnat.com>
2362
2363 * osfsolib.c: Remove file, replaced by solib-osf.c.
2364 * Makefile.in: Remove compilation rules for osfsolib.c.
2365
1b2ef1b6
DC
23662002-09-16 David Carlton <carlton@math.stanford.edu>
2367
2368 * cp-valprint.c (cp_print_class_method): Correct args to
2369 check_stub_method_group.
2370
928e48af
CV
23712002-09-16 Corinna Vinschen <vinschen@redhat.com>
2372
2373 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2374 `set architecture'. Unify naming convention of functions.
2375 (h8300_skip_prologue): Improve prologue analysis.
2376 (h8300_push_arguments): Rewritten to more closely match GCC's
2377 bizarre argument-passing behavior, along with the comment describing
2378 said behavior.
2379 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2380 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2381 sim, remote-e7000.c, remote-hms.c and remote.c
2382
5e3397bb
MK
23832002-09-15 Mark Kettenis <kettenis@gnu.org>
2384
2385 * i386-tdep.c (gdb_print_insn_i386): Removed.
2386 (i386_print_insn): New function.
2387 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2388 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2389 tm_print_insn_info.
2390
f710f4fc
MK
23912002-09-14 Mark Kettenis <kettenis@gnu.org>
2392
2393 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2394 zero.
2395
db54fef4
CV
23962002-09-14 Corinna Vinschen <vinschen@redhat.com>
2397
2398 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2399 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2400 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2401
2becadee
CF
24022002-09-13 Christopher Faylor <cgf@redhat.com>
2403
2404 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2405
de17c821
DJ
24062002-09-13 Daniel Jacobowitz <drow@mvista.com>
2407
2408 * gdbtypes.c (check_stub_method): Make static.
2409 (check_stub_method_group): New function.
2410 * gdbtypes.h: Update prototypes.
2411 * cp-support.c: New file.
2412 * cp-support.h: New file.
2413
2414 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2415 (update_method_name_from_physname): New function.
2416 (read_member_functions): Correct method names for operators
2417 and v3 constructors/destructors. Separate v2 constructors and
2418 destructors.
2419 * Makefile.in (stabsread.o): Update dependencies.
2420 (SFILES): Add cp-support.c.
2421 (COMMON_OBS): Add cp-support.o.
2422 (cp_support_h, cp-support.o): Add.
2423
2424 * cp-valprint.c (cp_print_class_method): Call
2425 check_stub_method_group instead of check_stub_method. Remove
2426 extraneous QUITs.
2427 * p-valprint.c (pascal_object_print_class_method): Likewise.
2428 * valops.c (search_struct_method): Likewise.
2429 (find_method_list, value_struct_elt_for_reference): Likewise.
2430
e76cff22
AC
24312002-09-13 Andrew Cagney <cagney@redhat.com>
2432
2433 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2434 * gdbarch.h, gdbarch.c: Regenerate.
2435
905abb3f
AC
24362002-09-13 Andrew Cagney <ac131313@redhat.com>
2437
2438 * frame.c (find_saved_register): Delete function.
2439 * frame.h (find_saved_register): Delete declaration.
2440 Fix PR gdb/631.
2441
64159455
AC
2442Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2443
2444 * mips-tdep.c (read_next_frame_reg): Re-hack using
2445 frame_register_unwind.
2446
795e1e11
AC
2447Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2448
2449 * mips-tdep.c (mips_get_saved_register): Re-hack using
2450 frame_register_unwind.
2451
5720643c
JB
24522002-09-12 Joel Brobecker <brobecker@gnat.com>
2453
2454 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2455 vector. Will be useful for Interix.
2456 * gdbarch.h, gdbarch.c: Regenerate.
2457
2458 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2459 name of the malloc function by NAME_OF_MALLOC.
2460
3bada2a2
JB
24612002-09-12 Joel Brobecker <brobecker@gnat.com>
2462
2463 * value.h (find_function_in_inferior): Add const keyword to
2464 one of the parameters. Allows us to invoke this function with
2465 a const char *.
2466 * valops.c (find_function_in_inferior): Likewise.
2467
3db26b01
JB
24682002-09-12 Joel Brobecker <brobecker@gnat.com>
2469
2470 * exec.c (xfer_memory): Fix compilation warning with old versions
2471 of GCC.
2472 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2473
17c5ed2c
DC
24742002-09-12 David Carlton <carlton@math.stanford.edu>
2475
2476 * symtab.h: Run through gdb_indent.h.
2477 Add 2002 to Copyright year list.
2478
ecd1107e
AM
24792002-09-12 Alan Modra <amodra@bigpond.net.au>
2480
2481 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2482 mach constants.
2483 * MAINTAINERS: Add myself to write after approval list.
2484
e64f66d1
JB
24852002-09-11 J. Brobecker <brobecker@gnat.com>
2486
2487 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2488
f9395794
JB
24892002-09-11 J. Brobecker <brobecker@gnat.com>
2490
2491 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2492 Interix.
2493
1a303dec
MS
24942002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2495
2496 * procfs.c (do_detach): Clear current signal, not just fault.
2497 Corrects problem with breakpoint trap signal leaking to detached
2498 process on Tru64.
2499
c0219d42
MS
25002002-09-10 Michael Snyder <msnyder@redhat.com>
2501
2502 * buildsym.c (finish_block): Protect against null pointer.
2503
9d84ac84
AC
25042002-09-10 Andrew Cagney <cagney@redhat.com>
2505
2506 * infcmd.c (default_print_registers_info): Send all output to
2507 ``file'' instead of ``gdb_stdout''.
2508
77d8f2b4
MS
25092002-09-10 Michael Snyder <msnyder@redhat.com>
2510
2511 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2512 LONGEST, and use signed register read (addresses are sign-
2513 extended for mips).
2514
99656a61
SC
25152002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2516
2517 * event-loop.c (gdb_do_one_event): Make public.
2518 * event-loop.h (gdb_do_one_event): Declare.
2519
da12f4d8
JL
25202002-09-10 Jeff Law <law@redhat.com>
2521
2522 * infttrace.c (child_resume): Simplify and rework to avoid
2523 TT_PROC_CONTINUE.
2524
d0aee0c4
FF
25252002-09-09 Fred Fish <fnf@intrinsity.com>
2526
2527 * printcmd.c (print_scalar_formatted): "len" is the number of
2528 target bytes, NOT the number of target bits.
2529
7cb3ec5e
EZ
25302002-09-09 Elena Zannoni <ezannoni@redhat.com>
2531
2532 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2533 * top.c (init_main): Set rl_terminal_name.
2534
4dc81987
AS
25352002-09-08 Aidan Skinner <aidan@velvet.net>
2536
2537 * ada-lang.c (ada_array_bound, ada_type_match,
2538 _initialize_ada_language): Fix K&R definitions.
2539 * ada-tasks.c (get_current_task): Fix K&R definitions.
2540 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2541
842330b4
CF
25422002-09-07 Christopher Faylor <cgf@redhat.com>
2543
2544 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2545 Add XP.
2546
43156d82
MK
25472002-09-06 Mark Kettenis <kettenis@gnu.org>
2548
66da5fd8
MK
2549 * i386-tdep.c (i386_register_virtual_type,
2550 i386_register_convertible, i386_register_convert_to_virtual,
2551 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2552 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2553 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2554 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2555 Don't set push_arguments twice.
2556
4b218c18
MK
2557 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2558 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2559 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2560 sigtramp_end to NULL.
2561 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2562 defines.
2563 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2564
4cc314d5
MK
2565 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2566 whitespace.
2567
43156d82
MK
2568 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2569 * gdbarch.h, gdbarch.c: Re-generate.
2570 * blockframe.c (find_pc_sect_partial_function): Convert to use
2571 SIGTRAMP_START_P predicate.
2572
6672060b
MS
25732002-09-05 Michael Snyder <msnyder@redhat.com>
2574
a90c3637
MS
2575 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2576 generic_dummy_frame method and old method. Also distinguish
2577 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 2578 (arm_extract_return_value): Use new regcache method.
a90c3637 2579
6672060b
MS
2580 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2581 adjustment that doesn't conform to the ABI.
2582 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2583 saved regcache, not from current regcache.
2584
299ffc64
AC
25852002-09-05 Andrew Cagney <ac131313@redhat.com>
2586
2587 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2588 * README: Update.
2589
a3a2ee65
JT
25902002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2591
2592 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2593 if arm_apcs_32 is false.
2594
2bc7eea9
AC
25952002-09-04 Andrew Cagney <ac131313@redhat.com>
2596
2597 GDB 5.3 branch created.
2598
8a55a7c5
TR
25992002-09-03 Theodore A. Roth <troth@verinet.com>
2600
2601 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2602 generic_unwind_get_saved_register.
2603
e26fb1d7
DC
26042002-09-03 David Carlton <carlton@math.stanford.edu>
2605
2606 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2607 argument (PR gdb/653). Update call to smash_to_method_type.
2608 (read_structure_scope): Update call to dwarf2_add_member_fn.
2609
30d52491
ML
26102002-09-03 Michal Ludvig <mludvig@suse.cz>
2611
2612 * x86-64-linux-tdep.c: Include gdb_string.h
2613 * x86-64-linux-nat.c: Ditto.
2614
06891d83
JT
26152002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2616
2617 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2618 when YYDEBUG is set to 1.
2619 * c-exp.y: Likewise.
2620 * f-exp.y: Likewise.
2621 * jv-exp.y: Likewise.
2622 * m2-exp.y: Likewise.
2623 * p-exp.y: Likewise.
2624
7d400e77
JT
26252002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2626
2627 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2628 dependency list.
2629 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2630 solib_svr4_fetch_link_map_offsets to
2631 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2632 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2633 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2634 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2635 solib-svr4.o, and solib-legacy.o.
2636 * config/i386/tm-nbsd.h: Include solib.h.
2637
704a27c4
JT
26382002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2639
2640 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2641 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2642 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2643 comment noting that this needs its own target configuration.
2644 * config/i386/nbsd.mt: New file.
2645 * config/i386/nbsdaout.mt: Remove.
2646 * config/i386/nbsdelf.mt: Ditto.
2647 * config/i386/tm-nbsdaout.h: Ditto.
2648
d66198e1
JT
26492002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2650
2651 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2652 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2653 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2654 tdep->sigtramp_end.
2655 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2656 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2657 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2658
3cac699e
JT
26592002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2660
2661 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2662 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2663 * i386-tdep.h (i386bsd_init_abi): New prototype.
2664 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2665 function declaration.
2666 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2667 for NetBSD-a.out or NetBSD-ELF.
2668 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2669 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2670 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2671 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2672 and nbsd-tdep.h.
2673 (i386nbsd_pc_in_sigtramp): New function.
2674 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2675 i386nbsd_pc_in_sigtramp.
2676 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2677 and i386nbsdelf_init_abi OS ABI handlers.
2678 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2679 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2680
7010ca0a
MK
26812002-09-02 Mark Kettenis <kettenis@gnu.org>
2682
2683 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2684 registers if the target really has them.
2685
6dd93b72
JT
26862002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2687
2688 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2689 than nbsd-tdep.h.
2690
2ca8ae21
JT
26912002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2692
2693 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2694 list.
2695 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2696 (alphanbsd_skip_sigtramp_frame): New functions.
2697 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2698 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2699 to alphanbsd_sigcontext_addr.
2700
3d9b49b0
JT
27012002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2702
2703 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2704 list.
2705 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2706 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2707 nbsd_pc_in_sigtramp.
2708 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2709 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2710 * nbsd-tdep.c: Include gdb_string.h.
2711 (nbsd_pc_in_sigtramp): New function.
2712 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2713 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2714 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2715 ppcnbsd_pc_in_sigtramp.
2716 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2717 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2718 shnbsd_pc_in_sigtramp.
2719 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2720 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2721 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2722
c860120c
PM
27232002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2724
2725 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2726 watchpoints to NULL.
2727 (insert_breakpoints): set val field of watchpoints if NULL.
2728
2729
c7612d53
JB
27302002-08-29 Jim Blandy <jimb@redhat.com>
2731
2732 * symtab.c (lookup_symbol_aux): In the cases where we find a
2733 minimal symbol of an appropriate name and use its address to
2734 select a symtab to read and search, use `name' (as passed to us)
2735 as the demangled name when searching the symtab's global and
2736 static blocks, not the minsym's name.
2737
66609862
KS
27382002-08-29 Keith Seitz <keiths@redhat.com>
2739
2740 * stack.c (print_frame_info_base): Always set current_source_symtab
2741 and current_source_line.
2742
151fefe2
JB
27432002-08-29 Donn Terry <donnte@microsoft.com>
2744
2745 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2746
bfb3754e
KS
27472002-08-28 Keith Seitz <keiths@redhat.com>
2748
2749 * stack.c (select_frame): Add FIXME concerning selected-frame
2750 events.
2751 (select_frame_command): Send selected-frame-level-changed
2752 event notification, but only if the level actually changed.
2753 (up_silently_base): Add selected-frame-level-changed event
2754 notification.
2755 (down_silently_base): Likewise.
2756
e822a2a0
AC
27572002-08-28 Andrew Cagney <ac131313@redhat.com>
2758
2759 * Makefile.in: Update dependencies for all gdb/*.c files.
2760
309367d4
TT
27612002-08-27 Tom Tromey <tromey@redhat.com>
2762
2763 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2764 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2765 Update dependencies.
2766 * i387-tdep.c: Include gdb_string.h.
2767 * osabi.c: Likewise.
2768 * i386-linux-nat.c: Likewise.
2769 * lin-lwp.c: Likewise.
2770 * ax-gdb.c: Likewise.
2771 * signals/signals.c: Likewise.
2772 * jv-valprint.c: Likewise.
2773 * p-lang.c: Likewise.
2774 * c-valprint.c: Likewise.
2775 * cp-abi.c: Likewise.
2776
e1507482
EZ
27772002-08-27 Elena Zannoni <ezannoni@redhat.com>
2778
2779 * cli/cli-script.h (copy_command_lines): Export.
2780 * breakpoint.c: Include cli/cli-script.h.
2781 * Makefile.in (breakpoint.o): Update dependencies.
2782
c6510018
MS
27832002-08-26 Michael Snyder <msnyder@redhat.com>
2784
2785 * breakpoint.c (insert_breakpoints): Protect all references
2786 to 'process_warning'. Shorten long lines.
2787
c2b8ed2c
MS
27882002-08-26 Joel Brobecker <brobecker@gnat.com>
2789
2790 * cli/cli-script.c (copy_command_lines): New function.
2791 * defs.h (copy_command_lines): Export.
2792 * testsuite/gdb.base/commands.exp: New tests for commands
2793 attached to a temporary breakpoint, and for commands that
2794 delete the breakpoint they are attached to.
2795
27962002-08-26 Michael Snyder <msnyder@redhat.com>
2797
2798 * breakpoint.c (bpstat_stop_status): Instead of copying the
2799 pointer to the breakpoint commands struct, make a new copy
2800 of the struct and point to that.
2801 (bpstat_clear): Free the commands struct.
2802 (bpstat_clear_actions): Free the commands struct.
2803 (bpstat_do_actions): Free the command actions. Also execute
2804 the local cleanups, instead of deleting them.
2805 (delete_breakpoint): Leave the commands field of the bpstat
2806 chain alone -- it will be freed later.
2807
64b84175
KB
28082002-08-26 Kevin Buettner <kevinb@redhat.com>
2809
2810 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2811 deleted in 2002-08-20 commit. This function is still used by
2812 ppc-linux-nat.c.
2813
55970da6
KS
28142002-08-26 Keith Seitz <keiths@redhat.com>
2815
2816 * gdb-events.sh: Add selected-frame-level-changed event.
2817 * gdb-events.c: Regenerated.
2818 * gdb-events.h: Regenerated.
2819
a790ad35
SC
28202002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2821
2822 Fix PR gdb/393:
2823 * inflow.c (terminal_save_ours): New function to save terminal
2824 settings.
2825 * inferior.h (terminal_save_ours): Declare.
2826 * target.c (debug_to_terminal_save_ours): New function.
2827 (cleanup_target): Defaults to_terminal_save_ours.
2828 (update_current_target): Inherit to_terminal_save_ours.
2829 (setup_target_debug): Set to_terminal_save_ours.
2830 * target.h (target_terminal_save_ours): New to save terminal settings.
2831 (target_ops): New member to_terminal_save_ours.
2832 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2833 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2834 * inftarg.c (init_child_ops): Likewise.
2835 * m3-nat.c (init_m3_ops): Likewise.
2836 * procfs.c (init_procfs_ops): Likewise.
2837 * wince.c (init_child_ops): Likewise.
2838 * win32-nat.c (init_child_ops): Likewise.
2839 * sol-thread.c (init_sol_thread_ops): Likewise.
2840
c00dcbe9
MK
28412002-08-26 Mark Kettenis <kettenis@gnu.org>
2842
3d7f4f49
MK
2843 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2844 use regcache_* functions.
2845 (i386_gdbarch_init): Set store_return_value instead of
2846 deprecated_store_return_value.
2847
c00dcbe9
MK
2848 * regcache.c (regcache_raw_write_signed,
2849 regcache_raw_write_unsigned): New functions.
2850 * regcache.h (regcache_raw_write_signed,
2851 regcache_raw_write_unsigned): New prototypes.
2852
0e0d15ca
AC
28532002-08-25 Andrew Cagney <ac131313@redhat.com>
2854
2855 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2856 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2857 source file dependencies. Cleanup corresponding generator rules.
2858
d3b22ed5
AC
28592002-08-25 Andrew Cagney <ac131313@redhat.com>
2860
2861 * regcache.h (register_offset_hack): Declare.
2862 (regcache_cooked_read_using_offset_hack): Declare.
2863 (regcache_cooked_write_using_offset_hack): Declare.
2864
2865 * regcache.c (register_offset_hack): New function.
2866 (regcache_cooked_read_using_offset_hack): New function.
2867 (regcache_cooked_write_using_offset_hack): New function.
2868 (regcache_dump): Check that the registers, according to their
2869 offset, are packed hard against each other.
2870 (cooked_xfer_using_offset_hack): New function.
2871
bb425013
AC
28722002-08-25 Andrew Cagney <ac131313@redhat.com>
2873
2874 * regcache.c (struct regcache_descr): Add field register_type.
2875 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2876 in as a parameter
2877 (init_regcache_descr): Initialize register_type. Pass the descr
2878 to init_legacy_regcache_descr. Use register_type instead of
2879 REGISTER_VIRTUAL_TYPE.
2880 (register_type): New function.
2881 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2882 * regcache.h (register_type): Declare.
2883
d0403e00
AC
28842002-08-25 Andrew Cagney <ac131313@redhat.com>
2885
2886 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2887 instead of deprecated_store_return_value. Fix fallout from
2888 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2889
0ed04cce
AC
28902002-08-25 Andrew Cagney <ac131313@redhat.com>
2891
2892 * regcache.c (max_register_size): New function.
2893 (init_legacy_regcache_descr): Ensure that max_register_size is
2894 large enough for REGISTER_VIRTUAL_SIZE.
2895 * regcache.h (max_register_size): Declare.
2896
46d79c04
AC
28972002-08-24 Andrew Cagney <ac131313@redhat.com>
2898
2899 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2900 store_return_value.
2901 (e500_extract_return_value): Change type of valbuf pointer to
2902 void.
2903
853c7bd0
MK
29042002-08-24 Mark Kettenis <kettenis@gnu.org>
2905
cd87e769
MK
2906 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2907 workaround.
2908
853c7bd0
MK
2909 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2910 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2911 long long) to prevent compiler warning on 64-bit systems.
2912
ebba8386
AC
29132002-08-23 Andrew Cagney <cagney@redhat.com>
2914
2915 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2916 (DEPRECATED_STORE_RETURN_VALUE): New method.
2917 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2918 * gdbarch.h, gdbarch.c: Re-generate.
2919
2920 * values.c (set_return_value): Pass current_regcache to
2921 STORE_RETURN_VALUE.
2922 * arch-utils.h (legacy_store_return_value): Declare.
2923 * arch-utils.c (legacy_store_return_value): New function.
2924 (legacy_extract_return_value): Update parameters.
2925
2926 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2927 STORE_RETURN_VALUE.
2928 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2929 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2930 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2931 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2932 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2933 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2934 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2935 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2936 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2937 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2938
2939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2940 * i386-tdep.c (i386_extract_return_value): Update.
2941 * arch-utils.c (legacy_extract_return_value): Update.
2942 * frv-tdep.c (frv_gdbarch_init): Update.
2943 * cris-tdep.c (cris_gdbarch_init): Update.
2944 * d10v-tdep.c (d10v_gdbarch_init): Update.
2945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2946 * m68k-tdep.c (m68k_gdbarch_init): Update.
2947 * mcore-tdep.c (mcore_gdbarch_init): Update.
2948 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2949 * s390-tdep.c (s390_gdbarch_init): Update.
2950 * sparc-tdep.c (sparc_gdbarch_init): Update.
2951 * sh-tdep.c (sh_gdbarch_init): Update.
2952 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2953 * v850-tdep.c (v850_gdbarch_init): Update.
2954 * avr-tdep.c (avr_gdbarch_init): Update.
2955 * ia64-tdep.c (ia64_gdbarch_init): Update.
2956 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2957 * vax-tdep.c (vax_gdbarch_init): Update.
2958 * alpha-tdep.c (alpha_gdbarch_init): Update.
2959 * arm-tdep.c (arm_gdbarch_init): Update.
2960 * mips-tdep.c (mips_gdbarch_init): Update.
2961 * i386-tdep.c (i386_gdbarch_init): Update.
2962
5bd8c6d0
AC
29632002-08-23 Andrew Cagney <ac131313@redhat.com>
2964
2965 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2966 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2967
e73e1724
MK
29682002-08-24 Mark Kettenis <kettenis@gnu.org>
2969
2970 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2971 problems.
2972
3e6564e1
JB
29732002-08-23 Joel Brobecker <brobecker@gnat.com>
2974
2975 * infrun.c (handle_inferior_event): Move a comment outside of a
2976 function call, in order to avoid indent reformatting this part
2977 of the code in an unreadable way.
2978
81d0cc19
GS
29792002-08-23 Grace Sainsbury <graces@redhat.com>
2980
2981 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2982 when breakpoints fail. Move general breakpoint error messages to
2983 insert_breakpoints.
2984 * breakpoint.c (insert_breakpoints): Change warnings when
2985 breakpoints are nto inserted to specify the type. Remove call to
2986 memory_error when hardware breakpoints can't be inserted. Remove
2987 multiple calls to warning so all messages are sent to the user at
2988 once.
2989 (delete_breakpoints): Make insert error messsages more explicit.
2990
17574093
DJ
29912002-08-23 Daniel Jacobowitz <drow@mvista.com>
2992
2993 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2994 gdbserver/ChangeLog.
2995
8acc2935
MK
29962002-08-23 Mark Kettenis <kettenis@gnu.org>
2997
dfe01d39
MK
2998 * i386-tdep.c: Include "objfiles.h".
2999 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3000 skip_trampoline_code.
3001 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3002 (CPLUS_MARKER): Define to '.'.
3003
8acc2935
MK
3004 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3005 member.
3006 (linux_corefile_thread_callback): Increase args->num_notes.
3007 (linux_make_note_section): Initialize thread_args.num_notes, and
3008 use it to determine whether notes for any threads were created.
3009
151fefe2 30102002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3011
3012 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3013 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3014 and PCUNKILL.
3015 (write_with_trace): Conditionalize out the switch branch handling
3016 PCSHOLD if the corresponding macro is not defined. Likewise for
3017 PRSABORT and PRSTOP.
3018 This change will be needed by the Interix port.
3019
e1507482
EZ
30202002-08-22 Elena Zannoni <ezannoni@redhat.com>
3021
3022 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3023 write_register wherever possible instead of manipulating the
3024 register bytes directly.
3025 Assign VALUE_CONTENTS to a variable and use that.
3026 The GPR numbers are now dependent on the architecture.
3027
96ff0de4
EZ
30282002-08-22 Elena Zannoni <ezannoni@redhat.com>
3029
3030 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3031 ev_offset fields.
3032 (skip_prologue): Add support for BookE/e500 instructions.
3033 (e500_extract_return_value): New function.
3034 (frame_get_saved_regs): Add support for saving ev registers and
3035 pseudo gpr's.
3036 (e500_store_return_value): New function.
3037 (rs6000_gdbarch_init): Move up default intializations of
3038 deprecated_extract_return_value and store_return_value. Overwrite
3039 init of store_return_value with e500 specific version.
3040 Set extract_return_value for e500.
3041
fbefca5b
EZ
30422002-08-22 Elena Zannoni <ezannoni@redhat.com>
3043
3044 * blockframe.c (generic_call_dummy_register_unwind): Use
3045 regcache_cooked_read to catch cases in which the variable is
3046 stored in a pseudo register.
3047
4d210288
AC
30482002-08-22 Andrew Cagney <cagney@redhat.com>
3049
3050 * NEWS: Mention that the i960 has been made obsolete.
3051 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3052 i960-tdep.c
3053 (remote-nrom.o): Obsolete target.
3054 (remote-nindy.o, i960-tdep.o): Ditto.
3055 * remote-nrom.c: Make file obsolete.
3056 * remote-nindy.c, remote-vx960.c: Ditto.
3057 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3058 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3059 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3060 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3061 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3062 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3063 i960-*-vxworks* obsolete.
3064 * MAINTAINERS: Note that the i960 is obsolete.
3065
6c0c456d
CV
30662002-08-21 Corinna Vinschen <vinschen@redhat.com
3067
3068 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3069 detach to allow reinitialization.
3070
9f9d12b3
AC
30712002-08-22 Andrew Cagney <ac131313@redhat.com>
3072
3073 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3074 attempt).
3075
ebeb39fe
JB
30762002-08-22 Jim Blandy <jimb@redhat.com>
3077
3078 * coffread.c (coff_symfile_read): Don't try to read the line
3079 number table from disk if the image file doesn't have a symbol
3080 table; we'll never actually look at the info anyway, and Windows
3081 ships DLL's with bogus file offsets for the line number data.
3082
5bf1c677
EZ
30832002-08-21 Elena Zannoni <ezannoni@redhat.com>
3084
3085 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3086 an e500 executable.
3087
71b8ef93
MS
30882002-08-21 Michael Snyder <msnyder@redhat.com>
3089
3090 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3091 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3092 (DEFAULT_MIPS_TYPE): Delete unused macro.
3093 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3094 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3095
d174216d
JB
30962002-08-21 Jim Blandy <jimb@redhat.com>
3097
3098 * valops.c (value_cast): Simplify and correct logic for doing a
3099 static cast from a pointer to a base class to a pointer to a
3100 derived class.
3101
0ab7a791
AC
31022002-08-21 Andrew Cagney <ac131313@redhat.com>
3103
3104 * infcmd.c (default_print_registers_info): Replace
3105 do_registers_info.
3106 (registers_info): Use gdbarch_print_registers_info instead of
3107 DO_REGISTERS_INFO.
3108 * inferior.h (default_print_registers_info): Replace
3109 do_registers_info.
3110 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3111 (DO_REGISTERS_INFO): Change to a predicate function.
3112 * gdbarch.h, gdbarch.c: Regenerate.
3113
e23792cc
KS
31142002-08-21 Keith Seitz <keiths@redhat.com>
3115
3116 * gdb-events.sh: Add target-changed event.
3117 * gdb-events.c: Regenerated.
3118 * gdb-events.c: Regenerated.
3119 * valops.c (value_assign): Add target-changed event notification
3120 to inlval_register, lval_memory, and lval_reg_frame_relative.
3121
9fb14e79
JB
31222002-08-21 Joel Brobecker <brobecker@gnat.com>
3123
3124 * NEWS: Add an entry regarding the improvement of the next/step
3125 operation on Alpha Tru64 multi-processor machines.
3126
6d39a69f
AC
31272002-08-21 Andrew Cagney <ac131313@redhat.com>
3128
72acd513
AC
3129 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3130 directores.
342af04b 3131 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3132 * Makefile.in (install-gdbtk): Move to install section.
3133 (rdi-share/libangsd.a): Move to end of file.
3134
fa5f27c7
AC
31352002-08-19 Andrew Cagney <ac131313@redhat.com>
3136
3137 * frame.c (frame_register_unwind): When a register, set addrp to
3138 the register's byte.
3139
5a89d8aa
MS
31402002-08-20 Michael Snyder <msnyder@redhat.com>
3141
3142 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3143 used locally, so move them from the target machine header to here.
3144 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3145 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3146 Make static.
3147 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3148
822e978b
AC
31492002-08-20 Andrew Cagney <cagney@redhat.com>
3150
3151 * NEWS: Mention that the Apollo line was made obsolete.
3152 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3153 m68*-hp-hpux* obsolete.
3154 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3155 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3156 * buildsym.c (make_blockvector): Make static.
3157 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3158 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3159 (ALLDEPFILES): Remove dstread.c.
3160 (dstread.o): Obsolete make rule.
3161 * dstread.c: Makefile obsolete.
3162 * dst.h: Ditto.
3163 * config/m68k/hp300hpux.mt: Ditto.
3164 * config/m68k/hp300hpux.mh: Ditto.
3165 * config/m68k/hp300bsd.mt: Ditto.
3166 * config/m68k/hp300bsd.mh: Ditto.
3167 * config/m68k/apollo68b.mt: Ditto.
3168 * config/m68k/apollo68v.mh: Ditto.
3169 * config/m68k/apollo68b.mh: Ditto.
3170
e41b17f0
MS
31712002-08-20 Michael Snyder <msnyder@redhat.com>
3172
3173 * mips-tdep.c (mips_in_return_stub): Make static.
3174 (mips_gdbarch_init): Set in_solib_return_trampoline.
3175 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3176
d50355b6
MS
31772002-08-20 Michael Snyder <msnyder@redhat.com>
3178
3179 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3180 * gdbarch.c, gdbarch.h: Regenerate.
3181 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3182 Add.
3183 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3184
757a7cc6
MS
31852002-08-20 Michael Snyder <msnyder@redhat.com>
3186
3187 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3188 (mips_gdbarch_init): Set skip_trampoline_code,
3189 in_solib_call_trampoline.
3190 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3191 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3192
c8001721
EZ
31932002-08-20 Elena Zannoni <ezannoni@redhat.com>
3194
3195 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3196
3197 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3198 vector type for ev registers.
3199 (e500_pseudo_register_read): New function.
3200 (e500_pseudo_register_write): New function.
3201 (e500_dwarf2_reg_to_regnum): New function.
3202 (PPC_UISA_NOFP_SPRS): New macro.
3203 (PPC_EV_REGS): New macro.
3204 (PPC_GPRS_PSEUDO_REGS): New macro.
3205 (registers_e500): New register set for e500.
3206 (variants): Add e500 variant.
3207 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3208 before setting architectural dependent variations. Initialize ev
3209 registers numbers. Add case for e500 architecture. Set the
3210 number of pseudo registers.
3211
64366f1c
EZ
32122002-08-20 Elena Zannoni <ezannoni@redhat.com>
3213
3214 * rs6000-tdep.c: Clean up comments.
3215
7e78f0ca
AC
32162002-08-20 Andrew Cagney <cagney@redhat.com>
3217
3218 * h8300-tdep.c: Re-indent file.
3219
697f7479
JB
32202002-08-20 Jim Blandy <jimb@redhat.com>
3221
3222 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3223 default for this.
697f7479 3224
e86ae29f
KS
32252002-08-20 Keith Seitz <keiths@redhat.com>
3226
3227 * breakpoints.c (watch_command_1): Use internal breakpoint
3228 when setting a watchpoint_scope breakpoint.
3229
216b504f
EZ
32302002-08-20 Elena Zannoni <ezannoni@redhat.com>
3231
3232 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3233 (build_builtin_type_vec64i): Ditto.
3234 (build_builtin_type_vec128): Ditto.
3235 (build_builtin_type_vec128i): Ditto.
3236
f7ab6ec6
MS
32372002-08-19 Michael Snyder <msnyder@redhat.com>
3238
3239 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3240 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3241 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3242 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3243 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3244 CALL_DUMMY_ADDRESS): Delete.
3245 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3246 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3247 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3248 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3249 push_return_address.
3250 (mips_register_raw_size, mips_eabi_use_struct_convention,
3251 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3252 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3253 mips_init_extra_frame_info, mips_eabi_push_arguments,
3254 mips_n32n64_push_arguments, mips_push_return_address,
3255 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3256 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3257
b5d1566e
MS
32582002-08-19 Michael Snyder <msnyder@redhat.com>
3259
3260 * mips-tdep.c (mips_frame_num_args): New function.
3261 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3262 frame_saved_pc, frame_args_address, frame_locals_address,
3263 frame_num_args, and frame_args_skip.
3264 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3265 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3266 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3267 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3268
2f1488ce
MS
32692002-08-20 Michael Snyder <msnyder@redhat.com>
3270
3271 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3272 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3273 * mips-tdep.c (mips_store_struct_return): New function.
3274 (mips_extract_struct_value_address): New function.
3275 (mips_gdbarch_init): Set store_struct_return and
3276 extract_struct_value_address.
3277
41ff2da1
DC
32782002-08-20 David Carlton <carlton@math.stanford.edu>
3279
3280 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3281 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3282 (read_file_scope): Check that line_header is nonzero before
3283 decoding macro information.
3284
e5451d58
MK
32852002-08-20 Mark Kettenis <kettenis@gnu.org>
3286
3287 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3288 flag the general-purpose registers as floating-point on targets
3289 that don't support the floating-point registers.
3290
4a6daafa
EZ
32912002-08-20 Elena Zannoni <ezannoni@redhat.com>
3292
3293 * rs6000-tdep.c (altivec_register_p): Delete.
3294 (rs6000_do_altivec_registers): Delete.
3295 (rs6000_altivec_registers_info): Delete.
3296 (rs6000_do_registers_info): Delete.
3297 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3298 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3299
ab4327e0
EZ
33002002-08-20 Elena Zannoni <ezannoni@redhat.com>
3301
3302 * infcmd.c (do_registers_info): Print vector registers in hex
3303 format only.
3304 (print_vector_info): Check that printing registers
3305 makes sense.
3306 (print_float_info): Ditto.
3307
cb1d2653
AC
33082002-08-20 Andrew Cagney <ac131313@redhat.com>
3309
3310 * mips-tdep.c (mips_gdbarch_init): Update.
3311 (mips_o32_extract_return_value): Rewrite.
3312 (mips_o32_store_return_value): Rewrite.
3313 (mips_o32_xfer_return_value): New function.
3314 (mips_xfer_register): Tweak debug print message. Allow for
3315 buf_offset when dumping the value transfered.
3316
dfc3d9b2
AC
33172002-08-20 Andrew Cagney <ac131313@redhat.com>
3318
3319 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3320 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3321 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3322 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3323 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3324
7807aa61
MS
33252002-08-14 Michael Snyder <msnyder@redhat.com>
3326
3327 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3328
489461e2
EZ
33292002-08-19 Elena Zannoni <ezannoni@redhat.com>
3330
3331 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3332 register.
3333 (P): New macro to define a register as a pseudo register.
3334 (R, R4, R8, R16, FR32, R64, R0): Updated.
3335 (struct variant): Add new fields for number of pseudo registers
3336 and number of total registers.
3337 (tot_num_registers): New macro replacing....
3338 (num_registers): ...deleted macro.
3339 (num_registers): New function.
3340 (num_pseudo_registers): New function.
3341 (variants): Update all variants to intialize new fields correctly.
3342 Postpone initialization of number of pseudo regs and real regs.
3343 (init_variants): New function.
3344 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3345 registers offsets.
3346
fcaffe4c
DC
33472002-08-19 David Carlton <carlton@math.stanford.edu>
3348
2c2738a0
DC
3349 * valops.c (search_struct_field): Change error message to treat
3350 return value of 0 from value_static_field as meaning that field is
3351 optimized out.
3352 (value_struct_elt_for_reference): Ditto.
3353 * values.c (value_static_field): Treat an unresolved location the
3354 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3355 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3356 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3357 * MAINTAINERS: Add self to Write After Approval list.
3358
88658117
AC
33592002-08-19 Andrew Cagney <ac131313@redhat.com>
3360
3361 * mips-tdep.c (mips_xfer_register): New function.
3362 (mips_n32n64_extract_return_value): Rewrite.
3363 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3364 instead of deprecated_extract_return_value.
3365
21283beb
EZ
33662002-08-19 Elena Zannoni <ezannoni@redhat.com>
3367
3368 * rs6000-tdep.c (TDEP): Delete macro.
3369 (branch_dest): Replace use of TDEP macro with its body.
3370 (rs6000_pop_frame): Ditto.
3371 (rs6000_push_arguments): Ditto.
3372 (rs6000_skip_trampoline_code): Ditto.
3373 (rs6000_frame_saved_pc): Ditto.
3374 (rs6000_frame_chain): Ditto.
3375 (rs6000_register_name): Ditto.
3376 (rs6000_register_byte): Ditto.
3377 (rs6000_register_raw_size): Ditto.
3378 (rs6000_register_virtual_type): Ditto.
3379 (rs6000_register_convertible): Ditto.
3380 (rs6000_convert_from_func_ptr_addr): Ditto.
3381
bf072999
DJ
33822002-08-19 Daniel Jacobowitz <drow@mvista.com>
3383
3384 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3385 conditionally.
3386 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3387 MIPS_LINUX_JB_ELEMENT_SIZE.
3388 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3389 for MAX_REGISTER_RAW_SIZE arrays.
3390 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3391 MIPS_LINUX_JB_ELEMENT_SIZE.
3392
9b949a49
PM
33932002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3394
3395 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3396
6d3e79c6
AS
33972002-08-19 Aidan Skinner <aidan@velvet.net>
3398
3399 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3400 ada-valprint.c ada-tasks.c.
3401 (YYFILES): Add ada-exp.y.
3402 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3403 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3404 (ada-exp.tab.o): New target.
3405
06c0b04e
AC
34062002-08-18 Andrew Cagney <ac131313@redhat.com>
3407
3408 * regcache.c (regcache_xfer_part): New function.
3409 (regcache_raw_read_part): New function.
3410 (regcache_raw_write_part): New function.
3411 (regcache_cooked_read_part): New function.
3412 (regcache_cooked_write_part): New function.
3413 * regcache.h (regcache_raw_read_part): Declare.
3414 (regcache_raw_write_part): Declare.
3415 (regcache_cooked_read_part): Declare.
3416 (regcache_cooked_write_part): Declare.
3417
92d1e331
DJ
34182002-08-18 Daniel Jacobowitz <drow@mvista.com>
3419
3420 * remote.c (remote_open_1): Add async_p.
3421 (remote_async_open_1): Delete.
3422 (open_remote_target): Delete.
3423 (remote_open, extended_remote_open): Update calls to remote_open_1.
3424 (remote_async_open, extended_remote_async_open): Call
3425 remote_open_1 instead of remote_async_open_1.
3426
247055de
MK
34272002-08-19 Mark Kettenis <kettenis@gnu.org>
3428
3429 * blockframe.c: Fix a few coding standard violations.
3430
641eda39
MK
34312002-08-19 Mark Kettenis <kettenis@gnu.org>
3432
0b717710
MK
3433 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3434 here from ...
3435 * config/i386/tm-i386sco5.h: ... here. File removed.
3436 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3437
26d28e12 3438 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
3439 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3440 (TM_FILE): Set to tm-i386.h.
3441 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3442 * config/i386/tm-i386v.h: Remove file.
3443 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3444 instead of "i386/tm-i386v.h".
3445 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3446 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3447 "i386/tm-i386v.h".
3448 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3449 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3450 "i386/tm-i386.h".
3451
d4e0bab4
MK
34522002-08-18 Mark Kettenis <kettenis@gnu.org>
3453
3454 * config/i386/nm-i386v.h: Add protection against
3455 multiple-inclusion.
3456 (i386_register_u_addr): Remove prototype.
3457 (register_u_addr): New prototype.
3458 (REGISTER_U_ADDR): Redefine accordingly.
3459 * i386v-nat.c: Improve several comments.
3460 (i386_register_u_addr): Change signature and rename to
3461 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3462 ubase variable.
3463
46cac009
AC
34642002-08-18 Andrew Cagney <ac131313@redhat.com>
3465
3466 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3467 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3468 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3469 deprecated_extract_return_value.
3470 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3471 rename mips_o32o64_push_arguments.
3472 (mips_gdbarch_init): Update.
3473 (mips_extract_return_value): Delete.
3474 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3475 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3476 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3477 (mips_n32n64_extract_return_value): Clone
3478 mips_extract_return_value.
3479 (mips_store_return_value): Delete.
3480 (mips_o32_store_return_value): Clone mips_store_return_value.
3481 (mips_o64_store_return_value): Clone mips_store_return_value.
3482 (mips_eabi_store_return_value): Clone mips_store_return_value.
3483 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3484
d2e4a39e
AS
34852002-08-18 Aidan Skinner <aidan@velvet.net>
3486
0c30c098
AS
3487 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3488 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3489
34902002-08-18 Aidan Skinner <aidan@velvet.net>
3491
3492 * ada-lang.c: Run through gdb_indent.sh.
3493 * ada-lang.h: Run through gdb_indent.sh.
3494 * ada-tasks.c: Run through gdb_indent.sh.
3495 * ada-typeprint.c: Run through gdb_indent.sh.
3496 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 3497
01fc4e33
AC
34982002-08-18 Andrew Cagney <ac131313@redhat.com>
3499
3500 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3501 ABI.
3502
d8ee244c
MK
35032002-08-18 Mark Kettenis <kettenis@gnu.org>
3504
c38d8261
MK
3505 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3506
222db64c
MK
3507 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3508 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3509
c2848c82
MK
3510 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3511 write_register_gen instead of write_register_bytes.
3512
d8ee244c
MK
3513 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3514 i[3456]-*-osf1mk* configurations have been made obsolete.
3515 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3516 i[3456]86-*-osf1mk* hosts obsolete.
3517 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3518 targets obsolete.
3519 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3520 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3521 config/i386/i386m3.mt, config/i386/nm-m3.h,
3522 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3523 config/i386/i386mk.mh, config/i386/i386mk.mt,
3524 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3525 obsolete.
3526 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3527 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3528 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3529
61d8d407
AC
35302002-08-18 Andrew Cagney <ac131313@redhat.com>
3531
3532 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3533 (hppa_value_returned_from_stack): Declare.
3534 (hppa_extract_return_value): Declare.
3535 * config/pa/hppa.mt: New file.
3536 * configure.tgt: Recognize hppa*-*-*.
3537 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3538
0c52bd59
MK
35392002-08-18 Mark Kettenis <kettenis@gnu.org>
3540
3541 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3542 comment.
3543
b5686e99
MK
35442002-08-17 Mark Kettenis <kettenis@gnu.org>
3545
3546 * top.c (gdb_rl_operate_and_get_next): Make sure
3547 operate-and-get-next functions correctly even when the history
3548 list is completely filled.
3549
c1bab85b
AC
35502002-08-18 Andrew Cagney <ac131313@redhat.com>
3551
3552 * MAINTAINERS (Target Instruction Set Architectures): Rename
3553 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3554 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3555 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3556 already listed under Host/Native.
3557
3558 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3559 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3560 mips*-*-*.
3561
32089c7c
AC
35622002-08-17 Andrew Cagney <ac131313@redhat.com>
3563
3564 * config/ia64/ia64.mt: New file.
3565 * config/alpha/alpha.mt: New file.
3566 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3567 ia64-linux-gnu. Mention that ia64-elf is broken.
3568 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3569
b4671f85
MK
35702002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3571
3572 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3573 generic_func_frame_valid instead of func_frame_valid.
3574
c8edd8b4
JB
35752002-08-16 Joel Brobecker <brobecker@gnat.com>
3576
3577 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3578 procfs appears to be broken when debugging on multi-processor
3579 machines. So enable software single stepping in order to avoid
3580 using the procfs interface to do next/step operations, using
3581 internal breakpoints instead.
3582
3583 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3584 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3585 make this pc address equal to the value it would have if the
3586 system stepping capability was used. Also set a new flag used
3587 to ensure that we don't readjust the PC one more time later.
3588
3589 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3590 address by DECR_PC_AFTER_BREAK when software single step is
3591 in use for this architecture, as this has already been taken
3592 care of in handle_inferior_event().
3593
238617f6
JB
35942002-08-16 Joel Brobecker <brobecker@gnat.com>
3595
3596 * infrun.c (handle_inferior_event): Minor reformatting, to make
3597 a rather long condition expression easier to read.
3598
541a7aac
AC
35992002-08-16 Andrew Cagney <ac131313@redhat.com>
3600
3601 * Makefile.in (gdbtk.o): Move to end of file.
3602 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3603 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3604 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3605 (gdbtk-wrapper.o, gdbres.o): Ditto.
3606
f92d4a7b
AC
36072002-08-16 Andrew Cagney <ac131313@redhat.com>
3608
3609 * Makefile.in (copying.o): Separate out compile rule.
3610 (hpux-thread.o, procfs.o, signals.o): Ditto.
3611 (v850ice.o, z8k-tdep.o): Ditto.
3612 (tui-file.o): Move to TUI section.
3613 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3614 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3615
1cce71eb
JB
36162002-08-16 Joel Brobecker <brobecker@gnat.com>
3617
3618 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3619 skip_trampoline_code, for better namespace-proofing.
3620
3621 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3622
0851f23d
JB
36232002-08-16 Joel Brobecker <brobecker@gnat.com>
3624
3625 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3626
f8d40ec8
JB
36272002-08-16 Joel Brobecker <brobecker@gnat.com>
3628
3629 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3630 signal, check whether we hit a breakpoint before checking for a
3631 single step breakpoint. Otherwise, GDB fails to notice that a
3632 breakpoint has been hit when stepping onto a breakpoint.
3633
63d022e0
KS
36342002-08-16 Keith Seitz <keiths@redhat.com>
3635
3636 * gdb-events.sh (clear_gdb_event_hooks): New function.
3637 * gdb-events.c: Regenerate.
3638 * gdb-events.h: Regenerate.
3639
6e31adb3
AC
36402002-08-16 Andrew Cagney <ac131313@redhat.com>
3641
3642 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3643 not_a_sw_breakpoint.
3644 * breakpoint.h (bpstat_stop_status): Add parameter names.
3645
c8189ed1
GS
36462002-08-16 Grace Sainsbury <graces@redhat.com>
3647
3648 * remote.c (remote_insert_hw_breakpoint)
3649 (remote_remove_hw_breakpoint): Fix calculation of length field
3650 for Z-packet.
3651
d05285fa
MS
36522002-08-15 Michael Snyder <msnyder@redhat.com>
3653
466d7106
MS
3654 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3655 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3656 (supply_fpregset): Ditto.
3657
d05285fa
MS
3658 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3659 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3660 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 3661 (TARGET_READ_SP): Delete.
bf1f5b4c 3662 (DO_REGISTERS_INFO): Delete.
102182a9
MS
3663 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3664 Delete.
3665 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3666 from macros to functions.
bf1f5b4c 3667
d05285fa
MS
3668 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3669 (mips_register_convertible, mips_register_convert_to_virtual,
3670 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
3671 (mips_read_sp): New function.
3672 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
3673 (mips_do_registers_info): Make static.
3674 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
3675 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3676 (mips_register_convert_from_type, mips_register_convert_to_type):
3677 New functions.
3678 (mips_gdbarch_init): Set up function_start_offset,
3679 register_virtual_size, pc_in_sigtramp.
d05285fa 3680
e76f1f2e
AC
36812002-08-15 Andrew Cagney <ac131313@redhat.com>
3682
3683 * infcmd.c (vector_info): New function.
3684 (_initialize_infcmd): Add command "info vector".
3685 (print_vector_info): New function.
3686
3687 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3688 * gdbarch.h, gdbarch.c: Regenerate.
3689
4782dc19
AC
36902002-08-15 Andrew Cagney <ac131313@redhat.com>
3691
3692 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3693 ``print_all''. Only print vector registers when ``print_all''.
3694
23e3a7ac
AC
36952002-08-15 Andrew Cagney <ac131313@redhat.com>
3696
8e186fd6
AC
3697 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3698 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3699
23e3a7ac
AC
3700 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3701 Add `args' parameter.
3702 * gdbarch.h, gdbarch.c: Regenerate.
3703
3704 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3705
3706 * infcmd.c (float_info): Call print_float_info.
3707 (print_float_info): New function. By default, print the
3708 floating-point registers.
3709
3710 * arch-utils.h (default_print_float_info): Delete declaration.
3711 * arch-utils.c (default_print_float_info): Delete function.
3712
e0ca2bb9
MK
37132002-08-16 Mark Kettenis <kettenis@gnu.org>
3714
3f733acc
MK
3715 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3716 out define.
3717
7d8d2918
MK
3718 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3719 FRAME.
3720
1c7cc583
MK
3721 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3722 * configure.host: Make i[3456]86-*-aix host obsolete.
3723 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3724 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3725 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3726 config/i386/xm-i386aix.h: Make files obsolete.
3727 * i386aix-nat.c: Make file obsolete.
3728 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3729 (i386aix-nat.o): Make target obsolete.
3730
e0ca2bb9
MK
3731 * config/i386/nm-gnu.h: Removed.
3732 * config/i386/nm-i386gnu.h: New file.
3733 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3734 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3735 Moved here from ...
3736 * config/i386/tm-i386gnu.h: ... here. Removed.
3737 * config/i386/xm-i386gnu.h: Removed.
3738 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3739 (NAT_FILE): Set to nm-i386gnu.h.
3740 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3741 * i386-tdep.c: New file.
3742 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3743 (i386gnu-tdep.o): Specify dependencies.
3744
16057ec7 37452002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 3746
6b99ee2e
MK
3747 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3748 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3749 Adjust a few comments to reflect reality a bit closer.
3750 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3751 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3752 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3753 target_insert_watchpoint, target_remove_watchpoint):
3754 Move defines to ...
3755 * config/i386/nm-i386sco5.h: ... here.
3756 (kernel_u_size): Add prototype. Improve a few comments and add
3757 protection against multiple inclusion.
3758
d9a6f65c
MK
3759 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3760 out define.
3761
047eff6a
MK
3762 * uw-thread.c (SP_ARG0): Define if not already defined.
3763 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3764
dcdb1290
MK
3765 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3766
5d2d0b2a
MK
3767 * config/i386/tm-i386.h: Don't include "regcache.h".
3768
61113f8b
MK
3769 * i387-tdep.h (i387_print_float_info): New prototype.
3770 * i387-tdep.c (print_i387_value, print_i387_ext,
3771 print_i387_status_word, print_i387_control_word): Add `struct
3772 ui_file *' argument and use it for output.
3773 (i387_print_float_info): Renamed from i387_float_info. Add
3774 `struct gdbarch *' and `struct ui_file *' arguments and use the
3775 latter for output.
3776 * i386-tdep.c: Include "i387-tdep.h".
3777 (i386_gdbarch_init): Set print_float_info.
3778 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3779 (FLOAT_INFO): Remove define.
3780
46e0f506
MS
37812002-08-13 Michael Snyder <msnyder@redhat.com>
3782
3783 * mips-tdep.c (mips_push_arguments): Rename to
3784 mips_eabi_push_arguments, and tune for EABI.
3785 (MIPS_REGS_HAVE_HOME_P): Delete.
3786 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3787 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3788 Delete references to mips_regs_have_home_p.
3789
409268de
KS
37902002-08-14 Keith Seitz <keiths@redhat.com>
3791
3792 * Makefile.in (install-gdbtk): Create insight plugin directory.
3793 Install plugins.tcl file.
3794
ffc6a242
KS
37952002-08-14 Keith Seitz <keiths@redhat.com>
3796
3797 * configure.in: Move SUBDIRS to near top of the file so that
3798 --enable options may add things to it.
3799 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3800 * configure: Regenerate.
3801
ebafbe83
MS
38022002-08-13 Michael Snyder <msnyder@redhat.com>
3803
3804 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3805 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3806 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3807
32f6f25d
AC
38082002-08-13 Andrew Cagney <ac131313@redhat.com>
3809
3810 * vax-tdep.c (vax_get_saved_register): Delete function.
3811 (vax_gdbarch_init): Update.
3812 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3813 (ns32k_gdbarch_init): Update.
3814 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3815 (alpha_gdbarch_init): Update.
3816
53826de9
AC
38172002-08-13 Andrew Cagney <cagney@redhat.com>
3818
3819 * regcache.c (init_regcache_descr): Overallocate the
3820 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3821 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3822 nr_raw_registers.
3823 (set_register_cached): Add range checking assertions. Use
3824 current_regcache.
3825
16057ec7 38262002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
3827
3828 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3829 numbers for MMX registers.
3830
7b4c2dce
AC
38312002-08-13 Andrew Cagney <cagney@redhat.com>
3832
3833 * i386-tdep.c (i386_gdbarch_init): Use
3834 generic_unwind_get_saved_register.
3835
1e03ad20
KB
38362002-08-13 Kevin Buettner <kevinb@redhat.com>
3837
3838 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3839 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3840 target vector.
3841 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3842 Delete. Add comment regarding this now-deleted target method.
3843
548bcbec
SC
38442002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3845
3846 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3847 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3848 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3849 real PC and the page number (if it's within the memory bank window).
3850 (m68hc11_pseudo_register_write): Likewise when saving.
3851 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3852 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3853 (m68hc11_register_raw_size): And use 32-bit for it.
3854 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3855 16K memory bank is used by the prog; also use the virtual pc.
3856
7df11f59
SC
38572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3858
3859 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3860 (m68hc11_gdbarch_init): Install it in gdbarch.
3861 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3862 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3863 (MSYMBOL_SIZE): New for documentation.
3864 (insn_return_kind): Enum to specify how a function returns.
3865 (frame_extra_info): Cleanup and record the return mode.
3866 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3867 register in address computation.
3868 (m68hc11_get_return_insn): New to obtain the return instruction used
3869 by the function.
3870 (m68hc11_frame_init_saved_regs): Take into account the return
3871 instruction used by the function for far and interrupt functions.
3872 (m68hc11_init_extra_frame_info): Take into account page register.
3873 (m68hc11_frame_args_address): Adjust according to the return mode.
3874 (show_regs): Print page register only when it's used.
3875
5706502a
SC
38762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3877
3878 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3879 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3880 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3881 registers.
3882 (m68hc11_register_raw_size): Likewise.
3883
28fc6740
AC
38842002-08-13 Andrew Cagney <cagney@redhat.com>
3885
3886 * i386-tdep.c (i386_register_name): Handle mmx registers.
3887 (mmx_regnum_p): New function.
3888 (i386_mmx_names): New array.
3889 (mmx_num_regs): New variable.
3890 (i386_pseudo_register_read): New function.
3891 (i386_pseudo_register_write): New function.
3892 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3893
3894 * regcache.c (regcache_raw_read_unsigned): New function.
3895 (regcache_raw_read_signed): New function.
3896 * regcache.h (regcache_raw_read_unsigned): Declare.
3897 (regcache_raw_read_signed): Declare.
3898
a378f419
AC
38992002-08-13 Andrew Cagney <cagney@redhat.com>
3900
3901 * regcache.c (regcache_raw_read_as_address): Delete function.
3902 (regcache_cooked_read_signed): New function.
3903 (regcache_cooked_read_unsigned): New function.
3904 * regcache.h (regcache_cooked_read_signed): Declare.
3905 (regcache_cooked_read_unsigned): Declare.
3906 (regcache_raw_read_as_address): Delete declaration.
3907
3908 * blockframe.c (generic_read_register_dummy): Use
3909 regcache_cooked_read_unsigned.
3910 * i386-tdep.c (i386_extract_struct_value_address): Use
3911 regcache_cooked_read_unsigned.
3912
81967506
SC
39132002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3914
3915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3916 double sizes according to ELF ABI flags.
3917 (gdbarch_tdep): Record elf_flags.
3918
ffe1f3ee
SC
39192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3920
3921 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3922 (m6812_prolog): They can appear in 68HC12 function prologue.
3923 (m68hc11_frame_chain): Cleanup.
3924
98216c5d
AC
39252002-08-12 Andrew Cagney <cagney@redhat.com>
3926
3927 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3928 declarations.
3929 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3930 (i386_linux_register_raw_size): Delete function.
3931 (i386_linux_init_abi): Update.
3932 * i386-tdep.c (i386_register_raw_size): Delete function.
3933 (i386_register_byte): Delete function.
3934 (i386_gdbarch_init): Update.
3935 (i386_register_size): Delete array.
3936 (i386_register_offset): Delete array.
3937
3938 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3939 (REGISTER_RAW_SIZE): Delete macro.
3940 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3941 (REGISTER_BYTE): Delete macro.
3942
3b19021e
AS
39432002-08-11 Aidan Skinner <aidan@velvet.net>
3944
3945 * ada-lang.c (ada_lookup_partial_symbol)
3946 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3947 prototype names so that grep ^func works properly.
3948
3949 * ada-lang.c (ada_array_element_type)
3950 (ada_lookup_partial_symbol): Fix typos in parameter list.
3951
3952 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3953 Fix prototype names so that grep ^func works properly.
3954
b063e7a2
AC
39552002-08-10 Andrew Cagney <cagney@redhat.com>
3956 Elena Zannoni <ezannoni@redhat.com>
3957 Martin M. Hunt <hunt@redhat.com>
3958
3959 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3960 (build_builtin_type_vec128i): Set the vector bit.
3961 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3962 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3963 (build_builtin_type_vec64): New function.
3964 (build_builtin_type_vec64i): New function.
3965 (build_gdbtypes): Initialize builtin_type_vec64 and
3966 builtin_type_vec64i.
3967
a7e3c2ad
AC
39682002-08-09 Andrew Cagney <cagney@redhat.com>
3969
3970 * regcache.c (regcache_dump): Compare the register offset
3971 with REGISTER_BYTE.
3972 * arch-utils.c (generic_register_byte): New function.
3973 * arch-utils.h (generic_register_byte): Declare.
3974 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3975 * gdbarch.h, gdbarch.c: Regenerate.
3976
af030b9a
AC
39772002-08-09 Andrew Cagney <cagney@redhat.com>
3978
3979 * regcache.c: Include "gdbcmd.h"
3980 (_initialize_regcache): Add commands "maintenance print
3981 registers", "maintenance print raw-registers" and "maintenance
3982 print cooked-registers".
3983 (enum regcache_dump_what): Define.
3984 (dump_endian_bytes): New function.
3985 (regcache_dump): New function.
3986 (regcache_print): New function.
3987 (maintenance_print_registers): New function.
3988 (maintenance_print_raw_registers): New function.
3989 (maintenance_print_cooked_registers): New function.
3990 * Makefile.in (regcache.o): Update dependencies.
3991
cb3d25d1
MS
39922002-08-09 Michael Snyder <msnyder@redhat.com>
3993
3994 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3995 (mips_push_arguments): Correct some comments. Use paddr_nz
3996 for printing addresses in debug output. Replace static
3997 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3998 (mips_n32n64_push_arguments): New function, cloned from
3999 mips_push_arguments and tuned for the n32/n64 ABI.
4000 (mips_push_register): Buffer needs dynamic allocation.
4001 (mips_print_register): Ditto.
4002 (do_gp_register_row): Ditto.
4003 (mips_store_return_value): Ditto.
4004 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4005
2163ab9d
DH
40062002-08-09 Don Howard <dhoward@redhat.com>
4007
4008 * memattr.c (mem_info_command): Print special case of upper bound
4009 as max CORE_ADDR + 1.
4010
b78bcb18
MS
40112002-08-08 Michael Snyder <msnyder@redhat.com>
4012
4013 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4014 returns structs by ref if they're too big to fit in two registers.
4015
ffabd70d
KB
40162002-08-09 Kevin Buettner <kevinb@redhat.com>
4017
4018 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4019 saved regs value.
4020 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4021 mips_find_saved_regs().
4022 (mips_pop_frame): Likewise.
4023
fbcdb4a3
KB
40242002-08-09 Kevin Buettner <kevinb@redhat.com>
4025
4026 * blockframe.c (frame_saved_regs_register_unwind): Revise
4027 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4028 frames are in use.
4029
3c3bea1c
GS
40302002-08-09 Grace Sainsbury <graces@redhat.com>
4031
4032 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4033 T-packets; the 'a' is not taken as a register number.
4034 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4035 (remote_stopped_data_address): New functions; add to target
4036 vector.
4037 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4038 prototypes to match other implementations of this
4039 function. replace integer argument with pointer -- the length
4040 field in the Z-packet is the length of what is pointed to or 1 if
4041 pointer is null. Add to target vector.
4042 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4043 target vector.
4044
4045 From Mark Salter:
4046 * remote.c (remote_wait): Add support to extract optional
4047 watchpoint information from T-packet. Ignore unrecognized
4048 optional info in T-packet.
4049 (remote_async_wait): Ditto.
4050
5d1d95de
CV
40512002-08-09 Corinna Vinschen <vinschen@redhat.com>
4052
4053 * cli/cli-dump.c: Change fopen modes to use binary open modes
4054 as defined in include/fopen-bin.h throughout.
4055
c86b5b38
MS
40562002-08-08 Michael Snyder <msnyder@redhat.com>
4057
4058 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4059
b30590dc
KB
40602002-08-08 Kevin Buettner <kevinb@redhat.com>
4061
4062 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4063 assertion failure by returning early after a warning.
4064
498868ed
KB
40652002-08-08 Kevin Buettner <kevinb@redhat.com>
4066
4067 * mips-tdep.c (mips_find_saved_regs): Make static.
4068 (mips_frame_init_saved_regs): New function.
4069 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4070 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4071 (mips_find_saved_regs): Delete declaration.
4072
b2dd6311
GS
40732002-08-08 Grace Sainsbury <graces@redhat.com>
4074
3c3bea1c
GS
4075 * remote.c (remote_wait, remote_async_wait): Change
4076 thread_num from int to ULONGEST.
4077 (unpack_varlen_hex): Change result parameter from
4078 int * to ULONGEST *.
b2dd6311 4079
ea47855f
AC
40802002-08-08 Andrew Cagney <ac131313@redhat.com>
4081
4082 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4083 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4084 powerpc*-*-*.
4085 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4086
69db8bae
AC
40872002-08-08 Andrew Cagney <cagney@redhat.com>
4088
4089 * gcore.c (override_derive_stack_segment): Delete variable.
4090 (preempt_derive_stack_segment): Delete function.
4091 (derive_stack_segment): Delete function.
4092 (default_derive_stack_segment): Renamed to derive_stack_segment.
4093 (override_derive_heap_segment): Delete variable.
4094 (preempt_derive_heap_segment): Delete function.
4095 (derive_heap_segment): Delete function.
4096 (default_derive_heap_segment): Rename to derive_heap_segment.
4097
cb811fe7
MS
40982002-08-06 Michael Snyder <msnyder@redhat.com>
4099
4100 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4101 * mips-tdep.c (mips_EABI_use_struct_convention,
4102 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4103 New functions. (mips_use_struct_convention): Delete.
4104 (mips_gdbarch_init): set use_gdbarch_convention.
4105
8b389c40
MS
41062002-08-06 Michael Snyder <msnyder@redhat.com>
4107
4108 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4109 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4110 mips_o32_reg_struct_has_addr): New functions.
4111 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4112
5c27f28a
AC
41132002-08-07 Andrew Cagney <ac131313@redhat.com>
4114
4115 * regcache.c (pseudo_register): Delete function.
4116 (fetch_register): Delete function.
4117 (store_register): Delete function.
4118 (regcache_raw_read, legacy_read_register_gen): Use
4119 target_fetch_registers instead of fetch_register.
4120 (legacy_write_register_gen, regcache_raw_write): Use
4121 target_store_register instead of store_register.
4122 (write_register_bytes): Ditto.
4123
4124 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4125 (STORE_PSEUDO_REGISTER): Delete.
4126 * gdbarch.h, gdbarch.c: Regenerate.
4127
5b331675
CV
41282002-08-06 Corinna Vinschen <vinschen@redhat.com>
4129
4130 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4131 write dump file binary.
4132
6acdf5c7
MS
41332002-08-05 Michael Snyder <msnyder@redhat.com>
4134
4135 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4136 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4137 (mips_gdbarch_init): Set N32 target to be mips64.
4138
b2f01c35
KB
41392002-08-06 Kevin Buettner <kevinb@redhat.com>
4140
4141 * frame.c (find_saved_register): Break out of loop once saved
4142 register address is found. Don't mention sparc in loop comment
4143 anymore.
4144
63db5580
KB
41452002-08-06 Kevin Buettner <kevinb@redhat.com>
4146
4147 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4148 mips_default_saved_regsize to 8.
4149
5e34e75e
AC
41502002-08-06 Andrew Cagney <ac131313@redhat.com>
4151
4152 * gcore.c: Do not include <sys/procfs.h>.
4153 * Makefile.in (gcore.o): Update dependencies.
4154
eb4c54a2
AC
41552002-08-06 Andrew Cagney <cagney@redhat.com>
4156
4157 * configure.tgt: Make arc-*-* obsolete.
4158 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4159 * MAINTAINERS: Make arc-elf obsolete.
4160 * arc-tdep.c: Make file obsolete.
4161 * config/arc/arc.mt: Ditto.
4162 * config/arc/tm-arc.h: Ditto.
4163
ced15480
TR
41642002-08-05 Theodore A. Roth <troth@verinet.com>
4165
c1bab85b 4166 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4167
b4743822
AC
41682002-08-05 Andrew Cagney <ac131313@redhat.com>
4169
4170 * mcore-tdep.c (mcore_gdbarch_init): Use
4171 generic_unwind_get_saved_register instead of
4172 generic_get_saved_register.
4173 * v850-tdep.c (v850_gdbarch_init): Ditto.
4174 * frv-tdep.c (frv_gdbarch_init): Ditto.
4175 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4176 * s390-tdep.c (s390_gdbarch_init): Ditto.
4177 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4178 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4179 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4180
3956d554
JB
41812002-08-05 Joel Brobecker <brobecker@gnat.com>
4182
4183 * objfiles.h: Add missing #include "symfile.h"
4184
4185 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4186
8249c0d6
AC
41872002-08-04 Andrew Cagney <ac131313@redhat.com>
4188
4189 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4190 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4191 of FIELD_BITSIZE.
4192
b9d14705
DJ
41932002-08-04 Daniel Jacobowitz <drow@mvista.com>
4194
4195 * NEWS: Cleanup and nitpick.
4196
dd73b9bb
AC
41972002-08-03 Andrew Cagney <ac131313@redhat.com>
4198
4199 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4200
043a27f8
AC
42012002-08-03 Andrew Cagney <ac131313@redhat.com>
4202
4203 * Makefile.in (gdbtk-bp.o): Update dependencies.
4204 (gdbtk-register.o): Ditto.
4205 (gdbtk-varobj.o): Ditto.
4206
46ce284d
AC
42072002-08-03 Andrew Cagney <cagney@redhat.com>
4208
4209 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4210 m68hc11_fetch_pseudo_register.
4211 (m68hc11_pseudo_register_write): Replace
4212 m68hc11_store_pseudo_register.
4213 (m68hc11_gdbarch_init): Update.
4214
b66d6d2e
AC
4215Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4216
4217 * gdbarch.sh: Include "gdb_string.h".
4218 * gdbarch.c: Regenerate.
4219
4220 * regcache.c: Include "gdb_string.h".
4221 * ax-general.c: Ditto.
4222 * varobj.c: Ditto.
4223 * std-regs.c: Ditto.
4224 * fbsd-proc.c: Ditto.
4225 * thread.c: Ditto.
4226
4227 * Makefile.in (regcache.o): Update dependencies.
4228 (thread.o, gdbarch.o): Ditto.
4229 (ax-general.o, gdbarch.o): Ditto.
4230 (varobj.o, std-regs.o): Ditto.
4231 (fbsd-proc.o): Specify dependencies.
4232
29e1842b
AC
42332002-08-02 Andrew Cagney <cagney@redhat.com>
4234
4235 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4236 regnum.
4237 (regcache_cooked_write): Ditto.
4238
68365089
AC
42392002-08-02 Andrew Cagney <ac131313@redhat.com>
4240
4241 * regcache.c (regcache_cooked_read): New function.
4242 (regcache_cooked_write): New function.
4243 (read_register_gen): Rewrite using regcache_cooked_read.
4244 (write_register_gen): Rewrite using regcache_cooked_write.
4245
4246 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4247 Declare.
4248
d8124050
AC
42492002-08-02 Andrew Cagney <cagney@redhat.com>
4250
4251 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4252 Replace the architecture methods register_read and register_write.
4253 * gdbarch.h, gdbarch.c: Regenerate.
4254 * regcache.c (init_regcache_descr): Update.
4255 (read_register_gen): Update.
4256 (write_register_gen): Update.
4257 (supply_register): Update comment.
4258
4259 * sh-tdep.c (sh_gdbarch_init): Update.
4260 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4261 `regcache' and `gdbarch' parameters. Make `buffer' a void
4262 pointer. Update code.
4263 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4264 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4265 void pointer. Update code.
4266 (sh64_register_write): Delete.
4267 (sh4_register_read): Delete.
4268 (sh64_register_read): Delete.
4269 (sh4_register_write): Delete.
4270 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4271 void pointer, `to' parameter a void pointer.
4272 (sh_sh64_register_convert_to_raw): Ditto.
4273
a6425924
KB
42742002-08-01 Kevin Buettner <kevinb@redhat.com>
4275
4276 * mips-tdep.c (mips_register_virtual_type): Use architecture
4277 invariant return values.
4278
ff5922b5
AC
42792002-08-01 Andrew Cagney <cagney@redhat.com>
4280
4281 * linux-proc.c: Include "gdb_string.h".
4282 * Makefile.in (linux-proc.o): Update dependency list.
4283
32a6503c
KB
42842002-08-01 Kevin Buettner <kevinb@redhat.com>
4285
4286 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4287 comment.
4288
ccaa32c7
GS
42892002-08-01 Grace Sainsbury <graces@redhat.com>
4290
4291 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4292 to_insert_watchpoint, to_remove_watchpoint,
4293 to_stopped_by_watchpoint, to_stopped_data_address,
4294 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4295 target vecctor. Define their corresponding macros so they call
4296 them.
4297
4298 * target.c: Add default and debug versions of for
4299 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4300 to_insert_watchpoint, to_remove_watchpoint,
4301 to_stopped_by_watchpoint, to_stopped_data_address,
4302 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4303
78fde5f8
KB
43042002-08-01 Kevin Buettner <kevinb@redhat.com>
4305
4306 * mips-tdep.c (mips_register_virtual_type): New function.
4307 (mips_gdbarch_init): Register mips_register_virtual_type()
4308 with gdbarch machinery.
4309 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4310 this file instead of tm-bigmips.h.
4311 (MIPS_REGSIZE): Delete this macro.
4312 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4313 multiarch version in mips-tdep.c will be found.
4314
db034ac5
AC
43152002-08-01 Andrew Cagney <cagney@redhat.com>
4316
4317 * NEWS: Menion that CHILL has been made obsolete.
4318
4319 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4320 * stabsread.c (read_range_type): Ditto.
4321 * gdbtypes.h: Ditto.
4322 * language.c (binop_type_check): Ditto.
4323 (binop_result_type): Ditto.
4324 (integral_type): Ditto.
4325 (character_type): Ditto.
4326 (string_type): Ditto.
4327 (boolean_type): Ditto.
4328 (structured_type): Ditto.
4329 (lang_bool_type): Ditto.
4330 (binop_type_check): Ditto.
4331 * language.h (_LANG_chill): Ditto.
4332 * dwarfread.c (set_cu_language): Ditto.
4333 * dwarfread.c (CHILL_PRODUCER): Ditto.
4334 * dwarfread.c (handle_producer): Ditto.
4335 * expression.h (enum exp_opcode): Ditto.
4336 * eval.c: Ditto for comments.
4337 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4338 * expprint.c (print_subexp): Ditto.
4339 (print_subexp): Ditto.
4340 * valops.c (value_cast): Ditto.
4341 (search_struct_field): Ditto.
4342 * value.h (COERCE_VARYING_ARRAY): Ditto.
4343 * symfile.c (init_filename_language_table): Ditto.
4344 (add_psymbol_with_dem_name_to_list): Ditto.
4345 * valarith.c (value_binop): Ditto.
4346 (value_neg): Ditto.
4347 * valops.c (value_slice): Ditto.
4348 * symtab.h (union language_specific): Ditto.
4349 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4350 (SYMBOL_DEMANGLED_NAME): Ditto.
4351 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4352 * defs.h (enum language): Ditto.
4353 * symtab.c (got_symtab): Ditto.
4354 * utils.c (fprintf_symbol_filtered): Ditto.
4355
4356 * ch-typeprint.c: Make file obsolete.
4357 * ch-valprint.c: Make file obsolete.
4358 * ch-lang.h: Make file obsolete.
4359 * ch-exp.c: Make file obsolete.
4360 * ch-lang.c: Make file obsolete.
4361
4362 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4363 CHILL_LIB.
4364 (TARGET_FLAGS_TO_PASS): Ditto.
4365 (CHILLFLAGS): Obsolete.
4366 (CHILL): Obsolete.
4367 (CHILL_FOR_TARGET): Obsolete.
4368 (CHILL_LIB): Obsolete.
4369 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4370 ch-valprint.c.
4371 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4372 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4373 ch-lang.o.
4374 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4375 targets.
4376
8aaf0b47
JB
43772002-07-31 Joel Brobecker <brobecker@gnat.com>
4378
4379 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4380 This does not change anything at the moment, but will be helpful
4381 later when full Ada support is integrated.
4382
f3a7b3a5
KB
43832002-07-31 Kevin Buettner <kevinb@redhat.com>
4384
4385 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4386 help message.
4387
fb850278
KB
43882002-07-31 Kevin Buettner <kevinb@redhat.com>
4389
4390 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4391 and save it in a local variable. Use variable in later test.
4392
e3bddbfa
KB
43932002-07-31 Kevin Buettner <kevinb@redhat.com>
4394
4395 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4396 test. (Thanks to Daniel Jacobowitz.)
4397
28d169de
KB
43982002-07-31 Kevin Buettner <kevinb@redhat.com>
4399
4400 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4401 (mips_abi_strings): Add "n64".
4402 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4403
7fe7e44e
KB
44042002-07-31 Kevin Buettner <kevinb@redhat.com>
4405
4406 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4407 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4408
c6caf090
KB
44092002-07-31 Kevin Buettner <kevinb@redhat.com>
4410
4411 * utils.c (host_pointer_to_address, address_to_host_pointer):
4412 Use gdb_assert() instead of explicit call to internal_error().
4413
c41669e0
KB
44142002-07-30 Kevin Buettner <kevinb@redhat.com>
4415
4416 * Makefile.in (rs6000-nat.o): Update dependencies.
4417
4418 From Nicholas Duffek:
4419 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4420 (aix-thread.o): New rule.
4421 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4422 * config/powerpc/aix432.mh: New file.
4423
2fda4977
DJ
44242002-07-30 Daniel Jacobowitz <drow@mvista.com>
4425
4426 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4427 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4428 (fetch_core_registers, ppc_linux_supply_gregset)
4429 (ppc_linux_supply_fpregset): New functions.
4430 (ppc_linux_regset_core_fns): New.
4431 (_initialize_ppc_linux_tdep): Call add_core_fns.
4432 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4433 and ppc_linux_supply_gregset.
4434 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4435 (supply_fpregset): Call ppc_linux_supply_fpregset.
4436 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4437 corelow.o.
4438 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4439
729051e6
DJ
44402002-07-30 Daniel Jacobowitz <drow@mvista.com>
4441
4442 * symtab.c (lookup_symbol): Demangle before lowercasing.
4443
5f8a3188
AC
44442002-07-30 Andrew Cagney <ac131313@redhat.com>
4445
4446 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4447 declaration.
4448 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4449 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4450 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4451 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4452 "gdb_string.h".
4453 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4454 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4455 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4456 (avr-tdep.o, mon960-rom.o): Ditto.
4457 (aout_stabs_gnu_h): Define.
4458 (symtab_h): Remove $(gdb_obstack_h).
4459
67f07146
JB
44602002-07-30 Jim Blandy <jimb@redhat.com>
4461
4462 Patch from David Carlton <carlton@math.stanford.edu>:
4463 * gdbinit.in: Move the `dir' commands that add GDB's own source
4464 directory to the search path to the end, so that the `gdb' source
4465 directory will be searched first.
4466
04ea0df1
AC
44672002-07-29 Andrew Cagney <ac131313@redhat.com>
4468
4469 * gdb_obstack.h: New file.
4470 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4471 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4472 * objfiles.h: Include "gdb_obstack.h".
4473 * Makefile.in (gdb_obstack_h): Define.
4474 (symtab_h): Add $(gdb_obstack_h).
4475 (objfiles_h): Add $(gdb_obstack_h).
4476
4477 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4478 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4479 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4480 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4481 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4482 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4483 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4484 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4485
4486 * Makefile.in (bcache.o): Update dependencies.
4487 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4488 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4489 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4490 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4491 (stabsread.o, symfile.o, symmisc.o): Ditto.
4492 (symtab.o, typeprint.o, macroexp.o): Ditto.
4493 (macrotab.o, mdebugread.o): Ditto.
4494 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4495 (coff_ecoff_h, aout_aout64_h): Define.
4496 (aout_stabs_gnu_h, libaout_h): Define.
4497
d138e37a
AC
44982002-07-29 Andrew Cagney <cagney@redhat.com>
4499
4500 * regcache.c (struct regcache_descr): Rename nr_registers to
4501 nr_cooked_registers. Revise comments describing the structure
4502 member fields.
4503 (init_regcache_descr): Update.
4504 (init_legacy_regcache_descr): Update.
4505 (read_register_gen, write_register_gen): When a cooked register in
4506 the raw register range, directly access the value from the raw
4507 register cache.
4508
460e6ec3
AC
45092002-07-29 Andrew Cagney <ac131313@redhat.com>
4510
4511 * z8k-tdep.c: Do not include "obstack.h".
4512 * h8300-tdep.c, h8500-tdep.c: Ditto.
4513 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4514 * valprint.c, v850-tdep.c: Ditto.
4515 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4516 * mn10200-tdep.c: Ditto.
4517
4518 * Makefile.in (z8k-tdep.o): Update dependencies.
4519 (m68hc11-tdep.o, valprint.o): Ditto.
4520 (v850-tdep.o, d10v-tdep.o): Ditto.
4521 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4522 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4523 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4524 (sh_opc_h, gdb_sim_sh_h): Define.
4525 (elf_sh_h, elf_bfd_h): Define.
4526 (opcode_m68hc11_h): Define.
4527 (OPCODES_SRC, OPCODES_DIR): define.
4528 (OPCODES): Use $(OPCODES_DIR).
4529 (gdb_sim_d10v_h): Rename sim_d10v_h.
4530 (gdb_sim_arm_h): Rename sim_arm_h.
4531
790c9cf0
KB
45322002-07-26 Kevin Buettner <kevinb@redhat.com>
4533
4534 * utils.c (host_pointer_to_address, address_to_host_pointer):
4535 Change internal_error() message to indicate function responsible
4536 for the error.
4537
9647fa49
KB
45382002-07-26 Kevin Buettner <kevinb@redhat.com>
4539
4540 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4541 calls to local_hex_string_custom().
4542
dabbe2c0
KB
45432002-07-26 Kevin Buettner <kevinb@redhat.com>
4544
4545 * irix5-nat.c: Move IRIX shared library support from here...
4546 * solib-irix.c: ...to here. Revised substantially to work with
4547 generic solib framework.
4548
b96d0a4e
KB
4549 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4550 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4551 * mips-irix-tdep.c: New file.
4552
313fb2f6
KB
4553 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4554 (mips-irix-tdep.o, solib-irix.o): New rules.
4555 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4556 solib-irix.o.
4557 * config/mips/irix6.mt (TDEPFILES): Likewise.
4558 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4559
ab2eaf26
KB
45602002-07-26 Kevin Buettner <kevinb@redhat.com>
4561
177e4768 4562 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
4563 disabled (via ``#if 0'') includes.
4564
7244546a
KB
45652002-07-26 Kevin Buettner <kevinb@redhat.com>
4566
4567 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4568 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4569 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4570 Add support for the fpscr register.
4571 * rs6000-nat.c (regmap, fetch_inferior_registers)
4572 (store_inferior_registers, fetch_core_registers): Likewise.
4573
dd7be90a
KB
45742002-07-26 Kevin Buettner <kevinb@redhat.com>
4575
4576 * rs6000-nat.c (language.h): Include.
4577 (special_regs): Delete this array.
4578 (regmap): New function.
4579 (fetch_register, store_register): Use regmap() to map gdb
4580 register numbers to ptrace register numbers. Also, use
4581 outputs from regmap() to make decisions regarding type of
4582 ptrace() call to make. In particular, don't compare against
4583 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4584 (fetch_inferior_registers, store_inferior_registers): Where
4585 possible, obtain register numbers from tdep struct. Don't
4586 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4587 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4588 (LAST_UISA_SP_REGNUM): Delete.
4589
11bf77db
KB
45902002-07-25 Kevin Buettner <kevinb@redhat.com>
4591
4592 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
4593 (fetch_registers, store_register, fetch_core_registers): Don't
4594 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
4595 regcache_collect() as appropriate.
4596 (find_toc_address): Format hex address with local_hex_string().
4597
06afebeb
AC
45982002-07-25 Andrew Cagney <ac131313@redhat.com>
4599
4600 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4601 bfd/elf32-frv.c.
4602
8c554d79
TT
46032002-07-24 Tom Tromey <tromey@redhat.com>
4604
4605 * jv-exp.y: Marked all strings with _().
4606 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4607 internal_error.
4608 (MethodInvocation, CastExpression, parse_number, yyerror,
4609 java_type_from_name, push_expression_name, yylex): Typo fixes.
4610
e4c242d9
DJ
46112002-07-24 Daniel Jacobowitz <drow@mvista.com>
4612
4613 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4614 (tee_file_flush, tee_file_write, tee_file_fputs)
4615 (tee_file_isatty): New.
4616 * ui-file.h (tee_file_new): Add prototype.
4617
ebf56fd3
AS
46182002-07-24 Aidan Skinner <aidan@velvet.net>
4619
4620 * ada-lang.c: Change k&r style function definitions to prototyped
4621 form.
4622 * ada-typeprint.c: Change k&r style function definitions to prototyped
4623 form.
4624 * ada-valprint.c: Change k&r style function definitions to prototyped
4625 form.
4626
7fb623f7
AC
46272002-07-24 Andrew Cagney <cagney@redhat.com>
4628
4629 * README: Remove reference to remote-bug.
4630 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4631 remote-bug.c.
4632 (m88k-nat.o): Delete rule.
4633 (m88k-tdep.o): Delete rule.
4634 (remote-bug.o): Delete rule.
4635 * MAINTAINERS: Mark as obsolete.
4636 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4637 * m88k-tdep.c: Make file obsolete.
4638 * config/m88k/m88k.mh: Ditto.
4639 * config/m88k/delta88v4.mh: Ditto.
4640 * config/m88k/delta88v4.mt: Ditto.
4641 * config/m88k/delta88.mt: Ditto.
4642 * config/m88k/delta88.mh: Ditto.
4643 * remote-bug.c: Ditto.
4644 * config/m88k/tm-delta88.h: Ditto.
4645 * config/m88k/nm-delta88v4.h: Ditto.
4646 * config/m88k/xm-delta88.h: Ditto.
4647 * config/m88k/xm-dgux.h: Ditto.
4648 * config/m88k/tm-m88k.h: Ditto.
4649 * config/m88k/nm-m88k.h: Ditto.
4650 * config/m88k/tm-delta88v4.h: Ditto.
4651 * m88k-nat.c: Ditto.
4652 * cxux-nat.c: Ditto.
4653 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4654 and m88*-*-* obsolete.
4655 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4656 m88*-*-* obsolete.
4657
37611a2b
AC
46582002-07-24 Andrew Cagney <cagney@redhat.com>
4659
4660 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4661 constant. Same for local pointer variables.
4662 (extract_signed_integer): Ditto.
4663 * defs.h (extract_unsigned_integer): Update.
4664 (extract_signed_integer): Update.
4665
1aaa5f99
AC
46662002-07-24 Andrew Cagney <cagney@redhat.com>
4667
4668 * regcache.c (regcache_raw_write): Change buf parameter to a
4669 constant void pointer.
4670 (regcache_raw_read): Change buf parameter to a void pointer.
4671 (legacy_write_register_gen): Change myaddr parameter a constant
4672 void pointer.
4673 (supply_register): Change val parameter to a const void pointer.
4674 * regcache.h (regcache_raw_write): Update declaration.
4675 (regcache_raw_read): Update declaration.
4676 (supply_register): Update declaration.
4677
b4f5539f
TT
46782002-07-24 Tom Tromey <tromey@redhat.com>
4679
4680 * defs.h (gdb_readline_wrapper): Declare.
4681 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4682 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4683 * top.c (gdb_readline_wrapper): New function.
4684 (command_line_input): Use it.
4685
0818c12a
AC
46862002-07-24 Andrew Cagney <cagney@redhat.com>
4687
4688 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4689 regcache_read and regcache_write.
4690 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4691 * regcache.c: Update.
4692 * sh-tdep.c (sh64_push_arguments): Update comment.
4693 (sh_pseudo_register_read): Update.
4694 (sh_pseudo_register_write): Update.
4695 (sh4_register_read): Update.
4696 (sh4_register_write): Update.
4697 (sh64_pseudo_register_read): Update.
4698 (sh64_pseudo_register_write): Update.
4699 (sh64_register_read): Update.
4700 (sh64_register_write): Update.
4701 * i386-tdep.c (i386_extract_return_value): Update.
4702 (i386_extract_struct_value_address): Update.
4703 (i386_extract_return_value): Update.
4704 * blockframe.c (generic_read_register_dummy): Update.
4705 (generic_call_dummy_register_unwind): Update
4706 * infrun.c (write_inferior_status_register): Update.
4707
f7321c06
JB
47082002-07-23 Jim Blandy <jimb@redhat.com>
4709
4710 * parser-defs.h (expression_context_pc): Make this extern.
4711 (Thanks to Michael Snyder.)
4712
2037aebb
AC
47132002-07-23 Andrew Cagney <ac131313@redhat.com>
4714
4715 GDB 5.2.1 released from 5.2 branch.
4716 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4717 * README: Update to mention 5.2.1.
4718
66504d44
MS
47192002-07-23 Mark Salter <msalter@redhat.com>
4720
4721 * remote.c (remote_read_bytes): Fix check for error.
4722
27bae383
KB
47232002-07-22 Kevin Buettner <kevinb@redhat.com>
4724
4725 * aix-thread.c (language.h): Include.
4726 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4727 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4728 Print newlines at end of debug messages.
4729 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4730 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4731
47322002-07-22 Kevin Buettner <kevinb@redhat.com>
4733
4734 * aix-thread.c (ppc-tdep.h): Include.
4735 (special_register_p): New function.
4736 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4737 (store_regs_user_thread): Use register number information from
4738 gdbarch_tdep struct instead of hardcoded offsets relative to
4739 FIRST_UISA_SP_REGNUM.
4740 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4741 special_register_p() instead of using FPLAST_REGNUM and
4742 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4743 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4744 will be MQ's register number.
4745
47462002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
4747
4748 * aix-thread.c (ops): Rename to aix_thread_ops.
4749 (base_ops): Rename to base_target.
4750 (ops_attach): Rename to aix_thread_attach.
4751 (ops_detach): Rename to aix_thread_detach.
4752 (ops_resume): Rename to aix_thread_detach.
4753 (ops_wait): Rename to aix_thread_wait.
4754 (ops_kill): Rename to aix_thread_kill.
4755 (init_ops): Rename to init_aix_thread_ops.
4756 (ops_fetch_register): Rename to aix_thread_fetch_register.
4757 (ops_store_register): Rename to aix_thread_store_register.
4758 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4759 (ops_thread_alive): Rename to aix_thread_thread_alive.
4760 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4761 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4762 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4763 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4764 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4765 (store_regs_lib): Rename to store_regs_user_thread.
4766 (store_regs_kern): Rename to store_regs_kernel_thread.
4767
27bae383 47682002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
4769
4770 * aix-thread.c (ops_prepare_to_store): Eliminate.
4771 (init_ops): Don't initialize ops.prepare_to_store.
4772 (store_regs_kern): Pre-fetch register buffers from child,
4773 because some registers may not be in the cache. Copy
4774 regs from register cache only if they are cached.
4775 (store_regs_lib): Copy regs from register cache only
4776 if they are cached.
4777 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4778 fill_gprs64): Ditto.
4779
61c5da0b
KB
47802002-07-22 Kevin Buettner <kevinb@redhat.com>
4781
4782 * aix-thread.c (gdb_assert.h): Include.
4783 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4784 register sizes (from register cache) match size of buffer holding
4785 register data.
4786 (fill_sprs32): Change parameter types to match those in the ptrace()
4787 buffer.
4788 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4789 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4790
47912002-07-22 Michael Snyder <msnyder@redhat.com>
4792
4793 * aix-thread.c (supply_sprs64): Cosmetic change.
4794 (supply_sprs32): Cosmetic change.
4795 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4796 (fill_sprs64): Use regcache_collect instead of read_register.
4797 (store_regs_lib): Use regcache_collect instead of
4798 read_register. Use fill_sprs32 instead of fill_sprs64,
4799 if debugging a 32-bit architecture.
4800 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4801 out of the register cache, instead of passing a pointer into
4802 the register cache directly to ptrace. Use regcache_collect
4803 insteaad of read_register.
4804 (ops_prepare_to_store): Use target_read_registers instead
4805 of read_register_bytes.
4806
36479eb1
AS
48072002-07-20 Aidan Skinner <aidan@velvet.net>
4808
4809 * MAINTAINERS: Add self under write after approval.
4810
80ae6ee2
AS
48112002-07-20 Aidan Skinner <aidan@velvet.net>
4812
4813 * ada-tasks.c: Change k&r style function definitions to prototyped
4814 form.
4815
8a8ab2b9
AC
48162002-07-19 Andrew Cagney <ac131313@redhat.com>
4817
4818 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4819 * x86-64-tdep.c: Include "objfiles.h".
4820 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4821 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4822
fb16b900
ML
48232002-07-17 Michal Ludvig <michal@suse.cz>
4824
4825 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4826 (update_context): Initialise cfa variable.
4827
0fe7bf7b
MS
48282002-07-17 Michael Snyder <msnyder@redhat.com>
4829
4830 * aix-thread.c: Shorten some long lines.
4831 Bring comments into line with code spec.
4832
488f131b
JB
48332002-07-18 Joel Brobecker <brobecker@gnat.com>
4834
4835 * infrun.c: Re-indent using gdb_indent.sh.
4836
46c415d2
JB
48372002-07-18 Joel Brobecker <brobecker@gnat.com>
4838
4839 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4840 Leave the indentation temporarily untouched, to minimize the diffs.
4841
cdecafbe
EZ
48422002-07-18 Elena Zannoni <ezannoni@redhat.com>
4843
4844 * stabsread.c: Make os9k sections of the code obsolete,
4845 for real this time.
4846 * stabsread.h: Make os9k sections of the code obsolete.
4847
7b6aa020
ML
48482002-07-18 Michal Ludvig <mludvig@suse.cz>
4849
09ec9b38
ML
4850 * linux-low.c (regsets_store_inferior_registers): Add free()
4851 at the end of a loop to prevent memory leak.
4852 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4853 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
4854 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4855 line a comment.
4894ac5d 4856 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 4857
233282cd
JB
48582002-07-17 Jim Blandy <jimb@redhat.com>
4859
4860 * macrocmd.c (info_macro_command): Remove newline from error
4861 message.
4862
7b6aa020 48632002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
4864
4865 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4866 (sh_gdbarch_init): Use it for sh-dsp.
4867
f7ef9339
KB
48682002-07-16 Kevin Buettner <kevinb@redhat.com>
4869
4870 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4871 64-bit DWARF2 format.
4872
8dd72958
JB
48732002-07-16 Joel Brobecker <brobecker@gnat.com>
4874
4875 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4876 <sys/proc.h> when not available.
4877
a99a9e1b
AC
48782002-07-16 Andrew Cagney <ac131313@redhat.com>
4879
4880 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4881 * stabsread.c: Make os9k sections of the code obsolete.
4882 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4883 * config/i386/i386os9k.mt: Make file obsolete.
4884 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4885 (COMMON_OBS): Remove os9kread.o
4886 (SFILES): Remove os9kread.c.
4887 (os9kread.o, remote-os9k.o): Make target obsolete.
4888 * remote-os9k.c: Make file obsolete.
4889 * os9kread.c: Make file obsolete.
4890 * Makefile.in
4891
7a3085c1
AC
48922002-07-16 Andrew Cagney <ac131313@redhat.com>
4893
4894 * NEWS: Mention that the FR30 has been made obsolete.
4895 * fr30-tdep.c: Make file obsolete.
4896 * config/fr30/tm-fr30.h: Ditto.
4897 * config/fr30/fr30.mt: Ditto.
4898 * configure.tgt: Make fr30-*-elf obsolete.
4899 * MAINTAINERS: Make fr30-elf obsolete.
4900
28a93f5a
PM
49012002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4902
4903 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4904 found is not inside a section.
4905
be006b8b
KB
49062002-07-15 Kevin Buettner <kevinb@redhat.com>
4907
4908 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4909 strerror().
4910 (pdc_realloc): Use xrealloc() instead of realloc().
4911
14fa3751
KB
49122002-07-15 Kevin Buettner <kevinb@redhat.com>
4913
4914 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4915 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4916 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4917 macros.
4918
42cc437f
KB
49192002-07-15 Kevin Buettner <kevinb@redhat.com>
4920
4921 * aix-thread.c (ptrace_check): Eliminate goto.
4922 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4923 problem.
4924
8e2c28d4
KB
49252002-07-15 Kevin Buettner <kevinb@redhat.com>
4926
4927 * aix-thread.c (gdbcmd.h): Include.
4928 (DEBUG, DBG, DBG2, dbg): Eliminate.
4929 (debug_aix_thread): New static global.
4930 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4931 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4932 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4933 invocations to DBG and DBG2 macros to test against
4934 ``debug_aix_thread'' and call fprintf_unfiltered().
4935 (_initialize_aix_thread): Add new command "set debug aix-thread".
4936
30413464
AC
49372002-07-15 Andrew Cagney <ac131313@redhat.com>
4938
4939 From Gerhard Tonn <TON@de.ibm.com>:
4940 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4941 instead of supply_register.
4942
7c43edc1
AC
49432002-07-15 Andrew Cagney <ac131313@redhat.com>
4944
4945 * dwarf2cfi.c: Include "gdb_assert.h".
4946 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4947 non-NULL.
4948 (update_context): Do not use __func__. Add missing ``break''.
4949 (update_context): Do not use __func__.
4950
9364a0ef
EZ
49512002-07-15 Elena Zannoni <ezannoni@redhat.com>
4952
4953 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4954 and its setting. Set gdbarch instruction printing functions
4955 directly. For non-rs6000 case use new function
4956 gdb_print_insn_powerpc.
4957 (gdb_print_insn_powerpc): New function.
4958
3fbeef0b
AC
49592002-07-13 Andrew Cagney <ac131313@redhat.com>
4960
92eb23c5 4961 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
4962 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4963 * configure.tgt: Mark d30v-*-* as obsolete.
4964 * d30v-tdep.c: Mark file as obsolete.
4965 * config/d30v/d30v.mt: Ditto.
4966 * config/d30v/tm-d30v.h: Ditto.
4967
aacb1f0a
AS
49682002-07-13 Aidan Skinner <aidan@velvet.net>
4969
4970 * ada-tasks.c (add_task_entry): replace calls to
4971 malloc() with xmalloc
4972 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4973
4974 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4975 ada_finish_decode_line_1, all_sals_for_line
4976 ada_breakpoint_rewrite): replace calls to free() with xfree()
4977
c11d79f2
KB
49782002-07-12 Kevin Buettner <kevinb@redhat.com>
4979
4980 From Nicholas Duffek (with minor changes by Martin Hunt,
4981 Louis Hamilton, and Kevin Buettner):
4982 * aix-thread.c: New file.
4983
8e19ed76
PS
49842002-07-12 Petr Sorfa <petrs@caldera.com>
4985
4986 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4987 complaint for invalid attribute class or form.
4988 (read_func_scope): DW_AT_frame_base
4989 better handling of DW_AT_block*.
4990 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4991 better handling of DW_AT_block*.
4992 (read_common_block): DW_AT_location
4993 better handling of DW_AT_block*.
4994 (read_partial_die): DW_AT_location better handling
4995 of DW_AT_block*.
4996 (new_symbol): DW_AT_external better handling of
4997 DW_AT_block*. Proper initialization of variable
4998 "addr".
4999 (attr_form_is_block): New function that returns true
5000 if the attribute's form is of DW_FORM_block*.
5001
295401f7
DJ
50022002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5003
5004 * valops.c (find_method_list): Remove comment about
5005 removed STATIC_MEMFUNCP argument.
5006 (value_find_oload_method_list): Likewise.
5007
e42dc924
KB
50082002-07-12 Kevin Buettner <kevinb@redhat.com>
5009
5010 From Nicholas Duffek:
5011 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5012 target_new_objfile_hook.
5013
6904b546
KB
50142002-07-12 Kevin Buettner <kevinb@redhat.com>
5015
5016 From Nicholas Duffek:
5017 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5018 csect.
5019
53fe9346
AC
50202002-07-12 Andrew Cagney <cagney@redhat.com>
5021
5022 * MAINTAINERS: Mention --enable-sim-build-warnings.
5023 (m68hc11-elf): Disable sim build warnings.
5024 (m32r-elf): Mark as broken obsolete candidate.
5025 (x86_64-linux-gnu): Mark as buildable with -Werror.
5026 (arm-elf): Change -w to ``,'' which enables warnings but not
5027 -Werror.
5028
af5f3db6
AC
50292002-07-12 Andrew Cagney <ac131313@redhat.com>
5030
5031 * bcache.h: Update copyright.
5032 (struct bstring, struct bcache): Move definition to "bcache.c".
5033 Replaced by opaque declaration.
5034 (bcache_xfree): Replace free_bcache.
5035 (bcache_xmalloc, bcache_memory_used): Declare.
5036
5037 * bcache.c: Update copyright.
5038 (struct bstring, struct bcache): Moved to here from "bcache.h".
5039 Update comments.
5040 (bcache_xmalloc, bcache_memory_used): New functions.
5041 (bcache_xfree): Replace function free_bcache.
5042
5043 * Makefile.in (objfiles.o): Add $(bcache_h).
5044 (objfiles_h): Remove $(bcache_h).
5045 (symfile.o): Add $(bcache_h).
5046
5047 * symmisc.c: Update copyright.
5048 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5049 (print_objfile_statistics): Use bcache_memory_used.
5050
5051 * symfile.c: Include "bcache.h".
5052 (reread_symbols): Use bcache_xfree.
5053 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5054 (add_psymbol_to_list): Pass psymbol_cache by value.
5055 (add_psymbol_with_dem_name_to_list): Ditto.
5056
5057 * objfiles.h: Update copyright.
5058 (struct bcache): Declare opaque. Do not include "bcache.h".
5059 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5060 bcache'' pointers.
5061 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5062
5063 * objfiles.c: Include "bcache.h". Update copyright.
5064 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5065 macro_cache.
5066 (free_objfile): Use bcache_xfree.
5067
444199e7
GS
50682002-07-11 Grace Sainsbury <graces@redhat.com>
5069
5070 * monitor.c (monitor_fetch_register): Make name a constant.
5071 (monitor_store_register): Same.
5072
261397f8
DJ
50732002-07-11 Daniel Jacobowitz <drow@mvista.com>
5074
5075 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5076 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5077 (finish_block) For non-function blocks, hash the symbol table. For
5078 function blocks, mark the symbol table as unhashed.
5079 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5080 (msymbol_hash_iw): Likewise.
5081 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5082 value.
5083 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5084 (lookup_minimal_symbol): Likewise for both.
5085 * symtab.h (struct block): Add `hashtable' flag. Comment the
5086 hashtable.
5087 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5088 (ALL_BLOCK_SYMBOLS): Update.
5089 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5090 (struct symbol): Add `hash_next' pointer.
5091 * symtab.c (lookup_block_symbol): Search using the hash table when
5092 possible.
5093 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5094 (search_symbols, find_addr_symbol): Likewise.
5095
5096 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5097 (read_dst_symtab): Likewise.
5098 * jv-lang.c (get_java_class_symtab): Likewise.
5099 * mdebugread.c: Include "gdb_assert.h".
5100 (shrink_block): Assert that the block being modified is not hashed.
5101 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5102 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5103 symbols.
5104 (dump_symtab): Recognize hashed blocks.
5105 * printcmd.c (print_frame_args): Assert that function blocks do not
5106 have hashed symbol tables.
5107 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5108 (fill_in_ada_prototype, debug_print_block): Likewise.
5109 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5110
6f0eaa01
CV
51112002-07-11 Corinna Vinschen <vinschen@redhat.com>
5112
5113 * stack.c (print_frame): Use result of frame_address_in_block()
5114 instead of fi->pc when evaluating symbols.
5115 (backtrace_command_1): Ditto.
5116
a208b0cb
AC
51172002-07-11 Andrew Cagney <cagney@redhat.com>
5118
5119 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5120 Make static.
5121
5122 * arm-tdep.c (arm_register_name): Make return type constant.
5123
a6b6b089
AC
51242002-07-10 Andrew Cagney <ac131313@redhat.com>
5125
5ae5f592
AC
5126 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5127 prototype.
5128 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5129 * s390-tdep.c (s390_fp_regnum): Ditto.
5130 (s390_read_fp): Ditto.
5131 (s390_pop_frame): Ditto.
5132 (_initialize_s390_tdep): Ditto.
5133 * remote.c (get_remote_state): Ditto.
5134 * procfs.c (mappingflags): Ditto.
5135 * memattr.c (_initialize_mem): Ditto.
5136 * mcore-tdep.c (mcore_pop_frame): Ditto.
5137 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5138 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5139 * language.c (set_case_str): Ditto.
5140 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5141 * frv-tdep.c (new_variant): Ditto.
5142 (frv_stopped_data_address): Ditto.
5143 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5144 (context_alloc): Ditto.
5145 (frame_state_alloc): Ditto.
5146 (unwind_tmp_obstack_init): Ditto.
5147 (unwind_tmp_obstack_free): Ditto.
5148 (cfi_read_fp): Ditto.
5149 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5150 (cris_pop_frame): Ditto.
5151 * c-lang.c (scanning_macro_expansion): Ditto.
5152 (finished_macro_expansion): Ditto.
5153 (c_preprocess_and_parse): Ditto.
5154 * gdbarch.sh: Ditto.
5155 * gdbarch.h, gdbarch.c: Regenerate.
5156 * config/mn10200/tm-mn10200.h: Adjust indentation.
5157 * target.c: Adjust indentation.
5158 * symtab.h: Adjust indentation.
5159 * stabsread.h: Adjust indentation.
5160 * remote-es.c: Adjust indentation.
5161 * os9kread.c: Adjust indentation.
5162
51632002-07-10 Andrew Cagney <ac131313@redhat.com>
5164
a6b6b089
AC
5165 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5166 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5167
a1789893
GS
51682002-07-10 Grace Sainsbury <graces@redhat.com>
5169
5170 * NEWS: Mention m68k, mcore multi-arching.
5171 * MAINTAINERS: Change status of m68k, mcore to reflect
5172 multi-arching.
5173
02f0d45d
DJ
51742002-07-10 Daniel Jacobowitz <drow@mvista.com>
5175
5176 * valops.c (find_overload_match): Free oload_syms.
5177
f15f768e
JB
51782002-07-09 Joel Brobecker <brobecker@gnat.com>
5179
5180 Define HAVE_SYS_PROC_H if sys/proc.h exists
5181 * configure.in: Add check for sys/proc.h
5182 * config.in: Regenerate.
5183 * configure: Regenerate.
5184
902a7139
GS
51852002-07-09 Grace Sainsbury <graces@redhat.com>
5186
5187 * config/m68k/tm-m68k.h: Remove macros wrapped in
5188 #if !GDB_MULTI_ARCH.
5189
a534e424
AC
51902002-07-08 Andrew Cagney <ac131313@redhat.com>
5191
5192 * config.in, configure: Regenerate.
5193
9b94f7bf
MK
51942002-07-08 Mark Kettenis <kettenis@gnu.org>
5195
5196 * dwarf2cfi.c: Include "gcore.h".
5197 (execute_stack_op): Fix implementation of the
5198 DW_OP_deref and DW_OP_deref_size operators by letting do their
5199 lookup in the target.
5200
1d34db41
MK
52012002-07-07 Mark Kettenis <kettenis@gnu.org>
5202
5203 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5204 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5205 tdep->sc_sp_offset.
5206
79d5b63a
DJ
52072002-07-05 Daniel Jacobowitz <drow@mvista.com>
5208
5209 Fix PR gdb/595, gdb/602
5210 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5211 Don't call value_cast, just read the vtable pointer; update comments
5212 to match.
5213
3bb912e8
GS
52142002-07-05 Grace Sainsbury <graces@redhat.com>
5215
5216 * config/mcore/tm-mcore.h: Remove file.
5217 * config/mcore/mcore.mt: Remove definition of TM_FILE
5218 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5219
ca39387d
MK
52202002-07-05 Mark Kettenis <kettenis@gnu.org>
5221
5222 * i386bsd-tdep.c: Include "gdb_string.h".
5223
efdc1108
GS
52242002-07-04 Grace Sainsbury <graces@redhat.com>
5225
5226 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5227 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5228 mcore-tdep.
5229 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5230 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5231 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5232 (RETVAL_REGNUM): Move macros from tm-mcore.h
5233 (mcore_reg_struct_has_addr): New function.
5234 (mcore_gdbarch_init): Added initializations for the macros removed
5235 from tm-mcore.h.
5236
bb21884d
MK
52372002-07-04 Mark Kettenis <kettenis@gnu.org>
5238
5239 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5240 traditonal string branding within the ELF header.
5241
228c6d41
DJ
52422002-07-04 Daniel Jacobowitz <drow@mvista.com>
5243
5244 * symtab.c (remove_params): New function.
5245 (make_symbol_overload_list): Use it instead of cplus_demangle.
5246 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5247
2404952e
MK
52482002-07-04 Mark Kettenis <kettenis@gnu.org>
5249
e5e4acad
MK
5250 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5251
baadce09
MK
5252 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5253 New variables.
5254 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5255 and tdep->sigtramp_end.
5256 * i386obsd-nat.c: New file.
5257 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5258
2404952e
MK
5259 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5260 Don't call get_current_frame().
5261
9b4f1ba7
PM
52622002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5263
5264 * i386-nat.c (child_post_startup_inferior): New function
5265 calling i386_cleanup_dregs if
5266 I386_USE_GENERIC_WATCHPOINTS is defined.
5267 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5268 conditional to acknowledge that i386-nat.c has its
5269 own child_post_startup_inferior function.
5270
c0d1d883
MK
52712002-07-04 Mark Kettenis <kettenis@gnu.org>
5272
00f8375e
MK
5273 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5274 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5275 instead of MAX_REGISTER_RAW_SIZE.
5276 (i386_extract_return_value, i386_extract_struct_value_address):
5277 Convert to use regcache.
5278 (i386_gdbarch_init): Set max_register_raw_size and
5279 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5280 Set extract_return_value and extract_struct_value_address instead
5281 of their deprecated variants.
5282
c0d1d883
MK
5283 Convert i386 target to generic dummy frames.
5284 * i386-tdep.c: Include "symfile.h".
5285 (i386_frameless_signal_p): Consider a function to be frameless if
5286 the pc points at the first instruction of the function.
5287 (i386_frame_chain): Handle (generic) call dummies.
5288 (i386_frame_saved_pc): Likewise.
5289 (i386_frame_init_saved_regs): Remove code dealing with call
5290 dummies on the stack.
5291 (i386_push_dummy_frame): Removed.
5292 (i386_call_dummy_words): Removed.
5293 (i386_fix_call_dummy): Removed.
5294 (i386_push_return_address): New function.
5295 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5296 parameter, and don't call get_current_frame.
5297 (i386_pop_frame): New function.
5298 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5299 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5300 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5301 call_dummy_length to 0, set call_dummy_words to NULL, set
5302 sizeof_call_dummy_words to 0, set fix_call_dummy to
5303 generic_fix_call_dummy, set pc_in_call_dummy to
5304 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5305 generic_push_dummy_frame, set push_return_address to
5306 i386_push_return_address and set frame_chain_valid to
5307 generic_file_frame_chain_valid.
5308
049ee0e4
AC
53092002-07-03 Andrew Cagney <ac131313@redhat.com>
5310
5311 * gdbarch.sh (struct regcache): Add opaque declaration.
5312 (EXTRACT_RETURN_VALUE): New architecture method.
5313 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5314 * gdbarch.h, gdbarch.c: Regenerate.
5315 * arch-utils.c (legacy_extract_return_value): New function.
5316 * arch-utils.h (legacy_extract_return_value): Declare.
5317 * values.c (value_being_returned): Re-enable code handling
5318 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5319 deprecated_grub_regcache_for_registers call to block handling
5320 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5321 (EXTRACT_RETURN_VALUE): Do not define.
5322
4e0d9804
GS
53232002-07-03 Grace Sainsbury <graces@redhat.com>
5324
5325 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5326 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5327 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5328 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5329 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5330 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5331 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5332 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5333 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5334 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5335 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5336 argument so the function fits the prototype in the architecture
5337 vector.
5338 (mcore_pop_frame): Remove argument so the function fits the
5339 prototype. Use get_current_frame instead of the argument.
5340 (mcore_push_arguments): Change type of struct_return so the
5341 function can be used in the architecture vector.
5342 (mcore_store_struct_return): Add.
5343 (mcore_frame_init_saved_regs): Add.
5344 (mcore_gdbarch_init): Add function calls to replace the macros
5345 removed from tm-mcore.h
5346
36160dc4
AC
53472002-07-03 Andrew Cagney <ac131313@redhat.com>
5348
5349 * infcmd.c (print_return_value): Remove compatibility code calling
5350 deprecated_grub_regcache_for_registers.
5351
5352 * values.c: Include "regcache.h".
5353 (value_being_returned): Update. Use
5354 deprecated_grub_regcache_for_registers to extract the register
5355 buffer address.
5356 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5357 ``struct regcache''.
5358 * Makefile.in (values.o): Add dependency on $(regcache_h).
5359
5360 * inferior.h (run_stack_dummy): Change type of second parameter to
5361 a ``struct regcache''.
5362 * valops.c (hand_function_call): Change type of retbuf to ``struct
5363 regcache''. Allocate using regcache_xmalloc, clean using
5364 make_cleanup_regcache_xfree.
5365 * infcmd.c (run_stack_dummy): Update. Use
5366 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5367
5368 * regcache.c (do_regcache_xfree): New function.
5369 (make_cleanup_regcache_xfree): New function.
5370 * regcache.h (make_cleanup_regcache_xfree): Declare.
5371
e64d9b3d
MH
53722002-07-03 Martin M. Hunt <hunt@redhat.com>
5373
4dd79c29
MH
5374 * event-top.c (command_line_handler): Don't read past
5375 beginning of buffer.
e64d9b3d 5376
4dd79c29
MH
53772002-07-03 Martin M. Hunt <hunt@redhat.com>
5378
e64d9b3d
MH
5379 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5380 struct frame_id.
5381 (varobj_create): Store frame_id for root.
5382 (varobj_gen_name): Use xasprintf.
5383 (varobj_update): Save and restore frame using get_frame_id() and
5384 frame_find_by_id().
5385 (create_child): Use xasprintf.
5386 (new_root_variable): Initialize frame_id.
5387 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5388 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5389 to prevent memory leak.
5390
26e6c56a
AC
53912002-07-03 Andrew Cagney <ac131313@redhat.com>
5392
5393 * valops.c (hand_function_call): Move declaration of retbuf to
5394 start of function, allocate using malloc, add a cleanup but before
5395 the inf_status cleanup, cleanup the buffer. Rename local variable
5396 old_chain to inf_status_cleanup.
5397
f436dd25
MH
53982002-07-03 Martin M. Hunt <hunt@redhat.com>
5399
5400 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5401
5402 * cli/cli-decode.c (cmd_func_p): New function.
5403 (cmd_func): New function.
5404
5405 * command.h: Add cmd_func() and cmd_func_p().
5406
4cfe2084
GS
54072002-07-03 Grace Sainsbury <graces@redhat.com>
5408
5409 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5410 (REGISTER_SIZE): Remove.
5411 (MAX_REGISTER_RAW_SIZE): Remove.
5412 (REGISTER_VIRTUAL_TYPE): Remove.
5413 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5414 (REGISTER_NAME): Remove.
5415 (USE_GENERIC_DUMMY_FRAMES): Remove.
5416 (CALL_DUMMY): Remove.
5417 (CALL_DUMMY_START_OFFSET): Remove.
5418 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5419 (CALL_DUMMY_LOCATION): Remove.
5420 (FIX_CALL_DUMMY): Remove.
5421 (CALL_DUMMY_ADDRESS): Remove.
5422 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5423 (SAVE_DUMMY_FRAME_TOS): Remove.
5424 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5425 (mcore_register_virtual_type): New function.
5426 (mcore_register_byte): New function.
5427 (mcore_register_size): New function.
5428 (mcore_register_name): New function.
5429 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5430 macros removed from tm-mcore.h.
5431 (mcore_dump_tdep): Add.
5432 (_initialize_mcore_tdep): Add gdbarch_register call.
5433
4fd667e9
MK
54342002-07-03 Mark Kettenis <kettenis@gnu.org>
5435
5436 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5437 frameless_look_for_prologue, such that we actually call this
5438 function.
5439
42f99ac2
JB
54402002-07-02 Joel Brobecker <brobecker@gnat.com>
5441
5442 * frame.h (frame_address_in_block): New function.
5443
5444 * blockframe.c (frame_address_in_block): New function extracted
5445 from get_frame_block().
5446 (get_frame_block): Use frame_address_in_block().
5447 (block_innermost_frame): Use frame_address_in_block() to match
5448 the frame pc address against the block boundaries rather than
5449 the frame pc directly. This prevents a failure when a frame pc
5450 is actually a return-address pointing immediately after the end
5451 of the given block.
5452
103a1597 54532002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
5454
5455 * MAINTAINERS: Add self under write after approval.
5456
54572002-07-02 Grace Sainsbury <graces@redhat.com>
5458
103a1597
GS
5459 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5460 used in architecture vector. The default is
5461 m68k_local_breakpoint_from_pc.
5462 (m68k_local_breakpoint_from_pc): Add.
5463 (enum): Add register numbers from tm-m68k.h.
5464 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5465 vector.
5466 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5467 GDB_MULTI_ARCH_PARTIAL.
5468 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5469 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5470 m68k-tdep.c.
5471 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5472 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5473 to enum in m68k-tdep.c
5474
7a5a0534
JB
54752002-07-02 Joel Brobecker <brobecker@gnat.com>
5476
5477 * solib-osf.c (open_map): Compute the list of shared libraries
5478 loaded by the inferior, rather than the list of libraries loaded
5479 by GDB itself. Otherwise, GDB ends up reading the symbols from
5480 the wrong shared libraries...
5481
6f558d74
MK
54822002-07-02 Mark Kettenis <kettenis@gnu.org>
5483
b7d15bf7
MK
5484 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5485 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5486 macros.
5487 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5488 Remove functions.
5489 (FRAMELESS_SIGNAL): Remove function.
5490 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5491 i386_linux_saved_pc_after_call): Removed.
5492 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5493 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5494 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5495
6bff26de
MK
5496 * i386-tdep.c (i386_frameless_signal_p): New function.
5497 (i386_frame_chain): Deal with frameless signals.
5498 (i386_sigtramp_saved_sp): New function.
5499 (i386_frame_saved_pc): Deal with frameless signals.
5500 (i386_saved_pc_after_call): Make sure the correct value is
5501 returned just after entry into a sigtramp.
5502 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5503 i386fbsd4_sc_sp_offset): New variables.
5504 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5505 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5506 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5507 similiar to what we already did for sc_pc_offset.
5508 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5509 tdep->sc_sp_offset.
5510
6f558d74
MK
5511 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5512
145564b7
ML
55132002-07-02 Michal Ludvig <mludvig@suse.cz>
5514
5515 * config/i386/tm-x86-64linux.h: New.
5516 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5517 definitions.
5518 * config/i386/nm-x86-64.h: Rename to ...
5519 * config/i386/nm-x86-64linux.h: ... this one.
5520 * config/i386/x86-64linux.mh: Reflect the above change.
5521
3a1e71e3
MK
55222002-07-01 Mark Kettenis <kettenis@gnu.org>
5523
21d0e8a4
MK
5524 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5525 with sigcontext_addr. Add sc_sp_offset.
5526 (i386bsd_sigtramp_saved_pc): Remove prototype.
5527 (i386bsd_sicontext_addr): Add prototype.
5528 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5529 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5530 (i386_svr4_sigtramp_saved_pc): Removed.
5531 (i386_svr4_sigcontext_addr): New function.
5532 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5533 Initialize tdep->sigcontext_addr instead. Initialize
5534 tdep->sc_pc_offset and tdep->sc_sp_offset.
5535 (i386_gdbarch_init): Likewise.
5536 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5537 any more.
5538 (i386bsd_sigtramp_saved_pc): Remove function.
5539 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5540 Initialize tdep->sigcontext_addr instead. Initialize
5541 tdep->sc_pc_offset.
5542 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5543 of tdep->sigtramp_saved_pc.
5544 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5545 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5546 instead.
5547
3a1e71e3
MK
5548 * i386-tdep.c (i386_frameless_function_invocation,
5549 i386_frame_num_args, i386_frame_init_saved_regs,
5550 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5551 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5552 i386_extract_return_value, i386_store_return_value,
5553 i386_extract_struct_value_address, i386_register_virtual_type,
5554 i386_register_convertible, i386_register_convert_to_virtual,
5555 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5556 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5557 static.
5558
52e9098c
MK
55592002-07-01 Mark Kettenis <kettenis@gnu.org>
5560
77b13a25
MK
5561 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5562
52e9098c
MK
5563 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5564 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5565 this macro. Include "value.h".
5566
1b372fff
AS
55672002-06-30 Aidan Skinner <aidan@velvet.net>
5568
5569 * ada-exp.tab.c: remove as it's a generated file
5570 * ada-lex.c: remove as it's a generated file
5571
9c5045b5
MK
55722002-06-30 Mark Kettenis <kettenis@gnu.org>
5573
4a93c5bb
MK
5574 * config/i386/tm-i386.h (struct frame_info, struct
5575 frame_saved_regs, struct value, struct type): Remove forward
5576 declarations.
5577
322d4fe0
MK
5578 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5579 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5580 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5581 (FILL_FPXREGSET): Define.
5582
fdd8263d
MK
5583 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5584
482e577b
MK
5585 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5586 i[3456]86-*-netbsd* case.
5587 * config/i386/tm-obsd.h: Removed.
5588 * config/i386/obsd.mt: Removed.
5589 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5590 core-aout.o.
5591 (MH_CFLAGS): Add -DYYDEBUG=0.
5592
6916549a
MK
5593 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5594 i386nbsd_sc_pc_offset on OpenBSD too.
5595
9c5045b5
MK
5596 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5597 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5598 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5599 define.
5600 * i386bsd-tdep.c: Include "arch-utils.h".
5601 (i386bsd_aout_in_solib_call_trampoline): New function.
5602 (i386bsd_init_abi): Set in_solib_call_trampoline to
5603 i386bsd_aout_in_solib_call_trampoline.
5604 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5605 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5606
aa84d1bb
AC
56072002-06-28 Andrew Cagney <ac131313@redhat.com>
5608
5609 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5610 (struct obstack, struct bcache): Add opaque declarations.
5611 * Makefile.in (macrotab_h): Update
5612
b4d83933
AC
56132002-06-28 Andrew Cagney <ac131313@redhat.com>
5614
5615 * blockframe.c (generic_find_dummy_frame): Change return type to
5616 ``struct regcache''.
5617 (struct dummy_frame): Replace field ``registers'' with regcache, a
5618 struct regcache object.
5619 (generic_find_dummy_frame): Update.
5620 (generic_push_dummy_frame): Update. Use regcache_xfree,
5621 regcache_xmalloc and regcache_cpy.
5622 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5623 regcache_xfree.
5624 (deprecated_generic_find_dummy_frame): Update.
5625 (generic_read_register_dummy): Update. Use
5626 regcache_read_as_address.
5627 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5628 (generic_get_saved_register): Update. Use regcache_read.
5629
08c0b5bc
AC
56302002-06-28 Andrew Cagney <ac131313@redhat.com>
5631
5632 * Makefile.in (objfiles_h): Add $(bcache_h).
5633 * objfiles.h: Include "bcache.h".
5634
5635 * Makefile.in (symtab_h): Remove $(bcache_h).
5636 * symtab.h: Do not include "bcache.h".
5637
1f89801a
AC
56382002-06-28 Andrew Cagney <ac131313@redhat.com>
5639
5640 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5641 generic_func_frame_chain_valid.
5642
b9644b58
DB
56432002-06-28 David O'Brien <obrien@FreeBSD.org>
5644
5645 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5646 * config/i386/tm-fbsd.h: Likewise.
5647
dd486634
AC
56482002-06-28 Andrew Cagney <ac131313@redhat.com>
5649
5650 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5651 generic_unwind_get_saved_register.
5652
0b434a00
AC
56532002-06-27 Andrew Cagney <ac131313@redhat.com>
5654
5655 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5656 * regcache.c (supply_register): Add missing argument to
5657 register_buffer call.
5658
f30e5a77
AC
56592002-06-27 Andrew Cagney <ac131313@redhat.com>
5660
5661 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5662 Solaris /bin/grep does not not like it. From Peter Schauer.
5663
9f064c95
TT
56642002-06-26 Tom Tromey <tromey@redhat.com>
5665
5666 * command.h (add_setshow_cmd): Declare.
5667 (add_setshow_cmd_full): Declare.
5668 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5669 returns void. Use add_setshow_cmd_full.
5670 (add_setshow_cmd_full): New function.
5671 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5672 (add_setshow_boolean_cmd): Likewise.
5673
099c7589
JT
56742002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5675
5676 * config/vax/tm-vax.h: Protect from multiple inclusion.
5677 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5678 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5679 * config/vax/tm-vaxbsd.h: ...here. New file.
5680 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5681
1d049c5e
JT
56822002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5683
5684 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5685 (BELIEVE_PCC_PROMOTION): Remove.
5686 (AP_REGNUM): Move to...
5687 * config/vax/nm-vax.h: ...here.
5688 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5689 (vax_breakpoint_from_pc): New function.
5690 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5691 and gdbarch_believe_pcc_promotion.
5692
4791e091
JT
56932002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5694
5695 * Makefile.in (vax_tdep_h): Define.
5696 (vax-tdep.o): Use $(vax_tdep_h).
5697 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5698 (vax_dump_tdep): New function.
5699 (_initialize_vax_tdep): Register vax_dump_tdep.
5700 * vax-tdep.h: Include osabi.h.
5701 (struct gdbarch_tdep): New.
5702
da130f98
AC
57032002-06-26 Andrew Cagney <cagney@redhat.com>
5704
5705 * frame.h (deprecated_generic_find_dummy_frame): Rename
5706 generic_find_dummy_frame.
5707 * blockframe.c (generic_find_dummy_frame): Make static.
5708 (deprecated_generic_find_dummy_frame): New function.
5709 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5710 generic_find_dummy_frame with deprecated_find_dummy_frame.
5711 (sh64_nofp_frame_init_saved_regs): Ditto.
5712 (sh_fp_frame_init_saved_regs): Ditto.
5713 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5714 (s390_frame_chain): Ditto.
5715 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5716
6300c360
GS
57172002-06-26 Grace Sainsbury <graces@redhat.com>
5718
5719 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5720 gdbarch vector are at the top.
5721 (NUM_REGS): Remove.
5722 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5723 (FRAME_ARGS_ADDRESS): Remove.
5724 (FRAME_LOCALS_ADDRESS): Remove.
5725 (FRAME_NUM_ARGS): Remove.
5726 (FRAME_ARGS_SKIP): Remove.
5727 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5728 (m68k_gdbarch_init): Add gdbarch initializations for macros
5729 undefined in tm-m68k.h
5730
1c617db8
GS
57312002-06-26 Grace Sainsbury <graces@redhat.com>
5732
5733 * monitor.h: Add the function regname to monitor_ops
5734 structure. This way NUM_REGS does not have to be a constant.
5735 * monitor.c (monitor_fetch_register): Added support for regname
5736 function. The function is called if the array regnames is NULL.
5737 (monitor_store_register): Same.
da130f98
AC
5738 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5739 regnames array.
1c617db8
GS
5740 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5741 cpu32bug_cmds.regname to point to new function.
5742 * abug-rom.c (abug_regname): Same as above.
5743 (init_abug_cmds): Same.
5744 * dbug-rom.c (dbug_regname): Same as above.
5745 (init_dbug_cmds): Same.
5746 * remote-est.c (est_regname): Same.
5747 (init_est_cmds): Same.
5748 * rom68k-rom.c (rom68k_regname): Same.
5749 (init_rom68k_cmds): Same.
5750
ea9365bb
TT
57512002-06-25 Tom Tromey <tromey@redhat.com>
5752
5753 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5754
72cec141
AC
57552002-06-25 Andrew Cagney <cagney@redhat.com>
5756
5757 * infrun.c (stop_registers): Change variable's type to ``struct
5758 regcache'''.
5759 (xmalloc_inferior_status): Delete function.
5760 (free_inferior_status): Delete function.
5761 (normal_stop): Use regcache_cpy.
5762 (struct inferior_status): Change type of fields ``stop_registers''
5763 and ``registers'' to ``struct regcache''.
5764 (write_inferior_status_register): Use regcache_write.
5765 (save_inferior_status): Instead of calling
5766 xmalloc_inferior_status, allocate the inf_status buffer directly.
5767 Use regcache_dup_no_passthrough and regcache_dup to save the
5768 buffers.
5769 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5770 Replace the stop_registers regcache instead of overriding it. Use
5771 regcache_xfree. Instead of calling free_inferior_status, xfree
5772 the buffer directly.
5773 (discard_inferior_status): Use regcache_xfree. Instead of calling
5774 free_inferior_status, xfree the buffer directly.
5775 (build_infrun): Use regcache_xmalloc.
5776 (_initialize_infrun): Delete redundant call to build_infrun.
5777
5778 * Makefile.in (infcmd.o): Add $(regcache_h).
5779
5780 * infcmd.c: Include "regcache.h".
5781 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5782 obtain the address of `stop_registers' register buffer.
5783 (print_return_value): Ditto.
5784
5785 * inferior.h (struct regcache): Add opaque declaration.
5786 (stop_registers): Change variable's declared type to ``struct
5787 regcache''.
5788
defc6f8c
TT
57892002-06-24 Tom Tromey <tromey@redhat.com>
5790
c0e624e7
TT
5791 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5792 * target.c (initialize_targets): Fixed typo in
5793 trust-readonly-sections `show' documentation.
5794
defc6f8c
TT
5795 * main.c: Marked all strings with _().
5796
2b236d82
DH
57972002-06-24 Don Howard <dhoward@redhat.com>
5798
5799 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5800 that means max CORE_ADDR+1.
5801 (lookup_mem_region): Ditto.
5802 (mem_info_command): Ditto.
5803
942dc0e9
GS
58042002-06-24 Grace Sainsbury <graces@redhat.com>
5805
5806 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5807 (REGISTER_BYTES_OK): Remove.
5808 (REGISTER_BYTES): Remove.
5809 (STORE_STRUCT_RETURN): Remove.
5810 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5811 (STORE_RETURN_VALUE): Remove.
5812 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5813 (FRAME_CHAIN): Remove.
5814 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5815 (FRAME_SAVED_PC): Remove.
5816 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5817 (m68k_store_struct_return): Add.
5818 (m68k_deprecated_extract_return_value): Add.
5819 (m68k_deprecated_extract_struct_value_address): Add.
5820 (m68k_store_return_value): Add.
5821 (m68k_frame_chain): Add.
5822 (m68k_frameless_function_invocation): Add.
5823 (m68k_frame_saved_pc): Add.
5824 (m68k_gdbarch_init): added set_gdbarch calls for new
5825 functions and deleted macros.
5826
03c30d4d
TT
58272002-06-23 Tom Tromey <tromey@redhat.com>
5828
5829 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5830 (ALLDEPFILES): Likewise.
5831 (udiheaders): Removed.
5832 (udip2soc.o): Likewise.
5833 (udi2go32.o): Likewise.
5834 (udr.o): Likewise.
5835 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5836
37e71372
AC
58372002-06-22 Andrew Cagney <ac131313@redhat.com>
5838
06a6ac57
AC
5839 * infrun.c (_initialize_infrun): Delete unnecessary call to
5840 build_infrun.
5841
37e71372
AC
5842 * regcache.h: Update comments describing the regcache_cpy family
5843 of functions.
5844 (regcache_save, regcache_restore): Delete declaration.
5845 (regcache_save_no_passthrough): Delete declaration.
5846 (regcache_restore_no_passthrough): Delete declaration.
5847 * regcache.c (regcache_save): Delete function.
5848 (regcache_save_no_passthrough): Delete function.
5849 (regcache_restore): Delete function.
5850 (regcache_restore_no_passthrough): Delete function.
5851
78f6d055
AC
58522002-06-21 Andrew Cagney <ac131313@redhat.com>
5853
5854 * config/m68k/tm-m68k.h: Fix typo.
5855 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5856 (m68k_frame_init_saved_regs): Declare.
5857
78b119cb
JB
58582002-06-21 Jim Blandy <jimb@redhat.com>
5859
5860 Remove some vestiges of Harris 88k support.
5861 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5862 register numbering quirk.
5863 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5864 odd symbols occurring in Harris 88k ELF targets.
5865
0fbb3da7
TT
58662002-06-21 Tom Tromey <tromey@redhat.com>
5867
5868 * gdb_locale.h: New file.
5869 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5870 (defs_h): Added gdb_locale.h.
5871 * configure, config.in: Rebuilt.
5872 * configure.in (PACKAGE): Define.
5873 * defs.h: Include gdb_locale.h.
5874 * main.c (captured_main): Call setlocale, bindtextdomain,
5875 textdomain.
5876
456f8b9d
DB
58772002-06-21 Dave Brolley <brolley@redhat.com>
5878
5879 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5880 * config/frv/frv.mt: New file.
5881 * config/frv/tm-frv.h: New file.
5882 * configure.tgt: Support frv-*-*.
5883 * Makefile.in (frv-tdep.o): New target.
5884 * frv-tdep.c: New file.
5885 * NEWS: Mention frv.
5886
cdd463f9
DB
58872002-06-21 Dave Brolley <brolley@redhat.com>
5888
5889 * MAINTAINERS: Add self to "Write After Approval" list.
5890
5d3ed2e3
GS
58912002-06-21 Grace Sainsbury <graces@redhat.com>
5892
5893 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5894 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5895 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5896 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5897 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5898
5899 * m68k-tdep.c: Include arch-utils.h
5900 (m68k_register_raw_size): Add.
5901 (m68k_register_virtual_size): Add.
5902 (m68k_register_virtual_type): Add.
5903 (m68k_register_name): Add.
5904 (m68k_stack_align): Add.
5905 (m68k_register_byte): Add.
5906 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5907 tm-m68k.h.
5908
7f8e7424
GS
59092002-06-21 Grace Sainsbury <graces@redhat.com>
5910
a2c6a6d5 5911 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
5912 m68k_find_saved_regs.
5913 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 5914 references to it with frame->saved_regs.
7f8e7424
GS
5915 (m68k_gdbarch_init): Added function calls to initialize the
5916 gdbarch structure.
a2c6a6d5
GS
5917 (m68k_fix_call_dummy): Add.
5918 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5919 (CALL_DUMMY): Remove.
5920 (CALL_DUMMY_LENGTH): Remove.
5921 (CALL_DUMMY_START_OFFSET): Remove.
5922 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5923 (FIX_CALL_DUMMY): Remove.
5924 (PUSH_DUMMY_FRAME): Remove.
5925 (POP_FRAME): Remove.
7f8e7424 5926
f461f5cf
PM
59272002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5928
5929 * parse.c (parse_fprintf): New function used to avoid calls to
5930 fprintf in bison parser generated debug code.
5931 * parser-defs.h: Declaration of new parse_fprintf function.
5932 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5933 Set YYDEBUG to 1 by default.
5934 Set YYFPRINTF as parse_fprintf.
5935
7f0c12ed
ML
59362002-06-21 Michal Ludvig <mludvig@suse.cz>
5937
5938 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5939 encoding anymore.
5940 (pointer_encoding, enum ptr_encoding): New.
5941 (execute_cfa_program): Take care about pointer encoding.
5942 (dwarf2_build_frame_info): Only call parse_frame_info for
5943 .debug_frame and .eh_frame.
5944 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5945 fixed augmentation handling, added relative addressing,
5946 ignore duplicate FDEs. Added comments.
19d833a2 5947 * dwarf2cfi.c: Reindented.
7f0c12ed 5948
87c4a039
EZ
59492002-06-20 Elena Zannoni <ezannoni@redhat.com>
5950
5951 * event-top.c (command_handler): Don't use space_at_cmd_start
5952 unless there is sbrk() on the host. Assign time and space data
5953 to union fields of the appropriate length.
5954
1cf877ad
ML
59552002-06-20 Michal Ludvig <mludvig@suse.cz>
5956
5957 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5958 x86_64_register_name. Return type changed to 'const char *'.
5959 (x86_64_register_name2nr): Rename to x86_64_register_number.
5960 (x86_64_gdbarch_init): Update to reflect the change.
5961 * x86-64-tdep.h: Ditto.
5962 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5963 (supply_fpregset): Ditto.
5964
3fadccb3
AC
59652002-06-19 Andrew Cagney <cagney@redhat.com>
5966
5967 * regcache.h: Update copyright.
5968 (struct regcache, struct gdbarch): Add opaque declarations.
5969 (current_regcache): Declare global variable.
5970 (regcache_read, regcache_write): Add gdbarch parameter.
5971 (regcache_save, regcache_save_no_passthrough)
5972 (regcache_restore, regcache_restore_no_passthrough)
5973 (regcache_dup, regcache_dup_no_passthrough)
5974 (regcache_cpy, regcache_cpy_no_passthrough)
5975 (deprecated_grub_regcache_for_registers)
5976 (deprecated_grub_regcache_for_register_valid)
5977 (regcache_valid_p): Add function declarations.
5978
5979 * regcache.c: Update copyright.
5980 (regcache_descr_handle): New global variable.
5981 (struct regcache_descr): Define.
5982 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5983 (regcache_descr, xfree_regcache_descr): New functions.
5984 (struct regcache): Define.
5985 (regcache_xmalloc, regcache_xfree): New functions.
5986 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5987 (regcache_dup, regcache_dup_no_passthrough): New functions.
5988 (regcache_valid_p, regcache_read_as_address): New functions.
5989 (deprecated_grub_regcache_for_registers): New function.
5990 (deprecated_grub_regcache_for_register_valid): New function.
5991 (current_regcache): New global variable.
5992 (register_buffer): Add regcache parameter. Update calls.
5993 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5994 (read_register_gen, write_register_gen): Update register_buffer
5995 call. Test for legacy_p instead of gdbarch_register_read_p or
5996 gdbarch_register_write_p.
5997 (regcache_collect): Update register_buffer call.
5998 (build_regcache): Rewrite. Use deprecated grub functions.
5999 (regcache_save, regcache_save_no_passthrough): New functions.
6000 (regcache_restore, regcache_restore_no_passthrough): New
6001 functions.
6002 (_initialize_regcache): Create the regcache_data_handle. Swap
6003 current_regcache global variable.
6004
6005 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6006 parameter to regcache_read and regcache_write calls.
6007 (sh4_register_read): Ditto.
6008 (sh64_pseudo_register_read): Ditto.
6009 (sh64_register_read): Ditto.
6010 (sh_pseudo_register_write): Ditto.
6011 (sh4_register_write): Ditto.
6012 (sh64_pseudo_register_write): Ditto.
6013 (sh64_register_write): Ditto.
6014
6015 * defs.h (XCALLOC): Define.
6016
152d9db6
GS
60172002-06-19 Grace Sainsbury <graces@redhat.com>
6018
6019 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6020 * m68k-tdep.c (m68k_gdbarch_init): Added.
6021 (m68k_dump_tdep): Added.
6022
170911c7
DJ
60232002-06-19 Daniel Jacobowitz <drow@mvista.com>
6024
6025 * ada-lang.c (fill_in_ada_prototype): Update comment.
6026
2e4ebe70
DJ
60272002-06-19 Daniel Jacobowitz <drow@mvista.com>
6028
6029 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6030 MIPS_ABI_LAST.
6031 (mips_abi_string, mips_abi_strings): New.
6032 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6033 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6034 tdep->mips_abi_string. Honor mips_abi_string. Default to
6035 O32 if no ABI is found.
6036 (mips_dump_tdep): Use mips_abi_strings.
6037 (mips_abi_update): New function.
6038 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6039 ``set mips abi'' and ``show mips abi''. Check the size of
6040 mips_abi_strings.
6041
16775908
AC
60422002-06-19 Andrew Cagney <cagney@redhat.com>
6043
6044 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6045 constant.
6046
5051bfa4 60472002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6048
5051bfa4
JB
6049 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6050 current frame using only the first stack size adjustment. All
6051 subsequent size adjustments are not considered to be part of
6052 the "static" part of the current frame.
6053 Compute the address of the saved registers relative to the
6054 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6055 in use in this frame.
6056
56468235
DH
60572002-06-18 Don Howard <dhoward@redhat.com>
6058
6059 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6060 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6061 suggesting this solution.
6062
0b624158
AC
60632002-06-18 Andrew Cagney <ac131313@redhat.com>
6064
6065 * config/romp/xm-rtbsd.h: Delete file.
6066 * config/romp/rtbsd.mh: Delete file.
6067
221ea385
KS
60682002-06-18 Keith Seitz <keiths@redhat.com>
6069
6070 * breakpoint.c (condition_command): Post breakpoint_modify
6071 when a condition is added to an existing breakpoint.
6072 (commands_command): Likewise for commands.
6073 (set_ignore_count): Likewise for ignore counts.
6074 If no tty, do not simply return, still need to send event
6075 notification.
6076 (ignore_command): Only print a newline if the command came
6077 from a tty.
6078 Don't call breakpoints_changed, since this is now properly
6079 handled by set_ignore_count.
6080
5402eed1
AC
60812002-06-18 Andrew Cagney <cagney@redhat.com>
6082
6083 * MAINTAINERS: Note that cris-elf target can be compiled with
6084 -Werror.
6085 * cris-tdep.c (cris_register_name): Make return type constant.
6086 (cris_breakpoint_from_pc): Ditto.
6087
cc22880b
ML
60882002-06-18 Michal Ludvig <mludvig@suse.cz>
6089
6090 * frame.h (struct frame_info): Change type of context to
6091 'struct context'.
6092
fa88f677
AC
60932002-06-17 Andrew Cagney <cagney@redhat.com>
6094
6095 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6096 pointer.
6097 * gdbarch.h, gdbarch.c: Regenerate.
6098 * config/mips/tm-mips.h (mips_register_name): Update.
6099 * i386-tdep.h (i386_register_name): Update.
6100 * mips-tdep.c (mips_register_name): Update
6101 * alpha-tdep.c (alpha_register_name): Update.
6102 * arch-utils.c (legacy_register_name): Update.
6103 * arch-utils.h (legacy_register_name): Update.
6104 * avr-tdep.c (avr_register_name): Update.
6105 * ia64-tdep.c (ia64_register_name): Update.
6106 * i386-tdep.c (i386_register_name): Update.
6107 * sparc-tdep.c (sparc32_register_name): Update.
6108 (sparc64_register_name): Update.
6109 (sparclite_register_name): Update.
6110 (sparclet_register_name): Update.
6111 * sh-tdep.c (sh_generic_register_name): Update.
6112 (sh_sh_register_name): Update.
6113 (sh_sh3_register_name): Update.
6114 (sh_sh3e_register_name): Update.
6115 (sh_sh_dsp_register_name): Update.
6116 (sh_sh3_dsp_register_name): Update.
6117 (sh_sh4_register_name): Update.
6118 (sh_sh64_register_name): Update.
6119 * s390-tdep.c (s390_register_name): Update.
6120 * rs6000-tdep.c (rs6000_register_name): Update.
6121 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6122 (ns32k_register_name_32382): Update.
6123 * d10v-tdep.c (d10v_ts2_register_name): Update.
6124 (d10v_ts3_register_name): Update.
6125 * xstormy16-tdep.c (xstormy16_register_name): Update.
6126 * vax-tdep.c (vax_register_name): Update.
6127 * v850-tdep.c (v850_register_name): Update.
6128 * m68hc11-tdep.c (m68hc11_register_name): Update.
6129 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6130 (am33_register_name): Update.
6131
ea1e7ef6
GS
61322002-06-17 Grace Sainsbury <graces@redhat.com>
6133
6134 * m68k-tdep.c: Reindented.
6135
9b02dd1b
AC
61362002-06-17 Andrew Cagney <ac131313@redhat.com>
6137
6138 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6139 list of predefined types.
6140
8758dec1
MK
61412002-06-16 Mark Kettenis <kettenis@gnu.org>
6142
b6197528
MK
6143 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6144 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6145 REGISTER_CONVERT_TO_RAW): Remove defines.
6146 (i386_register_virtual_type, i386_register_convertible,
6147 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6148 Remove prototypes.
6149 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6150 macros mentioned above.
6151
82b47e62
MK
6152 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6153 (i386lynx_saved_pc_after_call): Remove prototype.
6154 * i386ly-tdep.c: Include "i386-tdep.h".
6155 (i386lynx_saved_pc_after_call): Make static. Use
6156 read_memory_nobpt instead of read_memory. Use
6157 read_memory_unsigned_integer instead of read_memory_integer.
6158 (i386lynx_init_abi): New function.
6159 (i386lynx_coff_osabi_sniffer): New function.
6160 (_initialize_i386bsd_tdep): New function.
6161
8758dec1
MK
6162 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6163 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6164 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6165 (i386_fix_call_dummy): Remove prototype.
6166 * i386-tdep.c (i386_call_dummy_words): New variable.
6167 (i386_gdbarch_init): Adjust for removal of the
6168 macros mentioned above.
6169
e9e68a56
AC
61702002-06-15 Andrew Cagney <ac131313@redhat.com>
6171
6172 * command.h (add_setshow_auto_boolean_cmd): Replace
6173 add_set_auto_boolean_cmd.
6174 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6175 add_set_auto_boolean_cmd.
6176 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6177 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6178 mask-address'' command.
6179 (show_mask_address): Add cmd parameter.
6180 * remote.c (add_packet_config_cmd): Update. Change type of
6181 set_func and show_func to cmd_sfunc_ftype.
6182 (_initialize_remote): Update `set remote Z-packet'
6183 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6184 (show_remote_protocol_e_packet_cmd): Ditto.
6185 (show_remote_protocol_E_packet_cmd): Ditto.
6186 (show_remote_protocol_P_packet_cmd): Ditto.
6187 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6188 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6189 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6190 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6191 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6192 (show_remote_protocol_Z_packet_cmd): Ditto.
6193 (show_remote_protocol_binary_download_cmd): Ditto.
6194 (show_remote_cmd): Pass NULL to all of above.
6195
fc08ec52
MK
61962002-06-15 Mark Kettenis <kettenis@gnu.org>
6197
6198 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6199 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6200 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6201 POP_FRAME): Remove defines.
6202 (i386_push_arguments, i386_store_struct_return,
6203 i386_extract_return_value, i386_store_return_value,
6204 i386_extract_struct_value_address, i386_push_dummy_frame,
6205 i386_pop_frame): Renove prototypes.
6206 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6207 macros mentioned above.
6208
e707bbc2
AC
62092002-06-15 Andrew Cagney <ac131313@redhat.com>
6210
6211 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6212 add_set_boolean_cmd.
6213 (add_setshow_cmd): New function.
6214 * command.h (add_setshow_boolean_cmd): Replace
6215 add_set_boolean_cmd.
6216 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6217 and ``set rdiromatzero''.
6218 * maint.c (_initialize_maint_cmds): Update commented out code.
6219 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6220 * target.c (initialize_targets): Update `set
6221 trust-readonly-sections'.
6222 * remote.c (_initialize_remote): Update `set remotebreak'.
6223
42fdc8df
MK
62242002-06-15 Mark Kettenis <kettenis@gnu.org>
6225
93924b6b
MK
6226 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6227 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6228 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6229 fit into multi-arch framework.
6230 (i386_breakpoint_from_pc): New function.
6231 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6232 above.
6233
42fdc8df
MK
6234 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6235 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6236 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6237 (i386_frameless_function_invocation, i386_frame_num_args,
6238 i386_frame_init_saved_regs): Remove prototypes.
6239 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6240 macros mentioned above.
6241
9773a94b
AC
62422002-06-15 Andrew Cagney <ac131313@redhat.com>
6243
6244 * cli/cli-decode.c (set_cmd_cfunc): Update.
6245 (set_cmd_sfunc): Update.
6246 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6247 (set_cmd_sfunc, set_cmd_cfunc): Update.
6248 * cli/cli-decode.h: Update.
6249
6e157172
MK
62502002-06-15 Mark Kettenis <kettenis@gnu.org>
6251
6252 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6253 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6254
7f19b9a2
AC
62552002-06-15 Andrew Cagney <ac131313@redhat.com>
6256
6257 * defs.h (auto_boolean): Declare enum.
6258 * command.h (cmd_auto_boolean): Delete enum.
6259 * mips-tdep.c (mask_address_var): Update.
6260 (mips_mask_address_p): Update.
6261 (show_mask_address): Update.
6262 * remote.c (struct packet_config): Update.
6263 (update_packet_config): Update.
6264 (show_packet_config_cmd): Update.
6265 (packet_ok): Update.
6266 (add_packet_config_cmd): Update.
6267 (_initialize_remote):
6268 * command.h: Update.
6269 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6270 (do_setshow_command): Update.
6271 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6272 * cli/cli-decode.h: Update.
6273
1cf88de5
MK
62742002-06-15 Mark Kettenis <kettenis@gnu.org>
6275
22ba8cf2
MK
6276 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6277 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6278 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6279 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6280 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6281 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6282
762c5349
MK
6283 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6284 list of DJGPP COFF targets.
6285
091198bb
MK
6286 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6287 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6288 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6289 (FP0_REGNUM): Remove define.
6290 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6291 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6292 (i386_register_virtual_size): Remove protoype.
6293 * i386-tdep.c (i386_register_virtual_size): Removed.
6294 (i386_extract_return_value, i386_store_return_value): Use
6295 FP0_REGNUM instead of NUM_FREGS to determine whether the
6296 floating-point registers are available.
6297 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6298 Adjust for removal of macros mentioned above.
6299
63002002-06-15 Mark Kettenis <kettenis@gnu.org>
6301
fcc9bf01
MK
6302 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6303 comments.
6304 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6305 Remove prototypes.
6306 (supply_gregset, fill_gregset): Remove use of register keyword and
6307 remove declaration for regmap. Use I386_NUM_GREGS instead of
6308 NUM_REGS and NUM_FREGS.
6309 (FPREGSET_FSAVE_OFFSET): Remove.
6310 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6311 NUM_FREGS to determine whether the floating-point registers are
6312 available.
6313
65e78234
MK
6314 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6315 gnu_store_registers): Replace usage of NUM_GREGS with
6316 I386_NUM_GREGS.
6317
98df6387
MK
6318 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6319 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6320 usage of NUM_GREGS with I386_NUM_GREGS.
6321
099a9414
MK
6322 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6323
57976e88
MK
6324 * i386bsd-nat.c: Include "i386-tdep.h".
6325 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6326 I386_NUM_GREGS.
6327
b335f4a6
MK
6328 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6329 and associated comment. They no longer make any sense, since we
6330 don't use this file anymore on Linux.
6331
1cf88de5
MK
6332 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6333 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6334 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6335 elements in these arrays.
6336 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6337 MAX_NUM_REGS.
6338
daa66587
MK
63392002-06-15 Mark Kettenis <kettenis@gnu.org>
6340
6341 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6342 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6343
26e9b323
AC
63442002-06-14 Andrew Cagney <cagney@redhat.com>
6345
6346 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6347 EXTRACT_RETURN_VALUE.
6348 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6349 EXTRACT_STRUCT_VALUE_ADDRESS.
6350 * gdbarch.h, gdbarch.c: Regenerate.
6351
6352 * values.c (value_being_returned): Handle
6353 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6354 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6355
6356 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6357 * arm-tdep.c (arm_gdbarch_init): Update.
6358 * avr-tdep.c (avr_gdbarch_init): Update.
6359 * cris-tdep.c (cris_gdbarch_init): Update.
6360 * d10v-tdep.c (d10v_gdbarch_init): Update.
6361 * ia64-tdep.c (ia64_gdbarch_init): Update.
6362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6364 * s390-tdep.c (s390_gdbarch_init): Update.
6365 * sh-tdep.c (sh_gdbarch_init): Update.
6366 * s390-tdep.c (s390_gdbarch_init): Update.
6367 * sparc-tdep.c (sparc_gdbarch_init): Update.
6368 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6369 * v850-tdep.c (v850_gdbarch_init): Update.
6370 * vax-tdep.c (vax_gdbarch_init): Update.
6371 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6372 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6373
6374 * config/arc/tm-arc.h: Update.
6375 * config/d30v/tm-d30v.h: Update.
6376 * config/fr30/tm-fr30.h: Update.
6377 * config/h8300/tm-h8300.h: Update.
6378 * config/h8500/tm-h8500.h: Update.
6379 * config/i386/tm-i386.h: Update.
6380 * config/i386/tm-ptx.h: Update.
6381 * config/i386/tm-symmetry.h: Update.
6382 * config/i960/tm-i960.h: Update.
6383 * config/m32r/tm-m32r.h: Update.
6384 * config/m68k/tm-delta68.h: Update.
6385 * config/m68k/tm-linux.h: Update.
6386 * config/m68k/tm-m68k.h: Update.
6387 * config/m88k/tm-m88k.h: Update.
6388 * config/mcore/tm-mcore.h: Update.
6389 * config/mips/tm-mips.h: Update.
6390 * config/mn10200/tm-mn10200.h: Update.
6391 * config/pa/tm-hppa.h: Update.
6392 * config/pa/tm-hppa64.h: Update.
6393 * config/sparc/tm-sp64.h: Update.
6394 * config/sparc/tm-sparc.h: Update.
6395 * config/sparc/tm-sparclet.h: Update.
6396 * config/z8k/tm-z8k.h: Update.
6397
5179e78f
AC
63982002-06-14 Andrew Cagney <cagney@redhat.com>
6399
6400 * Makefile.in (i386_linux_tdep_h): Define.
6401 (i386_tdep_h, i387_tdep_h): Define.
6402 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6403 $(i386_tdep_h) and $(i387_tdep_h).
6404 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6405
8201327c
MK
64062002-06-14 Mark Kettenis <kettenis@gnu.org>
6407
edf393ac
MK
6408 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6409 Already covered by the default.
6410
896fb97d
MK
6411 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6412 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6413 (i386_gdbarch_init): Initialize long_double_format and long_double
6414 bit.
6415
8201327c
MK
6416 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6417 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6418 Move these to ...
6419 * config/i386/i386sol2.mh: ... here.
6420 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6421 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6422 (SIGCONTEXT_PC_OFFSET): Remove define.
6423 (IN_SIGTRAMP): Remove define.
6424 * i386-sol2-tdep.c: New file.
6425
6426 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6427 * config/i386/tm-i386nw.h: Removed.
6428
6429 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6430 USE_STRUCT_CONVENTION): Remove defines.
6431 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6432 (get_longjmp_target): Remove prototype.
6433 (IN_SIGTRAMP): Remove define.
6434 (i386bsd_in_sigtramp): Remove prototype.
6435 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6436 function. Update comment accordingly
6437 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6438 (FRAME_SAVED_PC): Remove define.
6439 (i386bsd_frame_saved_pc): Remove prototype.
6440 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6441 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-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6451 Remove prototype.
6452 (USE_STRUCT_CONVENTION): Remove prototype.
6453 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6454 declaration.
6455 (_initialize_i386bsd_nat): Revise logic to determine some
6456 constants at compile time when compiling a native GDB. Warn if
6457 things don't match up with what we expect.
6458 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6459 Remove variables.
6460 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6461 to use date stored in `struct gdbarch_tdep'.
6462 (i386bsd_sigcontext_offset): Remove varaible.
6463 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6464 stored in `struct gdbarch_tdep'.
6465 (i386bsd_frame_saved_pc): Make static.
6466 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6467 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6468 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6469 i386fbsd4_sc_pc_offset): New variables.
6470 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6471 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6472 functions.
6473 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6474 functions.
6475 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6476 Modify the value of i386fbsd_sigtramp_start and
6477 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6478 i386fbsd_sigtramp_end.
6479 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6480 function.
6481
6482 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6483 define to i386-linux-tdep.h.
6484 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6485 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6486 defines.
6487 (i386_linux_register_name, i386_linux_register_byte,
6488 i386_linux_register_raw_size): Remove prototypes.
6489 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6490 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6491 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6492 TARGET_WRITE_PC): Remove defines.
6493 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6494 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6495 i386_linux_write_pc): Remove prototypes.
6496 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6497 (get_longjmp_target): Remove prototype.
6498 * i386-linux-tdep.h: New file.
6499 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6500 * i386-linux-tdep.c: Include "i386-tdep.h" and
6501 "i386-linux-tdep.h".
6502 (i386_linux_register_name, i386_linux_register_byte,
6503 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6504 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6505 Make static.
6506 (i386_linux_init_abi): New function.
6507 (_initialize_i386_linux_tdep): New function.
6508
6509 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6510 (i386_saved_pc_after_call): Remove prototype.
6511 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6512 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6513 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6514 (i386_register_name, i386_stab_reg_to_regnum,
6515 i386_dwarf_reg_to_regnum): Remove prototypes.
6516 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6517 SIZEOF_SSE_REGS): Remove defines.
6518 (REGISTER_BYTES): Remove define.
6519 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6520 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6521 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6522 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6523 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6524 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6525 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6526 (get_longjmp_target): Remove prototype.
6527 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6528 (sigtramp_saved_pc): Remove define.
6529 (i386v4_sigtramp_saved_pc): Remove prototype.
6530 * config/i386/tm-go32.h (FRAME_CHAIN,
6531 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6532 (i386go32_frame_saved_pc): Remove prototype.
6533 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6534 (get_longjmp_target): Remove prototype.
6535 * i386-tdep.h: Include "osabi.h".
6536 (enum i386_abi): Removed.
6537 (enum struct_return): New enum.
6538 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6539 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6540 sc_pc_offset members.
6541 (i386_gdbarch_register_os_abi): Remove prototype.
6542 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6543 I386_SSE_NUM_REGS): New defines.
6544 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6545 I386_SSE_SIZEOF_REGS): New defines.
6546 (i386_register_name, i386_register_byte, i386_register_raw_size):
6547 New prototypes.
6548 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6549 (i386bsd_sigtramp_saved_pc): New prototype.
6550 * i386-tdep.c: Don't include "elf-bfd.h".
6551 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6552 i386_frame_chain, i386_saved_pc_after_call): Make static.
6553 (i386_frame_saved_pc): Rewrite to call architecture dependent
6554 function to deal with signal handlers. Make static.
6555 (i386go32_frame_saved_pc): Removed.
6556 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6557 Removed.
6558 (i386_get_longjmp_target): New function.
6559 (default_struct_convention, pcc_struct_convention,
6560 reg_struct_convention, valid_conventions, struct_convention): New
6561 variables.
6562 (i386_use_struct_convention): New function.
6563 (i386v4_sigtramp_saved_pc): Renamed to
6564 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6565 (i386_pc_in_sigtramp): New function.
6566 (i386_abi_names): Removed.
6567 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6568 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6569 Removed.
6570 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6571 i386_gdbarch_register_os_abi): Removed.
6572 (struct i386_abi_handler): Removed.
6573 (i386_abi_handler_list): Removed.
6574 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6575 functions.
6576 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6577 i386_nw_init_abi): New functions.
6578 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6579 Use set_gdbarch_xxx() calls instead of relying on macros for a
6580 number of calls.
6581 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6582 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6583 Register the various architecture variants defined in this file.
6584
ad2f7632
DJ
65852002-06-14 Daniel Jacobowitz <drow@mvista.com>
6586
6587 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6588 (struct main_type): Remove arg_types member. Update comments for
6589 struct field.
6590 (TYPE_ARG_TYPES): Remove.
6591 (TYPE_FN_FIELD_ARGS): Update.
6592 (smash_to_method_type): Update prototype.
6593
6594 * c-typeprint.c (cp_type_print_method_args): Take method type
6595 instead of argument list. Use new argument layout. Simplify.
6596 (c_type_print_args): Use new argument layout. Simplify.
6597 (c_type_print_base): Update call to cp_type_print_method_args.
6598 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6599 argument; use die->type instead. Update call to
6600 smash_to_method_type.
6601 (read_structure_scope): Update call to dwarf2_add_member_fn.
6602 * gdbtypes.c (allocate_stub_method): Update comment.
6603 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6604 Use new argument layout.
6605 (check_stub_method): Use new argument layout. Don't count
6606 void as an argument.
6607 (print_arg_types): Update comments. Use new argument layout.
6608 (recursive_dump_type): Don't print arg_types member.
6609 * hpread.c (hpread_read_struct_type): Use new argument layout.
6610 (fixup_class_method_type): Likewise.
6611 (hpread_type_lookup): Likewise.
6612 * stabsread.c (read_type): Update calls to read_args and
6613 smash_to_method_type.
6614 (read_args): Use new argument layout. Simplify.
6615 * valops.c (typecmp): Use new argument layout. Update parameters
6616 and comments. Simplify.
6617 (hand_function_call): Use new argument layout.
6618 (search_struct_method): Update call to typecmp.
6619 (find_overload_match): Use new argument layout.
6620
6da02953
DJ
66212002-06-13 Daniel Jacobowitz <drow@mvista.com>
6622
6623 * NEWS: Mention multithreaded debug support for gdbserver.
6624
519b2366
DJ
66252002-06-13 Daniel Jacobowitz <drow@mvista.com>
6626
6627 * MAINTAINERS: Mention NEWS.
6628
6c0d6680
DJ
66292002-06-13 Daniel Jacobowitz <drow@mvista.com>
6630
6631 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6632 (struct mips_objfile_private, compare_pdr_entries): New.
6633 (non_heuristic_proc_desc): Read the ".pdr" section if it
6634 is present.
6635
6529d2dd
AC
66362002-06-12 Andrew Cagney <ac131313@redhat.com>
6637
6638 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6639 (arm_debug): New static variable.
6640 (_initialize_arm_tdep): Add ``set debug arm'' command.
6641
26216b98
AC
66422002-06-12 Andrew Cagney <ac131313@redhat.com>
6643
6644 * Makefile.in (sim_arm_h): Define.
6645 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6646 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6647 (arm_register_sim_regno): New function, map an internal REGNUM
6648 onto a simulator register number.
6649 (arm_gdbarch_init): Set register_sim_regno.
6650
814b3ba0
AH
66512002-06-09 Aldy Hernandez <aldyh@redhat.com>
6652
6653 * MAINTAINERS: Add self.
6654
475b0867
JB
66552002-06-11 Jim Blandy <jimb@redhat.com>
6656
919d772c
JB
6657 * source.c (source_info): Mention whether the symtab has
6658 information about preprocessor macros.
6659
475b0867
JB
6660 Call the command `info macro', not `show macro'.
6661 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6662 Fix error message.
6663 (_initialize_macrocmd): Register `info_macro_command' in
6664 `infolist', not `showlist'.
6665
9e364162
DJ
66662002-06-11 Daniel Jacobowitz <drow@mvista.com>
6667
6668 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6669 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6670 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6671 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6672 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6673 unconditionally.
6674 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6675 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6676 (_initialize_mips_tdep): Remove dead code.
6677 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6678 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6679 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6680 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6681 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6682 MIPS_LAST_FP_ARG_REGNUM): Remove.
6683
23aa4c72
ML
66842002-06-11 Michal Ludvig <mludvig@suse.cz>
6685
6686 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6687 (unwind_tmp_obstack_free, parse_frame_info)
6688 (update_context, cfi_read_fp, cfi_write_fp)
6689 (cfi_frame_chain, cfi_init_extra_frame_info)
6690 (cfi_virtual_frame_pointer): Use the above function.
264d1763 6691 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 6692
70eb15a4
CV
66932002-06-11 Corinna Vinschen <vinschen@redhat.com>
6694
6695 * v850-tdep.c (v850_type_is_scalar): New function.
6696 (v850_use_struct_convention): Match current gcc implementation
6697 as close as possible.
6698 (v850_push_arguments): Fix stack_offset handling. Don't write
6699 struct_addr into register. This is done by v850_store_struct_return.
6700 (v850_extract_return_value): Care for structs.
6701 (v850_store_return_value): Ditto.
6702 (v850_store_struct_return): Actually write address.
6703
482a4d06
ML
67042002-06-11 Michal Ludvig <mludvig@suse.cz>
6705
6706 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6707 without debug information too.
6708
d855c300
AC
67092002-06-10 Andrew Cagney <ac131313@redhat.com>
6710
6711 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6712 Make multi-arch pure.
6713 * gdbarch.h, gdbarch.c: Re-generate.
6714 * arm-tdep.c (arm_print_float_info): Update.
6715 * arch-utils.h (default_print_float_info): Update.
6716 * arch-utils.c (default_print_float_info): Update.
6717 * infcmd.c (float_info): Update call.
6718
dd12a101
AC
67192002-06-10 Andrew Cagney <ac131313@redhat.com>
6720
6721 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6722 the front of the initialize list.
6723
101dcfbe
AC
67242002-06-10 Andrew Cagney <ac131313@redhat.com>
6725
6726 * infrun.c (struct inferior_status): Replace fields
6727 selected_frame_address and selected_level with field
6728 selected_frame_id.
6729 (save_inferior_status): Update. Use get_frame_id.
6730 (struct restore_selected_frame_args): Delete.
6731 (restore_selected_frame): Update. Use frame_find_by_id.
6732 (restore_inferior_status): Update.
6733
6734 * breakpoint.h (struct breakpoint): Change type of
6735 watchpoint_frame to frame_id.
6736 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6737 call to get_current_frame.
6738 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6739 get_current_frame.
6740 (watchpoint_check): Use frame_find_by_id.
6741
6742 * frame.h (record_selected_frame): Delete declaration.
6743 * stack.c (record_selected_frame): Delete function.
6744
6745 * frame.h (struct frame_id): Define.
6746 (get_frame_id): Declare.
6747 (frame_find_by_id): Declare.
6748 * frame.c (frame_find_by_id): New function.
6749 (get_frame_id): New function.
6750
304270b6
AV
67512002-06-10 Andrey Volkov <avolkov@transas.com>
6752
6753 * ser-e7kpc.c: Fix duplicated define and call of
6754 _initialize_ser_e7000pc
6755
2f2cf184
DJ
67562002-06-09 Daniel Jacobowitz <drow@mvista.com>
6757
6758 * signals/signals.c (target_signal_from_host): Fix #ifdef
6759 SIGRTMIN case.
6760 (do_target_signal_to_host): Likewise.
6761
caaa3122
DJ
67622002-06-09 Daniel Jacobowitz <drow@mvista.com>
6763
6764 * mips-tdep.c (mips_find_abi_section): New function.
6765 (mips_gdbarch_init): Call it.
6766
6ac5df3a
MK
67672002-06-09 Mark Kettenis <kettenis@gnu.org>
6768
6769 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6770 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6771 after Andrew's 2002-06-08 gdbarch change.
6772
82ea117a
MK
67732002-06-09 Mark Kettenis <kettenis@gnu.org>
6774
6775 * i386-linux-nat.c (suppy_gregset): Don't supply
6776 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6777 register cache.
6778 (fill_gregset): Don't fetch it under the same circumstances.
6779
3c25f8c7
AC
67802002-06-09 Andrew Cagney <cagney@redhat.com>
6781
6782 * Makefile.in (callback_h): Define.
6783 (remote_sim_h): Update path to remote-sim.h.
6784 (remote-rdp.o): Add $(callback_h).
6785 (remote-sim.o): Use $(callback_h).
6786 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6787 * remote-rdp.c: Include "gdb/callback.h".
6788
1029b7fa
MK
67892002-06-09 Mark Kettenis <kettenis@gnu.org>
6790
6791 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6792 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6793
616675d3
AC
67942002-06-08 Andrew Cagney <ac131313@redhat.com>
6795
a3efda28
AC
6796 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6797 * rdi-share/serpardr.c: Ditto.
6798 * rdi-share/unixcomm.c: Ditto.
6799 * rdi-share/serdrv.c: Ditto.
6800 * rdi-share/hostchan.h: Ditto.
6801 * rdi-share/hostchan.c: Ditto.
6802 * rdi-share/host.h: Ditto.
6803 * rdi-share/devsw.c: Ditto.
6804
c5f10366
AC
6805 * objfiles.h: Change type of obj_private to void pointer.
6806 * pa64solib.c: Update copyright. Don't include "assert.h", use
6807 strcmp instead of STREQ, use LONGEST, do not use PTR
6808 * somsolib.c: Ditto.
6809
616675d3
AC
6810 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6811 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6812 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6813
e4b415d9
AC
68142002-06-08 Andrew Cagney <ac131313@redhat.com>
6815
6816 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6817 (default_get_saved_register): Delete function.
6818 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6819 generic_unwind_get_saved_register.
6820 * gdbarch.h, gdbarch.c: Re-generate.
6821
ca0d0b52
AC
68222002-06-08 Andrew Cagney <ac131313@redhat.com>
6823
6824 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6825 generic_func_frame_chain_valid.
6826 * gdbarch.h, gdbarch.c: Re-generate.
6827 * blockframe.c (generic_func_frame_chain_valid): Only check
6828 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6829 passing FP to PC_IN_CALL_DUMMY.
6830 Fix PR gdb/360.
6831
76860b5f
AC
68322002-06-08 Andrew Cagney <ac131313@redhat.com>
6833
6834 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6835 (register_gdbarch_data): Initialize init_p.
6836 (gdbarch_data): Initialize data pointer using the init function.
6837 (init_gdbarch_data): Delete function.
6838 (gdbarch_update_p): Update.
6839 (initialize_non_multiarch): Update.
6840 (struct gdbarch): Add field initialized_p.
6841 * gdbarch.h, gdbarch.c: Re-generate.
6842
8dda9770
ML
68432002-06-07 Michal Ludvig <mludvig@suse.cz>
6844
6845 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6846 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6847 better do the things actually here.
6848 * x86-64-tdep.c (x86_64_register_name2nr): New.
6849 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6850 (x86_64_gdbarch_init): Respect the above change.
6851 * x86-64-tdep.h (x86_64_register_name2nr)
6852 (x86_64_register_nr2name): Add prototypes.
6853 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6854
3d79a47c
MS
68552002-06-06 Michael Snyder <msnyder@redhat.com>
6856
7bd91a28
MS
6857 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6858 Delete extra braces and re-indent.
6859 (d10v_store_return_value): Char return values
3d79a47c
MS
6860 must be shifted over by one byte in R0.
6861 (d10v_extract_return_value): Delete extra braces, re-indent.
6862
095a4c96
EZ
68632002-06-06 Elena Zannoni <ezannoni@redhat.com>
6864
6865 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6866 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6867 (d10v_integer_to_address): Rewrite.
6868 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6869 the d10v specific functions which take care of converting to the
6870 correct space.
6871
e8a77ca4
EZ
68722002-06-06 Elena Zannoni <ezannoni@redhat.com>
6873
6874 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6875 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6876
4f2e4a4f
AC
68772002-06-02 Andrew Cagney <ac131313@redhat.com>
6878
6879 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6880 includes.
6881 * config/tm-linux.h: Ditto.
6882 * config/alpha/tm-alphalinux.h: Ditto.
6883 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6884 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6885 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6886 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6887 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6888 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6889 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6890 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6891 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6892 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6893 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6894 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6895 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6896 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6897 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6898 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6899 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6900 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6901 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6902 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6903 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6904 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6905 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6906 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6907 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6908 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6909 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6910 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6911 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6912 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6913 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6914 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6915 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6916 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6917 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6918 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6919 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6920
ae2ab2ce
AS
69212002-05-04 Aidan Skinner <aidan@velvet.net>
6922
6923 * ada-exp.tab.c: New file
6924 * ada-exp.y: New file
6925 * ada-lang.c: New file
6926 * ada-lang.h: New file
6927 * ada-lex.c: New file
6928 * ada-lex.l: New file
6929 * ada-tasks.c: New file
6930 * ada-typeprint.c: New file
6931 * ada-valprint.c: New file
6932
0ddd0135
JT
69332002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6934
6935 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6936 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6937
750fbacc
JT
69382002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6939
6940 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6941 insetead of ppc-linux-tdep.o.
6942 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6943 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6944
df94e18a
AC
69452002-06-02 Andrew Cagney <ac131313@redhat.com>
6946
6947 2002-05-07 Christian Groessler <chris@groessler.org>
6948 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6949 bit register contents for little endian hosts.
6950
1a38ab75
AC
69512002-06-01 Andrew Cagney <ac131313@redhat.com>
6952
6953 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6954 any maintainer.
6955
8b1632ac
AC
69562002-06-01 Andrew Cagney <ac131313@redhat.com>
6957
6958 * gdbarch.h: Regenerate.
6959
627054c8
AC
69602002-06-01 Andrew Cagney <ac131313@redhat.com>
6961
6962 * MAINTAINERS: Add everyone to write-after-approval list.
6963
4f460812
AC
69642002-06-01 Andrew Cagney <ac131313@redhat.com>
6965
6966 * stack.c (frame_info): Use frame_register_unwind instead of
6967 saved_regs. Mention when the SP is on the stack or in a register.
6968
6969 * frame.h (frame_register_unwind_ftype): Define. Document.
6970 (struct frame_info): Add field register_unwind and
6971 register_unwind_cache.
6972 (frame_register_unwind): Declare.
6973 (generic_unwind_get_saved_register): Declare.
6974
6975 * frame.c (frame_register_unwind): New function.
6976 (generic_unwind_get_saved_register): New function.
6977
6978 * blockframe.c (generic_call_dummy_register_unwind): New function.
6979 (frame_saved_regs_register_unwind): New function.
6980 (set_unwind_by_pc): New function.
6981 (create_new_frame): New function.
6982 (get_prev_frame): New function.
6983
de888f76
AC
69842002-05-30 Andrew Cagney <ac131313@redhat.com>
6985
6986 * a29k-share/: Delete directory.
6987 * remote-vx29k.c: Delete file.
6988
2f2c3626
JT
69892002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6990
6991 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6992 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6993
9ce5c36a
JT
69942002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6995
6996 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6997 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6998 (sparc64nbsd-nat.o)
6999 (sparcnbsd-nat.o)
7000 (sparcnbsd-tdep.o): New dependency lists.
7001 * NEWS: Note new UltraSPARC NetBSD native configuration.
7002 * configure.host (sparc64-*-netbsd*): New host.
7003 * configure.tgt (sparc-*-netbsdelf*)
7004 (sparc-*-netbsd*): Set gdb_target to nbsd.
7005 (sparc64-*-netbsd*): New target.
7006 * sparc64nbsd-nat.c: New file.
7007 * sparcnbsd-nat.c: New file.
7008 * sparcnbsd-tdep.c: New file.
7009 * sparcnbsd-tdep.h: New file.
7010 * config/sparc/nbsd.mt: New file.
7011 * config/sparc/nbsd64.mh: New file.
7012 * config/sparc/nbsd64.mt: New file.
7013 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7014 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7015 (HOST_IPC): Remove.
7016 * config/sparc/nbsdaout.mt: Remove.
7017 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7018 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7019 (HOST_IPC): Remove.
7020 * config/sparc/nbsdelf.mt: Remove.
7021 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7022 sparc-nat.c compatiblity defines.
7023 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7024 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7025 * config/sparc/tm-nbsd64.h: New file.
7026 * config/sparc/tm-nbsdaout.h: Remove.
7027 * config/sparc/xm-nbsd.h: Remove.
7028
ef3cf062
JT
70292002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7030
7031 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7032 * sparc-tdep.c: Include osabi.h.
7033 (gdbarch_tdep): Add osabi member.
7034 (_initialize_sparc_tdep): Use gdbarch_register.
7035 (sparc_gdbarch_init): Use generic OS ABI framework.
7036 (sparc_dump_tdep): New function.
7037
ee8ff470
KB
70382002-05-30 Kevin Buettner <kevinb@redhat.com>
7039
7040 * corefile.c (do_captured_read_memory_integer): Return non-zero
7041 result.
7042 (safe_read_memory_integer): Copy result of memory read when
7043 status is non-zero. Also, add comments.
7044
7b112f9c
JT
70452002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7046
7047 * Makefile.in (ppc_tdep_h): Define.
7048 (ppc-linux-nat.o)
7049 (ppc-linux-tdep.o)
7050 (rs6000-tdep.o): Use $(ppc_tdep_h).
7051 (ppc-sysv-tdep.o)
7052 (ppcnbsd-nat.o)
7053 (ppcnbsd-tdep.o): New dependency lists.
7054 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7055 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7056 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7057 (ppc_sysv_abi_broken_use_struct_convention)
7058 (ppc_sysv_abi_use_struct_convention)
7059 (ppc_sysv_abi_push_arguments): Move to...
7060 * ppc-sysv-tdep.c: ...here.
7061 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7062 * rs6000-tdep.c (process_note_abi_tag_sections)
7063 (get_elfosabi): Remove.
7064 (rs6000_gdbarch_init): Use generic OS ABI framework.
7065 (rs6000_dump_tdep): New function.
7066 (_initialize_rs6000_tdep): Use gdbarch_register.
7067 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7068 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7069 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7070 of ppc-linux-tdep.o.
7071 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7072 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7073 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7074 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7075 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7076 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7077
480dd42a
JB
70782002-05-29 Jim Blandy <jimb@redhat.com>
7079
7080 * macroscope.c (default_macro_scope): Put `void' in empty argument
7081 list.
7082
4182591f
AC
70832002-05-29 Andrew Cagney <ac131313@redhat.com>
7084
7085 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7086 * arch-utils.c: Include "sim-regno.h".
7087 * gdbarch.sh: Don't include "sim-regno.h".
7088 * gdbarch.h, gdbarch.c: Regenerate.
7089 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7090 here.
7091 * arch-utils.h (legacy_register_sim_regno): To here.
7092 * remote-sim.c (legacy_register_sim_regno): Move function from
7093 here.
7094 * arch-utils.c (legacy_register_sim_regno): To here.
7095
8238d0bf
AC
70962002-05-28 Andrew Cagney <ac131313@redhat.com>
7097
7098 * sim-regno.h: New file.
7099 * Makefile.in (sim_regno_h): Define.
7100 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7101 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7102 (legacy_register_sim_regno): New function.
7103 (one2one_register_sim_regno): New function.
7104 (gdbsim_fetch_register): Rewrite.
7105 (gdbsim_store_register): Only store a register when
7106 REGISTER_SIM_REGNO is valid.
7107 * d10v-tdep.c: Include "sim-regno.h".
7108 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7109 (d10v_ts3_register_sim_regno): Ditto.
7110 * gdbarch.sh: Include "sim-regno.h".
7111 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7112 * gdbarch.h, gdbarch.c: Regenerate.
7113 * arch-utils.h (default_register_sim_regno): Delete declaration.
7114 * arch-utils.c (default_register_sim_regno): Delete function.
7115
485721b1
JT
71162002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7117
7118 * ppcnbsd-nat.c: Rewrite.
7119 * ppcnbsd-tdep.c: New file.
7120 * ppcnbsd-tdep.h: New file.
7121 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7122 solib.o, and solib-svr4.o.
7123 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7124 nbsd-tdep.o, and corelow.o.
7125
697f244d
AC
71262002-05-28 Andrew Cagney <ac131313@redhat.com>
7127
7128 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7129 `tr' and `sed'. Mention that `broken' targets are not expected to
7130 build.
7131
f08caad1 71322002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7133
7134 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7135 Let PC point right after the prologue before looking up symbols.
7136
3139facc
MH
71372002-05-27 Martin M. Hunt <hunt@redhat.com>
7138
7139 * i386-tdep.c (i386_register_virtual_type): Return
7140 builtin_type_vec128i for SSE registers.
7141
7142 * gdbtypes.h (builtin_type_vec128i): Declare.
7143
7144 * gdbtypes.c (build_builtin_type_vec128i): New function.
7145 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7146 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7147 (build_gdbtypes): Initialize new builtin vector types.
7148 (_initialize_gdbtypes): Register new vector types with gdbarch.
7149
6e3ba3b8
JT
71502002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7151
7152 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7153 since it has been multi-arch'd.
7154 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7155 Move Alpha and VAX multi-arch news entries to same section
7156 as other multi-arch news.
7157
93d5585d
JT
71582002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7159
7160 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7161 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7162 static. Rename some register numbers to put them in ns32k-tdep
7163 private namespace.
7164 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7165 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7166 functions.
7167 (_initialize_ns32k_tdep): Use gdbarch_register.
7168 * ns32k-tdep.h: New file.
7169 * ns32knbsd-tdep.c: New file.
7170 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7171 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7172 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7173 REGISTER_BYTES, REGISTER_BYTE): Remove.
7174 * config/ns32k/tm-ns32k.h: New file.
7175 * config/ns32k/tm-umax.h: Remove.
7176
efb2c70e
JT
71772002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7178
7179 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7180 ns32k_store_struct_return, ns32k_extract_return_value,
7181 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7182 functions.
7183 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7184 ns32k_saved_pc_after_call.
7185 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7186 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7187 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7188 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7189 ns32k_extract_struct_value_address.
7190
7bcc927b
JT
71912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7192
7193 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7194 ns32k_fix_call_dummy): New.
7195 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7196 ns32k_call_dummy_words.
7197 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7198 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7199 CALL_DUMMY_NARGS): Remove.
7200 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7201
78f9d765
JT
72022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7203
7204 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7205 ns32k_frame_saved_pc, ns32k_frame_args_address,
7206 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7207 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7208 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7209 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7210 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7211 (BREAKPOINT): Remove..
7212 (FRAME_CHAIN): Define as ns32k_frame_chain.
7213 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7214 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7215 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7216 (FRAME_FIND_SAVED_REGS): Remove.
7217 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7218 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7219 (POP_FRAME): Define as ns32k_pop_frame.
7220
f2c762e0
JT
72212002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7222
7223 * ns32k-tdep.c (ns32k_register_byte_32082,
7224 ns32k_register_byte_32382, ns32k_register_raw_size,
7225 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7226 functions.
7227 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7228 ns32k_register_byte_32382.
7229 * config/ns32k/tm-umax.h: Update copyright years.
7230 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7231 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7232 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7233 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7234 (ns32k_get_enter_addr): Fix prototype.
7235
af137673
JT
72362002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7237
7238 * ns32k-tdep.c: Update copyright years.
7239 (ns32k_register_name_32082): New function.
7240 (ns32k_register_name_32382): Ditto.
7241 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7242 (REGISTER_NAME): Define as ns32k_register_name_32382.
7243 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7244 (REGISTER_NAME): Define as ns32k_register_name_32082.
7245
a8bc7b56
JB
72462002-05-24 Jim Blandy <jimb@redhat.com>
7247
7248 * dwarf2read.c (free_line_header): Use xfree, not free.
7249
83a45910
JT
72502002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7251
7252 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7253 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7254
0db71247
AC
72552002-05-23 Andrew Cagney <ac131313@redhat.com>
7256
7257 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7258
b9e5e4dd
AC
72592002-05-23 Andrew Cagney <ac131313@redhat.com>
7260
7261 From Ross Alexander at NEC Europe:
7262 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7263
de530e84
MS
72642002-05-23 Michael Snyder <msnyder@redhat.com>
7265
7266 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7267 for input, rather than parse_and_eval_address.
7268
b91b96f4
AC
72692002-05-23 Andrew Cagney <ac131313@redhat.com>
7270
7271 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7272 * Makefile.in (sim_d10v_h): Update definition.
7273
8b279e7a
AC
72742002-05-24 Andrew Cagney <cagney@redhat.com>
7275
7276 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7277 change `2002-05-22 Michael Snyder' below.
7278 (d10v_push_arguments): Ditto.
7279 (d10v_extract_return_value): Ditto.
7280
0a3d0425
JB
72812002-05-23 Jim Blandy <jimb@redhat.com>
7282
7283 * macrotab.c (check_for_redefinition): Don't complain if the new
7284 definition is the same as the previous one. Take more arguments
7285 to allow the comparison.
7286 (macro_define_object, macro_define_function): Pass more arguments
7287 to check_for_redefinition.
7288
78eac43e
MS
72892002-05-22 Michael Snyder <msnyder@redhat.com>
7290
7291 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7292 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7293 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7294 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7295 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7296 Add a temp variable to save a call (and a memory read).
7297 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7298 if possible (so that PC_IN_CALL_DUMMY will work).
7299
9bc1edb8
CV
73002002-05-22 Corinna Vinschen <vinschen@redhat.com>
7301
7302 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7303
005ef3d2
ML
73042002-05-22 Michal Ludvig <mludvig@suse.cz>
7305
7306 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7307 fde->cie_ptr.
7308 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7309 (dwarf2_build_frame_info): Add offset to fde->initial_location
7310 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7311 (execute_stack_op): Change type of 'result' from ULONGEST to
7312 CORE_ADDR.
005ef3d2 7313
fcf4f891
JT
73142002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7315
7316 * config/alpha/tm-nbsd.h: Include solib.h.
7317
cfef91e4
JT
73182002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7319
7320 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7321 assumptions about the host's byte order.
7322
9964235a
JT
73232002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7324
7325 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7326 to dependency list.
7327 * alphanbsd-tdep.c: Include solib-svr4.h.
7328 * shnbsd-tdep.c: Ditto.
7329
9eeef8ef
JT
73302002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7331
7332 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7333 nbsd-tdep.h to dependency list.
7334 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7335 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7336 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7337 nbsdaout.mh and nbsdelf.mh consistently.
7338 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7339 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7340 nbsdaout.mt and nbsdelf.mh consistently.
7341 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7342 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7343 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7344 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7345 a.out shared library stuff from here...
7346 * config/nm-nbsdaout.h: ...to here.
7347 * config/tm-nbsd.h: Remove.
7348 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7349 * config/arm/nbsd.mh: Remove.
7350 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7351 nbsd-tdep.o.
7352 * config/arm/nbsdaout.mh: New file.
7353 * config/arm/nbsdelf.mh: New file.
7354 * config/arm/nm-nbsdaout.h: New file.
7355 * config/i386/nbsd.mh: Remove.
7356 * config/i386/nbsd.mt: Remove.
7357 * config/i386/nbsdaout.mh: New file.
7358 * config/i386/nbsdaout.mt: New file.
7359 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7360 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7361 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7362 i386_register_u_addr): Remove.
7363 * config/i386/nm-nbsdaout.h: New file.
7364 * config/i386/nm-nbsdelf.h: Remove.
7365 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7366 (USE_STRUCT_CONVENTION): Remove.
7367 * config/i386/tm-nbsdaout.h: New file.
7368 * config/i386/tm-nbsdelf.h: Remove.
7369 * config/m68k/nbsd.mh: Remove.
7370 * config/m68k/nbsd.mt: Remove.
7371 * config/m68k/nbsdaout.mh: New file.
7372 * config/m68k/nbsdaout.mt: New file.
7373 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7374 * config/m68k/nm-nbsdaout.h: New file.
7375 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7376 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7377 * config/ns32k/nbsd.mh: Remove.
7378 * config/ns32k/nbsd.mt: Remove.
7379 * config/ns32k/nbsdaout.mh: New file.
7380 * config/ns32k/nbsdaout.mt: New file.
7381 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7382 * config/ns32k/nm-nbsdaout.h: New file.
7383 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7384 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7385 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7386 (SVR4_SHARED_LIBS): Remove.
7387 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7388 * config/sparc/nbsd.mh: Remove.
7389 * config/sparc/nbsd.mt: Remove.
7390 * config/sparc/nbsdaout.mh: New file.
7391 * config/sparc/nbsdaout.mt: New file.
7392 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7393 * config/sparc/nbsdelf.mt: New file.
7394 * config/sparc/nm-nbsdaout.h: New file.
7395 * config/sparc/nm-nbsdelf.h: Remove.
7396 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7397 * config/sparc/tm-nbsdaout.h: New file.
7398
257ce470
JT
73992002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7400
7401 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7402 mipsnbsd-tdep.c
7403 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7404
76a6d5fe
JT
74052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7406
7407 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7408 shnbsd-nat.c.
7409 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7410
45888261
JT
74112002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7412
7413 * NEWS: Note new MIPS NetBSD native configuration.
7414 * configure.host (mips*-*-netbsd*): New host.
7415 * configure.tgt (mips*-*-netbsd*): New target.
7416 * mipsnbsd-nat.c: New file.
7417 * mipsnbsd-tdep.c: New file.
7418 * mipsnbsd-tdep.h: New file.
7419 * config/mips/nbsd.mh: New file.
7420 * config/mips/nbsd.mt: New file.
7421 * config/mips/nm-nbsd.h: New file.
7422 * config/mips/tm-nbsd.h: New file.
7423
70f80edf
JT
74242002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7425
7426 * Makefile.in (SFILES): Add osabi.c.
7427 (COMMON_OBS): Add osabi.o.
7428 (osabi.o): New dependency list.
7429 * osabi.c: New file.
7430 * osabi.h: New file.
7431 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7432
7433 * Makefile.in (alpha_tdep_h): Define and use instead of
7434 alpha-tdep.h.
7435 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7436 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7437 Remove.
7438 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7439 * alpha-tdep.h: Include osabi.h.
7440 (alpha_abi): Remove.
7441 (gdbarch_tdep): Use generic OS ABI framework.
7442 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7443 gdbarch_register_osabi.
7444 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7445 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7446 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7447
7448 * Makefile.in (sh_tdep_h): Add osabi.h.
7449 * sh-tdep.h (sh_osabi): Remove.
7450 (gdbarch_tdep): Use generic OS ABI framework.
7451 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7452 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7453 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7454 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7455
7456 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7457 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7458 gdbarch_register_osabi.
7459 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7460 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7461 (get_elfosabi): Rename to...
7462 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7463 ABI framework support routines.
7464 (arm_gdbarch_init): Use generic OS ABI framework.
7465 (arm_dump_tdep): Likewise.
7466 (_initialize_arm_tdep): Likewise.
7467 * arm-tdep.h: Include osabi.h.
7468 (arm_abi): Remove.
7469 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7470 osabi member.
7471 (arm_gdbarch_register_os_abi): Remove prototype.
7472 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7473 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7474
7475 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7476 * mips-tdep.c: Include osabi.h.
7477 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7478 OS ABI framework.
7479
d194345b
KH
74802002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7481
7482 * h8300-tdep.c: Fix formatting.
7483
70c6b0d1
EZ
74842002-05-20 Elena Zannoni <ezannoni@redhat.com>
7485
7486 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7487 printing vector registers.
7488
165b8e33
AC
74892002-05-19 Andrew Cagney <ac131313@redhat.com>
7490
7491 From Fernando Nasser:
7492 * remote.c (remote_async_open_1): Re-throw the exception when the
7493 connection fails.
7494 (remote_cisco_open): Ditto.
7495 (remote_open_1): Ditto.
7496
36918e70
AC
74972002-05-19 Andrew Cagney <ac131313@redhat.com>
7498
7499 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7500 (remote_start_remote): Add uiout parameter. Pass through to
7501 remote_start_remote_dummy.
7502 (remote_open_1): Use catch_exception instead of catch_errors.
7503 (remote_async_open_1): Ditto.
7504 (remote_cisco_open): Ditto.
7505
ae44c0c4
AC
75062002-05-19 Andrew Cagney <ac131313@redhat.com>
7507
7508 * remote.c (remote_start_remote): Replace PTR with void pointer.
7509 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7510 static.
7511
8efe637d
AC
75122002-05-18 Andrew Cagney <ac131313@redhat.com>
7513
7514 * gdb_indent.sh: Allow the script to be run in the sim directory.
7515
2f1b5984
MK
75162002-05-18 Mark Kettenis <kettenis@gnu.org>
7517
f0f625e2
MK
7518 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7519 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7520
2f1b5984
MK
7521 * corelow.c (core_open): Only call set_gdbarch_from_file if
7522 exec_bfd is NULL.
7523
fc974602
AV
75242002-05-17 Andrey Volkov <avolkov@transas.com>
7525
7526 * h8300-tdep.c: Add support of EXR register
7527 * config/h8300/tm-h8300.h: Ditto.
7528
906709f4
AV
75292002-05-17 Andrey Volkov <avolkov@transas.com>
7530
7531 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7532
6e591d68
AV
75332002-05-17 Andrey Volkov <avolkov@transas.com>
7534
7535 * h8300-tdep.c: Change literal regnums to REGNO.
7536
84f0252a
JB
75372002-05-17 Jim Blandy <jimb@redhat.com>
7538
e0e9281e
JB
7539 * NEWS: Note addition of macro support.
7540
84f0252a
JB
7541 Expand preprocessor macros in C expressions.
7542 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7543 (scan_macro_expansion, scanning_macro_expansion,
7544 finished_macro_expansion): New function declarations.
7545 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7546 variable declarations.
7547 * parser-defs.h (expression_context_pc): New declaration.
7548 * parse.c (expression_context_pc): New variable.
7549 (parse_exp_1): Set expression_context_pc, as well as
7550 expression_context_block.
7551 * c-exp.y (yylex): If we're not already reading the result of a
7552 macro expansion, try to macro-expand the next token. When we're
7553 done scanning a macro expansion, switch back to the mainline text.
7554 Commas and `if's in a macro's expansion don't terminate the input.
7555 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7556 (macro_original_text, macro_expanded_text,
7557 expression_macro_lookup_func, expression_macro_lookup_baton): New
7558 variables.
7559 (scan_macro_expansion, scanning_macro_expansion,
7560 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7561 c_preprocess_and_parse): New functions.
7562 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7563 c_preprocess_and_parse, instead of c_parse.
7564 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7565 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7566
1c509ca8
JR
7567Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7568
7569 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7570 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7571 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7572
2250ee0c
CV
75732002-05-17 Corinna Vinschen <vinschen@redhat.com>
7574
7575 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7576
ab3b8126
JT
75772002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7578
7579 * Makefile.in (sh_tdep_h): Define and use.
7580 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7581 register enum): Move to...
7582 * * sh-tdep.h: ...here.
7583 * sh-tdep.c: Include sh-tdep.h.
7584 * sh3-rom.c: Likewise.
7585 * shnbsd-tdep.c: Likewise.
7586
ed9d4749
MS
75872002-05-16 Michael Snyder <msnyder@redhat.com>
7588
7589 * arm-tdep.c: Spelling fix in comment.
7590
2e276125
JB
75912002-05-16 Jim Blandy <jimb@redhat.com>
7592
6821892e
JB
7593 Add commands for manually expanding macros and showing their
7594 definitions.
7595 * macrocmd.c, macroscope.c, macroscope.h: New files.
7596 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7597 (macroscope_h): New variable.
7598 (HFILES_NO_SRCDIR): Add macroscope.h.
7599 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7600 (macroscope.o, macrocmd.o): New rules.
7601
2e276125
JB
7602 Teach the Dwarf 2 reader to read macro information.
7603 * dwarf2read.c: #include "macrotab.h".
7604 (dwarf_macinfo_buffer): New variable.
7605 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7606 dwarf_macinfo_size.
7607 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7608 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7609 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7610 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7611 dwarf2_macro_spaces_in_definition): New complaints.
7612 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7613 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7614 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7615 the partial symbol table.
7616 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7617 from what's recorded in the partial symbol table.
7618 (read_file_scope): If the compilation unit has a
7619 `DW_AT_macro_info' attribute, read its macro information.
7620 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7621
2f53fe6c
DJ
76222002-05-16 Daniel Jacobowitz <drow@mvista.com>
7623
7624 Fix PR gdb/546
7625 * ser-tcp.c: Don't include <netinet/udp.h>.
7626
2be99286
SC
76272002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7628
7629 * MAINTAINERS: Update my email address.
7630
c9af212b 76312002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
7632
7633 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7634 include file of the same name.
7635
bf5f1a52
CV
76362002-05-16 Corinna Vinschen <vinschen@redhat.com>
7637
7638 * configure.tgt: Mark v850 as multi-arched.
7639 * config/v850/tm-v850.h: Remove file.
7640 * config/v850/v850.mt: Eliminate TM_FILE.
7641
435e042a
CV
76422002-05-16 Corinna Vinschen <vinschen@redhat.com>
7643
7644 * v850-tdep.c: Full multi-arch.
7645 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7646 Define GDB_MULTI_ARCH to 2.
7647
9819c6c8
PM
76482002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7649
7650 * p-exp.y (current_type): New static variable.
7651 Carries the type of the expression at the position that is parsed.
7652 (push_current_type, pop_current_type): Two new functions. Used
7653 to store/restore current_type in expression on specific tokens.
c9af212b
RE
7654 (search_field): New static variable. Set to one after parsing a point
7655 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
7656 (FIELDNAME): New token. After a point only a token belonging to
7657 current_type type definition is allowed.
7658 (all over token rules): reset and change current_type according
7659 to rules.
7660 (exp '[' rule): insert implicit array index field if
7661 exp is a pascal string type.
7662
3a06899a
CV
76632002-05-16 Corinna Vinschen <vinschen@redhat.com>
7664
7665 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7666 frame info. Use frame_info's saved_regs instead of matching member
7667 in extra_frame_info throughout.
7668 (v850_frame_init_saved_regs): New function.
7669 (v850_init_extra_frame_info): Move most functionality into
7670 v850_frame_init_saved_regs().
7671 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7672 (v850_frame_find_saved_regs): Remove declaration.
7673 (FRAME_FIND_SAVED_REGS): Remove definition.
7674 (v850_frame_init_saved_regs): Add declaration.
7675 (FRAME_INIT_SAVED_REGS): Add definition.
7676
6ed14b0e
CV
76772002-05-16 Corinna Vinschen <vinschen@redhat.com>
7678
7679 * v850-tdep.c: Begin multi-arch'ing v850.
7680 (v850_target_architecture_hook): Remove function.
7681 (v850_gdbarch_init): New function. Add code previously in
7682 v850_target_architecture_hook().
7683 (_initialize_v850_tdep): Don't set target_architecture_hook.
7684 Call register_gdbarch_init() instead.
7685
42725910
DJ
76862002-05-16 Daniel Jacobowitz <drow@mvista.com>
7687
7688 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7689 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7690 (fixup_class_method_type): Likewise.
7691
99d9066e
JB
76922002-05-15 Jim Blandy <jimb@redhat.com>
7693
7694 Add macro structures to GDB's symbol tables. Nobody puts anything
7695 in them yet.
7696 * symtab.h (struct symtab): New member: `macro_table'.
7697 * buildsym.h (pending_macros): New global variable.
7698 * buildsym.c: #include "macrotab.h".
7699 (buildsym_init): Initialize `pending_macros'.
7700 (end_symtab): If we found macro information while reading a CU's
7701 debugging info, do build a symtab structure for it. Make the
7702 symtab point to the macro information, and clear the
7703 `pending_macros' pointer which held it while we were reading the
7704 debug info.
7705 (really_free_pendings): Free any pending macro table.
7706 * objfiles.h (struct objfile): New member: `macro_cache'.
7707 * objfiles.c (allocate_objfile): Set allocate and free functions
7708 for the macro cache's objstack.
7709 (free_objfile): Empty the macro cache's obstack.
7710 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7711 set new allocate and free functions for it.
7712 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7713 free functions for the macro cache's objstack. (Why is this
7714 function building its own objfile?)
7715 * symmisc.c (print_objfile_statistics): Print statistics on the
7716 macro bcache.
7717 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7718
c899585b
RE
77192002-05-15 Richard Earnshaw <rearnsha@arm.com>
7720
7721 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7722 (REGISTER_U_ADDR): Delete definition.
7723 (arm_register_u_addr): Delete declaration.
7724
a6cdd8c5
RE
77252002-05-15 Richard Earnshaw <rearnsha@arm.com>
7726
7727 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7728 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7729
c97dcfc7
AC
77302002-05-14 Andrew Cagney <ac131313@redhat.com>
7731
7732 * regcache.c (register_valid): Revise comments refering to "Not
7733 available" and "unavailable".
7734 * frame.c (frame_register_read): Ditto.
7735 * findvar.c (value_of_register): Ditto.
7736
93021b7d
AC
77372002-05-15 Andrew Cagney <cagney@redhat.com>
7738
7739 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7740 (remote-sim.o): Update dependencies.
7741 (d10v-tdep.o): Specify dependencies.
7742 (sim_d10v_h): Define.
7743
a86bc61c
JB
77442002-05-14 Jim Blandy <jimb@redhat.com>
7745
7746 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7747 * macrotab.c (macro_lookup_inclusion, find_definition,
7748 new_macro_table): Same.
7749
7750 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7751 not `! strcmp ()'. This is a dubious improvement.
7752 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7753
7754 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7755 although it's not necessary, to avoid a warning.
7756
2fdde8f8
DJ
77572002-05-14 Daniel Jacobowitz <drow@mvista.com>
7758
7759 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7760 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7761 TYPE_INSTANCE_FLAGS.
7762 (struct main_type): New.
7763 (struct type): Move most members to struct main_type. Change
7764 cv_type and as_type to new type_chain member. Add instance_flags.
7765 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7766 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7767 (finish_cv_type): Remove prototype.
7768 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7769 Set TYPE_CHAIN.
7770 (alloc_type_instance): New function.
7771 (smash_type): New function.
7772 (make_pointer_type, make_reference_type, make_function_type)
7773 (smash_to_member_type, smash_to_method_type): Call smash_type.
7774 (make_qualified_type): New function.
7775 (make_type_with_address_space): Call make_qualified_type.
7776 (make_cv_type): Likewise.
7777 (finish_cv_type): Remove unnecessary function.
7778 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7779 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7780 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7781 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7782 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7783 * hpread.c (hpread_read_struct_type): Likewise.
7784 * stabsread.c (read_struct_type): Likewise.
7785
843fedf4
EZ
77862002-05-14 Elena Zannoni <ezannoni@redhat.com>
7787
7788 * configure.tgt: Add a catch all sh* target, for cases like
7789 sh[2,3,4]-elf and sh-hms.
7790
05a6c72c
KS
77912002-05-14 Keith Seitz <keiths@redhat.com>
7792
7793 * event-loop.c (create_file_handler): Don't do anything but
7794 update data when we are given a fd which we are already
7795 monitoring.
7796
5d085aaf
ML
77972002-05-14 Michal Ludvig <mludvig@suse.cz>
7798
7799 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7800 (update_context): Use __func__ in warnings.
7801
9db8d71f
DJ
78022002-05-14 Daniel Jacobowitz <drow@mvista.com>
7803
7804 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7805 and tcp_close to net_open and net_close.
7806 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7807 using UDP if requested. Don't try to disable Nagle on UDP
7808 sockets.
7809 * remote.c (remote_serial_open): New function. Warn about UDP.
7810 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7811
5dbc6baa
EZ
78122002-05-13 Elena Zannoni <ezannoni@redhat.com>
7813
7814 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7815
cc3023f7
EZ
78162002-05-13 Elena Zannoni <ezannoni@redhat.com>
7817
7818 * configure.tgt: Remove sh-hms target.
7819 * MAINTAINERS: Don't list sh-hms as a separate target.
7820
ec2bcbe7
JB
78212002-05-13 Jim Blandy <jimb@redhat.com>
7822
7823 Add first preprocessor macro-expansion files.
7824 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7825 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7826 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7827 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7828 (COMMON_OBS): Add macrotab.o, macroexp.o.
7829 (macroexp.o, macrotab.o): New rules.
7830
6d531722
AC
78312002-05-13 Andrew Cagney <ac131313@redhat.com>
7832
7833 * config/m88k/tm-m88k.h: Update copyright.
7834 (m88k_target_write_pc): Declare
7835 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7836 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7837 (SHIFT_INST_REGS): Update definition.
7838 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7839 using old definition of TARGET_WRITE_PC.
7840 * regcache.c (generic_target_write_pc): Delete code handling
7841 NNPC_REGNUM.
7842 * gdbarch.sh (NNPC_REGNUM): Delete.
7843 * gdbarch.h, gdbarch.c: Regenerate.
7844
3e3f2739
RE
78452002-05-13 Richard Earnshaw <rearnsha@arm.com>
7846
7847 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7848 builtin reg number.
7849
0004e5a2
DJ
78502002-05-13 Daniel Jacobowitz <drow@mvista.com>
7851
7852 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7853 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7854 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7855 access macros.
7856 * c-typeprint.c (cp_type_print_method_args): Likewise.
7857 (c_type_print_args): Likewise.
7858 * d10v-tdep.c (d10v_push_arguments): Likewise.
7859 (d10v_extract_return_value): Likewise.
7860 * expprint.c (print_subexp): Likewise.
7861 * gdbtypes.c (lookup_primitive_typename): Likewise.
7862 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7863 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7864 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7865 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7866 (TYPE_VECTOR): Likewise.
7867 * hpread.c (hpread_read_struct_type)
7868 (fix_static_member_physnames, fixup_class_method_type)
7869 (hpread_type_lookup): Likewise.
7870 * mdebugread.c (parse_symbol, parse_type): Likewise.
7871 * p-lang.c (is_pascal_string_type): Likewise.
7872 * valops.c (hand_function_call): Likewise.
7873 * x86-64-tdep.c (classify_argument): Likewise.
7874
7875 * hpread.c (hpread_read_function_type)
7876 (hpread_read_doc_function_type): Call replace_type.
7877 * dstread.c (create_new_type): Delete.
7878 (decode_dst_structure, process_dst_function): Call alloc_type.
7879 Use type access macros.
7880
dff95cc7
MK
78812002-05-12 Mark Kettenis <kettenis@gnu.org>
7882
7883 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7884 the're not supported by the current architecture.
7885 (i387_fill_fxsave): Likewise.
7886
bbcd32ad
FF
78872002-05-12 Fred Fish <fnf@redhat.com>
7888
7889 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7890 sect_index_xxx members to index the first slot in section_offsets
7891 if all of the section_offsets are zero.
7892
89cf4787
MK
78932002-05-12 Mark Kettenis <kettenis@gnu.org>
7894
7895 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7896 checked in with last change.
7897
1f77ffc5
MK
78982002-05-12 Mark Kettenis <kettenis@gnu.org>
7899
7900 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7901 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7902 config.sub.
7903
89b8b4a9
DJ
79042002-05-12 Daniel Jacobowitz <drow@mvista.com>
7905
7906 * Makefile.in: Update dependencies.
7907
14a5e767
AC
79082002-05-11 Andrew Cagney <ac131313@redhat.com>
7909
7910 * language.c (local_hex_string_custom): Simplify. Do not depend
7911 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7912
7913 * memattr.c (mem_info_command): Replace calls to
7914 longest_local_hex_string and longest_local_hex_string_custom.
7915 * buildsym.c (make_blockvector): Ditto.
7916 * solib.c (info_sharedlibrary_command): Ditto.
7917 * tracepoint.c (tracepoints_info): Ditto.
7918 * symtab.c (print_msymbol_info): Ditto.
7919
7920 * language.c (local_hex_string): Delete.
7921 (local_hex_string_custom): Delete.
7922 (longest_local_hex_string): Rename to local_hex_string.
7923 (longest_local_hex_string_custom): Rename to
7924 local_hex_string_custom.
7925 * language.h (local_hex_string): Change parameter type to LONGEST.
7926 (local_hex_string_custom): Ditto.
7927 (longest_local_hex_string): Delete declaration.
7928 (longest_local_hex_string_custom): Ditto.
7929
7930 * solib.c: Update copyright.
7931 * memattr.c: Update copyright.
7932
13d01224
AC
79332002-05-11 Andrew Cagney <ac131313@redhat.com>
7934
7935 * arch-utils.h (legacy_register_to_value): Declare.
7936 (legacy_value_to_register): Declare.
7937 (legacy_convert_register_p): Declare.
7938 * arch-utils.c (legacy_register_to_value): New function.
7939 (legacy_value_to_register): New function.
7940 (legacy_convert_register_p): New function.
7941
7942 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7943 (VALUE_TO_REGISTER): Define.
7944 (CONVERT_REGISTER_P): Define.
7945 * gdbarch.h, gdbarch.c: Regenerate.
7946
7947 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7948 VALUE_TO_REGISTER.
7949 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7950 CONVERT_REGISTER_P.
7951
4a1970e4
DJ
79522005-05-11 Daniel Jacobowitz <drow@mvista.com>
7953 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7954
7955 * Makefile.in: Update dependencies for valops.c.
7956 * valops.c: Include "gdb_assert.h".
7957 (typecmp): Skip THIS parameter to methods.
7958 (find_method_list): Remove static_memfuncp argument,
7959 update callers. Check for stub methods.
7960 (find_value_oload_method_list): Don't set *static_memfuncp.
7961 (find_overload_match): Don't check for stub methods. Assert
7962 that methods are not stubbed. Handle static methods.
7963 (value_find_oload_method_list): Remove static_memfuncp argument.
7964 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7965 to the argument list for static stub methods.
7966 * value.h (value_find_oload_method_list): Update prototype.
7967
b2e75d78
AC
79682002-05-11 Andrew Cagney <ac131313@redhat.com>
7969
7970 * arch-utils.h (generic_register_size): Declare.
7971 (generic_register_raw_size, generic_register_virtual_size): Delete
7972 declarations.
7973 * arch-utils.c (generic_register_raw_size): Delete.
7974 (generic_register_size): New function.
7975 (generic_register_virtual_size): Delete.
7976
7977 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7978 default generic_register_size.
7979 * gdbarch.h, gdbarch.c: Re-generate.
7980
7981 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7982 register_virtual_size.
7983 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7984 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7985
451fbdda
AC
79862002-05-11 Andrew Cagney <ac131313@redhat.com>
7987
7988 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7989 * gdbarch.h, gdbarch.c: Regenerate.
7990 * gnu-v3-abi.c: Update copyright.
7991 (vtable_address_point_offset): Update.
7992 (gnuv3_rtti_type): Update.
7993 (gnuv3_baseclass_offset): Update.
7994 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7995 (init_fetch_link_map_offsets): Update.
7996 * remote.c (get_remote_state): Update.
7997
6d2f5cea
DJ
79982002-05-11 Daniel Jacobowitz <drow@mvista.com>
7999
8000 * TODO: Remove value_headof/value_from_vtable_info comment.
8001 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8002 * values.c (value_headof, value_from_vtable_info): Delete.
8003 * value.h (value_from_vtable_info): Delete prototype.
8004
d2324da4
AC
80052002-05-11 Andrew Cagney <ac131313@redhat.com>
8006
8007 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8008 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8009 $(gdb_regex_h).
8010 (gdb_assert_h): Define.
8011 (gdb_wait_h): Define.
8012 (gdb_regex_h): Define.
8013
5c717440
DJ
80142002-05-11 Daniel Jacobowitz <drow@mvista.com>
8015
8016 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8017 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8018
6c7861b3
JT
80192002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8020
8021 * nbsd-tdep.c: Fix comment.
8022
ea5bc2a6
JT
80232002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8024
8025 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8026 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8027 (nbsd-tdep.o): New dependency list.
8028 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8029 nbsd-tdep.h.
8030 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8031 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8032 * nbsd-tdep.c: New file.
8033 * nbsd-tdep.h: New file.
8034 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8035 nbsd-tdep.h.
8036 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8037 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8038 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8039 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8040
b28da865
JT
80412002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8042
8043 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8044 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8045 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8046 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8047 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8048 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8049
4b8ff1fa
JT
80502002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8051
8052 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8053 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8054 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8055 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8056 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8057 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8058 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8059
dfe6eb1f
JT
80602002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8061
8062 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8063 fetch_elfcore_registers to...
8064 * i386nbsd-tdep.c: ...here.
8065 (i386nbsd_use_struct_convention): Rename to...
8066 (i386nbsd_aout_use_struct_convention): ...this.
8067 (i386nbsd_supply_reg): New function.
8068 (i386nbsd_fill_reg): New function.
8069 (fetch_core_registers): Use i386nbsd_supply_reg.
8070 (fetch_elfcore_registers): Likewise.
8071 (_initialize_i386nbsd_tdep): New function.
8072 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8073 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8074 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8075 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8076 (i386nbsd_aout_use_struct_convention): ...this.
8077
20cb8cda
JT
80782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8079
8080 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8081 (store_inferior_registers): Use shnbsd_fill_reg.
8082 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8083 sh_nbsd_supply_register): Collapse into...
8084 (shnbsd_supply_reg): ...this.
8085 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8086 (shnbsd_fill_reg): ...this.
8087 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8088 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8089 (fetch_core_registers): Use shnbsd_supply_reg.
8090 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8091 (sh_nbsd_core_fns): Rename to...
8092 (shnbsd_core_fns): ...this.
8093 (sh_nbsd_elfcore_fns): Rename to...
8094 (shnbsd_elfcore_fns): ...this.
8095 (sh_nbsd_init_abi): Rename to...
8096 (shnbsd_init_abi): ...this.
8097 (_initialize_sh_nbsd_tdep): Rename to...
8098 (_initialize_shnbsd_tdep): ...this.
8099 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8100 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8101 sh_nbsd_fill_register): Remove prototypes.
8102 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8103
e750d25e
JT
81042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8105
8106 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8107 (i387-nat.o): Delete dependency list.
8108 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8109 (x86-64-linux-nat.o): Likewise.
8110 * i387-nat.c: Delete file, moving contents to...
8111 * i387-tdep.c: ...here.
8112 * i387-nat.h: Rename...
8113 * i387-tdep.h: ...to this.
8114 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8115 * i386-linux-nat.c: Likewise.
8116 * i386bsd-nat.c: Likewise.
8117 * i386gnu-nat.c: Likewise.
8118 * i386nbsd-nat.c: Likewise.
8119 * i386v4-nat.c: Likewise.
8120 * x86-64-linux-nat.c: Likewise.
8121 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8122 * config/i386/go32.mh (NATDEPFILES): Likewise.
8123 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8124 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8125 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8126 * config/i386/linux.mh (NATDEPFILES): Likewise.
8127 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8128 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8129 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8130 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8131
1aee598a
JT
81322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8133
8134 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8135 (alphanbsd-nat.o): Remove dependency list.
8136 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8137 * alphanbsd-nat.c: Delete. Contents moved to...
8138 * alphanbsd-tdep.c: ...here.
8139 (_initialize_alphanbsd_tdep): Register core functions.
8140 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8141
12bcb0fe
JT
81422002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8143
8144 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8145 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8146 (alphanbsd-nat.o): Likewise.
8147 (alphabsd-tdep.o): New dependency list.
8148 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8149 (fill_gregset): Use alphabsd_fill_reg.
8150 (supply_fpregset): Use alphabsd_supply_fpreg.
8151 (fill_fpregset): Use alphabsd_fill_fpreg.
8152 (fetch_inferior_registers): Use struct reg and struct fpreg
8153 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8154 and alphabsd_supply_fpreg.
8155 (store_inferior_registers): Use struct reg and struct fpreg
8156 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8157 and alphabsd_fill_fpreg.
8158 * alphabsd-tdep.c: New file.
8159 * alphabsd-tdep.h: New file.
8160 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8161 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8162 alphabsd_supply_fpreg.
8163 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8164 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8165
361d1df0
EC
81662002-05-11 Eric Christopher <echristo@redhat.com>
8167
8168 * mips-tdep.c (mips_double_register_type): Fix thinko.
8169 (mips_single_register_type): Ditto.
8170 * MAINTAINERS: Add self.
8171
92dd7cee
MK
81722002-05-11 Mark Kettenis <kettenis@gnu.org>
8173
8174 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8175 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8176 right thing on architectures with different endianness and/or
8177 integer sizes.
8178
e27da16d
JT
81792002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8180
8181 From Christian Limpach <chris@Pin.LU>
8182 * configure.in: Change sed expression which comments out
8183 NATDEPFILES to also comment out continuation lines.
8184 * configure: Regenerate.
8185
ddde02bd
EZ
81862002-05-10 Elena Zannoni <ezannoni@redhat.com>
8187
8188 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8189 big patch.
8190
1c922164
EZ
81912002-05-10 Elena Zannoni <ezannoni@redhat.com>
8192
8193 * sh-tdep.c: Include correct file.
8194
283150cd
EZ
81952002-05-10 Elena Zannoni <ezannoni@redhat.com>
8196
8197 New support for sh64-elf (sh5) target.
8198
8199 * configure.tgt: For sh64-elf target, default to sh-elf.
8200
8201 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8202 (struct gdbarch_tdep): Add new fields for new registers and ABI
8203 info.
361d1df0 8204
283150cd
EZ
8205 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8206 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8207 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8208 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8209 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8210 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8211 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8212 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8213 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8214 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8215 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8216 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8217 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8218 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8219 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8220 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8221 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8222 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8223 sign_extend, sh64_nofp_frame_init_saved_regs,
8224 sh64_init_extra_frame_info, sh64_get_saved_register,
8225 sh64_extract_struct_value_address, sh64_pop_frame,
8226 sh64_push_arguments, sh64_extract_return_value,
8227 sh64_store_return_value, sh64_show_media_regs,
8228 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8229 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8230 sh_sh64_register_virtual_type,
8231 sh_sh64_register_convert_to_virtual,
8232 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8233 sh64_register_read, sh64_pseudo_register_write,
8234 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8235 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8236 sh64_do_pseudo_register, sh_compact_do_registers_info,
8237 sh64_do_registers_info, sh_gdbarch_init): New functions.
8238
3117ed25
EZ
82392002-05-10 Elena Zannoni <ezannoni@redhat.com>
8240
8241 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8242
2654e6d4
DJ
82432002-05-10 Daniel Jacobowitz <drow@mvista.com>
8244
8245 * linespec.c (decode_line_1): Check for a double quote after
8246 a filename correctly.
8247
9ab3e532
JB
82482002-05-10 Jim Blandy <jimb@redhat.com>
8249
8250 Properly track the size of the current objfile's .debug_line section.
8251 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8252 (DWARF_LINE_SIZE): New macro.
8253 (dwarf2_build_psymtabs_hard): Record the line section's size in
8254 the partial symbol table.
8255 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8256 symbol table.
8257
126fa72d
PS
82582002-05-10 Petr Sorfa <petrs@caldera.com>
8259
8260 * ia64-tdep.c: Handle breakpoints on L instruction type
8261 in MLX instruction bundle by moving the breakpoint to
8262 the third slot (X instruction type) as L holds only data.
8263
1f077a3e
KB
82642002-05-10 Kevin Buettner <kevinb@redhat.com>
8265
8266 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8267 (process_one_symbol): Complain about discarding local symbols
8268 due to a misplaced N_LBRAC entry.
8269
8120c9d5 82702002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8271
8272 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8273 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8274 decrease the depth we are at, in the case of templates.
361d1df0 8275
67b2c998
DJ
82762002-05-09 Daniel Jacobowitz <drow@mvista.com>
8277
8278 * mips-tdep.c (mips_float_register_type): New function.
8279 (mips_double_register_type): New function.
8280 (mips_print_register): Use them.
8281 (do_fp_register_row): Likewise.
8282
fd326606
DJ
82832002-05-09 Daniel Jacobowitz <drow@mvista.com>
8284
6609d9af 8285 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8286 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8287 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8288
bef35864
MS
82892002-05-09 Michael Snyder <msnyder@redhat.com>
8290
8291 * remote-rdp.c (remote_rdp_can_run): Remove.
8292
c55a3f73
TT
82932002-05-09 Tom Tromey <tromey@redhat.com>
8294
8295 * jv-valprint.c (java_val_print): Handle `char' as a special case
8296 of TYPE_CODE_INT.
8297
b8d5e71d
MS
82982002-05-09 Michael Snyder <msnyder@redhat.com>
8299
8300 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8301 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8302 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8303 str r(0123),[sp,#nn].
361d1df0 8304 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8305 order-independent by placing it in a loop.
8306
e2cd42dd
MS
83072002-05-06 Michael Snyder <msnyder@redhat.com>
8308
8309 * stabsread.c (read_type): Add recognition for new attribute:
8310 "@V;" means that an array type is actually a vector.
8311 This is analogous to the vector flag that's been added to dwarf2.
8312
3ce1502b
MK
83132002-05-09 Mark Kettenis <kettenis@gnu.org>
8314
8315 * i386-tdep.h (i386_abi): New enum.
8316 (struct gdbarch_tdep): Replace os_ident member with abi.
8317 (i386_gdbarch_register_os_abi): New prototype.
8318 * i386-tdep.c (i386_abi_names): New array.
8319 (process_note_abi_tag_sections): Removed.
8320 (process_note_sections): New function.
8321 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8322 (struct i386_abi_handler): New struct.
8323 (i386_abi_handler_list): New variable.
8324 (i386_gdbarch_register_os_abi): New function.
8325 (i386_gdbarch_init): Adapt for the changes given above.
8326
084c156a
DJ
83272002-05-08 Daniel Jacobowitz <drow@mvista.com>
8328
8329 * gregset.h: Say "GNU/Linux".
8330
6599f021
EZ
83312002-05-08 Elena Zannoni <ezannoni@redhat.com>
8332
8333 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8334 (build_gdbtypes): Build builtin_type_v2_float.
8335 (_initialize_gdbtypes): Register new builtin type.
8336
40af4b0c
AC
83372002-05-08 Andrew Cagney <ac131313@redhat.com>
8338
8339 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8340 (clear_gdbarch_swap): New function.
8341 (initialize_non_multiarch): Call.
8342 (gdbarch_update_p): Before calling init(), swap out and clear the
8343 existing architecture.
8344 * gdbarch.c: Regenerate.
8345
4fe84f46
JT
83462002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8347
8348 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8349 alphanbsd-tdep.c.
8350
4015edd1
JT
83512002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8352
8353 * sh-nbsd-nat.c: Rename to...
8354 * shnbsd-nat.c: ...this.
8355 * sh-nbsd-tdep.c: Rename to...
8356 * shnbsd-tdep.c: ...this.
8357 * sh-nbsd-tdep.h: Rename to...
8358 * shnbsd-tdep.h: ...this.
8359 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8360 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8361
0e2bd219
RE
83622002-05-08 Richard Earnshaw <rearnsha@arm.com>
8363
8364 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8365 concatenation for command help messages.
8366
13a38d45
JT
83672002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8368
8369 * NEWS: Note new sh*-*-netbsdelf* configuration.
8370 * configure.host: Set gdb_host_cpu to sh for all sh*.
8371 (sh*-*-netbsdelf*): New host.
8372 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8373 (sh*-*-netbsdelf*): New target.
8374 * sh-nbsd-nat.c: New file.
8375 * sh-nbsd-tdep.c: New file.
8376 * sh-nbsd-tdep.h: New file.
8377 * config/sh/nbsd.mh: New file.
8378 * config/sh/nbsd.mt: New file.
8379 * config/sh/nm-nbsd.h: New file.
8380 * config/sh/tm-nbsd.h: New file.
8381
d658f924
JT
83822002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8383
8384 * sh-tdep.c (sh_osabi_names): Declare.
8385 (process_note_abi_tag_sections): New function.
8386 (get_elfosabi): Ditto.
8387 (sh_gdbarch_register_os_abi): Ditto.
8388 (sh_dump_tdep): Ditto.
8389 _initialize_sh_tdep): Use gdbarch_register to register
8390 sh_gdbarch_init and sh_dump_tdep.
8391 * config/sh/tm-sh.h (sh_osabi): Declare.
8392 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8393
848cfffb
AC
83942002-05-07 Andrew Cagney <ac131313@redhat.com>
8395
8396 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8397 (thumb_scan_prologue): Ditto.
8398 (arm_find_callers_reg): Ditto.
8399 (arm_frame_chain): Ditto.
8400 (arm_init_extra_frame_info): Ditto.
8401 (arm_frame_saved_pc): Ditto.
8402 (arm_pop_frame): Ditto.
8403 (arm_push_return_address): New function.
8404 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8405 call_dummy_location, call_dummy_breakpoint_offset_p,
8406 call_dummy_breakpoint_offset, call_dummy_p,
8407 call_dummy_stack_adjust_p, call_dummy_words,
8408 sizeof_call_dummy_words, call_dummy_start_offset,
8409 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8410 call_dummy_address, push_return_address and push_dummy_frame for
8411 generic dummy frames.
8412
e7d717c0
JT
84132002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8414
8415 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8416 size computation for alloca.
8417 (sh_fp_frame_init_saved_regs): Likewise.
8418
7bbcf283
RE
84192002-05-07 Richard Earnshaw <rearnsha@arm.com>
8420
8421 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8422 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 8423 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
8424 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8425 * remote-rdp.c (remote_rdp_fetch_register): Use
8426 ARM_MAX_REGISTER_RAW_SIZE.
8427 (remote_rdp_store_register): Likewise.
8428
4657573b
ML
84292002-05-07 Michal Ludvig <mludvig@suse.cz>
8430
361d1df0 8431 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
8432 added default labels to switch {} statements.
8433 * x86-64-tdep.c: Ditto.
8434 * x86-64-linux-nat.c: Ditto.
8435
010f3b2f
JT
84362002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8437
8438 * solib.h: Protect against multiple inclusion.
8439
debd256d
JB
84402002-05-06 Jim Blandy <jimb@redhat.com>
8441
9ab3e532
JB
8442 Add first preprocessor macro-expansion files.
8443 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8444 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8445 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8446 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8447 (COMMON_OBS): Add macrotab.o, macroexp.o.
8448 (macroexp.o, macrotab.o): New rules.
8449
debd256d
JB
8450 Separate the job of reading the line number info statement program
8451 header (...expialidocious) out into its own function.
8452 * dwarf2read.c (struct line_head, struct filenames, struct
8453 directories): Replace with...
8454 (struct line_header): New structure, containing the full
8455 contents of the statement program header, including the
8456 include directory and file name tables.
8457 (read_file_scope): If we have line number info, instead of just
8458 calling dwarf_decode_lines to do all the work, call
8459 dwarf_decode_line_header first to get a `struct line_header'
8460 containing the data in the statement program header, and then
8461 pass that to dwarf_decode_lines, which will pick up where that
8462 left off. Be sure to clean up the `struct line_header' object.
8463 (dwarf_decode_line_header, free_line_header, add_include_dir,
8464 add_file_name): New functions.
8465 (dwarf_decode_lines): Move all the code to read the statement
8466 program header into dwarf_decode_line_header. Take the line
8467 header it built as the first argument, instead of the offset to
8468 the compilation unit's line number info. Use the new `struct
8469 line_header' type instead of the old structures. No need to do
8470 cleanups here now, since we don't allocate anything.
8471 (dwarf2_statement_list_fits_in_line_number_section,
8472 dwarf2_line_header_too_long): New complaints.
8473
ac3aafc7
EZ
84742002-05-06 Elena Zannoni <ezannoni@redhat.com>
8475
8476 * gdbtypes.c (init_vector_type): New function.
8477 (build_builtin_type_vec128): Simplify the representation of SIMD
8478 registers.
8479 (build_gdbtypes): Initialize new builtin vector types.
8480 (_initialize_gdbtypes): Register new vector types with gdbarch.
8481 (builtin_type_v4_float, builtin_type_v4_int32,
8482 builtin_type_v8_int16, builtin_type_v16_int8,
8483 builtin_type_v2_int32, builtin_type_v4_int16,
8484 builtin_type_v8_int8): New (renamed) SIMD types.
8485
13e49980
MK
84862002-05-06 Mark Kettenis <kettenis@gnu.org>
8487
8488 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8489 (i387_fill_fxsave): Likewise.
8490
997b20b8
AO
84912002-05-05 Alexandre Oliva <aoliva@redhat.com>
8492
8493 * alpha-tdep.c (alpha_extract_return_value): Don't use
8494 non-constant array size in prototype.
8495
535c96ce
AC
84962002-05-04 Andrew Cagney <ac131313@redhat.com>
8497
8498 From Brian Taylor <briant at model dot com>:
8499 * ui-out.c (ui_out_field_core_addr): Use the function
8500 longest_local_hex_string_custom'to format addresses > 32 bits
8501 wide.
8502
8503 * ui-out.c (ui_out_field_core_addr): Update comment.
8504
bedfa57b
AC
85052002-05-04 Andrew Cagney <ac131313@redhat.com>
8506
8507 * stack.c (select_and_print_frame): Make static. Delete the
8508 parameter `level'.
8509 (func_command): Update call.
8510 (select_frame_command): Delete code computing the frame level.
8511 * frame.h (select_and_print_frame): Delete declaration.
8512
f621c63e
AC
85132002-05-04 Andrew Cagney <ac131313@redhat.com>
8514
8515 * sparc-tdep.c (sparc_get_saved_register): Comment why
8516 get_prev_frame call is safe.
8517
0f7d239c
AC
85182002-05-04 Andrew Cagney <ac131313@redhat.com>
8519
8520 * frame.h (select_frame): Delete level parameter.
8521 * stack.c (select_frame): Update. Use frame_relative_level to
8522 obtain the frame's level.
8523 (select_and_print_frame): Update call.
8524 (select_frame_command): Ditto.
8525 (up_silently_base): Ditto.
8526 (down_silently_base): Ditto.
8527 * ocd.c (ocd_start_remote): Ditto.
8528 * remote-rdp.c (remote_rdp_open): Ditto.
8529 * remote-mips.c (mips_initialize): Ditto.
8530 (common_open): Ditto.
8531 * remote-e7000.c (e7000_start_remote): Ditto.
8532 * m3-nat.c (select_thread): Ditto.
8533 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8534 (child_get_current_exception_event): Ditto.
8535 * varobj.c (varobj_create): Ditto.
8536 (varobj_update): Ditto.
8537 (c_value_of_root): Ditto.
8538 * tracepoint.c (finish_tfind_command): Ditto.
8539 * corelow.c (core_open): Ditto.
8540 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8541 * thread.c (info_threads_command): Ditto.
8542 (switch_to_thread): Ditto.
8543 * infrun.c (normal_stop): Ditto.
8544 (restore_selected_frame): Ditto.
8545 (restore_inferior_status): Ditto.
8546 * breakpoint.c (insert_breakpoints): Ditto.
8547 (watchpoint_check): Ditto.
8548 (bpstat_stop_status): Ditto.
8549 (do_enable_breakpoint): Ditto.
8550 * blockframe.c (flush_cached_frames): Ditto.
8551 (reinit_frame_cache): Ditto.
8552
71d6c7b1
AC
85532002-05-04 Andrew Cagney <ac131313@redhat.com>
8554
8555 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8556 maintainer.
8557
cda6c68a
JB
85582002-05-04 Jim Blandy <jimb@redhat.com>
8559
8560 * gdbtypes.c (replace_type): Doc fix.
8561
5c1c87f0
AC
85622002-05-04 Andrew Cagney <ac131313@redhat.com>
8563
8564 * valprint.c (strcat_longest): Delete commented out function.
8565 Update copyright.
8566
cd9bfe15
AC
85672002-05-04 Andrew Cagney <ac131313@redhat.com>
8568
8569 * MAINTAINERS: Mark a29k as deleted.
8570 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8571 Move new configurations to the top.
8572 * configure.tgt: Remove a29k.
8573 * config/a29k/tm-vx29k.h: Delete.
8574 * config/a29k/vx29k.mt: Delete.
8575 * config/a29k/tm-a29k.h: Delete.
8576 * config/a29k/a29k-udi.mt: Delete.
8577 * config/a29k/a29k.mt: Delete.
8578 * a29k-tdep.c: Delete.
8579 * remote-udi.c: Delete.
8580 * remote-mm.c: Delete.
8581 * remote-eb.c: Delete.
8582 * remote-adapt.c: Delete.
8583 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
8584 * config/s390/s390x.mt: Ditto.
8585 * config/s390/s390.mt: Ditto.
8586 * config/sparc/sparclynx.mh: Ditto.
8587 * config/sparc/linux.mh: Ditto.
8588 * config/pa/hppaosf.mh: Ditto.
8589 * config/pa/hppabsd.mh: Ditto.
8590 * config/ns32k/nbsd.mt: Ditto.
8591 * config/mips/vr5000.mt: Ditto.
8592 * config/m68k/sun3os4.mh: Ditto.
8593 * config/m68k/nbsd.mt: Ditto.
8594 * config/m68k/m68klynx.mh: Ditto.
8595 * config/m32r/m32r.mt: Ditto.
8596 * config/i386/x86-64linux.mt: Ditto.
8597 * config/i386/nbsdelf.mt: Ditto.
8598 * config/i386/nbsd.mt: Ditto.
8599 * config/i386/i386lynx.mh: Ditto.
8600
bf0c5130
AC
86012002-05-04 Andrew Cagney <ac131313@redhat.com>
8602
8603 * target.c (debug_print_register): New function. Handle oversize
8604 registers.
8605 (debug_to_fetch_registers): Call.
8606 (debug_to_store_registers): Call.
8607
2ae1c2d2
JB
86082002-05-03 Jim Blandy <jimb@redhat.com>
8609
13a393b0
JB
8610 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8611 (read_type): Doc fix.
8612 * gdbtypes.c (replace_type): Doc fix.
8613
2ae1c2d2
JB
8614 * stabsread.c (multiply_defined_struct): New complaint.
8615 (read_struct_type): If the type we were passed isn't empty, or
8616 incomplete, don't read the new struct type into it; complain,
8617 and return the original type unchanged. Take a new `type_code'
8618 argument, which is the type code for the new type.
8619 (read_type): Rather than storing the type's type code here, pass
8620 it as an argument to read_struct_type, and let that take care of
8621 storing it. That way, we don't overwrite the original type code,
8622 so read_struct_type can use it to decide whether we're overwriting
8623 something we shouldn't.
8624 (complain_about_struct_wipeout): New function.
8625
8de9bdc4
AC
86262002-05-03 Andrew Cagney <ac131313@redhat.com>
8627
8628 * gdbarch.sh: Assert that gdbarch is non-NULL.
8629 * gdbarch.c: Regenerate.
8630
f773fdbb
JM
86312002-05-03 Jason Merrill <jason@redhat.com>
8632
8633 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8634 and return NULL.
8635
0e04a514
ML
86362002-05-03 Michal Ludvig <mludvig@suse.cz>
8637
8638 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8639 (x86_64_dwarf2gdb_regno_map_length),
8640 (x86_64_dwarf2_reg_to_regnum): Added.
8641 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8642 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8643 (_initialize_x86_64_tdep): Synced with the change above.
8644 (x86_64_skip_prologue): Reformulated message.
8645
065432a8
PM
86462002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8647
8648 * f-exp.y: Also use new prev_lexptr variable
8649 to improve error reporting. Based on Michael Snyder
8650 2002-04-24 dated patch to c-exp.y.
8651 * jv-exp.y: Likewise.
8652 * m2-exp.y: Likewise.
8653
a3162708
EZ
86542002-05-02 Elena Zannoni <ezannoni@redhat.com>
8655
8656 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8657 we are dealing with vectors.
8658
03620c38
PM
86592002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8660
8661 * config/m68k/tm-nbsd.h: Obvious fix,
8662 correct machine name.
8663
6604db2e
PM
86642002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8665
8666 * p-typeprint.c (pascal_type_print_base): Add support
8667 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8668
0906b739
PM
86692002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8670
8671 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8672 for fondamental pascal 'char' type.
8673
e2625b33
PM
86742002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8675
8676 * p-lang.h (is_pascal_string_type): Declaration changed,
8677 new sixth argument of type char ** added.
361d1df0 8678 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
8679 changed. Args length_pos, length_size, string_pos, char_size
8680 can now be NULL. New argument arrayname set to the field
8681 name of the char array. Return value set to char array
8682 field index plus one.
361d1df0 8683 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
8684 is_pascal_string_type function.
8685
cf17c188
AC
86862002-05-02 Andrew Cagney <cagney@redhat.com>
8687
8688 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8689 <cagney@redhat.com> change.
8690 * gdbarch.c: Regenerate.
8691
52bca491
AC
86922002-05-02 Andrew Cagney <cagney@redhat.com>
8693
8694 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8695 before probing for a new one. Detect errorenous gdbarch_init
8696 functions.
8697 * gdbarch.c: Regenerate.
8698
d5e72505
AC
86992002-05-01 Andrew Cagney <cagney@redhat.com>
8700
8701 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8702 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8703 * config/v850/tm-v850.h: Ditto. Update copyright.
8704
af566d9f
AC
87052002-04-30 Andrew Cagney <ac131313@redhat.com>
8706
8707 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8708 current_gdbarch.
8709
880d85fa
MS
87102002-04-30 Michael Snyder <msnyder@redhat.com>
8711
94c30b78
MS
8712 * arm-tdep.c: Whitespace clean-ups.
8713 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
8714 should have been removed as part of 4/24 change.
8715
6f5987a6
KB
87162002-04-30 Kevin Buettner <kevinb@redhat.com>
8717
8718 * rs6000-tdep.c: Added comment describing how fpscr register
8719 numbers were chosen.
8720
1a113c93
MS
87212002-04-30 Michael Snyder <msnyder@redhat.com>
8722
8723 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8724
9a6f53fe
EZ
87252002-04-29 Elena Zannoni <ezannoni@redhat.com>
8726
8727 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8728 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8729 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8730
11ed25ac
KB
87312002-04-29 Kevin Buettner <kevinb@redhat.com>
8732
8733 From Louis Hamilton <hamilton@redhat.com>:
8734 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8735 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8736 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8737 not bfd-private xcoff data, to determine wordsize.
8738 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8739
ae232405
AC
87402002-04-29 Andrew Cagney <ac131313@redhat.com>
8741
8742 GDB 5.2 released from 5.2 branch.
8743
91fd20f7
ML
87442002-04-29 Michal Ludvig <mludvig@suse.cz>
8745
8746 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8747 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8748 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 8749
2dc5091b
EZ
87502002-04-29 Elena Zannoni <ezannoni@redhat.com>
8751
8752 * rs6000-tdep.c (rs6000_extract_return_value,
8753 rs6000_store_return_value): Handle returning vectors.
8754 (rs6000_gdbarch_init): Use
8755 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8756 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8757 New function.
8758 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8759 vectors.
8760 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8761 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 8762
2b9848d8
PM
87632002-04-24 Pierre Muller <ics.u-strasbg.fr>
8764
8765 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 8766 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
8767 with fprintf_unfiltered (gdb_stderr,...).
8768
f8d17dc5
PM
87692002-04-24 Pierre Muller <ics.u-strasbg.fr>
8770
8771 * remote-array.c (printf_monitor, write_monitor,
361d1df0 8772 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
8773 Replace fprintf (stderr,...
8774 with fprintf_unfiltered (gdb_stderr,....
8775 * remote-es.c: Likewise.
8776 * remote-os9k.c: Likewise.
8777 * remote-st.c: Likewise.
8778
2f2f1ad1
AS
87792002-04-28 Andreas Schwab <schwab@suse.de>
8780
8781 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8782 linux-proc.o and gcore.o.
8783
b6779aa2
AC
87842002-04-26 Michal Ludvig <mludvig@suse.cz>
8785
8786 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8787 code without frame pointers.
8788
7e57f5f4
AC
87892002-04-26 Andrew Cagney <ac131313@redhat.com>
8790
8791 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8792 ON_STACK is needed.
8793
2ceb85d0
BE
87942002-04-26 Ben Elliston <bje@redhat.com>
8795
8796 * target.c (do_xfer_memory): Correct reference to the new option
8797 "trust-readonly-sections".
8798
f5f8a009
EZ
87992002-04-26 Elena Zannoni <ezannoni@redhat.com>
8800
8801 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8802 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8803 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8804 vectors.
8805 (read_array_type): Record the fact that this array type is really a
8806 vector (i.e. are passed in by value).
8807
5868c862
JT
88082002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8809
8810 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8811 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8812 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8813 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8814 * alpha-linux-tdep.c: Include frame.h.
8815 (alpha_linux_sigcontext_addr): New function.
8816 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8817 alpha_linux_sigcontext_addr.
8818 * alpha-osf1-tdep.c: Include gdbcore.h.
8819 (alpha_osf1_sigcontext_addr): New function.
8820 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8821 alpha_osf1_sigcontext_addr.
8822 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8823 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8824
bfb01f37
AC
88252002-04-26 Andrew Cagney <ac131313@redhat.com>
8826
361d1df0 8827 * stack.c (selected_frame_level):
bfb01f37
AC
8828 (select_frame): Do not set selected_frame_level.
8829 * frame.h (selected_frame_level): Delete declaration.
8830
15813d3f
AC
88312002-04-26 Andrew Cagney <ac131313@redhat.com>
8832
8833 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8834 convert_from_func_ptr-addr when AIX / PowerOpen.
8835
6096c27a
AC
88362002-04-25 Andrew Cagney <ac131313@redhat.com>
8837
8838 * valops.c (hand_function_call): Call
8839 generic_save_call_dummy_addr.
8840 * frame.h (generic_save_call_dummy_addr): Declare.
8841 * blockframe.c (struct dummy_frame): Add fields call_lo and
8842 call_hi.
8843 (generic_find_dummy_frame): Check for PC in range call_lo to
8844 call_hi instead of entry_point_address.
8845 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8846 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8847 (generic_save_call_dummy_addr): New function.
8848
f510d44e
DM
88492002-04-24 David S. Miller <davem@redhat.com>
8850
8851 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8852 sparc_skip_prologue.
8853 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8854 information to find prologue when possible.
8855 (sparc_prologue_frameless_p): Call examine_prologue directly.
8856 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8857 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8858 second argument.
8859 (SKIP_PROLOGUE): Likewise.
8860
15d72a92
JT
88612002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8862
8863 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8864 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8865 indicate that the condition it was testing is always true.
8866 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8867 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8868 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8869
accc6d1f
JT
88702002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8871
8872 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8873 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8874 tdep->jb_pc and tdep->jb_elt_size.
8875 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8876 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8877 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8878 * alpha-nat.c (get_longjmp_target): Remove.
8879 (JB_ELEMENT_SIZE): Ditto.
8880 (JB_PC): Ditto.
8881 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8882 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8883 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8884 to alpha_get_longjmp_target.
8885 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8886 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8887 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8888
1bfdc549
AC
88892002-04-25 Andrew Cagney <ac131313@redhat.com>
8890
8891 * README: Update to GDB 5.2.
8892
1bd316f0
AC
88932002-04-25 Andrew Cagney <ac131313@redhat.com>
8894
8895 * gdbarch.sh (LC_ALL): Set to `c'.
8896
2e5ff58c
TR
88972002-04-25 Theodore A. Roth <troth@verinet.com>
8898
8899 * avr-tdep.c: Ran through gdb_indent.sh.
8900
e33ce519
TR
89012002-04-25 Theodore A. Roth <troth@verinet.com>
8902
8903 * MAINTAINERS: Add myself as AVR maintainer.
8904 * NEWS: Note new target avr.
8905
8818c391
TR
89062002-04-25 Theodore A. Roth <troth@verinet.com>
8907
8908 * Makefile.in: Add support for AVR target.
8909 * configure.tgt: Add support for AVR target.
8910 * avr-tdep.c: New file
8911 * config/avr/avr.mt: New file.
8912
79509c2d
TR
89132002-04-25 Theodore A. Roth <troth@verinet.com>
8914
8915 * MAINTAINERS: Add myself to write-after-approval.
8916
dac8068e
PM
89172002-04-24 Pierre Muller <ics.u-strasbg.fr>
8918
8919 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8920 with fprintf_unfiltered (gdb_stderr,....
8921
25bf3106
PM
89222002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8923
8924 Fix PR gdb/508.
8925 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8926
24467a86
PM
89272002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8928
8929 * p-exp.y: Also use new prev_lexptr variable
8930 to improve error reporting. Based on Michael Snyder
8931 2002-04-24 dated patch to c-exp.y.
8932
95b80706
JT
89332002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8934
8935 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8936 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8937 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8938 to 0.
8939 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8940 and struct value.
8941 (FUNCTION_START_OFFSET): Remove.
8942 (BREAKPOINT): Ditto.
8943
e90cc612
JT
89442002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8945
8946 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8947 * NEWS: Ditto.
8948
6c72f9f9
JT
89492002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8950
8951 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8952 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8953 alpha_linux_pc_in_sigtramp.
8954 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8955 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8956 alpha_osf1_pc_in_sigtramp.
8957 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8958 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8959 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8960 alphafbsd_pc_in_sigtramp.
8961 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8962 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8963 alphanbsd_pc_in_sigtramp.
8964 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8965 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8966
5e4f3379
JT
89672002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8968
8969 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8970
da8ca43d
JT
89712002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8972
8973 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8974 alphanbsd-tdep.c.
8975 (alphanbsd-nat.o): New dependency list.
8976 (alphanbsd-tdep.o): Ditto.
8977 * NEWS: Note new native NetBSD/alpha configuration.
8978 * alphanbsd-nat.c: New file.
8979 * alphanbsd-tdep.c: Ditto.
8980 * configure.host (alpha*-*-netbsd*): New host.
8981 * configure.tgt (alpha*-*-netbsd*): New target.
8982 * config/alpha/nbsd.mh: New file.
8983 * config/alpha/nbsd.mt: Ditto.
8984 * config/alpha/nm-nbsd.h: Ditto.
8985 * config/alpha/tm-nbsd.h: Ditto.
8986
36a6271d
JT
89872002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8988
8989 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8990 (alpha-osf1-tdep.o): New dependency list.
8991 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8992 and skip_sigtramp_frame members.
8993 * alpha-linux-tdep.c: Include gdbcore.h.
8994 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8995 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8996 * alpha-osf1-tdep.c: New file.
8997 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8998 alpha-osf1-dep.c.
8999 (alpha_frame_past_sigtramp_frame): New function.
9000 (alpha_dynamic_sigtramp_offset): Ditto.
9001 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9002 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9003 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9004 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9005 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9006 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9007 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9008 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9009 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9010 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9011 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9012 to find_solib_trampoline_target.
9013 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9014 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9015 (SKIP_TRAMPOLINE_CODE): Remove.
9016 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9017 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9018 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9019 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9020 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9021 (PROC_SIGTRAMP_MAGIC): Ditto.
9022 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9023 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9024 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9025 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9026 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9027
2f4bc57b
JT
90282002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9029
9030 * NEWS: Note that Alpha targets are now multi-arch.
9031
665132f9
MS
90322002-04-24 Michael Snyder <msnyder@redhat.com>
9033
9034 * parser-defs.h (prev_lexptr): New external variable.
9035 * parse.c (parse_exp_1): Set prev_lexptr to null before
9036 calling the language-specific parser.
9037 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9038 (yyerror): Use prev_lexptr in error reporting.
9039
32872fa7
DJ
90402002-04-24 Daniel Jacobowitz <drow@mvista.com>
9041
9042 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9043 * gregset.h: If FILL_FPXREGSET is defined, provide
9044 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9045 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9046 is defined, call fill_fpxregset.
9047
57e76fac
MS
90482002-04-24 Roland McGrath <roland@frob.com>
9049
9050 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9051 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9052 (supply_gregset, supply_fpregset): New functions.
9053
9054 * gnu-nat.c (gnu_find_memory_regions): New function.
9055 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9056 (gnu_xfer_memory): Add a cast.
9057
f43845b3
MS
90582002-04-24 Michael Snyder <msnyder@redhat.com>
9059
361d1df0 9060 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9061 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9062 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9063 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9064 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9065 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9066
a0abec03
AC
9067Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9068
9069 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9070 NUM_PSEUDO_REGS can be used.
9071
d7bd68ca
AC
90722002-04-24 Andrew Cagney <ac131313@redhat.com>
9073
9074 * arch-utils.h: Update copyright.
9075
9076 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9077 * gdbarch.h, gdbarch.c: Re-generate.
9078
9079 * inferior.h (IN_SIGTRAMP): Delete definition.
9080 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9081 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9082
9083 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9084 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9085 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9086 (find_proc_framesize): Ditto.
9087 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9088 (alpha_init_extra_frame_info): Ditto.
9089 * infrun.c (handle_inferior_event): Ditto.
9090 (handle_inferior_event): Ditto.
9091 (check_sigtramp2): Ditto.
9092 * blockframe.c (create_new_frame): Ditto.
9093 (get_prev_frame): Ditto.
9094 * ppc-linux-tdep.c: Update comments.
9095 * i386-linux-tdep.c: Update comments.
9096 * breakpoint.c (bpstat_what): Update comment.
9097
4867e41e
DM
90982002-04-24 David S. Miller <davem@redhat.com>
9099
21d83aa5
DM
9100 * i960-tdep.c (register_in_window_p): New function.
9101 (i960_find_saved_register): Use it instead of
9102 REGISTER_IN_WINDOW_P.
9103 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9104
4867e41e
DM
9105 * symtab.h (find_stab_function_addr): Kill extern.
9106 * minsyms.c (find_stab_function_addr): Remove from here...
9107 * dbxread.c: ... to here, and mark it static.
9108
69cdf6a2
DM
91092002-04-20 David S. Miller <davem@redhat.com>
9110
9111 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9112 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9113
5a595886
DM
91142002-04-21 David S. Miller <davem@redhat.com>
9115
9116 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9117 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9118 (vx_write_register): Likewise.
9119
1da1a192
JB
91202002-04-23 J. Brobecker <brobecker@gnat.com>
9121
9122 * source.c (is_regular_file): New function.
9123 (openp): Check wether file to open is a regular file
9124 to avoid opening directories.
9125
baa6f10b
JT
91262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9127
9128 * findvar.c (extract_signed_integer): Cast printf argument
9129 to suppress format warning.
9130 (extract_unsigned_integer): Likewise.
9131 * infcmd.c (registers_info): Likewise.
9132 * top.c (get_prompt_1): Likewise.
9133 * valops.c (value_assign): Likewise.
9134 * valprint.c (print_decimal): Likewise.
9135
b2c4da81
L
91362002-04-22 H.J. Lu (hjl@gnu.org)
9137
9138 * c-exp.y (typebase): Support
361d1df0 9139
b2c4da81
L
9140 [long|long long|short] [signed|unsigned] [int|]
9141
9142 and
9143
9144 signed [long|long long|short] int
9145
f267bd6a
JT
91462002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9147
9148 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9149 and vax-tdep.h.
9150 * vax-tdep.h: New file.
9151 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9152 Make several routines static.
9153 (vax_get_saved_register): New function.
9154 (vax_gdbarch_init): New function.
9155 (_initialize_vax_tdep): Register vax_gdbarch_init.
9156 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9157 Remove macros now under the control of gdbarch.
9158
da3c6d4a
MS
91592002-04-22 Michael Snyder <msnyder@redhat.com>
9160
11d3b27d
MS
9161 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9162 Some whitespace and coding standards tweaks.
da3c6d4a 9163
a33f7558
JT
91642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9165
9166 * vax-tdep.c: Include regcache.h.
9167 (vax_call_dummy_words): New.
9168 (sizeof_vax_call_dummy_words): New.
9169 (vax_fix_call_dummy): New function.
9170 (vax_saved_pc_after_call): Ditto.
9171 * config/vax/tm-vax.h: Don't include regcache.h.
9172 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9173 (CALL_DUMMY): Remove.
9174 (CALL_DUMMY_WORDS): Define.
9175 (SIZEOF_CALL_DUMMY_WORDS): Define.
9176 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9177
47a73475
MS
91782002-04-18 Michael Snyder <msnyder@redhat.com>
9179
9180 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9181
52efde73
JT
91822002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9183
9184 * vax-tdep.c (vax_frame_chain): New function.
9185 (vax_push_dummy_frame): Ditto.
9186 (vax_pop_frame): Ditto.
9187 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9188 (FRAMELESS_FUNCTION_INVOCATION): Use
9189 generic_frameless_function_invocation_not.
9190 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9191 (POP_FRAME): Use vax_pop_frame.
9192
ea74468c
JT
91932002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9194
9195 * vax-tdep.c (vax_store_struct_return): New function.
9196 (vax_extract_return_value): Ditto.
9197 (vax_store_return_value): Ditto.
9198 (vax_extract_struct_value_address): Ditto.
9199 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9200 vax_store_struct_return.
9201 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9202 (STORE_RETURN_VALUE): Use vax_store_return_value.
9203 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9204
5516aa92
JT
92052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9206
9207 * vax-tdep.c (vax_frame_saved_pc): New function.
9208 (vax_frame_args_address_correct): Ditto.
9209 (vax_frame_args_address): Ditto.
9210 (vax_frame_locals_address): Ditto.
9211 (vax_frame_num_args): Move code to be in proximity to
9212 other frame-related functions.
9213 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9214 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9215 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9216 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9217 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9218
36af0b35
L
92192002-04-22 H.J. Lu (hjl@gnu.org)
9220
9221 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9222 includedir.
9223
ab62c900
JT
92242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9225
9226 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9227 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9228 (FRAME_INIT_SAVED_REGS): New macro.
9229
7232b100
JT
92302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9231
9232 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9233
b70d2aee
JT
92342002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9235
9236 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9237 where needed.
9238 (fetch_osf_core_registers): Likewise.
9239 (supply_gregset): Likewise.
9240
a0e8a2d1 92412002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9242
a0e8a2d1
JB
9243 * symfile.h (get_section_index): Define.
9244 * symfile.c (get_section_index): New function.
9245 * mdebugread.c (SC_IS_SBSS): New macro.
9246 (SC_IS_BSS): Return true for the scBss storage class only, as
9247 the scSBss storage class refers to the .sbss section.
9248 (parse_partial_symbols): Discard the symbols which associated
9249 section does not exist.
9250 Make sure to use the .sbss section index for symbols which
9251 storage class is scBss, rather than using the .bss section index.
9252
51eb8b08
JT
92532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9254
9255 * vax-tdep.c: Update copyright years.
9256 (vax_register_name): New function.
9257 (vax_register_byte): Ditto.
9258 (vax_register_raw_size): Ditto.
9259 (vax_register_virtual_size): Ditto.
9260 (vax_register_virtual_type): Ditto.
9261 * config/vax/tm-vax.h: Update copyright years.
9262 (REGISTER_NAMES): Remove.
9263 (REGISTER_NAME): Define.
9264 (REGISTER_BYTE): Use vax_register_byte.
9265 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9266 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9267 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9268
6cc1c0a8
AC
92692002-04-21 Andrew Cagney <ac131313@redhat.com>
9270
9271 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9272 declaration
9273 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9274
9319a2fe
DM
92752002-04-21 David S. Miller <davem@redhat.com>
9276
9277 * arch-utils.c (generic_prologue_frameless_p): Kill
9278 SKIP_PROLOGUE_FRAMELESS_P code.
9279 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9280 references.
9281 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9282 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9283 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9284 references.
9285 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9286 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9287 (sparc_gdbarch_init): Pass it to
9288 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9289
e9ed6d01
JT
92902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9291
9292 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9293 (alphabsd-nat.o): New dependency list.
9294
36012033
JT
92952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9296
9297 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9298 alphafbsd-tdep.c.
9299 (alpha-linux-tdep.o): New dependency list.
9300 (alphafbsd-tdep.o): Likewise.
9301
3379287a
JT
93022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9303
9304 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9305 to here...
9306 * alpha-tdep.c: ...from here.
9307 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9308
4bcbd6cb
JT
93092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9310
9311 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9312 prototype from here...
9313 * alpha-tdep.h: ...to here.
9314
b31da25e
AC
93152002-04-21 Andrew Cagney <ac131313@redhat.com>
9316
9317 * frame.h (selected_frame_level): Document as deprecated.
9318 (frame_relative_level): Declare.
9319 * stack.c (frame_relative_level): New function.
9320 (selected_frame_level): Document as deprecated.
9321 (select_frame): Do not set the selected_frame_level.
9322
9323 * stack.c (frame_info, record_selected_frame): Update.
9324 (frame_command, current_frame_command): Update.
9325 (up_silently_base, up_command, down_silently_base): Update.
9326 (down_command): Update.
9327 * inflow.c (kill_command): Update.
9328 * tracepoint.c (finish_tfind_command): Update.
9329 * corelow.c (core_open): Update.
9330 * thread.c (info_threads_command): Update.
9331 (do_captured_thread_select): Update.
9332 * infcmd.c (finish_command): Update.
9333 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9334
9c1d6fe5
JT
93352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9336
9337 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9338
ab89facf
AC
93392002-04-21 Andrew Cagney <ac131313@redhat.com>
9340
9341 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9342 type const.
9343
82a4efa1
JT
93442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9345
9346 * alphafbsd-tdep.c: Update copyright years. Include
9347 alpha-tdep.h.
9348 (alphafbsd_use_struct_convention): Make static.
9349 (alphafbsd_init_abi): New function.
9350 (_initialize_alphafbsd_tdep): New function.
9351 * config/alpha/tm-fbsd.h: Update copyright years.
9352 (USE_STRUCT_CONVENTION): Remove.
9353
44dffaac
JT
93542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9355
9356 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9357 an Alpha ABI variant.
9358 (alpha_abi_handler_list): Declare.
9359 (alpha_gdbarch_register_os_abi): New function.
9360 (alpha_gdbarch_init): Give registered ABI variant handlers a
9361 chance to tweak the gdbarch once we have set up defaults.
9362 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9363
65585be4
JT
93642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9365
9366 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9367 to standard_coerce_float_to_double.
9368 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9369
d9b023cc
JT
93702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9371
9372 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9373 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9374 from gdbarch_tdep rather than a constant.
9375 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9376 the default text address for all Alpha Unix ABIs.
9377 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9378 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9379
dc129d82
JT
93802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9381
9382 * alpha-tdep.h: New file. Includes several Alpha target constants
9383 taken from...
9384 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9385 let gdbarch deal with.
9386 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9387 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9388 to dependency list.
9389 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9390 Alpha target register names.
9391 * alphabsd-nat.c: Likewise.
9392 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9393 Alpha target register names. Make serveral routines static.
9394 (alpha_get_saved_register): New function.
9395 (alpha_abi_names): New.
9396 (process_note_abi_tag_sections): New function.
9397 (get_elfosabi): New function.
9398 (alpha_gdbarch_init): New function.
9399 (alpha_dump_tdep): New function.
9400 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9401
d49d1e0a
AC
94022002-04-21 Andrew Cagney <ac131313@redhat.com>
9403
9404 * frame.c (find_saved_register): Delete #ifdef
9405 HAVE_REGISTER_WINDOWS code.
9406 * config/sparc/tm-sparc.h: Update comments.
9407 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9408
92e8c9ed
AC
94092002-04-21 Andrew Cagney <ac131313@redhat.com>
9410
9411 * i960-tdep.c (i960_find_saved_register): New function.
9412 (i960_get_saved_register): New function.
9413 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9414 (i960_get_saved_register): Declare.
9415 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9416
e1925118
DM
94172002-04-20 David S. Miller <davem@redhat.com>
9418
9419 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9420
29673b29
AC
94212002-04-20 Andrew Cagney <ac131313@redhat.com>
9422
9423 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9424 instead of NUM_PSEUDO_REGS.
9425
6c86dcd5
DM
94262002-04-20 David S. Miller <davem@redhat.com>
9427
9428 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9429 GDB_MULTI_ARCH_PARTIAL
9430 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9431 define, let tm-sp64.h do it.
9432
aa40ec90
JT
94332002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9434
9435 * frame.c (find_saved_register): Avoid a NULL pointer
9436 dereference and actually walk the frame list.
9437
0f79675b
AC
94382002-04-20 Andrew Cagney <ac131313@redhat.com>
9439
9440 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9441 sorted in most most-recent-used order. Document.
9442 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9443
f91305dd 94442002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
9445
9446 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9447 instead of ->prev.
9448 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9449 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9450 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9451 instead of ->prev.
9452
73d322b1
EZ
94532002-04-19 Elena Zannoni <ezannoni@redhat.com>
9454
9455 Fix PR gdb/471.
9456 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9457 (build_builtin_type_vec128): Ditto.
9458 (append_composite_type_field): Fix calculation of type length in
9459 union case.
9460
ccd9a834
EZ
94612002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9462
9463 * config/djgpp/README: Update.
9464
9465 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9466 compiler warnings.
9467
a57f9e49
JT
94682002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9469
9470 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9471 (alpha_setup_arbitrary_frame): ...to this.
9472 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9473 for alpha_setup_arbitrary_frame.
9474
f4f9705a
AC
94752002-04-18 Andrew Cagney <cagney@redhat.com>
9476
9477 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9478 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 9479
f4f9705a
AC
9480 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9481 * target.h (memory_breakpoint_from_pc): Update declaration.
9482 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9483
9484 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9485 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9486 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9487 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9488 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9489 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9490 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9491 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9492 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9493 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9494 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9495 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9496
9497 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9498 const pointer.
9499 * monitor.c (monitor_insert_breakpoint): Ditto.
9500 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9501
9502 * config/mcore/tm-mcore.h: Update copyright.
9503 * mem-break.c: Ditto.
9504 * xstormy16-tdep.c: Ditto.
9505
29f319b8
PM
95062002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9507
9508 * p-exp.y: Add precedence rule for '^' token.
9509 This removes the shift/reduce conflicts.
9510 Remove the comment concerning these shift/reduce conflicts.
9511
ebeac11a
EZ
95122002-04-18 Elena Zannoni <ezannoni@redhat.com>
9513
9514 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9515 (registers_powerpc_nofp): New register set for processors
9516 without floating point unit.
9517
27c31547
DM
95182002-04-18 David S. Miller <davem@redhat.com>
9519
9520 * MAINTAINERS: Add myself to write-after-approval.
9521
47a73475
MS
95222002-04-17 Michael Snyder <msnyder@redhat.com>
9523
9524 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9525
953836b2
AC
95262002-04-17 Andrew Cagney <ac131313@redhat.com>
9527
9528 * rs6000-tdep.c (frame_initial_stack_address): Use
9529 frame_register_read to read the alloca_reg.
9530
8b0d4340
AC
95312002-04-17 Andrew Cagney <ac131313@redhat.com>
9532
9533 * frame.c (find_saved_register): Find saved registers in the next
9534 not prev frame.
9535 Fix PR gdb/365.
9536
d8864532
AC
95372002-04-17 Andrew Cagney <ac131313@redhat.com>
9538
9539 * gdbarch.sh (LANG): Set to ``c''.
9540
36cc83a3 95412002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 9542
36cc83a3 9543 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 9544
2f4150cc 95452002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
9546
9547 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9548 Update copyright.
9549
628703c6 9550 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 9551 Also fix PR gdb/391.
361d1df0 9552
56157b4a
AC
95532002-04-14 Andrew Cagney <ac131313@redhat.com>
9554
9555 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9556 * aclocal.m4, configure: Re-generate.
9557 Fix PR gdb/391.
361d1df0 9558
6d1e3329
EZ
95592002-04-14 Elena Zannoni <ezannoni@redhat.com>
9560
9561 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9562 instead of tm_print_insn.
9563
cb06fa07
EZ
95642002-04-14 Elena Zannoni <ezannoni@redhat.com>
9565
9566 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9567
f208ba17
AC
95682002-04-14 Andrew Cagney <ac131313@redhat.com>
9569
9570 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9571 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9572 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9573
20f01a46
DH
95742002-04-12 Don Howard <dhoward@redhat.com>
9575
9576 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9577 max_user_call_depth.
9578 (init_cmd_lists): Initialize the new value;
9579 * cli/cli-script.c (execute_user_command): Limit the call depth of
9580 user defined commands. This avoids a core-dump when user commands
9581 are infinitly recursive.
9582
a88376a3
KB
95832002-04-12 Kevin Buettner <kevinb@redhat.com>
9584
9585 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9586 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9587 from tdep struct instead of DEFAULT_LR_SAVE.
9588 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9589 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9590 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9591
f2172603
MS
95922002-04-12 Michael Snyder <msnyder@redhat.com>
9593
694f61fb 9594 * Remote.c: Spelling fix.
20fe79c8
MS
9595 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9596 If no symbol found for "sbrk", try "_sbrk".
9597 (make_output_phdrs): Use bfd_section_name.
9598 (gcore_copy_callback): Use bfd_section_name.
62995fc4 9599 * eval.c: Indentation fix-ups.
169a7369
MS
9600 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9601 in case it gets applied to an address that is already
9602 in the instruction space.
de74f71f
MS
9603 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9604 * symfile.c: Fix indentation, long lines.
f2172603
MS
9605 * source.c: White space fix-up.
9606
cda5a58a
AC
96072002-04-12 Andrew Cagney <cagney@redhat.com>
9608
9609 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9610 * frame.c (frame_register_read): New function. Return non-zero on
9611 success.
9612 (read_relative_register_raw_bytes_for_frame): Delete.
9613 (read_relative_register_raw_bytes): Delete.
9614 * frame.h (frame_register_read): Declare.
9615 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9616 * sh-tdep.c: Ditto.
9617 * infcmd.c (do_registers_info): Ditto.
9618 * hppa-tdep.c: Ditto.
9619 * rs6000-tdep.c: Ditto.
9620 * h8500-tdep.c: Ditto.
9621 * mips-tdep.c: Ditto.
9622 * h8300-tdep.c: Ditto.
9623 * z8k-tdep.c: Ditto.
9624
2ea5f656
KB
96252002-04-12 Kevin Buettner <kevinb@redhat.com>
9626
9627 From Jimi X <jimix@watson.ibm.com>:
9628 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9629 64-bit SysV ABI.
9630
27b15785
KB
96312002-04-12 Kevin Buettner <kevinb@redhat.com>
9632
9633 From Jimi X <jimix@watson.ibm.com>:
9634 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9635 bfd info.
9636
5d57ee30
KB
96372002-04-12 Kevin Buettner <kevinb@redhat.com>
9638
9639 From Jimi X <jimix@watson.ibm.com>:
9640 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9641 register sets for these processor variants.
9642
bc1e36ca
DJ
96432002-04-11 Daniel Jacobowitz <drow@mvista.com>
9644
bc1e36ca
DJ
9645 * regformats/reg-ppc.dat: Support FPSCR.
9646
e3f36dbd
KB
96472002-04-11 Kevin Buettner <kevinb@redhat.com>
9648
9649 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9650 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9651 Add fpscr as an invalid/unfetchable register.
9652 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9653 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9654 (fill_fpregset): Add support for register fpscr.
9655 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9656 (fill_gregset): Account for the fact that register ``mq'' might
9657 not exist.
9658 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9659 (registers_power): Add fpscr to register set at slot 71.
9660 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9661 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9662
943c9c25
MS
96632002-04-11 Michael Snyder <msnyder@redhat.com>
9664
9665 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9666 * configure: Regenerate.
9667 * config.in: Regenerate.
9668 * acconfig.h: Add define for _SYSCALL32.
9669 * core-sol2.c: Remove #define _SYSCALL32.
9670 * solib-legacy.c: Remove #define _SYSCALL32.
9671
d8c0a2e7
AC
96722002-04-10 Andrew Cagney <ac131313@redhat.com>
9673
9674 * stack.c (select_frame): Cleanup internal error message, do not
9675 use %p.
9676
7cc19214
AC
96772002-04-10 Andrew Cagney <ac131313@redhat.com>
9678
9679 * stack.c (select_frame): Check that selected_frame and the
9680 specified level are as expected.
9681 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9682 Update copyright.
9683 * frame.h (struct frame_info): Add field `level'. Update
9684 copyright.
9685 Work-in-progress PR gdb/464.
9686
67a2b77e
AC
96872002-04-10 Andrew Cagney <ac131313@redhat.com>
9688
9689 * maint.c (maint_print_section_info): Rename print_section_info.
9690 (print_bfd_section_info, print_objfile_section_info): Update.
9691 * inferior.h (struct gdbarch): Add opaque declaration.
9692 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9693 * gdbarch.h: Regenerate.
9694
8cfda98c
ML
96952002-04-10 Michal Ludvig <mludvig@suse.cz>
9696
9697 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9698 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9699 (kernel_u_size): Added.
9700 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9701 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9702
ca439ad2 97032002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 9704
ca439ad2
JI
9705 * valarith.c (find_size_for_pointer_math): New function, either returns
9706 the size for a pointer's target, returns 1 for void *, or errors for
9707 incomplete types.
9708 (value_add, value_sub): use find_size_for_pointer_math.
9709
2f2893d9
DJ
97102002-04-09 Daniel Jacobowitz <drow@mvista.com>
9711
9712 * linux-low.c (linux_look_up_symbols): New hook.
9713 (linux_target_ops): Add linux_look_up_symbols.
9714 * remote-utils.c (decode_address): New function.
9715 (look_up_one_symbol): New function.
9716 * server.c (handle_query): Call target look_up_symbols hook.
9717 * server.h (look_up_one_symbol): Add prototype.
9718 * target.h (struct target_ops): Add look_up_symbols hook.
9719
96cb11df
AC
97202002-04-09 Andrew Cagney <ac131313@redhat.com>
9721
9722 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9723 override FP_REGNUM with frame->fp. Update copyright.
9724 * parse.c (num_std_regs, std_regs): Delete.
9725 (target_map_name_to_register): Do not search std_regs. Update
9726 function description.
9727 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9728 declarations. Update copyright.
9729 Fix PR gdb/251.
361d1df0 9730
97658e92
DJ
97312002-04-09 Daniel Jacobowitz <drow@mvista.com>
9732
9733 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9734 after the last symbol in a block.
9735
6044e3eb
PM
97362002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9737
9738 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9739 is non zero as a found symbol.
9740
0406ec40
AC
97412002-04-08 Andrew Cagney <ac131313@redhat.com>
9742
9743 * findvar.c: Include "builtin-regs.h".
9744 (value_of_register): Call value_of_builtin_reg when applicable.
9745 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9746 (target_map_name_to_register): Call
9747 builtin_reg_map_name_to_regnum.
9748 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9749 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9750 (builtin_regs_h): Define.
9751 (builtin-regs.o): New target.
9752 (findvar.o): Add $(builtin_regs_h).
9753 * builtin-regs.c, builtin-regs.h: New files.
9754 * std-regs.c: New file.
9755 Partial fix for PR gdb/251.
9756
56a6dfb9
KB
97572002-04-08 Kevin Buettner <kevinb@redhat.com>
9758
9759 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9760 it's no longer required.
9761
3a808432
AC
97622002-04-08 Andrew Cagney <ac131313@redhat.com>
9763
9764 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9765
7c40d541
KB
97662002-04-08 Kevin Buettner <kevinb@redhat.com>
9767
9768 From Jimi X <jimix@watson.ibm.com>:
9769 * rs6000-tdep.c (rs6000_software_single_step): Use
9770 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9771 and size. Use target_insert_breakpoint() and
9772 target_remove_breakpoint() to insert and remove breakpoints
9773 instead of explicit memory reads and writes.
9774
cc9836a8
KB
97752002-04-08 Kevin Buettner <kevinb@redhat.com>
9776
9777 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9778 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9779 ELF_OBJECT_FORMAT ifdef.
9780
7495d1dc
KB
97812002-04-08 Kevin Buettner <kevinb@redhat.com>
9782
9783 From Jimi X <jimix@watson.ibm.com>:
9784 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9785
4288e836
KB
97862002-04-08 Kevin Buettner <kevinb@redhat.com>
9787
9788 From Jimi X <jimix@watson.ibm.com>:
9789 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9790 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9791
a4e4e501
MK
97922002-04-07 Mark Kettenis <kettenis@gnu.org>
9793
9794 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9795 s/asprintf/xasprintf/.
9796 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9797
006defba
AC
97982002-04-07 Andrew Cagney <ac131313@redhat.com>
9799
9800 I believe Jeff Law denies responsability for this one:
9801 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9802 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9803 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9804 Work-around for PR gdb/366.
9805
7aa83cac
EZ
98062002-04-07 Elena Zannoni <ezannoni@redhat.com>
9807
9808 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9809 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9810 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9811
cf1fcca1
EZ
98122002-04-07 Elena Zannoni <ezannoni@redhat.com>
9813
9814 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9815 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9816 information.
9817
3f289e6f
AC
98182002-04-07 Andrew Cagney <ac131313@redhat.com>
9819
9820 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9821 maintainer.
9822
129188f6
AC
98232002-04-07 Andrew Cagney <ac131313@redhat.com>
9824
9825 * README (Reporting Bugs in GDB): Document the bug web page as the
9826 prefered way of submitting bugs.
9827 Fix PR gdb/402.
9828
1200cd6e
AC
98292002-04-06 Andrew Cagney <ac131313@redhat.com>
9830
9831 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9832 -1. Update comment.
9833 * gdbarch.h, gdbarch.c: Re-generate.
9834
2853c33c
AS
98352002-04-07 Andreas Schwab <schwab@suse.de>
9836
9837 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9838 buffer to regcache_collect.
9839
c2169756
AC
98402002-04-06 Andrew Cagney <ac131313@redhat.com>
9841
9842 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9843 * gdbarch.c, gdbarch.h: Re-generate.
9844
25f1b008
AC
98452002-04-06 Andrew Cagney <ac131313@redhat.com>
9846
9847 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9848 declaration. Fix -Werror.
9849
59263426
DJ
98502002-04-05 Daniel Jacobowitz <drow@mvista.com>
9851
9852 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9853 * gdbarch.c: Regenerate.
9854
f5db4da3
MS
98552002-04-05 Michael Snyder <msnyder@redhat.com>
9856
80f8a6eb
MS
9857 * breakpoint.c (clear_command): Rewrite middle section to
9858 combine two loops with identical control conditions.
9859 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
9860 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9861
ad3dcc5c
L
98622002-04-05 H.J. Lu (hjl@gnu.org)
9863
9864 * solib-svr4.c (bkpt_names): Add "__start".
9865
f32e7a74
AC
98662002-04-04 Andrew Cagney <ac131313@redhat.com>
9867
9868 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9869 as test for 64 bit target.
9870
8227c0ff
AC
98712002-04-05 Andrew Cagney <ac131313@redhat.com>
9872
9873 * h8500-tdep.c (h8500_write_fp): Delete function.
9874 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9875 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9876 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9878 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9879 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9880 (s390_write_fp):
9881 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9882 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9883 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9884 (d10v_write_fp): Delete function.
9885 * inferior.h (write_fp, generic_target_write_fp): Delete
9886 declarations.
9887 * regcache.c (generic_target_write_fp): Delete function.
9888 (write_fp): Delete function.
9889 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9890 * gdbarch.h, gdbarch.c: Regenerate.
9891 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9892 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9893 (sparc64_write_fp): Delete declaration.
9894 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9895 (h8500_write_fp): Delete declaration.
9896
2757dd86
AC
98972002-04-04 Andrew Cagney <ac131313@redhat.com>
9898
9899 * sparc-tdep.c (sparc64_write_fp): Delete.
9900 (sparc_push_dummy_frame): Replace write_fp call with code to store
9901 the FP directly.
9902 (sparc_gdbarch_init): Do not initialize write_fp.
9903
c69255e1
KB
99042002-04-05 Kevin Buettner <kevinb@redhat.com>
9905
9906 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9907 clause.
9908
ae767bfb
JB
99092002-03-29 Jim Blandy <jimb@redhat.com>
9910
9911 * stack.c (get_selected_block): Add new argument `addr_in_block',
9912 used to return the exact code address we used to select the block,
9913 not just the block.
9914 * blockframe.c (get_frame_block, get_current_block): Same.
9915 * frame.h (get_frame_block, get_current_block,
9916 get_selected_block): Update declarations.
9917 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9918 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9919
84d2ac95
MS
99202002-04-05 Michael Snyder <msnyder@redhat.com>
9921
9922 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9923 warning message.
9924
596aa3bf
JB
99252002-04-05 J. Brobecker <brobecker@gnat.com>
9926
9927 * utils.c (xfullpath): New function.
9928 * defs.h (xfullpath): Add declaration.
9929 * source.c (openp): Use xfullpath in place of gdb_realpath to
9930 avoid resolving the basename part of filenames when the
9931 associated file is a symbolic link. This fixes a potential
9932 inconsistency between the filenames known to GDB and the
9933 filenames it prints in the annotations.
9934 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9935 to be able to match a filename with either the real filename, or
9936 the name of any symbolic link to this file.
9937 (lookup_partial_symtab): Ditto.
9938
c02f5703
MS
99392002-04-04 Michael Snyder <msnyder@redhat.com>
9940
9941 * breakpoint.c: Add support for hardware breakpoints in overlays.
9942 (overlay_events_enabled): New state variable.
9943 (insert_breakpoints): Use overlay_events_enabled to decide
9944 whether to attempt to set a breakpoint at the overlay load addr.
9945 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9946 (remove_breakpoint): Use overlay_events_enabled to decide
9947 whether breakpoints need to be removed from overlay load addr.
9948 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9949 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 9950 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
9951 disable_overlay_breakpoints): Update overlay_events_enabled.
9952
5fb290d7
DJ
99532002-04-04 Daniel Jacobowitz <drow@mvista.com>
9954
9955 * dwarf2read.c (struct function_range): New.
9956 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9957 (check_cu_functions): New.
9958 (read_file_scope): Initialize global function lists.
9959 Call dwarf_decode_line after processing children.
9960 (read_func_scope): Add to global function list.
9961 (dwarf_decode_lines): Call check_cu_functions everywhere
9962 record_line is called. Call record_line with a linenumber
9963 of 0 to mark sequence ends.
9964
7b3fabf0
ML
99652002-04-04 Michal Ludvig <mludvig@suse.cz>
9966
361d1df0 9967 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
9968 change sync with glibc.
9969
bce58c09
JB
99702002-04-03 Jim Blandy <jimb@redhat.com>
9971
9972 * configure.in: Call AC_C_INLINE.
9973 * configure: Regenerated.
361d1df0 9974
2fccf04a
DJ
99752002-04-01 Daniel Jacobowitz <drow@mvista.com>
9976
9977 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9978 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9979
2d1bfe2e
MK
99802002-03-31 Mark Kettenis <kettenis@gnu.org>
9981
a5941fbf
MK
9982 * NEWS: Mention gcore support on FreeBSD/i386.
9983
a90cd31d
MK
9984 * fbsd-proc.c: New file.
9985 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9986 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9987
2d1bfe2e
MK
9988 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9989 while statement.
9990
9eb6e5a1
JB
99912002-03-29 Jim Blandy <jimb@redhat.com>
9992
9993 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9994 unescaped newlines in string literals, but newer ones don't. So
9995 escape them.
9996
f02df580
MS
99972002-03-26 Michael Snyder <msnyder@redhat.com>
9998 Andrew Cagney <cagney@redhat.com>
9999
361d1df0 10000 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10001 restore file to memory.
10002 * cli/cli-dump.h: New file.
10003 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10004 * NEWS: Mention new commands.
f02df580 10005
109f874e
MS
100062002-03-28 Michael Snyder <msnyder@redhat.com>
10007
10008 * symfile.c (symbol_file_add): Move test for null symbols to later.
10009
520f6ade
AC
100102002-03-27 Andrew Cagney <ac131313@redhat.com>
10011
10012 From veksler at il.ibm.com:
10013 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10014 the xstrduped original path.
10015 Fix PR gdb/417.
10016
d4654627
MS
100172002-03-27 Michael Snyder <msnyder@redhat.com>
10018
10019 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10020 * infcmd.c (_initialize_infcmd): Ditto.
10021 * language.c (_initialize_language): Ditto.
10022 * symfile.c (_initialize_symfile): Ditto.
10023 * top.c (_init_main): Ditto.
10024 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10025
6be8bc0c
EZ
100262002-03-27 Elena Zannoni <ezannoni@redhat.com>
10027
10028 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10029 vector registers handling.
10030 (skip_prologue): Handle new AltiVec instructions. Fill in new
10031 fields of frame data.
10032 (frame_get_saved_regs): Fill in information for AltiVec registers.
10033
12af6855
JB
100342002-03-27 Jim Blandy <jimb@redhat.com>
10035
10036 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10037 a function; leave this macro here to invoke that function.
10038 (symbol_init_mangled_name): Declaration for that function.
10039 * symtab.c (symbol_init_mangled_name): New function.
10040
dc672865
AC
100412002-03-27 Andrew Cagney <ac131313@redhat.com>
10042
10043 * valarith.c: Replace strerror with safe_strerror.
10044 * tracepoint.c: Ditto.
10045 * lin-lwp.c: Ditto.
10046 * go32-nat.c: Ditto.
10047 * inflow.c: Ditto.
10048 * gnu-nat.c: Ditto.
10049
d96429cd
AS
100502002-03-27 Andreas Schwab <schwab@suse.de>
10051
10052 * event-top.c (command_line_handler): Remove useless if.
10053
7e336ba1
AJ
100542002-03-27 Andreas Jaeger <aj@suse.de>
10055
10056 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10057 comment.
10058
de220d0f
ML
100592002-03-27 Michal Ludvig <mludvig@suse.cz>
10060
10061 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10062 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10063 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10064 (x86_64_linux_dr_get_status, supply_gregset),
10065 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10066 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10067 (x86_64_register_info_table): Add.
10068 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10069 (x86_64_register_raw_size, x86_64_register_virtual_type),
10070 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10071 general x86_64_register_info_table.
10072 (i386_gdbarch_init): gdbarch_register_bytes is now set
10073 dynamicaly during initialization.
10074 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10075 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10076
0e98d0a7
DJ
100772002-03-27 Daniel Jacobowitz <drow@mvista.com>
10078
10079 * gdbserver/server.c (main): Call target_signal_to_host_p
10080 and target_signal_to_host on signals received from the remote.
10081 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10082 target_signal_from_host on signals sent to the remote.
10083 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10084 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10085
3130066b
DJ
100862002-03-27 Daniel Jacobowitz <drow@mvista.com>
10087
10088 * signals/signals.c: Include "server.h" in gdbserver build.
10089 (target_signal_from_name): Don't use STREQ.
10090 (_initialize_signals): Likewise. Don't include function in
10091 gdbserver build.
10092
9aedf4f4
DJ
100932002-03-27 Daniel Jacobowitz <drow@mvista.com>
10094
10095 * signals.c: Moved to...
10096 * signals/signals.c: Here.
7e336ba1 10097 * Makefile (signals.o): Update.
9aedf4f4 10098
3fa41cdb
JL
100992002-03-26 Jeff Law (law@redhat.com)
10100
10101 * somread.c (som_symtab_read): Remove some commented out code and
10102 updated related comments. Do not set the minimal symbol table to
10103 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10104 in a dynamic executable.
10105 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10106 where we are unable to find the minimal symbol for the given
10107 PC value.
10108
ee677e8d
MS
101092002-03-25 Jeff Law (law@redhat.com)
10110
10111 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10112
e76e1718
ML
101132002-03-25 Michal Ludvig <mludvig@suse.cz>
10114
10115 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10116
18a642a1
AC
101172002-03-23 Andrew Cagney <ac131313@redhat.com>
10118
10119 * command.h: Update copyright.
10120 (struct cmd_list_element): Replace definition with opaque
10121 declaration.
10122 (enum cmd_types): Document that it will eventually be moved to
10123 cli/cli-decode.h
10124 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10125 (MALLOCED_REPLACEMENT): Delete macro.
10126 * Makefile.in (cli_decode_h): Add $(command_h).
10127 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10128 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10129 * completer.c: Include "cli/cli-decode.h".
10130 * maint.c: Include "cli/cli-decode.h".
10131 * cli/cli-decode.h: Include "command.h".
10132 (enum command_class): Delete.
10133 (enum cmd_types): Comment out.
10134 (enum cmd_auto_boolean): Delete.
10135 (enum var_types): Delete.
10136
b2875cc0
AC
101372002-03-23 Andrew Cagney <ac131313@redhat.com>
10138
10139 * cli/cli-decode.c: Include "gdb_assert.h".
10140 (add_set_or_show_cmd): New static function.
10141 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10142 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10143 all fields, such as func, from the set command.
10144
3b45974e
AC
101452002-03-23 Andrew Cagney <ac131313@redhat.com>
10146
10147 * MAINTAINERS (sh-elf): Change warning flag to -w.
10148
823ca731
AC
101492002-03-23 Andrew Cagney <cagney@redhat.com>
10150
10151 * defs.h (error): Add printf format attribute.
10152 * thread-db.c (thread_from_lwp): Fix error format string.
10153 * stack.c (parse_frame_specification): Ditto.
10154 * cli/cli-decode.c (undef_cmd_error): Ditto.
10155 * scm-lang.c (scm_lookup_name): Ditto.
10156 * tracepoint.c (trace_error): Ditto.
10157 * remote-utils.c (usage): Ditto.
10158 * remote.c (compare_sections_command): Ditto.
10159 Fix PR gdb/328.
10160
0e101458
AC
101612002-03-22 Andrew Cagney <ac131313@redhat.com>
10162
10163 * gdbtypes.c (append_composite_type_field): New function.
10164 (init_composite_type): New function.
10165 * gdbtypes.h (append_composite_type_field): Declare.
10166 (init_composite_type): Ditto.
10167
8e0662df
EZ
101682002-03-22 Elena Zannoni <ezannoni@redhat.com>
10169
10170 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10171 function.
8e0662df
EZ
10172 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10173 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10174 structure returning convention for SYSV ABI case, but not
10175 for GNU/Linux, FreeBSD, or NetBSD.
10176
3121eff0
DJ
101772002-03-22 Daniel Jacobowitz <drow@mvista.com>
10178
10179 * symtab.h (lookup_block_symbol): Add mangled_name argument
10180 to prototype.
10181
10182 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10183 with new mangled_name argument.
10184 * linespec.c (decode_line_1): Likewise.
10185 * valops (value_of_this): Likewise.
10186 * symtab.c (lookup_transparent_type): Likewise.
10187 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10188 (lookup_symbol): If we are given a mangled name, pass it down
10189 to lookup_symbol_aux.
10190 (lookup_block_symbol): If we are given a mangled name to check
10191 against, only return symbols which match it.
10192
349b409f
CF
101932002-03-22 Christopher Faylor <cgf@redhat.com>
10194
10195 * win32-nat.c (child_create_inferior): Check for proper shell to use
10196 here, in case the user changes it on the fly.
10197 (_initialize_inftarg): Remove shell path considerations.
10198
2a873819
EZ
101992002-03-21 Elena Zannoni <ezannoni@redhat.com>
10200
10201 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10202 for gdbarch_max_register_raw_size and max_register_virtual_size.
10203 Adjust copyright year.
10204
a1b9830c
DJ
102052002-03-21 Daniel Jacobowitz <drow@mvista.com>
10206
10207 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10208 in a function to cover the entire beginning of the function
10209 as well if it does not already.
10210
8b5790f2
TR
102112002-03-21 Tom Rix <trix@redhat.com>
10212
10213 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10214 (rs6000_ptrace64): Renamed from ptrace64.
10215
bdbe5747
MH
102162002-03-20 Martin M. Hunt <hunt@redhat.com>
10217
10218 * gdbserver/remote-utils.c (remote_open): Don't call
10219 getprotobyname, we're all using TCP here so just use
10220 IPPROTO_TCP.
7e336ba1 10221 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10222
102232002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10224
bdbe5747
MH
10225 * regcache.c (_initialize_regcache): No need to call
10226 build_regcache() at this time; it gets called whenever
10227 the gdbarch changes.
10228
7781cd62
DB
102292002-03-20 David O'Brien <obrien@FreeBSD.org>
10230
10231 * sparc-nat.c: Include sys/param.h where possible.
10232
f65ca430
DJ
102332002-03-20 Daniel Jacobowitz <drow@mvista.com>
10234
10235 Fix PR gdb/422.
10236 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10237 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10238 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10239 complex types.
10240 * stabsread.c (rs6000_builtin_type): Likewise.
10241 (read_sun_floating_type): Likewise.
10242
0c867556
PS
102432002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10244
10245 * stabsread.c (read_member_functions): Remove skip code for duplicate
10246 constructor/destructor methods. Use standard parsing for these
10247 methods and just do not chain them to the list of methods after
10248 parsing.
10249
12b9c64f
AO
102502002-03-19 Alexandre Oliva <aoliva@redhat.com>
10251
10252 * coffread.c: Remove redundant static declarations. Replace
10253 occurrences of `PTR' with `void *'.
10254 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10255 * top.h (quit_cover): Likewise.
10256 * defs.h (catch_errors): Likewise.
10257
349c5d5f
AC
102582002-03-18 Andrew Cagney <ac131313@redhat.com>
10259
10260 * defs.h (XMALLOC): Define.
10261 * gdb-events.sh (XMALLOC): Delete macro.
10262 * gdb-events.c, gdb-events.h: Regenerate.
10263 * gdbarch.sh (XMALLOC): Delete macro.
10264 * gdbarch.c: Regenerate.
10265 * serial.c (XMALLOC): Delete macro.
10266 * ui-file.c (XMALLOC): Ditto.
10267 * ser-unix.h (XMALLOC): Ditto.
10268 * sh-tdep.c (XMALLOC): Ditto.
10269 * ui-out.c (XMALLOC): Ditto.
10270 * utils.c (XMALLOC): Ditto.
10271 * i386-tdep.c (XMALLOC): Ditto.
10272 * gdb-events.c (XMALLOC): Ditto.
10273 * d10v-tdep.c (XMALLOC): Ditto.
10274 * cli-out.c (XMALLOC): Ditto.
10275
10276 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10277 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10278 * ui-file.c, ui-out.c: Ditto.
10279
7d0766f3
AC
102802002-03-18 Andrew Cagney <ac131313@redhat.com>
10281
10282 * command.h (struct cmd_list_element): Add field context.
10283 (set_cmd_context, get_cmd_context): Declare.
10284 * cli/cli-decode.h: Ditto.
10285 * cli/cli-decode.c (get_cmd_context): New function.
10286 (set_cmd_context): New function.
10287 (add_cmd): Initialize context.
10288 Part of fixing PR gdb/145 and PR gdb/146.
10289
5913bcb0
AC
102902002-03-17 Andrew Cagney <ac131313@redhat.com>
10291
1868c04e
AC
10292 * cli/cli-decode.c (cmd_type): New function.
10293 * command.h (cmd_type): Declare.
10294 * infrun.c (set_schedlock_func): Call function cmd_type.
10295 * kod.c (kod_set_os): Call cmd_type.
10296 * cris-tdep.c (cris_version_update): Use function cmd_type.
10297 (cris_mode_update, cris_abi_update): Ditto.
10298
5913bcb0
AC
10299 * command.h: (execute_cmd_post_hook): Declare.
10300 (execute_cmd_pre_hook): Declare.
10301 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10302 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10303 functions. Execute pre/post hook while ensuring that afterwords
10304 hook_in is cleared.
10305 * top.c (execute_command): Use execute_cmd_post_hook, and
10306 execute_cmd_pre_hook to execute pre/post commands.
10307 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10308 hook_stop_stub.
10309 (hook_stop_stub): Call execute_cmd_pre_hook.
10310
b51450c9
AC
103112002-03-17 Andrew Cagney <ac131313@redhat.com>
10312
10313 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10314 set'' and this leads to a core dump. Move xstrdup of
10315 operating_system to after check that it is not NULL.
10316
f66c9f11
AC
103172002-03-17 Andrew Cagney <ac131313@redhat.com>
10318
8e694ecf
AC
10319 * kod.c (kod_set_os): Remove unnecessary check that
10320 ``command->type'' is set_cmd.
10321
f66c9f11
AC
10322 * valprint.c (set_input_radix): Use input_radix.
10323 (set_output_radix): Use output_radix.
10324 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10325 isn't reverted.
10326
9d01611c
AC
103272002-03-16 Andrew Cagney <ac131313@redhat.com>
10328
10329 * value.h (struct value): Delete field ``substring_addr''. Change
10330 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10331 force_core_addr_align and force_pointer_aligh.
10332
10333 * value.h (struct value): Fix typo in above change.
9d01611c 10334
4156bb53
PS
103352002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10336
10337 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10338 to fix internal_error from ``maintenance print architecture''.
10339
0e5e3ea6
PS
103402002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10341
10342 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10343 for gcc versions after gcc-2.8.1.
10344
9b013045
PS
103452002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10346
10347 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10348 for method resolution. Restore adjustment of ``this'' pointer after
10349 calling value_struct_elt, which was accidentally removed during the
10350 HP merge.
10351
376c9600
AC
103522002-03-15 Andrew Cagney <ac131313@redhat.com>
10353
10354 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10355 value_of_register.
10356 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10357 get_saved_register.
10358 * value.h (value_of_register): Update.
10359
a4db0f07
RH
103602002-03-14 Richard Henderson <rth@redhat.com>
10361
10362 * configure.in: Detect declaration for canonicalize_file_name.
10363 * utils.c (canonicalize_file_name): Declare, if needed.
10364 (gdb_realpath): Prefer realpath if available and usable.
10365 * config.in, configure: Rebuild.
10366
96383835
RH
103672002-03-14 Richard Henderson <rth@redhat.com>
10368
10369 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10370 a constant array bound.
10371
10372 * MAINTAINERS: Add myself to write-after-approval.
10373
75245b24
MS
103742002-03-14 Michael Snyder <msnyder@redhat.com>
10375
10376 * symfile.c (syms_from_objfile): Return immediately if no syms.
10377 (symbol_file_add): Return immediately if no syms.
10378 (find_sym_fns): Return immediately if no syms.
10379
e641a1ca
ML
103802002-03-13 Michal Ludvig <mludvig@suse.cz>
10381
10382 * gdbserver/remote-util.c (remote_open): Print remote-side's
10383 IP address when remote debugging over the network.
7e336ba1 10384
df08bfec
DB
103852002-03-12 David O'Brien <obrien@FreeBSD.org>
10386
10387 * config/sparc/fbsd.mh: Fix copyright.
10388 * config/sparc/fbsd.mt: Likewise.
10389
9a57864f
RE
103902002-03-11 Richard Earnshaw <rearnsha@arm.com>
10391
10392 * MAINTAINERS: Fix typo in name of gdb warnings option.
10393 (x86-64): Fix formating so that this can be parsed by awk.
10394
dd7bf85e
DJ
103952002-03-10 Daniel Jacobowitz <drow@mvista.com>
10396
10397 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10398 * defs.h: Include "gdb/signals.h".
10399 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10400
33a0a2ac
ML
104012002-03-10 Michal Ludvig <mludvig@suse.cz>
10402
10403 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 10404 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
10405 from x86-64-tdep.h
10406
dd824b04
DJ
104072002-03-10 Daniel Jacobowitz <drow@mvista.com>
10408 Don Howard <dhoward@redhat.com>
10409
10410 * mips-tdep.c (ST0_FR): Define.
10411 (mips2_fp_compat): New function, temporarily disabled.
10412 (mips_read_fp_register_single): New function.
10413 (mips_read_fp_register_double): New function.
10414 (mips_print_register): Use them.
10415 (do_fp_register_row): Likewise.
10416
6a41ff59
AC
104172002-03-09 Andrew Cagney <ac131313@redhat.com>
10418
10419 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10420 approval''.
10421
4ea09c10
PS
104222002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10423
10424 * stabsread.c (read_member_functions): Fix is_stub test for
10425 static member functions, improve comment.
10426
6ccc741d
RE
104272002-03-07 Richard Earnshaw <rearnsha@arm.com>
10428
10429 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10430 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10431 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10432 commands that set boolean values.
10433 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10434 (arm_rdi_resume): Always initialize PC.
10435 (arm_rdi_open): Don't use rslt as a boolean.
10436 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10437 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10438 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10439 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10440
438013df
AO
104412002-03-06 Alexandre Oliva <aoliva@redhat.com>
10442
10443 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10444 * configure: Rebuilt.
10445
70ed8774
SC
104462002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10447
10448 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10449 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10450
5ba2abeb
AC
104512002-03-06 Andrew Cagney <ac131313@redhat.com>
10452
10453 * cli/cli-decode.c (set_cmd_completer): New function.
10454 * command.h (set_cmd_completer): Declare.
10455 * cli/cli-decode.h (set_cmd_completer): Ditto.
10456
10457 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10458 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10459 * win32-nat.c (_initialize_inftarg): Ditto.
10460 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10461 * proc-api.c (_initialize_proc_api): Ditto.
10462 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10463 * source.c (_initialize_source): Ditto.
10464 * exec.c (_initialize_exec): Ditto.
10465 * solib.c (_initialize_solib): Ditto.
10466 * top.c (init_main): Ditto.
10467 * tracepoint.c (_initialize_tracepoint): Ditto.
10468 * symfile.c (_initialize_symfile): Ditto.
10469 * printcmd.c (_initialize_printcmd): Ditto.
10470 * infcmd.c (_initialize_infcmd): Ditto.
10471 * corefile.c (_initialize_core): Ditto.
10472
f779ca99
AC
104732002-03-05 Andrew Cagney <ac131313@redhat.com>
10474
10475 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10476
01a3934b
AC
104772002-03-05 Andrew Cagney <ac131313@redhat.com>
10478
10479 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10480
37057839
AC
104812002-03-05 Andrew Cagney <ac131313@redhat.com>
10482
10483 * NEWS: Update headings, 5.2 has branched.
10484
c6ecbae5
DJ
104852002-03-04 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10488 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10489 (register_addr, REGISTER_RAW_SIZE): Likewise.
10490 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10491 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10492
e9f30c21
ML
104932002-03-03 Michal Ludvig <mludvig@suse.cz>
10494
10495 * MAINTAINERS (x86-64): Add myself.
10496 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10497 changed value_ptr -> struct value *
10498
54394ac3
DB
104992002-03-01 David O'Brien <obrien@FreeBSD.org>
10500
10501 * configure.host (sparc64-*-freebsd): Add.
10502 * configure.tgt: Likewise.
10503 * config/sparc/fbsd.mh: New file.
10504 * config/sparc/fbsd.mt: Likewise.
10505 * config/sparc/nm-fbsd.h: Likewise.
10506 * config/sparc/tm-fbsd.h: Likewise.
10507
bfe95955
DJ
105082002-03-01 Daniel Jacobowitz <drow@mvista.com>
10509
10510 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10511 regformats/reg-s390x.dat.
10512
f33c6cbf
AC
105132002-03-01 Andrew Cagney <ac131313@redhat.com>
10514
10515 * utils.c: Add FIXME explaining true/false problem.
10516
5ecaa7dd
AC
105172002-02-28 Andrew Cagney <ac131313@redhat.com>
10518
10519 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10520
2a251cc2
MC
105212002-02-28 Michael Chastain <mec@shout.net>
10522
10523 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10524
6a8031a3 105252002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
10526
10527 * gdbserver/linux-s390-low.c: New file.
10528 * regformats/reg-s390.dat: New file.
10529 * regformats/reg-s390x.dat: New file.
10530 * gdbserver/configure.srv: Add S/390.
10531 * gdbserver/Makefile.in: Add S/390.
10532 * configure.tgt: Enable gdbserver for S/390.
10533
ac469903
EZ
105342002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10535
10536 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10537 first line of the doc string for "info dos", except at the end of
10538 the sentence, since the short help stops at the first period.
10539
985cb1a3
JM
105402002-02-28 Jason Merrill <jason@redhat.com>
10541
10542 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10543
c570663e
FF
105442002-02-27 Fred Fish <fnf@redhat.com>
10545
10546 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10547 comment (dumy -> dummy).
10548
43630227
PS
105492002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10550
10551 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10552
b84911e8
RB
105532002-02-27 Rodney Brown <rbrown64@csc.com.au>
10554
10555 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10556
58caa3dc
DJ
105572002-02-27 Daniel Jacobowitz <drow@mvista.com>
10558
10559 * gdbserver/acconfig.h: New file.
10560 * gdbserver/i387-fp.c: New file.
10561 * gdbserver/i387-fp.h: New file.
10562 * gdbserver/linux-x86-64.c: New file.
10563 * regformats/reg-x86-64.dat: New file.
10564 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10565 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10566 * gdbserver/configure.in: Add support for regsets.
10567 * gdbserver/config.in: Regenerate.
10568 * gdbserver/configure: Regenerate.
10569 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10570 * gdbserver/linux-low.h: New file.
10571 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10572 for regsets.
10573 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10574 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10575 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10576 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10577 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10578 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10579 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10580 "i387-fp.h". Add PTRACE_GETREGS and friends.
10581 * gdbserver/regcache.c (supply_register): New function.
10582 (supply_register_by_name): New function.
10583 (collect_register): New function.
10584 (collect_register_by_name): New function.
10585
93652174
DJ
105862002-02-27 Daniel Jacobowitz <drow@mvista.com>
10587
10588 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10589 (config.status): Add configure.srv dependency.
10590 (server_h): Add config.h dependency.
10591
a02e4a61
DJ
105922002-02-27 Daniel Jacobowitz <drow@mvista.com>
10593
10594 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10595 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10596 * gdbserver/configure.srv: Change i386-*-linux* to use
10597 reg-i386-linux.o.
10598
ce0eebec
AC
105992002-02-26 Andrew Cagney <ac131313@redhat.com>
10600
10601 * x86-64-tdep.c: Re-indent. Update copyright date.
10602
82dbc5f7
AC
106032002-02-26 Andrew Cagney <ac131313@redhat.com>
10604
10605 From Michal Ludvig <mludvig@suse.cz>:
10606 * x86-64-tdep.c (value.h): Delete.
10607 (gdb_assert.h): Include.
10608 (x86_64_register_convert_to_virtual,
10609 x86_64_register_convert_to_raw ): Add check which lets only
10610 floating-point values to be converted.
10611 (value_push): Delete.
10612 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10613 (i386_gdbarch_init): Number of register_bytes fixed.
10614
e4621584
AC
106152002-02-26 Andrew Cagney <ac131313@redhat.com>
10616
10617 * MAINTAINERS: Add x86-64 target.
10618
81a9a963
AC
106192002-02-26 Andrew Cagney <ac131313@redhat.com>
10620
10621 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10622 * osfsolib.c (solib_map_sections): Ditto.
10623 * irix5-nat.c (solib_map_sections): Ditto.
10624 * corelow.c (gdb_check_format): Ditto.
10625 * symfile.c (symfile_bfd_open): Ditto.
10626 * solib.c (solib_map_sections): Ditto.
10627 Fix PR gdb/354.
7e336ba1 10628
0f017ab9
AC
106292002-02-26 Andrew Cagney <ac131313@redhat.com>
10630
10631 * remote.c (_initialize_remote): By default, disable ``e'' and
10632 ``E'' step out-of-range packets.
10633
75738c29
AS
106342002-02-26 Andreas Schwab <schwab@suse.de>
10635
10636 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10637 m68k_linux_frame_saved_pc.
10638 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10639 in_sigtramp.
10640 (SIGCONTEXT_PC_OFFSET): Remove.
10641 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10642 m68k_linux_sigtramp_saved_pc): New functions.
10643 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10644 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10645 (UCONTEXT_PC_OFFSET): Define.
10646 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10647 non-RT and RT signal trampolines.
10648
7e8ed687
RE
106492002-02-26 Richard Earnshaw <rearnsha@arm.com>
10650
10651 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10652 (TARGET_NBPG, STACK_END_ADDR): Delete
10653 (VARIABLES_INSIDE_BLOCK): Delete.
10654
6972bc8b
AC
106552002-02-25 Andrew Cagney <ac131313@redhat.com>
10656
10657 * utils.c (perror_with_name): Make string parameter constant.
10658 (print_sys_errmsg): Ditto.
10659 (query): Ditto.
10660 * defs.h (perror_with_name): Update.
10661 (print_sys_errmsg): Update.
10662 (query): Update.
10663
aa32f823
DJ
106642002-02-25 Daniel Jacobowitz <drow@mvista.com>
10665
10666 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10667 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10668
19caaa45
PS
106692002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10670
10671 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10672 if it already matches the current architecture from the exec file.
10673 Include arch-utils.h for gdbarch_info_init prototype.
10674 * Makefile.in (rs6000-nat.o): Update dependencies.
10675
d951901f
EZ
106762002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10677
10678 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10679 list of exported variables.
10680
7ea81414
DJ
106812002-02-24 Daniel Jacobowitz <drow@mvista.com>
10682
10683 * gdbserver/configure.srv: New file.
10684 * gdbserver/configure.in: Use configure.srv instead
10685 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10686 from it.
10687 * gdbserver/configure: Regenerated.
10688 * gdbserver/terminal.h: New file.
10689 * gdbserver/Makefile.in: Update for configure changes. Remove
10690 more unneeded include paths.
10691
080fe24b
AC
106922002-02-24 Andrew Cagney <ac131313@redhat.com>
10693
10694 From wiz at danbala:
10695 * config/sparc/tm-sp64.h: Fix grammar and typos.
10696 Fix PR gdb/287.
10697
8605d56e
AC
106982002-02-24 Andrew Cagney <ac131313@redhat.com>
10699
10700 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
10701 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10702 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10703 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
10704 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10705 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10706 * s390-tdep.c: Ditto.
92362027
AC
10707 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10708 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10709 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10710 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10711 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10712 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10713 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10714 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10715 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10716 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 10717 Fix PR gdb/378.
7e336ba1 10718
8ed32cc0
AC
107192002-02-23 Andrew Cagney <ac131313@redhat.com>
10720
a3007b6f
AC
10721 * lin-thread.c: Delete file.
10722 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10723 to gdb_proc_service.h.
10724 * configure: Re-generate.
10725
50a9e2f1
AC
10726 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10727 * serial.c (serial_open): Delete check for "ocd".
10728 Fix PR gdb/349.
10729
8b6e7932
AC
10730 * Makefile.in (linux-thread.o): Delete target.
10731 * linux-thread.c: Delete file.
10732
d155c46b
AC
10733 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10734 renamed SH files to be consistent.
10735
8ed32cc0
AC
10736 * symtab.c (sort_search_symbols): Use xfree.
10737
0e18d038
RE
107382002-02-23 Richard Earnshaw <rearnsha@arm.com>
10739
10740 * arm-linux-tdep.c (arm_linux_init_abi): Register
10741 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10742 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10743 definition with undef, since we don't want the sysvr4 definition.
10744 (SKIP_TRAMPOLINE_CODE): Likewise.
10745
27aac7ff
AC
107462002-02-23 Andrew Cagney <ac131313@redhat.com>
10747
10748 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10749
10750 * configure.in: (AC_CHECK_FUNCS) Added test for
10751 canonicalize_file_name Regenerated.
10752 * config.in, configure: Regenerated.
10753 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10754 defined use canonicalize_file_name.
7e336ba1 10755
65a6e0ee
MC
107562002-02-23 Michael Chastain <mec@shout.net>
10757
10758 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10759
47b95330
AC
107602002-02-23 Andrew Cagney <ac131313@redhat.com>
10761
10762 * README: Remove references to cygnus.com.
10763 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10764 dot com'' form. Remove references to cygnus.com and sourceware.
10765
696f451b
AC
107662002-02-23 Andrew Cagney <ac131313@redhat.com>
10767
10768 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10769 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10770 1003.1-2001 no longer allows "head -1".
10771 * gdb/Makefile.in (version.c): Likewise.
10772 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10773 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10774 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10775
bbaca940
AC
107762002-02-23 Andrew Cagney <ac131313@redhat.com>
10777
10778 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10779 * command.h (cmd_cfunc_eq): Declare.
10780 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10781
10782 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10783 ``struct cmd_list_element *''.
10784 * cli/cli-cmds.c (is_complete_command): Update. Use
10785 cmd_cfunc_eq.
10786 * top.c (execute_command): Pass the command to
10787 is_complete_command.
10788 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10789
b8b8b047
AC
107902002-02-23 Andrew Cagney <ac131313@redhat.com>
10791
10792 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10793 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10794 architecture defines.
10795 * s390-tdep.c (s390_gdbarch_init): Likewise.
10796
19d3fc80
RE
107972002-02-23 Richard Earnshaw <rearnsha@arm.com>
10798
10799 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10800 (arm_linux_push_arguments): Likewise.
10801 (arm_linux_init_abi): Register them. Also register linux-specific
10802 call_dummy_words.
10803 (find_minsym_and_objfile): Use strcmp, not STREQ.
10804 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10805 (arm_linux_call_dummy_words): Delete declaration.
10806 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10807 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10808 declarations.
10809 (LOWEST_PC): Delete.
10810
3ab13650
PS
108112002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10812
10813 * maint.c (print_section_info): Do not prepend `0x' to filepos
10814 output, it will be handled by local_hex_string_custom.
10815
19d3fc80 108162002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
10817
10818 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10819 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10820 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10821
d85a5daf
JB
108222002-02-22 Jim Blandy <jimb@redhat.com>
10823
10824 Indicate that the bcache functions don't change the strings
10825 they're passed.
10826 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10827 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10828
eeb25b8a
PM
108292002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10830
10831 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10832
6badb179
CF
108332002-02-21 Christopher Faylor <cgf@redhat.com>
10834
10835 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10836 find the complete path to a loaded DLL.
10837
e8717518
FF
108382002-02-21 Fred Fish <fnf@redhat.com>
10839
10840 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10841 that marks the end of the range of a function, enter a line number
10842 entry that has a line number of zero and a PC offset that matches
10843 the end of the function. This starts a range of PC's for which no
10844 line number information is known.
10845 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10846 PC's for which no line number info is found (line number is zero)
10847 then we didn't find any valid line information.
10848 * symtab.h: Document use of zero line number entry.
10849
9abe5450
EZ
108502002-02-21 Elena Zannoni <ezannoni@redhat.com>
10851
10852 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10853 (have_ptrace_getvrregs): Define for run time checks.
10854 (gdb_vrregset_t): New type for Altivec register handling.
10855 (fetch_register, store_register): Fetch/store altivec register
10856 when needed.
10857 (fetch_altivec_register, store_altivec_register): New functions.
10858 (supply_vrregset, fill_vrregset): New functions.
10859 (fetch_altivec_registers, store_altivec_registers): New functions.
10860 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10861 registers as well.
10862
aaa38bb5
AJ
108632002-02-21 Jiri Smid <smid@suse.cz>
10864
10865 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10866
b34db576
RE
108672002-02-21 Richard Earnshaw <rearnsha@arm.com>
10868
10869 * Makefile.in (armnbsd-nat.o): Update dependencies.
10870 * armnbsd-nat.c (supply_gregset): New function. Common code to
10871 supply the integer register set.
10872 (supply_fparegset): New function. Similar for FPA registers.
10873 (fetch_regs, fetch_fp_regs): Use them.
10874 (fetch_core_registers): Likewise.
10875 (fetch_elfcore_registers): New function.
10876 (arm_netbsd_elfcore_fns): New core-file type specification.
10877 (_initialize_arm_netbsd_nat): Register it.
10878
3e56fc4b
RE
108792002-02-21 Richard Earnshaw <rearnsha@arm.com>
10880
10881 * armnbsd-nat.c: Include gdbcore.h.
10882 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10883 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10884 'void' to declaration, to shut up ARI.
10885 (fetch_core_registers): Make static. Rewrite using supply_register.
10886 (arm_netbsd_core_fns): New core-file type specification.
10887 (_initialize_arm_netbsd_nat): New function.
10888
097f6b0b
CF
108892002-02-21 Christopher Faylor <cgf@redhat.com>
10890
10891 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10892 value.
10893
c914e0cc
CF
108942002-02-20 Christopher Faylor <cgf@redhat.com>
10895
10896 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10897 fails.
10898
385fa495
DJ
108992002-02-20 Daniel Jacobowitz <drow@mvista.com>
10900
10901 * jv-exp.y (parse_number): Change type of implicit longs
10902 to builtin_type_uint64.
10903
e5f1222d
DJ
109042002-02-20 Daniel Jacobowitz <drow@mvista.com>
10905
10906 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10907 to be an integer instead of a `union wait'.
10908
75c9abc6
DJ
109092002-02-20 Daniel Jacobowitz <drow@mvista.com>
10910
10911 * mips-linux-nat.c: Call the operating system GNU/Linux.
10912 * mips-linux-tdep.c: Likewise.
10913 * mips-tdep.c: Likewise.
10914
551792a5
DJ
109152002-02-20 Daniel Jacobowitz <drow@mvista.com>
10916
10917 Fix PR gdb/265.
10918 * jv-exp.y (parse_number): Handle 64-bit integers.
10919
ee6e2b82
DJ
109202002-02-20 Daniel Jacobowitz <drow@mvista.com>
10921
10922 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10923 AC_STDC_HEADERS to AC_HEADER_STDC.
10924 * gdbserver/configure: Regenerated.
10925
a48442a0
RE
109262002-02-20 Richard Earnshaw <rearnsha@arm.com>
10927
10928 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10929 is defined.
10930 * sparc-tdep.c (get_longjmp_target): Likewise.
10931
fe419ffc
RE
109322002-02-20 Richard Earnshaw <rearnsha@arm.com>
10933
10934 * News: Add news about ARM and Multi-arch. Mention the new target
10935 arm*-*-netbsd*.
10936
5832ed7e
JB
109372002-02-19 Jim Blandy <jimb@redhat.com>
10938
10939 * stabsread.c (error_type_complaint): Improve error message.
10940
84563040
DJ
109412002-02-19 Daniel Jacobowitz <drow@mvista.com>
10942
10943 * gdbserver/README: Update documentation.
10944 * gdbserver/configure.in: Update configury to match documentation.
10945 * gdbserver/Makefile.in: Likewise.
10946 * gdbserver/configure: Regenerated.
10947 * gdbserver/aclocal.m4: New file, generated by aclocal.
10948 * gdbserver/config.in: New file, generated by autoheader.
10949
375fd65b
RE
109502002-02-19 Richard Earnshaw <rearnsha@arm.com>
10951
10952 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10953 armnbsd-nat.c.
10954
08216dd7
RE
109552002-02-19 Richard Earnshaw <rearnsha@arm.com>
10956
10957 * arm-tdep.h (enum arm_float_model): New enum.
10958 (struct gdbarch_tdep): Add fp_model.
10959 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10960 up floating-point conversions until we know the floating-point model
10961 in use by the inferior. Don't complain about being unable to
10962 determine the ABI of the inferior when we don't have one.
10963 (arm_extract_return_value): Support different floating-point models.
10964 (arm_store_return_value): Likewise.
aaa38bb5 10965 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
10966 ARM_FLOAT_SOFT.
10967 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10968
65d6d66a
PS
109692002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10970
10971 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10972 of ``current_gdbarch''.
10973
47221191
RE
109742002-02-19 Richard Earnshaw <rearnsha@arm.com>
10975
10976 * armnbsd-nat.c : ANSIfy all function declarations.
10977 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10978 (fetch_inferior_registers): Re-implement in terms of above.
10979 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10980 (store_inferior_registers): Re-implement in terms of above.
10981
fdf39c9a
RE
109822002-02-19 Richard Earnshaw <rearnsha@arm.com>
10983
aaa38bb5 10984 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
10985 kernel.
10986 * arm-linux-tdep.c: Likewise.
10987 * config/arm/tm-linux.h: Likewise.
10988
93247f88
RE
109892002-02-19 Richard Earnshaw <rearnsha@arm.com>
10990
10991 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10992 * config/arm/nbsd.mt (TM_FILE): Delete.
10993 * config/arm/tm-nbsd.h: Delete.
10994
d7b486e7
RE
109952002-02-19 Richard Earnshaw <rearnsha@arm.com>
10996
10997 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10998 Initialize CALL_DUMMY_LENGTH.
10999
41d39a95
RE
110002002-02-19 Richard Earnshaw <rearnsha@arm.com>
11001
11002 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11003 function.
11004 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11005 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11006 defines one thing and that is incorrect for this port.
11007 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11008
e1195560
PM
110092002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11010
11011 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11012
c1748f97
PM
110132002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11014
11015 * win32-nat.c (display_selector): New function. Displays information
11016 about the information returned by GetThreadSelectorEntry API function.
11017 (display_selectors): New function. Displays the infomation of
11018 the selector given as argument, or of CS, DS ans FS selectors
11019 if no argument is given.
11020 ( _initialize_inftarg): Add "w32" as info prefix command.
11021 Add "info w32 selector" as command calling display_selectors.
11022
e41e6bbf
PM
110232002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11024
11025 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11026 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11027 if not defined.
11028
0d3a9f48
RE
110292002-02-18 Richard Earnshaw <rearnsha@arm.com>
11030
11031 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11032
3fb4b924
RE
110332002-02-18 Richard Earnshaw <rearnsha@arm.com>
11034
11035 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11036 (arm_fix_call_dummy): Call it.
11037 (arm_call_dummy_breakpoint_offset): Delete.
11038 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11039 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11040
7f55af32
AC
110412002-02-18 Andrew Cagney <ac131313@redhat.com>
11042
11043 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11044 Default to func_frame_chain_valid.
11045 * gdbarch.h, gdbarch.c: Re-generate.
11046 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11047
05f13b9c
EZ
110482002-02-18 Elena Zannoni <ezannoni@redhat.com>
11049
11050 * ppc-linux-nat.c: Update copyright.
11051 (fetch_register, store_register): Add tid parameter, don't compute
11052 tid here.
11053 (fetch_ppc_registers, store_ppc_registers): Add tid
11054 parameter. Pass it along to callees.
11055 (fetch_inferior_registers, store_inferior_registers): Compute tid
11056 here, and pass it to calleed functions.
11057 (fill_gregset, supply_fpregset): Clean up formatting.
11058
d7afb4c9
RE
110592002-02-18 Richard Earnshaw <rearnsha@arm.com>
11060
11061 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11062 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11063
9df628e0
RE
110642002-02-18 Richard Earnshaw <rearnsha@arm.com>
11065
11066 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11067 * gdbarch.c gdbarch.h: Regenerate.
11068 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11069 function.
11070 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11071 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11072 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11073
11074 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11075 * arm-tdep.c (arm_get_longjmp_target): New function.
11076 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11077 this to a positive value register arm_get_longjmp_target as the
11078 longjmp handler.
11079 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11080 (arm_linux_init_abi): Set up longjmp description in tdep.
11081 * armnbsd-nat.c (get_longjmp_target): Delete.
11082 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11083 description in tdep.
11084 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11085 (get_longjmp_target): Delete declaration.
11086 (GET_LONGJMP_TARGET): Delete.
11087 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11088 (GET_LONGJMP_TARGET): Delete.
11089
57bc8964
KB
110902002-02-17 Kevin Buettner <kevinb@redhat.com>
11091
11092 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11093 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11094 of ``current_gdbarch''.
11095
83d31a92
TT
110962002-02-17 Tom Tromey <tromey@redhat.com>
11097
11098 * cli/cli-cmds.c (compare_strings): New function.
11099 (complete_command): Only print each unique item once.
11100 * completer.h (complete_line): Declare.
11101 * completer.c (complete_line): New function.
11102 (line_completion_function): Use it.
11103
17ef5d92
AC
111042002-02-16 Andrew Cagney <ac131313@redhat.com>
11105
11106 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11107 * gdbarch.h, gdbarch.c: Re-generate.
11108
491b8946
DJ
111092002-02-16 Daniel Jacobowitz <drow@mvista.com>
11110
11111 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11112
111132002-02-16 Daniel Jacobowitz <drow@mvista.com>
11114
11115 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11116 * valops.c (value_arg_coerce): Don't take the address of a reference
11117 to convert an argument to a reference.
11118
dfe7f3ac
CF
111192002-02-15 Christopher Faylor <cgf@redhat.com>
11120
11121 * win32-nat.c (get_image_name): New function.
11122 (handle_load_dll): Use get_image_name function.
11123 (get_child_debug_event): Avoid registering debug events until possibly
11124 execed process is started.
11125 (child_create_inferior): Allow invocation via shell so that command
11126 line redirection, etc. works ok.
11127 (_initialize_inftarg): Add new command: "set shell" to control whether
11128 a shell is used to start a process.
11129
1d33e73a
DJ
111302002-02-15 Daniel Jacobowitz <drow@mvista.com>
11131
11132 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11133 instead of find_register_by_number.
11134 (cannot_store_register): Likewise.
11135
48cd0caa
PM
111362002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11137
aaa38bb5 11138 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11139 fprintf_unfiltered (gdb_stderr, ...).
11140
8656e7d8
DJ
111412002-02-15 Daniel Jacobowitz <drow@mvista.com>
11142
11143 * gdbserver/gdbserver.1: Document --attach.
11144
66e810cd
RE
111452002-02-15 Richard Earnshaw <rearnsha@arm.com>
11146
11147 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11148 descriptions.
11149 * arm-tdep.c (arm_default_arm_le_breakpoint)
11150 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11151 (arm_default_thumb_be_breakpoint): New. Initialize them from
11152 traditional breakpoint defines.
11153 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11154 (arm_gdbarch_init): Initialize new breakpoint variables.
11155 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11156 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11157 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11158 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11159 code out to ...
11160 (arm_netbsd_init_abi_common): ... here; new function.
11161 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11162 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11163 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11164 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11165
97e03143
RE
111662002-02-15 Richard Earnshaw <rearnsha@arm.com>
11167
11168 * arm-tdep.h (enum arm_abi): New enum.
11169 (struct gdbarch_tdep): New structure.
11170 (LOWEST_PC): Provide a default.
11171 (arm_gdbarch_register_os_abi): Declare new function.
11172 * arm-tdep.c (arm_abi_names): New array.
11173 (process_note_abi_tag_sections): New function.
11174 (get_elfosabi): New function.
11175 (arm_gdbarch_register_os_abi): New function.
11176 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11177 support for that ABI has been built in, then call the appropriate
11178 configuration routine. Use gdbarch_num_regs() to get the number
11179 of registers.
11180 (arm_dump_tdep): New function.
11181 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11182 place-holder functions.
11183 (_initialize_arm_tdep): Register them.
11184 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11185
11186 * armnbsd-tdep.c: New file.
11187 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11188 * config/arm/nbsd.mt (TDEPFILES): Add it.
11189 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11190
11191 * armnbsd-nat.c: Include regcache.h.
11192 * Makefile.in (armnbsd-nat.o): Update dependency list.
11193
11194 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11195
ad68be46
DJ
111962002-02-14 Daniel Jacobowitz <drow@mvista.com>
11197
11198 * gdbserver/Makefile.in: Fix typos in target rules.
11199
003d6d1d
DJ
112002002-02-14 Daniel Jacobowitz <drow@mvista.com>
11201
aaa38bb5 11202 Fix part of PR gdb/267.
003d6d1d
DJ
11203 * linespec.c (find_methods): Handle constructors specially for now.
11204
6b230f1b
CV
112052002-02-14 Corinna Vinschen <vinschen@redhat.com>
11206
11207 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11208 handling.
11209 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11210 standard_coerce_float_to_double().
11211
1ea98d12
CF
112122002-02-14 Christopher Faylor <cgf@redhat.com>
11213
11214 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11215 GDBINIT_FILENAME.
11216
dd47e6fd
EZ
112172002-02-14 Elena Zannoni <ezannoni@redhat.com>
11218
11219 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11220 find_variant_by_name, because it confuses the multiarch
11221 framework. Return NULL if there isn't an architecture with the
11222 user supplied name, instead of forcing a different one without
11223 recording the change with the multiarch machinery.
11224 (find_variant_by_name): Delete.
11225
d7e39b9e
PS
112262002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11227
11228 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11229 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11230
76e42a4f
MH
112312002-02-13 Martin M. Hunt <hunt@redhat.com>
11232
aaa38bb5 11233 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11234 print_frame_info_listing_hook, set current_source_symtab.
11235
0a30fbc4
DJ
112362002-02-14 Daniel Jacobowitz <drow@mvista.com>
11237
11238 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11239 and remove unused $(INCLUDE_DIR).
11240 Add regcache.c to OBS.
11241 Add generated register protocol files to clean target.
11242 Update dependencies for new objects, obsolete old target code.
11243
11244 * gdbserver/linux-low.c: Remove all platform-specific code to
11245 new files. Remove various dead code. Update to use regcache
11246 functionality.
11247 * gdbserver/remote-utils.c (fromhex): Add return statement
11248 to quiet warning.
11249 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11250 constant.
11251 (input_interrupt): Add integer parameter to match prototype
11252 of a signal handler.
11253 (outreg): Use register_data ().
11254 (prepare_resume_reply): Use gdbserver_expedite_regs.
11255 * gdbserver/server.c (main): Dynamically allocate own_buf because
11256 PBUFSIZ is no longer constant. Use registers_to_string () and
11257 registers_from_string ().
11258 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11259 for error (), fatal (), and warning (). Update definition of
11260 PBUFSIZ to use regcache functionality. Add include guard.
11261 * gdbserver/utils.c (fatal): Add missing ``const''.
11262 (warning): New function.
11263
11264 * regformats/regdat.sh: Include "regcache.h" in generated files.
11265 Provide init_registers () function.
11266 * regformats/regdef.h: Add prototype for set_register_cache ().
11267 Add include guard.
11268
11269 * gdbserver/linux-arm-low.c: New file.
11270 * gdbserver/linux-i386-low.c: New file.
11271 * gdbserver/linux-ia64-low.c: New file.
11272 * gdbserver/linux-m68k-low.c: New file.
11273 * gdbserver/linux-mips-low.c: New file.
11274 * gdbserver/linux-ppc-low.c: New file.
11275 * gdbserver/linux-sh-low.c: New file.
11276
11277 * gdbserver/regcache.c: New file.
11278 * gdbserver/regcache.h: New file.
11279
11280 * gdbserver/low-linux.c: Removed obsolete file.
11281
4cc841d0
DJ
112822002-02-14 Daniel Jacobowitz <drow@mvista.com>
11283
11284 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11285 * config/i386/linux.mt: Likewise.
11286 * config/ia64/linux.mt: Likewise.
11287 * config/m68k/linux.mh: Likewise.
11288 * config/powerpc/linux.mh: Likewise.
11289 * config/mips/linux.mt: Likewise.
11290
11291 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11292
11293 * config/i386/i386lynx.mh: Mark gdbserver variables
11294 as (currently) obsolete for this target.
11295 * config/i386/nbsd.mt: Likewise.
11296 * config/i386/nbsdelf.mt: Likewise.
11297 * config/m32r/m32r.mt: Likewise.
11298 * config/m68k/m68klynx.mh: Likewise.
11299 * config/m68k/nbsd.mt: Likewise.
11300 * config/m68k/sun3os4.mh: Likewise.
11301 * config/mips/vr5000.mt: Likewise.
11302 * config/ns32k/nbsd.mt: Likewise.
11303 * config/pa/hppabsd.mh: Likewise.
11304 * config/pa/hppaosf.mh: Likewise.
11305 * config/powerpc/nbsd.mt: Likewise.
11306 * config/rs6000/rs6000lynx.mh: Likewise.
11307 * config/s390/s390.mt: Likewise.
11308 * config/s390/s390x.mt: Likewise.
11309 * config/sparc/sparclynx.mh: Likewise.
11310 * config/sparc/sun4os4.mh: Likewise.
11311 * config/i386/x86-64linux.mt: Likewise.
11312 * config/sparc/linux.mh: Likewise.
11313
a85f51e7
DJ
113142002-02-14 Daniel Jacobowitz <drow@mvista.com>
11315
11316 * configure.tgt: Configure gdbserver only for known working
11317 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11318 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11319 SUBDIRS if it is configured. Update comment for ${nativefile}.
11320 * configure: Regenerated.
11321
65554fef
MS
113222002-02-13 Michael Snyder <msnyder@redhat.com>
11323
670a52db
MS
11324 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11325
6dbdc4a3
MS
11326 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11327 (default_gcore_mach): Just return 0, work around a problem in bfd.
11328 (default_gcore_target): OK to return NULL if exec_bfd is null.
11329 (make_mem_sec): Use a cast, avoid a warning.
11330
11331 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11332 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11333 sizeof (host pointer) != sizeof (target pointer)).
11334 (procfs_make_note_section): Avoid overflow in psargs string.
11335
aaa38bb5 11336 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11337 implementation return an error.
11338
113392002-02-13 Rodney Brown <rbrown64@csc.com.au>
11340
11341 * procfs.c (procfs_make_note_section): Provide a default definition
11342 (for alpha-dec-osf4.0f). Fix typos.
11343
1e4d76e7
EZ
113442002-02-13 Elena Zannoni <ezannoni@redhat.com>
11345
11346 * linux-proc.c: Add include of regcache.h.
11347 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11348
b6d1a1d5
AC
113492002-02-13 Andrew Cagney <ac131313@redhat.com>
11350
11351 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11352 * memattr.c (create_mem_region): Disallow useless empty region.
11353 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11354 non-overlapping.
b6d1a1d5 11355
6c6ea35e
MC
113562002-02-13 Michael Chastain <mec@shout.net>
11357
11358 * defs.h: Kill CONST_PTR.
11359 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11360 * c-lang.c (c_builtin_types): Likewise.
11361 * ch-lang.c (ch_builtin_types): Likewise.
11362 * f-lang.c (f_builtin_types): Likewise.
11363 * language.c (unknown_builtin_types): Likewise.
11364 * m2-lang.c (m2_builtin_types): Likewise.
11365 * p-lang.c (pascal_builtin_types): Likewise.
11366 * scm-lang.c (c_builtin_types): Likewise.
11367
3e0b0f48
KS
113682002-02-13 Keith Seitz <keiths@redhat.com>
11369
11370 * arm-tdep.h (arm_get_next_pc): Add declaration.
11371
67255d04
RE
113722002-02-13 Richard Earnshaw <rearnsha@arm.com>
11373
11374 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11375 with other related struct-returning functions.
11376 (arm_extract_struct_value_address): New function.
11377 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11378 initialize float_format, double_format and long_double_format as
11379 appropriate to the endianness of the target.
11380 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11381 (arm_use_struct_convention): Delete declaration.
11382 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11383
079777f6
KS
113842002-02-13 Keith Seitz <keiths@redhat.com>
11385
11386 * defs.h (core_addr_to_string_nz): New function.
11387
34588f23
MK
113882002-02-13 Mark Kettenis <kettenis@gnu.org>
11389
11390 Apply missing bits of 2002-01-15 patch.
11391 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11392 (fill_fpregset): Use i387_fill_fsave.
11393
49b563f9
KS
113942002-02-12 Keith Seitz <keiths@redhat.com>
11395
49b563f9
KS
11396 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11397 (core_addr_to_string_nz): New function.
11398
aeb98c60
RE
113992002-02-11 Richard Earnshaw <rearnsha@arm.com>
11400
11401 * arm-linux-nat.c: Really include arm-tdep.h.
11402 * config/arm/tm-linux.h (struct type, struct value): Declare.
11403
65554fef
MS
114042002-02-11 Michael Snyder <msnyder@redhat.com>
11405
11406 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11407 (gcore section): Ifdef for Solaris and Unixware only.
11408 (procfs_do_thread_registers): Unixware needs one lwpstatus
11409 per thread (not one prstatus or pstatus).
11410 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11411 not over all gdb threads. For unixware, call elfcore_write_pstatus
11412 once before iterating over threads.
11413
34e8f22d
RE
114142002-02-11 Richard Earnshaw <rearnsha@arm.com>
11415
11416 * arm-tdep.h: New file.
11417 * arm-tdep.c: Include arm-tdep.h.
11418 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11419 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11420 (arm_print_float_info, arm_register_type, convert_to_extended)
11421 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11422 (arm_extract_return_value, arm_register_name): Make static.
11423 (arm_software_single_step): Similarly. Fix types in declaration.
11424 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11425 (arm_store_return_value, arm_store_struct_return): New functions.
11426 (arm_gdbarch_init): Register the above functions. Also register
11427 call_dummy_start_offset, sizeof_call_dummy_words,
11428 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11429 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 11430 max_register_virtual_size, register_size. Set up
34e8f22d
RE
11431 prologue_cache.saved_regs here, rather than ...
11432 (_initialize_arm_tdep): ... here.
11433 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11434 declarations.
11435 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11436 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11437 (arm_print_float_info, arm_register_type, convert_to_extended)
11438 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11439 (arm_extract_return_value, arm_register_name): Delete declarations.
11440 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11441 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11442 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11443 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11444 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11445 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11446 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11447 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11448 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11449 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11450 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11451 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11452 interface.
11453 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11454 * remote-rdi.c remote-rdp.c: Likewise.
11455 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11456 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11457 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11458 definition.
11459
11460 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11461 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11462 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11463 from non-ARM_ prefixed definitions.
11464 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11465 all uses of above.
11466 * remote-rdi.c remote-rdp.c: Likewise.
11467 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11468
148754e5
RE
114692002-02-11 Richard Earnshaw <rearnsha@arm.com>
11470
11471 * arm-tdep.c (arm_frameless_function_invocation)
11472 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11473 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11474 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11475 (arm_pop_frame, arm_get_next_pc): Make static.
11476 (arm_gdbarch_init): Register above in gdbarch structure.
11477 (arm_read_fp): Renamed from arm_target_read_fp.
11478 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11479 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11480 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11481 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11482 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11483 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11484 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
11485 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11486 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11487 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11488 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 11489
434d2d4f
DJ
114902002-02-10 Daniel Jacobowitz <drow@mvista.com>
11491
11492 * symtab.c (compare_search_syms): New function.
11493 (sort_search_symbols): New function.
11494 (search_symbols): Sort symbols after searching rather than
11495 before.
11496
55241689
AC
114972002-02-10 Andrew Cagney <ac131313@redhat.com>
11498
11499 * NEWS: Linux -> GNU/Linux.
11500
028c194b
AC
115012002-02-10 Andrew Cagney <ac131313@redhat.com>
11502
11503 * gdbarch.sh: For for level one methods, disallow a definition
11504 when partially multi-arched. Add comments explaining rationale.
11505 * gdbarch.h: Re-generate.
11506
6acf50cd
AC
115072002-02-10 Andrew Cagney <ac131313@redhat.com>
11508
11509 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11510 multi-arch partial.
aaa38bb5 11511
50248794
AC
115122002-02-10 Andrew Cagney <ac131313@redhat.com>
11513
11514 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11515 field. Use diff -u.
11516 * gdbarch.c: Re-generate.
11517
c30e0066
AC
115182002-02-10 Andrew Cagney <ac131313@redhat.com>
11519
9b56c5f3 11520 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
11521 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11522 partial.
11523
6e6d6484
AC
115242002-02-10 Andrew Cagney <ac131313@redhat.com>
11525
11526 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11527 multi-arch partial.
11528 (PUSH_ARGUMENTS): Switch to using predefault.
11529 * gdbarch.c: Regenerate.
11530
c203844d
AC
115312002-02-10 Andrew Cagney <ac131313@redhat.com>
11532
11533 * valops.c (PUSH_ARGUMENTS): Delete definition.
11534 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11535 partial. Default to default_push_arguments.
11536 * gdbarch.h, gdbarch.c: Regenerate.
11537
b5a2688f
AC
115382002-02-09 Andrew Cagney <ac131313@redhat.com>
11539
11540 * defs.h (throw_exception): Rename return_to_top_level. Update
11541 comments.
11542 * utils.c (error_stream, internal_verror, quit): Ditto.
11543 * top.c (throw_exception, catcher): Ditto.
11544 * sparclet-rom.c (sparclet_load): Ditto.
11545 * remote.c (interrupt_query, minitelnet): Ditto.
11546 * remote-sds.c (interrupt_query): Ditto.
11547 * remote-mips.c (mips_error, mips_kill): Ditto.
11548 * ocd.c (interrupt_query): Ditto.
11549 * monitor.c (monitor_interrupt_query): Ditto.
11550 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11551 * target.h: Update comment.
aaa38bb5 11552
b5a2688f 11553 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 11554
2fa5c1e0
AC
115552002-02-09 Andrew Cagney <ac131313@redhat.com>
11556
11557 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11558 default_double_format.
11559 * gdbarch.h, gdbarch.c: Re-generate.
11560 * findvar.c (floatformat_unknown): Delete variable definition.
11561 * doublest.h (floatformat_unknown): Delete variable declaration.
11562
da966255
JB
115632002-02-09 Jim Blandy <jimb@redhat.com>
11564
11565 * stabsread.c (read_type): Add code to parse Sun's syntax for
11566 prototyped function types.
11567
123a4891
AC
115682002-02-09 Andrew Cagney <ac131313@redhat.com>
11569
11570 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11571 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11572
fb39c8f3
PS
115732002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11574
11575 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11576 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11577 now _initialize_xcoffsolib gets called again and overrides the
11578 commands from solib.c in a native configuration.
11579
0b87a11d
MK
115802002-02-09 Mark Kettenis <kettenis@gnu.org>
11581
11582 * doublest.c (store_typed_floating): Don't try to return a value.
11583 Fixes PR gdb/290.
11584
bdc2fc72
JB
115852002-02-08 Jim Blandy <jimb@redhat.com>
11586
11587 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11588 is prototyped and has no arguments, print its argument list as
11589 `(void)'.
11590
da69bbcf
CD
115912002-02-08 Chris Demetriou <cgd@broadcom.com>
11592
11593 * MAINTAINERS (write-after-approval): Add myself.
11594 (paper-trail): I've escaped!
aaa38bb5 11595
b69571f5
CF
115962002-02-08 Christopher Faylor <cgf@redhat.com>
11597
11598 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11599 changes.
11600 (_initialize_check_for_gdb_ini): Ditto.
11601
f6871398
MH
116022002-02-08 Martin M. Hunt <hunt@redhat.com>
11603
11604 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11605 xaprintf -> xasprintf.
11606
4e52d31c
PM
116072002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11608
11609 * win32-nat.c: Remove use of printf and sprintf functions.
11610
39bbf761
RE
116112002-02-08 Richard Earnshaw <rearnsha@arm.com>
11612
11613 * arm-tdep.c (arm_frame_chain_valid): Make static.
11614 (arm_push_arguments): Likewise.
11615 (arm_gdbarch_init): New function.
11616 (_initialize_arm_tdep): Call it.
11617 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11618 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11619 (FRAME_CHAIN_VALID): Delete.
11620 (arm_frame_chain_valid): Delete declaration.
11621 (PUSH_ARGUMENTS): Delete.
11622 (arm_push_arguments): Delete declaration.
11623 (CALL_DUMMY_P): Delete.
11624
9c9532c9
CV
116252002-02-08 Andrew Cagney <ac131313@redhat.com>
11626 Corinna Vinschen <vinschen@redhat.com>
11627
11628 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11629 on builtin float types.
11630
4e8f7a8b
DJ
116312002-02-08 Daniel Jacobowitz <drow@mvista.com>
11632
11633 * utils.c: Include <curses.h> before "bfd.h".
11634 * tui/tui-hooks.c: Likewise.
11635 * tui/tui.c: Likewise.
11636 * tui/tuiCommand.c: Likewise.
11637 * tui/tuiData.c: Likewise.
11638 * tui/tuiDataWin.c: Likewise.
11639 * tui/tuiDisassem.c: Likewise.
11640 * tui/tuiGeneralWin.c: Likewise.
11641 * tui/tuiIO.c: Likewise.
11642 * tui/tuiLayout.c: Likewise.
11643 * tui/tuiRegs.c: Likewise.
11644 * tui/tuiSource.c: Likewise.
11645 * tui/tuiSourceWin.c: Likewise.
11646 * tui/tuiStack.c: Likewise.
11647 * tui/tuiWin.c: Likewise.
11648
cd4bffcf
EZ
116492002-02-07 Elena Zannoni <ezannoni@redhat.com>
11650
11651 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11652 to include space for pseudoregs as well. Update loops accordingly.
11653 (sh_fp_frame_init_saved_regs): Ditto.
11654 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11655
26806ce2
AC
116562002-02-07 Andrew Cagney <ac131313@redhat.com>
11657
11658 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11659 Add Richard Earnshaw to Arm maintainers.
11660
97fdab62
AC
116612002-02-07 Andrew Cagney <ac131313@redhat.com>
11662
a6b98203
AC
11663 * defs.h (warning_begin): Delete declaration.
11664
97fdab62
AC
11665 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11666 Delete macro.
11667
78b29b40
MS
116682002-02-07 Michael Snyder <msnyder@redhat.com>
11669
aaa38bb5 11670 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
11671 Logic bug, remove misplaced else.
11672
d8849953
KD
116732002-02-07 Klee Dienes <klee@apple.com>
11674
11675 * fork-inferior.c (fork_inferior): Add '!' to the list of
11676 characters that need to be quoted when building a string for the
11677 shell. Quote '!' specifically with a backslash, since CSH chokes
11678 when trying to evaluate "str!str".
aaa38bb5 11679
095778a0
NC
116802002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11681
11682 * rdi-share/host.h: Only provide a typedef for bool if it is not
11683 defined.
11684
1900040c
MS
116852002-02-04 Michael Snyder <msnyder@redhat.com>
11686
11687 * breakpoint.h (enum bptype): Add new overlay event bp type.
11688 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 11689
1900040c
MS
11690 * breakpoint.c (create_internal_breakpoint): New function.
11691 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11692 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11693 (create_thread_event_breakpoint): Ditto.
11694 (create_solib_event_breakpoint): Ditto.
11695 (create_overlay_event_breakpoint): New function.
11696 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11697 (update_breakpoints_after_exec): Delete and re-initialize
11698 overlay event breakpoints after an exec. Add FIXME comment
11699 about longjmp breakpoint.
11700 (print_it_typical): Ignore overlay event breakpoints.
11701 (print_one_breakpoint): Ditto.
11702 (mention): Ditto.
11703 (bpstat_what): Do not stop for overlay event breakpoints.
11704 (delete_breakpoint): Don't delete overlay event breakpoints.
11705 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11706 (breakpoint_re_set): Re-create overlay event breakpoint.
11707
11708 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11709 (overlay_manual_command): Disable overlay breakpoints.
11710 (overlay_off_command): Disable overlay breakpoints.
11711
082fc60d
RE
117122002-02-06 Richard Earnshaw <rearnsha@arm.com>
11713
11714 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11715 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11716 to here from config/tm-arm.h.
11717 (coff_sym_is_thumb): Make static.
11718 (arm_elf_make_msymbol_special): New function.
11719 (arm_coff_make_msymbol_special): New function.
11720 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11721 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11722 (coff_sym_is_thumb): Delete declaration.
11723 (arm_elf_make_msymbol_special): Declare.
11724 (arm_coff_make_msymbol_special): Declare.
11725 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11726 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11727
039c5766
RE
117282002-02-06 Richard Earnshaw <rearnsha@arm.com>
11729
11730 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11731
117322002-02-06 Richard Earnshaw <rearnsha@arm.com>
11733
11734 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11735 * gdbarch.c gdbarch.h: Regenerate.
11736 * arch-utils.c (default_print_float_info): New function.
11737 * arch-utils.h (default_print_float_info): Prototype it.
11738 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11739 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11740 (PRINT_FLOAT_INFO): Document it.
11741
11742 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11743 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11744 (PRINT_FLOAT_INFO): Define.
11745
58fa08f0
PM
117462002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11747
aaa38bb5 11748 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
11749 Add typecast to sprintf argument to suppress a warning.
11750
7393af7c
PM
117512002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11752
58fa08f0 11753 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
11754 to allow easier handling of pass state.
11755 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11756 that gives exception name and address.
11757 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 11758 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 11759 exceptions added.
aaa38bb5
AJ
11760 (child_continue): Correctly report continue_status.
11761 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 11762 TARGET_SIGNAL_0 (new default value).
aaa38bb5 11763 (child_resume): consider sig argument passed to decide if
7393af7c
PM
11764 the exception should be passed to debuggee or not.
11765
6af4589c
MS
117662002-02-05 Michael Snyder <msnyder@redhat.com>
11767
11768 * regcache.c (fetch_register): Call target_fetch_register
11769 only if we don't call FETCH_PSEUDO_REGISTER.
11770 (store_register): Call target_store_register only if we
11771 don't call STORE_PSEUDO_REGISTER.
11772
a2cf933a
EZ
117732002-02-05 Elena Zannoni <ezannoni@redhat.com>
11774
11775 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11776 ELF_MAKE_MSYMBOL_SPECIAL.
11777 * gdbarch.c, gdbarch.h: Regenerate.
11778 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 11779 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
11780 * elfread.c (elf_symtab_read): Compile use of
11781 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11782 multiarched.
11783 * coffread.c (coff_symtab_read): Ditto, for
11784 COFF_MAKE_MSYMBOL_SPECIAL.
11785
6bb7be43
JB
117862002-02-05 Jim Blandy <jimb@redhat.com>
11787
11788 * solib-svr4.c (svr4_truncate_ptr): New function.
11789 (svr4_relocate_section_addresses): Do the address arithmetic with
11790 the appropriate truncation for target addresses, even when
11791 CORE_ADDR is larger than a target address.
11792
e18651ec
DJ
117932002-02-05 Daniel Jacobowitz <drow@mvista.com>
11794
11795 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11796 to (int *).
11797
6b2725be
DJ
117982002-02-05 Daniel Jacobowitz <drow@mvista.com>
11799
11800 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11801 code.
11802
fca9e603
DJ
118032002-02-05 Daniel Jacobowitz <drow@mvista.com>
11804
11805 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11806
6c537a52
DJ
118072002-02-05 Daniel Jacobowitz <drow@mvista.com>
11808
11809 * gdbserver/linux-low.c: Remove unused include files.
11810
d844cde6
DJ
118112002-02-05 Daniel Jacobowitz <drow@mvista.com>
11812
11813 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11814 (read_inferior_memory): Use it.
11815 (write_inferior_memory): Likewise.
11816
d07c63e7
DJ
118172002-02-05 Daniel Jacobowitz <drow@mvista.com>
11818
11819 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11820 grubbing through sys_errlist.
11821
da6d8c04
DJ
118222002-02-05 Daniel Jacobowitz <drow@mvista.com>
11823
11824 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11825
5b421780
PM
118262002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11827 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11828
9f60d481
AC
118292002-02-04 Andrew Cagney <ac131313@redhat.com>
11830
11831 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11832 (do_sfunc, set_cmd_sfunc): New functions.
11833
11834 * command.h (struct cmd_list_element): Add field func.
11835 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11836 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11837 * cli/cli-decode.h: Ditto.
11838
11839 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11840 (help_all, help_cmd_list): Ditto.
11841 (find_cmd, complete_on_cmdlist): Ditto.
11842 * top.c (execute_command): Ditto.
11843
11844 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11845 function.sfunc.
11846
11847 * infcmd.c (notice_args_read): Fix function signature.
11848
11849 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11850 * cli/cli-decode.c (add_set_cmd): Ditto.
11851 * utils.c (initialize_utils): Ditto.
11852 * maint.c (_initialize_maint_cmds): Ditto.
11853 * infrun.c (_initialize_infrun): Ditto.
11854 * demangle.c (_initialize_demangler): Ditto.
11855 * remote.c (add_packet_config_cmd): Ditto.
11856 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11857 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11858 * proc-api.c (_initialize_proc_api): Ditto.
11859 * kod.c (_initialize_kod): Ditto.
11860 * valprint.c (_initialize_valprint): Ditto.
11861 * top.c (init_main): Ditto.
11862 * infcmd.c (_initialize_infcmd): Ditto.
11863 * corefile.c (_initialize_core): Ditto.
11864 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11865 * arch-utils.c (initialize_current_architecture): Ditto.
11866 (_initialize_gdbarch_utils): Ditto.
11867 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11868
11869 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11870 * wince.c (_initialize_inftarg): Ditto.
11871 * symfile.c (_initialize_symfile): Ditto.
11872 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11873 * language.c (_initialize_language): Ditto.
11874 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11875
f9ba0717
MS
118762002-02-04 Michael Snyder <msnyder@redhat.com>
11877
11878 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11879
0c74b2a7
DJ
118802002-02-04 Daniel Jacobowitz <drow@mvista.com>
11881
11882 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11883 Add rules for building the register data files.
11884
c638789f
DJ
118852002-02-04 Daniel Jacobowitz <drow@mvista.com>
11886
11887 * regformats/regdat.sh: Add braces to the definition of
11888 expedite_regs_${arch}.
11889
db253027
DJ
118902002-02-04 Daniel Jacobowitz <drow@mvista.com>
11891
11892 * regformats/regdef.h (struct reg): Add comment describing the
11893 requirements for offset and size fields.
11894
206be19c
AS
118952002-02-04 Andreas Schwab <schwab@suse.de>
11896
11897 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11898 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11899
181c1381
RE
119002002-02-04 Richard Earnshaw <rearnsha@arm.com>
11901
11902 * gdbarch.sh (copyright): Update years in generated header.
11903 (SMASH_TEXT_ADDRESS): Add rule.
db253027 11904 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
11905 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11906 * dbxread.c: Likewise.
11907 * dwarfread.c: Likewise.
11908 * elfread.c: Likewise.
11909 * somread.c: Likewise.
11910
11911 * arm-tdep.c (arm_smash_text_address): New function.
11912 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11913
fa4ba8da
PM
119142002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11915
11916 Add support for hardware watchpoints on win32 native.
aaa38bb5 11917 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 11918 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 11919 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
11920 of debug registers.
11921 (debug_registers_changed): New variable. Reflects when debug registers
11922 are changed and need to be written to inferior.
aaa38bb5 11923 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
11924 was set, used when new threads are created.
11925 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11926 i386-nat code.
11927 (thread_rec): Set dr array if id is the thread of current_event .
11928 (child_continue, child_resume): Change the debug registers for all
11929 threads if debug_registers_changed.
11930 (child_add_thread): Change the debug registers if debug_registers_used.
11931 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11932 Link nm.h to new nm-cygwin.h file.
11933 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11934 of hardware registers.
11935
a73c86fb
AC
119362002-02-03 Andrew Cagney <ac131313@redhat.com>
11937
11938 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11939 Restore behavour broken by 2002-01-20 Andrew Cagney
11940 <ac131313@redhat.com> IEEE_FLOAT removal.
11941
acf5ed49
DJ
119422002-02-03 Daniel Jacobowitz <drow@mvista.com>
11943
11944 * c-valprint.c (c_val_print): Pass a proper valaddr to
11945 cp_print_class_method.
11946 * valops.c (search_struct_method): If there is only one method
11947 and args is NULL, return that method.
11948
493d28d5
DJ
119492002-02-03 Daniel Jacobowitz <drow@mvista.com>
11950
11951 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11952 accessing tag_name directly.
11953
7495dfdb
DJ
119542002-02-03 Daniel Jacobowitz <drow@mvista.com>
11955
11956 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11957 of accessing tag_name directly.
11958
dd6bda65
DJ
119592002-02-03 Daniel Jacobowitz <drow@mvista.com>
11960
11961 PR gdb/280
11962 * gdbtypes.c (replace_type): New function.
11963 * gdbtypes.h (replace_type): Add prototype.
11964 * stabsread.c (read_type): Use replace_type.
11965
88fe217c
RE
119662002-02-03 Richard Earnshaw <rearnsha@arm.com>
11967
11968 * Makefile.in (memattr.o): Add missing dependencies rule.
11969
e5d66720
PS
119702002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11971
11972 * breakpoint.c (break_at_finish_command): Really export.
11973 (break_at_finish_at_depth_command): Ditto.
11974 (tbreak_at_finish_command): Ditto.
11975 * hppa-tdep.c: Include completer.h.
11976 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11977 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11978
fffee0be
AC
119792002-02-01 Andrew Cagney <ac131313@redhat.com>
11980
11981 * utils.c (do_write): New function.
11982 (error_stream): Rewrite combining the code from error_begin and
11983 verror.
11984 (verror): Rewrite using error_stream.
11985 (error_begin): Delete function.
11986
255e7dbf
AC
119872002-02-01 Andrew Cagney <ac131313@redhat.com>
11988
11989 * utils.c (error_begin): Make static.
11990 * defs.h (error_begin): Delete declaration.
11991
11992 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11993 (decode_line_1): Use cplusplus_error instead of error_begin,
11994 cplusplus_hint and return_to_top_level.
11995 * coffread.c (coff_symfile_read): Use error instead of error_begin
11996 and return_to_top_level.
11997 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11998
ddfe3c15
AC
119992002-02-01 Andrew Cagney <ac131313@redhat.com>
12000
12001 * language.h (type_error, range_error): Make string parameter
12002 constant.
12003 * language.c (warning_pre_print): Delete extern declaration.
12004 * dwarfread.c (warning_pre_print): Ditto.
12005 * language.c (type_error, range_error): Rewrite to use verror and
12006 vwarning instead of warning_begin.
12007
03ac34d5
MS
120082002-02-01 Michael Snyder <msnyder@redhat.com>
12009
261c4ca2
MS
12010 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12011 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12012
e00d1dc8
AC
120132002-02-01 Andrew Cagney <ac131313@redhat.com>
12014
12015 * command.h (NO_FUNCTION): Delete macro.
12016 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12017 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12018 * tracepoint.c (_initialize_tracepoint): Ditto.
12019 * cli/cli-decode.c (add_set_cmd): Ditto.
12020 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12021
76b79d6e
DJ
120222002-02-01 Daniel Jacobowitz <drow@mvista.com>
12023
12024 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12025 Update ``this'' pointer when calling virtual functions.
12026
799f9e91
MS
120272002-02-01 Michael Snyder <msnyder@redhat.com>
12028
c7bd442c 12029 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12030 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12031
3cf384d4
DJ
120322002-02-01 Daniel Jacobowitz <drow@mvista.com>
12033
12034 * regformats/reg-arm.dat: New file.
12035 * regformats/reg-i386.dat: New file.
12036 * regformats/reg-ia64.dat: New file.
12037 * regformats/reg-m68k.dat: New file.
12038 * regformats/reg-mips.dat: New file.
12039 * regformats/reg-ppc.dat: New file.
12040 * regformats/reg-sh.dat: New file.
12041 * regformats/regdef.h: New file.
12042 * regformats/regdat.sh: New file.
12043
0defa245
RE
120442002-02-01 Richard Earnshaw <reanrsha@arm.com>
12045
12046 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12047 (arm_frame_args_address, arm_frame_locals_address): New functions.
12048 (arm_frame_num_args): New function.
12049 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12050 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12051 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12052
405f26e6
MS
120532002-01-31 Michael Snyder <msnyder@redhat.com>
12054
502fd408
MS
12055 * breakpoint.c (break_at_finish_command): Export.
12056 (break_at_finish_at_depth_command): Export.
12057 (tbreak_at_finish_command): Export.
d6020d45 12058 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12059 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12060 "txbreak" commands, which are HPPA specific.
502fd408 12061
7d35e135
MS
12062 * printcmd.c (disassemble_command): Remove an ancient
12063 artifact of an old merge.
12064
aaa38bb5 12065 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12066 Define enum constant values for overlay mode.
12067 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12068 (overlay_is_mapped, overlay_auto_command,
12069 overlay_manual_command): Ditto.
d874f1e2 12070
aaa38bb5
AJ
12071 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12072 breakpoint_here_p, breakpoint_inserted_here_p,
12073 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12074 describe_other_breakpoints, check_duplicates, clear_command):
12075 Coding standard fixes.
12076
8add0441 12077 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12078 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12079 code: check bfd SEC_READONLY flag for section.
12080
e351066e
AC
120812002-01-31 Andrew Cagney <ac131313@redhat.com>
12082
7d35e135 12083 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12084
8a48e967
DJ
120852002-01-30 Daniel Jacobowitz <drow@mvista.com>
12086
12087 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12088 data symbols, since we search based on textlow and texthigh.
12089 (find_pc_sect_symtab): Likewise.
12090
f5a96129
AC
120912002-01-30 Andrew Cagney <ac131313@redhat.com>
12092
12093 * defs.h (vwarning): Declare.
f5a96129
AC
12094 * utils.c (vwarning): New function.
12095 (warning): Call vwarning.
12096 (warning_begin): Delete function.
12097
12098 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12099 the warning message.
12100 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12101 warning_begin.
12102
cefd4ef5
MS
121032002-01-30 Michael Snyder <msnyder@redhat.com>
12104
1a703748
MS
12105 * NEWS: Mention "set trust-readonly-sections" command.
12106 Mention generate-core-file command.
cefd4ef5 12107
3a11626d
MS
121082002-01-15 Michael Snyder <msnyder@redhat.com>
12109
12110 * target.c: New command, "set trust-readonly-sections on".
12111 (do_xfer_memory): Honor the suggestion to trust readonly sections
12112 by reading them from the object file instead of from the target.
12113 (initialize_targets): Register command "set trust-readonly-sections".
12114
d1c7e53b
AC
121152002-01-29 Andrew Cagney <ac131313@redhat.com>
12116
12117 * parse.c (target_map_name_to_register): Simplify, search regs and
12118 pseudo-regs using a single loop.
12119
e2c9a72c
AC
121202002-01-30 Andrew Cagney <ac131313@redhat.com>
12121
12122 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12123
69824b4e
MK
121242002-01-15 Rodney Brown <rbrown64@csc.com.au>
12125
12126 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12127 * config/i386/i386v42mp.mh: Add i387-nat.o .
12128 * i386v4-nat.c: Include i387-nat.h.
12129 (supply_fpregset): Use i387_supply_fsave.
12130 (fill_fpregset): Use i387_fill_fsave.
12131
6eb69eab
RE
121322002-01-30 Richard Earnshaw <rearnsha@arm.com>
12133
12134 * arm-tdep.c (arm_call_dummy_words): Define.
12135 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12136 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12137 (CALL_DUMMY_WORDS): Define.
12138 (arm_call_dummy_words): Declare.
12139 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12140 (arm_linux_call_dummy_words): Declare.
12141
9852326a
AS
121422002-01-30 Andreas Schwab <schwab@suse.de>
12143
12144 * m68klinux-nat.c: Fix last change to use regcache_collect
12145 instead of referencing registers[] directly.
12146
977a3030
AC
121472002-01-29 Andrew Cagney <ac131313@redhat.com>
12148
12149 * parse.c (target_map_name_to_register): Delete code wrapped in
12150 #ifdef REGISTER_NAME_ALIAS_HOOK.
12151
2076c72b
MS
121522002-01-28 Michael Snyder <msnyder@redhat.com>
12153
12154 * regcache.c (legacy_read_register_gen): Need to be able to
12155 read pseudo-register as well as real register.
12156 (legacy_write_register_gen): Ditto.
12157
8fcc723b
AC
121582002-01-28 Andrew Cagney <ac131313@redhat.com>
12159
12160 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12161 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12162 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12163 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12164 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12165 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12166 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12167 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12168 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12169 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12170 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12171 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12172 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12173 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12174 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12175 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12176 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12177 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12178 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12179 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12180
afe64c1a
AC
121812002-01-28 Andrew Cagney <ac131313@redhat.com>
12182
12183 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12184 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12185 (initialize_current_architecture): Update target_byte_order using
12186 information from BFD.
aaa38bb5 12187 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12188 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12189
75bc7ddf
AC
121902002-01-28 Andrew Cagney <ac131313@redhat.com>
12191
12192 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12193 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12194
12195 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12196 #ifdef INVALID_FLOAT.
12197 * infcmd.c (do_registers_info): Ditto.
12198 * values.c (unpack_double): Ditto. Add comment.
12199
12200 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12201 already commented out.
12202
0280a90a
AS
122032002-01-26 Andreas Schwab <schwab@suse.de>
12204
12205 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12206 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12207 registers and add support for PTRACE_GETREGS.
12208
7072a954
AC
122092002-01-24 Andrew Cagney <ac131313@redhat.com>
12210
12211 GDB 5.1.1 released from 5.1 branch.
12212 * NEWS: Add 5.1.1 news.
12213 * README: Sync with 5.1 branch.
12214
86f902e0
FF
122152002-01-23 Fred Fish <fnf@redhat.com>
12216
12217 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12218 stabstring on initial malloc. Reallocing will copy it for us,
12219 if necessary.
12220
8af51c36
EZ
122212002-01-23 Elena Zannoni <ezannoni@redhat.com>
12222
aaa38bb5 12223 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12224 (HFILES_NO_SRCDIR): Remove hpread.h.
12225 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12226 (hpread.o): Update dependencies.
12227 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12228
12229 * hp-psymtab-read.c: Remove file.
12230 * hp-symtab-read.c: Remove file.
12231 * hpread.h: Remove file.
12232
12233 * hpread.c: Merge all contents of hp-psymtab-read.c,
12234 hp-symtab-read.c and hpread.h into this file, as it was prior to
12235 January 1999.
12236
12237 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12238 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12239 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12240 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12241
dc5cfeb6
EZ
122422002-01-23 Elena Zannoni <ezannoni@redhat.com>
12243
12244 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12245 fill_gregset): Call gdbarch_tdep() just once, assign result to
12246 variable and use that, instead of calling the function several
12247 times.
12248
ea87b71b
AO
122492002-01-24 Alexandre Oliva <aoliva@redhat.com>
12250
12251 * configure.host: Accept sparcv9 as alias for sparc64.
12252 * configure.tgt: Likewise.
12253
13fc0c2f
KB
122542002-01-22 Kevin Buettner <kevinb@redhat.com>
12255
12256 * solib-aix5.c (build_so_list_from_mapfile)
12257 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12258 arguments is not reversed.
12259 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12260 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12261
7bd872fe
EZ
122622002-01-22 Elena Zannoni <ezannoni@redhat.com>
12263
12264 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12265 modified version of obsolete sh_fetch_pseudo_register.
12266 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12267 (sh4_register_read): New function.
12268 (sh_pseudo_register_write): New function. Renamed and modified
12269 version of obsolete sh_store_pseudo_register.
12270 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12271 (sh4_register_write): New function.
12272 (sh_gdbarch_init): Remove setting of gdbarch function
12273 fetch_pseudo_register and store_pseudo_register. Remove setting of
12274 register_convert_to_raw, register_convert_to_virtual,
12275 register_convertible.
12276 (sh_sh4_register_convertible): Delete. No longer needed. All is
12277 taken care by architecture specific functions
12278 register_read/register_write.
12279 (sh_sh4_register_convert_to_virtual): Make static.
12280 (sh_sh4_register_convert_to_raw): Ditto.
12281
069e84fd
AC
122822002-01-22 Andrew Cagney <ac131313@redhat.com>
12283
12284 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12285 (floatformat_is_nan, floatformat_mantissa): Ditto.
12286
12287 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12288 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12289 builtin_type_ieee_double_little,
12290 builtin_type_ieee_double_littlebyte_bigword,
12291 builtin_type_m68881_ext, builtin_type_i960_ext,
12292 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12293 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12294 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12295 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12296
211a4f69
CV
122972002-01-22 Corinna Vinschen <vinschen@redhat.com>
12298
12299 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12300 parameter. Set frameless flag if it exists and depended of
12301 whether the scanned function is frameless or not.
12302 (xstormy16_skip_prologue): If function is frameless, return
12303 result of xstormy16_scan_prologue().
12304 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12305 call.
12306
f81353e4
EZ
123072002-01-21 Elena Zannoni <ezannoni@redhat.com>
12308
12309 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12310 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12311 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12312 sh_sh4_register_byte, sh_sh4_register_raw_size,
12313 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12314 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12315 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12316 sh_store_pseudo_register, sh_do_pseudo_register): Call
12317 gdbarch_tdep() just once, assign result to variable and use that,
12318 instead of calling the function several times.
12319
63c73a17
MK
123202002-01-20 Mark Kettenis <kettenis@gnu.org>
12321
12322 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12323 macros instead of LAST_FPU_CTRL_REGNUM.
12324 (store_register): Likewise.
12325
39ad761d
JB
123262002-01-21 Jim Blandy <jimb@redhat.com>
12327
12328 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12329 is up-to-date before running the program, not just when a program
12330 exits.
12331
3d74b771
FF
123322002-01-21 Fred Fish <fnf@redhat.com>
12333
12334 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12335 when we have found all instructions we are looking for.
12336
966fbf70
RE
123372002-01-21 Richard Earnshaw <rearnsha@arm.com>
12338
12339 * arm-tdep.c (arm_register_name): New function.
12340 (arm_registers_names): Make static.
12341 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12342 (arm_register_name): Declare.
12343 (REGISTER_NAME): Use it.
12344
c3b4394c
RE
123452002-01-21 Richard Earnshaw <rearnsha@arm.com>
12346 Kevin Buettner <kevinb@redhat.com>
12347
12348 Convert arm targets to new FRAME interface.
12349 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12350 (arm_frame_find_save_regs): Delete.
12351 (arm_frame_init_saved_regs): New.
12352 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12353 Allocate extra_info as required. Convert all uses of fsr.regs
12354 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12355 to use extra_info.
12356 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12357 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12358 (check_prologue_cache, save_prologue_cache): Likewise.
12359 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12360 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12361 (FRAME_FIND_SAVED_REGS): Delete.
12362 (arm_frame_find_saved_regs): Delete prototype.
12363 (arm_frame_init_saved_regs): New prototype.
12364 (FRAME_INIT_SAVED_REGS): Define.
12365
61d99182
AC
123662002-01-20 Andrew Cagney <ac131313@redhat.com>
12367
12368 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12369
6aaea291
AC
123702002-01-20 Andrew Cagney <ac131313@redhat.com>
12371
12372 From Jeff Law <law@redhat.com>:
12373 * infttrace.c: Include <sys/pstat.h>.
12374 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12375 exec file if the ttrace equivalent fails.
12376
15f698d2
AC
123772002-01-20 Andrew Cagney <ac131313@redhat.com>
12378
12379 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12380 (closeLogFile): Ditto.
12381
f86ddd7c
MC
123822002-01-20 Michael Chastain <mec@shout.net>
12383
12384 * top.c (print_gdb_version): Bump copyright year to 2002.
12385
904507ce
AC
123862002-01-20 Andrew Cagney <ac131313@redhat.com>
12387
12388 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12389 Zannoni and Eli Zaretskii.
12390
d7f0b9ce
DJ
123912002-01-20 Daniel Jacobowitz <drow@mvista.com>
12392
12393 * buildsym.c: Update copyright years.
12394 * c-typeprint.c: Likewise.
12395 * dwarf2read.c: Likewise.
12396 * f-typeprint.c: Likewise.
12397 * gdbtypes.c: Likewise.
12398 * gdbtypes.h: Likewise.
12399 * hp-symtab-read.c: Likewise.
12400 * hpread.c: Likewise.
12401 * mdebugread.c: Likewise.
12402 * p-typeprint.c: Likewise.
12403
3fd3d7d2
AC
124042002-01-20 Andrew Cagney <ac131313@redhat.com>
12405
12406 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12407 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12408 byte-order selectable.
12409 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12410 * arch-utils.c: Ditto.
12411 (set_endian): Ditto.
12412 (set_endian_from_file): Ditto.
12413 * gdbserver/low-sim.c (create_inferior): Ditto.
12414 * gdbarch.sh: Ditto.
12415 * gdbarch.h: Re-generate.
aaa38bb5
AJ
12416 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12417 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12418 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12419 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12420 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12421 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12422 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
12423 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12424 macro definition.
12425 * config/mips/tm-wince.h: Remove #undef of macro
12426 TARGET_BYTE_ORDER_SELECTABLE.
12427 * config/sh/tm-wince.h: Ditto.
12428
b02dede2
DJ
124292002-01-20 Daniel Jacobowitz <drow@mvista.com>
12430
12431 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12432 member function fields. Add accessor macro
12433 TYPE_FN_FIELD_ARTIFICIAL.
12434 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12435 * c-typeprint.c (c_type_print_base): Skip artificial member
12436 functions.
12437
c3643761
DJ
124382002-01-20 Daniel Jacobowitz <drow@mvista.com>
12439
12440 * f-typeprint.c: Delete unused function f_type_print_args.
12441 * p-typeprint.c: Delete unused function pascal_type_print_args.
12442
8176bb6d
DJ
124432002-01-20 Daniel Jacobowitz <drow@mvista.com>
12444
12445 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12446 comment. Add ``artificial'' to ``union field_location''.
12447
12448 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12449
12450 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12451 * mdebugread.c (parse_symbol): Likewise.
12452 * stabsread.c (define_symbol): Likewise.
12453 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12454 initializing TYPE_FIELD_BITPOS to n (obsolete).
12455 (hpread_doc_function_type): Likewise.
12456 * hpread.c (hpread_function_type): Likewise.
12457
7fd60527
AC
124582002-01-20 Andrew Cagney <ac131313@redhat.com>
12459
12460 * configure.in (host_makefile_frag): Only require a host makefile
12461 fragment when a native build.
12462 * configure: Re-generate.
12463
c2f05ac9
AC
124642002-01-20 Andrew Cagney <ac131313@redhat.com>
12465
12466 * doublest.h (floatformat_from_type): Declare.
12467 * doublest.c (floatformat_from_type): New function.
12468 (convert_typed_floating): Use.
12469
12470 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12471 call to function floatformat_from_type.
12472
12473 * gdbarch.sh (IEEE_FLOAT): Delete.
12474 * gdbarch.h, gdbarch.c: Re-generate.
12475 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12476 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12477 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12478 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12479 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12480 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12481 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12482 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12483 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12484 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12485 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
12486 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12487
12488 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12489 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12490 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12491 * sh-tdep.c (sh_gdbarch_init): Ditto.
12492 * mips-tdep.c (mips_gdbarch_init): Ditto.
12493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12494 * cris-tdep.c (cris_gdbarch_init): Ditto.
12495
abf22e64
AJ
124962002-01-20 Jiri Smid <smid@suse.cz>
12497
12498 * configure.host, configure.tgt: Support x86-64.
12499 * NEWS: Note new target x86-64.
12500
b7c4cbf8
AJ
12501 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12502 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12503 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12504 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12505 x86-64-linux-nat.o): Fix dependencies.
12506
82600034
AC
125072002-01-19 Andrew Cagney <ac131313@redhat.com>
12508
12509 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12510 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12511 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12512 * config/sparc/xm-sun4os4.h: Delete file.
12513 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 12514
bbe5c628
AC
125152002-01-19 Andrew Cagney <ac131313@redhat.com>
12516
12517 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12518 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12519 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12520 * config/i386/i386lynx.mh (XM_FILE): Delete.
12521 * config/rs6000/xm-rs6000ly.h: Delete file.
12522 * config/sparc/xm-sparclynx.h: Delete file.
12523 * config/m68k/xm-m68klynx.h: Delete file.
12524 * config/i386/xm-i386lynx.h: Delete file.
12525 * config/xm-lynx.h: Delete file.
12526 * config/djgpp/fnchange.lst: Update.
12527
f8453e34
JT
125282002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12529
12530 * alpha-tdep.c (alpha_register_byte): New function.
12531 (alpha_register_raw_size): Ditto.
12532 (alpha_register_virtual_size): Ditto.
12533 (alpha_skip_prologue_internal): Renamed from
12534 alpha_skip_prologue.
12535 (alpha_skip_prologue): New version that calls
12536 alpha_skip_prologue_internal.
12537 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12538 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12539 second argument from alpha_skip_prologue.
12540 (REGISTER_BYTE): Use alpha_register_byte.
12541 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12542 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12543 (FRAMELESS_FUNCTION_INVOCATION): Use
12544 generic_frameless_function_invocation_not.
12545 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12546 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12547
52d9e613
AC
125482002-01-19 Andrew Cagney <ac131313@redhat.com>
12549
12550 * config/mips/xm-news-mips.h: Delete file.
12551 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12552
12553 * config/m88k/xm-m88k.h: Delete file.
12554 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12555 * config/m88k/xm-delta88v4.h: Ditto.
12556 * config/m88k/xm-delta88.h: Ditto.
12557
12558 * config/alpha/xm-fbsd.h: Delete file.
12559 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12560
12561 * config/sparc/xm-sparc.h: Delete file.
12562 * Makefile.in (xm-sun4os4.h): Delete dependency.
12563 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12564 * config/sparc/xm-sun4os4.h: Ditto.
12565 * config/sparc/xm-linux.h: Ditto.
12566
12567 * config/i386/xm-windows.h: Delete file.
12568
2d1b2124
AC
125692002-01-19 Andrew Cagney <ac131313@redhat.com>
12570
12571 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12572 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12573
ee1f65f0
JT
125742002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12575
12576 * alpha-tdep.c (alpha_call_dummy_words): New.
12577 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12578 (CALL_DUMMY_P): Define.
12579 (CALL_DUMMY_WORDS): Define.
12580 (SIZEOF_CALL_DUMMY_WORDS): Define.
12581
98081e55
PB
125822002-01-19 Per Bothner <per@bothner.com>
12583
12584 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12585 isn't NULL, which can happen with some gcj-3.x-produced code.
12586
0d056799
JT
125872002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12588
12589 * alpha-tdep.c (alpha_register_virtual_type): New function.
12590 (alpha_init_frame_pc_first): Ditto.
12591 (alpha_fix_call_dummy): Ditto.
12592 (alpha_store_struct_return): Ditto.
12593 (alpha_extract_struct_value_address): Ditto.
12594 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12595 alpha_register_virtual_type.
12596 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12597 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12598 alpha_extract_struct_value_address.
12599 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12600 (INIT_FRAME_PC): Use init_frame_pc_noop.
12601 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12602
4604bcad
MK
126032002-01-19 Mark Kettenis <kettenis@gnu.org>
12604
12605 * i386gnu-nat.c: Include "i386-tdep.h".
12606 (fetch_fpregs): Simplify code dealing with uninitialized floating
12607 point states such that it doesn't require FP7_REGNUM.
12608
140f9984
JT
126092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12610
abf22e64
AJ
12611 * alpha-tdep.c (frame_extra_info): New.
12612 (alpha_find_saved_regs): Make static. Use
140f9984
JT
12613 frame->extra_info.
12614 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
12615 (alpha_frame_saved_pc): Use frame->extra_info.
12616 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12617 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
12618 (init_extra_frame_info): Rename to...
12619 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 12620 (alpha_print_extra_frame_info): New function.
140f9984
JT
12621 (alpha_frame_locals_address): Ditto.
12622 (alpha_frame_args_address): Ditto.
abf22e64 12623 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
12624 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12625 alpha_frame_args_address.
abf22e64 12626 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 12627 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
12628 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12629 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
12630 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12631 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12632
d734c450
JT
126332002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12634
12635 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12636 (alpha_cannot_fetch_register): Ditto.
12637 (alpha_cannot_store_register): Ditto.
12638 (alpha_register_convertible): Ditto.
12639 (alpha_use_struct_convention): Ditto.
12640 * config/alpha/tm-alpha.h: Update copyright years.
12641 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12642 (INNER_THAN): Use core_addr_lessthan.
12643 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12644 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12645 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12646 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12647 (FRAME_CHAIN): Remove unnecessary cast.
12648
b4ceaee6
AC
126492002-01-18 Andrew Cagney <ac131313@redhat.com>
12650
12651 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12652 obsolete.
12653
0a65a603
AC
126542002-01-18 Andrew Cagney <ac131313@redhat.com>
12655
12656 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12657 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12658 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12659 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12660 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12661 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12662 * x86-64-linux-nat.c: Ditto.
12663
636a6dfc
JT
126642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12665
abf22e64 12666 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
12667 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12668 (REGISTER_NAME): Define.
12669
acceddb6
JT
126702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12671
12672 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12673
ec32e4be
JT
126742002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12675
12676 * alpha-tdep.c: Update copyright years.
12677 (alpha_next_pc): New function.
12678 (alpha_software_single_step): Ditto.
12679 * config/alpha/tm-alpha.h: Add prototype for
12680 alpha_software_single_step.
12681
e771a871
JT
126822002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12683
12684 * alphabsd-nat.c: Update copyright years.
12685 (fill_gregset): Use regcache_collect.
12686 (fill_fpregset): Likewise.
12687 (fetch_inferior_registers): Only fetch integer registers
12688 if requested to do so.
12689 (store_inferior_registers): Only store integer registers
12690 if requested to do so.
12691
7708fa01
AC
126922002-01-17 Andrew Cagney <ac131313@redhat.com>
12693
12694 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12695 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12696 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12697 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12698 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12699 * config/arm/linux.mh (XDEPFILES): Delete.
12700 * config/arm/nbsd.mh (XDEPFILES): Delete.
12701 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12702 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12703 * config/i386/i386m3.mh (XDEPFILES): Delete.
12704 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12705 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12706 * config/i386/fbsd.mh (XDEPFILES): Delete.
12707 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12708 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12709 * config/i386/i386v4.mh (XDEPFILES): Delete.
12710 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12711 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12712 * config/i386/i386aix.mh (XDEPFILES): Delete.
12713 * config/i386/go32.mh (XDEPFILES): Delete.
12714 * config/i386/cygwin.mh (XDEPFILES): Delete.
12715 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12716 * config/i386/i386mach.mh (XDEPFILES): Delete.
12717 * config/i386/i386v32.mh (XDEPFILES): Delete.
12718 * config/i386/linux.mh (XDEPFILES): Delete.
12719 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12720 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12721 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12722 * config/i386/i386sco.mh (XDEPFILES): Delete.
12723 * config/i386/i386v.mh (XDEPFILES): Delete.
12724 * config/i386/nbsd.mh (XDEPFILES): Delete.
12725 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12726 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12727 * config/i386/symmetry.mh (XDEPFILES): Delete.
12728 * config/i386/obsd.mh (XDEPFILES): Delete.
12729 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12730 * config/ia64/linux.mh (XDEPFILES): Delete.
12731 * config/ia64/aix.mh (XDEPFILES): Delete.
12732 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12733 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12734 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12735 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12736 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12737 * config/m68k/linux.mh (XDEPFILES): Delete.
12738 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12739 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12740 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12741 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12742 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12743 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12744 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12745 * config/m88k/delta88.mh (XDEPFILES): Delete.
12746 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12747 * config/m88k/m88k.mh (XDEPFILES): Delete.
12748 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12749 * config/mips/linux.mh (XDEPFILES): Delete.
12750 * config/mips/irix6.mh (XDEPFILES): Delete.
12751 * config/mips/irix5.mh (XDEPFILES): Delete.
12752 * config/mips/irix4.mh (XDEPFILES): Delete.
12753 * config/mips/irix3.mh (XDEPFILES): Delete.
12754 * config/mips/decstation.mh (XDEPFILES): Delete.
12755 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12756 (NATDEPFILES): Move core-aout.o to here.
12757 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12758 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12759 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12760 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12761 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12762 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12763 * config/pa/hpux11.mh (XDEPFILES): Delete.
12764 * config/powerpc/aix.mh (XDEPFILES): Delete.
12765 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12766 * config/powerpc/linux.mh (XDEPFILES): Delete.
12767 * config/romp/rtbsd.mh: Rename XDEPFILES.
12768 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12769 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12770 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12771 * config/s390/s390.mh (XDEPFILES): Delete.
12772 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12773 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12774 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12775 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12776 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12777 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12778 * config/sparc/linux.mh (XDEPFILES): Delete.
12779 * config/vax/vaxult.mh (XDEPFILES): Delete.
12780 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12781 * Makefile.in (DEPFILES): Remove XDEPFILES.
12782
375fc983
AC
127832002-01-17 Andrew Cagney <ac131313@redhat.com>
12784
12785 * utils.c (internal_verror): Fix comments, default is yes not no.
12786 Update queries to match. Default to quit and dump core.
12787
8926118c
AC
127882002-01-17 Andrew Cagney <ac131313@redhat.com>
12789
12790 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12791 copyright.
12792 * defs.h, event-top.c, gdbcmd.h: Ditto.
12793 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12794 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12795 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12796 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12797 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12798 * mi/mi-main.c:Ditto.
12799
12800 * stack.c, symfile.c: Update copyright.
12801
45b7b345
DJ
128022002-01-17 Daniel Jacobowitz <drow@mvista.com>
12803
db728ff7
DJ
12804 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12805 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12806 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12807 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 12808
db728ff7
DJ
128092002-01-17 Daniel Jacobowitz <drow@mvista.com>
12810
12811 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12812 * gdbserver/low-lynx.c (myattach): Likewise.
12813 * gdbserver/low-nbsd.c (myattach): Likewise.
12814 * gdbserver/low-sim.c (myattach): Likewise.
12815 * gdbserver/low-sparc.c (myattach): Likewise.
12816 * gdbserver/low-sun3.c (myattach): Likewise.
12817
12818 * gdbserver/low-linux.c (myattach): New function.
45b7b345 12819
db728ff7 12820 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
12821 (main): Handle "--attach".
12822
8de3c354
AC
128232002-01-16 Andrew Cagney <ac131313@redhat.com>
12824
12825 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12826 maintainer.
12827
b0129042
DJ
128282002-01-15 Daniel Jacobowitz <drow@mvista.com>
12829
12830 * c-typeprint.c (is_type_conversion_operator): Add additional
12831 check for non-conversion operators.
12832
ba8679fb 128332002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
12834
12835 * linux-proc.c: Add "info proc" command, a la procfs.c.
12836 (read_mapping): New function, abstract and re-use code.
12837 (linux_find_memory_regions): Use new func read_mapping.
12838 (linux_info_proc_cmd): New function, implement "info proc".
12839 (_initialize_linux_proc): Add new command "info proc".
12840
e4f9b4d5
MS
128412002-01-15 Michael Snyder <msnyder@redhat.com>
12842
12843 * symfile.c (generic_load): Use bfd_map_over_sections method
12844 instead of manipulating bfd structure members directly.
12845 (add_section_size_callback): New function, bfd sections callback
12846 used by generic_load.
12847 (load_sections_callback): New function, bfd sections callback
12848 used by generic_load.
12849
08cf96df
EZ
128502002-01-15 Elena Zannoni <ezannoni@redhat.com>
12851
abf22e64 12852 [Based on work by Jim Blandy]
08cf96df
EZ
12853 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12854 (builtin_type_vec128): Export.
12855 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12856 types.
12857 (builtin_type_vec128): New builtin type for 128 bit vector
12858 registers.
12859 (build_gdbtypes): Initialize builtin_type_v16qi and
12860 builtin_type_v8hi. Create the vec128 register builtin type
12861 structure.
12862 (build_builtin_type_vec128): New function.
abf22e64 12863 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
12864 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12865 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12866 AltiVec register to new builtin type.
12867
d7242108
DJ
128682001-01-15 Daniel Jacobowitz <drow@mvista.com>
12869
12870 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12871 to make_cv_type.
12872
4ee3352d
AC
128732002-01-14 Andrew Cagney <ac131313@redhat.com>
12874
12875 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12876 CLEAN_UP_REGISTER_VALUE.
12877 * regcache.c (supply_register): Update only call.
12878
f015b2e7
AC
128792002-01-14 Andrew Cagney <ac131313@redhat.com>
12880
12881 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12882 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12883 a29k-*-vxworks* targets as obsolete.
12884
356ae49d
MS
128852002-01-14 Michael Snyder <msnyder@redhat.com>
12886
12887 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12888 until we can resolve portability issues.
12889 * gregset.h: Remove references to fpxregs.
12890 * gcore.c (gcore_command): Initialize note_sec to NULL.
12891
ade8f45e
AC
128922002-01-13 Andrew Cagney <ac131313@redhat.com>
12893
12894 * signals.c (target_signal_to_name): Rewrite. Only use
12895 signals[].name when in bounds and non-NULL.
abf22e64 12896
89c49e7a
AC
128972002-01-13 Andrew Cagney <ac131313@redhat.com>
12898
12899 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12900 * signals.c (target_signal_to_name): Verify that SIG is within the
12901 bounds of the signals array.
12902
4daa9f9f
AC
129032002-01-13 Andrew Cagney <ac131313@redhat.com>
12904
12905 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12906
ba4bbdcb
KS
129072002-01-13 Keith Seitz <keiths@redhat.com>
12908
12909 * stack.c (print_frame_info_base): Print the frame's pc
12910 only if when print_frame_info_listing_hook is not defined.
12911
575bbeb6
KS
129122002-01-13 Keith Seitz <keiths@redhat.com>
12913
12914 * varobj.c (varobj_set_value): Make sure that there were no
12915 errors evaluating the object before attempting to set its
12916 value.
12917 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12918 so this offset adjustment is no longer necessary.
12919 (create_child): Don't set the error flag if the child is
12920 a CPLUS_FAKE_CHILD.
12921 (value_of_child): If value_fetch_lazy fails, return NULL
12922 so that callers will be notified that an error occurred.
12923 (c_value_of_variable): Delay check of variable's validity
12924 until later. We actually want all structs and unions to have
12925 the value "{...}".
12926 Do not return "???" for variables which could not be evaluated.
12927 This error condition must be returned to the caller so that it
12928 can get the error condition from gdb.
12929 (cplus_name_of_child): Adjust index for vptr before figuring
12930 out the name of the child.
12931 (cplus_value_of_child): If a child's (real) parent is not valid,
12932 don't even bother trying to give a value for it. Just return
12933 an error. Change all instances in this function.
12934 (cplus_type_of_child): If our parent is one of the "fake"
12935 parents, we need to get at the type of the real parent, and
12936 derive the child's true type using this information.
12937
b76898ab
AC
129382002-01-13 Andrew Cagney <ac131313@redhat.com>
12939
12940 From 2002-01-09 John Marshall <johnm@falch.net>:
12941 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12942 sources.redhat.com, and tweak some related URLs which had
12943 suffered from linkrot.
12944
b6649e88
AC
129452002-01-13 Andrew Cagney <ac131313@redhat.com>
12946
12947 From Jeff law:
12948 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12949 structures passed in registers.
12950
82cc5033
EZ
129512002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12952
12953 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12954 white space which prevented compilation. Reported by DSK
12955 <dsk@student.unsw.edu.au>.
12956
ba5f2f8a
MS
129572002-01-11 Michael Snyder <msnyder@redhat.com>
12958
fbd35540
MS
12959 * symfile.c (build_section_addr_info_from_section_tab):
12960 Use bfd access method instead of manipulating bfd directly.
12961 (syms_from_objfile): Ditto.
12962 (simple_overlay_update_1): Ditto.
12963 (simple_overlay_update): Ditto.
12964 (generic_load): Ditto.
12965 (overlay_unmapped_address): FIXME comment, bfd access methods.
12966 (sections_overlap): FIXME comment, bfd access methods.
12967 (pc_in_mapped_range): FIXME comment, bfd access methods.
12968 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12969 (section_is_mapped): FIXME comment, bfd access methods.
12970 (section_is_overlay): FIXME comment, bfd access methods.
12971
ba5f2f8a
MS
12972 * symfile.c (generic_load): Whitespace and long line cleanups.
12973 Remove duplicate variable, change several local variables to
12974 more appropriate data types.
12975 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12976
17df2af6
AC
129772002-01-12 Andrew Cagney <ac131313@redhat.com>
12978
12979 From Peter Schauer:
12980 * language.c (longest_local_hex_string_custom): Use phex_nz to
12981 convert NUM to a hex string.
12982
ec920329
EZ
129832002-01-12 Elena Zannoni <ezannoni@redhat.com>
12984
12985 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12986 the function.
538a76d6 12987 Update Copyright year.
ec920329 12988
3abd2e01
AC
129892002-01-12 Andrew Cagney <ac131313@redhat.com>
12990
12991 * language.c (longest_raw_hex_string): Delete unused function.
12992
b21b22e0
PS
129932002-01-11 Petr Sorfa <petrs@caldera.com>
12994
12995 * MAINTAINERS (write-after-approval): Add myself.
12996 * dwarf2read.c (read_tag_string_type): Handling of
12997 DW_AT_byte_size.
12998 (read_tag_string_type): FORTRAN fix to prevent propagation of
12999 first string size.
13000 (set_cu_language): Handling of DW_LANG_Fortran95
13001
747fe712
RE
130022002-01-11 Richard Earnshaw <rearnsha@arm.com>
13003
13004 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13005 GETPID(inferior_ptid).
13006 (store_inferior_registers): Likewise.
13007
f1bea926
JM
130082002-01-10 Jason Merrill <jason@redhat.com>
13009
13010 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13011 Fix DW_OP_minus.
13012
ae940673
AC
130132002-01-10 Andrew Cagney <ac131313@redhat.com>
13014
13015 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13016 and bfd/elf32-sh-nbsd.c.
13017
00546b04
MS
130182002-01-10 Michael Snyder <msnyder@redhat.com>
13019
352ed7b4
MS
13020 * NEWS: Mention --pid and corefile/proc-id behavior change.
13021
c18be923
MS
13022 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13023 * gcore.c: Include cli/cli-decode.h instead of command.h.
13024
00546b04
MS
13025 * main.c (captured_main): Add new command line option "--pid".
13026 If the second command line argument (following the symbol-file)
13027 begins with a digit, try to attach to it before trying to open
13028 it as a corefile.
13029 (print_gdb_help): Document the "--pid" argument.
13030
db60ec62
EZ
130312002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13032
13033 * completer.c (command_completer): New function.
13034
13035 * completer.h <command_completer>: Add prototype.
13036
13037 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13038 completer for the "help" command.
13039
39c22d1a
JM
130402002-01-09 Jason Merrill <jason@redhat.com>
13041
13042 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13043
c564377f
MS
130442002-01-09 Michael Snyder <msnyder@redhat.com>
13045
975aec09
MS
13046 * i386-linux-nat.c (fill_fpxregset): Make global.
13047 (store_fpxregset): Ditto.
13048
db4a10fa
MS
13049 * gregset.h (gdb_fpxregset_t): Define.
13050 (supply_fpxregset): Prototype.
13051 (fill_fpxregset): Prototype.
13052
c564377f
MS
13053 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13054
c3d45d70
RE
130552002-01-09 Richard Earnshaw <rearnsha@arm.com>
13056
13057 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13058 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13059 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13060
fcc87af1
AC
130612002-01-09 Andrew Cagney <ac131313@redhat.com>
13062
13063 * MAINTAINERS: Update target maintainer rules so that any
13064 Maintainer can approve a tested patch for a maintenance-only
13065 target.
13066
dd96c05b
RE
130672002-01-09 Richard Earnshaw <rearnsha@arm.com>
13068
d4297db9 13069 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13070
d4297db9 13071 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13072 IN_SIGTRAMP.
13073
145fdc6e
MS
130742002-01-08 Michael Snyder <msnyder@redhat.com>
13075
13076 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13077 real name of the executable, rather than the /proc name.
13078
be4d1333
MS
130792002-01-03 Michael Snyder <msnyder@redhat.com>
13080
13081 Implement a "generate-core-file" command in gdb, save target state.
13082 * gcore.c: New file. Implement new command 'generate-core-file'.
13083 Save a corefile image of the current state of the inferior.
13084 * linux-proc.c: Add linux-specific code for saving corefiles.
13085 * target.h (struct target_ops): Add new target vectors for saving
13086 corefiles; to_find_memory_regions and to_make_corefile_notes.
13087 (target_find_memory_regions): New macro.
13088 (target_make_corefile_notes): New macro.
13089 * target.c (update_current_target): Inherit new target methods.
13090 (dummy_find_memory_regions): New place-holder method.
13091 (dummy_make_corefile_notes): New place-holder method.
13092 (init_dummy_target): Initialize new dummy target vectors.
13093 * exec.c (exec_set_find_memory_regions): New function.
13094 Allow the exec_ops vector for memory regions to be taken over.
13095 (exec_make_note_section): New function, target vector method.
13096 * defs.h (exec_set_find_memory_regions): Export prototype.
13097 * procfs.c (proc_find_memory_regions): New function, corefile method.
13098 (procfs_make_note_section): New function, corefile method.
13099 (init_procfs_ops): Set new target vector pointers.
13100 (find_memory_regions_callback): New function.
13101 (procfs_do_thread_registers): New function.
13102 (procfs_corefile_thread_callback): New function.
13103 * sol-thread.c (sol_find_memory_regions): New function.
13104 (sol_make_note_section): New function.
13105 (init_sol_thread_ops): Initialize new target vectors.
13106 * inftarg.c (inftarg_set_find_memory_regions): New function.
13107 Allow to_find_memory_regions vector to be taken over.
13108 (inftarg_set_make_corefile_notes): New function.
13109 Allow to_make_corefile_notes vector to be taken over.
13110 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13111 interface layer if not target_has_execution (may be a corefile).
13112 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13113 * config/sparc/sun4sol2.mh: Ditto.
13114 * config/alpha/alpha-linux.mh: Ditto.
13115 * config/arm/linux.mh: Ditto.
13116 * config/i386/x86-64linux.mh: Ditto.
13117 * config/ia64/linux.mh: Ditto.
13118 * config/m68k/linux.mh: Ditto.
13119 * config/mips/linux.mh: Ditto.
13120 * config/powerpc/linux.mh: Ditto.
13121 * config/sparc/linux.mh: Ditto.
13122
c6b92abd
MS
131232002-01-07 Michael Snyder <msnyder@redhat.com>
13124
13125 * arm-linux-nat.c: Remove references to regcache.c internal data
13126 (registers[] and register_valid[]).
13127
4b09dc8c
MS
131282002-01-07 Michael Snyder <msnyder@redhat.com>
13129
abf22e64
AJ
13130 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13131 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13132 symbol file and shlibs.
13133 * Makefile.in: Add rule for linux-proc.o.
13134 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13135 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13136 * config/arm/linux.mh: Ditto.
13137 * config/i386/linux.mh: Ditto.
13138 * config/i386/x86-64linux.mh: Ditto.
13139 * config/ia64/linux.mh: Ditto.
13140 * config/m68k/linux.mh: Ditto.
13141 * config/mips/linux.mh: Ditto.
13142 * config/powerpc/linux.mh: Ditto.
13143 * config/sparc/linux.mh: Ditto.
13144
c25b74ac
PM
131452002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13146
13147 * win32-nat.c: Add i386-tdep.h dependency.
13148
94cd915f
MS
131492002-01-07 Michael Snyder <msnyder@redhat.com>
13150
c7cccb76
MS
13151 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13152 instead of bfd_get_arch_size. Don't bail out just because
13153 there's no exec_bfd.
abf22e64 13154
34c0bd93
MS
13155 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13156 * p-valprint.c (pascal_object_print_value): Ditto.
13157 * somread.c (som_symtab_read): Ditto.
13158 * symfile.c (simple_free_overlay_region_table): Ditto.
13159 * valops.c (value_assign): Ditto.
13160
21c1c920
MS
13161 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13162 use tilde_expand and strerror for opening save-tracepoints file.
13163
5bbd998e
MS
13164 * thread-db.c (thread_db_new_objfile): Indendation fix.
13165
94cd915f
MS
13166 * infptrace.c (GDB_MAX_ALLOCA): New define.
13167 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13168 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13169 can be overridden with whatever value is appropriate to the host).
13170 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13171 alloca to allocate potentially large buffer.
13172 * rs6000-nat.c (child_xfer_memory): Ditto.
13173 * symm-nat.c (child_xfer_memory): Ditto.
13174 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13175
494e8a93
JSC
131762002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13177
13178 From Nick Clifton <nickc@redhat.com>
13179 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13180
d0e1d48e
MS
131812002-01-07 Michael Snyder <msnyder@redhat.com>
13182
abf22e64 13183 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13184 Don't use exec_bfd if it's NULL.
13185
290b2c7a
MK
131862002-01-06 Mark Kettenis <kettenis@gnu.org>
13187
abf22e64 13188 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13189
aef21287
AC
131902002-01-06 Andrew Cagney <ac131313@redhat.com>
13191
13192 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13193 * gnu-nat.c: Ditto.
13194
30efa627
AC
131952002-01-06 Andrew Cagney <ac131313@redhat.com>
13196
13197 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13198 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13199 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13200 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13201 z8k-coff have not been multi-arched. Update z8k-coff build
13202 status.
13203
9b4ff276
AC
132042002-01-06 Andrew Cagney <ac131313@redhat.com>
13205
13206 * MAINTAINERS: Mark a29k target as obsolete.
13207 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13208 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13209 comments.
13210 * NEWS: Note that a29k targets are obsolete.
13211 * a29k-tdep.c: Mark as obsolete.
13212 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13213 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13214 a29k-*-vxworks* targets as obsolete.
13215 * remote-adapt.c: Obsolete.
13216 * remote-eb.c: Obsolete.
13217 * remote-mm.c: Obsolete.
13218 * remote-udi.c: Obsolete.
13219 * config/a29k/a29k-udi.mt: Obsolete.
13220 * config/a29k/a29k.mt: Obsolete.
13221 * config/a29k/tm-a29k.h: Obsolete.
13222 * config/a29k/tm-vx29k.h: Obsolete.
13223 * config/a29k/vx29k.mt: Obsolete.
13224
a9011d31
AC
132252002-01-05 Andrew Cagney <ac131313@redhat.com>
13226
13227 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13228 with BFD_ENDIAN_BIG.
13229
9299404e
AC
132302002-01-05 Andrew Cagney <ac131313@redhat.com>
13231
13232 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13233 * configure, config.in: Re-generate.
13234 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13235 * defs.h: Do not include <endian.h>.
13236
7e89e357
JT
132372002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13238
13239 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13240 * config.in: Regenerate.
13241 * configure.in: Update copyright years.
13242 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13243 * configure: Regenerate.
13244 * i386bsd-nat.c: Update copyright years.
13245 (fill_gregset): Use regcache_collect.
13246 (fetch_inferior_registers): Only fetch integer registers
13247 if requested to do so. Add support for XMM registers
13248 using PT_GETXMMREGS.
13249 (store_inferior_registers): Only store integer registers
13250 if requested to do so. Add support for XMM registers
13251 using PT_SETXMMREGS.
13252 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13253 (store_inferior_registers): Remove.
13254 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13255 (fetch_elfcore_registers): New function.
13256 (i386nbsd_elfcore_fns): New.
13257 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13258 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13259 i386bsd-nat.o.
13260 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13261 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13262 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13263 * config/i386/tm-nbsd.h: Update copyright years.
13264 (HAVE_SSE_REGS): Define.
13265 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13266 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13267 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13268 (SIGCONTEXT_PC_OFFSET): Remove.
13269 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13270
a752853e
AC
132712002-01-05 Andrew Cagney <ac131313@redhat.com>
13272
13273 * configure.tgt: Remove powerpc-*-macos* target.
13274 * config/m68k/xm-mpw.h: Delete file.
13275 * config/xm-mpw.h: Delete file.
13276 * ser-mac.c: Delete file.
13277 * mpw-make.sed: Delete file.
13278 * mpw-config.in: Delete file.
13279 * mac-xdep.c: Delete file.
13280 * mac-gdb.r: Delete file.
13281 * mac-defs.h: Delete file.
13282 * mac-nat.c: Delete file.
13283 * config/powerpc/macos.mh: Delete file.
13284 * config/powerpc/macos.mt: Delete file.
13285 * config/powerpc/nm-macos.h: Delete file.
13286 * config/powerpc/tm-macos.h: Delete file.
13287 * source.c (openp, open_source_file): Remove obsolete code.
13288 * top.c (gdb_readline): Ditto.
13289 * utils.c (query): Ditto.
13290 * event-top.c (display_gdb_prompt): Ditto.
13291 * Makefile.in (ser-mac.o): Delete obsolete target.
13292 * NEWS: Update.
13293
d7449b42
AC
132942002-01-04 Andrew Cagney <ac131313@redhat.com>
13295
13296 * defs.h (BIG_ENDIAN): Delete macro definition.
13297 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13298 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13299 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13300 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13301 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13302 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13303 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13304 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13305 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13306 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13307 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13308 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13309 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13310 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13311 * gdbarch.c: Re-generate.
13312
356374e8
DJ
133132002-01-04 Daniel Jacobowitz <drow@mvista.com>
13314
13315 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13316 for core files.
13317
a2b8f8f8
JT
133182002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13319
13320 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13321
12466af9
AC
133222002-01-04 Andrew Cagney <ac131313@redhat.com>
13323
13324 * value.h (value_ptr): Delete typedef.
13325
3549ab40
JT
133262002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13327
13328 * i386nbsd-nat.c: Update copyright years.
13329 Include i386-tdep.h.
13330
fedbd091
EZ
133312002-01-04 Elena Zannoni <ezannoni@redhat.com>
13332
13333 * stabsread.c: Update copyright years.
13334
13335 From Debashis Mahata <debashis.mahata@wipro.com>:
13336 (read_struct_fields): Deal with Sun C compiler erroneous stab
13337 output for structs and unions.
fec8b34f 13338 Fix PR gdb/269.
fedbd091 13339
eb43544b
DJ
133402002-01-04 Daniel Jacobowitz <drow@mvista.com>
13341
13342 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13343 prototype.
13344
1514d34e
DJ
133452002-01-04 Daniel Jacobowitz <drow@mvista.com>
13346
13347 * cp-abi.c: Fix whitespace.
13348 (baseclass_offset): New wrapper function.
13349 * cp-abi.h (baseclass_offset): Add prototype.
13350 (struct cp_abi_ops): Add baseclass_offset pointer.
13351
13352 * valops.c (vb_match): Move to...
13353 * gnu-v2-abi.c (vb_match): here.
13354 * valops.c (baseclass_offset): Move to...
13355 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13356
13357 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13358
13359 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13360 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13361 * hpacc-abi.c (init_hpacc_ops): Likewise.
13362
7f8c9282
DJ
133632002-01-04 Daniel Jacobowitz <drow@mvista.com>
13364
13365 * valops.c (find_overload_match): Accept obj as a
13366 reference parameter. Update it before returning.
13367 * value.h (find_overload_match): Update prototype.
13368 * eval.c (evaluate_subexp_standard): Pass object to
13369 find_overload_match by reference.
13370
f23631e4
AC
133712002-01-03 Andrew Cagney <ac131313@redhat.com>
13372
13373 * valarith.c: Replace value_ptr with struct value pointer. Remove
13374 register attribute from value declarations.
13375 * valops.c: Ditto.
13376 * value.h: Ditto.
13377 * scm-lang.c (scm_lookup_name): Ditto.
13378
79e10fab 133792002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13380
79e10fab
AC
13381 Abstract the functionality of iterating over mapped memory
13382 regions into a general purpose iterator function.
abf22e64 13383 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13384 iterator for memory sections.
13385 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13386 (solib_mappings_callback): New function, callback for above.
13387 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13388 (info_mappings_callback): New function, callback for above.
13389
13390 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13391
c5ad026a
MK
133922002-01-01 Mark Kettenis <kettenis@gnu.org>
13393
d2a7c97a
MK
13394 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13395 * i386-tdep.c: Include "elf-bfd.h".
13396 (process_note_abi_tag_sections): New function.
13397 (i386_gdbarch_init): Add code to recognize various OS/ABI
13398 combinations.
13399
c5ad026a
MK
13400 * maint.c (_initialize_maint_cmds): Add missing \ in
13401 string-literal.
13402
a1a5b71e 13403For older changes see ChangeLog-2001
c906108c
SS
13404\f
13405Local Variables:
13406mode: change-log
13407left-margin: 8
13408fill-column: 74
13409version-control: never
13410End:
This page took 0.950886 seconds and 4 git commands to generate.